/* Hermes by Vaide: clinic CRM. Colours come from theme.css only. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.45rem; line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; margin: 0; }
h3 { font-size: 0.95rem; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.hidden { display: none !important; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }

/* boot */
.boot { min-height: 100%; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* brand */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-size: 1.05rem; line-height: 1.1; }
.brand-by { display: block; font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }

/* sign in */
.auth { min-height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-strong) 100%); color: var(--brand-ink); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .brand-mark { background: color-mix(in srgb, var(--brand-ink) 18%, transparent); color: var(--brand-ink); }
.auth-side .brand-by { color: color-mix(in srgb, var(--brand-ink) 75%, transparent); }
.auth-side h1 { font-size: 2rem; max-width: 420px; margin-top: 40px; }
.auth-side p { max-width: 440px; margin-top: 12px; opacity: 0.9; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.auth-points li { display: flex; gap: 10px; align-items: center; }
.auth-points svg { width: 18px; height: 18px; flex: none; }
.auth-main { display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 1.4rem; margin-bottom: 4px; }
.auth-card form { margin-top: 24px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 20px; }
  .auth-side h1 { font-size: 1.4rem; margin-top: 20px; }
  .auth-points { display: none; }
}

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 600; font-size: 0.88rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; min-height: 42px; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); }
.checks { display: flex; gap: 16px; flex-wrap: wrap; }
.checks label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: 2fr 2fr 1.4fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.form-error { color: var(--danger); font-weight: 600; margin-top: 10px; min-height: 1.2em; }

/* buttons */
.btn { font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 9px 16px; min-height: 40px; border: 1px solid transparent; cursor: pointer; background: var(--brand); color: var(--brand-ink); white-space: nowrap; text-decoration: none !important; }
.btn:hover { background: var(--brand-strong); }
.btn svg { width: 18px; height: 18px; }
.btn.block { width: 100%; }
.btn.lg { min-height: 48px; font-size: 1rem; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.quiet { background: transparent; color: var(--brand); padding: 6px 10px; min-height: 32px; }
.btn.quiet:hover { background: var(--brand-soft); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.sm { min-height: 32px; padding: 5px 12px; font-size: 0.86rem; }
.btn:disabled { opacity: 0.5; cursor: default; }

/* app shell */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100%; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.clinic-pick select { font-weight: 600; }
.clinic-pick .single { font-weight: 600; padding: 8px 4px 0; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 500; text-decoration: none; }
.nav a svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.nav a:hover { background: var(--surface-2); }
.nav a.on { background: var(--brand-soft); color: var(--brand-strong); font-weight: 650; }
.nav a.on svg { color: var(--brand); }
.nav .count { margin-left: auto; background: var(--danger); color: #fff; border-radius: 999px; font-size: 0.72rem; font-weight: 700; padding: 1px 7px; }
.nav .count.soft { background: var(--brand-soft); color: var(--brand-strong); }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.me { display: flex; gap: 10px; align-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; font-weight: 700; flex: none; font-size: 0.85rem; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 16px 28px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.topbar .menu-btn { display: none; }
.content { padding: 24px 28px 64px; max-width: 1240px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { margin-top: 4px; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 30; transform: translateX(-100%); transition: transform 0.2s ease; box-shadow: var(--shadow); }
  .shell.nav-open .side { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgb(0 0 0 / 35%); z-index: 20; }
  .topbar { padding: 12px 16px; }
  .topbar .menu-btn { display: inline-flex; }
  .content { padding: 18px 16px 64px; }
}

/* status pill */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pill.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.pill.ok::before { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.pill.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.pill.warn::before { background: var(--warn); }
.pill.bad { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.pill.bad::before { background: var(--danger); }
.pill.live::before { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
.card-head + .card-body { padding-top: 12px; }
.card-body { padding: 16px 20px 18px; }
.grid { display: grid; gap: 16px; }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .g-main { grid-template-columns: minmax(0, 1fr); } }
.grid > * { min-width: 0; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 14px 16px; }
.kpi .label { color: var(--muted); font-size: 0.82rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .label svg { width: 16px; height: 16px; }
.kpi .value { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .sub { color: var(--muted); font-size: 0.8rem; }
.meter { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 8px; border: 1px solid var(--line); }
.meter > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }

/* hero (phone status) */
.hero { display: flex; gap: 18px; align-items: center; padding: 18px 20px; flex-wrap: wrap; }
.hero-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.hero-icon svg { width: 26px; height: 26px; }
.hero.off .hero-icon { background: var(--danger-soft); color: var(--danger); }
.hero.paused .hero-icon { background: var(--warn-soft); color: var(--warn); }
.hero h2 { font-size: 1.15rem; }

/* lists & tables */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.list .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }
.list .ic svg { width: 17px; height: 17px; }
.list .ic.out { background: var(--brand-soft); color: var(--brand); }
.list .ic.in { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.list .ic.missed { background: var(--danger-soft); color: var(--danger); }
.list .title { font-weight: 600; }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); }
.empty svg { width: 34px; height: 34px; display: block; margin: 0 auto 8px; opacity: 0.6; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody.static tr { cursor: default; }
tbody.static tr:hover td { background: transparent; }
.who { display: flex; flex-direction: column; }
.who b { font-weight: 600; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }

/* badges & chips */
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; padding: 2px 8px; font-size: 0.78rem; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge.brand { background: var(--brand-soft); color: var(--brand-strong); border-color: transparent; }
.badge svg { width: 13px; height: 13px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: inherit; font-size: 0.82rem; font-weight: 600; border-radius: 999px; padding: 4px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.chip .x { opacity: 0.7; }
input.chip { width: 120px; min-height: 30px; padding: 4px 12px; cursor: text; }

/* filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters input[type="search"] { max-width: 280px; }
.filters select, .filters input[type="date"] { width: auto; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { font: inherit; font-weight: 600; font-size: 0.86rem; border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--brand-soft); color: var(--brand-strong); }

/* transcript */
.transcript { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding: 4px; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 14px; line-height: 1.45; }
.bubble small { display: block; font-size: 0.72rem; font-weight: 600; opacity: 0.75; margin-bottom: 2px; }
.bubble.agent { background: var(--surface-2); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.patient { background: var(--brand); color: var(--brand-ink); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.system { align-self: center; background: transparent; color: var(--muted); font-size: 0.82rem; }

/* drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgb(0 0 0 / 35%); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--bg); z-index: 41; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgb(0 0 0 / 15%); animation: slide 0.18s ease; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.drawer-body { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.facts div span { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 600; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 16px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 18px 48px; }
.timeline .dot { position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.timeline .dot svg { width: 16px; height: 16px; }
.timeline .dot.out { border-color: var(--brand); color: var(--brand); }
.timeline .dot.missed, .timeline .dot.emergency { border-color: var(--danger); color: var(--danger); }
.timeline .dot.note { border-color: var(--accent); color: var(--accent); }
.timeline .item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.timeline .when { color: var(--muted); font-size: 0.8rem; }

/* follow-up cards */
.fu { padding: 14px 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; }
.fu + .fu { border-top: 1px solid var(--line); }
.fu .kind { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.fu .kind svg { width: 19px; height: 19px; }
.fu .kind.emergency { background: var(--danger-soft); color: var(--danger); }
.fu .kind.needs_staff { background: var(--warn-soft); color: var(--warn); }
.fu .kind.not_reached { background: var(--brand-soft); color: var(--brand); }
.fu-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.fu-actions select { width: auto; min-height: 32px; padding: 4px 8px; font-size: 0.86rem; }
@media (max-width: 720px) { .fu { grid-template-columns: auto 1fr; } .fu-actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* alerts */
.alert-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--danger-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.alert-row svg { color: var(--danger); width: 22px; height: 22px; flex: none; }
.alert-row.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.alert-row.warn svg { color: var(--warn); }

/* chart */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .bar-a { fill: var(--chart-a); }
.chart .bar-b { fill: var(--chart-b); }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .a { background: var(--chart-a); }
.legend .b { background: var(--chart-b); }
.tip { position: fixed; pointer-events: none; background: var(--ink); color: var(--bg); padding: 8px 10px; border-radius: 8px; font-size: 0.82rem; z-index: 60; box-shadow: var(--shadow); max-width: 240px; }
.hbar { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 44px; gap: 10px; align-items: center; padding: 5px 0; }
.hbar .track { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--chart-a); border-radius: 0 99px 99px 0; }

/* phone & QR */
.qr-box { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.qr-frame { background: #fff; padding: 14px; border-radius: 16px; border: 1px solid var(--line); width: 248px; }
.qr-frame img { width: 220px; height: 220px; display: block; }
.code { font: 700 1.35rem ui-monospace, monospace; letter-spacing: 0.14em; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }
@media (max-width: 720px) { .qr-box { grid-template-columns: 1fr; } .qr-frame { margin: 0 auto; } }
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.spec div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.spec span { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.spec b { font-size: 1.05rem; }

/* secret reveal (one-time password) */
.secret { background: var(--warn-soft); border: 1px dashed var(--warn); border-radius: 12px; padding: 14px 16px; }
.secret .code { font-size: 1.2rem; }

/* emergency overlay */
.sos { position: fixed; inset: 0; z-index: 100; background: var(--danger); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; animation: sos 1s step-end infinite; }
@keyframes sos { 50% { background: #8f1520; } }
@media (prefers-reduced-motion: reduce) { .sos { animation: none; } }
.sos svg { width: 72px; height: 72px; }
.sos h1 { font-size: 2.6rem; margin: 12px 0; }
.sos p { font-size: 1.15rem; max-width: 560px; }
.sos .btn { background: #fff; color: var(--danger); margin-top: 22px; font-size: 1.15rem; padding: 14px 28px; min-height: 56px; }

/* toasts */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 90; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 500; animation: rise 0.18s ease; }
.toast.bad { background: var(--danger); color: #fff; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

/* sound banner */
.banner { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); margin-bottom: 16px; flex-wrap: wrap; }
.banner svg { width: 20px; height: 20px; color: var(--warn); flex: none; }

.mt { margin-top: 16px; }
.mt-s { margin-top: 8px; }
.sep { height: 1px; background: var(--line); margin: 14px 0; }

/* added: summaries, latency, call list, settings */
.alert-row.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.alert-row.ok svg { color: var(--ok); }
.summary p { font-size: 1rem; }
.summary svg, .small svg { width: 14px; height: 14px; vertical-align: -2px; }
.stack-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.stack-bar i { display: block; height: 100%; }
.stack-bar .a, .legend .la { background: var(--chart-a); }
.stack-bar .b, .legend .lb { background: var(--accent); }
.stack-bar .c, .legend .lc { background: var(--chart-b); }
.player { width: 100%; margin-top: 8px; }
.errlist { margin: 6px 0 0; padding-left: 18px; color: var(--warn); max-height: 220px; overflow-y: auto; }
.grid3s { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 640px) { .grid3s { grid-template-columns: 1fr; } }
.faq-item { background: var(--surface-2); box-shadow: none; }
.sos .said { margin-top: 10px; background: rgb(0 0 0 / 18%); padding: 10px 14px; border-radius: 12px; }
tr.total td { background: var(--surface-2); }
input[type="file"] { min-height: 0; padding: 8px; max-width: 360px; }
input[type="month"] { width: auto; }
.chip svg { width: 15px; height: 15px; }
.badge svg { flex: none; }
.row > select { width: auto; max-width: 100%; }
