/* Clinical Atelier. Shared application surfaces, controls and data display. */
:root, .app-shell {
  --bg: #f4f6f3;
  --surface: #fff;
  --canvas-inset: #edf2ee;
  --table-head: #eef3ef;
  --ink: #17211e;
  --muted: #52615a;
  --line: #dce3de;
  --control-border: #9eafa6;
  --teal: #0d6557;
  --primary-dark: #0a4b41;
  --sidebar: #102f2a;
  --accent: #b79762;
  --focus: #0d6557;
  --selected: #e3efe8;
  --white-on-green: #f5fbf7;
  --rail-secondary: #c0d4cc;
  --status-blue: #244c72;
  --status-blue-bg: #e7eff8;
  --status-green: #24573e;
  --status-green-bg: #e5f1e9;
  --status-amber: #6d4b16;
  --status-amber-bg: #f8efdd;
  --status-red: #8b372e;
  --status-red-bg: #faece8;
  --radius-control: 8px;
  --radius-panel: 10px;
  --inline-space: clamp(24px, 2.45vw, 48px);
  --duration: 150ms;
  --font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
body { font: 14px/1.55 var(--font); color: var(--ink); background: var(--bg); }
::selection { color: var(--primary-dark); background: #d4e9df; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:where(.app-shell, .lp, .auth-layout, .modal) :is(button, a, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.app-shell { --action: var(--teal); --reading-ink: var(--ink); --secondary-ink: var(--muted); grid-template-columns: 232px minmax(0,1fr); background: var(--bg); font-variant-numeric: tabular-nums; }
.app-shell .sidebar {
  width: 232px;
  padding: 21px 14px 13px;
  background: var(--sidebar);
  color: var(--white-on-green);
  border: 0;
  --focus: #e0be83;
  scrollbar-color: #52766a var(--sidebar);
}
.app-shell .sidebar .brand { padding: 1px 9px 20px; gap: 11px; }
.app-shell .brand h2 { font-size: 19px; font-weight: 650; letter-spacing: -.35px; color: var(--white-on-green); }
.app-shell .brand .sub { color: var(--rail-secondary); font-size: 12px; letter-spacing: 0; margin-top: 3px; }
.app-shell .clinic-context { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-block: 1px solid #3a5750; margin: 0 3px 8px; color: var(--rail-secondary); font-size: 13px; overflow-wrap: anywhere; }
.clinic-context .icon { width: 16px; height: 16px; flex: none; }
.app-shell .nav-list { gap: 3px; }
.app-shell .nav-label { padding: 14px 11px 5px; color: #a9c3b9; font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.app-shell .nav-item { color: #deebe5; gap: 10px; padding: 8px 11px; border: 1px solid transparent; border-radius: 7px; min-height: 38px; font-size: 14px; line-height: 1.5; transition: background-color var(--duration), border-color var(--duration); }
.app-shell .nav-item:hover { background: #24463e; color: white; }
.app-shell .nav-item.active { background: #244b41; border-color: #41645a; color: white; box-shadow: none; font-weight: 650; }
.app-shell .nav-item .icon { width: 17px; height: 17px; color: var(--rail-secondary); stroke-width: 1.65; flex: none; }
.app-shell .nav-item.active .icon { color: #e4c593; }
.app-shell .sidebar-foot { padding-top: 15px; }
.app-shell .user-card { padding: 12px 4px 5px; border-top: 1px solid #3a5750; gap: 9px; }
.app-shell .user-card strong { color: var(--white-on-green); font-size: 14px; }
.app-shell .user-card small { font-size: 12px; color: var(--rail-secondary); margin-top: 3px; }
.app-shell .sidebar .avatar { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #34574d; color: #f4f9f5; font-size: 15px; }
.app-shell .sidebar .btn.ghost, .app-shell .sidebar .btn.demo-switch { color: var(--rail-secondary); background: transparent; border: 0; }
.app-shell .sidebar .btn.ghost:hover, .app-shell .sidebar .btn.demo-switch:hover { background: #24463e; color: white; }
.app-shell .sidebar .btn.demo-switch { width: 100%; justify-content: flex-start; padding-left: 5px; margin: 0; }
.app-shell .workspace { min-width: 0; background: var(--bg); }
.app-shell .topbar { height: 58px; padding: 0 var(--inline-space); background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: none; backdrop-filter: none; }
.app-shell .breadcrumb { gap: 12px; min-width: 0; }
.app-shell .breadcrumb strong { font-size: 14px; color: var(--ink); font-weight: 650; }
.app-shell .workspace-greeting, .app-shell .workspace-home { font-size: 13px; color: var(--muted); }
.app-shell .topbar-meta { gap: 10px; flex: none; }
.app-shell :is(.patient-search, .workspace-search) { gap: 7px; min-height: 34px; padding: 6px 9px; color: var(--muted); background: #f7f9f7; border: 1px solid var(--line); border-radius: var(--radius-control); font-size: 13px; }
.app-shell :is(.patient-search, .workspace-search):hover { background: var(--selected); color: var(--primary-dark); }
.app-shell .topbar .icon { width: 16px; height: 16px; stroke-width: 1.65; }
.app-shell kbd { font: 11px var(--font); color: var(--muted); background: white; border-color: var(--line); }
.app-shell .workspace-main { width: 100%; max-width: none; padding: 25px var(--inline-space) 40px; background: var(--bg); }
.app-shell :is(.title-row, .desk-heading, .day-page-heading) { align-items: center; gap: 16px; margin-bottom: 20px; }
.app-shell :is(.title-row, .desk-heading, .day-page-heading) h1 { margin: 0; font-size: 26px; font-weight: 680; line-height: 1.35; letter-spacing: -.4px; color: var(--ink); }
.app-shell :is(.title-row, .desk-heading, .day-page-heading) p { margin: 5px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 72ch; }
.app-shell .desk-heading > .row { padding: 0; flex-shrink: 1; }

:is(.app-shell, .modal) .btn {
  min-height: 39px; padding: 8px 13px; border: 1px solid var(--control-border); border-radius: var(--radius-control);
  color: var(--ink); background: var(--surface); box-shadow: none;
  font: 600 14px/1.4 var(--font);
  transition: background-color var(--duration), border-color var(--duration), color var(--duration);
}
:is(.app-shell, .modal) .btn.small { min-height: 35px; padding: 6px 10px; font-size: 13px; }
:is(.app-shell, .modal) .btn:not(.primary, .danger, .ghost):not(:disabled):hover { background: var(--selected); border-color: #80998c; color: var(--primary-dark); }
:is(.app-shell, .modal) .btn.primary { background: var(--teal); color: white; border-color: var(--teal); }
:is(.app-shell, .modal) .btn.primary:not(:disabled):hover { background: var(--primary-dark); border-color: var(--primary-dark); }
:is(.app-shell, .modal) .btn.ghost { background: transparent; border-color: transparent; color: var(--teal); }
:is(.app-shell, .modal) .btn.ghost:not(:disabled):hover { background: var(--selected); color: var(--primary-dark); }
:is(.app-shell, .modal) .btn:is(.on,.selected) { background: var(--selected); color: var(--primary-dark); border-color: #91ae9f; }
:is(.app-shell, .modal) .btn.danger { background: white; color: var(--status-red); border-color: #c58f86; }
:is(.app-shell, .modal) .btn.danger:not(:disabled):hover { background: var(--status-red-bg); }
.modal .btn.destructive { background: var(--status-red); color: white; border-color: var(--status-red); }
.modal .btn.destructive:not(:disabled):hover { background: #733029; }
:is(.app-shell, .modal) .btn:is(:disabled,[aria-disabled="true"]) { opacity: 1; background: var(--canvas-inset); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
:is(.app-shell, .modal) .field-input { min-height: 40px; padding: 8px 11px; border: 1px solid var(--control-border); border-radius: var(--radius-control); font: 400 14px/1.5 var(--font); color: var(--ink); background: white; caret-color: var(--teal); }
:is(.app-shell, .modal) .field-input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--teal); box-shadow: none; }
:is(.app-shell, .modal) .field-input::placeholder { color: var(--muted); opacity: 1; }
:is(.app-shell, .modal) .field-label { font-size: 14px; color: var(--ink); font-weight: 600; }
:is(.app-shell, .modal) :is(.field-help, .subline, .second, .muted) { color: var(--muted); font-size: 13px; line-height: 1.55; }
:is(.app-shell, .modal) .text-link { color: var(--teal); text-underline-offset: 3px; }
.app-shell .toolbar { gap: 8px 10px; margin-bottom: 16px; }
.app-shell .search-box .field-input { padding-left: 38px; }
.app-shell .search-box > .icon { left: 12px; color: var(--muted); pointer-events: none; }
.app-shell :is(.card, .encounter-sheet, .desk-register, .day-register, .patient-register, .schedule-shell) {
  border-radius: var(--radius-panel); border: 1px solid var(--line); background: white; box-shadow: none;
}
.app-shell .card-head { padding: 15px 18px; gap: 12px; border-bottom-color: var(--line); }
.app-shell .card-head h2, .app-shell .encounter-sheet h2 { font-size: 17px; color: var(--ink); font-weight: 650; }
.app-shell .card-head > .text-link { white-space: nowrap; flex-shrink: 0; }
.app-shell .card-pad { padding: 18px; }
:is(.app-shell, .modal) .table-wrap { max-width: 100%; overflow: auto; scrollbar-color: #98aa9e #eef3ef; scrollbar-width: thin; }
:is(.app-shell, .modal) .table-wrap:focus-visible, .app-shell .calendar-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
:is(.app-shell, .modal) th { padding: 10px 14px; font-size: 13px; font-weight: 650; color: #394942; background: var(--table-head); border-bottom: 1px solid var(--line); white-space: nowrap; }
:is(.app-shell, .modal) td { padding: 11px 14px; height: 55px; font-size: 14px; line-height: 1.5; color: var(--ink); border-bottom: 1px solid #e6ece7; vertical-align: middle; }
:is(.app-shell, .modal) td .name { font-size: 14px; font-weight: 650; color: var(--ink); }
:is(.app-shell, .modal) .table-wrap tbody tr:hover td { background: #f4f8f5; }
:is(.app-shell, .modal) .table-wrap tbody tr:last-child td { border-bottom: 0; }
:is(.app-shell, .modal) .amount-cell { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
:is(.app-shell, .modal) .action-cell { text-align: left; width: 1%; white-space: nowrap; }
:is(.app-shell, .modal) td .btn { white-space: nowrap; }
:is(.app-shell, .modal) .badge { background: #eaf0ec; color: #42534a; font-size: 12px; font-weight: 550; line-height: 1.4; padding: 3px 7px; border-radius: 5px; letter-spacing: 0; white-space: nowrap; }
:is(.app-shell, .modal) .badge.blue { background: var(--status-blue-bg); color: var(--status-blue); }
:is(.app-shell, .modal) .badge.care { background: #e4f1ed; color: var(--primary-dark); }
:is(.app-shell, .modal) .badge.green { background: var(--status-green-bg); color: var(--status-green); }
:is(.app-shell, .modal) .badge.amber { background: var(--status-amber-bg); color: var(--status-amber); }
:is(.app-shell, .modal) .badge.red { background: var(--status-red-bg); color: var(--status-red); }
:is(.app-shell, .modal) :is(.readonly-tag,.patient-demographics) { font-size: 12px; color: var(--muted); }
.app-shell .metric-grid { background: white; border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; gap: 0; }
.app-shell .metric { min-height: 0; padding: 18px; border: 0; border-inline-end: 1px solid var(--line); border-radius: 0; box-shadow: none; background: white; }
.app-shell .metric:last-child { border-inline-end: 0; }
.app-shell .metric-icon { display: none; }
.app-shell .metric :is(.label, .note) { color: var(--muted); max-width: none; font-size: 13px; }
.app-shell .metric .value { color: var(--ink); font-size: 30px; font-weight: 650; line-height: 1.3; letter-spacing: -.45px; }
:is(.app-shell, .modal) :is(.empty,.desk-empty,.calendar-empty) { padding: 26px 18px; color: var(--muted); font-size: 14px; }
.app-shell .desk-empty h3 { font-size: 16px; color: var(--ink); }
:is(.app-shell, .modal) .callout { border: 1px solid var(--line); background: var(--canvas-inset); color: var(--ink); font-size: 14px; border-radius: var(--radius-control); }
:is(.app-shell, .modal) .callout.error, .modal .modal-error:not(:empty) { border-color: #dfb5ad; color: var(--status-red); background: var(--status-red-bg); }
:is(.app-shell, .modal) .callout.warning { border-color: #e2c991; color: var(--status-amber); background: var(--status-amber-bg); }
.app-shell .loader { min-height: 140px; align-items: center; color: var(--muted); }
.app-shell .spinner { border-color: var(--line); border-top-color: var(--teal); }
.app-shell .page-foot { color: var(--muted); font-size: 12px; }

.modal-overlay { background: #102f2a70; backdrop-filter: none; }
.modal { font-family: var(--font); font-variant-numeric: tabular-nums; border: 0; border-radius: 12px; box-shadow: 0 20px 55px #112e2940; }
.modal .modal-head { padding: 19px 24px 15px; color: var(--ink); background: white; border-bottom: 1px solid var(--line); }
.modal .modal-head h2 { font-size: 21px; color: var(--ink); font-weight: 650; }
.modal .modal-head p, .modal .check-label { font-size: 14px; color: var(--muted); }
.modal .modal-close { color: var(--muted); border-radius: var(--radius-control); }
.modal .modal-close:hover { background: var(--selected); color: var(--ink); }
.modal .modal-body { padding: 19px 24px; }
.modal .modal-footer { padding: 14px 24px; gap: 8px; background: #f6f8f6; border-top: 1px solid var(--line); }
.toast { color: var(--white-on-green); background: var(--sidebar); border-radius: var(--radius-control); box-shadow: 0 8px 26px #102f2a33; }
.modal .command-result { color: var(--ink); }
.modal .command-result:is(:hover,:focus) { background: var(--selected); color: var(--primary-dark); }

.day-page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}.day-heading-actions{display:flex;gap:10px}.clinic-day-overview{padding:26px 28px 24px;background:#fff;border-radius:12px;margin-bottom:30px;box-shadow:0 3px 20px #18392d06}.day-overview-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.day-overview-heading h2{margin:0;font-size:17px;font-weight:600}.day-date-control{display:flex;gap:12px;align-items:center}.day-date-buttons{display:flex;gap:2px;padding:3px;background:#f1f5f0;border-radius:7px}.day-date-buttons .btn.small{border:0;background:transparent;min-height:32px;font-size:12px;padding:6px 10px;color:#506d55}.day-date-buttons .btn[data-id=today]{background:#fff;color:#305339;box-shadow:0 1px 3px #14391e0b}.day-date-control .field-input{min-height:36px;font-size:13px;padding:6px 9px;border-color:#dee6db;max-width:158px}
.day-progress-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:34px}.day-total{padding-right:30px;border-right:1px solid #e6ece2;display:flex;flex-wrap:wrap;align-items:baseline;gap:1px 8px}.day-total>span{width:100%;font-size:14px;color:#596f58}.day-total strong{font-size:54px;font-weight:550;line-height:1.2;letter-spacing:-1.3px;color:#1c3b2f}.day-total small{width:100%;font-size:12px;color:#6c7d68;margin-top:6px}.day-flow-states{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.flow-state{background:none;border:0;border-radius:7px;text-align:left;padding:2px 8px 5px;transition:background .15s}.flow-state:hover,.flow-state[aria-pressed=true]{background:#f0f6ef}.flow-state>span{display:flex;align-items:center;gap:7px;color:#5c715a;font-size:14px;white-space:nowrap}.flow-state i{width:6px;height:6px;border-radius:50%;background:#899e8c}.flow-state.waiting i{background:#b89852}.flow-state.care i{background:#43878b}.flow-state.complete i{background:#638b64}.flow-state>strong{display:block;font-size:32px;font-weight:550;line-height:1.5;color:#294c3c;margin-top:5px}.day-distribution{display:flex;gap:4px;height:7px;overflow:hidden;border-radius:2px;margin:15px 8px 10px;background:#f0f4ed}.day-distribution>span{min-width:0;background:#c9d8cb}.day-distribution>.waiting{background:#c4ac74}.day-distribution>.care{background:#43878b}.day-distribution>.complete{background:#779e77}.day-distribution>.exception{background:#e2e5dc}.day-progress-caption{display:flex;justify-content:space-between;color:#6a7b66;font-size:12px;margin:0 8px;gap:10px}.day-progress-caption i{font-style:normal;margin:0 9px;color:#9da997}
.day-work-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:32px;align-items:start}.day-register{background:white;border:1px solid #e2e9df;border-radius:12px;min-width:0;overflow:hidden}.day-register>header{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.day-register h2{font-size:18px;margin:0 0 5px;font-weight:600}.day-register>header span{font-size:13px;color:#6b7d65}.day-register .appointment-row-actions{gap:6px;flex-wrap:wrap;max-width:240px}.day-register .appointment-row-actions .btn{min-height:34px;padding:6px 10px;font-size:12px}.day-time{font-size:16px;font-weight:600;color:#244c3c}.day-register td:first-child>.second{display:block;font-size:12px;white-space:nowrap}
.register-person{display:flex;align-items:center;gap:12px;min-width:0}.person-mark{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:9px;background:#edf2e9;color:#6a8060;font-size:14px}.register-person strong{font-size:15px;font-weight:600;color:#254238}.person-heading{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.person-heading>span{font-size:12px;color:#6b7d65}.register-person .second{font-size:13px;line-height:1.5;color:#65785e;margin-top:4px}.day-rail{min-width:0;padding-top:4px}.day-rail>section{padding:20px 0 24px;border-bottom:1px solid #dde6d9}.day-rail>section:first-child{padding-top:8px}.day-rail>section:last-child{border:0}.day-rail h2{font-size:16px;margin:0 0 14px;font-weight:600;color:#345147}.day-tasks>button{display:flex;align-items:center;gap:12px;width:100%;background:transparent;border:0;padding:12px 0;text-align:left;color:#4e6b59;font-size:14px}.day-tasks>button>strong{margin-left:auto;font-size:17px;font-weight:550;color:#2f5b4a}.day-tasks>button>.icon{width:14px;height:14px;color:#7f9485}.day-tasks>button:hover{color:#096b71}.day-cash .row h2{margin:0}.day-cash .text-link{font-size:13px}.day-cash-amount{font-size:34px;font-weight:550;line-height:1.4;display:block;margin-top:18px;letter-spacing:-.6px;color:#264e40}.day-cash p{font-size:12px;line-height:1.8;color:#6b7d6b;margin:7px 0 19px}.day-receivable{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:#5d7569}.day-receivable strong{font-size:16px;font-weight:550;color:#345b48}.day-quicklinks>button,.day-quicklinks>a{display:flex;justify-content:space-between;align-items:center;padding:9px 0;width:100%;text-align:left;color:#526e5b;font-size:14px;font-weight:450;border:0;background:none}.day-quicklinks .icon{width:14px;height:14px;color:#80958a}
.app-shell .patient-register{border-radius:12px;border:1px solid #e0e8dc;background:white}.patient-register .table-wrap{max-height:calc(100svh - 292px);overflow:auto}.patient-register th{position:sticky;top:0;z-index:2;background:#f4f7f1}.patient-register table{min-width:1100px}.patient-register td{padding-top:14px;padding-bottom:14px}.patient-register td:first-child,.patient-register th:first-child{min-width:208px}.patient-register .register-person .text-link{text-decoration:none;color:#294c3c;font-weight:600}.patient-register .register-person .text-link:hover{color:#096b71;text-decoration:underline}.patient-register .second{font-size:12px}.app-shell .list-pagination{padding:15px 20px;background:#fcfdfb;border-top:1px solid #e4eadf;font-size:13px;color:#63786b}.app-shell .worklist-tabs>button{font-size:14px;min-height:49px;color:#63786d}.app-shell .worklist-tabs>button.selected{background:#f2f7ef;color:#176449}.app-shell .worklist-search{padding:18px 20px;background:#fcfdfb}.app-shell .worklist-search label{font-size:13px;color:#60756b}.app-shell .worklist-search input{min-height:42px;font-size:14px}.app-shell .care-patient-header h1{font-size:28px}.app-shell .encounter-sheet>header{padding:20px 24px}.app-shell .encounter-sheet h2{font-size:18px;color:#2b4d3c}.app-shell .encounter-pad{padding:24px}.app-shell .encounter-field>span{font-size:14px}.app-shell .care-completion{border:1px solid #dde7d7;border-radius:12px;background:#f2f6ee;box-shadow:none}.app-shell .care-completion h2{font-size:17px;color:#42614c}.app-shell .care-completion p,.app-shell .care-completion li{font-size:13px;line-height:1.9}
.analysis-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:24px}.analysis-toolbar .toolbar{margin:0}.analysis-presets{display:flex;gap:3px;padding:3px;background:#edf2e9;border-radius:8px}.analysis-presets .btn.small{border:0;background:transparent;min-height:34px}.analysis-presets .btn.on{background:#fff;color:#145e4a;box-shadow:0 1px 4px #1b432010}.analysis-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:4px 0 30px;margin-bottom:30px;border-bottom:1px solid #dfe7d9;gap:28px}.analysis-metric>span{display:block;font-size:14px;color:#62786a}.analysis-metric>strong{display:block;font-size:40px;line-height:1.35;font-weight:550;letter-spacing:-.7px;color:#284c3c;margin:10px 0 7px}.analysis-metric.primary>strong{color:#096b71}.analysis-metric>small{display:block;font-size:13px;color:#6d7e6b}.analysis-top{display:grid;grid-template-columns:1.15fr 1fr;gap:32px;margin-bottom:34px}.analysis-treatment,.analysis-capacity{background:#fff;border-radius:12px;padding:25px 26px}.analysis-top header,.analysis-coverage>header{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:25px}.analysis-top h2,.analysis-doctors h2,.analysis-coverage h2{font-size:18px;margin:0;font-weight:600}.analysis-top header>span,.analysis-coverage>header>span{font-size:12px;color:#6c7d6a}.treatment-comparison{display:grid;gap:23px}.treatment-comparison-row{display:grid;grid-template-columns:150px minmax(40px,1fr) 55px;gap:18px;align-items:center}.treatment-comparison-row>div:first-child strong{display:block;font-size:15px;font-weight:550;color:#365744}.treatment-comparison-row>div:first-child span{display:block;font-size:12px;color:#6c7f6c;margin-top:6px}.treatment-chart-track{height:18px;background:#f3f6ef;border-radius:3px;overflow:hidden}.treatment-chart-track>i{display:block;height:100%;background:#71948a;border-radius:3px}.treatment-unit{font-size:23px;font-weight:550;text-align:right;color:#355e4b}.treatment-unit small{display:block;font-size:12px;font-weight:400;color:#708474}.capacity-comparison{display:grid;gap:23px}.capacity-heading{display:flex;justify-content:space-between;gap:15px;align-items:baseline}.capacity-heading strong{font-size:15px;font-weight:550;color:#3c5c49}.capacity-heading>span{font-size:22px;font-weight:550;color:#436f55}.capacity-track{height:7px;border-radius:2px;background:#eef3e9;margin:15px 0 10px;overflow:hidden}.capacity-track>i{height:100%;display:block;background:#8eaa90}.capacity-facts{display:flex;gap:18px;justify-content:space-between;font-size:12px;color:#6c7f6c}.analysis-doctors{background:#fff;border:1px solid #e2e9dc;border-radius:12px;overflow:hidden;margin-bottom:30px}.analysis-doctors>header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 26px}.analysis-doctors>header p{font-size:13px;line-height:1.8;color:#677d68;margin:7px 0 0}.analysis-doctors>header>span{font-size:13px;color:#6c806a;white-space:nowrap}.inactive-clinicians{border-top:1px solid #e4ebde}.inactive-clinicians>summary{padding:17px 24px;font-size:13px;color:#617e63;cursor:pointer}.analysis-coverage{border-top:1px solid #dfe7d7;padding-top:26px}.analysis-coverage .table-wrap{border:1px solid #e3eadc;border-radius:10px}.analysis-coverage>header{margin-bottom:17px}.analysis-definitions{margin-top:24px;color:#627a64;font-size:13px;line-height:1.9;border-top:1px solid #e0e8d8;padding-top:18px}.analysis-definitions>summary{cursor:pointer;font-weight:550}.analysis-definitions ul{padding-left:20px;max-width:85ch}.app-shell .billing-overview,.app-shell .period-overview{border:0;border-radius:12px;box-shadow:none}.app-shell .billing-shortcuts,.app-shell .period-tasklist{background:#f0f5eb}.app-shell .business-chart figcaption{font-size:16px}.app-shell .business-bar{font-size:14px}.app-shell .business-bar strong{font-size:16px}.app-shell .period-tasklist p,.app-shell .billing-shortcuts p{font-size:13px}
/* Public editorial surface; original images, no new decorative image payload. */
.public-home,.lp{background:#f8faf6;color:#172e36}.lp{font-family:var(--font);--lp-deep:#172e36;--lp-muted:#536a5c;--lp-accent:#096b71}.lp .lp-container{width:min(1440px,calc(100% - 96px));margin-inline:auto}.lp .lp-header{background:#fbfcfa;backdrop-filter:none;border-bottom:1px solid #e5ebe1;box-shadow:none}.lp .lp-header-inner{height:82px}.lp .lp-brand>span{font-size:23px;letter-spacing:-.5px;color:#1a3f35}.lp .lp-brand small{font-size:12px;letter-spacing:0;color:#65786b}.lp .lp-desktop-nav a{font-size:14px;color:#506858}.lp .lp-button{min-height:49px;border-radius:7px;font-size:15px;font-weight:550;padding:12px 23px;box-shadow:none}.lp .lp-button.primary{background:#096b71;border-color:#096b71;color:#fff;box-shadow:none}.lp .lp-button.primary:hover{background:#07575d;border-color:#07575d;transform:none}.lp .lp-button.secondary{color:#436c58;border:0;background:transparent;padding-inline:12px;text-decoration:underline;text-underline-offset:5px}.lp .lp-button.compact{min-height:40px;padding:9px 16px;font-size:13px}.lp .lp-login-link{font-size:14px;color:#4c6957}
.lp .lp-hero{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-rows:1fr auto;align-items:center;gap:24px 54px;position:relative;min-height:0;height:auto;max-height:none;padding:48px max(48px,calc((100% - 1440px)/2)) 28px;background:#f2f6ed;overflow:hidden}.lp .lp-hero-inner{grid-area:1/1;width:100%;margin:0;padding:20px 0;height:auto;display:block;position:relative;z-index:2}.lp .lp-hero-copy{max-width:610px}.lp .lp-hero h1{font-size:clamp(42px,3.8vw,66px);line-height:1.25;letter-spacing:-1.4px;font-weight:600;color:#1a3e31;margin:0 0 26px}.lp .lp-hero h1>span{display:block}.lp .lp-hero-copy>p{font-size:17px;line-height:1.9;color:#556f5b;max-width:480px;min-height:0;margin:0 0 30px}.lp .lp-hero-images{grid-area:1/2;position:relative;inset:auto;width:100%;height:540px;border-radius:12px;overflow:hidden}.lp .lp-hero-image{object-fit:cover;object-position:center;filter:none;transition:opacity .55s ease}.lp .lp-hero-veil{display:none}.lp .lp-hero-points{font-size:13px;color:#67816c;margin-top:28px;gap:18px;flex-wrap:wrap}.lp .lp-hero-points .icon{color:#6e967c}.lp .lp-hero-bottom{grid-area:2/1/3/3;position:static;width:100%;margin:0;display:flex;justify-content:space-between;align-items:center;gap:24px}.lp .lp-scroll-hint{font-size:13px;color:#607e64}.lp .lp-carousel-controls>button{width:36px;height:36px;border-color:#d3dfcf;background:#f8fbf4;color:#6b876a}.lp .lp-slide-number{font-size:12px;color:#55745b}.lp .lp-slide-dots button[aria-pressed=true] span{background:#2c7769}
.lp .lp-foundation{padding:32px 0;background:#fff;border-bottom:1px solid #e4ebdc}.lp .lp-foundation-inner{display:grid;grid-template-columns:.9fr 1.1fr;gap:54px;align-items:center}.lp .lp-foundation h2{font-size:24px;font-weight:550;color:#294e3b;margin:0}.lp .lp-work-links{margin:0;display:flex;justify-content:space-between;gap:28px}.lp .lp-work-links a{padding:5px 0;gap:12px;min-width:0}.lp .lp-work-links a>.icon:first-child{color:#618c76;width:23px;height:23px}.lp .lp-work-links strong{font-size:15px;color:#365f46}.lp .lp-work-links small{font-size:12px;color:#72876e}.lp .lp-section{padding:88px 0;scroll-margin-top:82px;background:#f8faf6}.lp .lp-section-intro{margin-bottom:38px}.lp .lp-section-intro h2{font-size:36px;font-weight:550;line-height:1.4;letter-spacing:-.8px;color:#224935}.lp .lp-section-intro p{font-size:16px;color:#657f65;line-height:1.85}.lp .lp-feature-layout{grid-template-columns:250px minmax(0,1fr);gap:60px}.lp .lp-feature-tabs{gap:10px}.lp .lp-feature-tabs>button{border:0;background:transparent;border-radius:8px;padding:19px 16px}.lp .lp-feature-tabs>button[aria-selected=true]{background:#e9f0e2;border:0;box-shadow:none}.lp .lp-feature-tabs strong{font-size:16px;color:#39634d}.lp .lp-feature-tabs small{font-size:12px;color:#718b70}.lp .lp-feature-copy h3{font-size:27px;color:#2b5741;font-weight:550;margin-top:0}.lp .lp-feature-copy p{font-size:16px;line-height:1.85;color:#657f65}.lp .lp-feature-copy ul{font-size:14px;color:#5c7a60;gap:12px 24px;line-height:1.8}.lp .lp-product-preview{border:0;border-radius:10px;box-shadow:0 12px 40px #263e2410}.lp .lp-real-preview{margin:0}.lp .lp-real-preview img{display:block;width:100%;height:auto}.lp .lp-real-preview figcaption{font-size:12px;color:#6b826b;background:#f0f5e9;padding:12px 16px}.lp .lp-journey{background:#edf3e7}.lp .lp-journey-tabs strong{font-size:15px;color:#4c7156}.lp #lp-journey-panel{background:#fff;border:0;border-radius:12px;box-shadow:none}.lp .lp-step-copy h3{font-size:26px;font-weight:550;color:#2d5b40}.lp .lp-step-copy p{font-size:15px;color:#638066;line-height:1.9}.lp #lp-journey-panel li{font-size:14px;color:#567c5a}.lp .lp-role-tabs button{font-size:15px;color:#668668}.lp #lp-role-panel{background:#fff;border:1px solid #e2ebda;border-radius:12px;padding:44px;box-shadow:none}.lp .lp-role-copy h3{font-size:30px;font-weight:550;color:#2b5b3d}.lp .lp-role-copy p{font-size:16px;line-height:1.9;color:#67826a}.lp .lp-role-symbol{background:transparent;color:#4d8163}.lp .lp-role-preview{border-color:#e2ebda;border-radius:9px;box-shadow:none}.lp .lp-menu-preview strong{font-size:15px;color:#537a56}.lp .lp-role-preview>p{font-size:13px;color:#68876a;line-height:1.8}.lp .lp-trust-grid{grid-template-columns:.9fr 1.1fr;gap:70px}.lp .lp-clinic-photo{height:520px;border-radius:12px;overflow:hidden}.lp .lp-clinic-photo::after,.lp .lp-clinic-photo figcaption{display:none}.lp .lp-trust-items h3{font-size:18px;font-weight:550;color:#386744}.lp .lp-trust-items p{font-size:15px;color:#6b886a;line-height:1.9}.lp .lp-faq-grid{grid-template-columns:.8fr 1.2fr;gap:80px}.lp .lp-faq-items summary{font-size:17px;line-height:1.6;color:#406a4a;padding:23px 0}.lp .lp-faq-items details>p{font-size:15px;line-height:1.9;color:#6b886a}.lp .lp-final{background:#e7efdf;padding:52px 0}.lp .lp-final h2{font-size:34px;color:#2e5d40;font-weight:550}.lp .lp-footer{background:#f8faf5}.lp .lp-footer-top>div{font-size:14px;color:#6c876a}.lp .lp-footer-bottom{font-size:12px;line-height:1.7;color:#718c70}.lp .lp-back-top{border-color:#d6e3ca;box-shadow:none;color:#648e69;background:#fbfdf8}
@media(min-width:1800px){.app-shell .workspace-main{padding:36px 48px 54px}.app-shell .topbar{padding-inline:48px}.day-work-layout{grid-template-columns:minmax(0,1fr) 312px;gap:40px}.day-register td{padding-block:19px}.lp .lp-hero-images{height:600px}}
@media(max-width:1250px){.app-shell .topbar{padding-inline:26px}.app-shell .workspace-main{padding-inline:26px}.app-shell .workspace-search>span{display:none}.day-work-layout{grid-template-columns:minmax(0,1fr) 248px;gap:22px}.day-register table{min-width:720px}.day-progress-layout{grid-template-columns:140px minmax(0,1fr);gap:24px}.day-flow-states{gap:10px}.analysis-top{gap:22px}.treatment-comparison-row{grid-template-columns:125px minmax(30px,1fr) 50px;gap:13px}.lp .lp-hero{gap:24px 36px}.lp .lp-hero-images{height:480px}.lp .lp-hero h1{font-size:45px}.lp .lp-hero-points{gap:12px}.lp .lp-foundation-inner{gap:36px}.lp .lp-work-links{gap:18px}}
@media(max-width:1050px){.day-work-layout{grid-template-columns:1fr}.day-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start;border-top:1px solid #dce6d4;padding-top:24px}.day-rail>section{border:0;padding-top:8px}.day-cash-amount{font-size:28px}.analysis-top{grid-template-columns:1fr}.analysis-metrics{gap:18px}.analysis-metric>strong{font-size:34px}.lp .lp-container{width:calc(100% - 56px)}.lp .lp-hero{padding:36px 28px 26px;gap:22px}.lp .lp-hero h1{font-size:39px}.lp .lp-hero-images{height:460px}.lp .lp-hero-copy>p{font-size:16px}.lp .lp-foundation-inner{grid-template-columns:1fr;gap:20px}.lp .lp-feature-layout{gap:34px;grid-template-columns:220px minmax(0,1fr)}.lp .lp-trust-grid{gap:40px}.lp .lp-work-links{justify-content:flex-start;gap:44px}}
@media(max-width:760px){.app-shell{grid-template-columns:1fr}.app-shell .sidebar{width:248px;padding-top:22px}.app-shell .topbar{height:62px;padding-inline:16px}.app-shell .workspace-main{padding:25px 16px 36px}.app-shell .workspace-greeting{display:none}.app-shell .topbar-meta{gap:9px}.app-shell .patient-search>span,.app-shell .patient-search kbd,.app-shell .workspace-search>span,.app-shell .workspace-home>span{display:none}.app-shell .patient-search,.app-shell .workspace-search{width:36px;height:36px;min-height:36px;padding:8px;justify-content:center}.app-shell .title-row h1,.day-page-heading h1{font-size:26px}.app-shell .title-row{align-items:flex-start;flex-wrap:wrap;gap:16px}.app-shell .title-row .push{margin-left:0}.app-shell .btn,.app-shell .btn.small{min-height:44px;padding:9px 12px;font-size:13px}.app-shell .topbar .btn{min-height:36px;padding:7px}.day-page-heading{align-items:flex-start;gap:16px;flex-wrap:wrap}.day-heading-actions{gap:8px}.clinic-day-overview{padding:21px 18px;margin-bottom:24px}.day-overview-heading{flex-wrap:wrap;gap:18px;margin-bottom:23px}.day-date-control{width:100%;justify-content:space-between;gap:7px}.day-date-buttons .btn.small{min-height:34px;font-size:11px;padding:7px 8px}.day-date-control .field-input{font-size:12px;max-width:143px;min-height:36px}.day-progress-layout{grid-template-columns:1fr;gap:20px}.day-total{border:0;border-bottom:1px solid #e4ecdc;padding:0 0 18px;align-items:center}.day-total>span{width:auto;flex:1}.day-total>strong{font-size:44px}.day-total>small{width:auto;margin:0 0 0 3px;font-size:11px;max-width:45px}.day-flow-states{gap:8px}.flow-state{padding:0 3px 3px}.flow-state>span{font-size:12px;gap:5px}.flow-state>strong{font-size:27px}.day-progress-caption{font-size:11px;flex-wrap:wrap;gap:5px}.day-register>header{align-items:flex-start;flex-wrap:wrap;padding:19px}.day-register h2{font-size:17px}.day-register .appointment-row-actions .btn{min-height:38px}.day-rail{grid-template-columns:1fr;gap:0}.day-rail>section{border-bottom:1px solid #dfe7d8;padding:20px 0}.day-cash-amount{font-size:34px}.app-shell .card-head,.app-shell .card-pad{padding:20px}.app-shell th{font-size:13px;padding:13px 16px}.app-shell td{font-size:14px;padding:15px 16px}.app-shell .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell .metric{padding:20px}.app-shell .metric:nth-child(2n){border-right:0}.app-shell .metric:nth-child(n+3){border-top:1px solid #e3ebdb}.app-shell .metric .value{font-size:30px}.app-shell .patient-register .table-wrap{max-height:calc(100svh - 320px)}.analysis-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px;padding-bottom:25px}.analysis-metric>strong{font-size:35px}.analysis-metric>span{font-size:13px}.analysis-metric>small{font-size:12px}.analysis-toolbar{gap:15px}.analysis-toolbar .toolbar{gap:10px}.analysis-toolbar input[type=date]{min-width:138px;max-width:calc(50% - 20px)}.analysis-treatment,.analysis-capacity{padding:22px 18px}.analysis-top header,.analysis-coverage>header{flex-wrap:wrap;gap:7px}.treatment-comparison-row{grid-template-columns:112px minmax(25px,1fr) 45px;gap:10px}.treatment-comparison-row>div:first-child strong{font-size:14px}.capacity-facts{font-size:11px;gap:10px}.analysis-doctors>header{padding:20px 18px;flex-wrap:wrap;gap:9px}.analysis-doctors table{min-width:560px}.analysis-coverage table{min-width:650px}.app-shell .business-bar{grid-template-columns:96px minmax(25px,1fr) 95px;font-size:12px;gap:8px}.app-shell .business-bar strong{font-size:13px}.app-shell .care-completion{position:static}.modal .modal-head,.modal .modal-body,.modal .modal-footer{padding-left:20px;padding-right:20px}.modal .btn{min-height:44px}.modal .modal-head h2{font-size:22px}}
@media(max-width:850px){.lp .lp-header-inner{height:70px}.lp .lp-hero{grid-template-columns:1fr;grid-template-rows:auto auto auto;padding:34px 28px 24px;gap:28px}.lp .lp-hero-inner{grid-area:1/1;padding:0}.lp .lp-hero h1{font-size:45px;line-height:1.25;max-width:630px}.lp .lp-hero-copy{max-width:640px}.lp .lp-hero-copy>p{max-width:560px}.lp .lp-hero-images{grid-area:2/1;height:420px}.lp .lp-hero-bottom{grid-area:3/1;justify-content:flex-end}.lp .lp-scroll-hint{margin-right:auto}.lp .lp-feature-layout{grid-template-columns:1fr;gap:30px}.lp .lp-feature-tabs{flex-direction:row;gap:8px}.lp .lp-feature-tabs>button{padding:16px 12px}.lp .lp-section{padding:64px 0}.lp .lp-section-intro h2{font-size:30px}.lp .lp-trust-grid{grid-template-columns:1fr;gap:32px}.lp .lp-clinic-photo{height:380px}.lp .lp-faq-grid{grid-template-columns:1fr;gap:0}.lp .lp-role-copy h3{font-size:26px}.lp #lp-role-panel{padding:30px;gap:30px}}
@media(max-width:600px){.lp .lp-container{width:calc(100% - 40px)}.lp .lp-brand>span{font-size:19px}.lp .lp-brand small{font-size:10px}.lp .lp-header-inner{height:68px}.lp .lp-header-actions{gap:12px}.lp .lp-login-link{display:none}.lp .lp-button.compact{min-height:38px;font-size:12px;padding:8px 13px}.lp .lp-hero{padding:34px 20px 22px;gap:25px}.lp .lp-hero h1{font-size:36px;letter-spacing:-.8px;margin-bottom:20px}.lp .lp-hero-copy>p{font-size:15px;line-height:1.9;margin-bottom:24px}.lp .lp-button{font-size:14px;min-height:46px;padding:11px 18px}.lp .lp-hero-actions{gap:9px}.lp .lp-hero-points{font-size:12px;gap:11px 15px;margin-top:23px}.lp .lp-hero-images{height:300px;border-radius:9px}.lp .lp-hero-bottom{justify-content:center}.lp .lp-carousel-controls{width:auto;flex-wrap:nowrap;gap:8px}.lp .lp-carousel-controls>button{width:36px;height:36px}.lp .lp-foundation{padding:27px 0}.lp .lp-foundation h2{font-size:23px}.lp .lp-work-links{display:grid;gap:0}.lp .lp-work-links a{padding:15px 0;border-bottom:1px solid #e2ead9}.lp .lp-work-links strong{font-size:16px}.lp .lp-work-links small{font-size:12px}.lp .lp-section{padding:55px 0}.lp .lp-section-intro{margin-bottom:27px}.lp .lp-section-intro h2{font-size:29px}.lp .lp-section-intro p{font-size:15px}.lp .lp-feature-tabs{gap:6px}.lp .lp-feature-tabs>button{padding:14px 6px}.lp .lp-feature-tabs strong{font-size:13px}.lp .lp-feature-copy h3{font-size:24px}.lp .lp-feature-copy p{font-size:15px}.lp .lp-feature-copy ul{font-size:13px}.lp .lp-real-preview figcaption{font-size:11px;padding:11px 12px}.lp .lp-step-copy h3{font-size:24px}.lp .lp-step-copy p,.lp #lp-journey-panel li{font-size:14px}.lp .lp-role-tabs button{font-size:14px}.lp #lp-role-panel{padding:26px 22px}.lp .lp-role-copy h3{font-size:25px}.lp .lp-role-copy p{font-size:15px}.lp .lp-menu-preview strong{font-size:14px}.lp .lp-clinic-photo{height:310px}.lp .lp-trust-items p,.lp .lp-faq-items details>p{font-size:14px}.lp .lp-faq-items summary{font-size:16px}.lp .lp-final h2{font-size:29px}.lp .lp-footer-top>div{font-size:13px}.lp .lp-footer-bottom{font-size:12px}}
@media(prefers-reduced-motion:reduce){.app-shell .btn,.app-shell .nav-item,.lp .lp-hero-image{transition:none}.app-shell *{scroll-behavior:auto}}
@media print{.app-shell .sidebar,.app-shell .topbar,.day-date-control,.day-rail,.analysis-presets{display:none!important}.app-shell{display:block}.app-shell .workspace-main{padding:0}.day-work-layout,.analysis-top{display:block}.patient-register .table-wrap{max-height:none}.lp .lp-hero{display:block}.lp .lp-hero-images{height:300px}}
/* Optical neutralization: ink and slate carry the data; teal marks the action. */
.app-shell td,.app-shell td .name,.app-shell .register-person strong,.day-total strong,.flow-state>strong,.day-time,.day-rail h2,.analysis-metric>strong,.treatment-comparison-row>div:first-child strong,.treatment-unit,.capacity-heading strong,.analysis-top h2,.analysis-doctors h2,.analysis-coverage h2{color:var(--ink)}
.person-heading>span,.register-person .second,.day-total>span,.flow-state>span,.day-progress-caption,.analysis-metric>span,.analysis-metric>small,.analysis-top header>span,.capacity-facts{color:#5b6e6c}.day-cash-amount{color:#096b71}.lp .lp-hero h1,.lp .lp-section-intro h2,.lp .lp-feature-copy h3,.lp .lp-role-copy h3,.lp .lp-final h2{color:#172e36}.lp .lp-hero-copy>p,.lp .lp-section-intro p,.lp .lp-feature-copy p,.lp .lp-role-copy p{color:#52666c}
.analysis-toolbar>.toolbar{display:flex;align-items:center;flex:1 1 630px;gap:12px;min-width:0;flex-wrap:wrap}.analysis-toolbar>.toolbar input[type=date]{width:185px;flex:0 0 185px;max-width:none}.analysis-toolbar>.toolbar select{width:205px;flex:0 1 205px}.analysis-presets{flex-shrink:0}.app-shell .care-medical-alert{border-left-width:1px}.app-shell .sidebar .btn.demo-switch{font-size:12px;font-weight:450;min-height:34px;margin:0;color:#5b746b;background:transparent;border:0}.app-shell .sidebar .btn.demo-switch:hover{background:#e2ebe4}
@media(max-width:760px){.analysis-toolbar>.toolbar{flex-basis:100%;gap:9px}.analysis-toolbar>.toolbar input[type=date]{width:calc(50% - 16px);flex:1 1 130px;min-width:130px;max-width:calc(50% - 16px)}.analysis-toolbar>.toolbar select{flex-basis:100%;width:100%}.analysis-presets{margin-top:0}}
.app-shell .nav-label,.lp .lp-feature-tabs small,.lp .lp-work-links small,.lp .lp-role-preview>p,.lp .lp-footer-top>div,.lp .lp-footer-bottom,.lp .lp-trust-items p,.lp .lp-faq-items details>p{color:#5b6e63}.analysis-top{align-items:start}.capacity-comparison{max-height:350px;overflow:auto;scrollbar-color:#b5c8bd #f3f6f0;scrollbar-width:thin;padding-right:4px}
.app-shell .day-date-buttons .btn.small{min-height:36px;font-size:13px}
.app-shell .search-box .field-input{padding-left:39px}.app-shell .search-box>.icon{left:13px;color:#71857b;pointer-events:none}
@media(max-width:760px){.app-shell .day-date-buttons .btn.small{min-height:40px;font-size:12px;padding-inline:7px}.app-shell .day-date-control .field-input{min-height:40px}}

/* Clinic workflow */
.day-heading-actions { flex-wrap: wrap; justify-content: flex-end; }
.day-heading-actions .day-date-control { margin-right: 5px; }
.clinic-day-overview {
  padding: 15px 18px 13px;
  margin-bottom: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: none;
}
.day-overview-heading { margin-bottom: 10px; }
.day-overview-heading h2 { color: var(--ink); font-size: 16px; }
.day-date-buttons, .analysis-presets { background: var(--canvas-inset); border: 1px solid var(--line); }
.app-shell .day-date-buttons .btn.small { color: var(--primary-dark); height: 34px; min-height: 34px; }
.app-shell .day-date-control .field-input { width: 137px; min-height: 39px; }
.day-progress-layout { grid-template-columns: minmax(120px, 150px) minmax(0, 1fr); gap: 17px; }
.day-total { padding: 6px 12px; background: #edf4ee; border: 0; border-radius: var(--radius-control); align-content: center; }
.day-total strong { color: var(--primary-dark); font-weight: 700; font-size: 34px; }
.day-total small { margin-top: 1px; }
.day-flow-states { gap: 0; }
.day-flow .flow-state { padding: 4px 11px; border-radius: 0; }
.flow-state + .flow-state { border-inline-start: 1px solid var(--line); }
.flow-state > strong { font-size: 29px; font-weight: 650; margin-top: 1px; line-height: 1.25; }
.flow-state > span > i { flex-shrink: 0; }
.day-distribution { height: 6px; margin-block: 9px 5px; gap: 2px; background: var(--canvas-inset); }
.day-distribution > span[style="flex:0"] { display:none; }
.day-distribution .expected { background: #769cbd; }
.day-distribution .waiting { background: #ae813b; }
.day-distribution .care { background: #0d6557; }
.day-distribution .complete { background: #648870; }
.day-distribution .exception { background: #a56e65; }
.day-progress-caption { color: var(--muted); gap: 5px 12px; }
.day-work-layout { grid-template-columns: minmax(0, 1fr) 242px; gap: 20px; }
.day-register > header { padding: 13px 16px; }
.day-register > header > .row, .reception-controls .row { flex-wrap: wrap; }
.day-register .appointment-row-actions { max-width: 215px; min-width: 145px; }
.day-register table { min-width: 695px; }
.day-register .table-wrap { max-height: min(690px, 68vh); }
.app-shell :is(.day-register,.desk-register) th { position: sticky; top: 0; z-index: 2; }
.app-shell .day-register td { padding-block: 8px; }
.register-person .person-mark { width: 30px; height: 30px; flex-basis: 30px; border-radius: 50%; background: var(--selected); color: var(--primary-dark); }
.day-rail > section { margin: 0; padding: 13px 0 15px; border-color: var(--line); }
.day-rail .day-tasks { padding: 12px 13px 8px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: white; }
.day-rail h2 { font-size: 16px; }
.day-rail :is(.day-tasks,.day-quicklinks) button { min-height: 37px; padding-block: 5px; }
.day-cash .day-cash-amount { color: var(--teal); font-size: 30px; }
.day-rail .day-cash { background: transparent; padding-inline: 3px; }
.day-rail :is(p, .day-receivable, button) { color: var(--muted); }
.day-rail button:hover { color: var(--primary-dark); }
.desk-date-context { font-variant-numeric: tabular-nums; }
.reception-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin-bottom: 15px; }
.reception-controls .desk-daybar { margin: 0; }
.reception-controls .desk-filter { flex: 1 1 620px; align-items: flex-end; margin: 0; padding: 0; background: transparent; border: 0; }
.reception-controls .desk-filter label { flex: 0 1 141px; min-width: 110px; color: var(--muted); font-size: 13px; }
.reception-controls .desk-filter .desk-search { flex: 1 1 205px; }
.reception-controls .desk-daybar .btn, .reception-controls .desk-filter .btn { min-height: 40px; }
.reception-register .table-wrap { max-height: min(700px, 70vh); }
.reception-register table { min-width: 820px; }
.reception-register .patient-demographics { display: inline-block; margin-inline-start: 6px; }
.app-shell :is(.worklist-tabs,.care-tabs) { gap: 3px; padding-inline: 12px; border-color: var(--line); }
.app-shell :is(.worklist-tabs > button,.care-tabs button) { color: var(--muted); font-size: 14px; min-height: 45px; border-bottom-width: 2px; }
.app-shell :is(.worklist-tabs > button,.care-tabs button):hover { background: var(--canvas-inset); }
.app-shell :is(.worklist-tabs > button.selected,.care-tabs button.active,.care-tabs button[aria-selected="true"]) { color: var(--primary-dark); background: #eef5ef; border-bottom-color: var(--teal); font-weight: 650; }
.app-shell .worklist-tabs > button span { color: var(--primary-dark); background: var(--selected); }
.app-shell :is(.worklist-caption,.worklist-search,.list-pagination) { padding: 10px 14px; background: #f7f9f7; border-color: var(--line); color: var(--muted); font-size: 13px; }
.app-shell .worklist-search label { color: var(--muted); font-size: 13px; }
.app-shell .clinician-shift { grid-template-columns: 1.1fr 1fr; gap: 15px; }
.app-shell .clinician-shift > .card:first-child { border-top: 2px solid var(--teal); }
.app-shell .shift-agenda > div { padding-block: 7px; }
.app-shell :is(.care-patient-header,.encounter-sheet,.encounter-history,.encounter-progress,.care-completion) { border-color: var(--line); }
.app-shell :is(.care-completion,.encounter-history,.encounter-add-treatment > summary) { background: var(--canvas-inset); color: var(--ink); }
.app-shell .care-medical-alert { border-left-width: 1px; }
.app-shell .care-patient-header h1 { color: var(--ink); font-size: 26px; }
.app-shell .patient-register table { min-width: 905px; }
.app-shell .patient-register .table-wrap { max-height: clamp(280px, calc(100svh - 260px), 740px); }
.app-shell .patient-register td { padding-block: 9px; }
.app-shell .patient-register .action-cell > .row { width: max-content; flex-wrap: nowrap; }
.app-shell .patient-register .register-person .text-link { color: var(--ink); }
.app-shell .permission-details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.app-shell :is(.permission-details summary,.rights-list) { color: var(--muted); }

/* Resource timeline */
.app-shell .schedule-summary { border-color: var(--line); border-radius: var(--radius-panel); margin-bottom: 12px; overflow: hidden; }
.app-shell .schedule-summary > :is(button,div) { padding: 7px 13px; border-color: var(--line); color: var(--muted); }
.app-shell .schedule-summary > button:hover { background: var(--selected); }
.app-shell .schedule-summary span { font-size: 13px; }
.app-shell .schedule-summary strong { font-size: 24px; color: var(--ink); line-height: 1.22; margin-top: 3px; }
.app-shell :is(.schedule-controls,.schedule-viewbar,.schedule-date-nav) { margin-bottom: 10px; }
.app-shell .schedule-controls { background: transparent; border: 0; padding: 0; }
.app-shell .schedule-viewbar .row { flex-wrap: wrap; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 9px 14px; background: white; border-bottom: 1px solid var(--line); }
.app-shell .calendar-scroll { max-height: clamp(360px, calc(100svh - 405px), 760px); scrollbar-color: #98aa9e #eef3ef; }
.app-shell .calendar-corner, .app-shell .calendar-column-head { background: var(--table-head); border-color: #c7d4cb; padding: 8px 11px; }
.app-shell .calendar-column-head strong { color: var(--ink); font-size: 15px; }
.app-shell .calendar-column-head :is(small,span), .app-shell .calendar-time-rail > span, .app-shell .calendar-corner { font-size: 12px; color: var(--muted); }
.app-shell .calendar-time-rail { background: #f5f8f5; border-color: #c7d4cb; }
.app-shell .calendar-day-column, .app-shell .calendar-hour-line { border-color: #d6dfd8; }
.app-shell .calendar-half-hour-line { border-color: #ebefec; }
.app-shell .calendar-event {
  --event-fill: #edf4fa; --event-edge: #658aac;
  border: 1px solid var(--event-edge);
  border-radius: 6px;
  background: var(--event-fill);
  color: var(--ink);
  padding: 5px 8px 5px 10px;
  box-shadow: inset 2px 0 var(--event-edge);
  transition: border-color var(--duration);
}
.app-shell .calendar-event.status-checked_in { --event-fill: #faf3e5; --event-edge: #a88547; }
.app-shell .calendar-event.status-in_progress { --event-fill: #e6f3ed; --event-edge: #448174; }
.app-shell .calendar-event.status-completed { --event-fill: #eef4ee; --event-edge: #6d8b71; }
.app-shell .calendar-event:hover { border-color: var(--primary-dark); }
.calendar-event-time { font-size: 13px; font-weight: 600; }
.app-shell .calendar-event-time .badge { font-size: 11px; padding: 1px 5px; }
.calendar-event-treatment { font-size: 14px; }
.calendar-event-resource { color: var(--muted); }
.calendar-footnote { border-color: var(--line); background: #f7f9f7; color: var(--muted); font-size: 13px; }
.app-shell .sidebar .nav-label, .app-shell .sidebar .btn.demo-switch { color: #c0d4cc; opacity: 1; }
.app-shell .sidebar :is(a,button):focus-visible { outline: 2px solid #e4c593; outline-offset: 2px; }
.app-shell .calendar-time-rail > span { font-size: 13px; }
.app-shell .calendar-column-head small { display: inline; margin-inline-end: 7px; }
.app-shell .calendar-column-head > span { display: inline; }
.app-shell .calendar-scroll { scrollbar-gutter: stable; }

/* Accounting, reporting and comparison */
.app-shell :is(.analysis-metric > span,.analysis-metric > small,.analysis-top header > span,.capacity-facts,.capacity-axis,.treatment-unit small,.treatment-comparison-row > div:first-child span,.analysis-doctors header p,.analysis-doctors header > span,.analysis-coverage header > span,.analysis-definitions,.inactive-clinicians summary) { color: var(--muted); }
.analysis-metrics { gap: 0; padding: 12px 0; margin-bottom: 18px; background: white; border: 1px solid var(--line); border-radius: var(--radius-panel); }
.analysis-metric { padding: 7px 16px; }
.analysis-metric + .analysis-metric { border-inline-start: 1px solid var(--line); }
.analysis-metric > strong { font-size: 31px; margin: 3px 0; }
.analysis-metric.primary > strong { color: var(--teal); }
.analysis-top { gap: 18px; margin-bottom: 20px; }
.analysis-top > section { border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 16px 18px; }
.analysis-top header { margin-bottom: 13px; }
.treatment-comparison { gap: 12px; }
.treatment-comparison-row { min-height: 51px; }
.treatment-chart-track { height: 11px; background: var(--canvas-inset); }
.treatment-chart-track > i, .capacity-track > i { background: var(--teal); }
.capacity-track { height: 8px; margin: 8px 0 2px; background: var(--canvas-inset); position: relative; }
.capacity-track > i { position: relative; z-index: 1; }
.capacity-axis { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 11px; }
.capacity-axis span { position: relative; }
.capacity-axis span::before { position: absolute; content: ""; top: -5px; left: 50%; height: 4px; border-left: 1px solid #74887d; }
.capacity-facts { flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.analysis-doctors > header { padding: 15px 18px; }
.app-shell :is(.billing-overview,.period-overview) { border: 1px solid var(--line); border-radius: var(--radius-panel); }
.app-shell :is(.billing-shortcuts,.period-tasklist) { background: var(--canvas-inset); }
.app-shell :is(.business-chart,.invoice-print,.period-workspace) strong { font-variant-numeric: tabular-nums; }
.app-shell .business-track > i { background: var(--teal); }
.app-shell .business-track > i.cool { background: #477695; }
.app-shell .business-track > i.warm { background: #9d763a; }
.scenario-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}
.scenario-sheet { display: grid; grid-template-rows: subgrid; grid-row: span 5; min-width: 0; padding: 17px; }
.scenario-sheet + .scenario-sheet { border-inline-start: 1px solid var(--line); }
.scenario-sheet.recommended { background: #f2f7f2; box-shadow: inset 0 2px var(--teal); }
.scenario-sheet h2 { font-size: 18px; margin: 11px 0 6px; }
.scenario-code { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.scenario-sheet .total-row { padding: 9px 0; gap: 8px; border-top: 1px solid var(--line); }
.scenario-sheet .total-row strong { white-space: nowrap; font-size: 16px; color: var(--ink); }
.scenario-sheet .scenario-foot { margin: 8px 0 0; }
.scenario-sheet > .empty { grid-row: span 3; }
.scenario-sheet.recommended .badge { background: var(--status-green-bg); color: var(--status-green); }
.app-shell .day-register .appointment-row-actions,
.app-shell .reception-register .appointment-row-actions { max-width: none; width: max-content; flex-wrap: nowrap; }
html[lang=en] .app-shell .day-register .appointment-row-actions { width: 220px; flex-wrap: wrap; }
.app-shell .clinician-shift { align-items: start; }
.app-shell .clinician-shift > .card:first-child { background: #f0f6f0; }
.app-shell .clinician-shift .shift-next { min-height: 88px; }
.app-shell .clinician-shift .shift-next strong { font-size: 16px; }
.app-shell .shift-agenda { padding-block: 7px; gap: 1px; }
.app-shell .shift-agenda > div + div { border-top: 1px solid var(--line); }
.app-shell .business-track > :is(.received,.cost) { background: #477695; }
.app-shell .business-track > :is(.outstanding,.expense) { background: #9d763a; }
.app-shell .callout.info { background: var(--canvas-inset); border-color: var(--line); color: #344b41; }
.toast { font-size: 14px; max-width: min(400px, calc(100vw - 36px)); }

/* Public and sign-in surfaces retain the existing photography. */
.lp .lp-header, .auth-layout .auth-header { border-color: var(--line); }
.lp .lp-hero { background: #eef2eb; }
.lp .lp-hero h1 { color: var(--sidebar); font-size: clamp(37px, 3.35vw, 54px); letter-spacing: -.025em; }
.lp .lp-hero-copy > p { color: var(--muted); max-width: 44ch; }
.lp .lp-hero-images { border-radius: var(--radius-panel); }
.lp .lp-button.primary, .auth-main-centered .auth-submit { background: var(--teal); border-color: var(--teal); }
.lp .lp-button.primary:hover, .auth-main-centered .auth-submit:not(:disabled):hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.lp .lp-final, .lp .lp-journey { background: #eaf1eb; }
.auth-layout .auth-main-centered { border-color: var(--line); box-shadow: 0 10px 35px #14302619; }
.auth-main-centered .auth-card-heading h1, .auth-header .auth-brand > span { color: var(--ink); }
.auth-main-centered .auth-field label, .auth-main-centered .auth-directory-heading p { color: var(--muted); font-size: 13px; }
.auth-main-centered :is(.auth-field input,.auth-field select,.auth-copy) { border-color: var(--control-border); border-radius: var(--radius-control); }
.auth-main-centered .auth-demo-accounts { background: #f3f6f1; }
.auth-main-centered .auth-methods button { color: var(--muted); }
.auth-main-centered .auth-field input::placeholder { color: var(--muted); opacity: 1; }
.auth-main-centered .auth-methods button[aria-selected=true] { color: var(--primary-dark); border-color: var(--teal); }
.auth-main-centered :is(.auth-link,.auth-copy) { color: var(--teal); }

/* Six mutually exclusive service states, with a shared legend and ring palette. */
.day-status-layout { display:grid; grid-template-columns:minmax(0,1fr) 170px; align-items:center; gap:22px; }
.day-status-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; }
.day-status-grid .expected,.day-donut .expected { --state-ink:#497598; }
.day-status-grid .waiting,.day-donut .waiting { --state-ink:#98713c; }
.day-status-grid .care,.day-donut .care { --state-ink:#167365; }
.day-status-grid .complete,.day-donut .complete { --state-ink:#587f5c; }
.day-status-grid .cancelled,.day-donut .cancelled { --state-ink:#996257; }
.day-status-grid .no-show,.day-donut .no-show { --state-ink:#737086; }
.day-status-grid .other,.day-donut .other { --state-ink:#63716b; }
.day-status { display:grid; grid-template-columns:auto 1fr; align-items:baseline; text-align:left; gap:2px 12px; min-width:0; border:0; border-bottom:1px solid var(--line); padding:8px 14px; background:white; color:var(--ink); }
.day-status:nth-child(3n+2),.day-status:nth-child(3n+3) { border-inline-start:1px solid var(--line); }
.day-status:nth-last-child(-n+3) { border-bottom-color:transparent; }
.day-status:hover,.day-status[aria-pressed=true] { background:#eef5ef; }
.day-status-label { grid-column:1/-1; display:flex; align-items:center; gap:7px; font-size:14px; font-weight:600; }
.day-status-label i { width:8px; height:8px; border-radius:50%; background:var(--state-ink); flex:none; }
.day-status strong { font-size:24px; font-weight:680; line-height:1.2; }
.day-status small { font-size:13px; color:var(--muted); justify-self:end; }
.day-donut { position:relative; display:grid; place-items:center; width:142px; aspect-ratio:1; margin-inline:auto; }
.day-donut svg,.day-donut-center { grid-area:1/1; }
.day-donut svg { width:100%; height:100%; fill:none; stroke-width:12px; }
.donut-track { stroke:var(--canvas-inset); }
.donut-segment { stroke:var(--state-ink); }
.day-donut-center { display:grid; place-items:center; color:var(--muted); font-size:12px; }
.day-donut-center strong { color:var(--ink); font-size:31px; font-weight:700; line-height:1.15; }
.appointment-review { display:table; margin-block-start:4px; }
.patient-record-flow { display:grid; gap:15px; max-width:1040px; }
.patient-contact-grid { align-items:start; max-width:1040px; }
.patient-record-flow .table-wrap table { min-width:510px; }
.patient-record-flow .empty,.patient-contact-grid .empty { padding:13px 8px; }
.patient-record-flow .timeline-item { padding-bottom:10px; }
@media (max-width:760px) {
  .day-status-layout { grid-template-columns:1fr; gap:12px; }
  .day-status { padding-inline:9px; gap:2px 5px; }
  .day-status strong { font-size:21px; }
  .day-status small { font-size:12px; }
  .day-status-label { font-size:13px; gap:5px; }
  .day-donut { width:116px; }
  .day-donut-center strong { font-size:26px; }
}

@media (min-width: 1051px) and (max-width: 1280px) {
  .day-work-layout { grid-template-columns: minmax(0,1fr) 211px; gap: 15px; }
}
@media (max-width: 1050px) {
  .day-work-layout { grid-template-columns: 1fr; }
  .reception-controls .desk-filter { flex-basis: 100%; }
  .day-heading-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .app-shell { --inline-space: 15px; }
  .app-shell .sidebar { width: 248px; }
  .app-shell .topbar { height: 57px; }
  .app-shell .workspace-main { padding-top: 20px; }
  .app-shell .topbar-meta { gap: 5px; }
  .app-shell .sidebar-backdrop:not([hidden]) { backdrop-filter: none; background: #102f2a70; }
  .app-shell :is(.title-row,.desk-heading,.day-page-heading) { align-items: flex-start; flex-wrap: wrap; }
  .app-shell :is(.title-row,.desk-heading,.day-page-heading) h1 { font-size: 24px; }
  .app-shell .day-date-control { justify-content: flex-start; }
  .day-heading-actions .day-date-control { flex-basis: 100%; }
  .day-progress-layout { grid-template-columns: 1fr; gap: 9px; }
  .day-total > small { max-width: none; }
  .day-flow .flow-state { padding-inline: 5px; }
  .day-flow .flow-state > span { font-size: 12px; }
  .day-flow .flow-state > strong { font-size: 24px; }
  .day-rail { gap: 4px; }
  .day-register .table-wrap { max-height: 63vh; }
  .app-shell .clinician-shift { grid-template-columns: 1fr; }
  .reception-controls .desk-filter label { flex: 1 1 122px; }
  .app-shell .analysis-metrics { gap: 0; }
  .analysis-metric:nth-child(3) { border-inline-start: 0; }
  .analysis-metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .scenario-sheet + .scenario-sheet { border-top: 1px solid var(--line); }
  .modal .modal-head,.modal .modal-body,.modal .modal-footer { padding-inline: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell .btn, .app-shell .nav-item, .app-shell .sidebar, .app-shell .calendar-event, .lp .lp-hero-image { transition: none; }
}

.app-shell .wide-main > * { min-width: 0; }
.app-shell .chart { scrollbar-color: #98aa9e #eef3ef; }
.app-shell .chart:focus-visible { outline-offset: -2px; }

@media (max-width:900px) {
  .app-shell { display: block; }
  .app-shell .sidebar {
    width: 248px;
    max-width: calc(100vw - 36px);
    transform: translateX(-100%);
    z-index: 55;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .app-shell .sidebar.open { transform: none; }
  .app-shell .sidebar-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    border: 0;
    background: #102f2a70;
  }
  .app-shell .mobile-nav { display: inline-flex; flex: none; }
  body.drawer-open { overflow: hidden; }
}

@media (max-width:760px) {
  .app-shell .breadcrumb { gap: 5px; }
  .app-shell .topbar-meta { gap: 2px; flex: none; }
  .app-shell :is(.mobile-nav,.workspace-home,.workspace-search,.patient-search,[data-act=language]) {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
  .auth-main-centered .auth-methods button { min-height: 44px; }
  .lp .lp-nav-toggle { min-width: 44px; min-height: 44px; }
  .app-shell #filter-form {
    display: grid;
    grid-template-columns: minmax(0,1fr) max-content minmax(0,1fr);
    gap: 8px;
  }
  .app-shell #filter-form > :is(select,.search-box,.btn) {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
  .app-shell #filter-form > input[type=date] {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding-inline: 8px;
  }
  .app-shell #filter-form > .muted {
    align-self: center;
    min-width: 0;
  }
  .app-shell .metric { min-width: 0; padding-inline: 14px; }
  .app-shell .metric .value {
    font-size: clamp(20px, 5.2vw, 26px);
    overflow-wrap: anywhere;
  }
}

@media (max-width:760px) and (max-height:450px) {
  .modal-overlay { padding: 8px; }
  .modal { max-height: calc(100dvh - 16px); }
}

/* Keep the public sections on one line of alignment across display widths. */
.lp { --landing-edge: clamp(20px, 3.7vw, 68px); --landing-max: 1680px; }
.lp .lp-container { width:min(var(--landing-max), calc(100% - 2 * var(--landing-edge))); }
.lp .lp-hero-inner, .lp .lp-hero-bottom { width:100%; }
.lp .lp-hero-copy > p { max-width:31em; }
.lp .lp-hero-copy h1 span + span { color:#326356; font-weight:650; }
.lp .lp-desktop-nav a { position:relative; }
.lp .lp-desktop-nav a[aria-current="location"] { color:#175446; }
.lp .lp-desktop-nav a[aria-current="location"]::after {
  position:absolute; content:""; inset:auto 0 -6px; height:2px; background:#226354;
}
.lp .lp-trust { background:#f4f7f1; }
.lp .lp-trust-grid { gap:clamp(26px,5vw,82px); }
.lp .lp-trust .lp-clinic-photo { height:clamp(345px,31vw,470px); }
.lp .lp-trust-copy { min-width:0; }
.lp .lp-trust-items { border-top:1px solid #d8e3d9; }
.lp .lp-trust-items article { padding:20px 0; }
.lp .lp-trust-items article > span { color:#376f5c; }
.lp .lp-trust-items h3 { color:#193f35; }
.lp .lp-trust-items p { max-width:38em; line-height:1.65; }
.lp .lp-features { padding-block:clamp(46px, 5.2vw, 76px); }
.lp .lp-features .lp-section-intro { margin-bottom:20px; }
.lp .lp-feature-layout { display:block; }
.lp .lp-feature-tabs {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0;
  border-block:1px solid var(--line); margin-bottom:clamp(20px, 2.4vw, 38px);
}
.lp .lp-feature-tabs > button { border-radius:0; min-width:0; }
.lp .lp-feature-tabs > button + button { border-inline-start:1px solid var(--line); }
.lp .lp-feature-tabs > button[aria-selected=true] { box-shadow:inset 0 -2px 0 var(--primary); }
.lp #lp-feature-panel { display:grid; grid-template-columns:minmax(220px, .8fr) minmax(0, 1.6fr); gap:clamp(24px, 4vw, 70px); align-items:start; }
.lp .lp-feature-copy { padding-block:clamp(0px, 1.5vw, 22px); }
.lp .lp-feature-copy ul { display:grid; gap:12px; }
.lp .lp-product-preview { min-width:0; border:1px solid var(--line); box-shadow:none; }
@media (min-width:851px) {
  .lp .lp-hero {
    grid-template-columns:minmax(0, .99fr) minmax(0, 1.01fr);
    column-gap:clamp(36px, 5vw, 84px);
    padding:clamp(34px, 3.5vw, 58px) max(var(--landing-edge),calc((100% - var(--landing-max))/2)) 24px;
  }
  .lp .lp-hero-images { height:clamp(310px, 30vw, 510px); }
  .lp .lp-hero h1 { font-size:clamp(35px, 3.65vw, 60px); }
  .lp .lp-hero-copy { max-width:none; }
  .lp .lp-hero-actions + .lp-hero-points { margin-top:22px; }
}
@media (max-width:850px) {
  .lp .lp-hero { padding-inline:var(--landing-edge); }
  .lp #lp-feature-panel { grid-template-columns:1fr; gap:18px; }
  .lp .lp-trust .lp-clinic-photo { height:clamp(250px,54vw,395px); }
}
@media (max-width:600px) {
  .lp .lp-feature-tabs > button { justify-content:center; text-align:center; min-height:46px; }
  .lp .lp-feature-tabs .lp-feature-icon, .lp .lp-feature-tabs small,
  .lp .lp-feature-tabs > button > .icon { display:none; }
}

/* Registers use the available height while leaving small result sets compact. */
.app-shell .reception-register-bar {
  display:flex; align-items:center; justify-content:space-between; gap:4px 12px;
  flex-wrap:wrap; border-bottom:1px solid var(--line);
}
.app-shell .reception-register-bar :is(.worklist-tabs,.worklist-caption) { border:0; margin:0; }
.app-shell .reception-register-bar .worklist-caption { background:transparent; margin-inline-start:auto; }
.app-shell .reception-register .table-wrap { max-height:max(260px, calc(100dvh - 330px)); }
.app-shell .patient-register .table-wrap { max-height:max(280px, calc(100dvh - 290px)); }
.app-shell .patient-register table { min-width:900px; }
.app-shell .calendar-scroll { max-height:max(360px, calc(100dvh - 305px)); }
.auth-layout .auth-main.auth-main-centered { min-width:0; }
.patient-record-flow, .patient-contact-grid { max-width:none; }
.patient-record-flow { grid-template-columns:minmax(0, 1.65fr) minmax(0, 1fr); align-items:start; }
.patient-contact-grid { grid-template-columns:minmax(0, 1fr) minmax(0, 1.35fr); }
.security-settings {
  display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);
  gap:18px; align-items:start;
}
.clinic-settings-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
.clinic-profile { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2.45fr); gap:20px; align-items:start; }
.clinic-profile-identity > strong { font-size:18px; }
.clinic-profile-identity .badge { margin-block-start:8px; }
.clinic-profile-facts {
  display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1.15fr) minmax(0,.65fr);
  gap:14px 18px; margin:0; padding-inline-start:20px; border-inline-start:1px solid var(--line);
}
.clinic-profile-facts dt { font-size:13px; color:var(--muted); margin-block-end:6px; }
.clinic-profile-facts dd { margin:0; line-height:1.55; overflow-wrap:anywhere; }
.clinic-contact > span { display:block; color:var(--muted); }
.clinic-hours-list { display:grid; gap:12px; min-width:0; container-type:inline-size; }
.clinic-hours-list .setup-hours { margin:0; border-radius:var(--radius-panel); }
.clinic-hours-list .setup-hours summary { color:var(--ink); font-size:16px; }
.clinic-week { display:grid; margin:0; padding:0; list-style:none; }
.clinic-week > li {
  display:grid; grid-template-columns:clamp(44px,12%,90px) minmax(0,1fr) auto;
  gap:8px 12px; align-items:center; padding:12px 16px;
}
.clinic-week > li + li { border-block-start:1px solid var(--line); }
.clinic-week-day, .clinic-week-hours > span { color:var(--ink); }
.clinic-week-hours { line-height:1.5; }
.clinic-week-hours > small { display:block; color:var(--muted); font-size:13px; }
.clinic-week .btn { justify-self:start; white-space:nowrap; }
@container (min-width:61rem) {
  .clinic-week { grid-template-columns:repeat(7,minmax(0,1fr)); }
  .clinic-week > li { grid-template-columns:1fr; grid-template-rows:auto 1fr auto; align-items:start; gap:12px; padding:16px 14px; }
  .clinic-week > li + li { border-block-start:0; border-inline-start:1px solid var(--line); }
}
.security-settings .person-heading h2 { margin:0; font-size:20px; }
.security-scope { display:grid; gap:4px; margin:15px 0; padding-block:12px; border-block:1px solid var(--line); }
.security-channels { margin:0 0 14px; }
.security-channels > div { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--line); }
.security-channels dd { margin:0; }
@media (max-width:1180px) {
  .patient-record-flow { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  .clinic-profile { grid-template-columns:1fr; gap:16px; }
  .clinic-profile-facts { grid-template-columns:minmax(0,1fr) auto; padding:12px 0 0; border-inline-start:0; border-block-start:1px solid var(--line); }
  .clinic-profile-facts > div:first-child { grid-column:1/-1; }
  .patient-contact-grid, .security-settings { grid-template-columns:1fr; }
  .app-shell .reception-register .table-wrap, .app-shell .patient-register .table-wrap { max-height:55dvh; }
}
