.clinic-branding-access{gap:var(--space-4);border:1px solid var(--surface-border);border-radius:var(--radius-lg);padding:var(--space-4);background:var(--surface-muted);display:grid;position:relative;overflow:hidden}.clinic-branding-access>header{gap:var(--space-1);display:grid}.clinic-branding-access>header strong{color:var(--ink);font-size:var(--title-card)}.clinic-branding-access>header small{color:var(--muted);font-size:var(--text-small);line-height:1.75}.clinic-branding-access fieldset{align-items:center;gap:var(--space-3);border:0;grid-template-columns:minmax(180px,.5fr) minmax(0,1fr) minmax(220px,.55fr);min-width:0;margin:0;padding:0;display:grid}.clinic-branding-name-preview{align-content:center;gap:var(--space-2);border:1px solid var(--surface-border);border-radius:var(--radius-md);min-height:84px;padding:var(--space-4);background:var(--surface);display:grid}.clinic-branding-name-preview span{color:var(--muted);font-size:var(--text-small)}.clinic-branding-name-preview strong{color:var(--ink);font-size:var(--text-body)}.clinic-branding-access .clinic-logo-control{grid-column:auto}.clinic-branding-access.is-locked fieldset{filter:blur(5px);opacity:.48;pointer-events:none;-webkit-user-select:none;user-select:none}.clinic-branding-lock{z-index:2;align-content:center;place-items:center;gap:var(--space-3);padding:var(--space-5);text-align:center;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#ffffff70;display:grid;position:absolute;inset:0}.clinic-branding-lock>span{border:1px solid var(--surface-border);border-radius:var(--radius-md);width:42px;height:42px;color:var(--brand);background:var(--surface);box-shadow:var(--shadow-sm);place-items:center;font-size:1.35rem;display:grid}.clinic-branding-lock p{max-width:54ch;color:var(--ink);font-size:var(--text-body);margin:0;font-weight:500;line-height:1.85}.clinic-branding-lock button{min-height:var(--control-height);border-radius:var(--radius-button);padding-inline:var(--space-5);color:#fff;background:var(--brand);box-shadow:var(--shadow-sm);cursor:pointer;font:inherit;font-size:var(--text-control);border:0;font-weight:500}.clinic-branding-lock button:hover{background:var(--brand-hover)}.clinic-branding-lock button:focus-visible{box-shadow:var(--focus-ring);outline:0}.clinic-theme-scope[data-clinic-theme=dark] .clinic-branding-lock{background:#07111b85}@media (max-width:760px){.clinic-branding-access fieldset{grid-template-columns:1fr}.clinic-branding-lock{padding:var(--space-4)}.clinic-branding-lock button{width:100%}}@media (prefers-reduced-motion:reduce){.clinic-branding-lock button{transition:none}}.clinic-settings-minimal,.clinic-settings-minimal__form{gap:var(--section-gap);display:grid}.clinic-settings-minimal__section{gap:var(--space-5);display:grid}.clinic-settings-minimal__section>header{border-bottom:1px solid var(--surface-border);padding-bottom:var(--space-3)}.clinic-settings-minimal__section h2{color:var(--ink);font-size:var(--title-card);margin:0;line-height:1.5}.clinic-settings-minimal__grid{gap:var(--space-4);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.clinic-settings-minimal__grid>label{gap:var(--space-2);min-width:0;color:var(--ink-soft);font-size:var(--text-small);font-weight:500;display:grid}.clinic-settings-minimal__grid>label.is-wide{grid-column:1/-1}.clinic-settings-minimal__grid :is(input,select,textarea){width:100%;min-width:0;min-height:var(--field-height);border:1px solid var(--field-border);border-radius:var(--radius-field);padding:0 var(--space-3);color:var(--ink);background:var(--field-bg);box-shadow:var(--field-shadow);font:inherit;font-size:var(--text-control)}.clinic-settings-minimal__grid textarea{min-height:112px;padding-block:var(--space-3);resize:vertical;line-height:1.8}.clinic-settings-minimal__grid :is(input,select,textarea):focus{border-color:var(--brand);box-shadow:var(--field-focus-shadow);outline:0}.clinic-settings-minimal__grid small{color:var(--muted);font-size:var(--text-compact);font-weight:400;line-height:1.7}.clinic-settings-minimal__toggles{gap:var(--space-3);grid-template-columns:minmax(0,1fr);display:grid}.clinic-settings-minimal .clinic-branding-access{margin-top:var(--space-2)}.clinic-settings-minimal__hint{color:var(--muted);font-size:var(--text-small);margin:0;line-height:1.8}.clinic-settings-minimal__summary{gap:var(--space-3);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.clinic-settings-minimal__summary article{align-content:center;gap:var(--space-1);border:1px solid var(--surface-border);border-radius:var(--radius-md);min-height:92px;padding:var(--space-4);background:var(--surface-muted);display:grid}.clinic-settings-minimal__summary strong{color:var(--ink);font-size:var(--title-card);font-weight:500}.clinic-settings-minimal__summary span{color:var(--muted);font-size:var(--text-small)}.clinic-settings-minimal__data-actions{justify-content:flex-start}.clinic-settings-minimal__save{z-index:5;bottom:var(--space-3);justify-content:space-between;align-items:center;gap:var(--space-4);border:1px solid var(--surface-border);border-radius:var(--radius-lg);padding:var(--space-3) var(--space-4);background:var(--surface-bg);box-shadow:var(--shadow-md);display:flex;position:sticky}.clinic-settings-minimal__save>span{min-width:0;color:var(--muted);font-size:var(--text-small)}.clinic-settings-minimal__save .ds-action{min-width:164px}.clinic-app-about__layout{align-items:stretch;gap:var(--space-5);grid-template-columns:minmax(0,1fr) minmax(176px,.3fr);display:grid}.clinic-app-about__content{gap:var(--space-4);min-width:0;display:grid}.clinic-app-about__identity{align-items:center;gap:var(--space-3);min-width:0;display:flex}.clinic-app-about__logo{border:1px solid var(--surface-border);border-radius:var(--radius-md);width:54px;height:54px;padding:var(--space-2);background:var(--surface-muted);flex:none;place-items:center;display:grid}.clinic-app-about__logo img{object-fit:contain;width:100%;height:100%}.clinic-app-about__identity>div{gap:var(--space-1);min-width:0;display:grid}.clinic-app-about__identity strong{color:var(--ink);font-size:var(--title-card);letter-spacing:.04em;text-align:start;font-weight:500}.clinic-app-about__identity span{color:var(--muted);font-size:var(--text-small);line-height:1.7}.clinic-app-about__details{gap:var(--space-3) var(--space-5);border-top:1px solid var(--surface-border);padding-top:var(--space-4);grid-template-columns:repeat(2,minmax(0,1fr));margin:0;display:grid}.clinic-app-about__details>div{gap:var(--space-1);text-align:start;min-width:0;display:grid}.clinic-app-about__details dt{color:var(--muted);font-size:var(--text-compact)}.clinic-app-about__details dd{color:var(--ink);font-size:var(--text-small);text-align:start;margin:0;font-weight:500;line-height:1.7}.clinic-app-about__seal{align-content:center;justify-items:start;gap:var(--space-3);border:1px solid var(--surface-border);border-radius:var(--radius-md);min-width:0;padding:var(--space-4);background:var(--surface-muted);text-align:start;display:grid}.clinic-app-about__seal>span{color:var(--muted);font-size:var(--text-compact)}.clinic-app-about__seal a{border-radius:var(--radius-field);min-height:42px;color:var(--brand);outline-offset:3px;place-items:center;text-decoration:none;display:grid}.clinic-app-about__seal a:focus-visible{outline:3px solid rgba(var(--brand-rgb),.22)}.clinic-app-about__seal strong{font-size:var(--text-small);font-weight:500;line-height:1.7}.clinic-app-about__seal img{object-fit:contain;width:96px;height:96px;display:block}@media (max-width:700px){.clinic-settings-minimal__grid,.clinic-settings-minimal__summary,.clinic-app-about__layout{grid-template-columns:1fr}.clinic-settings-minimal__grid>label.is-wide{grid-column:auto}.clinic-settings-minimal__save{flex-direction:column;align-items:stretch}.clinic-settings-minimal__save .ds-action{width:100%}.clinic-app-about__seal{justify-items:start}}@media (max-width:420px){.clinic-app-about__details{grid-template-columns:1fr}}
.admin-clinic-modal{scrollbar-gutter:stable;gap:14px;width:min(760px,100vw - 40px);max-height:calc(100dvh - 40px);padding:clamp(20px,2.4vw,28px)}.admin-clinic-modal>header{border-bottom:1px solid rgba(var(--brand-rgb), .1);align-items:center;padding-bottom:14px}.admin-clinic-modal>header h2{font-size:clamp(1.2rem,2vw,1.55rem);line-height:1.4}.admin-clinic-modal>header p{color:var(--muted);font-size:var(--text-small);margin:4px 0 0}.admin-clinic-modal>header button{border-radius:12px;width:40px;height:40px;font-size:1.4rem}.admin-capability-panel{border:1px solid rgba(var(--brand-rgb), .18);background:#f8fbfd;border-radius:18px;gap:14px;padding:18px;display:grid}.admin-capability-panel>header{background:0 0;align-items:flex-start;padding:0;position:static}.admin-capability-panel>header span{color:var(--brand);font-size:var(--text-compact);font-weight:500}.admin-capability-panel h3{margin:3px 0 0;font-size:1rem;line-height:1.55}.admin-capability-panel header p{color:var(--muted);font-size:var(--text-small);margin:4px 0 0;line-height:1.7}.admin-capability-state{color:#6b7680;font-size:var(--text-compact);background:#e9eef1;border-radius:999px;flex:none;padding:5px 10px;font-weight:500}.admin-capability-state.is-active{color:#15704a;background:#e3f4eb}.admin-capability-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.admin-capability-grid label{cursor:pointer;background:#fff;border:1px solid #dde4ea;border-radius:14px;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:12px;min-height:82px;padding:13px 14px;display:grid;position:relative}.admin-capability-grid input{opacity:0;position:absolute}.admin-capability-grid span{gap:4px;display:grid}.admin-capability-grid strong{font-size:var(--text-body);line-height:1.6}.admin-capability-grid small{color:var(--muted);font-size:var(--text-small);line-height:1.65}.admin-capability-grid i{background:#cfd7dc;border-radius:999px;width:44px;height:26px;transition:all .2s;position:relative}.admin-capability-grid i:after{top:3px;content:"";background:#fff;border-radius:50%;width:20px;height:20px;transition:all .2s;position:absolute;inset-inline-start:3px;box-shadow:0 2px 6px #14222d33}.admin-capability-grid input:checked~i{background:var(--brand)}.admin-capability-grid input:checked~i:after{transform:translate(18px)}[dir=rtl] .admin-capability-grid input:checked~i:after{transform:translate(-18px)}.admin-capability-grid input:focus-visible~i{outline:3px solid rgba(var(--brand-rgb), .2);outline-offset:2px}.admin-capability-footer{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;display:grid}.admin-capability-footer label{gap:6px;display:grid}.admin-capability-footer label span{font-size:var(--text-small);font-weight:500}.admin-capability-footer input{background:#fff;border:1px solid #dce2e7;border-radius:12px;min-height:46px;padding-inline:13px}.admin-clinic-disclosure{background:#fff;border:1px solid #e2e8ec;border-radius:14px}.admin-clinic-disclosure>summary{min-height:48px;color:var(--ink-soft);cursor:pointer;font-size:var(--text-small);justify-content:space-between;align-items:center;padding:0 15px;font-weight:500;list-style:none;display:flex}.admin-clinic-disclosure>summary::-webkit-details-marker{display:none}.admin-clinic-disclosure>summary:after{color:var(--muted);content:"+";font-size:1.1rem}.admin-clinic-disclosure[open]>summary:after{content:"−"}.admin-clinic-disclosure[open]>summary{border-bottom:1px solid #e8edf0}.admin-clinic-disclosure>section,.admin-clinic-disclosure>form{margin:14px}.admin-clinic-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.admin-clinic-facts>div{background:#f7f9fa;border-radius:10px;gap:3px;padding:10px 12px;display:grid}.admin-clinic-facts .wide{grid-column:1/-1}.admin-clinic-facts span{color:var(--muted);font-size:var(--text-compact)}.admin-clinic-facts strong,.admin-clinic-facts bdi{overflow-wrap:anywhere;color:var(--ink-soft);font-size:var(--text-small)}.admin-platform-license-summary{justify-content:space-between;align-items:center;gap:12px;display:flex}.admin-platform-license-summary>div{gap:3px;display:grid}.admin-platform-license-summary span,.admin-platform-license-summary small{color:var(--muted);font-size:var(--text-compact)}.admin-platform-license-summary strong{font-size:var(--text-small)}.admin-patient-section{gap:12px;display:grid}.admin-patient-section>header{background:0 0;align-items:center;padding:0;position:static}.admin-patient-section>header span{color:var(--muted);font-size:var(--text-compact)}.admin-patient-section h3{color:var(--ink-soft);margin:3px 0 0;font-size:.9rem}.admin-patient-section>header>strong{color:var(--brand);font-size:var(--text-small)}.admin-patient-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.admin-patient-card{background:#fff;border:1px solid #e6ebef;border-radius:12px;min-width:0;overflow:hidden}.admin-patient-card>header{background:#f7f9fa;align-items:center;padding:10px 11px;position:static}.admin-patient-card>header>div{gap:3px;display:grid}.admin-patient-card>header strong{color:var(--ink-soft);font-size:var(--text-small)}.admin-patient-card>header small{color:var(--muted);font-size:var(--text-compact)}.admin-patient-card dl{flex-wrap:wrap;gap:8px 16px;margin:0;padding:10px 11px;display:flex}.admin-patient-card dl div{gap:2px;display:grid}.admin-patient-card dt{color:var(--muted);font-size:var(--text-compact)}.admin-patient-card dd{color:var(--ink-soft);font-size:var(--text-small);margin:0;font-weight:500}.admin-capture-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0 10px 10px;display:grid}.admin-capture-grid figure{background:#f7f9fb;border:1px solid #e6ebef;border-radius:10px;min-width:0;margin:0;display:grid;overflow:hidden}.admin-capture-grid img{aspect-ratio:16/9;object-fit:cover;background:#eee;width:100%}.admin-capture-grid figcaption{gap:2px;padding:6px 7px;display:grid}.admin-capture-grid figcaption span{color:var(--ink-soft);font-size:var(--text-compact);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.admin-capture-grid figcaption b{color:var(--brand);font-size:var(--text-compact)}.admin-capture-grid figure>div{flex-wrap:wrap;gap:4px;padding:0 7px 7px;display:flex}.admin-capture-grid figure>div small{color:#677179;font-size:var(--text-compact);background:#ebf0f4;border-radius:6px;padding:3px 5px}.admin-clinic-status-form{border:0;padding:0}@media (max-width:620px){.admin-modal-backdrop{padding:10px}.admin-clinic-modal{border-radius:18px;width:100%;max-height:calc(100dvh - 20px);padding:16px}.admin-capability-panel{padding:14px}.admin-capability-panel>header{gap:10px}.admin-capability-grid,.admin-capability-footer,.admin-clinic-facts,.admin-patient-list,.admin-capture-grid{grid-template-columns:1fr}.admin-clinic-facts .wide{grid-column:auto}.admin-capability-footer .admin-primary{width:100%}.admin-platform-license-summary{flex-direction:column;align-items:stretch}}
.clinic-theme-scope{min-height:100dvh}.clinic-theme-scope[data-clinic-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:radial-gradient(circle at 12% 10%,rgba(var(--brand-rgb),.15),transparent 30rem), radial-gradient(circle at 88% 82%,rgba(var(--accent-rgb),.09),transparent 27rem), linear-gradient(145deg,#050e17 0%,#091824 54%,#06121d 100%);background-size:125% 125%,135% 135%,100% 100%;animation:18s ease-in-out infinite alternate clinic-dark-ambient}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-console,.clinic-record-page,.clinic-trend-page,.analysis-state-page,.analysis-results-page,.clinic-followup-page,.clinic-record-state,.clinic-workflow,.clinic-license-gate){color:var(--ink);background:0 0}.clinic-theme-scope[data-clinic-theme=dark] :is(.admin-sidebar,.patient-record-sidebar){border-color:var(--surface-border);-webkit-backdrop-filter:blur(28px)saturate(1.12);backdrop-filter:blur(28px)saturate(1.12);background:#05111bdb;box-shadow:14px 0 42px #0000004d}.clinic-theme-scope[data-clinic-theme=dark] :is(.admin-topbar,.clinic-record-topbar,.analysis-results-topbar,.clinic-workflow-header){border-color:var(--surface-border);-webkit-backdrop-filter:blur(24px)saturate(1.1);backdrop-filter:blur(24px)saturate(1.1);background:#06141fb8;box-shadow:0 12px 34px #00000029}.clinic-theme-scope[data-clinic-theme=dark] :is(.panel-sidebar-brand__copy strong,.admin-person strong,.clinic-topbar-context strong,h1,h2,h3,h4,strong){color:var(--ink)}.clinic-theme-scope[data-clinic-theme=dark] :is(.admin-nav-label,.panel-sidebar-brand__label,.admin-person small,.clinic-topbar-context small,p,small){color:var(--muted)}.clinic-theme-scope[data-clinic-theme=dark] :is(.panel-nav-icon,.admin-logout,.clinic-topbar-context>span,.admin-search,.admin-secondary,.secondary-action,.ds-action--secondary,.admin-row-action,.analysis-results-topbar nav>a){border-color:var(--surface-border);color:var(--ink-soft);box-shadow:var(--shadow-xs);background:#0d1f2bc7}.clinic-theme-scope[data-clinic-theme=dark] :is(.admin-nav button,.support-sidebar .admin-nav button):hover{color:var(--brand);background:rgba(var(--brand-rgb),.09)}.clinic-theme-scope[data-clinic-theme=dark] :is(.admin-nav button,.support-sidebar .admin-nav button).active{border-color:rgba(var(--brand-rgb),.24);color:var(--ink);background:linear-gradient(90deg,rgba(var(--brand-rgb),.18),rgba(var(--brand-rgb),.07));box-shadow:inset 0 0 22px rgba(var(--brand-rgb),.04)}.clinic-theme-scope[data-clinic-theme=dark] .admin-nav button.active .panel-nav-icon{border-color:rgba(var(--brand-rgb),.5);color:var(--ink);background:rgba(var(--brand-rgb),.2);box-shadow:0 0 20px rgba(var(--brand-rgb),.14)}.clinic-theme-scope[data-clinic-theme=dark] .language-switcher{border-color:rgba(var(--brand-rgb),.2);color:var(--ink-soft);box-shadow:var(--shadow-xs);-webkit-backdrop-filter:blur(18px)saturate(1.12);backdrop-filter:blur(18px)saturate(1.12);background:#0b1d29db}.clinic-theme-scope[data-clinic-theme=dark] .language-switcher:hover{border-color:rgba(var(--brand-rgb),.42);color:var(--ink);background:#102736f5}.clinic-theme-scope[data-clinic-theme=dark] .language-switcher svg{color:var(--brand)}.clinic-theme-scope[data-clinic-theme=dark] .language-flag{background:#edf8ff17;box-shadow:inset 0 0 0 1px #edf8ff14}.clinic-theme-scope[data-clinic-theme=dark] .clinic-theme-toggle{border-color:rgba(var(--brand-rgb),.24);color:#e7f7ff;-webkit-backdrop-filter:blur(18px)saturate(1.12);backdrop-filter:blur(18px)saturate(1.12);background:#0b1d29e0;box-shadow:0 0 0 1px #ffffff05,0 8px 22px #0003}.clinic-theme-scope[data-clinic-theme=dark] .clinic-theme-toggle:hover{border-color:rgba(var(--brand-rgb),.48);color:#fff;box-shadow:0 0 24px rgba(var(--brand-rgb),.15);background:#102736fa}.clinic-theme-scope[data-clinic-theme=dark] .clinic-theme-toggle__halo{background:radial-gradient(circle,rgba(var(--brand-rgb),.3),transparent 68%)}.clinic-theme-scope[data-clinic-theme=dark] :is(.ds-page-header,.ds-surface,.ds-card,.admin-kpis article,.admin-chart-card,.admin-alert-card,.admin-table-card,.clinic-overview-hero,.clinic-overview-privacy,.clinic-crm-card,.clinic-settings-hero,.clinic-settings-section,.clinic-module-placeholder,.patient-retention-metrics article,.patient-retention-guide,.patient-retention-workspace,.ticket-metric-grid article,.ticket-workspace,.ticket-index,.ticket-thread,.ticket-message,.clinic-license-gate>section,.clinic-license-card,.clinic-license-summary,.clinic-subscription-card){border-color:var(--surface-border);background:var(--surface-bg);box-shadow:var(--shadow-sm);-webkit-backdrop-filter:blur(22px)saturate(1.1);backdrop-filter:blur(22px)saturate(1.1)}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-activity-summary>div,.clinic-crm-followup a,.clinic-crm-legend>div,.clinic-crm-journey section,.clinic-settings-local-hint,.clinic-settings-readonly,.clinic-guide-setting,.clinic-guide-model-options>button,.clinic-logo-control,.clinic-logo-control>div,.clinic-settings-toggle,.clinic-settings-toggles>article,.clinic-license-summary article,.clinic-data-summary article,.clinic-entitlement-list article,.patient-retention-filters button,.ticket-index button,.ticket-empty,.ticket-thread-empty,.ticket-attachment-list a){border-color:var(--surface-border);color:var(--ink-soft);background:var(--surface-muted);box-shadow:var(--shadow-xs)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-console .admin-demo-banner{border-color:rgba(var(--brand-rgb),.2);color:var(--ink-soft);background:linear-gradient(120deg,rgba(var(--brand-rgb),.1),rgba(var(--accent-rgb),.07)),#091925e6;box-shadow:var(--shadow-xs)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-console .admin-demo-banner span{color:var(--ink-soft)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-console .admin-demo-banner b{color:#f3fbff;background:linear-gradient(135deg,var(--brand),var(--brand-deep));box-shadow:0 0 18px rgba(var(--brand-rgb),.14)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-crm-donut>div{border-color:var(--surface-border);background:#0d2230;box-shadow:inset 0 1px #ffffff09,0 8px 24px #00000038}.clinic-theme-scope[data-clinic-theme=dark] .clinic-crm-donut.is-empty{background:#95c2dc24}.clinic-theme-scope[data-clinic-theme=dark] .clinic-crm-legend span{color:var(--ink-soft)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-crm-legend strong{color:var(--ink)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-crm-legend small{color:var(--muted)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-activity-card>header>strong{color:var(--success);background:linear-gradient(145deg,#49c8a021,#0b1d29e6);border-color:#49c8a038;box-shadow:inset 0 1px #ffffff09,0 0 22px #49c8a00f}.clinic-theme-scope[data-clinic-theme=dark] .clinic-activity-card>header>strong small{color:#8fdcc4}.clinic-theme-scope[data-clinic-theme=dark] .clinic-week-chart{border-color:var(--surface-border);background:repeating-linear-gradient(0deg,#95c2dc12 0 1px,#0000 1px 48px),#05131d94;box-shadow:inset 0 1px #ffffff05}.clinic-theme-scope[data-clinic-theme=dark] .clinic-week-chart>div>strong{color:var(--ink-soft);box-shadow:0 6px 16px #0003,inset 0 0 0 1px var(--surface-border);background:#0e2331f2}.clinic-theme-scope[data-clinic-theme=dark] .clinic-week-chart>div>span{color:inherit;background:0 0;border-color:#0000}.clinic-theme-scope[data-clinic-theme=dark] .clinic-week-chart small{color:var(--muted)}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-settings-jump,.clinic-settings-save,.clinic-setup-actions){border-color:var(--surface-border);box-shadow:var(--shadow-md);-webkit-backdrop-filter:blur(26px)saturate(1.15);backdrop-filter:blur(26px)saturate(1.15);background:#071621e0}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-settings-section>header,.clinic-guide-model-preview,.patient-retention-table th,.patient-retention-table td,.admin-table th,.admin-table td,.ticket-thread-header,.ticket-composer,.ticket-thread-actions){border-color:var(--line)}.clinic-theme-scope[data-clinic-theme=dark] :is(.patient-retention-table th,.admin-table th){color:var(--muted);background:#081823bd}.clinic-theme-scope[data-clinic-theme=dark] :is(.patient-retention-table tbody tr:hover,.admin-table tbody tr:hover){background:rgba(var(--brand-rgb),.06)}.clinic-theme-scope[data-clinic-theme=dark] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){border-color:var(--field-border);color:var(--ink);background:var(--field-bg);box-shadow:var(--field-shadow)}.clinic-theme-scope[data-clinic-theme=dark] :is(input,textarea)::placeholder{color:#718c9d;opacity:1}.clinic-theme-scope[data-clinic-theme=dark] :is(input,select,textarea):focus{border-color:rgba(var(--brand-rgb),.5);box-shadow:var(--field-focus-shadow)}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-patients-launch,.clinic-overview-privacy-toggle,.clinic-record-link,.product-recommendation-actions>button,.product-alternatives-modal>header>button,.localized-date-trigger,.localized-calendar>footer button,.clinic-record-trend-action){border-color:var(--surface-border);color:var(--ink-soft);box-shadow:var(--shadow-xs);background:#0b1d29e0}.clinic-theme-scope[data-clinic-theme=dark] .clinic-record-link:hover{border-color:rgba(var(--brand-rgb),.36);color:var(--brand);background:rgba(var(--brand-rgb),.1);box-shadow:0 0 22px rgba(var(--brand-rgb),.09);transform:translateY(-1px)}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-settings-permanent,.clinic-subscription-copy>span,.clinic-patient-status.active,.clinic-trend-ai .status.ready){color:var(--success);background:var(--success-soft)}.clinic-theme-scope[data-clinic-theme=dark] :is(.patient-retention-badges .overdue,.analysis-demo-chip){color:#f0c47c;background:rgba(var(--accent-rgb),.14)}.clinic-theme-scope[data-clinic-theme=dark] :is(.patient-retention-badges .urgent,.clinic-record-view-tabs>p){color:var(--danger);background:var(--danger-soft)}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-workflow-steps,.clinic-workflow-body,.clinic-intake-form,.clinic-camera-setup){border-color:var(--surface-border);background:0 0}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-section-heading,.clinic-form-section,.clinic-option-group,.clinic-option-group label,.clinic-consent,.clinic-setup-intro .clinic-section-heading,.clinic-setup-intro .clinic-followup-patient,.clinic-setup-grid article,.clinic-camera-card,.clinic-device-card,.clinic-capture-stage,.clinic-review-card,.clinic-capture-gallery figure){border-color:var(--surface-border);color:var(--ink-soft);background:var(--surface-bg);box-shadow:var(--shadow-sm)}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-option-group label:hover,.clinic-option-group label.selected,.clinic-workflow-steps>div.active){border-color:rgba(var(--brand-rgb),.32);background:rgba(var(--brand-rgb),.11)}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-clinical-note,.clinic-light-copy,.clinic-position-tips){border-color:rgba(var(--accent-rgb),.25);background:rgba(var(--accent-rgb),.1)}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-clinical-note strong,.clinic-clinical-note p){color:#e0c08d}.clinic-theme-scope[data-clinic-theme=dark] :is(.patient-record-action-panel,.clinic-record-hero,[class~=clinic-record-overview],[class~=clinic-session-list],.clinic-session-detail,.clinic-progress-overview,.clinic-trend-hero,.clinic-trend-card,.clinic-trend-ai,.clinic-trend-locked,.clinic-record-chart,.clinic-analysis-summary,.clinic-capture-gallery,.clinic-note-card,.clinic-record-view-tabs,.clinic-trend-sessions){border-color:var(--surface-border);background:var(--surface-bg);box-shadow:var(--shadow-sm);-webkit-backdrop-filter:blur(22px)saturate(1.1);backdrop-filter:blur(22px)saturate(1.1)}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-record-facts>div,[class~=clinic-session-list] button,.clinic-session-meta,.clinic-progress-kpis article,.clinic-trend-hero>aside,.clinic-trend-overview article,.clinic-trend-kpis article,.clinic-trend-sessions article,.clinic-record-view-tabs>div,.clinic-record-view-tabs>button,.clinic-comparison-bars>div,.clinic-metric-lines article,.clinic-metric-progress){border-color:var(--surface-border);color:var(--ink-soft);background:var(--surface-muted)}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-trend-hero>aside,.clinic-trend-overview article){box-shadow:var(--shadow-xs)}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-trend-hero>aside span,.clinic-trend-overview>header span,.clinic-trend-overview>header p,.clinic-trend-overview article>span,.clinic-trend-overview article>p){color:var(--muted)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-trend-overview article>strong{color:var(--ink)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-trend-sessions>header{border-color:var(--line)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-trend-sessions article>span{color:#dff6ff;background:rgba(var(--brand-rgb),.18)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-trend-session-gain{color:var(--success);background:var(--success-soft)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-comparison-bars>aside{border-color:var(--line)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-comparison-bars>aside>span,.clinic-theme-scope[data-clinic-theme=dark] .clinic-comparison-bars>div>header span,.clinic-theme-scope[data-clinic-theme=dark] .clinic-comparison-bars header b{color:var(--ink-soft)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-comparison-bars i.baseline{background:#6f8796}.clinic-theme-scope[data-clinic-theme=dark] .clinic-metric-progress>header strong,.clinic-theme-scope[data-clinic-theme=dark] .clinic-metric-progress>footer b{color:var(--ink-soft)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-metric-progress>header em{color:var(--muted);background:#8fa8b81c}.clinic-theme-scope[data-clinic-theme=dark] .clinic-metric-progress.improved>header em{color:#73d9ba;background:#49c8a01f}.clinic-theme-scope[data-clinic-theme=dark] .clinic-metric-progress.worsened>header em{color:#ff8da0;background:#ff748e1f}.clinic-theme-scope[data-clinic-theme=dark] .clinic-metric-progress svg line{stroke:#8fbbd62e}.clinic-theme-scope[data-clinic-theme=dark] .clinic-metric-progress svg circle{fill:#102332}.clinic-theme-scope[data-clinic-theme=dark] .clinic-metric-progress svg g:last-of-type circle{stroke:#102332}.clinic-theme-scope[data-clinic-theme=dark] .clinic-metric-progress svg text,.clinic-theme-scope[data-clinic-theme=dark] .clinic-metric-progress>footer small,.clinic-theme-scope[data-clinic-theme=dark] .clinic-metric-progress>footer>i{fill:var(--muted);color:var(--muted)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-metric-progress>footer{border-color:var(--line)}.clinic-theme-scope[data-clinic-theme=dark] :is([class~=clinic-session-list] button.active,.clinic-record-view-tabs>div.active,.clinic-record-view-tabs>button:hover:not(:disabled)){border-color:rgba(var(--brand-rgb),.32);background:linear-gradient(125deg,rgba(var(--brand-rgb),.14),#0b1d29e6);box-shadow:0 0 26px rgba(var(--brand-rgb),.08)}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-line-chart text,.clinic-radar-chart text,.clinic-radar-chart tspan+.clinic-radar-chart tspan,.clinic-trend-line text,.clinic-metric-lines text){fill:var(--muted)}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-line-chart line,.clinic-radar-chart line,.clinic-trend-line line,.clinic-metric-lines line){stroke:var(--line)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface :is(.patient-record-header,.record-analysis-summary,.clinic-record-quick-facts article,.clinic-session-strip,.clinic-session-strip button,.clinic-session-number,.analysis-results-hero,.analysis-tab-navigation,.analysis-tab-rail button,.analysis-section-workspace,.analysis-section-workspace>header,.analysis-category-stage,.analysis-feature-chart,.analysis-chart-summary-card,.analysis-narrative-card,.analysis-insight-card,.analysis-evidence-card,.analysis-feature-evidence,.analysis-chart-card,.clinic-capture-gallery,.clinic-capture-gallery figure){border-color:var(--surface-border);color:var(--ink);background:var(--surface-bg);box-shadow:var(--shadow-sm)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface :is(.record-analysis-summary,.clinic-record-quick-facts article,.clinic-session-strip button,.analysis-tab-rail button,.analysis-score-ring,.analysis-chart-summary-card .analysis-score-ring){background:var(--surface-muted);box-shadow:var(--shadow-xs)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface :is(.analysis-section-grid,.analysis-text-stage,.analysis-visual-stage,.analysis-evidence-section,.analysis-section-workspace.is-overview>.analysis-visual-stage){border-color:var(--surface-border);color:var(--ink-soft);background:#06151f94}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .analysis-tab-rail button:hover{border-color:rgba(var(--brand-rgb),.28);color:var(--ink);background:rgba(var(--brand-rgb),.1);box-shadow:var(--shadow-xs)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .analysis-tab-rail button.active{border-color:rgba(var(--brand-rgb),.4);color:#f3fbff;background:linear-gradient(125deg,var(--brand-deep),var(--brand),#0d4f78);box-shadow:0 10px 24px rgba(var(--brand-rgb),.16)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .analysis-tab-rail button>small{color:var(--ink-soft);background:#edf8ff14}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .analysis-tab-rail button.active>small{color:#fff;background:#ffffff29}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface :is(.analysis-category-stage>header>b,.analysis-narrative-card header i,.analysis-insight-card header i,.analysis-evidence-card>header b){color:var(--brand);background:rgba(var(--brand-rgb),.12)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface :is(.analysis-category-stage>header h3,.analysis-narrative-card h3,.analysis-insight-card h3,.analysis-chart-card strong){color:var(--ink)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface :is(.analysis-category-stage>header span,.analysis-category-plot article>span,.analysis-narrative-card>p,.analysis-insight-card li>p,.analysis-insight-card>p,.analysis-chart-summary-card>p,.analysis-chart-card>header span){color:var(--muted)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface :is(.analysis-narrative-card>div,.analysis-evidence-card>p,.analysis-unavailable-chart){border-color:var(--surface-border);color:var(--ink-soft);background:#081924c2}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface :is(.analysis-radar svg polygon,.analysis-radar svg line){stroke:#8fbbd640}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .analysis-radar svg circle{stroke:#102332}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .clinic-capture-gallery figcaption{border-color:var(--surface-border);background:#07151fe6}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .clinic-session-number{background:conic-gradient(var(--brand) calc(var(--session-score)*1%),#96bed626 0)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .clinic-session-number:before{background:#102332}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .clinic-session-strip button:after{border-color:#96bed633}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface :is(.patient-record-action-panel>div>a,.patient-record-action-panel>div>button,.clinic-analysis-score,.clinic-review-badge){border-color:var(--surface-border);color:var(--ink-soft);background:var(--surface-muted);box-shadow:var(--shadow-xs)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface :is(.patient-record-action-panel>div>a,.patient-record-action-panel>div>button):hover{border-color:rgba(var(--brand-rgb),.3);color:var(--ink);background:rgba(var(--brand-rgb),.1)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .patient-record-action-panel>div>.is-primary{color:#fff;background:var(--brand);box-shadow:0 10px 24px rgba(var(--brand-rgb),.18);border-color:#0000}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .patient-record-action-panel>p.success{color:var(--success);background:var(--success-soft)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .patient-record-action-panel>p.error{color:var(--danger);background:var(--danger-soft)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface :is(.analysis-insight-card li>span,.analysis-chart-legend,.analysis-chart-summary-card>div,.analysis-evidence-card>p){color:var(--ink-soft);background:#081924c2}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface :is(.clinic-bar-chart>div>div,.analysis-bars>div>div){background:#96bed624}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .clinic-line-point circle{fill:#102332;stroke:var(--brand)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface :is(.clinic-analysis-summary>p,.clinic-analysis-score>span,.clinic-analysis-score small,.clinic-analysis-summary footer,.clinic-bar-chart>div>header){color:var(--muted)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-analysis-page{color:var(--ink);background:var(--page-bg)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-analysis-page :is(.analysis-record-topbar,.analysis-record-notice,.analysis-section-workspace,.analysis-category-stage,.analysis-visual-stage,.analysis-text-stage,.clinic-capture-gallery){border-color:var(--surface-border);color:var(--ink);background:var(--surface-bg)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-analysis-page :is(.analysis-record-brand,.analysis-record-summary h1,.analysis-record-session-select select,.analysis-narrative-card h3,.analysis-insight-card h3){color:var(--ink)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-analysis-page :is(.analysis-record-session-select>span,.analysis-record-session-select small,.analysis-record-score>span,.analysis-record-score>small,.analysis-narrative-card>p,.analysis-insight-card li>p,.analysis-insight-card>p){color:var(--muted)}.clinic-theme-scope[data-clinic-theme=dark] :is(.analysis-loading-card,.analysis-failure-card,.analysis-results-hero,.analysis-embedded-state,.analysis-section,.analysis-feature-card,.analysis-feature-chart,.analysis-chart-summary-card,.analysis-narrative-card,.analysis-chart-card,.analysis-evidence-card,.analysis-insight-card,.analysis-record-loading,.analysis-section-workspace,.analysis-unavailable-chart,.analysis-feature-evidence,.analysis-topic-breakdown,.analysis-topic-breakdown article,.analysis-damage-scale,[class~=product-recommendations],.product-recommendation-card,.product-alternatives-modal){border-color:var(--surface-border);color:var(--ink);background:var(--surface-bg);box-shadow:var(--shadow-sm);-webkit-backdrop-filter:blur(22px)saturate(1.1);backdrop-filter:blur(22px)saturate(1.1)}.clinic-theme-scope[data-clinic-theme=dark] :is(.analysis-tab-rail,.analysis-score-ring,.analysis-hero-kpis>article,.analysis-category-plot article,.analysis-topic-breakdown article>div,.clinical-radar-legend span,.clinical-radar-legend small,[class~=product-recommendations]>header>aside,.product-recommendation-focus span,.product-recommendation-actions>button){border-color:var(--surface-border);color:var(--ink-soft);background:var(--surface-muted)}.clinic-theme-scope[data-clinic-theme=dark] :is([class~=analysis-section-header],.analysis-tab-navigation,.analysis-category-stage,.analysis-text-stage,.analysis-visual-stage,.analysis-bars){border-color:var(--surface-border);color:var(--ink-soft);background:#0a1b27c7}.clinic-theme-scope[data-clinic-theme=dark] .analysis-tab-rail button.active{color:var(--ink);background:rgba(var(--brand-rgb),.14);box-shadow:inset 3px 0 0 var(--brand)}.clinic-theme-scope[data-clinic-theme=dark] .analysis-score-ring>div{background:radial-gradient(circle closest-side,#102332 77%,transparent 79% 100%),conic-gradient(var(--brand) calc(var(--score)*1%),#96bed629 0)}.clinic-theme-scope[data-clinic-theme=dark] .analysis-score-ring.damage-good>div{background:radial-gradient(circle closest-side,#102332 77%,transparent 79% 100%),conic-gradient(var(--success) calc(var(--score)*1%),#96bed629 0)}.clinic-theme-scope[data-clinic-theme=dark] :is(.analysis-category-plot,.analysis-topic-breakdown article>div,.analysis-damage-scale>div){background:#94bfd81f}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinical-radar-grid,.clinical-radar-spoke,.clinical-radar-leader,.analysis-overview-radar .grid,.analysis-overview-radar line){stroke:#8fbbd640}.clinic-theme-scope[data-clinic-theme=dark] .clinical-radar-surface{fill:#0b1f2d;stroke:#7fc4eb29;filter:drop-shadow(0 20px 34px #0000003d)}.clinic-theme-scope[data-clinic-theme=dark] .clinical-radar-grid{fill:rgba(var(--brand-rgb),.025)}.clinic-theme-scope[data-clinic-theme=dark] .clinical-radar-label-card{fill:#102a3a;stroke:#7fc4eb2e;filter:drop-shadow(0 9px 17px #00000038)}.clinic-theme-scope[data-clinic-theme=dark] .clinical-radar-axis:hover .clinical-radar-label-card,.clinic-theme-scope[data-clinic-theme=dark] .clinical-radar-axis:focus .clinical-radar-label-card{fill:#16384b;stroke:rgba(var(--brand-rgb),.5);filter:drop-shadow(0 12px 24px rgba(var(--brand-rgb),.14))}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinical-radar-axis-name,.clinical-radar-axis-value,.clinical-radar-axis-comparison,.analysis-overview-radar text){fill:var(--ink-soft);color:var(--ink-soft)}.clinic-theme-scope[data-clinic-theme=dark] .clinical-radar-axis-name{fill:#d9edf7}.clinic-theme-scope[data-clinic-theme=dark] .clinical-radar-axis-value{fill:#72c8f4}.clinic-theme-scope[data-clinic-theme=dark] .clinical-radar-axis-comparison .is-primary{fill:#a8bdc9}.clinic-theme-scope[data-clinic-theme=dark] .clinical-radar-axis-comparison .is-arrow{fill:#6f8999}.clinic-theme-scope[data-clinic-theme=dark] .clinical-radar-axis-comparison .is-secondary{fill:#65d0af}.clinic-theme-scope[data-clinic-theme=dark] .clinical-radar-axis.is-worse .clinical-radar-axis-comparison .is-secondary{fill:#ff8da0}.clinic-theme-scope[data-clinic-theme=dark] .clinical-radar-point{fill:#102332}.clinic-theme-scope[data-clinic-theme=dark] .clinical-radar-center{stroke:#102332}.clinic-theme-scope[data-clinic-theme=dark] .clinical-radar.is-comparison .clinical-radar-dataset.is-primary .clinical-radar-point{fill:#102332;stroke:#9eb3c0}.clinic-theme-scope[data-clinic-theme=dark] .clinical-radar-legend span,.clinic-theme-scope[data-clinic-theme=dark] .clinical-radar-legend small{color:var(--ink-soft);box-shadow:var(--shadow-xs)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface [class~=product-recommendations]{background:linear-gradient(135deg,#0c1d29f5,#081723e6 62%,rgba(var(--brand-rgb),.1))}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface [class~=product-recommendations]:before{background:radial-gradient(circle,rgba(var(--brand-rgb),.16),transparent 67%)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface [class~=product-recommendations]>header>div{background:0 0}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface [class~=product-recommendations]>header>div>span{color:var(--brand)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface [class~=product-recommendations]>header h2{color:var(--ink);background:0 0}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface [class~=product-recommendations]>header p{color:var(--muted)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface [class~=product-recommendations]>header>aside{border-color:rgba(var(--brand-rgb),.22);color:var(--ink);background:#0b1f2ce6;box-shadow:inset 0 1px #ffffff09,0 10px 24px #0000002e}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface [class~=product-recommendations]>header>aside>small{color:var(--muted)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .product-recommendation-card{background:linear-gradient(160deg,#102736f5,#091b27f0);border-color:#7ec0e52b;box-shadow:inset 0 1px #ffffff06,0 14px 32px #0003}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .product-recommendation-card:hover{border-color:rgba(var(--brand-rgb),.4);box-shadow:inset 0 1px 0 #ffffff09,0 18px 40px #0000003d,0 0 24px rgba(var(--brand-rgb),.08)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .product-recommendation-image{border-color:var(--surface-border);background:linear-gradient(145deg,#102838,#091a27)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .product-recommendation-image img{background:0 0}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .product-recommendation-focus small{color:var(--muted)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .product-recommendation-focus span{border-color:rgba(var(--brand-rgb),.2);color:#bfe8ff;background:rgba(var(--brand-rgb),.12)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .product-recommendation-body h3{color:var(--ink)}.clinic-theme-scope[data-clinic-theme=dark] .product-recommendation-actions>a{color:#fff;background:linear-gradient(125deg,#2776ad,var(--brand-hover));box-shadow:0 10px 24px rgba(var(--brand-rgb),.2)}.clinic-theme-scope[data-clinic-theme=dark] .product-recommendation-actions>a strong{color:#fff}.clinic-theme-scope[data-clinic-theme=dark] .product-recommendation-actions>a small{color:#fffc}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface .product-recommendation-actions>button:hover{border-color:rgba(var(--brand-rgb),.38);color:var(--ink);background:rgba(var(--brand-rgb),.14)}.clinic-theme-scope[data-clinic-theme=dark] .product-recommendation-actions>button i{color:#bfe8ff;background:rgba(var(--brand-rgb),.16)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface [class~=product-recommendations]>footer{border-color:var(--line)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface [class~=product-recommendations]>footer>span{color:#bfe8ff;background:rgba(var(--brand-rgb),.14)}.clinic-theme-scope[data-clinic-theme=dark] .patient-record-surface [class~=product-recommendations]>footer p{color:var(--muted)}.clinic-theme-scope[data-clinic-theme=dark] .product-alternatives-backdrop{background:#01070cc2}.clinic-theme-scope[data-clinic-theme=dark] .product-alternatives-modal>header{border-color:var(--line);background:linear-gradient(#0d202e 82%,#0d202e00)}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-camera-dock,.clinic-camera-empty,.clinic-camera-message,.clinic-camera-select,.clinic-camera-utilities,.clinic-capture-guide,.clinic-capture-layout,.clinic-photo-guide,.clinic-photo-target,.clinic-quality,.clinic-complete-shell,.clinic-complete-summary,.clinic-workflow-complete,.clinic-intake-readiness,.clinic-patient-delivery,.clinic-patient-info-grid,.clinic-record-summary,.clinic-record-quick-facts,.clinic-trend-overview,.clinic-trend-primary-chart,.clinic-trend-radar-card,.clinic-trend-comparison-card,.clinic-trend-metric-card,.clinic-review-step-grid,.clinic-analysis-choice,.clinic-chart-help-dialog,.clinic-patient-info-modal,.clinic-settings-notice,.clinic-settings-danger){border-color:var(--surface-border);color:var(--ink-soft);background:var(--surface-bg);box-shadow:var(--shadow-sm);-webkit-backdrop-filter:blur(22px)saturate(1.1);backdrop-filter:blur(22px)saturate(1.1)}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-record-meta,.clinic-session-strip,.clinic-session-number,.clinic-review-badge,.clinic-analysis-score,.clinic-metric-progress,.clinic-step-dots,.clinic-inline-check,.clinic-patient-link-notice,.clinic-light-instruction,.clinic-light-confirm,.clinic-data-actions,.clinic-device-actions,.clinic-capture-footer,.ticket-index-item,.ticket-status){border-color:var(--surface-border);color:var(--ink-soft);background:var(--surface-muted)}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-record-back,.clinic-complete-back,.clinic-patient-info-trigger,.clinic-patient-link-trigger,.clinic-chart-help-close){border-color:var(--surface-border);color:var(--ink-soft);box-shadow:var(--shadow-xs);background:#0b1d29e6}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-record-error,.clinic-settings-danger){color:var(--danger);background:var(--danger-soft);border-color:#ff748e33}.clinic-theme-scope[data-clinic-theme=dark] .clinic-subscription-ring:before{background:#0d2230}.clinic-theme-scope[data-clinic-theme=dark] :is(.clinic-guide-visual,.clinic-light-orb,.clinic-shutter-area){border-color:var(--surface-border);background:#06131deb}.clinic-theme-scope[data-clinic-theme=dark] .clinic-patient-info-backdrop{-webkit-backdrop-filter:blur(16px)saturate(.9);backdrop-filter:blur(16px)saturate(.9);background:#01070cbd}.clinic-theme-scope[data-clinic-theme=dark] .clinic-patient-info-modal{color:var(--ink);background:linear-gradient(145deg,#0d1f2cfa,#071520fa);border-color:#7ec0e52e;box-shadow:0 34px 90px #0000007a,inset 0 1px #ffffff09}.clinic-theme-scope[data-clinic-theme=dark] .clinic-patient-info-modal>header{border-color:var(--line);-webkit-backdrop-filter:blur(22px)saturate(1.08);backdrop-filter:blur(22px)saturate(1.08);background:#0a1b27f0}.clinic-theme-scope[data-clinic-theme=dark] .clinic-patient-info-modal>header span{color:var(--muted)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-patient-info-modal>header h2{color:var(--ink)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-patient-info-modal>header button{border-color:rgba(var(--brand-rgb),.28);color:#bfe8ff;background:rgba(var(--brand-rgb),.12)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-patient-info-modal>header button:hover{border-color:rgba(var(--brand-rgb),.48);color:#fff;background:rgba(var(--brand-rgb),.2)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-patient-info-grid{box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:0 0}.clinic-theme-scope[data-clinic-theme=dark] .clinic-patient-info-grid article{border-color:var(--surface-border);background:var(--surface-muted);box-shadow:inset 0 1px #ffffff06}.clinic-theme-scope[data-clinic-theme=dark] .clinic-patient-info-grid span{color:var(--muted)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-patient-info-grid strong{color:var(--ink-soft)}.clinic-theme-scope[data-clinic-theme=dark] .clinic-patient-info-modal>footer{border-top:1px solid var(--line);background:#071520b8;padding-top:18px}.clinic-theme-scope[data-clinic-theme=dark] :is(.admin-modal,.admin-issue-modal,.localized-calendar,.clinic-modal,.clinic-confirm-modal){border-color:var(--surface-border);color:var(--ink);box-shadow:var(--shadow-lg);background:linear-gradient(145deg,#0e202dfa,#081722fa)}.clinic-theme-scope[data-clinic-theme=dark] :is(.localized-calendar-header,.localized-calendar-weekdays,.localized-calendar>footer){border-color:var(--line);background:0 0}.clinic-theme-scope[data-clinic-theme=dark] .localized-calendar-days button{color:var(--ink-soft);background:0 0}.clinic-theme-scope[data-clinic-theme=dark] .localized-calendar-days button:hover{background:rgba(var(--brand-rgb),.1)}.clinic-theme-scope[data-clinic-theme=dark] :is(.admin-modal-backdrop,.localized-calendar-backdrop,.clinic-modal-backdrop){-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#01070cb8}@keyframes clinic-dark-ambient{0%{background-position:0 0,100% 100%,0 0}to{background-position:12% 8%,86% 90%,0 0}}@media (prefers-reduced-motion:reduce){.clinic-theme-scope[data-clinic-theme=dark]{animation:none}}
