/* ATN Workflow Interview - shared styles.
   Brand: ATN red (#EF3B2D) and charcoal, from the ATN logo and atncorp.com. Light content area for long reading
   sessions; the charcoal top bar carries the logo. Red is kept for the brand and for "live"/recording signals, so
   it never competes with the main action buttons (charcoal). */

:root {
  --brand: #EF3B2D; --brand-dark: #C42A1E; --brand-soft: #FDECEA;
  --charcoal: #1C1D21; --charcoal-2: #2B2D33; --charcoal-3: #3A3D44;
  --bg: #F3F4F6; --surface: #FFFFFF; --surface-2: #F8F9FB; --surface-3: #EEF0F3;
  --text: #1B1E24; --muted: #5C6370; --faint: #8A909B; --line: #E3E6EB; --line-2: #D3D7DE;
  --ok: #1E7A47; --ok-soft: #E7F5EC; --warn: #9A5A00; --warn-soft: #FFF4E0;
  --danger: #C42A1E; --danger-soft: #FDECEA; --info: #2458C9; --info-soft: #EAF0FD;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 19, 24, .05), 0 6px 20px rgba(17, 19, 24, .06);
  --shadow-lg: 0 2px 4px rgba(17, 19, 24, .06), 0 16px 40px rgba(17, 19, 24, .10);
  --focus: 0 0 0 3px rgba(239, 59, 45, .35);
  --page: 1200px;
  /* legacy names still used by inline styles in scripts */
  --accent: var(--charcoal); --accent-soft: var(--info-soft); --grey-soft: var(--surface-3); --card: var(--surface);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* class display rules must never override the hidden attribute */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 19px/1.55 "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.admin { --page: 1575px; }
main { max-width: var(--page); margin: 0 auto; padding: 28px 20px 72px; }
main.wide { max-width: 1575px; }
h1, h2, h3 { color: var(--text); letter-spacing: -0.01em; }
h1 { font-size: 32px; font-weight: 700; margin: 0 0 6px; line-height: 1.2; }
h2 { font-size: 24px; font-weight: 650; margin: 0 0 12px; line-height: 1.3; }
h3 { font-size: 21px; font-weight: 650; margin: 20px 0 8px; }
a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
p { margin: 0 0 12px; }
.subtitle { color: var(--muted); font-size: 19px; margin: 0 0 22px; }

/* ---------- top bar with the ATN logo ---------- */
.topbar { background: var(--charcoal); border-bottom: 3px solid var(--brand); color: #F2F3F5; }
.topbar-inner { max-width: var(--page); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.topbar .logo { height: 44px; width: auto; display: block; }
.topbar .product { font-size: 18px; font-weight: 600; letter-spacing: .02em; padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, .22); color: #EDEEF0; }
.topbar .spacer { flex: 1; }
.topbar .topbar-meta { color: #B7BBC4; font-size: 17px; display: flex; align-items: center; gap: 12px; }
.topbar .topbar-meta button.secondary { background: transparent; color: #E9EAED; border-color: rgba(255, 255, 255, .25); }
.topbar .topbar-meta button.secondary:hover { background: rgba(255, 255, 255, .08); }
.brand { display: none; } /* replaced by the top bar */

/* ---------- cards & layout ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px;
  margin-bottom: 18px; box-shadow: var(--shadow); }
.card > h2:first-child { margin-top: 0; }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.plain { padding-left: 22px; margin: 10px 0 18px; }
.plain li { margin: 6px 0; }
.hint, .meta { color: var(--muted); font-size: 17px; font-weight: 400; }
.who { font-weight: 650; }
.grid-2 { display: grid; gap: 4px 24px; }

/* checklist (welcome / instructions) */
ul.checks { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 12px; }
ul.checks li { position: relative; padding-left: 38px; }
ul.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C42A1E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* ---------- forms ---------- */
form.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 18px; }
form.grid .wide { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 17px; color: var(--text); }
label .hint { font-weight: 400; }
input, textarea, select {
  padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: inherit; font-size: 18px;
  background: #fff; color: var(--text); width: 100%; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--charcoal-3); box-shadow: var(--focus); }
textarea { min-height: 84px; resize: vertical; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
label.check input { width: 20px; height: 20px; accent-color: var(--brand); }

/* ---------- buttons ---------- */
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--charcoal); color: #fff; font: inherit; font-size: 18px; font-weight: 600; line-height: 1.2;
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
button:hover, .button:hover { background: var(--charcoal-3); color: #fff; }
button:active { transform: translateY(1px); }
button:focus-visible, .button:focus-visible, a:focus-visible { outline: none; box-shadow: var(--focus); }
button:disabled, button:disabled:hover { opacity: .45; cursor: default; background: var(--charcoal); transform: none; }
button.secondary, .button.secondary { background: #fff; color: var(--text); border-color: var(--line-2); }
button.secondary:hover, .button.secondary:hover { background: var(--surface-2); border-color: #BFC5CE; color: var(--text); }
button.secondary:disabled { background: #fff; }
button.danger { background: #fff; color: var(--danger); border-color: #F0B4AE; }
button.danger:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
button.primary-red { background: var(--brand); }
button.primary-red:hover { background: var(--brand-dark); }
button.small, .button.small { padding: 7px 13px; font-size: 16px; border-radius: 8px; }
button.big { padding: 15px 26px; font-size: 19px; border-radius: 12px; }
button svg, .button svg { width: 20px; height: 20px; flex: none; }
button.small svg { width: 17px; height: 17px; }
.danger-text { color: var(--danger) !important; }

/* segmented control (voice / text) */
.segmented { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-3); border: 1px solid var(--line);
  border-radius: 12px; }
.segmented button { background: transparent; color: var(--muted); border: 0; padding: 8px 14px; border-radius: 9px; }
.segmented button:hover { background: rgba(255, 255, 255, .7); color: var(--text); }
.segmented button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(17, 19, 24, .12); }

/* ---------- messages ---------- */
.error, .notice, .banner { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; }
.error { color: var(--danger); background: var(--danger-soft); border-color: #F5C2BC; }
.notice { background: var(--warn-soft); border-color: #F1D6A8; color: #5C3A00; }
.banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--warn-soft); border-color: #F1D6A8;
  color: #5C3A00; font-weight: 500; }
.banner .grow { flex: 1; min-width: 220px; }

/* ---------- interview: session bar ---------- */
.session-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.status { display: flex; align-items: center; gap: 12px; }
.status .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--faint); flex: none;
  box-shadow: 0 0 0 4px rgba(138, 144, 155, .18); }
.status[data-state="live"] .dot { background: #23A15A; box-shadow: 0 0 0 4px rgba(35, 161, 90, .18); }
.status[data-state="listening"] .dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(239, 59, 45, .2);
  animation: pulse 1.2s ease-in-out infinite; }
.status[data-state="speaking"] .dot { background: var(--info); box-shadow: 0 0 0 4px rgba(36, 88, 201, .18);
  animation: pulse 1.6s ease-in-out infinite; }
.status[data-state="paused"] .dot { background: #E0A100; box-shadow: 0 0 0 4px rgba(224, 161, 0, .2); }
.status .who { font-size: 20px; }
@keyframes pulse { 50% { transform: scale(.72); opacity: .7; } }

/* ---------- show me (screenshots / screen sharing) ---------- */
.showme { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.showme label.hint { font-weight: 500; }
.recbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 999px; background: var(--danger-soft);
  color: var(--danger); font-weight: 650; margin-top: 12px; border: 1px solid #F5C2BC; }
.recdot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumbs img { height: 76px; border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- transcript as a chat ---------- */
.transcript { list-style: none; padding: 20px; margin: 18px 0 0; display: flex; flex-direction: column; gap: 14px;
  max-height: 58vh; min-height: 220px; overflow-y: auto; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; scroll-behavior: smooth; }
.transcript li { max-width: min(78%, 760px); padding: 12px 16px 13px; border-radius: 16px; line-height: 1.5; }
.transcript li.agent { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-top-left-radius: 6px;
  box-shadow: 0 1px 2px rgba(17, 19, 24, .04); }
.transcript li.staff { align-self: flex-end; background: var(--charcoal); color: #F4F5F7; border-top-right-radius: 6px; }
.transcript li.event { align-self: center; max-width: 90%; background: transparent; color: var(--muted); font-size: 16px;
  padding: 4px 14px; border: 1px dashed var(--line-2); border-radius: 999px; }
.transcript .speaker { font-size: 15px; font-weight: 650; letter-spacing: .02em; color: var(--faint); margin-bottom: 4px;
  display: flex; align-items: center; gap: 2px; }
.transcript li.agent .speaker { color: var(--brand-dark); }
.transcript li.staff .speaker { color: rgba(244, 245, 247, .62); justify-content: flex-end; }
.transcript li .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.transcript li .images { display: flex; flex-wrap: wrap; gap: 8px; }
.transcript li .images img { max-height: 140px; max-width: 100%; border-radius: 8px; margin-top: 8px; }
.transcript li.edited .speaker::after { content: " · " attr(data-edited); font-weight: 400; }
.transcript li textarea { margin-top: 6px; color: var(--text); }
.transcript li.staff textarea { background: #fff; }
.edit-btn { background: none; border: 0; color: inherit; padding: 0 0 0 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.edit-btn:hover { background: none; opacity: 1; color: inherit; }
.transcript li.staff .edit-btn { color: #FFB1A9; }
.transcript li.agent .edit-btn { color: var(--brand-dark); }

/* ---------- composer (type / attach) ---------- */
.composer { margin-top: 16px; }
.composer-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; background: #fff; border: 1px solid var(--line-2);
  border-radius: 14px; padding: 8px; box-shadow: var(--shadow); }
.composer-row:focus-within { border-color: var(--charcoal-3); box-shadow: var(--focus); }
.composer-row textarea { flex: 1 1 320px; min-height: 60px; border: 0; box-shadow: none; padding: 10px 12px; }
.composer-row textarea:focus { box-shadow: none; }
.composer-buttons { display: flex; gap: 8px; padding: 4px; }
.composer .hint { margin-top: 8px; min-height: 1em; }
.attachments { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.attachment { display: grid; gap: 6px; justify-items: start; }
.attachment img { height: 76px; border-radius: 8px; border: 1px solid var(--line); }
#interview.dropping { outline: 3px dashed var(--brand); outline-offset: 6px; }

/* ---------- welcome / ended ---------- */
.hero-card { padding: 34px 38px; }
.hero-card .lead { font-size: 21px; margin-bottom: 14px; }
.start-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ended-card { text-align: center; padding: 44px 32px; }
.ended-card .badge { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--ok-soft); color: var(--ok);
  display: grid; place-items: center; }
.ended-card .badge svg { width: 34px; height: 34px; }

/* ---------- tables, pills, tabs ---------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 17px; }
th, td { text-align: left; vertical-align: top; padding: 12px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-weight: 650; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); }
tr:hover td { background: #FBFBFC; }
.pill { display: inline-block; font-size: 15px; font-weight: 600; padding: 3px 11px; border-radius: 999px;
  background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.blue { background: var(--info-soft); color: var(--info); }
.pill.bad { background: var(--danger-soft); color: var(--danger); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 16px; padding: 4px; background: var(--surface-3);
  border-radius: 12px; border: 1px solid var(--line); }
.tabs button { background: transparent; color: var(--muted); border: 0; padding: 8px 14px; border-radius: 9px; font-size: 17px; }
.tabs button:hover { background: rgba(255, 255, 255, .7); color: var(--text); }
.tabs button.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(17, 19, 24, .12); }
pre.json { white-space: pre-wrap; font-size: 16px; background: var(--surface-2); border: 1px solid var(--line); padding: 14px;
  border-radius: 10px; max-height: 60vh; overflow: auto; }
video { width: 100%; max-height: 440px; background: #000; border-radius: 10px; }

/* ---------- admin ---------- */
details.card > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: "›"; display: inline-block; font-size: 26px; line-height: 1; color: var(--faint);
  transition: transform .15s; }
details.card[open] > summary::before { transform: rotate(90deg); }
details.card[open] > summary { margin-bottom: 12px; }
.models { display: grid; gap: 16px; }
.model-row { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 6px 20px; align-items: start; }
.model-row select { max-width: 520px; }
textarea.plan { min-height: 340px; font-family: "Cascadia Code", Consolas, "Segoe UI Mono", monospace; font-size: 16px; }
.tune { display: grid; gap: 18px; }
.tune .model-row textarea { min-height: 90px; }
.tune .changed { color: var(--warn); font-weight: 650; font-size: 14px; margin-left: 8px; }
.tune details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--surface-2); }
.tune details summary { cursor: pointer; font-weight: 650; }
.tune details .model-row { margin-top: 10px; }

/* ---------- login ---------- */
.login-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 440px; }

@media (max-width: 760px) {
  main { padding: 20px 14px 56px; }
  .card { padding: 18px 18px; }
  .hero-card { padding: 24px 20px; }
  .transcript li { max-width: 92%; }
  .model-row { grid-template-columns: 1fr; }
  .topbar .product { display: none; }
  h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* file pickers */
input[type="file"] { width: auto; padding: 6px; border-style: dashed; background: var(--surface-2); font-size: 16px; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-right: 12px; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--line-2); background: #fff; color: var(--text); cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--surface-3); }

/* ---------- admin navigation ---------- */
.topnav { display: flex; gap: 4px; margin-left: 8px; }
.topnav a { color: #C9CCD3; text-decoration: none; font-size: 17px; font-weight: 600; padding: 7px 12px; border-radius: 8px; }
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.topnav a.active { color: #fff; background: rgba(255, 255, 255, .12); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600;
  font-size: 17px; margin-bottom: 12px; }
.back:hover { color: var(--text); }

/* ---------- person file ---------- */
.person-head h1 { margin-bottom: 2px; }
.stepper { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding: 0; margin: 20px 0 6px; counter-reset: step; }
.stepper li { flex: 1 1 120px; position: relative; padding: 30px 6px 0; text-align: center; font-size: 15px; font-weight: 600;
  color: var(--faint); }
.stepper li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); color: var(--muted); display: grid; place-items: center;
  font-size: 14px; border: 2px solid var(--line-2); z-index: 1; }
.stepper li::after { content: ""; position: absolute; top: 12px; left: calc(-50% + 13px); right: calc(50% + 13px); height: 2px;
  background: var(--line-2); }
.stepper li:first-child::after { display: none; }
.stepper li.done { color: var(--text); }
.stepper li.done::before { content: "✓"; background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.stepper li.done::after, .stepper li.current::after { background: var(--charcoal); }
.stepper li.current { color: var(--brand-dark); }
.stepper li.current::before { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(239, 59, 45, .18); }

.person-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.side-nav { position: sticky; top: 16px; display: grid; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); }
.side-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 16px; padding: 8px 12px; border-radius: 8px;
  display: flex; justify-content: space-between; gap: 8px; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a .count { color: var(--faint); font-weight: 500; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 17px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.empty { color: var(--muted); padding: 18px; text-align: center; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 12px; }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.link-row:last-child { border-bottom: 0; }
.link-row b { min-width: 120px; }
.link-row a { flex: 1; min-width: 200px; overflow-wrap: anywhere; font-size: 16px; }
.modules { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.media-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.media-card img { width: 100%; border-radius: 8px; margin-top: 10px; }

/* ---------- analysis ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 6px 0 20px; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat .num { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: 15px; font-weight: 600; margin-top: 4px; }
.stat.accent .num { color: var(--brand-dark); }
.bars { display: grid; gap: 8px; margin: 8px 0 20px; }
.bar { display: grid; grid-template-columns: minmax(160px, 34%) 1fr 70px; gap: 12px; align-items: center; font-size: 16px; }
.bar .track { height: 14px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--charcoal-3); border-radius: 999px; }
.bar .fill.build_first { background: var(--brand); }
.bar .fill.quick_win { background: #E58A00; }
.bar .fill.agent_assists { background: var(--info); }
.bar .val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 22px; }
.quad { border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); min-height: 110px; }
.quad h4 { margin: 0 0 4px; font-size: 17px; }
.quad .hint { font-size: 14px; margin-bottom: 8px; }
.quad.build_first { background: #FFF1EF; border-color: #F7C5BF; }
.quad.quick_win { background: #FFF6E6; border-color: #F3D9A8; }
.quad.agent_assists { background: var(--info-soft); border-color: #C9D7F6; }
.quad.leave_as_is { background: var(--surface-2); }
.chip { display: inline-block; margin: 3px 4px 3px 0; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 15px; font-weight: 500; }
.agent-list { display: grid; gap: 14px; }
.agent-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: #fff; box-shadow: var(--shadow); }
.agent-card .agent-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: baseline; }
.agent-card .agent-head h3 { margin: 0; }
.agent-card .meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px; }
.agent-card .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 22px; font-size: 16px; }
.agent-card .cols h4 { margin: 10px 0 4px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.agent-card ul { margin: 0; padding-left: 20px; }
.callout { padding: 12px 16px; border-radius: 10px; background: var(--warn-soft); border: 1px solid #F1D6A8; color: #5C3A00; margin: 10px 0; }
.callout.info { background: var(--info-soft); border-color: #C9D7F6; color: #1D3E8F; }
.callout.ok { background: var(--ok-soft); border-color: #BFE3CD; color: #175C36; }
details.block { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; background: var(--surface-2); }
details.block > summary { cursor: pointer; font-weight: 650; }
.steps-table td:first-child { color: var(--faint); width: 40px; }

/* ---------- follow-up questions ---------- */
.fu-list { display: grid; gap: 10px; margin: 12px 0; }
.fu-q { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.fu-q.approved { border-color: #C9D7F6; box-shadow: inset 4px 0 0 var(--info); }
.fu-q.asked { background: var(--surface-2); }
.fu-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3);
  color: var(--muted); font-weight: 700; font-size: 15px; }
.fu-text { font-size: 17px; font-weight: 550; }
.fu-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.fu-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.fu-add { display: grid; gap: 8px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.fu-add button { justify-self: start; }
@media (max-width: 760px) { .fu-q { grid-template-columns: 28px minmax(0, 1fr); } .fu-actions { grid-column: 2; justify-content: flex-start; } }

/* ---------- opportunities ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.filters > * { flex: 1 1 170px; width: auto; min-width: 0; }
.filters > input[type=search] { flex: 2 1 260px; }
.table-wrap { overflow-x: auto; }
table.opps td { vertical-align: top; }
table.opps .rank { color: var(--faint); font-variant-numeric: tabular-nums; width: 36px; }
table.opps .opp-name { font-weight: 650; margin-right: 6px; }
table.opps .pill { margin-right: 4px; }
table.opps .numcell { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.opps tr.muted td { opacity: .55; }
table.opps .decision { min-width: 190px; }
table.opps .decision select, table.opps .decision input { width: 100%; margin-bottom: 6px; padding: 7px 10px; font-size: 16px; }
.decision select.status-approved { border-color: #C9D7F6; background: var(--info-soft); }
.decision select.status-building { border-color: #F1D6A8; background: var(--warn-soft); }
.decision select.status-live { border-color: #BFE3CD; background: var(--ok-soft); }
.decision select.status-rejected { border-color: #F5C2BC; background: var(--danger-soft); }
tr.opp-detail > td { background: var(--surface-2); }
tr.opp-detail .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 22px; font-size: 16px; }
tr.opp-detail h4 { margin: 8px 0 4px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
tr.opp-detail ul { margin: 0; padding-left: 20px; }

@media (max-width: 980px) {
  .person-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .matrix { grid-template-columns: 1fr; }
  .stat-row.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .topbar, .side-nav, .back, .no-print, button, .button { display: none !important; }
  body { background: #fff; font-size: 13pt; }
  main { max-width: none; padding: 0; }
  .person-layout { display: block; }
  .card, .agent-card { box-shadow: none; break-inside: avoid; }
  .transcript { max-height: none; overflow: visible; }
  a { color: inherit; text-decoration: none; }
}
