/* Theme controls are shared by PHP navigation and dynamically rendered pages. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:33px;height:33px;padding:0;border-radius:8px;color:#888;background:transparent}.theme-toggle:hover{color:#eee;background:#1a1a1a}.theme-toggle>.icon{width:17px;height:17px}.theme-moon,.theme-name-light{display:none}.nav-theme-toggle{width:100%;justify-content:flex-start;gap:10px;padding:8px 10px;margin-top:9px;font-size:11px;color:#8c8c8c;border-radius:8px}.nav-theme-toggle>.icon{width:15px;height:15px}.nav-theme-toggle>small{margin-left:auto;font-size:9px;color:#666}.theme-toggle:focus-visible{outline-offset:2px}:root[data-theme="light"] .theme-sun,:root[data-theme="light"] .theme-name-dark{display:none}:root[data-theme="light"] .theme-moon,:root[data-theme="light"] .theme-name-light{display:inline-block}

:root[data-theme="light"]{color-scheme:light;--bg:#ffffff;--panel:#f6f6f6;--raised:#ececec;--border:#dedede;--text:#232323;--muted:#777777;background:#ffffff;color:#232323}
:root[data-theme="light"] body,:root[data-theme="light"] .studio-app,:root[data-theme="light"] .main-shell,:root[data-theme="light"] .home-main,:root[data-theme="light"] .library-main,:root[data-theme="light"] .explore-main{background:#ffffff;color:#232323}
:root[data-theme="light"] :is(button,a,input,textarea,select):focus-visible{outline-color:#9c6b3e}
:root[data-theme="light"] .sidebar{background:#fafafa;border-right-color:#e5e5e5}
:root[data-theme="light"] .brand>span{color:#242424}:root[data-theme="light"] .brand-studio{color:#767676}
:root[data-theme="light"] .nav-item{color:#626262}:root[data-theme="light"] .nav-item:hover,:root[data-theme="light"] .recent-item:hover{background:#efefef;color:#282828}
:root[data-theme="light"] .nav-item.active{background:#e9e9e9;color:#262626}
:root[data-theme="light"] .new-project{background:#ffffff;border-color:#dddddd;color:#383838}:root[data-theme="light"] .new-project:hover{background:#f0f0f0}:root[data-theme="light"] .new-project kbd{color:#767676}
:root[data-theme="light"] .recents-heading{color:#767676}:root[data-theme="light"] .no-recents{color:#767676}:root[data-theme="light"] .recent-item{color:#767676}:root[data-theme="light"] .recent-item>.icon{color:#767676}:root[data-theme="light"] .recent-item.active{background:#efefef;color:#454545}
:root[data-theme="light"] .upgrade-card{background:#ffffff;border-color:#e0e0e0;color:#3f3f3f}:root[data-theme="light"] .upgrade-card div>span{color:#767676}:root[data-theme="light"] .upgrade-spark{background:#f4ebe0;color:#aa794c}
:root[data-theme="light"] .account-button{color:#555555}:root[data-theme="light"] .account-button>.icon{color:#767676}:root[data-theme="light"] .avatar{background:#eee8dc;color:#7a6241}
:root[data-theme="light"] .icon-btn{color:#767676}:root[data-theme="light"] .icon-btn:hover{background:#eaeaea;color:#272727}:root[data-theme="light"] .sidebar-reopen{background:#f0f0f0;color:#767676}
:root[data-theme="light"] .theme-toggle{color:#767676}:root[data-theme="light"] .theme-toggle:hover{background:#ededed;color:#282828}:root[data-theme="light"] .nav-theme-toggle>small{color:#767676}
:root[data-theme="light"] .announcement{background:#f3f3f3;border-bottom-color:#e3e3e3;color:#767676}:root[data-theme="light"] .announcement>button:not(.icon-btn){background:#e9e9e9;color:#565656}
:root[data-theme="light"] .btn{background:#ffffff;border-color:#dddddd;color:#484848}:root[data-theme="light"] .btn:hover{background:#efefef;border-color:#c9c9c9}:root[data-theme="light"] .btn.primary{background:#2b2b2b;border-color:#2b2b2b;color:#ffffff}:root[data-theme="light"] .btn.primary:hover{background:#444444}
:root[data-theme="light"] .field{color:#737373}:root[data-theme="light"] .field input,:root[data-theme="light"] .field textarea,:root[data-theme="light"] .field select{background:#ffffff;border-color:#dcdcdc;color:#343434}:root[data-theme="light"] .field input:focus,:root[data-theme="light"] .field textarea:focus{border-color:#a2a2a2}
:root[data-theme="light"] .muted{color:#767676}:root[data-theme="light"] .eyebrow{color:#767676}

/* Explore keeps the photography and collage geometry unchanged. */
:root[data-theme="light"] .explore-toolbar{background:#fffffff5;color:#262626}:root[data-theme="light"] .explore-heading h1{color:#272727}:root[data-theme="light"] .explore-count{color:#767676}
:root[data-theme="light"] .explore-filters button{color:#767676}:root[data-theme="light"] .explore-filters button:hover{background:#f2f2f2;color:#353535}:root[data-theme="light"] .explore-filters button.active{background:#ededed;color:#363636}
:root[data-theme="light"] .explore-search{background:#f4f4f4;color:#767676}:root[data-theme="light"] .explore-search input{color:#454545}:root[data-theme="light"] .explore-search input::placeholder{color:#a5a5a5}:root[data-theme="light"] .explore-search:focus-within{box-shadow:inset 0 0 0 1px #bdbdbd}
:root[data-theme="light"] .explore-density{color:#767676}:root[data-theme="light"] .explore-density:hover{background:#f0f0f0;color:#464646}:root[data-theme="light"] .explore-tile{background:#f1f1f1}:root[data-theme="light"] .explore-footer{color:#767676}
:root[data-theme="light"] .explore-empty{color:#767676}:root[data-theme="light"] .explore-empty>.icon{color:#767676}:root[data-theme="light"] .explore-empty h2{color:#595959}:root[data-theme="light"] .explore-empty button{background:#efefef;color:#606060}
:root[data-theme="light"] dialog{background:#ffffff;border-color:#dedede;color:#333333;box-shadow:0 30px 100px #28282826}:root[data-theme="light"] dialog::backdrop{background:#5555554d}:root[data-theme="light"] .modal-description{color:#767676}
:root[data-theme="light"] .wide-modal{background:#fbfbfb}:root[data-theme="light"] .wide-modal .modal-close{background:#eeeeeed9;color:#6b6b6b}:root[data-theme="light"] .explore-preview-image{background:#f3f3f3}:root[data-theme="light"] .explore-preview-detail{background:#ffffff}:root[data-theme="light"] .explore-preview-detail h2{color:#444444}:root[data-theme="light"] .explore-preview-subtitle{color:#767676}:root[data-theme="light"] .explore-preview-detail .eyebrow{color:#767676}:root[data-theme="light"] .explore-prompt{border-color:#e4e4e4}:root[data-theme="light"] .explore-prompt>span{color:#767676}:root[data-theme="light"] .explore-prompt>p{color:#767676}:root[data-theme="light"] .explore-preview-navigation>span{color:#767676}:root[data-theme="light"] .explore-preview-navigation>.icon-btn{border-color:#dedede}

/* Canvas: pale board, soft grid and compact charcoal controls. Artwork and note tones retain their native colours. */
:root[data-theme="light"] .canvas-app{background:#f7f7f7}:root[data-theme="light"] .canvas-header{background:#ffffff;border-bottom-color:#e2e2e2}:root[data-theme="light"] .canvas-page-icon{color:#767676}:root[data-theme="light"] .canvas-board-name{color:#494949}:root[data-theme="light"] .canvas-board-name:focus{box-shadow:0 1px #b9b9b9}:root[data-theme="light"] .canvas-save-status{color:#767676}
:root[data-theme="light"] .canvas-header .btn{background:#f8f8f8;border-color:#dedede;color:#747474}:root[data-theme="light"] .canvas-header .btn:hover{background:#eeeeee}:root[data-theme="light"] .canvas-header .btn.primary{background:#414141;border-color:#414141;color:#ffffff}:root[data-theme="light"] .canvas-header .btn.primary:hover{background:#565656}
:root[data-theme="light"] .canvas-viewport{background-color:#f5f5f5;background-image:radial-gradient(circle,#4b4b4b26 .8px,transparent .8px)}:root[data-theme="light"] .canvas-image-item .canvas-item-body{background:#f0f0f0;box-shadow:0 4px 18px #36363612}:root[data-theme="light"] .canvas-item-label{color:#767676}:root[data-theme="light"] .canvas-item.selected .canvas-item-label{color:#977b4d}:root[data-theme="light"] .canvas-selection-outline{border-color:transparent}:root[data-theme="light"] .canvas-item.selected .canvas-selection-outline{border-color:#a98152}
:root[data-theme="light"] .canvas-missing{background:#eeeeee;color:#767676}:root[data-theme="light"] .canvas-empty>span{background:#eeeeee;border-color:#dddec3;color:#767676}:root[data-theme="light"] .canvas-empty h1{color:#767676}:root[data-theme="light"] .canvas-empty p{color:#767676}
:root[data-theme="light"] .canvas-selection-toolbar{background:#fffffff0;border-color:#d8d6ba;box-shadow:0 3px 14px #2c2c2c14}:root[data-theme="light"] .canvas-selection-toolbar>span{color:#767676}:root[data-theme="light"] .canvas-selection-toolbar>div>span{background:#dfdfdf}
:root[data-theme="light"] .canvas-bottom-tools{background:#fffffff2;border-color:#d9d9d9;box-shadow:0 7px 30px #2b2b2b17}:root[data-theme="light"] .canvas-tool{color:#767676}:root[data-theme="light"] .canvas-tool:hover{background:#eeeeee;color:#6c6c6c}:root[data-theme="light"] .canvas-tool.active{background:#f2e7d6;color:#a77c42}:root[data-theme="light"] .canvas-tool-divider{background:#e0e0e0}:root[data-theme="light"] .canvas-zoom-value{color:#767676}:root[data-theme="light"] .canvas-instructions{color:#767676}:root[data-theme="light"] .canvas-instructions>span{color:#767676}:root[data-theme="light"] .canvas-item-count{color:#767676}
:root[data-theme="light"] .canvas-library{background:#ffffff;border-left-color:#e2e2e2;box-shadow:-20px 0 70px #30303012}:root[data-theme="light"] .canvas-library h2{color:#656565}:root[data-theme="light"] .canvas-library .eyebrow{color:#767676}:root[data-theme="light"] .canvas-library-search{background:#f5f5f5;border-color:#e0e0e0;color:#767676}:root[data-theme="light"] .canvas-library-search input{color:#767676}:root[data-theme="light"] .canvas-library-search input::placeholder{color:#b3b3b3}:root[data-theme="light"] .canvas-library-card>span{color:#767676}:root[data-theme="light"] .canvas-library-empty{color:#767676}:root[data-theme="light"] .canvas-library>footer{background:#fafafa;border-top-color:#e4e4e4}:root[data-theme="light"] .canvas-library>footer>span{color:#767676}
:root[data-theme="light"] .canvas-drop-indicator{border-color:#b3a284;background:#f8f5e9eb;color:#9c875c}

/* Remaining Studio pages share the same quiet surfaces and readable typography. */
:root[data-theme="light"] .home-hero h1{color:#333333}:root[data-theme="light"] .hero-pill{background:#f2f2f2;border-color:#e4e4e4;color:#767676}:root[data-theme="light"] .hero-pill>.icon{color:#767676}:root[data-theme="light"] .composer{background:#f8f8f8;border-color:#e2e2e2}:root[data-theme="light"] .composer:focus-within{border-color:#b6b6b6}:root[data-theme="light"] .composer textarea{color:#717171}:root[data-theme="light"] .composer textarea::placeholder{color:#b3b3b3}:root[data-theme="light"] .composer-chip{background:#efefef;border-color:#dcdcdc;color:#767676}:root[data-theme="light"] .add-button{background:#e8e8e8;color:#767676}:root[data-theme="light"] .mode-button{color:#767676}:root[data-theme="light"] .mode-button.selected{color:#767676}:root[data-theme="light"] .submit-button{background:#494949;color:#ffffff}:root[data-theme="light"] .submit-button:hover{background:#636363}
:root[data-theme="light"] .creation-shortcuts>button{color:#767676}:root[data-theme="light"] .creation-shortcuts>button>span{background:#f5f5f5;border-color:#eaeaea;color:#767676}:root[data-theme="light"] .creation-shortcuts>button:hover>span{background:#eaeaea;border-color:#d6d6d6}:root[data-theme="light"] .filter-tabs button{color:#767676}:root[data-theme="light"] .filter-tabs button.active{background:#f4f4f4;border-color:#dedede;color:#767676}:root[data-theme="light"] .search-input{background:#f7f7f7;border-color:#e5e5e5;color:#767676}:root[data-theme="light"] .search-input input{color:#767676}:root[data-theme="light"] .search-input input::placeholder{color:#b9b9b9}:root[data-theme="light"] .gallery-footnote{color:#767676}
:root[data-theme="light"] .popover,:root[data-theme="light"] .shared-account-menu{background:#ffffff;border-color:#dcdcdc;box-shadow:0 14px 50px #3434341a,0 2px 8px #3434340d}:root[data-theme="light"] .popover-row{color:#767676}:root[data-theme="light"] .popover-row:hover,:root[data-theme="light"] .shared-account-menu a:hover,:root[data-theme="light"] .shared-account-menu button:hover{background:#efefef;color:#767676}:root[data-theme="light"] .popover-heading{color:#767676}:root[data-theme="light"] .popover-heading>span,:root[data-theme="light"] .popover-helper{color:#767676}:root[data-theme="light"] .popover-divider{background:#e8e8e8}:root[data-theme="light"] .popover-row small{color:#767676}:root[data-theme="light"] .model-symbol{background:#efefef;color:#767676}:root[data-theme="light"] .popover-title{color:#767676}:root[data-theme="light"] .popover-title>a{color:#767676}:root[data-theme="light"] .popover-account{border-bottom-color:#e4e4e4}:root[data-theme="light"] .popover-account strong{color:#767676}:root[data-theme="light"] .popover-account small{color:#767676}:root[data-theme="light"] .shared-account-menu a,:root[data-theme="light"] .shared-account-menu button{color:#767676}:root[data-theme="light"] .detail-icon{background:#f0f0f0;color:#767676}:root[data-theme="light"] .connection-state{border-color:#dcdcdc;color:#767676}:root[data-theme="light"] .about-features{border-color:#e0e0e0}:root[data-theme="light"] .about-features>span{color:#767676}:root[data-theme="light"] #toast{background:#ffffff;border-color:#d7d7d7;color:#767676;box-shadow:0 7px 30px #3333331a}
:root[data-theme="light"] .lib-heading h1,:root[data-theme="light"] .lib-section-title h2,:root[data-theme="light"] .lib-item-copy h3,:root[data-theme="light"] .lib-profile-preview strong{color:#707070}:root[data-theme="light"] .lib-heading p,:root[data-theme="light"] .lib-item-copy p,:root[data-theme="light"] .lib-footnote,:root[data-theme="light"] .lib-section-title p,:root[data-theme="light"] .lib-settings-row p,:root[data-theme="light"] .lib-settings-row small,:root[data-theme="light"] .lib-settings-footer p{color:#767676}:root[data-theme="light"] .lib-item{border-color:#e8e8e8}:root[data-theme="light"] .lib-item:hover{background:#f8f8f8}:root[data-theme="light"] .lib-filters button{color:#767676}:root[data-theme="light"] .lib-filters button.active{background:#efefef;color:#767676}:root[data-theme="light"] .lib-search{background:#f7f7f7;border-color:#e4e4e4;color:#767676}:root[data-theme="light"] .lib-search input{color:#767676}:root[data-theme="light"] .lib-search input::placeholder{color:#b8b8b8}:root[data-theme="light"] .lib-save-skill{border-color:#e0e0e0;color:#767676}:root[data-theme="light"] .lib-save-skill:hover,:root[data-theme="light"] .lib-save-skill.is-saved{background:#eaeaea;color:#767676}:root[data-theme="light"] .lib-item-main{color:#767676}:root[data-theme="light"] .lib-status{color:#767676}:root[data-theme="light"] .lib-text-link{color:#767676}:root[data-theme="light"] .lib-field{color:#767676}:root[data-theme="light"] .lib-field input,:root[data-theme="light"] .lib-sort-label select{background:#ffffff;border-color:#dcdcdc;color:#767676}:root[data-theme="light"] .lib-settings-nav{border-bottom-color:#e2e2e2}:root[data-theme="light"] .lib-settings-nav button{color:#767676}:root[data-theme="light"] .lib-settings-nav button:hover{color:#848484}:root[data-theme="light"] .lib-settings-section{border-bottom-color:#e5e5e5}:root[data-theme="light"] .lib-settings-row{border-color:#e8e8e8}:root[data-theme="light"] .lib-settings-row strong{color:#767676}:root[data-theme="light"] .lib-theme-value{color:#767676}:root[data-theme="light"] .lib-switch-input{background:#dedede}:root[data-theme="light"] .lib-switch-input:checked{background:#a49a77}:root[data-theme="light"] .lib-project-card{background:#ffffff;border-color:#e1e1e1}:root[data-theme="light"] .lib-project-card:hover{border-color:#c4c4c4}:root[data-theme="light"] .lib-project-card h3{color:#767676}:root[data-theme="light"] .lib-project-card p{color:#767676}:root[data-theme="light"] .lib-project-open{background:#f6f6f6;color:#767676}:root[data-theme="light"] .lib-project-empty h2{color:#767676}:root[data-theme="light"] .lib-project-empty p{color:#767676}
:root[data-theme="light"] .project-header{border-bottom-color:#e2e2e2;background:#ffffff}:root[data-theme="light"] .project-title{color:#767676}:root[data-theme="light"] .project-header-actions .btn{border-color:#dedede;color:#767676}:root[data-theme="light"] .save-indicator{color:#767676}:root[data-theme="light"] .chat-panel{border-color:#e0e0e0;background:#fcfcfc}:root[data-theme="light"] .chat-heading{border-bottom-color:#e8e8e8}:root[data-theme="light"] .chat-heading>span{color:#767676}:root[data-theme="light"] .chat-message{color:#767676}:root[data-theme="light"] .chat-message.user{background:#efefef;color:#767676}:root[data-theme="light"] .note-label{color:#767676}:root[data-theme="light"] .chat-starters h2{color:#767676}:root[data-theme="light"] .chat-starters>p{color:#767676}:root[data-theme="light"] .starter-action{border-color:#dedede;color:#767676}:root[data-theme="light"] .starter-action:hover{background:#efefef;border-color:#c9c9c9}:root[data-theme="light"] .chat-caption{color:#767676}:root[data-theme="light"] .project-canvas{background:#f7f7f7}:root[data-theme="light"] .workspace-tabs{border-bottom-color:#e1e1e1;background:#ffffff}:root[data-theme="light"] .workspace-tabs>button:not(.icon-btn){color:#adadad}:root[data-theme="light"] .workspace-tabs>button.active{background:#efefef;color:#767676}:root[data-theme="light"] .workspace-tabs>button:hover{color:#7e7e7e}
:root[data-theme="light"] :is(.ws-toolbar,.ws-transport,.ws-inspector,.ws-object-panel,.ws-sequence,.ws-view){background:#fafafa;color:#767676;border-color:#e1e1e1}:root[data-theme="light"] :is(.ws-section-label,.ws-inspector h2,.ws-object-panel h2,.ws-node-copy h3,.ws-empty h2){color:#767676}:root[data-theme="light"] :is(.ws-subtle,.ws-count,.ws-time,.ws-empty p,.ws-empty-hint,.ws-design-caption,.ws-design-notes,.ws-no-objects,.ws-flow-hint,.ws-three-hint){color:#767676}:root[data-theme="light"] :is(.ws-search,.ws-select,.ws-zoom){background:#f3f3f3;color:#767676;border-color:#dbdbdb}:root[data-theme="light"] .ws-search input,:root[data-theme="light"] .ws-select{color:#767676}:root[data-theme="light"] .ws-asset-meta{color:#767676}:root[data-theme="light"] .ws-asset-list .ws-asset-card{border-color:#e3e3e3}:root[data-theme="light"] .ws-flow-canvas{background-color:#f2f2f2;background-image:radial-gradient(#b5b5b5 1px,transparent 1px)}:root[data-theme="light"] .ws-flow-node{background:#ffffff;border-color:#d8d8d8;box-shadow:0 8px 22px #40404012}:root[data-theme="light"] .ws-node-handle{background:#f5f5f5;color:#767676;border-color:#e0e0e0}:root[data-theme="light"] .ws-node-copy{color:#767676}:root[data-theme="light"] .ws-note-form input,:root[data-theme="light"] .ws-note-form textarea{background:#ffffff;color:#767676;border-color:#d9d9d9}:root[data-theme="light"] .ws-object-row{color:#767676}:root[data-theme="light"] .ws-object-row.selected{background:#efefef;color:#767676}:root[data-theme="light"] .ws-clip-track,:root[data-theme="light"] .ws-audio-track{background:#eaeaea;border-color:#dcdcdc}:root[data-theme="light"] .ws-source-strip{background:#dedede;color:#767676}:root[data-theme="light"] .ws-empty-symbol{background:#ececec;color:#767676}:root[data-theme="light"] .ws-empty-track{border-color:#cdcdcd;color:#767676}:root[data-theme="light"] .ws-three-stage{background:#e9e9e9}
