/* Studio owns its chrome; the rest of the station retains its own themes. */
body.studio-open{background:#111111;overflow:hidden;padding:0}
.studio-open>.masthead,.studio-open>.main-nav,.studio-open>footer,.studio-open>#atmosphere,.studio-open>#scene-transition,.studio-open>#persistent-player{display:none!important}
.studio-open #main{margin:0;max-width:none;padding:0;min-height:0;outline:none;transform:none!important}
.studio-open #main::before,.studio-open #main::after,.studio-open::before,.studio-open::after{display:none}
.st-app,.st-dialog{--st-bg:#141414;--st-panel:#1c1b19;--st-deep:#0e0e0e;--st-line:#3c3730;--st-gold:#c6a66e;--st-text:#e9e8e1;--st-muted:#aaa395;color:var(--st-text);font:13px/1.5 Arial,sans-serif;letter-spacing:0;color-scheme:dark}
.st-app{height:100dvh;display:flex;flex-direction:column;background:var(--st-bg);isolation:isolate}
.st-app *,.st-dialog *{box-sizing:border-box;letter-spacing:0}
.st-app [hidden],.st-dialog [hidden]{display:none!important}
.st-app button,.st-dialog button{font:inherit;color:var(--st-text);background:none;border:1px solid transparent;border-radius:3px;min-height:32px;padding:6px 9px;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;line-height:1.3;box-shadow:none;text-transform:none;white-space:normal}
.st-app button:hover,.st-dialog button:hover{background:#302b24;color:#fff}
.st-app button:disabled,.st-dialog button:disabled{opacity:.38;cursor:not-allowed}
.st-app button:focus-visible,.st-app a:focus-visible,.st-app summary:focus-visible,.st-dialog button:focus-visible{outline:2px solid var(--st-gold);outline-offset:2px}
.st-app svg,.st-dialog svg{width:17px;height:17px;flex:none;stroke-width:1.5}
.st-app a,.st-dialog a{color:var(--st-gold);text-decoration:none}
.st-app input,.st-app textarea,.st-app select,.st-dialog input,.st-dialog textarea,.st-dialog select{font:13px/1.5 Arial,sans-serif;color:var(--st-text);background:#111111;border:1px solid #433a2d;border-radius:3px;padding:8px 10px;min-width:0;width:100%;box-shadow:none;letter-spacing:0}
.st-app input:focus,.st-app textarea:focus,.st-app select:focus,.st-dialog input:focus,.st-dialog textarea:focus{outline:1px solid var(--st-gold);border-color:var(--st-gold)}
.st-app input::placeholder,.st-app textarea::placeholder{color:#9b9486}
.st-app textarea{resize:vertical;min-height:80px}
.st-app input[type=checkbox]{width:15px;height:15px;accent-color:var(--st-gold);flex:none;margin:0}
.st-top{display:flex;align-items:center;gap:16px;padding:12px 18px;background:#0b0b0b;border-bottom:1px solid #403e34;flex:none;min-height:64px}
.st-brand{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:12px}
.st-brand>svg{width:30px;height:30px;color:var(--st-gold)}
.st-brand span{color:#efeee7}.st-brand b{font-weight:400;color:var(--st-gold);display:block;font-size:10px}
.st-app .st-project-name{background:transparent;border-color:transparent;max-width:200px;font-size:13px;text-overflow:ellipsis}
.st-project-name:hover{border-color:#433a2d}
#st-status{font-size:11px;color:#c8b586;white-space:nowrap;display:flex;align-items:center;gap:7px}
#st-status::before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}
#st-status[data-state=dirty]{color:#cfb586}
.st-top-actions{display:flex;align-items:center;gap:3px;margin-left:auto}
.st-app .st-primary,.st-dialog .st-primary{background:#ad8c51;border-color:#c6a66e;color:#16120b;font-weight:600}
.st-app .st-primary:hover,.st-dialog .st-primary:hover{background:#d1b47c;color:#0b0b0b}
.st-top-actions [data-st=save]{border-color:#575344}
.st-back{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px}
.st-menu-bar{height:36px;display:flex;align-items:center;gap:2px;padding:0 15px;background:#171716;border-bottom:1px solid var(--st-line);flex:none;position:relative;z-index:20}
.st-menu{position:relative}.st-menu summary{padding:8px 12px;list-style:none;color:#c7c2b7;cursor:pointer;font-size:12px}.st-menu summary::-webkit-details-marker{display:none}.st-menu[open]>summary,.st-menu summary:hover{background:#30291e;color:var(--st-gold)}
.st-menu-popup{position:absolute;top:100%;left:0;min-width:210px;padding:5px;background:#201e1a;border:1px solid #594b34;box-shadow:0 14px 30px #0006;max-height:65vh;overflow:auto}
.st-menu-popup button{display:flex;width:100%;justify-content:flex-start;white-space:nowrap;font-size:12px;padding:9px 10px}
.st-edition{margin-left:auto;font-size:9px;color:#a09786}
.st-workspace{flex:1;min-height:0;display:grid;grid-template-columns:216px minmax(0,1fr) 244px;overflow:hidden}
.st-workspace.st-focus{grid-template-columns:1fr}.st-focus>.st-tree,.st-focus>.st-inspector{display:none}
.st-tree,.st-inspector{background:var(--st-panel);min-width:0;min-height:0;overflow:auto}
.st-tree{border-right:1px solid var(--st-line);display:flex;flex-direction:column}
.st-inspector{border-left:1px solid var(--st-line)}
.st-panel-title{height:48px;display:flex;align-items:center;justify-content:space-between;padding:10px 16px;flex:none}
.st-panel-title h2{font:11px Arial,sans-serif;text-transform:uppercase;color:#c9b990;margin:0}
.st-panel-title>svg{color:#b2a992}
.st-tree-root{display:flex;gap:8px;align-items:center;padding:10px 15px;color:var(--st-gold);font-size:12px}.st-tree-root span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-element-list{overflow:auto;flex:1;padding:4px 8px}.st-tree-row{padding-left:10px;border-left:1px solid #38332b;margin-left:10px}
.st-tree-row button{width:100%;justify-content:flex-start;text-align:left;font-size:12px;padding:10px 8px;min-height:38px}.st-tree-row button span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-tree-row.selected{background:#322b1e;border-left-color:var(--st-gold)}.st-tree-row.selected svg{color:var(--st-gold)}
.st-tree-footer{display:flex;gap:6px;padding:8px 12px;border-top:1px solid #302d28}
.st-project-info{padding:12px 15px;display:flex;flex-wrap:wrap;gap:6px 12px;font-size:9px;color:#aaa18f}
.st-center{min-width:0;min-height:0;display:flex;flex-direction:column;background:#0d0d0d}
.st-document-bar{height:40px;flex:none;background:#1a1917;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 20px;color:#d6c8a9;font-size:11px}.st-document-bar>span{display:flex;gap:7px;align-items:center;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.st-document-bar>span:last-child{font-size:10px;color:#aaa293}
.st-canvas-area{flex:1;min-height:0;overflow:auto;padding:30px;scrollbar-gutter:stable}
.st-sheet{max-width:840px;margin:0 auto;padding:30px 34px;background:#1b1a18;box-shadow:0 6px 24px #0003;min-height:100%;border-top:2px solid #71674d}
.st-sheet-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px;color:#bbaa84}
.st-kicker{font:10px/1.5 Arial,sans-serif;color:var(--st-gold);margin:0;text-transform:uppercase}
.st-identity{display:grid;gap:25px;align-items:center;margin-bottom:25px}.st-identity.has-portrait{grid-template-columns:120px minmax(0,1fr)}
.st-app .st-portrait{aspect-ratio:4/5;display:flex;flex-direction:column;gap:15px;border:1px dashed #645336;background:#111110;padding:12px;color:#c0aa7b;width:100%;font-size:10px;overflow:hidden}.st-portrait>svg{width:40px;height:40px}.st-portrait img{width:100%;height:100%;object-fit:contain}
.st-identity .st-field>input{font:28px/1.15 Georgia,serif;background:none;border:0;border-bottom:1px solid #5c503a;border-radius:0;padding:8px 0;color:#eee9d8}
.st-sheet-universe{font-size:10px;color:#a89f8d;margin-top:12px;overflow-wrap:anywhere}
.st-field{display:flex;flex-direction:column;gap:7px;font:11px/1.5 Arial,sans-serif;color:#c0b8a6;margin:0 0 17px}
.st-sheet .st-field textarea{background:#111110;border-color:#443c2e;line-height:1.8;color:#e8e1d1;font-size:14px}
.st-section-tabs{display:flex;gap:4px;flex-wrap:wrap;margin:20px 0 24px;border-bottom:1px solid #49402f;padding-bottom:6px}
.st-section-tabs button{padding:8px 10px;font-size:11px;color:#bdb39e}.st-section-tabs button[aria-selected=true]{color:#e4c58d;background:#332a1c}
.st-inspector-content{padding:8px 16px 20px}.st-type{display:flex;align-items:center;gap:8px;color:var(--st-gold);font-size:12px;margin-bottom:20px}
.st-inspector h3{font:11px Arial,sans-serif;text-transform:uppercase;color:var(--st-gold);margin:25px 0 16px}
.st-check{display:flex;gap:9px;align-items:center;font-size:11px;color:#c7bda7;margin:14px 0}
.st-muted{font-size:12px;color:#b9af99;padding:0 14px}.st-inspector-content .st-muted{padding:0}
.st-numeric{display:grid;grid-template-columns:1fr 1fr;gap:8px}.st-board-links{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px}
.st-writing{max-width:800px}.st-writing>.st-kicker{margin-bottom:25px}.st-writing .st-field input{font:26px Georgia,serif;background:transparent;border:0;border-bottom:1px solid #5c503a}
.st-app .st-manuscript{font:17px/1.9 Georgia,serif;min-height:380px;background:none;border:0;padding:15px 0;color:#e9e8db;resize:vertical}.st-word-count{text-align:right;color:#aaa08b;font-size:10px}
.st-music h1{font:32px/1.2 Georgia,serif;margin:20px 0;color:#ece6d6}.st-audio-reel{padding:24px 0;color:#a38c5a}.st-audio-reel svg{width:90px;height:90px}.st-music audio{width:100%}
.st-media-stage{height:100%;min-height:320px;display:grid;place-items:center}.st-media-stage>img{max-height:70vh;max-width:100%;object-fit:contain}.st-media-stage>div{text-align:center;color:#afa58e}.st-media-stage>div>svg{width:64px;height:64px;color:#9c8a61}
.st-art-toolbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-bottom:18px}.st-art-toolbar button[aria-pressed=true]{background:#514128;color:#f0cc8c}.st-art-toolbar input[type=color]{width:34px;height:30px;padding:3px}.st-art-toolbar input[type=range]{width:90px;accent-color:#c6a66e;padding:0}.st-art-board{max-width:800px;margin:auto;background:#eeeee8;box-shadow:0 6px 30px #0005;touch-action:none}.st-art-board canvas{display:block}
.st-bottom{flex:none;border-top:1px solid #424738;background:#1b1916;height:172px;display:flex;flex-direction:column}.st-bottom.collapsed{height:38px}.st-bottom-tabs{display:flex;align-items:center;height:38px;flex:none;padding:0 12px;gap:4px;background:#131211}.st-bottom-tabs>button{font-size:11px;padding:9px 13px}.st-bottom-tabs>button[aria-selected=true]{background:#302719;color:#e0be7b}.st-bottom-tabs>button:last-child{margin-left:auto}
#st-bottom-content{flex:1;overflow:auto;padding:13px 20px;min-height:0}
.st-sections{display:flex;gap:8px;flex-wrap:wrap}.st-sections button{font-size:12px;border-color:#4c402e}
.st-history{list-style:none;padding:0;margin:0}.st-history li{display:flex;gap:20px;font-size:12px;padding:5px 0}.st-history time{color:#b2a186;font-size:11px}
.st-app .st-notes{width:100%;height:100%;min-height:72px;resize:none;background:#101010;border-color:#4d402d}
.st-resources{display:flex;gap:12px;align-items:center}.st-resources button{font-size:11px;max-width:180px;flex:none}.st-resources img{height:55px;width:42px;object-fit:contain}.st-resources button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-layers{display:flex;gap:12px;flex-wrap:wrap}.st-layers>div{display:flex;align-items:center;border:1px solid #4c402c;padding:2px}.st-layers>div.selected{border-color:#b4a16d}.st-layers button{font-size:11px;min-height:30px}
.st-statusbar{height:27px;min-height:27px;padding:5px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#0c0c0c;color:#b9ab90;font-size:10px;border:0}.st-statusbar>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.st-statusbar>span:last-child{display:flex;gap:6px;align-items:center;flex:none;font-size:9px}.st-statusbar svg{width:12px;height:12px}
.st-empty{text-align:center;position:relative;min-height:300px;padding:45px 20px;isolation:isolate}.st-empty img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.1;z-index:-1}.st-empty h1{font:30px Georgia,serif}.st-loading,.st-load-error{padding:35px;color:#d2c7ab}.st-load-error h1{font-size:25px}.st-load-error a{display:block;margin-block:20px}
.st-mobile-tools{display:none}
.st-dialog{border:1px solid #777051;border-radius:4px;background:#1b1916;padding:0;width:min(760px,calc(100% - 28px));max-height:88dvh;box-shadow:0 20px 100px #000a}
.st-dialog::backdrop{background:#080808d9}.st-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-bottom:1px solid #49402f;gap:15px}.st-dialog h2{font:22px/1.3 Georgia,serif;margin:0;color:#dac18b}.st-dialog-body{padding:24px;overflow:auto}.st-dialog-body h3{font-size:13px;color:#d4c193}.st-dialog-body p{color:#c3baa6;line-height:1.8}.st-dialog-body input,.st-dialog-body textarea,.st-dialog-body select{font-size:15px}.st-dialog-body>audio{width:100%}.st-insert-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.st-insert-grid button{border-color:#584a32;justify-content:flex-start;padding:15px;font-size:12px}.st-open-item{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #413827}.st-open-item small{color:#b2a489;font-size:10px}.st-resource-preview{max-width:100%;max-height:65vh;object-fit:contain}
.st-reading{max-width:700px;margin:auto}.st-reading h1{font:34px/1.2 Georgia,serif;overflow-wrap:anywhere}.st-reading section{margin-top:35px}.st-reading h2{font:26px Georgia,serif}.st-reading h3{font:14px Arial,sans-serif;margin:20px 0 8px}.st-reading p{white-space:pre-wrap;overflow-wrap:anywhere}.st-reading img{max-height:400px;max-width:100%;object-fit:contain}.st-reading audio{width:100%}
@media(max-width:1100px){.st-top{gap:10px;padding:10px 12px}.st-app .st-project-name{max-width:160px}.st-workspace{grid-template-columns:175px minmax(0,1fr) 210px}.st-canvas-area{padding:20px}.st-sheet{padding:22px}.st-identity.has-portrait{grid-template-columns:85px minmax(0,1fr);gap:18px}.st-identity .st-field>input{font-size:23px}.st-top-actions button{padding:6px}.st-back span{display:none}.st-edition{display:none}}
@media(max-width:800px){.st-top{flex-wrap:wrap;gap:8px;padding:10px 12px}.st-brand{margin-right:6px}.st-app .st-project-name{max-width:none;flex:1;min-width:90px;width:90px}.st-back{order:0}.st-top-actions{order:2;margin:0 0 0 auto}.st-top-actions button{min-height:34px;min-width:32px}.st-top-actions [data-st=send] span{display:none}#st-status{order:1;font-size:10px}.st-menu-bar{padding:0 5px;gap:0;height:35px}.st-menu{position:static}.st-menu summary{padding:9px 7px;font-size:11px}.st-menu-popup{top:35px;left:8px;min-width:215px;max-width:calc(100vw - 16px)}.st-mobile-tools{display:flex;background:#1d1b17;padding:3px 12px;gap:8px;flex:none}.st-mobile-tools button{min-width:40px}.st-mobile-tools button[aria-pressed=true]{background:#4c3d26;color:#e6cd95}.st-workspace{display:block;position:relative}.st-workspace>.st-tree,.st-workspace>.st-center,.st-workspace>.st-inspector{height:100%;width:100%;display:none;border:0}.st-workspace[data-panel=canvas]>.st-center{display:flex}.st-workspace[data-panel=tree]>.st-tree{display:flex}.st-workspace[data-panel=inspector]>.st-inspector{display:block}.st-canvas-area{padding:14px}.st-sheet{padding:20px 16px}.st-field{font-size:12px}.st-app input,.st-app textarea,.st-app select{font-size:16px}.st-app .st-project-name{font-size:16px}.st-identity.has-portrait{grid-template-columns:78px minmax(0,1fr);gap:14px}.st-identity .st-field>input{font-size:22px}.st-portrait>svg{width:28px;height:28px}.st-section-tabs{gap:2px}.st-section-tabs button{font-size:11px;padding:8px}.st-bottom{height:148px}.st-bottom-tabs{padding:0 4px;gap:0}.st-bottom-tabs>button{padding:8px 7px;font-size:10px;gap:4px}.st-bottom-tabs svg{width:14px;height:14px}#st-bottom-content{padding:10px 14px}.st-statusbar>span:last-child{display:none}.st-dialog-body{padding:18px}.st-insert-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.st-open-item{display:block}.st-open-item small{display:block}.st-inspector-content{max-width:520px}.st-app .st-manuscript{min-height:340px;font-size:17px}}
@media(prefers-reduced-motion:reduce){.st-app *{scroll-behavior:auto!important;transition:none!important}}
.st-reading .st-art-preview{width:100%;height:auto;display:block;stroke-width:0}
.st-app,.st-dialog{--st-gold:#d0b173;--st-line:#3c3528}
.st-top{background:#0b0b0b;box-shadow:inset 0 1px #b49a5930}
.st-brand>svg{color:#d4b574}
.st-app .st-primary,.st-dialog .st-primary{background:linear-gradient(125deg,#e2c887,#b39150);border-color:#d9bc79;box-shadow:inset 0 1px #fff4,0 2px 6px #0005;color:#19140b}
.st-app .st-primary:hover,.st-dialog .st-primary:hover{background:linear-gradient(125deg,#f0dca4,#c6a460);box-shadow:inset 0 1px #fff6,0 0 12px #b99c5120}
.st-top-actions [data-st=save]{border-color:#8b7344;color:#e0c48b;background:#191713;box-shadow:inset 0 1px #dec08216}
.st-section-tabs button[aria-selected=true]{background:transparent;box-shadow:inset 0 -1px #c2a05c;color:#e2c488}
.st-tree{position:relative;isolation:isolate}
.st-tree::before{content:'';position:absolute;bottom:90px;left:12px;width:175px;height:175px;background:url('/studio-clockwork.png') left bottom/contain no-repeat;filter:grayscale(1) sepia(1);opacity:.23;pointer-events:none;z-index:-1}
.st-sheet{position:relative;isolation:isolate;border-top-color:#9b7d45;background:#1b1a18}
.st-sheet::after{content:'';position:absolute;right:10px;top:8px;width:110px;height:110px;background:url('/studio-clockwork.png') center/contain no-repeat;transform:rotate(180deg);filter:grayscale(1) sepia(1);opacity:.3;pointer-events:none;z-index:-1}
.st-sheet-header>svg{opacity:0}
.st-identity .st-field>input{color:#e5d3a8}
.st-sheet .st-field textarea,.st-app .st-notes{border-color:#39342a;background:#131210;color:#ece6d8}
.st-bottom-tabs>button[aria-selected=true]{background:#292316;color:#e3c78c;box-shadow:inset 0 1px #aa8a4a}
.st-app input[type=range]{accent-color:#c9a861}
@media(max-width:800px){.st-sheet::after{width:80px;height:80px;opacity:.24}.st-tree::before{width:160px;height:160px}.st-mobile-tools button[aria-pressed=true]{background:#44371f;color:#f1d698}}
@media(max-width:800px) and (max-height:700px){.st-bottom:not(.collapsed){height:112px}.st-top{gap:6px}.st-canvas-area{padding:10px}.st-identity.has-portrait{grid-template-columns:60px minmax(0,1fr)}}
