:root {
  --ink: #0E1B2C;
  --ink-2: #3B4A5C;
  --muted: #5C6B7D;
  --line: #E1E6EC;
  --line-2: #EDF1F5;
  --bg: #F4F7FA;
  --panel: #ffffff;
  --brand: #0F2A4A;
  --brand-2: #1A4B7A;
  --mint: #22B8CF;
  --mint-soft: #E6F6FA;
  --amber: #b86e00;
  --amber-soft: #fff3df;
  --red: #c2352b;
  --red-soft: #fdeceb;
  --blue-soft: #e9f0ff;
  --blue: #2c55c8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(14,27,44, .06), 0 4px 16px rgba(14,27,44, .05);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Sora', 'Inter', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E8EEF4; --ink-2: #C3CEDA; --muted: #8FA0B2; --line: #233042; --line-2: #1A2433;
    --bg: #0D131B; --panel: #131B25; --brand: #5CCFE0; --brand-2: #86DEEB; --mint: #3CC8DC; --mint-soft: #12303A;
    --amber: #f0b45a; --amber-soft: #3a2a10; --red: #ff7b70; --red-soft: #3b1714; --blue-soft: #18233f; --blue: #8fb0ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-2); }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons, inputs, badges ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: 8px;
  padding: 7px 12px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (prefers-color-scheme: dark) { .btn.primary { color: #06192C; } }
.btn.primary:hover { background: var(--brand-2); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 4px 9px; font-size: 13px; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 8px 10px; }
.input:focus, .btn:focus-visible, .seg button:focus-visible { outline: 2px solid var(--mint); outline-offset: 1px; }
label.field { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.handled { background: var(--mint-soft); color: var(--brand-2); }
.badge.action { background: var(--amber-soft); color: var(--amber); }
.badge.urgent { background: var(--red-soft); color: var(--red); }
.badge.new { background: var(--blue-soft); color: var(--blue); }
.badge.resolved { background: var(--line-2); color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-art { background: radial-gradient(120% 90% at 10% 0%, #146c5f 0%, #0F2A4A 45%, #082f2a 100%); color: #EAF6FD; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login-art h1 { font-size: 44px; line-height: 1.05; margin: 0; font-weight: 700; letter-spacing: -.02em; }
.login-art h1 em { font-family: var(--serif); font-style: normal; font-weight: 700; color: #9BE7F2; }
.login-art p { color: #BFE3F2; max-width: 400px; }
.login-form { display: grid; place-items: center; padding: 32px 16px; }
.login-form form { width: min(360px, 100%); display: grid; gap: 14px; }
.login-form h2 { margin: 0 0 4px; font-size: 22px; }
.err { color: var(--red); font-size: 13px; min-height: 18px; }
@media (max-width: 800px) { .login { grid-template-columns: 1fr; } .login-art { padding: 28px 20px; gap: 24px; } .login-art h1 { font-size: 32px; } }

/* ---------- shell ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: inherit; text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.side nav a:hover { background: var(--line-2); }
.side nav a.on { background: var(--mint-soft); color: var(--brand); }
.side nav svg { width: 18px; height: 18px; flex: none; }
.side .count { margin-left: auto; font-size: 12px; background: var(--amber-soft); color: var(--amber); border-radius: 999px; padding: 0 7px; font-weight: 600; }
.side-foot { margin-top: auto; font-size: 13px; color: var(--muted); display: grid; gap: 8px; }
.side-foot .who { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
.topbar h1 { font-size: 18px; margin: 0; font-weight: 650; }
.topbar .spacer { flex: 1; }
.topbar select.input { width: auto; min-width: 200px; }
.menu-btn { display: none; }
.content { padding: 20px 24px 40px; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 240px; z-index: 20; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .shell.nav-open .side { transform: none; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 10px 16px; flex-wrap: wrap; }
  .topbar select.input { min-width: 0; flex: 1; }
  .content { padding: 16px; }
}

/* ---------- KPIs + filters ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; text-align: left; }
.kpi:hover { border-color: var(--muted); }
.kpi.on { border-color: var(--brand-2); box-shadow: inset 0 0 0 1px var(--brand-2); }
.kpi .n { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: 13px; }
.kpi.warn .n { color: var(--amber); } .kpi.bad .n { color: var(--red); } .kpi.info .n { color: var(--blue); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi .n { font-size: 22px; } }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.filters .search { flex: 1 1 220px; max-width: 340px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 10px; border-radius: 6px; cursor: pointer; color: var(--ink-2); font-weight: 500; font-size: 13px; }
.seg button.on { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .seg button.on { color: #06192C; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.chip.on { border-color: var(--brand-2); background: var(--mint-soft); color: var(--brand); font-weight: 600; }
.chip .c { color: var(--muted); margin-left: 3px; }

/* ---------- calls split view ---------- */
.split { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 16px; align-items: start; }
.list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-head { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.day { padding: 8px 14px; background: var(--line-2); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.row { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; padding: 12px 14px; cursor: pointer; }
.row:hover { background: var(--line-2); }
.row.on { background: var(--mint-soft); box-shadow: inset 3px 0 0 var(--brand-2); }
.row .top { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.row .time { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.row .title { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sum { color: var(--ink-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .meta { color: var(--muted); font-size: 12px; margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.more { padding: 12px; text-align: center; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); margin: 0 0 6px; font-size: 15px; }
.banner { border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13.5px; background: var(--amber-soft); color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 25%, transparent); }
.banner.err { background: var(--red-soft); color: var(--red); }

.detail { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
.detail-empty { padding: 60px 24px; text-align: center; color: var(--muted); }
.d-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.d-head .back { display: none; margin-bottom: 8px; }
.d-head h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.01em; }
.d-head .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.d-head .facts { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-2); font-size: 13px; }
.d-head .facts b { color: var(--ink); font-weight: 600; }
.d-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.d-sec { padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.d-sec:last-child { border-bottom: 0; }
.d-sec h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.d-sec h3 .r { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.summary { font-size: 15px; line-height: 1.55; margin: 0; }
.todo { margin: 10px 0 0; padding-left: 18px; }
.todo li { margin: 2px 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- player ---------- */
.player { display: flex; align-items: center; gap: 12px; background: var(--line-2); border-radius: 10px; padding: 10px 12px; }
.play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
@media (prefers-color-scheme: dark) { .play { color: #06192C; } }
.play svg { width: 18px; height: 18px; }
.track { flex: 1; min-width: 0; }
.bar { position: relative; height: 34px; cursor: pointer; display: flex; align-items: center; gap: 2px; }
.bar i { flex: 1; background: color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 2px; min-width: 2px; }
.bar i.p { background: var(--brand-2); }
.bar i.agent { opacity: .65; }
.ptime { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.speed { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 3px 7px; font-size: 12px; cursor: pointer; font-weight: 600; }

/* ---------- transcript ---------- */
.tx { display: grid; gap: 10px; }
.turn { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: start; cursor: pointer; border-radius: 10px; padding: 6px; margin: -6px; }
.turn:hover { background: var(--line-2); }
.turn .ts { font-size: 12px; color: var(--muted); padding-top: 9px; font-variant-numeric: tabular-nums; text-align: right; }
.bubble { padding: 8px 12px; border-radius: 12px; max-width: 640px; }
.turn.agent .bubble { background: var(--mint-soft); }
.turn.user .bubble { background: var(--line-2); }
.bubble .who { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.bubble .orig { color: var(--muted); font-size: 12.5px; margin-top: 4px; border-top: 1px dashed var(--line); padding-top: 4px; }
.turn.now .bubble { box-shadow: 0 0 0 2px var(--brand-2); }
.notes textarea { min-height: 70px; resize: vertical; }
.hist { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--ink-2); display: grid; gap: 4px; }
.hist time { color: var(--muted); margin-right: 6px; }
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; }
  .split.has-detail .list { display: none; }
  .split:not(.has-detail) .detail { display: none; }
  .detail { position: static; max-height: none; }
  .d-head .back { display: inline-flex; }
}

/* ---------- insights ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.card h3 { margin: 0 0 12px; font-size: 14px; }
.hbar { display: grid; grid-template-columns: 150px 1fr 36px; gap: 10px; align-items: center; font-size: 13px; margin: 6px 0; }
.hbar .t { height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
.hbar .t span { display: block; height: 100%; background: var(--brand-2); border-radius: 5px; }
.hbar .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.cols { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.cols div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); height: 100%; justify-content: flex-end; }
.cols span { width: 100%; max-width: 34px; background: var(--brand-2); border-radius: 4px 4px 0 0; min-height: 2px; }

/* ---------- admin ---------- */
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.agent-tag { display: inline-flex; align-items: center; gap: 4px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: var(--line-2); border-radius: 6px; padding: 2px 6px; margin: 2px 4px 2px 0; }
.agent-tag button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 2px; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.form-row > * { flex: 1 1 160px; }
.form-row > .btn { flex: 0 0 auto; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: var(--line-2); border-radius: 6px; padding: 8px 10px; word-break: break-all; }
.stack { display: grid; gap: 16px; }
.table-wrap { overflow-x: auto; }

/* ---------- toasts ---------- */
#toasts { position: fixed; bottom: 16px; right: 16px; display: grid; gap: 8px; z-index: 50; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); font-size: 13.5px; max-width: 360px; animation: tin .18s ease-out; }
.toast.bad { background: var(--red); color: #fff; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- shared bits for the newer pages ---------- */
.lead { color: var(--ink-2); margin: 0 0 14px; max-width: 760px; }
.muted-s { color: var(--muted); font-size: 12.5px; }
.filters .spacer { flex: 1; }
.filters .search.wide { max-width: 520px; }
.nav-sep { height: 1px; background: var(--line); margin: 8px 6px; }
.kpis.k2 { grid-template-columns: repeat(2, minmax(0, 220px)); }
.detail-empty h3 { color: var(--ink); margin: 0 0 6px; font-size: 15px; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.danger-t { color: var(--red); }
.card.flush { padding: 0; overflow: hidden; }
.card h3 .r, h3 .r { margin-left: auto; float: right; }
.big { font-size: 34px; font-weight: 700; margin: 0; letter-spacing: -.02em; } .big span { font-size: 15px; color: var(--muted); font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 12px; margin-bottom: 10px; }
.stack > fieldset, fieldset.card { border: 1px solid var(--line); margin: 0; min-width: 0; }
fieldset.card .field { margin-bottom: 10px; }
label.inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
table.t.click tbody tr { cursor: pointer; } table.t.click tbody tr:hover { background: var(--line-2); }
.overdue { color: var(--red); font-weight: 600; }

/* modal */
.modal-wrap { position: fixed; inset: 0; background: rgba(8, 20, 18, .45); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal { background: var(--panel); border-radius: 14px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-h h3 { margin: 0; font-size: 16px; }
.modal-b { padding: 16px 18px; overflow: auto; display: grid; gap: 10px; }
.modal-b p { margin: 0; color: var(--ink-2); }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.pick-list { display: grid; gap: 4px; max-height: 240px; overflow: auto; }
.pick { display: flex; justify-content: space-between; gap: 10px; text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.pick span { color: var(--muted); font-size: 12.5px; }
.pick.on { border-color: var(--brand-2); background: var(--mint-soft); }

/* call detail additions */
.task-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--amber-soft); color: var(--amber); font-weight: 600; font-size: 13.5px; }
.task-strip.done { background: var(--mint-soft); color: var(--brand-2); }
.task-strip select { width: auto; min-width: 160px; padding: 4px 8px; font-size: 13px; color: var(--ink); }
.patient-chip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.patient-chip > span { color: var(--muted); font-size: 13px; }
.patient-chip.muted { color: var(--muted); }

/* follow-ups */
.task-list { display: grid; gap: 8px; }
.task { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.task.urgent.open { border-left: 3px solid var(--red); }
.task.done { opacity: .65; }
.task .check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); cursor: pointer; display: grid; place-items: center; color: var(--brand-2); font-weight: 800; margin-top: 2px; }
.task .check:hover { border-color: var(--brand-2); }
.task.done .check { background: var(--mint-soft); border-color: var(--mint); }
.task-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.task-meta { display: flex; gap: 4px 12px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.task-notes { font-size: 13px; color: var(--ink-2); margin-top: 6px; white-space: pre-wrap; }
.task .assign { width: auto; min-width: 140px; padding: 4px 8px; font-size: 13px; }
@media (max-width: 640px) { .task { grid-template-columns: 28px 1fr; } .task .assign { grid-column: 2; } }

/* patients */
.profile { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 16px; align-items: start; margin-top: 10px; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; } }
.p-head { display: flex; gap: 14px; align-items: center; }
.p-head h2 { margin: 0 0 4px; font-size: 20px; }
.p-head .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.avatar { width: 52px; height: 52px; border-radius: 16px; background: var(--mint-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; }
.p-notes { margin-top: 12px; padding: 10px 12px; background: var(--line-2); border-radius: 8px; font-size: 13.5px; white-space: pre-wrap; }
.household { margin-top: 12px; } .household h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; }
.household .badge { text-decoration: none; }
.mini-task { display: grid; gap: 1px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.timeline { display: grid; }
.tl { display: grid; gap: 2px; padding: 12px 18px; border-top: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.tl:hover { background: var(--line-2); }
.tl-when { font-size: 12px; color: var(--muted); }
.tl-title { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tl-sum { font-size: 13px; color: var(--ink-2); }

/* transcripts */
.hit { display: grid; gap: 8px; text-decoration: none; color: inherit; }
.hit:hover { border-color: var(--muted); }
.hit-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hit-line { font-size: 14px; padding: 6px 10px; border-radius: 8px; background: var(--line-2); }
.hit-line.agent { background: var(--mint-soft); }
.hit-line .who { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
mark { background: #ffe58a; color: inherit; border-radius: 3px; padding: 0 2px; }
@media (prefers-color-scheme: dark) { mark { background: #7a5c00; } }

/* company */
.tabs-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs-bar a { padding: 8px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs-bar a.on { color: var(--brand); border-bottom-color: var(--brand-2); }
.hours { display: grid; gap: 6px; }
.hrow { display: grid; grid-template-columns: 110px 100px 120px 14px 120px; gap: 8px; align-items: center; font-size: 14px; }
@media (max-width: 560px) { .hrow { grid-template-columns: 1fr 1fr; } .hrow > span:nth-of-type(2) { display: none; } }
.rep { display: grid; gap: 6px; margin-bottom: 8px; }
.rep-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rep-row .input { flex: 1 1 140px; width: auto; }
.savebar { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 12px 0; background: var(--bg); }
.agent-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 6px 0; }
.code.prompt { white-space: pre-wrap; max-height: 520px; overflow: auto; margin: 0; font-size: 12.5px; line-height: 1.5; }

/* ---------- calendar ---------- */
.cal-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-bar .spacer { flex: 1; }
.cal-title { font-size: 17px; margin: 0; min-width: 0; }
.cal-provs { margin-bottom: 8px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cal-summary { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; display: flex; gap: 6px 16px; flex-wrap: wrap; }
.cal-summary b { color: var(--ink); }
.cal-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; max-height: calc(100vh - 230px); }
.cal { min-width: calc(56px + var(--cols) * 150px); }
.cal-head { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(150px, 1fr)); position: sticky; top: 0; z-index: 3; background: var(--panel); border-bottom: 1px solid var(--line); }
.ch { padding: 8px 10px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; font-size: 13px; }
.ch span:last-child { color: var(--muted); font-size: 12px; text-transform: capitalize; }
.ch.today b { color: var(--brand-2); }
.cal-body { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(150px, 1fr)); position: relative; }
.hours { position: relative; }
.hr { position: absolute; right: 6px; transform: translateY(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hr:first-child { transform: none; }
.col { position: relative; border-left: 1px solid var(--line-2); cursor: copy;
  background: repeating-linear-gradient(-45deg, var(--line-2) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(to bottom, transparent 0 calc(60px * 1.4 - 1px), var(--line) calc(60px * 1.4 - 1px) calc(60px * 1.4)); }
.col.today { box-shadow: inset 0 0 0 9999px color-mix(in srgb, var(--mint) 4%, transparent); }
.col .open { position: absolute; left: 0; right: 0; background: var(--panel); z-index: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(30px * 1.4 - 1px), var(--line-2) calc(30px * 1.4 - 1px) calc(30px * 1.4)); }
.blk { position: absolute; left: 2px; right: 2px; z-index: 1; border-radius: 6px; cursor: pointer;
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--muted) 18%, transparent) 0 8px, color-mix(in srgb, var(--muted) 8%, transparent) 8px 16px); }
.blk span { font-size: 11.5px; font-weight: 600; color: var(--ink-2); padding: 4px 6px; display: block; }
.appt { position: absolute; left: 3px; right: 3px; z-index: 2; text-align: left; border: 0; border-left: 4px solid var(--c); border-radius: 6px; padding: 3px 6px;
  background: color-mix(in srgb, var(--c) 14%, var(--panel)); color: var(--ink); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; gap: 0; font-size: 12px; line-height: 1.3; }
.appt:hover { box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 4; }
.appt b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt em { font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.appt i { position: absolute; top: 3px; right: 4px; font-style: normal; font-size: 9.5px; font-weight: 800; background: var(--brand); color: #fff; border-radius: 4px; padding: 0 4px; }
.appt.st-confirmed em { color: var(--brand-2); } .appt.st-arrived em { color: var(--blue); }
.appt.st-completed { opacity: .6; } .appt.st-no_show { opacity: .7; border-left-style: dashed; } .appt.st-no_show em { color: var(--red); }
.now { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); z-index: 3; pointer-events: none; }
.now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.appt-head { display: grid; gap: 3px; }
.status-row { display: flex; flex-wrap: wrap; gap: 6px; }
.st-pill { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; }
.st-pill input { display: none; }
.st-pill:has(input:checked) { background: var(--brand); color: #fff; border-color: var(--brand); }
.st-pill.cancelled:has(input:checked), .st-pill.no_show:has(input:checked) { background: var(--red); border-color: var(--red); }
.ft-res { display: grid; gap: 10px; max-height: 360px; overflow: auto; }
.ft-day b { display: block; font-size: 13px; margin-bottom: 4px; }
@media (max-width: 700px) { .cal-wrap { max-height: none; } .cal-title { width: 100%; order: -1; } }
.wk { display: grid; gap: 6px; margin: 6px 0; }
.wk-row { display: grid; grid-template-columns: 40px 80px 100px 12px 100px 34px 100px 12px 100px; gap: 6px; align-items: center; font-size: 13px; }
@media (max-width: 760px) { .wk-row { grid-template-columns: 40px 80px 1fr 12px 1fr; } .wk-row > :nth-child(n+6) { grid-column: span 1; } }
fieldset.prov { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0; min-width: 0; }
fieldset.prov.inactive { opacity: .6; }
table.types td.who { display: flex; flex-wrap: wrap; gap: 4px 10px; }

/* ---------- inbox ---------- */
.split.inbox { grid-template-columns: minmax(280px, 380px) 1fr; }
.row.unread .title { font-weight: 800; }
.count-dot { background: var(--brand-2); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 0 6px; }
.chat { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 360px); min-height: 200px; overflow: auto; }
.msg { display: flex; flex-direction: column; max-width: 78%; }
.msg.in { align-self: flex-start; } .msg.out { align-self: flex-end; align-items: flex-end; }
.msg .bub { padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; font-size: 14px; line-height: 1.45; }
.msg.in .bub { background: var(--line-2); border-bottom-left-radius: 4px; }
.msg.out .bub { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
@media (prefers-color-scheme: dark) { .msg.out .bub { color: #06192C; } }
.msg.out.k-ai .bub { background: var(--mint-soft); color: var(--ink); }
.msg.out.k-system .bub { background: transparent; color: var(--muted); border: 1px dashed var(--line); font-size: 12.5px; }
.mmeta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.mmeta .st-failed, .mmeta .st-blocked { color: var(--red); } .mmeta .st-simulated { color: var(--amber); }
.composer { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); align-items: flex-end; }
.composer textarea { resize: vertical; }
.auto { display: grid; gap: 4px; }
@media (max-width: 1000px) { .split.inbox { grid-template-columns: 1fr; } .split.inbox.has-detail .list { display: none; } .split.inbox:not(.has-detail) .detail { display: none; } .chat { max-height: none; } }

/* ---------- onboarding ---------- */
.ob { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.ob-steps { display: grid; gap: 2px; position: sticky; top: 76px; }
.ob-steps button { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-weight: 500; }
.ob-steps button span { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.ob-steps button.on { background: var(--mint-soft); color: var(--brand); } .ob-steps button.on span { border-color: var(--brand-2); }
.ob-steps button.done span { background: var(--mint-soft); border-color: var(--mint); color: var(--brand-2); }
.ob-body h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.01em; }
.ob-body { display: grid; gap: 12px; padding: 22px 24px; }
.ob-nav { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.pill-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pill-check input { display: none; }
.pill-check span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13.5px; }
.pill-check input:checked + span { background: var(--mint-soft); border-color: var(--brand-2); color: var(--brand); font-weight: 600; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 14px; }
.svc { display: grid; grid-template-columns: 18px 1fr 70px 28px; gap: 8px; align-items: center; font-size: 14px; }
.svc .input { padding: 4px 6px; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.rcard { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: grid; gap: 2px; }
.rcard input { display: none; } .rcard span { color: var(--muted); font-size: 13px; }
.rcard:has(input:checked) { border-color: var(--brand-2); box-shadow: inset 0 0 0 1px var(--brand-2); background: var(--mint-soft); }
label.inline.big { font-size: 14.5px; white-space: normal; }
.ob-done { text-align: center; padding: 32px 24px; max-width: 720px; margin: 0 auto; }
.big-check { width: 64px; height: 64px; border-radius: 50%; background: var(--mint-soft); color: var(--brand-2); font-size: 32px; font-weight: 800; display: grid; place-items: center; margin: 0 auto 10px; }
.next-steps { text-align: left; display: grid; gap: 8px; margin: 18px auto; max-width: 560px; }
.ob-done .d-actions { justify-content: center; }
@media (max-width: 860px) { .ob { grid-template-columns: 1fr; } .ob-steps { position: static; grid-auto-flow: column; overflow-x: auto; } .ob-steps button { white-space: nowrap; } }

/* ---------- billing ---------- */
.tbanner { background: var(--mint-soft); color: var(--brand); padding: 8px 24px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.tbanner.warn { background: var(--amber-soft); color: var(--amber); } .tbanner.bad { background: var(--red-soft); color: var(--red); }
.tbanner a { font-weight: 700; }
.bill-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bill-status.locked { border-color: var(--red); }
.meter { height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; margin: 6px 0; }
.meter span { display: block; height: 100%; background: var(--brand-2); } .meter span.hot { background: var(--amber); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; position: relative; }
.plan.pop { border-color: var(--brand-2); box-shadow: inset 0 0 0 1px var(--brand-2); }
.plan.current { background: var(--mint-soft); }
.plan .tag { position: absolute; top: -10px; left: 16px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 16px; } .price { font-size: 32px; font-weight: 800; letter-spacing: -.02em; } .price span { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 4px; }
.plan .btn { justify-content: center; margin-top: 6px; }

/* ---------- patient file & insurance ---------- */
.pf-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin: 10px 0 12px; }
.pf-head h2 { margin: 0 0 4px; font-size: 22px; }
.pf-id .facts { display: flex; gap: 4px 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.pf-id .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .pf-head { grid-template-columns: auto 1fr; } .pf-actions { grid-column: 1 / -1; justify-content: flex-start; } }
.tabs-bar a .c { font-size: 11px; background: var(--mint-soft); color: var(--brand); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.pf-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.pf-grid h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 6px 0 0; }
@media (max-width: 1000px) { .pf-grid { grid-template-columns: 1fr; } }
.form-grid.addr { grid-template-columns: 2fr 1fr 1.2fr .6fr .8fr; }
@media (max-width: 760px) { .form-grid.addr { grid-template-columns: 1fr 1fr; } }
.pol h4, .modal h4 { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .pol-grid { grid-template-columns: 1fr; } }
.cov { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cov div { background: var(--line-2); border-radius: 8px; padding: 8px; text-align: center; }
.cov b { display: block; font-size: 20px; } .cov span { font-size: 11.5px; color: var(--muted); text-transform: capitalize; }
.benefit { display: grid; gap: 2px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.netrow { display: flex; gap: 6px; flex-wrap: wrap; }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inv-item { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inv-item .input { flex: 1 1 80px; width: auto; }
.inv-sum { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
table.netmatrix td { vertical-align: middle; }
table.netmatrix select { padding: 4px 6px; font-size: 13px; min-width: 140px; font-weight: 600; }
table.netmatrix select.st-in { color: var(--brand-2); background: var(--mint-soft); }
table.netmatrix select.st-out { color: var(--amber); background: var(--amber-soft); }
table.netmatrix select.st-none { color: var(--red); background: var(--red-soft); }

/* native controls follow the theme (date pickers, scrollbars, checkboxes) */
:root { color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; } }
select.time-sel { min-width: 112px; }
/* onboarding steps wrap instead of scrolling sideways */
@media (max-width: 860px) { .ob-steps { grid-auto-flow: row; display: flex; flex-wrap: wrap; overflow: visible; } .ob-steps button { white-space: nowrap; padding: 6px 8px; } .ob-steps p { width: 100%; } }

.hours-tools { margin-top: 8px; }
.lunch-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.blk.hol { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--amber) 22%, transparent) 0 8px, color-mix(in srgb, var(--amber) 10%, transparent) 8px 16px); cursor: default; }
.blk.hol span { color: var(--amber); }
.hol-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--amber); background: var(--amber-soft); border-radius: 999px; padding: 0 8px; margin-top: 2px; }
.hol-tag.big { font-size: 12.5px; padding: 2px 10px; margin-right: 8px; }
table.t.hol td.who { display: flex; flex-wrap: wrap; gap: 4px 10px; }

/* ---------- email ---------- */
.em-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 10px; }
@media (max-width: 1100px) { .em-grid { grid-template-columns: 1fr; } }
.em-preview { position: sticky; top: 76px; }
.em-preview iframe, .em-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.em-frame { height: 480px; }
.pv-subj { font-weight: 700; margin: 0 0 8px; }
.sec-h { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 0 6px; }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.idea { text-align: left; cursor: pointer; display: grid; gap: 4px; border: 1px solid var(--line); }
.idea:hover { border-color: var(--brand-2); }

/* ---------- patient self-service ---------- */
.copyrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copyrow .input { flex: 1 1 260px; min-width: 0; }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 14px; margin-top: 6px; }
.chk-grid label.inline { white-space: normal; }
.fe-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.fe-row > textarea, .fe-row > select[data-k=map] { grid-column: 2 / 3; }
.fe-row > label.inline { grid-column: 2 / 3; }
.fe-tools { grid-column: 3; grid-row: 1; display: flex; gap: 2px; }
@media (max-width: 700px) { .fe-row { grid-template-columns: 1fr; } .fe-row > *, .fe-tools { grid-column: 1 !important; grid-row: auto !important; } }
.answers { display: grid; gap: 0; }
.ans { display: grid; grid-template-columns: minmax(0, 45%) minmax(0, 55%); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.ans > span:first-child { color: var(--ink-2); }
.sig-img { max-width: 260px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.stars-s { color: #f2a900; letter-spacing: 1px; }
.stars-s span { color: var(--line); }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 800px) { .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi .n small { font-size: 14px; color: var(--ink-3, var(--ink-2)); font-weight: 500; }

/* ---------- support + super admin ---------- */
.imp-bar { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; padding: 9px 18px; background: #6b2fb3; color: #fff; font-size: 13.5px; position: sticky; top: 0; z-index: 30; }
.imp-bar .btn { background: #fff; color: #3d1470; border-color: #fff; }
.thread { display: grid; gap: 12px; margin-top: 10px; }
.msg { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel); }
.msg.from-admin { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: color-mix(in srgb, var(--brand) 7%, var(--panel)); }
.msg.internal { border-style: dashed; background: color-mix(in srgb, #f2a900 9%, var(--panel)); }
.msg-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.msg-h .muted-s { margin-left: auto; }
.msg-b { white-space: normal; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.shot { display: block; max-width: 100%; max-height: 360px; margin-top: 8px; border-radius: 8px; border: 1px solid var(--line); }
.shot-wrap { display: flex; gap: 10px; align-items: flex-start; }
.shot-prev { max-width: 220px; max-height: 140px; border-radius: 6px; border: 1px solid var(--line); }
.diag { display: grid; grid-template-columns: 120px 200px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
@media (max-width: 700px) { .diag { grid-template-columns: 1fr; gap: 2px; } }
tr.unread td b { font-weight: 800; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint, #22B8CF); margin-right: 6px; vertical-align: middle; }
tr.muted-row td { opacity: .6; }
tr.warn-row td { background: color-mix(in srgb, #e5484d 8%, transparent); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

/* FrontOwl wordmark */
.logo span { font-family: 'Sora', 'Inter', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- website add-on ---------- */
.ws-offer { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.ws-offer h2 { margin: 10px 0 6px; } .ws-offer ul { padding-left: 20px; }
.ws-mini { width: 100%; height: 460px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
@media (max-width: 1000px) { .ws-offer { grid-template-columns: 1fr; } }
.ws-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ws-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .ws-grid { grid-template-columns: 1fr; } }
.ws-grid h3 { margin: 10px 0 0; }
.ws-themes { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.ws-theme { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.ws-theme.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.ws-theme input { position: absolute; opacity: 0; } .ws-theme i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.ws-theme:has(input:focus-visible) { outline: 2px solid var(--mint); }
.ws-photo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.ws-photo img { width: 84px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.ws-row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.ws-row4 { display: grid; grid-template-columns: 90px 100px 1fr 2fr; gap: 8px; } @media (max-width: 700px) { .ws-row4 { grid-template-columns: 1fr 1fr; } }
.ws-svc { display: grid; grid-template-columns: auto 1fr 2fr; gap: 8px; align-items: center; }
.ws-faq { display: grid; grid-template-columns: 1fr auto; gap: 6px; } .ws-faq textarea { grid-column: 1; } .ws-faq button { grid-row: 1; grid-column: 2; }
.ws-prev { position: sticky; top: 76px; padding: 10px; } .ws-prev-bar { display: flex; align-items: center; gap: 6px; padding: 0 4px 8px; }
.ws-frame-wrap { display: flex; justify-content: center; background: var(--line-2); border-radius: 8px; padding: 0; }
#ws-frame { width: 100%; height: 76vh; border: 0; border-radius: 8px; background: #fff; transition: width .2s; }

/* Practice software */
.sw-head { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.sw-head > div:first-child { flex: 1 1 380px; }
.sw-status { display: grid; gap: 4px; justify-items: end; }
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.sw-sys { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; font: inherit; color: var(--ink); }
.sw-sys span { font-size: 12.5px; color: var(--muted); } .sw-sys small { font-size: 11.5px; color: var(--muted); text-transform: capitalize; }
.sw-sys:hover:not(:disabled) { border-color: var(--brand-2); }
.sw-sys.on { border-color: var(--brand-2); background: var(--mint-soft); box-shadow: inset 0 0 0 1px var(--brand-2); }
.sw-steps { margin: 6px 0 16px; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14px; }
.sw-map select { min-width: 180px; }
.sw-types { margin-top: 14px; } .sw-types summary { cursor: pointer; font-weight: 600; }
@media (max-width: 640px) { .sw-status { justify-items: start; } }
