@font-face { font-family:Inter; src:url('./fonts/inter-latin-wght-normal.woff2') format('woff2'); font-style:normal; font-weight:100 900; font-display:swap; }
:root { --ui:Inter,-apple-system,'Segoe UI',Roboto,sans-serif; --display:var(--ui); --canvas:var(--page); --panel:var(--sheet); --panel-2:var(--rail); --text:var(--ink); --line:var(--rule-soft); --line-2:var(--rule); --accent:var(--amp); --soft:var(--amp-soft); --fail:var(--bad); --fail-soft:var(--bad-soft); --attn:var(--wait); --attn-soft:var(--wait-soft); color-scheme:light; font-synthesis:none; }
* { box-sizing:border-box; }
body { margin:0; background:var(--page); color:var(--ink); font:14px/1.5 var(--ui); }
button,input,select,textarea { font:inherit; color:inherit; }
button,a,input,select,summary { -webkit-tap-highlight-color:transparent; }
a { color:var(--amp); text-underline-offset:3px; }
button,a,summary { touch-action:manipulation; }
button { cursor:pointer; overflow-wrap:normal; }
:focus-visible { outline:3px solid var(--amp); outline-offset:3px; }
[hidden] { display:none !important; }
.skip { position:fixed; top:-80px; left:12px; z-index:100; padding:12px; background:var(--sheet); }
.skip:focus { top:8px; }
.loading { margin:32px; }
h1,h2,h3 { font-family:var(--ui); font-weight:650; letter-spacing:-.03em; }
h1 { font-size:32px; line-height:1.2; margin:8px 0; }
h2 { font-size:20px; line-height:1.3; margin:0; }
h3 { font-size:16px; line-height:1.5; margin:8px 0; }
p { margin:4px 0 12px; }
.icon { display:inline-block; flex-shrink:0; vertical-align:middle; }
.shell { display:grid; grid-template-columns:200px minmax(0,1fr); min-height:100vh; }
.side { background:var(--rail); border-right:1px solid var(--rule); padding:24px 16px; display:flex; flex-direction:column; gap:32px; position:sticky; top:0; height:100vh; }
.brand { display:flex; align-items:center; gap:12px; color:var(--amp); font-size:26px; font-weight:750; letter-spacing:-.04em; }
.brand-mark { display:block; width:28px; height:28px; border:2px solid var(--amp); border-radius:8px; box-shadow:inset 7px 7px 0 var(--amp); }
.eyebrow { font-size:12px; font-weight:650; color:var(--muted); }
.side .eyebrow { margin-bottom:12px; }
.side nav { display:grid; gap:8px; }
.side nav a { display:flex; align-items:center; gap:12px; min-height:44px; padding:8px; color:var(--ink); text-decoration:none; border-radius:8px; }
.side nav a:hover,.side nav a[aria-current] { background:var(--amp-soft); }
.side nav .icon { color:var(--amp); }
.side-note { color:var(--muted); font-size:12px; border-top:1px solid var(--rule); padding-top:16px; }
.side-foot { margin-top:auto; }
.account { display:flex; align-items:center; margin-bottom:16px; font-size:12px; }
.account small { display:block; color:var(--muted); font-size:12px; }
.avatar { display:inline-grid; place-items:center; width:32px; height:32px; margin-right:8px; border-radius:50%; background:var(--amp-soft); color:var(--amp); }
.col { min-width:0; }
.mockband { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:8px 24px; background:var(--wait-soft); color:var(--wait); border-bottom:1px solid var(--rule); font-size:12px; }
.mockband strong { margin-right:8px; letter-spacing:.04em; }
.mock-controls { display:flex; align-items:center; gap:8px; font-size:12px; }
.mock-controls select { width:auto; min-height:32px; padding:4px 8px; font-size:12px; }
main { padding:24px 32px 32px; margin:auto; max-width:1680px; }
.head,.section-title { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:24px; }
.muted,.sub,.hint { color:var(--muted); }
.sub { font-size:14px; margin:4px 0 0; }
.hint { font-size:12px; font-weight:400; }
button,.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; min-width:44px; padding:8px 16px; border:1px solid var(--rule); border-radius:8px; background:var(--sheet); color:var(--ink); font-size:14px; font-weight:600; text-decoration:none; white-space:normal; }
button:hover:not(:disabled),.button:hover { border-color:var(--amp); }
.primary { background:var(--amp); color:var(--amp-on); border-color:var(--amp); transition:transform 120ms,box-shadow 120ms; }
.primary:hover:not(:disabled) { box-shadow:0 2px 6px #23261f26; transform:translateY(-1px); }
.danger { color:var(--bad); }
.small { font-size:13px; white-space:nowrap; padding:8px 12px; }
button:disabled,select:disabled,input:disabled { cursor:not-allowed; background:var(--off-soft) !important; color:var(--off) !important; border-color:var(--rule) !important; }
.actions,.dialog-actions { display:flex; flex-wrap:wrap; gap:8px; }
.dialog-actions { justify-content:flex-end; margin-top:16px; }
.stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:24px; }
.stat,.section,.scenario,.detail-head { background:var(--sheet); border:1px solid var(--rule); border-radius:10px; }
.stat { padding:16px; }
.stat-value { font-size:32px; line-height:1.2; margin:8px 0; font-weight:650; letter-spacing:-.04em; }
.stat-value small,.stat p { font-size:12px; color:var(--muted); font-weight:400; }
.section { margin-bottom:24px; overflow:hidden; }
.section-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; padding:16px 24px; border-bottom:1px solid var(--rule-soft); }
.section-body { padding:24px; }
.table-wrap { overflow-x:auto; }
table { border-collapse:collapse; width:100%; font-size:13px; text-align:left; }
th,td { padding:12px 16px; border-bottom:1px solid var(--rule-soft); vertical-align:middle; overflow-wrap:anywhere; }
th { background:var(--rail); color:var(--muted); font-size:12px; font-weight:600; }
tr:last-child td { border-bottom:0; }
tbody tr:hover { background:var(--rail); }
.num { text-align:right; font-variant-numeric:tabular-nums; }
.portal-name { color:var(--ink); font-weight:650; }
.color-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:8px; background:var(--highlight); }
.badge { display:inline-flex; align-items:center; gap:4px; padding:4px 8px; background:var(--ok-soft); color:var(--ok); border-radius:8px; font-size:12px; font-weight:600; }
.badge.bad { background:var(--bad-soft); color:var(--bad); }
.badge.warn { background:var(--wait-soft); color:var(--wait); }
.badge.neutral { background:var(--off-soft); color:var(--off); }
.bottom-grid,.split { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; gap:24px; }
.split>* { min-width:0; }
.activity { list-style:none; padding:0; margin:0; }
.activity li { display:flex; flex-wrap:wrap; gap:16px; padding:12px 24px; border-bottom:1px solid var(--rule-soft); }
.activity small { display:block; color:var(--muted); font-size:12px; }
.callout { padding:12px 16px; background:var(--rail); border:1px solid var(--rule); border-radius:8px; font-size:14px; }
.callout.warn { color:var(--wait); background:var(--wait-soft); }
.callout.bad { color:var(--bad); background:var(--bad-soft); }
.banner { margin-bottom:24px; }
.crumb { margin-bottom:16px; font-size:12px; }
.detail-head { padding:24px; margin-bottom:24px; border-top:4px solid var(--amp); }
.detail-meta { display:flex; flex-wrap:wrap; gap:16px; color:var(--muted); font-size:12px; }
.detail-meta strong { color:var(--ink); }
.carrier-hero { position:relative; border-left:4px solid var(--hl-fill); border-radius:0 10px 10px 0; background:var(--sheet); padding:8px 16px; margin-bottom:24px; }
.carrier-hero .eyebrow { color:var(--hl-text); padding-right:88px; line-height:16px; }
.carrier-hero h1 { font-size:26px; line-height:32px; margin:4px 0; }
.ruled-title { font-size:12px; line-height:16px; color:var(--muted); margin:0; }
.days-chip { position:absolute; right:16px; top:8px; font-size:12px; line-height:16px; color:var(--muted); }
label { display:grid; gap:8px; font-size:14px; font-weight:600; }
input,select,textarea { width:100%; min-height:44px; padding:8px 12px; border:1px solid #82877A; border-radius:8px; background:var(--sheet); font-weight:400; }
input[aria-invalid="true"] { border-color:var(--bad); }
input[type="checkbox"] { min-height:20px; width:20px; height:20px; accent-color:var(--amp); flex-shrink:0; }
.check-row { display:flex; align-items:center; gap:12px; min-height:44px; padding:8px 0; font-size:14px; font-weight:400; }
.inline-form { display:flex; align-items:end; gap:12px; flex-wrap:wrap; }
.inline-form label { flex:1 1 240px; }
.field-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-stack { display:grid; gap:16px; }
.form-error { color:var(--bad); font-size:14px; }
.form-error:empty { display:none; }
.send-bar { display:grid; grid-template-columns:minmax(180px,.7fr) minmax(0,1.7fr); align-items:end; gap:24px; padding:16px; border:1px solid var(--rule); border-radius:10px; background:var(--sheet); }
.send-bar.no-ready { grid-template-columns:1fr; }
.send-bar fieldset { margin:0; padding:0; border:0; min-width:0; }
.send-bar legend { padding:0 0 8px; font-weight:600; }
.policy-segments { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.policy-segments button { display:flex; flex-direction:column; align-items:start; text-align:left; gap:4px; font-weight:400; }
.policy-segments button span { font-size:12px; color:var(--muted); }
.policy-segments [aria-pressed="true"] { border-color:var(--hl-text); background:var(--hl-soft); box-shadow:inset 0 0 0 1px var(--hl-text); }
.scenarios { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:16px 0 24px; }
.scenario { padding:16px; display:flex; flex-direction:column; align-items:stretch; }
.scenario h3 { margin:0 0 8px; font-size:20px; line-height:24px; }
.scenario-description { color:var(--muted); font-size:14px; min-height:48px; }
.scenario>button { margin-top:auto; width:100%; }
.phone-preview { width:200px; min-height:260px; align-self:center; border:1px solid #82877A; border-radius:24px; padding:8px 12px 16px; background:#fff; color:var(--ink); margin:8px 0 16px; box-shadow:0 4px 12px #23261f0d; }
.phone-speaker { height:4px; width:32px; margin:0 auto 16px; border-radius:4px; background:var(--rule); }
.sender { display:flex; align-items:center; gap:8px; margin-bottom:16px; }
.sender-avatar { display:grid; place-items:center; border-radius:50%; color:white; font-size:12px; font-weight:650; width:32px; height:32px; flex-shrink:0; }
.sender strong { display:block; font-size:12px; }
.sender div>span { display:flex; align-items:center; gap:4px; color:var(--muted); font-size:12px; line-height:16px; }
.sender .icon { width:16px; height:16px; }
.rbm-message { padding:12px; background:var(--rail); border:1px solid var(--rule-soft); border-radius:10px; font-size:14px; }
.rbm-message strong { display:block; font-size:14px; line-height:20px; }
.rbm-message p { margin:8px 0; line-height:20px; }
.preview-open { display:block; padding:8px; border:1px solid var(--rule); border-radius:8px; text-align:center; background:white; font-weight:600; color:#176272; }
.opens-caption { font-size:12px; color:var(--muted); margin-bottom:16px; }
.phone-composer { margin-bottom:16px; gap:8px; }
.phone-label input { margin:8px 0; }
summary { cursor:pointer; min-height:44px; padding:12px 0; font-size:14px; font-weight:600; }
.tag { display:inline-block; font-size:12px; color:var(--off); padding:8px; border-radius:8px; background:var(--off-soft); }
.empty { padding:24px; color:var(--muted); }
.footer { margin-top:24px; font-size:12px; color:var(--muted); }
dialog { color:var(--ink); background:var(--sheet); border:1px solid var(--rule); border-radius:10px; padding:0; width:540px; max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); overflow-y:auto; box-shadow:0 8px 32px #23261f26; }
dialog::backdrop { background:#23261f88; }
.dialog-head { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 24px; border-bottom:1px solid var(--rule); }
.dialog-body { padding:24px; }
.close { width:44px; height:44px; padding:0; flex-shrink:0; }
dialog.drawer { margin:0 0 0 auto; height:100dvh; max-height:100dvh; border-radius:10px 0 0 10px; width:480px; max-width:100vw; }
.why-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.why-heading time { color:var(--muted); font-size:12px; }
.why-explanation { margin:24px 0; font-size:16px; }
.why-meta { display:grid; grid-template-columns:1fr 1fr; gap:16px; font-size:14px; }
.why-meta span { display:block; color:var(--muted); font-size:12px; }
.timeline { list-style:none; padding:0; margin:24px 0; }
.timeline li { margin-left:8px; padding:0 0 24px 16px; border-left:2px solid var(--rule); position:relative; font-size:14px; }
.timeline li::before { content:''; position:absolute; left:-5px; top:5px; width:8px; height:8px; border-radius:50%; background:var(--off); }
.timeline li.completed { border-left-color:var(--ok); }
.timeline li.completed::before { background:var(--ok); }
.timeline li.failed { border-left-color:var(--bad); }
.timeline li.failed::before { background:var(--bad); }
.timeline li:last-child { padding-bottom:0; }
.timeline .badge { margin-left:8px; }
.timeline time { display:block; font-size:12px; color:var(--muted); margin-top:4px; }
.next-step { padding:16px; background:var(--rail); border-radius:10px; }
.next-step h3 { margin:0 0 12px; }
.send-details { border-top:1px solid var(--rule); margin-top:24px; }
.send-id { font:12px/1.5 ui-monospace,Consolas,monospace; overflow-wrap:anywhere; }
.engineering { border-top:1px solid var(--rule); padding-top:16px; }
.engineering dt { color:var(--muted); margin-top:12px; }
.engineering dd { margin:4px 0; overflow-wrap:anywhere; font-size:12px; }
#notice:not(:empty) { position:fixed; bottom:16px; left:50%; transform:translateX(-50%); display:flex; align-items:center; flex-wrap:wrap; gap:8px; width:max-content; max-width:calc(100vw - 32px); z-index:20; padding:8px 16px; border-radius:10px; background:var(--ink); color:var(--sheet); box-shadow:0 4px 16px #23261f26; font-size:14px; }
#notice .toast-journey { color:white; background:transparent; border-color:#82877A; }
.gate { max-width:68ch; margin:24px auto; padding:24px; }
.gate h2 { margin:0 0 16px; }
.full-terms { margin:16px 0; border-top:1px solid var(--rule); border-bottom:1px solid var(--rule); }
.full-terms>div { max-width:68ch; font-size:14px; line-height:22px; }
.full-terms p { margin:0 0 16px; }
.terms-gate>form { margin-top:16px; }
.signin { max-width:76ch; }
.signin .gate { margin-top:24px; border-top:4px solid var(--hl-fill); }
.signin h1 { font:650 26px/32px var(--ui); color:var(--ink); margin:16px 0; }
.signin .mockband { padding:8px 12px; margin:16px 0; border:0; }
.signin footer { margin-top:24px; }
body:not([data-ready]) .signin { visibility:hidden; }
.ended-card { padding:32px; max-width:68ch; margin:32px auto; background:var(--off-soft); color:var(--off); }
.ended-card h2 { margin:16px 0; }
.ended-icon { display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--off); border-radius:50%; }
body[data-role="carrier"] .primary { background:var(--hl-band); color:var(--hl-on-band); border-color:var(--hl-band); }
body[data-role="carrier"] a { color:var(--hl-text); }
body[data-role="carrier"] .side nav a { color:var(--ink); }
body[data-role="carrier"] :focus-visible { outline-color:var(--hl-fill); }
@media(max-width:1150px) { .split,.bottom-grid { grid-template-columns:1fr; gap:0; } main { padding:24px; } .scenarios { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:1000px) { .shell { display:block; } .side { position:static; height:auto; padding:12px 16px; flex-direction:row; flex-wrap:wrap; align-items:center; gap:12px; border-right:0; border-bottom:1px solid var(--rule); } .side>div:nth-child(2) { order:3; width:100%; } .side .eyebrow,.side-note,.account { display:none; } .side-foot { margin:0 0 0 auto; } .side nav { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; } body[data-role="admin"] .side nav { grid-template-columns:repeat(2,minmax(0,1fr)); } .side nav a { flex-direction:column; justify-content:center; padding:4px; gap:4px; font-size:12px; } .brand { font-size:20px; } .carrier-hero h1 { font-size:20px; line-height:24px; } }
@media(max-width:759px) {
  main { padding:16px; } .head { flex-wrap:wrap; gap:12px; } h1 { font-size:26px; } .mockband { padding:8px 16px; } .mock-controls select { min-height:44px; } .mockband .mode { display:none; }
  .scenarios { grid-template-columns:1fr; } .scenario-description { min-height:0; } .phone-preview { margin:16px 0; }
  .send-bar { grid-template-columns:1fr; gap:16px; } .policy-segments { gap:8px; } .policy-segments button { padding:8px; }
  .section-head,.section-body { padding:16px; } .section { margin-bottom:16px; } .field-grid { grid-template-columns:1fr; }
  .table-wrap { overflow:visible; padding:8px; } table,tbody { display:block; width:100%; font-size:14px; } thead { display:none; }
  tr { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; padding:16px; margin-bottom:8px; border:1px solid var(--rule); border-radius:10px; background:var(--sheet); }
  td { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; padding:0; border:0; white-space:normal; min-width:0; text-align:left; }
  td::before { content:attr(data-label); font-size:12px; color:var(--muted); } td[data-label="Scenario"]::before,td[data-label="Test phone"]::before { display:none; }
  td .actions { width:100%; } td strong { min-width:0; overflow-wrap:anywhere; } td .hint { max-width:100%; } .mock-consent { margin:8px 0; min-width:160px; }
  .small { font-size:14px; } .dialog-head,.dialog-body { padding:16px; } .dialog-head h2 { font-size:20px; } .dialog-actions { gap:8px; }
  .gate { margin:16px auto; padding:16px; } .signin { padding:16px; } .signin .gate { margin-top:8px; } .signin h1 { font-size:26px; } .carrier-hero { padding:8px; } .days-chip { right:12px; }
  .stat-value { font-size:26px; } .stat { padding:12px; } .stats { gap:8px; } .activity li { padding:12px 16px; } .inline-form button { width:100%; }
  .carrier-hero h1 { letter-spacing:-.06em; } .side nav a { min-width:44px; } .ended-card { padding:24px; }
}
@media(max-width:480px) { .stats { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; animation:none !important; scroll-behavior:auto !important; } .primary:hover:not(:disabled) { transform:none; } }
