/* Keren — admin UI (RTL). Visual language shared with KavNext: deep-green sidebar, gold accents, Heebo. */

@font-face{font-family:Heebo;font-weight:400;font-display:swap;src:url(fonts/heebo-hebrew-400-normal.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:Heebo;font-weight:500;font-display:swap;src:url(fonts/heebo-hebrew-500-normal.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:Heebo;font-weight:700;font-display:swap;src:url(fonts/heebo-hebrew-700-normal.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:Heebo;font-weight:400;font-display:swap;src:url(fonts/heebo-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+2000-206F,U+2190-21FF}
@font-face{font-family:Heebo;font-weight:500;font-display:swap;src:url(fonts/heebo-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+2000-206F,U+2190-21FF}
@font-face{font-family:Heebo;font-weight:700;font-display:swap;src:url(fonts/heebo-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+2000-206F,U+2190-21FF}

:root {
    --bg: #f4f5f2;
    --surface: #ffffff;
    --border: #e2e5e0;
    --text: #1d2321;
    --muted: #66706b;
    --brand: #14524a;
    --brand-2: #1f7a6d;
    --brand-deep: #0e3d37;
    --brand-soft: #e3efec;
    --gold: #b88a2e;
    --gold-soft: #f6eedc;
    --primary: #14524a;
    --primary-hover: #1f7a6d;
    --ok: #2e7d4f;
    --ok-bg: #e1f1e7;
    --warn: #b4690e;
    --warn-bg: #fbecd6;
    --error: #b3362c;
    --error-bg: #f8e1de;
    --info: #2d5e9e;
    --info-bg: #e2ebf7;
    --pause: #8a7fb0;
    --topbar: #0e3d37;
    --topbar-text: #e9f2ef;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(20,30,25,.06), 0 2px 8px rgba(20,30,25,.05);
    --font: Heebo, "Segoe UI", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}


* { box-sizing: border-box; }

html, body { margin: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 var(--font);
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 1.5rem; margin: 0 0 1rem; }

.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .9em; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }

/* Shell: top bar + sidebar */
.shell { display: flex; min-height: calc(100vh - 56px); }
.sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--brand);
    color: #e9f2ef;
    padding: 1rem .7rem;
}
.nav-section { margin-bottom: 1.1rem; }
.nav-title { font-size: .75rem; color: #e3c983; font-weight: 700; padding: 0 .65rem .3rem; letter-spacing: .03em; }
.nav-section + .nav-section { border-top: 1px solid rgba(255,255,255,.12); padding-top: .8rem; }
.sidebar a { display: block; padding: .42rem .65rem; border-radius: 8px; color: #d6e6e1; font-size: .93rem; font-weight: 500; margin-bottom: 1px; }
.sidebar a:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.sidebar a.is-active { background: #fff; color: var(--brand); font-weight: 700; }
.hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem 1.25rem; }
.wide { max-width: 980px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 0; }
legend { font-weight: 700; padding: 0 .4rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.inline-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--muted); }
.btn-sm { padding: .25rem .6rem; font-size: .85rem; }
.btn-danger { background: var(--error); border-color: var(--error); color: #fff; }
.btn-danger:hover { background: #8f1b13; }
.tag { display: inline-block; padding: .05rem .5rem; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-size: .8rem; font-weight: 500; }
.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: #c3c8d2; margin-inline-end: .35rem; vertical-align: middle; }
.dot.ok { background: var(--ok); } .dot.busy { background: var(--info); } .dot.ring { background: var(--warn); } .dot.pause { background: var(--pause); } .dot.off { background: #c9cfca; }
.table td.actions-cell { white-space: nowrap; }
.table input[type=number] { width: 5rem; }
input[type=number], input[type=time], input[type=file], textarea { font: inherit; padding: .45rem .6rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
textarea { min-height: 5rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 1.5rem 0 .6rem; }
.section-head h2 { font-size: 1.1rem; margin: 0; }

/* Top bar */
.topbar {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 1.5rem;
    height: 56px;
    background: var(--topbar);
    color: var(--topbar-text);
}
.brand { font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; color: #fff; }
.brand span { font-weight: 500; color: #e3c983; margin-inline-start: .4rem; }
.mainnav { display: flex; gap: .25rem; flex: 1; }
.mainnav a {
    color: var(--topbar-text);
    padding: .4rem .8rem;
    border-radius: 6px;
    opacity: .8;
}
.mainnav a:hover { opacity: 1; text-decoration: none; background: rgba(255,255,255,.08); }
.mainnav a.is-active { opacity: 1; background: rgba(255,255,255,.14); }
.userbox { display: flex; align-items: center; gap: .75rem; font-size: .9rem; }
.userbox a, .userbox .linkbtn { color: var(--topbar-text); opacity: .8; }
.userbox-name { font-weight: 600; }

.page { max-width: 1200px; margin: 0 auto; padding: 1.75rem 1.5rem 3rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }

/* Alerts */
.alert { padding: .7rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid transparent; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: #bfe3cc; }
.alert-error { background: var(--error-bg); color: var(--error); border-color: #f6c9c4; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: #c9d8ee; }

/* Badges */
.badge {
    display: inline-block;
    padding: .05rem .5rem;
    border-radius: 999px;
    font-size: .8rem;
    background: #eef0ed;
    color: var(--muted);
    font-weight: 500;
}
.topbar .badge { background: rgba(255,255,255,.14); color: var(--topbar-text); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-error { background: var(--error-bg); color: var(--error); }
.badge-gold { background: var(--gold-soft); color: var(--gold); }

/* Buttons */
.btn {
    display: inline-block;
    padding: .5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--brand);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}
.btn:hover { text-decoration: none; background: var(--brand-soft); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-block { display: block; width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Cards & forms */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.card h2 { font-size: 1.05rem; margin: 0 0 .75rem; color: var(--brand); }
.narrow { max-width: 480px; }
.form { display: flex; flex-direction: column; gap: .9rem; }
.form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; }
.form label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; }
input[type=text], input[type=password], input[type=date], select {
    font: inherit;
    font-weight: 400;
    padding: .5rem .65rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand-2); }
input:disabled, select:disabled { background: #f3f4f6; color: var(--muted); }
.field-error { color: var(--error); font-size: .85rem; margin: -.5rem 0 0; }
.actions { display: flex; gap: .5rem; margin-top: .5rem; }

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.filters label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--muted); }

/* Tables */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: .6rem .8rem; text-align: start; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { background: #fafbf9; font-size: .82rem; color: var(--muted); font-weight: 500; }
.table tbody tr:hover td { background: #fafcfb; }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-inactive td { color: var(--muted); }
.table pre { margin: .25rem 0; font-family: var(--mono); font-size: .8rem; white-space: pre-wrap; word-break: break-all; text-align: left; }
details summary { cursor: pointer; color: var(--brand-2); }

.pager { display: flex; gap: 1rem; justify-content: center; align-items: center; margin-top: 1rem; }

/* Dashboard */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; display: flex; flex-direction: column; box-shadow: var(--shadow); border-top: 3px solid var(--brand-2); }
.stat-value { font-size: 2rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--brand); }
.stat-label { color: var(--muted); font-size: .9rem; }

/* Bare layout (login, errors before auth) */
body.bare { display: flex; min-height: 100vh; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--brand-deep), var(--brand) 55%, var(--brand-2)); }
.bare-main { width: 100%; max-width: 380px; padding: 1rem; }
.login-card { background: var(--surface); border: 0; border-top: 4px solid var(--gold); border-radius: 14px; padding: 2rem; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.login-brand { font-size: 1.7rem; font-weight: 700; color: var(--brand); }
.error-page { text-align: center; padding: 3rem 1rem; }
.error-page pre { text-align: left; background: #fff; border: 1px solid var(--border); padding: 1rem; overflow: auto; font-size: .8rem; }

@media (max-width: 900px) {
    .shell { flex-direction: column; }
    .sidebar { width: auto; display: flex; flex-wrap: wrap; gap: .25rem; padding: .5rem; }
    .nav-section + .nav-section { border-top: 0; padding-top: 0; }
    .nav-section { margin: 0; display: contents; }
    .nav-title { display: none; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .topbar { flex-wrap: wrap; height: auto; padding: .6rem 1rem; gap: .5rem 1rem; }
    .mainnav { order: 3; flex-basis: 100%; overflow-x: auto; }
    .userbox { margin-inline-start: auto; }
    .table { display: block; overflow-x: auto; }
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Live screens */
.alert-warning { background: var(--warn-bg); color: #8a4f08; border-color: #f0d3a8; }
.stat-alert .stat-value { color: var(--error); }
.queue-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.queue-card { padding: 1rem; }
.queue-card.has-alert { border-color: #f0d3a8; box-shadow: 0 0 0 2px var(--warn-bg) inset; }
.queue-card-head { margin-bottom: .6rem; display: flex; gap: .5rem; align-items: center; }
.queue-card-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.queue-card-grid .stat { padding: .5rem .6rem; }
.queue-card-grid .stat-value { font-size: 1.3rem; }
.queue-card-grid .stat-label { font-size: .75rem; }
select.mini { padding: .2rem .3rem; font-size: .85rem; }
.popup { border: 2px solid var(--gold); background: #fffdf7; margin-bottom: 1rem; }
.popup-head { font-size: 1.15rem; margin-bottom: .5rem; }
.dialog { position: fixed; top: 20%; inset-inline: 0; margin: 0 auto; max-width: 520px; z-index: 50; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.legend { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); align-items: center; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.desk-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem .75rem; border-inline-start: 6px solid #c9cfca; box-shadow: var(--shadow); }
.desk-tile.state-ok { border-inline-start-color: var(--ok); }
.desk-tile.state-busy { border-inline-start-color: var(--info); background: #f6f9fd; }
.desk-tile.state-ring { border-inline-start-color: var(--warn); background: #fffaf1; }
.desk-tile.state-pause { border-inline-start-color: var(--pause); background: #f5f6f4; }
.desk-tile.state-off { opacity: .65; }
.desk-head { margin-bottom: .2rem; }
.desk-line { font-size: .85rem; min-height: 1.2em; }
.board-group { margin-bottom: 1rem; }

/* Wallboard: big, no chrome */
body.wallboard .sidebar, body.wallboard .topbar, body.wallboard #queue-picker, body.wallboard .actions-cell { display: none; }
body.wallboard .page { max-width: none; }
body.wallboard .stat-value { font-size: 2.6rem; }
body.wallboard .queue-card-grid .stat-value { font-size: 2rem; }
body.wallboard h1 { font-size: 2rem; }
.page { flex: 1; min-width: 0; }

/* Wallboard on a dark screen */
body.wallboard { background: var(--brand-deep); color: #fff; }
body.wallboard h1 { color: #fff; }
body.wallboard .stat, body.wallboard .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; }
body.wallboard .stat-value { color: #fff; }
body.wallboard .stat-label, body.wallboard .muted { color: #b9d3cc; }

/* Dashboard */
.status-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.2rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 500; border: 1px solid transparent; }
.status-banner.open { background: var(--ok-bg); color: var(--ok); border-color: #c4e2cf; }
.status-banner.closed { background: var(--gold-soft); color: #7a5a17; border-color: #ead9b4; }
.status-banner.alert { background: var(--error-bg); color: var(--error); border-color: #f0c4be; }
.stat-ok { border-top-color: var(--ok); } .stat-ok .stat-value { color: var(--ok); }
.stat-bad { border-top-color: var(--error); } .stat-bad .stat-value { color: var(--error); }
.stat-gold { border-top-color: var(--gold); } .stat-gold .stat-value { color: var(--gold); }

/* Reports */
.quick-ranges { display: flex; gap: .4rem; flex-wrap: wrap; margin: -.4rem 0 1rem; }
.tag-on { background: var(--brand); color: #fff; }
.narrow-input { width: 6rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.kpi .stat-value { font-size: 1.6rem; }
.kpi-prev { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.kpi-prev.up-good { color: var(--ok); }
.kpi-prev.up-bad { color: var(--error); }
.chart { margin: 0 0 1rem; padding: .8rem 1rem .6rem; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .legend { margin-top: .3rem; }
.swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; margin-inline-end: .35rem; vertical-align: -1px; }
.swatch-line { height: .25rem; vertical-align: 3px; }
.swatch-brand { background: #1f7a6d; } .swatch-ok { background: #2e7d4f; } .swatch-bad { background: #b3362c; } .swatch-gold { background: #b88a2e; } .swatch-info { background: #2d5e9e; }
.table-scroll { overflow-x: auto; }
.report-table td, .report-table th { white-space: nowrap; }

/* Staffing grid */
.staffing-grid td { vertical-align: top; padding: .35rem .5rem; }
.cell-input { width: 4.2rem; text-align: center; }
.cell-hint { display: block; font-size: .7rem; color: var(--muted); white-space: nowrap; margin-top: .15rem; }
input.time24 { width: 5.5rem; text-align: center; font-variant-numeric: tabular-nums; }

/* Footer: installed version */
.site-footer { text-align: center; color: var(--muted, #6b7280); font-size: .8rem; padding: .75rem 1rem 1.25rem; border-top: 1px solid var(--border, #e5e7eb); }

/* View-only pages: write actions hidden (server refuses them anyway) */
.is-readonly .page form[method="post"] button[type="submit"],
.is-readonly .page form[method="post"] input[type="submit"],
.is-readonly .page a[href$="/new"],
.is-readonly .page .needs-edit { display: none !important; }
.is-readonly .page form[method="post"] :is(input, select, textarea):disabled { opacity: .85; }

fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.perms-table select { min-width: 9rem; }
.perms-table .perms-group th { background: var(--surface-2, #f3f4f6); text-align: right; font-weight: 600; }
.badge-danger { background: var(--error-bg, #fdecea); color: var(--error, #b42318); }
.danger-zone { margin-top: 1rem; }
.checks { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }

/* [hidden] must win over display rules on labels/fieldsets (destination picker, trunk form) */
[hidden] { display: none !important; }
.bulk-panel { margin-bottom: 1rem; }
.bulk-panel summary { cursor: pointer; font-weight: 600; }
.bulk-panel[open] summary { margin-bottom: .75rem; }
.bulk-field { border-inline-start: 3px solid var(--border, #e5e7eb); padding-inline-start: .6rem; margin-block: .25rem; }
.bulk-field.is-on { border-inline-start-color: var(--primary, #1f5f4a); }
.bulk-field:not(.is-on) > :not(.bulk-apply) { opacity: .55; }
.bulk-apply { font-size: .8rem; font-weight: 400; color: var(--muted); }
.bulk-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0 1rem; }

/* Login page: card centered, version line pinned to the bottom */
body.bare { flex-direction: column; }
body.bare .bare-main { margin-block: auto; }
body.bare .site-footer { width: 100%; border-top: 0; color: rgba(255,255,255,.7); padding-bottom: 1rem; }
.login-links { text-align: center; margin: .9rem 0 0; font-size: .9rem; }
.login-or { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; margin: 1rem 0; }
.login-or::before, .login-or::after { content: ""; flex: 1; border-top: 1px solid var(--border, #e5e7eb); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: .5rem; background: #fff; border: 1px solid #dadce0; color: #3c4043; }
.btn-google:hover { background: #f8f9fa; }
.login-card h2 { font-size: 1.1rem; margin: .5rem 0 1rem; }

/* Transcripts (SPEC §11א) */
.rec-head audio { width: 100%; margin-top: .75rem; }
.transcript { display: flex; flex-direction: column; gap: .35rem; }
.tr-seg { display: flex; gap: .6rem; align-items: baseline; padding: .3rem .5rem; border-radius: 6px; }
.tr-seg.is-low { background: #fff7d6; }
.tr-seg.is-playing { outline: 2px solid var(--primary, #1f5f4a); }
.tr-time { font: inherit; font-size: .8rem; color: var(--muted); background: none; border: 0; cursor: pointer; direction: ltr; min-width: 3.2rem; padding: 0; }
.tr-time:hover { color: var(--primary, #1f5f4a); text-decoration: underline; }
.spk { display: inline-block; font-size: .75rem; font-weight: 600; padding: .05rem .45rem; border-radius: 999px; background: #e5e7eb; white-space: nowrap; }
.spk-S1 { background: #dbeafe; color: #1e3a8a; }
.spk-S2 { background: #dcfce7; color: #14532d; }
.spk-S3 { background: #fce7f3; color: #831843; }
.spk-S4 { background: #fef3c7; color: #78350f; }
.speaker-names { margin-bottom: .75rem; }
.speaker-names input { width: 10rem; }
tr.is-selected td { background: var(--surface-2, #f3f4f6); }
.compare-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 800px) { .compare-cols { grid-template-columns: 1fr; } }
.compare-text { line-height: 1.9; }
.diff-del { background: #fee2e2; color: #991b1b; text-decoration: line-through; }
.diff-ins { background: #dcfce7; color: #14532d; font-weight: 600; }

.tunnel-box { margin: .75rem 0; }
.tunnel-box h3 { margin: 0 0 .5rem; font-size: 1rem; }
.copy-box { background: var(--surface-2, #f3f4f6); padding: .6rem .75rem; border-radius: 6px; white-space: pre-wrap; word-break: break-all; font-size: .8rem; user-select: all; }

/* Tabs of long forms (form[data-tabs], app.js) */
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--border); margin: .25rem 0 1rem; }
.tab { font: inherit; font-size: .9rem; background: none; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0;
       padding: .45rem .9rem; margin-bottom: -1px; color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--primary); }
.tab.active { background: var(--surface); border-color: var(--border); border-bottom: 1px solid var(--surface); color: var(--primary); font-weight: 700; }
.tab.has-error::after { content: ' •'; color: #b42318; }
form.has-tabs fieldset.tab-hidden { display: none; }
@media (max-width: 640px) { .tabs { flex-wrap: nowrap; overflow-x: auto; } .tab { white-space: nowrap; } }

/* Call summary (recordings/show) */
.summary-box { margin: .5rem 0 1rem; padding: 1rem 1.2rem; }
.summary-box h3 { margin: 0 0 .5rem; font-size: 1rem; }
.summary-text { line-height: 1.7; }
