/* studio.css */
:root{--bg:#0d0e14;--surface:#171923;--surface2:#1c1e2b;--line:#2d3042;--muted:#969cb4;--accent:#a78bfa;--ink:#eef0fa}body.hippo-workspace{max-width:none;margin:0;padding:0 32px 50px 260px;background:var(--bg);color:var(--ink);font:14px/1.55 'Segoe UI',Arial,sans-serif}button,input,select,textarea{transition:border-color .15s,background .15s}button,a.button{background:#8b5cf6;border:1px solid #9568f7;border-radius:10px;font-weight:600;padding:10px 16px;box-shadow:none}button:hover{filter:none;background:#9c74fa}button.quiet,.quiet{background:#242737;border-color:#373b51;color:#e1def3}button.ghost{background:transparent;border-color:var(--line);color:#b5bad0}button.danger{background:#341c2c;border-color:#583044;color:#ffacb9}input,select,textarea{background:#11131d;border-color:#33384d;border-radius:9px;padding:10px 12px;color:#edeef6;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #8b5cf64d;border-color:#a78bfa}input[type=color]{height:42px;padding:4px}label{font-size:12px;color:#bfc4da;font-weight:500}small,.muted{font-size:12px;color:var(--muted)}h1,h2,h3{color:#f4f2ff;letter-spacing:-.4px}h2{font-size:25px}h3{font-size:16px}p{color:var(--muted)}a{color:#b9a4ff}body.hippo-workspace .app-header{min-height:100px;padding:23px 0 18px;margin:0 0 25px;border-bottom:1px solid var(--line);align-items:center}.app-header h1{display:none}.app-header .eyebrow{margin-bottom:8px;font-size:10px;letter-spacing:2.5px}.app-header #connection{font-size:14px;color:#d7daea;margin:0}.app-header #error:empty{display:none}.privacy-controls #privacy-status{max-width:280px;line-height:1.4;font-size:10px}.privacy-controls button{font-size:11px}body.hippo-workspace .tabs{position:fixed;inset:0 auto 0 0;width:224px;margin:0;padding:28px 16px;border:0;border-right:1px solid var(--line);background:#13151f;display:flex;flex-direction:column;gap:8px;z-index:10}.nav-brand{display:flex;align-items:center;gap:12px;margin:2px 9px 38px}.nav-brand strong{font-size:20px;letter-spacing:3px;color:white}.nav-brand small{display:block;font-size:8px;letter-spacing:2.1px;color:#828aa5}.brand-symbol{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#a78bfa,#6753c7);font:900 24px Georgia;color:#fff;box-shadow:0 5px 30px #8b5cf62b}.tabs button{text-align:left;padding:14px 13px;color:#939bb5;font-weight:500;font-size:13px;border-radius:10px;min-width:0}.tabs button[aria-selected=true]{background:#302746;border-color:#66508b;color:#e5d9ff}.nav-icon{display:inline-block;width:25px;font-size:18px;vertical-align:middle}.nav-footer{margin-top:auto;padding:16px 10px 0;border-top:1px solid var(--line);color:#9da5c0;font-size:10px}.nav-footer small{display:block;font-size:10px;margin-top:6px}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#72d5b3;margin-right:5px}main{max-width:1520px;margin:0 auto}.panel-intro{margin-bottom:22px;align-items:center}.panel-intro .eyebrow{font-size:10px;letter-spacing:2px;margin-bottom:6px}.panel-intro h2{font-size:30px;margin:0 0 5px}.panel-intro p{font-size:13px}.section-nav{display:flex;gap:4px;overflow:auto;margin:0 0 24px;padding:4px;border:1px solid var(--line);border-radius:12px;background:#141620}.section-nav button{background:none;border:0;color:#9ca4bf;white-space:nowrap;padding:10px 17px;font-size:12px;border-radius:8px}.section-nav button.active{background:#2d2942;color:#e2d9ff;box-shadow:0 2px 7px #0003}.studio-strip{display:flex;align-items:center;gap:14px;margin-bottom:6px}.studio-strip .studio-hint{color:var(--muted);font-size:11px;margin-left:auto}.studio-strip button{font-size:11px}.switch{display:flex;align-items:center;gap:7px;font-size:13px;color:#ddd9ee}.switch input{accent-color:#aa85ff}.badge{background:#29253c;border-color:#49405f;color:#cfbaf7;padding:4px 9px;font-size:10px;border-radius:6px;white-space:nowrap;margin:0}.surface,.obs-card{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:24px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.section-heading h2,.section-heading h3{margin:0}.section-heading .toolbar{gap:6px}.section-heading button{font-size:11px}.queue-hero{display:flex;justify-content:space-between;gap:20px;padding:30px;border:1px solid #443653;border-radius:16px;background:radial-gradient(ellipse at 10% 50%,#30223e 0,transparent 65%),#181923}.queue-hero .eyebrow{font-size:9px;letter-spacing:2px}.queue-hero h2{margin:10px 0 6px;font-size:25px}.queue-hero p{margin:0}.queue-count{text-align:center;min-width:86px;padding:0 10px;border-left:1px solid #4e3e5f}.queue-count strong{display:block;font-size:40px;font-weight:600;color:#ccafff;line-height:1.2}.queue-count span{font-size:11px;color:#9ea4bc}.sequence-strip{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:18px 6px 24px;font-size:11px;color:#9ca3bd}.sequence-strip b{color:#ac8bec;font-size:10px;margin-right:5px}.sequence-strip i{font-style:normal;color:#565d77}.two-columns{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:20px}.two-columns .surface{align-self:start}.stack{display:grid;gap:15px}.stack label{display:block}.stack>button{justify-self:start}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.studio-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px}.studio-sidebar{padding:20px;height:fit-content}.studio-sidebar .scene-list{margin:10px 0 24px}.studio-sidebar .scene-list button{font-size:12px}.studio-sidebar h3{font-size:14px}.icon-button{padding:2px 8px;font-size:18px;background:transparent;border-color:#44415c}.obs-card{margin:20px 0 27px;background:linear-gradient(120deg,#202333,#191b27)}.obs-card p{margin:3px 0 10px;font-size:11px}.obs-card strong{font-size:13px}.obs-card small{font-size:10px}.ds-rules{display:grid;gap:12px}.ds-rule{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px}.ds-rule>div{flex:1}.ds-rule h3{margin:8px 0 3px}.ds-rule p{font-size:11px;margin:0}.ds-rule button{font-size:11px}.ds-jobs{display:grid;gap:4px;max-height:650px;overflow:auto}.ds-jobs:empty:after{content:'Пока здесь тихо. Отправьте тестовый донат или подключите сервисы.';display:block;padding:35px 20px;text-align:center;color:#7f89a6;font-size:12px}.ds-job{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:16px 0}.ds-job>div{flex:1;min-width:0}.ds-job strong{font-size:13px}.ds-job small{display:block;font-size:10px}.ds-job p{font-size:12px;margin:5px 0;overflow-wrap:anywhere}.ds-job button{font-size:10px;padding:6px 9px}.voice-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);gap:24px;max-width:1100px}.calm-card{align-self:start;background:#171d29;border-color:#303c50}.calm-card p{font-size:13px;line-height:1.8}.callout{padding:14px 16px;border-radius:10px;border:1px solid #4f4065;background:#292039;font-size:12px;color:#c5b2df}.ai-panel{background:var(--surface);border-color:var(--line);padding:26px}.ai-anonymous{font-size:12px}.ai-memory-card,.ai-job{background:#11131c}.ai-settings{border-color:var(--line)}#ai-api-settings{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:24px;margin:20px 0}#ai-api-settings>summary{font-size:17px;color:white;margin-bottom:22px}#ai-api-settings>button{margin-top:15px}.donation-connection{background:var(--surface);border:1px solid var(--line);padding:24px;border-radius:15px;margin:20px 0}.donation-connection p{font-size:12px}#dp-form{max-width:600px}.subscription-info{border-color:var(--line);background:#181c29;color:#b0bdd7}.subscription-info span{display:block;margin-top:5px}.scene-sidebar,.rule-card{background:var(--surface);border-color:var(--line)}.scene-sidebar{padding:20px;border-radius:14px}.alert-workspace{grid-template-columns:220px minmax(0,1fr)}.preview-box{max-height:none;max-width:900px}.rule-card .toolbar{flex-wrap:wrap}.rule-card{padding:20px}.modal{background:#191c28;border-color:#45425b;border-radius:16px}.form-error{color:#ffabbc}.status-line{font-size:12px;min-height:18px}.studio-modal{width:calc(100vw - 64px);max-width:1480px;max-height:94vh;border:1px solid #484059;border-radius:18px;padding:0;background:#171923;color:var(--ink);box-shadow:0 30px 140px #000b}.studio-modal::backdrop{background:#070811c9;backdrop-filter:blur(5px)}.studio-modal form{margin:0}.editor-heading{display:flex;justify-content:space-between;align-items:center;padding:22px 26px;border-bottom:1px solid var(--line)}.editor-heading h2{font-size:20px;margin:3px 0}.editor-heading .eyebrow{font-size:9px}.editor-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr)}.canvas-column{padding:24px;border-right:1px solid var(--line);background:#11131d}.canvas-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:9px;letter-spacing:1px;color:#8c94b1;margin:0 0 13px}.canvas-toolbar:has(button){margin-top:13px;letter-spacing:0;font-size:10px}.canvas-toolbar button{font-size:11px}.canvas-shell{position:relative;aspect-ratio:16/9;border:1px solid #45425d;border-radius:10px;overflow:hidden;background-color:#20202b;background-image:linear-gradient(45deg,#272734 25%,transparent 25%),linear-gradient(-45deg,#272734 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#272734 75%),linear-gradient(-45deg,transparent 75%,#272734 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0}.donation-stage{position:relative;width:100%;height:100%;--unit:1px}.donation-layer{position:absolute;display:flex;align-items:center;justify-content:center;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;overflow:hidden;line-height:1.2}.layer-media img,.layer-media video{width:100%;height:100%;object-fit:contain;pointer-events:none}.donation-stage.editing .donation-layer{cursor:move;border:1px dashed #7d719a80;touch-action:none;user-select:none}.donation-stage.editing .donation-layer.selected{border:2px solid #bc9bff;background:#9a75ff0b}.donation-stage.editing .donation-layer:focus-visible{outline:2px solid #e0d1ff;outline-offset:2px}.dv-placeholder{font:12px 'Segoe UI';color:#b3abc6;padding:15px;border:1px dashed #686080;border-radius:9px;background:#201d2e}.position-bar{display:grid;grid-template-columns:1.7fr repeat(4,1fr);gap:9px;margin:20px 0 5px}.position-bar label{font-size:10px}.position-bar input,.position-bar select{font-size:11px;padding:8px}.inspector{padding:18px 22px;max-height:65vh;overflow:auto}.editor-tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:19px}.editor-tabs button{background:none;border:0;color:#9da4bd;font-size:12px;flex:1;padding:8px}.editor-tabs button.active{background:#332b46;color:#dfcbff}.inspector .stack{gap:13px}.inspector .form-grid{gap:10px}.inspector input,.inspector select{font-size:12px}.inspector small{font-size:10px}.inspector .note{font-size:11px}.editor-footer{padding:18px 26px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;position:sticky;bottom:0;background:#191c29}.studio-modal .form-error,.studio-modal .status-line{padding:0 24px}.upload-zone{padding:24px 15px;border:1px dashed #655580;border-radius:12px;background:#241f32;text-align:center;font-size:14px!important;color:#cdb7f5}.upload-zone input{display:block;font-size:10px;margin:12px 0 0;width:100%}.file-row{font-size:11px;flex-wrap:wrap}.file-row span{min-width:0;overflow-wrap:anywhere;flex:1}#dv-player{width:100%;aspect-ratio:16/9;border:1px solid #514562;margin-top:15px;border-radius:10px}#memory-view details{border:none;margin:0;padding:0}#memory-view summary{font-size:20px}#panel-gacha section,#panel-channel section{background:var(--surface);border-color:var(--line);padding:26px;margin:0 0 20px}#panel-gacha table{width:100%;font-size:12px}#panel-gacha td,#panel-gacha th{border-color:var(--line);padding:12px}#panel-gacha input:not([type=checkbox]){max-width:600px}#ds-confirm>button{margin-right:10px}
@media(min-width:1600px){body.hippo-workspace{padding-right:55px;padding-left:280px}.editor-grid{grid-template-columns:minmax(0,2fr) minmax(330px,1fr)}}
@media(max-width:1100px){body.hippo-workspace{padding-left:211px;padding-right:22px}.hippo-workspace .tabs{width:190px;padding:25px 12px}.nav-brand{margin-left:5px}.two-columns,.voice-layout{grid-template-columns:1fr}.studio-layout,.alert-workspace{grid-template-columns:180px minmax(0,1fr)}.editor-grid{grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr)}.studio-modal{width:calc(100vw - 28px)}.canvas-column{padding:18px}.position-bar{grid-template-columns:repeat(4,1fr)}.position-bar label:first-child{grid-column:1/-1}.sequence-strip{font-size:10px}.studio-hint{display:none}}
@media(max-width:760px){body.hippo-workspace{padding:0 16px 32px}.hippo-workspace .tabs{position:sticky;top:0;width:auto;inset:auto;flex-direction:row;padding:10px 0;gap:3px;overflow:auto;border-right:0;border-bottom:1px solid var(--line);margin:0 -16px 20px;padding-left:12px;padding-right:12px}.nav-brand,.nav-footer{display:none}.tabs button{font-size:10px;min-width:100px;padding:10px}.nav-icon{width:16px;font-size:13px}.hippo-workspace .app-header{min-height:80px;margin-bottom:0;padding:17px 0}.privacy-controls #privacy-status{display:none}.panel-intro h2{font-size:25px}.panel-intro .button{font-size:10px;padding:8px}.section-nav button{font-size:11px;padding:9px 12px}.studio-layout,.alert-workspace,.editor-grid{grid-template-columns:1fr}.studio-sidebar .scene-list,.scene-sidebar .scene-list{display:flex;overflow:auto;margin:10px 0}.studio-sidebar .scene-list button,.scene-sidebar .scene-list button{min-width:150px}.studio-sidebar .note{display:none}.surface,.obs-card{padding:18px}.studio-strip{flex-wrap:wrap}.studio-strip .switch{font-size:12px}.sequence-strip{flex-wrap:wrap;justify-content:flex-start;gap:8px}.queue-hero{padding:22px}.queue-hero h2{font-size:20px}.ds-rule{flex-wrap:wrap}.ds-rule>div{flex-basis:100%}.scene-link{flex-wrap:wrap}.scene-link input{flex-basis:100%}.editor-grid .canvas-column{border-right:0;border-bottom:1px solid var(--line)}.inspector{max-height:none}.studio-modal{max-height:96vh}.editor-heading{padding:15px 18px}.editor-heading h2{font-size:17px}.editor-footer{padding:14px}.editor-footer button{font-size:11px;padding:8px}.ds-job{flex-wrap:wrap}.ds-job>div{flex-basis:65%}.section-heading{flex-wrap:wrap}.ai-panel{padding:18px}.ai-grid{grid-template-columns:1fr}}

.brand-symbol{object-fit:cover}.account-bar{display:flex;align-items:center;gap:20px;padding:15px 0 0;color:#b5b4cc;font-size:12px}.account-who{display:flex;align-items:center;gap:9px;margin-right:auto}.account-who img{width:30px;height:30px;border-radius:50%}.account-bar label{display:flex;align-items:center;gap:8px}.account-bar select{padding:6px 10px;font-size:12px;max-width:180px}.account-bar button{font-size:11px;padding:6px 12px}.owner-nav{display:block;padding:14px 12px;color:#c6b2f0;font-size:12px;border-top:1px solid #383143;margin-top:16px}.account-bar a{font-size:12px}@media(max-width:760px){.account-bar{gap:12px;flex-wrap:wrap}.account-bar label{order:4;width:100%}.owner-nav{margin:0;border:0;padding:10px;white-space:nowrap;font-size:10px}}

/* accounts.css */
:root{color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:#0d0f16;color:#eff0fb;font:14px/1.6 'Segoe UI',Arial,sans-serif}a{text-decoration:none}button,a.twitch-login{cursor:pointer}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}input,select{width:100%;font:inherit}button:focus-visible,a:focus-visible{outline:2px solid #c6b2ff;outline-offset:4px}.public-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 5.5vw;border-bottom:1px solid #262938}.account-brand{display:flex;align-items:center;gap:13px;color:#f0edf9;font-weight:800;letter-spacing:4px;font-size:20px}.account-brand img{width:48px;height:48px;border-radius:14px;object-fit:cover}.account-brand small{display:block;font-size:8px;letter-spacing:2.8px;color:#8f91ad;font-weight:400}.tiny-label,.eyebrow{font-size:10px;letter-spacing:2.4px;color:#b9a1e2;text-transform:uppercase}.account-actions{display:flex;align-items:center;gap:24px;font-size:13px}.account-actions span{color:#b2b4cb}.account-actions button{font-size:12px}.login-page{min-height:100vh;background:radial-gradient(ellipse at 75% 40%,#292038 0,transparent 47%),#0d0f16}.login-main{max-width:1400px;margin:0 auto;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:6vw;padding:70px 6vw 80px}.login-copy h1{font-size:clamp(44px,4.9vw,78px);line-height:1.12;letter-spacing:-3px;margin:24px 0}.login-copy h1 span{color:#bc9bf6}.login-description{font-size:17px;line-height:1.8;max-width:470px;color:#9ea5bc}.twitch-login{display:flex;align-items:center;gap:13px;background:#925af1;color:white;font-size:16px;font-weight:600;border-radius:12px;padding:18px 24px;margin-top:33px;max-width:345px;box-shadow:0 10px 40px #6a3cb92e}.twitch-login:hover{background:#a778ff}.twitch-login svg{width:24px;height:24px}.twitch-login>span{margin-left:auto}.login-note{font-size:11px;margin-top:16px;color:#747d98}.login-art{position:relative;max-width:460px;aspect-ratio:1;display:grid;place-items:center;isolation:isolate}.login-art>img{width:76%;height:76%;object-fit:cover;border-radius:27%;transform:rotate(-7deg);border:5px solid #b9a4ce21;box-shadow:0 20px 60px #0008}.orbit{position:absolute;inset:0;border:1px solid #8869a83b;border-radius:50%;z-index:-1}.orbit-two{inset:10%;border-style:dashed;transform:rotate(20deg)}.art-tag{position:absolute;right:0;bottom:9%;background:#242036;border:1px solid #50445e;border-radius:8px;color:#c5afd8;padding:10px 15px;letter-spacing:2px;font-size:8px;transform:rotate(-4deg)}.login-footer{max-width:1300px;margin:auto;border-top:1px solid #2c293a;padding:30px 32px 44px;display:grid;grid-template-columns:repeat(3,1fr);gap:45px}.login-footer>div{position:relative;padding-left:35px}.login-footer span{position:absolute;left:0;color:#82649c;font-size:10px}.login-footer strong{font-size:13px;font-weight:500}.login-footer p{font-size:12px;margin:5px 0;color:#747d98}.cabinet{max-width:1450px;padding:42px 5vw 70px;margin:auto}.cabinet h1{font-size:38px;margin:5px 0 12px;letter-spacing:-1.3px}.collection-intro{display:flex;justify-content:space-between;align-items:center;gap:30px}.collection-stats{border-left:1px solid #393347;padding-left:35px;text-align:center;min-width:130px}.collection-stats strong{font-size:45px;color:#cbb2fd;display:block;line-height:1.3}.collection-stats span{font-size:12px;color:#858ba2}.collection-filters{display:flex;gap:18px;padding:23px 0 15px;margin-top:15px}.collection-filters label{min-width:170px;font-size:11px;display:grid;gap:7px}.collection-search{flex:1}.collection-filters input,.collection-filters select{height:43px}.collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:18px}.hippo-card{background:#171b26;border:1px solid #2a2f41;border-radius:16px;padding:12px 12px 18px;text-align:left;color:#eee;overflow:hidden;transition:transform .18s,border-color .18s}.hippo-card:hover{background:#1e2131;border-color:var(--rarity);transform:translateY(-4px)}.card-art{position:relative;aspect-ratio:1;border-radius:11px;background:radial-gradient(ellipse at 50% 75%,color-mix(in srgb,var(--rarity) 20%,transparent),transparent 70%),#11151f;overflow:hidden}.card-art img{width:100%;height:100%;object-fit:contain}.hippo-count{position:absolute;right:9px;top:9px;color:#e8e5f1;background:#0c101ad9;border:1px solid #46415e;padding:2px 9px;border-radius:8px;font-size:10px}.card-rarity{display:block;font-size:9px;text-transform:uppercase;letter-spacing:1.4px;color:var(--rarity);margin:15px 3px 3px}.hippo-card strong{font-size:14px;display:block;margin:0 3px;font-weight:500;text-transform:capitalize}.collection-empty{text-align:center;padding:70px 20px;border:1px dashed #3b334c;border-radius:20px;background:#191621}.collection-empty img{border-radius:30%;filter:saturate(.65);opacity:.8}.collection-empty h2{font-size:23px;margin:16px 0 5px}.collection-empty p{max-width:420px;margin:auto;font-size:13px}#collection-status{font-size:12px;min-height:20px;margin:10px 0}#collection-detail{position:relative;width:min(600px,94vw);max-height:94vh;border:1px solid #514568;border-radius:20px;padding:22px 30px 26px;background:#151723;color:#eee;text-align:center;overflow:auto}#collection-detail::backdrop{background:#050711d9;backdrop-filter:blur(7px)}.detail-close{position:absolute;right:14px;top:14px;z-index:1;background:#222536;border-color:#474155;padding:5px 13px;font-size:22px}.detail-art{height:min(60vh,620px);display:grid;place-items:center}.detail-art img{max-width:100%;height:100%;object-fit:contain;min-height:0}#collection-detail h2{font-size:25px;margin:5px 0;text-transform:capitalize}#collection-detail p{margin:8px 0}.access-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(330px,1fr);gap:25px;margin-top:30px}.account-surface{background:#181c28;border:1px solid #30364b;border-radius:17px;padding:27px;align-self:start}.account-surface h2{font-size:23px;margin:4px 0 17px}.account-surface>p{font-size:13px}.section-heading{display:flex;justify-content:space-between;align-items:center}.pill{background:#342747;border-radius:9px;padding:4px 11px;color:#c5acf3;font-size:12px}.inline-form{display:flex;gap:10px;align-items:end}.inline-form label{flex:1}.inline-form button{height:43px;font-size:12px}.note{font-size:11px!important;color:#7f89a3}.access-users article{display:flex;align-items:center;gap:15px;padding:18px 0;border-bottom:1px solid #303346}.access-users article>div{flex:1}.access-users small{display:block;font-size:10px}.access-users button{font-size:11px}.stack label:not(.checkbox){display:grid;gap:7px}.stack .checkbox{display:flex;align-items:center;gap:7px;font-size:11px}.checkbox input{width:auto}#owner-status{padding:12px 0;color:#c4b6e7}.error{color:#ff9dac!important}.embedded-collection .public-header{display:none}.embedded-collection .cabinet{padding:20px}.embedded-collection h1{font-size:25px}.embedded-collection .collection-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.embedded-collection .collection-intro>div>p:first-child{display:none}.embedded-collection .collection-filters{margin-top:0;padding-top:10px}
@media(max-width:800px){.public-header{padding:20px}.tiny-label{display:none}.login-main{padding:40px 25px;grid-template-columns:1fr;gap:25px}.login-copy h1{font-size:48px}.login-description{font-size:15px}.login-art{width:250px;position:absolute;right:0;top:140px;opacity:.13;z-index:-1}.login-footer{gap:20px;padding:25px;grid-template-columns:1fr}.cabinet{padding:25px 20px}.cabinet h1{font-size:29px}.account-actions{gap:12px;font-size:11px}.account-actions>span{display:none}.account-brand{font-size:16px;letter-spacing:2px}.account-brand img{width:40px;height:40px}.account-brand small{font-size:7px}.collection-filters{flex-wrap:wrap;gap:10px}.collection-filters label{min-width:120px;flex:1}.collection-search{order:3;flex-basis:100%!important}.collection-grid{gap:12px;grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.collection-stats{min-width:80px;padding-left:15px}.collection-stats strong{font-size:32px}.access-grid{grid-template-columns:1fr}.account-surface{padding:20px}.inline-form{flex-wrap:wrap}.inline-form label{flex-basis:100%}}

.hippo-card strong,#collection-detail h2{text-transform:none}
/* Readable account and collection screens. */
body{background:#14171b;font-size:16px;color:#e8edf4}.account-surface{background:#1b2027;border-color:#3c4755;border-radius:7px}.account-surface>p,.collection-empty p{font-size:15px;line-height:1.65;color:#c4cdda}.cabinet h1{font-size:30px;letter-spacing:0;font-weight:600}.account-brand{letter-spacing:1px}.account-brand small{font-size:11px;letter-spacing:.04em;color:#b2bbc7}.account-actions,.account-actions button{font-size:14px}.note{font-size:13px!important;line-height:1.6;color:#b2bbc7}.access-users small,.access-users button,.stack .checkbox,#collection-status{font-size:14px}.access-users article{flex-wrap:wrap}.access-users article>div{min-width:150px;overflow-wrap:anywhere}.collection-filters label{font-size:14px}.collection-empty{border-radius:7px;background:#1b2027}.collection-stats strong{color:#bdd0df}.collection-stats span{font-size:14px;color:#bbc7d4}.tiny-label,.eyebrow{font-size:13px;letter-spacing:0;text-transform:none}.pill{background:#293642;border:1px solid #586d80;color:#d5e0eb;border-radius:4px}button{border-radius:5px;background:#3b5871;border-color:#638098;font-size:14px}button.quiet{background:#27313c;border-color:#536477}#collection-detail{background:#1b2027;border-radius:7px}#collection-detail::backdrop{backdrop-filter:none}.collection-filters input,.collection-filters select{font-size:15px}
@media(max-width:600px){.public-header{flex-wrap:wrap}.account-actions{flex-wrap:wrap}.cabinet h1{font-size:25px}.account-brand small{font-size:10px}}

/* Curated voice library: wrap controls without collisions on narrow screens. */
.voice-library{margin-top:24px}.voice-library .inline-form{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end}.voice-library .inline-form label{flex:1 1 220px;min-width:0}.voice-library .inline-form input{width:100%;box-sizing:border-box}.voice-library .access-users article{gap:16px;flex-wrap:wrap}.voice-library .access-users strong{min-width:0;overflow-wrap:anywhere;flex:1 1 180px}.voice-actions{display:flex;flex-wrap:wrap;gap:10px}.voice-library button{white-space:normal}

/* workspace.css */
/* Shared workspace: explicit form spacing and room for queue controls. */
:root{color-scheme:dark;--accent:#9b84dd;--line:#323541;--muted:#a2a7b8}
*,*::before,*::after{box-sizing:border-box}[hidden]{display:none!important}body{text-shadow:none}
body.hippo-workspace{font-size:14px;line-height:1.5}
button,a.button{border-radius:7px;min-height:40px;font-size:13px;line-height:1.35;margin:0;white-space:normal}
button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,a:focus-visible{outline:2px solid #b7a2f5;outline-offset:3px}
input,select,textarea{font:inherit;margin:0;max-width:100%;width:100%;min-width:0;min-height:40px;border-radius:7px}
input[type=checkbox],input[type=radio]{width:18px;min-height:18px;flex:none;accent-color:#9b84dd}input[type=range]{padding:0}textarea{resize:vertical}
label:not(.switch):not(.checkbox):not(.ai-switch){display:flex;flex-direction:column;gap:7px;min-width:0;font-size:13px}
label.switch,label.checkbox,label.ai-switch{display:flex;align-items:center;gap:9px;flex-direction:row}
.hippo-workspace main{max-width:1360px;min-width:0}.hippo-workspace section{min-width:0}
.hippo-workspace .app-header{min-height:72px;margin-bottom:24px;padding:18px 0;gap:20px}.privacy-controls{max-width:310px}
.hippo-workspace .app-header .eyebrow{letter-spacing:0;text-transform:none;font-size:12px}.nav-brand{margin-bottom:26px}.nav-footer .live-dot{display:none}
.panel-intro h2{font-size:27px;letter-spacing:0}.panel-intro p{max-width:760px;line-height:1.6}
.panel-intro,.section-heading,.scene-top,.toolbar,.scene-link,.modal-footer,.gc-actions,.editor-footer{gap:12px;flex-wrap:wrap}
.panel-intro>div,.section-heading>div,.scene-top>div{min-width:0}
.section-nav{border-radius:8px;gap:5px;padding:5px}.section-nav button{font-size:13px;min-height:38px;padding:9px 14px}
.surface,.obs-card,.scene-sidebar,.ai-panel,.donation-connection,.queue-hero{border-radius:10px;background:#181a23;box-shadow:none}
.queue-hero{background:#181a23;border-color:var(--line);padding:24px;align-items:center}.queue-hero>div:first-child{min-width:0}.queue-hero h2{font-size:23px;overflow-wrap:anywhere}
.queue-count{flex:none}.queue-count strong{font-size:32px}.queue-hero .eyebrow{letter-spacing:0;font-size:12px;text-transform:none}
.queue-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0 0}.queue-controls #dq-open{margin-left:auto}.queue-controls button{padding:10px 16px}
.queue-controls [aria-pressed=true]{background:#493c24;border-color:#867044;color:#ffe2a1}
.studio-strip{flex-wrap:wrap;gap:12px}.studio-strip .switch{font-size:13px}.sequence-strip{font-size:12px;flex-wrap:wrap}.sequence-strip b{font-size:12px}
.two-columns{grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr)}
.ds-jobs{display:block;max-height:670px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;padding-right:12px;overscroll-behavior:contain}
.ds-jobs:empty:after{content:'Донатов пока нет.';padding:32px 12px;color:var(--muted)}
.ds-job{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:18px 0;align-items:start}.ds-job:last-child{border-bottom:0}
.ds-job .ds-job-content{min-width:0}.ds-job strong{font-size:14px;overflow-wrap:anywhere}.ds-job small{font-size:12px;margin-top:5px}
.ds-job p{font-size:14px;line-height:1.55;white-space:pre-wrap;margin:10px 0 0;overflow-wrap:anywhere}
.ds-job-meta{display:flex;flex-direction:column;align-items:flex-end;gap:9px}.ds-job button{font-size:12px;min-height:34px}
.badge{white-space:normal;max-width:100%;margin:0;font-size:11px;line-height:1.4;text-align:center;padding:4px 8px}
.scene-link{display:flex;align-items:center;gap:10px}.scene-link input,#panel-gacha #overlay{flex:1 1 260px;width:auto;max-width:none;margin:0;letter-spacing:.5px}
.scene-link button{flex:0 1 auto;margin:0}.ds-rule,.rule-card{gap:12px;flex-wrap:wrap}.ds-rule>div{flex:1 1 240px}.rule-card .toolbar{gap:10px}
#panel-gacha>section,#panel-channel>section{padding:24px;margin:0;border-radius:10px;background:#181a23}
#panel-gacha>section>label,#panel-channel>section>label{max-width:600px;margin:16px 0}
#panel-gacha>section>button{margin:0 0 8px}#panel-gacha h2,#panel-channel h2{margin:0 0 18px;font-size:23px}
#panel-gacha input:not([type=checkbox]),#panel-channel input{max-width:100%}#panel-gacha hr{border:0;border-top:1px solid var(--line);margin:24px 0}
#memory-view.surface{padding:24px}#ai-memory-details{margin:0;padding:0;border:0}#ai-memory-details>summary{font-size:18px;margin:0 0 22px}
#ai-memory-details>.toolbar{align-items:flex-end;gap:12px}#ai-memory-details .ai-search{flex:1 1 260px}#ai-memory-details .note{line-height:1.6;margin:14px 0 24px}
.form-grid,.ai-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid>label,.ai-grid>label{min-width:0}.stack{gap:18px}.stack>button{margin-top:2px}
.status-line:empty{min-height:0;margin:8px 0}.note{font-size:12px;line-height:1.6}.file-row{gap:12px;flex-wrap:wrap}.file-row small{max-width:100%}.file-zone{line-height:1.6}
.modal h2{font-size:22px}.modal .toolbar{margin-top:24px}.modal .toolbar button{margin:0}
.account-bar label{display:flex!important;flex-direction:row!important;align-items:center}.account-bar select{width:auto;min-width:130px}.account-bar{flex-wrap:wrap}
/* Separate queue window uses the same Twitch session, not an OBS key. */
body.queue-window{margin:0;padding:22px;max-width:100%;font:14px/1.5 'Segoe UI',Arial,sans-serif;background:#101119;color:#eee}
.queue-window-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.queue-window h1{font-size:23px;margin:0 0 6px}
.queue-window .queue-controls{position:sticky;top:0;z-index:5;background:#101119;padding:12px 0;margin:12px 0 0;border-bottom:1px solid var(--line)}
.queue-window .queue-history{padding:22px;margin-top:20px}.queue-window .queue-history h2{font-size:18px;margin:0 0 10px}.queue-window .ds-jobs{max-height:none;overflow:visible;padding:0;scrollbar-gutter:auto}
/* Public entry: one action and a short description. */
.public-login{background:#101119;min-height:100vh}.public-login .public-header{max-width:1120px;margin:auto;padding:26px 32px;border-bottom:1px solid var(--line)}
.public-login .account-brand{font-size:23px;letter-spacing:0;font-weight:650;gap:12px}.public-login .account-brand img{width:46px;height:46px}
.signin-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:72px;max-width:1000px;margin:100px auto;padding:0 32px}
.signin-layout section{border:0;padding:0}.signin-card{align-self:start}.signin-card h1{font-size:34px;font-weight:650;letter-spacing:-.5px;margin:0 0 14px}.signin-card>p{font-size:16px;line-height:1.65}
.public-login .twitch-login{display:flex;align-items:center;justify-content:center;gap:12px;margin:30px 0 16px;width:100%;max-width:370px;padding:14px 20px;border-radius:8px;background:#7954cf;color:white;font-size:15px;font-weight:600;box-shadow:none}
.twitch-login svg{width:22px;height:22px}.signin-card .signin-note,.signin-info .signin-note{font-size:12px;color:var(--muted);line-height:1.6}
.signin-info{border-left:1px solid var(--line)!important;padding-left:42px!important}.signin-info h2{font-size:17px;margin:0 0 26px}.signin-info h3{font-size:15px;margin:0 0 8px}.signin-info div{margin-bottom:26px}.signin-info p{font-size:14px;line-height:1.7;margin:0}
@media(max-width:1150px){.two-columns,.voice-layout{grid-template-columns:1fr}.two-columns>.surface:last-child{max-width:none}}
@media(max-width:760px){.hippo-workspace .tabs{gap:5px}.panel-intro{align-items:flex-start}.queue-controls #dq-open{margin-left:0}.surface,.obs-card,#panel-gacha>section,#panel-channel>section,#memory-view.surface{padding:18px}.scene-link input{flex-basis:100%}.form-grid,.ai-grid{grid-template-columns:1fr}.two-columns{gap:18px}.ds-job{gap:10px}.ds-job .ds-job-content{flex-basis:auto}.ds-job .ds-job-meta{max-width:110px}.queue-hero{padding:18px}.queue-hero h2{font-size:19px}.queue-count{min-width:60px;padding-left:14px}.public-login .public-header{padding:22px}.signin-layout{grid-template-columns:1fr;gap:38px;margin:50px auto;padding:0 24px;max-width:520px}.signin-info{border-left:0!important;border-top:1px solid var(--line)!important;padding:30px 0 0!important}.signin-card h1{font-size:29px}.public-login .twitch-login{max-width:none}}
@media(max-width:420px){.ds-job{grid-template-columns:1fr}.ds-job .ds-job-meta{flex-direction:row;align-items:center;max-width:none;flex-wrap:wrap}.queue-window-header{align-items:flex-start}.queue-window-header a{font-size:12px}.queue-controls{gap:8px}.queue-controls button{padding:9px 11px}.queue-window{padding:16px!important}}
@media(min-width:761px) and (max-width:1100px){body.hippo-workspace .tabs{width:190px;padding:25px 12px}body.hippo-workspace{padding-left:212px}}
@media(max-width:760px){body.hippo-workspace .tabs{position:sticky;inset:auto;top:0;width:auto;height:auto;flex-direction:row;align-items:center;gap:6px;padding:10px 12px;margin:0 -16px 20px;border-right:0;border-bottom:1px solid var(--line);overflow-x:auto}body.hippo-workspace .tabs button{flex:0 0 auto;min-width:105px;min-height:40px;padding:10px 12px}body.hippo-workspace .app-header{align-items:flex-start;flex-direction:row;justify-content:space-between}.hippo-workspace .nav-brand,.hippo-workspace .nav-footer{display:none}.panel-intro{flex-wrap:wrap}}

.donation-price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:24px 0}.price-setting{display:grid;gap:14px;align-content:start}.price-setting>button{justify-self:start}.price-setting>p:empty{display:none}.help-details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:15px 0;margin:20px 0}.help-details summary{cursor:pointer;color:#c2b6e2}.help-details p{max-width:900px}
@media(max-width:760px){.donation-price-grid{grid-template-columns:1fr}.price-setting+.price-setting{border-top:1px solid var(--line);padding-top:24px}}

label:has(>input[type=checkbox]){display:flex!important;flex-direction:row!important;align-items:center;gap:9px}label:has(>input[type=checkbox]) input{flex:none}

/* ui-layout.css */
/* Shared control spacing for the dashboard and account pages, never OBS renderers. */
button, input, select, textarea { box-sizing: border-box; max-width: 100%; }
button { white-space: normal; overflow-wrap: anywhere; }
dialog { box-sizing: border-box; max-width: calc(100vw - 24px); max-height: calc(100dvh - 32px); overflow: auto; }
dialog :is(form, fieldset, label, .toolbar, .modal-footer, .editor-footer) { min-width: 0; }
dialog :is(h2, h3, p) { overflow-wrap: anywhere; }
dialog.modal > :is(input, select, textarea) { display: block; width: 100%; margin: 16px 0; }
dialog.modal > .ds-dialog-actions + p { margin-top: 16px; }
dialog.modal > .ds-dialog-actions + .ds-dialog-actions { margin-top: 16px; }
:is(.toolbar, .modal-footer, .gc-actions, .ds-dialog-actions, .ds-dialog-footer, .fp-actions) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
:is(.toolbar, .modal-footer, .gc-actions, .ds-dialog-actions, .ds-dialog-footer, .fp-actions) > button { margin: 0; }
.hippo-workspace .section-nav, .editor-tabs, .fp-tabs { flex-wrap: wrap; gap: 10px; }
.hippo-workspace .stream-save { position: static; }
.hippo-workspace .section-heading > .toolbar { gap: 12px; }
#da-merge { margin-top: 16px; }
.editor-footer { position: static; }
.editor-tabs:has(> :nth-child(4)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#gc-edit-form { display: grid; gap: 16px; }
#gc-edit-form > :is(h2, p, label, .gc-actions) { margin: 0; }
#gc-upload-form > input { margin: 16px 0; }
.editor-heading { gap: 16px; }
.editor-heading > div { min-width: 0; }
.editor-heading > button { flex: 0 0 auto; }
.fp-heading > button { flex: 0 0 auto; white-space: nowrap; }
.editor-tabs > button { min-width: 90px; }
.stream-large-preview { max-height: calc(100dvh - 32px); overflow: auto; }
.public-header, .queue-window-header { flex-wrap: wrap; }
.account-actions, .inline-form { flex-wrap: wrap; gap: 12px; }
.account-actions > *, .inline-form > * { min-width: 0; }
@media (max-width: 760px) {
  html { scroll-padding-top: 90px; }
  dialog.modal, dialog.font-picker, dialog.da-import, #gc-upload, #gc-edit { padding: 20px; }
  .studio-modal { width: calc(100vw - 24px); }
  .editor-heading, .canvas-column, .inspector { padding: 16px; }
  .editor-footer { position: static; align-items: stretch; gap: 16px; padding: 16px; }
  .editor-footer > .toolbar { margin-top: 0; }
  .editor-footer > *, .editor-footer .toolbar > button { flex: 1 1 auto; }
  .position-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .position-bar > :first-child { grid-column: 1 / -1; }
  .fp-selection { position: static; margin-inline: -20px; margin-bottom: -20px; padding: 20px; }
  .fp-actions { width: 100%; }
  .fp-actions > button { flex: 1 1 auto; }
  .stream-large-preview > .section-heading { flex-wrap: wrap; gap: 12px; }
  .inline-form > label { flex: 1 1 180px; }
}

.ai-grid label .voice-preview-actions,.voice-preview-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px}.voice-preview-actions small{flex:1 1 160px;min-width:0}

/* Vertical flow belongs to the container, not to incidental paragraph margins.
   Keep controls apart even when a status message is empty or a row wraps. */
:root { --ui-control-gap: 12px; --ui-block-gap: 24px; }
:is(.toolbar, .stream-link, .scene-link, .gc-actions, .ds-dialog-actions, .ds-dialog-footer, .voice-actions) + :is(p, small) { margin-top: var(--ui-control-gap); }
:is(.form-grid, .ai-grid, .stream-form-grid) + :is(p, .note) { margin-top: 16px; }
:is(.surface, .ai-panel, .account-surface) > form + :is(section, details),
.ai-panel > .ai-anonymous + details { margin-top: var(--ui-block-gap); }
.ai-panel > .ai-points-panel { margin-top: var(--ui-block-gap); }
form.stats-filters + p { margin-top: 16px; }
/* Standalone buttons need the same breathing room as grouped actions. */
:is(section, form, details) > button + :is(p, small) { margin-top: var(--ui-control-gap); }
:is(section, form, details) > :is(input, select, textarea) + button { margin-top: var(--ui-control-gap); }
.ds-dialog-footer { margin-top: 20px; }
#invite-result { display: grid; gap: var(--ui-control-gap); margin-top: 16px; }
#invite-result input { width: 100% !important; }
.inline-form button { height: auto; min-height: 43px; }
:is(.toolbar, .modal-footer, .ds-dialog-actions, .ds-dialog-footer, .gc-actions, .voice-actions) > :is(p, small, div) { min-width: 0; }
:is(.toolbar, .modal-footer, .ds-dialog-actions, .ds-dialog-footer, .gc-actions, .voice-actions) > :is(p, small) { overflow-wrap: anywhere; }
/* Import actions stay in document flow, clear of the final result row. */
.da-import > .toolbar { position: static; margin: 20px 0 0; padding: 16px 0 0; }
@media (max-width: 760px) {
  body.hippo-workspace .tabs { gap: 10px; }
  .scene-link button { white-space: normal; }
  .gc-filters > label { flex: 1 1 180px; min-width: 0; }
}

/* Font selection must not cover the bottom of the catalogue while scrolling. */
.fp-selection { position: static; }

/* Dashboard cleanup: one surface per group and consistent form spacing. */
body.hippo-workspace main[role=tabpanel] :is(.status-line,p[role=status]):empty{display:none}
body.hippo-workspace main[role=tabpanel] > .section-nav{margin-bottom:24px}
#panel-donations > .studio-view:not(.surface),#panel-donations #ds-scene-workspace{border:0;padding:0;background:none}
#panel-donations .studio-strip{border:0;margin-bottom:24px;padding-bottom:0}
#panel-donations .queue-controls{margin-bottom:16px}
#panel-donations .sequence-strip{display:none}
#panel-donations .studio-hint{display:none}
#panel-gacha #gc-form,#panel-gacha .gc-box-settings{border:0;border-radius:0;background:none;padding:0;margin:24px 0}
#panel-gacha #gc-form + section{border:0;border-top:1px solid var(--line);border-radius:0;background:none;padding:24px 0;margin:24px 0}
#panel-gacha .gc-filters{margin:18px 0}
#panel-gacha .gc-rarity-card{background:transparent}
#panel-gacha .gc-box-grid button{margin-top:12px}
#panel-gacha #gc-box-status:empty,#panel-gacha #gc-status:empty{display:none}
body.hippo-workspace :is(#panel-tarot,#panel-evaluation) section{margin-bottom:24px;padding:24px}
body.hippo-workspace :is(#panel-tarot,#panel-evaluation,#panel-channel) section > label,
#panel-gacha > section > label{display:flex;flex-direction:column;gap:8px;margin:16px 0}
body.hippo-workspace :is(#panel-tarot,#panel-evaluation,#panel-channel) section > label > :is(input,select,textarea),
#panel-gacha > section > label > :is(input,select){margin:0}
body.hippo-workspace :is(#panel-tarot,#panel-evaluation) section > label:has(input[type=checkbox]){margin:12px 0}
body.hippo-workspace :is(#panel-tarot,#panel-evaluation) section > button{margin:4px 8px 16px 0}
body.hippo-workspace :is(#panel-tarot,#panel-evaluation) section > button + p{margin-top:0}
#tarot-message:empty,#evaluation-message:empty{display:none}
#tarot-preview,#evaluation-preview{display:block;margin:16px 0}
#panel-tarot .tarot-preview-actions{margin:16px 0}
body.hippo-workspace .dashboard-reference{border:0!important;border-radius:0;background:none;padding:0!important;margin:0}
body.hippo-workspace .dashboard-reference > summary{padding:8px 0;cursor:pointer;margin:0}
body.hippo-workspace .dashboard-reference[open] > summary{margin-bottom:16px}
#panel-channel > section > a.button + p{margin-top:16px}
#panel-channel .donation-connection > .toolbar{margin-bottom:16px}
#panel-channel .donation-connection > :last-child{margin-bottom:0}
#panel-channel form > .toolbar{margin-top:16px}
#panel-channel #dp-key-state{margin:12px 0 16px}
body.hippo-workspace :is(#panel-events,#panel-chat) .stream-status{border:0;background:none;padding:0;margin-bottom:24px}
body.hippo-workspace :is(#panel-events,#panel-chat) .stream-preview-column .toolbar{margin-top:16px}
body.hippo-workspace :is(#panel-events,#panel-chat) .stream-preview-column section{border:0;background:none;padding:0;margin:0 0 24px}
body.hippo-workspace :is(#panel-events,#panel-chat) .stream-preview-column section + section{border-top:1px solid var(--line);padding-top:24px}
#panel-alerts .subscription-info{border:0;background:none;padding:0;margin-bottom:24px}
#panel-alerts #scene-editor{border:0;padding:0;background:none}
#panel-alerts .empty{border:0;background:none}
#panel-alerts .empty-symbol{display:none}
body.hippo-workspace .form-grid > label:not(:has(input[type=checkbox])){display:flex;flex-direction:column;gap:8px}
body.hippo-workspace .form-grid > label > :is(input,select,textarea){margin:0}
@media(max-width:760px){body.hippo-workspace :is(#panel-tarot,#panel-evaluation) section{padding:18px}body.hippo-workspace .privacy-controls #show-ids{min-width:104px;white-space:nowrap}}
#panel-gacha #gc-config{border:0;border-radius:0;background:none;padding:0;margin:24px 0}
#panel-gacha section.gc-box-section{border:0;border-top:1px solid var(--line);border-radius:0;background:none;padding:24px 0;margin:24px 0}
#panel-tarot .tarot-display-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;margin:20px 0}
#panel-tarot .tarot-display-controls > :not(label){grid-column:1/-1}
#panel-tarot .tarot-display-controls > label{margin:0}
#panel-tarot .tarot-display-controls > p{margin:0}
#panel-tarot .tarot-display-controls > button{justify-self:start;margin:0}
@media(max-width:760px){#panel-tarot .tarot-display-controls{grid-template-columns:1fr}}
body.hippo-workspace .stack > :is(p,small){margin:0}
#panel-donations .voice-layout > .calm-card{border:0;border-left:1px solid var(--line);border-radius:0;background:none;padding:0 0 0 24px}
#panel-donations .voice-layout > .calm-card > p:first-of-type{display:none}
@media(max-width:1100px){#panel-donations .voice-layout > .calm-card{border:0;border-top:1px solid var(--line);padding:20px 0 0}}

/* Rarity must remain visible over the shared button theme. */
#gc-items .gc-item { border: 1px solid color-mix(in srgb, var(--rarity) 55%, #282d33); border-top: 3px solid var(--rarity); background: color-mix(in srgb, var(--rarity) 9%, #171b20); border-radius: 10px; padding: 12px; }
#gc-items .gc-item small { display: block; color: var(--rarity); margin: 8px 0 3px; }
#gc-items .gc-item:hover { background: color-mix(in srgb, var(--rarity) 16%, #171b20); }
#gc-items .gc-item:focus-visible { outline: 2px solid var(--rarity); outline-offset: 3px; }

/* emerald-theme.css */
/* Emerald Graphite: management UI only. Never include in OBS/scene bundles. */
:root {
  color-scheme: dark;
  --bg: #212427; --surface: #2b2e33; --surface2: #30343a;
  --ink: #f2f4f7; --muted: #b0b8c2; --line: #3b4047;
  --accent: #8be6bd; --emerald-start: #92e486; --emerald-end: #25bf98;
  --ui-control-gap: 12px; --ui-block-gap: 24px;
  --ui-radius: 18px;
  --ui-raised: 7px 9px 22px #14161966, -3px -3px 12px #484b4f20;
  --ui-inset: inset 3px 3px 7px #12151855, inset -2px -2px 6px #44474c20;
}
body, body.hippo-workspace, body.queue-window, body.public-login {
  background: radial-gradient(ellipse at 90% 0, #30353b 0, transparent 650px), var(--bg);
  color: var(--ink); font: 15px/1.55 "Segoe UI", Arial, sans-serif; text-shadow: none;
  background-repeat: no-repeat; min-height: 100vh; box-sizing: border-box;
}
body.hippo-workspace { padding: 0 32px 48px 256px; }
body.hippo-workspace main { max-width: 1400px; }
body :is(h1,h2,h3) { color: var(--ink); text-shadow: none; }
body.hippo-workspace .panel-intro h2, .cabinet h1 { font-size: 30px; font-weight: 600; letter-spacing: -.8px; }
body.hippo-workspace h3 { font-size: 18px; font-weight: 600; }
body :is(p,small,.note,.muted) { color: var(--muted); }
body.hippo-workspace p, body.queue-window p { color: #c4cad2; }
body a { color: var(--accent); text-underline-offset: 4px; }
body :is(button,input,select,textarea,a.button) { font: inherit; }
body :is(button,a.button) {
  min-height: 42px; padding: 10px 16px; border: 1px solid #41464e; border-radius: 10px;
  background: linear-gradient(140deg,#34383e,#2c3035); color: var(--ink); box-shadow: 3px 4px 10px #14161940;
  line-height: 1.4; text-shadow: none; white-space: normal;
}
body.hippo-workspace button, body.queue-window button {
  min-height: 42px; font-size: 14px; border-radius: 10px;
  background: linear-gradient(140deg,#34383e,#2c3035); border-color: #41464e; color: var(--ink);
  box-shadow: 3px 4px 10px #14161940;
}
body :is(button,a.button):hover, body.hippo-workspace button:hover, body.queue-window button:hover {
  background: #3c4249; color: var(--ink); transform: none;
}
body :is(button,a.button):disabled { opacity: .46; box-shadow: none; cursor: not-allowed; }
body :is(button,a,input,select,textarea,summary):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
/* Gradients identify save/create/resume actions, never every control. */
body :is(button[type=submit],form button:not([type]):not([class]),button.ai-save,button.stream-save,
  #gc-add,#gc-upload-save,#gc-rim-save,#ds-create-first,#ds-save,#reward,#da-save,#dp-price-save,
  #tarot-display-save,#tarot-reward-save,#tarot-save,#evaluation-scene-save,#evaluation-tone-save,
  #evaluation-reward-save,#evaluation-save,#invite-create,#dp-connect),
body.hippo-workspace #dq-pause[aria-pressed=true], body.queue-window #dq-pause[aria-pressed=true],
body.public-login .twitch-login {
  background: linear-gradient(110deg,var(--emerald-start),var(--emerald-end)); color: #102a20;
  border-color: transparent; box-shadow: 0 6px 20px #20cf921c; font-weight: 600; text-shadow: none;
}
body :is(button.danger,button.delete) { background: #482e33; border-color: #8d555d; color: #ffc6ca; box-shadow: none; }
body :is(button.danger,button.delete):hover { background: #59363d; }
body button:is(.quiet,.ghost,.secondary) { background: #2b2f34; border-color: var(--line); color: #d8dee5; box-shadow: none; }
body :is(input,select,textarea), body.hippo-workspace :is(input,select,textarea), body.queue-window :is(input,select,textarea) {
  background: #202428; color: var(--ink); border: 1px solid #454c55; border-radius: 9px;
  min-height: 42px; padding: 10px 12px; box-shadow: var(--ui-inset); font-size: 15px; line-height: 1.5;
}
body :is(input,textarea)::placeholder { color: #9ba5b2; opacity: 1; }
body input:is([type=checkbox],[type=radio]), body.hippo-workspace label:has(>input[type=checkbox])>input {
  accent-color: #70dca8; width: 18px; height: 18px; min-height: 18px; padding: 0; box-shadow: none;
}
body input[type=range] { padding: 0; box-shadow: none; accent-color: #70dca8; }
body input[type=color] { padding: 5px; box-shadow: none; }
body.hippo-workspace label:not(.switch):not(.checkbox):not(.ai-switch) { color: #d1d7df; font-size: 14px; }
body :is(.form-grid,.ai-grid,.stream-form-grid) { gap: 16px 24px; }
body :is(.stack,.ds-rules) { gap: 16px; }
body :is(.toolbar,.queue-controls,.account-actions,.gc-actions,.voice-actions) { gap: 12px; }
body :is(.two-columns,.voice-layout,.studio-layout,.access-grid) { gap: 24px; }
body.hippo-workspace .app-header { padding: 24px 0; margin-bottom: 24px; border-color: var(--line); }
body.hippo-workspace .panel-intro { margin-bottom: 24px; gap: 16px; }
body.hippo-workspace .panel-intro p { margin-top: 8px; font-size: 14px; }
/* Navigation retains its existing keyboard/tab semantics. */
body.hippo-workspace .tabs {
  width: 224px; padding: 32px 16px 24px; background: #212427;
  border: 0; gap: 8px; box-shadow: none;
}
body.hippo-workspace .tabs button {
  border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted);
  box-shadow: none; min-height: 44px; padding: 12px; font-size: 14px; text-align: left;
}
body.hippo-workspace .tabs button:hover { background: #2b3035; color: var(--ink); }
body.hippo-workspace .tabs button:is([aria-selected=true],.active) {
  background: linear-gradient(135deg,#34393e,#2b2f34); color: var(--accent);
  border-color: #3b4542; box-shadow: 5px 7px 14px #14161955, -2px -2px 8px #484b4f18;
}
/* Override old html[data-hippo-tab] first-paint color rules without altering visibility. */
body.hippo-workspace .tabs button[id] { background: transparent!important; color: var(--muted)!important; border-color: transparent!important; box-shadow: none!important; }
body.hippo-workspace .tabs button[id][aria-selected=true] {
  background: linear-gradient(135deg,#34393e,#2b2f34)!important; color: var(--accent)!important;
  border-color: #3b4542!important; box-shadow: 5px 7px 14px #14161955, -2px -2px 8px #484b4f18!important;
}
body.hippo-workspace .nav-brand { margin-bottom: 24px; }
body.hippo-workspace .nav-brand small, body.hippo-workspace .nav-footer { color: var(--muted); }
body.hippo-workspace .owner-nav { color: var(--accent); border-color: var(--line); }
body.hippo-workspace .account-bar { color: var(--muted); gap: 16px; }
body.hippo-workspace .section-nav {
  width: fit-content; max-width: 100%; padding: 6px; margin-bottom: 24px; gap: 6px;
  border: 0; border-radius: 12px; background: #202428; box-shadow: var(--ui-inset); overflow: visible;
}
body.hippo-workspace .section-nav button {
  background: transparent; color: var(--muted); border: 1px solid transparent; box-shadow: none;
  border-radius: 8px; padding: 9px 14px; font-size: 13px;
}
body.hippo-workspace .section-nav button:is(.active,[aria-pressed=true]) {
  background: linear-gradient(135deg,#3a4045,#2e3439); color: var(--ink); border-color: #46504e;
  box-shadow: 2px 3px 7px #0003;
}
/* One raised surface per logical group; nested settings remain flat. */
body.hippo-workspace :is(.surface,.obs-card,.ai-panel,.donation-connection,.ds-rule,.scene-sidebar,.studio-sidebar,.rule-card),
body.hippo-workspace :is(#panel-gacha,#panel-channel,#panel-tarot,#panel-evaluation)>section,
body.hippo-workspace #ai-api-settings, body.queue-window .surface, body .account-surface {
  background: linear-gradient(135deg,#2d3136,#282c30); border: 1px solid #373c42;
  border-radius: var(--ui-radius); padding: 24px; box-shadow: var(--ui-raised);
}
body.hippo-workspace :is(#panel-gacha,#panel-channel,#panel-tarot,#panel-evaluation)>section { margin-bottom: 24px; }
body.hippo-workspace .section-heading { margin-bottom: 20px; gap: 16px; }
body.hippo-workspace .surface .surface, body.hippo-workspace .surface .gc-box-section,
body.hippo-workspace .voice-layout>.calm-card {
  background: transparent; border-radius: 0; box-shadow: none;
}
body.hippo-workspace :is(.queue-hero), body.queue-window .queue-hero {
  background: radial-gradient(ellipse at 100% 80%,#20cf9216,transparent 70%),linear-gradient(135deg,#2e3338,#282c31);
  border: 1px solid #39433f; padding: 24px; border-radius: var(--ui-radius); box-shadow: var(--ui-raised);
}
body :is(.queue-count strong,.collection-stats strong) { color: var(--accent); }
body .queue-count { border-color: #46574e; }
body .queue-hero + .surface { margin-top: 24px; }
body.hippo-workspace [data-donation-panel=queue]>.two-columns { margin-top: 24px; }
body.hippo-workspace main[role=tabpanel]>h2 { font-size: 30px; font-weight: 600; letter-spacing: -.8px; }
body.hippo-workspace #gacha-builder .gc-rarity-card { background: #252a2f; }
body.hippo-workspace :is(.badge,.pill), body.queue-window .badge, body .pill {
  background: #263b32; color: #b0ebcd; border: 1px solid #466454; border-radius: 7px; padding: 4px 9px;
}
body.hippo-workspace .callout { background: #25352f; color: #c4ded0; border-color: #4c8367; border-radius: 8px; }
body.hippo-workspace :is(.help-details summary,.dashboard-reference summary) { color: var(--accent); }
body.hippo-workspace :is(.ai-job,.ai-memory-card) { background: #252a2f; border-color: var(--line); border-radius: 12px; }
body.hippo-workspace .ds-job, body.queue-window .ds-job { padding: 24px 0; gap: 24px; border-color: var(--line); }
body.hippo-workspace .ds-job p, body.queue-window .ds-job p { font-size: 16px; line-height: 1.65; }
/* Save rows contain explanatory/status text; only the actual action gets color. */
body.hippo-workspace div.ai-save { background: transparent; box-shadow: none; }
body.hippo-workspace div.stream-save { background: var(--surface); color: var(--ink); box-shadow: none; }
body.hippo-workspace :is(.ai-save,.stream-save) :is(p,span,small) { color: #c4cdd8; }
/* Populated statistics need stronger hierarchy than the empty-state preview. */
body.hippo-workspace #donation-statistics .stats-cards { gap: 16px; margin: 24px 0 32px; }
body.hippo-workspace #donation-statistics .stats-card {
  background: #20272c; border: 1px solid #53616b; border-radius: 12px; padding: 20px; gap: 10px;
}
body.hippo-workspace #donation-statistics .stats-card>span { color: #e6edf3; font-size: 15px; font-weight: 600; }
body.hippo-workspace #donation-statistics .stats-card>strong { color: #a4f1c7; font-size: 30px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.3; }
body.hippo-workspace #donation-statistics :is(small,.note,[data-status],[data-notice]) { color: #c6d0da; font-size: 14px!important; line-height: 1.65; }
body.hippo-workspace #donation-statistics .stats-columns { gap: 24px; }
body.hippo-workspace #donation-statistics h3 { color: #f4f7fa; font-size: 20px; margin: 0 0 16px; }
body.hippo-workspace #donation-statistics h3 small { display: block; font-weight: 400; margin-top: 4px; }
body.hippo-workspace #donation-statistics section { border: 0; padding: 0; margin: 0; }
body.hippo-workspace #donation-statistics>.stats-columns+section { margin-top: 32px; }
body.hippo-workspace #donation-statistics .stats-table-wrap { border: 1px solid #52606a; border-radius: 10px; background: #22292f; }
body.hippo-workspace #donation-statistics .stats-table :is(th,td) { font-size: 16px; line-height: 1.6; padding: 14px 16px; border-bottom: 1px solid #46535e; color: #edf2f7; }
body.hippo-workspace #donation-statistics .stats-table th { background: #384650; color: #f4f7fa; font-weight: 600; z-index: 1; }
body.hippo-workspace #donation-statistics .stats-table tbody tr:nth-child(even) { background: #2b343c; }
body.hippo-workspace #donation-statistics .stats-table tbody tr:hover { background: #36473f; }
body.hippo-workspace #donation-statistics .stats-table td:last-child { color: #b1f3d0; font-weight: 600; font-variant-numeric: tabular-nums; }
body.hippo-workspace #donation-statistics .stats-table tbody tr:last-child td { border-bottom: 0; }
body.hippo-workspace #donation-statistics .stats-paging { margin: 20px 0 24px; }
body.hippo-workspace #donation-statistics .stats-empty { color: #c6d0da; padding: 24px; margin: 0; }
@media(max-width:640px) {
  body.hippo-workspace #donation-statistics .stats-card>strong { font-size: 26px; }
  body.hippo-workspace #donation-statistics .stats-table :is(th,td) { padding: 12px 8px; font-size: 14px; }
}
body.hippo-workspace th { background: #252a2f; color: #d3dbe3; }
body.hippo-workspace :is(th,td), body .access-users article { border-color: var(--line); }
body.hippo-workspace tr[data-user]:hover { background: #303b35; }
/* Dialog shells only: preview layers and authored typography keep their colors. */
body :is(dialog.modal,dialog.font-picker,dialog.da-import,.studio-modal,#collection-detail,#gc-edit,#gc-upload) {
  background: #292d32; color: var(--ink); border: 1px solid #4b535c; border-radius: 18px;
  box-shadow: 0 20px 70px #0007;
}
body dialog::backdrop { background: #101316b8; }
body.hippo-workspace :is(.editor-heading,.editor-footer,.inspector) { background: #292d32; border-color: var(--line); }
body.hippo-workspace .canvas-column { background: #202428; border-color: var(--line); }
body.hippo-workspace .editor-tabs button { background: transparent; box-shadow: none; border-color: transparent; }
body.hippo-workspace .editor-tabs button.active { background: #35483e; color: var(--accent); }
body.hippo-workspace .upload-zone { background: #25382f; color: #bcebd2; border-color: #608e74; }
body.hippo-workspace .empty { background: #252b2e; border-color: #4c6055; border-radius: var(--ui-radius); }
body.hippo-workspace .empty-symbol { color: var(--accent); }
body.hippo-workspace .scene-list button { background: #292f34; border-color: var(--line); color: var(--ink); }
body.hippo-workspace .scene-list button.active { background: #33473d; border-color: #5a806b; color: var(--accent); }
body.hippo-workspace .text-style-group { border-color: var(--line); border-radius: 10px; }
body.hippo-workspace .text-style-group :is(legend,summary) { color: #d4ded8; }
body.hippo-workspace .fp-heading { background: #292d32; }
body.hippo-workspace .fp-tabs button.active { background: #35483e; border-color: #557d67; color: var(--accent); }
body.hippo-workspace .fp-selection { background: #2b3831; border-color: #557d67; }
body.hippo-workspace input[type=file]::file-selector-button { background: #343a40; border-color: #505b63; border-radius: 7px; }
body.hippo-workspace :is(input,select,textarea):focus { border-color: #70b591; outline-color: var(--accent); }
body.hippo-workspace :is(.ai-avatar-card,.ai-avatar-preview-card) { background: #252a2f; border-color: var(--line); }
/* Catalog rarity is semantic, not a brand accent. */
body .hippo-card { background: #292e33; border-color: #414851; border-radius: 16px; }
body .hippo-card:hover { border-color: var(--rarity); background: #30363c; }
body #gc-items .gc-item { border-color: color-mix(in srgb,var(--rarity) 55%,#373c42); background: color-mix(in srgb,var(--rarity) 9%,#252a2f); box-shadow: none; }
body .card-art { background-color: #202428; }
body .collection-empty { background: #292e33; border-color: #4c5a52; border-radius: 18px; }
body .collection-stats { border-color: var(--line); }
body .public-header { border-color: var(--line); }
body.public-login .public-header { max-width: 1200px; padding: 28px 32px; }
body.public-login .signin-layout { max-width: 1120px; gap: 48px; margin: 72px auto; }
body.public-login .signin-card {
  background: linear-gradient(135deg,#2d3136,#282c30); border: 1px solid #373c42; border-radius: 22px;
  padding: 32px; box-shadow: var(--ui-raised);
}
body.public-login .signin-info { padding: 24px 0 24px 32px!important; border-color: var(--line)!important; }
body.public-login .signin-card h1 { font-size: 32px; letter-spacing: -.8px; }
body.public-login .twitch-login { border-radius: 12px; padding: 14px 20px; }
body .cabinet { max-width: 1450px; }
body .account-brand { color: var(--ink); letter-spacing: 0; }
body #owner-status { color: var(--accent); }
@media(min-width:1600px) { body.hippo-workspace { padding-left: 280px; padding-right: 48px; } body.hippo-workspace .tabs { width: 240px; } }
@media(min-width:761px) and (max-width:1100px) {
  body.hippo-workspace { padding-left: 208px; padding-right: 24px; }
  body.hippo-workspace .tabs { width: 184px; padding: 28px 12px; }
  body.hippo-workspace .tabs button { font-size: 13px; padding: 10px; }
}
@media(max-width:760px) {
  body.hippo-workspace { padding: 0 16px 32px; }
  body.hippo-workspace .tabs { position: sticky; top: 0; width: auto; padding: 10px 12px; margin: 0 -16px 24px; background: #212427; border-bottom: 1px solid var(--line); gap: 8px; overflow-x: auto; }
  body.hippo-workspace .tabs button { flex: 0 0 auto; min-height: 44px; padding: 10px 12px; font-size: 13px; }
  body.hippo-workspace .app-header { padding: 20px 0; margin-bottom: 16px; }
  body.hippo-workspace .panel-intro h2 { font-size: 26px; }
  body.hippo-workspace .section-nav { width: 100%; gap: 4px; }
  body.hippo-workspace .section-nav button { flex: 1 1 auto; padding: 9px 10px; }
  body.hippo-workspace :is(.surface,.obs-card,.ai-panel,.donation-connection,.ds-rule,.scene-sidebar,.studio-sidebar,.rule-card),
  body.hippo-workspace :is(#panel-gacha,#panel-channel,#panel-tarot,#panel-evaluation)>section,
  body.hippo-workspace #ai-api-settings, body.queue-window .surface, body .account-surface { padding: 20px; border-radius: 16px; }
  body.hippo-workspace .queue-hero, body.queue-window .queue-hero { padding: 20px; }
  body.hippo-workspace .ds-job, body.queue-window .ds-job { gap: 16px; }
  body :is(input,select,textarea) { font-size: 16px; }
  body.public-login .signin-layout { margin: 40px auto; gap: 32px; padding: 0 20px; }
  body.public-login .signin-card { padding: 24px; }
  body.public-login .signin-info { padding: 24px 0 0!important; }
  body.public-login .signin-card h1 { font-size: 28px; }
}
@media(prefers-reduced-motion:reduce) { body :is(button,a.button,.hippo-card) { transition: none; } }

/* Link actions use the same controls as form buttons, including integrations. */
body.hippo-workspace a.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 10px 16px; font-size: 14px; line-height: 1.4; border-radius: 10px;
  background: linear-gradient(110deg,var(--emerald-start),var(--emerald-end)); color: #102a20;
  border: 1px solid transparent; box-shadow: 0 6px 20px #20cf921c; text-decoration: none;
}
body.hippo-workspace a.button:is(.quiet,.ghost) { background: #2b2f34; color: #d8dee5; border-color: var(--line); box-shadow: none; }
body.hippo-workspace #panel-channel .donation-connection>.toolbar.spread { align-items: flex-start; flex-direction: column; gap: 16px; }
body.hippo-workspace #panel-channel .donation-connection h3 { margin: 0 0 8px; }
body.hippo-workspace #panel-channel .donation-connection .status-line { margin: 0; }
body.hippo-workspace #chat-bot-owner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
body.hippo-workspace #chat-bot-owner>p { flex-basis: 100%; margin: 8px 0; }

/* Connections are a compact disclosure; failures stay visible in its summary. */
body.hippo-workspace #panel-alerts .subscription-info { padding: 0; border: 1px solid var(--line); background: #272c30; border-radius: 12px; margin: 0 0 24px; }
body.hippo-workspace #panel-alerts .subscription-info>summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px; color: #e2e9f0; list-style: none; }
body.hippo-workspace #panel-alerts .subscription-info>summary::before { content: '›'; font-size: 20px; line-height: 1; }
body.hippo-workspace #panel-alerts .subscription-info[open]>summary::before { transform: rotate(90deg); }
body.hippo-workspace #panel-alerts .subscription-info>summary>span { display: inline; margin: 0; }
body.hippo-workspace #alert-twitch-status { display: inline; margin-left: 16px; font-size: 13px; color: #c4d6cc; }
body.hippo-workspace .subscription-body { padding: 0 18px 18px; }
body.hippo-workspace #alert-subscription-errors { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
body.hippo-workspace #alert-subscription-errors:empty { display: none; }
body.hippo-workspace #alert-subscription-errors .subscription-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: #20362c; border: 1px solid #446352; }
body.hippo-workspace #alert-subscription-errors .subscription-chip span { display: inline; margin: 0; font-size: 13px; }
body.hippo-workspace .subscription-name { color: #e1eee7; }
body.hippo-workspace .subscription-state { color: #9ce3b9; }
body.hippo-workspace #alert-subscription-errors .subscription-warning { color: #ffdbaf; background: #43352a; border-color: #856348; }
body.hippo-workspace .subscription-warning .subscription-state { color: #ffdbaf; }
body.hippo-workspace #alert-subscription-errors .subscription-notice { flex-basis: 100%; padding: 10px 12px; border-radius: 8px; color: #d7e1ea; }
body.hippo-workspace #alert-subscription-errors .subscription-receipt { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; display: grid; gap: 6px; }
body.hippo-workspace .subscription-receipt strong { color: var(--ink); font-size: 14px; }
body.hippo-workspace .subscription-receipt span { color: #c6d0da; font-size: 13px; }

/* Scene list → events and controls → independent preview/OBS setup. */
body.hippo-workspace #panel-alerts .alert-workspace { grid-template-columns: 180px minmax(0,1fr); gap: 24px; align-items: start; }
body.hippo-workspace #panel-alerts .scene-sidebar { padding: 20px 16px; }
body.hippo-workspace #panel-alerts #scene-editor { display: grid; grid-template-columns: minmax(300px,1fr) minmax(300px,1fr); gap: 24px; align-items: start; }
body.hippo-workspace .scene-manage, body.hippo-workspace .scene-monitor { min-width: 0; }
body.hippo-workspace .scene-top { display: grid; gap: 16px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
body.hippo-workspace .scene-top .eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
body.hippo-workspace #scene-name-title { font-size: 26px; margin: 0 0 8px; }
body.hippo-workspace .scene-top>.toolbar { gap: 10px; }
body.hippo-workspace #panel-alerts .rules-header { margin: 24px 0 16px; align-items: flex-start; }
body.hippo-workspace #panel-alerts .rules-header h3 { margin: 0; }
body.hippo-workspace #panel-alerts .rules-header p { margin: 6px 0 0; }
body.hippo-workspace #panel-alerts .rule-card { display: grid; padding: 20px; gap: 16px; }
body.hippo-workspace #panel-alerts .rule-card .toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.hippo-workspace #panel-alerts .rule-card h3 { margin: 8px 0; }
body.hippo-workspace #panel-alerts .rule-card.preview-selected { border-color: #83cda5; box-shadow: inset 3px 0 #83cda5; }
body.hippo-workspace .scene-monitor { display: grid; gap: 24px; position: sticky; top: 24px; }
body.hippo-workspace :is(.scene-preview-panel,.scene-obs-panel) { background: #292e33; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--ui-raised); }
body.hippo-workspace .scene-preview-panel .section-heading { margin: 0 0 16px; align-items: flex-start; }
body.hippo-workspace #preview-rule-name { margin: 6px 0 0; overflow-wrap: anywhere; }
body.hippo-workspace .scene-preview-panel .preview-box { width: 100%; max-width: none; aspect-ratio: 16/9; margin: 0; border: 1px solid #454d57; border-radius: 10px; }
body.hippo-workspace .scene-preview-panel .preview-box { background: repeating-conic-gradient(#292e33 0 25%,#22272c 0 50%) 0/24px 24px; }
body.hippo-workspace :is(#new-scene,#create-first-scene,#new-alert) { background: linear-gradient(110deg,var(--emerald-start),var(--emerald-end)); color: #102a20; border-color: transparent; }
body.hippo-workspace .scene-preview-panel #preview-status { margin: 12px 0; color: #d6e5dd; }
body.hippo-workspace .scene-preview-panel>.note { border-top: 1px solid var(--line); padding-top: 12px; margin: 0; }
body.hippo-workspace .scene-obs-panel h3 { margin: 0 0 10px; }
body.hippo-workspace .scene-obs-panel .scene-link { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
body.hippo-workspace .scene-obs-panel .scene-link input { grid-column: 1/-1; width: 100%; }
body.hippo-workspace .scene-obs-panel .scene-link button { white-space: normal; }
body.hippo-workspace .scene-obs-panel details { border-top: 1px solid var(--line); padding-top: 12px; }
body.hippo-workspace .scene-obs-panel summary { color: var(--accent); font-size: 14px; }
body.hippo-workspace .scene-obs-panel ol { padding-left: 20px; color: #c6d0da; font-size: 13px; }
body.hippo-workspace .scene-obs-panel li+li { margin-top: 8px; }
body.hippo-workspace .scene-maintenance { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
body.hippo-workspace .scene-maintenance summary { font-size: 13px; color: var(--muted); }
@media(max-width:1350px) {
  body.hippo-workspace #panel-alerts .alert-workspace { grid-template-columns: minmax(0,1fr); }
  body.hippo-workspace #panel-alerts .scene-sidebar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
  body.hippo-workspace #panel-alerts .scene-sidebar>.note { flex-basis: 100%; margin: 0; }
  body.hippo-workspace #panel-alerts .scene-list { display: flex; flex-wrap: wrap; flex: 1; gap: 10px; margin: 0; }
  body.hippo-workspace #panel-alerts .scene-list button { min-width: 120px; flex: 1; }
}
@media(max-width:1000px) {
  body.hippo-workspace #panel-alerts #scene-editor { grid-template-columns: minmax(0,1fr); }
  body.hippo-workspace .scene-monitor { position: static; }
}
@media(max-width:760px) {
  body.hippo-workspace #alert-twitch-status { display: block; margin: 6px 0 0; }
  body.hippo-workspace #panel-alerts .scene-list { overflow: visible; }
  body.hippo-workspace :is(.scene-preview-panel,.scene-obs-panel) { padding: 16px; }
}

/* Luduo wordmark: preserve the supplied wide logo without icon cropping. */
body.hippo-workspace .nav-brand.nav-brand-wordmark{flex-direction:column;align-items:flex-start;gap:8px}
body.hippo-workspace .nav-brand .luduo-wordmark{display:block;width:170px;max-width:100%;height:auto;object-fit:contain;border-radius:0;box-shadow:none}
body .account-brand .luduo-wordmark{display:block;width:180px;max-width:100%;height:auto;object-fit:contain;border-radius:0;box-shadow:none}
body .account-brand-wordmark{flex-direction:column;align-items:flex-start;gap:7px}
@media(max-width:520px){body .account-brand .luduo-wordmark{width:140px}}

/* Keep the account controls, page heading and panels on one content grid. */
body.hippo-workspace :is(#account-bar,.app-header){max-width:1400px;margin-left:auto;margin-right:auto;width:100%;box-sizing:border-box}
body.hippo-workspace #account-bar{padding:20px 0 12px;gap:12px 16px;min-height:72px}
body.hippo-workspace .account-who{min-width:0;overflow-wrap:anywhere}
body.hippo-workspace #account-bar label{gap:8px}
body.hippo-workspace #account-bar select{max-width:240px}
body.hippo-workspace .app-header{padding:16px 0 20px;min-height:0;gap:24px;align-items:flex-start}
body.hippo-workspace .app-header .eyebrow{margin:0 0 6px}
body.hippo-workspace .privacy-controls{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
body.hippo-workspace .privacy-controls #privacy-status{margin:0;max-width:280px;line-height:1.5}
body.hippo-workspace .panel-intro h2{margin:0}
body.hippo-workspace .panel-intro p{margin-bottom:0}
body.hippo-workspace .section-nav{display:flex;flex-wrap:wrap;align-items:center}
body.hippo-workspace .tabs{overflow-y:auto;overscroll-behavior:contain}
@media(max-width:760px){
 body.hippo-workspace #account-bar{padding:16px 0;gap:12px}
 body.hippo-workspace #account-bar .account-who{flex-basis:100%}
 body.hippo-workspace .app-header{gap:16px}
 body.hippo-workspace .privacy-controls #privacy-status{max-width:190px}
 body.hippo-workspace .tabs{overflow-y:hidden}
 body.hippo-workspace .section-nav{width:100%;box-sizing:border-box}
}
