/* Acquisition screens, on the same board as app.css: one spacing scale, two
 * row heights, status as stripe + glyph + word, one accent that never means
 * "good", and panels rather than modals. Nothing here adds a colour. */

.navlink { text-decoration: none; display: inline-flex; align-items: center; }

/* Wide tables scroll inside themselves; the page never scrolls sideways. */
.table-wrap { overflow-x: auto; max-width: 100%; }
.table-wrap table { min-width: 36rem; }
#call-views { overflow-x: auto; scrollbar-width: thin; }
#call-views .viewtab { flex: none; }

/* A class that sets display must never out-rank the hidden attribute. */
[hidden] { display: none !important; }

.lede-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); max-width: none; }
.lede-row > div:first-child { max-width: 68ch; }
.lede-acts { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }

.section-h { font: 600 var(--t-body)/1.3 var(--sans); margin: var(--s5) 0 var(--s3); color: var(--ink); display: flex; gap: var(--s2); align-items: baseline; }
.section-h em { font-style: normal; font-family: var(--mono); font-size: var(--t-label); color: var(--faint); }
.section-h:first-child { margin-top: 0; }

.lines { display: flex; flex-direction: column; gap: var(--s1); font-size: var(--t-2nd); color: var(--soft); margin: 0 0 var(--s3); padding: 0; list-style: none; }
.lines li::before { content: "·"; color: var(--faint); margin-right: var(--s2); }

/* A table cell that may wrap: badges and reasons read better whole than truncated. */
tbody td.wrap { white-space: normal; line-height: 1.35; padding-top: var(--s1); padding-bottom: var(--s1); }
.badges { display: flex; flex-wrap: wrap; gap: var(--s1); }

/* The prior-contact badge must be seen before anything else on the row. */
.chip.prior { color: var(--ink); border-color: var(--ink); background: var(--raised); font-weight: 600; }

/* ── the lead workspace ──────────────────────────────────────────── */

.workspace { width: min(44rem, 100%); }
.ws-head h2 { font: 600 var(--t-title)/1.2 var(--sans); margin: 0 var(--s7) var(--s1) 0; letter-spacing: -.015em; }
.ws-sub { font-size: var(--t-2nd); color: var(--soft); margin: 0 0 var(--s3); }
.ws-alert { margin: var(--s3) 0; padding: var(--s3); font-size: var(--t-2nd); color: var(--bad);
  border-left: 3px solid var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); border-radius: 0 var(--radius) var(--radius) 0; }
.ws-hold { margin: var(--s3) 0; padding: var(--s3); font-size: var(--t-2nd); color: var(--warn);
  border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); border-radius: 0 var(--radius) var(--radius) 0; }

.ws-block { border-top: 1px solid var(--line-soft); padding-top: var(--s4); margin-top: var(--s4); }
.ws-block h3 { font: 500 var(--t-label)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 0 0 var(--s3); }

.phone { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.phone .number { font: 600 var(--t-title)/1.2 var(--mono); color: var(--ink); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.phone a { text-decoration: none; }

.prior-email { border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: var(--radius); padding: var(--s3); background: var(--surface); }
.prior-email dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--s1) var(--s3); margin: var(--s2) 0 0; font-size: var(--t-2nd); }
.prior-email dt { color: var(--faint); }
.prior-email dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
details summary { cursor: pointer; font-size: var(--t-2nd); color: var(--accent); margin-top: var(--s2); }
details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.opening { font-size: var(--t-body); color: var(--ink); line-height: 1.5; margin: 0; max-width: 62ch; }
.note { font-size: var(--t-label); color: var(--faint); margin: var(--s1) 0 0; }

.slots { display: flex; flex-direction: column; gap: var(--s2); margin: var(--s3) 0; }
.slots label { display: flex; gap: var(--s2); align-items: center; margin: 0; text-transform: none; letter-spacing: 0;
  font: 400 var(--t-body)/1.3 var(--sans); color: var(--ink); cursor: pointer; }
.slots input { width: auto; max-width: none; }

.inline-form { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; margin-top: var(--s2); }
/* min-width: 0 lets a select with long option text shrink instead of widening the page. */
.inline-form input, .inline-form select { width: auto; flex: 1 1 14rem; min-width: 0; max-width: 100%; }
.acts .inline-form { flex: 1 1 26rem; flex-wrap: nowrap; margin-top: 0; }
.acts .inline-form button { flex: none; }
#report-form select { flex: 0 0 auto; }

.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); font-size: var(--t-2nd); color: var(--soft); }
.history b { color: var(--ink); font-weight: 500; }

/* ── conversation, review, meeting cards ─────────────────────────── */

.thread { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
.msg-in, .msg-out { font-size: var(--t-2nd); padding: var(--s2) var(--s3); border-radius: var(--radius); border: 1px solid var(--line); max-width: 62ch; white-space: pre-wrap; }
.msg-in { background: var(--surface); border-left: 3px solid var(--accent); }
.msg-out { background: var(--raised); margin-left: var(--s6); }
.msg-meta { font-family: var(--mono); font-size: var(--t-label); color: var(--faint); display: block; margin-bottom: var(--s1); white-space: normal; }

.card.need { border-left-color: var(--warn); }
.card.block { border-left-color: var(--bad); }
.card.ready { border-left-color: var(--ok); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--s1) var(--s3); font-size: var(--t-2nd); margin: var(--s3) 0 0; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; color: var(--soft); overflow-wrap: anywhere; }

.check-row { display: flex; gap: var(--s2); align-items: flex-start; font-size: var(--t-2nd); color: var(--soft); margin: var(--s2) 0; }
.check-row input { width: auto; max-width: none; margin-top: 2px; }
.check-row label { margin: 0; text-transform: none; letter-spacing: 0; font: 400 var(--t-2nd)/1.3 var(--sans); color: var(--soft); }

/* ── setup: the readiness list ───────────────────────────────────── */

.ready-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ready-list > div { display: grid; grid-template-columns: 20px minmax(12rem, 22rem) 1fr; gap: var(--s3); padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--line-soft); border-left: 3px solid transparent; font-size: var(--t-2nd); align-items: baseline; }
.ready-list > div:last-child { border-bottom: 0; }
.ready-list .ok { border-left-color: var(--ok); }
.ready-list .no { border-left-color: var(--warn); }
.ready-list .g { font-family: var(--mono); }
.ready-list .ok .g { color: var(--ok); }
.ready-list .no .g { color: var(--warn); }
.ready-list b { color: var(--ink); font-weight: 500; }
.ready-list span { color: var(--soft); overflow-wrap: anywhere; }

.grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0 var(--s4); max-width: 60rem; }
.grid-form label { margin-top: var(--s3); }
.token { font-family: var(--mono); font-size: var(--t-2nd); padding: var(--s3); background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--radius); overflow-wrap: anywhere; margin-top: var(--s3); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .lede-row { flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) {
  .ready-list > div { grid-template-columns: 20px minmax(0, 1fr); row-gap: var(--s1); }
  .ready-list > div > span:not(.g) { grid-column: 2; }
  .acts .inline-form { flex-wrap: wrap; }
}

@media print {
  .top, .views, .lede-acts, .drawer, .gate { display: none !important; }
}
