/* Two personal visual themes. Classic palettes keep their existing rendering.
   Clinical status colors and specialty colors deliberately retain their meaning. */
:root[data-interface-theme="lavender-apricot"] {
  --theme-canvas:#f8f6fc;
  --theme-paper:#fffdfd;
  --theme-soft:#eee8fa;
  --theme-accent:#7055b1;
  --theme-accent-dark:#58408f;
  --theme-rgb:112,85,177;
  --theme-ink:#29223f;
  --theme-muted:#6e647e;
  --theme-line:#e5deed;
  --theme-secondary:#fbe7da;
  --theme-secondary-ink:#93472b;
  --theme-tertiary:#faf0ce;
  --theme-hero:linear-gradient(135deg,#fffdfd 12%,#f1ebfb 100%);
  --theme-feature:linear-gradient(125deg,#413065,#7055a0);
}
:root[data-interface-theme="ivory-terracotta"] {
  --theme-canvas:#f6f1e9;
  --theme-paper:#fffcf7;
  --theme-soft:#f4e4d9;
  --theme-accent:#ad4d31;
  --theme-accent-dark:#8d3924;
  --theme-rgb:173,77,49;
  --theme-ink:#302b28;
  --theme-muted:#77695f;
  --theme-line:#e7dcd0;
  --theme-secondary:#dfebed;
  --theme-secondary-ink:#365e68;
  --theme-tertiary:#f2e6d2;
  --theme-hero:linear-gradient(135deg,#fffcf7 12%,#f4eade 100%);
  --theme-feature:linear-gradient(125deg,#a3422a,#bc5738);
}
/* Re-declare aliases on the shell: the original role palettes also live there. */
:root[data-interface-theme]:not([data-interface-theme="classic"]),
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(#patientAppTab,#sessionModeOverlay.is-patient-session,#synapseAgentPanel[data-messaging-role="patient"],#patientHandovers),
.app-shell[data-interface-theme]:not([data-interface-theme="classic"]) {
  /* The palettes only change color. Typography and components are shared. */
  --theme-title-font:var(--font);
  --theme-title-weight:750;
  --bg:var(--theme-canvas);
  --surface:var(--theme-paper);
  --surface-2:var(--theme-canvas);
  --surface-3:var(--theme-soft);
  --border:var(--theme-line);
  --border-s:color-mix(in srgb,var(--theme-accent) 24%,var(--theme-paper));
  --tx:var(--theme-ink);
  --tx-2:var(--theme-ink);
  --tx-3:var(--theme-muted);
  --tx-4:var(--theme-muted);
  --primary:var(--theme-accent);
  --primary-dk:var(--theme-accent-dark);
  --primary-bg:var(--theme-soft);
  --primary-rgb:var(--theme-rgb);
  --clr-p-50:var(--theme-canvas);
  --clr-p-100:var(--theme-soft);
  --clr-p-500:var(--theme-accent);
  --clr-p-600:var(--theme-accent-dark);
  --clr-p-700:var(--theme-accent-dark);
  --ix-surface:var(--theme-paper);
  --ix-accent:var(--theme-accent);
  --ix-surface-hover:var(--theme-soft);
  --ix-selected:var(--theme-soft);
  --ix-border:var(--theme-line);
  --theme-shadow:0 2px 3px rgba(var(--theme-rgb),.025),0 12px 32px rgba(var(--theme-rgb),.065),inset 0 1px 0 #ffffffc9;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) body {
  background:var(--theme-canvas);
  color:var(--theme-ink);
}
html[data-interface-theme]:not([data-interface-theme="classic"]) .app-shell {
  background:var(--theme-canvas);
  color:var(--tx);
}
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.app-main,.main-content) { background:transparent; }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(h1,h2,h3) { color:var(--tx); }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(#dashboardGreetingTitle,.patient-overview h1,.settings-page-header h1,#detailTitle,.patient-home-welcome h2,.gym-hero h1,.cabinet-page-header h1) {
  font-family:var(--theme-title-font);
  font-weight:var(--theme-title-weight);
  letter-spacing:-.035em;
  color:var(--tx);
}
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.primary-btn,#addPatientBtn,#agendaBookBtn) {
  background:linear-gradient(145deg,color-mix(in srgb,var(--primary) 88%,white),var(--primary));
  color:#fff;
  border:1px solid rgba(var(--primary-rgb),.18);
  border-radius:14px;
  box-shadow:0 5px 12px rgba(var(--primary-rgb),.17),inset 0 1px 0 #ffffff35;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.secondary-btn,.topbar-btn) {
  color:var(--primary-dk); background:var(--surface); border:1px solid var(--border);
  border-radius:14px; box-shadow:0 2px 5px rgba(var(--primary-rgb),.035),inset 0 1px 0 white;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(button,a,input,textarea,select,summary):focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.primary-btn,.secondary-btn):disabled { opacity:.5; box-shadow:none; cursor:not-allowed; transform:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(input:not([type="radio"]):not([type="checkbox"]),textarea,select) {
  border-color:var(--border); background:var(--surface); color:var(--tx);
}
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(input,textarea)::placeholder { color:var(--theme-muted); }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(input[type="checkbox"],input[type="radio"]) { accent-color:var(--primary); }
/* Navigation: same locations and expansion behavior as before. */
html[data-interface-theme]:not([data-interface-theme="classic"]) .app-shell > #appSidebar {
  background:color-mix(in srgb,var(--theme-paper) 90%,transparent); border-color:var(--border);
  box-shadow:3px 0 18px rgba(var(--primary-rgb),.035); backdrop-filter:blur(18px);
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #appSidebar :is(.sidebar-nav-item,.sidebar-footer-message) { color:var(--tx-3); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #appSidebar .sidebar-nav-item.active {
  color:var(--primary-dk); background:var(--theme-soft); box-shadow:inset 0 1px 0 #ffffffaa;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #appSidebar :is(.sidebar-brand-name,.sidebar-user-name) { color:var(--tx); }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.topbar,.mobile-nav,.sidebar-account-menu) { background:var(--surface); border-color:var(--border); color:var(--tx); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .mobile-nav button { color:var(--tx-3); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .mobile-nav button.active { color:var(--primary-dk); background:var(--theme-soft); }
/* Shared surfaces use restrained elevation, without blurring clinical content. */
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.dashboard-item,.library-card,.patient-list-surface,.patient-home-card,.summary-card,.patient-metric-card,.patient-dashboard-card,.patient-bilan-card,.bilan-item,.session-item,.gym-exercise-card,.search-panel,.modal-content,.synapse-floating-card) {
  background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--surface) 96%,var(--theme-soft)));
  border-color:var(--border); color:var(--tx); box-shadow:var(--theme-shadow); border-radius:22px;
}
/* Dashboard: light header and three independent pastel counters. */
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader {
  padding:28px; gap:20px; background:var(--theme-hero); border:1px solid var(--border);
  box-shadow:var(--theme-shadow); border-radius:26px; color:var(--tx);
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader #dashboardGreetingTitle {
  font-family:var(--theme-title-font); font-weight:var(--theme-title-weight); color:var(--tx); font-size:34px!important;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .dashboard-greeting-name,
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader #dashboardGreetingTitle span,
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientTab .patient-overview h1 span {
  color:var(--primary); background:none; -webkit-text-fill-color:currentColor; font-weight:inherit;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-week-range { color:var(--tx-2); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter {
  background:var(--theme-soft); color:var(--primary-dk); border:1px solid transparent; border-radius:18px;
  box-shadow:inset 0 1px 0 #ffffffa0; padding:20px; min-height:112px; text-align:left;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter:nth-child(2) { background:var(--theme-secondary); color:var(--theme-secondary-ink); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter:nth-child(3) { background:var(--theme-tertiary); color:var(--tx-2); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter[aria-pressed="true"] {
  border-color:var(--primary); box-shadow:0 3px 10px rgba(var(--primary-rgb),.07),inset 0 1px 0 #fff;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter.has-concern { background:#fff0f3; color:#742237; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .dashboard-day-counter strong { color:inherit; font-size:32px; font-weight:750; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .dashboard-day-counter span { color:inherit; font-size:14px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .dashboard-summary-scope { color:var(--tx-3); }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.dashboard-calendar-segments,.patient-record-navigation) { background:var(--theme-canvas); border:1px solid var(--border); border-radius:16px; padding:5px; box-shadow:inset 0 1px 3px rgba(var(--primary-rgb),.035); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardCalendarControls :is(.dashboard-calendar-segments button,.dashboard-calendar-period button) { color:var(--tx-3); background:transparent; border-color:transparent; box-shadow:none; border-radius:12px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardCalendarControls .dashboard-calendar-segments button[aria-pressed="true"] { background:var(--surface); color:var(--primary-dk); box-shadow:0 2px 8px rgba(var(--primary-rgb),.08); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardCalendarControls .dashboard-calendar-period button { background:var(--surface); border-color:var(--border); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardListActions { margin-top:24px; padding:0 0 18px; border-color:var(--border); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .agenda-appointment {
  background:var(--surface); border-color:var(--border); color:var(--tx); border-radius:18px;
  box-shadow:0 2px 8px rgba(var(--primary-rgb),.035); padding:18px;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWeek .dashboard-week-appointment:is(.is-prepare,.is-dependent):not(.is-focus-current):not(.is-drop-target) {
  background:var(--surface); color:var(--tx); border-top-color:var(--border); border-right-color:var(--border); border-bottom-color:var(--border);
  box-shadow:0 3px 12px rgba(var(--primary-rgb),.04); border-radius:18px;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .dashboard-week-appointment-main strong { color:var(--tx); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab :is(.dashboard-week-appointment-main small,.dashboard-week-empty) { color:var(--tx-3); }
/* Patient directory and record: same information, more deliberate hierarchy. */
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientTab .patient-overview { background:var(--theme-hero); border-color:var(--border); box-shadow:var(--theme-shadow); color:var(--tx); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientTableBody .clinical-patient-row:not(.clinical-patient-row-archived) { background:var(--surface); border-color:var(--border); box-shadow:0 3px 12px rgba(var(--primary-rgb),.035); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientTableBody :is(.clinical-patient-main strong,.directory-patient-fact > span) { color:var(--tx); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientTableBody :is(.clinical-patient-main > span,.clinical-patient-care-link,.directory-patient-fact small) { color:var(--tx-3); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page { background:var(--theme-canvas); color:var(--tx); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal > .detail-modal-content { background:transparent; box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .detail-header { background:transparent; border-color:var(--border); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal :is(.patient-followup-trigger,.patient-continuity-panel,.patient-continuity-panel summary) { color:var(--tx-2); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .patient-record-navigation { margin-block:14px 24px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .patient-record-navigation .tab-button { color:var(--tx-3); border-radius:12px; background:transparent; box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .patient-record-navigation .tab-button.active { background:var(--surface); color:var(--primary-dk); box-shadow:0 3px 10px rgba(var(--primary-rgb),.08); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .session-planning-card { border:1px solid var(--border); background:var(--surface); box-shadow:var(--theme-shadow); border-radius:22px; color:var(--tx); padding:24px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .session-planning-card-upcoming { background:linear-gradient(145deg,var(--surface),var(--theme-secondary)); border-color:color-mix(in srgb,var(--theme-secondary-ink) 20%,var(--surface)); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .session-planning-card-today { background:var(--theme-canvas); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal :is(.session-planning-card-date,.session-planning-card strong) { color:var(--tx); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal :is(.session-planning-card-kicker,.session-planning-card p,.session-planning-card small) { color:var(--tx-3); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .session-planning-card-add { background:var(--primary); color:#fff; box-shadow:0 3px 9px rgba(var(--primary-rgb),.12); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .session-planning-card-add strong { color:#fff; }
/* The legacy add action uses !important; scope its override to themes only. */
html[data-interface-theme]:not([data-interface-theme="classic"]) .session-add-button {
  background:var(--primary)!important; border-color:var(--primary)!important;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) .session-add-button:hover {
  background:var(--primary-dk)!important; border-color:var(--primary-dk)!important;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.session-planning-all-link,.clinical-secondary-details,.assessment-focus-card,.assessment-chapter-card,.assessment-section,.session-preparation-next-action) {
  background:var(--surface); border-color:var(--border); color:var(--tx); box-shadow:var(--theme-shadow);
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal :is(.patient-initial-assessment-current-action,.patient-dashboard-evolution-card) { background:var(--theme-hero); color:var(--tx); border-color:var(--border); box-shadow:var(--theme-shadow); }
/* Patient home: saturated action surface, opaque readable supporting cards. */
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-workspace { background:transparent; border:0; box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-area-nav { background:var(--theme-canvas); border-color:var(--border); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-area-nav button { color:var(--tx-3); background:transparent; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-area-nav button[aria-current="page"] { color:var(--primary-dk); background:var(--theme-soft); box-shadow:inset 0 1px 0 #ffffffb0; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-primary {
  position:relative; isolation:isolate; background:var(--theme-feature); color:#fff; border:1px solid #ffffff30;
  border-radius:28px; box-shadow:0 16px 30px rgba(var(--primary-rgb),.2),inset 0 1px 0 #ffffff40;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-primary::after {
  content:""; position:absolute; right:0; top:0; width:150px; height:100%; z-index:-1;
  border-radius:0 28px 28px 0; pointer-events:none;
  background:radial-gradient(ellipse at 130% 75%,#ffffff1c 0 46%,transparent 47% 55%,#ffffff0d 56% 70%,transparent 71%);
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-primary :is(h3,p,span) { color:#fff; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-primary > .primary-btn { color:var(--primary-dk); background:var(--surface); border-color:#fff; box-shadow:0 3px 10px #0000000d; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-glance-card { background:var(--surface); color:var(--tx); border-color:var(--border); box-shadow:var(--theme-shadow); border-radius:22px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-glance-card :is(strong,span) { color:var(--tx); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-glance-card small { color:var(--tx-3); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab :is(.patient-home-card-arrow,.patient-area-nav svg) { color:var(--primary); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-identity-chip { background:var(--primary); color:#fff; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-primary:not(:has(button)) .patient-home-action-symbol { display:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.assistant-workbar.is-collapsed .assistant-workbar-bubble,.mobile-synapse-agent-launcher) { color:var(--primary); background:var(--theme-hero); }
/* Appearance controls are available even when a classic palette is active. */
.interface-theme-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:24px 0 18px; padding:0; border:0; }
.interface-theme-options legend { color:var(--tx-3); font-size:12px; font-weight:700; margin-bottom:12px; }
.interface-theme-option { --preview-accent:#7055b1; --preview-soft:#eee8fa; --preview-paper:#fffdfd; --preview-secondary:#fbe7da; position:relative; display:grid; min-width:0; gap:0; padding:10px; border:1px solid var(--border); border-radius:22px; background:var(--surface); cursor:pointer; overflow:hidden; }
.interface-theme-option[data-theme-preview="ivory-terracotta"] { --preview-accent:#ad4d31; --preview-soft:#f4e4d9; --preview-paper:#fffcf7; --preview-secondary:#dfebed; }
.interface-theme-option > input { position:absolute; width:1px; height:1px; opacity:0; }
.interface-theme-option:has(input:checked) { border-color:var(--preview-accent); box-shadow:0 0 0 2px color-mix(in srgb,var(--preview-accent) 16%,transparent),0 8px 20px rgba(40,30,60,.04); }
.interface-theme-option:has(input:focus-visible) { outline:3px solid var(--primary); outline-offset:4px; }
.interface-theme-preview { display:grid; grid-template-columns:34px 1fr; gap:12px; height:156px; padding:17px; border-radius:14px; background:var(--preview-soft); }
.theme-preview-rail { display:grid; align-content:start; gap:12px; padding:10px 6px; background:var(--preview-paper); border-radius:9px; }
.theme-preview-rail i { display:block; height:10px; border-radius:4px; background:var(--preview-soft); }
.theme-preview-rail i:first-child { background:var(--preview-accent); }
.theme-preview-page { display:grid; grid-template-rows:13px 40px 18px 18px; gap:10px; }
.theme-preview-page > b { display:block; background:var(--preview-accent); width:50%; border-radius:4px; opacity:.75; }
.theme-preview-counters { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.theme-preview-counters i { background:var(--preview-paper); border-radius:8px; box-shadow:0 2px 3px #00000005; }
.theme-preview-counters i:nth-child(2) { background:var(--preview-secondary); }
.theme-preview-row { display:block; background:var(--preview-paper); border-radius:6px; }
.interface-theme-copy { display:grid; gap:5px; padding:17px 34px 12px 8px; }
.interface-theme-copy strong { font-size:16px; color:var(--tx); }
.interface-theme-copy small { color:var(--tx-3); font-size:12px; }
.interface-theme-selected { display:none; position:absolute; bottom:30px; right:18px; width:26px; height:26px; place-items:center; border-radius:50%; color:#fff; background:var(--preview-accent); }
.interface-theme-option:has(input:checked) .interface-theme-selected { display:grid; }
.interface-classic-palettes > summary { min-height:44px; padding:10px 0; color:var(--tx-3); cursor:pointer; font-size:13px; }
.patient-interface-themes { display:grid; gap:10px; padding:14px; margin:12px 0; border:1px solid var(--border); border-radius:16px; }
.patient-interface-themes legend { font-weight:750; color:var(--tx); padding:0 4px; }
.patient-interface-themes label { display:flex; gap:10px; align-items:center; min-height:44px; cursor:pointer; color:var(--tx); font-size:13px; }
.patient-interface-themes input { width:18px; height:18px; }
.patient-interface-themes p { font-size:12px; color:var(--tx-3); }
.patient-interface-themes p:empty { display:none; }
@media(min-width:901px) {
  html[data-interface-theme]:not([data-interface-theme="classic"]) #mainContent.main-content { padding:34px 38px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .detail-header h3 { font-size:32px; }
}
@media(max-width:900px) {
  html[data-interface-theme]:not([data-interface-theme="classic"]) body.patient-record-page-open #patientDetailModal > .detail-modal-content { padding-right:0; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader { padding:22px 18px; border-radius:24px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .session-planning-card { padding:20px; }
}
@media(max-width:600px) {
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader { padding:22px 16px; gap:16px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader #dashboardGreetingTitle { font-size:30px!important; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter { padding:14px 9px; min-height:108px; border-radius:14px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .dashboard-day-counter strong { font-size:27px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .dashboard-day-counter span { font-size:12px; line-height:1.4; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .patient-record-navigation { margin-block:12px 18px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-primary { padding:26px 22px; }
  .interface-theme-options { grid-template-columns:1fr; gap:14px; }
  .interface-theme-preview { height:144px; }
  .settings-palette-heading { flex-wrap:wrap; }
}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .interface-theme-option { transition:transform .18s ease,box-shadow .18s ease; }
  .interface-theme-option:hover { transform:translateY(-2px); }
  html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.primary-btn,.secondary-btn) { transition:transform .16s ease,box-shadow .16s ease; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.primary-btn,.secondary-btn):not(:disabled):hover { transform:translateY(-1px); box-shadow:0 7px 16px rgba(var(--primary-rgb),.15); }
  html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.primary-btn,.secondary-btn):not(:disabled):active { transform:translateY(1px); box-shadow:0 1px 4px rgba(var(--primary-rgb),.1); }
}
@media(prefers-reduced-motion:reduce) {
  .interface-theme-option,html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.primary-btn,.secondary-btn) { transition:none; }
}
