/* ScopeClose. Midnight navy, electric cyan and white. */

@font-face {
  font-family: "Archivo";
  src: url(/static/fonts/archivo-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url(/static/fonts/archivo-latin-italic.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #0B1020;
  --navy-2: #182338;
  --navy-3: #40516B;
  --accent: #22D3EE;
  --accent-hover: #67E8F9;
  --accent-deep: #08778B;
  --accent-soft: #E6FAFD;
  --mark: #67E8F9;
  --mark-soft: #DFF8FC;
  --paper: #F5F7FA;
  --card: #ffffff;
  --desk: #E6EBF2;
  --ink: #0B1020;
  --body: #334155;
  --muted: #59687D;
  --rule: #D7DFEA;
  --rule-soft: #EDF2F7;
  --field: #A6B3C5;
  --lead: #178a4c;
  --lead-soft: #dff3e6;
  --alert: #c62828;
  --alert-soft: #fde8e6;
  --wait: #B8C3D2;
  --focus: #08778B;
  --radius: 6px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --content: 1240px;
}

html { color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 400 15px/1.5 var(--font);
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
h1, h2, h3, p, dl, ol, ul { margin: 0; }
h1 { font-size: 40px; line-height: 1; font-weight: 800; font-stretch: 80%; letter-spacing: -.005em; color: var(--navy); }
h2 { font-size: 20px; line-height: 1.2; font-weight: 700; font-stretch: 85%; color: var(--navy); }
h3 { font-size: 15px; font-weight: 700; color: var(--navy); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num, .scope-line strong, .row-scope strong, .figures dd {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-stretch: 85%;
  color: var(--navy);
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; }
.skip-link:focus { top: 8px; }
.count { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 6px; font-stretch: 100%; font-size: 14px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 3px; padding: 2px 7px; color: var(--navy-3); background: var(--rule-soft); vertical-align: 2px; }

/* Buttons and fields */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 16px;
  border: 1.5px solid var(--navy); border-radius: var(--radius);
  background: var(--card); color: var(--navy);
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.button:hover { background: var(--rule-soft); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.small { height: 32px; padding: 0 12px; font-size: 13px; }
.button.wide { width: 100%; }
.link-button { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; opacity: .8; }
.link-button:hover { opacity: 1; }
.icon-button { width: 32px; height: 32px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); color: var(--navy); font-size: 18px; line-height: 1; display: inline-grid; place-items: center; }
.icon-button:hover { border-color: var(--navy); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); }
label > input, label > select, label > textarea { margin-top: 5px; }
input, select, textarea {
  width: 100%; min-width: 0; min-height: 38px; padding: 7px 10px;
  border: 1px solid var(--field); border-radius: var(--radius);
  background: var(--card); font-size: 15px; font-weight: 400;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); }
textarea { resize: vertical; line-height: 1.5; }
input[type="file"] { border: 0; padding: 0; min-height: 0; font-size: 13px; background: none; }
form > label, form > .fields { margin-bottom: 14px; }
.fields { display: grid; gap: 14px; }
.row-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dropzone { display: block; padding: 16px; border: 2px dashed var(--field); border-radius: var(--radius); background: var(--paper); margin-bottom: 12px; }
.dropzone strong { display: block; font-weight: 700; color: var(--navy); }
.dropzone span { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.dropzone input { margin-top: 10px; }
.form-error { color: var(--alert); font-size: 14px; margin: 0 0 12px; }
.saved { font-size: 13px; color: var(--muted); }
details > summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 14px; padding: 6px 0; }
details[open] > summary { margin-bottom: 12px; }

/* Frame */
.topbar {
  display: flex; align-items: center; gap: 28px;
  height: 60px; padding: 0 24px;
  background: var(--navy); color: #fff;
}
.wordmark { display: inline-flex; align-items: center; flex-shrink: 0; width: 188px; min-height: 44px; text-decoration: none; }
.wordmark img { display: block; width: 100%; height: auto; }
.topnav { display: flex; gap: 4px; height: 100%; }
.topnav a { display: inline-flex; align-items: center; text-decoration: none; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .72); padding: 0 12px; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.topnav a[aria-current] { color: #fff; border-bottom-color: var(--accent); }
.topnav a:hover { color: #fff; }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.topbar-end .button { border-color: var(--accent); background: var(--accent); color: var(--navy); }
.topbar-end .button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.who { font-size: 14px; color: rgba(255, 255, 255, .85); }
.content { max-width: var(--content); margin: 0 auto; padding: 32px 24px 80px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 24px; }
.page-summary { color: var(--body); margin-top: 10px; max-width: 64ch; }
.page-summary a { color: var(--navy); font-weight: 600; }
.search { display: flex; gap: 8px; }
.search input { width: 260px; min-height: 34px; padding: 4px 10px; font-size: 14px; }
.back { display: inline-block; font-size: 13px; font-weight: 600; color: var(--navy-3); text-decoration: none; margin-bottom: 14px; }
.back::before { content: "← "; }
.back:hover { color: var(--accent-deep); }
.two-up { display: grid; gap: 24px; }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 24px; }
.panel h2 { margin-bottom: 4px; }
.panel .muted { margin-bottom: 16px; }
.import-result { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.empty { padding: 48px 0; max-width: 46ch; }
.empty p { color: var(--muted); margin: 8px 0 20px; }

/* The queue */
.queue-group { margin-bottom: 32px; }
.group-title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; font-stretch: 90%; text-transform: none; color: var(--navy); margin-bottom: 10px; }
.swatch { width: 14px; height: 14px; display: inline-block; border-radius: 3px; background: var(--navy); }
.swatch.stage-decide { background: var(--accent); }
.swatch.stage-ready { background: var(--navy-3); }
.swatch.stage-needs_pdfs { background: var(--wait); }
.swatch.stage-reading { background: var(--mark); }
.swatch.stage-failed { background: var(--alert); }
.swatch.stage-lead { background: var(--lead); }
.swatch.stage-passed { background: var(--wait); }
.queue { list-style: none; padding: 0; display: grid; gap: 10px; }
.row {
  position: relative; display: grid; gap: 8px 24px; padding: 18px 20px 18px 24px;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  text-decoration: none; box-shadow: 0 1px 0 rgba(11, 16, 32, .04);
}
.row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: var(--radius) 0 0 var(--radius); background: var(--navy-3); }
.stage-decide .row::before { background: var(--accent); }
.stage-needs_pdfs .row::before, .stage-passed .row::before { background: var(--wait); }
.stage-reading .row::before { background: var(--mark); }
.stage-failed .row::before { background: var(--alert); }
.stage-lead .row::before { background: var(--lead); }
.row:hover { border-color: var(--navy-3); box-shadow: 0 2px 10px rgba(11, 16, 32, .10); }
.row-when strong { display: block; font-size: 40px; line-height: .9; font-weight: 800; font-stretch: 75%; color: var(--navy); font-variant-numeric: tabular-nums; }
.row-when strong.word { font-size: 18px; line-height: 1.2; color: var(--muted); font-weight: 700; font-stretch: 85%; padding-top: 4px; }
.row-when span { display: block; font-size: 13px; font-weight: 600; color: var(--navy-3); margin-top: 4px; }
.row-when span.date { font-weight: 400; color: var(--muted); margin-top: 2px; }
.row-when.soon strong { color: var(--accent-deep); }
.row-main h3 { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.row-place { font-size: 13px; color: var(--muted); margin-top: 2px; }
.row-scope { margin-top: 8px; font-size: 16px; line-height: 1.4; color: var(--body); }
.row-scope strong { font-size: 19px; }
.row-stage { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.stage-label { color: var(--muted); font-weight: 500; }
.row-action { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; }
.stage-decide .row-action { background: var(--accent); color: var(--navy); }
.stage-lead .row-action { background: var(--lead); }
.stage-needs_pdfs .row-action, .stage-passed .row-action { background: var(--card); color: var(--navy); border: 1.5px solid var(--navy); }

/* The decision */
.project-head { margin-bottom: 20px; }
.project-head h1 { max-width: 44ch; font-size: 34px; line-height: 1.05; }
.project-meta { margin-top: 10px; color: var(--muted); }
.project-meta a { color: var(--navy); font-weight: 600; }
.decision { background: var(--card); border: 1px solid var(--rule); border-left: 8px solid var(--accent); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 32px; box-shadow: 0 2px 12px rgba(11, 16, 32, .06); }
.decision.stage-lead { border-left-color: var(--lead); }
.decision.stage-passed, .decision.stage-needs_pdfs { border-left-color: var(--wait); }
.decision.stage-reading { border-left-color: var(--mark); }
.decision.stage-failed { border-left-color: var(--alert); }
.scope-line { font-size: 26px; line-height: 1.2; font-weight: 700; font-stretch: 88%; color: var(--navy); max-width: 56ch; }
.scope-line strong { font-size: 30px; font-stretch: 80%; color: var(--accent-deep); }
.read-note { margin-top: 10px; color: var(--muted); font-size: 14px; max-width: 80ch; }
.decision > .button { margin-top: 14px; }
.run-progress { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; margin-bottom: 14px; padding: 8px 12px; background: var(--mark-soft); border-radius: 4px; color: var(--navy); }
.run-progress.failed { background: var(--alert-soft); color: var(--alert); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--navy); animation: pulse 1.4s ease-in-out infinite; }
.run-progress.failed .pulse { background: var(--alert); animation: none; }
@keyframes pulse { 50% { opacity: .2; } }
.verdict { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--rule); }
.verdict-choice { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.verdict-choice legend { float: left; font-size: 15px; font-weight: 700; color: var(--navy); margin-right: 10px; padding: 0; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border: 1.5px solid var(--navy); border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--navy); background: var(--card); }
.choice input:checked + span { background: var(--navy); color: #fff; }
.choice-useful input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.choice-unsure input:checked + span { background: var(--mark); color: var(--navy); border-color: var(--navy); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.verdict-fields { display: grid; gap: 12px; margin-bottom: 12px; }
.verdict-fields input, .verdict-fields select { min-height: 36px; font-size: 14px; }
.verdict-notes { margin-bottom: 14px; }
.verdict-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Scope and viewer */
.workspace { display: grid; gap: 32px; align-items: start; }
.block { margin-bottom: 28px; }
.block h2 { padding-bottom: 8px; border-bottom: 2px solid var(--navy); margin-bottom: 12px; }
.block > .muted { font-size: 14px; margin-bottom: 8px; }
.runs { list-style: none; padding: 0; }
.runs li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.run-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.run-head strong { font-weight: 700; color: var(--navy); font-size: 16px; }
.run-head .num { font-size: 20px; color: var(--accent-deep); }
dl div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 14px; padding: 2px 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.plain { list-style: none; padding: 0; }
.plain li { padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.plain .num { font-size: 17px; margin-right: 4px; }
.quantities { list-style: none; padding: 0; }
.quantities li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.quantities .num { white-space: nowrap; font-size: 17px; }
.evidence { display: block; width: 100%; text-align: left; padding: 12px 0 12px 14px; border: 0; border-bottom: 1px solid var(--rule); border-left: 4px solid transparent; background: none; }
.evidence:hover { border-left-color: var(--rule); }
.evidence.active { border-left-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft), transparent 60%); }
.evidence-where { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.evidence-where .matched { color: var(--lead); font-weight: 600; }
.evidence-where .unmatched { color: var(--alert); font-weight: 600; }
.evidence.active .evidence-where span:first-child { color: var(--navy); font-weight: 700; }
.evidence q { quotes: none; font-size: 15px; line-height: 1.55; color: var(--body); }
.evidence mark { background: var(--mark-soft); color: inherit; padding: 1px 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.evidence:hover mark, .evidence.active mark { background: var(--mark); }
.note { margin-top: 16px; padding: 12px 14px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); font-size: 14px; }
.note h3 { margin-bottom: 4px; }
.documents { list-style: none; padding: 0; margin-bottom: 14px; }
.documents li { border-bottom: 1px solid var(--rule); }
.documents a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; text-decoration: none; font-size: 14px; }
.documents a:hover strong { color: var(--accent-deep); }
.documents strong { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.documents span { color: var(--muted); white-space: nowrap; }
.contact { font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.viewer { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--desk); display: none; flex-direction: column; min-width: 0; overflow: hidden; }
.viewer.open { display: flex; position: fixed; inset: 8px; z-index: 30; box-shadow: 0 0 0 100vmax rgba(11, 16, 32, .6); }
.viewer-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--navy); color: #fff; }
.viewer-title { min-width: 0; flex: 1; }
.viewer-title strong { display: block; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-nav { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.viewer-nav span { white-space: nowrap; color: rgba(255, 255, 255, .8); }
.viewer-nav .icon-button { background: var(--navy-2); border-color: var(--navy-3); color: #fff; }
.viewer-nav .button { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.viewer-close { background: var(--navy-2); border-color: var(--navy-3); color: #fff; }
.page-field { display: flex; align-items: center; gap: 6px; font-weight: 500; color: rgba(255, 255, 255, .85); }
.page-field input { width: 56px; min-height: 32px; padding: 4px 6px; margin: 0; font-size: 14px; text-align: center; border-color: var(--navy-3); color: var(--navy); background: #fff; }
.viewer-status { padding: 6px 12px; font-size: 13px; font-weight: 600; background: var(--mark-soft); color: var(--navy); }
.viewer-body { overflow: auto; flex: 1; padding: 14px; overscroll-behavior: contain; }
.sheet { position: relative; width: 100%; background: #fff; box-shadow: 0 2px 8px rgba(11, 16, 32, .22); cursor: zoom-in; }
.viewer-body.zoomed .sheet { width: 200%; cursor: zoom-out; }
.sheet img { display: block; width: 100%; height: auto; }
.marks { position: absolute; inset: 0; pointer-events: none; }
.mark-box { position: absolute; background: var(--mark); opacity: .6; mix-blend-mode: multiply; border-radius: 2px; }
.viewer-empty { display: grid; place-items: center; min-height: 240px; padding: 24px; color: var(--muted); text-align: center; font-size: 14px; }
.viewer-empty p { max-width: 30ch; }

/* Lead */
.lead-line { background: var(--card); border: 1px solid var(--rule); border-left: 8px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 24px; }
.lead-form textarea { font-size: 14px; line-height: 1.6; }

/* Scoreboard */
.switch { display: flex; gap: 4px; margin-bottom: 24px; }
.switch a { text-decoration: none; font-size: 14px; font-weight: 700; color: var(--navy-3); padding: 8px 14px; border-radius: 999px; border: 1.5px solid transparent; }
.switch a[aria-current] { color: #fff; background: var(--navy); }
.switch a:not([aria-current]):hover { border-color: var(--navy-3); }
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.figures div { display: block; padding: 16px 18px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.figures dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.figures dd { font-size: 40px; line-height: 1; margin-top: 6px; }
.figures dd .num { font-size: 40px; }
.figures dd.pending { font-size: 14px; color: var(--muted); line-height: 1.5; font-weight: 500; font-stretch: 100%; padding-top: 6px; }
.needed { margin: 24px 0; padding: 18px 22px; background: var(--mark-soft); border-radius: var(--radius); max-width: 70ch; }
.needed h2 { margin-bottom: 8px; }
.needed ol { padding-left: 20px; font-size: 14px; }
.needed li { margin: 4px 0; }
.table-wrap { overflow-x: auto; margin-top: 24px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
th { text-align: left; font-size: 13px; font-weight: 700; color: var(--navy); padding: 10px 14px; background: var(--rule-soft); border-bottom: 1px solid var(--rule); }
td { padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
td.num { font-weight: 600; font-stretch: 100%; }
td a { color: var(--navy); font-weight: 600; text-decoration: none; }
td a:hover { color: var(--accent-deep); }

/* Login and toast */
.page-login { background: var(--navy); }
.login { position: relative; isolation: isolate; min-height: 100svh; display: grid; align-content: center; gap: 40px; padding: 56px 24px; color: #fff; background: var(--navy); }
.login-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.login-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.login-brand { width: 100%; max-width: 580px; margin-inline: auto; }
.brand-intro { width: 100%; }
.brand-logo { display: block; width: 100%; height: auto; animation: brand-enter .55s ease both; }
.brand-description { color: #B8C7DA; font-size: 16px; line-height: 1.6; max-width: 36ch; margin-top: 24px; animation: brand-enter .55s .12s ease both; }
.login-panel { width: 100%; max-width: 400px; margin-inline: auto; animation: brand-enter .55s .2s ease both; }
.login-panel h1 { color: #fff; font-size: 27px; line-height: 1.2; font-stretch: 100%; letter-spacing: -.035em; margin-bottom: 8px; }
.login-panel .muted { color: #AABAD0; margin-bottom: 28px; }
.login-panel label { color: #E8EFF8; font-size: 14px; }
.login-panel input { min-height: 50px; font-size: 16px; color: #fff; background: #101B2B; border-color: #53647D; color-scheme: dark; }
.login-panel input:focus { border-color: var(--accent); }
.login-panel :focus-visible { outline-color: var(--accent); }
.login-panel input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 100px #101B2B inset; caret-color: #fff; }
.login-panel form > label { margin-bottom: 18px; }
.login-panel .form-error { color: #FDA4AF; }
.login-panel .button { height: 50px; margin-top: 6px; }
@keyframes brand-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.toast { position: fixed; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; z-index: 50; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(11, 16, 32, .3); }
.toast.error { background: var(--alert); }

@media (min-width: 640px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .toast { left: auto; right: 24px; max-width: 420px; }
  .figures { grid-template-columns: repeat(4, 1fr); }
  .verdict-fields { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .row { grid-template-columns: 150px minmax(0, 1fr) 210px; align-items: start; }
  .row-stage { justify-content: flex-end; text-align: right; padding-top: 2px; }
  .two-up { grid-template-columns: 1fr 1fr; }
  .verdict-fields { grid-template-columns: repeat(5, 1fr); }
  .viewer-close { display: none; }
  .login { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); align-items: center; gap: clamp(48px, 7vw, 144px); padding: 80px clamp(48px, 7vw, 144px); }
  .login-brand { max-width: 720px; }
  .brand-description { font-size: 18px; max-width: 36ch; margin-top: 30px; margin-left: 24.33%; }
  .login-panel { max-width: 380px; }
}
@media (min-width: 1000px) {
  .workspace { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; }
  .workspace.no-viewer { grid-template-columns: minmax(0, 720px); }
  .viewer, .viewer.open { display: flex; position: sticky; top: 12px; inset: auto; height: calc(100vh - 24px); box-shadow: none; z-index: 1; }
}
@media (max-width: 639px) {
  .verdict-choice legend { float: none; width: 100%; margin: 0 0 6px; }
  h1 { font-size: 32px; }
}
@media (max-width: 899px) {
  .viewer-head { flex-wrap: wrap; }
  .viewer-title { flex: 1 1 calc(100% - 56px); order: -1; }
  .viewer-close { order: -1; }
  .viewer-nav { flex-wrap: wrap; width: 100%; }
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 8px 20px; }
  .topnav { order: 3; width: 100%; gap: 0; height: auto; }
  .topnav a { padding: 8px 10px 6px; }
  .topbar .wordmark { min-height: 44px; align-items: center; }
  .topbar-end { gap: 12px; flex-wrap: wrap; }
  .topbar-end .link-button { min-height: 44px; }
  .button.small, .icon-button { min-height: 44px; }
  .icon-button { min-width: 44px; }
  input, select, textarea, .verdict-fields input, .verdict-fields select { min-height: 44px; font-size: 16px; }
  .choice span { min-height: 44px; }
  .content { padding: 20px 16px 60px; }
  .search input { width: 100%; }
  .search { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* The flow, on the queue and on each project */
.product-flow, .flow { list-style: none; padding: 0; display: grid; gap: 10px; margin-bottom: 28px; }
.product-flow li, .flow li { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px 14px 50px; }
.product-flow li.current, .flow li.current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.flow li.done { background: var(--rule-soft); }
.flow-n { position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; font-stretch: 85%; color: #fff; background: var(--navy-3); }
.product-flow li.current .flow-n, .flow li.current .flow-n { background: var(--accent); color: var(--navy); }
.flow li.done .flow-n { background: var(--navy); }
.flow li.done .flow-n::before { content: "✓"; font-size: 13px; }
.flow li.done .flow-n { font-size: 0; }
.flow li.todo .flow-n { background: var(--card); color: var(--muted); border: 1.5px solid var(--wait); }
.product-flow strong, .flow strong { display: block; font-size: 15px; font-weight: 700; color: var(--navy); }
.flow-state, .flow-status { display: inline-block; font-size: 12px; font-weight: 700; margin: 4px 0 6px; padding: 1px 8px; border-radius: 999px; background: var(--rule-soft); color: var(--navy-3); }
.product-flow li.current .flow-state, .flow li.current .flow-status { background: var(--accent-soft); color: var(--accent-deep); }
.flow li.done .flow-status { background: var(--card); color: var(--navy); }
.product-flow p, .flow p { font-size: 13px; line-height: 1.45; color: var(--body); }
.fact { font-size: 13px; }
.fact-label { display: block; font-weight: 600; color: var(--navy); }
.fact-value { display: flex; align-items: center; min-height: 36px; margin-top: 5px; padding: 0 10px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--rule-soft); font-size: 14px; font-weight: 600; color: var(--navy); }
@media (min-width: 900px) {
  .product-flow { grid-template-columns: repeat(4, 1fr); }
  .flow { grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .flow li { padding: 12px 12px 12px 44px; }
  .flow-n { left: 10px; top: 12px; }
  .flow p { font-size: 12px; }
}
