/* Shortlist Desk: layout on top of brand.css (the shared template). Colours and type come only from its tokens. */
textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], select {
  width: 100%; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px;
  padding: 9px 12px; color: var(--fg); min-height: 40px; transition: border-color 160ms var(--ease);
}
textarea:hover, input:hover, select:hover { border-color: var(--edge2); }
textarea:focus-visible, input:focus-visible, select:focus-visible { border-color: var(--teal); outline: 2px solid var(--teal-d); outline-offset: 0; }
textarea { resize: vertical; }

.demo-strip {
  position: sticky; top: 0; z-index: 70; display: flex; justify-content: center; padding: 7px 16px;
  font-size: 12.5px; letter-spacing: .01em; color: #29403f; text-align: center;
  background: repeating-linear-gradient(135deg, #f4faf9 0 14px, #dfeeed 14px 28px);
}
.site-head, main { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.site-head { padding-top: 20px; padding-bottom: 8px; }
.head-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.brand { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 7px; background: rgba(255, 255, 255, .06); color: var(--fg2);
}
.pill-amber { background: rgba(255, 176, 32, .13); color: var(--amber-t); }
h1 { font-size: 44px; font-weight: 300; letter-spacing: -.035em; margin: 0 0 6px; line-height: 1.1; }
.sub { color: var(--muted); margin: 0; font-size: 15px; max-width: 70ch; }
.desk-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 6px; }
.desk-nav a {
  min-height: 34px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 999px; font-size: 13px;
  color: var(--fg2); text-decoration: none; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--edge);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.desk-nav a:hover { background: var(--teal-d); color: #fff; }
main { padding-bottom: 24px; display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
main > section { padding: 24px 26px; scroll-margin-top: 110px; }
h2 { font-size: 24px; font-weight: 300; letter-spacing: -.02em; color: var(--fg); margin: 0 0 16px; }
h3.subhead { font-size: 14px; font-weight: 600; color: var(--fg); margin: 0 0 12px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
button.note { border: 0; background: none; padding: 0; color: var(--amber-t); font-size: 12.5px; text-align: left; cursor: default; }

.ledger { display: flex; flex-direction: column; }
.row { border-top: 1px solid var(--edge); padding: 14px 0; }
.row:first-child { border-top: 0; }
.row-main { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; }
.row-text { flex: 1 1 auto; min-width: 0; }
.row-title { font-weight: 500; }
.row-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.mono { font-variant-numeric: tabular-nums; }

.alert { color: var(--red-t); font-size: 13px; margin: 12px 0 0; }
.tiny { color: var(--dim); font-size: 12.5px; margin: 8px 0 0; }
.empty { color: var(--dim); font-size: 13px; padding: 8px 0; }

/* marks */
.mark { display: inline-flex; align-items: center; gap: 8px; }
.go-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); display: inline-block; }
.no-diamond { width: 9px; height: 9px; background: var(--red-t); transform: rotate(45deg); display: inline-block; }
.unknown-ring { width: 11px; height: 11px; border: 2px solid var(--amber-t); border-radius: 50%; display: inline-block; }

/* assessment */
.assess { padding: 16px 0 4px; border-top: 1px solid var(--edge); }
.verdict-line { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 400; letter-spacing: -0.02em; }
.rank-line { color: var(--fg); font-size: 13px; margin-top: 6px; }
.rank-basis { color: var(--dim); font-size: 12.5px; margin-top: 2px; }
.block { margin-top: 16px; }
.block h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.reason { display: flex; gap: 10px; padding: 4px 0; }
.reason-dir { flex: 0 0 auto; width: 12px; color: var(--muted); }
.reason-dir.for { color: var(--teal2); }
.reason-dir.against { color: var(--red-t); }
.quote { border-left: 2px solid var(--edge2); margin: 6px 0 4px 22px; padding: 2px 0 2px 12px; color: var(--muted); font-size: 13px; }
.quote-field { color: var(--dim); font-size: 12.5px; margin-top: 4px; }
.hc { padding: 4px 0; }
.hc-status.pass { color: var(--teal2); }
.hc-status.fail { color: var(--red-t); }
.hc-status.unknown { color: var(--amber-t); }
.hc-note { color: var(--dim); font-size: 12.5px; margin-top: 2px; }
.blind-line { color: var(--amber-t); font-size: 12.5px; margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.fade-in { animation: fade 180ms var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } }

/* coverage */
.cov-line { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.cov-list { margin: 10px 0 0 21px; padding: 0; list-style: none; }
.cov-list li { padding: 3px 0; color: var(--muted); font-size: 13px; }
.cov-list .name { color: var(--fg); }
.cov-state { color: var(--amber-t); }

/* figures */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--edge); border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.figure { background: rgba(255, 255, 255, .03); padding: 14px; }
.figure-label { font-size: 12.5px; color: var(--dim); }
.figure-value { font-size: 30px; font-weight: 300; letter-spacing: -0.02em; margin-top: 4px; }

/* refs / voice */
.voice-box { background: rgba(255, 255, 255, .03); border: 1px solid var(--edge); border-radius: 16px; padding: 16px; margin-bottom: 20px; }
.voice-box label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; align-items: center; }
.ref-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.tag { display: inline-block; border: 1px solid var(--edge2); border-radius: 6px; padding: 0 6px; font-size: 12.5px; color: var(--dim); margin-left: 6px; vertical-align: 1px; }
.ref-client { color: var(--dim); font-size: 12.5px; margin-top: 2px; }

/* ledger entries */
.ledger-entry { border-top: 1px solid var(--edge); padding: 14px 0; }
.ledger-entry:first-child { border-top: 0; }
.led-decided { font-size: 13px; color: var(--muted); }
.outcome-go { color: var(--teal2); }
.outcome-no { color: var(--red-t); }
.outcome-unknown { color: var(--amber-t); }
.outcome-form { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.outcome-form label { font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 4px; }
#record-export { display: inline-flex; align-items: center; min-height: 32px; }
.debrief { margin-top: 12px; }
.report-h { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.debrief h4 { font-size: 12.5px; color: var(--muted); margin: 0 0 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.mini-table th, .mini-table td { text-align: left; padding: 4px 8px 4px 0; border-top: 1px solid var(--edge); vertical-align: top; }
.mini-table th { color: var(--dim); font-weight: 500; width: 40%; }


@media (max-width: 780px) {
  h1 { font-size: 34px; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .outcome-form { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-head, main { padding-left: 16px; padding-right: 16px; }
  main > section { padding: 18px 16px; }
  h1 { font-size: 30px; }
  .figures { grid-template-columns: 1fr; }
  .row-main { flex-direction: column; gap: 10px; }
  .verdict-line { font-size: 20px; }
}

/* second wave: profile, buyer card, application draft, pipeline */
.draft { margin: 12px 0 0; padding: 14px 16px; background: rgba(0, 0, 0, .3); border: 1px solid var(--edge2); border-radius: 12px;
  font: 13px/1.55 var(--mono); color: var(--fg); white-space: pre-wrap; overflow-wrap: anywhere; }
.draft:focus-visible { outline: 2px solid var(--teal2); outline-offset: 3px; }
.table-scroll { overflow-x: auto; }
.awards th, .awards td { text-align: left; padding: 6px 14px 6px 0; font-size: 13.5px; vertical-align: top; }
.months { text-align: right; min-width: 72px; }
.months strong { display: block; font-size: 30px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.months span { font-size: 12.5px; color: var(--dim); }
.voice-box select { display: block; width: 100%; max-width: 360px; min-height: 40px; margin: 4px 0 12px; padding: 0 10px;
  background: rgba(0, 0, 0, .35); color: var(--fg); border: 1px solid var(--edge2); border-radius: 12px; font: inherit; }
.voice-box select:focus-visible { outline: 2px solid var(--teal2); outline-offset: 3px; }
#profile-view { margin-bottom: 18px; }

/* Server dictation (voice-audio.js): the extra record buttons appear only when the server can transcribe. */
body[data-dictation] button[data-dictate][hidden] { display: inline-flex; }

/* live data: the source line above the notices, the prospects table (M1/M2) */
.market-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--fg2);
  padding: 10px 14px; margin: -4px 0 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--edge); }
.market-line:empty { display: none; }
.market-line[data-mode="stale"] { background: rgba(255, 176, 32, .08); }
.market-line > span:last-child { flex: 1 1 180px; min-width: 0; }
.market-line .go-dot, .market-line .unknown-ring { flex: none; }
.market-line .chip { white-space: normal; max-width: 100%; }
.market-stale { color: var(--amber-t); }
.market-note, .dim { color: var(--dim); }
.crit-docs { color: var(--amber-t); }
.ext-link { display: inline-flex; align-items: center; min-height: 32px; }
.prospects-intro { margin: -6px 0 14px; font-size: 13.5px; }
.prospect-filters { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 13.5px; color: var(--fg2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); margin: 0; }
.prospects th { width: auto; white-space: nowrap; }
.prospects td { padding: 8px 12px 8px 0; }
.prospects .mono { white-space: nowrap; }
.ev-links { display: inline-flex; flex-wrap: wrap; gap: 0 10px; }
.m2-note summary { list-style: none; cursor: pointer; display: inline-flex; min-height: 32px; align-items: center; }
.m2-note summary::-webkit-details-marker { display: none; }
.m2-note p { max-width: 36ch; margin: 4px 0 0; }
@media (max-width: 640px) {
  .prospects thead { display: none; }
  .prospects, .prospects tbody, .prospects tr, .prospects td { display: block; width: 100%; }
  .prospects tr { border-top: 1px solid var(--edge); padding: 10px 0; }
  .prospects td { border-top: 0; padding: 3px 0; display: flex; gap: 10px; align-items: baseline; }
  .prospects td::before { content: attr(data-label); flex: 0 0 88px; color: var(--dim); font-size: 12.5px; }
  .prospects td > * { min-width: 0; }
}

/* The agreement step before the first dictation (voice-audio.js). Colours and type come from brand.css. */
.agreement { border: 1px solid var(--amber-t); border-radius: 10px; padding: 14px 16px; margin-top: 14px; }
.agreement-text { white-space: pre-wrap; margin: 0 0 8px; }

/* Sign-in (app.js): the form under the firm name, and who is signed in beside the demo label. */
.head-right { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.signin { max-width: 420px; margin-top: 18px; }
.signin label { display: block; margin-top: 10px; }
.signin input { width: 100%; }
