/* outreach. A warm paper ground, ink for words and the main action, terracotta for
   what needs you, sage for good news. Labels in mono capitals; everything else in
   DM Sans. */
:root {
  --bg: #F6F4EE;
  --card: #FBFAF6;
  --paper: #EFEEE5;
  --side: #ECEAE2;
  --side-2: #E3E2D8;
  --side-ink: #262B25;
  --side-muted: #6D7268;
  --head: #262B25;
  --ink: #262B25;
  --ink2: #474C44;
  --muted: #6D7268;
  --faint: #A2A69A;
  --line: #DADCD2;
  --line2: #E5E5DC;
  --rule: #CBCDC2;
  --well: #E9E7DF;
  --accent: #BC4929;
  --accent-hover: #A64124;
  --accent-soft: #F5E2D9;
  --accent-ink: #A24229;
  --salmon: #F0B89E;
  --salmon-ink: #713A29;
  --good: #4E6B49;
  --good-soft: #E7EADA;
  --good-ink: #3F5139;
  --good-line: #C7CEB9;
  --warn: #8A6414;
  --warn-soft: #F3EAD3;
  --warn-ink: #6E4E0E;
  --bad: #A24229;
  --bad-soft: #F5E2D9;
  --bad-ink: #7E2F1C;
  --shadow: 38, 43, 37;
  --side-w: 224px;
  --display: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--text); font-optical-sizing: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--head); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
a { color: var(--head); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.hidden, [hidden] { display: none !important; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--head); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; text-decoration-thickness: 1px; font-weight: 500; }
.linkbtn:hover { text-decoration-color: var(--accent); }
/* A label in mono capitals: what a number or a section is */
.eyebrow, .mono { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
kbd { font: 10px/1 var(--mono); color: var(--muted); }

/* Shell: a light sidebar, a top bar with where you are, the page under it */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 28px 14px 22px; display: flex; flex-direction: column; gap: 4px; min-width: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.logo { display: grid; justify-items: start; gap: 2px; padding: 0 12px 24px; color: var(--head); text-decoration: none; align-self: flex-start; }
.logo b { font-family: var(--display); font-weight: 700; font-size: 29px; line-height: 1.1; letter-spacing: -.02em; }
.logo small { font: 9px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.logo i { width: 34px; height: 3px; background: var(--accent); margin-top: 22px; }
.ws-wrap { padding: 0 4px; }
.ws { width: 100%; height: 49px; border: 0; border-radius: 6px; background: var(--bg); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-size: 13px; font-weight: 500; color: var(--head); }
.ws:hover { background: var(--card); }
.ws .ic { color: var(--muted); }
.ws-wrap .menu { left: 4px; right: 4px; min-width: 0; }
.menu-h { padding: 8px 12px 6px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.side-label { font: 10px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 30px 13px 14px; }
.nav { display: grid; gap: 6px; }
.nv { display: flex; align-items: center; gap: 14px; height: 43px; padding: 0 13px; border-radius: 6px; color: var(--head); background: none; border: 0; text-align: left; width: 100%; font-weight: 500; font-size: 14px; }
.nv .ic { width: 20px; height: 20px; }
.nv:hover { background: var(--side-2); }
a.nv { text-decoration: none; }
.nv.on { background: var(--head); color: var(--bg); font-weight: 700; }
.nv .cnt { margin-left: auto; font: 12px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.nv.on .cnt { color: var(--salmon); }
/* Help and Settings sit at the foot, under the note. */
.nv.foot { height: 36px; gap: 13px; font-size: 13px; font-weight: 400; color: var(--muted); }
.nv.foot .ic { width: 18px; height: 18px; }
.nv.foot.on { background: var(--side-2); color: var(--head); font-weight: 500; }
.lbl { font-size: 12px; color: var(--muted); }
.search { width: 100%; height: 34px; border-radius: 5px; border: 1px solid var(--line); background: var(--card); padding: 0 12px; font-size: 13px; }
.search::placeholder { color: var(--muted); }
.agent { margin: auto 8px 22px; background: #E3E3D8; color: var(--head); border-radius: 6px; padding: 13px 14px 16px; display: grid; gap: 10px; }
.agent b { font-weight: 500; font-size: 14px; line-height: 19px; }
.agent p { margin: 0; font-size: 12px; line-height: 18px; color: var(--muted); }
.agent.off { background: var(--accent-soft); }
.agent.off b { color: var(--accent-ink); }
.maincol { display: flex; flex-direction: column; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 15; height: 76px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 40px; background: var(--bg); border-bottom: 1px solid var(--line); }
.crumb { display: flex; gap: 14px; align-items: center; min-width: 0; flex: 1; font-size: 13px; color: var(--muted); white-space: nowrap; }
.crumb a, .crumb button { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; }
.crumb a:hover, .crumb button:hover { color: var(--head); }
.crumb b { color: var(--head); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.find { position: relative; width: 220px; height: 38px; border: 1px solid var(--line); border-radius: 5px; display: flex; align-items: center; gap: 10px; padding: 0 11px; flex: none; background: var(--bg); }
.find:focus-within { border-color: var(--head); }
.find .ic { width: 17px; height: 17px; color: var(--muted); }
.find input { flex: 1; min-width: 0; border: 0; background: none; font-size: 12px; height: 100%; }
.find input:focus { outline: none; }
.find input::placeholder { color: var(--muted); }
.find input::-webkit-search-cancel-button { display: none; }
.find .ac-menu { top: calc(100% + 6px); left: 0; right: auto; width: 340px; }
.find .ac-option { display: grid; gap: 1px; }
.find .ac-option small { color: var(--muted); font-size: 12px; }
#top-new { width: 204px; justify-content: flex-start; padding: 0 16px; gap: 14px; }
#top-new .ic { width: 18px; height: 18px; }

/* Buttons: ink for the main action, beige for the rest, terracotta when it is the
   one thing waiting on you */
.btn { height: 38px; padding: 0 16px; border-radius: 5px; border: 1px solid transparent; background: var(--well); color: var(--head); font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn:hover:not(:disabled) { background: #E0DED5; }
a.btn { text-decoration: none; }
.btn.primary, .btn.dark { background: var(--head); border-color: var(--head); color: #fff; }
.btn.primary:hover:not(:disabled), .btn.dark:hover:not(:disabled) { background: #3A4038; border-color: #3A4038; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink2); }
.btn.ghost:hover:not(:disabled) { background: var(--well); }
.btn.line { background: var(--card); border-color: var(--line); }
.btn.danger { color: var(--bad); }
.btn.icon { width: 38px; padding: 0; }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn.sm.icon { width: 34px; height: 34px; }
.btn.xl { height: 44px; padding: 0 18px; font-size: 14px; }
.kbd { font: 11px/1 var(--mono); border-radius: 4px; padding: 3px 6px; background: var(--well); color: var(--ink2); }
.kbd.on-accent { background: rgba(255, 255, 255, .2); color: #fff; }
.seg { display: inline-flex; gap: 6px; }
.seg button { border: 0; background: var(--well); height: 38px; padding: 0 16px; border-radius: 5px; color: var(--muted); font-weight: 500; }
.seg button:hover { color: var(--head); }
.seg button.on { background: var(--head); color: #fff; }
.menu button.danger { color: var(--bad); }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 6px; display: grid; box-shadow: 0 12px 30px rgba(var(--shadow), .10); z-index: 20; }
.menu button { background: none; border: 0; text-align: left; padding: 9px 12px; border-radius: 4px; color: var(--ink); }
.menu button:hover { background: var(--bg); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
/* Help & shortcuts */
.keys { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px 16px; margin: 0; align-items: baseline; }
.keys dt { white-space: nowrap; }
.keys dd { margin: 0; color: var(--ink2); }
.keys kbd { display: inline-block; min-width: 22px; text-align: center; padding: 4px 6px; border-radius: 4px; background: var(--well); color: var(--head); font-size: 11px; }

/* Campaign header + stats */
.main { padding: 32px 40px 48px; min-width: 0; display: flex; flex-direction: column; gap: 24px; position: relative; flex: 1; }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; }
.top > div:first-child { min-width: 0; flex: 1 1 auto; }
.top .acts { flex: none; padding-top: 3px; }
@media (max-width: 1100px) { .top { flex-wrap: wrap; } }
.top h1 { font-size: 34px; line-height: 42px; }
.top .sub { color: var(--muted); margin-top: 8px; font-size: 14px; }
.acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sendline { margin-top: -6px; }
/* The summary line under a lookup's name */
.sumline { color: var(--muted); font-size: 13px; background: var(--side); border-radius: 6px; padding: 18px 20px; display: flex; gap: 10px 40px; align-items: center; flex-wrap: wrap; }
.sumline b { color: var(--head); font-weight: 500; }
.sumline > b:first-child { font-size: 17px; }
.sumline .sep { display: none; }
/* A toolbar row inside a page, and tabs with the line that says what they hold */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar .grow { flex: 1; }
.tabs-row { display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; }

/* Pipeline board */
.board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: start; }
.col { background: #ECEBE3; border-radius: 6px; padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; min-width: 0; min-height: 320px; }
.col.hot { background: #ECEBE3; }
.col-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px 4px; font-weight: 600; font-size: 14px; color: var(--head); }
.col-h span { color: var(--muted); font: 11px/1 var(--mono); font-variant-numeric: tabular-nums; }
.col-empty { color: var(--muted); font-size: 12px; padding: 6px; }
.card { background: var(--card); border-radius: 4px; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; max-width: 100%; overflow: hidden; border: 1px solid transparent; text-align: left; width: 100%; }
.card:hover, .card:focus-visible { border-color: var(--accent); }
.card[draggable="true"] { cursor: grab; }
.card.dragging { opacity: .45; cursor: grabbing; }
.col.drop-ok { outline: 1px dashed var(--accent); outline-offset: -4px; background: var(--accent-soft); }
.col.drop-no { outline: 2px dashed var(--line); outline-offset: -4px; }
.card .n { font-weight: 500; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .d { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.card .mn { min-width: 0; flex: 1 1 auto; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; line-height: 15px; padding: 3px 8px; border-radius: 4px; background: var(--well); color: var(--ink2); display: inline-flex; align-items: center; gap: 4px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag.warn { background: var(--warn-soft); color: var(--warn-ink); }
.tag.good { background: var(--good-soft); color: var(--good-ink); }
.tag.bad { background: var(--accent-soft); color: var(--accent-ink); }
.tag.new { background: var(--well); color: var(--ink2); }
.ring { --p: 0; --c: var(--faint); width: 38px; height: 38px; border-radius: 50%; flex: none; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); display: grid; place-items: center; }
.ring span { width: 32px; height: 32px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font: 11px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--head); }
.hint-row { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.board-foot { padding: 0 6px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); margin-right: 8px; vertical-align: middle; }
.dot.good { background: var(--good); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); }
.dot.neutral { background: var(--faint); }
.dot.faint { background: var(--faint); }
.dot.accent { background: var(--accent); }
.dot.ink { background: var(--head); }

/* Lead list */
.listwrap { display: grid; gap: 12px; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sel { height: 38px; border-radius: 5px; border: 0; background: var(--well); padding: 0 12px; font-size: 13px; font-weight: 500; color: var(--head); }
.filters .search { width: 260px; }
.bulk { display: flex; gap: 8px; align-items: center; background: var(--head); color: #fff; border-radius: 6px; padding: 6px 8px 6px 16px; font-size: 13px; }
.bulk .btn { background: transparent; color: #fff; border-color: transparent; font-weight: 400; }
.bulk .btn:hover:not(:disabled) { background: #3A4038; }
.bulk .btn.ghost { border-color: transparent; }
.tblwrap { background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font: 9px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding: 13px 14px; background: var(--card); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; max-width: 320px; color: var(--muted); font-size: 12px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover td { background: var(--bg); }
.tbl .chk { width: 36px; }
.tbl .n { font-weight: 500; font-size: 13px; color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.tbl .d { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.tbl .issue-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink2); }
.tbl .more { color: var(--faint); margin-left: 6px; }
.tbl .act { text-align: right; white-space: nowrap; }
.tbl .stage, .tbl .email-cell { white-space: nowrap; }
.tbl .camp-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
/* Across campaigns the table has the most columns: each gives a little, and a long
   address is cut, so the date added stays on screen. */
.tbl.wide th, .tbl.wide td { padding-left: 10px; padding-right: 10px; }
.tbl.wide .n, .tbl.wide .d { max-width: 220px; }
.tbl.wide .camp-cell { max-width: 150px; }
.tbl.wide .issue-cell { max-width: 180px; }
.tbl.wide .email-cell { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.tbl.wide .clip { max-width: 110px; }
.tbl .warnic { color: var(--warn); vertical-align: -3px; margin-left: 4px; }
.empty-note { padding: 28px; text-align: center; color: var(--muted); }

/* Panels inside main */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: grid; gap: 12px; justify-items: start; }
.panel h2 { font-size: 22px; }
.panel p { margin: 0; color: var(--muted); max-width: 520px; }

/* Background task toast */
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--head); color: #fff; border-radius: 6px; padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 340px; max-width: calc(100vw - 32px); z-index: 30; box-shadow: 0 16px 40px rgba(var(--shadow), .28); }
.toast .t { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; }
.toast .t small { color: #B9BCB2; font-weight: 400; white-space: nowrap; }
.toast .bar { height: 3px; border-radius: 3px; background: #4A5046; overflow: hidden; }
.toast .bar i { display: block; height: 100%; width: 0; background: var(--salmon); transition: width .4s; }
.toast .bar i.indeterminate { width: 30%; animation: slide 1.4s infinite ease-in-out; }
.toast .hint-row { color: #B9BCB2; }
.toast .hint-row .msg { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.toast.bad .hint-row .msg { white-space: normal; overflow: visible; }
.toast .hint-row button { background: none; border: 0; color: #fff; font-weight: 600; padding: 0; }
.toast :focus-visible { outline-color: #fff; }
.toast.bad .bar i { background: #F0A49B; }
@keyframes slide { 0% { margin-left: 0; } 50% { margin-left: 70%; } 100% { margin-left: 0; } }
.flash { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px 18px; box-shadow: 0 12px 30px rgba(var(--shadow), .14); z-index: 40; font-weight: 500; color: var(--head); max-width: calc(100vw - 32px); }
.flash.bad { border-color: var(--bad); color: var(--bad); }

/* A lead: three panes beside the sidebar. Lead and website on the left, the draft in the
   middle, why it says what it says on the right. Each pane scrolls on its own; the top
   bar and the actions stay put. */
.rv-wrap { position: fixed; inset: 0 0 0 var(--side-w); background: var(--bg); z-index: 25; display: flex; flex-direction: column; overflow: hidden; }
.rv-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 24px; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rv-nav { display: flex; gap: 8px; align-items: center; }
.rv { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(260px, 300px); flex: 1; min-height: 0; }
.pane { padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; min-height: 0; overflow-y: auto; }
.pane.l { background: var(--card); border-right: 1px solid var(--line); }
.pane.r { background: var(--card); border-left: 1px solid var(--line); }
.pane .field.grow { flex: 1; display: flex; flex-direction: column; }
.pane .field.grow textarea.body { flex: 1; }
.rv-notes { margin-top: auto; }
.rv-headline { min-width: 0; }
.rv-headline:empty { display: none; }
.rv-headline b { display: block; font-family: var(--display); font-size: 26px; font-weight: 500; line-height: 1.15; color: var(--head); font-variant-numeric: tabular-nums; }
.rv-headline small { color: var(--muted); font-size: 12px; }
.rv-headline small.warn { color: var(--warn); }
.rv-headline small.bad { color: var(--bad); }
.pane-h { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 500; font-size: 20px; color: var(--head); }
.dotacc { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.shot { position: relative; aspect-ratio: 16 / 10; background: var(--well); border-radius: 6px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 12px; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shot.empty { aspect-ratio: auto; padding: 18px; border-radius: 6px; }
.score-big { display: flex; align-items: center; gap: 14px; }
.score-big .ring { width: 64px; height: 64px; }
.score-big .ring span { width: 52px; height: 52px; font-size: 18px; }
.score-big h2 { font-size: 22px; overflow-wrap: anywhere; }
.issues { display: grid; gap: 8px; }
.issue { display: flex; gap: 14px; align-items: baseline; padding: 8px 12px; border-radius: 4px; background: var(--card); }
.issue b { flex: none; min-width: 18px; font: 10px/1.5 var(--mono); color: var(--accent); font-weight: 400; }
.kv { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.label { font: 10px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.grow { flex: 1; align-content: start; }
.input { width: 100%; height: 46px; border-radius: 5px; border: 1px solid var(--line); background: var(--card); padding: 0 16px; font-size: 15px; font-weight: 400; color: var(--head); }
.input:focus { border-color: var(--head); outline: none; box-shadow: 0 0 0 3px rgba(var(--shadow), .12); }
.input.sm { height: 38px; font-size: 14px; font-weight: 500; }
.input::placeholder { color: var(--faint); font-weight: 400; }
textarea.body { background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 22px 24px; font: 15px/1.65 var(--text); min-height: 420px; width: 100%; resize: vertical; }
textarea.notes { width: 100%; border-radius: 5px; border: 1px solid transparent; background: var(--side); padding: 10px 12px; font: 13px/1.5 var(--text); resize: vertical; min-height: 80px; max-height: 220px; }
textarea.body:focus, textarea.notes:focus, .sel:focus, .search:focus { border-color: var(--head); outline: none; box-shadow: 0 0 0 3px rgba(var(--shadow), .12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchip { font-size: 13px; padding: 9px 14px; border-radius: 5px; background: var(--well); border: 1px solid transparent; color: var(--ink2); font-weight: 500; }
.qchip:hover { color: var(--head); background: #E0DED5; }
.qchip.on { background: var(--head); border-color: var(--head); color: #fff; }
.nodraft { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--accent-soft); color: var(--accent-ink); border-radius: 6px; padding: 10px 14px; font-size: 13px; }
.nodraft .btn { flex: none; }
.tbl .tag { vertical-align: middle; }
.tbl .camp-name { font-weight: 600; }
.tbl tr.row-del td { opacity: .5; }
.why { display: grid; gap: 10px; }
.why div { background: var(--side); border-radius: 6px; padding: 16px; font-size: 13px; color: var(--ink2); }
.why div b { color: var(--head); font-weight: 600; }
.rv-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 24px; background: var(--card); border-top: 1px solid var(--line); position: sticky; bottom: 0; }
.rv-foot .grp, .grp { display: flex; gap: 10px; align-items: center; }

/* New campaign sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 35; display: flex; padding: 16px; overflow: auto; }
.scrim { position: fixed; inset: 0; background: rgba(var(--shadow), .35); }
.sheet { position: relative; margin: auto; width: 900px; max-width: 100%; background: var(--card); border-radius: 8px; display: grid; grid-template-columns: 240px minmax(0, 1fr); overflow: hidden; box-shadow: 0 30px 80px rgba(var(--shadow), .25); }
.sheet .steps { background: var(--bg); padding: 28px 24px; display: grid; gap: 18px; align-content: start; }
.sheet-title { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: -.015em; color: var(--head); }
.sheet .step { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.sheet .step i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 600; background: var(--card); flex: none; }
.sheet .step.on { color: var(--head); font-weight: 600; }
.sheet .step.on i { background: var(--head); color: #fff; border-color: var(--head); }
.sheet .step.done i { background: var(--well); color: var(--head); }
.sheet .body-pane { padding: 28px 32px; display: grid; gap: 22px; min-width: 0; align-content: start; }
.sheet section { display: grid; gap: 22px; }
.sheet h2 { font-size: 26px; }
.sheet .lead { margin: 6px 0 0; color: var(--muted); }
.slider { width: 100%; height: 22px; margin: 0; background: none; accent-color: var(--accent); -webkit-appearance: none; appearance: none; }
.slider::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: var(--line); }
.slider::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
.slider::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 3px rgba(var(--shadow), .35); }
.slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 3px rgba(var(--shadow), .35); }
.slider:focus-visible { outline: 2px solid var(--head); outline-offset: 4px; border-radius: 6px; }
.sum { background: var(--good-soft); color: var(--good-ink); border-radius: 5px; padding: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.sum .b { font-weight: 500; color: var(--head); }
/* Where leads come from: one card per source, picked like a radio */
.src { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.src button { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 16px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.src button:hover { border-color: var(--faint); }
.src button b { color: var(--head); font-weight: 500; font-size: 15px; }
.src button.on { border-color: var(--accent); background: var(--accent-soft); }
.src button small { color: var(--muted); font-size: 12px; line-height: 1.4; }
/* Import a list: the consent it carries, said in the step itself */
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); font-size: 13px; line-height: 1.5; color: var(--ink2); cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--good); flex: none; }
.consent b { color: var(--head); }
.sheet .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; }
.readonly { background: var(--bg); color: var(--ink2); }

/* The first visit: one sentence, one box, three steps */
.first { display: grid; gap: 44px; padding-top: 60px; }
.hero { width: min(948px, 100%); margin: 0 auto; display: grid; gap: 22px; justify-items: start; text-align: left; }
.eyebrow.accent { color: var(--accent); }
.hero h1 { font-size: 40px; line-height: 56px; max-width: 470px; letter-spacing: -.03em; }
.hero p { margin: 0; color: var(--muted); font-size: 16px; line-height: 23px; max-width: 520px; }
.composer { width: 100%; margin-top: 30px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 16px 16px 16px 22px; display: flex; gap: 10px; align-items: center; }
.composer:focus-within { border-color: var(--head); }
.composer input:focus { outline: none; }
.composer input { flex: 1; min-width: 0; border: 0; background: none; font-size: 18px; height: 42px; color: var(--head); }
.composer input::placeholder { color: var(--head); opacity: .9; }
.composer input:focus::placeholder { color: var(--faint); }
.composer .btn { height: 42px; width: 182px; justify-content: flex-start; padding: 0 15px; font-size: 13px; }
.angles { display: grid; gap: 12px; margin-top: 16px; }
.steps3 { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step3 { border-radius: 4px; padding: 26px 22px 40px; text-align: left; display: grid; gap: 10px; align-content: start; background: var(--paper); min-height: 240px; }
.step3.s1 { background: var(--accent-soft); }
.step3.s3 { background: var(--good-soft); }
.step3 .no { font: 500 40px/1.1 var(--display); color: #6C7A5E; letter-spacing: -.02em; }
.step3.s1 .no { color: var(--accent); }
.step3 h3 { font-size: 22px; margin-top: 16px; }
.step3 p { margin: 0; color: var(--muted); font-size: 14px; line-height: 20px; }
.t-foot { font-size: 12px; color: var(--muted); }

/* Sign-in */
.login-wrap { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.login { width: 360px; max-width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: grid; gap: 16px; box-shadow: 0 10px 30px rgba(var(--shadow), .08); }
.login .logo { padding: 0 0 6px; }
.login h1 { font-size: 26px; }
.err { color: var(--bad); font-size: 13px; }

/* Shared bits */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.linkbtn.small { font-size: 12px; }
.warn { color: var(--warn); }
.bad { color: var(--bad); }
.good { color: var(--good-ink); }
.note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink2); background: var(--side); border-radius: 6px; padding: 12px 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--head); }
.tbl input[type="checkbox"] { accent-color: var(--head); }
.tbl .clip { display: inline-block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.sendline .muted, .sendline .warn, .sendline .bad { font-size: 12px; }

/* Review additions */
.banner { border-radius: 6px; padding: 12px 16px; font-size: 13px; line-height: 1.5; border: 1px solid; }
.banner.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn-ink); }
.banner.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad-ink); }
.issue.flag b { background: var(--bad); color: #fff; }
.profile { display: grid; gap: 10px; font-size: 13px; background: var(--bg); border-radius: 6px; padding: 12px 14px; color: var(--ink2); }
.profile .psec { display: grid; gap: 3px; }
.profile .pre { white-space: pre-line; }
.profile a { color: var(--head); }
#rv-words.over { color: var(--bad); font-weight: 600; }
textarea.body.short { min-height: 140px; font-size: 15px; }

/* Autocomplete */
.ac-field { position: relative; }
.ac-menu { position: absolute; left: 0; right: 0; top: calc(100% - 18px); z-index: 5; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 6px; max-height: 260px; overflow-y: auto; box-shadow: 0 12px 30px rgba(var(--shadow), .12); }
.ac-option { display: flex; flex-wrap: wrap; gap: 0 8px; padding: 8px 10px; border-radius: 4px; cursor: pointer; font-size: 14px; }
.ac-option:hover, .ac-option.is-active { background: var(--bg); }
.ac-credit { padding: 6px 10px 2px; font-size: 11px; text-align: right; border-top: 1px solid var(--line); margin-top: 4px; }
.ac-credit a { color: var(--muted); text-decoration: none; }

/* Dialog variant of the sheet (single column) */
.sheet.dlg { grid-template-columns: 1fr; width: 680px; }
.sheet.dlg .body-pane { padding: 28px 32px; }
.qchip:disabled { opacity: .45; cursor: default; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* A short window: the lead scrolls as one piece rather than in slivers between
   its header and its actions. */
@media (max-height: 620px) {
  .rv-wrap { overflow: auto; }
  .rv { flex: none; }
  .pane { overflow: visible; }
}
/* Narrower: the draft and why it says what it says share a column under the lead. */
@media (max-width: 1180px) {
  .rv { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); overflow-y: auto; align-items: start; }
  .pane { overflow: visible; }
  .pane.l { grid-row: 1 / span 2; align-self: stretch; }
  .pane.m { grid-row: 1; grid-column: 2; }
  .pane.r { grid-row: 2; grid-column: 2; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 1100px) {
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .col { min-height: 200px; }
  .inbox { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; padding: 18px 12px; }
  .logo { padding-bottom: 14px; }
  .logo i { margin-top: 12px; }
  .side-label { padding-top: 16px; }
  .agent { display: none; }
  .nv.foot { margin-top: 4px; }
  .topbar { position: static; height: auto; padding: 12px 16px; flex-wrap: wrap; }
  .crumb { flex-basis: 100%; }
  .find { flex: 1; width: auto; }
  #top-new { width: auto; }
  .first { padding-top: 16px; }
  .hero h1 { font-size: 32px; line-height: 40px; }
  .composer { flex-wrap: wrap; }
  .composer .btn { width: 100%; }
  .input { font-size: 16px; }
  .src { grid-template-columns: 1fr; }
  .agent { margin-top: 8px; }
  .main { padding: 16px; }
  .top h1 { font-size: 28px; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inbox { grid-template-columns: 1fr; min-height: 0; }
  .ilist { border-right: 0; border-bottom: 1px solid var(--line); }
  .thread { padding: 20px 16px; }
  /* One column, the sidebar on top of the page: a lead takes the whole screen and
     scrolls as one piece, with Back to return to the menu. */
  .rv-wrap { inset: 0; overflow: auto; }
  .rv { display: flex; flex-direction: column; flex: none; }
  .pane { overflow: visible; padding: 16px; }
  .pane.l, .pane.r { border: 0; }
  .pane.r { border-top: 1px solid var(--line); }
  .rv-top, .rv-foot { padding-left: 16px; padding-right: 16px; }
  .rv-foot .grp { flex-wrap: wrap; }
  .rv-foot .hint-row { display: none; }
  .sheet { grid-template-columns: 1fr; }
  .sheet .steps { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 18px 20px; }
  .sheet .body-pane { padding: 20px; }
  .steps3 { grid-template-columns: 1fr; }
  .step3 { min-height: 0; }
  .filters .search { width: 100%; }
}

/* Value on a card, in the review view, and the profile's price list. A card leads
   with what the lead is worth. */
.card .val { font-family: var(--display); font-size: 24px; font-weight: 500; color: var(--head); font-variant-numeric: tabular-nums; line-height: 1.1; }

/* Today: the next move and what it is worth, the conversations to keep going, what
   came in overnight, and the lookups */
.today { display: grid; gap: 32px; width: 100%; max-width: 1136px; }
.t-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.t-head > div { display: grid; gap: 8px; }
.t-head h1 { font-size: 34px; line-height: 42px; }
.t-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.t-grid { display: grid; grid-template-columns: minmax(0, 704fr) minmax(0, 408fr); gap: 32px 24px; align-items: stretch; }
.t-next { position: relative; background: var(--salmon); border-radius: 8px; padding: 22px 26px 30px; display: grid; gap: 8px; align-content: start; min-height: 210px; overflow: hidden; }
.t-next .eyebrow { color: var(--salmon-ink); }
.t-next h2 { font-size: 28px; line-height: 36px; margin-top: 2px; max-width: calc(100% - 170px); }
.t-next p { margin: 0; font-size: 14px; color: var(--head); max-width: calc(100% - 170px); }
.t-next-act { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; max-width: calc(100% - 150px); }
.t-next-act .btn { min-width: 172px; justify-content: space-between; }
.t-next-act small { font-size: 11px; color: var(--salmon-ink); }
.t-big { position: absolute; right: 64px; top: 26px; font: 500 80px/94px var(--display); color: #A64124; letter-spacing: -.03em; }
.t-big-l { position: absolute; right: 74px; top: 156px; }
.t-next.calm { background: var(--paper); border: 1px solid #DDDED3; }
.t-next.calm .eyebrow, .t-next.calm .t-next-act small { color: var(--muted); }
.t-next.calm .t-big { color: var(--faint); }
.t-value { background: var(--paper); border: 1px solid #DDDED3; border-radius: 8px; padding: 21px 24px 18px; display: grid; gap: 6px; align-content: start; }
.t-value > b { font: 500 48px/60px var(--display); color: var(--head); letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.t-value p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.t-value-foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; font-size: 12px; color: var(--muted); }
.t-value-foot a { color: var(--head); text-decoration: none; font-weight: 500; }
.t-convo { display: grid; gap: 22px; align-content: start; min-width: 0; }
.t-convo > h2 { font-size: 22px; line-height: 29px; }
.t-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.t-col { display: grid; align-content: start; min-width: 0; }
.t-col-h { display: flex; justify-content: space-between; font: 10px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding-bottom: 18px; border-bottom: 1px solid var(--rule); margin-bottom: 14px; }
.t-col-h b { color: var(--accent); font-weight: 400; }
.t-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; background: none; border: 0; border-bottom: 1px solid #E0E1D8; padding: 0 0 14px; margin: 0 0 14px; text-align: left; width: 100%; color: inherit; }
.t-row:last-of-type { border-bottom: 0; }
button.t-row:hover b { color: var(--accent); }
.t-row .dot { margin: 6px 4px 0 0; width: 6px; height: 6px; }
.t-row-main { display: grid; gap: 6px; min-width: 0; }
.t-row-main b, .t-row-main .linkbtn { font-weight: 500; font-size: 14px; color: var(--head); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-row.todo .t-row-main b, .t-row.todo .t-row-main .linkbtn { font-size: 13px; }
.linkbtn.plain { text-decoration: none; }
.linkbtn.plain:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.t-row-main small { font-size: 12px; line-height: 17px; color: var(--muted); overflow-wrap: anywhere; }
.t-go { color: var(--muted); font-size: 17px; line-height: 1; }
.t-row .todo-check { width: 15px; height: 15px; margin: 2px 2px 0 0; accent-color: var(--head); }
.t-row .tag.bad { font-size: 10px; padding: 3px 9px; }
.t-row .mono { padding-top: 2px; }
.t-none { margin: 0; color: var(--muted); font-size: 13px; }
.t-away { background: var(--good-soft); border-radius: 8px; padding: 22px 26px 26px; display: grid; gap: 10px; align-content: start; color: var(--good-ink); min-width: 0; }
.t-away .eyebrow { color: #58644A; }
.t-away-n { display: flex; align-items: center; gap: 26px; }
.t-away-n b { font: 500 60px/74px var(--display); letter-spacing: -.03em; }
.t-away-n span { font: 500 22px/28px var(--display); letter-spacing: -.01em; }
.t-away p { margin: 0; font-size: 12px; color: #58644A; }
.t-away hr { border: 0; border-top: 1px solid var(--good-line); margin: 14px 0 8px; width: 100%; }
.t-spot { display: grid; gap: 6px; background: none; border: 0; padding: 0; text-align: left; color: #263023; }
.t-spot b { font-size: 17px; font-weight: 500; }
.t-spot small { font-size: 12px; color: #58644A; }
.t-away-all { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; color: #263023; text-decoration: none; font-weight: 700; font-size: 13px; }
.t-away-all span:last-child { font-size: 24px; font-weight: 400; color: var(--good-ink); }
.t-lookups { display: grid; gap: 14px; }
.t-lookups h2 { font-size: 22px; line-height: 29px; }
.t-lookups .linkbtn { font-size: 12px; }
.cl-table { background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cl-head, .camp-line { display: grid; grid-template-columns: minmax(0, 448fr) minmax(0, 205fr) minmax(0, 107fr) minmax(0, 161fr) minmax(0, 150fr) 24px; gap: 0; align-items: center; padding: 0 20px; }
.cl-head { height: 34px; border-bottom: 1px solid var(--line); font: 9px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.camp-line { height: 47px; background: none; border: 0; border-bottom: 1px solid #E5E5DC; border-radius: 0; text-align: left; width: 100%; font-size: 12px; color: var(--muted); }
.camp-line:last-child { border-bottom: 0; }
.camp-line:hover { background: var(--bg); }
.cl-name { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--head); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-name .dot { width: 6px; height: 6px; margin: 0; flex: none; }
.cl-n { font-size: 12px; color: var(--head); text-transform: none; }
.cl-new.good { color: var(--good); font-weight: 500; }
.camp-line > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner.strip { display: flex; gap: 40px; align-items: center; background: var(--side); color: var(--muted); font-size: 13px; padding: 14px 16px; }
.banner.strip .eyebrow { color: var(--accent); flex: none; }
@media (max-width: 1180px) {
  .t-grid { grid-template-columns: 1fr; }
  .cl-head, .camp-line { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) 60px minmax(0, 1.4fr) minmax(0, 1.4fr) 20px; }
}
@media (max-width: 820px) {
  .t-cols { grid-template-columns: 1fr; }
  .t-next h2, .t-next p, .t-next-act { max-width: none; }
  .t-big, .t-big-l { position: static; font-size: 56px; line-height: 1; }
  .cl-head { display: none; }
  .camp-line { grid-template-columns: minmax(0, 1fr) auto; height: auto; padding: 12px 16px; gap: 4px 10px; }
  .cl-src, .cl-when, .t-go { display: none; }
  .banner.strip { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Inbox: replies on the left, the thread on the right */
.inbox { display: grid; grid-template-columns: 330px minmax(0, 1fr); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; min-height: calc(100vh - 66px); }
.ilist { background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.ilist .filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 16px 16px 12px; border-bottom: 1px solid var(--line2); }
.irow { display: grid; gap: 4px; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line2); min-width: 0; background: none; text-align: left; width: 100%; }
.irow:hover { background: var(--bg); }
.irow.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.irow .tagline { display: flex; gap: 6px; flex-wrap: wrap; }
.ikeys { padding: 12px 16px; margin-top: auto; }
/* The lead view, once contacted: where it stands and what the deal is worth */
.rv-deal-box { display: grid; gap: 10px; background: var(--bg); border-radius: 6px; padding: 12px 14px; }
.rv-deal-box .chips { gap: 6px; }
.rv-deal-box .qchip { font-size: 12px; padding: 5px 10px; }
.rv-deal-box .input { max-width: 150px; }
.irow .top2 { display: flex; justify-content: space-between; gap: 8px; align-items: center; min-width: 0; }
.irow b { font-weight: 600; color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.irow small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.irow p { margin: 0; color: var(--ink2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { padding: 26px 32px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.thread h1 { font-size: 24px; }
.msg { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; display: grid; gap: 10px; }
.msg.them { background: var(--good-soft); border-color: transparent; }
.msg small { color: var(--muted); font-size: 12px; }
.msg-body { white-space: pre-line; color: var(--ink); overflow-wrap: anywhere; }
.thread-msgs { display: grid; gap: 12px; }
.compose { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 14px; display: grid; gap: 10px; }
.compose textarea.body { min-height: 120px; font-size: 14px; padding: 12px 14px; border-radius: 5px; }
.compose .chips { gap: 6px; }
.compose .qchip { font-size: 12px; padding: 5px 10px; }
.compose-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
/* In the lead's narrow right pane the thread is compact. */
.rv-thread { display: grid; gap: 12px; }
.rv-thread .msg { padding: 10px 12px; border-radius: 6px; font-size: 13px; }
/* The opener and follow-ups are in the middle pane already: a few lines here. */
.rv-thread .msg.sent-before .msg-body { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rv-thread .compose { padding: 10px; }
.rv-thread .compose-acts .btn { height: 34px; padding: 0 12px; font-size: 13px; }
.value { display: grid; gap: 8px; }
.vtotal { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.vtotal span { font-family: var(--display); font-size: 26px; font-weight: 500; color: var(--head); font-variant-numeric: tabular-nums; }
.vtotal small { color: var(--muted); font-size: 12px; }
.vline { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line2); }
.vline > span:first-child { display: grid; min-width: 0; }
.vline small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.pf { display: grid; gap: 12px; }
.pf h2 { margin: 0; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tbl.prices td { vertical-align: top; }
.tbl.prices .input { max-width: 140px; }
.tbl.prices .grp-row th { background: var(--well); text-transform: none; font-size: 12px; }
.sizes { display: grid; gap: 6px; }
.sizes label { display: grid; gap: 2px; }
.panel.pf { justify-items: stretch; }
.panel.pf p { max-width: none; }

/* New leads: grouped by the day a scan added them */
.tbl .day-row th { background: var(--well); color: var(--head); font-size: 12px; font-weight: 600; padding: 7px 12px; text-transform: none; }
.tbl .day-row th span { color: var(--muted); font-weight: 500; margin-left: 6px; }
.tbl td.num { white-space: nowrap; }
.tbl .added { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
/* The industry a business was found under: outlined, so it reads apart from the
   filled tags that say what it needs. */
.tag.ind { background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); min-width: 0; }
.tbl .industry-cell { white-space: nowrap; }
.scanline { display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: -8px; }
.scanline b { color: var(--head); font-weight: 600; }
.tag.mode { background: var(--head); color: #fff; font-family: var(--mono); font-size: 10px; }
.tag.mode.b2b { background: var(--accent-soft); color: var(--accent-ink); }
.tag.mode.b2c { background: var(--good-soft); color: var(--good-ink); }
.banner.info { background: var(--side); border-color: transparent; color: var(--ink2); }

/* RFP review */
.rfp-pane { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; }
.rfp-pane h3 { font-size: 20px; overflow-wrap: anywhere; }
.rfp-pane p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink2); white-space: pre-line; overflow-wrap: anywhere; }
.rfp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rfp-fact { background: var(--bg); border-radius: 6px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.rfp-fact .k { font-size: 12px; color: var(--muted); }
.rfp-fact .v { font-weight: 600; overflow-wrap: anywhere; }
.rfp-fact .v small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.rfp-fact .v small.warn { color: var(--warn); }

/* Setup questionnaire: lighter than the campaign sheet it borrows from */
.scrim.solid { background: var(--bg); }
/* Not clipped, as the campaign sheet is: the pickers' lists drop past its edge. */
.sheet.ob { width: 800px; grid-template-columns: 190px minmax(0, 1fr); border-radius: 8px; overflow: visible; }
.sheet.ob .steps { padding: 24px 20px; gap: 14px; border-radius: 8px 0 0 8px; }
.sheet.ob .sheet-title { font-size: 17px; }
.sheet.ob .step { font-size: 13px; gap: 10px; }
.sheet.ob .step i { width: 24px; height: 24px; font-size: 12px; }
.sheet.ob .body-pane { padding: 24px 28px; gap: 16px; }
.sheet.ob h2 { font-size: 22px; }
.sheet.ob .lead { margin-top: 4px; font-size: 13px; }
.sheet.ob #ob-panel { display: grid; gap: 14px; min-height: 280px; align-content: start; }
.sheet.ob .qchip { font-size: 12px; padding: 5px 11px; }
.sheet.ob .chips { gap: 6px; }
.sheet.ob .sum { padding: 10px 14px; border-radius: 6px; }
.sheet.ob .sum .b { font-size: 13px; }
.sheet.ob .foot { padding-top: 2px; }
.sheet.ob .foot .btn { height: 34px; padding: 0 14px; font-size: 13px; }
.sheet.ob .input { height: 38px; font-size: 14px; font-weight: 500; }
.ob-group { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ob-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 110px; gap: 8px; align-items: center; font-size: 13px; }
.ob-row.head { font-size: 12px; color: var(--muted); }
.sheet.ob .ob-row .input { height: 34px; font-size: 13px; }
.ob-prices { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.ob-add { display: flex; gap: 8px; }
.ob-add .input { flex: 1; min-width: 0; }
.ob-loc-wrap { position: relative; flex: 1; min-width: 0; }
.ob-loc-wrap .input { width: 100%; }
.ob-loc-wrap .ac-menu { top: calc(100% + 4px); }
.ob-add .btn { height: 38px; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 7px 5px 11px; border-radius: 5px; background: var(--head); color: #fff; }
.chip-x button { background: none; border: 0; padding: 0; color: inherit; display: grid; place-items: center; }
.chip-x .ic { width: 13px; height: 13px; }
/* Who to find: one row per kind of lead, what it searches for inside it */
.ob-auds { display: grid; gap: 8px; }
.ob-aud { background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.ob-aud:hover { border-color: var(--faint); }
.ob-aud.on { border-color: var(--head); box-shadow: inset 0 0 0 1px var(--head); }
.ob-aud-h { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; text-align: left; padding: 10px 12px; border-radius: 6px; }
.ob-aud-h b { font-size: 14px; color: var(--head); }
.ob-aud-h small { color: var(--muted); font-size: 12px; margin-left: auto; text-align: right; }
.ob-aud .tick { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.ob-aud.on .tick { background: var(--head); border-color: var(--head); color: #fff; }
.ob-aud .tick .ic { width: 10px; height: 10px; }
.ob-pick { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; align-items: center; padding: 0 12px 10px 38px; }
.ob-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.chip-x.any { background: var(--well); color: var(--ink2); padding: 5px 11px; }
.pk-search { position: relative; flex: 1 1 170px; min-width: 150px; max-width: 260px; }
.chip-input { width: 100%; height: 28px; border-radius: 5px; border: 1px solid var(--line); background: var(--card); padding: 0 12px; font-size: 12px; }
.chip-input::placeholder { color: var(--faint); }
.chip-input:focus { border-color: var(--head); outline: none; }
.chip-input:disabled { background: var(--bg); }
.pk-search .ac-menu { top: calc(100% + 4px); right: auto; width: 260px; max-height: 232px; z-index: 6; }
.pk-search .ac-option { font-size: 13px; padding: 6px 10px; }
.ac-head { padding: 6px 10px 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.ac-note { padding: 8px 10px; font-size: 13px; color: var(--muted); }
/* The lookup sheet's pick field: an input-sized box of pills with the search inline. */
.pk-box { position: relative; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 48px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); cursor: text; }
.pk-box:focus-within { border-color: var(--head); box-shadow: 0 0 0 3px rgba(var(--shadow), .12); }
.pk-box .chip-x { font-size: 13px; padding: 6px 8px 6px 12px; }
.pk-box .chip-x.any { padding: 6px 12px; }
.pk-box .pk-search { position: static; flex: 1 1 160px; max-width: none; min-width: 120px; }
.pk-box .chip-input { border: 0; height: 32px; padding: 0 6px; font-size: 15px; background: transparent; }
.pk-box .chip-input:focus { outline: none; }
.pk-box .ac-menu { top: calc(100% + 6px); left: 0; right: 0; width: auto; max-height: 300px; }
.pk-box .ac-option { font-size: 14px; padding: 8px 10px; }
.pk-box.locked { background: var(--bg); cursor: default; }
.pk-box.locked .chip-x { background: var(--well); color: var(--ink2); padding: 6px 12px; }
@media (max-width: 820px) {
  .sheet.ob .steps { border-radius: 8px 8px 0 0; }
  .ob-aud-h small { display: none; }
  .ob-group, .ob-pick { grid-template-columns: 1fr; gap: 4px; }
  .ob-row { grid-template-columns: minmax(0, 1fr) 88px 88px; }
}

/* A lead's own page: the audit and the timeline, beside the deal, tasks and where the
   email came from. */
.crumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs .linkbtn { color: var(--muted); text-decoration-color: var(--line); }
.rec-top { align-items: center; }
.rec-top h1 { font-size: 32px; margin-top: 2px; }
.rec-worth { margin-left: 10px; color: var(--head); }
.rec-sub { margin-top: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rec { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.rec-col { display: grid; gap: 20px; min-width: 0; }
.panel.rec-panel { padding: 18px; gap: 14px; justify-items: stretch; }
.panel.rec-panel h3 { font-size: 15px; }
.kv-form { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.timeline { display: grid; }
.ev { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; }
.ev .dotline { display: flex; flex-direction: column; align-items: center; }
.ev .dotline i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); margin-top: 6px; flex: none; }
.ev .dotline u { flex: 1; width: 2px; background: var(--line2); margin: 4px 0; }
.ev.key .dotline i { background: var(--good); }
.ev .txt { padding-bottom: 16px; display: grid; gap: 4px; min-width: 0; }
.ev .txt b { color: var(--head); font-weight: 600; }
.ev .txt small { color: var(--muted); font-size: 12px; }
.quote { background: var(--side); border-radius: 6px; padding: 10px 12px; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
/* Tasks: a row with a tick box, on Today and on a lead's page. */
.trow.todo { padding: 10px 12px; }
.trow.todo .todo-check { width: 18px; height: 18px; accent-color: var(--head); flex: none; margin: 0; }
.trow.todo.done .who b { text-decoration: line-through; color: var(--muted); }
.rec-panel .trow.todo { border: 0; background: var(--bg); }
.todo-group { display: grid; gap: 8px; }
.todo-group .label { padding-top: 4px; }
.sec.over > h3 { color: var(--accent-ink); }
.todo-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.todo-add [name="title"] { grid-column: 1 / -1; }
@media (max-width: 1100px) {
  .rec { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .todo-add { grid-template-columns: 1fr; }
}
/* People at a business, on its page */
.person { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line2); min-width: 0; }
.person:first-of-type { border-top: 0; padding-top: 0; }
.person-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.person-h b { color: var(--head); font-weight: 600; }
.person-h span { color: var(--ink2); }
.person small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.person .tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.person-add { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; padding-top: 4px; }
@media (max-width: 820px) { .person-add { grid-template-columns: 1fr; } }

/* New lookup: a page beside the sidebar, under the top bar, with its steps on the left */
#sheet.sheet-wrap { position: fixed; top: 76px; left: var(--side-w); right: 0; bottom: 0; z-index: 14; background: var(--bg); padding: 32px 40px 32px; display: block; overflow: auto; }
#sheet .scrim { display: none; }
.sheet-page { max-width: 1136px; display: grid; gap: 40px; }
.sheet-top { align-items: flex-start; }
.sheet-top .eyebrow { padding-top: 16px; }
#sheet .sheet { width: 100%; margin: 0; border: 1px solid var(--line); border-radius: 6px; box-shadow: none; grid-template-columns: 248px minmax(0, 1fr); background: var(--card); min-height: 640px; }
#sheet .sheet .steps { background: #EEEDE5; padding: 32px 16px 32px; gap: 0; align-content: stretch; grid-template-rows: auto repeat(4, auto) 1fr; }
#sheet .sheet .steps > .eyebrow { padding: 0 8px 34px; }
#sheet .sheet .step { height: 52px; padding: 0 12px; border-radius: 4px; gap: 22px; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
#sheet .sheet .step i { width: auto; height: auto; border: 0; background: none; font: 11px/1 var(--mono); color: var(--muted); border-radius: 0; }
#sheet .sheet .step.on { background: var(--head); color: #fff; font-weight: 500; }
#sheet .sheet .step.on i { background: none; color: var(--salmon); }
#sheet .sheet .step.done { color: var(--head); }
#sheet .sheet .step.done i { background: none; color: var(--good); }
#sheet .steps-foot { align-self: end; padding: 0 9px; font-size: 13px; line-height: 20px; }
#sheet .sheet .body-pane { padding: 32px 32px 36px; gap: 30px; }
#sheet .sheet section { gap: 30px; }
#sheet .sheet h2 { font-size: 28px; line-height: 36px; }
#sheet .sheet .lead { margin-top: 8px; font-size: 13px; }
#sheet .sheet .foot { margin-top: auto; padding-top: 12px; }
#sheet .sheet .foot .btn.ghost { padding-left: 0; color: var(--ink2); font-weight: 400; }
#sheet .sheet .foot .grp .btn { height: 42px; }
#sheet .sheet .foot #nc-back { min-width: 92px; justify-content: flex-start; }
#sheet .sheet .foot #nc-next { min-width: 221px; justify-content: flex-start; }
#sheet .sheet .foot #nc-next::after { content: "→"; margin-left: auto; padding-left: 12px; }
.sheet-note { margin: -16px 0 0; }
/* A source: a card picked like a radio, its dot in the corner */
.src button { position: relative; min-height: 104px; padding: 18px 40px 18px 16px; gap: 14px; }
.src button::after { content: ""; position: absolute; right: 18px; top: 22px; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--faint); background: var(--card); }
.src button.on::after { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent-soft); }
.src button small { font-size: 12px; }
/* The lookup's own page: summary bar items spread out, New today a toggle */
.sum-new { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; }
.sum-new:hover { text-decoration: underline; }
.sum-new.on { font-weight: 600; text-decoration: underline; }
.btn.more { width: 72px; letter-spacing: 1px; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; }
.card-top .mono { font-size: 9px; color: var(--muted); white-space: nowrap; }
.card .d { font-size: 11px; }
.card .tags { margin-top: 6px; }
.col-empty { padding: 4px 2px; }
/* The Leads page */
.tabs-row { justify-content: space-between; gap: 12px; }
.tabs-row .seg { flex-wrap: wrap; }
#lead-tabs button { min-width: 84px; text-align: left; }
.tab-note { margin: -14px 0 0; }
.filters .sel { min-width: 150px; }
.filters .sel.sort { margin-left: auto; min-width: 180px; }
.filters .search { width: 240px; height: 38px; }
.bulk { width: 100%; min-height: 43px; }
.bulk .btn { color: #fff; }
.bulk .btn:disabled { opacity: .45; }
.bulk-hint { margin-left: auto; font-size: 11px; color: #C9CBC2; padding-right: 8px; }
.tbl tr.sel td { background: var(--accent-soft); }
.tbl .val-cell { color: var(--head); font-size: 13px; font-weight: 500; }
.tbl .stage { color: var(--muted); }
.tbl .stage.hot { color: var(--head); font-weight: 500; }
.tbl .camp-cell { font-size: 11px; }
.tbl td .tag.new { margin-left: 8px; vertical-align: 1px; }
.tbl td .n { display: inline-block; vertical-align: middle; }
.list-foot { padding-top: 4px; }
.list-foot .btn.icon { width: 43px; height: 31px; }
@media (max-width: 820px) {
  #sheet.sheet-wrap { position: fixed; inset: 0; z-index: 35; padding: 16px; }
  #sheet .sheet { grid-template-columns: 1fr; min-height: 0; }
  #sheet .sheet .steps { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
  #sheet .sheet .steps > .eyebrow, #sheet .steps-foot { display: none; }
  #sheet .sheet .step { height: 36px; margin: 0; gap: 10px; }
  #sheet .sheet .foot #nc-next { min-width: 0; }
  .bulk-hint { display: none; }
  .filters .sel.sort { margin-left: 0; }
}
#sheet .sheet .body-pane { display: flex; flex-direction: column; }
/* A run in progress: a dark bar along the foot of the page */
.toast { left: calc(var(--side-w) + 40px); right: 40px; bottom: 20px; width: auto; max-width: none; min-height: 45px; display: flex; align-items: center; gap: 28px; padding: 10px 16px; box-shadow: 0 10px 30px rgba(var(--shadow), .18); }
.toast .t { flex: none; gap: 10px; font-weight: 500; font-size: 13px; }
.toast .bar { flex: none; width: 250px; }
.toast .hint-row { flex: 1; min-width: 0; font-size: 11px; }
.toast .hint-row button { margin-left: auto; font-weight: 500; font-size: 13px; }
@media (max-width: 820px) {
  .toast { left: 16px; right: 16px; flex-wrap: wrap; gap: 8px 16px; }
  .toast .bar { width: 100%; }
}

/* Draft review: the whole screen. The lead and its audit on the left, the draft in the
   middle, why it says what it says on the right; one main action at the foot. */
.rv-wrap { inset: 0; background: var(--bg); z-index: 30; }
.rv-top { background: var(--side); border-bottom: 0; padding: 18px 56px 18px 32px; min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; }
.rv-top #rv-back { justify-self: start; font-size: 14px; color: var(--head); font-weight: 500; padding-left: 0; }
.rv-top #rv-back:hover { background: none; text-decoration: underline; text-decoration-color: var(--accent); }
.rv-pos { display: flex; align-items: baseline; gap: 90px; }
.rv-pos #rv-pos { font: 13px/1 var(--mono); color: var(--head); letter-spacing: .04em; }
.rv-nav { justify-self: end; gap: 12px; }
.rv-nav #rv-savestate { margin-right: 60px; font-size: 13px; }
.rv-nav .btn.icon { width: 42px; height: 40px; background: var(--card); }
.rv { grid-template-columns: minmax(280px, 368px) minmax(0, 1fr) minmax(280px, 352px); }
.pane { padding: 32px 32px 24px; gap: 24px; }
.pane.l, .pane.r { background: transparent; border: 0; }
.pane.m { padding-left: 0; padding-right: 0; }
.pane.r { padding-left: 24px; }
.rv-who { display: grid; gap: 8px; }
.rv-who h2 { font-size: 24px; line-height: 30px; overflow-wrap: anywhere; }
.rv-who h2 a { text-decoration: none; }
.rv-who h2 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.rv-who .muted { font-size: 12px; }
.rv-audit { background: var(--good-soft); border-radius: 6px; padding: 18px 18px 20px; display: grid; gap: 12px; }
.rv-audit .eyebrow { color: #58644A; }
.rv-audit-row { display: flex; align-items: flex-end; gap: 48px; min-width: 0; }
.rv-audit .ring { width: auto; height: auto; background: none !important; display: block; }
.rv-audit .ring span { width: auto; height: auto; background: none; display: inline; font: 500 48px/1 var(--display); color: var(--good-ink); letter-spacing: -.03em; }
.rv-audit .ring span::after { content: " / 100"; font: 400 12px var(--display); color: var(--muted); letter-spacing: 0; }
.rv-audit .rv-headline b { font: 500 26px/1 var(--display); color: var(--accent); display: block; }
.rv-audit .rv-headline small { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); }
.rv-audit #rv-rating { font-size: 12px; color: var(--good-ink); }
.rv-audit #rv-rating:empty { display: none; }
.pane .issues { gap: 0; }
.pane .issue { background: none; padding: 0 0 24px; gap: 22px; font-size: 13px; line-height: 19px; color: var(--head); }
.pane .issue b { padding-top: 2px; }
#rv-pane-lead .kv { border-top: 1px solid var(--line); padding-top: 20px; grid-template-columns: 74px minmax(0, 1fr); font-size: 12px; }
#rv-pane-lead .kv dt { color: var(--muted); }
#rv-pane-lead .kv dd { color: var(--head); }
#rv-pane-lead .value { font-size: 13px; }
#rv-tabs { gap: 9px; }
#rv-tabs button { min-width: 98px; height: 40px; text-align: left; }
#rv-subject { height: 66px; font-size: 15px; font-weight: 500; padding: 0 16px; }
.pane.m .field.grow { gap: 10px; }
textarea.body { min-height: 520px; padding: 24px; font-size: 14px; line-height: 20px; }
.rv-draft-acts { display: flex; gap: 12px; margin-top: 8px; }
.rv-draft-acts .btn { height: 39px; min-width: 141px; justify-content: flex-start; }
.rv-draft-acts #rv-mailto { min-width: 186px; }
#rv-draft-hint { margin: 2px 0 0; font-size: 11px; }
.pane-h { font-size: 20px; }
.pane-h .dotacc { display: none; }
.why { gap: 14px; }
.why .why-card { background: var(--side); border-radius: 4px; padding: 16px; display: grid; gap: 14px; }
.why .why-card.hot { background: var(--accent-soft); }
.why .why-card.hot .eyebrow { color: var(--accent); }
.why .why-card p { margin: 0; font-size: 13px; line-height: 19px; color: var(--head); }
.why .why-note { background: none; padding: 0; font-size: 12px; color: var(--muted); }
.why .why-note b { color: var(--ink2); font-weight: 500; }
#rv-actions { display: flex; flex-wrap: wrap; gap: 9px; }
#rv-actions .qchip { height: 40px; text-align: left; padding: 0 13px; flex: 1 0 auto; min-width: 88px; }
.rv-notes textarea.notes { min-height: 158px; background: var(--side); }
.rv-foot { background: var(--side); border-top: 0; padding: 18px 32px; }
.rv-foot #rv-reject { min-width: 112px; justify-content: flex-start; background: var(--card); border-color: transparent; }
.rv-foot #rv-suppress { color: var(--muted); font-weight: 400; }
.rv-foot .keys-row { gap: 6px; font: 11px/1 var(--mono); color: var(--muted); }
.rv-foot .keys-row kbd { margin-left: 22px; }
.rv-foot .keys-row kbd:first-child { margin-left: 0; }
.rv-foot #rv-approve, .rv-foot .btn.primary { min-width: 220px; height: 40px; justify-content: flex-start; }
.rv-foot #rv-approve span { margin-left: 6px; }
@media (max-width: 1180px) {
  .rv { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); }
  .pane.m { padding-right: 24px; }
  .pane.r { padding-left: 32px; }
}
@media (max-width: 820px) {
  .rv-top { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .rv-pos { gap: 12px; justify-self: end; }
  .rv-nav { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; }
  .rv-nav #rv-savestate { margin-right: 0; }
  .pane.m { padding: 16px; }
  textarea.body { min-height: 320px; }
  .rv-foot #rv-approve, .rv-foot .btn.primary { min-width: 0; }
}
#rv-approve { order: 9; }
.more-issues summary { cursor: pointer; font-size: 12px; color: var(--muted); padding-bottom: 16px; list-style: none; }
.more-issues summary::before { content: "+ "; color: var(--accent); }
.more-issues[open] summary::before { content: "− "; }

/* A lead's own page: the name and its stage, three actions, what it is worth; the audit,
   people and timeline on the left; where the email came from, tasks and the
   conversation on the right. */
.rec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.rec-title { display: grid; gap: 10px; min-width: 0; }
.rec-name { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.rec-name h1 { font-size: 34px; line-height: 42px; overflow-wrap: anywhere; }
.rec-name .tag { font-size: 11px; padding: 4px 10px; }
.rec-sub { font-size: 13px; }
.rec-acts { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.rec-acts .btn { height: 40px; min-width: 106px; justify-content: flex-start; }
.rec-acts .btn.primary { min-width: 171px; justify-content: space-between; }
.rec-stage-wrap .menu { left: 0; right: auto; width: 340px; padding: 16px; gap: 12px; }
.rec-stage-menu .chips { gap: 6px; }
.rec-stage-menu .qchip { font-size: 12px; padding: 7px 10px; }
.rec-stage-menu .kv-form { grid-template-columns: auto minmax(0, 1fr); }
.rec-stage-menu .input { height: 38px; font-size: 13px; }
.rec-value { display: grid; gap: 12px; justify-items: end; padding-right: 120px; padding-top: 6px; }
.rec-value b { font: 500 36px/1 var(--display); color: var(--head); letter-spacing: -.02em; }
.rec { grid-template-columns: minmax(0, 704fr) minmax(0, 408fr); gap: 22px 24px; }
.rec-col { gap: 22px; }
.panel.rec-panel { padding: 22px 20px; gap: 16px; border-radius: 6px; }
.panel.rec-panel h3 { font-size: 20px; line-height: 26px; }
.rec-audit { background: var(--paper); border-color: transparent; }
.rec-audit-h { display: flex; align-items: flex-start; gap: 36px; }
.rec-score { font: 500 48px/1 var(--display); color: var(--accent); letter-spacing: -.03em; min-width: 58px; }
.rec-score:not(.low) { color: var(--good-ink); }
.rec-audit-h h3 { margin-top: 4px; }
.rec-audit-h .muted { margin-top: 6px; }
.rec-audit .issues { gap: 6px; }
.rec-audit .issue { background: var(--card); border-radius: 3px; padding: 8px 10px; gap: 22px; align-items: baseline; font-size: 13px; color: var(--head); }
.rec-audit .issue b { font: 9px/1 var(--mono); color: var(--accent); }
.rec-audit small.muted { color: var(--accent); font-size: 12px; }
#rec-people .people { display: grid; }
.person { grid-template-columns: 140px minmax(0, 1fr); align-items: baseline; gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.person:first-of-type { padding-top: 4px; }
.person-h { display: contents; }
.person-h b { font-weight: 500; font-size: 13px; grid-column: 1; }
.person-h span { grid-column: 2; font-size: 12px; color: var(--muted); }
.person small { grid-column: 2; }
.person .tags { grid-column: 2; }
.rec-timeline { display: grid; gap: 16px; }
.rec-timeline h2 { font-size: 20px; line-height: 26px; }
.rec-timeline .ev .txt b { font-weight: 500; font-size: 13px; }
.ev .dotline i { width: 6px; height: 6px; background: var(--faint); margin-top: 7px; }
.ev.key .dotline i { background: var(--good); }
.ev .dotline u { width: 1px; background: var(--line); }
.mono-k dt { font: 9px/1.8 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.rec-panel .kv { grid-template-columns: 96px minmax(0, 1fr); gap: 16px 12px; font-size: 13px; }
.rec-panel .kv dd { color: var(--head); }
.rec-panel > small.muted { font-size: 11px; }
.rec-panel .trow.todo { background: none; border: 0; border-radius: 0; padding: 8px 0; }
.rec-convo { background: var(--good-soft); border-radius: 6px; padding: 22px 20px 26px; display: grid; gap: 18px; color: var(--good-ink); }
.rec-convo .eyebrow { color: #58644A; }
.rec-convo blockquote { margin: 0; font: 500 18px/27px var(--display); color: var(--good-ink); overflow-wrap: anywhere; }
.rec-convo small { font-size: 11px; color: #58644A; margin-top: 18px; }
@media (max-width: 1100px) {
  .rec-head { flex-direction: column; }
  .rec-value { justify-items: start; padding-right: 0; }
}
@media (max-width: 820px) {
  .person { grid-template-columns: 1fr; }
  .person-h b, .person-h span, .person small, .person .tags { grid-column: 1; }
  .rec-stage-wrap .menu { width: min(340px, calc(100vw - 32px)); }
}

/* Inbox: the replies as cards on the left, the conversation on the right */
.inbox { grid-template-columns: 336px minmax(0, 1fr); gap: 24px; background: none; border: 0; border-radius: 0; overflow: visible; min-height: 0; align-items: start; }
.ilist { background: none; border: 0; gap: 12px; }
.ilist .filters { padding: 0 0 6px; border: 0; gap: 10px; }
.ilist .filters .qchip { min-width: 66px; height: 40px; text-align: left; }
.irow { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 16px; gap: 10px; }
.irow:hover { background: var(--card); border-color: var(--faint); }
.irow.on { background: var(--accent-soft); border-color: var(--accent); box-shadow: none; }
.irow b { font-weight: 500; font-size: 14px; }
.irow small.mono { font-size: 9px; }
.irow p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12px; color: var(--ink2); margin-top: 6px; }
.thread { padding: 0; gap: 18px; }
.thread-h { align-items: flex-start; }
.thread h1 { font-size: 26px; line-height: 32px; }
.thread-h .muted { margin-top: 6px; font-size: 12px; }
.thread-h .acts .btn { height: 40px; min-width: 126px; justify-content: flex-start; }
.thread-msgs { gap: 16px; }
.msg { padding: 22px 20px; gap: 16px; }
.msg small.eyebrow { font-size: 9px; }
.msg .msg-body { font-size: 14px; line-height: 20px; color: var(--head); }
.msg.them { background: var(--good-soft); border-color: transparent; }
.msg.them .eyebrow { color: #58644A; }
.msg.them .msg-body { font: 500 18px/27px var(--display); color: var(--good-ink); }
.msg .msg-from { font-size: 11px; color: #58644A; }
.compose { padding: 20px; gap: 14px; }
.compose textarea.body { border: 0; padding: 4px 0; min-height: 110px; font-size: 15px; background: transparent; }
.compose textarea.body:focus { box-shadow: none; }
.compose .chips .qchip { height: 38px; padding: 0 13px; font-size: 13px; }
.compose-acts .btn { height: 40px; min-width: 140px; justify-content: flex-start; }
.ikeys { gap: 6px; font: 11px/1 var(--mono); color: var(--muted); padding: 0 0 0 360px; }
.ikeys kbd { margin-left: 22px; }
.ikeys kbd:first-child { margin-left: 0; }
@media (max-width: 1100px) {
  .inbox { grid-template-columns: 280px minmax(0, 1fr); }
  .ikeys { padding-left: 0; }
}
@media (max-width: 820px) {
  .inbox { grid-template-columns: 1fr; }
  .ikeys { display: none; }
}
