/* TenderPraz design system: tokens, app shell and components.
   Light is the default; [data-theme="dark"] on <html> switches every token. Colours were checked for
   WCAG AA text contrast and the chart palette with the dataviz validator (see the UI plan). */

:root {
  color-scheme: light;
  --page: #F5F7FB; --surface: #FFFFFF; --surface-2: #F8FAFC; --hair: #E4E8F0; --hair-2: #EEF1F6;
  --ink: #0B1534; --ink-2: #4A5470; --muted: #626C87;
  --navy: #001356; --navy-2: #000A33; --azure: #0081FB;
  --link: #0070DC; --btn: #0070DC; --btn-h: #005FBD; --sel: #005FBD; --wash: #E6F2FF;
  --good: #0CA30C; --warn: #FAB219; --serious: #EC835A; --crit: #D03B3B;
  --good-ink: #137333; --warn-ink: #8A5A00; --serious-ink: #A4461C; --crit-ink: #B42323;
  --band-lo: #86B6EF; --band-mid: #3987E5; --band-hi: #1C5CAB; --track: #E8EEF7;
  --c1: #0081FB; --c2: #EB6834; --c3: #1BAF7A; --c4: #EDA100; --c5: #E87BA4; --c6: #008300; --c7: #6250D6; --c8: #E34948;
  --tip-bg: #0B1534; --tip-ink: #FFFFFF;
  --shadow: 0 1px 2px rgba(11, 21, 52, .04), 0 1px 3px rgba(11, 21, 52, .05);
  --shadow-hover: 0 6px 18px rgba(11, 21, 52, .08);
  --shadow-lg: 0 18px 44px rgba(11, 21, 52, .18);
  --ring: 0 0 0 3px rgba(0, 112, 220, .22);
  --r: 12px; --r-sm: 8px;
  --side-w: 248px; --top-h: 60px;
  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}
[data-theme="dark"] {
  color-scheme: dark;
  --page: #070D1C; --surface: #0F1729; --surface-2: #131D33; --hair: #1E2A42; --hair-2: #18233A;
  --ink: #EEF2FA; --ink-2: #B4BED3; --muted: #8A94AB;
  --azure: #2F8FFF; --link: #5AA6FF; --sel: #5AA6FF; --wash: #16284A;
  --good-ink: #3CC26B; --warn-ink: #FAB219; --serious-ink: #F08A63; --crit-ink: #FF7B7B;
  --band-lo: #184F95; --band-mid: #2A78D6; --band-hi: #6DA7EC; --track: #1A2540;
  --c1: #2F8FFF; --c2: #D95926; --c3: #199E70; --c4: #C98500; --c5: #D55181; --c6: #008300; --c7: #9085E9; --c8: #E66767;
  --tip-bg: #E6ECF7; --tip-ink: #0B1534;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-hover: 0 6px 18px rgba(0, 0, 0, .45);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, .55);
  --ring: 0 0 0 3px rgba(90, 166, 255, .3);
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.5 var(--font); color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
img { max-width: 100%; }
code { font: 12px/1.4 var(--mono); padding: 2px 7px; border: 1px solid var(--hair); border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js .js-hide { display: none !important; }

/* ------------------------------------------------------------------ shell */

.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; z-index: 30; display: flex; flex-direction: column; gap: 4px; height: 100vh; padding: 16px 12px;
        overflow-y: auto; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #A9B6D9; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; color: #fff; font-size: 16.5px; font-weight: 650;
         letter-spacing: -.015em; text-decoration: none !important; white-space: nowrap; }
.brand svg { width: 32px; height: 32px; flex: none; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-i { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 0 12px; border: 0;
         border-radius: var(--r-sm); background: none; color: #A9B6D9; font: inherit; font-size: 14px; font-weight: 500;
         text-align: left; white-space: nowrap; text-decoration: none !important; cursor: pointer; transition: background .15s, color .15s; }
.nav-i:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-i.on { background: rgba(0, 129, 251, .22); color: #fff; }
.nav-i.on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--azure); }
.nav-i .ic { width: 20px; height: 20px; }
.side-foot { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.shell.rail { grid-template-columns: 72px minmax(0, 1fr); }
.rail .nav-i span, .rail .brand span { display: none; }
.rail .nav-i { justify-content: center; padding: 0; }
.rail .brand { justify-content: center; padding-left: 0; padding-right: 0; }
.rail .collapse .ic { transform: rotate(180deg); }
.main { display: flex; flex-direction: column; min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: var(--top-h); padding: 0 28px;
       border-bottom: 1px solid var(--hair); background: color-mix(in srgb, var(--page) 86%, transparent);
       -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.top .search { flex: 0 1 420px; }
.top .search input { background: var(--surface); }
.top-r { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.who { display: flex; align-items: center; gap: 10px; margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--hair);
       color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.who .logo { display: block; width: auto; height: 22px; }
[data-theme="dark"] .who .logo { filter: brightness(0) invert(1); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--wash); color: var(--sel);
          font-size: 12px; font-weight: 700; }
.page { width: 100%; max-width: 1600px; margin: 0 auto; padding: 24px 28px 56px; }
.page > * + * { margin-top: 16px; }
.page > .head + *, .page > .back + * { margin-top: 0; }
.top .menu-btn, .scrim { display: none; }

@media (max-width: 1200px) {
  .shell, .shell.rail { grid-template-columns: 72px minmax(0, 1fr); }
  .shell .nav-i span, .shell .brand span { display: none; }
  .shell .nav-i { justify-content: center; padding: 0; }
  .shell .brand { justify-content: center; padding-left: 0; padding-right: 0; }
  .collapse { display: none !important; }
}
@media (max-width: 860px) {
  .shell, .shell.rail { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 264px; transform: translateX(-100%); transition: transform .2s ease; }
  .shell .side .nav-i span, .shell .side .brand span { display: inline; }
  .shell .side .nav-i { justify-content: flex-start; padding: 0 12px; }
  .shell .side .brand { justify-content: flex-start; padding: 4px 8px 22px; }
  .menu-open .side { transform: none; box-shadow: var(--shadow-lg); }
  .menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(7, 13, 28, .45); }
  .top .menu-btn { display: inline-grid; }
  .top { gap: 8px; padding: 0 12px; }
  .who { padding-left: 10px; }
  .who span:not(.avatar) { display: none; }
  .page { padding: 18px 16px 48px; }
}
@media (max-width: 480px) {
  .who:has(.logo) { display: none; }
  .head h1 { font-size: 21px; }
}

/* ------------------------------------------------------------------ page header */

.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.head-main { flex: 1 1 520px; min-width: 0; }
.head h1 { font-size: 24px; line-height: 1.25; font-weight: 650; letter-spacing: -.02em; }
.head-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 10px; color: var(--ink-2); font-size: 13.5px; }
.meta > span { display: inline-flex; align-items: center; gap: 6px; }
.meta .ic { width: 16px; height: 16px; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px; color: var(--muted); font-size: 13px; font-weight: 500; }
.back:hover { color: var(--ink); text-decoration: none; }
.back .ic { width: 16px; height: 16px; }
.updated { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.updated .ic { width: 15px; height: 15px; }

/* ------------------------------------------------------------------ layout helpers */

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.end { justify-content: flex-end; }
@media (max-width: 1100px) { .g3, .g-side { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) { .g2 { grid-template-columns: minmax(0, 1fr); } }
.muted { color: var(--muted); }
.lines { white-space: pre-line; }
.small { font-size: 12px; }
.strong { font-weight: 600; }
.cap { text-transform: capitalize; }
.nowrap { white-space: nowrap; }
.sub { margin-top: 2px; color: var(--muted); font-size: 12px; }

/* ------------------------------------------------------------------ cards and KPI tiles */

.card { min-width: 0; border: 1px solid var(--hair); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.card-h h2 { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.card-b { padding: 14px 18px 18px; }
.card-b.flush { padding: 10px 0 0; }
.card-b.flush:has(> .empty) { padding: 0; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.kpi { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 18px; overflow: hidden;
       border: 1px solid var(--hair); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow);
       color: inherit; text-decoration: none !important; }
a.kpi { transition: border-color .15s, box-shadow .15s; }
a.kpi:hover { border-color: color-mix(in srgb, var(--link) 45%, var(--hair)); box-shadow: var(--shadow-hover); }
.kpi.on { border-color: var(--link); box-shadow: var(--ring); }
.kpi .l { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi .v { color: var(--ink); font-size: 28px; line-height: 1.15; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; }
.kpi .v .due { font-size: 15px; letter-spacing: 0; }
.kpi .s { color: var(--muted); font-size: 12px; }
.kpi .spark { position: absolute; right: 16px; bottom: 16px; width: 88px; height: 30px; color: var(--c1); }
.kpi.wide { grid-column: span 2; }
@media (max-width: 600px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 14px; }
  .kpi .v { font-size: 22px; }
  .kpi.wide { grid-column: 1 / -1; }
  .kpi:not(.hero) .spark { display: none; }
}
@media (min-width: 1000px) {
  .kpis.k5 { grid-template-columns: minmax(290px, 2fr) repeat(4, minmax(0, 1fr)); }
  .kpis.k5 .kpi.wide { grid-column: auto; }
}
.score-tile { flex-direction: row; align-items: center; gap: 18px; }
.meters { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }

/* ------------------------------------------------------------------ tables */

.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { padding: 10px 14px; border-bottom: 1px solid var(--hair); background: var(--surface); color: var(--muted);
          font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--hair-2); vertical-align: top; }
.tbl th:first-child, .tbl td:first-child { padding-left: 18px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 18px; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .t { color: var(--ink); font-weight: 600; }
.tbl .t:hover { color: var(--link); text-decoration: none; }
.tbl th[data-sort] { cursor: pointer; user-select: none; }
.tbl th[data-sort]:hover { color: var(--ink); }
.tbl th[aria-sort="ascending"]::after { content: " ↑"; }
.tbl th[aria-sort="descending"]::after { content: " ↓"; }
.tbl .w-score { width: 72px; }
.tbl .w-text { min-width: 260px; }
.tbl .file { max-width: 240px; height: 28px; }
.tbl .file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .act { width: 1%; white-space: nowrap; text-align: right; }
.databar { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.databar .bar { width: 64px; height: 6px; overflow: hidden; border-radius: 3px; background: var(--track); }
.databar .bar i { display: block; height: 100%; border-radius: 0 3px 3px 0; background: var(--c1); }

/* ------------------------------------------------------------------ chips, tags, badges */

.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border: 1px solid var(--hair);
        border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 600;
        white-space: nowrap; vertical-align: middle; }
.chip .ic { width: 14px; height: 14px; }
.chip.good, .chip.warn, .chip.serious, .chip.crit, .chip.info { border-color: transparent; }
.chip.good { background: color-mix(in srgb, var(--good) 12%, var(--surface)); color: var(--good-ink); }
.chip.warn { background: color-mix(in srgb, var(--warn) 18%, var(--surface)); color: var(--warn-ink); }
.chip.serious { background: color-mix(in srgb, var(--serious) 16%, var(--surface)); color: var(--serious-ink); }
.chip.crit { background: color-mix(in srgb, var(--crit) 11%, var(--surface)); color: var(--crit-ink); }
.chip.info { background: var(--wash); color: var(--sel); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips .chip { height: auto; min-height: 22px; padding: 2px 9px; border-radius: 8px; line-height: 1.35; white-space: normal; }
.chips .chip.trunc { max-width: 280px; white-space: nowrap; }
.chip.trunc > span { overflow: hidden; text-overflow: ellipsis; }
.page > .chips { margin-top: 12px; }
.notice { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: var(--r); color: var(--ink); font-size: 13.5px;
          text-decoration: none !important; }
.notice.warn { background: color-mix(in srgb, var(--warn) 15%, var(--surface)); }
.notice.good { background: color-mix(in srgb, var(--good) 12%, var(--surface)); }
.notice.good > .ic { color: var(--good-ink); }
.notice.warn > .ic { color: var(--warn-ink); }
.notice b { font-weight: 600; }
.notice .go { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; color: var(--link); font-weight: 600; white-space: nowrap; }
.notice .go .ic { width: 16px; height: 16px; }
.notice:hover .go { text-decoration: underline; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--hair); border-radius: 6px;
       background: var(--surface-2); color: var(--ink-2); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--muted); }
.st-shortlisted { background: var(--band-lo); }
.st-preparing { background: var(--band-mid); }
.st-submitted { background: var(--band-hi); }
.st-won { background: var(--good); }
.st-lost { background: var(--crit); }
.st-skipped { background: var(--hair); }
.badge { position: absolute; top: 2px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid var(--page);
         border-radius: 999px; background: var(--crit); color: #fff; font-size: 10px; font-weight: 700; line-height: 14px; text-align: center; }

/* Countdown to closing: muted when there is time, warning under 48 h, critical under 20 h. */
.due { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.due .ic { width: 14px; height: 14px; }
.due.warn, .due.crit { height: 22px; padding: 0 8px; border-radius: 999px; }
.due.warn { background: color-mix(in srgb, var(--warn) 18%, var(--surface)); color: var(--warn-ink); }
.due.crit { background: color-mix(in srgb, var(--crit) 11%, var(--surface)); color: var(--crit-ink); }

/* Score ring: the arc shows the score out of 100; its shade is the score band (darker = better on light). */
.score { --p: 0; --c: var(--band-lo); --w: 3.5px; position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px;
         flex: none; border-radius: 50%; color: var(--ink); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.score::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
                 background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--track) 0);
                 -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--w) - .5px), #000 calc(100% - var(--w)));
                 mask: radial-gradient(farthest-side, transparent calc(100% - var(--w) - .5px), #000 calc(100% - var(--w))); }
.score.mid { --c: var(--band-mid); }
.score.hi { --c: var(--band-hi); }
.score.lg { --w: 7px; width: 84px; height: 84px; font-size: 26px; letter-spacing: -.02em; }

.meter { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.meter b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.meter .bar { height: 6px; overflow: hidden; border-radius: 3px; background: var(--track); }
.meter .bar i { display: block; height: 100%; border-radius: 3px; background: var(--c1); }

/* ------------------------------------------------------------------ buttons and forms */

.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
               border: 1px solid transparent; border-radius: var(--r-sm); background: var(--btn); color: #fff; font: inherit;
               font-size: 13.5px; font-weight: 600; white-space: nowrap; text-decoration: none !important; cursor: pointer;
               transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn:hover, button:hover { background: var(--btn-h); }
.btn .ic, button .ic { width: 16px; height: 16px; }
.btn.ghost, button.ghost { border-color: var(--hair); background: var(--surface); color: var(--ink); }
.btn.ghost:hover, button.ghost:hover { border-color: color-mix(in srgb, var(--ink) 20%, var(--hair)); background: var(--surface-2); }
.btn.danger, button.danger { border-color: var(--hair); background: var(--surface); color: var(--crit-ink); }
.btn.danger:hover, button.danger:hover { background: color-mix(in srgb, var(--crit) 9%, var(--surface)); }
.btn.sm, button.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.icon-btn { position: relative; display: inline-grid; flex: none; place-items: center; width: 36px; height: 36px; padding: 0; border: 0;
            border-radius: var(--r-sm); background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.icon-btn .ic { width: 19px; height: 19px; }
[data-theme="light"] .only-dark, [data-theme="dark"] .only-light { display: none; }

input, select, textarea { min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--hair); border-radius: var(--r-sm);
                          background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; }
textarea { width: 100%; height: auto; padding: 9px 10px; resize: vertical; }
select { -webkit-appearance: none; appearance: none; padding-right: 32px; cursor: pointer; background-repeat: no-repeat;
         background-position: right 10px center; background-size: 14px;
         background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23626C87' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--link); box-shadow: var(--ring); }
input[type="file"] { width: 100%; height: auto; padding: 6px; }
input[type="file"]::file-selector-button { height: 28px; margin-right: 10px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 6px;
                                           background: var(--surface-2); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; font-weight: 400; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fields .full { grid-column: 1 / -1; }
.advert { display: grid; gap: 10px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--hair); }
.advert-status { margin-right: auto; color: var(--muted); font-size: 12.5px; }
.input-ic { position: relative; display: flex; align-items: center; min-width: 0; }
.input-ic > .ic { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.input-ic input { width: 100%; padding-left: 34px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar .grow { flex: 1 1 240px; }
.hint { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-2); font-size: 13px; }
.hint .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }

/* Segmented control: radio inputs (inside a form) or links. */
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--hair); border-radius: 10px; background: var(--surface); }
.seg label { position: relative; display: inline-flex; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span, .seg a { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 7px; color: var(--ink-2);
                    font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none !important; }
.seg label:hover span, .seg a:hover { color: var(--ink); }
.seg input:checked + span, .seg a.on { background: var(--wash); color: var(--sel); font-weight: 600; }
.seg input:focus-visible + span { box-shadow: var(--ring); }

/* ------------------------------------------------------------------ tooltips, info, empty states */

/* Tooltips: app.js shows one floating .tip-pop on <body>, so tables and cards never clip it.
   Without JavaScript a CSS fallback draws the same text next to the element. */
.tip-pop { position: fixed; top: 0; left: 0; z-index: 100; max-width: 280px; padding: 8px 10px; border-radius: 8px; background: var(--tip-bg);
           color: var(--tip-ink); box-shadow: var(--shadow-lg); font-size: 12px; font-weight: 500; line-height: 1.45; pointer-events: none;
           opacity: 0; transition: opacity .12s; }
.tip-pop.on { opacity: 1; }
html:not(.js) [data-tip] { position: relative; }
html:not(.js) [data-tip]:hover::after, html:not(.js) [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: max-content; max-width: 280px;
  padding: 8px 10px; border-radius: 8px; background: var(--tip-bg); color: var(--tip-ink); font-size: 12px; font-weight: 500;
  line-height: 1.45; white-space: normal; text-transform: none; }
.tip-i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--muted); cursor: help; vertical-align: middle; }
.tip-i:hover { color: var(--ink); }
.tip-i .ic { width: 15px; height: 15px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 16px; color: var(--muted); text-align: center; }
.empty > .ic { width: 44px; height: 44px; stroke-width: 1.25; color: color-mix(in srgb, var(--muted) 60%, transparent); }
.empty b { color: var(--ink); font-size: 15px; font-weight: 600; }

/* ------------------------------------------------------------------ key facts, mini stats, lists */

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px 24px; margin: 0; }
.facts dt { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.facts dd { margin: 0; font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 12px 20px; margin: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 6px; }
.minis div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.minis span { color: var(--muted); font-size: 11.5px; }
.minis b { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.list { display: flex; flex-direction: column; }
.list > * + * { border-top: 1px solid var(--hair-2); }
.li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; }
.li:first-child { padding-top: 0; }
.li:last-child { padding-bottom: 0; }
.li b { font-weight: 600; }
.why { padding: 0; }
.why summary { display: flex; align-items: center; gap: 8px; padding: 12px 18px; color: var(--ink-2); font-size: 13px; font-weight: 600;
               cursor: pointer; list-style: none; }
.why summary::-webkit-details-marker { display: none; }
.why summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 1.75px solid var(--muted);
                      border-bottom: 1.75px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.why[open] summary::after { transform: rotate(-135deg); }
.why ul { margin: 0; padding: 0 18px 16px 38px; color: var(--ink-2); font-size: 13px; }
.why li + li { margin-top: 4px; }

/* ------------------------------------------------------------------ readiness tiles (vault) */

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border: 1px solid var(--hair);
        border-left: 3px solid var(--hair); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.tile.ok { border-left-color: var(--good); }
.tile.expiring { border-left-color: var(--warn); }
.tile.expired, .tile.missing { border-left-color: var(--crit); }
.tile b { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
a.tile { color: var(--ink); text-decoration: none !important; transition: box-shadow .15s; }
a.tile:hover { box-shadow: var(--shadow-hover); }
.tile .sub { margin: 0; }

/* ------------------------------------------------------------------ kanban (pipeline) */

.board { display: grid; grid-auto-columns: minmax(250px, 1fr); grid-auto-flow: column; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.col { display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: 12px; border: 1px solid var(--hair);
       border-radius: var(--r); background: color-mix(in srgb, var(--surface-2) 70%, var(--page)); }
.col-h { display: flex; align-items: center; gap: 8px; padding: 2px 4px 4px; font-size: 13px; font-weight: 600; }
.col-h .count { margin-left: auto; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.col-empty { display: grid; place-items: center; flex: 1; min-height: 80px; border: 1px dashed var(--hair); border-radius: 10px;
             color: var(--muted); font-size: 12px; }
.kcard { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--hair); border-radius: 10px;
         background: var(--surface); box-shadow: var(--shadow); color: inherit; text-decoration: none !important; cursor: grab;
         transition: border-color .15s, box-shadow .15s, opacity .15s; }
.kcard:hover { border-color: color-mix(in srgb, var(--link) 45%, var(--hair)); box-shadow: var(--shadow-hover); }
.kcard.dragging { opacity: .4; }
.kcard .top-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kcard .top-line .row { flex-wrap: nowrap; gap: 2px; }
.kcard .title { display: -webkit-box; overflow: hidden; color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.35;
                -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-decoration: none !important; }
.kcard a.title::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }  /* the whole card opens the tender */
.kcard a.title:focus-visible { outline: none; }
.kcard:has(a.title:focus-visible) { box-shadow: var(--ring); border-color: var(--link); }
.kc-menu { position: relative; z-index: 2; }
.kc-menu .icon-btn { width: 28px; height: 28px; }
.kc-menu .icon-btn .ic { width: 16px; height: 16px; }
.kc-menu .pop { position: fixed; top: 0; right: auto; left: 0; width: 220px; }  /* board.js places it at the button */
.kc-menu .pop .pop-h { display: block; }
.pop button.pi[aria-current] { font-weight: 650; }
.col.drop { outline: 2px dashed var(--link); outline-offset: -3px; background: var(--wash); }
.col:has(.kcard) .col-empty { display: none; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 120; max-width: min(380px, calc(100vw - 40px)); padding: 12px 16px;
         border-radius: 10px; background: var(--tip-bg); color: var(--tip-ink); box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 500;
         animation: toast-in .2s ease; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
.kcard .kc-note { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 12px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ------------------------------------------------------------------ notifications, bell menu */

.notes { display: flex; flex-direction: column; }
.note { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 14px 18px; }
.note + .note { border-top: 1px solid var(--hair-2); }
.note .new { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--link); }
.note.read .new { background: transparent; }
.note-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.note-h .t { color: var(--ink); font-size: 14px; font-weight: 600; }
.note.read .note-h .t { font-weight: 500; }
.note details { margin-top: 4px; }
.note summary { width: max-content; color: var(--muted); font-size: 12px; cursor: pointer; }
.note-body { margin: 8px 0 0; color: var(--ink-2); font: 13px/1.55 var(--font); white-space: pre-wrap; }
div.note-body { white-space: normal; }
.bell { position: relative; }
.pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; width: min(360px, calc(100vw - 24px)); padding: 6px;
       border: 1px solid var(--hair); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-lg); }
.pop-h { padding: 8px 10px 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.pop .pi { display: block; padding: 9px 10px; border-radius: var(--r-sm); color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.4; }
.pop .pi:hover { background: var(--surface-2); text-decoration: none; }
.pop .pop-empty { padding: 18px 10px; color: var(--muted); font-size: 13px; text-align: center; }
.pop .all { display: block; margin-top: 4px; padding: 10px; border-top: 1px solid var(--hair-2); font-size: 13px; font-weight: 600; }

/* ------------------------------------------------------------------ drawer (dialog) */

dialog.drawer { position: fixed; inset: 0 0 0 auto; width: min(460px, 100vw); height: 100%; max-width: none; max-height: none; margin: 0;
                padding: 0; border: 0; border-left: 1px solid var(--hair); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog.drawer[open] { display: flex; flex-direction: column; animation: drawer-in .2s ease; }
dialog.drawer::backdrop { background: rgba(7, 13, 28, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }
.drawer-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hair); }
.drawer-h h2 { font-size: 16px; }
.drawer-b { flex: 1; overflow-y: auto; padding: 20px; }

/* ------------------------------------------------------------------ pack: steps, files, checklist */

.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.step .n { display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--hair); border-radius: 50%; font-size: 12px; }
.step .n .ic { width: 14px; height: 14px; stroke-width: 2.5; }
.step.done { color: var(--ink); }
.step.done .n { border-color: var(--btn); background: var(--btn); color: #fff; }
.step.cur { color: var(--ink); }
.step.cur .n { border-color: var(--link); color: var(--link); }
.step-line { flex: 0 1 48px; min-width: 16px; height: 1.5px; background: var(--hair); }
.files { display: flex; flex-wrap: wrap; gap: 8px; }
.file { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--hair); border-radius: var(--r-sm);
        background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; }
.file:hover { border-color: color-mix(in srgb, var(--link) 45%, var(--hair)); text-decoration: none; }
.file .ic { width: 16px; height: 16px; color: var(--muted); }
.file .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#documents .files { flex-direction: column; }
#documents .file { width: 100%; }
#documents .file .small { margin-left: auto; padding-left: 12px; white-space: nowrap; }
.drop { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 12px;
        border: 1px dashed color-mix(in srgb, var(--ink) 18%, var(--hair)); border-radius: var(--r-sm); background: var(--surface-2); }
.drop input[type=file] { flex: 1 1 220px; min-width: 0; font-size: 13px; }
.drop.over { border-color: var(--link); background: var(--wash); }
.progress { height: 8px; margin: 2px 0 10px; border-radius: 99px; background: var(--track); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--azure), var(--btn));
              transition: width .6s ease; }
.claude-card { border-color: color-mix(in srgb, var(--azure) 35%, var(--hair)); }
.claude-card .card-h h2 { display: inline-flex; align-items: center; gap: 8px; }
.claude-card .card-h h2 .ic { width: 18px; height: 18px; color: var(--azure); }
.todo { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.claude-btn { background: linear-gradient(135deg, var(--navy), var(--btn)); }
.claude-btn:hover { background: linear-gradient(135deg, var(--navy-2), var(--btn-h)); }
.claude-btn[disabled] { opacity: .75; cursor: progress; }
.mono { font-family: var(--mono); font-size: 12px; }
.checklist .span-all { grid-column: 1 / -1; }
.checks { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.ck { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 13.5px; line-height: 1.45; }
.ck > .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.ck.good > .ic { color: var(--good-ink); }
.ck.todo > .ic { color: var(--muted); }
.ck.warn > .ic { color: var(--warn-ink); }
.ck.crit { color: var(--crit-ink); font-weight: 600; }
.ck.crit > .ic { color: var(--crit-ink); }
.ck.item, .ck.text { color: var(--ink-2); }
.ck code { font-size: 12px; }
.ck-dot { flex: none; width: 6px; height: 6px; margin: 7px 6px 0; border-radius: 50%; background: var(--muted); opacity: .5; }
.ck-n { display: grid; flex: none; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--wash); color: var(--sel);
        font-size: 12px; font-weight: 700; }
.ck-n::before { counter-increment: step; content: counter(step); }

/* ------------------------------------------------------------------ executive dashboard */

/* Ordinal ramp (funnel stages, ageing buckets): one hue, validated for 5 steps; darker = later on light. */
:root { --o1: #86B6EF; --o2: #5598E7; --o3: #2A78D6; --o4: #1C5CAB; --o5: #0D366B; }
[data-theme="dark"] { --o1: #184F95; --o2: #256ABF; --o3: #3987E5; --o4: #6DA7EC; --o5: #9EC5F4; }

.tabs { display: flex; gap: 4px; margin: 0 0 16px; overflow: auto hidden; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--hair); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; padding: 10px 14px 12px; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap;
          text-decoration: none !important; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); }
.tabs a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--link); }
.page > .tabs + * { margin-top: 0; }
.stack > .tabs { margin-bottom: 0; }
.count-pill { display: inline-grid; place-items: center; min-width: 20px; height: 18px; margin-left: 6px; padding: 0 6px; border-radius: 999px;
              background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 600; vertical-align: 1px; }
.tabs a.on .count-pill { background: var(--wash); color: var(--sel); }
.slicers { margin-bottom: 16px; }
.slicers select { max-width: 260px; }
.dash { transition: opacity .15s; }
.dash.loading { opacity: .55; pointer-events: none; }
.dash-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 16px; }
.kpi.hero .v { font-size: 48px; line-height: 1.05; letter-spacing: -.03em; }
.kpi.hero { justify-content: space-between; }
.kpi .s .chip { height: 20px; margin-right: 6px; padding: 0 8px; font-size: 11px; }
@media (min-width: 1280px) {
  .dash-kpis.k6 { grid-template-columns: minmax(0, 1.7fr) repeat(5, minmax(0, 1fr)); }
  .dash-kpis.k5 { grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); }
  .dash-kpis.k4 { grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1279px) { .kpi.hero { grid-column: 1 / -1; } .kpi.hero .v { font-size: 40px; } .kpi.hero .spark { width: 200px; height: 44px; } }
@media (min-width: 900px) and (max-width: 1279px) {
  .dash-kpis.k6 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dash-kpis.k5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash-kpis.k4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.dgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (max-width: 1100px) { .dgrid > * { grid-column: 1 / -1; } }
.chart { width: 100%; }
.dash .card { position: relative; }
.dash .card-b > .alt .empty { padding: 40px 16px; }
.dash .card-b:has(> .alt > .table-wrap) { padding: 10px 0 0; }
.dash [data-kind="chart"] .alt > .table-wrap { max-height: 520px; overflow: auto; }
.dash [data-kind="chart"] .alt .tbl th { position: sticky; top: 0; z-index: 1; }
.card.focus .alt > .table-wrap { max-height: none; }
.acts { position: relative; display: flex; align-items: center; gap: 2px; margin: -6px -8px -6px 0; opacity: 0; transition: opacity .15s; }
.card:hover .acts, .card:focus-within .acts, .card.focus .acts { opacity: 1; }
@media (hover: none) { .acts { opacity: 1; } }
.acts .icon-btn { width: 30px; height: 30px; }
.acts .icon-btn .ic { width: 17px; height: 17px; }
.acts .pop { top: calc(100% + 4px); width: 200px; }
.pop button.pi { display: flex; align-items: center; gap: 10px; width: 100%; height: auto; padding: 9px 10px; border: 0; background: none; color: var(--ink);
                 font-size: 13px; font-weight: 500; text-align: left; justify-content: flex-start; }
.pop button.pi:hover { background: var(--surface-2); }
.pop button.pi .ic { width: 16px; height: 16px; color: var(--muted); }
.card.focus { position: fixed; inset: 24px; z-index: 90; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.card.focus .card-b { flex: 1; min-height: 0; overflow: auto; }
.card.focus .chart { height: 100% !important; min-height: 320px; }
.focus-scrim { position: fixed; inset: 0; z-index: 85; background: rgba(7, 13, 28, .5); }
.compare { display: flex; flex-direction: column; gap: 18px; }
.compare .row-h { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.compare .meter { grid-template-columns: 64px 1fr 56px; }
.compare .meter .bar i.base { background: var(--muted); opacity: .55; }
.legend-note { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.tbl tr[data-filter] { cursor: pointer; }

/* ------------------------------------------------------------------ public pages (landing, sign-in) */

body.pub { background: var(--page); color: var(--ink); }
.lp-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff;
           background: radial-gradient(900px 520px at 78% 42%, rgba(0, 129, 251, .2), transparent 62%),
                       linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 72%); }
.lp-radar { position: absolute; z-index: -1; top: 50%; right: -14%; width: min(1100px, 100vw); transform: translateY(-50%); pointer-events: none; }
.lp-sweep { transform-origin: 0 0; animation: lp-spin 10s linear infinite; }
.lp-blip { animation: lp-blink 4s ease-in-out infinite; }
.lp-blip:nth-child(2) { animation-delay: .8s; } .lp-blip:nth-child(3) { animation-delay: 1.6s; }
.lp-blip:nth-child(4) { animation-delay: 2.4s; } .lp-blip:nth-child(5) { animation-delay: 3.2s; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.lp-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 22px 32px; }
.lp-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 17px; font-weight: 650; letter-spacing: -.015em; text-decoration: none !important; }
.lp-brand svg { width: 34px; height: 34px; }
.lp-nav-r { display: flex; align-items: center; gap: 20px; }
.lp-logo { display: block; height: 24px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.lp-company { color: rgba(255, 255, 255, .75); font-size: 13.5px; font-weight: 500; }
.btn.lp-ghost { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .08); color: #fff; }
.btn.lp-ghost:hover { background: rgba(255, 255, 255, .16); }
.lp-hero-in { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 1200px; min-height: min(72vh, 640px);
              margin: 0 auto; padding: 48px 32px 168px; }
.lp-pill { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px 0 12px; border: 1px solid rgba(255, 255, 255, .18);
           border-radius: 999px; background: rgba(255, 255, 255, .06); color: #CFE3FF; font-size: 13px; font-weight: 600; }
.lp-pulse { width: 8px; height: 8px; border-radius: 50%; background: #3CC26B; animation: lp-pulse 2s ease-out infinite; }
@keyframes lp-pulse { 0% { box-shadow: 0 0 0 0 rgba(60, 194, 107, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(60, 194, 107, 0); } }
.lp-hero h1 { max-width: 12ch; margin: 24px 0 18px; font-size: clamp(42px, 6.4vw, 80px); line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(90deg, #5AA6FF, #B7D3F6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-sub { color: #A9B6D9; font-size: 18px; font-weight: 500; letter-spacing: .01em; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn.lp-btn { height: 50px; padding: 0 24px; border-radius: 10px; font-size: 15.5px; box-shadow: 0 14px 34px -12px rgba(0, 129, 251, .75); }
.btn.lp-btn .ic { width: 18px; height: 18px; transition: transform .15s; }
.btn.lp-btn:hover .ic { transform: translateX(3px); }
.lp-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; max-width: 1200px;
            margin: -104px auto 0; padding: 0 32px; }
.lp-stat { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border: 1px solid var(--hair); border-radius: 14px;
           background: var(--surface); box-shadow: 0 22px 44px -22px rgba(0, 19, 86, .45); }
.lp-stat b { color: var(--ink); font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }
.lp-stat span { color: var(--muted); font-size: 13px; font-weight: 500; }
.lp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1200px; margin: 56px auto 0; padding: 0 32px; }
.lp-feat { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); }
.lp-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 12px; background: var(--wash); color: var(--sel); }
.lp-ico .ic { width: 22px; height: 22px; }
.lp-feat b { font-size: 16px; font-weight: 650; }
.lp-feat span { color: var(--muted); font-size: 14px; }
.lp-foot { display: flex; justify-content: space-between; gap: 16px; max-width: 1200px; margin: 56px auto 0; padding: 22px 32px 40px;
           border-top: 1px solid var(--hair); color: var(--muted); font-size: 13px; }
@media (max-width: 960px) {
  .lp-nav { padding: 18px 20px; }
  .lp-hero-in { min-height: 0; padding: 40px 20px 150px; }
  .lp-radar { right: -45%; opacity: .7; }
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 20px; }
  .lp-stats .lp-stat:last-child { grid-column: 1 / -1; }
  .lp-features { grid-template-columns: minmax(0, 1fr); padding: 0 20px; }
  .lp-foot { padding: 22px 20px 32px; }
}
@media (max-width: 480px) {
  .lp-logo, .lp-company { display: none; }
  .lp-stat { padding: 18px; }
  .lp-stat b { font-size: 26px; }
}

/* ------------------------------------------------------------------ motion and print */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Installed app: room for a phone's status bar and home indicator (all zero in a browser tab). Last in the file so
   the narrow-screen padding rules above cannot reset it. */
.top { padding-top: env(safe-area-inset-top, 0px); height: calc(var(--top-h) + env(safe-area-inset-top, 0px)); }
.side { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
.page { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
.toast { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.push { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.push[hidden] { display: none; }
.offline { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; }
.offline-card { width: min(440px, 100%); padding: 32px 28px; border: 1px solid var(--hair); border-radius: var(--r);
                background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.offline-mark { border-radius: 16px; }
.offline h1 { margin: 14px 0 6px; font-size: 22px; }
.offline-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 20px; }
.offline-pages:empty { display: none; }
.offline-pages a { padding: 6px 12px; border: 1px solid var(--hair); border-radius: 99px; color: var(--ink); font-size: 13px;
                   font-weight: 500; }
.offline-card button { margin-top: 8px; }

/* ------------------------------------------------------------------ pack review */

.tbl.edit input, .tbl.edit select { height: 32px; font-size: 13px; }
.tbl.edit td { vertical-align: top; }
.tbl.edit .w-text { min-width: 260px; }
.tbl.edit .w-num { width: 92px; text-align: right; font-variant-numeric: tabular-nums; }
.tbl tfoot td { padding: 9px 14px; border-top: 1px solid var(--hair); font-weight: 600; font-variant-numeric: tabular-nums; }
.tbl tfoot tr + tr td { border-top: 0; }
.tbl tfoot .grand td { border-top: 1.5px solid var(--ink); font-size: 14.5px; }
.h3 { margin: 0 0 10px; font-size: 13px; font-weight: 650; }
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.terms label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 500; }
.terms label input { width: 100%; color: var(--ink); font-size: 13.5px; }
.terms .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .terms { grid-template-columns: minmax(0, 1fr); } }
.fold { border: 1px solid var(--hair); border-radius: var(--r-sm); background: var(--surface); }
.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; cursor: pointer;
                  font-size: 13.5px; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-left: 4px; border-right: 1.75px solid var(--muted);
                         border-bottom: 1.75px solid var(--muted); transform: rotate(45deg) translateY(-2px); }
.fold[open] > summary::after { transform: rotate(-135deg); }
.fold > summary > span:first-child { flex: 1; min-width: 0; }
.fold > .table-wrap, .fold > textarea, .fold > ul, .fold > .confirm { margin: 0 12px 12px; width: calc(100% - 24px); }
.fold > .table-wrap { width: auto; border: 1px solid var(--hair-2); border-radius: var(--r-sm); }
.fold .tbl th:first-child, .fold .tbl td:first-child { padding-left: 12px; }
.confirm { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-2); font-size: 13px; line-height: 1.45; cursor: pointer; }
.confirm input { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.gap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 10px; font-size: 13.5px; }
.gap span { color: var(--crit-ink); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 640px) { .gap { grid-template-columns: minmax(0, 1fr); } }
.doc { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.doc a:first-child { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); font-weight: 500; }
.doc .ic { flex: none; width: 16px; height: 16px; color: var(--muted); }
.label { color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.facts.one { grid-template-columns: minmax(0, 1fr); gap: 10px; }

@media print {
  .side, .top, .scrim { display: none !important; }
  .shell { display: block; }
  .card, .kpi, .tile { box-shadow: none; }
}
