/* =========================================================
   Loader: brand + app styles
   Ink, warm paper and a single hi-vis accent.
   ========================================================= */
:root {
  --ink: #0b0e10;
  --ink-2: #2b3136;
  --muted: #69717a;
  --faint: #9aa1a8;
  --paper: #f5f3ee;
  --paper-2: #ece9e1;
  --card: #ffffff;
  --line: #e2ded4;
  --line-strong: #cfcabd;
  --night: #0b0e10;
  --night-2: #13181c;
  --night-3: #1c2328;
  --night-line: #262e34;
  --night-text: #e9e7e1;
  --night-muted: #8c949b;
  --accent: #ff5a1f;
  --accent-2: #e84a10;
  --accent-soft: #fff0e8;
  --accent-ink: #b43a0a;
  --good: #1f7a4a;
  --good-soft: #e7f3ec;
  --warn: #9a6200;
  --warn-soft: #fbf1dc;
  --bad: #b42318;
  --bad-soft: #fbeae8;
  --info: #24557f;
  --info-soft: #e6eef6;
  --radius: 4px;
  --sidebar: 252px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.55 var(--body);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; }
.hidden, [hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--ink); }
.mono { font-family: var(--mono); letter-spacing: 0; }
.ic {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic.flip { transform: scaleX(-1); }

/* Signed-out shows the public site; signed-in shows the app */
.signed-out .layout { display: none; }
body:not(.signed-out) .public { display: none; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--ink); font-family: var(--display); font-weight: 800; font-stretch: 125%;
  font-size: 17px; letter-spacing: .06em;
}
.logo-mark { width: 28px; height: 28px; color: var(--ink); }
.logo.light { color: #fff; }
.logo.light .logo-mark { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: var(--radius);
  padding: 10px 16px; font-weight: 600; font-size: 14px; letter-spacing: .01em; white-space: nowrap;
  text-decoration: none; transition: background .18s var(--ease), border-color .18s var(--ease), color .18s, transform .18s var(--ease);
}
.btn .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover:not(:disabled) .ic { transform: translateX(2px); }
.btn:hover:not(:disabled) { background: var(--ink-2); border-color: var(--ink-2); }
.btn.dark { background: var(--ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.accent:hover:not(:disabled) { background: #ff6f3b; border-color: #ff6f3b; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover:not(:disabled) { background: var(--card); border-color: var(--ink); }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn.outline-light:hover { background: rgba(255,255,255,.06); border-color: #fff; }
.btn.danger { background: transparent; color: var(--bad); border-color: #e9c3bf; }
.btn.danger:hover:not(:disabled) { background: var(--bad-soft); border-color: var(--bad); }
.btn.small { padding: 6px 11px; font-size: 12.5px; gap: 6px; }
.btn.lg { padding: 14px 22px; font-size: 15px; }
.btn.wide { width: 100%; margin-top: 10px; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn.ghost.busy::after, .btn.accent.busy::after { border-color: rgba(0,0,0,.15); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.iconbtn { border: 0; background: none; padding: 6px; border-radius: var(--radius); display: inline-grid; place-items: center; color: var(--ink-2); }
.iconbtn:hover { background: var(--paper-2); }
.iconbtn .ic { width: 22px; height: 22px; }
.textbtn { border: 0; background: none; color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 13px; }
.textbtn .ic { width: 15px; height: 15px; color: var(--accent-2); }
.textbtn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   Public site
   ========================================================= */
.public { background: var(--paper); overflow-x: clip; }
.pwrap { width: min(1280px, 100% - 80px); margin: 0 auto; }

/* Film grain on dark surfaces, so they read as printed rather than flat */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav */
.pnav { position: fixed; inset: 0 0 auto 0; z-index: 40; color: #fff; transition: background .3s var(--ease), border-color .3s; border-bottom: 1px solid transparent; }
.pnav-in { height: 80px; display: flex; align-items: center; gap: 48px; }
.pnav .logo, .pnav .logo-mark { color: #fff; }
.pnav-links { display: flex; gap: 32px; margin-right: auto; }
.pnav-links a, .plink { text-decoration: none; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.7); transition: color .15s; }
.pnav-links a:hover, .plink:hover { color: #fff; }
.pnav-cta { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.pnav.solid { background: rgba(11,14,16,.86); backdrop-filter: saturate(1.3) blur(14px); border-bottom-color: rgba(255,255,255,.07); }

/* Hero */
.hero { background: var(--night); color: var(--night-text); overflow: hidden; padding: 168px 0 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 65% at 76% 42%, rgba(255,90,31,.13), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-pre { margin: 0; font-size: 15px; color: var(--night-muted); display: flex; align-items: center; gap: 14px; }
.hero-pre::before { content: ""; width: 36px; height: 1px; background: var(--accent); }
.hero h1 {
  color: #fff; font-weight: 800; font-stretch: 116%; font-size: clamp(52px, 7.6vw, 116px);
  line-height: .9; letter-spacing: -.04em; margin: 28px 0 30px;
}
.accent-dot { color: var(--accent); }
.lede { font-size: 19px; line-height: 1.6; color: #a9afb4; max-width: 500px; margin: 0 0 40px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-map { margin: 0; position: relative; }
.hero-foot {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 88px;
  border-top: 1px solid var(--night-line);
}
.hero-foot span { padding: 24px 0 28px; font-size: 14px; color: #c9cdd0; font-weight: 500; display: flex; align-items: center; gap: 12px; }
.hero-foot span::before { content: ""; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
.hero-foot span + span { padding-left: 28px; border-left: 1px solid var(--night-line); }

/* SA map */
.samap { display: block; width: 100%; height: auto; overflow: visible; }
.samap .land { stroke: rgba(255,255,255,.32); stroke-width: 1; }
.samap .enclave { fill: rgba(255,255,255,.035); stroke: rgba(255,255,255,.18); stroke-width: .8; }
.samap .route { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.samap .route.base { stroke: rgba(255,90,31,.2); stroke-width: 5; }
.samap .route.dash { stroke-dasharray: 2 7; stroke-width: 2.4; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -9; } }
.samap .city { fill: var(--night); stroke: #fff; stroke-width: 1.5; }
.samap .city.hub { fill: var(--accent); stroke: var(--night); stroke-width: 2; }
.samap .pulse { fill: none; stroke: var(--accent); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.samap .truck { fill: #fff; }
.samap text { font-family: var(--mono); font-size: 10px; fill: #aeb4b8; letter-spacing: .04em; text-transform: uppercase; }
.samap text.hubtext { fill: #fff; font-weight: 600; }
.samap .shield rect { fill: var(--night); stroke: var(--accent); stroke-width: 1.2; }
.samap .shield text { fill: var(--accent); font-weight: 700; font-size: 9px; text-anchor: middle; letter-spacing: .02em; }
.samap.small .route.dash { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .samap .route.dash, .samap .pulse { animation: none !important; }
  .samap .truck { display: none; }
}

/* ---------- Cinematic hero (3D truck journey) ---------- */
.journey { display: none; position: relative; height: 100vh; height: 100svh; background: var(--night); color: var(--night-text); overflow: hidden; --glow: rgba(255,90,31,.16); }
.has-journey .journey { display: block; }
.has-journey .hero { display: none; }
.journey-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
.journey.ready .journey-canvas { opacity: 1; }
.journey-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 74% 62%, var(--glow), transparent 70%),
    linear-gradient(90deg, rgba(11,14,16,.88) 0%, rgba(11,14,16,.55) 30%, rgba(11,14,16,0) 56%),
    linear-gradient(0deg, rgba(11,14,16,.55) 0%, rgba(11,14,16,0) 22%),
    linear-gradient(180deg, rgba(11,14,16,.6) 0%, rgba(11,14,16,0) 18%);
  mix-blend-mode: normal;
}
.journey-copy { position: relative; height: 100%; display: flex; align-items: center; pointer-events: none; }
.chapter { position: absolute; max-width: 560px; opacity: 0; will-change: opacity, transform; pointer-events: none; }
.chapter[data-chapter="0"] { opacity: 1; }
.chapter.is-active { pointer-events: auto; }
.chapter h1 { color: #fff; font-weight: 800; font-stretch: 116%; font-size: clamp(52px, 7.2vw, 112px); line-height: .9; letter-spacing: -.04em; margin: 28px 0 30px; }
.chapter h2 { color: #fff; font-weight: 800; font-stretch: 114%; font-size: clamp(40px, 5.2vw, 76px); line-height: .94; letter-spacing: -.035em; margin: 24px 0 24px; }
.chapter .lede { color: #b3b9bd; }
.mini-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.mini-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #c9cdd0; }
.mini-steps b { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); font-stretch: 110%; font-size: 13px; color: #fff; }
.mini-steps li:first-child b { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* Heads-up cards: hairline, dark, no glow */
.hud { width: min(400px, 100%); background: rgba(11,14,16,.72); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); padding: 16px 18px 12px; }
.hud-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; color: #fff; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.hud-head .mono { color: var(--night-muted); font-weight: 500; font-size: 12px; }
.hud-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px; color: #dcdfe1; }
.hud-row small { display: block; font-size: 11.5px; color: var(--night-muted); }
.hud-row b { color: #fff; font-weight: 600; font-size: 15px; }
.hud-row.best { box-shadow: inset 2px 0 0 var(--accent); padding-left: 12px; margin-left: -18px; padding-left: 16px; }
.hud-row.best b { color: var(--accent); }
.hud-note { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #5c656c; text-align: right; padding-top: 8px; }
.hud-bar { height: 3px; background: rgba(255,255,255,.1); margin: 16px 0 14px; overflow: hidden; }
.hud-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.hud-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hud-steps li { font-size: 12.5px; font-weight: 600; color: #6f777d; padding-top: 10px; border-top: 2px solid rgba(255,255,255,.12); transition: color .3s, border-color .3s; }
.hud-steps li small { display: block; font-weight: 400; font-size: 11px; margin-top: 2px; color: #5c656c; }
.hud-steps li.done { color: #fff; border-top-color: var(--accent); }
.hud-steps li.done small { color: var(--night-muted); }

/* Chapter rail */
.journey-rail { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.journey-rail button { display: flex; align-items: center; justify-content: flex-end; gap: 12px; background: none; border: 0; padding: 6px 0; color: var(--night-muted); font-size: 12px; }
.journey-rail button span { opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s var(--ease); }
.journey-rail button::after { content: ""; width: 16px; height: 2px; background: rgba(255,255,255,.28); transition: width .3s var(--ease), background .3s; }
.journey-rail button.on { color: #fff; }
.journey-rail button.on::after { width: 32px; background: var(--accent); }
.journey-rail:hover button span, .journey-rail button.on span { opacity: 1; transform: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); pointer-events: none; }
.scroll-cue i { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 760px) {
  .journey-shade {
    background:
      radial-gradient(80% 40% at 50% 34%, var(--glow), transparent 70%),
      linear-gradient(0deg, rgba(11,14,16,.96) 0%, rgba(11,14,16,.82) 38%, rgba(11,14,16,0) 62%),
      linear-gradient(180deg, rgba(11,14,16,.6) 0%, rgba(11,14,16,0) 16%);
  }
  .journey-copy { align-items: flex-end; padding-bottom: 36px; }
  .chapter { left: 0; right: 0; bottom: 36px; }
  .chapter h1 { font-size: 46px; margin: 16px 0 16px; }
  .chapter h2 { font-size: 36px; margin: 14px 0 14px; }
  .chapter .lede { font-size: 15.5px; margin-bottom: 20px; }
  .chapter .hero-cta .btn { flex: 1 1 auto; padding: 13px 16px; }
  .hud { padding: 12px 14px 8px; }
  .hud-row.best { margin-left: -14px; padding-left: 12px; }
  .journey-rail { right: 12px; top: 92px; transform: none; flex-direction: row; gap: 4px; }
  .journey-rail button span { display: none; }
  .journey-rail button::after { width: 10px; }
  .journey-rail button.on::after { width: 20px; }
  .scroll-cue { display: none; }
  .mini-steps { gap: 16px; }
}
@media (max-height: 640px) and (min-width: 761px) {
  .chapter h1 { font-size: 64px; } .chapter h2 { font-size: 48px; } .hud { display: none; }
}

/* Section scaffolding */
.psection { padding: 136px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 70px; }
.section-head { max-width: 780px; margin-bottom: 72px; }
.section-pre { margin: 0 0 22px; font-size: 15px; color: var(--accent-ink); font-weight: 600; display: flex; align-items: center; gap: 14px; }
.section-pre::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.split.dark .section-pre { color: var(--accent); }
.psection h2, .cta-band h2, .board-head h2 {
  font-weight: 800; font-stretch: 112%; font-size: clamp(36px, 4.6vw, 64px); line-height: .98; letter-spacing: -.035em;
}
.section-sub { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 26px 0 0; max-width: 620px; }

/* Steps along a road */
.road-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; position: relative; }
.road-steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 24px);
}
.road-steps li { position: relative; }
.step-n {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; background: var(--paper);
  border: 2px solid var(--ink); font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 24px;
}
.road-steps li:first-child .step-n { background: var(--accent); }
.road-steps h3 { font-size: 23px; font-weight: 700; font-stretch: 108%; letter-spacing: -.015em; margin: 30px 0 12px; }
.road-steps p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; max-width: 260px; }

/* Departures board */
.board-section { background: var(--night); color: var(--night-text); padding: 128px 0; scroll-margin-top: 70px; }
.board-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.board-head h2 { color: #fff; }
.board-head p { margin: 0; color: var(--night-muted); font-size: 15px; line-height: 1.6; max-width: 420px; }
.board { background: #07090a; border: 1px solid var(--night-line); padding: 10px 24px 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.board-row { display: grid; grid-template-columns: 1.35fr 1.35fr .55fr .75fr .8fr; gap: 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid #15191c; }
.board-row:last-child { border-bottom: 0; }
.board-th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #6f777d; padding: 12px 0 14px; }
.flap { display: flex; gap: 3px; font-family: var(--mono); font-weight: 600; font-size: 17px; color: #f2efe8; min-height: 32px; }
.flap i {
  font-style: normal; width: 1.15em; height: 1.75em; display: grid; place-items: center; position: relative;
  background: linear-gradient(#1a1f23 0 49%, #0d1013 49% 51%, #161a1e 51%); border-radius: 2px;
}
.flap i.sp { background: none; width: .55em; }
.flap.shield-cell i { color: var(--accent); }
.flap.settling i { color: #8a9196; }

/* Editorial split sections */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 104px; align-items: center; }
.split h2 { margin-bottom: 44px; }
.features { margin: 0 0 48px; border-top: 1px solid var(--line); }
.features div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.features dt { font-weight: 700; font-size: 15.5px; }
.features dd { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.split.dark { background: var(--night); color: var(--night-text); border-bottom-color: var(--night-line); }
.split.dark h2, .split.dark .features dt { color: #fff; }
.split.dark .features, .split.dark .features div { border-color: var(--night-line); }
.split.dark .features dd { color: #a9afb4; }

/* Paperwork: waybill-style quote and load ticket */
.docket-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.docket {
  --edge: var(--paper);
  position: relative; width: min(460px, 100%); background: #fbfaf6; color: var(--ink);
  padding: 30px 30px 26px; transform: rotate(-1.6deg);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 24px 50px -20px rgba(11,14,16,.35), 0 8px 18px -10px rgba(11,14,16,.2);
  -webkit-mask: radial-gradient(circle at 6px 0, transparent 5px, #000 5.5px) 0 0 / 14px 51% repeat-x, radial-gradient(circle at 6px 100%, transparent 5px, #000 5.5px) 0 100% / 14px 51% repeat-x;
  mask: radial-gradient(circle at 6px 0, transparent 5px, #000 5.5px) 0 0 / 14px 51% repeat-x, radial-gradient(circle at 6px 100%, transparent 5px, #000 5.5px) 0 100% / 14px 51% repeat-x;
}
.docket::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 27px, rgba(11,14,16,.035) 27px 28px); }
.docket-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.docket-head .mono { font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.docket-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-stretch: 125%; font-size: 13px; letter-spacing: .08em; }
.docket-brand .logo-mark { width: 20px; height: 20px; color: var(--ink); }
.docket-route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: end; padding: 22px 0 20px; border-bottom: 1px dashed var(--line-strong); }
.docket-route small, .docket-grid dt, .docket-total span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.docket-route b { display: block; font-size: 22px; font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; margin: 6px 0 2px; }
.docket-route span { font-size: 12.5px; color: var(--muted); }
.docket-route > div:last-child { text-align: right; }
.docket-route .ic { color: var(--accent-2); margin-bottom: 26px; }
.docket-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-bottom: 1px dashed var(--line-strong); }
.docket-grid div { padding: 14px 0; }
.docket-grid div + div { padding-left: 14px; border-left: 1px dashed var(--line-strong); }
.docket-grid dd { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; }
.docket-total { display: flex; justify-content: space-between; align-items: center; padding: 20px 0 16px; }
.docket-total b { font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.docket-foot { font-size: 12px; color: var(--muted); padding-top: 14px; border-top: 2px solid var(--ink); }
.stamp {
  position: absolute; left: 150px; bottom: 66px; transform: rotate(-9deg);
  border: 3px double var(--accent-2); color: var(--accent-2); padding: 6px 14px 5px;
  font-weight: 800; font-stretch: 125%; font-size: 17px; letter-spacing: .14em; text-transform: uppercase;
  opacity: .82; mix-blend-mode: multiply; border-radius: 3px;
}
.docket.ticket { transform: rotate(1.4deg); background: #f4f1e8; }
.docket-note { margin: 22px 0 0; font-size: 12px; color: var(--muted); }
.split.dark .docket-note { color: #5c656c; }

/* Pricing spec */
.pricing-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 88px; align-items: start; }
.pricing-split .section-head { margin: 0; }
.spec { border-top: 2px solid var(--ink); }
.spec-row { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.spec-row h3 { font-size: 15px; font-weight: 700; color: var(--accent-ink); }
.spec-row p { margin: 0; font-size: 18px; line-height: 1.55; }

/* CTA + footer */
.cta-band { background: var(--accent); color: var(--ink); padding: 112px 0; }
.cta-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; }
.cta-band h2 { font-size: clamp(40px, 5.4vw, 76px); }
.cta-side p { font-size: 19px; line-height: 1.55; margin: 0 0 28px; max-width: 420px; }
.cta-band .btn.accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-band .btn.accent:hover { background: var(--ink-2); border-color: var(--ink-2); }
.cta-band .btn.outline-light { color: var(--ink); border-color: rgba(0,0,0,.35); }
.cta-band .btn.outline-light:hover { background: rgba(0,0,0,.06); border-color: var(--ink); }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.pfoot { background: var(--night); color: var(--night-muted); padding: 80px 0 28px; font-size: 14px; overflow: hidden; }
.pfoot-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.pfoot-in > p { margin: 0; color: #c9cdd0; font-size: 18px; max-width: 320px; }
.pfoot-cols { display: flex; gap: 88px; }
.pfoot h4 { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.pfoot-cols a { display: block; text-decoration: none; padding: 4px 0; }
.pfoot-cols a:hover { color: #fff; }
.bigword {
  display: flex; align-items: center; gap: .14em; margin: 72px 0 0; color: #fff;
  font-family: var(--display); font-weight: 800; font-stretch: 125%; letter-spacing: .02em; line-height: .8;
  font-size: clamp(48px, 12.6vw, 196px); white-space: nowrap;
}
.bigword .logo-mark { width: .82em; height: .82em; color: #fff; flex: none; }
.pfoot-base { display: flex; justify-content: space-between; padding-top: 28px; margin-top: 40px; border-top: 1px solid var(--night-line); font-family: var(--mono); font-size: 12px; }

/* ---------- Sign in / join ---------- */
.authpage { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 46%) 1fr; }
.auth-side {
  background: var(--night); color: var(--night-text); padding: 40px 48px; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow: hidden;
}
.auth-side-copy { margin-top: auto; position: relative; z-index: 1; }
.auth-side h2 { color: #fff; font-weight: 800; font-stretch: 118%; font-size: clamp(38px, 4.4vw, 62px); line-height: .98; letter-spacing: -.03em; }
.auth-side p { color: var(--night-muted); max-width: 380px; margin: 18px 0 0; font-size: 16px; }
.auth-side .samap { position: absolute; right: -12%; top: 6%; width: 92%; opacity: .55; }
.auth-main { padding: 40px 48px; display: flex; flex-direction: column; }
.backlink { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; color: var(--muted); font-weight: 500; align-self: flex-start; }
.backlink:hover { color: var(--ink); }
.authbox { width: min(440px, 100%); margin: auto; padding: 48px 0; }
.authbox h1 { font-size: 36px; font-weight: 800; font-stretch: 112%; letter-spacing: -.025em; margin: 0 0 6px; }
.authbox > form > p { color: var(--muted); margin: 0 0 26px; }
.tabs { display: flex; gap: 28px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.tab { border: 0; background: none; padding: 0 0 14px; color: var(--muted); font-weight: 600; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.authbox label { margin: 14px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two label { margin: 0; }
.rolepick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.rolepick label { margin: 0; cursor: pointer; }
.rolepick input { position: absolute; opacity: 0; pointer-events: none; }
.rolepick span {
  display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--card); transition: border-color .15s, box-shadow .15s;
}
.rolepick span .ic { color: var(--muted); margin-bottom: 8px; }
.rolepick b { color: var(--ink); font-size: 14px; font-weight: 700; }
.rolepick small { font-size: 12px; color: var(--muted); font-weight: 400; }
.rolepick input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), inset 0 -3px 0 var(--accent); }
.rolepick input:checked + span .ic { color: var(--accent-2); }
.rolepick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.error { color: var(--bad); font-size: 13px; }
.error:not(:empty) { margin-top: 16px; background: var(--bad-soft); padding: 10px 12px; border-left: 3px solid var(--bad); }

/* =========================================================
   App (signed in)
   ========================================================= */
.layout { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar);
  background: var(--night); color: var(--night-text);
  padding: 22px 14px; display: flex; flex-direction: column; z-index: 30;
}
.brand { padding: 4px 10px 30px; }
.navlabel { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #5f686f; padding: 0 12px 10px; }
.sidebar nav button {
  display: flex; align-items: center; gap: 12px; position: relative;
  border: 0; background: transparent; color: #a3aab0;
  width: 100%; padding: 10px 12px; border-radius: var(--radius); text-align: left; margin: 1px 0;
  font-weight: 500; font-size: 14px; transition: background .15s, color .15s;
}
.sidebar nav button .ic { width: 17px; height: 17px; }
.sidebar nav button:hover { background: var(--night-2); color: #fff; }
.sidebar nav button.active { background: var(--night-3); color: #fff; }
.sidebar nav button.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; background: var(--accent); }
.sidebar nav button.active .ic { color: var(--accent); }
.sidebottom { margin-top: auto; border-top: 1px solid var(--night-line); padding: 16px 10px 2px; font-size: 12px; color: #cfd3d6; font-weight: 600; }
.sidebottom span { display: block; color: #5f686f; font-weight: 400; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }

.main { margin-left: var(--sidebar); min-height: 100vh; }
.top {
  height: 64px; background: rgba(245,243,238,.9); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 20;
}
.topleft { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.topright { display: flex; align-items: center; gap: 16px; }
.identity { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: var(--radius); background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; font-stretch: 112%;
}
.who { display: flex; flex-direction: column; line-height: 1.25; }
.who b { font-size: 13px; font-weight: 600; }
.who small { font-size: 11.5px; color: var(--muted); text-transform: capitalize; }
.content { max-width: 1320px; margin: 0 auto; padding: 40px 40px 80px; }
.scrim { display: none; }

.view { display: none; animation: rise .35s var(--ease); }
.view.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.heading > div:first-child { min-width: 0; }
.heading h1 { font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; font-stretch: 112%; letter-spacing: -.03em; line-height: 1.05; margin: 12px 0 8px; }
.heading p { margin: 0; color: var(--muted); max-width: 640px; }
.heading .btn { flex: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--accent); }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.stats:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
.stats:empty { display: none; }
.stat { padding: 22px 24px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat small { display: block; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.stat b { display: block; font-family: var(--display); font-size: 34px; font-weight: 700; font-stretch: 108%; letter-spacing: -.02em; margin: 12px 0 2px; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { font-size: 12.5px; color: var(--muted); }
.stat.accent { background: var(--night); border-radius: var(--radius) 0 0 var(--radius); position: relative; }
.stat.accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); }
.stat.accent small, .stat.accent span { color: var(--night-muted); }
.stat.accent b { color: #fff; }
.stat.accent + .stat { border-left-color: transparent; }
.stats > .skeleton { height: 112px; border-radius: 0; }

/* Panels */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panelhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel h2 { font-size: 18px; font-weight: 700; font-stretch: 106%; letter-spacing: -.01em; }
.panel h3 { font-size: 13px; font-family: var(--mono); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 30px 0 14px; }

/* Tables */
.tablewrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
table { border-collapse: collapse; width: 100%; white-space: nowrap; }
th { text-align: left; color: var(--muted); font-family: var(--mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; padding: 12px 14px; border-bottom: 1px solid var(--ink); }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td { padding: 16px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover td { background: #faf9f6; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { font-family: var(--mono); font-size: 13.5px; }
td.actions { text-align: right; }
td b { font-weight: 600; }
.sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; font-family: var(--body); font-weight: 400; }
.rowactions { display: inline-flex; gap: 6px; }
.wrapcell { white-space: normal; min-width: 170px; }
td.wrap { white-space: normal; min-width: 180px; max-width: 320px; color: var(--ink-2); }
.bidgroup + .bidgroup { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }

/* Toolbar */
.toolbar { display: flex; gap: 10px; margin-bottom: 20px; }
.searchbox { position: relative; flex: 0 1 420px; }
.searchbox .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.searchbox input { padding-left: 38px !important; }
.toolbar input, .toolbar select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); outline: none;
}
.toolbar select { width: auto; min-width: 180px; }

/* Load cards */
.loadgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.loadcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; transition: border-color .18s, transform .18s var(--ease), box-shadow .18s;
}
.loadcard:hover { border-color: var(--ink); box-shadow: 6px 6px 0 var(--paper-2); transform: translate(-1px, -1px); }
.loadtop { display: flex; justify-content: space-between; align-items: center; }
.ref { color: var(--muted); font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; }
.muted { color: var(--muted); }
.route { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--display); font-size: 21px; font-weight: 700; font-stretch: 108%; margin: 16px 0 4px; letter-spacing: -.02em; line-height: 1.2; }
.route .ic { color: var(--accent-2); width: 18px; height: 18px; }
.cargo { color: var(--muted); font-size: 13.5px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-2); font-size: 12.5px; margin: 18px 0; padding: 12px 0; border-block: 1px dashed var(--line); }
.meta span { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; }
.meta .ic { width: 15px; height: 15px; color: var(--muted); }
.notes { font-size: 13px; color: var(--ink-2); background: var(--paper); border-left: 2px solid var(--line-strong); padding: 9px 12px; margin: -6px 0 18px; }
.loadbottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; }
.rate { font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rate small { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.rate.none { font-size: 14px; color: var(--muted); font-weight: 500; font-family: var(--body); letter-spacing: 0; }

/* Status tags */
.pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 2px; padding: 4px 8px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--paper-2); color: var(--ink-2); white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.pill.open, .pill.pending { background: var(--info-soft); color: var(--info); }
.pill.awarded, .pill.collected, .pill.in_transit { background: var(--accent-soft); color: var(--accent-ink); }
.pill.delivered, .pill.accepted, .pill.verified, .pill.paid { background: var(--good-soft); color: var(--good); }
.pill.rejected, .pill.cancelled, .pill.withdrawn { background: var(--bad-soft); color: var(--bad); }
.pill.unverified { background: var(--warn-soft); color: var(--warn); }
.pill.role { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); }
.pill.role::before { display: none; }

/* Forms */
.formpanel { max-width: 900px; padding: 32px 36px 36px; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; align-items: start; }
.formgrid.three { grid-template-columns: 1.2fr 1fr .8fr auto; align-items: end; }
.formsection { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); margin-top: 6px; }
.formsection:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.formgrid label, .authbox label, .dialogbox label {
  display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink);
}
label small { font-weight: 400; color: var(--muted); font-size: 12px; }
.formgrid input, .formgrid select, .formgrid textarea,
.authbox input:not([type=radio]), .dialogbox input, .dialogbox textarea {
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px 13px; background: var(--card);
  outline: none; width: 100%; color: var(--ink); font-weight: 400; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink) !important; box-shadow: 0 0 0 3px rgba(255,90,31,.22); }
input::placeholder, textarea::placeholder { color: #a9aca8; }
.prefix { position: relative; }
.prefix span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--mono); font-size: 14px; }
.prefix input { padding-left: 30px !important; font-family: var(--mono); }
.hint { font-size: 13px; color: var(--muted); align-self: end; padding-bottom: 12px; }
.span2 { grid-column: 1 / -1; }
.formactions { display: flex; justify-content: flex-end; }
.formgrid.three .formactions { justify-content: flex-start; }
.compact { padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }

.empty { padding: 56px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 18px; font-weight: 700; font-stretch: 106%; margin-bottom: 6px; }
.empty .btn { margin-top: 20px; }
.loadgrid > .empty, .loadgrid > .panel { grid-column: 1 / -1; }
.skeleton { height: 140px; border-radius: var(--radius); background: linear-gradient(90deg, var(--paper-2) 0%, #f4f2ec 50%, var(--paper-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Tracking */
.trackhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.trackhead h2 { font-size: 26px; font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; margin: 8px 0 4px; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); margin: 36px 0 10px; }
.trackstep { position: relative; font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 38px; }
.trackstep i {
  position: absolute; top: 0; left: 0; z-index: 1; width: 26px; height: 26px; background: var(--card);
  border: 1.5px solid var(--line-strong); display: grid; place-items: center; border-radius: 2px;
}
.trackstep::before { content: ""; position: absolute; top: 12px; left: 26px; right: 0; height: 2px; background: var(--line); }
.trackstep:last-child::before { display: none; }
.trackstep.done { color: var(--ink); }
.trackstep.done i { background: var(--ink); border-color: var(--ink); color: #fff; }
.trackstep.done i .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.trackstep.done::before { background: var(--ink); }
.trackstep.current i { background: var(--accent); border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 5px rgba(255,90,31,.2); }
.trackstep.current::before { background: linear-gradient(90deg, var(--accent), var(--line)); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 28px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 9px; height: 9px; background: var(--accent); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 20px; bottom: 2px; width: 1px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline b { text-transform: capitalize; }
.updatebox { margin-top: 24px; padding: 22px; background: var(--paper); border: 1px solid var(--line); }
.updatebox h3 { margin-top: 0; }

/* Dialog */
.dialog { position: fixed; inset: 0; background: rgba(11,14,16,.6); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; z-index: 50; animation: fadein .15s; }
@keyframes fadein { from { opacity: 0; } }
.dialogbox { background: var(--card); padding: 30px; border-radius: var(--radius); border: 1px solid var(--ink); width: min(480px, 100%); position: relative; box-shadow: 12px 12px 0 rgba(0,0,0,.25); animation: pop .2s var(--ease); }
@keyframes pop { from { transform: translateY(10px); opacity: 0; } }
.dialogbox h2 { margin: 0 0 16px; font-size: 24px; font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; }
.dialogbox label { margin: 14px 0; }
.bidcaption { background: var(--paper); border-left: 3px solid var(--accent); padding: 12px 14px; font-size: 13px; }
.bidcaption b { display: block; font-size: 15px; }
.close { position: absolute; right: 16px; top: 16px; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; max-width: min(400px, calc(100vw - 32px));
  background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--radius);
  z-index: 60; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
  border-left: 4px solid var(--accent); font-size: 14px;
}
.toast.show { opacity: 1; transform: none; }
.toast.err { border-left-color: #f0645a; }

.mobile { display: none; }

/* ---------- Invoice (print) ---------- */
.printarea { display: none; }
.invoice { max-width: 760px; margin: 0 auto; color: #111; font-size: 13px; }
.invoice header { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.invoice h1 { font-size: 32px; margin: 0; font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; }
.invoice .from b { font-size: 18px; }
.invoice .meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 26px 0; }
.invoice .meta-grid h4 { margin: 0 0 6px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: #666; }
.invoice table { white-space: normal; }
.invoice td, .invoice th { font-size: 13px; }
.invoice .totals { margin-left: auto; width: 300px; margin-top: 14px; font-family: var(--mono); }
.invoice .totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.invoice .totals .grand { border-top: 2px solid var(--ink); font-weight: 700; font-size: 16px; margin-top: 4px; padding-top: 10px; }
.invoice .pay { margin-top: 30px; padding: 16px 18px; background: #f5f3ee; border-left: 3px solid var(--accent); }
.invoice .paidstamp { color: var(--good); border: 2px solid var(--good); padding: 4px 10px; font-weight: 800; display: inline-block; margin-top: 8px; font-family: var(--mono); letter-spacing: .1em; }
@media print {
  body.printing > *:not(#printArea) { display: none !important; }
  body.printing #printArea { display: block; }
  body.printing { background: #fff; }
  @page { margin: 18mm; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .stats, .stats:has(> :nth-child(3):last-child) { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat.accent { border-radius: var(--radius) 0 0 0; }
  .formgrid.three { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-map { max-width: 620px; justify-self: center; width: 100%; }
  .hero-foot { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .hero-foot span:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-foot span:nth-child(n+3) { border-top: 1px solid var(--night-line); }
  .road-steps { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .road-steps::before { display: none; }
  .split-grid { gap: 64px; }
  .board-head, .pricing-split, .cta-in { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .pnav-links { display: none; }
  .split-grid { grid-template-columns: 1fr; }
  .split-grid.reverse > .docket-wrap { order: 2; }
  .board-row { grid-template-columns: 1.2fr 1.2fr .6fr; }
  .board-row > :nth-child(4), .board-row > :nth-child(5) { display: none; }
  .authpage { grid-template-columns: 1fr; }
  .auth-side { position: relative; height: auto; min-height: 0; padding: 28px 24px 32px; }
  .auth-side-copy { margin-top: 40px; }
  .auth-side h2 { font-size: 34px; }
  .auth-side .samap { width: 70%; right: -14%; top: -4%; }
  .auth-main { padding: 24px; }
  .authbox { padding: 24px 0 48px; }

  .sidebar { transform: translateX(-100%); transition: transform .25s var(--ease); }
  .sidebar.open { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(11,14,16,.5); z-index: 25; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .sidebar.open + .scrim { opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; }
  .mobile { display: inline-grid; }
  .top { height: 58px; padding: 0 16px; }
  .content { padding: 26px 16px 56px; }
  .who { display: none; }
}
@media (max-width: 640px) {
  .pwrap { width: calc(100% - 32px); }
  .pnav-in { height: 64px; gap: 12px; }
  .pnav-cta { gap: 14px; }
  .pnav-cta .btn { padding: 9px 13px; font-size: 13px; }
  .hero { padding: 116px 0 0; }
  .lede { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-foot { grid-template-columns: 1fr; margin-top: 40px; }
  .hero-foot span, .hero-foot span + span { padding: 16px 0; border-left: 0; border-top: 1px solid var(--night-line); }
  .psection, .board-section { padding: 88px 0; }
  .section-head { margin-bottom: 48px; }
  .road-steps { grid-template-columns: 1fr; row-gap: 40px; }
  .features div { grid-template-columns: 1fr; gap: 6px; }
  .spec-row { grid-template-columns: 1fr; gap: 8px; }
  .board { padding: 6px 12px 10px; }
  .board-row { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .board-row > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .board-row > :nth-child(2) { grid-column: 1; grid-row: 2; }
  .board-row > :nth-child(3) { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .board-th > :nth-child(2) { display: none; }
  .board-th > :nth-child(3) { grid-row: 1; }
  .flap { font-size: 11px; gap: 1.5px; min-height: 20px; }
  .flap i { width: 1.1em; height: 1.7em; }
  .flap i.sp { width: .35em; }
  .docket { padding: 24px 20px 20px; }
  .docket-grid { grid-template-columns: 1fr 1fr; }
  .docket-grid div:nth-child(3) { padding-left: 0; border-left: 0; }
  .docket-grid div:nth-child(n+3) { border-top: 1px dashed var(--line-strong); }
  .docket-route b { font-size: 18px; }
  .stamp { left: 16px; bottom: 60px; font-size: 11px; padding: 4px 9px 3px; }
  .pfoot-cols { gap: 48px; }
  .cta-band { padding: 72px 0; }
  .cta-buttons .btn { flex: 1 1 auto; }

  .heading { flex-direction: column; align-items: stretch; }
  .stat { padding: 16px; }
  .stat b { font-size: 24px; }
  .loadgrid { grid-template-columns: 1fr; }
  .formgrid, .formgrid.three { grid-template-columns: 1fr; }
  .formpanel { padding: 20px; }
  .panel { padding: 18px; }
  .tablewrap { margin: 0 -18px; padding: 0 18px; }
  .hint { padding: 0; }
  .formactions .btn { width: 100%; }
  .toolbar { flex-direction: column; }
  .searchbox { flex: auto; }
  .toolbar select { width: 100%; }
  .two { grid-template-columns: 1fr; }
  .two label { margin: 14px 0 0; }
  .track { grid-template-columns: 1fr; gap: 0; margin: 24px 0; }
  .trackstep { padding: 3px 0 20px 42px; }
  .trackstep::before { top: 26px; left: 12px; width: 2px; height: calc(100% - 26px); right: auto; }
  .toast { right: 16px; bottom: 16px; }
}

/* ===================== Contact, account, documents, notifications ===================== */
[hidden] { display: none !important; }
.wa-link { display: inline-flex; align-items: center; gap: 7px; }
.wa-link .ic { width: 17px; height: 17px; color: #25d366; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 45; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float .ic { width: 28px; height: 28px; stroke: #fff; }
body:not(.signed-out) .wa-float, #landing[hidden] ~ .wa-float { display: none; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; padding: 24px 26px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .2s var(--ease), box-shadow .2s; }
.contact-card:hover { border-color: var(--ink); box-shadow: 6px 6px 0 var(--paper-2); transform: translate(-1px, -1px); }
.contact-card .ic { grid-row: span 3; width: 30px; height: 30px; color: var(--accent-2); }
.contact-card small { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-card b { font-size: 20px; font-weight: 700; font-stretch: 106%; overflow-wrap: anywhere; }
.contact-card span { font-size: 13.5px; color: var(--muted); }
.authalt { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.authalt a { color: var(--ink); font-weight: 600; }
.okbox, .warnbox, .infobox { padding: 12px 14px; font-size: 13.5px; line-height: 1.5; margin: 0 0 16px; border-left: 3px solid; }
.okbox { background: var(--good-soft); border-color: var(--good); color: #174d31; }
.warnbox { background: var(--warn-soft); border-color: var(--warn); color: #6b4400; }
.infobox { background: var(--info-soft); border-color: var(--info); color: #1b3f5f; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.infobox .textbtn { color: inherit; }
#forgotDone { margin-top: 16px; }
.navcount { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--ink); font: 700 11px/20px var(--mono); text-align: center; font-style: normal; }
.sidebottom a { display: flex; align-items: center; gap: 8px; color: #cfd3d6; text-decoration: none; font-weight: 500; margin-top: 10px; font-size: 12.5px; }
.sidebottom a:hover { color: #fff; }
.sidebottom a .ic { width: 15px; height: 15px; color: var(--accent); }

/* Notifications */
.bellwrap { position: relative; }
.bell { position: relative; }
.bell i { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--ink); font: 700 10px/17px var(--mono); font-style: normal; }
.bellpanel { position: absolute; right: 0; top: calc(100% + 10px); width: min(380px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--ink); box-shadow: 10px 10px 0 rgba(0,0,0,.12); z-index: 60; }
.bellhead, .bellfoot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bellfoot { border-bottom: 0; border-top: 1px solid var(--line); }
#bellList { max-height: min(60vh, 440px); overflow: auto; }
.note { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 12px 16px 12px 26px; position: relative; cursor: pointer; }
.note:hover { background: var(--paper); }
.note b { display: block; font-size: 13.5px; font-weight: 600; }
.note span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.note small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 5px; }
.note.unread::before { content: ""; position: absolute; left: 11px; top: 17px; width: 7px; height: 7px; background: var(--accent); }
.note:not(.unread) b { font-weight: 500; color: var(--ink-2); }
.bellempty { padding: 28px 18px; text-align: center; color: var(--muted); font-size: 13px; }

/* Post a load */
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.seg.small { margin-top: 8px; font-weight: 400; }
.seg label { margin: 0 !important; cursor: pointer; display: block !important; }
.seg label { position: relative; }
.seg input { position: absolute; left: 0; top: 0; width: 1px !important; height: 1px; opacity: 0; pointer-events: none; }
.seg span { display: flex; flex-direction: column; gap: 2px; padding: 13px 15px; border: 1px solid var(--line-strong); background: var(--card); transition: border-color .15s; }
.seg span b { font-size: 14px; color: var(--ink); }
.seg span small { font-size: 12px; color: var(--muted); }
.seg input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), inset 0 -3px 0 var(--accent); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.checks label, .formgrid .checks label { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 9px; font-weight: 500; font-size: 14px; margin: 0; cursor: pointer; }
.checks input, .togglelist input, .toggleline input, .inscheck input { width: 18px !important; height: 18px; padding: 0 !important; accent-color: var(--accent-2); flex: none; }
.stopsbox { border: 1px dashed var(--line-strong); padding: 16px; background: var(--paper); }
.stopshead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stopshead b { display: block; font-size: 14px; }
.stopshead small { color: var(--muted); font-size: 12.5px; }
.stop { display: grid; grid-template-columns: 120px 1fr 1.6fr 1fr 1fr auto; gap: 8px; margin-top: 12px; align-items: center; }
.stop input, .stop select { width: 100%; padding: 10px 11px; border: 1px solid var(--line-strong); background: var(--card); border-radius: var(--radius); font-size: 14px; outline: none; }
.privacy-note, .formnote { font-size: 12.5px; color: var(--muted); margin: -4px 0 0; }
.formnote { margin: 8px 0 12px; }
.insbox { border: 1px solid var(--line); padding: 16px; background: var(--card); }
.inscheck { display: flex !important; flex-direction: row !important; gap: 12px; align-items: flex-start; cursor: pointer; margin: 0 !important; }
.inscheck span b { display: block; font-size: 14.5px; }
.inscheck span small { display: block; margin-top: 2px; }
.insfields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-top: 16px; align-items: end; }
.insquote { background: var(--paper); border-left: 3px solid var(--accent); padding: 10px 14px; }
.insquote small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.insquote b { font-family: var(--mono); font-size: 22px; }
.insquote span { display: block; font-size: 12px; color: var(--muted); }

/* Load tags, services, details */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--line-strong); color: var(--ink-2); background: var(--card); }
.tag.part { border-color: var(--ink); color: var(--ink); }
.tag.svc { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.tag.haz { border-color: #e9c3bf; color: var(--bad); background: var(--bad-soft); }
.tag.ok { border-color: #b9dcc7; color: var(--good); background: var(--good-soft); }
.svc { font-weight: 600; }
.svc.express { color: var(--accent-ink); }
.svc.economy { color: var(--info); }
.okt { color: var(--good); font-weight: 600; }
.loaddetail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; margin: 24px 0 8px; padding: 22px; background: var(--paper); border: 1px solid var(--line); }
.loaddetail h3 { margin: 0 0 12px; }
.routepoints { list-style: none; margin: 0; padding: 0; }
.routepoints li { position: relative; padding: 0 0 16px 26px; }
.routepoints li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 9px; background: var(--ink); }
.routepoints li.dropoff::before { background: var(--accent); }
.routepoints li::after { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 1px; background: var(--line-strong); }
.routepoints li:last-child { padding-bottom: 0; }
.routepoints li:last-child::after { display: none; }
.routepoints small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.routepoints b { display: block; font-size: 15px; }
.routepoints span { display: block; font-size: 13px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 0; }
.specs.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.specs .full { grid-column: 1 / -1; }
.specs dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }

/* Settings */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.settings-grid > .panel:first-child:not(.hidden), .settings-grid > [data-roles].panel:not(.hidden) { grid-column: 1 / -1; }
.panelintro { color: var(--muted); font-size: 13.5px; margin: -6px 0 16px; }
.toggleline { display: flex !important; flex-direction: row !important; gap: 12px; align-items: flex-start; cursor: pointer; }
.toggleline span b, .togglelist span b { display: block; font-size: 14px; color: var(--ink); }
.toggleline span small, .togglelist span small { display: block; font-weight: 400; }
.togglelist { display: grid; }
.togglelist label { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line); cursor: pointer; }
.togglelist label:first-child { border-top: 0; padding-top: 0; }
.formactions.gap { gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* Documents */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); }
.checklist li > div { flex: 1; min-width: 0; }
.checklist b { display: block; font-size: 14px; }
.checklist span { font-size: 12.5px; color: var(--muted); }
.checklist i { flex: none; width: 24px; height: 24px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; background: var(--card); }
.checklist i .ic { width: 15px; height: 15px; }
.checklist li.approved i { background: var(--good); border-color: var(--good); color: #fff; }
.checklist li.pending i { border-color: var(--info); background: var(--info-soft); }
.checklist li.rejected { border-color: #e9c3bf; background: var(--bad-soft); }
.checklist li.rejected span { color: var(--bad); }
.docform { margin-bottom: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.docform input[type=file] { padding: 8px; background: var(--card); }
.dialogbox.wide { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
.dialogbox .formgrid label { margin: 0; }
.copybox { width: 100%; font-family: var(--mono); font-size: 12.5px; padding: 10px; border: 1px solid var(--line-strong); margin: 8px 0 14px; word-break: break-all; }

@media (max-width: 1100px) {
  .stop { grid-template-columns: 1fr 1fr; }
  .stop [data-k=address], .stop [data-k=town] { grid-column: 1 / -1; }
  .stop .iconbtn { justify-self: end; grid-column: 2; grid-row: 1; }
  .stop [data-k=kind] { grid-column: 1; grid-row: 1; }
}
@media (max-width: 900px) {
  .settings-grid, .checklist { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .loaddetail { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 760px) {
  .wa-link span { display: none; }
  .pnav-cta { gap: 16px; }
  .wa-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .insfields, .specs.wide { grid-template-columns: 1fr; }
  .stopshead { flex-direction: column; align-items: stretch; }
  .seg { grid-template-columns: 1fr; }
  .seg.small { grid-template-columns: repeat(3, 1fr); }
  .seg.small span { padding: 10px; }
  .seg.small small { display: none; }
  .who { display: none; }
}

/* ===================== Legal pages ===================== */
.legal-page { background: var(--paper); color: var(--ink); }
.legal-wrap { width: min(860px, calc(100% - 32px)); margin: 0 auto; }
.legal-top { background: var(--night); color: #fff; position: sticky; top: 0; z-index: 10; }
.legal-top-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.legal-top .logo, .legal-top .logo-mark { color: #fff; }
.legal-top nav { display: flex; gap: 22px; }
.legal-top nav a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 14px; font-weight: 500; }
.legal-top nav a:hover, .legal-top nav a[aria-current] { color: #fff; }
.legal-top nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.legal { padding: 64px 0 96px; font-size: 16px; line-height: 1.65; }
.legal-pre { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 12px; }
.legal h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; font-stretch: 112%; letter-spacing: -.03em; line-height: 1.02; margin: 0 0 14px; }
.legal-meta { color: var(--muted); font-size: 14px; margin: 0 0 36px; }
.legal section { scroll-margin-top: 88px; padding-top: 18px; }
.legal h2 { font-size: 24px; font-weight: 800; font-stretch: 108%; letter-spacing: -.015em; margin: 36px 0 12px; }
.legal h3 { font-size: 16px; font-weight: 700; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent-ink); }
.legal-summary { background: var(--night); color: var(--night-text); padding: 26px 30px; border-left: 4px solid var(--accent); }
.legal-summary h2 { color: #fff; margin: 0 0 8px; font-size: 20px; }
.legal-summary li { color: var(--night-text); }
.legal-summary a { color: #ffb08f; }
.legal-toc { margin: 28px 0 0; padding: 22px 26px; background: var(--card); border: 1px solid var(--line); }
.legal-toc b { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal-toc ol { columns: 2; column-gap: 32px; margin: 10px 0 0; font-size: 14.5px; }
.legal-toc a { color: var(--ink); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; background: var(--card); border: 1px solid var(--line); }
.legal-table th, .legal-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--paper-2); }
.legal-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; padding: 18px 22px; background: var(--card); border: 1px solid var(--line); margin: 16px 0; }
.legal-contact dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal-contact dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.popia-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 8px; }
.popia-grid > div { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 16px 18px; }
.popia-grid b { font-size: 15px; }
.popia-grid p { margin: 6px 0 0; font-size: 14.5px; }
.legal-foot { background: var(--night); color: var(--night-muted); font-size: 13px; padding: 28px 0; }
.legal-foot-in { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.legal-foot a { color: #cfd3d6; }
.pfoot-legal { display: flex; gap: 18px; }
.pfoot-legal a { color: inherit; }
.consent { display: flex !important; flex-direction: row !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 13px !important; color: var(--ink-2) !important; line-height: 1.5; }
.consent input { width: 18px !important; height: 18px; margin-top: 1px; padding: 0 !important; flex: none; accent-color: var(--accent-2); }
.consent a { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .legal-top nav a:last-child { display: none; }
  .legal-top nav { gap: 14px; }
  .legal-top nav a { font-size: 13px; }
  .legal { padding: 40px 0 64px; font-size: 15.5px; }
  .legal-summary { padding: 20px; }
  .legal-toc ol { columns: 1; }
  .legal-contact, .popia-grid { grid-template-columns: 1fr; }
  .legal-table { display: block; overflow-x: auto; }
}
