/* Thero brand (Brand/Thero brand files, 5 Nov 2026): Slate, Dusk, Sand, Sandstone; Marcellus and IBM Plex Sans. */
@font-face { font-family: "Marcellus"; src: url("/static/fonts/Marcellus-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/static/fonts/IBMPlexSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/static/fonts/IBMPlexSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/static/fonts/IBMPlexSans-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
:root {
  --slate: #26334A; --dusk: #4A6077; --sand: #E9E2D3; --sandstone: #B79A68; --sandstone-light: #CBB28A;
  --bg: #F3EFE6; --panel: #ffffff; --ink: #1f2836; --muted: var(--dusk); --line: #E2DBCC;
  --accent: var(--slate); --accent-soft: #E7EAF0; --warn: #8a5a12; --warn-soft: #F8EEDB;
  --bad: #9b2c2c; --bad-soft: #fbe9e9; --good: #2f6b3a; --good-soft: #e5f2e7;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Calibri, Arial, sans-serif; font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header { background: var(--accent); color: #fff; padding: 0 20px; display: flex; align-items: center; gap: 24px; height: 52px; position: sticky; top: 0; z-index: 5; }
header .brand { font-family: "Marcellus", Georgia, serif; letter-spacing: .06em; font-size: 20px; color: var(--sand); display: flex; align-items: center; }
header .brand img { height: 36px; display: block; }
header .brand:hover { text-decoration: none; }
header nav { display: flex; gap: 4px; flex-wrap: wrap; }
header nav a { color: #D9D3C6; padding: 6px 10px; border-radius: 6px; border-bottom: 2px solid transparent; }
header nav a:hover { background: rgba(233,226,211,.10); color: var(--sand); text-decoration: none; }
header nav a.on { color: var(--sand); border-bottom-color: var(--sandstone-light); border-radius: 6px 6px 0 0; }
header .add { margin-left: auto; background: var(--sand); color: var(--slate); padding: 6px 12px; border-radius: 6px; font-weight: 600; }
header .add:hover { background: #fff; text-decoration: none; }
main { padding: 20px; max-width: 1400px; margin: 0 auto; }
h1 { font-family: "Marcellus", Georgia, serif; font-weight: 400; font-size: 27px; letter-spacing: .01em; color: var(--slate); margin: 4px 0 4px; }
h2 { font-size: 15px; font-weight: 600; color: var(--slate); margin: 0 0 10px; }
.sub { color: var(--muted); margin-bottom: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.side { grid-template-columns: 2fr 1fr; }
@media (max-width: 900px) { .g2, .g3, .g4, .side { grid-template-columns: 1fr; } }
.stat { font-size: 26px; font-weight: 700; } .stat-label { color: var(--muted); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--line); padding: 8px; }
td { border-bottom: 1px solid var(--line); padding: 8px; vertical-align: top; }
tr:hover td { background: #FAF8F3; }
.table-wrap { overflow-x: auto; }
form.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
textarea { width: 100%; min-height: 70px; }
input[type=text], input[type=email], input[type=search], input[type=datetime-local], input[type=date] { min-width: 180px; }
label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.field input, .field textarea, .field select { width: 100%; }
button, .btn { font: inherit; background: var(--accent); color: #fff; border: 0; padding: 8px 14px; border-radius: 6px; cursor: pointer; display: inline-block; }
button.ghost, .btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
button.small, .btn.small { padding: 4px 8px; font-size: 12px; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #eee; color: #333; white-space: nowrap; }
.s-not_started { background: #fde4c4; color: #7a4300; }
.s-outreach_sent { background: #dcdcdc; color: #333; }
.s-responded { background: #dff0d8; color: #2f6b3a; }
.s-client { background: #2f6b3a; color: #fff; }
.s-check_in_only { background: #e6ecf4; color: #1f3a5f; }
.s-speculative { background: #efe6f7; color: #5b3a7a; }
.s-needs_details { background: #f0f0f0; color: #777; }
.s-inactive { background: #f4f4f4; color: #999; }
.lock { background: var(--bad-soft); color: var(--bad); }
.warn { background: var(--warn-soft); color: var(--warn); border: 1px solid #f1d6a5; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.ok { background: var(--good-soft); color: var(--good); padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.muted { color: var(--muted); }
dl.kv { display: grid; grid-template-columns: 200px 1fr; gap: 6px 12px; margin: 0; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; white-space: pre-wrap; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 2px solid var(--line); padding: 0 0 12px 12px; position: relative; }
.timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: absolute; left: -5px; top: 4px; }
.timeline .when { color: var(--muted); font-size: 12px; }
.timeline .body { white-space: pre-wrap; color: #333; margin-top: 2px; }
.board { display: grid; grid-template-columns: repeat(9, minmax(170px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--sand); border-radius: 10px; padding: 8px; min-height: 120px; }
.col h3 { font-size: 12px; text-transform: uppercase; color: var(--muted); margin: 2px 4px 8px; letter-spacing: .03em; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 8px; }
.card .who { font-weight: 600; }
.card select, .card input { width: 100%; margin-top: 6px; font-size: 12px; padding: 4px 6px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.right { margin-left: auto; }
.bullets { margin: 0; padding-left: 18px; }
/* status chips added Oct 2026 */
.s-not_targeting { background: #f4f4f4; color: #888; }
.s-met_with { background: #b9e0bf; color: #1f4f28; }
.s-placed_with { background: #1f4f28; color: #fff; }
a.chip:hover { text-decoration: none; filter: brightness(.95); }
/* days since last touch */
.t-green { background: var(--good-soft); color: var(--good); }
.t-orange { background: var(--warn-soft); color: var(--warn); }
.t-red { background: var(--bad-soft); color: var(--bad); }
.t-none { background: #f0f0f0; color: #888; }
/* dense tables that mirror the spreadsheet */
table.dense td, table.dense th { padding: 5px 7px; font-size: 13px; }
td.clip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.matrix td { white-space: nowrap; }
table.matrix .sticky { position: sticky; left: 0; background: var(--panel); z-index: 1; }
details.group > summary { cursor: pointer; padding: 2px 0 8px; }
details.group { padding-top: 10px; }
dl.kv.narrow { grid-template-columns: 140px 1fr; }
.cvtext { white-space: pre-wrap; font-size: 12px; max-height: 360px; overflow: auto; background: #fafaf8; padding: 8px; border-radius: 6px; margin-top: 6px; }
.small { font-size: 12px; }
/* board: drag and drop */
.board { grid-template-columns: repeat(13, minmax(150px, 1fr)); }
.card { cursor: grab; }
.card.dragging { opacity: .4; }
.col.over { background: var(--accent-soft); outline: 2px dashed var(--accent); }
.col .n { color: var(--muted); font-weight: 400; }
.card input.note { border-color: transparent; background: #fafaf8; }
dialog { border: 1px solid var(--line); border-radius: 10px; padding: 18px; width: min(460px, 92vw); }
dialog::backdrop { background: rgba(20, 25, 35, .35); }
.score { display: inline-block; min-width: 34px; text-align: center; font-weight: 700; background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 2px 4px; }
/* dashboard */
.kpi .stat { margin-right: 6px; }
.meter { height: 8px; background: #efeee9; border-radius: 4px; overflow: hidden; margin: 8px 0 6px; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.meter span.done { background: var(--good); }
svg.chart { width: 100%; height: auto; }
svg.chart .bar { fill: var(--accent); }
svg.chart .axis { stroke: var(--line); }
svg.chart .lbl { font-size: 11px; fill: var(--muted); text-anchor: middle; }
svg.chart .val { font-size: 11px; fill: var(--ink); text-anchor: middle; }
.hbar { display: grid; grid-template-columns: 110px 1fr 30px; gap: 8px; align-items: center; margin: 5px 0; color: var(--ink); font-size: 13px; }
.hbar:hover { text-decoration: none; }
.hbar .hl { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .track { background: #efeee9; height: 10px; border-radius: 4px; overflow: hidden; }
.hbar .track span { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.hbar .hv { text-align: right; }
.board { display: flex; }
.board .col { flex: 0 0 180px; }
.board .col.empty { flex-basis: 96px; }
.board .col.empty h3 { white-space: normal; }
.chip.subf { background: var(--accent); color: #fff; margin-top: 4px; }
.chip.subs { background: var(--accent-soft); color: var(--accent); margin-top: 4px; }
.card label.ivl { margin: 6px 0 0; font-size: 11px; }
.card a.logsub { display: inline-block; margin-top: 6px; }
.col[data-stage="rejected"] { background: #f6ecec; }
.col[data-stage="hold"] { background: #f3f1ea; }
/* inline edits on the firms list */
select.qs { font-size: 12px; padding: 2px 6px; border-radius: 999px; border: 0; }
input.qt { font-size: 12px; padding: 3px 6px; min-width: 150px; width: 100%; border-color: transparent; background: transparent; }
input.qt:hover, input.qt:focus { border-color: var(--line); background: #fff; }
.qs.saved { outline: 2px solid var(--good); }
.snapshot { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.snapshot a.panel { color: var(--ink); }
.snapshot a.panel:hover { text-decoration: none; border-color: var(--accent); }
.grid.kpis { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .snapshot, .grid.kpis { grid-template-columns: 1fr 1fr; } }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 160px; border: 2px dashed var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; margin: 0; font-size: 14px; color: var(--ink); }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.leak { background: var(--bad-soft); color: var(--bad); border: 1px solid #e9b9b9; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
/* brand touches */
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sandstone-light); outline-offset: 1px; border-color: var(--sandstone); }
.stat { font-family: "Marcellus", Georgia, serif; font-weight: 400; font-size: 30px; color: var(--slate); }
.meter, .hbar .track { background: var(--sand); }
.col[data-stage="hold"] { background: #EFEADF; }
.score { font-weight: 600; }
.kpi .stat { font-family: inherit; font-weight: 600; font-size: 26px; }
/* calls (10 Nov 2026) */
header nav .badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; border-radius: 999px; background: var(--sandstone); color: var(--slate); font-size: 11px; font-weight: 600; text-align: center; }
.cs-needs_you, .cs-error { background: var(--warn-soft); color: var(--warn); }
.cs-matched, .cs-queued, .cs-reading { background: var(--accent-soft); color: var(--accent); }
.cs-read { background: var(--good-soft); color: var(--good); }
.cs-ignored { background: #f0f0f0; color: #888; }
/* morning review and sign-off (11 Nov 2026) */
.review .rv { border-top: 1px solid var(--line); padding: 10px 0; }
.review .rv:first-of-type { border-top: 0; }
.cs-profile { background: var(--warn-soft); color: var(--warn); }
/* roles grouped by firm (12 Nov 2026) */
tr.firmrow td { background: var(--sand); border-bottom: 0; }
.col[data-stage="to_submit"] { background: #E7EAF0; }
/* candidate tabs and attachments (16 Nov 2026) */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 14px; }
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--slate); border-bottom-color: var(--slate); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--slate); }
.attach { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.attach .ficon { display: inline-block; background: var(--bad); color: #fff; font-size: 10px; font-weight: 600; padding: 6px 5px; border-radius: 4px; }
.attach iframe.preview { width: 100%; height: 900px; border: 0; margin-top: 10px; background: var(--sand); border-radius: 6px; }
/* master search (18 Nov 2026) */
header .gsearch { margin-left: auto; position: relative; }
header .gsearch input { width: 260px; min-width: 0; background: rgba(233,226,211,.12); border: 1px solid rgba(233,226,211,.25); color: var(--sand); padding: 6px 10px; }
header .gsearch input::placeholder { color: #B8B3A7; }
header .gsearch input:focus { background: #fff; color: var(--ink); }
header .add { margin-left: 8px; }
.gres { position: absolute; top: 38px; right: 0; width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); overflow: hidden; z-index: 20; }
.gres a { display: flex; gap: 10px; padding: 8px 12px; color: var(--ink); border-bottom: 1px solid var(--line); align-items: baseline; }
.gres a.on, .gres a:hover { background: var(--accent-soft); text-decoration: none; }
.gres .gt { font-size: 11px; color: var(--muted); width: 62px; flex: none; text-transform: uppercase; letter-spacing: .03em; }
.gres .gd { display: block; font-size: 12px; color: var(--muted); }
.gres .gnone { padding: 10px 12px; color: var(--muted); }

/* Submission email: shown as Outlook will show it */
.mailpreview { background: #fff; color: #000; border: 1px solid #d6d2c8; border-radius: 6px; padding: 18px 22px;
  min-height: 420px; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 11pt; line-height: 1.3; outline: none; }
.mailpreview:focus { border-color: #26334A; }
.mailpreview ul { padding-left: 2.2em; }
.mailpreview li { margin: 0 0 2pt; }
.backlink { display: inline-block; font-size: 13px; color: var(--muted); text-decoration: none; margin: 0 0 4px; }
.backlink:hover { color: var(--ink, #26334A); text-decoration: underline; }

/* The working panel for long Claude jobs */
.busy { position: fixed; inset: 0; background: rgba(38, 51, 74, .45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.busy[hidden] { display: none; }
.busybox { background: #fff; border-radius: 12px; padding: 22px 26px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.busybox h2 { margin: 0 0 14px; }
.bar { height: 8px; background: var(--sand); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.bar > div { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .25s linear; }
.draftform { margin: 0 0 10px; padding: 12px 14px; }
.draftform .draftextra { margin-top: 10px; }
.draftform textarea { min-height: 38px; }
.panel.internal { background: #FBF7EC; border-color: #E9E2D3; }
.inote { font-size: 13px; margin: 0 0 6px; padding-left: 10px; border-left: 2px solid #E0D6BF; }
.inote-who { font-weight: 600; font-size: 13px; margin: 10px 0 4px; }

/* Candidate contact details, top of the page */
.contactbar { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 6px 0 12px; font-size: 14px; }
.contactbar .ci { display: inline-flex; align-items: center; gap: 6px; }
.contactbar .cl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.contactbar .copyit { font-size: 11px; padding: 2px 7px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; }
.contactbar .add { font-size: 13px; }

/* Live jobs: the Word doc, in the CRM */
.legend { font-size: 12px; color: var(--muted); display: flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; }
.lj { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; vertical-align: -1px; margin-right: 2px; }
.lj.play { background: #4EA72E; } .lj.waiting { background: #E97132; } .lj.action { background: #0070C0; }
.lj.hold { background: #A02B93; } .lj.out { background: #B4B2A9; }
.lj.dot { cursor: pointer; flex: 0 0 11px; } .lj.dot:disabled { cursor: default; }
.quicknotes label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.prop { display: block; font-size: 14px; margin: 4px 0; }
.livefirm { margin: 0 0 16px; }
.livefirm-head { font-family: Marcellus, serif; font-size: 19px; margin: 0 0 6px; }
.livefirm-head a { color: var(--ink, #26334A); }
.liverole { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; margin: 0 0 10px; }
.liverole-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.liverole-head .rt { font-weight: 600; }
.liverole-head .status { flex: 1; min-width: 180px; border: 0; border-bottom: 1px dashed transparent; background: transparent; font-size: 13px; color: var(--muted); padding: 2px 0; }
.liverole-head .status:hover, .liverole-head .status:focus { border-bottom-color: var(--line); outline: none; }
.liverole-head .counts { font-size: 12px; color: var(--muted); }
.liverow { display: grid; grid-template-columns: 14px 190px minmax(0, 1fr) 120px 150px; gap: 10px; align-items: center; padding: 3px 0; border-top: 1px solid #F1EEE6; }
.liverow .nm { font-weight: 600; font-size: 14px; }
.liverow.play .nm { color: #2E7A1B; } .liverow.waiting .nm { color: #B4541E; } .liverow.action .nm { color: #00589A; }
.liverow.hold .nm { color: #85237A; } .liverow.out .nm { color: #9A988F; font-weight: 400; }
.liverow.out .note, .liverow.out .stg { color: #9A988F; }
.liverow .note { border: 0; background: transparent; font-size: 13px; padding: 3px 4px; border-radius: 4px; min-width: 0; }
.liverow .note:hover, .liverow .note:focus { background: #F7F4EC; outline: none; }
.liverow .when { font-size: 12px; color: var(--muted); text-decoration: none; }
.liverow .when.set { color: #1F2A3A; font-weight: 600; } .liverow .when.past { color: var(--muted); font-weight: 400; }
.liverow .when.none { pointer-events: none; }
.liverow { grid-template-columns: 14px 190px minmax(0, 1fr) 150px 160px; }
.ivdlg { border: 1px solid var(--line, #DDD8CC); border-radius: 10px; padding: 18px 20px; max-width: 460px; }
.ivdlg h2 { margin: 0 0 4px; } .ivf { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 3px; margin: 0; }
.ivdlg::backdrop { background: rgba(38, 51, 74, .35); }
.card .iv { display: block; margin: 4px 0; text-decoration: none; }
.liverow .stg { font-size: 12px; padding: 2px 4px; min-width: 0; }
.liverow.hideout { display: none; }
.addrow { display: flex; gap: 6px; margin-top: 6px; }
.addrow input { flex: 1; font-size: 13px; padding: 4px 6px; }
@media (max-width: 760px) { .liverow { grid-template-columns: 14px minmax(0, 1fr) 110px; } .liverow .note, .liverow .when { grid-column: 2 / -1; } }
.quicknotes textarea::placeholder, .liverow .note::placeholder, .liverole-head .status::placeholder { color: #B4B2A9; }

/* BD today, on the Calls page */
.bdhead { margin: 0 0 10px; gap: 10px; }
.bditem .bdh { font-size: 15px; }
.bditem .bdwhy { color: #2E5E1B; margin: 2px 0 8px; }
.bdmail { background: #FBFAF6; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.bdline { font-size: 13px; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bdline .cl { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; width: 56px; }
.bdline .copyit, .bditem .copyit { font-size: 11px; padding: 2px 7px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; }
.bdbody { width: 100%; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 14px; margin-top: 6px; }
.bdclose { margin-top: 10px; gap: 6px; }
.bdclose input { font-size: 13px; }
.bdnotes { margin: 0 0 16px; } .bdnotes summary { cursor: pointer; }

/* Dashboard (24 Nov 2026) */
.dash-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 900px) { .dash-top { grid-template-columns: 1fr; } }
.need { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 0; border-top: 1px solid #F1EEE6; font-size: 13.5px; }
.need:first-of-type { border-top: 0; }
.need .btn { white-space: nowrap; }
.nd { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.nd.orange { background: #E97132; } .nd.blue { background: #0070C0; } .nd.red { background: #C0392B; } .nd.green { background: #4EA72E; }
.ivday { font-size: 12px; color: var(--muted); margin: 8px 0 2px; text-transform: uppercase; letter-spacing: .04em; }
.ivday:first-of-type { margin-top: 0; } .ivday.today { color: #2E7A1B; font-weight: 600; }
.ivline { font-size: 13.5px; padding: 2px 0; } .ivline.done { opacity: .55; }
.ivt { display: inline-block; min-width: 62px; font-weight: 600; }
.kpirow { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kpi2 { background: #fff; border: 1px solid #E6E1D5; border-radius: 10px; padding: 10px 12px; }
.kpi2 .stat { font-size: 26px; }
.rolebar { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr) minmax(0, 240px); gap: 12px; align-items: center; padding: 7px 0; border-top: 1px solid #F1EEE6; color: inherit; text-decoration: none; }
.rolebar:hover { background: #FBF9F4; }
.rb-name { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-track { display: flex; gap: 2px; height: 18px; border-radius: 4px; overflow: hidden; }
.rb-track span { color: #fff; font-size: 11px; font-weight: 600; text-align: center; line-height: 18px; min-width: 18px; }
.rb-next { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend .sq { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; }
@media (max-width: 760px) { .rolebar { grid-template-columns: 1fr; gap: 4px; } }

/* Today: market news and BD (24 Nov 2026) */
.newslist .news { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid #F1EEE6; font-size: 13.5px; }
.newslist .news:first-child { border-top: 0; }
.newslist .news .nd { margin-top: 6px; }
.nd.grey { background: #B4B2A9; }
.chip.t-blue { background: #E6F1FB; color: #0C447C; text-decoration: none; }
.bdsec { font-weight: 600; font-size: 13px; margin: 12px 0 4px; }
.bdperson { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; padding: 4px 0; border-top: 1px solid #F1EEE6; font-size: 13.5px; }
.bdperson .em { color: #1F2A3A; }
.bdpreview { margin: 6px 0 4px; max-height: none; }
@media (max-width: 760px) { .bdperson { grid-template-columns: 18px minmax(0, 1fr); } }

/* Live jobs: grip, stage after the name, X, simplify (24 Nov 2026) */
.liverow { grid-template-columns: 14px 14px 180px 165px 150px minmax(0, 1fr) 22px; }
.liverow .grip { cursor: grab; color: #C9C4B6; font-size: 11px; letter-spacing: -2px; user-select: none; }
.liverow .grip:hover { color: #6B6A63; }
.liverow.dragging { opacity: .4; }
.liverow .rm { border: 0; background: none; color: #B4B2A9; font-size: 17px; line-height: 1; padding: 0; cursor: pointer; }
.liverow .rm:hover { color: #C0392B; }
.liverole .liverow.extra { display: none; }
.liverole.expanded .liverow.extra { display: grid; }
.showextra { display: inline-block; margin: 4px 0 2px 28px; }
@media (max-width: 900px) { .liverow { grid-template-columns: 14px 14px minmax(0, 1fr) 140px 22px; } .liverow .when, .liverow .note { grid-column: 3 / -1; } }

.newslist .news { grid-template-columns: 10px minmax(0, 1fr) 28px; transition: opacity .3s; }
.newslist .news.gone { opacity: 0; }
.news .tick { display: flex; justify-content: center; padding-top: 2px; cursor: pointer; margin: 0; }
.news .tick input { width: 18px; height: 18px; cursor: pointer; accent-color: #4EA72E; }

/* Dashboard v2 (24 Nov 2026): today's interviews, seats at the table */
.ivcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ivcard { display: block; border: 1px solid #E6E1D5; border-left: 4px solid #4EA72E; border-radius: 10px; padding: 10px 12px; color: inherit; text-decoration: none; background: #fff; }
.ivcard:hover { border-color: #26334A; }
.ivcard.done { opacity: .5; }
.ivtime { font-size: 22px; font-weight: 600; color: #26334A; } .ivtime span { font-size: 12px; color: var(--muted); font-weight: 400; }
.ivname { font-weight: 600; margin: 2px 0; }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.rtable { display: block; background: #fff; border: 1px solid #E6E1D5; border-radius: 12px; padding: 12px 14px 14px; color: inherit; text-decoration: none; }
.rtable:hover { border-color: #26334A; }
.rt-head { display: flex; gap: 6px; align-items: baseline; font-size: 14px; margin-bottom: 10px; }
.rt-count { margin-left: auto; font-size: 12px; font-weight: 600; color: #B4541E; background: #FBEDE4; border-radius: 10px; padding: 1px 8px; white-space: nowrap; }
.rt-count.full { color: #2E7A1B; background: #EAF3DE; }
.seats { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-start; padding: 0 6px; }
.seat { width: 66px; text-align: center; }
.chair { width: 40px; height: 40px; margin: 0 auto; border-radius: 50%; background: #26334A; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.chair.iv { box-shadow: 0 0 0 3px #4EA72E; }
.seat.empty .chair { background: transparent; border: 2px dashed #C9C4B6; color: #B4B2A9; font-size: 20px; font-weight: 400; }
.sn { font-size: 11.5px; margin-top: 4px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat.empty .sn { color: #B4B2A9; }
.ss { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabletop { height: 10px; border-radius: 6px; background: #E9E2D3; margin-top: 8px; }

.liverole { scroll-margin-top: 90px; transition: box-shadow .4s; }
.liverole.flash { box-shadow: 0 0 0 3px #4EA72E; border-radius: 8px; }
.seat { width: 74px; } .sn { white-space: normal; overflow: visible; font-size: 11px; }
.ivtime i { font-style: normal; color: #C9C4B6; margin: 0 2px; }

/* Today's post (24 Nov 2026) */
.postbody { width: 100%; font-family: inherit; font-size: 14px; line-height: 1.5; padding: 10px 12px; border-radius: 8px; border: 1px solid #E6E1D5; box-sizing: border-box; }
.tag-green { background: #EAF3DE; color: #2E7A1B; } .tag-amber { background: #FBEDE4; color: #B4541E; } .tag-red { background: #F8E1DE; color: #A0261B; }
.ivtime { font-size: 17px; white-space: nowrap; }

.leadlist .news { grid-template-columns: 10px minmax(0, 1fr) auto; }
.leadlist .checkin { align-self: center; }

/* Live jobs, 25 Nov 2026: rough lines, colour picker, drag roles and clients */
.liverow.rough .nm { font-weight: 600; font-style: italic; }
.chip.notcrm { background: #F3EFE4; color: #8A7A55; font-style: normal; font-weight: 400; margin-left: 4px; }
.colourmenu { position: absolute; z-index: 20; background: #fff; border: 1px solid #E6E1D5; border-radius: 8px; box-shadow: 0 6px 20px rgba(38,51,74,.15); padding: 4px; display: flex; flex-direction: column; min-width: 180px; }
.colourmenu[hidden] { display: none; }
.colourmenu button { display: flex; align-items: center; gap: 8px; border: 0; background: none; text-align: left; padding: 6px 8px; font-size: 13px; color: #1F2A3A; cursor: pointer; border-radius: 6px; }
.colourmenu button:hover { background: #F7F4EC; }
.lj.auto { background: linear-gradient(90deg, #4EA72E 50%, #0070C0 50%); }
.liverow .dot { cursor: pointer; }
.livefirm-head .grip, .liverole-head .grip { cursor: grab; color: #C9C4B6; font-size: 11px; letter-spacing: -2px; margin-right: 6px; user-select: none; }
.livefirm-head .grip:hover, .liverole-head .grip:hover { color: #6B6A63; }
.livefirm.dragging, .liverole.dragging { opacity: .4; }
.addrow .addnote { max-width: 260px; }

/* Live jobs downloads, 25 Nov 2026 */
.liverow { grid-template-columns: 14px 14px 180px 150px 140px minmax(0, 1fr) 76px 86px 22px; }
.liverow .dl { font-size: 11.5px; text-decoration: none; white-space: nowrap; color: #26334A; border: 1px solid #E6E1D5; border-radius: 6px; padding: 1px 6px; text-align: center; }
.liverow .dl:hover { border-color: #26334A; background: #F7F4EC; }
.liverow .dl.alt { color: #8A7A55; }
.liverow .dl.none, .liverow span.dl:empty { border: 0; color: #C9C4B6; }
@media (max-width: 900px) { .liverow .dl { display: none; } }

.ivpair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.ivpair .panel { margin-bottom: 0; }
@media (max-width: 900px) { .ivpair { grid-template-columns: 1fr; } }
.ivcard.follow { border-left-color: #E97132; }

/* Role page: what we've learned (26 Nov 2026) */
.learned summary { cursor: pointer; }
.learned .lgroup { margin-top: 10px; }
.learned .lgroup .bullets { margin: 4px 0 0; }
form.inline { display: inline; }
button.link { background: none; border: 0; padding: 0 4px; cursor: pointer; color: inherit; min-height: 0; }

/* Sign-in and desks (26 Nov 2026) */
.loginpage { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 16px; }
.loginbox { max-width: 380px; width: 100%; text-align: center; padding: 32px 24px; }
header .who { display: flex; gap: 10px; align-items: center; margin-left: 10px; }
header .who select { min-width: 0; padding: 4px 6px; font-size: 13px; }
.deskbar { background: #efe6f6; color: #4b2a63; padding: 8px 16px; font-size: 14px; text-align: center; }
.steps { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.step.done { opacity: .65; }
.sheetplan { border-top: 1px solid var(--line, #e3ddd0); padding-top: 10px; margin-top: 10px; }
.maptable { margin-top: 6px; border-collapse: collapse; }
.maptable td, .maptable th { padding: 3px 10px 3px 0; text-align: left; font-size: 14px; }
.maptable select { min-width: 0; }
