/* ⚒️⌘ # build.signature = vmgs::mx:2026 ⌘⚒️ */
/* Visual identity ported from sift/globals.css (Flinn-style: light chrome, teal accent). */
:root {
  --navy: #143843;        /* brand ink — sidebar wordmark, headings */
  --navy-2: #155b66;      /* secondary ink accent */
  --teal: #0e7c6f;        /* Sift accent */
  --teal-d: #155b66;      /* Sift accent-dark — primary buttons/links */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7f8;
  --ink: #16211d;
  --muted: #5c6b66;
  --line: #e7eaed;
  --good: #1a8f5a;
  --warn: #b9770a;
  --bad: #c0392b;
  --brand: #155b66;       /* was referenced but undefined upstream — now aliased to accent-dark */
  --brand-2: #0e7c6f;     /* was referenced but undefined upstream — now aliased to accent */
  --accent-soft: #e6f4f1;
  --good-soft: #e3f5ec;
  --warn-soft: #fbf1de;
  --bad-soft: #fbeae8;
  --shadow: 0 1px 2px rgba(20,40,60,.05), 0 2px 8px rgba(20,40,60,.04);
  --font-display: "Be Vietnam Pro", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Be Vietnam Pro", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.access-screen { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 24px; background: var(--surface-2); border-top: 6px solid var(--teal); }
.access-content { width: 100%; max-width: 460px; }
.access-brand { color: var(--teal-d); font-size: 18px; font-weight: 700; }
.access-content h1 { margin: 16px 0; font-size: 28px; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }
.access-content p { min-height: 48px; overflow-wrap: anywhere; }
.access-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.access-actions button { max-width: 100%; white-space: normal; }

/* topbar */
.topbar {
  height: 56px; background: var(--surface); color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.app-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -.2px; color: var(--navy); }
.mode-pill { font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.mode-pill.live { background: var(--good-soft); color: var(--good); border-color: transparent; }
.mode-pill.mock { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.icon-btn { background: transparent; border: none; color: var(--ink); font-size: 16px; cursor: pointer; opacity: .85; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); opacity: 1; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--teal-d); display: grid; place-items: center; font-weight: 600; }
.identity { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.identity:hover { background: #eef0f1; border-color: #c4ccd6; }
.identity .id-edit { opacity: .55; margin-left: 2px; }

/* layout */
.layout { display: flex; height: calc(100vh - 56px); }
.sidebar {
  width: 264px; background: #f7f8f8; color: var(--ink); padding: 16px 12px;
  display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; border-right: 1px solid var(--line);
}
.sidebar.collapsed { display: none; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 4px 6px; }
.brand .logo-mark { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; background: linear-gradient(135deg, var(--teal), var(--teal-d)); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.brand h1 { margin: 0; font-family: var(--font-display); font-size: 18px; line-height: 1; font-weight: 700; letter-spacing: -.4px; color: var(--navy); }
.brand .brand-sub { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.new-practice { background: var(--teal-d); color: #fff; border: none; border-radius: 10px; padding: 12px; font-weight: 600; cursor: pointer; font-size: 14px; }
.new-practice:hover { background: #104651; }
.rail-label { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 4px 4px 0; }
.history { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.history .empty { color: var(--muted); padding: 4px; }
.hist-item { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.hist-item:hover { border-color: var(--teal); background: var(--accent-soft); }
.hist-item .ht { font-size: 13px; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-item .hmeta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.hist-del { position: absolute; top: 6px; right: 6px; background: transparent; border: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 2px 5px; border-radius: 6px; opacity: 0; }
.hist-item:hover .hist-del { opacity: 1; }
.hist-del:hover { background: var(--bad); color: #fff; }
.hist-item .pill { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.rail-foot { color: var(--muted); opacity: .8; font-size: 11px; padding: 2px 4px; }

/* content */
.content { flex: 1; overflow-y: auto; padding: 32px 36px; background: var(--bg); }
.view { max-width: 780px; margin: 0 auto; }
.view.center { display: grid; place-items: center; min-height: 60vh; }
.view-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
h1 { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.5px; color: var(--navy); margin: 6px 0; }
h2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--navy); margin: 0; }
h3 { margin: 0 0 4px; font-weight: 600; }
.lede { color: var(--muted); margin: 0 0 24px; }
#setup h1 { margin-bottom: 28px; }

/* setup steps */
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.step-head { font-weight: 700; color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.step-num { color: #fff; background: var(--teal); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  text-align: left; display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font: inherit;
  transition: border-color .12s, background .12s;
}
.option:hover { border-color: var(--teal); }
.option.selected { border-color: var(--teal); background: var(--accent-soft); }
.option.disabled { opacity: .55; cursor: not-allowed; background: var(--surface-2); }
.option .ico { width: 34px; height: 34px; border-radius: 8px; background: var(--teal-d); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.option .ico.td { background: var(--navy); }
.option .otext { flex: 1; }
.option .oname { font-weight: 600; }
.option .osub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.option .check { color: var(--teal); font-weight: 700; }
.tag-pill { font-weight: 600; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.tag-low { background: var(--good-soft); color: var(--good); }
.tag-medium { background: var(--warn-soft); color: var(--warn); }
.tag-high { background: var(--bad-soft); color: var(--bad); }
.tag-active { background: var(--good-soft); color: var(--good); }
.tag-invited { background: var(--surface-2); color: var(--muted); }
.err { color: var(--bad); font-weight: 600; }

.setup-actions { display: flex; gap: 12px; align-items: center; margin: 4px 0 14px; }
.disclaimer { color: var(--muted); font-size: 12px; text-align: center; margin-top: 8px; }

input, textarea, select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }

button { cursor: pointer; font: inherit; border-radius: 9px; border: 1px solid var(--line); padding: 10px 16px; font-weight: 500; transition: all .12s; background: var(--surface); color: var(--ink); }
.primary { background: var(--teal-d); color: #fff; border-color: var(--teal-d); font-weight: 600; }
.primary:hover { background: #104651; border-color: #104651; }
.primary.lg { padding: 12px 22px; font-size: 15px; border-radius: 10px; }
.ghost { background: var(--surface); color: var(--navy); border-color: var(--line); }
.ghost.sm, .danger.sm { padding: 6px 12px; font-size: 12.5px; }
.danger { background: var(--surface); color: var(--bad); border-color: #e6c3be; }
.danger:hover { background: var(--bad-soft); }
.neutral { background: var(--surface-2); color: var(--ink); }

/* cards (library) */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px){ .cards { grid-template-columns: 1fr; } }
.card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; cursor: pointer; box-shadow: var(--shadow); }
.card:hover { border-color: var(--teal); }
.card h4 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 13px; }
.card .persona { margin-top: 10px; font-size: 12px; color: var(--teal-d); font-weight: 600; }

/* generating */
.gen-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 44px 60px; text-align: center; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--teal); margin: 0 auto 16px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* call */
.call-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.call-id { display: flex; align-items: center; gap: 10px; }
.call-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; }
.call-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.latency-chip { font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.latency-chip b.good { color: var(--good); } .latency-chip b.warn { color: var(--warn); }
.timer-chip { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--teal-d); background: var(--accent-soft); border: 1px solid #bfe3dc; padding: 5px 11px; border-radius: 999px; }
.timer-chip.urgent { color: var(--bad); background: var(--bad-soft); border-color: #e6c3be; }

.transcript { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-height: 50vh; max-height: 62vh; overflow-y: auto; box-shadow: var(--shadow); }
.msg { margin-bottom: 14px; }
.msg .who { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.msg .body { line-height: 1.55; }
.msg.coach .body { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; color: var(--ink); }
.msg.customer .body { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: inline-block; }
.msg.rep { text-align: right; }
.msg.rep .body { background: var(--teal-d); color: #fff; border-radius: 10px; padding: 10px 12px; display: inline-block; text-align: left; }
.msg .ts { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* composer */
.composer { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.voice-btn { background: var(--accent-soft); color: var(--teal-d); border: 1px solid var(--teal); }
.voice-btn.active { background: var(--teal); color: #fff; }
.voice-btn:disabled { opacity: .5; cursor: not-allowed; background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.text-input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; outline: none; background: var(--surface); color: var(--ink); }
.text-input:focus { border-color: var(--teal); }
.send-btn { background: var(--surface); border: 1px solid var(--teal); color: var(--teal-d); width: 44px; border-radius: 10px; }

/* voice overlay */
.voice-overlay { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 50vh; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.voice-state { font-weight: 700; margin-top: 10px; color: var(--navy); }
.blob {
  width: 180px; height: 180px; border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 40% 40%, #bdeaea, var(--teal) 60%, var(--teal-d));
  filter: blur(.3px); animation: morph 4s ease-in-out infinite, pulse 2.2s ease-in-out infinite;
}
@keyframes morph { 0%,100% { border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%; } 50% { border-radius: 54% 46% 58% 42% / 44% 56% 44% 56%; } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.voice-controls { display: flex; gap: 10px; margin-top: 14px; }

/* feedback */
.score-head { display: flex; align-items: center; gap: 20px; margin: 10px 0 14px; }
.overall { font-family: var(--font-display); font-size: 46px; font-weight: 700; color: var(--navy); }
.overall small { font-size: 18px; color: var(--muted); font-weight: 400; }
.score-meta-block { display: flex; flex-direction: column; gap: 4px; }
.overall-pct { font-size: 22px; font-weight: 700; color: var(--ink); }
.overall-band { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; display: inline-block; width: fit-content; }
.band-excellent { background: var(--good-soft); color: var(--good); }
.band-solid { background: var(--accent-soft); color: var(--brand-2); }
.band-surface { background: var(--warn-soft); color: var(--warn); }
.band-poor { background: var(--bad-soft); color: var(--bad); }
.coaching-priority { background: var(--accent-soft); border: 1px solid var(--teal); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; line-height: 1.5; }
.cp-label { display: inline-block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--teal-d); margin-right: 8px; }
.section-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; margin: 18px 0 10px; }
.bullets { margin: 0 0 8px; padding-left: 20px; line-height: 1.6; }
.improvements { display: grid; gap: 10px; }
.improvement { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.imp-what { font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.imp-line { font-size: 13px; color: var(--muted); margin-top: 2px; }
.imp-line b { color: var(--navy); margin-right: 4px; }
.dim-comment { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.dims { display: grid; gap: 10px; margin-bottom: 16px; }

/* trust trajectory */
.trust-block { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 8px; }
.trust-chart { position: relative; }
.spark { width: 100%; height: 90px; display: block; }
.trust-end { text-align: right; font-size: 12px; font-weight: 700; margin-top: -6px; }
.trust-points { display: grid; gap: 4px; margin-top: 8px; }
.tp { display: grid; grid-template-columns: 38px 150px 1fr; gap: 8px; align-items: baseline; font-size: 12px; }
.tp-trust { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.tp-label { font-weight: 600; color: var(--ink); }
.tp-note { color: var(--muted); }

/* ideal responses */
.ideal-head { display: flex; align-items: center; justify-content: space-between; }
.exemplars { display: grid; gap: 10px; margin-top: 8px; }
.exemplar { border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.ex-moment { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.ex-line { font-size: 13px; color: var(--muted); margin-top: 3px; }
.ex-ideal { font-size: 13px; color: var(--ink); margin-top: 3px; background: var(--accent-soft); border-radius: 8px; padding: 8px 10px; }
.ex-line b, .ex-ideal b { color: var(--navy); margin-right: 4px; }
.ex-src { font-size: 11px; color: var(--muted); margin-top: 6px; font-style: italic; }
.dim { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.dim-head { display: flex; justify-content: space-between; }
.dim-name { font-weight: 600; } .dim-score { font-weight: 700; color: var(--navy); }
.bar { height: 6px; border-radius: 999px; background: var(--line); margin-top: 8px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--teal); }
.dim-evidence { color: var(--muted); font-size: 13px; font-style: italic; margin: 6px 0 0; }
.feedback { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; line-height: 1.5; }

/* knowledge */
.nav-knowledge { background: var(--surface); color: var(--navy-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px; font-weight: 600; cursor: pointer; text-align: left; font-size: 14px; }
.nav-knowledge:hover { background: var(--accent-soft); border-color: var(--teal); }
.kn-head-actions { display: flex; gap: 8px; }
.kn-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.kn-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.kn-chip b { color: var(--navy); }
.kn-chip.warn { background: var(--warn-soft); border-color: #f0d9ad; color: var(--warn); }
.kn-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.kn-toggle { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.kn-results { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.kn-result { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.kn-result .src { font-size: 12px; color: var(--teal-d); font-weight: 600; }
.kn-result .snip { font-size: 13px; color: var(--muted); margin-top: 4px; }
.kn-upload-status { font-size: 13px; color: var(--muted); margin-bottom: 8px; min-height: 0; }
.kn-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.kn-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.kn-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.kn-table tr:last-child td { border-bottom: none; }
.kn-table tr:hover td { background: var(--surface-2); }
.kn-table tr.retired td { opacity: .5; }
.kn-fname { font-weight: 600; color: var(--ink); }
.badge { font-size: 11px; padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.badge.active { background: var(--good-soft); color: var(--good); }
.badge.retired { background: var(--surface-2); color: var(--muted); }
.kn-act { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 5px 11px; font-size: 12px; cursor: pointer; font-weight: 500; }
.kn-act:hover { border-color: #c4ccd6; }
.kn-act.retire { color: var(--bad); border-color: #e6c3be; }
.kn-act.retire:hover { background: var(--bad-soft); }
.kn-act.restore { color: var(--teal-d); border-color: var(--teal); }
.kn-act.restore:hover { background: var(--accent-soft); }

/* admin tabs */
.admin-tabs { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.admin-tabs button { background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--muted); padding: 10px 2px; font-weight: 500; font-size: 14.5px; cursor: pointer; border-radius: 0; margin-bottom: -1px; }
.admin-tabs button:hover { color: var(--ink); }
.admin-tabs button.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.llm-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.llm-row > label { min-width: 200px; font-weight: 600; display: flex; flex-direction: column; font-size: 13px; }
.llm-row .text-input, .llm-row .rev-select { flex: 1; min-width: 240px; }

/* SME review */
.rev-gen { display: flex; gap: 8px; align-items: center; }
.rev-select { font: inherit; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.rev-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.rev-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.rev-title { font-weight: 600; }
.rev-meta { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rev-actions { display: flex; gap: 6px; flex-shrink: 0; }
.rev-warn { background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 9px 11px; font-size: 12px; font-weight: 600; margin: 14px 0 10px; }
.rev-h { margin: 14px 0 6px; font-size: 14px; font-weight: 600; }
.rev-facts { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.rev-layer { border: 1px solid var(--line); border-left: 3px solid var(--brand-2); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.rev-layer-head { font-weight: 700; color: var(--navy); }
.rev-unlock { font-size: 12px; color: var(--muted); margin: 4px 0; }
.rev-layer ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.rev-cues { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 6px; }
.rev-prompt { margin-top: 12px; }
.rev-prompt summary { cursor: pointer; font-size: 13px; color: var(--brand-2); font-weight: 600; }
.rev-prompt pre { white-space: pre-wrap; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-top: 8px; line-height: 1.5; }
.rev-modal-actions { display: flex; gap: 10px; margin-top: 16px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(20,30,28,.42); display: grid; place-items: center; z-index: 50; padding: 24px; }
.modal-card { background: var(--surface); border-radius: 16px; width: min(600px, 92vw); max-height: 86vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin: 0; color: var(--navy); }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-body dt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 12px; font-weight: 600; }
.modal-body dd { margin: 4px 0 0; line-height: 1.5; }
