/* Shared furniture for the three active shells. */
body.desktop-active{background:var(--scene);color:var(--ink);color-scheme:light}
body.desktop-active::before{background:none}
body[data-space-theme]{--ink:#203e53;--muted:#506b80;--surface:#f5fafc;--panel:#edf5f9;--bar:linear-gradient(#f7ffffee,#b6d7e6e8);--line:#acc3cf;--shadow:0 17px 50px #003d6655;--radius:8px;--font:"Segoe UI",Tahoma,Arial,sans-serif;--dock:linear-gradient(#fff9,#d1e8f088);--icon-filter:drop-shadow(0 4px 3px #003a5b55)}
body[data-space-theme="aero"]{--scene:#168ac7 url('aero-wallpaper.png') center/cover no-repeat}
body[data-space-theme="ios6"]{--scene:repeating-linear-gradient(0deg,#fff2 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,#8792a21a 0 1px,transparent 1px 3px),radial-gradient(ellipse at 50% 20%,#eff0ed,#c5cbd0);--ink:#344153;--muted:#677386;--surface:#f9f9f6;--panel:#e4e8ed;--bar:linear-gradient(#afbbcc 0%,#8a9db8 48%,#758aa8 49%,#6d819e 100%);--line:#a2afbe;--shadow:0 12px 30px #27324555,0 1px 0 #fff8 inset;--radius:10px;--font:"Helvetica Neue",Helvetica,Arial,sans-serif;--dock:linear-gradient(#f1c88e,#d8a05b 48%,#c88a44 49%,#e5b87b);--icon-filter:drop-shadow(0 4px 3px #57371966)}
body[data-space-theme] #desktop{font-family:var(--font)}
body[data-space-theme] #desktop .topbar{background:var(--bar);color:var(--ink);border-color:var(--line);box-shadow:0 1px 8px #0002}
body[data-space-theme] #desktop .topbar :is(.brand,button){color:var(--ink);text-shadow:none}
body[data-space-theme] #desktop .topbar button:hover{background:var(--panel)}
body[data-space-theme] .desktop-window{color:var(--ink);background:var(--surface);border-color:var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
body[data-space-theme] .desktop-window.front{box-shadow:var(--shadow)}
body[data-space-theme] .win-titlebar{background:var(--bar);border-color:var(--line)}
body[data-space-theme] .win-titlebar h2{font-family:var(--font);text-shadow:none}
body[data-space-theme] :is(.win-content,.photo-window .win-content){background:var(--surface)}
body[data-space-theme] .win-status{color:var(--ink);background:var(--panel);border-color:var(--line)}
body[data-space-theme] .empty-copy{color:var(--muted)}
body[data-space-theme] .next-photo{background:var(--surface);border-color:var(--line);color:var(--ink)}
body[data-space-theme] .folders::before{background:var(--dock)}
body[data-space-theme] .folders .folder>.app-icon{filter:var(--icon-filter)}
body[data-space-theme] .folders .folder>span{color:var(--ink);background:var(--surface);border-color:var(--line);text-shadow:none;box-shadow:0 2px 8px #0002}
body[data-space-theme] :is(.notification-center,.youtube-notification){background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:var(--shadow)}
body[data-space-theme] #desktop .topbar :is(.notification-close,.notification-center-close){color:var(--ink)}
body[data-space-theme] :is(.notification-channel,.notification-title,.notification-entry-copy strong){color:var(--ink)}
body[data-space-theme] :is(.notification-source,.notification-entry-source,.notification-entry-copy>span:last-child){color:var(--muted)}
body[data-space-theme] .notification-center-header{background:var(--bar);border-color:var(--line)}
body[data-space-theme] .notification-entry:hover{background:var(--panel)}
body[data-space-theme] :is(.friend-link,.recording-item){background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:none}
body[data-space-theme] .friend-link:hover{background:var(--panel)}
body[data-space-theme] .friend-hint{color:var(--muted)}
/* Content-specific cards retain their layout and receive the active palette. */
body[data-space-theme] .readme-content{color:var(--ink);background:var(--surface)}
body[data-space-theme] .readme-content :is(h3,p,li){color:var(--ink)}
body[data-space-theme] :is(.recordings-toolbar,.model-toolbar){background:var(--panel);color:var(--ink);border-color:var(--line)}
body[data-space-theme] .recording-player{background:var(--panel);color:var(--ink);border-color:var(--line)}
body[data-space-theme] :is(.recording-name,.recording-title,.recording-meta){color:var(--ink)}
body[data-space-theme] :is(.desktop-window:focus-visible,.win-titlebar:focus-visible,.friend-link:focus-visible){outline-color:var(--ink)}
body[data-space-theme] .folders .folder:focus-visible{outline-color:var(--ink);box-shadow:none}
@media(forced-colors:active){body.desktop-active{background:Canvas}body[data-space-theme]{--ink:CanvasText;--muted:CanvasText;--surface:Canvas;--panel:Canvas;--bar:Canvas;--line:CanvasText;--dock:Canvas;--shadow:none}body[data-space-theme] .folders .folder>.app-icon{filter:none}}
body[data-space-theme] .win-content{color:var(--ink)}
body[data-space-theme] .readme-document{color:var(--ink)}
body[data-space-theme] .readme-document a{color:var(--ink)}
body[data-space-theme] .readme-toolbar{color:var(--muted);background:var(--panel);border-color:var(--line)}
body[data-space-theme] .recording-row{border-color:var(--line)}
body[data-space-theme] :is(.recording-select,.recording-controls button,.recording-row.selected .recording-title){color:var(--ink)}
body[data-space-theme] .recording-select:hover .recording-title{color:var(--muted)}
body[data-space-theme] :is(.recording-duration,.recording-times,.recording-scrub-hint,.recording-message){color:var(--muted)}
body[data-space-theme] .recording-controls .recording-play{background:var(--panel);color:var(--ink);border-color:var(--line);box-shadow:none}
body[data-space-theme] .recording-controls .recording-play:hover{background:var(--surface)}
body[data-space-theme] .recording-wave::after{background:var(--ink);box-shadow:none}
body[data-space-theme] .notification-center-header{text-shadow:none}
body[data-space-theme] .notification-entry.is-unread{background:var(--panel)}
