/* Source Sans 3, SIL Open Font License (fonts/OFL.txt). Self-hosted so it renders the same on every platform. */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Brand colours are sampled from The Innovation Village logo. */
:root {
  color-scheme: light;
  --brand: #204a5e;
  --brand-hover: #173a4b;
  --brand-tint: #e6eff3;
  --accent: #ff6200;
  --page: #f4f6f7;
  --surface: #ffffff;
  --surface-sunken: #f8fafb;
  --ink: #15232b;
  --muted: #56656d;
  --line: #dbe2e5;
  --control: #7f9098;
  --hover: #eef3f5;
  --done: #1d6a44;
  --done-tint: #e3f1e8;
  --active: #1b5a82;
  --active-tint: #e2edf5;
  --confirm: #874600;
  --confirm-tint: #fbeedc;
  --confirm-line: #edd3ae;
  --danger: #a12c1e;
  --danger-tint: #fbeae7;
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --width: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --panel-radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.5 var(--font); }
a { color: inherit; }
button, input, select, textarea { color: inherit; font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: block; width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 8px 14px; border-radius: var(--radius); background: var(--brand); color: #fff; font-weight: 600; transform: translateY(calc(-100% - 16px)); }
.skip-link:focus { transform: none; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* Header */
.workspace-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.workspace-header-inner, .page-shell { width: min(var(--width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.workspace-header-inner { display: flex; align-items: stretch; gap: clamp(16px, 3vw, 36px); min-height: 60px; }
.brand { display: flex; flex: none; align-items: center; gap: 12px; color: var(--brand); text-decoration: none; }
.brand img { display: block; width: auto; height: 30px; }
.brand-product { padding-left: 12px; border-left: 1px solid var(--line); font-size: 19px; font-weight: 700; line-height: 30px; }
.workspace-nav { display: flex; gap: clamp(16px, 2.4vw, 28px); min-width: 0; }
.workspace-nav a { display: inline-flex; align-items: center; gap: 7px; padding-top: 3px; border-bottom: 3px solid transparent; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.workspace-nav a:hover { color: var(--ink); }
.workspace-nav a[aria-current] { border-bottom-color: var(--accent); color: var(--ink); }
.workspace-nav a:focus-visible { outline-offset: -2px; }
.nav-count { min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.workspace-account { display: flex; align-items: center; gap: 16px; min-width: 0; margin-left: auto; }
.account-email { overflow: hidden; max-width: 16rem; color: var(--muted); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-account form { flex: none; }
.sign-out { min-height: 36px; padding: 0; border: 0; background: none; color: var(--brand); font-size: 15px; font-weight: 600; white-space: nowrap; }
.sign-out:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Page structure */
.page-shell { padding-block: 28px 64px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; margin-bottom: 20px; }
.page-title { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.page-intro { max-width: 640px; margin: 4px 0 0; color: var(--muted); }
.page-section + .page-section { margin-top: 36px; }
.section-title { margin: 0 0 12px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.breadcrumb { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; margin: 0 0 12px -4px; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.breadcrumb .icon { width: 18px; height: 18px; }
.breadcrumb:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Controls */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid transparent; border-radius: var(--radius); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.button .icon { width: 16px; height: 16px; }
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-hover); }
.button-secondary { border-color: var(--control); background: var(--surface); color: var(--ink); }
.button-secondary:hover { background: var(--hover); }
.button:disabled { opacity: .65; cursor: wait; }
.text-link, .text-button { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.text-link:hover, .text-button:hover { text-decoration-thickness: 2px; }
.text-button { padding: 0; border: 0; background: none; font-size: inherit; }
.notice { margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); background: var(--surface); }
.status { display: inline-block; padding: 1px 8px; border-radius: 4px; background: var(--hover); color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.status-done { background: var(--done-tint); color: var(--done); }
.status-active { background: var(--active-tint); color: var(--active); }
.status-confirm { background: var(--confirm-tint); color: var(--confirm); }
.empty-block { display: grid; gap: 2px; padding: 24px; border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--surface); }
.empty-block span { color: var(--muted); }
.empty-note { margin: 0; color: var(--muted); }
.field-hint { margin: 0; color: var(--muted); font-size: 14px; font-weight: 400; }

/* Search */
.search-panel { margin-bottom: 24px; }
.search-modes { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.search-modes a { padding: 6px 12px; border-radius: var(--radius); color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.search-modes a:hover { background: var(--hover); color: var(--ink); }
.search-modes a[aria-current] { background: var(--brand-tint); color: var(--brand); }
.search { display: flex; align-items: flex-start; gap: 8px; max-width: 860px; }
.search-field { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; min-height: 46px; padding-inline: 14px; border: 1px solid var(--control); border-radius: var(--radius); background: var(--surface); }
.search-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.search-field .icon { color: var(--muted); }
.search-field input, .search-field textarea { flex: 1; width: 0; min-width: 0; margin: 0; padding: 10px 0; border: 0; outline: 0; background: transparent; font-size: 17px; line-height: 1.45; }
.search-field textarea { display: block; max-height: 220px; resize: none; }
.search-field ::placeholder { color: var(--muted); opacity: 1; }
.search .button { min-height: 46px; }
.search-help { max-width: 640px; margin: 0; color: var(--muted); }

/* Library */
.library-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.view-tabs { display: flex; gap: 24px; }
.view-tabs a { display: block; margin-bottom: -1px; padding: 8px 0 10px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; text-decoration: none; }
.view-tabs a:hover { color: var(--ink); }
.view-tabs a[aria-current] { border-bottom-color: var(--brand); color: var(--ink); }
.view-tabs a:focus-visible { outline-offset: -2px; }
.library-bar .button { margin-bottom: 8px; }
.filters { margin: 12px 0 16px; }
.filters summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 15px; font-weight: 600; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary .icon { width: 16px; height: 16px; color: var(--muted); }
.filters summary:hover, .filters[open] summary { border-color: var(--control); }
.filters[open] .filter-chevron { transform: rotate(180deg); }
.filter-flag { padding: 0 6px; border-radius: 4px; background: var(--brand-tint); color: var(--brand); font-size: 13px; line-height: 20px; }
.filter-panel { margin-top: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--surface); }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; }
.filter-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 20px; margin-top: 16px; }
.results-label { margin: 0 0 10px; color: var(--muted); }
.results-label strong { color: var(--ink); }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; color: var(--muted); }

/* Tables */
.table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-sunken); color: var(--muted); font-size: 14px; font-weight: 600; text-align: left; white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { position: relative; }
.data-table tbody tr:hover { background: var(--hover); }
.data-table tbody tr:has(.row-link:focus-visible) { outline: 2px solid var(--brand); outline-offset: -2px; }
.data-table .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.cell-title { min-width: 15rem; }
.project-table .cell-title { width: 38%; }
.row-link { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.row-link::after { position: absolute; inset: 0; content: ""; }
.row-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.row-link:focus-visible { outline: none; }
.cell-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; }
.match-excerpt { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.data-table .empty-row { padding: 28px 16px; }
.empty-row strong, .empty-row span { display: block; }
.empty-row span { color: var(--muted); }

/* Record pages */
.record-header { margin-bottom: 24px; }
.record-header > .status { margin-bottom: 10px; }
.record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.record-header .record-actions { margin-top: 16px; }
.record-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); align-items: start; gap: 24px 32px; }
.record-main { display: grid; gap: 16px; min-width: 0; }
.record-section, .facts { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--surface); }
.record-section h2, .facts h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.prose { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.callout { padding: 16px 20px; border: 1px solid var(--confirm-line); border-left: 4px solid var(--confirm); border-radius: var(--panel-radius); background: var(--confirm-tint); }
.callout h2, .callout h3 { margin: 0 0 4px; color: var(--confirm); font-size: 16px; font-weight: 700; }
.callout p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.doc-list { display: grid; margin: 0; padding: 0; list-style: none; }
.doc-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: start; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.doc-list li:first-child { padding-top: 2px; border-top: 0; }
.doc-list .icon { margin-top: 3px; color: var(--muted); }
.doc-title { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc-title:hover { text-decoration-thickness: 2px; }
.doc-meta { display: block; color: var(--muted); font-size: 14px; }
.file-name { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.facts dl { margin: 0; }
.facts dl > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.section-head h2 { margin: 0; }
.section-head span { color: var(--muted); font-size: 15px; }
.gap-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gap-list li { padding-left: 12px; border-left: 3px solid var(--confirm); }
.gap-list strong, .gap-list span { display: block; }
.gap-list span { color: var(--muted); }
.gap-actions { margin-top: 16px; }
.record-section .notice { margin: 16px 0 0; }
.subhead { margin: 20px 0 8px; font-size: 16px; font-weight: 700; }
.priorities { display: grid; gap: 12px; margin: 0; padding-left: 22px; }
.priorities p { margin: 2px 0 0; }
.priority-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.references summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.references summary::-webkit-details-marker { display: none; }
.references summary h2 { margin: 0; }
.references summary .icon { color: var(--muted); }
.references[open] summary .icon { transform: rotate(180deg); }
.references[open] summary { margin-bottom: 4px; }
.reference { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.reference:target { margin-inline: -12px; padding-inline: 12px; border-radius: 4px; background: var(--brand-tint); }
.reference-id { color: var(--muted); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.reference strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.reference p { margin: 2px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.reference-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-size: 14px; }
.review-form { margin-top: 12px; }

/* Described requirement results */
.match-list { display: grid; gap: 12px; }
.match { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--surface); overflow-wrap: anywhere; }
.match-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.match h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.match h3 a { color: var(--ink); text-decoration: none; }
.match h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.match-reason { margin: 6px 0 0; }
.match-quote { margin: 12px 0 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--line); }
.match-quote p { margin: 0; }
.match-quote footer { margin-top: 2px; color: var(--muted); font-size: 14px; }
.match .doc-list, .match .empty-note { margin-top: 14px; }
.match .doc-list li:first-child { padding-top: 10px; border-top: 1px solid var(--line); }
.match-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; }

/* Forms */
.editor { max-width: 820px; }
.form-group { margin-bottom: 16px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--surface); }
.form-group h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.full-width { grid-column: 1 / -1; }
.field-grid label, .filter-grid label { display: grid; align-content: start; gap: 6px; min-width: 0; font-size: 15px; font-weight: 600; }
.field-grid input, .field-grid select, .field-grid textarea, .filter-grid input, .filter-grid select, .inline-form select, .auth-field input {
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--control);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.4 var(--font);
}
.field-grid input:focus, .field-grid select:focus, .field-grid textarea:focus, .filter-grid input:focus, .filter-grid select:focus, .inline-form select:focus, .auth-field input:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 1px var(--brand); }
.field-grid textarea { resize: vertical; }
.field-grid input[type="file"] { padding: 5px; }
::file-selector-button { margin-right: 12px; padding: 5px 12px; border: 1px solid var(--control); border-radius: 4px; background: var(--surface-sunken); color: var(--ink); font: 600 15px var(--font); cursor: pointer; }
::file-selector-button:hover { background: var(--hover); }
.field-grid .checkbox { display: flex; align-items: center; gap: 10px; }
.field-grid .checkbox input { width: 18px; min-height: 0; height: 18px; accent-color: var(--brand); }
.form-group > .field-hint { margin-top: 2px; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.suggestion-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; }
.suggestion-status:not(:empty) { margin-top: 10px; }
.suggestion-panel { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-sunken); overflow-wrap: anywhere; }
.suggestion-panel h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.suggestion-panel dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0 0 14px; }
.suggestion-panel dt { color: var(--muted); }
.suggestion-panel dd { margin: 0; }
.suggestion-panel ul { margin: 0 0 14px; padding-left: 18px; }
.suggestion-panel li + li { margin-top: 8px; }
.suggestion-panel small { display: block; color: var(--muted); font-size: 14px; }

/* Access */
.people { border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--surface); }
.person-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); align-items: center; gap: 10px 20px; padding: 16px 20px; }
.person-row + .person-row { border-top: 1px solid var(--line); }
.person-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.person-identity strong { font-weight: 600; }
.team-assignments { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; grid-column: 1; }
.inline-form { display: flex; grid-column: 2; gap: 8px; }
.inline-form select { min-width: 0; }
.team-remove { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-sunken); font-size: 14px; font-weight: 600; }
.team-remove:hover { border-color: var(--control); background: var(--hover); }

/* Evidence to find */
.retrieval-list { border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--surface); }
.retrieval-record + .retrieval-record { border-top: 1px solid var(--line); }
.retrieval-record summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 20px; list-style: none; }
.retrieval-record summary::-webkit-details-marker { display: none; }
.retrieval-record summary:hover { background: var(--hover); }
.retrieval-record summary .icon { color: var(--muted); transform: rotate(-90deg); }
.retrieval-record[open] summary .icon { transform: none; }
.retrieval-title { flex: 1; min-width: 12rem; font-weight: 600; overflow-wrap: anywhere; }
.retrieval-details { display: grid; gap: 14px; padding: 0 20px 18px 50px; overflow-wrap: anywhere; }
.retrieval-details h2 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.retrieval-details ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.retrieval-document li strong { display: block; font-weight: 600; }
.retrieval-document .reference-meta { color: var(--muted); }
.retrieval-projects li { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Bid sheet */
.copy-status { margin-bottom: 16px; }
.copy-status:empty { display: none; }
.bid-entries { display: grid; gap: 16px; }
.bid-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); align-items: start; gap: 20px 32px; padding: 20px; border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--surface); }
.bid-table { width: 100%; border-collapse: collapse; font-size: 15px; overflow-wrap: anywhere; }
.bid-table th, .bid-table td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.bid-table thead th { background: var(--brand-tint); color: var(--brand); font-size: 17px; font-weight: 700; }
.bid-table tbody th { width: 28%; background: var(--surface-sunken); color: var(--muted); font-weight: 600; }
.bid-table td { white-space: pre-line; }
.bid-table ul { margin: 0; padding-left: 18px; white-space: normal; }
.bid-check { min-width: 0; overflow-wrap: anywhere; }
.bid-check h2 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.callout-compact { padding: 12px 14px; }
.callout-compact p { font-size: 15px; }
.bid-check dl { margin: 10px 0 0; }
.bid-check dl > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.bid-check dt { color: var(--muted); font-size: 14px; }
.bid-check dd { margin: 2px 0 0; font-weight: 600; }
.bid-check .field-hint { margin-top: 10px; }
.bid-check-label { margin: 12px 0 4px; color: var(--confirm); font-size: 14px; font-weight: 700; }
.bid-check-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.bid-entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 12px; }
.bid-entry-actions .text-button { min-height: 32px; }
.bid-clear { display: flex; justify-content: flex-end; margin-top: 16px; }

/* Sign-in and pending access */
.auth-page { display: grid; min-height: 100vh; min-height: 100svh; place-items: center; padding: 40px 16px 56px; border-top: 4px solid var(--brand); }
.auth-main { width: min(100%, 27rem); padding: 32px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.auth-mark { display: block; width: 132px; height: auto; margin-bottom: 28px; }
.auth-main h1 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.2; }
.auth-message { margin: 6px 0 0; color: var(--muted); }
.auth-account { margin: 12px 0 0; overflow-wrap: anywhere; }
.auth-account strong { font-weight: 600; }
.auth-form { display: grid; gap: 16px; margin-top: 24px; }
.auth-field { display: grid; gap: 6px; }
.auth-field label { font-size: 15px; font-weight: 600; }
.auth-field input { min-height: 46px; }
.auth-form .button { min-height: 46px; }
.auth-hint { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.auth-alert { margin: 16px 0 0; padding: 10px 12px; border-left: 3px solid var(--danger); border-radius: 4px; background: var(--danger-tint); color: var(--danger); font-weight: 600; }
.auth-link { display: inline-block; margin-top: 20px; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

@media (max-width: 960px) {
  .workspace-header-inner { flex-wrap: wrap; gap: 0 16px; }
  .brand, .workspace-account { min-height: 56px; }
  .workspace-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .workspace-nav a { min-height: 44px; }
  .record-grid, .bid-entry { grid-template-columns: minmax(0, 1fr); }
  .record-grid > .facts { order: -1; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .data-table, .data-table tbody, .data-table td { display: block; }
  .data-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .data-table tbody tr:last-child { border-bottom: 0; }
  .data-table td { padding: 0; border: 0; }
  .data-table .cell-title, .data-table .empty-row { grid-column: 1 / -1; width: auto; min-width: 0; }
  .data-table td[data-label]::before { display: block; color: var(--muted); font-size: 13px; content: attr(data-label); }
  .data-table .num { text-align: left; }
  .data-table .empty-row { padding: 12px 0; }
}

@media (max-width: 560px) {
  .account-email { display: none; }
  .page-title { font-size: 24px; }
  .search { flex-direction: column; align-items: stretch; }
  .field-grid, .filter-grid { grid-template-columns: minmax(0, 1fr); }
  .record-section, .facts, .form-group, .match, .bid-entry { padding: 16px; }
  .person-row { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .inline-form { grid-column: 1; }
  .retrieval-record summary { padding-inline: 16px; }
  .retrieval-details { padding: 0 16px 16px; }
  .filter-actions { justify-content: flex-start; }
  .auth-main { padding: 24px; }
}

/* A printed bid sheet carries only the proposal-ready tables. */
@media print {
  body { background: #fff; }
  .workspace-header, .skip-link, .record-actions, .bid-check, .bid-clear, .copy-status { display: none !important; }
  .page-shell { width: auto; padding: 0; }
  .bid-entry { display: block; margin-bottom: 16pt; padding: 0; border: 0; break-inside: avoid; }
  .bid-table { font-size: 10pt; }
  .bid-table th, .bid-table td { border-color: #8c8c8c; }
  .bid-table thead th { background: #e8e8e8; color: #000; }
  .bid-table tbody th { background: #fff; color: #333; }
}
