/* Winningtender — shared styles */
/* Neutral slate system: white and canvas grey, hairline borders, 6px corners, no gradients */
/* Navy and gold (the new brand look). Gold is used for fills, rules and text on navy;
   on white, gold text uses the darker --gold-ink so it stays readable. */
:root {
  --tn-build: "20261107a";
  --paper: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --ink: #1c1c1e;
  --ink-2: #4a5568;
  --slate: #5a6578;
  --faint: #9aa4b5;
  --rule: #e3e6eb;
  --rule-2: #eef0f4;
  --brand: #1c1c1e;
  --brand-2: #333336;
  --on-brand: #ffffff;
  --navy: #1c1c1e;
  --navy-2: #2a2a2d;
  --navy-text: #c6ccd6;
  --gold: #f9b13b;
  --gold-2: #fcd58f;
  --gold-ink: #9a6408;
  --gold-tint: #fef1d8;
  --marker: #fdf0e1;
  --marker-ink: #8a4b0f;
  --fit: #1e6a45;
  --fit-bg: #eef6f1;
  --caution: #8a4b0f;
  --caution-bg: #fdf4e3;
  --danger: #b91c1c;
  --focus: #2563eb;
  --radius-s: 4px;
  --radius-m: 6px;
  --radius-l: 8px;
  --shadow: 0 1px 2px rgba(6, 20, 42, .06);
  --lift: 0 1px 2px rgba(6, 20, 42, .05), 0 6px 18px -8px rgba(6, 20, 42, .14);
  --font: "TN Lato", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "TN Lato", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "TN Lato", ui-sans-serif, system-ui, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1c1c1e; --surface: #2a2a2d; --surface-2: #13294a; --ink: #f1f3f7; --ink-2: #c6ccd6;
    --slate: #9aa4b5; --faint: #6b778a; --rule: #1c3354; --rule-2: #152b4b; --brand: #f9b13b; --brand-2: #fcd58f; --on-brand: #1c1c1e;
    --gold-ink: #fcd58f; --gold-tint: #3a3018; --marker: #3b2a0a; --marker-ink: #fde68a; --fit: #6ee7b7; --fit-bg: #0b3326;
    --caution: #fbbf24; --caution-bg: #2b1d05; --danger: #fca5a5; --shadow: 0 1px 2px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1c1c1e; --surface: #2a2a2d; --surface-2: #13294a; --ink: #f1f3f7; --ink-2: #c6ccd6;
  --slate: #9aa4b5; --faint: #6b778a; --rule: #1c3354; --rule-2: #152b4b; --brand: #f9b13b; --brand-2: #fcd58f; --on-brand: #1c1c1e;
  --gold-ink: #fcd58f; --gold-tint: #3a3018; --marker: #3b2a0a; --marker-ink: #fde68a; --fit: #6ee7b7; --fit-bg: #0b3326;
  --caution: #fbbf24; --caution-bg: #2b1d05; --danger: #fca5a5; --shadow: 0 1px 2px rgba(0,0,0,.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.6 var(--font);
}
a { color: inherit; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--slate); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
[hidden] { display: none !important; }

/* Headings: one family, tight tracking */
.display, h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; line-height: 1.12; }
h1 em, h2 em, .display em { font-style: normal; color: var(--gold-ink); }
h1 { font-size: clamp(32px, 4.4vw, 52px); margin: 0 0 16px; }
h2 { font-size: clamp(24px, 2.8vw, 32px); margin: 0 0 10px; }
h3 { font-size: 17px; margin: 0 0 6px; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; }
p { margin: 0 0 12px; }

/* The highlighter mark — used for closing dates everywhere */
.mark {
  background: var(--marker); border-radius: 4px; font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  color: var(--marker-ink); padding: .1em .45em; font-weight: 500; white-space: nowrap; font-size: .85em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.mark.urgent { background: #ffedd5; color: #9a3412; }
.mark.muted-mark { background: var(--surface-2); color: var(--slate); }
:root[data-theme="dark"] .mark.urgent { background: #431407; color: #fdba74; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mark.urgent { background: #431407; color: #fdba74; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px; border-radius: 6px; font-size: 14px; line-height: 1.2;
  border: 1px solid var(--brand); font-weight: 500; text-decoration: none; cursor: pointer;
  background: var(--brand); color: var(--on-brand); transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--rule); box-shadow: var(--shadow); }
.btn.secondary:hover { border-color: var(--faint); background: var(--surface); }
.btn.marker { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.btn.marker:hover { background: var(--surface-2); border-color: var(--surface-2); }
.btn.ghost { background: transparent; color: var(--ink); border-color: transparent; min-height: 32px; padding: 6px 10px; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { min-height: 32px; padding: 5px 12px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--rule); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.saved { background: var(--fit-bg); color: var(--fit); border-color: transparent; }

/* Forms */
label { font-weight: 500; font-size: 13px; display: block; margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 40px; padding: 8px 12px; border-radius: var(--radius-m);
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { border-color: var(--faint); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.field { margin-bottom: 16px; }
.hint { font-size: 13px; color: var(--slate); margin-top: 5px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.row > .field { flex: 1 1 180px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px;
  border: 1px solid var(--rule); background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer; margin: 0;
}
.check input { accent-color: var(--brand); margin: 0; }
.check:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }

/* Tags input */
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--surface); min-height: 40px; }
.tags input { border: 0; outline: 0; flex: 1 1 140px; min-width: 120px; background: transparent; padding: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 4px; padding: 3px 4px 3px 8px; font-size: 13px; font-weight: 500; }
.tag button { border: 0; background: transparent; cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 5px; border-radius: 4px; color: var(--slate); }

/* Site header */
.site-head { background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 30; }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -.025em; color: var(--ink); }
.logo .nm { font-style: normal; color: inherit; }
.logo [data-brand]::after { content: "UK"; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0; color: var(--slate); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 4px; margin-left: 7px; vertical-align: 2px; }
:root[data-theme="dark"] .logo { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { color: var(--ink); } }
.logo svg { width: 24px; height: 24px; flex: none; }
.logo [data-logo] { flex: none; display: inline-flex; }
.logo { flex: none; }
.nav { display: flex; gap: 2px; flex: 1; align-items: center; }
.nav > a:first-child { margin-left: auto; }
.nav #signInLink { margin-left: auto; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 14px; color: var(--ink-2); padding: 6px 10px; border-radius: var(--radius-m); }
.nav a:not(.btn):hover { background: var(--surface-2); color: var(--ink); }
.nav #signInLink:not(.btn) { font-size: 13px; }
.theme-btn { border: 1px solid var(--rule); background: transparent; width: 32px; height: 32px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); margin-left: 4px; }
.theme-btn svg { width: 16px; height: 16px; }
@media (max-width: 860px) { .nav .hide-m { display: none; } }

/* Notice rows (used on the home page, search and matches) */
.notice-list { display: grid; gap: 8px; }
.notice {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l);
  padding: 14px 16px; display: grid; gap: 6px; position: relative;
}
.notice h3 a { text-decoration: none; }
.notice h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.notice .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--slate); }
.notice .meta strong { color: var(--ink); font-weight: 600; }
.notice .snippet { font-size: 14px; color: var(--ink-2); }
.notice .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 2px 7px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); }
.pill.fit { background: var(--fit-bg); color: var(--fit); }
.pill.caution { background: var(--caution-bg); color: var(--caution); }
.reasons, .flags { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 13px; }
.reasons li::before { content: "✓"; color: var(--fit); font-weight: 600; margin-right: 7px; }
.flags li { color: var(--caution); }
.flags li::before { content: "!"; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 3px; background: var(--caution-bg); font-weight: 600; font-size: 11px; margin-right: 7px; }
.score { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 13px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.score .bar { width: 80px; height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.score .bar i { display: block; height: 100%; background: var(--fit); border-radius: 2px; }
:root[data-theme="dark"] .score .bar i { background: var(--fit); }

.empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--rule); border-radius: var(--radius-l); color: var(--slate); background: var(--surface); }
.empty h3 { color: var(--ink); }
.banner { padding: 10px 14px; border-radius: var(--radius-m); border: 1px solid color-mix(in srgb, var(--caution) 25%, transparent); background: var(--caution-bg); color: var(--caution); font-size: 13px; font-weight: 500; }
.banner.info { background: var(--surface-2); color: var(--ink-2); }
.skeleton { height: 96px; border-radius: var(--radius-l); background: var(--surface); animation: sk 1.4s infinite ease-in-out; border: 1px solid var(--rule); }
@keyframes sk { 50% { background: var(--surface-2); } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); background: var(--brand); color: var(--on-brand); padding: 10px 14px; border-radius: var(--radius-m); font-weight: 500; font-size: 14px; z-index: 100; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.error { background: var(--danger); color: #fff; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); background: var(--surface); padding: 28px 0 88px; margin-top: 64px; font-size: 13px; color: var(--slate); }
.site-foot .wrap { display: grid; gap: 18px; grid-template-columns: 2fr 1fr 1fr; }
.site-foot a { display: block; text-decoration: none; padding: 3px 0; }
.site-foot a:hover { color: var(--ink); }
@media (max-width: 700px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .wrap > :first-child { grid-column: 1 / -1; } }

/* Simple content pages */
.page { padding: 40px 0; max-width: 760px; }
.page h1 { font-size: clamp(32px, 5vw, 48px); }
.page h2 { font-size: 24px; margin-top: 30px; }
.page p, .page li { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print {
  .site-head, .site-foot, .app-nav, .no-print, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  .app-main { padding: 0 !important; }
}

.nav .btn { white-space: nowrap; }
.site-foot .wrap.four { grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .site-foot .wrap.four { grid-template-columns: 1fr 1fr; } .site-foot .wrap.four > :first-child { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- app (PWA) */
html { -webkit-tap-highlight-color: transparent; }
a, button, .btn, input[type="checkbox"], select { touch-action: manipulation; }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.site-head { padding-top: env(safe-area-inset-top); }

/* Installed app: feels native rather than like a web page */
.is-app body { overscroll-behavior-y: none; }
.is-app .bottom-nav, .is-app .app-nav, .is-app .btn, .is-app .tabs, .is-app .logo { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.is-app .bottom-nav a:active, .is-app .btn:active { transform: scale(.97); }
@media (display-mode: standalone) { .hide-in-app { display: none !important; } }

/* "Get the app" sheet */
.install-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); animation: tn-up .28s ease-out; }
.install-card { position: relative; max-width: 520px; margin: 0 auto; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 -1px 2px rgba(0, 0, 0, .06); padding: 16px 16px 14px; display: grid; grid-template-columns: 52px 1fr; gap: 4px 14px; align-items: start; }
.install-card img { border-radius: 6px; grid-row: span 1; }
.install-text { display: grid; gap: 3px; padding-right: 22px; }
.install-text strong { font-size: 17px; line-height: 1.25; }
.install-text span { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.install-x { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--slate); cursor: pointer; border-radius: 6px; }
.install-actions, .install-ios { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }
.install-ios { display: grid; justify-items: stretch; }
.install-ios .btn { justify-self: end; }
.install-steps { margin: 4px 0 0; padding-left: 22px; font-size: 14.5px; color: var(--ink-2); display: grid; gap: 6px; }
.install-steps svg { color: var(--focus); }
@keyframes tn-up { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Offline notice */
.offline-bar { position: fixed; top: calc(env(safe-area-inset-top) + 8px); left: 50%; transform: translateX(-50%); z-index: 95; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 500; padding: 8px 12px; border-radius: 6px; box-shadow: var(--shadow); max-width: calc(100% - 24px); text-align: center; }

/* Grants */
.plain-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14.5px; color: var(--ink-2); }
.grant-check .reasons, .grant-check .flags { font-size: 14.5px; }
.nav a.is-new::after { content: "New"; font-size: 10px; font-weight: 500; background: var(--marker); color: var(--marker-ink); border-radius: 4px; padding: 1px 5px; margin-left: 5px; vertical-align: 2px; }

/* Search page: filters in a sidebar, results beside them */
.search-panel { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 16px; position: sticky; top: 72px; }
.filters .field { margin-bottom: 12px; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.results-head select { width: auto; }
@media (max-width: 980px) { .search-panel { grid-template-columns: 1fr; } .filters { position: static; } }
.site-foot a.logo { display: inline-flex; }

/* ---------------------------------------------------------------- navy and gold brand */
.site-head { background: var(--navy); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid rgba(201, 165, 76, .28); }
.site-head .wrap { min-height: 68px; }
.logo { font-size: 22px; letter-spacing: -.01em; color: #ffffff; }
.logo .nm { color: var(--gold); }
:root[data-theme="dark"] .logo { color: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { color: #ffffff; } }
.logo svg { width: 30px; height: 30px; }
.logo [data-brand]::after { color: var(--navy-text); border-color: rgba(255, 255, 255, .25); font-size: 9.5px; vertical-align: 4px; }
.site-head .nav a:not(.btn) { color: var(--navy-text); font-size: 14.5px; }
.site-head .nav a:not(.btn):hover { background: rgba(255, 255, 255, .07); color: #ffffff; }
.site-head .btn, .site-head .btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 600; }
.site-head .btn:hover { background: var(--gold-2); border-color: var(--gold-2); }
.site-head .theme-btn { border-color: rgba(255, 255, 255, .22); color: var(--navy-text); }
.btn.marker { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 600; }
.btn.marker:hover { background: var(--gold-2); border-color: var(--gold-2); }
.site-foot { background: #041022; color: #9aa4b5; border-top: 1px solid rgba(201, 165, 76, .28); }
.site-foot a { color: #9aa4b5; }
.site-foot a:hover { color: #ffffff; }
.site-foot strong, .site-foot .foot-seo span { color: #ffffff !important; }
.site-foot .logo { color: #ffffff; }

/* Pop-up windows (shared by the app and tender pages) */
.modal-back { position: fixed; inset: 0; background: rgba(13, 20, 36, .55); display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal { background: var(--surface); border-radius: var(--radius-l); padding: 22px; width: min(620px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow); }
.linkish { background: none; border: 0; padding: 2px 0; margin: 4px 0 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.linkish:hover { color: var(--gold-ink, var(--ink)); }
.check:has(input:disabled) { opacity: .5; cursor: not-allowed; }

/* Tender readiness score (app) */
.readiness { padding: 14px 16px; margin: 0 0 14px; }
.readiness summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.readiness summary::-webkit-details-marker { display: none; }
.rd-score { flex: none; font-size: 14px; color: var(--slate); }
.rd-score strong { font-family: var(--font-display); font-size: 34px; color: var(--ink); line-height: 1; }
.rd-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.rd-bar { display: block; height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; max-width: 360px; }
.rd-bar span { display: block; height: 100%; background: var(--gold, #f9b13b); }
.rd-list { list-style: none; margin: 0; padding: 0; }
.rd-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); }
.rd-list li.done { opacity: .75; }
.rd-pts { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--slate); }

/* iPhone: Safari zooms in when you tap a text box with text under 16px, and the page then stays zoomed
   and slides sideways. On touch screens every box uses 16px so that never happens. */
@media (hover: none) and (pointer: coarse) {
  input, select, textarea, .input, select.input, textarea.input { font-size: 16px !important; }
}
/* The page must never be wider than the screen. "clip" is the tidy way (keeps sticky headers working);
   older iPhones (before iOS 16) don't know it, so they get "hidden" on the page itself instead. */
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
@supports not (overflow-x: clip) { html { overflow-x: hidden; } }

/* Archive button and swiping tenders on phones */
@media (hover: none) and (pointer: coarse) { .notice[data-id] { touch-action: pan-y; } }
.notice[data-id] { position: relative; }
.notice.sw-right { background: var(--fit-bg); border-color: var(--fit); }
.notice.sw-left { background: var(--surface-2); }
.notice.sw-right::after, .notice.sw-left::after { position: absolute; top: 12px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.notice.sw-right::after { content: "Save to pipeline"; left: 12px; background: var(--fit); color: #fff; }
.notice.sw-left::after { content: "Archive"; right: 12px; background: var(--slate); color: #fff; }
.notice.gone { opacity: 0; }
.swipe-tip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 6px; background: var(--surface-2); font-size: 14px; }
.hidden-note { margin: 14px 0 0; }
.undo-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 70; display: flex; align-items: center; gap: 14px;
  background: var(--navy, #1c1c1e); color: #fff; padding: 10px 14px; border-radius: 6px; box-shadow: var(--shadow); font-size: 14px; max-width: calc(100% - 32px); }
.undo-bar button { background: none; border: 0; color: var(--gold, #f9b13b); font: inherit; font-weight: 600; cursor: pointer; padding: 4px; }
@media (min-width: 900px) { .undo-bar { bottom: 24px; } }
.swipe-tip .btn { white-space: nowrap; flex: none; }


/* ===================== UX & polish release (3 Nov 2026) ===================== */
/* Colour meaning everywhere: green = good, amber = needs attention, red = act now */
:root { --amber: #a15c07; --amber-bg: #fdf3e2; --red: #b42318; --red-bg: #fdecea; --green: var(--fit); --green-bg: var(--fit-bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --amber: #fbbf24; --amber-bg: #2b1d05; --red: #fca5a5; --red-bg: #3a1414; --lift: 0 1px 2px rgba(0,0,0,.4), 0 8px 20px -10px rgba(0,0,0,.6); } }
:root[data-theme="dark"] { --amber: #fbbf24; --amber-bg: #2b1d05; --red: #fca5a5; --red-bg: #3a1414; --lift: 0 1px 2px rgba(0,0,0,.4), 0 8px 20px -10px rgba(0,0,0,.6); }

/* Cards: softly raised; clickable ones respond on a laptop */
.notice, .panel, .pcard, .dash-card, .tile { box-shadow: var(--lift); }
@media (hover: hover) {
  .notice, .tile, .pcard { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
  .notice:hover, .tile:hover { border-color: color-mix(in srgb, var(--gold, #f9b13b) 45%, var(--rule)); box-shadow: 0 2px 4px rgba(6, 20, 42, .06), 0 12px 24px -12px rgba(6, 20, 42, .22); }
  .notice.compact { cursor: pointer; }
  .btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease; }
  .btn:active { transform: translateY(1px); }
}

/* Tender card layout: title on the left, days-left countdown on the right */
.notice .n-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.notice .n-main { display: grid; gap: 4px; min-width: 0; }
.notice .n-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.notice h3 { margin: 0; font-size: 16.5px; line-height: 1.35; overflow-wrap: anywhere; }
.pill.new { background: var(--gold, #f9b13b); color: var(--navy, #1c1c1e); font-weight: 600; }
.cd { display: grid; justify-items: center; align-content: center; min-width: 64px; padding: 7px 8px; border-radius: 8px; background: var(--surface-2); text-align: center; line-height: 1.1; }
.cd b { font-family: var(--font-display); font-size: 24px; font-weight: 600; font-variant-numeric: lining-nums; }
.cd span { font-size: 11px; color: var(--slate); margin-top: 2px; white-space: nowrap; }
.cd.amber { background: var(--amber-bg); } .cd.amber b, .cd.amber span { color: var(--amber); }
.cd.red { background: var(--red-bg); } .cd.red b, .cd.red span { color: var(--red); }
.cd.plan b, .cd.past b { font-size: 15px; font-family: var(--font); }
.cd.past { opacity: .7; }

/* Fit score: green strong, amber possible, grey weak; counts up when shown */
.score { gap: 8px; flex-wrap: wrap; }
.score .bar { width: 96px; height: 6px; border-radius: 3px; }
.score .bar i { border-radius: 3px; transition: none; }
.score .lvl { font-family: var(--font); font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 4px; }
.score.strong .bar i { background: var(--green); } .score.strong .lvl { background: var(--green-bg); color: var(--green); }
.score.maybe .bar i { background: var(--amber); } .score.maybe .lvl { background: var(--amber-bg); color: var(--amber); }
.score.weak .bar i { background: var(--faint, #8a94a6); } .score.weak .lvl { background: var(--surface-2); color: var(--slate); }
.flags li { color: var(--amber); }
.flags li::before { background: var(--amber-bg); }
.flags li.serious { color: var(--red); font-weight: 500; }
.flags li.serious::before { background: var(--red-bg); color: var(--red); }

/* Compact cards in the app: tap for details */
.notice.compact { gap: 8px; }
.notice .n-more { display: grid; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--rule); animation: nmore .2s ease; }
@keyframes nmore { from { opacity: 0; transform: translateY(-4px); } }
.notice .n-toggle { justify-self: start; background: none; border: 0; padding: 2px 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--slate); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.notice .n-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.notice.open .n-toggle::after { transform: rotate(225deg) translate(-1px, -1px); }
.notice .tools { display: flex; flex-wrap: wrap; gap: 6px; }
.notice .tools .btn svg { width: 15px; height: 15px; margin-right: 5px; vertical-align: -3px; }

/* Quick decisions */
.decide { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; width: 100%; }
.decide .btn { min-height: 38px; justify-content: center; padding-inline: 6px; font-weight: 600; }
.decide .dec-yes { background: var(--green-bg); color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.decide .dec-yes.saved { background: var(--green); color: #fff; border-color: var(--green); }
.decide .dec-later { background: var(--amber-bg); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }
.decide .dec-no { background: var(--surface); color: var(--slate); border-color: var(--rule); }
@media (min-width: 900px) { .decide { width: auto; display: flex; } .decide .btn { min-width: 120px; } }

/* Confirmation stamp and folding away */
.stamp { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; gap: 8px; align-items: center; font-weight: 700; font-size: 18px; border-radius: inherit; pointer-events: none; animation: stamp 1.05s ease forwards; z-index: 2; }
.stamp svg { width: 26px; height: 26px; }
.stamp.yes { background: color-mix(in srgb, var(--green-bg) 92%, transparent); color: var(--green); }
.stamp.later { background: color-mix(in srgb, var(--amber-bg) 92%, transparent); color: var(--amber); }
.stamp.no { background: color-mix(in srgb, var(--surface-2) 94%, transparent); color: var(--slate); }
@keyframes stamp { 0% { opacity: 0; transform: scale(.96); } 15% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }
.notice.folding { transition: height .38s ease, opacity .3s ease, margin .38s ease, padding .38s ease; opacity: 0; padding-top: 0; padding-bottom: 0; margin: 0; border-width: 0; }
@media (prefers-reduced-motion: reduce) { .stamp { animation-duration: .01s; } .notice.folding, .notice .n-more { transition: none; animation: none; } }

/* Dashboard */
.dash { display: grid; gap: 12px; margin-bottom: 14px; }
.dash:empty { display: none; }
.dash-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 16px 18px; }
.dash-card h2 { font-size: 24px; margin: 0; }
.dash-card h3 { font-size: 16px; margin: 0; font-family: var(--font); font-weight: 650; }
.dash-card .sub { margin: 2px 0 10px; font-size: 13px; color: var(--slate); }
.dash-card p { margin: 4px 0 0; }
.dash-card .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.welcome { background: linear-gradient(0deg, var(--surface), var(--surface)); border-top: 3px solid var(--gold, #f9b13b); }
.wb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.wb-stats .stat { display: grid; gap: 2px; text-align: left; padding: 10px; border-radius: 8px; background: var(--surface-2); border: 0; font: inherit; color: inherit; text-decoration: none; cursor: default; }
.wb-stats a.stat, .wb-stats button.stat:not([disabled]) { cursor: pointer; }
.wb-stats .stat b { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.wb-stats .stat span { font-size: 12px; color: var(--slate); line-height: 1.3; }
.wb-stats .stat.good b { color: var(--green); }
.wb-stats .stat.warn b { color: var(--amber); }
.dash-card.next, .dash-card.alert { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.dash-card .ic { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; }
.dash-card .ic svg { width: 20px; height: 20px; }
.dash-card.next { border-left: 4px solid var(--amber); }
.dash-card.next .ic { background: var(--amber-bg); color: var(--amber); }
.dash-card.alert { border-left: 4px solid var(--gold, #f9b13b); animation: nmore .4s ease; }
.dash-card.alert .ic { background: color-mix(in srgb, var(--gold, #f9b13b) 18%, transparent); color: var(--gold-ink, #9a6408); }
.dash-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cs-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule); text-decoration: none; color: inherit; }
.cs-row .cs-t { display: grid; gap: 2px; min-width: 0; }
.cs-row .cs-t b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-row .cs-t small { color: var(--slate); font-size: 12px; }
.cs-row .cd { min-width: 54px; padding: 5px 6px; } .cs-row .cd b { font-size: 19px; }
/* Pipeline progress */
.pbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.pbar span { width: var(--w); animation: pgrow .8s ease both; }
@keyframes pgrow { from { width: 0; } }
.plegend { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-2); }
.plegend li.zero { color: var(--faint, #8a94a6); }
.plegend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.s1 { background: #8fa3bf; } .s2 { background: var(--amber); } .s3 { background: #3b6fb6; } .s4 { background: var(--green); } .s5 { background: var(--red); } .s6 { background: var(--faint, #8a94a6); }
.filter-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--gold, #f9b13b) 14%, var(--surface)); font-size: 14px; font-weight: 500; }
.sub-h { font-size: 20px; margin: 18px 0 8px; }

/* Notifications: the same look for success, errors and undo everywhere */
.toast { display: flex; align-items: center; gap: 8px; border-left: 4px solid var(--green); background: var(--navy, #1c1c1e); color: #fff; animation: tin .2s ease; }
.toast::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.toast.error { border-left-color: #f87171; background: #7f1d1d; }
.toast.error::before { background: #f87171 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / 11px no-repeat; }
.undo-bar { animation: tin .2s ease; border-left: 4px solid var(--gold, #f9b13b); }
@keyframes tin { from { opacity: 0; transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .toast, .undo-bar, .pbar span, .dash-card.alert { animation: none; } }
.toast[hidden], .notice .n-more[hidden] { display: none; }

/* Tender page: big animated fit score */
.fit-big { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; margin: 6px 0 4px; }
.fit-big .bar { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.fit-big .bar i { display: block; height: 100%; border-radius: 5px; }
.fit-big .fb-num { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.fit-big .lvl { font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 4px; justify-self: end; }
.fit-big.strong .bar i { background: var(--green); } .fit-big.strong .fb-num { color: var(--green); } .fit-big.strong .lvl { background: var(--green-bg); color: var(--green); }
.fit-big.maybe .bar i { background: var(--amber); } .fit-big.maybe .fb-num { color: var(--amber); } .fit-big.maybe .lvl { background: var(--amber-bg); color: var(--amber); }
.fit-big.weak .bar i { background: var(--faint, #8a94a6); } .fit-big.weak .lvl { background: var(--surface-2); color: var(--slate); }
.fb-h { margin: 14px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--slate); }

.p-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.p-main { display: grid; gap: 4px; min-width: 0; }
.p-head .cd { min-width: 56px; padding: 5px 6px; } .p-head .cd b { font-size: 20px; }
@media (max-width: 600px) {
  .notice .tools { display: grid; grid-template-columns: 1fr 1fr; }
  .notice .tools .btn { justify-content: flex-start; }
  .dash .dash-pipe { display: none; }      /* on phones the pipeline bar lives on the Pipeline page */
  .dash .cs-row:nth-of-type(n+3) { display: none; }
}

/* ---------- Ask (plain-English search) ---------- */
.ask-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 6px 6px 12px; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; box-shadow: var(--lift, 0 1px 2px rgba(6,20,42,.06)); transition: border-color .15s, box-shadow .15s; }
.ask-bar:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.ask-bar .ask-ico { display: grid; place-items: center; width: 22px; height: 22px; color: var(--gold-ink); flex: none; }
.ask-bar .ask-ico svg { width: 20px; height: 20px; }
.ask-bar .input { border: 0; background: transparent; box-shadow: none; padding: 8px 4px; min-width: 0; flex: 1; }
.ask-bar .input:focus { outline: none; box-shadow: none; }
.ask-bar .btn { border-radius: 999px; flex: none; }
.ask-main { background: var(--navy); color: var(--on-brand); border-radius: var(--radius-l); padding: 14px; margin: 0 0 12px; }
.ask-main textarea { width: 100%; resize: none; font-size: 17px; line-height: 1.4; background: var(--surface); color: var(--ink); border: 1px solid transparent; border-radius: var(--radius-m); padding: 12px; }
.ask-main textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
.ask-main .ask-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.ask-main .ask-row .muted { color: var(--navy-text); }
.ask-main .btn.ghost { color: var(--navy-text); }
.ask-main #askGo { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.ask-try, .ask-next { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 16px; }
.ask-next { margin: 16px 0 0; }
.ask-ex { font: inherit; font-size: 13px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.ask-ex:hover { border-color: var(--gold); color: var(--ink); }
.ask-head { border-left: 3px solid var(--gold); padding: 2px 0 2px 12px; margin: 4px 0 12px; }
.ask-head .ask-q { margin: 0; font-size: 13px; color: var(--slate); }
.ask-head .ask-sum { margin: 2px 0 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-chips span { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--gold-tint); color: var(--gold-ink); }
.ask-chips span:first-child { background: var(--navy); color: var(--on-brand); }
.ask-words { margin-top: 8px; font-size: 13px; color: var(--slate); }
.ask-words summary { cursor: pointer; }
.ask-words p { margin: 4px 0 0; }
.ask-tools { justify-content: space-between; align-items: center; }
.ask-think { display: flex; align-items: center; gap: 5px; padding: 18px 4px; color: var(--slate); font-size: 14px; }
.ask-think .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: askDot 1s infinite ease-in-out; }
.ask-think .dot:nth-child(2) { animation-delay: .15s; } .ask-think .dot:nth-child(3) { animation-delay: .3s; margin-right: 6px; }
@keyframes askDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ask-think .dot { animation: none; opacity: .7; } }
@media (max-width: 600px) { .ask-bar .btn { padding-inline: 12px; } .ask-main { padding: 12px; } }

/* ==================================================================
   Redesign, November 2026: plainer and more professional.
   Self-hosted Lato (no Google Fonts), white header, navy buttons,
   one header and slim footer on every page, a menu on phones.
   ================================================================== */
@font-face { font-family: "TN Lato"; src: url(/fonts/lato-normal.woff) format("woff"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "TN Lato"; src: url(/fonts/lato-bold.woff) format("woff"); font-weight: 600 800; font-display: swap; }
:root { --radius-s: 6px; --radius-m: 8px; --radius-l: 12px; --gold-ink: #9a6408; }
body { font-size: 16.5px; }
.display, h1, h2 { font-weight: 700; letter-spacing: -.01em; line-height: 1.18; }
h1 { font-size: clamp(28px, 3.4vw, 42px); }
h2 { font-size: clamp(22px, 2.5vw, 30px); }
.mono, .num { letter-spacing: 0; }

/* Buttons: navy, with gold kept for small accents */
.btn { border-radius: var(--radius-m); font-weight: 700; }

/* Header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--rule); }
.site-head .wrap { min-height: 66px; gap: 22px; }
.logo { color: var(--ink); font-size: 20px; font-weight: 800; }
.logo .nm { color: var(--gold-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { color: var(--ink); } :root:not([data-theme="light"]) .logo .nm { color: var(--gold); } }
:root[data-theme="dark"] .logo { color: var(--ink); } :root[data-theme="dark"] .logo .nm { color: var(--gold); }
.logo [data-brand]::after { color: var(--slate); border-color: var(--rule); }
.site-head .nav { gap: 4px; flex: 1; }
.site-head .nav > a:first-child { margin-left: 8px; }
.site-head .nav a:not(.btn) { color: var(--ink-2); font-size: 15px; font-weight: 600; }
.site-head .nav a:not(.btn):hover { background: var(--surface-2); color: var(--ink); }
.site-head .nav a[aria-current="page"] { color: var(--ink); }
.site-head .head-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-head .head-r #signInLink:not(.btn) { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 6px 8px; }
.site-head .btn, .site-head .btn:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.site-head .btn:hover { background: var(--brand-2); }
.site-head .theme-btn { border-color: var(--rule); color: var(--ink-2); margin: 0; width: 36px; height: 36px; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.site-head .nav .m-only { display: none; }
.site-head .btn { white-space: nowrap; }
.site-foot .wrap.slim a.logo { display: inline-flex; align-items: center; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .site-head .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--rule); box-shadow: 0 12px 24px rgba(6, 20, 42, .12); flex-direction: column; align-items: stretch; padding: 8px 16px 14px; }
  .site-head.menu-open .nav { display: flex; }
  .site-head .nav > a:first-child { margin-left: 0; }
  .site-head .nav a:not(.btn) { font-size: 17px; padding: 12px 8px; border-bottom: 1px solid var(--rule-2); border-radius: 0; }
  .site-head .head-r #signInLink:not(.btn) { display: none; }
  .site-head .nav .m-only { display: block; }
}
.site-head { position: sticky; }

/* Slim footer */
.site-foot { background: var(--surface); color: var(--slate); border-top: 1px solid var(--rule); padding: 22px 0 28px; margin-top: 56px; font-size: 14px; }
.site-foot .wrap.slim { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; grid-template-columns: none; }
.site-foot .wrap.slim a { display: inline; padding: 0; color: var(--slate); text-decoration: none; }
.site-foot .wrap.slim a:hover { color: var(--ink); }
.site-foot .wrap.slim .logo { color: var(--ink); font-size: 16px; margin-right: 6px; }
.site-foot .wrap.slim .legal { margin-left: auto; display: flex; gap: 16px; }
.site-foot .wrap.slim .ogl { flex-basis: 100%; font-size: 12.5px; line-height: 1.5; margin: 6px 0 0; }
.site-foot .wrap.slim .ogl a { text-decoration: underline; }
@media (max-width: 700px) { .site-foot .wrap.slim .legal { margin-left: 0; } }
@media (display-mode: standalone) { .site-foot { padding-bottom: 88px; } }

/* ------------------------------------------------------------------
   New page sections (home, pricing): classes start "hx-" so they never
   clash with the app's own styles.
   ------------------------------------------------------------------ */
.hx-sec { padding: 64px 0; }
.hx-sec.tight { padding: 40px 0; }
.hx-white { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hx-navy { background: var(--navy); color: var(--navy-text); }
.hx-navy h2, .hx-navy h3 { color: #fff; }
.hx-eyebrow { font-size: 15px; font-weight: 700; color: var(--gold-ink); margin: 0 0 10px; }
.hx-navy .hx-eyebrow { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hx-eyebrow { color: var(--gold); } }
:root[data-theme="dark"] .hx-eyebrow { color: var(--gold); }
.hx-head { margin-bottom: 30px; max-width: 760px; }
.hx-head.center { margin-inline: auto; text-align: center; }
.hx-sub { font-size: 18px; color: var(--ink-2); margin: 0; }
.hx-navy .hx-sub { color: var(--navy-text); }
.hx-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hx-note { font-size: 14.5px; color: var(--slate); margin: 0; }
.hx-hero { padding: 48px 0 56px; }
.hx-hero .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hx-hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hx-hero-text h1 { margin: 0; max-width: 580px; }
.hx-lead { font-size: 18px; color: var(--ink-2); margin: 0; max-width: 560px; }
.hx-search { display: flex; background: var(--surface); border: 1.5px solid var(--rule); border-radius: var(--radius-l); overflow: hidden; max-width: 580px; box-shadow: var(--lift); }
.hx-search .input { border: 0; border-radius: 0; background: transparent; min-height: 54px; box-shadow: none; }
.hx-search input.input { flex: 1.3; min-width: 0; }
.hx-search select.input { flex: 1; min-width: 0; border-left: 1px solid var(--rule); }
.hx-search .btn { border-radius: 0; min-height: 54px; padding-inline: 22px; }
.hx-hero-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; margin: 0; }
.hx-hero-links a { color: var(--ink-2); font-weight: 600; }
.hx-media { flex: 1 1 440px; max-width: 600px; min-width: 0; position: relative; padding-bottom: 20px; }
.hx-screen { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); box-shadow: 0 14px 34px rgba(6, 20, 42, .12); overflow: hidden; }
.hx-screen .bar { height: 28px; background: var(--surface-2); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.hx-screen .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); opacity: .5; }
.hx-screen .in { padding: 18px; }
.hx-float { position: absolute; right: -14px; bottom: -14px; width: min(280px, 56%); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); box-shadow: 0 18px 40px rgba(6, 20, 42, .2); padding: 14px; font-size: 14px; }
.hx-row { padding: 12px 0; border-top: 1px solid var(--rule); }
.hx-row:first-of-type { border-top: 0; padding-top: 0; }
.hx-row .t { font-weight: 700; font-size: 15px; line-height: 1.3; display: flex; justify-content: space-between; gap: 10px; }
.hx-row .t b { white-space: nowrap; }
.hx-row .m { font-size: 13.5px; color: var(--slate); margin-top: 3px; }
.hx-why { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.hx-tag { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.hx-tag.g { background: var(--fit-bg); color: var(--fit); }
.hx-tag.a { background: var(--caution-bg); color: var(--caution); }
.hx-tag.b { background: #e8f0fa; color: #1d5fa8; }
.hx-meter { width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--fit) 0 81%, var(--rule) 81% 100%); display: grid; place-items: center; flex: none; }
.hx-meter i { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 15px; }
.hx-strip { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hx-strip .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; padding: 15px 0; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.hx-strip b { color: var(--ink); }
.hx-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; counter-reset: s; }
.hx-step { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 22px; }
.hx-step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; margin-bottom: 12px; }
.hx-step h3 { font-size: 19px; margin: 0 0 6px; }
.hx-step p { color: var(--ink-2); margin: 0; font-size: 16px; }
.hx-feats { display: flex; flex-direction: column; gap: 56px; }
.hx-feat { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hx-feat:nth-child(even) { flex-direction: row-reverse; }
.hx-feat .vis { flex: 1 1 440px; min-width: 0; }
.hx-feat .txt { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hx-feat h3 { font-size: clamp(22px, 2.2vw, 28px); margin: 0; }
.hx-feat .txt > p { color: var(--ink-2); margin: 0; }
.hx-ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.hx-ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.hx-ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--fit-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e6a45' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.hx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.hx-box { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 20px; }
.hx-box strong { display: block; font-size: 17px; margin-bottom: 6px; color: var(--ink); }
.hx-box p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.hx-navy .hx-box { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.hx-navy .hx-box strong { color: #fff; } .hx-navy .hx-box p { color: var(--navy-text); }
.hx-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; }
.hx-chips a { font-size: 14.5px; padding: 6px 12px; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.hx-chips a:hover { border-color: var(--faint); color: var(--ink); }
.hx-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.hx-plan { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 24px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.hx-plan.pop { border: 2px solid var(--brand); box-shadow: var(--lift); }
.hx-plan .flag { position: absolute; top: -12px; left: 24px; background: var(--brand); color: var(--on-brand); font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.hx-plan h3 { font-size: 20px; margin: 0; }
.hx-plan .price { font-size: 34px; font-weight: 800; color: var(--ink); }
.hx-plan .price small { font-size: 15px; font-weight: 600; color: var(--slate); }
.hx-plan p { color: var(--ink-2); font-size: 15.5px; margin: 0; flex: 1; }
.hx-ent { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: var(--navy); border-radius: var(--radius-l); padding: 22px 24px; color: var(--navy-text); }
.hx-ent strong { color: #fff; font-size: 18px; display: block; margin-bottom: 4px; }
.hx-ent p { margin: 0; }
.hx-ent .btn { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.hx-final { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.hx-final h2 { margin: 0; }
.hx-bi { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 8px; }
.hx-bi .hx-box { padding: 18px; }
.hx-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.hx-kv div { background: var(--surface-2); border-radius: var(--radius-m); padding: 10px 12px; }
.hx-kv span { display: block; font-size: 12.5px; font-weight: 700; color: var(--slate); }
.hx-kv b { font-size: 15.5px; color: var(--ink); }
@media (max-width: 600px) {
  .hx-sec { padding: 44px 0; }
  .hx-hero { padding: 28px 0 40px; }
  .hx-search { flex-direction: column; }
  .hx-search select.input { border-left: 0; border-top: 1px solid var(--rule); }
  .hx-float { position: relative; right: auto; bottom: auto; width: auto; margin: -24px 12px 0; }
  .hx-feat { gap: 24px; } .hx-feats { gap: 40px; }
}

/* Questions: two compact columns */
#faq .faq-grid h2 { font-size: clamp(24px, 2.6vw, 30px); }
#faq .faq-list { columns: 2 400px; column-gap: 20px; border-top: 0; }
#faq .faq-list details { break-inside: avoid; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 0 16px; margin: 0 0 8px; }
#faq .faq-list summary { padding: 12px 0; font-size: 15.5px; font-weight: 700; }
#faq .faq-list details p { margin: 0 0 12px; }
#faq .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
body .lp h1 { font-size: clamp(30px, 3.6vw, 44px); max-width: 24ch; }
body .hero h1, body .t-wrap h1, body .o-head h1, body .opp-hero h1, body .auth h1 { font-size: clamp(28px, 3.4vw, 42px); }
body .app-main h1 { font-size: clamp(26px, 3vw, 36px); }
@media (max-width: 460px) { .site-head .logo [data-brand]::after { display: none; } .site-head .wrap { gap: 10px; } .site-head .head-r { gap: 6px; } .site-head .logo { font-size: 18px; } }

/* ------------------------------------------------------------------
   Chat assistant: round button bottom right, rounded panel (4 Nov 2026)
   ------------------------------------------------------------------ */
.tc { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-size: 15px; }
.tc-fab { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px rgba(6, 20, 42, .32); transition: transform .15s; }
.tc-fab:hover { transform: scale(1.05); }
.tc-fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.tc-fab svg { width: 26px; height: 26px; }
.tc.open .tc-fab { display: none; }
.tc-panel { position: absolute; right: 0; bottom: 0; width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100vh - 110px)); background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; box-shadow: 0 24px 60px rgba(6, 20, 42, .28); display: flex; flex-direction: column; overflow: hidden; }
.tc-panel[hidden] { display: none; }
.tc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 16px 14px; background: var(--navy); color: #fff; }
.tc-head strong { display: block; font-size: 17px; }
.tc-head span { display: block; font-size: 13px; color: var(--navy-text); margin-top: 2px; }
.tc-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.tc-x svg { width: 18px; height: 18px; }
.tc-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.tc-m { max-width: 88%; padding: 10px 13px; border-radius: 16px; line-height: 1.45; }
.tc-m p { margin: 0; }
.tc-m.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--rule); border-bottom-left-radius: 6px; color: var(--ink); }
.tc-m.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 6px; }
.tc-chips { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.tc-chips button { text-align: left; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 12px; padding: 8px 10px; font: inherit; font-size: 14px; cursor: pointer; }
.tc-chips button:hover { border-color: var(--faint); }
.tc-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tc-links a { font-size: 13.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink); text-decoration: none; }
.tc-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.tc-r { display: block; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--paper); }
.tc-r b { display: block; font-size: 14px; line-height: 1.3; }
.tc-r span { display: block; font-size: 12.5px; color: var(--slate); margin-top: 2px; }
.tc-r:hover { border-color: var(--faint); }
.tc-all { margin-top: 8px; border: 0; background: var(--navy); color: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.tc-none { margin: 8px 0 0; color: var(--slate); font-size: 14px; }
.tc-typing { display: flex; gap: 4px; padding: 4px 0; }
.tc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: tcdot 1s infinite ease-in-out; }
.tc-typing span:nth-child(2) { animation-delay: .15s; } .tc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes tcdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.tc-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--rule); background: var(--surface); }
.tc-form textarea { flex: 1; resize: none; border: 1px solid var(--rule); border-radius: 18px; padding: 10px 14px; font: inherit; font-size: 15px; line-height: 1.35; background: var(--paper); color: var(--ink); max-height: 120px; }
.tc-form textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; }
.tc-send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.tc-send svg { width: 20px; height: 20px; }
.tc-send[disabled] { opacity: .5; }
.tc-foot { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 0 14px 10px; background: var(--surface); font-size: 12.5px; color: var(--slate); }
.tc-clear { border: 0; background: none; color: var(--slate); font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .tc-typing span { animation: none; } .tc-fab { transition: none; } }
@media (max-width: 900px) { .tc { right: 14px; bottom: 82px; } }
@media (max-width: 700px) {
  .tc-panel { position: fixed; right: 8px; left: 8px; bottom: 8px; top: 8px; width: auto; height: auto; border-radius: 20px; }
  .tc.open { z-index: 80; }
}
body.typing .tc:not(.open) { display: none; }

/* ------------------------------------------------------------------
   Bid pack layout (4 Nov 2026)
   ------------------------------------------------------------------ */
.pk2 h1 { margin-bottom: 6px; }
.pk-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 18px; }
.pk-toc { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 10px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.pk-toc a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; text-decoration: none; color: var(--ink-2); }
.pk-toc a:hover { background: var(--surface-2); color: var(--ink); }
.pk-toc .pill { font-size: 11.5px; padding: 1px 7px; }
.pk-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pk-panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 20px 22px; scroll-margin-top: 80px; }
.pk-panel h2 { font-size: 21px; margin: 0 0 12px; }
.pk-panel h3 { font-size: 16.5px; margin: 16px 0 8px; }
.pk-panel table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pk-panel td, .pk-panel th { padding: 9px 10px; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.pk-panel th { font-size: 13px; color: var(--slate); border-top: 0; }
.pk-panel ul { margin: 0; padding-left: 20px; }
.pk-verdict { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.pk-verdict > div:last-child { flex: 1; min-width: 240px; }
.pk-meter { --p: 0; width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(var(--fit) calc(var(--p) * 1%), var(--rule) 0); display: grid; place-items: center; flex: none; }
.pk-meter i { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 21px; color: var(--ink); }
.pk-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.pk-box { border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 12px 14px; }
.pk-box strong { display: block; margin-bottom: 6px; }
.pk-good { color: var(--fit); } .pk-warn { color: var(--caution); }
.pk-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pk-kv div { background: var(--surface-2); border-radius: var(--radius-m); padding: 10px 12px; }
.pk-kv span { display: block; font-size: 12.5px; font-weight: 700; color: var(--slate); }
.pk-kv b { font-size: 15.5px; color: var(--ink); }
.pk-plan { list-style: none; margin: 0; padding: 0; }
.pk-plan li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.pk-plan li:first-child { border-top: 0; }
.pk-check { margin-top: 10px; background: var(--fit-bg); border-radius: var(--radius-m); padding: 12px 14px; font-size: 14.5px; }
.pk-hist { padding: 8px 0; border-top: 1px solid var(--rule); font-size: 14.5px; }
.pk-ask { display: flex; gap: 8px; }
.pk-ask .input { flex: 1; min-width: 0; }
.pk-chat { margin-top: 12px; display: grid; gap: 6px; }
.pk-q { justify-self: end; background: var(--navy); color: #fff; border-radius: 14px 14px 4px 14px; padding: 8px 12px; margin: 0; max-width: 85%; }
.pk-a { background: var(--surface-2); border-radius: 14px 14px 14px 4px; padding: 10px 12px; margin: 0; max-width: 92%; white-space: pre-line; }
@media (max-width: 900px) { .pk-wrap { grid-template-columns: 1fr; } .pk-toc { position: static; flex-direction: row; flex-wrap: wrap; } .pk-toc a { background: var(--surface-2); border-radius: 999px; padding: 6px 10px; } }
@media (max-width: 600px) { .pk-panel { padding: 16px; } .pk-plan li { grid-template-columns: 84px 1fr; } }
@media print { .pk-wrap { display: block; } .pk-panel { border: 0; padding: 0; margin-bottom: 14px; } .tc { display: none !important; } }

/* Photos on sector, area and buyer pages */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 32px; align-items: center; }
.lp-hero-text { min-width: 0; }
.lp-hero-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-l); }
@media (max-width: 900px) { .lp-hero { grid-template-columns: 1fr; gap: 18px; } .lp-hero-img { aspect-ratio: 16 / 9; } }
.hx-who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 32px; align-items: center; margin-bottom: 28px; }
.hx-who img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-l); }
@media (max-width: 900px) { .hx-who { grid-template-columns: 1fr; gap: 18px; } }
.hx-sectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 22px; }
.hx-sector { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); overflow: hidden; text-decoration: none; color: var(--ink); }
.hx-sector img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hx-sector span { display: block; padding: 12px 14px; font-weight: 700; }
.hx-sector:hover { border-color: var(--faint); }
.pack.pk2 .pk-panel h2 { margin-top: 0; }
.pack.pk2 .pk-panel h3 { margin-top: 16px; }
.hx-sectors .hx-sector img { height: 170px; width: 100%; aspect-ratio: auto; object-fit: cover; }

/* Scout */
.tc-fab { width: auto; height: 58px; padding: 0 18px 0 5px; border-radius: 999px; gap: 10px; display: inline-flex; align-items: center; font: inherit; font-weight: 800; font-size: 15px; }
.tc-fab svg { width: 48px; height: 48px; }
.tc-fab:hover { transform: translateY(-1px); }
.tc-av { width: 40px; height: 40px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px rgba(201, 165, 76, .5); }
.tc-av svg { width: 40px; height: 40px; display: block; }
.tc-head { align-items: center; }
.tc-head > div { flex: 1; min-width: 0; }
@media (max-width: 900px) { .tc-fab { padding: 0 5px; } .tc-fab-label { display: none; } }

/* Scout on the public pages: no bottom menu there, so it sits in the corner */
@media (max-width: 900px) { .tc.tc-site { bottom: 14px; } }
html.tc-lock, html.tc-lock body { overflow: hidden; }

/* ---------- Welcome questions and worldwide coverage (5 Nov 2026) ---------- */
.wz { max-width: 720px; margin: 0 auto; }
.wz-top { margin: 4px 0 18px; }
.wz-kicker { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.wz-top h1 { margin: 0 0 14px; }
.wz-bar { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding: 0; counter-reset: wz; }
.wz-bar li { counter-increment: wz; font-size: 12px; color: var(--slate); }
.wz-bar li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--rule); margin-bottom: 6px; transition: background .3s; }
.wz-bar li.done::before { background: var(--navy); }
.wz-bar li.now::before { background: var(--gold); }
.wz-bar li.now { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .wz-bar li span { display: none; } .wz-bar li.now span { display: inline; white-space: nowrap; } }
.wz-step { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 18px; }
.wz-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.wz-nav .wz-count { font-size: 13px; color: var(--slate); }
.wz-nav #wzNext { margin-left: auto; }
.wz-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-pill input, .wz-opt input, .wz-int input { position: absolute; opacity: 0; pointer-events: none; }
.wz-pill span { display: inline-block; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; cursor: pointer; background: var(--surface); }
.wz-pill input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.wz-pill input:focus-visible + span, .wz-opt input:focus-visible + span, .wz-int input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.wz-opts { display: grid; gap: 8px; }
.wz-opt, .wz-int { position: relative; display: block; cursor: pointer; }
.wz-opt > span, .wz-int > span { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px 12px 40px; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--surface); transition: border-color .15s, background .15s; }
.wz-opt > span::before, .wz-int > span::before { content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border: 2px solid var(--faint); border-radius: 50%; box-sizing: border-box; }
.wz-int > span::before { border-radius: 4px; }
.wz-opt input:checked + span, .wz-int input:checked + span { border-color: var(--navy); background: color-mix(in srgb, var(--gold) 8%, var(--surface)); }
.wz-opt input:checked + span::before { border: 5px solid var(--navy); }
.wz-int input:checked + span::before { background: var(--navy); border-color: var(--navy); box-shadow: inset 0 0 0 2px var(--surface); }
.wz-opt strong, .wz-int strong { font-size: 15px; }
.wz-opt small, .wz-int small { grid-column: 1 / -1; color: var(--slate); font-size: 13px; }
.wz-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--gold-tint); color: var(--gold-ink); align-self: start; white-space: nowrap; }
.wz-tag.ok { background: var(--fit-bg); color: var(--fit); }
.wz-ints { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.wz-int > span { grid-template-columns: 1fr; }
.wz-more { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--rule); }
.wz-l { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.wz-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.wz-chips:empty { display: none; }
.wz-plan:empty { display: none; }
.wz-plan { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-m); background: var(--caution-bg); color: var(--caution); font-size: 13px; font-weight: 500; }
.wz-done { text-align: center; padding: 70px 16px; }
.wz-spin { width: 44px; height: 44px; margin: 0 auto 18px; border-radius: 50%; border: 3px solid var(--rule); border-top-color: var(--gold); animation: wzSpin .8s linear infinite; }
@keyframes wzSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wz-spin { animation: none; } .wz-bar li::before { transition: none; } }
.locked-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; padding: 14px 16px; border-radius: var(--radius-l); background: var(--navy); color: #fff; }
.locked-card p { margin: 3px 0 0; color: var(--navy-text); font-size: 14px; }
.abroad { margin: 0 0 16px; }
.abroad-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.abroad-head h2 { margin: 0; font-size: 18px; }

body.in-welcome #tnChat { display: none; }

/* How to bid (international tenders) */
.howto { margin: 10px 0 0; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--surface-2); font-size: 14px; }
.howto > summary { cursor: pointer; padding: 8px 12px; font-weight: 600; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 8px; }
.howto > summary::-webkit-details-marker { display: none; }
.howto > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink); transform: rotate(-45deg); transition: transform .15s; flex: none; }
.howto[open] > summary::before { transform: rotate(45deg); }
.howto ol { margin: 0; padding: 0 14px 0 34px; line-height: 1.5; color: var(--ink-2); }
.howto li { margin: 0 0 6px; }
.howto-w { margin: 6px 12px 0; color: var(--ink-2); line-height: 1.5; }
.howto-l { margin: 8px 12px 10px; font-size: 13px; }
.howto-l a { color: var(--ink); }

/* Bid pack checklist */
.chk-bar { height: 6px; border-radius: 6px; background: var(--rule); overflow: hidden; margin: 0 0 12px; }
.chk-bar i { display: block; height: 100%; width: 0; background: var(--fit); transition: width .3s; }
.chk-h { font-size: 16px; margin: 14px 0 2px; }
.chk-type { display: inline-block; min-width: 38px; text-align: center; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-right: 8px; vertical-align: 1px; }
.chk-type.have { background: var(--gold-tint); color: var(--gold-ink); }
.chk-type.do { background: var(--surface-2); color: var(--ink-2); }
.chk-item:has(input:checked) strong { text-decoration: line-through; color: var(--slate); }
@media (prefers-reduced-motion: reduce) { .chk-bar i { transition: none; } }
.checklist { display: grid; gap: 6px; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--surface); cursor: pointer; line-height: 1.45; }
.checklist label:hover { border-color: var(--gold); }
.checklist input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--fit); flex: none; }
.checklist label:has(input:checked) { background: var(--fit-bg); border-color: color-mix(in srgb, var(--fit) 30%, transparent); }

/* Buyer contacts, spend and re-tender forecast */
.contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.contact { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--surface); min-width: 0; }
.contact a { overflow-wrap: anywhere; }
.spend .bar-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; }
.spend .bar-row b { white-space: nowrap; }
.retender { color: var(--ink-2); }
.retender::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 6px; vertical-align: 1px; }
.retender.soon::before { background: var(--danger); }

/* Bid review */
.review-top { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.review-score { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 120px; padding: 14px; border-radius: var(--radius-m); background: var(--gold-tint); color: var(--gold-ink); text-align: center; }
.review-score strong { font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.review-score span { font-size: 12px; margin-top: 4px; }
.review-fixes { margin: 0; padding-left: 22px; line-height: 1.55; }
.review-fixes li { margin-bottom: 6px; }
.review-flags { border-left: 4px solid var(--danger); }
.review-q h4 { margin: 12px 0 4px; font-size: 14px; }
.review-q ul { margin: 0; padding-left: 20px; line-height: 1.5; }
.review-q-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.review-q-head h3 { margin: 0; font-size: 17px; }
.checklist .chk-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--surface); line-height: 1.45; }
@media (max-width: 560px) { .review-top { grid-template-columns: 1fr; } }

/* Bid academy */
.academy-list { display: grid; gap: 8px; margin: 0 0 18px; }
.academy-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--surface); color: var(--ink); text-decoration: none; }
.academy-item:hover { border-color: var(--gold); }
.academy-item.locked { opacity: .75; }
.academy-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; }
.lesson h2 { font-size: 19px; margin: 18px 0 6px; }
.lesson h2:first-child { margin-top: 0; }
.lesson p { line-height: 1.6; max-width: 70ch; margin: 0; }
.quiz-q { border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 12px 14px; margin: 0 0 10px; }
.quiz-q legend { padding: 0 4px; }
.quiz-a { display: flex; gap: 8px; align-items: center; padding: 5px 0; cursor: pointer; }
.quiz-q.right { border-color: var(--fit); background: var(--fit-bg); }
.quiz-q.wrong { border-color: var(--danger); }
.quiz-why { margin: 8px 0 0; }
.cert { max-width: 760px; margin: 20px auto; padding: 48px 40px; text-align: center; border: 6px double var(--gold); border-radius: 6px; background: var(--surface); }
.cert h1 { font-size: 34px; margin: 6px 0 20px; }
.cert-k { color: var(--gold-ink); font-weight: 700; margin: 0; }
.cert-n { font-size: 28px; font-weight: 700; margin: 6px 0; }
.cert-d { margin-top: 28px; color: var(--slate); }
@media print { .cert { border-color: #b08a2e; margin: 0 auto; } }
.review-q-head .pill, .checklist .chk-item .pill { white-space: nowrap; flex: none; }

/* Premium tools (5 Nov 2026): win/loss, market reports, frameworks, accounts, team workspace, connections */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.kpi { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 12px 14px; margin: 0; }
.kpi dt { font-size: 13px; color: var(--slate); }
.kpi dd { margin: 4px 0 0; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.two-col > .panel { margin: 0; }
.bars .bar-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; padding: 4px 0; }
.bars .bar-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .b { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bars .b i { display: block; height: 100%; background: var(--ink-2); border-radius: 6px; }
.bars b { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
table.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mini th, table.mini td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rule); }
table.mini .n { text-align: right; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tasks { display: grid; gap: 6px; }
.task { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--surface); cursor: pointer; }
.task input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--fit); }
.task.done strong { text-decoration: line-through; color: var(--slate); }
.comments { display: grid; gap: 8px; max-height: 280px; overflow: auto; }
.comment { padding: 8px 10px; border-radius: var(--radius-m); background: var(--surface-2); }
.comment p { margin: 4px 0 0; line-height: 1.5; }
.mytasks { margin: 0; padding-left: 18px; line-height: 1.6; }
pre.code { background: var(--surface-2); border-radius: var(--radius-m); padding: 10px 12px; overflow-x: auto; font-size: 12.5px; white-space: pre; }
.account-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; align-items: end; }
@media (max-width: 760px) { .two-col { grid-template-columns: minmax(0, 1fr); } .kpi dd { font-size: 20px; } }
