:root {
  --bg: #f4f7fb; --panel: #fff; --ink: #0B1B2E; --muted: #6b7f95; --line: #e6ebf1;
  --accent: #1170D6; --accent-2: #2CBCD7; --accent-soft: #e8f1fc; --ok: #16a34a; --warn: #d97706; --bad: #dc2626;
  --sidebar: #ffffff; --sidebar-ink: #3d4f63; --sidebar-active: #e8f1fc;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1420; --panel: #141c2a; --ink: #e6ebf3; --muted: #93a3b8; --line: #243044; --accent-soft: #17304d; --sidebar: #101827; --sidebar-ink: #b8c4d4; --sidebar-active: #1b2b44; }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
#app { display: flex; min-height: 100vh; }
aside { width: 220px; background: var(--sidebar); color: var(--sidebar-ink); display: flex; flex-direction: column; padding: 16px 12px; position: sticky; top: 0; height: 100vh; }
aside .brand { font-weight: 700; color: #fff; font-size: 15px; padding: 6px 10px 14px; }
aside .brand small { display: block; font-weight: 400; color: var(--sidebar-ink); font-size: 11px; opacity: .8; }
aside nav button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; color: var(--sidebar-ink); padding: 9px 10px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 13.5px; }
aside nav button .ico { width: 18px; text-align: center; opacity: .85; }
aside nav .sep { height: 1px; background: #1e293b; margin: 8px 6px; }
aside nav button:hover { background: var(--sidebar-active); }
aside nav button.active { background: var(--sidebar-active); color: #fff; font-weight: 600; }
aside nav .badge { margin-left: auto; background: var(--warn); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
aside .foot { margin-top: auto; font-size: 12px; padding: 10px; border-top: 1px solid #1e293b; }
aside .foot .who { color: #fff; }
aside .foot select, aside .foot button { font: inherit; font-size: 12px; margin-top: 6px; width: 100%; }
main { flex: 1; padding: 22px 26px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.topbar h1 { font-size: 21px; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.spacer { flex: 1; }
.grid { display: grid; gap: 16px; } .cols-2 { grid-template-columns: 1fr 1fr; } .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); }
#menu-btn { display: none; font-size: 18px; padding: 4px 10px; }
@media (max-width: 1000px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  aside { position: fixed; left: -240px; top: 0; z-index: 30; transition: left .2s; height: 100vh; }
  aside.open { left: 0; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  #menu-btn { display: inline-block; }
  main { padding: 14px; }
}
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; min-width: 0; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.card h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.card h3 { font-size: 13px; margin: 18px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
button, .btn { font: inherit; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; transition: background .12s, border-color .12s; }
button:hover:not(:disabled) { border-color: var(--accent); }
button.primary:hover:not(:disabled) { background: #1d4ed8; }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
button.danger { color: var(--bad); border-color: var(--bad); }
button.small { padding: 3px 9px; font-size: 12px; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
label { font-weight: 500; }
textarea { min-height: 100px; resize: vertical; }
textarea.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
label { display: block; font-size: 12px; color: var(--muted); margin: 8px 0 3px; }
label.inline { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink); margin: 6px 0; } label.inline input { width: auto; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.pill.ok, .pill.registered, .pill.answered, .pill.active, .pill.available, .pill.done, .pill.positive, .pill.activated { background: #dcfce7; color: #166534; }
.pill.warn, .pill.registering, .pill.ringing, .pill.dialing, .pill.trial, .pill.busy, .pill.read, .pill.neutral, .pill.issued, .pill.new { background: #fef3c7; color: #92400e; }
.pill.bad, .pill.failed, .pill.missed, .pill.negative, .pill.revoked, .pill.high, .pill.past_due { background: #fee2e2; color: #991b1b; }
.pill.offline, .pill.muted, .pill.low, .pill.cancelled { background: var(--line); color: var(--muted); }
.pill.ai { background: var(--accent-soft); color: var(--accent); } .pill.human { background: #f3e8ff; color: #6b21a8; }
table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--bg) 55%, transparent); }
th { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
tr.clickable { cursor: pointer; } tr.clickable:hover { background: var(--accent-soft); }
.muted { color: var(--muted); } .small { font-size: 12px; } .mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.stat { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; } .stat-label { color: var(--muted); font-size: 12px; margin-top: 2px; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.transcript, .logbox { height: 240px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: 12.5px; }
.logbox { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; white-space: pre-wrap; height: 420px; }
.line { padding: 3px 0; } .line.caller { color: var(--accent); } .line.agent { color: var(--ok); } .line.system { color: var(--muted); font-style: italic; } .line.interim { opacity: .55; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 8px 12px; color: var(--muted); border-bottom: 2px solid transparent; border-radius: 0; }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.subpane { display: none; } .subpane.active { display: block; }
.hidden { display: none !important; }
.toast { position: fixed; bottom: 16px; right: 16px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; opacity: 0; transition: opacity .2s; z-index: 20; max-width: 420px; }
.toast.show { opacity: 1; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 4px 10px; font-size: 13px; } .kv .k { color: var(--muted); }
audio { width: 100%; margin-top: 8px; }
.chart { width: 100%; height: 180px; }
.chart text { font-size: 10px; fill: var(--muted); }
.bar-in { fill: var(--accent); } .bar-out { fill: #a78bfa; } .bar-missed { fill: #fca5a5; }
.chart .line-path { fill: none; stroke: var(--ok); stroke-width: 2; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 4px; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.banner { padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.banner.warn { background: #fef3c7; color: #92400e; }
/* full-screen gates */
.gate { position: fixed; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; z-index: 10; overflow: auto; padding: 20px; }
.gate .card { width: 100%; max-width: 520px; padding: 28px; box-shadow: 0 10px 40px rgba(16, 24, 40, .12); }
.gate h1 { font-size: 22px; margin: 0 0 4px; }
.gate .brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps { display: flex; gap: 6px; margin: 12px 0 18px; } .steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); } .steps span.done { background: var(--accent); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .choice button { padding: 14px; text-align: left; border-radius: 10px; } .choice button.active { border-color: var(--accent); background: var(--accent-soft); }
.choice b { display: block; margin-bottom: 4px; }
.err { color: var(--bad); font-size: 13px; margin-top: 8px; min-height: 18px; }
.insight { padding: 8px 10px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 6px; margin-bottom: 8px; font-size: 13px; }
.insight.warn { border-color: var(--warn); } .insight.good { border-color: var(--ok); }

.err { background: color-mix(in srgb, var(--bad) 10%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); padding: 8px 10px; border-radius: 8px; margin: 8px 0; }
.err:empty { display: none; }

/* ---- brand + navigation */
aside .brand { display: flex; align-items: center; gap: 10px; }
aside .brand .mark, .logo .mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; } .logo small { font-weight: 500; color: var(--muted); font-size: 12px; }
aside nav button svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
aside nav button.active svg { opacity: 1; stroke: #fff; }
aside .foot .who { font-weight: 600; }
/* ---- loading */
#loadbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, #2563eb, #7c3aed); z-index: 100; transition: width .3s, opacity .3s; opacity: 0; }
#loadbar.on { opacity: 1; width: 70%; } #loadbar.done { width: 100%; opacity: 0; }
.spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite; display: none; vertical-align: -2px; margin-right: 6px; }
button.busy .spin, button.busy::before { display: inline-block; }
button.busy { opacity: .75; pointer-events: none; }
button.busy:not(:has(.spin))::before { content: ""; width: 12px; height: 12px; border: 2px solid rgba(0,0,0,.25); border-top-color: currentColor; border-radius: 50%; animation: rot .7s linear infinite; margin-right: 6px; vertical-align: -2px; }
@keyframes rot { to { transform: rotate(360deg); } }
.page-loading { opacity: .5; pointer-events: none; }
/* ---- login */
.login-split { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 960px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px rgba(16, 24, 40, .14); }
.login-brand { background: linear-gradient(160deg, #0f172a, #1e1b4b); color: #e2e8f0; padding: 40px; display: flex; flex-direction: column; }
.login-brand .logo { color: #fff; } .login-brand .logo small { color: #a5b4fc; }
.login-brand h2 { font-size: 28px; line-height: 1.15; margin: 34px 0 12px; letter-spacing: -.02em; } .login-brand p { color: #cbd5e1; margin: 0 0 16px; }
.login-brand ul { padding-left: 18px; color: #cbd5e1; font-size: 14px; line-height: 1.8; } .login-brand .foot-legal { margin-top: auto; font-size: 12px; color: #94a3b8; }
.login-form { padding: 40px; } .login-form h1 { font-size: 26px; margin: 0 0 4px; }
.pw { position: relative; } .pw input { padding-right: 62px; } .pw button { position: absolute; right: 6px; top: 5px; }
button.ghost { border: 0; background: transparent; color: var(--muted); }
@media (max-width: 800px) { .login-split { grid-template-columns: 1fr; } .login-brand { display: none; } }
.logo-svg { height: 34px; width: auto; display: block; } .mark-svg { height: 30px; width: auto; display: block; } a[data-logo], [data-logo] { display: inline-flex; align-items: center; }
aside .brand { flex-direction: column; align-items: flex-start; gap: 4px; } aside .brand .logo-svg { height: 30px; } aside .brand small { color: var(--muted); font-size: 11px; padding-left: 2px; }
.login-brand .logo-svg { height: 36px; } .gate .logo-svg { height: 40px; }

/* ---- flow builder */
.builder { display: grid; grid-template-columns: 230px 1fr 320px; gap: 12px; height: calc(100vh - 260px); min-height: 520px; }
.palette, .inspector { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow: auto; }
.pal { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: grab; background: var(--panel); transition: transform .15s, box-shadow .15s; }
.pal:hover { transform: translateX(3px); box-shadow: 0 6px 16px rgba(16,24,40,.08); border-color: var(--c); }
.pal .ico, .inspector .ico, .node .ico { width: 26px; height: 26px; border-radius: 8px; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.canvas-wrap { position: relative; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; }
.canvas { position: relative; min-width: 100%; min-height: 100%; }
#edges { position: absolute; top: 0; left: 0; pointer-events: none; }
#edges path.edge { fill: none; stroke-width: 2.5; pointer-events: stroke; cursor: pointer; } #edges path.edge:hover { stroke-width: 4; } #edges path.temp { stroke-dasharray: 6 4; }
.node { position: absolute; width: 230px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 10px; padding: 10px 12px 16px; box-shadow: 0 2px 6px rgba(16,24,40,.08); cursor: grab; user-select: none; transition: box-shadow .15s; }
.node:hover { box-shadow: 0 8px 20px rgba(16,24,40,.14); } .node.sel { outline: 2px solid var(--accent); }
.node.unbound { border-style: dashed; } .node.unbound::after { content: "needs an API action"; position: absolute; top: -9px; right: 8px; font-size: 10px; background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; border-radius: 999px; padding: 1px 7px; }
.node .nh { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13px; } .node .ns { font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node .port { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--c); cursor: crosshair; font-size: 0; }
.node .port:hover { transform: translateX(-50%) scale(1.3); background: var(--c); }
.node .port.yes, .node .port.no { width: auto; height: auto; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; transform: none; bottom: -10px; }
.node .port.yes { left: 20%; border-color: #16a34a; color: #16a34a; } .node .port.no { left: auto; right: 20%; border-color: #dc2626; color: #dc2626; }
.node .port.yes:hover { background: #16a34a; color: #fff; transform: none; } .node .port.no:hover { background: #dc2626; color: #fff; transform: none; }
.tpl { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, transform .15s; } .tpl:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn-ish { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--accent); }
.switch { position: relative; display: inline-block; width: 36px; height: 20px; } .switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; cursor: pointer; transition: .2s; } .switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--ok); } .switch input:checked + span::before { transform: translateX(16px); }
.warn-text { color: var(--warn); }
@media (max-width: 1100px) { .builder { grid-template-columns: 1fr; height: auto; } .canvas-wrap { height: 520px; } }
@media (prefers-color-scheme: dark) { .gate [data-logo="full"] .logo-svg text:first-of-type, aside [data-logo="full"] .logo-svg text:first-of-type { fill: #fff; } .gate [data-logo="full"] .logo-svg text:last-of-type, aside [data-logo="full"] .logo-svg text:last-of-type { fill: #a5b4fc; } }

/* ---- agents */
.agent-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.agent-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: transform .15s, box-shadow .15s; background: var(--panel); }
.agent-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,24,40,.1); } .agent-card.default { border-style: dashed; }
.agent-card .avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #1170D6, #2CBCD7); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; } .chips span { font-size: 11px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.agent-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); border-radius: 999px; padding: 2px 10px 2px 3px; font-weight: 600; }
.agent-chip i { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #1170D6, #2CBCD7); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 11px; }
.agent-chip small { font-weight: 400; color: var(--muted); }
/* ---- IVR tree */
.ivr-menu { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 10px; background: var(--panel); position: relative; }
.ivr-menu .ivr-menu { border-left: 3px solid var(--accent); }
.ivr-head { display: flex; align-items: center; gap: 10px; } .ivr-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); display: grid; place-items: center; }
.ivr-prompt { display: flex; gap: 8px; font-size: 13px; margin: 6px 0 0 40px; align-items: flex-start; } .ivr-prompt .lang { flex: none; font-size: 11px; font-weight: 700; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.ivr-opts { margin: 8px 0 0 40px; }
.ivr-opt { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 13px; flex-wrap: wrap; }
.ivr-opt .key { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--panel); display: grid; place-items: center; font-weight: 700; flex: none; }
.ivr-opt .lbl { font-weight: 600; min-width: 90px; } .ivr-opt .arrow { color: var(--muted); } .ivr-opt .ivr-menu { flex-basis: 100%; }
/* ---- softphone bars */
#ringbar, #callbar { position: fixed; left: 50%; bottom: -120px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; box-shadow: 0 20px 50px rgba(16,24,40,.25); z-index: 90; min-width: 420px; transition: bottom .3s; }
#ringbar.show, #callbar.show { bottom: 24px; }
#ringbar { border-color: var(--ok); animation: ringpulse 1.4s infinite; }
@keyframes ringpulse { 0%, 100% { box-shadow: 0 20px 50px rgba(16,24,40,.25); } 50% { box-shadow: 0 20px 50px rgba(22,163,74,.45); } }
.ring-ico { width: 40px; height: 40px; border-radius: 50%; background: #dcfce7; display: grid; place-items: center; font-size: 20px; animation: shake .8s infinite; } .ring-ico.live { background: var(--accent-soft); animation: none; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }

/* Hire an agent: the gallery clients pick from. */
.hire-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 10px; }
.hire-card { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); display: flex; flex-direction: column; }
.hire-card .price { text-align: right; white-space: nowrap; }
.hire-card .price b { font-size: 15px; }
.hire-card p { flex: 1; }
.avatar.big { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #1170D6, #2CBCD7); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 24px; flex: none; }
.starter-list { display: grid; gap: 8px; margin-top: 8px; }
.starter { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.starter b { display: block; }
.status-strip { flex-wrap: wrap; gap: 8px; }
.stat-of { font-size: 14px; font-weight: 500; color: var(--muted); }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 4px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #1170D6, #2CBCD7); }
a.button { display: inline-block; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: inherit; font-size: 12px; background: var(--panel); }
#camp-presets .starter { margin-top: 6px; }
tr.unread td { font-weight: 600; }

/* ---- navigation groups and sub-items */
aside nav .nav-group { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 10px 4px; }
aside nav .nav-sub { margin: -2px 0 4px 18px; border-left: 1px solid #1e293b; }
aside nav .nav-sub button { padding: 5px 10px 5px 14px; font-size: 12.5px; border-radius: 0 8px 8px 0; }
aside nav .nav-sub button.active { background: var(--sidebar-active); color: #fff; font-weight: 600; }

/* ---- live transcript groups: one box per call */
.transcript-groups { max-height: 480px; overflow: auto; }
.tgroup { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; background: var(--bg); font-size: 12.5px; }
.tgroup.live { border-color: var(--ok); }
.tgroup-head { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px dashed var(--line); }

/* ---- the phone */
.phone-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.phone { background: linear-gradient(180deg, #111827, #0b1220); border-radius: 34px; padding: 22px 18px 18px; color: #e5e7eb; box-shadow: 0 24px 60px rgba(16,24,40,.35), inset 0 0 0 2px #1f2937; }
.phone-screen { background: #0f172a; border-radius: 18px; padding: 18px 14px; min-height: 120px; text-align: center; border: 1px solid #1e293b; }
.ph-state { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; } .ph-state.live { color: #4ade80; } .ph-state.ringing { color: #fbbf24; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .4; } }
.ph-number { font-size: 26px; font-weight: 700; margin: 8px 0 4px; letter-spacing: .02em; word-break: break-all; }
.ph-sub { font-size: 12px; color: #94a3b8; }
.ph-input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid #334155; color: #fff; font-size: 26px; font-weight: 700; text-align: center; padding: 8px 4px; margin: 6px 0; border-radius: 0; }
.ph-input:focus { outline: none; box-shadow: none; border-bottom-color: #60a5fa; }
.phone-controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 0; }
.phone-controls:empty { display: none; }
.phone-controls button { background: #1f2937; color: #e5e7eb; border: 1px solid #374151; border-radius: 10px; padding: 8px 4px; font-size: 12px; }
.phone-controls button.on { background: #2563eb; border-color: #2563eb; color: #fff; }
.phone-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.phone-keys button { aspect-ratio: 1.35; border-radius: 50%; background: #1f2937; border: 1px solid #374151; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 22px; line-height: 1; }
.phone-keys button small { font-size: 9px; color: #94a3b8; letter-spacing: .12em; margin-top: 2px; } .phone-keys button:active { background: #374151; }
.phone-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.phone-actions button { border-radius: 999px; padding: 10px 18px; font-weight: 600; background: #1f2937; color: #e5e7eb; border: 1px solid #374151; }
.phone-actions button.answer { background: #16a34a; border-color: #16a34a; color: #fff; } .phone-actions button.hang { background: #dc2626; border-color: #dc2626; color: #fff; }
@media (max-width: 1000px) { .phone-wrap { grid-template-columns: 1fr; } .phone { max-width: 360px; margin: 0 auto; } }

/* ---- incoming call pop-up */
#incoming-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(2, 6, 23, .55); z-index: 95; }
#incoming-modal.show { display: flex; }
.incoming-card { background: var(--panel); border-radius: 20px; padding: 28px 32px; text-align: center; min-width: 340px; box-shadow: 0 30px 80px rgba(0,0,0,.4); border: 2px solid var(--ok); animation: ringpulse 1.4s infinite; }
.incoming-card .ring-ico { margin: 0 auto 10px; width: 56px; height: 56px; font-size: 26px; }
.incoming-title { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); } .incoming-number { font-size: 24px; font-weight: 700; margin: 4px 0; }
.incoming-actions { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.incoming-actions button { border-radius: 999px; padding: 9px 16px; font-weight: 600; } .incoming-actions .answer { background: var(--ok); color: #fff; border-color: var(--ok); } .incoming-actions .hang { color: var(--bad); border-color: var(--bad); }
#listenbar { position: fixed; left: 50%; bottom: -120px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--accent); border-radius: 16px; padding: 10px 16px; box-shadow: 0 20px 50px rgba(16,24,40,.25); z-index: 89; min-width: 360px; transition: bottom .3s; }
#listenbar.show { bottom: 96px; }

/* ---- line wizard */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 6px; }
.preset { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border-radius: 12px; text-align: left; }
.preset:hover { border-color: var(--accent); background: var(--accent-soft); } .preset-logo { font-size: 22px; }
.flow-preview { display: flex; flex-direction: column; gap: 6px; }
.flow-step { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); position: relative; }
.flow-step + .flow-step::before { content: ""; position: absolute; left: 20px; top: -8px; width: 2px; height: 8px; background: var(--line); }
.flow-ico { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); display: grid; place-items: center; flex: none; }

/* ---- knowledge builder */
.kb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.kb-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--panel); transition: transform .15s, box-shadow .15s; }
.kb-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,24,40,.1); }
.kb-card.empty { border-style: dashed; background: transparent; } .kb-card.off { opacity: .6; }
.kb-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; font-size: 18px; flex: none; }
.kb-rows { margin-top: 6px; } .kb-rows td { padding: 4px 4px; } .kb-rows input, .kb-rows textarea { padding: 6px 8px; }

/* ---- admin: models & stacks */
.stack-parts { display: flex; gap: 6px; flex-wrap: wrap; } .stack-parts span { font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; background: var(--bg); }
.margin-good { color: var(--ok); font-weight: 600; } .margin-bad { color: var(--bad); font-weight: 600; }
.calc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.calc .stat { font-size: 22px; }
.pron-table td input { padding: 5px 8px; }

/* ---- chats */
.chat-layout { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.chat-list { max-height: calc(100vh - 140px); overflow: auto; }
.thread { display: flex; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.thread:hover, .thread.sel { background: var(--accent-soft); } .thread.unread b { font-weight: 800; }
.thread-ico { font-size: 20px; flex: none; }
.chat-msgs { height: calc(100vh - 330px); min-height: 280px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: 78%; padding: 8px 12px; border-radius: 14px; font-size: 13.5px; white-space: pre-wrap; }
.bubble.them { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.ai { align-self: flex-end; background: var(--accent-soft); border-bottom-right-radius: 4px; }
.bubble.us { align-self: flex-end; background: #dcfce7; color: #14532d; border-bottom-right-radius: 4px; }
.steps-list { padding-left: 18px; margin: 0; } .steps-list li { margin-bottom: 8px; }
@media (max-width: 1000px) { .chat-layout { grid-template-columns: 1fr; } .chat-msgs { height: 50vh; } }

/* ---- dialogs (forms open in the middle of the screen) */
#modal { position: fixed; inset: 0; z-index: 80; display: none; }
#modal.show { display: block; }
#modal .modal-back { position: absolute; inset: 0; background: rgba(2, 6, 23, .5); backdrop-filter: blur(2px); }
#modal .modal-box { position: absolute; left: 50%; top: 4vh; transform: translateX(-50%); width: min(820px, 94vw); max-height: 92vh; overflow: auto; background: var(--panel); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: pop .18s ease-out; }
#modal .modal-body > .card, #modal .modal-body > div { border: 0; box-shadow: none; border-radius: 16px; margin: 0 !important; }
#modal .modal-x { position: sticky; float: right; top: 8px; right: 8px; margin: 8px 8px 0 0; z-index: 2; border-radius: 50%; width: 32px; height: 32px; padding: 0; }
body.modal-open { overflow: hidden; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* ---- chat composer */
.composer { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 6px 6px 6px 14px; }
.composer textarea { flex: 1; border: 0; background: transparent; min-height: 28px; max-height: 160px; resize: none; padding: 6px 0; }
.composer textarea:focus { box-shadow: none; }
.composer .send { width: 40px; height: 40px; border-radius: 50%; padding: 0; font-size: 16px; }


/* ================================================================ 2026-09 visual refresh: brand palette, light sidebar, pills */
body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, .stat, .ph-number, .incoming-number { font-family: "Poppins", "Inter", sans-serif; letter-spacing: -.02em; }
aside { width: 240px; background: var(--sidebar); color: var(--sidebar-ink); border-right: 1px solid var(--line); padding: 18px 14px; }
aside .brand { padding: 4px 8px 16px; } aside .brand .logo-svg { height: 34px; } aside .brand small { color: var(--muted); }
aside nav button { color: var(--sidebar-ink); border-radius: 10px; padding: 9px 12px; font-weight: 500; }
aside nav button:hover { background: var(--bg); color: var(--ink); }
aside nav button.active { background: var(--sidebar-active); color: var(--accent); font-weight: 600; }
aside nav button.active svg { stroke: var(--accent); }
aside nav .sep { background: var(--line); }
aside nav .nav-group { color: var(--muted); }
aside nav .nav-sub { border-left-color: var(--line); } aside nav .nav-sub button.active { background: var(--sidebar-active); color: var(--accent); }
aside .foot { border-top-color: var(--line); } aside .foot .who { color: var(--ink); }
aside .foot select, aside .foot button { border-radius: 10px; }
main { padding: 24px 30px; }
.topbar { margin-bottom: 20px; } .topbar h1 { font-size: 24px; font-weight: 600; }
.card { border-radius: 18px; padding: 20px; box-shadow: 0 1px 2px rgba(11, 27, 46, .04), 0 6px 20px rgba(11, 27, 46, .04); }
.card h2 { color: var(--muted); }
button, .btn { border-radius: 999px; padding: 8px 16px; font-weight: 500; }
button.small { padding: 4px 12px; }
button.primary { background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 16px rgba(17, 112, 214, .22); } button.primary:hover:not(:disabled) { background: #0d5fb8; }
button.danger { border-color: transparent; background: color-mix(in srgb, var(--bad) 10%, transparent); }
input, select, textarea { border-radius: 12px; background: var(--panel); }
label { color: var(--muted); }
.tabs { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px; display: inline-flex; gap: 2px; margin-bottom: 18px; }
.tabs button { border-radius: 999px; padding: 7px 14px; border-bottom: 0; color: var(--muted); }
.tabs button.active { background: var(--accent); color: #fff; font-weight: 600; border-bottom: 0; }
.stat { font-size: 30px; font-weight: 600; }
.pill { border-radius: 999px; }
table th { font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); }
tbody tr:nth-child(even) { background: transparent; } tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.banner { border-radius: 14px; }
.toast { background: var(--ink); color: #fff; border-radius: 12px; }
.agent-card, .kb-card, .hire-card, .preset, .thread, .flow-step, .tgroup, .insight { border-radius: 16px; }
.agent-card .avatar, .avatar.big, .agent-chip i { background: linear-gradient(135deg, #1170D6, #2CBCD7); }
.progress i { background: linear-gradient(90deg, #1170D6, #2CBCD7); }
#loadbar { background: linear-gradient(90deg, #1170D6, #2CBCD7); }
.phone { background: linear-gradient(180deg, #0B1B2E, #08131f); }
#modal .modal-box { border-radius: 22px; }
.login-brand { background: linear-gradient(160deg, #0B1B2E, #1170D6 80%, #2CBCD7); }
.login-brand .logo-svg { height: 40px; } .login-split { border-radius: 24px; } .login-form h1 { font-size: 28px; }
.gate .card { border-radius: 24px; }
.choice button { border-radius: 16px; } .choice button.active { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 1000px) { aside { left: -260px; } aside.open { left: 0; } }

/* ---- approvals */
.approval-group { margin-bottom: 14px; } .draft-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); } .draft-row input { width: auto; margin-top: 4px; }
.bubble.draft { align-self: flex-end; background: color-mix(in srgb, var(--warn) 10%, var(--panel)); border: 1px dashed var(--warn); width: 78%; } .bubble.draft textarea { min-height: 90px; margin-top: 6px; }

/* ---- tickets */
.tk-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.tk-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; text-align: left; }
.tk-stat b { font-family: "Poppins", sans-serif; font-size: 24px; font-weight: 600; } .tk-stat span { font-size: 12px; color: var(--muted); }
.tk-stat.active { border-color: var(--accent); background: var(--accent-soft); } .tk-stat.late b { color: var(--bad); }
.due-late { color: var(--bad); font-weight: 600; }
.tk-grid { display: grid; grid-template-columns: 1fr 220px; gap: 18px; margin-top: 12px; }
.tk-comment { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.tk-comment.customer { background: var(--bg); } .tk-comment.public { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.tk-comment.internal { background: color-mix(in srgb, var(--warn) 8%, var(--panel)); border-style: dashed; } .tk-comment.auto { opacity: .7; font-size: 12.5px; }
.tk-reply { border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-top: 10px; }
.seg { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 3px; margin-bottom: 6px; } .seg button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; } .seg button.active { background: var(--panel); box-shadow: 0 1px 4px rgba(0,0,0,.08); font-weight: 600; }
.tk-side label { margin-top: 10px; }
.tk-tpl { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; } .tk-tpl summary { cursor: pointer; list-style: none; }
#modal .modal-box:has(#tk-card) { width: min(980px, 96vw); }
@media (max-width: 900px) { .tk-stats { grid-template-columns: repeat(3, 1fr); } .tk-grid { grid-template-columns: 1fr; } }

.wa-quick { margin-top: 10px; padding: 14px; border-radius: 14px; background: var(--accent-soft); } .wa-quick p { margin: 4px 0 8px; }

/* outgoing mail: primary / secondary */
.mail-slot { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 12px; }
.mail-slot h3 { font-size: 14px; }
.mail-slot .pill { margin-left: 8px; }

/* subscribe + agreement */
.banner.warn.bad { background: #fee2e2; color: #991b1b; }
.sub-cta { border-color: var(--accent); }
.plan-pick { display: grid; gap: 8px; margin-bottom: 8px; }
.plan-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; margin: 0; }
.plan-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.plan-opt input { width: auto; margin-top: 3px; }
.contract-text { white-space: pre-wrap; font-size: 13px; line-height: 1.55; font-family: inherit; max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--bg); }
.signature { display: flex; align-items: baseline; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--line); margin: 10px 0; padding: 4px 2px; }
.sig-name { font: italic 26px Georgia, 'Times New Roman', serif; }
#subscribe-card { max-width: 760px; }

/* sign-in gates */
.code-input { font-size: 22px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.mfa-qr { display: flex; justify-content: center; margin: 14px 0 8px; } .mfa-qr svg { width: 180px; height: 180px; background: #fff; border-radius: 10px; padding: 6px; }
.mfa-secret { display: block; margin-top: 6px; font-size: 14px; letter-spacing: 1px; word-break: break-all; }
.recovery-codes { columns: 2; font-size: 15px; line-height: 1.9; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; user-select: all; }

/* ---- channels: tiles, connected list, setup popup */
.ch-badge { width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; flex: none; }
.ch-badge svg { width: 24px; height: 24px; }
.ch-badge.lg { width: 52px; height: 52px; border-radius: 15px; } .ch-badge.lg svg { width: 32px; height: 32px; }
.ch-whatsapp { background: #25d366; }
.ch-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ch-messenger { background: linear-gradient(45deg, #0a7cff, #a334fa 70%, #ff5280); }
.ch-email { background: var(--accent); }
.ch-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 14px 0 6px; }
.ch-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.ch-tile:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(15, 23, 42, .08); }
.ch-tile b { font-size: 15px; margin-top: 4px; } .ch-tile span { font-size: 12.5px; color: var(--muted); line-height: 1.45; flex: 1; }
.ch-tile em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--accent); margin-top: 4px; }
.ch-list { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ch-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; } .ch-row + .ch-row { border-top: 1px solid var(--line); }
.ch-row .grow { flex: 1; min-width: 0; }
@media (max-width: 640px) { .ch-row { flex-wrap: wrap; } .ch-row > .row { width: 100%; justify-content: flex-end; } }
#modal .modal-box:has(.ch-wizard) { width: min(760px, 96vw); }
.ch-wizard { padding: 22px 24px 0 !important; }
.ch-head { display: flex; align-items: center; gap: 14px; padding-right: 36px; }
.ch-head h2 { margin: 0; font-size: 20px; } .ch-head p { margin: 2px 0 0; }
.ch-tabs { display: flex; gap: 4px; margin: 18px 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.ch-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 9px 12px; color: var(--muted); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.ch-tabs button.active { color: var(--accent); border-bottom-color: var(--accent); } .ch-tabs button:disabled { opacity: .45; cursor: default; }
.ch-pane > label:first-child, .ch-pane .grid label { margin-top: 0; }
.ch-pane label { margin-top: 12px; }
.ch-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
@media (max-width: 640px) { .ch-options { grid-template-columns: 1fr; } }
.ch-option { position: relative; display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); cursor: pointer; font: inherit; }
.ch-option:hover { border-color: var(--accent); } .ch-option.rec { border-color: var(--accent); background: var(--accent-soft); }
.ch-option b { font-size: 14.5px; } .ch-option span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ch-option em { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 8px; }
.ch-note { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 8px 0 12px; }
.ch-manual { border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px 14px; margin-top: 4px; }
.ch-manual > summary { cursor: pointer; font-weight: 600; padding: 10px 0; list-style-position: inside; }
.ch-manual .grid { gap: 10px 14px; }
.ch-howto { margin-top: 14px; } .ch-howto > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13.5px; }
.ch-guide { margin-top: 8px; border-left: 2px solid var(--line); padding-left: 12px; }
.ch-guide details { padding: 6px 0; } .ch-guide summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.ch-guide p { margin: 6px 0 4px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.ch-section { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ch-pane > .ch-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ch-section h3 { margin: 0 0 4px; font-size: 14.5px; border: 0; padding: 0; }
.ch-copy { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ch-copy .k { width: 96px; font-size: 12.5px; color: var(--muted); }
.ch-copy code { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; overflow-wrap: anywhere; }
.ch-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) { .ch-choices { grid-template-columns: 1fr; } }
.ch-choice { display: flex !important; flex-direction: column; gap: 4px; margin: 0 !important; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; }
.ch-choice input { display: none; } .ch-choice b { font-size: 13.5px; } .ch-choice span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.ch-choice.on { border-color: var(--accent); background: var(--accent-soft); }
.ch-providers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.ch-providers button { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ch-providers button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ch-pane .row input { flex: 1; }
.ch-foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 8px; margin: 18px -24px 0; padding: 14px 24px; background: var(--panel); border-top: 1px solid var(--line); border-radius: 0 0 22px 22px; }
.ch-foot #ch-out { max-width: 60%; }
