/* One interface, two color palettes. Geometry, typography and iconography never
   depend on a palette. Status, hidden states and business order stay intact. */
html[data-interface-theme]:not([data-interface-theme="classic"]) {
  --composition-card-radius:22px;
  --composition-control-radius:13px;
  --composition-page-radius:28px;
  --composition-gap:24px;
  --composition-card-shadow:0 2px 4px rgba(var(--theme-rgb),.018),0 14px 34px rgba(var(--theme-rgb),.035),inset 0 1px 0 #fff;
  --composition-card-shadow-hover:0 5px 12px rgba(var(--theme-rgb),.035),0 20px 38px rgba(var(--theme-rgb),.065),inset 0 1px 0 #fff;
  --font:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --text-base:14px; --text-sm:13px; --text-xs:12px;
  --r-lg:var(--composition-control-radius);
  --r-xl:var(--composition-card-radius);
  --r-2xl:var(--composition-page-radius);
}
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(body,button,input,select,textarea) { font-family:var(--font); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .app-shell {
  --font:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --text-base:14px; --text-sm:13px; --text-xs:12px;
  --r-lg:var(--composition-control-radius); --r-xl:var(--composition-card-radius);
  background:var(--theme-canvas);
}
/* Pages read as a consistent workspace, rather than a stack of large banners. */
html[data-interface-theme]:not([data-interface-theme="classic"]) #mainContent.main-content { padding:36px clamp(22px,3vw,48px); }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.app-section-header,.settings-page-header) { margin:0 0 28px; padding:0 0 22px; border:0; border-bottom:1px solid var(--border); border-radius:0; background:transparent; box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.app-section-header h1,.settings-page-header h1,.clinical-library-header h2) { font-family:var(--theme-title-font); font-weight:var(--theme-title-weight); font-size:clamp(30px,3.2vw,40px); line-height:1.18; letter-spacing:-.045em; }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.app-section-subtitle,.settings-page-header p,.clinical-library-header p) { margin-top:10px; max-width:680px; font-size:14px; line-height:1.65; color:var(--tx-3); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .section-kicker { font-size:11px; letter-spacing:.1em; }
/* Shared geometry: one surface for a functional group, comfortable internal spacing. */
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.dashboard-item,.library-card,.patient-home-card,.summary-card,.patient-metric-card,.patient-dashboard-card,.patient-bilan-card,.bilan-item,.session-item,.gym-exercise-card,.clinical-library-test-card,.cabinet-coordination,.cabinet-organization,.cabinet-shared-followups,.gym-community-propose,.gym-community-catalog) {
  border-radius:var(--composition-card-radius); border:1px solid var(--border);
  box-shadow:var(--composition-card-shadow); background:var(--surface);
}
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.dashboard-item,.cabinet-organization,.cabinet-shared-followups,.gym-community-propose,.gym-community-catalog) { padding:26px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.card-header,.cabinet-coordination-header) { padding:22px 24px 18px; border-bottom:1px solid var(--border); }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.card-header h2,.card-header h3,.cabinet-coordination-header h2,.cabinet-organization h2,.cabinet-shared-followups h2) { font-size:20px; font-family:var(--theme-title-font); font-weight:var(--theme-title-weight); letter-spacing:-.025em; }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.primary-btn,.secondary-btn,.btn) { min-height:44px; padding:11px 18px; font-size:13px; line-height:1.4; border-radius:var(--composition-control-radius); font-weight:700; }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.session-planning-card-add,.session-add-button) {
  min-height:44px; height:auto; padding:10px 14px; border-radius:var(--composition-control-radius); box-shadow:none; font-size:13px;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) .session-planning-card-add > strong { font-size:12px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.session-type-options,.session-template-mode-options) { background:var(--theme-canvas); border-color:var(--border); border-radius:var(--composition-control-radius); }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.session-type-options,.session-template-mode-options) label { border-radius:9px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.session-type-options,.session-template-mode-options) input + span {
  min-height:44px; border-radius:9px; background:transparent; box-shadow:none; color:var(--tx-3); gap:7px;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.session-type-options,.session-template-mode-options) input:checked + span { background:var(--surface); color:var(--primary-dk); box-shadow:0 2px 6px rgba(var(--theme-rgb),.06); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #sessionModal.is-booking .session-type-options label { background:transparent; border-radius:var(--composition-control-radius); box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #sessionModal.is-booking .session-type-options label:has(input:checked) { background:var(--theme-soft); color:var(--primary-dk); box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #sessionModal .appointment-nature-icon { color:var(--primary-dk); background:var(--theme-soft); border-color:var(--border); box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #sessionModal .modal-actions button { min-height:44px; padding:11px 18px; font:700 13px/1.4 var(--font); border-radius:var(--composition-control-radius); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #sessionModal .modal-actions button[type="submit"] { color:#fff; border:1px solid var(--primary); background:var(--primary); box-shadow:0 4px 10px rgba(var(--theme-rgb),.12); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #sessionModal .modal-actions button[type="button"] { color:var(--primary-dk); border:1px solid var(--border); background:var(--surface); box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),select,textarea) { min-height:44px; border-radius:var(--composition-control-radius); padding:11px 14px; font-family:var(--font); font-size:14px; line-height:1.45; box-shadow:inset 0 1px 2px #24202c03; }
html[data-interface-theme]:not([data-interface-theme="classic"]) textarea { min-height:100px; }
/* A stable, fully labelled desktop rail matches the chosen references. */
@media(min-width:901px) {
  html[data-interface-theme]:not([data-interface-theme="classic"]) .app-shell.app-layout:not(.patient-mode) { --sb-w:208px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .app-shell:not(.patient-mode) > #appSidebar,
  html[data-interface-theme]:not([data-interface-theme="classic"]) .app-shell:not(.patient-mode) > #appSidebar:is(:hover,:focus-within,:has(.sidebar-account-menu:not(.hidden))) {
    width:208px; padding:24px 16px 18px; border-radius:0; background:var(--surface); border-right:1px solid var(--border); box-shadow:none; transition:none; overflow:hidden;
  }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #appSidebar .sidebar-header { flex:0 0 auto; padding:0; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #appSidebar .sidebar-section { flex:1 1 auto; min-height:0; overflow-y:auto; padding-bottom:8px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #appSidebar .sidebar-footer { flex:0 0 auto; margin-top:0; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #appSidebar .sidebar-brand { gap:11px; padding:8px 8px 26px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #appSidebar .sidebar-brand-name { font-size:19px; letter-spacing:-.035em; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #appSidebar :is(.sidebar-brand-name,.sidebar-nav-item > span:not(.nav-icon),.sidebar-footer-message > span:not(.nav-icon)) { opacity:1; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #appSidebar .sidebar-nav-item { gap:12px; height:auto; min-height:46px; padding:12px; font-size:13px; line-height:1.45; white-space:normal; border-radius:var(--composition-control-radius); }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #appSidebar .sidebar-nav-item.active { background:var(--theme-soft); box-shadow:inset 0 1px 0 #ffffffa0; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #appSidebar .sidebar-footer-message { gap:12px; padding:12px; }
}
/* Dashboard: heading, independent counters, then the appointment workspace. */
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWeek { row-gap:0; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader.synapse-overview-panel {
  background:none; border:0; box-shadow:none; border-radius:0; padding:0; margin:0 0 24px; gap:24px 20px;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader #dashboardGreetingTitle { font-size:clamp(30px,3.3vw,42px)!important; letter-spacing:-.045em; line-height:1.18; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader #dashboardWeekDaySummary { gap:18px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter {
  position:relative; display:grid; grid-template-columns:46px minmax(0,1fr); grid-template-rows:auto auto; gap:2px 14px;
  align-content:center; min-height:116px; padding:20px; border-radius:var(--composition-card-radius); border:1px solid color-mix(in srgb,var(--primary) 10%,var(--surface)); box-shadow:var(--composition-card-shadow);
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter::before { content:""; grid-column:1; grid-row:1/span 2; width:46px; height:46px; border-radius:14px; background:color-mix(in srgb,var(--primary) 9%,var(--surface)); box-shadow:inset 0 1px 0 #fff; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter::after { content:""; position:absolute; left:32px; top:calc(50% - 11px); width:22px; height:22px; background:currentColor; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='3'/%3E%3Cpath d='M8 3v4m8-4v4M4 10h16m-11 5h6'/%3E%3C/svg%3E") center/contain no-repeat; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter:nth-child(2)::after { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l4 4v14H7zM14 3v5h4M10 12h5m-5 4h5'/%3E%3C/svg%3E"); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter:nth-child(3)::after { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h7l2 3h9v11H3zM3 6V4h6l2 2'/%3E%3C/svg%3E"); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter strong { grid-column:2; grid-row:1; font-size:29px; line-height:1.15; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter span { grid-column:2; grid-row:2; font-size:12px; font-weight:600; line-height:1.4; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardListActions { margin:30px 0 0; padding:20px 22px; background:var(--surface); border:1px solid var(--border); border-bottom:0; border-radius:var(--composition-page-radius) var(--composition-page-radius) 0 0; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWeek > .dashboard-week-day { margin:0; padding:0 22px 22px; background:var(--surface); border:1px solid var(--border); border-top:0; border-radius:0 0 var(--composition-page-radius) var(--composition-page-radius); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .dashboard-day-appointments-group > h4 { padding-top:12px; margin:0 0 18px; font-family:var(--theme-title-font); font-weight:var(--theme-title-weight); font-size:20px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWeek .dashboard-week-appointment { min-height:88px; padding:18px 20px; border-radius:var(--composition-control-radius); grid-template-columns:74px minmax(0,1fr) auto; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .dashboard-week-appointment-main strong { font-size:15px; line-height:1.4; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .dashboard-week-appointment-main small { font-size:12px; line-height:1.5; }
/* A shared appointment timeline. The existing is-completed class comes only
   from session.done; a past time or a ready prescription never adds a check. */
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .agenda-appointment-row {
  position:relative; padding-left:28px; gap:8px; isolation:isolate;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .agenda-appointment-row::before {
  content:""; position:absolute; top:0; bottom:-12px; left:8px; width:1px; background:var(--border); z-index:-1; pointer-events:none;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .agenda-appointment-row::after {
  content:""; position:absolute; left:0; top:36px; width:17px; height:17px; box-sizing:border-box;
  border:2px solid var(--primary); border-radius:50%; background:var(--surface); pointer-events:none;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .agenda-appointment-row.is-completed::after {
  background-color:var(--primary);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10 3 3 7-7'/%3E%3C/svg%3E");
  background-position:center; background-size:13px; background-repeat:no-repeat;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWeek .dashboard-week-appointment:not(.is-drop-target) {
  color:var(--tx); background:var(--surface); border:1px solid var(--border); border-left-width:1px;
  box-shadow:none; text-align:left;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWeek .dashboard-week-appointment.is-focus-current:not(.is-drop-target) {
  border-color:color-mix(in srgb,var(--primary) 42%,var(--surface)); background:color-mix(in srgb,var(--theme-soft) 35%,var(--surface));
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .dashboard-week-appointment-time {
  color:var(--tx); font-weight:750; font-variant-numeric:tabular-nums;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .dashboard-week-appointment-status em {
  color:var(--primary-dk); background:var(--theme-soft); padding:5px 10px; border-radius:9px; font-size:12px; font-style:normal; font-weight:650;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .agenda-appointment-row.is-completed .dashboard-week-appointment-status em {
  color:var(--tx-3); background:var(--theme-canvas);
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab :is(.agenda-appointment-menu > summary,#dashboardMemos,#dashboardPastToggle) {
  color:var(--primary-dk); background:var(--surface); border:1px solid var(--border); border-radius:var(--composition-control-radius); box-shadow:none;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .agenda-appointment-menu > div {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--composition-card-radius); box-shadow:var(--composition-card-shadow-hover);
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .agenda-appointment-menu > div button {
  color:var(--tx); background:transparent; border-radius:var(--composition-control-radius); font:inherit;
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .agenda-appointment-menu > div button:hover {
  background:var(--theme-soft); color:var(--primary-dk);
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardCalendarControls :is(.dashboard-calendar-segments,.dashboard-calendar-period button) {
  box-shadow:none; border-radius:var(--composition-control-radius); border-color:var(--border);
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardCalendarControls .dashboard-calendar-segments button {
  min-height:40px; border-radius:9px; box-shadow:none; background:transparent; color:var(--tx-3);
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardCalendarControls .dashboard-calendar-segments button[aria-pressed="true"] {
  background:var(--surface); color:var(--primary-dk); border-color:transparent; box-shadow:0 2px 6px rgba(var(--theme-rgb),.06);
}
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .agenda-free-slot:not(.is-drop-target) { border-color:var(--border); color:var(--tx-3); background:var(--surface); border-radius:var(--composition-control-radius); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader #dashboardWeekRange { color:var(--tx-2); font-variant-numeric:tabular-nums; }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.appointment-nature-badge,.appointment-specialty-label) { color:var(--tx-3); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .appointment-nature-badge[data-appointment-nature="followup"] .appointment-nature-icon {
  color:var(--primary-dk); background:var(--theme-soft); border-color:var(--border); box-shadow:none;
}
/* Directory and dossier: clear grouped records, shorter useful cards. */
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientTab .patient-overview.synapse-overview-panel { background:none; box-shadow:none; border:0; padding:0; border-radius:0; gap:18px; margin-bottom:28px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientTab .patient-overview h1 { font-size:clamp(30px,3.3vw,42px)!important; font-weight:var(--theme-title-weight); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientTab .capacity-admission-summary { gap:18px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientTab .capacity-admission-summary > button { border-radius:var(--composition-card-radius); min-height:106px; padding:20px; box-shadow:var(--composition-card-shadow); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientTab .patient-list-surface { padding:24px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientTableBody { display:grid; gap:12px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientTableBody .clinical-patient-row:not(.clinical-patient-row-archived) { padding:20px!important; min-height:104px; border-radius:var(--composition-control-radius); box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientTableBody .clinical-patient-main strong { font-size:16px; font-weight:750; line-height:1.4; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .detail-modal-content { padding-inline:28px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .patient-unified-header { margin-bottom:20px; padding-top:18px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .detail-header { padding:12px 0 20px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .patient-record-navigation { border-radius:var(--composition-card-radius); padding:6px; margin:0 0 28px; background:var(--surface); border:1px solid var(--border); box-shadow:var(--composition-card-shadow); gap:6px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .patient-record-navigation .tab-button { border:0; font-size:13px; min-height:44px; padding:10px 16px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .patient-record-navigation .tab-button.active { background:var(--theme-soft); box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal .session-planning-overview-grid { gap:var(--composition-gap); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .session-planning-card { min-height:196px; border-radius:var(--composition-card-radius); padding:22px; box-shadow:var(--composition-card-shadow); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .session-planning-card.is-empty { min-height:164px; gap:12px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal .session-planning-card-date { font-size:23px; line-height:1.25; letter-spacing:-.025em; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal .session-planning-card.is-empty > strong { margin-top:8px; font-size:16px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal .session-planning-card p { font-size:13px; line-height:1.6; }
/* Assessment and session surfaces use the same scale without reducing field content. */
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal :is(.initial-assessment-overview,.reassessment-overview,.general-health-record,.follow-up-assessment-card,.session-preparation-next-action,.session-completed-summary) { padding:26px; margin-block:20px; border:1px solid var(--border); border-radius:var(--composition-card-radius); background:var(--surface); box-shadow:var(--composition-card-shadow); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #initialAssessmentWorkspace { padding:0; background:transparent; border:0; box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #initialAssessmentWorkspace .initial-assessment-page-header { padding:20px 24px; margin:0 0 24px; border:1px solid var(--border); border-radius:var(--composition-card-radius); background:var(--surface); box-shadow:var(--composition-card-shadow); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #assessmentChapterHub { padding:26px; background:var(--surface); border:1px solid var(--border); border-radius:var(--composition-page-radius); box-shadow:var(--composition-card-shadow); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #assessmentChapterHub h3 { font-size:28px; font-family:var(--theme-title-font); font-weight:var(--theme-title-weight); margin-bottom:20px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #assessmentChapterHub .assessment-chapter-grid { gap:20px; margin-block:24px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #assessmentChapterHub .assessment-chapter-card { border-radius:var(--composition-card-radius); padding:24px; min-height:152px; border:1px solid var(--border); background:var(--theme-canvas); box-shadow:none; gap:18px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #assessmentChapterHub .assessment-chapter-number { display:grid; place-items:center; width:44px; height:44px; min-width:44px; border-radius:14px; background:var(--theme-soft); color:var(--primary-dk); box-shadow:inset 0 1px 0 #fff; font-size:17px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #assessmentChapterHub .assessment-chapter-copy strong { font-size:17px; line-height:1.4; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #assessmentChapterHub .assessment-chapter-copy small { font-size:13px; line-height:1.6; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #initialAssessmentWorkspace :is(.assessment-focus-cluster,.assessment-capture-card,.assessment-added-module,.clinical-secondary-details,.assessment-general-health-context) { border-radius:var(--composition-card-radius); border-color:var(--border); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #initialAssessmentWorkspace .assessment-focus-cluster { padding:24px; margin-block:20px; background:var(--surface); box-shadow:var(--composition-card-shadow); }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.assessment-focus-cluster-grid,.session-preparation-outline,.initial-assessment-validated-summary-grid) { gap:16px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.assessment-chapter-heading h4,.session-preparation-step-heading h4,.session-preparation-heading strong) { font-family:var(--theme-title-font); font-weight:var(--theme-title-weight); font-size:25px; line-height:1.3; }
/* Gym and library: purposeful image cards, readable text and consistent gutters. */
html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-hero.gym-hero-compact.app-section-header { padding:0 0 22px; min-height:0; margin-bottom:24px; border:0; border-bottom:1px solid var(--border); border-radius:0; background:none; box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-command-bar { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:16px; align-items:center; margin-bottom:22px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #gymLibraryTransfer { order:initial; grid-column:2; grid-row:1; padding:0; border:0; background:none; box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #gymLibraryTransfer > summary { padding:12px 14px; min-height:44px; border:1px solid var(--border); border-radius:var(--composition-control-radius); background:var(--surface); font-size:12px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #gymLibraryTransfer[open] { grid-column:1/-1; grid-row:2; padding:20px; border:1px solid var(--border); background:var(--surface); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #gymCreateMenu { grid-column:3; grid-row:1; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #gymCreateMenu > summary { min-height:44px; padding:12px 18px; border-radius:var(--composition-control-radius); background:var(--primary); border-color:var(--primary); box-shadow:0 4px 10px rgba(var(--primary-rgb),.12); font-size:13px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page #gymExercisesView:not(.hidden) { grid-template-columns:minmax(0,1fr) auto; gap:16px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #gymExercisesView > .gym-personal-library { grid-column:1; grid-row:1; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #gymExercisesView > .gym-results-heading { grid-column:2; grid-row:1; align-self:center; justify-self:end; margin:0; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #gymExercisesView > button[data-open-exercise-community] { grid-column:1; justify-self:start; min-height:40px; padding:9px 12px; font-size:12px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #gymSharedExercises { grid-column:2; justify-self:end; padding:0; border:0; margin:0; background:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #gymSharedExercises > summary { min-height:40px; padding:10px 12px; border:1px solid var(--border); border-radius:var(--composition-control-radius); background:var(--surface); font-size:12px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #gymSharedExercises[open] { grid-column:1/-1; justify-self:stretch; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-toolbar { margin:0 0 20px; padding:0; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page :is(.gym-view-switch,.gym-collection-composer) { border-radius:var(--composition-control-radius); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-view-switch { padding:5px; background:var(--surface); border:1px solid var(--border); box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-view-switch button { min-height:44px; padding:10px 18px; font-size:13px; border-radius:10px; box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-view-switch button[aria-selected="true"] { background:var(--theme-soft); color:var(--primary-dk); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-search-shell { margin-block:22px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-exercise-grid { gap:var(--composition-gap); margin-top:24px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-exercise-card { border-radius:var(--composition-card-radius); overflow:hidden; box-shadow:var(--composition-card-shadow); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-exercise-card .gym-exercise-preview { height:190px; min-height:190px; background:var(--theme-canvas); border-bottom:1px solid var(--border); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-exercise-preview img { max-height:190px; width:100%; height:100%; object-fit:contain; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-exercise-copy { padding:20px; gap:12px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-exercise-copy h3 { font-size:17px; line-height:1.4; letter-spacing:-.02em; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-exercise-copy p { font-size:13px; line-height:1.6; }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.gym-template-card,.gym-template-step,.clinical-library-test-card) { border-radius:var(--composition-card-radius); padding:24px; background:var(--surface); border:1px solid var(--border); box-shadow:var(--composition-card-shadow); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .clinical-library-page.library-card { padding:0; background:none; border:0; box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .clinical-library-hero { gap:24px; align-items:center; margin-bottom:24px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .clinical-library-hero h2 { font-family:var(--theme-title-font); font-weight:var(--theme-title-weight); font-size:clamp(30px,3.2vw,40px); line-height:1.18; letter-spacing:-.04em; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .clinical-library-summary { flex:0 0 auto; min-width:180px; padding:20px; border-radius:var(--composition-card-radius); box-shadow:var(--composition-card-shadow); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .clinical-library-grid { gap:var(--composition-gap); margin-top:24px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .clinical-library-test-card { gap:16px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .clinical-library-test-card h3 { font-size:19px; line-height:1.4; letter-spacing:-.025em; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .clinical-library-test-card p { font-size:13px; line-height:1.65; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .clinical-library-card-meta { padding:16px; border-radius:var(--composition-control-radius); background:var(--theme-canvas); gap:14px; }
/* Cabinet and settings: consistent groups, no oversized colored sub-navigation. */
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.cabinet-workspace-view,.cabinet-network-view,.cabinet-impact-view) { display:grid; gap:var(--composition-gap); }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.cabinet-workspace-view,.cabinet-network-view,.cabinet-impact-view) > section { margin-block:0; }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.cabinet-workspace-view,.cabinet-network-view,.cabinet-impact-view).hidden { display:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .cabinet-mobile-view-tabs { gap:8px; padding:6px; margin-bottom:28px; background:var(--surface); border:1px solid var(--border); border-radius:var(--composition-card-radius); box-shadow:var(--composition-card-shadow); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .cabinet-mobile-view-tabs button { min-height:64px; padding:12px 18px; border-radius:var(--composition-control-radius); border:0; background:transparent; color:var(--tx-3); box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .cabinet-mobile-view-tabs button.is-active { background:var(--theme-soft); color:var(--primary-dk); box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .cabinet-mobile-view-tabs button strong { font-size:16px; font-family:var(--font); color:inherit; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .cabinet-mobile-view-tabs button small { font-size:12px; color:inherit; line-height:1.5; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .cabinet-coordination { overflow:hidden; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .cabinet-coordination-list { gap:16px; padding:20px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .cabinet-coordination-item { padding:18px; min-height:104px; border:1px solid var(--border); border-radius:var(--composition-control-radius); background:var(--theme-canvas); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .settings-page-grid { gap:var(--composition-gap); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .settings-page-grid > .dashboard-item { padding:28px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .settings-page-grid > .dashboard-item > strong { display:block; font-size:18px; margin-bottom:10px; letter-spacing:-.02em; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .settings-page-grid p { font-size:13px; line-height:1.65; margin-bottom:16px; }
/* Patient: a calmer desktop grid and full-width, distinct actions on mobile. */
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-app-header { padding:0 0 24px; margin-bottom:24px; border-bottom:1px solid var(--border); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-area-nav { border-radius:var(--composition-card-radius); padding:6px; gap:6px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-welcome h2 { font-size:clamp(30px,3.3vw,40px); line-height:1.2; margin:0 0 24px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-primary { padding:32px; border-radius:var(--composition-page-radius); margin:0; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-primary h3 { font-size:29px; line-height:1.25; letter-spacing:-.025em; font-family:var(--theme-title-font); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-primary > .primary-btn { min-height:48px; border-radius:var(--composition-control-radius); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-at-a-glance { gap:var(--composition-gap); margin-top:24px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-glance-card { padding:24px; border-radius:var(--composition-card-radius); min-height:140px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-glance-card > strong { font-size:16px; line-height:1.5; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-glance-card > small { font-size:13px; line-height:1.6; }
/* Dialogs, messaging and confirmations share the same craft and scale. */
html[data-interface-theme]:not([data-interface-theme="classic"]) #authenticationOverlay #authenticationCard { border-radius:var(--composition-page-radius); border-color:var(--border); box-shadow:0 24px 80px rgba(var(--primary-rgb),.12),inset 0 1px 0 #fff; }
html[data-interface-theme]:not([data-interface-theme="classic"]) #authenticationOverlay .authentication-story { border-radius:var(--composition-page-radius); }
html[data-interface-theme]:not([data-interface-theme="classic"]) #authenticationOverlay #authenticationCard :is(input,button) { border-radius:var(--composition-control-radius); }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.modal-content,dialog,.synapse-floating-card) { border-radius:var(--composition-page-radius); border-color:var(--border); box-shadow:0 24px 80px rgba(var(--primary-rgb),.15),inset 0 1px 0 #fff; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .modal-content:not(.detail-modal-content) { padding:28px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.modal-header h2,.modal-header h3,dialog h3) { font-family:var(--theme-title-font); font-weight:var(--theme-title-weight); font-size:26px; letter-spacing:-.03em; }
html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.modal-content form,.modal-form) { row-gap:18px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-agent-panel { background:var(--surface); border:1px solid var(--border); border-radius:var(--composition-page-radius); box-shadow:0 22px 70px rgba(var(--primary-rgb),.16); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-agent-header { padding:24px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-agent-header h3 { font-size:23px; font-family:var(--theme-title-font); font-weight:var(--theme-title-weight); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-messaging-contact { min-height:72px; padding:16px; border-radius:var(--composition-control-radius); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-agent-messages { gap:16px; padding:24px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-agent-message { padding:15px 18px; border-radius:18px 18px 18px 5px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-agent-message.is-user { border-radius:18px 18px 5px 18px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-agent-message p { font-size:14px; line-height:1.65; }
/* Learning reuses the theme without loading clinical data or changing training state. */
html[data-interface-theme]:not([data-interface-theme="classic"]) body.synapse-learning-theme { --violet:var(--primary); --line:var(--border); color:var(--tx); font-size:15px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-learning-theme :is(.learning-bar,main) { max-width:1160px; margin-inline:auto; padding-inline:32px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-learning-theme :is(.learning-bar,.topbar) { min-height:88px; background:var(--surface); border-bottom:1px solid var(--border); padding-block:20px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-learning-theme main { padding-block:36px; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-learning-theme :is(h1,h2) { font-family:var(--theme-title-font); font-weight:var(--theme-title-weight); color:var(--tx); letter-spacing:-.035em; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-learning-theme h1 { font-size:clamp(34px,4.4vw,52px); line-height:1.15; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-learning-theme :is(.welcome,.learning-card,.story,form#reasoning,.debrief) { border:1px solid var(--border); border-radius:var(--composition-card-radius); background:var(--surface); padding:32px; box-shadow:var(--composition-card-shadow); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-learning-theme .welcome { padding:40px; background:var(--theme-hero); border-radius:var(--composition-page-radius); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-learning-theme :is(.learning-grid,.workspace) { gap:var(--composition-gap); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-learning-theme :is(.eyebrow,.action,.learning-bar span,.topbar strong span,a) { color:var(--primary-dk); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-learning-theme button { min-height:46px; padding:12px 18px; background:var(--primary); border:1px solid var(--primary); border-radius:var(--composition-control-radius); color:#fff; box-shadow:0 4px 10px rgba(var(--primary-rgb),.12); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-learning-theme button.secondary { color:var(--primary-dk); background:var(--theme-soft); border-color:var(--border); box-shadow:none; }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-learning-theme #chapters button[aria-current="step"] { color:#fff; background:var(--primary); border-color:var(--primary); }
html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-learning-theme :is(.notice,.answer-copy,.later,.badge,.pill) { border-color:var(--border); border-radius:var(--composition-control-radius); background:var(--theme-soft); color:var(--tx-2); }
@media(min-width:1101px) {
  html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-exercise-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-area { width:min(920px,100%); max-width:none; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-at-a-glance { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(min-width:901px) {
  html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal > .detail-modal-content.initial-assessment-page-open { padding-right:88px; }
}
@media(min-width:901px) and (max-width:1100px) {
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader { grid-template-columns:1fr; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader #dashboardCalendarControls { justify-self:start; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter { padding:16px; grid-template-columns:1fr; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter::before,
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter::after { display:none; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter :is(strong,span) { grid-column:1; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-exercise-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:900px) {
  html[data-interface-theme]:not([data-interface-theme="classic"]) #mainContent.main-content { padding:24px 18px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) body.patient-record-page-open #patientDetailModal > .detail-modal-content { padding-inline:16px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .patient-record-navigation { margin-bottom:22px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader.synapse-overview-panel { gap:20px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter { display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:16px 12px; min-height:110px; border-radius:16px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter::before,
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter::after { display:none; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter strong { font-size:27px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader .dashboard-day-counter span { font-size:12px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader #dashboardWeekDaySummary { gap:10px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.dashboard-item,.cabinet-organization,.cabinet-shared-followups,.gym-community-propose,.gym-community-catalog) { padding:22px; }
}
@media(max-width:600px) {
  html[data-interface-theme]:not([data-interface-theme="classic"]) { --composition-gap:16px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #mainContent.main-content { padding:24px 16px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWorkspaceHeader #dashboardGreetingTitle { font-size:32px!important; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardListActions { margin-top:24px; padding:16px 12px; gap:6px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardListActions button { font-size:12px; padding:10px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWeek > .dashboard-week-day { padding-inline:12px; padding-bottom:16px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab #dashboardWeek .dashboard-week-appointment { padding:16px 12px; grid-template-columns:62px minmax(0,1fr); }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .agenda-appointment-row { padding-left:22px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .agenda-appointment-row::before { left:6px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #dashboardTab .agenda-appointment-row::after { top:30px; left:-2px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #patientTab .patient-list-surface { padding:16px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #patientTableBody .clinical-patient-row:not(.clinical-patient-row-archived) { padding:18px!important; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal.patient-detail-page .session-planning-card { min-height:0; padding:22px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #assessmentChapterHub { padding:20px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #assessmentChapterHub .assessment-chapter-grid { grid-template-columns:1fr; gap:14px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #assessmentChapterHub .assessment-chapter-card { padding:20px; min-height:132px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #patientDetailModal :is(.initial-assessment-overview,.reassessment-overview,.general-health-record,.follow-up-assessment-card,.session-preparation-next-action,.session-completed-summary) { padding:20px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #initialAssessmentWorkspace .initial-assessment-page-header { padding:18px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #initialAssessmentWorkspace .assessment-focus-cluster { padding:20px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-exercise-grid { grid-template-columns:1fr; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-command-bar { grid-template-columns:minmax(0,1fr) auto; gap:12px; margin-bottom:16px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-view-switch { width:100%; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #gymCreateMenu { grid-column:2; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #gymLibraryTransfer { grid-column:1/-1; grid-row:2; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page #gymExercisesView:not(.hidden) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #gymExercisesView > .gym-personal-library { grid-column:1/-1; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #gymExercisesView > .gym-results-heading { grid-column:1/-1; grid-row:auto; justify-self:start; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #gymExercisesView > button[data-open-exercise-community] { grid-column:1; justify-self:stretch; white-space:normal; min-height:60px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #gymSharedExercises { grid-column:2; justify-self:stretch; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #gymSharedExercises > summary { white-space:normal; min-height:60px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #gymSharedExercises[open] { grid-column:1/-1; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-exercise-card .gym-exercise-preview { height:200px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .gym-page .gym-exercise-preview img { max-height:200px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .clinical-library-grid { grid-template-columns:1fr; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .clinical-library-summary { min-width:0; min-height:76px; grid-template-columns:46px minmax(0,1fr); grid-template-rows:auto auto; gap:2px 12px; padding:18px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .clinical-library-summary strong { grid-column:1; grid-row:1/span 2; font-size:32px; margin:0; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .clinical-library-summary span { grid-column:2; grid-row:1; margin:0; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .clinical-library-summary small { grid-column:2; grid-row:2; margin:0; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .cabinet-mobile-view-tabs button { min-height:64px; padding:10px 8px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .cabinet-mobile-view-tabs button strong { font-size:14px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .cabinet-mobile-view-tabs button small { font-size:11px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .cabinet-coordination-list { padding:16px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .settings-page-grid > .dashboard-item { padding:22px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-primary { padding:28px 24px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-primary h3 { font-size:27px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) #patientAppTab .patient-home-glance-card { min-height:0; padding:22px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .modal-content:not(.detail-modal-content) { padding:22px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),select,textarea) { font-size:16px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-learning-theme :is(.learning-bar,main) { padding-inline:18px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-learning-theme :is(.welcome,.learning-card,.story,form#reasoning,.debrief) { padding:24px; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) .synapse-learning-theme .workspace { grid-template-columns:1fr; }
}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.gym-exercise-card,.clinical-library-test-card,.assessment-chapter-card,.clinical-patient-row) { transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
  html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.gym-exercise-card,.clinical-library-test-card,.assessment-chapter-card,.clinical-patient-row):hover { transform:translateY(-2px); border-color:color-mix(in srgb,var(--primary) 25%,var(--surface)); box-shadow:var(--composition-card-shadow-hover); }
}
@media(prefers-reduced-motion:reduce) {
  html[data-interface-theme]:not([data-interface-theme="classic"]) :is(.gym-exercise-card,.clinical-library-test-card,.assessment-chapter-card,.clinical-patient-row) { transition:none; transform:none; }
}
html[data-interface-theme]:not([data-interface-theme="classic"]) .patient-care-profile-pending {display:flex;flex-direction:column;gap:6px;line-height:1.4;}
html[data-interface-theme]:not([data-interface-theme="classic"]) .patient-care-profile-pending > span {font-size:12px;color:var(--text-muted);}
