:root {
    color-scheme: light;
    color: #17263a;
    background: #f2f5f9;
    font: 15px/1.5 Inter, 'Segoe UI', system-ui, sans-serif;
    --nav: #101c2e;
    --paper: #fff;
    --line: #dce4ee;
    --muted: #526479;
    --accent: #06725d;
    --focus: #447ac2;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
p, dl { margin: 0; }
h1, h2 { margin: 0; color: #142338; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 3vw, 2.35rem); letter-spacing: -.04em; }
h2 { font-size: 1.08rem; letter-spacing: -.013em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.workspace { min-height: 100vh; display: grid; grid-template-columns: 226px minmax(0, 1fr); }
.sidebar { background: var(--nav); color: #ecf4fc; padding: 26px 17px; display: flex; flex-direction: column; gap: 30px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; text-decoration: none; white-space: nowrap; font-weight: 650; }
.brand strong { color: #84e6c4; font-weight: 650; }
.brand-mark { width: 36px; height: 36px; display: grid; flex: 0 0 36px; place-items: center; border-radius: 9px; background: #82e4be; color: #102c36; font-weight: 800; letter-spacing: -.06em; }
.sidebar nav { display: grid; gap: 4px; }
.nav-link { position: relative; border-radius: 8px; color: #c3d1e3; padding: 10px 12px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.nav-link:hover { background: #1d2d44; color: #fff; }
.nav-link.selected { background: #253951; color: #fff; }
.nav-link.selected::before { position: absolute; content: ''; inset: 8px auto 8px 0; width: 3px; border-radius: 2px; background: #83e5c2; }
.provider { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding: 12px 10px; border: 1px solid #39495d; border-radius: 10px; }
.provider strong, .provider span:not(.indicator) { display: block; font-size: .79rem; }
.provider span:not(.indicator) { color: #bfd0e2; }
.indicator, .call-dot { flex: 0 0 9px; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #b88a47; }
.indicator.live { background: #79e1b7; }
.main-shell { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 66px; padding: 9px clamp(15px, 3.2vw, 40px); border-bottom: 1px solid var(--line); background: var(--paper); }
.top-label { color: var(--muted); font-size: .86rem; font-weight: 650; }
.profile { display: flex; align-items: center; gap: 14px; }
.profile-name { line-height: 1.3; font-weight: 650; }
.profile small { display: block; color: var(--muted); font-weight: 500; }
.content { padding: 30px clamp(15px, 3.2vw, 40px) 46px; max-width: 1400px; margin: auto; }
.heading-row, .card-heading, .profile, .control-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.heading-row { margin-bottom: 23px; }
.heading-row .muted { margin-top: 5px; }
.header-actions, .button-row, .row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.muted, .help { color: var(--muted); }
.help { font-size: .81rem; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.metrics div { padding: 15px 18px; min-width: 0; }
.metrics div + div { border-left: 1px solid var(--line); }
.metrics dt { color: var(--muted); font-size: .82rem; font-weight: 650; }
.metrics dd { font-size: 1.76rem; font-variant-numeric: tabular-nums; margin: 1px 0 0; color: #17283f; font-weight: 650; letter-spacing: -.045em; }
.metrics dd + span { display: block; }
.layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(268px, 1fr); gap: 17px; align-items: start; }
.team-layout { grid-template-columns: minmax(0, 1fr) minmax(275px, 340px); }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: 0 1px 2px #101c2e09; }
.card-heading { min-height: 65px; padding: 15px 19px; }
.card-heading + .stack { padding: 1px 19px 18px; }
.call-display { margin: 0 19px; min-height: 101px; display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px solid #d3e7e1; border-radius: 10px; background: #eef8f5; overflow-wrap: anywhere; }
.call-display strong { font-size: 1.16rem; }
.call-display .help { margin-top: 3px; }
.call-dot { flex-basis: 12px; width: 12px; height: 12px; margin: 0; background: #82a797; box-shadow: 0 0 0 5px #dceee8; }
.call-display.is-active .call-dot { background: #06725d; }
.call-display.needs-review { border-color: #ead293; background: #fcf4df; }
.call-display.needs-review .call-dot { background: #a06c20; box-shadow: 0 0 0 5px #f3e6c0; }
.control-row { align-items: end; flex-wrap: wrap; padding: 16px 19px 19px; }
.delay-field { max-width: 144px; }
.input-suffix { display: flex; gap: 6px; align-items: center; }
.input-suffix span { color: var(--muted); font-size: .84rem; padding-top: 3px; }
.delay-field input { width: 94px; }
.stack { display: grid; gap: 10px; }
.stack > button { justify-self: start; }
label { display: block; color: #22344b; font-size: .85rem; font-weight: 650; }
.label-note { color: var(--muted); font-size: .73rem; margin-left: 3px; font-weight: 500; }
button, .button, input, select { font: inherit; }
button, .button { display: inline-flex; gap: 6px; justify-content: center; align-items: center; text-decoration: none; cursor: pointer; padding: 7px 13px; min-height: 40px; border: 1px solid transparent; border-radius: 8px; color: #fff; background: var(--accent); font-weight: 650; font-size: .86rem; white-space: nowrap; }
button:not(:disabled):hover, .button:hover { background: #075c4c; }
button:disabled { cursor: default; opacity: .48; }
.secondary { color: #233751; background: #fff; border-color: #c9d6e5; }
.secondary:not(:disabled):hover { background: #edf3fa; }
.small { min-height: 33px; padding: 4px 9px; font-size: .79rem; }
input:not([type='checkbox']), select { display: block; color: #17263b; background: var(--paper); padding: 7px 9px; margin-top: 4px; min-height: 40px; border: 1px solid #c9d6e5; border-radius: 8px; width: 100%; }
.queue-switch select { margin: 0; min-width: 151px; }
input[type='file'] { font-size: .81rem; }
input[type='file']::file-selector-button { font: inherit; background: #eef3f9; color: #233751; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; margin-right: 7px; }
.checkbox { display: flex; gap: 7px; align-items: baseline; font-weight: 500; }
:is(button, a, input, select):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.pill { display: inline-block; max-width: 100%; border-radius: 15px; font-size: .75rem; font-weight: 650; padding: 3px 8px; white-space: nowrap; }
.pill.neutral { color: #475975; background: #edf2f8; }
.pill.positive { color: #075842; background: #dcf3e8; }
.pill.warning { color: #7d4916; background: #f9e8d2; }
.pill.danger { color: #8c312d; background: #fbe4e2; }
.notice, .attention { padding: 11px 13px; border-radius: 8px; font-size: .86rem; }
.notice { color: #155b46; background: #def4eb; margin: 0 0 13px; }
.notice.error { color: #8c312d; background: #fbe4e2; }
.attention { color: #704a20; background: #fff3d8; margin: 0 19px 18px; }
.attention p { margin-bottom: 8px; }
.control-row + .notice { margin: 0 19px 18px; }
.log { margin-top: 17px; scroll-margin-top: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .83rem; color: #203249; }
th, td { padding: 11px 12px; border-bottom: 1px solid #e5ebf3; }
th { background: #f3f6fa; color: #4d6076; font-size: .77rem; font-weight: 700; white-space: nowrap; }
tr :is(th,td):first-child { padding-left: 19px; }
tr :is(th,td):last-child { padding-right: 19px; }
tbody tr:hover { background: #f8fafd; }
.numeric { font-variant-numeric: tabular-nums; }
.cell-sub { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 13px 19px; font-size: .81rem; color: var(--muted); }
.text-link { color: #1e5386; text-decoration: none; font-size: .82rem; font-weight: 650; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.account-action { padding: 0 19px 17px; }
.sign-in { min-height: 100vh; display: grid; align-items: center; justify-items: center; background: radial-gradient(ellipse at top left, #224961, #101c2e 62%); padding: 24px; }
.sign-in-panel { width: min(100%, 433px); color: #17263a; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: 0 20px 50px #0b142b60; }
.sign-in-panel h1 { margin: 24px 0 17px; font-size: 1.68rem; }
.sign-brand { padding: 0; }
.sign-brand strong { color: var(--accent); }
.sign-in-panel button { width: 100%; margin-top: 4px; }
@media (max-width: 1080px) {
    .workspace { grid-template-columns: 170px minmax(0, 1fr); }
    .sidebar { padding-inline: 11px; }
    .brand { padding-inline: 0; gap: 7px; }
    .brand-mark { width: 31px; height: 31px; flex-basis: 31px; }
    .team-layout { grid-template-columns: 1fr; }
}
@media (max-width: 790px) {
    .workspace { display: block; }
    .sidebar { position: static; height: auto; padding: 12px 15px; gap: 9px; }
    .sidebar nav { display: flex; flex-wrap: wrap; }
    .nav-link { padding-block: 6px; }
    .nav-link.selected::before { inset-block: 5px; }
    .provider { position: static; padding: 3px 0 0; border: none; }
    .provider div { display: flex; gap: 7px; }
    .layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .topbar, .heading-row { flex-wrap: wrap; }
    .content { padding-top: 21px; }
    .profile { gap: 6px; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metrics div:nth-child(3) { border-left: 0; }
    .metrics div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .metrics div { padding: 11px 14px; }
    .control-row { gap: 13px; }
}
