:root {
  --ink: #0d1521;
  --ink-soft: #2d3a4d;
  --muted: #647187;
  --canvas: #e9f2ff;
  --surface: #ffffff;
  --surface-soft: #f6f9fe;
  --line: #d6e1f1;
  --line-dark: #bdcbe0;
  --sidebar: #0d1521;
  --sidebar-soft: #182438;
  --accent: #ff9f1c;
  --accent-strong: #f28a00;
  --accent-soft: #fff2dc;
  --green: #18855b;
  --green-bright: #27b276;
  --green-soft: #e5f5ed;
  --blue: #277cd4;
  --blue-soft: #e4effc;
  --amber: #b96b17;
  --amber-soft: #fff1dc;
  --red: #b34b40;
  --red-soft: #fae9e7;
  --shadow: 0 16px 38px rgba(38, 65, 103, .09);
  color: var(--ink);
  background: var(--canvas);
  font-family: Manrope, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); font-size: 15px; line-height: 1.5; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(255,159,28,.55); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Public landing and authentication surfaces */
.entry-loading { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 5px; background: #f3f7fd; color: var(--ink); }
.entry-loading-mark { width: 94px; height: 62px; display: grid; place-items: center; animation: entry-pulse 1.3s ease-in-out infinite; }
.entry-loading-mark img { width: 100%; height: 100%; object-fit: contain; }
.entry-loading strong { font-size: 20px; letter-spacing: -.4px; }
.entry-loading small { color: var(--muted); font-size: 11px; }
@keyframes entry-pulse { 50% { transform: translateY(-4px); opacity: .72; } }

.public-shell { min-height: 100vh; overflow: hidden; background: #fff; color: var(--ink); }
.public-nav { position: relative; z-index: 20; max-width: 1440px; min-height: 88px; margin: 0 auto; padding: 0 54px; display: grid; grid-template-columns: 280px 1fr auto; align-items: center; gap: 34px; }
.public-brand { width: max-content; display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.public-brand > span { width: 54px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #eef4fc; border: 1px solid #dce6f4; }
.public-brand img { width: 48px; height: 27px; object-fit: contain; }
.public-brand strong, .public-brand small { display: block; }
.public-brand strong { font-size: 16px; line-height: 1.1; letter-spacing: -.25px; }
.public-brand small { margin-top: 4px; color: #738095; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.25px; }
.public-nav nav { display: flex; align-items: center; justify-content: center; gap: clamp(24px,4vw,58px); }
.public-nav nav a { position: relative; color: #607087; text-decoration: none; font-size: 12px; font-weight: 750; }
.public-nav nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--accent); transition: right .2s ease; }
.public-nav nav a:hover::after { right: 0; }
.public-login-button { min-height: 43px; display: inline-flex; align-items: center; gap: 8px; padding: 0 17px; border: 1px solid #ccd7e6; border-radius: 12px; background: white; color: var(--ink); font-size: 11px; font-weight: 850; cursor: pointer; box-shadow: 0 6px 16px rgba(41,65,98,.07); }
.public-login-button svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-strong); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.public-login-button:hover { border-color: var(--accent); transform: translateY(-1px); }
.landing-main { max-width: 1440px; margin: 0 auto; padding: 0 54px 48px; }
.landing-hero { position: relative; min-height: min(770px,calc(100vh - 88px)); display: grid; grid-template-columns: minmax(420px,.82fr) minmax(560px,1.18fr); align-items: center; gap: 28px; }
.landing-copy { position: relative; z-index: 7; max-width: 610px; padding: 54px 0 72px; }
.landing-kicker { display: inline-flex; align-items: center; gap: 9px; color: #53647c; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: 1.2px; }
.landing-kicker i { width: 24px; height: 2px; border-radius: 2px; background: var(--accent); }
.landing-kicker.light { color: #b8c8dc; }
.landing-copy h1 { max-width: 650px; margin: 25px 0 24px; font-size: clamp(49px,5.3vw,82px); line-height: .97; letter-spacing: -3.7px; }
.landing-copy h1 span { color: var(--blue); }
.landing-copy > p { max-width: 555px; margin: 0; color: #64738a; font-size: 16px; line-height: 1.7; }
.landing-actions { display: flex; align-items: center; gap: 17px; margin-top: 34px; }
.landing-primary, .landing-secondary { min-height: 54px; border-radius: 14px; font-size: 12px; font-weight: 850; }
.landing-primary { min-width: 225px; display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; padding: 0 18px 0 21px; border: 0; background: var(--ink); color: white; cursor: pointer; box-shadow: 0 14px 28px rgba(13,21,33,.2); }
.landing-primary svg { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.landing-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(13,21,33,.25); }
.landing-secondary { display: inline-flex; align-items: center; padding: 0 9px; color: #55657a; text-decoration: none; border-bottom: 1px solid #afbdcf; border-radius: 0; }
.landing-proof { max-width: 580px; display: grid; grid-template-columns: repeat(3,1fr); margin-top: 49px; padding-top: 23px; border-top: 1px solid #dce5f1; }
.landing-proof div { min-width: 0; padding-right: 20px; }
.landing-proof div + div { padding-left: 22px; border-left: 1px solid #dce5f1; }
.landing-proof strong, .landing-proof span { display: block; }
.landing-proof strong { font-size: 23px; line-height: 1; letter-spacing: -.65px; }
.landing-proof span { margin-top: 7px; color: #7c899b; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .65px; }
.landing-visual { position: relative; z-index: 3; align-self: stretch; min-height: 650px; }
.landing-blob { position: absolute; z-index: 0; width: 112%; height: 112%; right: -27%; top: -10%; border-radius: 42% 0 0 48%; background: linear-gradient(155deg,#1c2e49 0%,#0d1521 58%,#162947 100%); transform: rotate(-3deg); box-shadow: 0 26px 55px rgba(28,53,91,.23); }
.landing-blob::before, .landing-blob::after { content: ""; position: absolute; border-radius: 50%; border: 35px solid rgba(255,255,255,.055); }
.landing-blob::before { width: 180px; height: 180px; right: 11%; top: 9%; }
.landing-blob::after { width: 270px; height: 270px; left: 9%; bottom: 2%; }
.landing-orbit { position: absolute; z-index: 1; border: 2px solid rgba(255,159,28,.52); border-radius: 50%; }
.orbit-one { width: 95px; height: 95px; top: 13%; right: 8%; border-left-color: transparent; transform: rotate(24deg); }
.orbit-two { width: 39px; height: 39px; left: 7%; bottom: 14%; border-right-color: transparent; }
.hero-device-crop { position: absolute; z-index: 2; inset: 6% -8% 0 -8%; overflow: hidden; }
.hero-device-crop::after { content: ""; position: absolute; z-index: 4; width: 66%; height: 44%; right: -2%; top: -2%; background: linear-gradient(145deg,#12213a,#0d1521); clip-path: polygon(8% 0,100% 0,100% 100%,34% 78%,0 50%); opacity: .98; }
.hero-device-crop img { position: absolute; z-index: 2; width: 118%; max-width: none; height: auto; left: -14%; bottom: -2%; object-fit: contain; filter: drop-shadow(0 24px 28px rgba(3,12,25,.32)); }
.hero-floating-card { position: absolute; z-index: 8; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.55); border-radius: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: 0 16px 32px rgba(5,18,37,.18); }
.hero-floating-card > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: #a65b00; }
.hero-floating-card svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-floating-card small, .hero-floating-card strong { display: block; }
.hero-floating-card small { color: #7a8798; font-size: 8px; text-transform: uppercase; letter-spacing: .55px; }
.hero-floating-card strong { margin-top: 2px; font-size: 11px; }
.hero-floating-card em { margin-left: 15px; color: var(--blue); font-size: 10px; font-style: normal; font-weight: 850; }
.hero-route-card { left: 4%; bottom: 14%; }
.hero-trust-card { right: -1%; top: 22%; }
.hero-trust-card > span { background: var(--green-soft); color: var(--green); }
.landing-features { padding: 86px 0 92px; }
.landing-section-heading { max-width: 770px; margin-bottom: 38px; }
.landing-section-heading > span { color: #a45b00; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: 1.1px; }
.landing-section-heading h2 { margin-top: 14px; font-size: clamp(34px,3vw,47px); letter-spacing: -1.6px; }
.landing-section-heading p { margin: 10px 0 0; color: #728096; font-size: 14px; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.landing-feature-grid article { min-height: 285px; padding: 27px; border: 1px solid #d8e3f0; border-radius: 22px; background: linear-gradient(155deg,#fff,#f7faff); box-shadow: 0 14px 35px rgba(42,69,106,.07); }
.landing-feature-grid article > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: white; }
.landing-feature-grid article:nth-child(2) > span { background: var(--blue); }
.landing-feature-grid article:nth-child(3) > span { background: var(--accent); color: var(--ink); }
.landing-feature-grid svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.landing-feature-grid small { display: block; margin-top: 27px; color: #8a97a8; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .8px; }
.landing-feature-grid h3 { margin-top: 9px; font-size: 20px; letter-spacing: -.45px; }
.landing-feature-grid p { margin: 11px 0 0; color: #6d7b8f; font-size: 12px; line-height: 1.65; }
.landing-trust { min-height: 360px; display: grid; grid-template-columns: minmax(360px,.75fr) minmax(580px,1.25fr); align-items: center; gap: 60px; margin-bottom: 36px; padding: 58px 62px; border-radius: 30px; background: linear-gradient(145deg,#14243b,#0d1521 68%); color: white; overflow: hidden; }
.landing-trust h2 { margin-top: 16px; font-size: 39px; letter-spacing: -1.2px; }
.landing-trust p { margin: 14px 0 0; color: #aab9cd; font-size: 12px; line-height: 1.7; }
.trust-flow { display: flex; align-items: center; }
.trust-flow div { min-width: 105px; text-align: center; }
.trust-flow strong { width: 52px; height: 52px; margin: 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(255,255,255,.07); color: var(--accent); font-size: 13px; }
.trust-flow span { display: block; margin-top: 12px; color: #c2cede; font-size: 9px; line-height: 1.35; }
.trust-flow > i { min-width: 28px; height: 1px; flex: 1; margin: 0 8px 29px; background: linear-gradient(90deg,rgba(255,159,28,.9),rgba(255,255,255,.16)); }
.public-footer { max-width: 1332px; min-height: 86px; margin: 0 auto; padding: 0 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #7a879a; }
.public-footer span { color: var(--ink); font-size: 12px; font-weight: 850; }
.public-footer small { font-size: 9px; text-transform: uppercase; letter-spacing: .8px; }
.public-footer button { border: 0; background: none; color: #a55a00; font-size: 11px; font-weight: 850; cursor: pointer; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(520px,1.08fr) minmax(480px,.92fr); background: white; }
.login-visual-panel { position: relative; min-height: 100vh; overflow: hidden; padding: 36px 48px 42px; background: linear-gradient(145deg,#14243b,#0d1521 68%); color: white; }
.login-visual-panel::before { content: ""; position: absolute; width: 500px; height: 500px; left: -190px; bottom: -210px; border: 70px solid rgba(255,255,255,.035); border-radius: 50%; }
.login-back { position: relative; z-index: 7; border: 0; background: transparent; color: #b9c6d8; font-size: 10px; font-weight: 800; cursor: pointer; }
.login-brand { position: absolute; z-index: 7; right: 48px; top: 30px; color: white; }
.login-brand > span { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.14); }
.login-brand small { color: #9dafc6; }
.login-visual-copy { position: relative; z-index: 6; max-width: 610px; margin-top: 86px; }
.login-visual-copy h2 { margin-top: 17px; font-size: clamp(34px,3.5vw,55px); line-height: 1.05; letter-spacing: -2px; }
.login-visual-copy p { max-width: 540px; margin: 17px 0 0; color: #a8b8cc; font-size: 13px; line-height: 1.7; }
.login-illustration { position: absolute; z-index: 2; left: -6%; right: -1%; bottom: -4%; height: 55%; overflow: hidden; }
.login-illustration > div { position: absolute; inset: 8% 3% 0 18%; border-radius: 42% 0 0 0; background: rgba(39,124,212,.23); transform: rotate(-5deg); }
.login-illustration::after { content: ""; position: absolute; z-index: 4; width: 72%; height: 48%; right: -4%; top: -3%; background: linear-gradient(145deg,#13223a,#0d1521); clip-path: polygon(0 0,100% 0,100% 100%,38% 76%,0 43%); }
.login-illustration img { position: absolute; z-index: 3; width: 104%; max-width: none; left: -15%; bottom: -19%; filter: drop-shadow(0 25px 28px rgba(0,0,0,.28)); }
.login-security-chip { position: absolute; z-index: 8; left: 48px; bottom: 36px; display: flex; align-items: center; gap: 11px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.login-security-chip > svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-security-chip strong, .login-security-chip small { display: block; }
.login-security-chip strong { font-size: 10px; }
.login-security-chip small { margin-top: 2px; color: #9dafc6; font-size: 8px; }
.login-form-panel { min-height: 100vh; display: grid; place-items: center; padding: 45px; background: #f4f7fc; }
.login-card { width: min(100%,440px); padding: 42px; border: 1px solid #d8e2ef; border-radius: 26px; background: white; box-shadow: 0 28px 58px rgba(40,66,102,.13); }
.login-card h1 { margin: 0; font-size: 36px; letter-spacing: -1.3px; }
.login-intro { margin: 10px 0 26px; color: #6d7b8e; font-size: 12px; line-height: 1.55; }
.login-card form { display: grid; gap: 17px; }
.login-card label { color: #68768b; font-size: 9px; letter-spacing: .75px; }
.login-card input { height: 54px; border-color: #cbd7e7; border-radius: 13px; padding: 13px 15px; color: var(--ink); font-size: 14px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 53px; }
.password-field button { position: absolute; width: 42px; height: 42px; right: 6px; top: 6px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #77869a; cursor: pointer; }
.password-field svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-error { margin: -4px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 10px; }
.login-submit { min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px 0 19px; border: 0; border-radius: 13px; background: var(--ink); color: white; font-size: 12px; font-weight: 850; cursor: pointer; box-shadow: 0 12px 24px rgba(13,21,33,.18); }
.login-submit svg { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-submit:hover { transform: translateY(-1px); }
.login-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.demo-access { display: grid; grid-template-columns: 34px 1fr; gap: 11px; margin-top: 22px; padding: 14px; border: 1px solid #dbe4f0; border-radius: 14px; background: #f6f9fd; }
.demo-access > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: #a65b00; }
.demo-access svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.demo-access strong, .demo-access code { display: block; }
.demo-access strong { margin-bottom: 6px; font-size: 10px; }
.demo-access code { padding: 1px 0; background: none; color: #536177; font-size: 9px; }
.login-footnote { margin: 14px 3px 0; color: #8793a4; font-size: 8px; line-height: 1.5; }
.login-footnote code { color: #657286; font-size: 8px; }
.logout-button { width: 100%; min-height: 36px; display: flex; align-items: center; gap: 8px; margin-top: 15px; padding: 0 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.035); color: #9eb0c5; font-size: 9px; font-weight: 800; cursor: pointer; }
.logout-button:hover { border-color: rgba(255,159,28,.45); color: white; }
.logout-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1120px) {
  .public-nav { grid-template-columns: 230px 1fr auto; padding: 0 28px; }
  .landing-main { padding-left: 28px; padding-right: 28px; }
  .landing-hero { grid-template-columns: minmax(370px,.9fr) minmax(460px,1.1fr); }
  .landing-copy h1 { font-size: 57px; letter-spacing: -2.8px; }
  .landing-visual { min-height: 570px; }
  .hero-trust-card { right: 0; }
  .landing-trust { grid-template-columns: 1fr; gap: 35px; }
  .login-shell { grid-template-columns: 1fr 480px; }
  .login-visual-panel { padding-left: 35px; padding-right: 35px; }
}

@media (max-width: 820px) {
  .public-nav { min-height: 76px; grid-template-columns: 1fr auto; padding: 0 18px; }
  .public-nav nav { display: none; }
  .landing-main { padding: 0 18px 32px; }
  .landing-hero { min-height: auto; grid-template-columns: 1fr; }
  .landing-copy { max-width: 680px; padding: 56px 0 16px; }
  .landing-copy h1 { font-size: clamp(46px,10vw,70px); }
  .landing-visual { min-height: 550px; }
  .landing-blob { right: -20%; width: 115%; }
  .hero-device-crop { inset: 2% -7% 0 -10%; }
  .landing-feature-grid { grid-template-columns: 1fr; }
  .landing-feature-grid article { min-height: 220px; }
  .landing-trust { grid-template-columns: 1fr; padding: 42px 30px; }
  .trust-flow { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
  .trust-flow > i { display: none; }
  .public-footer { padding: 0 18px 25px; }
  .public-footer small { display: none; }
  .login-shell { display: block; background: #f4f7fc; }
  .login-visual-panel { min-height: 390px; padding: 28px 22px; }
  .login-brand { right: 22px; top: 20px; }
  .login-visual-copy { max-width: 570px; margin-top: 65px; }
  .login-visual-copy h2 { max-width: 570px; font-size: 39px; }
  .login-illustration { display: none; }
  .login-security-chip { left: 22px; bottom: 24px; }
  .login-form-panel { min-height: auto; padding: 30px 18px 55px; }
}

@media (max-width: 540px) {
  .public-brand > span { width: 47px; height: 38px; }
  .public-brand img { width: 42px; }
  .public-login-button { width: 43px; padding: 0; justify-content: center; font-size: 0; }
  .landing-copy h1 { font-size: 48px; letter-spacing: -2.3px; }
  .landing-copy > p { font-size: 14px; }
  .landing-actions { align-items: stretch; flex-direction: column; }
  .landing-primary { width: 100%; }
  .landing-secondary { width: max-content; min-height: 38px; }
  .landing-proof { gap: 0; }
  .landing-proof strong { font-size: 19px; }
  .landing-proof span { font-size: 7px; }
  .landing-proof div { padding-right: 8px; }
  .landing-proof div + div { padding-left: 10px; }
  .landing-visual { min-height: 390px; }
  .landing-blob { width: 125%; height: 104%; right: -28%; top: 0; }
  .hero-device-crop { inset: 0 -19% 0 -24%; }
  .hero-device-crop img { width: 132%; left: -12%; bottom: 1%; }
  .hero-floating-card { padding: 9px 10px; }
  .hero-route-card { left: 0; bottom: 8%; }
  .hero-trust-card { display: none; }
  .landing-features { padding: 62px 0; }
  .landing-section-heading h2 { font-size: 34px; }
  .landing-trust h2 { font-size: 31px; }
  .trust-flow { grid-template-columns: repeat(2,1fr); row-gap: 22px; }
  .login-visual-panel { min-height: 330px; }
  .login-brand strong { display: none; }
  .login-visual-copy { margin-top: 58px; }
  .login-visual-copy h2 { font-size: 31px; }
  .login-visual-copy p { font-size: 11px; }
  .login-security-chip { padding: 10px 12px; }
  .login-card { padding: 29px 23px; border-radius: 22px; }
  .login-card h1 { font-size: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  .entry-loading-mark { animation: none; }
}

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 27px 18px 20px; background: var(--sidebar); color: #eef7f1; display: flex; flex-direction: column; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; border-bottom: 1px solid rgba(255,255,255,.09); text-decoration: none; }
.brand-symbol { width: 39px; height: 39px; border-radius: 11px; background: #1d4b39; border: 1px solid rgba(255,255,255,.16); display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 9px; }
.brand-symbol i { width: 4px; border-radius: 4px; background: #6fe0a6; }
.brand-symbol i:nth-child(1) { height: 10px; opacity: .6; }
.brand-symbol i:nth-child(2) { height: 20px; }
.brand-symbol i:nth-child(3) { height: 14px; opacity: .8; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: -.25px; }
.brand small { color: #89a89a; font-size: 9px; text-transform: uppercase; letter-spacing: 1.25px; margin-top: 3px; }
.nav-section-label { margin: 26px 12px 9px; color: #638276; text-transform: uppercase; letter-spacing: 1.5px; font-size: 8px; font-weight: 800; }
.sidebar nav { display: grid; gap: 5px; }
.nav-link { position: relative; color: #a9c0b5; text-decoration: none; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; min-height: 43px; padding: 0 11px; border-radius: 9px; font-size: 12px; font-weight: 650; transition: .18s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-link.active { color: #fff; background: var(--sidebar-soft); box-shadow: inset 3px 0 #4ed18f; }
.nav-icon { width: 23px; height: 23px; display: grid; place-items: center; color: #77a391; font-size: 14px; }
.nav-link em { color: #547365; font-style: normal; font-size: 8px; font-variant-numeric: tabular-nums; }
.sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.09); padding: 17px 9px 0; }
.mode-row { display: flex; gap: 10px; align-items: flex-start; }
.mode-row strong, .mode-row small { display: block; }
.mode-row strong { font-size: 10px; }
.mode-row small { color: #789588; font-size: 9px; margin-top: 3px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ee29c; box-shadow: 0 0 0 4px rgba(94,226,156,.12); margin-top: 3px; }
.version-row { display: flex; justify-content: space-between; color: #5f7b6e; font-size: 8px; margin-top: 19px; text-transform: uppercase; letter-spacing: .9px; }

main { min-width: 0; padding: 0 38px 64px; }
.topbar { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.topbar-title { min-width: 0; }
.eyebrow { margin: 0 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; font-size: 9px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 28px; line-height: 1.12; letter-spacing: -.75px; }
h2 { margin-bottom: 0; font-size: 19px; line-height: 1.22; letter-spacing: -.35px; }
h3 { margin-bottom: 0; font-size: 13px; }
.topbar-right, .status-strip { display: flex; align-items: center; gap: 8px; }
.status-strip { flex-wrap: wrap; justify-content: flex-end; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); color: var(--muted); font-size: 9px; }
.status-pill strong { color: var(--ink); font-size: 10px; font-variant-numeric: tabular-nums; }
.icon-button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-dark); background: var(--surface); color: var(--ink-soft); cursor: pointer; transition: .15s; }
.icon-button:hover { transform: rotate(20deg); border-color: var(--green); color: var(--green); }

.view { display: none; animation: fade-up .22s ease; }
.view.active { display: block; }
@keyframes fade-up { from { opacity: 0; transform: translateY(4px); } }


.lane-workspace { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.query-card, .lane-output, .insight-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.query-card { overflow: hidden; }
.card-heading, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.card-heading { padding: 20px 20px 17px; border-bottom: 1px solid #e9ece8; }
.micro-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); border: 1px solid #cce6d7; text-transform: uppercase; letter-spacing: .65px; font-size: 8px; font-weight: 850; white-space: nowrap; }
.query-card form { padding: 20px; }
.route-field-group { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 11px; align-items: center; }
.route-node { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 9px; font-weight: 900; }
.node-a { background: var(--green); }
.node-b { background: var(--blue); }
.route-inputs { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 9px; }
label { display: grid; gap: 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .65px; font-size: 8px; font-weight: 800; }
input, select { width: 100%; min-height: 39px; border: 1px solid #cfd6d0; border-radius: 8px; background: #fff; color: var(--ink); padding: 9px 10px; outline: none; font-size: 12px; text-transform: none; letter-spacing: normal; font-weight: 600; }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(24,133,91,.1); }
input:disabled { color: #637168; background: #f1f3f0; }
.route-connector { height: 27px; margin-left: 13px; display: flex; align-items: center; }
.route-connector i { height: 27px; width: 1px; background: #b8c7bf; }
.route-connector span { margin-left: 10px; color: #9aa69f; font-size: 8px; text-transform: uppercase; letter-spacing: 1px; }
.query-options { display: grid; grid-template-columns: 1fr 105px; gap: 9px; margin-top: 20px; }
.primary-button, .secondary-button { border-radius: 8px; font-weight: 800; font-size: 10px; cursor: pointer; transition: .15s ease; }
.primary-button { width: 100%; min-height: 41px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; margin-top: 18px; border: 0; color: white; background: linear-gradient(135deg, var(--green), #146b4b); box-shadow: 0 6px 16px rgba(24,133,91,.18); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(24,133,91,.23); }
.primary-button:disabled { opacity: .6; cursor: wait; transform: none; }
.primary-button.compact { width: auto; margin: 0; gap: 14px; padding: 0 16px; }
.secondary-button { min-height: 34px; border: 1px solid var(--line-dark); background: var(--surface-soft); color: var(--ink-soft); padding: 0 11px; }
.secondary-button:hover { border-color: var(--green); color: var(--green); }
.provider-note { min-height: 51px; border-top: 1px solid #e8ece8; background: #f7f8f6; display: flex; align-items: flex-start; gap: 9px; padding: 13px 20px; }
.provider-note p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--amber); margin-top: 3px; box-shadow: 0 0 0 3px var(--amber-soft); }

.lane-output { min-height: 470px; overflow: hidden; }
.route-placeholder { height: 100%; min-height: 470px; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #142c23, #0e2119); color: white; }
.placeholder-grid { position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, black, transparent 82%); }
.placeholder-route { position: absolute; width: 62%; top: 28%; left: 19%; display: flex; align-items: center; }
.placeholder-route span { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #78dbaa; background: #1d684a; font-size: 9px; font-weight: 900; }
.placeholder-route span:last-child { background: #1d5e79; border-color: #7ccde9; }
.placeholder-route i { height: 2px; flex: 1; margin: 0 8px; background: linear-gradient(90deg, #6ce0a5, #47acd3); box-shadow: 0 0 14px rgba(83,210,157,.4); transform: rotate(-7deg); }
.placeholder-copy { position: relative; max-width: 390px; text-align: center; margin-top: 160px; padding: 20px; }
.placeholder-copy .eyebrow { color: #7ea997; }
.placeholder-copy p:last-child { color: #94ad9f; font-size: 10px; line-height: 1.55; margin: 9px auto 0; }

.route-result-shell { display: grid; grid-template-rows: minmax(258px, 1fr) auto; min-height: 470px; }
.route-map-wrap { position: relative; min-height: 285px; background: linear-gradient(145deg, #132a21, #0c1e17); overflow: hidden; }
.route-map { height: 100%; min-height: 285px; }
.route-map svg { width: 100%; height: 100%; display: block; }
.route-grid { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.route-direct { stroke: rgba(255,255,255,.23); stroke-width: 1.2; stroke-dasharray: 6 7; }
.route-marker-ring { fill: rgba(89,217,151,.18); stroke: rgba(111,224,166,.65); stroke-width: 1; }
.route-marker { fill: #17794f; }
.route-marker-text { fill: white; font-size: 9px; font-weight: 900; }
.route-city { fill: white; font-size: 13px; font-weight: 800; }
.route-coordinate { fill: #89a99b; font-size: 8px; }
.route-map-badge { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; background: rgba(8,23,17,.72); color: #b8d0c5; backdrop-filter: blur(8px); font-size: 8px; }
.route-map-badge i { width: 6px; height: 6px; border-radius: 50%; background: #5ede9c; }
.route-summary { padding: 17px 19px 19px; background: white; }
.route-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 14px; }
.route-name { display: flex; align-items: center; gap: 9px; }
.route-name strong { font-size: 15px; }
.route-name span { color: var(--muted); font-size: 9px; }
.evidence-mode { border-radius: 999px; padding: 5px 8px; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .6px; background: var(--amber-soft); color: var(--amber); }
.evidence-mode.internal { background: var(--green-soft); color: var(--green); }
.route-kpis { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.route-kpis div { padding: 10px 11px; border-right: 1px solid var(--line); }
.route-kpis div:last-child { border-right: 0; }
.route-kpis small, .metric-card small, .data-count small, .market-date small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .65px; font-size: 7px; font-weight: 850; }
.route-kpis strong { display: block; margin-top: 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.route-evidence-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr); gap: 13px; margin-top: 13px; }
.rate-visual, .decision-card { border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); padding: 13px; }
.subhead { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.subhead strong { font-size: 10px; }
.subhead span { color: var(--muted); font-size: 8px; }
.price-scale { display: grid; gap: 8px; }
.price-row { display: grid; grid-template-columns: 95px 1fr 67px; gap: 8px; align-items: center; font-size: 8px; }
.price-row label { color: var(--muted); text-transform: none; letter-spacing: normal; font-size: 8px; }
.price-track { height: 8px; background: #e2e7e2; border-radius: 999px; overflow: hidden; }
.price-fill { height: 100%; border-radius: inherit; background: var(--green); }
.price-fill.published { background: var(--blue); }
.price-fill.internal { background: #8b7cf6; }
.price-row b { text-align: right; font-size: 9px; }
.decision-card { background: #f6f8f5; }
.decision-card .decision-label { display: block; color: var(--green); text-transform: uppercase; letter-spacing: .8px; font-size: 7px; font-weight: 900; }
.decision-card strong { display: block; margin-top: 6px; font-size: 11px; line-height: 1.4; }
.decision-card p { color: var(--muted); font-size: 9px; line-height: 1.5; margin: 6px 0 0; }
.context-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.context-chip { border: 1px solid var(--line); background: white; border-radius: 6px; padding: 6px 7px; font-size: 8px; color: var(--muted); }
.context-chip strong { display: inline; margin: 0; color: var(--ink); font-size: 8px; }
.route-warning { margin-top: 10px; padding: 8px 10px; border-radius: 7px; background: var(--amber-soft); color: #7b4a17; font-size: 8px; line-height: 1.45; }

.insight-panel { margin-top: 16px; overflow: hidden; }
.section-heading { padding: 18px 20px 15px; border-bottom: 1px solid #e9ece8; }
.section-heading > div > p:last-child { color: var(--muted); font-size: 9px; line-height: 1.45; margin: 5px 0 0; }
.text-link { color: var(--green); font-size: 9px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.published-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; }
.published-layout .chart-box { border-right: 1px solid var(--line); }

.market-hero, .data-hero, .trust-hero { min-height: 150px; border-radius: 14px; padding: 27px 30px; background: linear-gradient(135deg, #15392b, #10241c 70%); color: white; display: flex; justify-content: space-between; align-items: center; gap: 30px; box-shadow: var(--shadow); }
.market-hero .eyebrow, .data-hero .eyebrow, .trust-hero .eyebrow { color: #75b795; }
.market-hero h2, .data-hero h2, .trust-hero h2 { font-size: 25px; }
.market-hero p:last-child, .data-hero p:last-child, .trust-hero p:last-child { max-width: 650px; color: #9fbcad; font-size: 10px; line-height: 1.55; margin: 10px 0 0; }
.market-date, .data-count, .trust-score { min-width: 170px; padding: 16px 19px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(255,255,255,.055); }
.market-date small, .data-count small { color: #8fafa0; }
.market-date strong, .data-count strong, .trust-score strong { display: block; margin-top: 7px; font-size: 22px; font-variant-numeric: tabular-nums; }
.data-count span, .trust-score span, .trust-score small { color: #8fafa0; font-size: 8px; }
.trust-score strong { font-size: 34px; color: #6de0a3; }
.trust-score span { display: block; color: white; font-size: 10px; font-weight: 750; }
.trust-score small { display: block; margin-top: 4px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.metric-card { min-height: 104px; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); }
.metric-card strong { display: block; margin-top: 9px; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.metric-card p { color: var(--muted); font-size: 8px; margin: 8px 0 0; }
.metric-card .metric-delta { color: var(--green); font-weight: 800; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.dashboard-grid .insight-panel { margin-top: 0; }
.dashboard-grid .span-2 { grid-column: span 2; }
.chart-box { min-height: 230px; padding: 12px 16px 14px; overflow: hidden; }
.chart-box svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-scroll { max-height: 520px; overflow-y: auto; }
.fuel-chart { min-width: 550px; }
.chart-grid { stroke: #e4e8e4; stroke-width: 1; }
.chart-axis { fill: #89958e; font-size: 9px; }
.chart-label { fill: #607068; font-size: 9px; }
.chart-label-highlight { fill: var(--ink); font-weight: 850; }
.chart-value { fill: var(--ink); font-size: 9px; font-weight: 800; }
.chart-bar { fill: #a7cdb9; }
.chart-bar-highlight { fill: var(--green); }
.chart-line { filter: drop-shadow(0 2px 2px rgba(20,50,37,.08)); }
.chart-point { stroke: white; stroke-width: 2; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 12px 5px; color: var(--muted); font-size: 8px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 50%; }
.chart-empty { min-height: 210px; display: grid; place-content: center; justify-items: center; text-align: center; padding: 25px; }
.chart-empty-mark { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; background: #eef1ed; color: #8a968f; margin-bottom: 10px; }
.chart-empty strong { font-size: 11px; }
.chart-empty p { color: var(--muted); font-size: 9px; max-width: 280px; line-height: 1.45; margin: 6px 0 0; }
.recent-awards { margin-top: 16px; }

.procurement-grid, .data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.procurement-grid .insight-panel, .data-grid .insight-panel { margin-top: 0; }
.readiness-track { display: grid; grid-template-columns: repeat(4, 1fr); padding: 24px 20px 28px; }
.readiness-step { position: relative; padding-top: 27px; border-top: 3px solid #dde3de; }
.readiness-step::before { content: ""; position: absolute; top: -7px; left: 0; width: 11px; height: 11px; border: 2px solid white; border-radius: 50%; background: #b8c2bc; box-shadow: 0 0 0 1px #b8c2bc; }
.readiness-step.reached { border-color: var(--green); }
.readiness-step.reached::before { background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.readiness-step strong { display: block; font-size: 10px; }
.readiness-step span { color: var(--muted); font-size: 8px; line-height: 1.4; display: block; margin-top: 4px; max-width: 150px; }
.procurement-table-panel { margin-top: 16px; }

.data-hero { margin-bottom: 16px; }
.upload-panel form { padding: 18px 20px 22px; }
.file-drop { min-height: 155px; display: grid; place-content: center; justify-items: center; text-align: center; border: 1px dashed #aebdb4; border-radius: 10px; background: #f7f9f6; cursor: pointer; text-transform: none; letter-spacing: normal; }
.file-drop:hover { border-color: var(--green); background: #f0f7f3; }
.file-drop input { display: none; }
.upload-symbol { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 18px; }
.file-drop strong { margin-top: 9px; color: var(--ink); font-size: 11px; }
.file-drop small { color: var(--muted); font-size: 8px; margin-top: 5px; }
.attestation { grid-template-columns: 15px 1fr; align-items: flex-start; gap: 9px; margin-top: 14px; color: #59675f; text-transform: none; letter-spacing: normal; font-size: 9px; line-height: 1.4; }
.attestation input { min-height: auto; width: 14px; height: 14px; accent-color: var(--green); padding: 0; }
.button-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.link-button { display: inline-flex; align-items: center; text-decoration: none; }
.pipeline-steps { list-style: none; padding: 10px 20px 19px; margin: 0; }
.pipeline-steps li { display: grid; grid-template-columns: 31px 1fr; gap: 11px; padding: 11px 0; border-bottom: 1px solid #e9ece8; }
.pipeline-steps li:last-child { border-bottom: 0; }
.pipeline-steps li > span { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-soft); color: var(--green); border: 1px solid var(--line); font-size: 8px; font-weight: 900; }
.pipeline-steps strong { font-size: 10px; }
.pipeline-steps p { color: var(--muted); font-size: 8px; margin: 4px 0 0; line-height: 1.4; }
.schema-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; padding: 9px 20px 20px; }
.schema-grid div { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid #e9ece8; padding: 10px 0; }
code { border-radius: 5px; background: var(--green-soft); color: #176745; padding: 3px 5px; font-size: 8px; }
.schema-grid span { color: var(--muted); text-align: right; font-size: 8px; }

.trust-hero { margin-bottom: 16px; }
.routing-setup-panel { margin-top: 0; }
.routing-setup-body { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.routing-setup-body strong { font-size: 11px; }
.routing-setup-body p { max-width: 700px; color: var(--muted); font-size: 9px; line-height: 1.5; margin: 5px 0 0; }
.source-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.source-card { padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); }
.source-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.source-card h3 { font-size: 13px; line-height: 1.35; }
.source-card p { color: var(--muted); font-size: 9px; line-height: 1.5; margin: 10px 0; }
.source-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 8px; }
.source-card a { color: var(--green); font-weight: 800; text-decoration: none; }
.source-state { border-radius: 999px; padding: 4px 7px; font-size: 7px; font-weight: 900; text-transform: uppercase; letter-spacing: .55px; white-space: nowrap; }
.source-state.current { background: var(--green-soft); color: var(--green); }
.source-state.stale { background: var(--amber-soft); color: var(--amber); }
.source-state.not_loaded { background: #ecefeb; color: #68756e; }
.coverage-grid { display: grid; grid-template-columns: repeat(5, 1fr); padding: 20px; gap: 10px; }
.coverage-item { border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); padding: 13px; }
.coverage-item strong { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.coverage-item span { color: var(--muted); font-size: 8px; display: block; margin-top: 5px; line-height: 1.35; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 18px; border-top: 1px solid #e8ece8; text-align: left; font-size: 9px; vertical-align: top; }
th { color: var(--muted); background: #f7f8f5; text-transform: uppercase; letter-spacing: .6px; font-size: 7px; }
td.numeric { text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; }
td small { display: inline-block; color: var(--muted); font-size: 8px; line-height: 1.4; margin-top: 3px; max-width: 520px; }
.table-link { color: var(--green); text-decoration: none; }
.empty-inline { padding: 30px 20px; color: var(--muted); font-size: 10px; }
.warning-box, .error-box, .success-box { margin-top: 12px; padding: 10px 11px; border-radius: 8px; font-size: 9px; line-height: 1.45; }
.warning-box { border: 1px solid #edd2ae; background: var(--amber-soft); color: #714513; }
.error-box { border: 1px solid #ecc6c2; background: var(--red-soft); color: #7d332b; }
.success-box { border: 1px solid #c8e2d3; background: var(--green-soft); color: #145f42; }

.skeleton { display: inline-block; border-radius: 7px; background: linear-gradient(90deg,#e1e5e0,#f2f4f1,#e1e5e0); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.status-skeleton { width: 88px; height: 30px; }
.skeleton.wide { width: 70%; height: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.toast { position: fixed; right: 22px; bottom: 22px; max-width: 380px; padding: 12px 14px; border-radius: 9px; background: var(--ink); color: white; box-shadow: 0 14px 38px rgba(0,0,0,.22); font-size: 9px; line-height: 1.45; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; z-index: 20; }
.toast.show { opacity: 1; transform: translateY(0); }

/* Cargo-delivery inspired desktop design system */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nav-icon svg, .icon-button svg, .primary-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell { grid-template-columns: 282px minmax(0, 1fr); }
.sidebar { padding: 28px 20px 22px; }
.brand { gap: 14px; padding: 0 8px 28px; }
.brand-symbol {
  width: 52px;
  height: 52px;
  padding: 3px;
  border: 0;
  border-radius: 16px;
  background: #eef5ff;
  overflow: hidden;
}
.brand-symbol img { width: 100%; height: 100%; object-fit: contain; }
.brand strong { font-size: 19px; letter-spacing: -.45px; }
.brand small { color: #8793a7; font-size: 10px; letter-spacing: 1.35px; }
.nav-section-label { margin: 30px 13px 11px; color: #69778e; font-size: 10px; }
.sidebar nav { gap: 8px; }
.nav-link {
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  min-height: 54px;
  padding: 0 13px;
  border-radius: 15px;
  color: #aab5c6;
  font-size: 14px;
  font-weight: 720;
}
.nav-link.active { background: #1b283c; box-shadow: inset 4px 0 var(--accent); }
.nav-link.active .nav-icon { color: var(--accent); background: rgba(255,159,28,.12); }
.nav-icon { width: 30px; height: 30px; border-radius: 9px; color: #8390a4; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-link em { color: #69778e; font-size: 10px; }
.sidebar-foot { padding: 20px 10px 0; }
.mode-row strong { font-size: 12px; }
.mode-row small { color: #8491a4; font-size: 11px; }
.version-row { color: #6d7a8e; font-size: 10px; }

main { padding: 0 42px 76px; }
.topbar { min-height: 126px; margin-bottom: 30px; border-color: rgba(151,173,203,.42); }
.eyebrow { margin-bottom: 7px; color: #6f7f97; font-size: 11px; letter-spacing: 1.35px; }
h1 { font-size: 36px; line-height: 1.08; letter-spacing: -1.15px; }
h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.65px; }
h3 { font-size: 17px; }
.topbar-right, .status-strip { gap: 10px; }
.status-pill { min-height: 38px; padding: 0 14px; border-color: #d2dfef; background: rgba(255,255,255,.84); font-size: 11px; }
.status-pill strong { font-size: 12px; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border-color: #c8d5e7; color: var(--ink); }
.icon-button:hover { border-color: var(--accent); color: var(--accent-strong); }


.lane-workspace { grid-template-columns: 430px minmax(0, 1fr); gap: 22px; }
.query-card, .lane-output, .insight-panel { border-color: #d2deed; border-radius: 22px; }
.card-heading { min-height: 136px; padding: 24px 24px 20px; border-color: #e4ebf5; overflow: hidden; }
.card-copy { max-width: 255px; margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.cargo-card-heading { min-height: 184px; display: grid; grid-template-columns: minmax(140px,.8fr) minmax(205px,1.2fr); align-items: center; gap: 14px; }
.cargo-heading-copy { position: relative; z-index: 2; }
.cargo-heading-copy .card-copy { max-width: 175px; }
.cargo-load-widget { min-width: 0; align-self: center; padding: 6px 0 0; border: 0; background: transparent; box-shadow: none; }
.cargo-load-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.cargo-load-caption span { display: inline-flex; align-items: center; gap: 6px; color: #617087; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .65px; }
.cargo-load-caption b { font: inherit; }
.cargo-load-caption svg { width: 15px; height: 15px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cargo-load-caption strong { padding: 4px 7px; border-radius: 999px; background: var(--ink); color: white; font-size: 9px; letter-spacing: .55px; white-space: nowrap; }
.truck-load-stage { --cargo-cover: 74.86%; position: relative; width: 100%; aspect-ratio: 358 / 165; overflow: hidden; container-type: inline-size; }
.truck-load-stage[data-load="empty"] { --cargo-cover: 74.86%; }
.truck-load-stage[data-load="quarter"] { --cargo-cover: 56.15%; }
.truck-load-stage[data-load="half"] { --cargo-cover: 37.43%; }
.truck-load-stage[data-load="three-quarter"] { --cargo-cover: 18.72%; }
.truck-load-stage[data-load="full"] { --cargo-cover: 0%; }
.truck-visual { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(42,61,90,.14)); }
.truck-cargo-mask { position: absolute; z-index: 2; left: 1.68%; top: 0; width: var(--cargo-cover); height: 56.82%; background: #c8defe; box-shadow: inset 0 -1px rgba(117,153,205,.18); transition: width .82s cubic-bezier(.22,.75,.25,1); }
.loading-carton { --box-top: 27%; --box-size: 14px; position: absolute; z-index: 3; left: -18px; top: var(--box-top); width: var(--box-size); height: calc(var(--box-size) * .78); border: 1px solid #8b552c; border-radius: 2px; background: linear-gradient(90deg,#c98242 0 45%,#e7ad6a 45% 57%,#c98242 57%); box-shadow: 0 3px 5px rgba(75,45,24,.18); opacity: 0; }
.loading-carton::after { content: ""; position: absolute; left: 2px; right: 2px; top: 3px; border-top: 1px solid rgba(100,58,28,.55); }
.carton-two { --box-top: 12%; --box-size: 12px; }
.carton-three { --box-top: 39%; --box-size: 11px; }
.truck-load-stage.is-loading .loading-carton { animation: carton-load .78s cubic-bezier(.2,.72,.25,1) 1 both; }
.truck-load-stage.is-loading .carton-two { animation-delay: .1s; }
.truck-load-stage.is-loading .carton-three { animation-delay: .2s; }
@keyframes carton-load {
  0% { transform: translateX(0) rotate(-5deg); opacity: 0; }
  14% { opacity: 1; }
  78% { transform: translateX(128px) rotate(0); opacity: 1; }
  100% { transform: translateX(128px) scale(.78); opacity: 0; }
}
.micro-tag { min-height: 30px; padding: 0 10px; border-color: #d7e4f3; background: var(--blue-soft); color: var(--blue); font-size: 10px; }
.query-card form { padding: 24px; }
.route-field-group { grid-template-columns: 38px minmax(0, 1fr); gap: 13px; padding: 14px; border: 1px solid #dbe5f2; border-radius: 17px; background: var(--surface-soft); }
.route-node { width: 38px; height: 38px; font-size: 12px; box-shadow: 0 0 0 5px rgba(13,21,33,.05); }
.node-a { background: var(--ink); }
.node-b { background: var(--accent); color: var(--ink); }
.route-inputs { grid-template-columns: minmax(145px,.95fr) minmax(0,1.05fr); gap: 12px; }
label { gap: 7px; color: #68778d; font-size: 10px; letter-spacing: .75px; }
input, select { min-height: 52px; border-color: #c9d6e7; border-radius: 13px; padding: 12px 14px; color: var(--ink); font-size: 15px; font-weight: 720; box-shadow: 0 1px 0 rgba(13,21,33,.02); }
#lane-form input, #lane-form select { height: 52px; }
select { cursor: pointer; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,159,28,.15); }
input:disabled { color: #637187; background: #edf2f8; }
.route-connector { height: 35px; margin-left: 32px; }
.route-connector i { height: 35px; border-left: 2px dashed #aabbd0; background: none; }
.route-connector span { margin-left: 13px; color: #8290a4; font-size: 10px; font-weight: 800; }
.query-options { grid-template-columns: minmax(0,1.2fr) minmax(130px,.8fr); gap: 12px; margin-top: 18px; }
.truck-plan-options { grid-template-columns: 1fr 1fr; }
.truck-plan-options .truck-type-option { grid-column: 1 / -1; }
.truck-plan-options input[type="hidden"] { display: none; }
.truck-plan-note { display: flex; align-items: flex-start; gap: 7px; margin: 10px 2px 0; color: #76859a; font-size: 10px; line-height: 1.45; }
.truck-plan-note svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.primary-button, .secondary-button { border-radius: 14px; font-size: 13px; }
.primary-button { min-height: 54px; padding: 0 18px 0 20px; margin-top: 20px; background: var(--ink); box-shadow: 0 11px 22px rgba(13,21,33,.18); }
.primary-button svg { width: 21px; height: 21px; color: var(--accent); }
.primary-button:hover { background: #172338; box-shadow: 0 14px 27px rgba(13,21,33,.23); }
.primary-button.compact { min-height: 48px; }
.secondary-button { min-height: 44px; padding: 0 15px; border-color: #c4d2e4; background: white; }
.secondary-button:hover { border-color: var(--accent); color: #a85b00; }
.provider-note { min-height: 72px; padding: 16px 24px; border-color: #e2eaf4; background: #f7faff; }
.provider-note p { font-size: 11px; line-height: 1.55; }
.status-dot { width: 9px; height: 9px; margin-top: 4px; }

.lane-output { min-height: 640px; container-type: inline-size; }
.route-placeholder { min-height: 640px; background: linear-gradient(145deg, #d9e8fb, #f7fbff 76%); color: var(--ink); }
.placeholder-grid { opacity: .32; background-image: linear-gradient(rgba(61,91,132,.17) 1px,transparent 1px),linear-gradient(90deg,rgba(61,91,132,.17) 1px,transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(to bottom,black,transparent 88%); }
.placeholder-route { top: 27%; }
.placeholder-route span { width: 38px; height: 38px; border: 5px solid rgba(255,255,255,.95); background: var(--ink); font-size: 12px; box-shadow: 0 8px 20px rgba(13,21,33,.15); }
.placeholder-route span:last-child { border-color: white; background: var(--accent); color: var(--ink); }
.placeholder-route i { height: 5px; background: linear-gradient(90deg,var(--ink),var(--accent)); box-shadow: none; }
.placeholder-truck { position: absolute; width: 176px; height: 81px; object-fit: contain; top: 21%; left: calc(50% - 88px); z-index: 1; filter: drop-shadow(0 10px 11px rgba(42,61,90,.2)); }
.placeholder-copy { max-width: 480px; margin-top: 230px; }
.placeholder-copy .eyebrow { color: #75849a; }
.placeholder-copy h2 { font-size: 28px; }
.placeholder-copy p:last-child { color: #66758a; font-size: 13px; }

.route-result-shell { grid-template-rows: minmax(340px,1fr) auto; min-height: 640px; }
.route-map-wrap { min-height: 350px; background: linear-gradient(145deg,#dbe9fa,#f8fbff); }
.route-map { min-height: 350px; }
.route-grid { stroke: rgba(72,103,145,.13); }
.route-direct { stroke: rgba(13,21,33,.28); stroke-width: 1.6; }
.route-marker-ring { fill: rgba(255,159,28,.16); stroke: rgba(255,159,28,.62); stroke-width: 1.5; }
.route-marker { fill: var(--ink); }
.route-marker-b { fill: var(--accent); }
.route-marker-text { fill: white; font-size: 11px; }
.route-marker-b + .route-marker-text { fill: var(--ink); }
.route-halo { filter: drop-shadow(0 5px 7px rgba(49,79,117,.18)); }
.route-truck { pointer-events: none; }
.route-truck-image { pointer-events: none; background: transparent; }
.route-city { fill: var(--ink); font-size: 15px; }
.route-coordinate { fill: #66758b; font-size: 10px; }
.route-map-badge { top: 18px; right: 18px; padding: 8px 11px; border-color: rgba(13,21,33,.08); border-radius: 10px; background: rgba(255,255,255,.86); color: #526178; font-size: 10px; box-shadow: 0 7px 18px rgba(53,79,112,.1); }
.route-map-badge i { width: 8px; height: 8px; background: var(--green-bright); }
.route-summary { padding: 22px 24px 24px; }
.route-title-row { margin-bottom: 18px; }
.route-name { flex-wrap: wrap; gap: 11px; }
.route-name strong { font-size: 18px; }
.route-name span { font-size: 11px; }
.evidence-mode { padding: 7px 10px; font-size: 9px; }
.route-kpis { border-color: #d9e3ef; border-radius: 15px; }
.route-kpis div { min-height: 76px; padding: 14px; border-color: #d9e3ef; }
.route-kpis small, .metric-card small, .data-count small, .market-date small { font-size: 9px; }
.route-kpis strong { margin-top: 7px; font-size: 16px; }
.route-evidence-grid { gap: 16px; margin-top: 16px; }
.rate-visual, .decision-card { border-color: #d9e3ef; border-radius: 16px; padding: 17px; }
.subhead { margin-bottom: 14px; }
.subhead strong { font-size: 13px; }
.subhead span { font-size: 10px; }
.price-scale { gap: 11px; }
.price-row { grid-template-columns: 120px 1fr 78px; gap: 10px; font-size: 11px; }
.price-row label { font-size: 10px; }
.price-track { height: 10px; background: #e2e9f3; }
.price-fill { background: var(--ink); }
.price-fill.published { background: var(--blue); }
.price-fill.internal { background: var(--accent); }
.price-row b { font-size: 11px; }
.decision-card { background: #f4f8fd; }
.decision-card .decision-label { color: #9b5600; font-size: 9px; }
.decision-card strong { margin-top: 8px; font-size: 14px; }
.decision-card p { font-size: 11px; }
.context-chips { gap: 8px; margin-top: 12px; }
.context-chip { flex: 1 1 142px; min-width: 0; min-height: 48px; display: flex; align-items: center; gap: 9px; border-color: #d4dfec; border-radius: 12px; padding: 7px 9px; font-size: 10px; box-shadow: 0 3px 8px rgba(49,76,110,.045); }
.context-chip-icon { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: #a65b00; }
.context-chip-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.context-chip.trend .context-chip-icon { background: var(--blue-soft); color: var(--blue); }
.context-chip.activity .context-chip-icon { background: var(--green-soft); color: var(--green); }
.context-chip-copy { min-width: 0; display: block; }
.context-chip strong { display: block; margin: 0; color: var(--ink); font-size: 10px; line-height: 1.25; white-space: nowrap; }
.context-chip em { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-style: normal; line-height: 1.25; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .truck-cargo-mask { transition: none; }
  .truck-load-stage.is-loading .loading-carton { animation: none; }
}
.route-warning { padding: 10px 12px; border-radius: 10px; font-size: 10px; }

.insight-panel { margin-top: 22px; }
.section-heading { padding: 23px 24px 19px; border-color: #e3eaf3; }
.section-heading > div > p:last-child { max-width: 720px; font-size: 12px; line-height: 1.55; margin-top: 7px; }
.text-link { color: #9c5700; font-size: 11px; }
.market-hero, .data-hero, .trust-hero { min-height: 188px; padding: 34px 36px; border-radius: 24px; background: linear-gradient(135deg,#172338,#0d1521 72%); }
.market-hero .eyebrow, .data-hero .eyebrow, .trust-hero .eyebrow { color: #f3a83f; }
.market-hero h2, .data-hero h2, .trust-hero h2 { font-size: 31px; }
.market-hero p:last-child, .data-hero p:last-child, .trust-hero p:last-child { color: #aebbd0; font-size: 13px; }
.market-date, .data-count, .trust-score { min-width: 200px; padding: 20px 22px; border-radius: 16px; }
.market-date small, .data-count small { color: #aab6c9; }
.market-date strong, .data-count strong, .trust-score strong { font-size: 27px; }
.data-count span, .trust-score span, .trust-score small { color: #aab6c9; font-size: 10px; }
.trust-score strong { color: var(--accent); font-size: 40px; }
.trust-score span { font-size: 12px; }
.metric-grid { gap: 16px; margin: 22px 0; }
.metric-card { min-height: 128px; padding: 22px; border-color: #d4dfed; border-radius: 18px; }
.metric-card strong { margin-top: 11px; font-size: 27px; }
.metric-card p { font-size: 11px; }
.dashboard-grid { gap: 22px; }
.chart-box { min-height: 270px; padding: 17px 22px 20px; }
.chart-grid { stroke: #dfe7f1; }
.chart-axis, .chart-label { fill: #66758a; font-size: 12px; }
.chart-value { fill: var(--ink); font-size: 12px; }
.chart-bar { fill: #a8bfdc; }
.chart-bar-highlight { fill: var(--accent); }
.chart-legend { gap: 16px; padding: 0 18px 11px; font-size: 11px; }
.chart-legend i { width: 10px; height: 10px; }
.chart-empty strong { font-size: 14px; }
.chart-empty p { font-size: 11px; }

.readiness-step strong { font-size: 13px; }
.readiness-step span { max-width: 190px; font-size: 10px; }
.file-drop strong { font-size: 14px; }
.file-drop small { font-size: 10px; }
.attestation { font-size: 11px; }
.pipeline-steps li { grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; }
.pipeline-steps li > span { width: 34px; height: 34px; border-radius: 10px; font-size: 10px; }
.pipeline-steps strong { font-size: 13px; }
.pipeline-steps p { font-size: 10px; }
code { font-size: 10px; }
.schema-grid span { font-size: 10px; }
.routing-setup-body strong { font-size: 14px; }
.routing-setup-body p { font-size: 11px; }
.source-grid { gap: 16px; margin-top: 22px; }
.source-card { padding: 22px; border-color: #d4dfed; border-radius: 18px; }
.source-card h3 { font-size: 16px; }
.source-card p { font-size: 11px; }
.source-meta { font-size: 10px; }
.source-state { padding: 6px 9px; font-size: 9px; }
.coverage-item { border-color: #d6e1ee; border-radius: 13px; padding: 17px; }
.coverage-item strong { font-size: 22px; }
.coverage-item span { font-size: 10px; }
th, td { padding: 14px 20px; border-color: #e0e8f2; font-size: 11px; }
th { background: #f5f8fd; font-size: 9px; }
td small { font-size: 10px; }
.empty-inline { font-size: 12px; }
.warning-box, .error-box, .success-box { padding: 13px 14px; border-radius: 11px; font-size: 11px; }
.toast { max-width: 440px; padding: 15px 17px; border-radius: 13px; font-size: 12px; }

@container (max-width: 650px) {
  .route-evidence-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 220px minmax(0,1fr); }
  main { padding-left: 24px; padding-right: 24px; }
  .lane-workspace { grid-template-columns: 1fr; }
  .route-kpis { grid-template-columns: repeat(3, 1fr); }
  .route-kpis div:nth-child(3) { border-right: 0; }
  .route-kpis div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .dashboard-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid .span-2 { grid-column: span 2; }
  .coverage-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 930px) {
  .lane-workspace, .published-layout, .procurement-grid, .data-grid { grid-template-columns: 1fr; }
  .published-layout .chart-box { border-right: 0; border-bottom: 1px solid var(--line); }
  .route-evidence-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .source-grid { grid-template-columns: 1fr; }
  .market-hero, .data-hero, .trust-hero { align-items: flex-start; }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; padding: 14px; }
  .brand { padding-bottom: 13px; }
  .nav-section-label, .sidebar-foot { display: none; }
  .sidebar nav { display: flex; overflow-x: auto; margin-top: 12px; padding-bottom: 3px; }
  .nav-link { flex: 0 0 auto; grid-template-columns: 22px auto; min-height: 38px; padding: 0 10px; }
  .nav-link em { display: none; }
  main { padding: 0 13px 40px; }
  .topbar { min-height: 94px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; }
  .topbar-right { width: 100%; justify-content: space-between; }
  .status-strip { justify-content: flex-start; }
  .status-pill:nth-child(2) { display: none; }
  .route-inputs { grid-template-columns: 105px minmax(0,1fr); }
  .route-kpis { grid-template-columns: repeat(2,1fr); }
  .route-kpis div, .route-kpis div:nth-child(3) { border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
  .route-kpis div:nth-child(odd) { border-right: 0; }
  .route-kpis div:nth-child(-n+2) { border-top: 0; }
  .route-title-row { flex-direction: column; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid .span-2 { grid-column: span 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .market-hero, .data-hero, .trust-hero { min-height: 0; padding: 22px; flex-direction: column; }
  .market-date, .data-count, .trust-score { width: 100%; }
  .readiness-track { grid-template-columns: 1fr; padding: 20px; }
  .readiness-step { border-top: 0; border-left: 3px solid #dde3de; padding: 0 0 22px 27px; }
  .readiness-step::before { top: 0; left: -7px; }
  .schema-grid { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: 1fr 1fr; }
  .routing-setup-body { flex-direction: column; align-items: flex-start; }
  th, td { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 430px) {
  .metric-grid { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 24px; }
  .route-inputs, .query-options { grid-template-columns: 1fr; }
  .route-field-group { align-items: start; }
  .route-node { margin-top: 18px; }
  .route-map-wrap, .route-map { min-height: 240px; }
  .price-row { grid-template-columns: 82px 1fr 58px; }
  .coverage-grid { grid-template-columns: 1fr; }
}
