/* Light by default; dark only when chosen with the theme button (data-theme="dark"). */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f2;
  --panel: #ffffff;
  --ink: #111a17;
  --ink-2: #3a4541;
  --muted: #66716c;
  --line: #e2e5e0;
  --line-2: #cfd4cd;
  --brand: #0f392e;
  --brand-2: #175c47;
  --link: #17664d;
  --brand-ink: #ffffff;
  --accent: #d9921f;
  --tint: #e8f1ec;
  --lots-bg: #d7e8de;        /* a tender's lots, on the light-green card */
  --fw-bg: #fbf1df;          /* a framework or dynamic market */
  --fw-lots-bg: #fdf8ee;     /* its lots */
  --closed-bg: #fbe9e5;      /* members only: a job let under an existing framework */
  --closed-lots-bg: #fdf3f1;
  --warn: #9a5b0b;
  --warn-bg: #fbf1df;
  --red: #a63a2a;
  --red-bg: #f8e4df;
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(17, 26, 23, .06), 0 4px 16px rgba(17, 26, 23, .06);
  color-scheme: light;
}
/* tender badges (12 Nov 2026): one colour per kind, light and dark */
:root { --t-fw-bg: #e8edfa; --t-fw: #2e4893; --t-open-bg: #ddf1ee; --t-open: #0f6157; --t-join-bg: #e2f3e6; --t-join: #1c6534;
  --t-lock-bg: #f8e4df; --t-lock: #a63a2a; --t-sme-bg: #fbe6f0; --t-sme: #8c2c5e; --t-soon-bg: #eee8fa; --t-soon: #57409a; }
:root[data-theme="dark"] { --t-fw-bg: #1d2747; --t-fw: #a9bcf2; --t-open-bg: #133632; --t-open: #8edbcf; --t-join-bg: #173622; --t-join: #9edcb0;
  --t-lock-bg: #3a1f19; --t-lock: #ee9a88; --t-sme-bg: #3a1c2c; --t-sme: #f0a8cb; --t-soon-bg: #2a2142; --t-soon: #c6b5f0; }
:root[data-theme="dark"] {
  --bg: #0e1513; --bg-alt: #131c19; --panel: #17221e; --ink: #e8eeea; --ink-2: #c3cdc8; --muted: #8d9a94;
  --line: #26332e; --line-2: #33433c; --brand: #9ad3b8; --brand-2: #b6e2cc; --link: #8fd0b2; --brand-ink: #0e1513;
  --tint: #1b2f27; --lots-bg: #24402f; --fw-bg: #352812; --fw-lots-bg: #2b2215; --closed-bg: #3a1f19; --closed-lots-bg: #2f1b17; --warn: #f0bd6a; --warn-bg: #352812; --red: #ee9a88; --red-bg: #3a1f19;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* the hidden attribute always wins over layout rules */
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; }   /* room to scroll the last buttons clear of the Help button */
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.02em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }

/* announcement + header */
.announce { background: var(--brand); color: var(--brand-ink); font-size: .85rem; }
.announce .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 12px; }
.announce a { color: var(--brand-ink); }
.announce .plan-pill { background: rgba(255,255,255,.14); border-radius: 4px; padding: 2px 8px; }
:root[data-theme="dark"] .announce .plan-pill { background: rgba(0,0,0,.15); }
header.top { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
header.top .wrap.top-row { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 28px; }
header.top .wrap.nav-row { display: flex; align-items: center; height: 46px; border-top: 1px solid var(--line); }
.logo { font-weight: 700; font-size: 1.55rem; letter-spacing: -.04em; color: var(--brand); text-decoration: none; display: inline-flex; align-items: baseline; }
.logo i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 3px; }
nav.main { display: flex; gap: 2px; flex: 1; align-items: center; margin-left: -12px; }
nav.main > a, .dd > button { color: var(--ink-2); text-decoration: none; font: 500 .95rem var(--font); padding: 8px 12px; border-radius: 6px; background: none; border: 0; cursor: pointer; }
nav.main > a:hover, .dd > button:hover, .dd.open > button { background: var(--bg-alt); color: var(--ink); }
nav.main > a.active, .dd.active > button { color: var(--brand); }
.dd { position: relative; }
.dd > button::after { content: ""; display: inline-block; margin-left: 7px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.dd .menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px;
  max-height: min(72vh, 640px); overflow-y: auto; overscroll-behavior: contain; z-index: 50; }
.dd.wide .menu { left: auto; right: 0; width: min(680px, 92vw); }
.dd.wide.open .menu { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
.menu-h { grid-column: 1 / -1; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 2px; }
.dd.open .menu { display: block; }
nav.portal { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; min-width: 0; }
nav.portal b { margin-right: 8px; font-weight: 700; }
nav.portal a { text-decoration: none; padding: 2px 8px; border-radius: 4px; opacity: .9; }
nav.portal a:hover, nav.portal a.on { background: rgba(255,255,255,.16); opacity: 1; }
.announce.portal-bar { background: var(--brand-2); }
.announce .plan-note { white-space: nowrap; opacity: .85; }
.dd .menu a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.dd .menu a:hover { background: var(--bg-alt); }
.dd .menu a b { display: block; font-weight: 600; font-size: .95rem; }
.dd .menu a span { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.top-actions .menu-btn { display: none; }
.announce .narrow-only, .nav-acct { display: none; }   /* phones only (below): Log in where the header has no room */
@media (max-width: 1000px) {
  header.top .wrap.nav-row { height: 0; border-top: 0; }
  nav.main { display: none; position: absolute; top: 58px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--panel);
    border-bottom: 1px solid var(--line); padding: 12px 16px; box-shadow: var(--shadow); margin-left: 0;
    max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; }
  .dd.wide .menu, .dd.wide.open .menu { display: none; width: auto; }
  .dd.wide.open .menu { display: block; }
  .dd .menu { max-height: none; overflow: visible; }
  nav.portal { flex-wrap: nowrap; overflow-x: auto; }
  nav.portal b { display: none; }
  nav.main.open { display: flex; }
  .dd .menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 10px; min-width: 0; }
  .top-actions .menu-btn { display: inline-flex; }
  .top-actions { margin-left: auto; }
  .top-actions .hide-sm { display: none; }
  .announce .narrow-only { display: inline; }
  nav.main .nav-acct { display: flex; gap: 8px; padding: 4px 0 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
  nav.main .nav-acct .btn { flex: 1; justify-content: center; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 6px; padding: 10px 18px; font: 600 .95rem var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); white-space: nowrap; }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); color: var(--brand-ink); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.line:hover { background: var(--bg-alt); color: var(--ink); }
.btn.sm { padding: 6px 12px; font-size: .875rem; }
.btn.lg { padding: 13px 22px; font-size: 1rem; }
@media (max-width: 560px) { .btn { white-space: normal; max-width: 100%; } }   /* a long label (a council's name) wraps instead of pushing the page wide */

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
section.tight { padding: 40px 0; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.hero { padding: 64px 0 56px; }
.hero .grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero .grid { grid-template-columns: 1fr; gap: 32px; } }
.hero h1 { max-width: 13ch; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero .fine { margin-top: 14px; font-size: .85rem; color: var(--muted); }

.sources { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.sources .wrap { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: .9rem; }
.sources b { color: var(--ink-2); font-weight: 600; }

.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.feature.flip > :first-child { order: 2; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature.flip > :first-child { order: 0; } }
.feature h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
.feature ul { padding-left: 18px; color: var(--ink-2); }
.feature li { margin: 6px 0; }

/* product-style panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.panel-head b { color: var(--ink); font-size: .95rem; }
.panel-body { padding: 4px 0; }
.prow { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.prow:last-child { border-bottom: 0; }
.prow .t { font-weight: 600; color: var(--ink); line-height: 1.35; }
.prow .m { color: var(--muted); font-size: .82rem; }
.prow .v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.blur { filter: blur(5px); user-select: none; }

.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.tag.green { background: var(--tint); color: var(--brand-2); border-color: transparent; }
.imp-pairs { display: grid; gap: 8px; margin-top: 10px; }
.imp-pair { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-size: .9rem; }
.tag.odds.good { background: var(--tint); color: var(--brand-2); border-color: transparent; }
.tag.odds.fair { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.tag.odds.long { background: var(--red-bg); color: var(--red); border-color: transparent; }
.tag.odds.big { background: var(--red-bg); color: var(--red); border-color: transparent; }
.tag.odds.ask { background: var(--warn-bg); color: var(--warn); border-color: transparent; text-decoration: none; }
.tag.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.tag.red { background: var(--red-bg); color: var(--red); border-color: transparent; }

/* grids, cards, stats */
.cols { display: grid; gap: 20px; }
.cols > * { min-width: 0; }   /* a wide table scrolls in its own box, not the page (My market on a phone: John, 7 Nov 2026) */
.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .c3, .c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .c2, .c3, .c4 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.card h3 { margin-bottom: 6px; }
a.card { text-decoration: none; color: var(--ink); display: block; }
a.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.figure { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.figure-l { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.statrow > div { padding: 18px 20px; border-right: 1px solid var(--line); min-width: 0; }
.statrow .figure { overflow-wrap: anywhere; font-size: clamp(1.4rem, 2.2vw, 2rem); }   /* long figures wrap, never overlap */
.statrow > div:last-child { border-right: 0; }
@media (max-width: 700px) { .statrow > div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 24px; background: var(--panel); display: flex; flex-direction: column; gap: 12px; }
.plan.plan-pick { border: 2px solid var(--brand); }   /* not ".pick": that is the Insights dropdown (13 Nov 2026) */
.plan .price { font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; }
.plan .price small { font-size: .9rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--ink-2); display: grid; gap: 8px; }
.plan li::before { content: "✓"; color: var(--brand-2); font-weight: 700; margin-right: 8px; }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "–"; color: var(--muted); }
.plan .btn { margin-top: auto; justify-content: center; }
.plan h3 { margin: 0; }
.plan-tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2); }
.plan-who { margin: 0; font-size: .92rem; color: var(--ink-2); }
.checks-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; margin: 6px 0 14px; }
fieldset.checks { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; min-width: 0; }
fieldset.checks legend { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; padding: 0; }
fieldset.checks label { font-size: .9rem; display: flex; gap: 6px; align-items: baseline; }
fieldset.checks legend label { font: inherit; display: flex; gap: 6px; align-items: baseline; cursor: pointer; }
.side-picker summary { cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--ink-2); list-style: none; display: flex; gap: 8px; align-items: baseline; }
.side-picker summary::-webkit-details-marker { display: none; }
.side-picker summary::before { content: "▸"; font-size: .7rem; color: var(--muted); }
.side-picker[open] summary::before { content: "▾"; }
.side-picker .pick-n { font-weight: 400; color: var(--muted); font-size: .8rem; }
.side-picker .picker-body { display: grid; gap: 12px; margin-top: 8px; padding: 10px 10px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); max-height: 340px; overflow: auto; }
.side-picker fieldset.checks label { font-size: .85rem; }
/* the Industries dropdown on the search pages: looks like a select, opens its tick list in place, tags show the choice */
.side-field { display: grid; gap: 6px; }
.side-label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.side-picker.dd > summary.pick-field { justify-content: space-between; align-items: center; padding: 9px 11px; border: 1px solid var(--line-2);
  border-radius: 6px; background: var(--panel); color: var(--ink); font: 400 .93rem var(--font); }
.side-picker.dd > summary.pick-field::before { content: none; }
.side-picker.dd > summary.pick-field::after { content: ""; width: 7px; height: 7px; margin: 0 3px 4px 8px; border: solid var(--ink-2); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.side-picker.dd[open] > summary.pick-field { border-color: var(--brand); }
.side-picker.dd .picker-body { margin-top: 4px; max-height: 300px; }
.pick-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-chips:empty { display: none; }
.pick-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--panel); color: var(--ink-2); font: 500 .78rem var(--font); cursor: pointer; }
.pick-chip:hover { border-color: var(--brand); color: var(--brand); }
.pick-chip.more { border-style: dashed; color: var(--brand); }
.more-filters > summary { cursor: pointer; list-style: none; font-size: .85rem; font-weight: 600; color: var(--brand); display: flex; gap: 8px; align-items: baseline; }
.more-filters > summary::-webkit-details-marker { display: none; }
.more-filters > summary::before { content: "+"; width: .8em; }
.more-filters[open] > summary::before { content: "−"; }
.more-filters .pick-n { font-weight: 400; color: var(--muted); font-size: .8rem; }
.more-filters .more-body { display: grid; gap: 16px; margin-top: 12px; }
details#new-alert summary { cursor: pointer; }
.sheet { position: fixed; inset: 0; background: rgba(10, 20, 15, .45); z-index: 100; display: grid; place-items: center;
  padding: 16px max(16px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
.sheet-box { width: min(560px, 100%); }
.sheet-top { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 8px; padding: 6px 0; background: var(--panel); }
.cl-region { margin: 14px 0 0; padding: 0; }
.cl-region[hidden], .cl-list li[hidden] { display: none; }
.cl-region h3 { margin: 0 0 6px; font-size: 1rem; }
.cl-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.cl-list li { padding: 2px 0; break-inside: avoid; }
@media (max-width: 560px) { .cl-list { columns: 1; } }
.tr-btn { margin-left: 0; }
.win-btn { font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; background: var(--brand); color: var(--brand-ink); border: 1px solid var(--brand); border-radius: 999px; padding: 2px 10px; }
.win-btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.win-guide-box { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.win-guide table.t th { width: 28%; text-align: left; vertical-align: top; font-weight: 600; }
.win-guide table.t td, .win-guide table.t th { padding: 7px 10px; }
@media (max-width: 600px) { .win-guide table.t th { width: auto; display: block; padding-bottom: 0; } .win-guide table.t td { display: block; } }
.verdict { border-radius: 10px; padding: 14px 18px; border: 1px solid var(--line); border-left-width: 5px; margin: 8px 0 16px; }
.verdict.green { border-left-color: var(--brand-2); }
.verdict.warn { border-left-color: #c9932b; }
.verdict.red { border-left-color: #b4432f; }
.verdict ul { margin: 6px 0 0; padding-left: 20px; }
.tag.red { background: rgba(180, 67, 47, .12); color: #b4432f; }
.q-card { margin-top: 14px; }
.q-card .bank { margin: 2px 0 4px; }
.q-card .bank-hit { display: inline-block; margin: 2px 10px 2px 0; }
.q-card .bank-row { padding: 6px 0; border-top: 1px solid var(--line); }
.t td.nowrap { white-space: nowrap; }
.q-card textarea.ans { width: 100%; font: inherit; line-height: 1.5; resize: vertical; margin: 6px 0; }
.doclist { margin: 6px 0 12px; padding-left: 20px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: start; }
.dash-panel { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; background: var(--panel); min-width: 0; }
.dash-panel h3 { margin: 0 0 8px; }
.dash-panel .figure { margin: 0; }
.locked-panel .preview { filter: blur(3px); opacity: .5; pointer-events: none; user-select: none; margin-bottom: 10px; }
.council-track { border-top: 1px solid var(--line); padding: 8px 0; }
.council-track .steps, .locked-panel .steps { display: grid; gap: 2px; }
.mini-bar { height: 4px; background: var(--line); border-radius: 2px; margin-top: 4px; }
.mini-bar i { display: block; height: 100%; background: var(--brand-2); border-radius: 2px; }
.checklist .check-group { margin-bottom: 12px; }
.checklist .ck-stage { font-weight: 700; margin: 14px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.checklist .ck-stage:first-of-type { margin-top: 4px; }
.check-item { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; font-size: .92rem; }
.check-item input:checked + span { color: var(--muted); text-decoration: line-through; }
/* a person's badge: initials in their colour (--av), wherever a team sees who did what */
.av { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--av, #5d6d7e); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .03em; vertical-align: middle; cursor: default; flex: none; box-shadow: 0 0 0 2px var(--panel); }
.av.lg { width: 44px; height: 44px; font-size: 1rem; }
.av-row { display: inline-flex; }
.av-row .av { margin-left: -6px; }
.av-row .av:first-child { margin-left: 0; }
.qby .av { margin-left: 4px; }
.qassign { display: inline-flex; align-items: center; gap: 6px; }
.app-bar .me { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; cursor: pointer; list-style: none; }
.app-bar .me::-webkit-details-marker { display: none; }
.app-bar .me::after { content: "▾"; font-size: .7rem; color: var(--muted); }
.me-menu { position: relative; }
.me-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 190px; display: grid; padding: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.me-menu .menu a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.me-menu .menu a:hover, .me-menu .menu a.on { background: var(--bg-alt); color: var(--ink); }
.me-menu .lock { font-size: .68rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.trial-note { color: var(--accent-ink, #8a5a00); font-weight: 600; text-decoration: none; white-space: nowrap; }
.upsell.trial { border-color: var(--accent); }
.badge-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.badge-edit label { display: grid; gap: 4px; font-size: .85rem; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; background: var(--av); cursor: pointer; padding: 0; }
.sw.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--panel) inset; }
.sw:hover { transform: scale(1.08); }
.saved-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 10px; }
.saved-controls label { display: grid; gap: 4px; min-width: 160px; }
.saved-actions { display: flex; gap: 8px; }
.start-bid { border: 2px solid var(--brand-2); }
.dropzone { display: grid; gap: 4px; place-items: center; text-align: center; border: 2px dashed var(--line-2); border-radius: 10px; padding: 26px 16px; cursor: pointer; background: var(--bg-alt); }
.dropzone.over { border-color: var(--brand-2); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone span { color: var(--muted); font-size: .9rem; }
.dropzone .dz-files { color: var(--ink); font-weight: 600; }
details.card > summary { cursor: pointer; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 28px auto 0; max-width: 900px; text-align: left; }
.hero-stats div { border-left: 3px solid var(--brand-2); padding: 2px 0 2px 12px; color: var(--muted); font-size: .88rem; }
.hero-stats b { display: block; font-size: 1.5rem; color: var(--ink); letter-spacing: -.02em; }
.pillar { display: block; text-decoration: none; color: inherit; position: relative; transition: border-color .15s; }
.pillar:hover { border-color: var(--brand-2); }
.pillar-n { font-size: 1.6rem; font-weight: 700; color: var(--brand-2); }
.pillar h3 { margin: 4px 0 6px; }
.ai-chart .chart-phone { display: none; }
@media (max-width: 600px) { .ai-chart .chart-desk { display: none; } .ai-chart .chart-phone { display: block; } }
.ai-section .ai-steps li { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--brand-2); border-radius: 8px; padding: 14px 16px; }
.team-band { background: var(--brand); color: var(--brand-ink); }
.team-band .wrap { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 44px; }
.team-band h2 { color: var(--brand-ink); margin: 0 0 8px; }
.team-band p { max-width: 70ch; margin: 0; opacity: .92; }
.team-band .btn { background: var(--brand-ink); color: var(--brand); }
.blur-text { filter: blur(5px); user-select: none; color: var(--ink-2); }
.result.locked.visitor h3 { margin: 6px 0; }
.plan-annual { margin: -8px 0 0; font-size: .82rem; color: var(--muted); }
.plan-trial { margin: -8px 0 0; align-self: flex-start; padding: 4px 10px; border: 1px solid var(--accent); border-radius: 999px; background: var(--fw-bg); font-size: .85rem; font-weight: 700; }
.plan-plus { margin: 4px 0 0; font-size: .85rem; font-weight: 600; }
.plan-why { margin: 4px 0 0; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
ol.how.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { ol.how.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { ol.how.four { grid-template-columns: minmax(0, 1fr); } }
ol.how .plan-tag { font-size: .7rem; }
.feat-plan { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--brand-2); border: 1px solid currentColor; border-radius: 999px; padding: 1px 10px; }

/* app pages */
.page-head { padding: 36px 0 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 6px; }
.page-head p { color: var(--muted); max-width: 72ch; margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 28px 0 64px; align-items: start; }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; } }
.app > * { min-width: 0; }                      /* a wide table scrolls inside its column instead of widening the page */
.app.guide { grid-template-columns: 220px minmax(0, 1fr); }
@media (max-width: 900px) { .app.guide { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.side { position: sticky; top: 84px; display: grid; gap: 16px;
  max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }  /* taller than the window: it scrolls itself */
body.portal .side { top: 72px; max-height: calc(100vh - 88px); }
@media (max-width: 900px) { .side, body.portal .side { position: static; max-height: none; overflow: visible; } }
.side label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.field, .side select, .side input[type="search"], .side input[type="text"] { width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); color: var(--ink); font: 400 .93rem var(--font); }
textarea.field { min-height: 120px; resize: vertical; line-height: 1.5; }
.check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.check[hidden] { display: none !important; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.app .toolbar { position: sticky; top: 56px; z-index: 30; background: var(--bg); padding: 10px 0; margin: -10px 0 8px; }   /* the Open now / Upcoming bar and the count stay put while the tenders scroll */
.seg:empty { display: none; }   /* pages without the Open / Upcoming switch */
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.seg button { background: var(--panel); border: 0; padding: 5px 12px; font: 600 .82rem var(--font); color: var(--muted); cursor: pointer; border-right: 1px solid var(--line-2); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }

.result { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--panel); margin-bottom: 10px; display: grid; gap: 6px;
  grid-template-columns: minmax(0, 1fr); overflow-wrap: anywhere; }   /* a long title wraps instead of widening the card past a phone screen */
.result .btn { white-space: normal; max-width: 100%; justify-self: start; }    /* and so does a long button, e.g. "Create a free account to see who runs it…" */
.result:hover { border-color: var(--line-2); }
.result h3 { font-size: 1.02rem; margin: 0; line-height: 1.4; }
.result .desc .d-full { white-space: pre-line; }
/* the tender type list: the name never breaks mid-word; its hint goes under it when the column is narrow */
#type-d .checks label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
#type-d .checks label > span.muted { flex-basis: 100%; padding-left: 1.6em; }
.result .desc .d-more { margin-left: 4px; font-size: .9em; white-space: nowrap; }
.result h3 a { color: var(--ink); text-decoration: none; }
.result h3 a:hover { color: var(--link); text-decoration: underline; }
.result .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .86rem; }
.result .meta b { color: var(--ink); font-weight: 600; }
.lots-hit { display: grid; gap: 4px; margin: 2px 0; padding: 8px 12px; border-radius: 6px; background: var(--bg-alt); }
/* tender cards, Louisa's option A (13 Nov 2026): a coloured left edge for the kind of tender, one row of rounded labels,
   the buttons on their own row at the bottom. Rounded = information, square corners = a button. */
:root { --k-fw: #4a67c9; --k-open: #138a7b; --k-join: #2e8a4a; --k-lock: #c4513d; }
:root[data-theme="dark"] { --k-fw: #8ea6f0; --k-open: #5cc8b8; --k-join: #7ccf93; --k-lock: #ec8a75; }
.result.tc { --k: var(--line); border-left: 4px solid var(--k); padding-left: 16px; }
.result.tc:hover { border-left-color: var(--k); }
.result.k-fw { --k: var(--k-fw); } .result.k-open { --k: var(--k-open); } .result.k-join { --k: var(--k-join); } .result.k-lock { --k: var(--k-lock); }
.labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.tc .labels .badge, .tc .labels .tag, .tc .pack-line .tag { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 2px 9px 2px 7px; border-radius: 999px;
  border: 1px solid transparent; font-size: .75rem; font-weight: 600; line-height: 1.25; white-space: normal; text-decoration: none; }
.tc .labels .badge svg { width: 13px; height: 13px; flex: none; }
.tc .labels .tag, .tc .pack-line .tag { background: var(--panel); border-color: var(--line-2); color: var(--ink-2); }
.tc .pack-line .tag.green { background: var(--tint); color: var(--brand-2); border-color: transparent; }
.tc .labels .badge.trade { background: var(--panel); border-color: var(--line-2); }
.tc .labels .tag.red { background: var(--red-bg); color: var(--red); border-color: transparent; }
.tc .labels .tag.warn, .tc .labels .tag.odds.fair, .tc .labels .tag.odds.ask { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.tc .labels .tag.green, .tc .labels .tag.odds.good { background: var(--tint); color: var(--brand-2); border-color: transparent; }
.tc .labels .tag.odds.long, .tc .labels .tag.odds.big { background: var(--red-bg); color: var(--red); border-color: transparent; }
.tc .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); container: acts / inline-size; }
.tc .acts:empty { display: none; }
.tc .acts .win-btn, .tc .acts .save-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 4px 12px;
  border-radius: 6px; font: 600 .84rem/1.2 var(--font); border: 1px solid var(--line-2); background: var(--panel); color: var(--ink);
  margin-left: 0; white-space: nowrap; overflow-wrap: normal; text-decoration: none; }
.tc .acts .win-btn:hover, .tc .acts .save-btn:hover { background: var(--bg-alt); border-color: var(--line-2); }
.tc .acts .save-btn.bid { margin-left: auto; background: var(--brand); border-color: var(--brand); color: var(--brand-ink); white-space: normal; }
.tc .acts .save-btn.bid:hover { background: var(--brand-2); border-color: var(--brand-2); }
.tc .acts .save-btn:not(.bid) { margin-left: auto; }
.tc .acts .save-btn.bid + .save-btn { margin-left: 0; }
.tc .acts .save-btn.on { background: var(--tint); color: var(--brand-2); border-color: transparent; }
@container acts (max-width: 540px) {
  .tc .acts .win-btn, .tc .acts .save-btn { flex: 1 1 auto; min-height: 40px; padding: 4px 10px; margin-left: 0; }
  .tc .acts .save-btn.bid { order: -1; flex-basis: 100%; }
}
.lot-row { display: grid; grid-template-columns: 52px 1fr; gap: 8px; font-size: .88rem; color: var(--muted); }
.lot-row > div { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; }
.lot-row .lot-t { font-weight: 600; color: var(--ink); }
.lot-row b { color: var(--ink); font-weight: 600; }
.lot-row.nofit .lot-t, .lot-row.nofit b { color: var(--ink-2); font-weight: 500; }
.lot-flag { font-size: .8rem; }
.lot-rest { display: grid; gap: 4px; }
.lot-toggle { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; font-size: .84rem; text-align: left; }
.lot-toggle:hover { text-decoration: underline; }
.lot-flag.fit { color: var(--brand-2); font-weight: 600; }
.t.lots td { vertical-align: top; }
.lot-desc { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lot-desc.open { display: block; white-space: pre-line; }
.lot-more { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; font-size: .82rem; }
.lot-more:hover { text-decoration: underline; }
.result p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.result.locked { background: repeating-linear-gradient(135deg, var(--panel), var(--panel) 10px, var(--bg-alt) 10px, var(--bg-alt) 20px); }
.result.locked h3 { color: var(--muted); }
.fit { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.fit .bar { width: 80px; height: 6px; border-radius: 3px; background: var(--bg-alt); overflow: hidden; }
.fit .bar i { display: block; height: 100%; background: var(--brand-2); }

.upsell { border: 1px solid var(--line-2); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; background: var(--panel); margin-bottom: 14px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.upsell p { margin: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th, table.t td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: .8rem; color: var(--muted); font-weight: 600; background: var(--bg-alt); white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; }
.bars .row { display: grid; grid-template-columns: minmax(140px, 36%) 1fr 70px; gap: 12px; align-items: center; font-size: .9rem; margin: 7px 0; }
.bars .track { height: 10px; background: var(--bg-alt); border-radius: 5px; overflow: hidden; }
.bars .track i { display: block; height: 100%; background: var(--brand-2); }
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 18px 0; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }

/* resources / prose */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin: 5px 0; }
.prose .card h3 { margin-top: 0; }
.toc { position: sticky; top: 84px; display: grid; gap: 2px; font-size: .92rem; }
.toc a { color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 6px; }
.toc a:hover { background: var(--bg-alt); }
.terms { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.term { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.term:last-child { border-bottom: 0; }
.term dt { font-weight: 700; }
.term dd { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .term { grid-template-columns: 1fr; gap: 4px; } }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0 18px; }
.letters a { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.letters a:hover { background: var(--bg-alt); }

footer.site { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: .9rem; color: var(--muted); background: var(--bg-alt); }
footer.site .cols { grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 800px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
footer.site b { color: var(--ink); display: block; margin-bottom: 8px; }
footer.site a { display: block; color: var(--ink-2); text-decoration: none; margin: 5px 0; }
footer.site a:hover { color: var(--link); }
.theme-btn { background: none; border: 1px solid var(--line-2); border-radius: 6px; width: 36px; height: 36px; cursor: pointer; color: var(--ink-2); }

/* contract-size bands: one colour per band, darkest for the smallest jobs */
:root { --b-small: #175c47; --b-mid: #4f9a7c; --b-large: #a6c9b7; --b-unknown: #d6dbd4; }
:root[data-theme="dark"] { --b-small: #b6e2cc; --b-mid: #6fb595; --b-large: #3d7060; --b-unknown: #3a4741; }
#count { flex: 1 1 320px; min-width: 0; }
.bandbar { margin-top: 8px; max-width: 560px; }
.bb-track { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--bg-alt); }
.bb-track i { display: block; height: 100%; }
.bb-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 7px; font-size: .8rem; color: var(--muted); }
.bb-key span { display: inline-flex; align-items: center; gap: 6px; }
.bb-key i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.bb-key b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bb-small { background: var(--b-small); } .bb-mid { background: var(--b-mid); }
.bb-large { background: var(--b-large); } .bb-unknown { background: var(--b-unknown); }

/* home page: how it works, and questions */
ol.how { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: how; }
ol.how li { counter-increment: how; border-top: 3px solid var(--brand-2); padding-top: 16px; display: grid; gap: 6px; align-content: start; }
ol.how li::before { content: counter(how); font-size: 1.6rem; font-weight: 700; color: var(--brand-2); line-height: 1; }
ol.how b { font-size: 1.1rem; }
ol.how span { color: var(--ink-2); }
@media (max-width: 760px) { ol.how { grid-template-columns: minmax(0, 1fr); } }
.faq { margin: 20px 0 0; }
.faq dt { font-weight: 700; margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--ink-2); max-width: 68ch; }

/* home hero: who it's for, beside the headline */
.who { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.who h2 { font-size: 1.3rem; margin: 0; }
.who > p { color: var(--ink-2); margin: 8px 0 0; }
.who-list { display: grid; gap: 0; margin: 16px 0 14px; border-top: 1px solid var(--line); }
.who-list > div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.who-list b { color: var(--ink); }
.who-list span { color: var(--muted); font-size: .9rem; }
.who .small { margin: 0; }

/* template downloads */
.tpl { margin-top: 12px; }
.tpl .card { display: flex; flex-direction: column; gap: 6px; }
.tpl .card h3 { margin: 0; }
.tpl .card p { margin: 0; flex: 1; }
.tpl .dl { color: var(--link); font-weight: 600; font-size: .88rem; }
.tpl .dl::before { content: "↓ "; }

/* small jobs: steps, picker and the council card */
.reg-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
ol.how.sj-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
@media (max-width: 900px) { ol.how.sj-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { ol.how.sj-steps { grid-template-columns: minmax(0, 1fr); } }
.sj-pick { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-top: 32px; padding: 18px; background: var(--tint); border-radius: var(--radius); }
.sj-pick label { display: grid; gap: 5px; flex: 1 1 260px; font-size: .9rem; }
.sj-card { margin-top: 18px; }
.sj-card h3 { margin-top: 22px; }
.sj-how { margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--brand-2); border-radius: var(--radius); background: var(--bg-alt); }
.sj-how h3 { margin: 0; }
.sj-how ol { margin: 10px 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.sj-how code { font-size: .85em; }

/* phones: the announcement bar keeps just the demo plan switcher */
@media (max-width: 700px) {
  .announce .wrap > span:first-child { display: none; }
  .announce .wrap { justify-content: flex-end; }
}
.filter-btn { display: none; }
@media (max-width: 700px) {
  .filter-btn { display: inline-flex; margin-bottom: 12px; }
  aside.side#side:not(.open) { display: none; }
}
.result .meta.contact { font-size: .85rem; color: var(--muted); }
.won-by { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.won-by .won { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.won-by .won .co-card { flex-basis: 100%; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.tip-box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.fate { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; } .fate:empty { display: none; }

/* home hero on its own: headline and intro across the page */
.hero.solo { padding: 72px 0 64px; }
.hero.solo h1 { max-width: 18ch; }
.hero.solo .lead { max-width: 62ch; }
.hero.solo { text-align: center; }
.hero.solo h1, .hero.solo .lead { margin-left: auto; margin-right: auto; }
.hero.solo .actions { justify-content: center; }

/* legal pages and footer links */
.legal { max-width: 760px; }
.draft-note { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); padding: 10px 14px; font-size: .9rem; }
footer.site .legal-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; }
footer.site .legal-links a { color: var(--muted); }

/* ---- accounts, saving, assistant, forms (28 Oct 2026) ---- */
.announce a.on { font-weight: 700; text-decoration: none; background: rgba(255,255,255,.16); border-radius: 4px; padding: 1px 6px; }
/* Save and Bid on this: the same solid green as the Win guide button; a saved tender shows the tinted form */
.save-btn { margin-left: auto; font: 600 .82rem var(--font); color: var(--brand-ink); background: var(--brand); border: 1px solid var(--brand); border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.save-btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.save-btn, .win-btn { display: inline-flex; align-items: center; line-height: 1.5; text-decoration: none; }   /* a link and a button the same height */
.save-btn + .save-btn { margin-left: 0; }   /* Bid on this and Save sit together at the right, not split across the row */
/* on the tender page "Save to shortlist" is a full button beside "Start a bid": square corners mean a button (13 Nov 2026) */
.btn.save-btn { border-radius: 6px; padding: 10px 18px; font: 600 .95rem var(--font); margin-left: 0; line-height: 1.2; }
/* the list pages end with room under the last card, so the floating help button never sits over its Save button */
#results, #l-results { padding-bottom: 72px; }
.save-btn.on { background: var(--tint); color: var(--brand-2); border-color: transparent; }
:root[data-theme="dark"] .save-btn.on { background: var(--tint); color: var(--brand); border-color: transparent; }
.form { display: grid; gap: 14px; max-width: 460px; }
.form label { display: grid; gap: 5px; font-size: .9rem; font-weight: 600; }
.form .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.inline-form .field { max-width: 220px; }
.chat { display: grid; gap: 14px; margin: 18px 0; }
.chat-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: sticky; top: 56px; z-index: 20;
  background: var(--bg); padding: 8px 0; margin-top: 14px; border-bottom: 1px solid var(--line); }   /* Hide stays in reach while the chat scrolls */
.chat-hidden { margin: 10px 0 18px; }
.tag.suggested { display: inline-block; width: fit-content; margin: 2px 0 4px; background: var(--warn-bg); color: var(--warn); font-weight: 600; }   /* a filled-in guess, until changed */
.msg { max-width: min(760px, 100%); padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.msg.me { justify-self: end; background: var(--tint); border-color: transparent; }
.msg.bot p:last-child { margin-bottom: 0; }
.msg.thinking { color: var(--muted); font-style: italic; }
.msg ul, .msg ol { margin: 0 0 1em; padding-left: 1.2em; }
.chart-box { position: relative; height: 320px; margin: 8px 0 10px; }
@media (max-width: 600px) { .chart-box { height: 220px; } }
.chat-form { display: flex; gap: 10px; align-items: flex-end; position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; min-height: 52px; resize: vertical; }
.suggests { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.past { margin: 10px 0 32px; }
.past-h { margin: 18px 0 4px; font-size: 1rem; }
.chat-past { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; margin: 0 0 8px; background: var(--panel); }
.chat-past summary { cursor: pointer; padding: 10px 0; display: flex; gap: 6px 14px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; list-style: none; }
.chat-past summary::before { content: "▸"; color: var(--muted); margin-right: 2px; }
.chat-past[open] summary::before { content: "▾"; }
.chat-past summary .q { font-weight: 600; flex: 1 1 55%; }
.chat-past summary .meta { color: var(--muted); font-size: .85rem; }
/* delete on the row, as on the boards list (Dan, 13 Nov 2026): a button of its own, wide enough for "Press again to
   delete" so the row doesn't shift when it changes */
.chat-past summary .chat-del-row { flex: 0 0 auto; min-width: 11.5em; align-self: center; text-align: center; justify-content: center; }
@media (min-width: 641px) {            /* one line: the question takes what's left, the date and the button keep theirs */
  .chat-past summary { flex-wrap: nowrap; align-items: center; }
  .chat-past summary .q { flex: 1 1 auto; min-width: 0; }
  .chat-past summary .meta { white-space: nowrap; }
}
@media (max-width: 640px) { .chat-past summary .chat-del-row { min-width: 0; } }
.chat-past .chat { margin: 6px 0 12px; }
.suggests button { font: 500 .85rem var(--font); border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); border-radius: 20px; padding: 6px 12px; cursor: pointer; }
.suggests button:hover { border-color: var(--brand-2); color: var(--brand-2); }
.demo-shot { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.demo-shot .bar { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--bg-alt); font-size: .78rem; color: var(--muted); align-items: center; }
.demo-shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.demo-shot .body { padding: 16px; display: grid; gap: 10px; font-size: .9rem; }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.mini-stats div { background: var(--bg-alt); border-radius: 6px; padding: 8px 10px; }
.mini-stats b { display: block; font-size: 1.25rem; }
.tour { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.tour-steps { display: grid; gap: 4px; position: sticky; top: 90px; }
.tour-steps button { font: inherit; text-align: left; background: none; border: 1px solid transparent; border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--ink-2); display: grid; grid-template-columns: 26px 1fr; row-gap: 0; }
.tour-steps button span { grid-row: span 2; font-weight: 700; color: var(--muted); }
.tour-steps button small { color: var(--muted); font-size: .76rem; }
.tour-steps button.on { border-color: var(--line); background: var(--panel); color: var(--ink); font-weight: 600; }
.tour-steps button.on span { color: var(--brand-2); }
.tour-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
.tour-panel[hidden] { display: none !important; }
.tour-panel h2 { margin-top: 10px; }
.tour-foot { grid-column: 2; margin: 14px 0 0; }   /* under Back and Next, clear of the sticky step list */
.tour-nav { grid-column: 2; display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-right: 130px; }   /* Next clear of the Help button */
@media (max-width: 900px) {
  .tour { grid-template-columns: minmax(0, 1fr); }
  .tour-steps { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; }
  .tour-panel { grid-template-columns: minmax(0, 1fr); }
  .tour-nav, .tour-foot { grid-column: 1; }
}
.demo-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.demo-h { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.demo-step { font-size: .86rem; padding: 4px 0 4px 22px; position: relative; color: var(--ink-2); }
.demo-step::before { content: ""; position: absolute; left: 2px; top: 8px; width: 11px; height: 11px; border: 1.5px solid var(--line-2); border-radius: 3px; }
.demo-step.done::before { background: var(--brand-2); border-color: var(--brand-2); }
.demo-verdict { border: 1px solid var(--line); border-left: 4px solid #c9932b; border-radius: 8px; padding: 10px 14px; font-size: .86rem; }
.demo-verdict ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); }
.demo-q { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: .86rem; }
.demo-q p { margin: 0 0 6px; }
.demo-q mark { background: rgba(201, 147, 43, .18); color: inherit; border-radius: 3px; padding: 0 2px; }
.demo-q .m { color: var(--muted); font-size: .8rem; }
.mini-bars { display: grid; gap: 6px; }
.mini-bars .r { display: grid; grid-template-columns: 140px 1fr 60px; gap: 8px; align-items: center; font-size: .82rem; }
.mini-bars .r i { display: block; height: 10px; border-radius: 3px; background: var(--brand-2); }

/* ---------------------------------------------------------------- the customer portal (logged in) */
body.portal { background: var(--bg-alt); }
.app-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; height: 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--bg); border-bottom: 1px solid var(--line); }
.app-org { display: flex; gap: 8px; align-items: center; min-width: 0; flex: 1; }
.app-org b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-actions { display: flex; gap: 10px; align-items: center; }
.side-btn { display: none; }
.portal-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 56px); align-items: stretch; }
.side-nav { background: var(--bg); border-right: 1px solid var(--line); padding: 14px 10px 0; display: flex; flex-direction: column;
  position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }  /* stays put while the page scrolls */
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.side-nav:not(:hover) { scrollbar-color: transparent transparent; }   /* the scrollbar shows only under the mouse */
.side-nav:not(:hover)::-webkit-scrollbar-thumb { background: transparent; }
.side-foot { margin-top: auto; position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 6px 0 10px;
  display: grid; grid-template-columns: 1fr 1fr; }   /* help in two short columns */
.side-nav .side-foot a { font-size: .82rem; padding: 4px 10px; color: var(--muted); }
.side-foot .acct-sm { display: none; }
.side-foot .lock { display: none; }   /* too tight in two columns; the link still shows as locked */  /* stays put while the page scrolls */
.side-group { margin-bottom: 10px; }
.side-h { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-2); padding: 4px 10px; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 6px;
  color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.side-nav a:hover { background: var(--bg-alt); color: var(--ink); }
.side-nav a.on { background: var(--bg-alt); color: var(--brand); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand-2); }
.side-nav a.locked { color: var(--muted); }
.side-nav .lock { font-size: .68rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.app-main { min-width: 0; }
body.portal { padding-bottom: 0; }                 /* the Help-button room sits in the main column, so the side panel */
body.portal .app-main { padding-bottom: 72px; }   /* runs to the bottom of the screen */
body.portal .page-head { background: transparent; border-bottom: 0; padding-top: 24px; padding-bottom: 4px; }
body.portal .page-head h1 { font-size: 1.7rem; }
body.portal .wrap { max-width: 1120px; }
body.portal .hero, body.portal footer.site { display: none; }
@media (max-width: 900px) {
  .portal-layout { grid-template-columns: minmax(0, 1fr); }
  .side-btn { display: inline-flex; }
  .side-nav { display: none; position: fixed; top: 56px; left: 0; bottom: 0; height: auto; width: min(280px, 85vw); z-index: 45; box-shadow: var(--shadow);
    overflow-y: auto; overscroll-behavior: contain; }
  .side-nav.open { display: flex; }
  .side-foot { position: static; }   /* the slide-out menu scrolls as one list */
  .side-foot .acct-sm { display: flex; grid-column: 1 / -1; font-size: .93rem; color: var(--ink-2); }   /* no name menu on phones: the account pages sit here */
  .app-org .tag, .app-bar .hide-sm, .app-bar .theme-btn { display: none; }
  .app-bar { gap: 10px; }
  .app-org b { font-size: .92rem; }
  body.portal .announce .wrap { height: auto; padding-block: 6px; flex-wrap: wrap; }
}
/* compact pickers: chosen items as tags, a type-ahead box to add more */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; background: var(--panel); margin-top: 4px; }
.chip-list { display: contents; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 10px; font-size: .86rem; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1rem; line-height: 1; padding: 0 4px; }
.chip button:hover { color: var(--ink); }
.chip-input { border: 0; outline: 0; background: transparent; font: inherit; min-width: 180px; flex: 1; padding: 4px 2px; color: var(--ink); }

/* members don't need the sign-up nudges */
body.member .visitor-only { display: none; }
/* a bid at a glance: deadline, check, answers, gaps, checklist, and the next thing to do */
.glance { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 8px 0 10px; }
.glance > div { background: var(--panel); padding: 12px 14px; display: grid; gap: 2px; align-content: start; }
.glance .g-l { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.glance b { font-size: 1.05rem; }
.glance .tag { justify-self: start; }
.glance .g-s { font-size: .85rem; color: var(--ink-2); }
.glance .g-s.red { color: #b3261e; font-weight: 600; }
@media (max-width: 760px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } .glance > div:last-child { grid-column: 1 / -1; } }
.next-step { margin: 0 0 20px; padding: 10px 14px; border-radius: 8px; background: var(--brand-soft, rgba(22, 94, 72, .08)); }
.key-dates li.past { color: var(--ink-2); opacity: .7; }
.key-dates li.next b { color: var(--brand-2); }
.setup-first { border: 2px solid var(--brand-2); border-radius: 12px; padding: 18px 20px; margin: 0 0 24px; }
.setup-first h2 { margin: 0 0 4px; }
details.notice-docs > summary { cursor: pointer; }

/* "?" help: a short explanation of a term, next to where it's used */
.tip { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 5px; padding: 0; vertical-align: 1px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); font: 700 .66rem/1 var(--font); cursor: pointer; }
.tip:hover, .tip[aria-expanded="true"] { color: var(--brand-2); border-color: var(--brand-2); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; line-height: 1.2; padding: 3px 9px 3px 7px;
  border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.badge svg { width: 13px; height: 13px; flex: none; }
.badge .tip { width: 14px; height: 14px; margin-left: 1px; font-size: .6rem; background: transparent; border-color: currentColor; color: inherit; opacity: .75; }
.badge.fw { background: var(--t-fw-bg); color: var(--t-fw); }
.badge.open { background: var(--t-open-bg); color: var(--t-open); }
.badge.join { background: var(--t-join-bg); color: var(--t-join); }
.badge.lock { background: var(--t-lock-bg); color: var(--t-lock); }
.badge.sme { background: var(--t-sme-bg); color: var(--t-sme); }
.badge.soon { background: var(--t-soon-bg); color: var(--t-soon); }
.badge.trade { background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); padding: 2px 9px 2px 7px; }
.badge.trade i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--s1)); flex: none; }
.tag .tip { width: 14px; height: 14px; margin-left: 4px; font-size: .6rem; background: transparent; border-color: currentColor; color: inherit; opacity: .75; }
.tip-pop { position: absolute; z-index: 60; width: max-content; max-width: min(320px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow); padding: 10px 12px; font: 400 .86rem/1.5 var(--font); color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.tip-pop b { display: block; color: var(--ink); margin-bottom: 2px; }
.tip-pop .tip-detail { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.tag.odds { cursor: pointer; }
.tip-pop a { font-size: .8rem; }
a.save-btn { text-decoration: none; }

/* asks once about analytics cookies; left, so the Help button stays clear */
.cookie-bar { position: fixed; left: 18px; bottom: 18px; z-index: 75; width: min(520px, calc(100vw - 36px)); display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
  padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cookie-bar p { margin: 0; flex: 1 1 240px; font-size: .9rem; }
.cookie-btns { display: flex; gap: 8px; }
@media (max-width: 600px) { .cookie-bar { left: 10px; width: calc(100vw - 20px); bottom: 70px; } }

/* help bubble: bottom right on every page */
.help-fab { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px;
  border: 0; border-radius: 22px; background: var(--brand); color: var(--brand-ink); font: 700 1rem var(--font); cursor: pointer; box-shadow: var(--shadow); }
.help-fab span { font-weight: 600; font-size: .9rem; }
.help-fab:hover { background: var(--brand-2); color: var(--brand-ink); }
.help-panel { position: fixed; right: 18px; bottom: 72px; z-index: 70; width: min(380px, calc(100vw - 36px)); max-height: min(70vh, 560px); display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.help-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-bottom: 1px solid var(--line); background: var(--tint); }
.help-head .muted { flex: 1; }
.help-x { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink-2); padding: 2px 6px; }
.help-log { flex: 1; overflow-y: auto; padding: 12px 14px; display: grid; gap: 8px; align-content: start; font-size: .92rem; line-height: 1.5; }
.help-msg { padding: 8px 12px; border-radius: 10px; max-width: 92%; }
.help-msg.user { background: var(--brand); color: var(--brand-ink); justify-self: end; }
.help-msg.assistant { background: var(--bg-alt); color: var(--ink); justify-self: start; }
.help-starters { display: flex; flex-wrap: wrap; gap: 6px; }
.help-starters .chip { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 4px 10px; font: 500 .82rem var(--font); cursor: pointer; color: var(--ink); }
.help-starters .chip:hover { border-color: var(--brand); color: var(--brand); }
.help-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.help-form .field { flex: 1; }
.help-foot { padding: 0 14px 10px; }
/* the label only on wide screens, and room at the foot of every page, so it covers less (Tom: it hid a Save button) */
main { padding-bottom: 64px; }
@media (max-width: 1400px) { .help-fab span { display: none; } .help-fab { padding: 0 15px; } }
@media (max-width: 600px) { .help-fab span { display: none; } .help-fab { padding: 0 15px; } .help-panel { right: 10px; left: 10px; width: auto; bottom: 70px; } }
@media print { .help-fab, .help-panel { display: none; } }
/* an address we don't really hold: plain text, not a link (site.js checkLinks) */
a.no-link { color: inherit; cursor: text; text-decoration: none; }
a.btn.no-link { display: none; }

/* a bid's workspace (10 Nov 2026): tabs across the top, one job each; the summary and next step stay above them */
.tabs { display: flex; gap: 2px; margin: 18px 0 18px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none;
  position: sticky; top: 56px; z-index: 5; background: var(--bg-alt); }
.tabs::-webkit-scrollbar { display: none; }
.tab { appearance: none; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink-2);
  padding: 11px 16px 10px; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; border-radius: 6px 6px 0 0; }
.tab:hover { color: var(--ink); background: var(--panel); }
.tab.on { color: var(--brand); border-bottom-color: var(--brand-2); background: var(--panel); }
.tab:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -2px; }
.tab-n { font-size: .74rem; font-weight: 700; color: var(--ink-2); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; line-height: 1.5; }
.tab.on .tab-n { background: var(--tint); color: var(--brand-2); border-color: transparent; }
.tab-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: 1px; background: var(--muted); }
.tab-dot.green { background: var(--brand-2); } .tab-dot.warn { background: #c9932b; } .tab-dot.red { background: #b4432f; }
.tab-n:has(.tab-dot) { padding: 0 4px; background: transparent; border: 0; }
.tab-panel h4 { margin: 14px 0 6px; font-size: .95rem; }
.bid-actions { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* How this works: hidden with the x, back from the link in the toolbar */
.howto { position: relative; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--brand-2); border-radius: var(--radius); padding: 12px 44px 12px 16px; margin: 8px 0 4px; }
.howto-x { position: absolute; top: 6px; right: 8px; border: 0; background: transparent; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.howto-x:hover { background: var(--bg-alt); color: var(--ink); }
.howto-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; counter-reset: hw; font-size: .9rem; color: var(--ink-2); }
.howto-steps li { counter-increment: hw; }
.howto-steps li::before { content: counter(hw); display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: var(--tint); color: var(--brand-2); font-size: .75rem; font-weight: 700; }
/* Overview: where you are, as a row of steps you can click */
.bid-over { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .bid-over { grid-template-columns: minmax(0, 1fr); } }
.bid-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bid-steps a, .bid-steps li > span { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; border: 1px solid var(--line); }
.bid-steps a:hover { border-color: var(--brand-2); background: var(--bg-alt); }
.bid-steps .st-n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.bid-steps li.ok .st-n { background: var(--brand-2); border-color: var(--brand-2); color: var(--brand-ink); }
.bid-steps .st-t { display: grid; min-width: 0; }
/* Answers: a compact list, one opened at a time */
.ans-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; margin: 0 0 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-f { appearance: none; font: inherit; font-size: .85rem; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.chip-f span { color: var(--muted); font-weight: 600; margin-left: 2px; }
.chip-f.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip-f.on span { color: inherit; opacity: .8; }
.q-list { display: grid; gap: 6px; }
.q-list .q-card { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.q-list .q-card[open] { border-color: var(--brand-2); box-shadow: var(--shadow); }
.q-card > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; list-style: none; }
.q-card > summary::-webkit-details-marker { display: none; }
.q-card > summary:hover { background: var(--bg-alt); border-radius: var(--radius); }
.q-ref { font-weight: 700; color: var(--brand-2); font-size: .9rem; min-width: 3.2em; }
.q-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.q-card[open] .q-text { visibility: hidden; }
.q-meta { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.q-body { padding: 0 14px 14px; border-top: 1px solid var(--line); }
.q-body .q-full { margin: 10px 0 4px; font-weight: 600; }
.q-body .meta { flex-wrap: wrap; gap: 6px; }
.pill { font-size: .74rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--line); }
.pill.st-drafted { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.pill.st-review { background: var(--tint); color: var(--brand-2); border-color: transparent; }
.pill.st-approved { background: var(--brand-2); color: var(--brand-ink); border-color: transparent; }
@media (max-width: 640px) { .q-card > summary { grid-template-columns: auto minmax(0, 1fr); } .q-meta { grid-column: 1 / -1; } }
.check-item.auto { color: var(--ink-2); }
.check-item.auto input { accent-color: var(--brand-2); }
/* the side panel: a section's own pages, indented under it (Bids: your bids, company profile, question bank) */
.side-nav a.sub { padding-left: 24px; font-size: .86rem; color: var(--muted); }
.side-nav a.sub.on { color: var(--brand); box-shadow: none; background: transparent; font-weight: 600; }
section.tab-panel { padding: 0; margin: 0; border: 0; background: transparent; }
body.portal .app-main [id] { scroll-margin-top: 120px; }      /* a jumped-to heading clears the top bar and the sticky tabs */
.tab-panel .statrow + h3, .tab-panel .statrow + details + h3 { margin-top: 22px; }
.check-item.auto input:checked + span { text-decoration: none; color: var(--ink); }   /* ticked by itself: done, not cancelled */
.q-more { position: relative; display: inline-block; }
.q-more > summary { list-style: none; cursor: pointer; }
.q-more > summary::-webkit-details-marker { display: none; }
.q-more-box { position: absolute; z-index: 4; top: calc(100% + 4px); left: 0; display: grid; gap: 8px; padding: 10px; min-width: 200px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 640px) {
  .q-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .q-more-box { left: auto; right: 0; }
}
.linkish { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) {                       /* a phone: tighter tabs, and a fade at the edge says there are more */
  .tab { padding: 10px 11px 9px; font-size: .9rem; }
  .tabs { -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
}
.setup-first h2 { font-size: 1.25rem; line-height: 1.3; }
[data-bpanel] > .toolbar h2 { font-size: 1.35rem; }
/* a team's bid: who is writing what (10 Nov 2026). Your own answers carry an amber edge, like an assigned task */
.side-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #1d1300; font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.q-list .q-card.mine { border-left: 4px solid var(--accent); }
.q-who { display: inline-flex; }
.q-who .av { width: 22px; height: 22px; font-size: .6rem; }
.q-card.mine .q-who .av { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
.tag.mine { background: var(--accent); color: #1d1300; border-color: transparent; }
a.tag { text-decoration: none; }
.for-you-tags { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.q-panel { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: var(--bg-alt); }
.q-panel label { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1 1 260px; }
.q-panel textarea { width: 100%; }
.q-last { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.q-last:empty { display: none; }
.q-note { color: var(--ink); background: var(--warn-bg); border-radius: 6px; padding: 2px 8px; }
.q-hist { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.q-hist h4 { margin: 0 0 6px; font-size: .9rem; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hist li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: .88rem; }
@media (max-width: 600px) { .hist li { grid-template-columns: auto 1fr; } .hist li .small { grid-column: 2; } }
.waiting { border: 1px solid var(--line-2); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--panel); padding: 14px 18px; margin: 0 0 18px; }
.waiting h2 { margin: 0 0 2px; font-size: 1.1rem; }
.waiting ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.waiting li { display: flex; flex-direction: column; gap: 1px; padding: 8px 0; border-top: 1px solid var(--line); min-width: 0; }
.waiting li a { color: var(--ink); text-decoration: none; display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.waiting li a b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.waiting li a:hover b { color: var(--link); text-decoration: underline; }
.waiting li .tag { flex: none; }
.waiting > p:last-child { margin: 8px 0 0; }
.for-you { margin: 0 0 10px; padding: 10px 14px; border-radius: 8px; border-left: 4px solid var(--accent); background: var(--warn-bg); }
.team-row { display: grid; grid-template-columns: auto minmax(0, 13em) minmax(60px, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.team-row .mini-bar { margin: 0; }
.av.none { --av: var(--line-2); color: var(--ink-2); }
@media (max-width: 640px) { .team-row { grid-template-columns: auto minmax(0, 1fr); } .team-row .mini-bar, .team-row > .small { grid-column: 2; } }
.clash { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--warn); font-weight: 600; }
.theirs { margin: 0 0 8px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--bg-alt); }
.theirs-text { white-space: pre-wrap; max-height: 240px; overflow: auto; font-size: .92rem; margin-top: 4px; }
/* ticks that mean finished (10 Nov 2026): a must-have dealt with greys; Not answering steps back */
table.t tr.dealt td { color: var(--muted); }
table.t tr.dealt td:first-child { text-decoration: line-through; text-decoration-color: var(--line-2); }
.pack-tick { margin: 4px 0 12px; }
.q-card[data-status="skip"] > summary { opacity: .55; }
.pill.st-skip { background: transparent; color: var(--muted); border-style: dashed; }
.export-warn { margin: 8px 0 12px; padding: 12px 14px; border-radius: 8px; border-left: 4px solid var(--accent); background: var(--warn-bg); }
/* the second look on the Check tab (10 Nov 2026) */
.second-look { margin: 14px 0; }
.second-look > summary { cursor: pointer; }
.sl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sl-list li label { display: block; font-size: .92rem; line-height: 1.45; cursor: pointer; }
.sl-list li.dealt label { color: var(--muted); }
/* checking the must-haves again against the profile (10 Nov 2026) */
.recheck { margin: 10px 0 14px; padding: 10px 14px; border-radius: 8px; background: var(--bg-alt); font-size: .92rem; }
.recheck.stale { background: var(--warn-bg); border-left: 4px solid var(--accent); }
.recheck .btn { margin: 6px 6px 0 0; }
/* an analysis or drafting under way: how far it has got (10 Nov 2026) */
.job-bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 8px 0 6px; max-width: 420px; }
.job-bar i { display: block; height: 100%; background: var(--brand-2); transition: width .8s ease; }
/* a team's bid: what's been done, newest first (10 Nov 2026) */
.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.activity li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.activity li:last-child { border-bottom: 0; }
/* the dashboard as a pinboard (Dan, 10 Nov 2026): today's cards flowing in free columns, each its own height */
.dash-grid.dash-board { display: flex; gap: 18px; align-items: flex-start; }
.dash-board .pin-col { flex: 1 1 0; min-width: 0; display: grid; gap: 18px; }
.dash-board > .dash-panel { flex: 1 1 300px; }          /* before the cards are dealt into columns */
/* a bid's progress: on the Bids page, the dashboard and the bid's summary */
.prog { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.prog .mini-bar { flex: 1 1 auto; min-width: 70px; max-width: 160px; margin: 0; height: 6px; border-radius: 3px; }
.prog b { font-size: .9rem; }
.bids-t .b-st { font-weight: 600; white-space: nowrap; }
.bids-t .b-res { margin-top: 4px; display: flex; gap: 6px; }
.glance .g-bar { display: block; height: 6px; margin: 4px 0 2px; max-width: 160px; }
/* the verdict box opens and closes */
details.verdict > summary { cursor: pointer; list-style: none; }
details.verdict > summary::-webkit-details-marker { display: none; }
details.verdict > summary::after { content: " ▾"; color: var(--muted); }
details.verdict:not([open]) > summary::after { content: " ▸"; }
.ans-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prow .dash-prog { grid-column: 1 / -1; }
.prow .dash-prog .m { white-space: nowrap; }
/* an answer's foot: "Last edited by" and "Saved 23:16" never run together */
.q-body .meta .qby, .q-body .meta .qmsg:not(:empty) { margin-left: 6px; }
/* the analysis read twice (10 Nov 2026) */
.read-twice { margin: 0 0 14px; padding: 12px 14px; border-radius: 8px; background: var(--bg-alt); font-size: .94rem; }
.tag.extra { background: var(--tint); color: var(--brand-2); border-color: transparent; }
/* the Bids table on a phone: each bid a block of its own, nothing off to the side (Tom, 10 Nov 2026) */
@media (max-width: 640px) {
  .bids-t thead { display: none; }
  .bids-t, .bids-t tbody, .bids-t tr, .bids-t td { display: block; width: 100%; }
  .bids-t tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .bids-t td { border: 0; padding: 3px 0; }
  .bids-t td:last-child { padding-top: 8px; }
  .table-wrap:has(.bids-t) { overflow-x: visible; }
}
.fetch-msg:empty { display: none; }
.fetch-msg { margin: 8px 0 4px; }
table.t tr.lot-head td { background: var(--bg-alt); font-weight: 700; color: var(--brand-2); font-size: .85rem; padding-top: 10px; }

/* Insights boards (assets/boards.js, 11 Nov 2026). Series colours checked for colour-blind readers (OKLab, Machado):
   light on white and dark on the dark panel, in this fixed order; one series uses the first. */
:root { --s1: #175c47; --s2: #e0a030; --s3: #4f9fd8; --s4: #b8508a; --s5: #7fc4a8; --s6: #5b4a8a; }
:root[data-theme="dark"] { --s1: #3f9b77; --s2: #f0b54d; --s3: #7cc0f0; --s4: #c25a92; --s5: #d4f0e2; --s6: #7a6cc8; }
.ib-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ib-start { max-width: 720px; }
.ib-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.ib-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; font: 600 .92rem var(--font); color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.ib-tab.on { color: var(--ink); border-bottom-color: var(--accent); }
.ib-tab.add { color: var(--link); font-weight: 500; }
.ib-pill { font-size: .7rem; font-weight: 600; background: var(--tint); color: var(--brand); border-radius: 10px; padding: 1px 7px; vertical-align: 1px; }
.ib-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ib-name { flex: 1 1 260px; max-width: 460px; }
.ib-name .field { font-weight: 700; font-size: 1.15rem; border-color: transparent; padding-left: 4px; }
.ib-name .field:hover, .ib-name .field:focus { border-color: var(--line-2); }
.ib-share { display: inline-flex; gap: 6px; align-items: center; }
.ib-asof { margin: 6px 0 14px; }
.ib-ask { display: flex; flex-wrap: wrap; gap: 8px; }
.ib-ask .field { flex: 1 1 320px; }
#ib-ask-msg { color: var(--ink-2); }
#ib-ask-msg:empty { display: none; }
.ib-build { margin-bottom: 18px; }
.ib-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; margin: 10px 0; }
.ib-fields label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ib-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ib-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 12px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ib-card.ib-wide, .ib-grid .ib-wide { grid-column: 1 / -1; }
.ib-card.drag { opacity: .45; }
.ib-card.over { outline: 2px dashed var(--accent); outline-offset: 2px; }
.ib-card header { display: flex; flex-direction: column; gap: 2px; cursor: grab; }
.ib-title { min-width: 0; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--ink); font: 700 1rem/1.35 var(--font); padding: 3px 4px; overflow-wrap: anywhere; cursor: text; }
.ib-title:empty::before { content: attr(data-placeholder); color: var(--muted); font-weight: 600; }
.ib-title:focus { outline: none; }
.ib-title:hover, .ib-title:focus { border-color: var(--line-2); }
.ib-tools { display: flex; gap: 2px; flex-shrink: 0; opacity: .85; transition: opacity .15s; align-self: flex-end; }
.ib-card:hover .ib-tools, .ib-card:focus-within .ib-tools { opacity: 1; }
.ib-tools button { background: none; border: 1px solid transparent; border-radius: 5px; color: var(--muted); font: 500 .78rem var(--font); padding: 3px 6px; cursor: pointer; }
.ib-tools button:hover { border-color: var(--line-2); color: var(--ink); }
.ib-plot { position: relative; height: 260px; }
.ib-wide .ib-plot { height: 300px; }
.ib-plot.tbl { height: auto; max-height: none; overflow: visible; }
.ib-plot.num, .ib-wide .ib-plot.num { height: 150px; }
.ib-wait { height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: .9rem; padding: 0 20px; }
.ib-number { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 4px; }
.ib-number b { font-size: 3rem; line-height: 1.1; color: var(--brand); font-variant-numeric: tabular-nums; }
.ib-card footer details summary { cursor: pointer; color: var(--link); }
.ib-card footer details p { margin: 4px 0 0; }
.ib-by { margin: 0; font-size: .78rem; }
.ib-by:empty { display: none; }
.ib-text { width: 100%; min-height: 110px; resize: vertical; border: 1px solid transparent; border-radius: 6px; background: var(--bg-alt); color: var(--ink); font: 400 .95rem/1.55 var(--font); padding: 10px 12px; }
.ib-text:focus { border-color: var(--line-2); outline: none; }
@media (max-width: 760px) { .ib-grid { grid-template-columns: minmax(0, 1fr); } .ib-tools { opacity: 1; } .ib-tools { flex-wrap: wrap; justify-content: flex-end; } .ib-plot, .ib-wide .ib-plot { height: 240px; }
  /* tables grow to fit and numbers stay short on phones too: the 240px above ran a 10-row table into the next card (22 Nov 2026) */
  .ib-plot.tbl, .ib-wide .ib-plot.tbl { height: auto; } .ib-plot.num, .ib-wide .ib-plot.num { height: 150px; } }
/* Report a bug, in the help panel (11 Nov 2026) */
.help-bug { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; overflow-y: auto; }
.help-bug label { display: flex; flex-direction: column; gap: 4px; }
.help-fab svg { display: block; }
/* Insights round 2 (11 Nov 2026): ready-made boards, chart-type cards, the Chart switch, Add to a board */
.ib-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.ib-tpl { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); color: var(--ink); cursor: pointer; font: inherit; }
.ib-tpl b { font-size: 1rem; }
.ib-tpl span { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.ib-tpl:hover { border-color: var(--brand-2); box-shadow: var(--shadow); }
.ib-tpl.empty { border-style: dashed; }
.ib-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.ib-type { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; padding: 10px 6px 8px; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; font-size: .8rem; color: var(--ink-2); background: var(--panel); }
.ib-type input { position: absolute; opacity: 0; pointer-events: none; }
.ib-type svg, .ib-switch svg { width: 32px; height: 24px; fill: var(--s1); stroke: var(--s1); }
.ib-type.on { border-color: var(--brand-2); box-shadow: inset 0 0 0 1px var(--brand-2); background: var(--tint); color: var(--ink); font-weight: 600; }
.ib-type:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.ib-switch { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-radius: 8px; background: var(--bg-alt); }
.ib-switch button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 6px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--ink-2); font: 500 .72rem var(--font); cursor: pointer; }
.ib-switch button.on { border-color: var(--brand-2); background: var(--panel); color: var(--ink); }
.ib-switch button:hover { background: var(--panel); }
.add-board { margin: 6px 0 4px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.add-menu { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ib-start h2 { font-size: 1.4rem; margin: 6px 0 4px; }
/* Think something's missing? on a bid's Analysis (11 Nov 2026) */
.find-box { margin: 22px 0 14px; padding: 14px 18px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.find-box h3 { margin: 0 0 4px; font-size: 1rem; }
.find-form { display: flex; flex-wrap: wrap; gap: 8px; }
.find-form .field { flex: 1 1 280px; }
/* Add a question from the buyer's website, under a bid's answers (19 Nov 2026) */
.add-q > summary { cursor: pointer; }
.add-q-form { display: grid; gap: 8px; margin-top: 8px; }
.add-q-form label { display: grid; gap: 4px; }
.add-q-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
.add-q-row label { flex: 1 1 160px; max-width: 240px; }
/* Copy beside each registration detail on the Company profile (19 Nov 2026) */
.lab-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
/* the copy symbol: beside each registration detail and an answer's Save */
.icon-copy { display: inline-flex; align-items: center; justify-content: center; }
.fcopy.icon-copy { appearance: none; border: 0; background: none; padding: 4px; border-radius: 6px; color: var(--ink-2); cursor: pointer; flex: none; }
.fcopy.icon-copy:hover, .fcopy.icon-copy:focus-visible { background: var(--panel); color: var(--ink); }
.icon-copy.done { color: var(--brand-2); }
.find-list, .find-pass { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 10px; }
.find-list blockquote { margin: 4px 0; padding: 4px 10px; border-left: 3px solid var(--line-2); color: var(--ink-2); }
.find-list .find-add { margin-left: 8px; }
.tag.found { background: var(--tint); color: var(--brand); }
/* Rules for submitting, and conditions to price and plan for (11 Nov 2026) */
.rule-list { margin: 6px 0 14px; padding-left: 20px; display: grid; gap: 6px; }
.cond-lot { margin: 10px 0 2px; font-size: .9rem; color: var(--ink-2); }
.ib-plot.tall, .ib-wide .ib-plot.tall { height: 440px; }
@media (max-width: 760px) { .ib-plot.tall, .ib-wide .ib-plot.tall { height: 380px; } }
/* tables on boards (22 Nov 2026): long headings ("Value awarded (not frameworks)") wrap instead of pushing the figures
   off the right of a phone screen; figures stay on one line, right-aligned; names wrap between words */
table.t.ib-t th { white-space: normal; vertical-align: bottom; overflow-wrap: break-word; }
table.t.ib-t th.r { min-width: 4.5em; }
table.t.ib-t td.r { white-space: nowrap; }
table.t.ib-t td:first-child { overflow-wrap: break-word; }
@media (max-width: 600px) { table.t.ib-t th, table.t.ib-t td { padding: 8px 7px; } table.t.ib-t { font-size: .86rem; } }
/* the list of boards (11 Nov 2026) */
.ib-listhead { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ib-listhead h2 { margin: 0; font-size: 1.3rem; }
.ib-list td a { color: var(--ink); text-decoration: none; }
.ib-list td a:hover b { color: var(--link); text-decoration: underline; }
.ib-back { margin: 0 0 8px; }
.ib-back a { color: var(--link); text-decoration: none; font-weight: 600; font-size: .92rem; }
/* team review fixes (11 Nov 2026) */
.ib-tools button { color: var(--ink-2); }
.ib-key { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; flex-wrap: wrap; }
.ib-key i { display: inline-block; width: 90px; height: 10px; border-radius: 3px; }
.ib-card footer .filling { color: var(--warn); font-weight: 600; }
.ib-ticks { border: 0; padding: 0; margin: 0; min-width: 0; grid-column: span 2; }
.ib-ticks legend { padding: 0; margin-bottom: 4px; }
.ib-ticks > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 10px; max-height: 150px; overflow-y: auto;
  border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 8px; background: var(--panel); }
.ib-fields .ib-ticks label, .ib-ticks label { display: flex; flex-direction: row; gap: 6px; align-items: baseline; font-size: .85rem; }
.list-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 6px; margin: 16px 0; background: var(--panel); }
.list-box h3 { margin-top: 12px; }
.rule-list { max-width: 80ch; }
@media (max-width: 600px) {
  .ib-ticks { grid-column: auto; }
  main { padding-bottom: 76px; }                                   /* the help button never covers the last things on a page */
  .help-fab { right: 12px; bottom: 12px; height: 40px; padding: 0 12px; }
  table.t.musts, table.t.musts tbody, table.t.musts tr, table.t.musts td { display: block; width: auto; }
  table.t.musts thead { display: none; }
  table.t.musts tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.t.musts td { border: 0; padding: 2px 0; }
}
/* the table icon draws as lines, not a block (docs writer); long unbroken words wrap rather than push a page wider (Dave) */
.ib-type svg[fill="none"], .ib-switch svg[fill="none"] { fill: none; }
.q-card, .q-note, .bids-t td, .q-panel, .waiting li, .hist li { overflow-wrap: anywhere; }
/* the ask box's read of its answer, above the chart; the Chart type switch's kinds that need a different question */
.ib-read { margin: 4px 0 8px; color: var(--ink-2); }
.ib-read p { margin: 0 0 4px; }
/* a ready-made board before it's saved (13 Nov 2026): the bar with Save board; the cards' own tools wait until it's kept */
.ib-preview-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between;
  padding: 14px 18px; margin: 0 0 18px; border: 1px solid var(--line); border-left: 4px solid var(--accent, #d9921f);
  border-radius: 10px; background: var(--panel); }
.ib-preview-bar p { margin: 0; }
.ib-is-preview .ib-tools, .ib-is-preview .ib-card [data-act] { display: none !important; }
.ib-warn { padding: 6px 10px; border-radius: 6px; background: var(--warn-bg, #fff4e0); color: var(--ink); }
.ib-warn .ib-warn-ok { margin-left: 6px; padding: 2px 10px; vertical-align: baseline; }
.ib-switch button.off { opacity: .4; }
.ib-switch button.off:hover { opacity: .7; }
.ib-need { flex-basis: 100%; margin: 4px 2px 0; }
/* a contract awarded through a framework, on Contract history */
.fw-tag { margin-top: 2px; color: var(--ink-2); }
.fw-tag::before { content: "\2192  "; }
/* a framework's page: jump to who's on it */
.fw-jump { margin: 4px 0 12px; }
/* Insights: describe what you want, get a board */
.ib-describe { display: flex; flex-direction: column; gap: 6px; padding: 14px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.ib-describe textarea { width: 100%; font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); resize: vertical; }
/* a contract through a framework: who can bid */
.who-box { margin: 24px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.who-box h3 { margin: 0 0 8px; }
.who-box p { margin: 6px 0; }
.who-box .table-wrap { margin-top: 10px; }
.who-last { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--brand); background: var(--bg-alt); border-radius: 6px; }
.can-bid { margin: 8px 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--bg-alt); }
.can-bid.live { background: var(--warn-bg); }
/* a figure taken from another copy or the council's register */
sup.filled { color: var(--ink-2); cursor: help; margin-left: 1px; }
/* drop-downs with tick boxes (Insights filters) */
.msel { position: relative; display: inline-block; min-width: 0; }
.msel > summary { list-style: none; cursor: pointer; padding: 5px 28px 5px 10px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); color: var(--ink); max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.msel > summary::-webkit-details-marker { display: none; }
.msel > summary::after { content: "\25BE"; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: var(--ink-2); }
.msel[open] > summary { border-color: var(--brand-2); }
.msel-panel { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; min-width: 240px; max-width: min(340px, 90vw); max-height: 300px; overflow-y: auto; padding: 8px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.msel-panel label { display: flex; gap: 8px; align-items: baseline; padding: 3px 4px; font-size: .88rem; cursor: pointer; }
.msel-foot { display: flex; justify-content: space-between; gap: 10px; padding: 6px 4px 0; margin-top: 4px; border-top: 1px solid var(--line); font-size: .85rem; }
.ib-pick { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ib-pick .msel > summary { max-width: none; width: 100%; padding-top: 8px; padding-bottom: 8px; }
.ib-pick .msel { display: block; }
.ib-fields label.ib-known, .ib-known { flex-direction: row; align-items: center; gap: 8px; align-self: end; padding-bottom: 10px; }
/* Insights: "Ask Licerna to build me a board", highlighted among the ready-made boards */
.ib-tpl.ib-tpl-ai { border-color: var(--brand-2); background: var(--tint, var(--bg-alt)); box-shadow: inset 0 0 0 1px var(--brand-2); }
.ib-tpl.ib-tpl-ai b { color: var(--brand-2); }
/* Insights: narrowing the whole board, and adding to it (13 Nov 2026, Louisa's option A). Rounded = information (what
   the board shows); square corners = a button you press. */
:root { --chip-line: #c6dccf; }
:root[data-theme="dark"] { --chip-line: #2c4a3d; }
.ib-ico { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sec-h { font: 700 1rem/1.3 var(--font); margin: 0; color: var(--ink); letter-spacing: 0; }
.sec-sub { font-size: .86rem; color: var(--muted); }
.nb { border: 1px solid var(--line); background: var(--bg-alt); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 12px; display: grid; gap: 12px; min-width: 0; }
.nb-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 4px 14px; }
.nb-top .t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.nb-change { display: none; }
.nb-tools { display: grid; gap: 10px; min-width: 0; }
.nb-picks { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.say { display: flex; gap: 8px; }
.say .field { flex: 1 1 auto; }
.nb .shows { padding-top: 12px; border-top: 1px solid var(--line-2); }
.nb .note { margin: -4px 0 0; font-size: .82rem; color: var(--muted); }
.nb .note:empty, #nb-reply:empty { display: none; }
/* a picker: a square button that says what it holds */
.pick, .msel.pickm > summary { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 36px; padding: 6px 30px 6px 10px; position: relative;
  border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); color: var(--ink); font: 500 .88rem/1.25 var(--font); cursor: pointer; text-align: left; white-space: nowrap; }
.pick::after { content: "\25BE"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-size: .8rem; pointer-events: none; }
.pick .pk { color: var(--muted); font-weight: 500; white-space: nowrap; }
.pick b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 18em; }
.pick.set, .msel.pickm > summary.set { border-color: var(--brand-2); }
.pick.open, .msel.pickm[open] > summary { border-color: var(--brand-2); box-shadow: 0 0 0 1px var(--brand-2); }
.pick-sel select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--ink); font: 600 .88rem/1.25 var(--font); padding: 0; cursor: pointer; min-width: 0; max-width: 100%;
  field-sizing: content; }   /* as wide as the chosen words, so no gap before the arrow */
.pick-sel select:focus { outline: none; }
.pick-sel:focus-within, .pick:focus-visible, .msel.pickm > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pickw { position: relative; min-width: 0; max-width: 100%; }
.msel-g { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 6px 4px 2px; padding-top: 4px; border-top: 1px solid var(--line); font-size: .78rem; }
.msel-g:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.msel-g b { text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
/* the board's narrowing as labels: rounded, each with a small round x to take it off */
.shows { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.shows .lead { font-size: .86rem; font-weight: 600; color: var(--ink-2); margin-right: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; max-width: 100%; padding: 2px 3px 2px 10px; border-radius: 999px; background: var(--tint); color: var(--brand-2);
  border: 1px solid var(--chip-line); font: 600 .82rem/1.25 var(--font); }
.chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip .x { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; font: 700 .95rem/1 var(--font); padding: 0; }
.chip .x:hover, .chip .x:focus-visible { background: var(--panel); }
.chip.loose { background: var(--panel); border-style: dashed; }
.shows .clear { font-size: .84rem; margin-left: 4px; }
.shows .none { font-size: .86rem; color: var(--muted); }
/* on a chart: what the board's narrowing does to it, and what it can't */
.ib-keeps { display: flex; flex-wrap: wrap; gap: 6px; }
.ib-keeps:empty { display: none; }
.keeps { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 1px 9px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font: 600 .74rem/1.3 var(--font); }
.follows { font-size: .8rem; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; line-height: 1.45; }
.follows .ib-ico { margin-top: 2px; }
.follows b { font-weight: 600; color: var(--ink-2); }
.cp-slot:empty { display: none; }
/* the company tick list */
.cpick { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; min-width: 0; color: var(--ink); font-size: .88rem; }
/* the list scrolls inside the box, so the search stays above it and Done below it */
.cpick.pop { position: absolute; z-index: 45; top: calc(100% + 6px); left: 0; width: min(460px, calc(100vw - 32px)); max-height: 70vh; box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
  display: flex; flex-direction: column; }
.cpick.pop .cp-body { overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1 1 auto; }
.cpick.flat { margin-top: 6px; }
.cpick.flat .cp-body { max-height: 26rem; overflow-y: auto; overscroll-behavior: contain; }   /* a long list scrolls in its box */
.cp-head { display: grid; gap: 1px; }
.cp-head b { font-size: .92rem; }
.cp-head span { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.cp-search { position: relative; display: block; }
.cp-search .ib-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.cp-search .field { padding-left: 32px; }
.cp-body { display: grid; gap: 6px; min-width: 0; }
.cp-body.busy { opacity: .6; }
.cp-group { margin: 4px 0 0; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.cp-list { display: grid; gap: 1px; }
.cp-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 4px 9px; align-items: start; padding: 6px; border-radius: 6px; cursor: pointer; font-size: .88rem; }
.cp-row:hover { background: var(--bg-alt); }
.cp-row input { margin: 3px 0 0; accent-color: var(--brand-2); width: 16px; height: 16px; }
.cp-row.on { background: var(--tint); }
.cp-name { min-width: 0; display: grid; }
.cp-name b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.cp-name small { font-size: .76rem; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.cp-n { font-size: .8rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 1px; }
.cp-msg, .cp-any { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.cp-any.keep { color: var(--ink-2); }
.cp-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; background: var(--panel); }
.cpick.flat .cp-foot, .reply .acts { padding-right: 56px; }   /* clear of the floating Help button */
.spell { border-bottom: 1px dotted currentColor; cursor: help; }
.cp-foot .l { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .84rem; }
.cp-foot .r { display: flex; gap: 8px; flex-wrap: wrap; }
/* a reply under a box */
.reply { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 6px; background: var(--bg-alt); font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.reply > div { min-width: 0; flex: 1; }
.reply.ok { background: var(--tint); color: var(--ink); }
.reply.ask { background: var(--warn-bg); color: var(--ink); }
.reply .ib-ico { margin-top: 2px; color: var(--brand-2); }
.reply.ask .ib-ico { color: var(--warn); }
.reply .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.reply .cpick { margin-top: 8px; }
.ab { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 18px; display: grid; gap: 10px; background: var(--panel); min-width: 0; }
.ab .ib-ask .field { flex: 1 1 360px; }
.ib-ask .more { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .nb { padding: 12px; }
  .nb-change { display: inline-flex; }
  .nb-tools { display: none; }
  .nb.open .nb-tools { display: grid; }
  .nb-picks { display: grid; grid-template-columns: minmax(0, 1fr); }
  .nb-picks .pick, .nb-picks .msel.pickm, .nb-picks .msel.pickm > summary { width: 100%; }
  .nb-picks .msel-panel { max-width: calc(100vw - 32px); }
  .cpick.pop { position: static; width: auto; max-height: none; box-shadow: none; margin-top: 6px; }
  .cpick .cp-body, .cpick.flat .cp-body { max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; }
  .say { flex-direction: column; }
  .nb .shows { border-top: 0; padding-top: 0; }
  .ab { padding: 12px; }
  .ab .ib-ask .field { flex-basis: 100%; }
  .ib-ask > .btn { width: 100%; }
  .ib-ask .more { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .ib-ask .more .btn { padding-left: 8px; padding-right: 8px; white-space: normal; }
}

/* Watch a firm: a small text button beside a winner or current supplier (21 Nov 2026) */
.watch-btn { background: none; border: 0; padding: 0 0 0 6px; color: var(--link); font: inherit; font-size: .85em; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.watch-btn:disabled { color: var(--muted, #667); text-decoration: none; cursor: default; }
/* Pricing comparison on a phone: the feature column keeps a readable width; the table scrolls sideways in its box (21 Nov 2026) */
@media (max-width: 640px) { body[data-page="pricing"] .table-wrap table.t td:first-child { min-width: 11em; } body[data-page="pricing"] .table-wrap table.t { min-width: 34em; } }
