/* Reference palette and shared component contracts for both themes. */
@media screen {
 :root,[data-theme='light']{
  color-scheme:light;
  --mc-primary:#0e7c86;--mc-hover:#0b6871;--mc-soft:#e4f2f3;--mc-soft-text:#0b5c64;
  --mc-gradient:linear-gradient(135deg,#129099,#0a5a63);
  --mc-bg:#f5f7f8;--mc-surface:#fff;--mc-card:#fff;--mc-alt:#f9fafb;--mc-border:#e3e8ea;--mc-strong:#cbd3d7;
  --mc-text:#1b2530;--mc-secondary:#55636e;--mc-muted:#8a97a0;--mc-on-primary:#fff;
  --mc-success:#2e9d6f;--mc-success-bg:#e6f5ef;--mc-warning:#c9821a;--mc-warning-bg:#fbf0de;--mc-danger:#c1443c;--mc-danger-bg:#fae7e5;
  --mc-shadow:0 1px 2px #141e230f,0 1px 1px #141e230a;--mc-popup-shadow:0 10px 28px #141e2324;
 }
 [data-theme='dark']{
  color-scheme:dark;
  --mc-primary:#35b0b8;--mc-hover:#4fc2c9;--mc-soft:#113238;--mc-soft-text:#7fd4da;
  --mc-gradient:linear-gradient(135deg,#3dbcc4,#1d7a82);
  --mc-bg:#0e1416;--mc-surface:#141c1f;--mc-card:#182226;--mc-alt:#1d282c;--mc-border:#263238;--mc-strong:#33424a;
  --mc-text:#e7edef;--mc-secondary:#a6b3b8;--mc-muted:#71818a;--mc-on-primary:#08191b;
  --mc-success:#4fbe8e;--mc-success-bg:#123227;--mc-warning:#e0a23e;--mc-warning-bg:#34270f;--mc-danger:#e0665c;--mc-danger-bg:#391a18;
  --mc-shadow:0 1px 2px #0000004d;--mc-popup-shadow:0 8px 24px #00000073;
 }
 html[data-theme] body.hms-ui{
  --teal:var(--mc-primary);--teal-dark:var(--mc-hover);--teal-light:var(--mc-soft);--teal-mid:var(--mc-border);
  --navy:var(--mc-text);--ink:var(--mc-text);--muted:var(--mc-secondary);--paper:var(--mc-bg);--line:var(--mc-border);--signal:var(--mc-primary);--forest-2:var(--mc-primary);
  --ui-ink:var(--mc-text);--ui-body:var(--mc-secondary);--ui-muted:var(--mc-muted);--ui-line:var(--mc-border);--ui-bg:var(--mc-bg);--ui-surface:var(--mc-card);
  --slate-50:var(--mc-bg);--slate-100:var(--mc-alt);--slate-200:var(--mc-border);--slate-400:var(--mc-muted);--slate-500:var(--mc-secondary);--slate-600:var(--mc-secondary);--slate-700:var(--mc-text);--slate-800:var(--mc-text);
  --green:var(--mc-success);--green-light:var(--mc-success-bg);--red:var(--mc-danger);--red-light:var(--mc-danger-bg);--amber:var(--mc-warning);--amber-light:var(--mc-warning-bg);
  background:var(--mc-bg);color:var(--mc-secondary);font:400 14px/1.55 'Inter',system-ui,sans-serif;
 }
 .hms-ui :is(button,input,select,textarea){font-family:'Inter',system-ui,sans-serif}
 html[data-theme] .hms-ui :is(h1,h2,h3,h4){font-family:'Inter',system-ui,sans-serif;color:var(--mc-text);font-weight:600}
 html[data-theme] .hms-ui .page .page-header h1,html[data-theme] .hms-ui .page .section-title-row h2{color:var(--mc-text)}
 html[data-theme] .hms-ui :focus-visible{outline-color:var(--mc-primary)}
 /* Navigation and topbar. */
 html[data-theme] .hms-ui :is(.sidebar,.header,.sidebar-footer,.shell-footer,.top-bar){background:var(--mc-surface);border-color:var(--mc-border);color:var(--mc-secondary)}
 html[data-theme] .hms-ui :is(.sidebar-logo,.sidebar-settings,.header .user-dropdown-wrap){border-color:var(--mc-border)}
 html[data-theme] .hms-ui :is(.sidebar-logo .brand,.header-title,.header .hd-name,.workspace-identity strong,.shell-copyright strong){color:var(--mc-text)}
 html[data-theme] .hms-ui :is(.shell-breadcrumb,.sidebar .nav-label,.workspace-identity small,.shell-version,.profile-chevron){color:var(--mc-muted)}
 html[data-theme] .hms-ui .sidebar .nav-item{color:var(--mc-secondary);background:transparent}
 html[data-theme] .hms-ui .sidebar .nav-item .icon{color:var(--mc-muted);background:transparent}
 html[data-theme] .hms-ui .sidebar .nav-item:hover,html[data-theme] .hms-ui .sidebar .nav-group[open]>summary{background:var(--mc-alt);color:var(--mc-text)}
 html[data-theme] .hms-ui .sidebar .nav-item.active{background:var(--mc-soft);color:var(--mc-soft-text)}
 html[data-theme] .hms-ui .sidebar .nav-item.active .icon,html[data-theme] .hms-ui .sidebar .nav-group:has(.nav-item.active)>summary{color:var(--mc-primary)}
 html[data-theme] .hms-ui .sidebar .nav-item.active::before{background:var(--mc-gradient)}
 html[data-theme] .hms-ui :is(.workspace-identity,.header .hd-avatar,.workspace-avatar){background:var(--mc-soft);color:var(--mc-primary);border-color:var(--mc-border)}
 html[data-theme] .hms-ui .sidebar-collapse-btn{color:var(--mc-secondary);border-color:var(--mc-border);background:var(--mc-surface)}
 html[data-theme] .hms-ui .sidebar-toggle{color:var(--mc-text);border-color:var(--mc-border);background:var(--mc-surface)}
 html[data-theme] .hms-ui .logout-tile{color:var(--mc-secondary)}
 html[data-theme] .hms-ui .logout-tile:hover{color:var(--mc-danger);background:var(--mc-danger-bg)}
 html[data-theme] .hms-ui :is(.shell-search,.shell-search.expanded){background:var(--mc-alt);border-color:var(--mc-border)}
 html[data-theme] .hms-ui .shell-search input{color:var(--mc-text)}
 html[data-theme] .hms-ui :is(.shell-icon,.shell-search button){color:var(--mc-secondary)}
 html[data-theme] .hms-ui .shell-icon:hover{background:var(--mc-soft);color:var(--mc-primary)}
 html[data-theme] .hms-ui :is(.hd-dropdown,.shell-help-panel,.modal-box,.rp-dialog,.dt-menu,.dt-export-menu){background:var(--mc-card);border-color:var(--mc-border);color:var(--mc-secondary);box-shadow:var(--mc-popup-shadow)}
 html[data-theme] .hms-ui :is(.hd-top,.hd-item:hover,.dt-menu-item:hover){background:var(--mc-alt)}
 html[data-theme] .hms-ui :is(.hd-item,.hd-top-name,.shell-help-panel strong){color:var(--mc-text)}
 html[data-theme] .hms-ui :is(.hd-divider,.hd-top){border-color:var(--mc-border)}
 html[data-theme] .hms-ui :is(.shell-help-panel p,.hd-top-role){color:var(--mc-secondary)}
 html[data-theme] .hms-ui :is(.shell-help-panel a,.shell-footer a:hover){color:var(--mc-primary)}
 /* Cards and clinical panels across modules. */
 html[data-theme] .hms-ui :is(.card,.stat-card,.doctor-card,.dept-card,.merchant-card,.role-card,.rp-stat,.dx-panel,.dx-kpi,.ipd-stat,.ward-tile,.auth-card,.login-layout,.book,.dept,.role,.b){background:var(--mc-card);border:1px solid var(--mc-border);border-radius:10px;box-shadow:var(--mc-shadow);color:var(--mc-secondary)}
 html[data-theme] .hms-ui :is(.card-header,.card-body,.dx-ph,.dx-act,.dx-tools){background:var(--mc-card);border-color:var(--mc-border)}
 html[data-theme] .hms-ui :is(.card-header h2,.dx-ph h2,.dx-act strong,.dx-team h3){font-size:15px;color:var(--mc-text)}
 html[data-theme] .hms-ui :is(.stat-card .value,.dx-kpi .val,.ipd-stat .val){font:700 28px/1.25 'Inter',system-ui,sans-serif;color:var(--mc-text)}
 html[data-theme] .hms-ui :is(.stat-card .label,.dx-kpi .lbl){color:var(--mc-secondary);font-size:13px}
 html[data-theme] .hms-ui :is(.stat-card .sub,.dx-kpi .cap,.dx-act small,.dx-ph .ey,.dx-eyebrow,.form-hint,.text-muted){color:var(--mc-muted);font-size:12px}
 html[data-theme] .hms-ui :is(.dx-chip,.stat-icon,.metric-icon,.ico,.patient-avatar){background:var(--mc-soft);color:var(--mc-primary)}
 html[data-theme] .hms-ui :is(.dx-fig,.dx-next,.overview-banner,.welcome-banner){background:var(--mc-alt);border-color:var(--mc-border);color:var(--mc-secondary)}
 html[data-theme] .hms-ui :is(.dx-fig .big,.dx-fig .sub b,.dx-next h3,.dx-team h3){color:var(--mc-text)}
 html[data-theme] .hms-ui :is(.dx-fig .lbl,.dx-fig .cap,.dx-fig .sub span,.dx-hero p,.dx-team p){color:var(--mc-secondary)}
 html[data-theme] .hms-ui .page .dx-hero{background:transparent;border:0;box-shadow:none}
 html[data-theme] .hms-ui .page .dx-kpis{background:var(--mc-card);border-color:var(--mc-border)}
 html[data-theme] .hms-ui .page .dx-kpi{border:0;border-right:1px solid var(--mc-border);border-radius:0;box-shadow:none}
 html[data-theme] .hms-ui .page .dx-kpi:last-child{border-right:0}
 html[data-theme] .hms-ui .page .dx-panel .card{border:0;border-top:1px solid var(--mc-border);border-radius:0;box-shadow:none}
 html[data-theme] .hms-ui .dx-link{color:var(--mc-primary)}
 html[data-theme] .hms-ui :is(.dx-act:hover,.dx-kpi:hover){background:var(--mc-alt)}
 html[data-theme] .hms-ui :is(.dx-note,.recovery-note){background:var(--mc-soft);border-color:var(--mc-border);color:var(--mc-soft-text)}
 /* Inputs, labels and buttons. Preserve validation and disabled states. */
 html[data-theme] .hms-ui :is(.page,.auth-body,.auth-card,.hms-public-booking,.book) :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]):not([type=color]),select,textarea){background:var(--mc-card);color:var(--mc-text);border:1px solid var(--mc-strong);border-radius:6px;min-height:40px;padding:8px 12px;font-size:14px;box-shadow:none}
 html[data-theme] .hms-ui.hms-public-booking :is(input,select){background:var(--mc-card);color:var(--mc-text);border-color:var(--mc-strong)}
 html[data-theme] .hms-ui :is(input,textarea)::placeholder{color:var(--mc-muted);opacity:1}
 html[data-theme] .hms-ui :is(.form-control,.f input,.f select):focus{border-color:var(--mc-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--mc-primary) 20%,transparent);outline:0}
 html[data-theme] .hms-ui :is(.form-control,input,select,textarea):disabled{background:var(--mc-alt);color:var(--mc-muted);opacity:.65}
 html[data-theme] .hms-ui :is(.form-control,input,textarea)[readonly]{background:var(--mc-alt)}
 html[data-theme] .hms-ui :is(.form-label,.f label,.auth-body label){font-size:12px;font-weight:500;color:var(--mc-secondary)}
 html[data-theme] .hms-ui :is(.form-control.invalid,.form-control.is-invalid){border-color:var(--mc-danger);background:var(--mc-danger-bg)}
 html[data-theme] .hms-ui .form-control.valid{border-color:var(--mc-success)}
 html[data-theme] .hms-ui :is(.field-error,.form-error,.field-validation-error){color:var(--mc-danger)}
 html[data-theme] .hms-ui .btn,html[data-theme] .hms-ui .dx-btn{font-size:14px;font-weight:500;border-radius:6px}
 html[data-theme] .hms-ui :is(.btn-primary,.dx-btn.sig,.btn.sig,.btn.dk,.submit-btn,.nav .login){background:var(--mc-gradient);color:var(--mc-on-primary);border-color:var(--mc-primary)}
 html[data-theme] .hms-ui :is(.btn-primary,.dx-btn.sig,.submit-btn):hover{background:var(--mc-hover);color:var(--mc-on-primary);border-color:var(--mc-hover)}
 html[data-theme] .hms-ui :is(.btn-outline,.btn-secondary,.btn-ghost,.btn.out,.dx-btn.ghost){background:var(--mc-card);color:var(--mc-secondary);border-color:var(--mc-strong)}
 html[data-theme] .hms-ui :is(.btn-outline,.btn-secondary,.btn-ghost):hover{background:var(--mc-alt);color:var(--mc-text)}
 html[data-theme] .hms-ui .btn-danger{background:var(--mc-danger);color:#fff;border-color:var(--mc-danger)}
 html[data-theme] .hms-ui :is(.btn:disabled,.submit-btn:disabled){opacity:.5;cursor:not-allowed}
 html[data-theme] .hms-ui :is(input[type=checkbox],input[type=radio]){accent-color:var(--mc-primary)}
 /* Tables and DataTables controls. */
 html[data-theme] .hms-ui .table-wrap>table{background:var(--mc-card);color:var(--mc-secondary);font-size:14px}
 html[data-theme] .hms-ui .table-wrap>table thead th{background:var(--mc-alt);color:var(--mc-muted);border-color:var(--mc-border);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;padding:12px 16px}
 html[data-theme] .hms-ui .table-wrap>table tbody td{color:var(--mc-secondary);border-color:var(--mc-border);font-size:14px;padding:12px 16px}
 html[data-theme] .hms-ui .table-wrap>table tbody tr:hover td{background:var(--mc-alt)}
 html[data-theme] .hms-ui :is(.dt-toolbar,.dt-footer,.dt-controls,.pagination,.pager,.recent-appts-footer,.patients-search-row,.billing-search,.recent-appts-search,.today-search){background:var(--mc-card);border-color:var(--mc-border);color:var(--mc-secondary)}
 html[data-theme] .hms-ui :is(.dt-toolbar input,.dt-toolbar select){background:var(--mc-card);color:var(--mc-text);border-color:var(--mc-strong)}
 html[data-theme] .hms-ui :is(.hospital-preview-body,.workspace-settings-tabs,.filter-bar,.search-bar,.tab-content){background:var(--mc-card);border-color:var(--mc-border);color:var(--mc-secondary)}
 html[data-theme] .hms-ui :is(.form-section-title,.reg-section-title,.sec){color:var(--mc-text);font-weight:600}
 html[data-theme] .hms-ui :is(.step-num,.reg-step-num,.n){background:var(--mc-soft);color:var(--mc-soft-text)}
 html[data-theme] .hms-ui :is(.sec-num,.badge-gray){background:var(--mc-alt);color:var(--mc-secondary)}
 html[data-theme] .hms-ui :is(.lookup-hint,.pharmacy-notice){background:var(--mc-soft);color:var(--mc-soft-text);border-color:var(--mc-border)}
 html[data-theme] .hms-ui :is(.pharmacy-tabs,.attendance-tabs,.diagnostics-tabs) a{background:var(--mc-card);color:var(--mc-secondary);border-color:var(--mc-border)}
 html[data-theme] .hms-ui :is(.pharmacy-tabs,.attendance-tabs,.diagnostics-tabs) a.active{background:var(--mc-soft);color:var(--mc-soft-text);border-color:var(--mc-primary)}
 html[data-theme] .hms-ui .password-control .password-eye-button{color:var(--mc-muted)}
 html[data-theme] .hms-ui .password-control .password-eye-button:hover{background:var(--mc-soft);color:var(--mc-primary)}
 html[data-theme] .hms-ui .slot-btn{background:var(--mc-card);color:var(--mc-text);border-color:var(--mc-strong)}
 html[data-theme] .hms-ui .slot-btn.selected{background:var(--mc-primary);color:var(--mc-on-primary);border-color:var(--mc-primary)}
 html[data-theme] .hms-ui .slot-btn.unavailable{background:var(--mc-alt);color:var(--mc-muted);border-color:var(--mc-border)}
 html[data-theme] .hms-ui .slot-break{background:var(--mc-warning-bg);color:var(--mc-warning);border-color:var(--mc-warning)}
 html[data-theme] .hms-ui .selected-time-banner{background:var(--mc-soft);color:var(--mc-soft-text);border-color:var(--mc-primary)}
 html[data-theme] .hms-ui :is(.dt-page-numbers a,.dt-page-numbers button,.pagination a){background:var(--mc-card);border-color:var(--mc-border);color:var(--mc-secondary)}
 html[data-theme] .hms-ui .dt-page-numbers [aria-current=page]{background:var(--mc-primary);color:var(--mc-on-primary);border-color:var(--mc-primary)}
 /* Semantic status colors remain distinct in either mode. */
 html[data-theme] .hms-ui :is(.badge-teal,.badge-blue,.record-tab.active,.status-tab.active,.dept-tab.active){background:var(--mc-soft);border-color:var(--mc-border);color:var(--mc-soft-text)}
 html[data-theme] .hms-ui :is(.badge-success,.badge-green,.status-confirmed,.status-completed,.flash.ok){background:var(--mc-success-bg);color:var(--mc-success);border-color:var(--mc-success)}
 html[data-theme] .hms-ui :is(.badge-warning,.badge-amber,.status-pending,.status-waiting){background:var(--mc-warning-bg);color:var(--mc-warning)}
 html[data-theme] .hms-ui :is(.badge-danger,.badge-red,.status-cancelled,.flash.bad){background:var(--mc-danger-bg);color:var(--mc-danger);border-color:var(--mc-danger)}
 html[data-theme] .hms-ui :is(.record-tab,.status-tab,.dept-tab){background:var(--mc-card);border-color:var(--mc-border);color:var(--mc-secondary)}
 html[data-theme] .hms-ui :is(.record-tab.active,.status-tab.active,.dept-tab.active){background:var(--mc-soft);color:var(--mc-soft-text)}
 html[data-theme] .hms-ui .workspace-settings-tabs [aria-current=page]{background:var(--mc-soft);color:var(--mc-soft-text);border-color:var(--mc-border)}
 /* Public, authentication, setup and standalone pages. */
 html[data-theme] .hms-ui :is(.stage,.login-wrap-page,.auth-wrap,.wrap){background:var(--mc-bg);color:var(--mc-secondary)}
 html[data-theme] .hms-ui :is(.nav,.top-bar,.care-visual figcaption,.auth-card-top){background:var(--mc-surface);border-color:var(--mc-border)}
 html[data-theme] .hms-ui :is(.brand,.nav nav,.top-logo,.login-wrap-page .top-bar .logo-name){color:var(--mc-text)}
 html[data-theme] .hms-ui :is(.hero .lead,.sh p,.dept p,.role ul,.b p,.mini div,.care-visual figcaption div>span){color:var(--mc-secondary)}
 html[data-theme] .hms-ui :is(.mini,.dept .go,.info div){border-color:var(--mc-border)}
 html[data-theme] .hms-ui :is(.mini b,.care-visual strong,.dept h3,.role h3){color:var(--mc-text)}
 html[data-theme] .hms-ui :is(.live,.login-intro,.login-features span){background:var(--mc-soft);border-color:var(--mc-border);color:var(--mc-soft-text)}
 html[data-theme] .hms-ui :is(.login-intro h2,.login-intro p,.auth-subtitle,.auth-body .register-link){color:var(--mc-secondary)}
 html[data-theme] .hms-ui :is(.login-eyebrow,.auth-body a,.reg-step-num){color:var(--mc-primary)}
 html[data-theme] .hms-ui .login-wrap-page .auth-footer{border-color:var(--mc-border);color:var(--mc-muted);background:var(--mc-bg)}
 html[data-theme] .hms-ui .close{background:var(--mc-surface);border-top:1px solid var(--mc-border);color:var(--mc-secondary)}
 html[data-theme] .hms-ui .close h2{color:var(--mc-text)}
 html[data-theme] .hms-ui :is(.close h2 span,.dept .go){color:var(--mc-primary)}
 html[data-theme] .hms-ui :is(.info dt,.foot){color:var(--mc-muted);border-color:var(--mc-border)}
 html[data-theme] .hms-ui :is(.installer-window,.installer-panel,.activation-welcome){background:var(--mc-card);color:var(--mc-secondary);border-color:var(--mc-border)}
 html[data-theme] .hms-ui :is(.installer-topline,.installer-footer){background:var(--mc-surface);border-color:var(--mc-border)}
 html[data-theme] .hms-ui.installer-body{--accent:var(--mc-primary)}
 html[data-theme] .hms-ui :is(.installer-sidebar,.setup-visual,.setup-policy,.setup-actions,.setup-summary,.welcome-features>div){background:var(--mc-alt);border-color:var(--mc-border);color:var(--mc-secondary)}
 html[data-theme] .hms-ui :is(.setup-content,.step-number){background:var(--mc-card);border-color:var(--mc-border);color:var(--mc-secondary)}
 html[data-theme] .hms-ui .installer-steps .active{background:var(--mc-soft);color:var(--mc-soft-text)}
 html[data-theme] .hms-ui .active .step-number{background:var(--mc-primary);color:var(--mc-on-primary);border-color:var(--mc-primary)}
 html[data-theme] .hms-ui .complete .step-number{background:var(--mc-success-bg);color:var(--mc-success);border-color:var(--mc-success)}
 html[data-theme] .hms-ui .setup-visual p{color:var(--mc-secondary)}
 html[data-theme] .hms-ui .button{background:var(--mc-gradient);color:var(--mc-on-primary);border-color:var(--mc-primary)}
 /* Theme switch is always a real button and shows the destination mode. */
 .theme-toggle{display:inline-grid;place-items:center;width:40px;height:40px;padding:0;flex:0 0 40px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--mc-secondary);cursor:pointer}
 .theme-toggle:hover{background:var(--mc-soft);color:var(--mc-primary)}
 .theme-toggle svg{width:19px;height:19px}.theme-sun{display:none}
 [data-theme=dark] .theme-moon{display:none}[data-theme=dark] .theme-sun{display:block}
 .public-theme-control{position:fixed;right:20px;bottom:20px;z-index:120;display:flex;padding:4px;border:1px solid var(--mc-border);border-radius:10px;background:var(--mc-surface);box-shadow:var(--mc-shadow)}
 /* Legacy inline neutrals only: status and ward colors are kept intact. */
 html[data-theme=dark] .hms-ui :is([style*="background:#fff"],[style*="background: #fff"],[style*="background:white"],[style*="background: white"],[style*="background:#f8fafc"],[style*="background:#f1f5f9"]){background:var(--mc-card)!important;border-color:var(--mc-border)!important}
 html[data-theme=dark] .hms-ui :is([style*="color:#182e4a"],[style*="color:#1e293b"],[style*="color:#334155"]){color:var(--mc-text)!important}
}
@media screen and (max-width:1023px){html[data-theme] .hms-ui .page .dx-kpi:nth-child(2){border-right:0}html[data-theme] .hms-ui .page .dx-kpi:nth-child(n+3){border-top:1px solid var(--mc-border)}}
@media screen and (max-width:767px){.theme-toggle{width:40px;min-height:44px;flex-basis:40px}.public-theme-control{right:16px;bottom:16px}html[data-theme] .hms-ui :is(.page,.auth-body,.auth-card,.book) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px;min-height:44px}}
@media screen and (max-width:575px){html[data-theme] .hms-ui .page .dx-kpi{border-right:0}html[data-theme] .hms-ui .page .dx-kpi+.dx-kpi{border-top:1px solid var(--mc-border)}}
@media print{.theme-toggle,.public-theme-control{display:none!important}}
@media screen {
 /* Leave breathing room between appointment filters and panel borders. */
 html[data-theme] body.hms-ui .page .dx .dx-tools{padding-top:16px;padding-bottom:16px}
}
@media screen {
 html[data-theme] body.hms-ui .page .workspace-settings-tabs{flex-wrap:wrap;overflow:visible;gap:8px;padding:8px}
 html[data-theme] body.hms-ui .page .workspace-settings-tabs .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}
}
@media screen {
html[data-theme] body.hms-ui .fq-tab{background:var(--mc-card);color:var(--mc-secondary);border:1px solid var(--mc-border);box-shadow:none;transition:background .15s,border-color .15s}
html[data-theme] body.hms-ui .fq-tab:hover{background:var(--mc-soft);color:var(--mc-soft-text);border-color:var(--mc-primary)}
html[data-theme] body.hms-ui .fq-tab.active{background:var(--mc-soft);color:var(--mc-soft-text);border-color:var(--mc-primary);box-shadow:none}
html[data-theme] body.hms-ui .fq-tab:focus-visible{outline:2px solid var(--mc-primary);outline-offset:3px}
}
