/* Bidmark workspace: shared tokens, navigation, surfaces and content hierarchy.
   Feature-specific behavior remains in app.css; visual treatment lives here. */
:root {
    --body: 'Readex Pro', 'Segoe UI', sans-serif;
    --canvas: #f3f5fa;
    --paper: #fff;
    --paper-2: #f7f8fc;
    --paper-3: #edf1fc;
    --ink: #111c35;
    --ink-2: #26334c;
    --ink-3: #45536b;
    --ink-4: #536079;
    --brand: #2859ed;
    --brand-dark: #1744cf;
    --brand-wash: #eef2ff;
    --brand-wash-2: #e3eaff;
    --hairline: #e0e5ef;
    --line: #e9edf4;
    --line-2: #c8d1e1;
    /* app.css's ramp, not a second one. Its floor is 500 and the reason is
       written there: most type here is 12 to 14px on a near-white ground and
       a light cut at that size is text somebody has to lean in to read. */
    --w-reg: 500;
    --w-med: 550;
    --w-semi: 600;
    --w-bold: 650;
    --w-display: 600;
    --rail: 248px;
    --shell: 1360px;
    --radius: 12px;
    --radius-lg: 18px;
    --edge: 0 0 0 1px #172e5510;
    --shade-1: 0 4px 18px -10px #263d6330;
    --surface-shadow: 0 1px 3px #172e5505, 0 12px 32px -20px #263d6333;
}
body { font-size: 14px; line-height: 1.65; }
h1, h2, h3 { text-wrap: pretty; }
button, input, select, textarea { font-family: var(--body); }
::selection { background: #dce5ff; }
:focus-visible { outline: 3px solid #6184ff; outline-offset: 3px; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 200; padding: 10px 16px; background: white; border: 2px solid var(--brand); border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* A light navigation rail and a distinct, softly lit working canvas. */
.side { background: #fff; padding: 30px 18px 20px; border-right: 1px solid var(--hairline); box-shadow: none; }
.side-brand { padding: 0 12px; margin-bottom: 32px; gap: 10px; }
.side .brand, .side .brand:hover { color: var(--ink); }
.side .brand-word { font-size: 24px; font-weight: var(--w-bold); letter-spacing: -.8px; }
.side .brand-mark { width: 30px; height: 30px; }
.sidebar-create { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; color: white; background: var(--brand); font-size: 14px; font-weight: var(--w-semi); box-shadow: 0 3px 7px #2859ed24; margin-bottom: 32px; text-decoration: none; }
.sidebar-create:hover { color: white; background: var(--brand-dark); text-decoration: none; }
/* flex: 0 0 auto, not decoration: the label beside it is nowrap and wider
   than the narrowed rail, and a shrinkable icon gives up its own width first.
   The button spent an afternoon as an empty blue square proving it. */
.sidebar-create svg { flex: 0 0 auto; width: 18px; height: 18px; }
.sidebar-create-plus { margin-left: auto; font-size: 20px; line-height: 1; }
/* The max-height is the caption's own height rounded up, and it is here so
   there is a number to animate from when the rail narrows: a transition out of
   `none` does not run. */
.nav-caption { color: var(--ink-4); font-size: 12px; font-weight: var(--w-med); letter-spacing: .3px; margin: 0 14px 10px; max-height: 30px; }
.nav-caption--group { margin-top: 28px; }
.side-nav { gap: 5px; }
.side-link { min-height: 44px; padding: 11px 14px; border-radius: 9px; color: var(--ink-2); font-size: 14px; font-weight: var(--w-med); gap: 12px; }
.side-link svg { width: 18px; height: 18px; color: var(--ink-3); }
.side-link:hover { background: var(--paper-2); color: var(--ink); }
.side-link.is-here { color: var(--brand-dark); background: var(--brand-wash); box-shadow: none; }
.side-link.is-here svg { color: var(--brand); }
.side-link.is-here::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); margin-left: auto; }
.side-user { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.side-user > summary { padding: 8px 5px; gap: 10px; }
.side-user > summary:hover { background: var(--paper-2); }
.side-name, .side-signout { color: var(--ink); font-size: 13px; }
.side-email { color: var(--ink-4); font-size: 12px; }
.side-avatar { border-radius: 50%; background: #e7edff; color: var(--brand-dark); box-shadow: inset 0 0 0 1px #2859ed0a; }
.side-chevron svg { color: var(--ink-4); width: 15px; }
.main { background: radial-gradient(ellipse 75% 420px at 85% 0, #e6edff 0, transparent 100%), radial-gradient(ellipse 70% 360px at 0 0, #f7f2ff 0, transparent 100%), var(--canvas); }
.workspace-bar { height: 66px; padding: 0 40px; border-bottom: 1px solid #dfe5f080; background: #ffffff99; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.workspace-location { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.workspace-location strong { color: var(--ink-2); font-weight: var(--w-med); }
.workspace-symbol { display: none; }
.workspace-divider { color: #a7b2c7; margin: 0 4px; }
.workspace-date { color: var(--ink-3); font-size: 12px; }
.mobile-nav-toggle { display: none; }
.wrap { padding: 36px 40px 72px; }
.page-head { margin-bottom: 28px; }
.page-head h1, .results-name { font-size: 32px; letter-spacing: -1.1px; line-height: 1.25; }
.page-lead { color: var(--ink-3); font-size: 14px; margin-top: 9px; }
.eyebrow { color: var(--brand-dark); font-size: 12px; letter-spacing: 1px; margin: 0 0 9px; font-weight: var(--w-med); }

/* Controls have a stronger edge than content surfaces. */
.btn { min-height: 42px; padding: 10px 17px; border-radius: 9px; font-size: 13px; font-weight: var(--w-semi); box-shadow: 0 2px 4px #2859ed1a; transition: background .16s, box-shadow .16s; }
.btn:hover { box-shadow: 0 4px 10px #2859ed24; }
.btn-secondary { background: white; color: var(--ink-2); border: 1px solid #d6ddea; box-shadow: 0 1px 2px #172e5505; }
.btn-secondary:hover { background: var(--paper-2); border-color: #b8c5dd; color: var(--ink); }
.btn-sm { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.btn-ghost { font-size: 13px; color: var(--ink-3); border-radius: 8px; }
.panel { border-radius: var(--radius-lg); box-shadow: var(--edge), var(--surface-shadow); }
.panel-body { padding: 26px; }
.panel-title { font-size: 16px; font-weight: var(--w-bold); }
.panel-head-row { gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head-row .pill { margin-left: auto; }
.section { margin-bottom: 20px; }
.pill { border-radius: 6px; font-size: 12px; font-weight: var(--w-med); padding: 4px 8px; }
.pill--warn { background: #fff3db; color: #925500; }
.pill--good { background: #e9f8ef; color: #16673c; }
.pill--ours { background: #edf2ff; color: #234dc9; }
.notice { border-radius: 12px; font-size: 13px; }
.not-stated { font-style: normal; color: var(--ink-3); }

/* Results use distinct cards with a consistent reading order and action area. */
.results-head { margin-bottom: 28px; justify-content: space-between; align-items: center; gap: 24px; }
.results-headings { flex: 1; }
.results-description { color: var(--ink-2); margin: 10px 0 8px; font-size: 15px; line-height: 1.6; max-width: 760px; }
.results-actions { flex-shrink: 0; gap: 10px; }
.criteria-open { font-size: 13px; gap: 7px; color: var(--ink-3); }
.criteria-open > svg { width: 15px; height: 15px; }
.criteria-toggle { margin-left: 7px; font-weight: var(--w-med); font-size: 13px; }
.criteria { margin-top: 12px; }
.criteria-chip { font-size: 12px; background: white; border: 1px solid var(--hairline); }
.controls { position: static; padding: 0; margin: 0 0 16px; gap: 12px; background: transparent; }
.refine-search { background: transparent; border: 0; box-shadow: none; min-height: 46px; }
.refine-search input { font-size: 14px; padding: 12px 16px 12px 42px; font-weight: var(--w-reg); background: white; border: 1px solid #d6ddea; border-radius: 10px; min-height: 46px; }
.refine-search input::placeholder { color: #536079; }
.refine-search input:focus { border-color: #668df5; box-shadow: 0 0 0 3px #2859ed14; outline: none; }
.sortby { font-size: 12px; gap: 8px; }
/* The shared chevron (--select-chevron), set again here only because this
   rule uses the background shorthand. */
.sortby select {
    min-height: 42px; padding: 0 38px 0 14px; border: 1px solid #d6ddea; border-radius: 9px;
    font-size: 13px; font-weight: var(--w-semi); color: var(--ink-2); cursor: pointer;
    appearance: none; -webkit-appearance: none;
    background: white var(--select-chevron) no-repeat right 13px center / 14px;
    box-shadow: 0 1px 2px #172e5505;
    transition: border-color .16s, box-shadow .16s;
}
.sortby select:hover { border-color: #b8c5dd; }
.sortby select:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash); }
.tabs { gap: 26px; margin-bottom: 0; overflow-x: auto; flex-wrap: nowrap; border-color: #dce2ee; }
.tabs a { font-size: 14px; padding: 12px 2px 14px; border-radius: 0; flex-shrink: 0; gap: 8px; }
.tabs a:hover { background: transparent; color: var(--brand); }
.saved-tabs { margin-bottom: 20px; }
.chip-count { font-size: 12px; padding: 1px 6px; min-width: 21px; border-radius: 5px; background: #e4e9f3; }
.results-list-heading { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); font-size: 12px; padding: 18px 2px 12px; }
.results-list { gap: 12px; background: transparent; box-shadow: none; }
.result { --body: 'Segoe UI', Arial, sans-serif; font-family: var(--body); padding: 18px 22px; border: 1px solid #dfe5ef; border-radius: 12px; box-shadow: 0 2px 5px #172e5504; background: white; overflow: visible; transition: border-color .15s, box-shadow .15s; }
.result:hover { border-color: #bbc9e1; box-shadow: 0 5px 18px #172e5509; }
/* Saved is a shortlist to manage: aligned fields on one shared surface. */
.saved-workspace { background: white; border-radius: 16px; box-shadow: var(--edge), var(--surface-shadow); padding: 0 24px 8px; }
.saved-workspace .savedbar { margin: 0; padding: 22px 0 10px; gap: 12px; }
.saved-workspace .savedbar-search { max-width: none; }
.saved-workspace .savedbar-search input { border: 0; background: var(--paper-2); min-height: 44px; border-radius: 8px; }
.saved-workspace .savedbar .sortby { white-space: nowrap; }
.saved-workspace .saved-tabs { margin-bottom: 0; gap: 24px; }
.saved-workspace .tabs a { font-size: 13px; }
.saved-workspace .sgroup { margin: 0; }
.saved-workspace .sgroup-head { margin: 0 -24px; padding: 14px 24px; background: #f8f9fc; border-bottom: 1px solid var(--line); }
.saved-workspace .sgroup-title { font-size: 13px; font-weight: var(--w-med); }
.saved-workspace .sgroup-rule { display: none; }
.saved-workspace .sgroup-n { background: #eaf0fb; font-size: 12px; }
.saved-workspace .sgroup-note { margin: 0; padding: 12px 0; font-size: 12px; }
.saved-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px 155px 34px; gap: 26px; align-items: start; margin: 0; padding: 24px 0; border-bottom: 1px solid var(--line); }
.saved-column-head { display: grid; grid-template-columns: minmax(0, 1fr) 220px 155px 34px; gap: 26px; padding: 16px 0; font-size: 12px; color: var(--ink-3); }
.saved-row:last-child { border-bottom: 0; }
.saved-identity { min-width: 0; }
.saved-title { font-size: 16px; font-weight: var(--w-semi); line-height: 1.55; margin: 0; letter-spacing: -.15px; }
.saved-title a { color: var(--ink); text-decoration: none; }
.saved-title a:hover { color: var(--brand); }
.saved-buyer { font-size: 12px; color: var(--ink-3); margin: 6px 0 10px; }
.saved-labels { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.saved-provenance { font-size: 12px; color: var(--ink-3); }
.saved-row .verdict { font-size: 12px; padding: 2px 6px; border: 0; }
.saved-row .verdict--strong, .saved-row .verdict--good { background: #eef3ff; color: #2454cc; }
.saved-row .verdict--possible { background: #f3efff; color: #5b3fbb; }
.saved-row .verdict--possible .verdict-score { color: #4c2fb0; }
.saved-row .verdict--possible .verdict-meter i:first-child { background: #7c5cf0; }
.saved-context { margin-top: 9px; font-size: 12px; color: var(--ink-3); }
.saved-context > summary { display: inline-flex; gap: 5px; align-items: center; cursor: pointer; list-style: none; }
.saved-context > summary::-webkit-details-marker { display: none; }
.saved-context > summary svg { width: 12px; height: 12px; transition: transform .2s ease; }
.saved-context[open] > summary svg { transform: rotate(180deg); }
.saved-context-body { padding: 12px 14px; margin-top: 8px; background: var(--paper-2); border-radius: 8px; }
.saved-context-body p { margin: 8px 0 0; }
.saved-context-body > a { display: inline-flex; align-items: center; gap: 5px; }
.saved-context-body svg { width: 12px; height: 12px; }
.saved-cell-label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 9px; }
.saved-date { font-size: 13px; color: var(--ink-2); line-height: 1.7; font-weight: var(--w-med); margin: 0; overflow-wrap: anywhere; }
.saved-date-note { display: block; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.saved-row .track-head { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 0; border-radius: 6px; font-size: 12px; }
.saved-row .track-stage { justify-self: start; font-size: 12px; padding: 3px 8px; border-radius: 5px; }
.saved-row .track-edit { grid-column: 2; grid-row: 1; font-size: 12px; }
.saved-row .track-note, .saved-row .track-empty { grid-column: 1 / -1; grid-row: 2; }
.saved-row .track:not([open]) .track-head:hover { background: transparent; }
.saved-open { display: grid; place-items: center; height: 34px; width: 34px; border-radius: 8px; color: var(--brand); background: var(--brand-wash); margin-bottom: 10px; }
.saved-open svg { width: 17px; height: 17px; }
.saved-actions .menu-open { border-color: transparent; }
.saved-actions .menu-open:hover { background: var(--paper-2); }
.saved-workspace .savedbar-note { padding: 14px 0; margin: 0; }

/* Icons on the saved row -------------------------------------------------

   Every glyph here names the KIND of a fact and none of them names its trust.
   They are one grey, one 24px grid and one stroke, so thirty rows can be
   scanned down a column by shape before a word of them is read.

   None of them is coloured. Green and amber mean provenance in this interface
   and nothing else may borrow them, so a shield next to "Official notice"
   drawn green would be the row making a claim the words already make properly
   and the colour would make wrongly. The one coloured thing on the row is
   still the verdict pill, which names its own yardstick. */
.saved-fact-icon { flex: 0 0 auto; display: inline-flex; color: var(--ink-3); }
.saved-fact-icon svg { width: 14px; height: 14px; }

.saved-buyer { display: flex; align-items: center; gap: 6px; }
.saved-buyer > span:last-child { min-width: 0; }

.saved-provenance { display: inline-flex; align-items: center; gap: 5px; }
.saved-provenance svg { flex: 0 0 auto; width: 13px; height: 13px; color: var(--ink-3); }

/* Two tiers in the cell: the glyph, then the value. The third tier - the word
   "Submission deadline" - is the column heading, printed once at the top of
   the list rather than on all thirty rows. */
.saved-fact { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; align-items: start; }
.saved-fact .saved-fact-icon { margin-top: 4px; }
.saved-fact-body { min-width: 0; }

.saved-context-line { display: flex; align-items: flex-start; gap: 7px; }
.saved-context-line > svg { flex: 0 0 auto; margin-top: 3px; color: var(--ink-3); }

/* The note keeps its single line and its ellipsis; the glyph sits outside the
   clipped box so it cannot be the thing that gets truncated. */
.saved-row .track-note, .saved-row .track-empty { display: flex; align-items: center; gap: 6px; min-width: 0; }
.saved-row .track-note > svg, .saved-row .track-empty > svg { flex: 0 0 auto; width: 13px; height: 13px; color: var(--ink-3); }
.saved-row .track-note > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-row .track-edit { display: inline-flex; align-items: center; gap: 5px; }
.saved-row .track-edit svg { width: 13px; height: 13px; }
@media (max-width: 1250px) and (min-width: 761px) { .saved-row, .saved-column-head { grid-template-columns: minmax(0, 1fr) 180px 130px 32px; gap: 18px; } }
@media (max-width: 760px) { .saved-column-head { display: none; } .saved-row { grid-template-columns: minmax(0, 1fr) 34px; gap: 16px; } .saved-identity { grid-column: 1; } .saved-actions { grid-column: 2; grid-row: 1; } .saved-deadline, .saved-progress { grid-column: 1 / -1; } .saved-workspace { padding: 0 18px; } }
.result-top { margin-bottom: 8px; gap: 10px; }
.result-kind { display: inline-flex; align-items: center; gap: 7px; font-family: var(--body); font-size: 12px; line-height: 1.5; letter-spacing: 0; text-transform: none; font-weight: var(--w-med); padding: 4px 9px; border-radius: 6px; }
.result-kind::before { content: ''; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
.result--lead .result-kind { color: #86520d; background: #fff6e7; }
.result--official .result-kind, .result--checked .result-kind { color: #16673c; background: #edf8f1; }
.verdict { font-size: 12px; padding: 4px 8px; border-radius: 6px; }
.result .verdict-meter i { background: #c8d3ef; }
.result .verdict--strong, .result .verdict--good { background: #eef3ff; color: #2454cc; border-color: transparent; }
.result .verdict--strong .verdict-meter i, .result .verdict--good .verdict-meter i:nth-child(-n+2) { background: #3371f5; }
.result .verdict--strong .verdict-score, .result .verdict--good .verdict-score { color: #174bd6; }
.result .verdict--possible { background: #f3efff; color: #5b3fbb; border-color: transparent; }
.result .verdict--possible .verdict-meter i:first-child { background: #7c5cf0; }
.result .verdict--possible .verdict-score { color: #4c2fb0; }
.result .verdict--none { background: var(--grade-1-wash); color: var(--grade-1-ink); border-color: transparent; }
.result .verdict--none .verdict-meter i { background: var(--grade-1-line); }
.result-title { font-size: 20px; line-height: 1.35; letter-spacing: -.25px; font-weight: var(--w-bold); max-width: none; text-wrap: pretty; overflow-wrap: anywhere; }
.result-title a { color: var(--ink); }
.result-org { display: flex; align-items: center; flex-wrap: wrap; font-size: 13px; margin: 5px 0 0; gap: 7px; line-height: 1.5; }
.result-org-name { font-weight: var(--w-semi); color: var(--ink); }
.result-org-rest { color: var(--ink-3); }
.result-fact-icon { color: var(--ink-3); width: 18px; height: 18px; }
.result-fact-icon > svg { stroke-width: 1.9; }
.result-org .result-fact-icon { transform: none; }
.result-summary { font-size: 14px; line-height: 1.6; max-width: none; margin: 10px 0; color: var(--ink-2); -webkit-line-clamp: 2; line-clamp: 2; }
.result-foot { margin: 12px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid #edf0f5; background: transparent; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.result-facts { min-width: 0; margin-top: 10px; }
.result-metadata { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 28px; padding: 0; background: transparent; border: 0; }
.result-fact-row { gap: 7px; font-size: 13px; line-height: 1.55; }
.result-fact { gap: 8px; flex-wrap: wrap; }
.result-fact--detail { display: flex; align-items: flex-start; flex-wrap: nowrap; gap: 7px; }
.result-fact--detail > .result-fact-icon { width: 18px; height: 20px; color: var(--ink-3); }
.result-fact--detail > .result-fact-icon > svg { width: 18px; height: 18px; }
.result-fact-content { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 7px; min-width: 0; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.result-fact-value { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.result-fact-key { font-size: 13px; line-height: 1.4; font-weight: var(--w-med); color: var(--ink-3); }
.result .deadline-raw { font-size: 13px; line-height: 1.6; }
.result .source-link { font-size: 13px; gap: 6px; overflow-wrap: anywhere; }
.result .source-link svg { width: 15px; height: 15px; flex: 0 0 15px; }
.result-services { flex: 1 1 360px; }
.result-services .result-fact { margin-right: 3px; }
.result-services .reason-chip { padding: 3px 8px; background: #f2f4f7; color: var(--ink-2); box-shadow: none; white-space: normal; overflow-wrap: anywhere; }
.result-services .why-more { padding: 4px; }
.deadline-raw { font-size: 12px; color: var(--ink-2); font-weight: var(--w-med); font-style: normal; overflow-wrap: anywhere; }
.source-link { color: var(--brand-dark); font-size: 12px; text-decoration: none; font-weight: var(--w-med); }
.source-link svg { width: 11px; height: 11px; }
.fact-rule { height: 12px; margin: 0 4px; }
.reason-chip { font-size: 12px; border: 0; background: #f0f3fa; color: #2f4372; padding: 3px 9px; font-weight: var(--w-med); border-radius: 5px; }
.why-more { font-size: 12px; font-weight: var(--w-med); }
.result-actions { gap: 8px; margin: 0 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.result-actions form { margin: 0; }
.result-actions .btn, .result-actions .icon-act, .result-actions .menu-open { min-height: 40px; }
.result-actions .btn { font-size: 13px; padding: 8px 12px; gap: 7px; }
.result-actions .btn svg, .result-actions .icon-act svg, .result-actions .menu-open svg { width: 18px; height: 18px; flex-shrink: 0; }
.result-view { min-height: 40px; padding: 9px 14px; border: 1px solid var(--brand); border-radius: 8px; background: var(--brand); color: white; display: inline-flex; gap: 9px; align-items: center; justify-content: center; font-size: 13px; line-height: 1.5; white-space: nowrap; text-decoration: none; font-weight: var(--w-semi); }
.result-view:hover { color: white; background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; }
.result-view svg { width: 18px; height: 18px; flex-shrink: 0; }
.result-actions .result-dismiss { background: #fff1f2; color: #b42337; border: 1px solid #ffdce1; box-shadow: none; }
.result-actions .result-dismiss:hover { background: #ffe4e8; color: #982034; border-color: #f5b9c2; box-shadow: none; }
/* The sentence the date was read out of, as a popover off the date itself.

   It used to be a full-width row under the date, open or shut. Shut, that left
   an underlined line hanging in the fact column with nothing beside it; open,
   the sentence unfolded into the card and pushed everything under it down.
   Reported on 2026-09-08 as badly placed, with a click-to-toggle popover asked
   for instead.

   What moved is the PANEL, not the control. This is still a <details>: it
   toggles on click, answers the keyboard, and works with no script at all. It
   is deliberately not the page tooltip, and that is the same refusal as before
   - this IS the evidence for the date beside it and a reader opens it to
   compare the two, so it has to stay put, be selectable, be copyable and open
   under a thumb. A bubble that goes away on mouse-out is not evidence.

   Taking the panel out of the flow is also what lets the trigger back onto the
   date's own line: the row can no longer change height, which was the whole
   reason it had been given a row of its own. */
.result-deadline-source { position: relative; flex: 0 0 auto; align-self: center; margin: 0; font-size: 12px; color: var(--ink-3); }

/* The trigger says whose words are inside rather than that words are inside.
   It is the provenance line the detail page prints under its own quotation,
   and on this branch it is the only thing on the row saying the date beside it
   was read out of a sentence rather than filed by a publisher - so it keeps
   its words and does not shrink to a glyph. The reader is still never told
   they are about to see "a quote", a word that in a procurement tool means a
   price.

   Drawn as a chip because inline, undecorated and underlined it read as a
   stray link in the middle of a fact. The chevron is the same "there is more
   here" mark the saved card's own drawer uses, and it turns over when the
   panel is up. */
.result-deadline-source > summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: white;
    cursor: pointer;
    list-style: none;
    line-height: 1.5;
}
.result-deadline-source > summary::-webkit-details-marker { display: none; }
.result-deadline-source > summary svg { flex: 0 0 auto; width: 12px; height: 12px; }
.result-deadline-source[open] > summary svg { transform: rotate(180deg); }
.result-deadline-source > summary:hover { border-color: var(--ink-4); color: var(--ink); }
.result-deadline-source > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.result-deadline-source[open] > summary { border-color: var(--brand); background: var(--brand-wash); color: var(--brand-dark); }

/* Same surface as every other panel that floats off a control in this
   product: one hairline and one cast, never a third treatment. `.result` is
   overflow: visible, so this escapes the card rather than being clipped by
   it. */
.result-deadline-source .pop-panel {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    z-index: 35;
    width: max-content;
    max-width: 430px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    box-shadow: 0 8px 30px #20345626;
}

/* The arrow, so the panel is plainly about the chip it came out of and not
   about whatever row it is covering. One rotated square with two of its four
   borders drawn, which is the only way to get a pointed tip that keeps the
   panel's own hairline. */
.result-deadline-source .pop-panel::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 18px;
    width: 10px;
    height: 10px;
    background: white;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    transform: rotate(45deg);
}

/* A rule and italics, no tint and no second box.

   The buyer's sentence is supporting text for the date it explains, not a
   notice: given a filled panel it outweighed the fact it exists to support.
   The rule takes the provenance colour, which is the only claim being made
   here. */
.result-deadline-source blockquote {
    margin: 0;
    padding: 1px 0 1px 11px;
    border-left: 2px solid var(--unverified-line);
    font-size: 13px;
    line-height: 1.6;
    font-style: italic;
    color: var(--ink-2);
    overflow-wrap: anywhere;
}
.result-deadline-source--buyer blockquote { border-left-color: var(--verified-line); }

/* Narrow: the card is nearly the whole window and a 430px panel hung off a
   chip has nowhere to go, so it stops floating and simply follows the trigger.
   The chip takes its own row again at this width for the same reason it used
   to have one everywhere: there is no second column to sit beside. */
@media (max-width: 620px) {
    .result-deadline-source { flex: 0 0 100%; align-self: flex-start; }
    .result-deadline-source .pop-panel {
        position: static;
        width: auto;
        max-width: none;
        margin-top: 9px;
        box-shadow: none;
    }
    .result-deadline-source .pop-panel::after { display: none; }
}
.menu-open { width: 32px; height: 34px; border-radius: 7px; background: white; }
.menu-panel { border-radius: 10px; z-index: 35; box-shadow: 0 8px 30px #20345626; }
.menu-item { font-size: 13px; }
.tab-note { font-size: 13px; margin: 16px 0 0; color: var(--ink-3); }
.empty { padding: 54px 24px; border: 0; border-radius: 16px; background: white; box-shadow: var(--edge); }
.empty h2 { font-size: 21px; }
.empty p { color: var(--ink-3); font-size: 14px; max-width: 550px; margin-left: auto; margin-right: auto; }

/* Tender details: one reading sheet, one action rail. */
.crumbs { font-size: 13px; margin-bottom: 22px; color: var(--ink-3); }
.crumbs a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--ink-3); }
.crumbs svg { width: 15px; height: 15px; }
.detail-layout { grid-template-columns: minmax(0, 1fr) 292px; gap: 26px; align-items: start; }
.detail-main { min-width: 0; }
.tender-detail .detail-main { background: white; border-radius: 18px; box-shadow: var(--edge), var(--surface-shadow); padding: 32px; }
.detail-hero { padding: 0 0 28px; margin: 0; }
.detail-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-hero .lead-kind { font-family: var(--body); font-size: 12px; letter-spacing: 1px; font-weight: var(--w-med); padding: 0; background: transparent; color: #99610b; margin: 0; }
.detail-hero .lead-kind--good { color: #16673c; }
.detail-hero h1 { font-size: 28px; font-weight: var(--w-bold); line-height: 1.4; letter-spacing: -.8px; margin: 13px 0 0; text-wrap: pretty; overflow-wrap: anywhere; }
.hero-facts { margin-top: 17px; gap: 18px; font-size: 13px; color: var(--ink-3); }
.hero-fact { gap: 8px; }
.hero-fact svg { width: 16px; height: 16px; color: #4f6caa; }
.hero-fact strong { font-weight: var(--w-med); color: var(--ink-2); }
.tender-detail .detail-main > .panel { border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; margin: 0; background: transparent; }
.tender-detail .detail-main > .panel > .panel-body { padding: 26px 0; }
.section-symbol { display: inline-flex; color: var(--brand); }
.section-symbol svg { width: 18px; height: 18px; }
.lead-summary { font-size: 15px; line-height: 1.8; color: var(--ink-2); max-width: none; }
.tender-facts { background: var(--paper-2); border: 0; border-radius: 10px; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 26px; }
.tender-fact { padding: 17px 20px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tender-fact + .tender-fact { border-left: 1px solid var(--hairline); }
.tender-fact-label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); }
.tender-fact-label svg { width: 14px; height: 14px; }
.tender-fact strong { font-size: 14px; font-weight: var(--w-med); color: var(--ink); overflow-wrap: anywhere; }
.deadline-quotation { font-size: 15px; font-weight: var(--w-med); line-height: 1.7; margin: 0; color: var(--ink-2); padding-left: 14px; border-left: 2px solid #afc0f3; overflow-wrap: anywhere; }
.evidence-caption { color: var(--ink-3); font-size: 12px; margin: 12px 0 0 16px; }
.evidence-source-link { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0 16px; font-size: 12px; text-decoration: none; font-weight: var(--w-med); }
.evidence-source-link svg { width: 13px; height: 13px; }
.verification-note { background: #fff8ea; color: #88540a; border: 0; border-radius: 8px; padding: 12px 14px; margin-bottom: 26px; font-size: 12px; display: flex; align-items: flex-start; gap: 8px; }
.verification-note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.reason-list { gap: 8px; }
.reason-item { padding: 6px 10px; background: #eef3ff; border: 0; border-radius: 6px; color: #244eaf; font-size: 13px; font-weight: var(--w-med); }
.reason-item svg { width: 13px; height: 13px; }
.rail { top: 24px; }
.tender-rail { background: white; border-radius: 16px; box-shadow: var(--edge), var(--surface-shadow); padding: 0 22px; }
.tender-rail > .panel { border: 0; border-radius: 0; box-shadow: none; background: transparent; margin: 0; }
.tender-rail > .panel + .panel { border-top: 1px solid var(--line); }
.rail .panel-body { padding: 24px 0; }
.rail-panel-title { font-size: 15px; margin-bottom: 16px; line-height: 1.5; }
.rail-description { margin: 0 0 16px; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.action-source { display: block; text-align: center; font-size: 12px; color: var(--ink-3); margin: 9px 0 0; overflow-wrap: anywhere; }
.tender-rail .btn { font-size: 12px; }
.tender-rail .btn svg { width: 15px; height: 15px; }
.fit-panel .rail-panel-title { font-size: 13px; font-weight: var(--w-med); margin-bottom: 18px; color: var(--ink-3); }
.vring-dial { width: 60px; height: 60px; }
.vring--possible .vring-fill { stroke: #7c5cf0; }
.vring--possible .vring-label { color: #5b3fbb; }
.vring-label { letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: var(--w-semi); }
.vring-hint { font-size: 12px; color: var(--ink-3); }
.fit-profile-link { display: flex; align-items: center; justify-content: space-between; color: var(--brand); font-size: 12px; text-decoration: none; padding-top: 16px; }
.fit-profile-link svg { width: 14px; height: 14px; }
.review-state { margin-left: auto; font-size: 12px; font-weight: var(--w-med); background: var(--paper-2); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--hairline); padding: 3px 8px; border-radius: 6px; }
.review-state.is-reviewed { background: var(--brand-wash); color: #234dc9; box-shadow: inset 0 0 0 1px var(--brand-wash-2); }
.review-panel .panel-title { font-size: 14px; }
.rail-exit { border-top: 1px solid var(--line); padding: 16px 0 22px; }
.rail-exit form { margin: 0; }
.rail-exit .btn-ghost { width: 100%; justify-content: center; }
.saved-indicator { color: var(--brand-dark); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.saved-indicator svg { width: 13px; height: 13px; }
.source-details > summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: center; padding: 24px 0 0; font-weight: var(--w-med); font-size: 14px; }
.source-details > summary::-webkit-details-marker { display: none; }
.source-details > summary:hover { color: var(--brand); }
.source-details > summary > span { font-size: 12px; font-weight: var(--w-reg); color: var(--ink-3); margin-left: auto; }
.source-details > summary > svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; transition: transform .2s ease; }
.source-details[open] > summary > svg { transform: rotate(180deg); }

/* Open and close as a movement rather than a jump.
   `::details-content` is the only way to transition a <details> without
   script, and script is not on offer here: every drawer in this interface
   works with scripting off. `interpolate-size` is what lets a height animate
   to `auto`; it is an inherited property, so it is set on the panel and
   reaches nothing outside it. A browser that has neither yet opens the panel
   the way it always did, which is the whole fallback. */
.source-details,
.saved-context { interpolate-size: allow-keywords; }
.source-details::details-content,
.saved-context::details-content {
    block-size: 0;
    overflow: hidden;
    opacity: 0;
    transition: content-visibility .26s allow-discrete, block-size .26s ease, opacity .18s ease;
}
.source-details[open]::details-content,
.saved-context[open]::details-content { block-size: auto; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .source-details::details-content,
    .saved-context::details-content,
    .source-details > summary > svg,
    .saved-context > summary svg { transition: none; }
}
.srcgrid { gap: 22px; }
.srcrow, .srcnote, .srchead { font-size: 13px; }
.bid-est-range { font-size: 30px; color: var(--ink); letter-spacing: -.8px; font-weight: var(--w-semi); }
.bid-est-basis, .assume-list { font-size: 13px; color: var(--ink-2); }
.assume { background: var(--paper-2); padding: 16px 18px; border: 0; border-radius: 10px; }
.assume-title { font-size: 12px; color: var(--ink-3); }
.statgrid { gap: 18px; margin-bottom: 32px; }
.stile { border-radius: 16px; padding: 24px; }
.stile-num { font-size: 36px; letter-spacing: -1px; }
.stile-top, .stile-foot { font-size: 13px; color: var(--ink-3); }
.home-section-bar h2 { font-size: 20px; }
.home-section-link { font-size: 13px; }
.flow-step h3 { font-size: 15px; }
.flow-step p { font-size: 13px; color: var(--ink-3); }
.card-head h2 { font-size: 18px; }
.card-head p, .pf-empty, .footnote { font-size: 13px; color: var(--ink-3); }
.listbar, .savedbar { font-size: 13px; }
.filters-panel { border-radius: 16px 0 0 16px; }
.refine-group-label, .refine-note { font-size: 13px; }

/* Existing compact layouts retained; desktop is the focus of this pass. */
@media (max-width: 1200px) {
    :root { --rail: 210px; }
    .wrap { padding: 28px; }
    .workspace-bar { padding: 0 28px; }
    .detail-layout { grid-template-columns: minmax(0, 1fr) 265px; gap: 20px; }
    .result-foot { flex-wrap: wrap; }
    .result-actions { margin-left: 0; }
    .results-head { align-items: flex-start; }
    .results-actions { flex-direction: column; align-items: stretch; }
    .results-actions .btn { width: 100%; }
    .detail-hero h1 { font-size: 24px; }
    .source-details > summary > span { display: none; }
    .source-details > summary > svg { margin-left: auto; }
}
@media (max-width: 1000px) and (min-width: 761px) {
    .detail-layout { grid-template-columns: minmax(0, 1fr); }
    .tender-rail { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .tender-rail .section { margin: 0; }
    .rail-exit { grid-column: 1 / -1; }
    .result-actions { margin-left: auto; }
}
/* No rail to give back below this: it is a narrow column, then a drawer. */
@media (max-width: 900px) {
    .rail-toggle { display: none; }
}
@media (max-width: 900px) and (min-width: 761px) {
    .shell { display: flex; }
    .side { position: sticky; top: 0; height: 100vh; flex-direction: column; align-items: stretch; padding: 25px 10px; flex-basis: 190px; overflow-y: auto; }
    .side-brand { margin: 0 0 32px; padding: 0 10px; }
    .side-nav { display: flex; flex-direction: column; }
    .side-link span, .side-foot, .side-who, .side-chevron { display: initial; }
    .side-foot { margin-top: auto; }
    .side-link { width: 100%; padding: 12px; }
    .side-who { display: flex; }
    .side-help { display: flex; }
    .side-nav .side-link:nth-child(5) { margin-top: 20px; }
    .workspace-date { display: none; }
}
@media (max-width: 760px) {
    .shell { display: block; }
    .side { display: none; }
    .workspace-bar { height: 60px; padding: 0 20px; gap: 10px; }
    .workspace-location { gap: 8px; font-size: 12px; }
    .workspace-location > span:nth-child(2), .workspace-divider, .workspace-date { display: none; }
    .mobile-nav-toggle { display: inline-block; background: white; border: 1px solid var(--hairline); color: var(--ink-2); border-radius: 6px; padding: 7px 12px; font-size: 12px; }
    .nav-open .side { position: fixed; display: flex; flex-direction: column; align-items: stretch; top: 60px; left: 0; bottom: 0; height: calc(100dvh - 60px); width: 240px; padding: 24px 16px; box-shadow: 20px 0 50px #111d3238; overflow: auto; }
    .nav-open .side-brand { margin: 0 0 24px; }
    .nav-open .side-nav { display: flex; flex-direction: column; }
    .nav-open .side-link { width: 100%; justify-content: flex-start; }
    .nav-open .side-link span, .nav-open .side-foot, .nav-open .side-chevron { display: initial; }
    .nav-open .side-foot { margin-top: auto; }
    .nav-open .side-who { display: flex; }
    .nav-open .side-help { display: flex; }
    .wrap { padding: 26px 20px 50px; }
    .results-head { flex-direction: column; gap: 18px; }
    .results-actions { flex-direction: row; width: 100%; }
    .results-actions > * { flex: 1; }
    .results-name, .page-head h1 { font-size: 27px; }
    .results-description { font-size: 13px; }
    .controls { display: flex; flex-wrap: wrap; gap: 10px; }
    .controls-search { flex: 1 0 100%; }
    .sortby { margin-left: auto; }
    .tabs { gap: 18px; }
    .result { padding: 16px; }
    .result-title { font-size: 18px; }
    .result-foot { margin: 12px 0 0; padding: 12px 0 0; flex-direction: column; align-items: stretch; gap: 12px; }
    .result-actions { margin: 0; justify-content: flex-end; }
    .result-services { flex-basis: auto; }
    .result-view { margin: 0; }
    .result-org { display: flex; flex-wrap: wrap; }
    .result-org .result-fact-icon { transform: none; }
    .result-facts { width: 100%; }
    .result-fact { flex-wrap: wrap; }
    .result-fact .deadline-raw { flex-basis: auto; }
    .result-top { gap: 5px; }
    .verdict { font-size: 12px; }
    .result-summary { font-size: 14px; -webkit-line-clamp: 3; line-clamp: 3; }
    .detail-layout { display: flex; flex-direction: column; gap: 8px; }
    .detail-main, .tender-rail { width: 100%; }
    .tender-rail { position: static; }
    .detail-hero h1 { font-size: 25px; }
    .hero-facts { gap: 10px; flex-wrap: wrap; }
    .panel-body, .rail .panel-body { padding: 20px; }
    .rail-exit { padding: 16px 20px 20px; }
    .panel-head-row .pill { font-size: 12px; }
    .lead-summary { font-size: 13px; }
    .deadline-quotation { font-size: 13px; }
    .tender-fact { padding: 16px 20px; }
    .tender-fact strong { font-size: 12px; }
    .source-details > summary { padding: 18px 20px; }
    .srcgrid { grid-template-columns: 1fr; }
    .srccol + .srccol { padding-left: 0; border-left: 0; }
    .statgrid, .statgrid--promise { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .stile { padding: 18px; }
    .bid-est-range { font-size: 26px; }
    .head-row { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 560px) {
    .result-metadata { flex-direction: column; gap: 8px; padding: 0; }
    .result-top .spacer { display: none; }
    .result-top { justify-content: space-between; gap: 8px; }
    .result .verdict { font-size: 12px; }
    .result-actions { padding-top: 14px; border-top: 1px solid var(--line); gap: 6px; }
    .result-actions .btn, .result-view { min-height: 44px; font-size: 12px; padding: 9px 10px; }
    .result-actions .icon-act, .result-actions .menu-open { min-height: 44px; min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   The rail, narrowed

   248px of every screen saying the same six things. Collapsed it keeps the
   icons and the account, so where you are and how to get elsewhere are both
   still on screen, and hands about 170px back to the page - which on a results
   list is a column, and on a tender read beside its source is the difference
   between two panes and one.

   ## Why nothing here disappears

   Not one label is `display: none` while the rail is moving. Every row keeps
   its words, clips them against its own edge and fades them, so the only thing
   that actually animates is one number: the rail's width. A row that removes
   its text reflows in a single frame, and a reflow in the middle of a
   transition is the jump the transition was there to avoid.

   That is also why the button is in the top bar rather than in the rail. In an
   80px rail the mark and a button beside it do not fit on one line, so the
   head would have to re-stack halfway through, which is the same jump one
   element higher up.

   Only above 900px. Below that the rail is already a row across the top or a
   drawer behind a button, and neither has a width to give back.

   `.nav-collapsed` sits on <html>, put there before the first paint by the
   script in the layout's head, so a narrowed rail is never drawn wide and then
   shut in the reader's face on every page load.
   -------------------------------------------------------------------------- */

.rail-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--ink-4);
    cursor: pointer;
    transition: background .14s ease, color .14s ease;
}
.rail-toggle:hover { background: var(--paper-2); color: var(--ink-2); }
.rail-toggle svg { width: 19px; height: 19px; }

/* The date stays at the far right; the location keeps its place beside the
   button rather than being spread away from it. */
.workspace-bar .workspace-location { margin-right: auto; }

/* The one thing that moves. Everything else in here is a fade or a nudge
   riding on the same curve, so the rail reads as a single object narrowing
   rather than as nine things rearranging at once. */
.side {
    /* Load-bearing, not tidying. A flex item's automatic minimum size is its
       content's min-content width, and it beats flex-basis: without this the
       rail refuses to go below the width of its longest label - which, once
       the labels are faded rather than removed, is the whole rail, invisible
       and still 248px wide. */
    min-width: 0;
    transition: flex-basis .3s cubic-bezier(.4, 0, .2, 1);
}

/* Each row is its own window onto its label: the words are clipped by the row
   they are in, so they need no ancestor to hide them and no width of their
   own to animate. */
.side-brand, .sidebar-create, .side-link, .side-user > summary { overflow: hidden; white-space: nowrap; }

/* Block-level, so the brand's box is the rail's width and the wordmark is
   clipped by it. As an inline-flex it was as wide as the word, and once the
   rail narrows under it with `overflow: visible` the word does not just spill:
   it lies across the top bar, on top of the button that reopens the rail, and
   swallows the click as a trip back to the home page. Which is what it did. */
.side-brand { display: flex; }

.sidebar-create, .side-link {
    transition: background .12s ease, color .12s ease, padding-left .3s cubic-bezier(.4, 0, .2, 1);
}
.side-user > summary { transition: background .12s ease, padding-left .3s cubic-bezier(.4, 0, .2, 1); }

/* Out faster than the rail closes and in slower than it opens, so the words
   are gone before the edge reaches them and only arrive once there is room. */
.brand-word, .sidebar-create-label, .sidebar-create-plus, .side-link span,
.side-who, .side-chevron, .side-link.is-here::after {
    transition: opacity .22s ease .06s;
}
.nav-caption { transition: opacity .12s ease, max-height .3s cubic-bezier(.4, 0, .2, 1), margin .3s cubic-bezier(.4, 0, .2, 1); }

@media (min-width: 901px) {
    /* 80px: an inner 44px, which is exactly the account avatar and comfortably
       an icon. The paddings below centre each row in that 44px. */
    .nav-collapsed { --rail: 80px; }

    .nav-collapsed .brand-word,
    .nav-collapsed .sidebar-create-label,
    .nav-collapsed .sidebar-create-plus,
    .nav-collapsed .side-link span,
    .nav-collapsed .side-who,
    .nav-collapsed .side-chevron { opacity: 0; transition-delay: 0s; transition-duration: .12s; }

    .nav-collapsed .side-brand { padding-left: 7px; }
    .nav-collapsed .sidebar-create, .nav-collapsed .side-link { padding-left: 13px; }
    .nav-collapsed .side-user > summary { padding-left: 5px; }

    /* The wash already says which one you are on, and a dot in a column of
       icons reads as a seventh icon. */
    .nav-collapsed .side-link.is-here::after { opacity: 0; }

    /* Two words each, and neither fits. What they were doing was separating
       the work from the workspace, and the space alone still does that. */
    .nav-collapsed .nav-caption { max-height: 0; margin-top: 0; margin-bottom: 0; opacity: 0; overflow: hidden; }
    .nav-collapsed .nav-caption--group { margin-top: 20px; }

    /* Sign out is two words on a 44px line, so the menu leaves the rail. The
       rail cannot be the thing that clips it: nothing in here is tall enough
       to need the scroll it gives up, and every label is clipped by its own
       row rather than by this. `min-width` above is what keeps this from
       widening the rail back to its content. */
    .nav-collapsed .side { overflow: visible; }
    .nav-collapsed .side-user { position: relative; }
    .nav-collapsed .side-menu {
        position: absolute;
        /* Clear of the rail, not straddling it: 100% is the account row,
           which stops one rail-padding short of the edge. */
        left: calc(100% + 28px);
        bottom: 0;
        z-index: 60;
        min-width: 165px;
        padding: 6px;
        border-radius: var(--radius);
        background: var(--paper);
        border: 1px solid var(--hairline);
        box-shadow: var(--surface-shadow);
    }
}

/* ---------------------------------------------------------------------------
   The toast.

   ## The colour is the action, and the palette is not free

   Green and amber are spoken for: green means traced to the buyer, amber
   means nobody has checked, and nothing else may borrow either. So a "success
   green" tick beside "Saved" is not available here whatever the library
   ships - it would put the reader's own click on the footing of a quotation
   off a county's PDF, which is the one reading this product cannot allow.

   What is left is enough to tell the three apart, and each one is already
   used for exactly this elsewhere:

     tick, blue   Saved. Blue is our own side of the conversation, and Save is
                  the plain button in the card's action row.
     cross, red   Dismissed. The Dismiss button beside Save is already drawn
                  in the alert tint, on the reasoning that the pair must not
                  be misread at a glance. The confirmation answers in the
                  colour of the button that was pressed.
     dot, grey    Undone, or still happening. Nothing was gained or lost, so
                  it claims no colour at all.

   Set once here rather than passed per message, so a fourth message cannot
   arrive carrying a fifth colour.
   --------------------------------------------------------------------------- */
.swal2-popup.swal2-toast {
    padding: 12px 14px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--surface-shadow);
}

.swal2-popup.swal2-toast .swal2-title {
    margin: 0;
    font-size: 13.5px;
    font-weight: var(--w-med);
    line-height: 1.45;
    color: var(--ink);
}

/* One rule per glyph. `!important` throughout because the library sets these
   at a specificity a single class cannot reach. */
.swal2-popup.swal2-toast .swal2-icon.swal2-success {
    border-color: var(--brand) !important;
    color: var(--brand) !important;
}

.swal2-popup.swal2-toast .swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: var(--brand) !important;
}

.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring {
    border-color: var(--brand) !important;
    background-color: transparent !important;
}

/* The library paints these white to hide the ring's ends. White on an
   off-white ground shows as a wedge, so they are cleared instead. */
.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-fix,
.swal2-popup.swal2-toast .swal2-icon.swal2-success [class^='swal2-success-circular-line'] {
    background-color: transparent !important;
}

.swal2-popup.swal2-toast .swal2-icon.swal2-error {
    border-color: var(--alert) !important;
    color: var(--alert) !important;
}

.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: var(--alert) !important;
}

/* Undone or in progress: out of colour, like every other thing in this
   interface that is making no claim. */
.swal2-popup.swal2-toast .swal2-icon.swal2-info {
    border-color: var(--ink-3) !important;
    color: var(--ink-3) !important;
}

/* The bar follows its glyph, or a red message counts itself down in blue. */
.swal2-popup.swal2-toast .swal2-timer-progress-bar { background: var(--brand); }
.swal2-popup.swal2-toast:has(.swal2-icon.swal2-error) .swal2-timer-progress-bar { background: var(--alert); }
.swal2-popup.swal2-toast:has(.swal2-icon.swal2-info) .swal2-timer-progress-bar { background: var(--ink-3); }

/* Clear of the workspace bar.

   That bar is 66px and sits in normal flow, so at the top of a page a toast
   pinned to the viewport corner would land on top of the location line and
   the date. Offset once, here, rather than moved per page: the toast is
   transient and a consistent "just under the header line" is what it should
   read as, scrolled or not. */
.swal2-container.swal2-top-end,
.swal2-container.swal2-top-right {
    padding-top: 78px;
    padding-right: 22px;
}

/* On a narrow screen the rail is a drawer and the bar is shorter, so the
   toast comes back up and keeps clear of both edges instead of stretching. */
@media (max-width: 760px) {
    .swal2-container.swal2-top-end,
    .swal2-container.swal2-top-right {
        padding-top: 14px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .swal2-popup.swal2-toast { width: 100%; }
}

/* How much RFP work is waiting, beside its rail entry. The word stays first. */
.side-link .rail-count { display: inline-flex; align-items: center; justify-content: center; align-self: center; flex: 0 0 auto; height: 20px; margin: 0 0 0 auto; padding: 0 6px; line-height: 1; transform: none; }
.side-link.is-here:has(.rail-count)::after { margin-left: 8px; }

/* Admin or Executive, on the account page. */
.user-type-form { display: flex; flex: 1 1 auto; align-items: center; gap: 8px; }
.user-access .user-type-form { flex: 1 1 auto; }
.user-type-form select { flex: 0 0 200px; width: 200px; height: 38px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background-color: var(--paper); font: inherit; font-size: var(--t-sm); color: var(--ink); }
@media (max-width: 760px) {
    .user-type-form { flex-wrap: wrap; }
    .user-type-form select { flex: 1 1 100%; width: 100%; }
}

.users-type-select { display: block; width: 100%; height: 47px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background-color: var(--paper); font: inherit; font-size: var(--t-base); color: var(--ink); }

/* Add user: the card takes the whole width of the page, past the shell's cap, and the
   four fields sit two to a row so none of them is squeezed. */
.wrap:has(.users-panel--add) { max-width: none; }
.users-panel--add .users-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; }
@media (max-width: 720px) {
    .users-panel--add .users-fields { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
