/* Opt-in neutral surfaces only. Default mode removes the attribute and restores original CSS.
   No filters: logos, photos, charts and red/amber/green alert states retain their colours. */
html[data-sw-appearance] {
 color-scheme:light; --background:var(--sw-a-bg)!important;--bg:var(--sw-a-bg)!important;
 --foreground:var(--sw-a-text)!important;--text:var(--sw-a-panelText)!important;--ink:var(--sw-a-panelText)!important;
 --card:var(--sw-a-panel)!important;--card-foreground:var(--sw-a-panelText)!important;--panel:var(--sw-a-panel)!important;
 --popover:var(--sw-a-panel)!important;--popover-foreground:var(--sw-a-panelText)!important;
 --secondary:var(--sw-a-soft)!important;--secondary-foreground:var(--sw-a-panelText)!important;
 --muted:var(--sw-a-soft)!important;--muted-foreground:var(--sw-a-muted)!important;
 --accent:var(--sw-a-soft)!important;--accent-foreground:var(--sw-a-panelText)!important;
 --border:var(--sw-a-line)!important;--input:var(--sw-a-line)!important;--line:var(--sw-a-line)!important;
 --sidebar:var(--sw-a-panel)!important;--sidebar-foreground:var(--sw-a-panelText)!important;
 --sidebar-accent:var(--sw-a-soft)!important;--sidebar-accent-foreground:var(--sw-a-panelText)!important;
 --sidebar-border:var(--sw-a-line)!important;--sw-line:var(--sw-a-line)!important;
 --primary:var(--sw-a-accent)!important;--primary-foreground:var(--sw-a-accentText)!important;
 --ring:var(--sw-a-accent)!important;
}
html[data-sw-appearance=dark]{color-scheme:dark}
html[data-sw-appearance] body,
html[data-sw-appearance] :is(.home-theme,.sw-main,.app-shell,.app-layout,.main-layout,.workspace-layout,.entry-page,.entry-layout,.main-content,.main-shell,.page-shell){background:var(--sw-a-bg)!important;color:var(--sw-a-text)!important}
html[data-sw-appearance] :is(.sw-sidebar,.sidebar,[data-sidebar=sidebar],[data-slot=sidebar-inner],.topbar,.public-header,.entry-header,#starway-module-tools){background:var(--sw-a-panel)!important;color:var(--sw-a-panelText)!important;border-color:var(--sw-a-line)!important}
html[data-sw-appearance] :is(.panel,.stat,.stat-card,.module-card,.operations-broadcast,.pipeline,.market-ticker,.access-strip,.form-dialog,.workspace,.section-card,.calendar,.support-card,.next-trip,.upload-box,.search-card,.attraction-card,.export-card,.modal,.feed-panel,.news-card,.rail-box,.topic,.angle,.university-pool,.hotspot-panel,.source-manager,.performance-strip,.view-bar,.next-post,.source-summary,.live-toolbar,.news-search,.fb-discovery,.premium-heading,.insight-card,.kpi-grid article,.notice-body,.channel-panel,.student-card,.student-detail,.entry-card,.login-card,.login-panel,.auth-card,.settings-card,.summary-card,.empty-state,.inbox-panel,.message-list,.conversation,.chat-panel,.starway-extra-accounts,.starway-extra-account-grid article,.starway-social-totals,.starway-social-total-grid>div,dialog){background:var(--sw-a-panel)!important;color:var(--sw-a-panelText)!important;border-color:var(--sw-a-line)!important}
html[data-sw-appearance] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea){background:var(--sw-a-soft)!important;color:var(--sw-a-panelText)!important;border-color:var(--sw-a-line)!important;color-scheme:inherit}
html[data-sw-appearance] :is(input,textarea)::placeholder{color:var(--sw-a-muted)!important;opacity:1}
html[data-sw-appearance] :is(.segmented,.filterbar,.search-box,.table-wrap,.table-card,.tabs,.view-tabs,.team-tabs,.toolbar,.toolbar-actions,.filter-row,.filter-panel,.data-table,.settings-section,.dashboard-section,.account-card,.platform-card){background:var(--sw-a-panel)!important;color:var(--sw-a-panelText)!important;border-color:var(--sw-a-line)!important}
html[data-sw-appearance] :is(th,td){border-color:var(--sw-a-line)!important}
html[data-sw-appearance] :is(thead,th){background:var(--sw-a-soft)!important;color:var(--sw-a-panelText)!important}
html[data-sw-appearance] tbody tr:not([class]){background:transparent!important;color:var(--sw-a-panelText)!important}
html[data-sw-appearance] :is(.nav-item,.nav-button,.sidebar nav a,.sidebar nav button,[data-sidebar=menu-button],.topbar h1,.topbar h2,.brand-name,.page-title,.panel-title,.section-title,.stat-label,.stat-value,.metric-label,.metric-value,.module-title,.news-title,.sidebar-title,.welcome-title,.entry-card h1,.entry-card h2,.login-card h1,.login-card h2,.starway-extra-accounts h3,.starway-extra-account-grid h4){color:var(--sw-a-panelText)!important}
html[data-sw-appearance] :is(.muted,.subtle,.hint,.stat small,.stat>span,.panel-subtitle,.section-subtitle,.page-subtitle,.module-description,.news-meta,.source-meta,.sidebar-label,.workspace-label,.starway-extra-account-grid p,.starway-social-note,.starway-social-total-grid span){color:var(--sw-a-muted)!important}
html[data-sw-appearance] :is(.nav-item.active,.nav-button.active,.sidebar .active,[data-sidebar=menu-button][data-active=true],.segmented button.active,.tabs button.active){background:var(--sw-a-soft)!important;color:var(--sw-a-panelText)!important;border-color:var(--sw-a-accent)!important}
html[data-sw-appearance] :is(.outline-button,.ghost-button,.ghost,.secondary-button,.btn.secondary,.btn.ghost,.tab-button,.filter-button,.segmented button,.tabs button,.view-tabs button){background:var(--sw-a-soft)!important;color:var(--sw-a-panelText)!important;border-color:var(--sw-a-line)!important}
html[data-sw-appearance] #starway-module-tools :is(a,button){color:var(--sw-a-panelText)!important;background:var(--sw-a-soft)!important;border-color:var(--sw-a-line)!important}
html[data-sw-appearance] .sidebar{--muted:var(--sw-a-muted)}
html[data-sw-appearance] .public-header{--muted:var(--sw-a-muted)}
/* Villa uses --muted for text; React workspaces use it for a surface. */
html[data-sw-appearance][data-sw-surface=villa]{--muted:var(--sw-a-muted)!important}
@media print{#starway-appearance-control{display:none!important}}
html[data-sw-appearance]:is([data-starway-module=study],[data-starway-module=emgs]){--muted:var(--sw-a-muted)!important}
html[data-sw-appearance] :is(.visit-mini,.signal-screen,.signal-header,.signal-controls,.signal-row,.preview-ribbon,.system-footer,.release-footer,.broadcast-controls){background:var(--sw-a-panel)!important;color:var(--sw-a-panelText)!important;border-color:var(--sw-a-line)!important}
html[data-sw-appearance] :is(.page-heading,.section-heading,.brand,.sidebar-network,.sidebar-bottom,.breadcrumb,.user-button,.stat,.module-card,.pipeline,.visit-mini,.panel-heading,.system-footer,.release-footer) :is(h1,h2,h3,h4,strong,b){color:var(--sw-a-panelText)!important}
html[data-sw-appearance] :is(.page-heading,.section-heading,.brand,.sidebar-network,.sidebar-bottom,.breadcrumb,.user-button,.stat,.module-card,.pipeline,.visit-mini,.panel-heading,.preview-ribbon,.system-footer,.release-footer) :is(p,small,span:not(.avatar):not(.badge):not(.nav-live)){color:var(--sw-a-muted)!important}
html[data-sw-appearance] :is(.page-content>header h1,.page-content h2){color:var(--sw-a-text)!important}
html[data-sw-appearance] :is(.ticker-item b,.ticker-item span,.stat-top,.stat-top span,.stat-value strong,.signal-row h3,.signal-row p,.signal-header,.signal-controls,.signal-controls label,.signal-controls select,.signal-header button,.broadcast-filter button){color:var(--sw-a-panelText)!important}
html[data-sw-appearance] :is(.signal-header button,.signal-controls button,.broadcast-filter button,.language-toggle,.language-toggle span,.language-toggle i,.fullscreen-button,.signout-button,.user-button,.icon-button,.refresh-button,.summary-button,.visit-mini button){background:var(--sw-a-soft)!important;color:var(--sw-a-panelText)!important;border-color:var(--sw-a-line)!important}
html[data-sw-appearance] :is(.signal-row,.visit-mini,.module-card,.stat){box-shadow:0 4px 16px #0000000b!important}
html[data-sw-appearance] :is(.brand strong,.staff-rest-entry,.staff-rest-entry span,[data-sidebar=group-label]){color:var(--sw-a-panelText)!important}
html[data-sw-appearance=light] .home-theme .cyan{--tone:#08677b;--tone-bg:#08677b12}
html[data-sw-appearance=light] .home-theme .green{--tone:#166346;--tone-bg:#16634612}
html[data-sw-appearance=light] .home-theme .violet{--tone:#634993;--tone-bg:#63499312}
html[data-sw-appearance=light] .home-theme .amber{--tone:#765213;--tone-bg:#76521312}
html[data-sw-appearance=light] .nav-live{color:#136345!important;background:#d7f1e7!important}
html[data-sw-appearance=light] .nav-count{color:#765213!important;background:#f7ead0!important}
html[data-sw-appearance] :is(.broadcast,.visit-mini-ticker,.sidebar-network){background:var(--sw-a-soft)!important;color:var(--sw-a-panelText)!important;border-color:var(--sw-a-line)!important}
html[data-sw-appearance] :is(.broadcast-head,.signal-filters button,.signal-row-bottom button,.section-heading button,.module-stats-button,.module-entry,.access-strip button,.access-strip strong,.visit-mini-item,.visit-mini-label,.module-tags,.signal-help,.signal-tag,.signal-row-bottom span,.sidebar-description){color:var(--sw-a-panelText)!important}
html[data-sw-appearance] :is(.signal-filters button[aria-pressed=true],.signal-row-bottom button){background:var(--sw-a-soft)!important;border-color:var(--sw-a-line)!important}
html[data-sw-appearance] .access-strip :is(span,button){color:var(--sw-a-muted)!important}
html[data-sw-appearance] :is(.student-ticker,.focus-board,.focus-footer,.focus-controls,.ticker-heading,.sidebar-note,.demo-banner,.notice-banner,.student-toolbar,.detail-section,.student-form,.channel-card,.notice-card,.account-panel,.connection-card){background:var(--sw-a-panel)!important;color:var(--sw-a-panelText)!important;border-color:var(--sw-a-line)!important}
html[data-sw-appearance] :is(.panel,.stat-card,.focus-board,.student-ticker,.channel-panel,.section-card,.kpi-grid article,.sidebar-note,.account-card,.feed-panel,.premium-heading,.insight-card,.modal,.form-dialog) :is(h1,h2,h3,h4,strong,label){color:var(--sw-a-panelText)!important}
html[data-sw-appearance] :is(.panel,.stat-card,.focus-board,.student-ticker,.channel-panel,.section-card,.kpi-grid article,.sidebar-note,.account-card,.feed-panel,.premium-heading,.insight-card,.modal,.form-dialog) :is(p,small){color:var(--sw-a-muted)!important}
html[data-sw-appearance] :is(.stat-card>span,.focus-heading span,.focus-footer,.focus-footer span,.focus-controls,.focus-controls span,.student-ticker-head span,.student-ticker-item span,.student-ticker-item strong,.student-ticker-item small,.channel-card,.channel-card span,.demo-banner,.demo-banner button,.eyebrow){color:var(--sw-a-panelText)!important}
html[data-sw-appearance] :is(.focus-board button,.student-ticker button,.channel-panel button):not(.primary){color:var(--sw-a-panelText)!important;border-color:var(--sw-a-line)!important;background:var(--sw-a-soft)!important}
html[data-sw-appearance] :is(.sidebar-footer,.sidebar-bottom,.sidebar-note){background:var(--sw-a-panel)!important;color:var(--sw-a-panelText)!important}
/* A chosen region owns its neutral colours; nested chosen regions override their parent. */
html [data-sw-zone]{background:var(--sw-a-bg)!important;color:var(--sw-a-text)!important;border-color:var(--sw-a-line)!important;--muted-foreground:var(--sw-a-muted);--foreground:var(--sw-a-text);--card:var(--sw-a-panel);--card-foreground:var(--sw-a-panelText)}
html [data-sw-zone][data-sw-zone] :is(h1,h2,h3,h4,h5,p,strong,b,label,small,span:not(.badge):not(.status):not(.signal-source):not(.nav-count):not(.nav-live),a,li,td,th){color:var(--sw-a-panelText)!important}
html [data-sw-zone][data-sw-zone] :is(button:not(.danger):not(.destructive),input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){color:var(--sw-a-panelText)!important;background:var(--sw-a-soft)!important;border-color:var(--sw-a-line)!important}
html [data-sw-zone][data-sw-zone] :is(.signal-row,.broadcast-top,.signal-window,.signal-controls,.ticker-label,.ticker-item,.focus-bottom,.focus-header,.focus-controls,.sidebar-note,.sidebar-network,.language-toggle,.user-button,.stat-value,.toolbar,.filterbar,.table-wrap){background:var(--sw-a-panel)!important;color:var(--sw-a-panelText)!important;border-color:var(--sw-a-line)!important}
html [data-sw-zone] .nav-item.active,html [data-sw-zone] [data-active=true]{box-shadow:inset 3px 0 var(--sw-a-text)!important;background:var(--sw-a-soft)!important}
html [data-sw-zone=cardColor].room{--muted:var(--sw-a-muted);--ink:var(--sw-a-panelText)}
.room-care-dot[data-adaptive-dot]{background:var(--sw-care-dot)!important;border-color:var(--sw-a-panel,#fff)!important;box-shadow:0 0 0 2px var(--sw-care-dot)!important}
/* Remaining neutral labels in the original student workspace. */
html[data-sw-appearance] :is(.ticker-label,.focus-bottom,.sidebar-status){background:var(--sw-a-soft)!important;color:var(--sw-a-panelText)!important;border-color:var(--sw-a-line)!important}
html[data-sw-appearance] :is(.ticker-label small,.focus-bottom span,.focus-bottom p,.stat-card span,.sidebar-status strong,.sidebar-status p,.sidebar-status small){color:var(--sw-a-muted)!important}
html[data-sw-appearance] [data-sidebar=menu-button][data-active=""]{background:var(--sw-a-soft)!important;color:var(--sw-a-panelText)!important;box-shadow:inset 3px 0 var(--sw-a-accent)!important}
html[data-sw-appearance] :is(.stat label,.clock){color:var(--sw-a-panelText)!important}
html[data-sw-appearance][data-sw-surface=villa] :is(.notice.info,.demo-bar){color:var(--sw-a-panelText)!important;background:var(--sw-a-soft)!important;border-color:var(--sw-a-line)!important}
html[data-sw-appearance][data-sw-surface=villa] button:not(.primary):not(.danger){color:var(--sw-a-panelText)!important;background:var(--sw-a-soft)!important;border-color:var(--sw-a-line)!important}
html[data-sw-appearance=light][data-sw-surface=villa]{--cyan:#145d70;--gold:#755519;--green:#136143;--red:#a5273c}
html[data-sw-appearance=light][data-sw-surface=villa] .badge.good{color:#136143}
html[data-sw-appearance=light][data-sw-surface=villa] .badge.warn{color:#755519}
html[data-sw-appearance=light][data-sw-surface=villa] .badge.bad{color:#a5273c}
html[data-sw-appearance=light][data-sw-surface=villa] .badge.cyan{color:#145d70}
