:root { --bg:#f5f7fa; --panel:#fff; --ink:#1f2933; --muted:#616e7c; --line:#d9e2ec; --brand:#165d8a; --brand-ink:#fff;
        --ok:#067647; --ok-bg:#e3f6ec; --bad:#b42318; --bad-bg:#fdecea; --warn:#9a6700; --warn-bg:#fff4d6; --neutral-bg:#eef2f6; }
* { box-sizing:border-box; }
body { margin:0; font:14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--brand); }
h1 { font-size:22px; margin:4px 0 14px; } h2 { font-size:16px; margin:18px 0 8px; }
.shell { display:flex; min-height:100vh; }
.nav { width:210px; background:#0f3d5c; color:#d9e8f3; padding:16px 10px; display:flex; flex-direction:column; gap:2px; position:sticky; top:0; height:100vh; }
.nav a { color:#d9e8f3; text-decoration:none; padding:7px 10px; border-radius:6px; }
.nav a.active, .nav a:hover { background:#1b5a83; color:#fff; }
.nav-sep { margin:14px 10px 4px; font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:#8fb3cf; }
.brand { font-weight:700; font-size:20px; padding:0 10px 14px; } .brand small { display:block; font-weight:400; font-size:11px; color:#8fb3cf; }
.brand.big { color:var(--brand); padding:0 0 14px; font-size:26px; } .brand.big small { color:var(--muted); }
.who { margin-top:auto; padding:10px; border-top:1px solid #285f86; font-size:13px; } .who small { color:#8fb3cf; }
.who .link { color:#fff; padding:0; margin-top:6px; }
.content { flex:1; padding:20px 28px; max-width:1400px; overflow-x:auto; }
table { width:100%; border-collapse:collapse; background:var(--panel); border:1px solid var(--line); border-radius:8px; overflow:hidden; }
th, td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
th { background:#f0f4f8; font-weight:600; font-size:12px; color:var(--muted); }
tr.click { cursor:pointer; } tr.click:hover td { background:#f5f9fc; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:12px 16px; margin:0 0 16px; }
.panel h2 { margin-top:2px; }
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; margin-bottom:16px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:12px 14px; }
.card .k { color:var(--muted); font-size:12px; } .card .v { font-size:26px; font-weight:650; margin:2px 0; }
.grid2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:12px 16px; }
.row { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; } .filters { margin:10px 0; align-items:center; }
label { display:flex; flex-direction:column; gap:3px; font-size:12px; color:var(--muted); margin-bottom:8px; }
input, select, textarea { font:inherit; padding:6px 8px; border:1px solid #bcccdc; border-radius:6px; background:#fff; color:var(--ink); min-width:0; }
textarea { width:100%; }
button, .button { font:inherit; padding:6px 12px; border:1px solid #bcccdc; border-radius:6px; background:#fff; color:var(--ink); cursor:pointer; text-decoration:none; display:inline-block; }
button:hover, .button:hover { border-color:var(--brand); }
button.primary { background:var(--brand); color:var(--brand-ink); border-color:var(--brand); }
button.danger { color:var(--bad); border-color:#f3b8b1; }
button.link { background:none; border:none; color:var(--brand); padding:0 4px; text-decoration:underline; }
button:disabled { opacity:.5; cursor:default; }
button.wide { width:100%; padding:9px; margin-top:6px; }
.actions button { margin:0 6px 4px 0; }
.badge { display:inline-block; padding:1px 8px; border-radius:10px; font-size:12px; background:var(--neutral-bg); color:var(--muted); white-space:nowrap; }
.badge.ok { background:var(--ok-bg); color:var(--ok); } .badge.bad { background:var(--bad-bg); color:var(--bad); } .badge.warn { background:var(--warn-bg); color:var(--warn); }
.alert { padding:9px 12px; border-radius:6px; margin:0 0 12px; background:var(--neutral-bg); }
.alert.ok { background:var(--ok-bg); color:var(--ok); } .alert.bad { background:var(--bad-bg); color:var(--bad); } .alert.warn { background:var(--warn-bg); color:var(--warn); }
.muted, .hint { color:var(--muted); } .hint { font-size:12px; margin-top:12px; }
dl { display:grid; grid-template-columns:150px 1fr; gap:4px 10px; margin:0; } dt { color:var(--muted); } dd { margin:0; word-break:break-word; }
.progress { height:6px; background:var(--neutral-bg); border-radius:3px; overflow:hidden; } .progress span { display:block; height:100%; background:var(--brand); }
.bars .bar { display:grid; grid-template-columns:120px 1fr 60px; align-items:center; gap:8px; margin:4px 0; }
.bars .fill { height:14px; background:#7aa7c7; border-radius:3px; display:block; } .bars .num { text-align:right; }
.timeline { list-style:none; padding:0; margin:0; } .timeline li { padding:4px 0; border-bottom:1px dashed var(--line); } .timeline .t { color:var(--muted); font-size:12px; }
.ladder { overflow-x:auto; background:#fbfcfd; border:1px solid var(--line); border-radius:6px; }
pre.sipmsg { background:#0f1720; color:#d1e3f0; padding:12px; border-radius:6px; overflow-x:auto; font-size:12px; }
code { font-size:12px; background:var(--neutral-bg); padding:1px 4px; border-radius:4px; }
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:16px; }
.login-card { width:100%; max-width:380px; background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:26px; }
.login-card input { width:100%; }
.steps li { margin-bottom:10px; } .key { font:600 18px monospace; letter-spacing:.05em; background:var(--neutral-bg); padding:8px; border-radius:6px; margin:6px 0; word-break:break-all; }
.qr { margin:8px 0; } .qr svg { display:block; max-width:200px; height:auto; border:1px solid var(--line, #ddd); border-radius:6px; }
#blazor-error-ui { display:none; position:fixed; bottom:0; left:0; right:0; padding:10px 16px; background:var(--warn-bg); color:var(--warn); z-index:10; }
@media (max-width: 800px) { .shell { flex-direction:column; } .nav { width:auto; height:auto; position:static; flex-direction:row; flex-wrap:wrap; } .who { margin:0; border:0; } .content { padding:14px 16px; } }
.chart-axis { display:flex; justify-content:space-between; margin:-4px 2px 8px; }
/* v0.6 message templates and prompt sets */
.segments { list-style: decimal; padding-left: 22px; margin: 0 0 12px; }
.seg { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; margin: 4px 0; background: var(--panel); display: flex; justify-content: space-between; gap: 12px; }
.seg-variable { border-left: 4px solid var(--brand); }
.seg-pause { color: var(--muted); }
.seg-tools button { margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--neutral-bg); border: 1px solid var(--line); }
.chip-recording { background: #e3f0f8; border-color: #b6d4e8; }
.chip-pause { font-style: italic; }
table.compact td, table.compact th { padding: 4px 8px; }
.warn-text { color: #a15c00; margin-left: 6px; }
.card .v.small { font-size: 16px; }
/* 0.8: test-connection checklist (platform > tenants) */
ul.checks { list-style:none; padding:0; margin:8px 0; } ul.checks li { padding:2px 0; }
ul.checks li.good { color:var(--ok); } ul.checks li.bad { color:var(--bad); }
pre { background:var(--neutral-bg); padding:10px; border-radius:6px; overflow-x:auto; font-size:12px; }
/* 0.11 reports: trends, comparisons, campaign stats */
svg.trend { height:auto; max-height:240px; padding:8px; }
svg.trend .axis { stroke:var(--line); }
svg.trend .bar-total { fill:#c9dceb; } svg.trend .bar-answered { fill:#3f7fae; }
svg.trend .cur .bar-total { fill:#e3d9b5; } svg.trend .cur .bar-answered { fill:#b08a1e; }
svg.trend .rate { fill:none; stroke:#067647; stroke-width:2; stroke-dasharray:4 3; }
svg.trend text { font-size:10px; fill:var(--muted); text-anchor:middle; } svg.trend text.val { fill:var(--ink); }
.chart-legend { font-size:12px; color:var(--muted); margin:-8px 0 14px; display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.chart-legend .sw { display:inline-block; width:12px; height:10px; border-radius:2px; margin-left:8px; }
.chart-legend .sw.total { background:#c9dceb; } .chart-legend .sw.answered { background:#3f7fae; } .chart-legend .sw.rate { border-top:2px dashed #067647; height:0; }
.delta { font-size:12px; font-weight:600; } .delta.up { color:var(--ok); } .delta.down { color:var(--bad); } .delta.flat { color:var(--muted); }
.card .sub { font-size:12px; color:var(--muted); margin-top:4px; }
.tabs { display:flex; gap:4px; margin:6px 0 12px; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.tabs button { border:none; border-bottom:2px solid transparent; border-radius:0; background:none; padding:7px 12px; color:var(--muted); }
.tabs button.on { color:var(--brand); border-bottom-color:var(--brand); font-weight:600; }
.hours { display:grid; grid-template-columns:repeat(24,1fr); gap:2px; align-items:end; height:90px; margin:6px 0 2px; }
.hours div { background:#7aa7c7; border-radius:2px 2px 0 0; min-height:1px; }
.hours-axis { display:grid; grid-template-columns:repeat(24,1fr); font-size:10px; color:var(--muted); text-align:center; margin-bottom:10px; }
pre.code { background:#0f1720; color:#d1e3f0; padding:12px; border-radius:6px; overflow-x:auto; font-size:12px; white-space:pre; }
.endpoint { display:flex; gap:8px; align-items:baseline; margin:10px 0 4px; } .endpoint code { font-size:13px; }
.method { font:600 11px monospace; padding:2px 6px; border-radius:4px; color:#fff; background:#165d8a; } .method.get { background:#067647; } .method.del { background:#b42318; } .method.patch { background:#9a6700; }
