:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --surface-2: #f7f9fc;
  --surface-dark: #111a31;
  --sidebar: #111c36;
  --sidebar-2: #17294d;
  --text: #172033;
  --muted: #657089;
  --muted-2: #929bb0;
  --line: #e0e6ef;
  --line-strong: #cbd5e2;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eaf1ff;
  --success: #17826c;
  --success-soft: #e5f6f1;
  --warning: #b86d12;
  --warning-soft: #fff2de;
  --danger: #c94557;
  --danger-soft: #ffeaed;
  --info: #2563eb;
  --info-soft: #eaf2ff;
  --purple: #8357c5;
  --aqua: #60a5fa;
  --aqua-dark: #2563eb;
  --aqua-soft: #eaf2ff;
  --shadow-sm: 0 1px 2px rgba(17, 28, 54, .05), 0 3px 12px rgba(17, 28, 54, .04);
  --shadow-md: 0 14px 35px rgba(17, 28, 54, .10);
  --shadow-lg: 0 24px 70px rgba(17, 28, 54, .18);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --font-display: "Avenir Next", Avenir, "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font: Inter, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
body.mobile-navigation-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; -webkit-tap-highlight-color: rgba(37, 99, 235, .16); }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000; padding: 10px 14px; border-radius: 10px;
  background: var(--surface-dark); color: #fff; font-weight: 700; transform: translateY(-160%); transition: transform .16s ease;
}
.skip-link:focus { transform: translateY(0); }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(37, 99, 235, .42); outline-offset: 3px;
}
section[id], main[id], h1, h2, h3 { scroll-margin-top: 92px; }
h1, h2, h3, .page-title, .topbar-title, .brand-name, .brand-word strong { font-family: var(--font-display); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.full-width { width: 100%; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 700; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Buttons */
.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  transition: transform .17s ease, box-shadow .17s ease, background-color .17s ease, border-color .17s ease, color .17s ease;
  box-shadow: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--surface); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.notice { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.5; background: var(--surface-2); }
.notice-info { border-color: rgba(71,102,255,.28); background: rgba(71,102,255,.07); }
.notice-warning { border-color: rgba(230,151,37,.35); background: rgba(230,151,37,.09); }
.btn-warning { background: var(--warning); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-soft); color: var(--text); box-shadow: none; }
.btn-sm { min-height: 31px; padding: 5px 10px; border-radius: 8px; font-size: 12px; }
.btn-lg { min-height: 48px; padding: 12px 20px; border-radius: 12px; font-size: 15px; }
.icon-btn {
  width: 38px; height: 38px; padding: 0; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }

/* Inputs */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.span-2 { grid-column: span 2; }
.form-field.span-3 { grid-column: span 3; }
.form-label { color: var(--text); font-weight: 650; font-size: 12px; }
.form-help { color: var(--muted); font-size: 11px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text);
  padding: 9px 11px; outline: 2px solid transparent; transition: border-color .15s ease, box-shadow .15s ease, outline-color .15s ease;
}
.input, .select { height: 41px; }
.textarea { min-height: 92px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.input::placeholder, .textarea::placeholder { color: #a7adbc; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 12px; }
.checkbox-row input { margin-top: 3px; accent-color: var(--primary); }
.input-group { display: flex; align-items: center; }
.input-group .input { border-radius: 10px 0 0 10px; }
.input-group .btn { border-radius: 0 10px 10px 0; height: 41px; }
.search-box { position: relative; }
.search-box .input { padding-left: 36px; }
.search-box .search-icon { position: absolute; left: 12px; top: 11px; color: var(--muted); }

/* Generic layout */
.page-container { max-width: 1480px; margin: 0 auto; padding: 26px 30px 50px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.page-title { font-size: 26px; line-height: 1.2; margin: 0 0 5px; letter-spacing: -.035em; }
.page-subtitle { color: var(--muted); margin: 0; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.layout-main-aside { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(310px, .72fr); gap: 18px; align-items: start; }
.layout-aside-main { display: grid; grid-template-columns: minmax(280px, .62fr) minmax(0, 1.55fr); gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

.card {
  min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px 13px; }
.card-title { font-size: 15px; font-weight: 750; margin: 0; letter-spacing: -.015em; }
.card-subtitle { color: var(--muted); font-size: 12px; margin-top: 2px; }
.card-body { padding: 0 18px 18px; }
.card-foot { padding: 13px 18px; border-top: 1px solid var(--line); background: var(--surface-soft); border-radius: 0 0 var(--radius) var(--radius); }
.empty-state { padding: 42px 20px; text-align: center; color: var(--muted); }
.empty-icon { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-soft); font-size: 24px; }

.kpi-card { padding: 17px 18px; position: relative; overflow: hidden; }
.kpi-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -45px; top: -45px; border-radius: 50%; background: var(--primary-soft); }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 650; margin-bottom: 9px; }
.kpi-value { font-size: 25px; line-height: 1; font-weight: 790; letter-spacing: -.045em; }
.kpi-value, .mono, .data-table td, .proof-item strong { font-variant-numeric: tabular-nums; }
.kpi-note { margin-top: 9px; color: var(--muted); font-size: 11px; }
.kpi-trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--success); }
.kpi-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 13px; }

.badge, .pill {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%; border-radius: 999px; padding: 4px 8px;
  font-size: 11px; font-weight: 700; line-height: 1.1; white-space: nowrap;
}
.badge-neutral { background: #eef1f5; color: #586174; }
.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-purple { background: #f2ebfc; color: var(--purple); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }

/* Tables */
.table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 10px 12px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em;
  border-bottom: 1px solid var(--line); background: var(--surface-soft); white-space: nowrap;
}
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: .12s ease; }
.data-table tbody tr:hover { background: #fafbff; }
.data-table .clickable { cursor: pointer; }
.avatar { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 750; color: var(--primary-dark); background: var(--primary-soft); flex: 0 0 auto; }
.avatar.sm { width: 28px; height: 28px; border-radius: 9px; font-size: 11px; }
.avatar.lg { width: 54px; height: 54px; border-radius: 16px; font-size: 18px; }
.identity { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.identity-name { font-weight: 700; line-height: 1.25; }
.identity-meta { color: var(--muted); font-size: 11px; margin-top: 2px; }
.action-menu { display: flex; gap: 4px; justify-content: flex-end; }

/* Progress and charts */
.progress { height: 7px; background: #edf0f6; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.progress.success > span { background: var(--success); }
.progress.warning > span { background: var(--warning); }
.progress.danger > span { background: var(--danger); }
.bar-chart { display: flex; flex-direction: column; gap: 11px; }
.bar-row { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(130px, 1.5fr) 55px; gap: 10px; align-items: center; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.bar-track { height: 9px; background: #eef1f7; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--primary); border-radius: inherit; min-width: 3px; }
.bar-value { text-align: right; font-size: 11px; color: var(--muted); }
.spark-bars { height: 145px; display: flex; align-items: flex-end; gap: 9px; padding: 8px 3px 0; }
.spark-column { flex: 1; min-width: 18px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; }
.spark-bar { width: 100%; max-width: 36px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--primary), #8795ff); min-height: 2px; position: relative; }
.spark-bar:hover::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); background: var(--surface-dark); color: white; padding: 5px 7px; border-radius: 6px; font-size: 10px; white-space: nowrap; z-index: 5; }
.spark-label { font-size: 9px; color: var(--muted); white-space: nowrap; }
.donut { width: 150px; height: 150px; border-radius: 50%; position: relative; display: grid; place-items: center; background: conic-gradient(var(--primary) 0 64%, var(--success) 64% 82%, var(--warning) 82% 92%, var(--danger) 92% 100%); }
.donut::after { content: ""; width: 96px; height: 96px; border-radius: 50%; background: var(--surface); position: absolute; }
.donut-center { position: relative; z-index: 1; text-align: center; }
.donut-number { font-size: 25px; font-weight: 800; letter-spacing: -.04em; }
.donut-label { font-size: 10px; color: var(--muted); }

/* Admin shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.sidebar {
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%); color: #dce6fa; position: fixed; inset: 0 auto 0 0; width: 246px; z-index: 30;
  display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.07); box-shadow: 12px 0 32px rgba(17,28,54,.08);
}
.sidebar-scrim { display: none; }
.brand { height: 76px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 37px; height: 37px; object-fit: contain; flex: 0 0 auto; }
.brand-name { color: #fff; font-weight: 790; font-size: 17px; letter-spacing: -.035em; }
.brand-caption { margin-top: 1px; font-size: 8.5px; text-transform: uppercase; letter-spacing: .12em; color: #8292b2; }
.sidebar-scroll { padding: 14px 12px 20px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: rgba(148,163,184,.28) transparent; }
.sidebar-scroll::-webkit-scrollbar { width: 5px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(148,163,184,.28); border-radius: 99px; }
.nav-group { margin-bottom: 16px; }
.nav-group:last-child { margin-bottom: 0; }
.nav-label { color: #7082a5; font-size: 8.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 9px 11px 7px; }
.nav-item {
  border: 1px solid transparent; color: #aebbd4; background: transparent; width: 100%; min-height: 43px; border-radius: 11px; display: flex;
  align-items: center; gap: 10px; padding: 6px 9px; text-align: left; transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; font-weight: 610; font-size: 12.5px; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.035); color: #fff; transform: translateX(1px); }
.nav-item.active { background: rgba(37,99,235,.24); border-color: rgba(147,197,253,.13); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 5px 14px rgba(4,14,40,.12); }
.nav-item.active::before { content: ""; position: absolute; left: -13px; top: 50%; width: 3px; height: 23px; border-radius: 0 6px 6px 0; background: #60a5fa; transform: translateY(-50%); box-shadow: 0 0 12px rgba(96,165,250,.48); }
.nav-icon { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.055); border-radius: 8px; background: rgba(255,255,255,.035); color: #91a4c8; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.nav-icon svg { width: 17px; height: 17px; overflow: visible; }
.nav-item:hover .nav-icon { color: #dce8ff; background: rgba(255,255,255,.065); border-color: rgba(255,255,255,.08); }
.nav-item.active .nav-icon { color: #fff; background: #2563eb; border-color: #3b82f6; box-shadow: 0 4px 11px rgba(3,14,43,.18); }
.nav-count { margin-left: auto; min-width: 21px; height: 20px; display: grid; place-items: center; padding: 0 6px; border-radius: 20px; background: rgba(255,255,255,.08); color: #c7d3ea; font-size: 9px; font-weight: 750; }
.nav-item.active .nav-count { background: rgba(255,255,255,.14); color: #fff; }
.nav-tools { padding-top: 2px; border-top: 1px solid rgba(255,255,255,.07); }
.nav-disclosure .nav-chevron { width: 18px; height: 18px; margin-left: auto; display: grid; place-items: center; color: #7183a6; transition: transform .16s ease, color .16s ease; }
.nav-disclosure .nav-chevron svg { width: 14px; height: 14px; }
.nav-disclosure.expanded .nav-chevron { color: #dce8ff; transform: rotate(90deg); }
.nav-disclosure.section-active { color: #fff; background: rgba(37,99,235,.12); }
.nav-more-panel { margin: 5px 0 8px; padding: 6px 0 7px 11px; border-left: 1px solid rgba(147,197,253,.18); }
.nav-subgroup-label { padding: 8px 9px 5px; color: #62769c; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-item-secondary { min-height: 37px; padding: 4px 7px; border-radius: 9px; font-size: 11.5px; }
.nav-item-secondary .nav-icon { width: 25px; height: 25px; flex-basis: 25px; border-radius: 7px; }
.nav-item-secondary .nav-icon svg { width: 15px; height: 15px; }
.nav-help { margin-top: 5px; color: #94a8cb; }
.sidebar-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: flex; gap: 10px; align-items: center; padding: 9px; border: 1px solid rgba(255,255,255,.055); border-radius: 12px; background: rgba(255,255,255,.045); }
.sidebar-user .avatar { background: linear-gradient(135deg,#2563eb,#3b82f6); color: #fff; }
.sidebar-user-name { font-size: 11px; font-weight: 720; color: #fff; }
.sidebar-user-role { margin-top: 1px; font-size: 8.5px; color: #8394b4; text-transform: uppercase; letter-spacing: .08em; }
.sidebar-logout { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 9px; color: #8ea0c1; background: transparent; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.sidebar-logout svg { width: 17px; height: 17px; }
.sidebar-logout:hover { color: #fff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.07); }
.app-main { grid-column: 2; min-width: 0; }
.topbar {
  height: 70px; position: sticky; top: 0; z-index: 20; background: rgba(243,246,250,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(219,224,236,.8); display: flex; align-items: center; justify-content: space-between; padding: 0 30px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-title { font-size: 17px; font-weight: 760; letter-spacing: -.025em; }
.topbar-breadcrumb { color: var(--muted); font-size: 11px; }
.topbar-patient-search { position: relative; width: min(330px,30vw); margin-left: auto; }
.topbar-patient-search > svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; color: #7d899f; transform: translateY(-50%); pointer-events: none; }
.topbar-patient-search > input { width: 100%; height: 38px; padding: 0 12px 0 35px; border: 1px solid #d7dfeb; border-radius: 11px; outline: 0; background: rgba(255,255,255,.82); color: var(--text); font-size: 12px; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.topbar-patient-search > input::placeholder { color: #8b96aa; }
.topbar-patient-search > input:focus-visible { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.patient-search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50; overflow: hidden; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); }
.patient-search-results button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 8px; border: 0; border-radius: 9px; background: transparent; color: var(--text); text-align: left; }
.patient-search-results button:hover, .patient-search-results button:focus-visible { background: var(--primary-soft); }
.patient-search-results button > span:last-child { min-width: 0; }
.patient-search-results strong, .patient-search-results small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.patient-search-results strong { font-size: 11px; }
.patient-search-results small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.patient-search-empty { padding: 12px; color: var(--muted); font-size: 11px; text-align: center; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.workspace-identity { display: flex; align-items: center; gap: 8px; max-width: 260px; padding: 6px 10px 6px 7px; border: 1px solid #d5e1f5; border-radius: 12px; background: rgba(255,255,255,.78); }
.workspace-identity > span:last-child { display: grid; min-width: 0; }
.workspace-identity strong { color: var(--ink); font-size: 10px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-identity small { color: var(--primary); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.workspace-lock { width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; background: var(--primary-soft); color: var(--primary); font-size: 14px; }
.demo-badge { padding: 5px 8px; display: inline-flex; align-items: center; gap: 6px; background: var(--aqua-soft); color: var(--primary-dark); border: 1px solid #cfe0ff; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .055em; }
.demo-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 3px rgba(96,165,250,.15); }
.mobile-menu { display: none; }

.help-task-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.help-task { min-height: 92px; display: grid; grid-template-columns: 35px 1fr; gap: 11px; align-items: start; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--text); text-align: left; transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.help-task:hover { border-color: #b8cdf4; background: #f7faff; transform: translateY(-1px); }
.help-task-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 850; }
.help-task strong, .help-task small { display: block; }
.help-task strong { font-size: 12px; }
.help-task small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }

/* Guided daily workflow */
.section-switcher { display: flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; overflow-x: auto; margin: -6px 0 18px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.74); box-shadow: var(--shadow-sm); scrollbar-width: none; }
.section-switcher::-webkit-scrollbar { display: none; }
.section-switcher-btn { min-height: 34px; padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.section-switcher-btn:hover { color: var(--text); background: var(--surface-soft); }
.section-switcher-btn.active { color: #fff; background: var(--primary); box-shadow: 0 4px 12px rgba(37,99,235,.18); }
.today-command { display: grid; grid-template-columns: minmax(220px,.7fr) minmax(440px,1.45fr); gap: 18px 24px; padding: 20px; margin-bottom: 18px; background: linear-gradient(135deg,#fff 0%,#f8fbff 100%); }
.today-command-intro h2 { margin: 7px 0 5px; font-size: 20px; letter-spacing: -.035em; }
.today-command-intro p { max-width: 390px; margin: 0; color: var(--muted); font-size: 12px; }
.today-command-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.quick-action { display: grid; grid-template-columns: 37px minmax(0,1fr); gap: 11px; align-items: center; min-height: 69px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); text-align: left; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.quick-action:hover { border-color: #b8cdf4; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.quick-action > svg { width: 37px; height: 37px; padding: 9px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.quick-action strong, .quick-action small { display: block; }
.quick-action strong { font-size: 12px; }
.quick-action small { margin-top: 2px; color: var(--muted); font-size: 9.5px; }
.today-summary { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding-top: 15px; border-top: 1px solid var(--line); }
.today-summary > div { display: flex; align-items: baseline; gap: 7px; min-width: 0; padding: 0 16px; border-right: 1px solid var(--line); }
.today-summary > div:first-child { padding-left: 0; }
.today-summary > div:last-child { border-right: 0; }
.today-summary strong { font-size: 18px; letter-spacing: -.035em; }
.today-summary span { color: var(--muted); font-size: 10px; }
.dashboard-today-layout { align-items: stretch; }
.dashboard-today-agenda { display: flex; flex-direction: column; height: 100%; }
.dashboard-today-agenda > .table-wrap { flex: 1; }
.management-summary { overflow: hidden; }
.management-summary > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 14px 18px; cursor: pointer; list-style: none; }
.management-summary > summary::-webkit-details-marker { display: none; }
.management-summary > summary span { display: grid; }
.management-summary > summary strong { font-size: 13px; }
.management-summary > summary small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.management-summary > summary > svg { width: 17px; height: 17px; color: var(--muted); transition: transform .16s ease; }
.management-summary[open] > summary > svg { transform: rotate(90deg); }
.management-summary-body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px 18px; border-top: 1px solid var(--line); }
.management-summary-body > div:first-child { display: grid; gap: 3px; }
.management-summary-body > div:first-child strong { font-size: 20px; }
.patient-action-list { display: grid; gap: 8px; }
.patient-action-list button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--text); text-align: left; }
.patient-action-list button:hover { border-color: #b8cdf4; background: #f8fbff; }
.patient-action-list button > span:first-child { display: grid; min-width: 0; }
.patient-action-list strong { font-size: 12px; }
.patient-action-list small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.patient-action-list button > span:last-child { color: var(--primary); font-size: 16px; }

/* Login */
.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr); background: var(--surface); }
.login-showcase { background: var(--sidebar); color: white; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-showcase.staff-login-showcase { background: linear-gradient(125deg,rgba(16,23,42,.96),rgba(16,23,42,.78)),url('/static/brand/images/clinic-team.webp') center / cover; }
.login-showcase.patient-login-showcase { background: linear-gradient(125deg,rgba(16,23,42,.96),rgba(16,23,42,.8)),url('/static/brand/images/patient-guidance.webp') center / cover; }
.login-showcase > * { position: relative; z-index: 1; }
.login-showcase::before, .login-showcase::after { content: ""; position: absolute; border-radius: 50%; filter: blur(1px); }
.login-showcase::before { width: 480px; height: 480px; right: -220px; top: -170px; background: url('/static/brand/mark-master-inverse.svg') center / 68% no-repeat; opacity: .08; }
.login-showcase::after { width: 420px; height: 420px; left: -210px; bottom: -220px; background: var(--aqua); opacity: .10; }
.login-copy { max-width: 620px; position: relative; z-index: 1; }
.login-copy h1 { font-size: clamp(36px, 5vw, 68px); line-height: .98; letter-spacing: -.065em; margin: 28px 0 22px; }
.login-copy p { color: #aeb8d0; font-size: 16px; max-width: 520px; }
.login-features { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; margin-top: 35px; }
.login-feature { border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.045); border-radius: 13px; padding: 13px; color: #dce2f0; font-size: 12px; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 35px; }
.login-card { width: min(430px, 100%); }
.login-card h2 { font-size: 29px; letter-spacing: -.045em; margin: 0 0 8px; }
.login-card > p { color: var(--muted); margin: 0 0 25px; }
.session-remember { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; color: var(--text); cursor: pointer; }
.session-remember input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--primary); }
.session-remember span { display: grid; gap: 2px; }
.session-remember strong { font-size: 12px; font-weight: 730; }
.session-remember small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.session-remember:focus-within { outline: 3px solid rgba(37,99,235,.16); outline-offset: 4px; border-radius: 6px; }
.demo-users { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 18px; }
.demo-user { padding: 9px 10px; border: 1px solid var(--line); background: var(--surface-soft); border-radius: 10px; text-align: left; }
.demo-user:hover { border-color: var(--primary); background: var(--primary-soft); }
.demo-user strong { display: block; font-size: 11px; }
.demo-user span { color: var(--muted); font-size: 9px; }
.login-error { min-height: 18px; color: var(--danger); font-size: 12px; margin-top: 8px; }

/* Patient directory filters */
.patient-list-toolbar { align-items: end; gap: 14px; }
.patient-filter-controls { min-width: 0; flex: 1; display: flex; align-items: end; gap: 10px; }
.patient-filter-controls .search-box { width: min(460px, 100%); }
.patient-insurance-filter { width: min(270px, 100%); display: grid; gap: 5px; }
.patient-insurance-filter > span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.patient-insurance-filter .select { background-color: #f8faff; border-color: #ced9ec; }
.patient-insurance-filter .select:hover { border-color: #9db7e6; }
#patientResultCount { flex: 0 0 auto; margin-bottom: 9px; }

.workspace-assurance {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px;
  margin: -7px 0 18px; padding: 13px 15px; border: 1px solid #c9d7f1; border-radius: 15px;
  color: #edf4ff; background: linear-gradient(105deg, var(--sidebar), var(--primary-dark)); box-shadow: 0 12px 28px rgba(17,28,54,.13);
}
.workspace-assurance-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.09); }
.workspace-assurance strong { display: block; color: #fff; font-size: 13px; }
.workspace-assurance p { margin: 3px 0 0; color: #c8d6ee; font-size: 10px; }
.workspace-private-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.workspace-private-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 3px rgba(96,165,250,.18); }

/* Agenda */
.agenda-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.date-switcher { display: flex; align-items: center; gap: 6px; }
.date-chip { min-width: 165px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 700; }
.provider-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.provider-filter { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11px; }
.provider-filter.active { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.next-gap-button { min-width: 230px; min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 8px 13px; border: 1px solid #b8cef7; border-radius: 12px; background: #f3f7ff; color: #214e99; text-align: left; cursor: pointer; }
.next-gap-button:hover { border-color: var(--primary); background: #eaf2ff; }
.next-gap-button:disabled { cursor: default; opacity: .62; }
.next-gap-button small, .next-gap-button strong { display: block; }
.next-gap-button small { color: #66799a; font-size: 9px; font-weight: 650; }
.next-gap-button strong { margin-top: 2px; font-size: 13px; }
.next-gap-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--primary); color: #fff; font-size: 18px; }
.agenda-use-hint { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; padding: 11px 14px; border: 1px solid #d6e3fa; border-radius: 12px; background: #f7faff; color: #294f8b; }
.agenda-use-hint > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #e4edff; color: var(--primary); font-size: 18px; font-weight: 800; }
.agenda-use-hint strong, .agenda-use-hint small { display: block; }
.agenda-use-hint strong { font-size: 12px; }.agenda-use-hint small { margin-top: 2px; color: #6c7d98; font-size: 10px; }
.schedule { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.schedule-head { display: grid; grid-template-columns: 74px repeat(var(--providers, 3), minmax(210px, 1fr)); border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.schedule-head-cell { padding: 12px; border-left: 1px solid var(--line); font-weight: 700; font-size: 12px; }
.schedule-head-cell:first-child { border-left: 0; }
.schedule-grid { position: relative; min-width: 720px; }
.schedule-row { display: grid; grid-template-columns: 74px repeat(var(--providers, 3), minmax(210px, 1fr)); min-height: 70px; border-bottom: 1px solid #edf0f6; }
.schedule-row:last-child { border-bottom: 0; }
.schedule-time { padding: 12px 10px; color: #516078; font-size: 12px; font-weight: 750; text-align: right; border-right: 1px solid var(--line); }
.schedule-cell { padding: 4px; border-right: 1px solid #edf0f6; min-height: 70px; position: relative; }
.schedule-cell:hover { background: #fafbff; }
.schedule.single-provider .schedule-grid { min-width: 0; }
.schedule-create-slot { width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px dashed transparent; border-radius: 10px; background: transparent; color: #8793a7; font-size: 11px; font-weight: 720; cursor: pointer; opacity: .72; }
.schedule-create-slot span { color: var(--primary); font-size: 17px; }
.schedule-create-slot:hover, .schedule-create-slot:focus-visible { border-color: #a9c2f0; background: #edf4ff; color: #27559d; opacity: 1; outline: none; }
.appointment-block { border-radius: 10px; padding: 8px 10px; min-height: 60px; background: var(--primary-soft); border: 1px solid #c7dafb; border-left: 4px solid var(--primary); cursor: pointer; overflow: hidden; transition: .12s ease; }
.appointment-block:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.appointment-block.status-completed { background: var(--success-soft); border-left-color: var(--success); }
.appointment-block.status-pending_deposit, .appointment-block.status-requested { background: var(--warning-soft); border-left-color: var(--warning); }
.appointment-block.status-cancelled_patient, .appointment-block.status-cancelled_clinic, .appointment-block.status-no_show { background: var(--danger-soft); border-left-color: var(--danger); opacity: .76; }
.appt-time { color: #416596; font-size: 9px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.appt-name { margin-top: 2px; color: #182947; font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-meta { margin-top: 1px; color: #5f6e86; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.risk-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.risk-low { background: var(--success); }
.risk-medium { background: var(--warning); }
.risk-high { background: var(--danger); }

.timeline-list { display: flex; flex-direction: column; }
.timeline-item { display: grid; grid-template-columns: 22px 1fr; gap: 9px; padding-bottom: 15px; }
.timeline-mark { position: relative; display: flex; justify-content: center; }
.timeline-mark::before { content: ""; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--primary); z-index: 1; }
.timeline-mark::after { content: ""; position: absolute; width: 1px; top: 14px; bottom: -5px; background: var(--line); }
.timeline-item:last-child .timeline-mark::after { display: none; }
.timeline-title { font-weight: 700; font-size: 12px; }
.timeline-meta { color: var(--muted); font-size: 10px; margin-top: 2px; }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(245px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kanban-column { background: #edf0f6; border-radius: 14px; padding: 10px; min-height: 420px; }
.kanban-head { display: flex; justify-content: space-between; align-items: center; padding: 3px 3px 10px; }
.kanban-title { font-weight: 750; font-size: 12px; }
.kanban-count { width: 23px; height: 20px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.85); font-size: 10px; color: var(--muted); }
.kanban-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(20,30,55,.04); cursor: pointer; }
.kanban-card:hover { border-color: #bec7dc; box-shadow: var(--shadow-sm); }
.kanban-card-title { font-weight: 740; font-size: 12px; line-height: 1.3; }
.kanban-card-patient { color: var(--muted); font-size: 10px; margin-top: 3px; }
.kanban-card-value { margin: 11px 0 6px; font-weight: 800; }
.kanban-card-foot { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }

/* Patient detail and odontogram */
.patient-banner { background: linear-gradient(135deg, #18203a 0%, #2a355f 100%); color: white; border-radius: var(--radius); padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; box-shadow: var(--shadow-md); }
.patient-banner .avatar { background: rgba(255,255,255,.13); color: white; }
.patient-banner .identity-meta { color: #b9c3db; }
.patient-alerts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.tabbar { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 17px; }
.tab-btn { border: 0; background: transparent; color: var(--muted); padding: 10px 12px; font-weight: 650; font-size: 12px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab-btn.active { color: var(--primary); border-color: var(--primary); }
.odontogram-shell { overflow-x: auto; padding: 20px 8px 14px; }
.odontogram-chart { min-width: 760px; max-width: 1120px; margin: 0 auto; padding: 18px 16px 16px; border: 1px solid #dfe4ec; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 5px #f8fafc; }
.odontogram-arch { display: grid; grid-template-columns: repeat(16, minmax(38px, 1fr)); gap: 3px; min-width: 720px; margin: 8px auto 14px; }
.odontogram-arch.primary-arch { grid-template-columns: repeat(10, 45px); justify-content: center; min-width: 480px; margin: 7px auto; }
.tooth-card { min-width: 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.clinical-tooth-map { width: 42px; height: 42px; position: relative; display: grid; place-items: center; }
.tooth-crown { display: block; width: 42px; height: 42px; overflow: visible; filter: drop-shadow(0 1px 1px rgba(29,41,62,.08)); }
.tooth-crown.type-incisor { transform: scaleX(.78); }
.tooth-crown.type-canine { transform: scaleX(.86) scaleY(.94); }
.tooth-crown.type-canine .odontogram-surface { transform-origin: center; }
.tooth-crown.type-premolar { transform: scale(.9); }
.tooth-crown.type-molar { transform: scale(1.02); }
.odontogram-surface { fill: #fff; stroke: #68758a; stroke-width: 1.25; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .12s ease, filter .12s ease, stroke-width .12s ease; }
.odontogram-surface:hover { filter: brightness(.92); stroke: #21314d; stroke-width: 2; }
.odontogram-surface:focus { outline: none; stroke: var(--primary); stroke-width: 2.6; }
.odontogram-surface.status-caries { fill: #3f7fd7; stroke: #2f5f9f; }
.odontogram-surface.status-restoration, .odontogram-surface.status-crown, .odontogram-surface.status-implant, .odontogram-surface.status-endodontic, .odontogram-surface.status-orthodontic, .odontogram-surface.status-fixed_prosthesis, .odontogram-surface.status-removable_prosthesis { fill: #d95463; stroke: #a82f42; }
.odontogram-surface.status-missing, .odontogram-surface.status-missing_temporary, .odontogram-surface.status-missing_permanent, .odontogram-surface.status-extraction_indicated, .odontogram-surface.status-erupting { fill: #fff; stroke: #68758a; }
.odontogram-surface.status-watch { fill: #efc353; stroke: #b88a1b; }
.tooth-fdi-number { min-width: 28px; height: 19px; border: 0; border-radius: 5px; background: transparent; color: #202b40; font: 800 10px/1 var(--font-mono, monospace); cursor: pointer; }
.tooth-fdi-number:hover { background: #edf3f8; color: var(--primary); }
.tooth-fdi-number:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.tooth-fdi-number.status-caries { color: #2764b6; background: #edf4ff; }
.tooth-fdi-number.status-restoration, .tooth-fdi-number.status-crown, .tooth-fdi-number.status-implant, .tooth-fdi-number.status-endodontic, .tooth-fdi-number.status-orthodontic, .tooth-fdi-number.status-fixed_prosthesis, .tooth-fdi-number.status-removable_prosthesis { color: #bd3347; background: #fff0f2; }
.tooth-fdi-number.status-missing, .tooth-fdi-number.status-missing_permanent { color: #b62d42; background: #fff0f2; }
.tooth-fdi-number.status-missing_temporary, .tooth-fdi-number.status-extraction_indicated, .tooth-fdi-number.status-erupting { color: #245fae; background: #edf4ff; }
.tooth-fdi-number.status-watch { color: #8f6811; background: #fff8df; }
.tooth-procedure-symbol { position: absolute; z-index: 4; top: -4px; right: -5px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 3px; border-radius: 9px; color: #fff; background: #d95463; border: 2px solid #fff; font: 800 7px/1 var(--font-mono, monospace); pointer-events: none; box-shadow: 0 1px 3px rgba(20,31,53,.18); }
.tooth-procedure-symbol.status-healthy { background: #27835c; }
.tooth-procedure-symbol.status-caries { background: #3f7fd7; }
.tooth-procedure-symbol.status-missing { background: #28354b; }
.tooth-procedure-symbol.status-watch { background: #c49423; }
.tooth-clinical-mark { position: absolute; z-index: 5; inset: -2px; width: 46px; height: 46px; overflow: visible; pointer-events: none; fill: none; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 1px 1px rgba(20,31,53,.22)); }
.tooth-clinical-mark path { stroke: currentColor; stroke-width: 4.4; vector-effect: non-scaling-stroke; }
.tooth-clinical-mark.mark-required { color: #1769c2; }
.tooth-clinical-mark.mark-existing { color: #cf304a; }
.tooth-clinical-mark.mark-erupting path { stroke-width: 4; }
.odontogram-legend { display: flex; flex-wrap: wrap; gap: 9px 14px; color: var(--muted); font-size: 9px; }
.odontogram-legend span { display: inline-flex; align-items: center; gap: 5px; }
.odontogram-legend i { width: 10px; height: 10px; border: 1px solid rgba(0,0,0,.12); border-radius: 3px; background: #fff; }
.odontogram-legend .legend-existing { background: #d94c5c; }.odontogram-legend .legend-required { background: #3979d8; }.odontogram-legend .legend-watch { background: #e9b949; }
.arch-label { color: #748198; font-size: 8px; font-weight: 760; text-align: center; letter-spacing: .07em; text-transform: uppercase; }
.odontogram-midline { min-width: 720px; display: grid; grid-template-columns: 1fr 1px 1fr; gap: 13px; align-items: center; color: #8792a6; font-size: 8px; text-align: center; margin: 6px 0; }
.odontogram-midline i { height: 16px; background: #c8cfdb; }
.primary-dentition { width: 540px; min-width: 540px; margin: 24px auto 4px; padding: 12px 20px 10px; border: 1px dashed #d9dee8; border-radius: 12px; background: #fafbfd; }
.odontogram-symbol-reference { min-width: 760px; max-width: 1120px; margin: 12px auto 0; padding: 11px 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px 17px; border-radius: 10px; background: #f6f8fb; color: #59677e; font-size: 9px; }
.odontogram-symbol-reference strong { color: #26334a; margin-right: 5px; }
.odontogram-symbol-reference b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-right: 4px; border-radius: 6px; background: #edf3ff; color: #2e67b5; font: 800 8px/1 var(--font-mono, monospace); }
.odontogram-reference-item { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: #45536a; }
.reference-mark { position: relative; width: 25px; height: 25px; display: inline-grid; place-items: center; flex: 0 0 25px; border: 1px solid #dce3ee; border-radius: 6px; background: #fff; }
.reference-mark .tooth-clinical-mark { inset: 2px; width: 19px; height: 19px; filter: none; }
.reference-mark .tooth-clinical-mark path { stroke-width: 3.2; }
.reference-arrow-pair { width: 42px; flex-basis: 42px; grid-template-columns: 1fr 1fr; }
.reference-arrow-pair .tooth-clinical-mark { position: static; width: 17px; height: 19px; }
.tooth-entry-summary { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.tooth-entry-summary span { padding: 6px 8px; border-radius: 7px; background: var(--surface-soft); font-size: 9px; }
.practice-code { display: inline-flex; min-width: 44px; justify-content: center; padding: 5px 7px; border-radius: 7px; background: #edf3ff; color: #315fa8; font: 760 10px/1 var(--font-mono, monospace); letter-spacing: .04em; }
.provider-readonly { min-height: 42px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid #c9d9f5; border-radius: 10px; background: #f5f8ff; }
.provider-readonly strong, .provider-readonly small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-readonly strong { color: #203457; font-size: 11px; }.provider-readonly small { margin-top: 2px; color: #73819a; font-size: 8px; }
.appointment-booking-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(390px,.9fr); gap: 15px; align-items: start; }
.appointment-occupancy { padding: 16px; border: 1px solid #cedbf2; border-radius: 14px; background: #f7faff; position: sticky; top: 0; }
.find-next-slot { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 9px 11px; border: 1px solid #aac2ed; border-radius: 11px; background: #fff; color: #214f99; text-align: left; cursor: pointer; }
.find-next-slot:hover { border-color: var(--primary); background: #edf4ff; }
.find-next-slot > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--primary); color: #fff; font-size: 18px; }
.find-next-slot strong, .find-next-slot small { display: block; }.find-next-slot strong { font-size: 11px; }.find-next-slot small { margin-top: 2px; color: #74829a; font-size: 8px; }
.loader.loader-sm { width: 21px; height: 21px; border-width: 2px; }
.occupancy-legend { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-bottom: 9px; color: #64738b; font-size: 8px; font-weight: 650; }
.occupancy-legend span { display: inline-flex; align-items: center; gap: 5px; }.occupancy-legend i { width: 9px; height: 9px; border: 1px solid #d4dce9; border-radius: 3px; background: #fff; }.occupancy-legend .busy { border-color: #efabb5; background: #ffe9ed; }.occupancy-legend .chosen { border-color: #6c91e8; background: #dce8ff; }
.occupancy-grid { display: grid; grid-template-columns: repeat(4,minmax(66px,1fr)); gap: 5px; }
.occupancy-slot { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 9px; min-height: 49px; border: 1px solid #d6dfec; border-radius: 8px; background: #fff; color: #34445d; font: 800 11px/1.25 var(--font-mono, monospace); cursor: pointer; }
.occupancy-slot:not(:disabled):hover { border-color: #7fa4eb; background: #edf4ff; transform: translateY(-1px); }
.occupancy-slot:disabled { cursor: not-allowed; opacity: 1; }
.occupancy-slot small { margin-top: 4px; color: #74839a; font: 650 8px/1 var(--font-sans, sans-serif); }
.occupancy-slot.is-selected { border-color: #86a5f7; box-shadow: inset 0 0 0 1px #86a5f7; background: #eef3ff; }
.occupancy-slot.is-occupied { border-color: #f0b9c1; background: #fff0f2; color: #a22c3e; }
.occupancy-slot.is-conflict { background: #d94c5c; border-color: #d94c5c; color: #fff; }.occupancy-slot.is-conflict small { color: #fff; }
.occupancy-list { display: grid; gap: 5px; margin-top: 10px; }
.occupancy-appointment { display: grid; grid-template-columns: 82px 1fr auto; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-size: 11px; }
.occupancy-appointment > span b, .occupancy-appointment > span small { display: block; }.occupancy-appointment > span small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.clinical-record { display: grid; gap: 12px; }
.clinical-section { border: 1px solid var(--line); border-radius: 12px; padding: 17px; background: #fff; }
.clinical-section-title { font-size: 15px; font-weight: 800; color: #25314a; margin-bottom: 13px; }
.clinical-section-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 14px; }
.clinical-sheet-card .card-body { background: #fbfcfd; }
.patient-data-section { border-top: 3px solid var(--primary); }
.clinical-demographic-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px 14px; }
.medical-flag-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.medical-flag { min-height: 58px; display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.medical-flag-answer { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; font-size: 10px; font-weight: 850; background: #e8edf3; color: #657188; }
.medical-flag strong { display: block; color: #27344b; font-size: 12px; }
.medical-flag small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.medical-flag.is-positive { border-color: #e6a6af; background: #fff5f6; }.medical-flag.is-positive .medical-flag-answer { background: #d95463; color: #fff; }
.medical-flag.is-negative { border-color: #bfe1d7; background: #f4fbf8; }.medical-flag.is-negative .medical-flag-answer { background: #3c9278; color: #fff; }
.medical-detail-grid { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.clinical-consent-note { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border: 1px solid #cedcf4; border-radius: 11px; background: #f3f7ff; color: #293c62; }
.clinical-consent-note > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #dce8ff; color: var(--primary); }
.clinical-consent-note strong { font-size: 13px; }.clinical-consent-note p { margin: 3px 0 0; color: #61708c; font-size: 11px; line-height: 1.5; }
.clinical-field { min-width: 0; }
.clinical-field.wide { grid-column: 1/-1; }
.clinical-field-label { color: #68758b; font-size: 10px; font-weight: 780; letter-spacing: .045em; text-transform: uppercase; margin-bottom: 4px; }
.clinical-field-value { color: #28344c; font-size: 14px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.history-completeness { height: 7px; border-radius: 8px; background: #e6eaf1; overflow: hidden; margin-top: 8px; }.history-completeness span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2563eb,#60a5fa); }
.template-catalog { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.template-card { border: 1px solid var(--line); border-radius: 11px; padding: 11px; background: #fff; }
.template-preview { white-space: pre-line; max-height: 260px; overflow-y: auto; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f9fafc; color: #35405a; font-size: 10px; line-height: 1.55; }
.form-section-title { margin: 18px 0 10px; padding-bottom: 7px; border-bottom: 1px solid var(--line); color: #26334b; font-size: 11px; font-weight: 800; }
.form-section-title:first-child { margin-top: 0; }
.boolean-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.boolean-field legend { margin-bottom: 7px; color: var(--text); font-size: 13px; font-weight: 720; }
.boolean-field > small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.yes-no-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.yes-no-option { min-width: 0; cursor: pointer; }
.yes-no-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.yes-no-option span { min-height: 46px; display: grid; place-items: center; border: 1px solid #cad4e3; border-radius: 10px; background: #fff; color: #56657d; font-size: 14px; font-weight: 800; }
.yes-no-option:hover span { border-color: #8ba8dc; background: #f4f8ff; }
.yes-no-option input:focus-visible + span { outline: 3px solid rgba(37,99,235,.24); outline-offset: 2px; }
.yes-no-option input[value="true"]:checked + span { border-color: #e0a0aa; background: #fff0f2; color: #a92e41; box-shadow: inset 0 0 0 1px #e0a0aa; }
.yes-no-option input[value="false"]:checked + span { border-color: #8ecab8; background: #eefaf6; color: #23725c; box-shadow: inset 0 0 0 1px #8ecab8; }
.patient-tab-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.patient-tab-heading h2 { margin: 0; color: #202d45; font-size: 19px; letter-spacing: -.025em; }.patient-tab-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.clinical-note { border-left: 3px solid var(--primary); padding: 12px 13px; background: var(--surface-soft); border-radius: 0 10px 10px 0; }
.note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.note-cell { font-size: 11px; }
.note-key { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 9px; letter-spacing: .06em; margin-bottom: 3px; }
.locked { color: var(--success); display: inline-flex; gap: 4px; align-items: center; font-size: 9px; font-weight: 700; }

/* Exceptions */
.exception-list { display: flex; flex-direction: column; gap: 8px; }
.exception { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.exception-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--warning-soft); color: var(--warning); }
.exception.high .exception-icon { background: var(--danger-soft); color: var(--danger); }
.exception-title { font-weight: 700; font-size: 11px; }
.exception-detail { color: var(--muted); font-size: 9px; margin-top: 2px; }

/* Messages */
.inbox-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 650px; overflow: hidden; }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 720px; }
.inbox-item { padding: 13px; border-bottom: 1px solid var(--line); cursor: pointer; display: flex; gap: 10px; }
.inbox-item:hover, .inbox-item.active { background: var(--primary-soft); }
.inbox-preview { min-width: 0; flex: 1; }
.inbox-name { font-weight: 720; font-size: 12px; }
.inbox-snippet { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-pane { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 14px 17px; border-bottom: 1px solid var(--line); }
.chat-body { padding: 18px; flex: 1; background: #f8f9fc; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; max-height: 580px; }
.bubble { max-width: min(72%, 560px); padding: 9px 11px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; }
.bubble.outbound { align-self: flex-end; background: var(--primary); color: #fff; border-color: var(--primary); }
.bubble-meta { font-size: 8px; opacity: .72; margin-top: 4px; }
.chat-compose { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; }
.chat-compose .input { flex: 1; }

/* Settings */
.settings-nav { display: flex; flex-direction: column; gap: 5px; }
.settings-nav button { border: 0; background: transparent; text-align: left; padding: 9px 10px; border-radius: 9px; color: var(--muted); font-weight: 650; }
.settings-nav button.active, .settings-nav button:hover { background: var(--primary-soft); color: var(--primary); }
.setting-row { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-name { font-weight: 700; font-size: 12px; }
.setting-desc { color: var(--muted); font-size: 10px; margin-top: 3px; max-width: 620px; }
.switch { width: 42px; height: 23px; background: #cdd3df; border-radius: 20px; padding: 3px; flex: 0 0 auto; transition: .2s; }
.switch::after { content: ""; width: 17px; height: 17px; background: #fff; border-radius: 50%; display: block; box-shadow: 0 1px 3px rgba(0,0,0,.16); }
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(19px); }
.integration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.integration-card { border: 1px solid var(--line); border-radius: 12px; padding: 13px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.integration-logo { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-soft); font-size: 18px; }

/* Modal & toast */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10,15,30,.56); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); overscroll-behavior: contain; }
.modal { width: min(680px, 100%); max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); }
.modal.modal-lg { width: min(960px, 100%); }
.modal.modal-xl { width: min(1180px, 100%); }
.modal.modal-clinical { width: min(1280px, 100%); }
.modal-clinical .modal-head { padding: 22px 26px; }
.modal-clinical .modal-title { font-size: 23px; }
.modal-clinical .modal-subtitle { font-size: 13px; line-height: 1.45; }
.modal-clinical .modal-body { padding: 24px 28px 30px; }
.modal-clinical .form-grid { gap: 18px; }
.modal-clinical .form-section-title { margin: 28px 0 15px; padding-bottom: 10px; font-size: 17px; }
.modal-clinical .form-label { font-size: 13px; line-height: 1.35; }
.modal-clinical .input, .modal-clinical .select, .modal-clinical .textarea { font-size: 16px; }
.modal-clinical .input, .modal-clinical .select { min-height: 48px; height: 48px; }
.modal-clinical .textarea { min-height: 92px; padding: 12px 13px; line-height: 1.5; }
.modal-clinical .modal-foot { padding: 16px 26px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-title { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-soft); position: sticky; bottom: 0; }
.toast-stack { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { width: min(380px, calc(100vw - 40px)); background: #172039; color: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow-lg); display: flex; align-items: flex-start; gap: 10px; animation: toast-in .25s ease; }
.toast.success { background: #126b4d; }
.toast.error { background: #9f3040; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.loader { width: 24px; height: 24px; border: 3px solid #e5e8ef; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg,#edf0f5,#f8f9fb,#edf0f5); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; min-height: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Public landing */
.public-body { background: #fff; }
.public-nav { position: sticky; top: 0; z-index: 40; min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: env(safe-area-inset-top) max(24px, calc((100vw - 1180px)/2)) 0; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(226,231,240,.9); }
.public-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.03em; }
.brand-word { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.brand-word strong { font-size: 16px; font-weight: 800; letter-spacing: -.035em; }
.brand-word small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.public-brand-inverse .brand-word strong { color: #fff; }
.public-brand-inverse .brand-word small { color: #9ca7c1; }
.public-links { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 12px; font-weight: 650; }
.public-links a { transition: color .16s ease; }
.public-links a:hover { color: var(--primary); }
.public-actions { display: flex; gap: 8px; }
.public-menu-btn { display: none; font-size: 22px; line-height: 1; }
.public-mobile-nav {
  position: fixed; top: calc(76px + env(safe-area-inset-top)); right: 14px; left: 14px; z-index: 39;
  max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; padding: 10px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.98); box-shadow: var(--shadow-lg);
}
.public-mobile-nav a:not(.btn) { display: block; padding: 11px 12px; border-radius: 9px; color: var(--muted); font-weight: 650; }
.public-mobile-nav a:not(.btn):hover { color: var(--primary); background: var(--primary-soft); }
.public-mobile-nav .btn { width: 100%; margin-top: 6px; }
.public-hero { padding: 94px 24px 78px; overflow: hidden; position: relative; background: linear-gradient(180deg,#fff 0,#f2f6fd 100%); }
.public-hero::before { content: ""; position: absolute; width: min(58vw,820px); aspect-ratio: 1; right: -12vw; top: -25%; opacity: .035; pointer-events: none; background: url('/static/brand/mark-master.svg') center / contain no-repeat; transform: rotate(-7deg); }
.public-hero-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 65px; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #cfddf5; background: rgba(247,249,252,.92); color: var(--primary-dark); border-radius: 999px; padding: 6px 10px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .075em; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 3px rgba(96,165,250,.15); }
.public-hero h1 { font-size: clamp(52px, 6.2vw, 80px); line-height: .96; letter-spacing: -.067em; margin: 22px 0 24px; max-width: 760px; }
.public-hero h1 span { color: var(--primary); }
.public-hero p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.brand-trace { display: flex; align-items: center; gap: 7px; max-width: 630px; margin-top: 31px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 8px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.brand-trace i { flex: 1; min-width: 10px; height: 1px; background: var(--line-strong); position: relative; }
.brand-trace i::after { content: ""; position: absolute; right: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--aqua); transform: translate(50%,-50%); }
.hero-proof { display: flex; gap: 26px; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.proof-item strong { display: block; font-size: 18px; }
.proof-item span { color: var(--muted); font-size: 10px; }
.hero-product { position: relative; }
.product-window { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 35px 100px rgba(17,28,54,.18); overflow: hidden; transform: rotate(.35deg); }
.product-window-head { height: 42px; background: #f8f9fc; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 5px; padding: 0 14px; }
.window-dot { width: 7px; height: 7px; border-radius: 50%; background: #ccd2df; }
.product-window-body { display: grid; grid-template-columns: 90px 1fr; min-height: 390px; }
.product-mini-nav { background: var(--sidebar); padding: 17px 10px; display: flex; flex-direction: column; gap: 9px; }
.mini-nav-item { height: 24px; border-radius: 6px; background: rgba(255,255,255,.06); }
.mini-nav-item.active { background: rgba(92,113,255,.45); }
.product-dashboard { padding: 18px; background: #f7f8fc; }
.product-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.product-kpi { height: 72px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.product-kpi-line { height: 8px; width: 50%; background: #e6e9f1; border-radius: 9px; margin-bottom: 10px; }
.product-kpi-number { height: 17px; width: 67%; background: var(--primary); border-radius: 5px; opacity: .88; }
.product-agenda { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.product-column { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.product-appt { height: 44px; border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 6px; margin-bottom: 7px; }
.product-appt.success { border-left-color: var(--success); background: var(--success-soft); }
.product-appt.warning { border-left-color: var(--warning); background: var(--warning-soft); }
.floating-card { position: absolute; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); border-radius: 13px; padding: 12px; }
.floating-card.one { right: -25px; bottom: 45px; width: 190px; }
.floating-card.two { left: -35px; top: 65px; width: 170px; }
.product-window-real { background: var(--sidebar); }
.product-window-real .product-window-head { position: relative; z-index: 1; }
.product-window-label { margin-left: auto; color: #707a91; font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.hero-product-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.public-section { padding: 85px 24px; }
.public-section[id] { scroll-margin-top: 76px; }
.public-section.soft { background: var(--bg); }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.02; letter-spacing: -.055em; margin: 14px 0 14px; }
.section-head p { color: var(--muted); font-size: 15px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.feature-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #fff; position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature-card::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; background: linear-gradient(90deg,var(--primary),var(--aqua)); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: #bcd9cf; box-shadow: var(--shadow-md); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 19px; margin-bottom: 17px; }
.feature-card h3 { margin: 0 0 7px; font-size: 16px; letter-spacing: -.02em; }
.feature-card p { color: var(--muted); margin: 0; font-size: 12px; }
.product-proof-section { background: linear-gradient(180deg,#fff 0,var(--bg) 100%); }
.screen-stage { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 22px 65px rgba(27,35,70,.13); }
.screen-stage picture { display: block; line-height: 0; background: #eef1f7; }
.screen-stage img { display: block; width: 100%; height: auto; }
.screen-stage figcaption { min-height: 66px; display: flex; align-items: center; gap: 10px 16px; padding: 13px 17px; border-top: 1px solid var(--line); background: #fff; }
.screen-stage figcaption strong { color: var(--text); font-size: 12px; }
.screen-stage figcaption span { color: var(--muted); font-size: 11px; }
.screen-stage figcaption small { margin-left: auto; color: #858da0; font-size: 8px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.screen-stage-primary { border-radius: 23px; box-shadow: 0 35px 90px rgba(30,38,78,.17); }
.proof-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-top: 18px; }
.proof-card { padding: 17px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.84); }
.proof-card strong { display: block; color: var(--primary-dark); font-size: 22px; letter-spacing: -.04em; }
.proof-card span { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.private-model-section { background: #fff; overflow: hidden; }
.private-model-layout { display: grid; grid-template-columns: minmax(0,.82fr) minmax(520px,1.18fr); gap: 58px; align-items: center; }
.private-model-copy h2 { margin: 15px 0; font-size: clamp(36px,4.5vw,58px); line-height: 1; letter-spacing: -.055em; }
.private-model-copy > p { color: var(--muted); font-size: 14px; }
.private-checks { display: grid; gap: 10px; padding: 0; margin: 24px 0 28px; list-style: none; }
.private-checks li { display: grid; grid-template-columns: 31px 1fr; gap: 11px; align-items: start; }
.private-checks li > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-weight: 850; }
.private-checks strong { display: block; font-size: 12px; }
.private-checks p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.ownership-map { padding: 28px; border: 1px solid #d2dced; border-radius: 25px; background: linear-gradient(150deg,#fafcff,#edf3fc); box-shadow: 0 28px 80px rgba(17,28,54,.13); position: relative; }
.ownership-map::before { content: ""; position: absolute; right: -70px; top: -85px; width: 230px; height: 230px; background: url('/static/brand/mark-master.svg') center / contain no-repeat; opacity: .045; pointer-events: none; }
.ownership-origin { width: max-content; max-width: 100%; margin: 0 auto; padding: 12px 15px; display: flex; gap: 11px; align-items: center; border: 1px solid var(--line); border-radius: 13px; background: #fff; position: relative; z-index: 1; }
.ownership-symbol { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #b9cbed; border-radius: 50%; color: var(--primary); font-size: 22px; }
.ownership-origin strong, .ownership-origin small { display: block; }
.ownership-origin strong { font-size: 12px; }
.ownership-origin small { color: var(--muted); font-size: 9px; }
.ownership-line { height: 45px; width: calc(75% + 1px); margin: 0 auto; border-bottom: 1px solid #b5c6e4; position: relative; }
.ownership-line::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid #b5c6e4; }
.ownership-line span { position: absolute; bottom: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); }
.ownership-line span:nth-child(1) { left: 0; }.ownership-line span:nth-child(2) { left: 33.33%; }.ownership-line span:nth-child(3) { left: 66.66%; }.ownership-line span:nth-child(4) { right: 0; }
.ownership-spaces { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 15px; }
.ownership-space { min-width: 0; padding: 13px 11px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.82); }
.ownership-space > span { display: block; color: var(--aqua-dark); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 9px; font-weight: 800; }
.ownership-space strong, .ownership-space small, .ownership-space b { display: block; }
.ownership-space strong { margin-top: 15px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ownership-space small { min-height: 30px; margin-top: 3px; color: var(--muted); font-size: 8px; }
.ownership-space b { width: max-content; margin-top: 10px; padding: 3px 6px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 7px; letter-spacing: .06em; text-transform: uppercase; }
.ownership-space.active { border-color: var(--primary); background: #fff; box-shadow: 0 12px 30px rgba(37,99,235,.14); transform: translateY(-5px); }
.ownership-space.muted-space { border-style: dashed; }
.ownership-proof { display: flex; gap: 10px; align-items: center; margin-top: 20px; padding: 12px 14px; border-radius: 12px; background: var(--sidebar); color: #dce6f8; }
.ownership-proof > span { color: var(--aqua); font-size: 23px; }
.ownership-proof p { margin: 0; font-size: 10px; }
.ownership-proof strong { color: #fff; margin-right: 5px; }
.editorial-section { overflow: hidden; }
.editorial-layout { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 52px; }
.editorial-photo { margin: 0; overflow: hidden; position: relative; border-radius: 24px; background: var(--sidebar); box-shadow: 0 28px 75px rgba(22,31,62,.18); }
.editorial-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(150deg,transparent 55%,rgba(16,23,42,.42)); }
.editorial-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.editorial-photo figcaption { position: absolute; right: 15px; bottom: 13px; z-index: 1; color: rgba(255,255,255,.82); font-size: 8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.editorial-copy h2, .patient-story-copy h2 { margin: 15px 0; font-size: clamp(36px,4.4vw,56px); line-height: 1; letter-spacing: -.055em; }
.editorial-copy > p, .patient-story-copy > p { color: var(--muted); font-size: 14px; }
.editorial-points { display: grid; gap: 0; margin: 25px 0; border-top: 1px solid var(--line); }
.editorial-points > div { display: grid; grid-template-columns: 31px 135px 1fr; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.editorial-points span { color: var(--aqua-dark); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 9px; font-weight: 800; }
.editorial-points strong { font-size: 11px; }
.editorial-points p { margin: 0; color: var(--muted); font-size: 10px; }
.management-stage { margin-top: 44px; }
.workflow { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; }
.workflow-step { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 15px; position: relative; }
.workflow-step::after { content: "→"; position: absolute; right: -10px; top: 50%; z-index: 2; color: var(--muted); }
.workflow-step:last-child::after { display: none; }
.workflow-number { color: var(--primary); font-weight: 800; font-size: 10px; margin-bottom: 15px; }
.workflow-title { font-weight: 750; font-size: 12px; }
.workflow-desc { color: var(--muted); font-size: 10px; margin-top: 5px; }
.screen-duo { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; align-items: start; }
.evidence-section { background: var(--surface-dark); color: #fff; position: relative; overflow: hidden; }
.evidence-section::before { content: ""; position: absolute; width: 580px; height: 580px; left: -280px; top: -290px; border-radius: 50%; background: rgba(96,165,250,.12); }
.evidence-section::after { content: ""; position: absolute; width: 520px; height: 520px; right: -150px; bottom: -230px; background: url('/static/brand/mark-master-inverse.svg') center / contain no-repeat; opacity: .045; }
.evidence-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 54px; align-items: center; position: relative; }
.evidence-copy h2 { font-size: clamp(36px, 4.5vw, 58px); line-height: 1; letter-spacing: -.055em; margin: 17px 0; }
.evidence-copy > p { color: #b9c2d8; font-size: 15px; }
.evidence-eyebrow { color: #dbe9ff; border-color: rgba(147,197,253,.25); background: rgba(96,165,250,.11); }
.evidence-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.btn-light { background: #fff; color: var(--text); border-color: #fff; }
.btn-light:hover { color: var(--primary-dark); }
.btn-outline-light { color: #fff; background: transparent; border-color: rgba(255,255,255,.3); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.07); }
.evidence-note { font-size: 11px !important; margin: 14px 0 0; }
.evidence-board { border: 1px solid rgba(255,255,255,.13); border-radius: 19px; overflow: hidden; background: rgba(255,255,255,.045); box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.evidence-board-head, .evidence-row { display: grid; grid-template-columns: minmax(130px, .42fr) 1fr; gap: 18px; align-items: center; padding: 15px 18px; }
.evidence-board-head { color: #8f9ab8; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; background: rgba(255,255,255,.035); }
.evidence-row { border-top: 1px solid rgba(255,255,255,.09); }
.evidence-row strong { font-size: 12px; color: #fff; }
.evidence-row span { color: #bdc6da; font-size: 12px; }
.clinical-visuals { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(250px,.55fr); gap: 17px; align-items: stretch; margin-top: 48px; position: relative; z-index: 1; }
.screen-stage-dark { border-color: rgba(255,255,255,.13); background: #172039; box-shadow: 0 32px 80px rgba(0,0,0,.3); }
.screen-stage-dark figcaption { background: #172039; border-color: rgba(255,255,255,.1); }
.screen-stage-dark figcaption strong { color: #fff; }
.screen-stage-dark figcaption span { color: #bdc6da; }
.screen-stage-dark figcaption small { color: #8f9ab8; }
.technology-photo { margin: 0; display: flex; min-height: 100%; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 19px; background: #172039; box-shadow: 0 32px 80px rgba(0,0,0,.26); }
.technology-photo picture { display: block; flex: 1; min-height: 0; }
.technology-photo img { display: block; width: 100%; height: 100%; min-height: 360px; object-fit: cover; object-position: 58% center; }
.technology-photo figcaption { padding: 14px 16px; color: #d9dfee; font-size: 11px; }
.technology-photo figcaption small { display: block; margin-top: 5px; color: #8f9ab8; font-size: 8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.patient-story-section { overflow: hidden; background: linear-gradient(145deg,#fff 35%,#edf3fc 100%); }
.patient-story-layout { display: grid; grid-template-columns: minmax(0,1.14fr) minmax(360px,.86fr); gap: 70px; align-items: center; }
.patient-story-media { min-height: 610px; padding: 35px 105px 65px 0; position: relative; }
.patient-guidance-photo { display: block; height: 100%; overflow: hidden; border-radius: 25px; box-shadow: 0 35px 85px rgba(30,38,78,.2); }
.patient-guidance-photo img { display: block; width: 100%; height: 100%; min-height: 510px; object-fit: cover; }
.portal-phone { position: absolute; right: 0; bottom: 0; width: 235px; margin: 0; padding: 7px; overflow: hidden; border: 1px solid rgba(16,23,42,.12); border-radius: 30px; background: #fff; box-shadow: 0 30px 75px rgba(23,31,69,.3); }
.portal-phone::before { content: ""; position: absolute; top: 15px; left: 50%; z-index: 2; width: 54px; height: 5px; border-radius: 9px; background: rgba(16,23,42,.72); transform: translateX(-50%); }
.portal-phone picture { display: block; overflow: hidden; border-radius: 23px; line-height: 0; }
.portal-phone img { display: block; width: 100%; height: auto; }
.portal-phone figcaption { padding: 8px 4px 3px; color: var(--muted); font-size: 8px; text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.patient-benefits { display: grid; gap: 10px; padding: 0; margin: 25px 0; list-style: none; }
.patient-benefits li { display: grid; grid-template-columns: 9px 150px 1fr; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.patient-benefits li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(96,165,250,.13); }
.patient-benefits strong { font-size: 11px; }
.patient-benefits span { color: var(--muted); font-size: 10px; }
.image-disclaimer { margin-top: 13px !important; font-size: 9px !important; }
.readiness-section { background: linear-gradient(180deg,#f3f6fb,#fff); }
.readiness-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.readiness-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.readiness-card-head { display: flex; align-items: center; gap: 13px; padding: 19px 20px; border-bottom: 1px solid var(--line); }
.readiness-card-head > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 19px; font-weight: 800; }
.readiness-card.connect .readiness-card-head > span { background: var(--warning-soft); color: var(--warning); }
.readiness-card-head strong, .readiness-card-head small { display: block; }
.readiness-card-head strong { font-size: 15px; }
.readiness-card-head small { margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.readiness-card ul { display: grid; gap: 0; padding: 8px 20px 15px; margin: 0; list-style: none; }
.readiness-card li { position: relative; padding: 10px 6px 10px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.readiness-card li:last-child { border-bottom: 0; }
.readiness-card li::before { content: ""; position: absolute; left: 3px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); }
.readiness-card.connect li::before { background: #d8953f; }
.readiness-note { max-width: 950px; margin: 20px auto 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font-size: 11px; text-align: center; }
.readiness-note strong { color: var(--text); }
.pilot-section { background: var(--surface-dark); color: #fff; position: relative; overflow: hidden; }
.pilot-section::before { content: ""; position: absolute; right: -130px; top: -190px; width: 520px; height: 520px; background: url('/static/brand/mark-master-inverse.svg') center / contain no-repeat; opacity: .045; pointer-events: none; }
.pilot-layout { display: grid; grid-template-columns: minmax(0,.78fr) minmax(520px,1.22fr); gap: 65px; align-items: center; position: relative; z-index: 1; }
.pilot-eyebrow { color: #dbe9ff; border-color: rgba(147,197,253,.25); background: rgba(96,165,250,.11); }
.pilot-copy h2 { margin: 16px 0; font-size: clamp(42px,5vw,64px); line-height: .98; letter-spacing: -.06em; }
.pilot-copy > p { color: #bdc8dc; font-size: 15px; }
.pilot-steps { display: grid; gap: 0; padding: 0; margin: 27px 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.12); }
.pilot-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.pilot-steps li > span { color: var(--aqua); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 9px; font-weight: 800; }
.pilot-steps strong { font-size: 12px; }
.pilot-steps p { margin: 2px 0 0; color: #afbbd1; font-size: 10px; }
.pilot-card { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: #fff; color: var(--text); box-shadow: 0 35px 90px rgba(0,0,0,.3); }
.pilot-card-head { display: flex; justify-content: space-between; gap: 20px; padding: 17px 22px; border-bottom: 1px solid var(--line); background: #f5f8fd; }
.pilot-card-head span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pilot-card-head strong { color: var(--primary-dark); font-size: 12px; }
.pilot-form { padding: 22px; }
.pilot-form .textarea { min-height: 84px; }
.pilot-form .form-label small { color: var(--muted-2); font-weight: 500; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { min-height: 18px; margin-top: 8px; color: var(--danger); }
.pilot-privacy { margin: 3px 0 0; color: var(--muted); font-size: 9px; text-align: center; }
.pilot-success { padding: 55px 28px; text-align: center; }
.pilot-success .booking-success-icon { background: var(--primary-soft); color: var(--primary); }
.pilot-success p { max-width: 440px; margin: 0 auto 22px; color: var(--muted); }
.booking-wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; align-items: start; }
.booking-copy { position: sticky; top: 100px; }
.booking-copy h2 { font-size: 42px; letter-spacing: -.055em; line-height: 1.04; margin: 15px 0; }
.booking-copy p { color: var(--muted); font-size: 14px; }
.booking-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); overflow: hidden; }
.booking-card-head { padding: 20px 22px; background: var(--sidebar); color: white; }
.booking-card-head h3 { margin: 0 0 4px; font-size: 18px; }
.booking-card-head p { margin: 0; color: #aeb7ce; font-size: 11px; }
.booking-demo-label { display: block; margin-bottom: 7px; color: var(--aqua); font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.booking-card-body { padding: 22px; }
.slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; margin-top: 10px; }
.slot-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 8px 5px; font-weight: 700; font-size: 11px; }
.slot-btn:hover, .slot-btn.selected { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.booking-success { padding: 28px; text-align: center; }
.booking-success-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--success-soft); color: var(--success); font-size: 28px; margin: 0 auto 15px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 13px; padding: 16px; }
.faq-item strong { display: block; margin-bottom: 6px; }
.faq-item p { margin: 0; color: var(--muted); font-size: 12px; }
.public-footer { background: #0d162b; color: #b4bfd3; padding: 48px max(24px, env(safe-area-inset-right)) max(42px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
.clinic-home { color: #10213f; }
.clinic-home .public-nav { border-bottom-color: rgba(205,218,235,.8); }
.clinic-hero { position: relative; overflow: hidden; padding: clamp(72px,9vw,126px) 24px 82px; background: linear-gradient(145deg,#f8fbff 0%,#eef6fb 48%,#f7fbf8 100%); }
.clinic-hero-glow { position: absolute; width: 620px; height: 620px; right: -190px; top: -285px; border-radius: 50%; background: radial-gradient(circle,rgba(67,160,169,.19),rgba(67,160,169,0) 69%); pointer-events: none; }
.clinic-hero::after { content: ""; position: absolute; left: max(24px,calc((100vw - 1180px)/2)); bottom: 0; width: 118px; height: 4px; background: linear-gradient(90deg,var(--primary),var(--aqua)); border-radius: 99px; }
.clinic-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.03fr) minmax(430px,.97fr); align-items: center; gap: clamp(44px,7vw,94px); }
.clinic-hero-copy h1 { max-width: 690px; margin: 22px 0 24px; font-size: clamp(52px,6.5vw,84px); line-height: .96; letter-spacing: -.066em; }
.clinic-hero-copy h1 span { color: var(--primary); }
.clinic-hero-copy > p { max-width: 650px; margin: 0; color: #52637a; font-size: 18px; line-height: 1.68; }
.clinic-trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 31px; color: #41526b; font-size: 11px; font-weight: 720; }
.clinic-trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.clinic-trust-row i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #dff4ed; color: #197357; font-size: 10px; font-style: normal; }
.clinic-entry-panel { display: grid; gap: 13px; }
.clinic-entry-card { position: relative; display: block; padding: 27px 29px; border: 1px solid #ccd9e8; border-radius: 20px; background: rgba(255,255,255,.93); box-shadow: 0 14px 38px rgba(20,43,72,.08); transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.clinic-entry-card:hover { transform: translateY(-3px); border-color: #91b0ce; box-shadow: 0 20px 50px rgba(20,43,72,.14); }
.clinic-entry-card::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; border-radius: 0 4px 4px 0; background: var(--aqua); }
.clinic-entry-card.clinic-entry-primary { border-color: #234f87; color: #fff; background: linear-gradient(145deg,#17345c,#10213f); box-shadow: 0 22px 50px rgba(16,33,63,.2); }
.clinic-entry-card.clinic-entry-primary::before { background: #80d4c3; }
.clinic-entry-kicker { display: block; margin-bottom: 9px; color: var(--primary); font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.clinic-entry-primary .clinic-entry-kicker { color: #9ce3d4; }
.clinic-entry-card > strong { display: block; font-size: 24px; letter-spacing: -.035em; }
.clinic-entry-card p { max-width: 440px; margin: 9px 0 19px; color: #66758a; font-size: 12px; line-height: 1.6; }
.clinic-entry-primary p { color: #c4d0e0; }
.clinic-entry-link { display: flex; justify-content: space-between; align-items: center; color: var(--primary); font-size: 12px; font-weight: 800; }
.clinic-entry-primary .clinic-entry-link { color: #fff; }
.clinic-entry-link b { font-size: 20px; transition: transform .18s ease; }
.clinic-entry-card:hover .clinic-entry-link b { transform: translateX(4px); }
.clinic-reassurance { border-bottom: 1px solid var(--line); background: #fff; }
.clinic-reassurance-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.clinic-reassurance-grid > div { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 27px 31px; border-right: 1px solid var(--line); }
.clinic-reassurance-grid > div:first-child { padding-left: 0; }
.clinic-reassurance-grid > div:last-child { padding-right: 0; border-right: 0; }
.clinic-reassurance-grid span { color: #69a99f; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 10px; font-weight: 800; }
.clinic-reassurance-grid p { margin: 0; color: #66758a; font-size: 11px; line-height: 1.55; }
.clinic-reassurance-grid strong { color: var(--text); }
.clinic-care { background: #fff; }
.clinic-services { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clinic-services article { min-height: 210px; padding: 31px; border-right: 1px solid var(--line); }
.clinic-services article:first-child { padding-left: 0; }
.clinic-services article:last-child { padding-right: 0; border-right: 0; }
.clinic-service-number { color: #69a99f; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.clinic-services h3 { margin: 48px 0 9px; font-size: 22px; letter-spacing: -.035em; }
.clinic-services p { max-width: 310px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.clinic-process { background: #f3f7fb; }
.clinic-process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(45px,8vw,105px); align-items: center; }
.clinic-process .section-head { margin: 0; }
.clinic-process .section-head .btn { margin-top: 12px; }
.clinic-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid #cfdbe8; }
.clinic-steps li { display: grid; grid-template-columns: 45px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid #cfdbe8; }
.clinic-steps li > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--primary); font-size: 12px; font-weight: 850; box-shadow: 0 5px 15px rgba(20,43,72,.07); }
.clinic-steps strong { font-size: 16px; }
.clinic-steps p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.clinic-portal-section { color: #fff; background: #10213f; }
.clinic-portal-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(42px,8vw,105px); align-items: center; }
.clinic-portal-card .eyebrow { color: #bcece2; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); }
.clinic-portal-card h2 { max-width: 690px; margin: 18px 0 17px; font-size: clamp(39px,5vw,62px); line-height: 1; letter-spacing: -.058em; }
.clinic-portal-card > p { max-width: 670px; margin: 0; color: #bdc9d9; font-size: 14px; line-height: 1.7; }
.clinic-portal-features { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 20px; margin: 27px 0 30px; }
.clinic-portal-features span { position: relative; padding-left: 15px; color: #e3eaf3; font-size: 11px; font-weight: 650; }
.clinic-portal-features span::before { content: ""; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #7dd3c4; }
.clinic-privacy-note { display: grid; grid-template-columns: 42px 1fr; gap: 17px; padding: 26px; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; background: rgba(255,255,255,.055); }
.clinic-privacy-note > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #8ee0d0; background: rgba(125,211,196,.12); font-size: 26px; }
.clinic-privacy-note strong { font-size: 16px; }
.clinic-privacy-note p { margin: 8px 0 0; color: #aebbcf; font-size: 11px; line-height: 1.65; }
.clinic-location-grid { display: grid; grid-template-columns: 1fr minmax(330px,.58fr); gap: 60px; align-items: center; }
.clinic-location-grid h2 { max-width: 650px; margin: 16px 0 9px; font-size: clamp(35px,4vw,50px); letter-spacing: -.05em; line-height: 1.04; }
.clinic-location-grid > div > p { color: var(--muted); }
.clinic-contact-card { padding: 28px; border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow-md); }
.clinic-contact-card > strong { display: block; margin-top: 11px; font-size: 19px; }
.clinic-contact-label { color: var(--primary); font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.clinic-footer-links { display: flex; align-items: center; gap: 18px; font-size: 10px; }
.clinic-footer-links a { color: #dbe6f4; text-decoration: underline; text-underline-offset: 3px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 45px; align-items: start; }
.footer-brand-block > p { max-width: 250px; margin: 15px 0 0; color: #919eb8; font-size: 11px; }
.footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 18px; font-size: 10px; }
.footer-links a:hover { color: #fff; }
.footer-legal { text-align: right; }
.footer-legal p { max-width: 380px; margin: 12px 0 12px auto; color: #919eb8; font-size: 9px; }
.footer-legal small { color: #68758f; font-size: 8px; }
.footer-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #dce6f8; font-size: 9px; font-weight: 700; }
.footer-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 3px rgba(96,165,250,.14); }

/* Patient portal */
.patient-shell { min-height: 100vh; background: var(--bg); }
.patient-topbar { height: 70px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 max(20px, calc((100vw - 1160px)/2)); position: sticky; top: 0; z-index: 20; }
.patient-container { max-width: 1160px; margin: 0 auto; padding: 28px 20px 55px; }
.patient-welcome { background: linear-gradient(135deg,var(--surface-dark),var(--sidebar-2)); border-radius: 20px; padding: 25px; color: white; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; position: relative; }
.patient-welcome::before { content: ""; width: 210px; height: 210px; position: absolute; right: 30px; top: -64px; background: url('/static/brand/mark-master-inverse.svg') center / contain no-repeat; opacity: .07; pointer-events: none; }
.patient-welcome::after { content: ""; width: 260px; height: 260px; border-radius: 50%; position: absolute; right: -150px; top: -150px; background: rgba(96,165,250,.20); pointer-events: none; }
.patient-welcome > * { position: relative; z-index: 1; }
.patient-welcome h1 { margin: 0 0 7px; font-size: 29px; letter-spacing: -.045em; position: relative; z-index: 1; }
.patient-welcome p { margin: 0; color: #c4ccde; position: relative; z-index: 1; }
.patient-nav { display: flex; gap: 7px; padding: 17px 0; overflow-x: auto; }
.patient-nav button { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 8px 13px; font-weight: 650; font-size: 11px; white-space: nowrap; }
.patient-nav button.active { color: white; background: var(--primary); border-color: var(--primary); }
.appointment-ticket { border: 1px solid var(--line); border-radius: 15px; background: #fff; overflow: hidden; }
.ticket-date { background: var(--primary-soft); color: var(--primary-dark); padding: 13px; text-align: center; min-width: 90px; }
.ticket-day { font-size: 28px; line-height: 1; font-weight: 800; }
.ticket-month { font-size: 10px; text-transform: uppercase; font-weight: 750; }
.ticket-body { padding: 14px 16px; flex: 1; }
.ticket-actions { display: flex; gap: 7px; padding: 13px; align-items: center; }
.treatment-visual { border: 1px solid var(--line); border-radius: 15px; padding: 16px; background: #fff; }
.payment-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 13px; }
.payment-stat { background: var(--surface-soft); border-radius: 11px; padding: 11px; }
.payment-stat span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.payment-stat strong { display: block; margin-top: 4px; }

/* Responsive */
@media (max-width: 1180px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .topbar-patient-search { width: min(290px,28vw); }
  .workspace-identity { display: none; }
  .public-hero-inner { gap: 30px; }
  .workflow { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .workflow-step:nth-child(3)::after { display: none; }
  .editorial-layout, .patient-story-layout { gap: 38px; }
  .patient-story-media { padding-right: 80px; }
}
@media (max-width: 980px) {
  .today-command { grid-template-columns: 1fr; }
  .appointment-booking-layout { grid-template-columns: 1fr; }
  .appointment-occupancy { position: static; }
  .template-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim:not([hidden]) { position: fixed; inset: 0; z-index: 29; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(10,20,42,.42); backdrop-filter: blur(2px); }
  .app-main { grid-column: 1; }
  .mobile-menu { display: inline-flex; }
  .page-container { padding: 22px 20px 45px; }
  .topbar { padding: 0 20px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .layout-main-aside, .layout-aside-main { grid-template-columns: 1fr; }
  .dashboard-today-agenda { height: auto; }
  .login-screen { grid-template-columns: 1fr; }
  .login-showcase { min-height: 380px; padding: 35px; }
  .public-hero-inner { grid-template-columns: 1fr; }
  .hero-product { max-width: 670px; margin: 0 auto; }
  .booking-wrap { grid-template-columns: 1fr; }
  .evidence-layout { grid-template-columns: 1fr; }
  .private-model-layout, .pilot-layout { grid-template-columns: 1fr; }
  .ownership-map { max-width: 760px; }
  .editorial-layout, .patient-story-layout, .clinical-visuals { grid-template-columns: 1fr; }
  .editorial-copy, .patient-story-copy { order: -1; }
  .screen-duo { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .editorial-photo { max-width: 760px; }
  .patient-story-media { width: min(760px,100%); margin: 0 auto; }
  .technology-photo img { min-height: 330px; max-height: 460px; }
  .booking-copy { position: static; }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .public-links { display: none; }
  .public-menu-btn { display: inline-flex; }
  .clinic-hero-grid, .clinic-process-grid, .clinic-portal-grid, .clinic-location-grid { grid-template-columns: 1fr; }
  .clinic-entry-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .clinic-reassurance-grid > div:first-child { padding-left: 20px; }
  .clinic-reassurance-grid > div:last-child { padding-right: 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; text-align: left; }
  .footer-legal p { margin-left: 0; }
  .inbox-layout { grid-template-columns: 280px 1fr; }
}
@media (max-width: 720px) {
  .btn, .btn-sm, .icon-btn, .patient-nav button, .tab-btn, .section-switcher-btn { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .sidebar-logout { width: 44px; height: 44px; flex-basis: 44px; }
  .input, .select, .textarea, .topbar-patient-search > input, .chat-compose .input { font-size: 16px; }
  .input, .select { min-height: 44px; height: 44px; }
  .patient-list-toolbar, .patient-filter-controls { width: 100%; align-items: stretch; }
  .patient-filter-controls { flex-direction: column; }
  .patient-filter-controls .search-box, .patient-insurance-filter { width: 100%; max-width: none; }
  #patientResultCount { align-self: flex-start; margin: 0; }
  .checkbox-row { min-height: 44px; align-items: center; }
  .tooth-fdi-number { min-width: 44px; height: 44px; border: 1px solid #dce4ef; border-radius: 10px; background: #f8fafc; font-size: 12px; }
  .modal-foot { flex-wrap: wrap; padding-right: max(14px, env(safe-area-inset-right)); padding-bottom: max(14px, env(safe-area-inset-bottom)); padding-left: max(14px, env(safe-area-inset-left)); }
  .bar-row { grid-template-columns: minmax(72px,.85fr) minmax(52px,1.5fr) auto; gap: 8px; }
  .patient-container .card > .row-between { align-items: flex-start; flex-wrap: wrap; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .form-field.span-2, .form-field.span-3 { grid-column: span 1; }
  .clinical-section-grid, .clinical-demographic-grid, .template-catalog { grid-template-columns: 1fr; }
  .medical-flag-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .occupancy-grid { grid-template-columns: repeat(3,minmax(62px,1fr)); }
  .occupancy-appointment { grid-template-columns: 72px 1fr; }
  .occupancy-appointment .badge { grid-column: 2; justify-self: start; }
  .page-head { flex-direction: column; }
  .page-actions { width: 100%; }
  .topbar-title { font-size: 15px; }
  .topbar-breadcrumb, .demo-badge, .workspace-identity { display: none; }
  .topbar-patient-search { width: min(250px,45vw); }
  .help-task-grid { grid-template-columns: 1fr; }
  .section-switcher { width: 100%; }
  .today-command-actions { grid-template-columns: 1fr; }
  .today-summary { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 12px; }
  .today-summary > div:nth-child(2) { border-right: 0; }
  .today-summary > div:nth-child(3) { padding-left: 0; }
  .management-summary-body { align-items: flex-start; flex-direction: column; }
  .login-showcase { min-height: 310px; padding: 28px 22px; }
  .login-copy h1 { font-size: 43px; }
  .login-features { display: none; }
  .workspace-assurance { grid-template-columns: auto 1fr; }
  .workspace-private-badge { grid-column: 2; justify-self: start; }
  .login-panel { padding: 30px 20px; }
  .public-nav { padding: 0 16px; }
  .public-actions .btn-secondary { display: none; }
  .public-hero { padding: 55px 18px 50px; }
  .public-hero h1 { font-size: 48px; }
  .product-window-label { display: none; }
  .brand-trace { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .brand-trace i { display: none; }
  .brand-trace span { border-left: 2px solid var(--aqua); padding-left: 7px; }
  .public-section { padding: 62px 18px; }
  .clinic-hero { padding: 58px 18px 52px; }
  .clinic-hero-copy h1 { font-size: 50px; }
  .clinic-hero-copy > p { font-size: 15px; }
  .clinic-entry-panel { grid-template-columns: 1fr; margin-top: 6px; }
  .clinic-entry-card { padding: 23px; }
  .clinic-reassurance-grid { grid-template-columns: 1fr; }
  .clinic-reassurance-grid > div { padding: 19px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .clinic-reassurance-grid > div:first-child { padding-left: 0; }
  .clinic-reassurance-grid > div:last-child { padding-right: 0; border-bottom: 0; }
  .clinic-reassurance { padding: 0 18px; }
  .clinic-services { grid-template-columns: 1fr; }
  .clinic-services article, .clinic-services article:first-child, .clinic-services article:last-child { min-height: 0; padding: 25px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .clinic-services article:last-child { border-bottom: 0; }
  .clinic-services h3 { margin-top: 24px; }
  .clinic-portal-features { grid-template-columns: 1fr; }
  .clinic-location-grid { gap: 34px; }
  .feature-grid, .faq-grid { grid-template-columns: 1fr; }
  .readiness-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .screen-stage { border-radius: 14px; }
  .screen-stage figcaption { align-items: flex-start; flex-direction: column; gap: 3px; }
  .screen-stage figcaption small { margin-left: 0; white-space: normal; }
  .editorial-copy h2, .patient-story-copy h2 { font-size: 38px; }
  .editorial-points > div { grid-template-columns: 28px 1fr; }
  .editorial-points p { grid-column: 2; }
  .clinical-visuals { margin-top: 32px; }
  .patient-story-media { min-height: 500px; padding: 18px 62px 52px 0; }
  .patient-guidance-photo img { min-height: 430px; }
  .portal-phone { width: min(195px,47vw); border-radius: 25px; }
  .portal-phone picture { border-radius: 19px; }
  .patient-benefits li { grid-template-columns: 9px 1fr; }
  .patient-benefits span { grid-column: 2; }
  .workflow { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workflow-step::after { display: none; }
  .ownership-map { padding: 19px; }
  .ownership-spaces { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ownership-line { width: 75%; }
  .ownership-space.active { transform: none; }
  .pilot-card-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .pilot-form { padding: 18px; }
  .product-window-body { grid-template-columns: 60px 1fr; min-height: 320px; }
  .product-kpis { grid-template-columns: repeat(2,1fr); }
  .product-kpi:last-child { display: none; }
  .floating-card { display: none; }
  .slot-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-legal { grid-column: auto; }
  .footer-links { max-width: 360px; }
  .patient-welcome { align-items: flex-start; flex-direction: column; }
  .appointment-ticket .row { align-items: stretch; }
  .ticket-actions { flex-direction: column; align-items: stretch; }
  .payment-summary { grid-template-columns: 1fr; }
  .inbox-layout { grid-template-columns: 1fr; }
  .inbox-list { max-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .modal-backdrop { padding: 8px; align-items: end; }
  .modal { max-height: 95vh; border-radius: 18px 18px 0 0; }
  .modal-clinical .modal-head, .modal-clinical .modal-body, .modal-clinical .modal-foot { padding-left: 16px; padding-right: 16px; }
  .modal-clinical .modal-title { font-size: 20px; }
  .patient-tab-heading { align-items: stretch; flex-direction: column; }
  .patient-tab-heading .btn { width: 100%; }
  .patient-banner { align-items: stretch; flex-direction: column; }
  .patient-banner > .identity { align-items: flex-start; }
  .patient-banner > .page-actions { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .patient-banner > .page-actions .btn { width: 100%; min-width: 0; padding-left: 8px; padding-right: 8px; white-space: normal; }
  .agenda-toolbar, .date-switcher { width: 100%; }
  .date-chip { min-width: 0; flex: 1; }
  .next-gap-button { width: 100%; }
  .agenda-use-hint { align-items: flex-start; }
  .schedule.single-provider .schedule-head, .schedule.single-provider .schedule-row { grid-template-columns: 64px minmax(0,1fr); }
  .schedule.single-provider .schedule-head-cell { padding: 10px; }
  .schedule-time { padding-left: 5px; padding-right: 7px; }
  .occupancy-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .occupancy-slot { min-height: 52px; }
}

@media (max-width: 600px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .topbar-left > div { display: none; }
  .topbar-patient-search { width: auto; flex: 1; margin-left: 0; }
  .topbar-right > a { display: none; }
  .public-actions > .btn { display: none; }
  .public-brand .brand-word small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn:hover, .product-window { transform: none; }
}

/* Public consultation intake */
.intake-body { min-height: 100vh; background: #edf3fb; }
.intake-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px,.82fr) minmax(560px,1.18fr); }
.intake-story {
  position: sticky; top: 0; height: 100vh; overflow: hidden; padding: clamp(30px,5vw,74px);
  display: flex; flex-direction: column; color: #fff; background: #111c36;
}
.intake-story::before {
  content: ""; position: absolute; width: min(54vw,720px); aspect-ratio: 1; left: -34%; bottom: -31%;
  background: url('/static/brand/mark-master-inverse.svg') center / contain no-repeat; opacity: .045; transform: rotate(9deg);
}
.intake-story::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg,transparent 54%,rgba(96,165,250,.09));
}
.intake-brand, .intake-story-copy, .intake-route, .intake-trust { position: relative; z-index: 1; }
.intake-brand { display: flex; align-items: center; gap: 12px; }
.intake-brand > span { display: flex; flex-direction: column; min-width: 0; }
.intake-brand strong { font-family: var(--font-display); font-size: 16px; letter-spacing: -.02em; }
.intake-brand small { color: #9eacc6; font-size: 11px; }
.intake-story-copy { margin: auto 0 38px; max-width: 660px; }
.intake-kicker, .intake-file-label { color: #60a5fa; font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.intake-story h1 { margin: 20px 0; font-size: clamp(45px,5.1vw,76px); line-height: .96; letter-spacing: -.065em; }
.intake-story h1 em { color: #93c5fd; font-style: normal; font-weight: 500; }
.intake-story-copy > p { margin: 0; max-width: 560px; color: #b5c1d6; font-size: 16px; }
.intake-route { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 0; }
.intake-route li { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 12px; min-height: 60px; color: #73829e; }
.intake-route li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: 4px; width: 1px; background: #344462; }
.intake-route li > span { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid #405170; border-radius: 50%; font-size: 11px; font-weight: 800; }
.intake-route li strong, .intake-route li small { display: block; }
.intake-route li strong { padding-top: 2px; color: #8c9ab2; font-size: 13px; }
.intake-route li small { margin-top: 2px; font-size: 11px; }
.intake-route li.active > span, .intake-route li.complete > span { border-color: #60a5fa; background: rgba(96,165,250,.12); color: #bfdbfe; }
.intake-route li.active strong, .intake-route li.complete strong { color: #fff; }
.intake-route li.complete:not(:last-child)::after { background: #60a5fa; }
.intake-trust { display: flex; align-items: flex-start; gap: 11px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.11); color: #8f9db7; font-size: 11px; }
.intake-trust > span { color: #60a5fa; font-size: 18px; }
.intake-trust p { margin: 0; }
.intake-workspace { min-height: 100vh; padding: clamp(30px,6vw,86px); display: grid; place-items: center; }
.intake-card, .intake-result, .intake-gate { width: min(100%,760px); }
.intake-card { padding: clamp(26px,4.2vw,52px); border: 1px solid #d9e2ef; border-radius: 24px; background: #fff; box-shadow: 0 26px 80px rgba(17,28,54,.12); }
.intake-card-head { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.intake-card-head h2 { margin: 8px 0 4px; font-size: 30px; letter-spacing: -.045em; }
.intake-card-head p { margin: 0; color: var(--muted); }
.intake-section { min-width: 0; margin: 0; padding: 28px 0; border: 0; border-bottom: 1px solid var(--line); }
.intake-section legend { width: 100%; margin-bottom: 17px; padding: 0; display: flex; align-items: center; gap: 9px; color: #26334b; font-family: var(--font-display); font-size: 16px; font-weight: 750; }
.intake-section legend span { color: var(--primary); font-family: ui-monospace,monospace; font-size: 10px; letter-spacing: .08em; }
.intake-emergency { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 22px 0 14px; padding: 13px 15px; border-left: 3px solid var(--warning); background: var(--warning-soft); color: #715029; font-size: 12px; }
.intake-emergency strong { color: #5d3a10; }
.intake-consent { padding: 7px 0 14px; color: #4d5870; }
.intake-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.intake-error { min-height: 20px; margin-bottom: 7px; color: var(--danger); font-size: 12px; }
.intake-submit { min-height: 54px; border-radius: 13px; }
.intake-footnote { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.intake-gate { min-height: 260px; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); }
.intake-gate p { margin: 0; }
.intake-gate-error { max-width: 460px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: center; box-shadow: var(--shadow-md); }
.intake-gate-error strong { display: block; color: var(--text); font-size: 18px; }
.intake-gate-error p { margin: 8px 0; }
.intake-gate-error span { font-size: 11px; }
.intake-result { padding: clamp(32px,5vw,58px); border: 1px solid #cfe3dc; border-radius: 24px; background: #fff; box-shadow: 0 26px 80px rgba(17,28,54,.12); text-align: center; }
.intake-result-mark { width: 62px; height: 62px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 20px; background: var(--success-soft); color: var(--success); font-size: 29px; }
.intake-result h2 { margin: 10px auto; max-width: 520px; font-size: clamp(29px,4vw,42px); line-height: 1.02; letter-spacing: -.05em; }
.intake-result > p { max-width: 500px; margin: 0 auto; color: var(--muted); }
.intake-result-detail { margin-top: 26px; padding: 16px; border-radius: 13px; background: var(--surface-soft); text-align: left; }
.intake-result-detail span, .intake-result-detail strong { display: block; }
.intake-result-detail span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.intake-result-detail strong { margin-top: 4px; }

@media (max-width: 980px) {
  .intake-shell { grid-template-columns: 1fr; }
  .intake-story { position: relative; height: auto; min-height: 0; padding: 28px 24px 32px; }
  .intake-story-copy { margin: 62px 0 30px; }
  .intake-story h1 { font-size: clamp(42px,9vw,68px); }
  .intake-route { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 24px; }
  .intake-route li { grid-template-columns: 34px 1fr; min-height: 0; }
  .intake-route li:not(:last-child)::after { display: none; }
  .intake-route li small { display: none; }
  .intake-workspace { min-height: auto; padding: 36px 20px 58px; }
}

@media (min-width: 981px) and (max-height: 820px) {
  .intake-story { padding: 28px 48px; }
  .intake-story-copy { margin: auto 0 20px; }
  .intake-story h1 { margin: 14px 0 16px; font-size: clamp(42px,4.3vw,58px); }
  .intake-story-copy > p { font-size: 14px; }
  .intake-route { margin-bottom: 18px; }
  .intake-route li { min-height: 48px; }
  .intake-trust { padding-top: 12px; }
}

@media (max-width: 620px) {
  .intake-story { padding: 22px 18px 28px; }
  .intake-brand strong { font-size: 14px; }
  .intake-story-copy { margin-top: 48px; }
  .intake-story h1 { font-size: 43px; }
  .intake-story-copy > p { font-size: 14px; }
  .intake-route { grid-template-columns: 1fr; gap: 5px; }
  .intake-route li { min-height: 43px; }
  .intake-route li small { display: block; }
  .intake-workspace { padding: 24px 12px 42px; align-items: start; }
  .intake-card, .intake-result { padding: 24px 18px; border-radius: 18px; }
  .intake-card-head h2 { font-size: 26px; }
  .intake-section { padding: 23px 0; }
  .intake-emergency { grid-template-columns: 1fr; }
}
