:root {
  --ink: #090c10;
  --panel: #10151b;
  --panel-2: #161c24;
  --line: rgba(255, 255, 255, 0.11);
  --copy: #f1eee7;
  --muted: #8d969f;
  --gold: #c89445;
  --gold-bright: #e3b66d;
  --green: #55ba76;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--ink); color: var(--copy); }
button, input { font: inherit; }
button { color: inherit; }
.shell { width: min(1480px, calc(100% - 48px)); margin: 0 auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; height: 78px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--gold); color: var(--gold-bright); font-family: Georgia, serif; font-size: 22px; }
.brand b { display: block; letter-spacing: .22em; font-size: 14px; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.system-state { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.system-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.system-state button { margin-left: 12px; padding: 7px 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.hero { display: grid; grid-template-columns: 1fr auto; align-items: end; min-height: 260px; padding: 54px 0 40px; }
.kicker { margin: 0 0 15px; color: var(--gold-bright); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5.5vw, 82px); font-weight: 400; line-height: .95; letter-spacing: -.04em; }
.hero h1 em { color: var(--gold-bright); font-weight: 400; }
.clock { padding-bottom: 4px; text-align: right; }
.clock strong { display: block; color: var(--muted); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.clock span { display: block; margin-top: 8px; font-family: Georgia, serif; font-size: 32px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metrics article { min-height: 170px; padding: 19px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0d1116; }
.metrics article > span { color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.metrics strong { display: block; margin: 21px 0 11px; font-family: Georgia, serif; font-size: 54px; font-weight: 400; line-height: 1; }
.metrics small { color: var(--muted); font-size: 11px; }
.metric-hot { box-shadow: inset 0 -3px var(--gold); }
.metric-hot strong { color: var(--gold-bright); }
.metric-hot small b { color: var(--copy); }
.workspace { display: grid; grid-template-columns: minmax(300px, 390px) 1fr; min-height: 660px; margin: 42px 0 70px; border: 1px solid var(--line); background: var(--panel); }
.conversation-rail { border-right: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: center; min-height: 70px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.section-head span { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.section-head small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.section-head button { width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.conversation-list { max-height: 720px; overflow: auto; }
.conversation { display: grid; gap: 8px; width: 100%; padding: 17px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.conversation:hover, .conversation[aria-current="true"] { background: var(--panel-2); }
.conversation[aria-current="true"] { box-shadow: inset 3px 0 var(--gold); }
.conversation-top { display: flex; justify-content: space-between; gap: 10px; }
.conversation-top b { font-size: 12px; }
.conversation-top time { color: var(--muted); font-size: 9px; }
.conversation p { overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.conversation-meta { display: flex; gap: 7px; }
.badge { padding: 3px 6px; border: 1px solid var(--line); color: var(--muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.badge-lead { border-color: rgba(200, 148, 69, .5); color: var(--gold-bright); }
.empty { padding: 22px; color: var(--muted); font-size: 12px; }
.transcript { min-width: 0; padding: 25px 28px; }
.transcript-empty { display: grid; place-items: center; min-height: 570px; color: var(--muted); text-align: center; }
.transcript-empty span { color: var(--gold); font-size: 10px; letter-spacing: .2em; }
.transcript-empty h2 { margin: 12px 0 5px; color: var(--copy); font-family: Georgia, serif; font-size: 30px; font-weight: 400; }
.transcript-empty p { margin: 0; font-size: 12px; }
.transcript-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.transcript-head h2 { margin: 0; font-family: Georgia, serif; font-size: 31px; font-weight: 400; }
.transcript-head a { display: block; margin-top: 7px; overflow: hidden; color: var(--gold-bright); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.transcript-head time { color: var(--muted); font-size: 10px; }
.lead-card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; padding: 16px; border: 1px solid rgba(200, 148, 69, .4); background: #15130f; }
.lead-card div span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.lead-card div strong { display: block; overflow-wrap: anywhere; font-size: 11px; }
.message-stream { padding-top: 12px; }
.message { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.message-meta b { display: block; color: var(--gold-bright); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.message[data-role="user"] .message-meta b { color: #8bc5a0; }
.message-meta time { display: block; margin-top: 6px; color: var(--muted); font-size: 8px; }
.message p { margin: 0; color: #d8d9d8; font-size: 13px; line-height: 1.58; white-space: pre-wrap; }
.gate { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: #090c10; }
.gate[hidden] { display: none; }
.gate-card { width: min(420px, 100%); padding: 38px; border: 1px solid rgba(200, 148, 69, .45); background: #10151b; box-shadow: 0 30px 90px rgba(0, 0, 0, .5); }
.brand-mark-large { width: 54px; height: 54px; margin-bottom: 28px; font-size: 30px; }
.gate-card h2 { margin: 0; font-family: Georgia, serif; font-size: 38px; font-weight: 400; }
.gate-card > p:not(.kicker):not(.gate-error) { margin: 12px 0 24px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.gate-card label span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.gate-card input { width: 100%; height: 48px; padding: 0 13px; border: 1px solid var(--line); outline: 0; background: #0b0f14; color: #fff; }
.gate-card input:focus { border-color: var(--gold); }
.gate-card button { display: flex; justify-content: space-between; width: 100%; margin-top: 10px; padding: 14px; border: 0; background: var(--gold); color: #111; font-weight: 800; cursor: pointer; }
.gate-error { min-height: 17px; margin: 10px 0 0; color: #e07669; font-size: 11px; }
@media (max-width: 900px) {
  .shell { width: min(100% - 24px, 760px); }
  .hero { min-height: 220px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .workspace { grid-template-columns: 1fr; }
  .conversation-rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .conversation-list { max-height: 330px; }
  .lead-card { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .system-state span { display: none; }
  .hero { grid-template-columns: 1fr; }
  .clock { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics article { min-height: 130px; padding: 14px; }
  .metrics strong { margin-top: 16px; font-size: 40px; }
  .workspace { margin-top: 24px; }
  .transcript { padding: 19px 15px; }
  .transcript-head { grid-template-columns: 1fr; }
  .lead-card { grid-template-columns: 1fr; }
  .message { grid-template-columns: 58px 1fr; }
  .gate-card { padding: 27px 22px; }
}
