@font-face { font-family:"Source Sans 3"; font-style:normal; font-weight:200 900; font-display:optional; src:url("fonts/source-sans-3/source-sans-3.woff2") format("woff2") }
:root {
  color-scheme: light;
  --canvas:#f4f6fa; --paper:#fff; --rail:#f8fafd; --ink:#19253b; --muted:#516079;
  --line:#dfe6f0; --blue:#245ad1; --teal:var(--blue); --deep:#173e9d; --pale:#eaf1ff; --focus:#2057ca;
  --amber:#895006; --soft-amber:#fff1d9; --bad:#a13645; --soft-bad:#fff0f2;
  --r:12px; --gap:20px; --bar-height:68px;
}
* { box-sizing:border-box }
html { font:16px/1.5 "Source Sans 3","Segoe UI",system-ui,sans-serif; color:var(--ink); background:var(--canvas); font-variant-numeric:tabular-nums; -webkit-font-smoothing:antialiased }
html { scroll-padding-top:calc(var(--bar-height) + 10px) }
body { margin:0 }
a { color:var(--teal); text-underline-offset:.19em; text-decoration-thickness:1px }
a:hover { color:var(--deep) }
:focus-visible { outline:2px solid var(--focus); outline-offset:3px }
button,input,textarea,select { font:inherit }
button,.button { display:inline-flex; gap:8px; align-items:center; justify-content:center; min-height:40px; padding:7px 16px; border:1px solid var(--teal); border-radius:8px; background:var(--teal); color:white; font-weight:650; text-decoration:none; cursor:pointer }
button:hover,.button:hover { background:var(--deep); color:white }
button:disabled { opacity:.66; cursor:progress }
.secondary { border-color:#cdd8e9; background:var(--paper); color:var(--ink) }
.secondary:hover { color:var(--deep); background:var(--pale) }
.skip { position:absolute; left:-9999px; top:10px; background:white; padding:8px 14px; z-index:20 }
.skip:focus { left:12px }
.shell { min-height:100vh; display:grid; grid-template-columns:236px minmax(0,1fr); grid-template-rows:var(--bar-height) 1fr }
.panel-topbar,.navpane { font-family:"Source Sans 3","Segoe UI",sans-serif }
.panel-topbar { grid-column:1/-1; display:grid; grid-template-columns:subgrid; position:sticky; top:0; z-index:12; height:var(--bar-height); background:var(--paper); border-bottom:1px solid #d5e0ef; box-shadow:0 2px 9px #253c5c0b }
.account-menu { position:relative; min-width:0; padding:0 12px; display:flex; align-items:center }
.account-menu summary { display:flex; align-items:center; gap:10px; height:44px; padding:3px 8px; border-radius:9px; list-style:none; cursor:pointer }
.account-menu summary::-webkit-details-marker { display:none }
.account-menu summary:hover,.account-menu[open] summary { background:#edf4fd }
.account-avatar { flex:none; width:36px; height:36px; display:grid; place-items:center; border-radius:50%; background:#deedff; color:#184a8c; font-weight:700; font-size:1.04rem; border:1px solid #c0d8f6 }
.account-copy { display:grid; min-width:0; line-height:1.2 }
.account-copy strong { font-weight:670; font-size:.94rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.account-copy small { color:#506582; font-size:.77rem }
.account-chevron { margin-left:auto; width:14px; height:14px; color:#496382 }
.account-menu[open] .account-chevron { transform:rotate(180deg) }
.account-popover { position:absolute; top:calc(100% - 5px); left:12px; width:220px; max-width:calc(100vw - 24px); padding:7px; background:white; border:1px solid #d3dfed; border-radius:12px; box-shadow:0 12px 32px #1e375b30,0 2px 7px #1e375b12 }
.account-popover .account-copy { padding:8px 10px 10px }
.account-popover form { margin:0; border-top:1px solid var(--line); padding-top:4px }
.account-popover button { width:100%; min-height:44px; justify-content:start; background:transparent; color:var(--ink); border:0; padding:7px 10px }
.account-popover button:hover { color:var(--deep); background:var(--pale) }
.account-popover button svg { width:17px; height:17px }
.topbar-tools { grid-column:2; min-width:0; display:flex; align-items:center; gap:12px; padding-inline:clamp(21px,3.1vw,48px) }
.panel-clock { margin-inline-start:auto; display:flex; align-items:center; gap:9px; color:#38506e; font-size:.78rem; line-height:1.15; white-space:nowrap; font-variant-numeric:tabular-nums }
.panel-clock svg { width:18px; height:18px; color:#517499 }
.panel-clock strong { display:block; font-size:1.05rem; font-weight:650; letter-spacing:.02em; color:#213652 }
.navpane { position:sticky; top:var(--bar-height); align-self:start; height:calc(100dvh - var(--bar-height)); min-height:0; min-width:0; background:linear-gradient(155deg,#b7d6fb 0%,#d4e8fb 40%,#edf6fc 81%,#f6faff 100%); border-right:1px solid #c3d8ee; padding:18px 13px 15px; display:flex; flex-direction:column }
.brand { display:flex; gap:11px; align-items:center; color:var(--ink); text-decoration:none; width:fit-content; padding:0 }
.brand>span:last-child { font-size:.73rem; font-weight:600; color:var(--muted) }
.brand strong { display:block; font-size:1.23rem; font-weight:750; letter-spacing:-.035em; line-height:1.05; color:var(--ink); margin-bottom:3px }
.mark { display:grid; flex:0 0 38px; width:38px; height:38px; border-radius:10px; background:var(--blue); color:white; place-items:center }
.mark svg { width:24px; height:24px }
#primary { overflow:auto; min-height:0; scrollbar-width:thin; scrollbar-color:#c5d3e6 transparent; padding:3px; margin:-3px }
.navgroup,.nav-links { display:grid; gap:2px }
.navgroup,.nav-section { margin:0 0 13px }
.nav-heading { display:flex; align-items:center; gap:9px; min-height:35px; padding:5px 8px; color:var(--muted); font-size:.78rem; font-weight:700; line-height:1.25 }
.nav-section .nav-heading { list-style:none; color:var(--ink); min-height:40px; font-size:.88rem; font-weight:650; border-radius:8px }
.nav-section .nav-heading::-webkit-details-marker { display:none }
.nav-section .nav-heading:hover { background:#edf2fa }
.nav-chevron { margin-left:auto; transition:transform .16s ease }
.nav-section[open] .nav-chevron { transform:rotate(180deg) }
.nav-group-icon,.nav-link svg,.nav-heading svg { width:17px; height:17px; flex:none }
.nav-link { position:relative; display:flex; align-items:center; min-height:38px; gap:10px; padding:5px 9px; border-radius:8px; font-size:.87rem; line-height:1.3; color:var(--ink); text-decoration:none; font-weight:550 }
.nav-link svg,.nav-group-icon { color:#3f658e }
.nav-link:hover,.nav-section .nav-heading:hover { background:#ffffff91; color:var(--deep) }
.nav-link[aria-current="page"] { color:#173e80; background:white; box-shadow:0 2px 7px #35578119; font-weight:700 }
.nav-link[aria-current="page"] svg { color:var(--blue) }
.nav-section .nav-links { margin:3px 0 0 8px; padding-left:7px; border-left:1px solid var(--line) }
.menu-toggle { display:none }
main { width:100%; max-width:1640px; min-width:0; padding:26px clamp(21px,3.1vw,48px) 60px; margin:0 auto }
.mast,.sheet>header,.record-head,.pub,.head-actions,.buttons,.pages,.tabs,.filters,.save-bar { display:flex; align-items:center; gap:14px; flex-wrap:wrap }
.mast { justify-content:space-between; margin-bottom:23px }
h1,h2,p,dl,ol,ul { margin:0 }
h1 { font-size:clamp(1.85rem,3vw,2.45rem); line-height:1.12; font-weight:740; letter-spacing:-.045em; text-wrap:balance }
h2 { font-size:1.15rem; letter-spacing:-.021em; color:var(--ink); font-weight:700 }
.crumb { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:.8rem; margin-bottom:7px }
.crumb a { color:var(--muted); text-decoration:none }.crumb a:hover { text-decoration:underline }
.crumb svg { width:13px; height:13px; flex:none }
.mast-subtitle { margin-top:7px; color:var(--muted); font-size:.93rem }
dt { color:var(--muted); font-size:.85rem } dd { margin:0 }
.facts dd a { color:var(--ink); text-decoration:none }.facts dd a:hover { text-decoration:underline }
.sheet { min-width:0; background:var(--paper); border:1px solid var(--line); border-radius:var(--r); margin:0 0 20px; overflow:hidden }
.sheet>header { padding:15px 20px; justify-content:space-between; border-bottom:1px solid var(--line) }.sheet>header a { font-size:.91rem }
.empty { padding:28px 20px; color:var(--muted); font-size:.95rem }
.table-wrap { overflow:auto; max-width:100% }
table { width:100%; border-collapse:collapse; text-align:left; font-size:.9rem; white-space:nowrap }
th,td { padding:10px 16px;border-bottom:1px solid var(--line); vertical-align:middle }
th:first-child,td:first-child { padding-left:20px }
th { background:var(--rail); font-weight:650; color:var(--muted); font-size:.78rem }
tbody tr:last-child td { border-bottom:0 } tbody tr:hover { background:var(--rail) }
td small { display:block; color:var(--muted); font-size:.76rem; margin-top:2px }
td.wrap { white-space:normal; min-width:150px; max-width:52ch }
.number { font-size:.99rem; font-weight:650; letter-spacing:.008em }
.status { display:inline-block; border-radius:5px; background:var(--rail); color:var(--muted); font-size:.78rem; font-weight:650; padding:3px 8px }
.status.answered,.status.completed,.status.delivered,.status.active,.status.automatic { color:#19564a; background:#e0f0e9 }
.status.open,.status.retry,.status.pending,.status.missed,.status.abandoned { color:var(--amber); background:var(--soft-amber) }
.status.claimed,.status.simulated { background:var(--pale); color:var(--deep) }
.status.failed,.status.error { background:var(--soft-bad); color:var(--bad) }
label { display:flex; flex-direction:column; gap:5px; color:var(--ink); font-weight:600; font-size:.86rem }
input,select,textarea { width:100%; min-width:0; max-width:100%; border:1px solid #c1ccdf; border-radius:7px; padding:7px 9px; color:var(--ink); background:var(--paper); min-height:40px; font-size:.95rem; font-weight:400 }
textarea { resize:vertical }.check { flex-direction:row;align-items:center;gap:8px; min-height:40px; width:fit-content }.check input { width:18px;min-height:18px;height:18px;accent-color:var(--teal) }
.binary-option { display:inline-flex; flex-direction:row; align-items:center; align-self:start; gap:10px; width:fit-content; max-width:100%; min-height:44px; cursor:pointer }
.binary-option input[role=switch] { appearance:none; box-sizing:border-box; position:relative; flex:0 0 42px; width:42px; min-width:42px; height:24px; min-height:24px; border:1px solid #74869a; border-radius:20px; padding:0; margin:0; background:#8292a4; cursor:inherit; transition:background-color .15s ease,border-color .15s ease }
.binary-option input::before { content:""; display:block; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:white; box-shadow:0 1px 3px #162c4e44; transition:transform .15s ease }
.binary-option input:checked { background:#2466ca; border-color:#2055ab }
.binary-option input:checked::before { transform:translateX(18px) }
.binary-option:has(input:disabled) { opacity:.62; cursor:not-allowed }
.binary-option:hover input:not(:disabled) { box-shadow:0 0 0 3px #548ad21c }
.binary-option input:focus-visible { outline:2px solid #174b9a; outline-offset:3px }
@media(prefers-reduced-motion:reduce) { .binary-option input[role=switch],.binary-option input::before { transition:none } }
@media(forced-colors:active) {
  .binary-option input[role=switch] { forced-color-adjust:none; border-color:ButtonText; background:Canvas }
  .binary-option input::before { background:ButtonText }
  .binary-option input:checked { background:Highlight; border-color:Highlight }
  .binary-option input:checked::before { background:HighlightText }
}
.filters,.pub { margin:0 0 18px }.filters { padding:16px; border:1px solid var(--line); border-radius:var(--r); background:var(--paper); align-items:end }.filters label { max-width:240px }.filters details>.fields { margin-top:8px }.filters>a { padding:8px }
summary,.remove {cursor:pointer;color:var(--teal) }
.tabs {gap:4px; margin-bottom:15px }.tabs a {text-decoration:none;padding:7px 12px;border-radius:20px;color:var(--ink);font-weight:550;font-size:.9rem}.tabs a[aria-current]{background:var(--deep);color:#fff}.tabs a:hover:not([aria-current]){background:var(--pale)}
.pages { justify-content:flex-end; padding:12px 18px; border-top:1px solid var(--line); font-size:.87rem }.pages span {color:var(--muted)}
.record-head { margin:20px 0 }.record-number {font-size:clamp(1.4rem,3vw,2rem);font-weight:650;letter-spacing:-.02em;overflow-wrap:anywhere}
.voice-inbox {list-style:none;padding:0;margin:0}
.voice-inbox li {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;padding:14px 20px;border-bottom:1px solid var(--line)}
.voice-inbox li:last-child {border-bottom:0}
.voice-inbox .number {display:block}
.voice-inbox time,.voice-inbox li>div>span {color:var(--muted);font-size:.84rem}
.voice-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:100%}
.voice-actions audio {max-width:100%;width:260px}
.facts {display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;padding:18px 20px;background:var(--paper);border:1px solid var(--line);border-radius:var(--r);margin-bottom:20px}.sheet>.facts {border:0;margin:0}.facts dd {color:var(--ink);font-weight:650;overflow-wrap:anywhere}
.split {display:grid;grid-template-columns:1.3fr 1fr;gap:20px}.rows,.timeline {list-style:none;padding:8px 20px}.rows li {display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:10px 0}.rows li:last-child{border:0}
.timeline li {position:relative;display:grid;grid-template-columns:minmax(140px,.7fr) 1fr 1.4fr;gap:14px;padding:10px 0 10px 16px;border-left:2px solid var(--pale);font-size:.89rem;overflow-wrap:anywhere}.timeline li:before {content:"";position:absolute;left:-4px;top:17px;width:6px;height:6px;border-radius:50%;background:var(--teal)}.timeline time {color:var(--muted)}
.hour-list {padding:8px 20px 14px}.hour-list a {display:grid;grid-template-columns:45px 1fr 34px 62px;gap:10px;align-items:center;color:var(--ink);font-size:.85rem;text-decoration:none;padding:4px 0}.hour-list a:hover{background:var(--rail)}.hour-list meter{width:100%;accent-color:var(--teal)}.hour-list small{color:var(--muted)}
.cardform {display:grid;gap:12px;padding:18px 20px}.cardform>p.hint {margin:0}.hint {color:var(--muted);font-size:.87rem;max-width:76ch}.cardform>button,.cardform>label:has(input[type=number]),.cardform>label:has(input[type=password]) {width:fit-content;max-width:100%}
.fields,.edit-row {display:flex;flex-wrap:wrap;gap:12px;align-items:end}.fields>label {flex:1 1 155px;max-width:330px}.edit-row {padding:12px 0;border-bottom:1px solid var(--line)}.edit-row label {flex:1 1 110px}.edit-row .check {flex:0 1 auto}.edit-row .remove{background:none;border:0;text-decoration:underline;font-weight:500;min-height:40px;padding:6px;color:var(--bad)}
.pub {font-size:.88rem;color:var(--muted)}.save-bar {justify-content:flex-end;padding:14px;background:var(--paper);border:1px solid var(--line);border-radius:var(--r)}.voice-row {display:flex;align-items:end;gap:12px}.voice-row label {flex:1}
.notice {padding:12px 15px;border-left:4px solid var(--teal);background:var(--pale);margin-bottom:15px}.notice.error{border-color:var(--bad);background:var(--soft-bad)}
.player {display:flex;align-items:center;gap:12px;flex-wrap:wrap}.player audio{max-width:100%;height:42px}
.prompt-group{border-top:1px solid var(--line);padding-top:10px}.prompt-group summary{padding:5px 0;font-weight:600}.prompt-group .voice-row,.prompt-group .hint{margin-top:12px}
.status.available{background:#e0f0e9;color:#19564a}.status.ringing,.status.busy{background:var(--soft-amber);color:var(--amber)}
@media (max-width:1050px) { .shell{grid-template-columns:216px minmax(0,1fr)} .navpane{padding-inline:10px} .split{grid-template-columns:1fr} }
@media (max-width:760px) {
  :root { --bar-height:60px }
  .shell { display:block }
  .panel-topbar { display:flex; align-items:stretch; padding-inline:8px; gap:6px }
  .topbar-tools { flex:1; padding-inline:0; gap:6px }
  .account-menu { padding:0 }
  .account-menu summary { width:44px; padding:4px; justify-content:center }
  .account-menu summary .account-copy,.account-chevron { display:none }
  .account-popover { left:0 }
  .brand { gap:7px }
  .mark { flex-basis:30px; width:30px; height:30px }
  .mark svg { width:21px; height:21px }
  .brand strong { font-size:1rem }
  .brand>span:last-child { font-size:.62rem }
  .panel-clock { font-size:.72rem }
  .panel-clock strong { font-size:.96rem }
  .panel-clock svg { display:none }
  .menu-toggle { height:44px; width:44px; padding:0; border:0; background:transparent; color:#254a78 }
  .has-js .menu-toggle { display:inline-flex }
  @media (scripting:enabled) {
    .menu-toggle { display:inline-flex }
    .navpane:not(:has(#primary.shown)) { display:none }
  }
  .menu-toggle:is(:hover,[aria-expanded=true]) { background:#e4effb }
  .menu-toggle svg { width:21px; height:21px }
  .navpane { position:static; height:auto; padding:12px 16px; border:0; border-bottom:1px solid #c3d8ee }
  .has-js .navpane { position:fixed; z-index:10; inset:var(--bar-height) 0 auto; max-height:calc(100dvh - var(--bar-height)); overflow-y:auto; overscroll-behavior:contain; box-shadow:0 8px 16px #28425f20 }
  .has-js .navpane:not(:has(#primary.shown)) { display:none }
  #primary { grid-column:1/-1; overflow:initial }
  .has-js #primary:not(.shown) { display:none }
  .navgroup,.nav-section { margin-bottom:9px }
  .nav-links { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:6px }
  .nav-link { min-height:42px; font-size:.85rem }
  main { padding:19px 16px 40px }
  .mast { gap:12px; margin-bottom:18px }
  .sheet>header,.cardform { padding:12px 14px }
  td:first-child,th:first-child { padding-left:14px }
  .timeline li { grid-template-columns:1fr;gap:1px }
  .filters { padding:12px;gap:8px }.filters label { flex:1 1 130px;max-width:none }
  .voice-row { align-items:start;flex-wrap:wrap }.voice-row label { flex:1 0 100% }
  .fields>label { max-width:none }.split { display:block }
  .facts { grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:12px }
  .record-number { font-size:1.35rem }.tabs { gap:1px }.tabs a { padding:6px 9px }
  .settings-form .sheet { margin-bottom:12px }
}
@media (prefers-reduced-motion:reduce) { .nav-chevron { transition:none } }


.settings-hub { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr)); gap:16px; align-items:start }
.settings-hub .sheet { margin:0 }
.settings-hub ul { padding:6px; list-style:none }
.settings-hub li a { display:flex; align-items:center; gap:12px; padding:10px; text-decoration:none; color:var(--ink); border-radius:7px }
.settings-hub li a:hover { background:var(--rail); color:var(--deep) }
.settings-hub svg { width:18px;height:18px; color:var(--muted) }
.settings-hub li a svg:last-child { margin-left:auto }

.sheet,.dashboard-panel,.dashboard-kpi { box-shadow:0 2px 5px rgb(22 45 77 / 6%),0 7px 20px rgb(22 45 77 / 4%) }
