:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-synthesis:none;color:#f4f5fa;background:#0b0e15;--bg:#0b0e15;--panel:#121721;--panel2:#181e2a;--line:#262d3b;--text:#f4f5fa;--muted:#909aad;--accent:#ff803b;--green:#67d8aa;--red:#ff8393;--radius:17px}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button,input,select,textarea{color:inherit}button{border:0}input,select,textarea{width:100%;border:1px solid #303849;border-radius:9px;background:#0d121b;padding:11px 12px;outline:none;font-size:13px;min-width:0}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #ff803b14}textarea{resize:vertical}input[readonly]{color:#9ba6ba}input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent);flex-shrink:0}label{display:grid;gap:8px;font-size:12px;font-weight:550;color:#c8cfdd}label small{color:var(--muted);font-size:11px;line-height:1.7;font-weight:400}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.035em}h2{font-size:17px;margin-bottom:11px}h3{font-size:15px}p{line-height:1.75}.muted{color:var(--muted);font-size:12px;line-height:1.8}.eyebrow{display:block;color:var(--accent);font-size:9px;letter-spacing:.17em;font-weight:750;margin:0 0 11px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid transparent;border-radius:9px;padding:11px 16px;font-size:12px;font-weight:700;line-height:1.5;white-space:nowrap;transition:background .15s,transform .15s}.button:hover{filter:brightness(1.08)}.button.primary{background:linear-gradient(125deg,#ff913d,#f3722c);border-color:#ff9c62;color:#fff;box-shadow:0 5px 19px #ff762016}.button.secondary{background:#1d2533;border-color:#323d50;color:#d6deed}.button.danger-outline{background:#ff617409;color:var(--red);border-color:#75404a}.text-button{font-size:11px;font-weight:650;color:var(--accent);background:none;padding:5px 0}.icon-button{font-size:24px;line-height:1;background:none;color:var(--muted);padding:6px}.button-row{display:flex;gap:10px;flex-wrap:wrap}.soft-label{display:inline-flex;align-items:center;background:#222a38;border:1px solid #303a4c;border-radius:5px;padding:5px 8px;color:#9ba8bd;font-size:8px;font-weight:650;letter-spacing:.06em;white-space:nowrap}.small-dot{width:6px;height:6px;border-radius:50%;background:var(--green);display:inline-block}.skip-link{position:fixed;z-index:100;top:-60px;left:15px;background:var(--accent);color:white;padding:12px;border-radius:8px}.skip-link:focus{top:12px}.brand{display:flex;align-items:center;gap:8px;font-size:25px;font-weight:850;letter-spacing:-.065em}.brand>span>span{color:var(--accent)}.brand img{object-fit:contain}.brand small{font-size:8px;letter-spacing:.13em;color:#7f8da5;font-weight:600;padding-left:15px;margin-left:10px;border-left:1px solid var(--line)}.welcome-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px 20px;background:radial-gradient(ellipse at 65% 20%,#ff782b10,transparent 50%),radial-gradient(ellipse at 0 100%,#4a71d80c,transparent 50%),var(--bg)}.welcome-brand{margin-bottom:60px}.welcome-card{text-align:center;max-width:670px}.welcome-card h1{font-size:clamp(36px,5.5vw,61px);letter-spacing:-.065em;line-height:1.13;margin-bottom:24px}.welcome-card h1 em{color:var(--accent);font-style:normal}.welcome-card>p{max-width:470px;margin:0 auto 24px;color:#9ba6b8;font-size:14px}.welcome-features{display:flex;justify-content:center;gap:11px;flex-wrap:wrap;margin:26px 0 32px}.welcome-features span{border:1px solid #303746;border-radius:30px;padding:8px 12px;color:#bdc5d5;font-size:10px;background:#161c28}.welcome-card .primary{font-size:14px;padding:14px 24px}.welcome-card .primary span{font-size:20px;margin-left:13px}.welcome-card .welcome-note{font-size:10px;margin-top:23px;color:#727f96}.welcome-note a{color:#c7d0df;text-decoration:underline;text-underline-offset:3px}.welcome-version{font-size:8px;color:#525e74;letter-spacing:.2em;margin-top:70px}.studio-shell{display:flex;min-height:100vh}.sidebar{width:225px;flex-shrink:0;border-right:1px solid var(--line);background:#0e121a;position:fixed;inset:0 auto 0 0;padding:27px 18px 17px;display:flex;flex-direction:column;z-index:10}.sidebar>.brand{padding-left:8px;font-size:26px}.workspace-label{display:flex;gap:10px;align-items:center;margin:35px 3px 27px;padding-bottom:25px;border-bottom:1px solid #202735}.workspace-avatar{display:grid;place-items:center;width:35px;height:35px;border:1px solid #765136;border-radius:10px;color:#ffc08b;background:#3a231c;font-size:13px;font-weight:750}.workspace-label strong{display:block;font-size:11px;max-width:125px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-label small{display:flex;align-items:center;gap:7px;font-size:6px;letter-spacing:.1em;color:#6a7890;margin-top:7px}.pro-pill{color:#ffc27f;font-size:6px;background:#77501c45;border:1px solid #9a642d75;padding:2px 5px;border-radius:3px;font-weight:750}.studio-nav{display:grid;gap:7px}.nav-item{display:flex;align-items:center;gap:11px;width:100%;border:1px solid transparent;background:none;color:#8794aa;border-radius:9px;padding:11px 10px;text-align:left;font-size:11px;font-weight:550}.nav-item:hover{color:#d4dceb;background:#19202c}.nav-item.active{color:#ffac70;background:linear-gradient(100deg,#d7651b25,#d7651b09);border-color:#b56b3640}.nav-icon{width:21px;text-align:center;font-size:19px;font-weight:400}.nav-count{margin-left:auto;color:#d49d72;background:#5c392948;border-radius:4px;font-size:8px;padding:3px 5px}.sidebar-bottom{margin-top:auto;padding-top:35px}.browser-note{border:1px solid #263144;border-radius:10px;padding:13px 11px;color:#aab7cd;font-size:9px}.browser-note .small-dot{margin-right:6px;width:5px;height:5px}.browser-note p{font-size:8px;color:#68788f;margin:8px 0 0}.desktop-link{display:flex;justify-content:space-between;margin:18px 5px;font-size:8px;color:#a0aabd}.desktop-link:hover{color:var(--accent)}.sidebar-version{color:#505e74;letter-spacing:.06em;font-size:7px;margin:0 5px}.workspace{margin-left:225px;width:calc(100% - 225px);min-width:0}.topbar{height:74px;border-bottom:1px solid var(--line);padding:0 35px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#0d1119}.breadcrumb{font-size:10px;color:#8c98ad}.breadcrumb span{padding:0 11px;color:#45516a}.topbar-right{display:flex;gap:20px;align-items:center}.stream-health{font-size:8px;color:#77859b}.stream-health.disconnected{color:#ecba76}.owner-badge{display:flex;align-items:center;gap:8px;font-size:9px;color:#ccd5e4}.owner-badge>span{display:grid;place-items:center;background:#32231c;border:1px solid #6c4830;border-radius:50%;width:27px;height:27px;color:#ffb27b;font-size:9px;font-weight:750}.workspace main{padding:33px 35px 45px;max-width:1530px;margin:auto;outline:none}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.page-heading h1{font-size:31px;margin:0 0 8px;letter-spacing:-.05em}.page-heading p:last-child{font-size:11px;color:#8592a8;margin:0}.live-status{padding:8px 11px;display:flex;align-items:center;gap:7px;border-radius:6px;border:1px solid #333b4c;background:#181e2a;color:#a0acc0;font-size:9px;white-space:nowrap}.live-status>span{width:5px;height:5px;border-radius:50%;background:currentColor}.live-status.connected{color:#77dfb0;background:#1d382b75;border-color:#315941}.live-status.connecting{color:#ffb976;border-color:#75502f}.live-status.error{color:#ff8b9e;border-color:#724351}.form-message{padding:12px 15px;color:#a5e9c8;font-size:11px;border:1px solid #315b49;border-radius:9px;background:#15291e;overflow-wrap:anywhere}.form-message.error{color:#ffb1be;border-color:#76404f;background:#2b1a24}.connection-card{padding:23px;background:linear-gradient(115deg,#251a15,#141a23 60%);border:1px solid #62402c;border-radius:var(--radius);display:flex;align-items:center;gap:17px;flex-wrap:wrap;margin-bottom:24px}.connection-icon{display:grid;place-items:center;border-radius:12px;border:1px solid #9a5e3a;background:#a64d1820;color:#ffa469;font-size:26px;width:48px;height:48px;flex-shrink:0}.connection-copy h2{font-size:16px;margin:0 0 7px}.connection-copy p{font-size:9px;color:#a69388;margin:0}.connect-form{display:flex;gap:9px;align-items:center;margin-left:auto}.username-field{display:flex;align-items:center;width:190px;gap:5px;background:#0f131d;border:1px solid #473a36;padding-left:11px;border-radius:9px;color:#987b69}.username-field input{border:0;background:transparent;padding-left:3px;box-shadow:none;font-size:11px}.connection-detail{font-size:9px;color:#a18f83;margin:0;padding-left:65px;width:100%}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:23px}.stat-card{position:relative;padding:20px 19px;border-radius:14px;background:linear-gradient(125deg,#171d28,#111720);border:1px solid var(--line);overflow:hidden;display:flex;flex-direction:column}.stat-card>span:not(.stat-icon){color:#9ca7bb;font-size:10px;margin-bottom:12px}.stat-card strong{font-size:29px;font-weight:750;letter-spacing:-.06em;line-height:1.1;font-variant-numeric:tabular-nums}.stat-card small{font-size:8px;color:#60708a;margin-top:12px}.stat-icon{position:absolute;right:15px;top:17px;width:28px;height:28px;display:grid;place-items:center;font-size:18px;border-radius:8px}.orange{color:#ff995f;background:#ec73201b}.amber{color:#eec568;background:#d6a53614}.pink{color:#e795b7;background:#d66aa51a}.blue{color:#81b8ed;background:#5d9bda1a}.dashboard-grid{display:grid;grid-template-columns:1.18fr 1fr;gap:20px;margin-bottom:23px}.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);padding:23px;min-width:0}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:21px}.panel-heading h2{margin:0}.panel-heading p{margin:8px 0 0;font-size:9px}.goal-panel{background:radial-gradient(ellipse at 0 100%,#b04b1210,transparent 65%),var(--panel)}.goal-panel .eyebrow{font-size:7px;margin-bottom:10px}.goal-value{display:flex;align-items:baseline;gap:8px;margin:32px 0 16px}.goal-value>strong{font-size:33px;letter-spacing:-.05em;font-variant-numeric:tabular-nums}.goal-value>span{font-size:12px;color:#718098}.goal-value .goal-percent{margin-left:auto;color:#ffad73;background:#eb711d14;padding:5px 8px;border-radius:5px;font-size:10px}progress{display:block;appearance:none;border:0;border-radius:20px;width:100%;height:7px;overflow:hidden;background:#252d3c}progress::-webkit-progress-bar{background:#252d3c;border-radius:20px}progress::-webkit-progress-value{background:linear-gradient(90deg,#e76c2d,#ffb56d);border-radius:20px}progress::-moz-progress-bar{background:linear-gradient(90deg,#e76c2d,#ffb56d);border-radius:20px}.goal-panel>p{font-size:9px;margin:13px 0 0}.leaderboard{margin:0;padding:0;list-style:none;display:grid;gap:8px}.leaderboard>li:not(.empty-state){display:flex;align-items:center;gap:10px;padding:7px 0}.leaderboard .rank{display:grid;place-items:center;flex-shrink:0;font-size:9px;color:#6c7d95;width:16px}.leaderboard>li:first-child .rank{color:#f3bb66}.viewer-avatar{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#263246;color:#b9c9e0;font-size:10px;flex-shrink:0}.leaderboard .viewer-name{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.leaderboard .viewer-value{margin-left:auto;white-space:nowrap;font-size:10px;color:#e7aa70}.empty-state{text-align:center;color:#63748f;font-size:11px;line-height:1.8;padding:28px 15px;display:flex;flex-direction:column;align-items:center;gap:9px}.empty-state strong{color:#a2afc4;font-size:12px;font-weight:550}.empty-state p{font-size:10px;margin:0;color:#65748e}.empty-icon{font-size:30px;color:#a56b43;line-height:1.3}.leaderboard>.empty-state{padding:35px 10px}.activity-panel{padding-bottom:15px}.activity-feed{max-height:380px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#344157 transparent}.activity-row{display:flex;align-items:flex-start;gap:11px;padding:13px 0;border-bottom:1px solid #222a38}.activity-row:last-child{border:0}.event-icon{width:31px;height:31px;display:grid;place-items:center;background:#d36c2520;border:1px solid #5a3a28;border-radius:9px;color:#efad7d;flex-shrink:0;font-size:14px}.activity-content{min-width:0;font-size:10px;line-height:1.7;color:#a5b1c5;overflow-wrap:anywhere}.activity-content strong{color:#dbe2ee;font-weight:650}.activity-content p{margin:2px 0 0;color:#70819b;font-size:9px}.activity-time{margin-left:auto;white-space:nowrap;color:#4e607b;font-size:8px;padding-top:4px}.simulation-panel{margin-top:20px;border:1px dashed #354158;background:#0f141e;border-radius:12px;padding:16px 18px}.simulation-panel summary{cursor:pointer;font-size:10px;color:#98a8c2;list-style:none;display:flex;align-items:center;gap:10px}.simulation-panel summary:before{content:"＋";color:#af814f}.simulation-panel[open] summary:before{content:"−"}.simulation-panel>p{font-size:9px;color:#6f809b;margin:14px 0}.simulation-form{display:grid;grid-template-columns:1fr 1.7fr .6fr auto;gap:12px;align-items:end}.simulation-form label{font-size:9px}.simulation-form input,.simulation-form select{font-size:10px;padding:10px}.section-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:7px 0 23px}.section-toolbar h2{font-size:19px;margin:0 0 8px}.section-toolbar p{font-size:11px;margin:0}.rules-list{display:grid;gap:12px}.rule-card{display:flex;gap:16px;align-items:center;border:1px solid var(--line);border-radius:13px;padding:18px;background:var(--panel)}.rule-card.is-disabled{opacity:.65}.rule-symbol{background:#ff782219;color:#ffb17a;border:1px solid #62442f;display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:12px;font-size:22px}.rule-copy{min-width:0;flex:1}.rule-copy h3{font-size:12px;margin:0 0 6px;overflow-wrap:anywhere}.rule-copy p{color:#7586a2;font-size:10px;margin:0;overflow-wrap:anywhere}.rule-copy small{display:block;color:#a9b5c9;font-size:10px;margin-top:7px;overflow-wrap:anywhere}.rule-actions{display:flex;align-items:center;gap:12px}.rule-toggle{font-size:9px;display:flex;align-items:center;gap:6px;color:#90a1ba}.rule-edit{font-size:10px;color:#e3a06e;background:none;padding:5px}.rule-delete{font-size:10px;color:#9b7783;background:none;padding:5px}.rule-editor{margin-top:23px}.rule-editor .panel-heading{align-items:center}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.full-field{margin:20px 0}.check-label{display:flex;align-items:center;gap:9px;font-size:11px;color:#9faec4}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.form-divider{height:1px;background:var(--line);margin:28px 0}.settings-panel{max-width:800px}.settings-panel>label{margin:24px 0}.settings-panel>h2{margin-bottom:25px}.settings-panel>h3{margin-bottom:20px}.reset-panel{display:flex;align-items:center;justify-content:space-between;gap:25px;max-width:800px;margin-top:20px;border-color:#4d3440}.reset-panel h3{font-size:13px;margin:0 0 9px}.reset-panel p{font-size:10px;margin:0}.obs-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:23px;align-items:start}.obs-layout .panel>h2{font-size:24px;margin-top:15px}.obs-layout .panel>.muted{font-size:11px;margin-bottom:24px}.overlay-url-label{font-size:10px;margin-bottom:15px}.overlay-url-label input{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;min-width:0}.privacy-note{font-size:9px;line-height:1.7;color:#8c7562;margin:14px 0 28px}.obs-steps{margin:0;padding:23px 0 0;list-style:none;display:grid;gap:20px;border-top:1px solid var(--line)}.obs-steps li{display:flex;gap:13px}.obs-steps li>span{display:grid;place-items:center;border:1px solid #3a465d;color:#b7c7df;border-radius:50%;width:24px;height:24px;flex-shrink:0;font-size:9px}.obs-steps strong{font-size:11px;color:#c9d4e6}.obs-steps p{font-size:9px;color:#7586a3;margin:6px 0 0}.overlay-preview-card{border-radius:18px;overflow:hidden;border:1px solid #634329;background:radial-gradient(ellipse at 0 0,#f2782420,transparent 80%),#111822;padding:25px;min-height:380px}.preview-top{font-size:7px;letter-spacing:.14em;color:#a2aabd;display:flex;align-items:center;gap:7px;margin-bottom:35px}.preview-top .small-dot{width:4px;height:4px}.preview-live{border:1px solid #54402e;border-radius:12px;padding:22px;background:#141a25}.preview-live>span{font-size:6px;color:#ff9e6a;letter-spacing:.15em;background:#c7552a20;border:1px solid #8b462d60;border-radius:4px;padding:3px 5px}.preview-live>strong{display:block;font-size:14px;margin:17px 0}.preview-live>div{display:flex;gap:7px;align-items:baseline;margin-bottom:12px}.preview-live b{font-size:30px;letter-spacing:-.04em}.preview-live>div>span{font-size:11px;color:#6c7e99}.preview-live progress{height:5px}.preview-message{display:flex;align-items:center;gap:12px;background:#161e2b;border:1px solid #344058;border-radius:10px;padding:15px;margin:17px 0}.preview-gift{display:grid;place-items:center;font-size:24px;color:#ffae79;width:37px;height:37px;background:#643f2530;border-radius:10px;flex-shrink:0}.preview-message strong{font-size:10px;color:#d3dbea}.preview-message p{font-size:8px;color:#7185a1;margin:5px 0 0}.preview-caption{font-size:8px;color:#5f718e;text-align:center;margin:28px 0 0}.audio-panel{max-width:930px}.audio-panel>h2{font-size:23px;margin:15px 0}.audio-panel>.muted{max-width:650px;font-size:11px}.audio-permission{display:flex;align-items:center;gap:16px;border:1px solid #4c3d2c;border-radius:12px;background:#9f551a0e;padding:20px;margin:25px 0}.audio-big-icon{font-size:32px;color:#f0a269}.audio-permission strong{font-size:12px}.audio-permission p{font-size:9px;color:#7e8ba3;margin:7px 0 0}.audio-permission .button{margin-left:auto}.sound-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.sound-grid article{border:1px solid #2c374b;background:#0e151f;border-radius:12px;padding:20px}.sound-grid article>span{font-size:26px;color:#b7926a}.sound-grid h3{font-size:13px;margin:17px 0 8px}.sound-grid p{font-size:9px;color:#6e819e;min-height:32px}.sound-grid .button{font-size:9px;padding:8px 11px}.tts-setting{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--line);margin-top:28px;padding-top:28px}.tts-setting h3{font-size:13px;margin-bottom:8px}.tts-setting p{font-size:10px;margin-bottom:20px}.audio-panel>label{max-width:450px;font-size:10px;margin-bottom:13px}.audio-panel>.text-button{font-size:10px}.studio-footer{display:flex;align-items:center;justify-content:space-between;padding:20px 35px;border-top:1px solid #202735;color:#465670;font-size:7px;letter-spacing:.05em}.studio-footer>span:last-child{font-size:6px;letter-spacing:.18em}.action-toast{position:fixed;z-index:50;bottom:25px;left:calc(50% + 110px);transform:translateX(-50%);max-width:min(560px,calc(100vw - 35px));padding:17px 24px;background:#202b3b;border:1px solid #95653e;box-shadow:0 15px 50px #0008;border-radius:12px;color:#f6e7d8;font-size:13px;text-align:center;overflow-wrap:anywhere}[hidden]{display:none!important}
/* The OBS view uses the same tokens but never inherits the application canvas. */
html.overlay-document,body.overlay-body{background:transparent!important}.overlay-body{margin:0;min-width:0;padding:24px;overflow:hidden}.obs-stage{display:grid;gap:14px;width:min(425px,100%)}.obs-brand{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:.12em;color:#fff;text-shadow:0 2px 8px #0008}.obs-brand img{height:30px;width:30px;object-fit:contain}.obs-brand span{border-left:1px solid #ffffff40;padding-left:10px}.obs-goal{border:1px solid #d38e4c80;border-radius:17px;padding:23px;background:linear-gradient(130deg,#1d202df5,#151c29ee);box-shadow:0 10px 35px #0004;color:#fff}.obs-goal-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}.obs-goal-top h1{font-size:17px;margin:0;overflow-wrap:anywhere}.obs-live-label{font-size:7px;letter-spacing:.13em;border:1px solid #d7814c55;background:#f4752c20;color:#ffba88;border-radius:4px;padding:4px 6px;white-space:nowrap}.obs-goal-value{font-size:13px;color:#8699b3;margin:0 0 16px}.obs-goal-value strong{font-size:34px;color:#fff;letter-spacing:-.06em;margin-right:6px}.obs-goal-value>span{margin-right:4px}.obs-leaders{list-style:none;margin:18px 0 0;padding:17px 0 0;border-top:1px solid #ffffff12;display:grid;gap:10px}.obs-leaders li{display:flex;gap:10px;align-items:center;font-size:10px;color:#c1d0e5;overflow:hidden}.obs-leaders li>span:first-child{color:#ddac74;font-size:8px;min-width:10px}.obs-leaders li>strong{margin-left:auto;color:#ffbf86;font-size:10px;font-weight:650;white-space:nowrap}.obs-leaders li>span:nth-child(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.obs-connection{font-size:7px;letter-spacing:.08em;color:#8fa2bc;margin:14px 0 0}.obs-action{display:flex;align-items:center;gap:15px;background:linear-gradient(110deg,#31221bf7,#171e2cf5);border:1px solid #db925f85;box-shadow:0 10px 35px #0004;border-radius:15px;padding:19px;color:#fff;animation:toast-in .3s ease-out}.obs-action-symbol{display:grid;place-items:center;color:#ffc18b;font-size:29px;height:45px;width:45px;flex-shrink:0;border:1px solid #ce854b60;border-radius:12px;background:#c4742530}.obs-action>div{min-width:0}.obs-action strong{font-size:13px;font-weight:650;overflow-wrap:anywhere;line-height:1.7}.obs-action p{font-size:8px;color:#b58e72;margin:7px 0 0}.overlay-audio-button{position:fixed;right:16px;bottom:16px;background:#152033ef;border:1px solid #7c593e;border-radius:8px;font-size:9px;color:#f5c39e;padding:9px 13px}.overlay-error{font-size:11px;line-height:1.8;color:#ffd2d9;background:#351e2bf5;border:1px solid #a05167;border-radius:12px;padding:16px;max-width:425px}.test-badge{color:#b7a9e8!important;font-size:7px;letter-spacing:.1em;padding-left:7px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes toast-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1550px){.workspace main{padding-top:40px}.stat-card{padding:25px}.stat-card strong{font-size:35px}.connection-copy p{font-size:11px}.connection-card{padding:26px}.username-field{width:220px}.connection-detail{font-size:10px}.nav-item{font-size:12px}.panel{padding:28px}}
@media(max-width:1180px){.sidebar{width:195px;padding-left:12px;padding-right:12px}.workspace{margin-left:195px;width:calc(100% - 195px)}.workspace main{padding:28px 25px 40px}.topbar{padding:0 25px}.nav-item{font-size:10px;gap:8px}.sidebar>.brand{font-size:24px}.connection-card{gap:13px}.connection-copy p{font-size:9px}.connect-form{margin-left:65px;margin-top:1px}.connection-detail{padding-left:65px}.connection-copy{flex:1}.stat-grid{gap:11px}.stat-card{padding:18px 15px}.stat-card strong{font-size:26px}.stat-icon{height:25px;width:25px;font-size:16px;right:12px;top:14px}.dashboard-grid{gap:15px}.panel{padding:20px}.panel-heading h2{font-size:15px}.obs-layout{grid-template-columns:1fr}.overlay-preview-card{max-width:550px}.simulation-form{grid-template-columns:1fr 1.5fr .6fr}.simulation-form>.button{grid-column:1/-1;justify-self:start}.action-toast{left:calc(50% + 97px)}.tts-setting{align-items:flex-start}.tts-setting .check-label{white-space:nowrap}}
@media(max-width:860px){.sidebar{width:73px;padding:22px 8px 15px}.sidebar>.brand{padding:0;justify-content:center}.sidebar>.brand img{width:36px;height:36px}.sidebar>.brand>span,.workspace-label,.nav-item>.nav-count,.sidebar-bottom{display:none}.studio-nav{margin-top:35px;gap:13px}.nav-item{height:46px;justify-content:center;font-size:0;padding:10px}.nav-icon{font-size:22px;width:auto}.workspace{margin-left:73px;width:calc(100% - 73px)}.workspace main{padding:25px 22px 35px}.topbar{height:65px;padding:0 22px}.page-heading h1{font-size:28px}.page-heading{margin-bottom:25px}.dashboard-grid{grid-template-columns:1fr}.goal-value{margin-top:22px}.leaderboard-panel .empty-state{padding:20px 10px}.stat-card strong{font-size:25px}.stat-card>span:not(.stat-icon){font-size:9px}.stat-card small{font-size:7px}.stat-icon{display:none}.rule-card{flex-wrap:wrap}.rule-actions{width:100%;padding-left:58px}.rule-toggle{margin-right:auto}.action-toast{left:calc(50% + 36px)}.connection-detail{padding-left:0}.connect-form{margin-left:0;width:100%}.username-field{flex:1;width:auto}.section-toolbar{align-items:flex-start}.section-toolbar h2{font-size:17px}.sound-grid{gap:10px}.sound-grid article{padding:16px}.sound-grid h3{font-size:12px}.studio-footer{padding:18px 22px}}
@media(max-width:560px){.sidebar{position:fixed;inset:auto 0 0;width:100%;height:67px;border:0;border-top:1px solid #343d50;background:#101620f5;backdrop-filter:blur(18px);padding:7px 10px 10px}.sidebar>.brand{display:none}.studio-nav{display:flex;justify-content:space-between;margin:0;gap:6px}.nav-item{width:20%;height:46px;border-radius:9px;flex-direction:column;gap:1px;font-size:7px;overflow:hidden;white-space:nowrap;padding:5px 0}.nav-item .nav-icon{font-size:18px;line-height:1.2}.workspace{margin:0;width:100%;padding-bottom:67px}.workspace main{padding:25px 16px 30px}.topbar{height:58px;padding:0 16px}.breadcrumb{font-size:9px}.breadcrumb span{padding:0 7px}.owner-badge{font-size:0}.owner-badge>span{font-size:9px}.topbar-right{gap:12px}.stream-health{font-size:7px}.page-heading{align-items:flex-start;gap:10px}.page-heading h1{font-size:26px}.page-heading .eyebrow{font-size:7px;margin-bottom:10px}.page-heading p:last-child{font-size:9px;max-width:220px}.live-status{font-size:7px;padding:7px 8px;margin-top:22px;gap:5px}.connection-card{padding:17px;border-radius:13px;gap:12px}.connection-icon{height:40px;width:40px;border-radius:10px;font-size:24px}.connection-copy h2{font-size:14px;margin-bottom:5px}.connection-copy p{font-size:8px;line-height:1.7;max-width:215px}.connect-form{margin-top:5px;gap:7px;flex-wrap:wrap}.username-field{min-width:150px}.connect-form .button{font-size:10px;padding:10px 12px}.connection-detail{font-size:8px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:17px}.stat-card{padding:17px 15px}.stat-card strong{font-size:29px}.stat-card small{font-size:8px}.stat-icon{display:grid}.stat-card>span:not(.stat-icon){font-size:9px;margin-bottom:10px}.panel{padding:19px;border-radius:13px}.panel-heading{margin-bottom:17px}.panel-heading h2{font-size:14px}.goal-value{margin-top:24px}.goal-value>strong{font-size:30px}.goal-value>span{font-size:10px}.dashboard-grid{gap:15px;margin-bottom:16px}.activity-row{gap:8px}.activity-time{font-size:7px}.activity-content{font-size:9px}.event-icon{width:28px;height:28px;font-size:13px}.activity-content p{font-size:8px}.simulation-panel{padding:15px}.simulation-panel summary{font-size:9px}.simulation-panel .soft-label{font-size:6px;padding:4px 5px}.simulation-form{grid-template-columns:1fr 1fr;gap:11px}.simulation-form label:nth-child(2){grid-column:1/-1;grid-row:2}.simulation-form>.button{font-size:10px}.section-toolbar{flex-wrap:wrap;gap:15px;margin-bottom:20px}.section-toolbar .button{font-size:11px;padding:10px 13px}.section-toolbar h2{font-size:16px}.section-toolbar p{font-size:10px}.rule-card{padding:16px;gap:11px}.rule-symbol{width:34px;height:34px;font-size:19px;border-radius:9px}.rule-copy h3{font-size:11px}.rule-copy p,.rule-copy small{font-size:9px}.rule-actions{padding-left:45px;gap:11px}.form-grid{grid-template-columns:1fr;gap:17px}.form-actions .button{font-size:11px}.rule-editor label{font-size:11px}.obs-layout{gap:17px}.obs-layout .panel>h2{font-size:22px}.obs-layout .button{font-size:10px;padding:10px 12px}.overlay-preview-card{padding:21px;min-height:340px}.audio-panel>h2{font-size:21px}.audio-permission{flex-wrap:wrap;padding:15px;gap:12px}.audio-permission .button{margin-left:0;width:100%;font-size:11px}.audio-permission strong{font-size:11px}.audio-permission p{font-size:8px}.sound-grid{grid-template-columns:1fr}.sound-grid article{display:grid;grid-template-columns:auto 1fr auto;column-gap:12px;align-items:center;padding:16px}.sound-grid article>span{grid-row:1/3;font-size:27px}.sound-grid h3{margin:0 0 5px;font-size:12px}.sound-grid p{grid-column:2;min-height:0;margin:0;font-size:8px}.sound-grid .button{grid-column:3;grid-row:1/3;align-self:center;font-size:8px;padding:7px 9px}.tts-setting{flex-direction:column;gap:0}.tts-setting .check-label{margin-bottom:23px}.settings-panel>h2{font-size:18px;line-height:1.4}.settings-panel label{font-size:11px}.reset-panel{flex-direction:column;align-items:flex-start;gap:17px}.reset-panel .button{font-size:10px}.studio-footer{font-size:6px;padding:17px 16px}.studio-footer>span:last-child{display:none}.action-toast{left:50%;bottom:83px;font-size:11px;max-width:calc(100vw - 30px);padding:14px 18px}.welcome-brand{margin-bottom:45px}.welcome-brand small{font-size:6px;margin-left:3px;padding-left:10px}.welcome-card h1{font-size:37px}.welcome-card>p{font-size:12px}.welcome-features{gap:7px}.welcome-features span{font-size:8px;padding:7px 10px}.welcome-card .welcome-note{font-size:9px;max-width:310px}.welcome-version{margin-top:48px}.overlay-body{padding:15px}.obs-goal{padding:20px}.obs-goal-top h1{font-size:15px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* The browser workspace follows the desktop shell tokens and dimensions.
   All controls below navigate to working browser panels or download the app. */
:root{--bg:#0b0e14;--panel:#161b22;--panel2:#1c2330;--line:#30363d;--text:#f5f7fa;--muted:#94a3b8;--accent:#e37a20;--green:#22c55e;--red:#ef4444;--radius:12px;--rail-width:72px;--subnav-width:220px;--header-height:58px;color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
@font-face{font-family:"Vini Studio Solid";font-style:normal;font-weight:900;font-display:block;src:url("/studio/fa-solid-900.woff2") format("woff2")}
.studio-fa{display:inline-block;font-family:"Vini Studio Solid";font-style:normal;font-weight:900;font-variant:normal;font-size:24px;line-height:1;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.studio-fa.fa-house:before{content:"\f015"}.studio-fa.fa-gamepad:before{content:"\f11b"}.studio-fa.fa-sliders:before{content:"\f1de"}.studio-fa.fa-bolt:before{content:"\f0e7"}.studio-fa.fa-volume-high:before{content:"\f028"}.studio-fa.fa-display:before{content:"\f390"}.studio-fa.fa-widgets:before{content:"\f009"}.studio-fa.fa-gift:before{content:"\f06b"}.studio-fa.fa-comments:before{content:"\f086"}
body{background:var(--bg)}
.studio-symbols{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.studio-shell{min-height:100vh;background:var(--bg)}
.studio-shell svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.studio-shell .button{border-radius:8px;font-size:12px;box-shadow:none;gap:7px}
.studio-shell .button.primary,.header-connect{background:linear-gradient(90deg,#e87820,#d45a0a 50%,#b84400);border:1px solid #e37a2066;box-shadow:none;color:#fff}
.studio-shell .button.secondary{background:#1c2330;border-color:var(--line)}
.studio-shell .button svg{width:14px;height:14px}
.studio-shell input,.studio-shell select,.studio-shell textarea{background:#0d1117;border-color:var(--line);border-radius:8px;font-size:13px;box-shadow:none}
.studio-shell .muted{font-size:12px;color:var(--muted)}
.studio-shell h1,.studio-shell h2,.studio-shell h3{letter-spacing:0}
.studio-shell .eyebrow{font-size:10px;letter-spacing:.08em}
.topbar{position:fixed;z-index:50;left:0;right:0;top:0;height:var(--header-height);min-height:var(--header-height);padding:8px 24px 8px 136px;border-bottom:1px solid #e37a2066;background:linear-gradient(90deg,#0d1117,#161b22);display:flex;align-items:center;gap:12px}
.desktop-brand{position:absolute;left:16px;top:8px;display:block;width:40px;height:40px}
.desktop-brand img{display:block;width:100%;height:100%;object-fit:contain}
.topbar .workspace-avatar{position:absolute;left:72px;top:8px;display:grid;place-items:center;width:42px;height:42px;min-width:42px;background:#292444;border:1px solid #70618b;border-radius:12px;color:#fff;padding:0;font-size:22px;font-weight:800;box-shadow:0 0 0 2px #22c55e30}
.workspace-avatar small{position:absolute;left:7px;top:-3px;padding:0 4px;border:1px solid #e37a20;border-radius:5px;background:#ffc678;color:#342414;font-size:8px;line-height:12px;font-weight:900}
.workspace-avatar i{position:absolute;right:-3px;bottom:-2px;width:9px;height:9px;border-radius:50%;background:#64748b;border:2px solid #0d1117}
.workspace-avatar i.connected{background:var(--green)}
.topbar-right{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.stream-health{font-size:10px;white-space:nowrap;color:var(--muted)}
.stream-health::before{width:5px;height:5px;background:var(--green)}
.header-connect,.header-download,.header-profile{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 14px;border-radius:12px;font-size:12px;font-weight:700;white-space:nowrap}
.header-connect:hover{filter:brightness(1.1)}
.header-connect.connected{background:linear-gradient(90deg,#15803d,#22c55e);border-color:#22c55e}
.header-download,.header-profile{border:1px solid var(--line);background:#0d1117;color:var(--text)}
.header-download{padding:0 10px}
.header-download>span{display:none}
.header-download:hover,.header-profile:hover,.owner-badge:hover{background:#1c2330;border-color:#e37a2070}
.header-profile svg{width:16px;height:16px;color:var(--accent)}
.owner-badge{display:flex;align-items:center;gap:9px;min-height:40px;max-width:190px;padding:4px 10px 4px 5px;border:1px solid var(--line);border-radius:12px;background:#0d1117;color:var(--text);font-size:11px;text-align:left;overflow:hidden}
.owner-badge .owner-avatar{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;border:1px solid #e37a2040;border-radius:50%;background:#e37a2014;color:var(--accent);font-size:12px}
.owner-avatar svg{width:17px;height:17px}
.owner-badge>span:nth-child(2){display:grid;place-items:normal;gap:1px;min-width:0;width:auto;height:auto;padding:0;border:0;border-radius:0;background:transparent;color:var(--text);line-height:1.3}
.owner-badge strong{max-width:120px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.owner-badge small{font-size:9px;line-height:1.3;color:var(--green)}
.owner-badge>span:last-child{display:block;margin-left:3px;width:auto;height:auto;padding:0;border:0;border-radius:0;background:transparent;font-size:11px;color:var(--muted)}
.icon-rail{position:fixed;z-index:40;left:0;top:var(--header-height);bottom:0;width:var(--rail-width);background:#0d1117;border-right:1px solid var(--line);display:flex;flex-direction:column}
.icon-rail .studio-nav{display:flex;flex-direction:column;gap:16px;padding:8px 11px;margin:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
.rail-button{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:48px;min-height:48px;padding:0;background:transparent;border:0;border-radius:12px;color:#94a3b8}
.rail-button svg{width:25px;height:25px;stroke-width:2}
.rail-button[data-view=overview]{color:#3b82f6}.rail-button[data-view=games]{color:#22c55e}.rail-button[data-view=settings]{color:#f59e0b}.rail-button[data-view=rules]{color:#8b5cf6}.rail-button[data-view=audio]{color:#ec4899}.rail-button[data-view=overlay]{color:#06b6d4}.rail-button[data-view=widgets]{color:#a855f7}
.rail-button[data-view=gifts]{color:#a855f7}.rail-button[data-view=livechat]{color:#14b8a6}
.rail-button:hover{background:#1c2330;color:#f5f7fa}
.rail-button.active{background:linear-gradient(90deg,#e87820,#d45a0a 50%,#b84400);color:#fff}
.rail-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.rail-footer{margin-top:auto;display:grid;justify-items:center;gap:15px;padding:16px 6px 10px;border-top:1px solid var(--line)}
.rail-footer>a{color:var(--muted);display:grid;place-items:center;width:40px;height:30px;border-radius:8px}
.rail-footer>a:hover{color:#fff;background:#1c2330}
.rail-footer svg{width:22px;height:22px}
.sidebar-version{font-size:10px;font-weight:700;color:var(--accent);letter-spacing:0}
.sidebar{position:fixed;z-index:30;top:var(--header-height);left:var(--rail-width);bottom:0;width:var(--subnav-width);height:auto;padding:20px 10px 12px;background:#0d1117;border-right:1px solid var(--line);display:flex;flex-direction:column;overflow-y:auto}
.sidebar-heading{display:flex;align-items:center;justify-content:space-between;min-height:38px;padding:8px 14px;color:var(--text);font-size:14px;font-weight:800;margin-bottom:12px}
.sidebar-heading>span{font-size:16px;color:var(--muted)}
.secondary-nav{display:flex;flex-direction:column;gap:6px}
.secondary-nav .nav-item{display:flex;align-items:center;gap:9px;min-height:44px;width:100%;padding:10px 11px;border:1px solid transparent;border-left:3px solid transparent;border-radius:10px;background:transparent;color:var(--muted);font-size:13px;font-weight:600;white-space:nowrap;text-align:left}
.secondary-nav .nav-item>.nav-icon{width:21px;height:21px;color:inherit}
.secondary-nav .nav-item>span:not(.nav-count):not(.pro-pill){min-width:0;overflow:hidden;text-overflow:ellipsis}
.secondary-nav .nav-item:hover{background:#1c2330;border-color:var(--line);color:var(--text)}
.secondary-nav .nav-item.active{background:#ff7a1a24;border-color:transparent;border-left-color:var(--accent);color:var(--text);font-weight:800}
.secondary-nav .nav-count{margin-left:auto;min-width:20px;font-size:10px;padding:2px 5px;background:#e37a2026;color:#e37a20;border-radius:7px;text-align:center}
.pro-pill{font-size:8px;padding:1px 4px;border:1px solid #e37a2066;border-radius:4px;color:#f08a35;background:#e37a201f;line-height:1.5;letter-spacing:0}
.secondary-nav .pro-pill{margin-left:auto}
.game-categories{display:grid;gap:4px;margin:-2px 0 8px 14px;padding-left:7px;border-left:1px solid var(--line)}
.game-categories button{min-height:36px;text-align:left;padding:8px 10px;border-radius:7px;font-size:11px;background:transparent;color:var(--muted)}
.game-categories button:hover,.game-categories button.active{background:#e37a2014;color:#f5f7fa}
body[data-view=games] .secondary-nav>.nav-item:not([data-view=games]){display:none}
.sidebar-bottom{display:grid;gap:8px;margin-top:auto;padding-top:28px}
.workspace-label{display:flex;align-items:center;gap:9px;padding:12px 4px;margin:0;border-top:1px solid var(--line);border-bottom:0}
.workspace-indicator{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;border:1px solid var(--line);border-radius:8px;background:#1c2330;color:#f08a35;font-size:13px;font-weight:800}
.workspace-label>div{min-width:0}
.workspace-label strong{display:block;font-size:11px;max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}
.workspace-label small{display:flex;align-items:center;gap:5px;margin-top:3px;font-size:8px;color:var(--muted);letter-spacing:.04em}
.workspace-label .small-dot{width:4px;height:4px}
.desktop-link{display:flex;align-items:center;gap:8px;padding:10px 11px;min-height:40px;background:linear-gradient(90deg,#e87820,#d45a0a 50%,#b84400);border:1px solid #e37a2066;border-radius:9px;font-size:12px;color:#fff;font-weight:700}
.desktop-link svg{width:17px;height:17px}
.desktop-link b{font-size:8px;letter-spacing:.03em;font-weight:600}
.desktop-link>span:last-child{margin-left:auto}
.browser-note{padding:11px 9px;margin:0;background:#161b22;border:1px solid var(--line);border-radius:10px;font-size:10px;color:#e2e8f0;line-height:1.7}
.browser-note>.small-dot{width:5px;height:5px;margin-right:5px}
.browser-note p{margin:3px 0 0;color:var(--muted);font-size:9px}
.workspace{margin-left:calc(var(--rail-width) + var(--subnav-width));width:calc(100% - var(--rail-width) - var(--subnav-width));min-height:100vh;padding-top:var(--header-height);padding-bottom:0;display:flex;flex-direction:column}
.workspace main{width:100%;max-width:none;margin:0;padding:24px;flex:1;min-width:0}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
body[data-view=games] .page-heading{display:none}
.page-heading .eyebrow{margin-bottom:8px}
.page-heading h1{font-size:25px;line-height:1.25;margin:0 0 8px;font-weight:800;letter-spacing:0}
.page-heading p:last-child{font-size:12px;line-height:1.7;margin:0;color:var(--muted)}
.live-status{font-size:10px;padding:8px 11px;margin:0;border-radius:8px;background:#161b22;border-color:var(--line)}
.live-status.connected{background:#22c55e16;border-color:#22c55e60;color:#86efac}
.studio-footer{padding:15px 24px;border-color:var(--line);font-size:9px;color:#64748b;letter-spacing:0}
.studio-footer>span:last-child{font-size:8px;letter-spacing:.04em}
.connection-card{background:#161b22;border-color:var(--line);border-radius:12px;padding:22px;gap:16px}
.connection-icon{width:44px;height:44px;border-radius:11px;color:#f08a35;background:#e37a2019;border-color:#e37a2040;font-size:27px}
.connection-copy h2{font-size:16px}.connection-copy p{font-size:11px}
.connect-form{gap:8px}.connect-form .button{min-height:41px;font-size:12px}.username-field{width:190px;background:#0d1117;border-color:var(--line)}
.connection-detail{font-size:11px}
.stat-grid{gap:14px}.stat-card{padding:20px;background:#161b22;border-color:var(--line);border-radius:12px}
.stat-card>span:not(.stat-icon){font-size:12px}.stat-card strong{font-size:30px}.stat-card small{font-size:10px}
.stat-icon{width:29px;height:29px;font-size:19px}
.dashboard-grid{gap:18px}.panel{padding:22px;background:#161b22;border-color:var(--line);border-radius:12px}.panel-heading h2{font-size:16px}.panel-heading p{font-size:11px}
.goal-panel{background:#161b22}.goal-panel .eyebrow{font-size:9px}.goal-value>strong{font-size:32px}.goal-value>span{font-size:12px}.goal-panel>p{font-size:11px}
.leaderboard .viewer-name,.leaderboard .viewer-value{font-size:12px}.leaderboard .rank{font-size:11px}.viewer-avatar{width:31px;height:31px}.leaderboard .empty-state{font-size:11px}
.empty-state{font-size:12px;color:#94a3b8}.empty-state strong{font-size:13px;color:#cbd5e1}.empty-state p{font-size:11px;color:#94a3b8}
.activity-content{font-size:12px}.activity-content p{font-size:11px}.activity-time{font-size:10px;color:#94a3b8}.activity-row{border-color:#30363d}.event-icon{border-color:#e37a2050;background:#e37a2019;color:#f08a35}
.soft-label{font-size:9px;border-color:#30363d;background:#1c2330;color:#94a3b8}
.simulation-panel{background:#0d1117;border-color:#30363d}.simulation-panel summary{font-size:12px}.simulation-panel>p{font-size:11px}.simulation-form label{font-size:11px}.simulation-form input,.simulation-form select{font-size:12px}
.section-toolbar h2{font-size:18px}.section-toolbar p{font-size:12px}.rules-list{gap:12px}.rule-card{background:#161b22;border-color:#30363d;border-radius:12px}.rule-copy h3{font-size:13px}.rule-copy p,.rule-copy small{font-size:11px}.rule-toggle{font-size:10px}.rule-edit,.rule-delete{font-size:12px}
.audio-panel>h2,.obs-layout .panel>h2{font-size:23px}.audio-panel>.muted,.obs-layout .panel>.muted{font-size:12px}.audio-permission{border-color:#e37a2045;background:#e37a2008}.audio-permission strong{font-size:13px}.audio-permission p{font-size:11px}.sound-grid article{background:#0d1117;border-color:#30363d}.sound-grid h3{font-size:13px}.sound-grid p{font-size:11px}.sound-grid .button{font-size:11px}.tts-setting{border-color:#30363d}.tts-setting h3{font-size:14px}.tts-setting p{font-size:12px}.audio-panel>label,.audio-panel>.text-button{font-size:12px}
.obs-layout{gap:20px}.overlay-url-label{font-size:12px}.overlay-url-label input{font-size:12px}.privacy-note{font-size:11px}.obs-steps{border-color:#30363d}.obs-steps strong{font-size:13px}.obs-steps p{font-size:11px}.preview-caption{font-size:10px}
.settings-panel>h2{font-size:19px}.settings-panel label{font-size:12px}.reset-panel h3{font-size:14px}.reset-panel p{font-size:12px}
.game-welcome{display:flex;align-items:center;justify-content:space-between;min-height:100px;padding:10px 16px;margin-bottom:18px;border:1px solid #202630;border-radius:16px;background:linear-gradient(110deg,#141a25,#0e1018)}
.game-welcome strong{display:block;font-size:15px;font-weight:700;margin-bottom:5px}.game-welcome p{font-size:12px;color:#c5d0df;line-height:1.8;margin:0}.game-welcome img{object-fit:contain;background:#1c2330;border-radius:9px;padding:5px}
.games-toolbar{display:flex;align-items:center;gap:12px;min-height:44px;margin-bottom:12px}
.games-toolbar h2{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:750;margin:0;white-space:nowrap}.games-toolbar h2 svg{color:#a68cd8;width:15px;height:15px}.games-toolbar h2 .muted{font-size:10px;font-weight:400}
.game-search-label{margin-left:auto;min-width:0;width:min(240px,35%)}.game-search-label input{font-size:11px;padding:7px 10px;height:32px}.games-toolbar .button{font-size:10px;padding:7px 11px;height:32px}
.catalog-status{margin:0 0 14px;font-size:11px;color:#94a3b8}.catalog-status:empty{display:none}
.game-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:18px 12px}
.game-card{position:relative;min-width:0;display:flex;flex-direction:column;overflow:hidden;background:#161b22;border:1px solid #30363d;border-radius:13px;transition:border-color .15s,transform .15s}
.game-card:hover{border-color:#e37a2070;transform:translateY(-2px)}
.game-cover,.game-image,.game-card>img{display:block;width:100%;aspect-ratio:1/1;height:auto;object-fit:cover;background:#10151e;overflow:hidden}.game-cover img{display:block;width:100%;height:100%;object-fit:cover}
.game-card-body,.game-card-info{display:flex;flex-direction:column;gap:5px;padding:10px;flex:1;min-width:0}
.game-card-name,.game-name,.game-card h3{font-size:13px;font-weight:700;line-height:1.4;color:#f5f7fa;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0 0 2px}
.game-card-meta,.game-card-subtitle,.game-card .game-meta{font-size:10px;color:#b9a2e7;line-height:1.5}
.game-card-actions{display:flex;align-items:center;gap:5px;padding:0 9px 9px;margin-top:auto}
.game-card-body .game-card-actions{padding:0;margin-top:3px}
.game-card-actions .button,.game-open{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;padding:7px 8px;min-height:32px;background:linear-gradient(90deg,#e87820,#d45a0a 50%,#b84400);border:1px solid #e37a2066;border-radius:8px;color:#fff;font-size:11px;font-weight:700;line-height:1.4}
.game-open svg{width:13px;height:13px}.game-card .game-status{display:block;color:#94a3b8;font-size:10px;line-height:1.5}.game-card .game-badge,.game-card .game-card-badge{position:absolute;right:8px;top:8px;border:1px solid #ffcb8080;border-radius:7px;padding:4px 7px;background:linear-gradient(135deg,#ff8f15,#c33207);font-size:10px;font-weight:850;color:#fff0c1}
.game-details{display:grid;place-items:center;min-height:32px;padding:6px 8px;border:1px solid #30363d;border-radius:8px;background:#1c2330;color:#cbd5e1;font-size:10px;line-height:1.4}.game-details:hover{color:#fff;border-color:#e37a2070}
.game-grid>.empty-state{grid-column:1/-1;min-height:220px;border:1px solid #30363d;border-radius:12px;background:#161b22}
.widgets-layout{display:grid;grid-template-columns:1.25fr 1fr;align-items:start;gap:20px}
.widget-goals{display:grid;gap:14px}.widget-goal{display:grid;gap:12px;padding:16px;border:1px solid #30363d;border-radius:10px;background:#0d1117}.widget-goal .form-grid{margin:0;gap:12px}.widget-goal label{font-size:12px}.widget-goal input[type=number]{font-variant-numeric:tabular-nums}
.timer-display{display:block;margin:15px 0 24px;text-align:center;font-size:54px;font-weight:750;line-height:1.2;letter-spacing:.03em;font-variant-numeric:tabular-nums;color:#f5f7fa}
.timer-controls,.timer-adjustments{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.timer-adjustments{margin-top:10px}.timer-form{display:flex;align-items:end;gap:10px;margin-top:24px;padding-top:22px;border-top:1px solid #30363d}.timer-form label{flex:1;min-width:0}.timer-form button{flex-shrink:0}.timer-form input{min-width:0}
.action-toast{left:calc(50% + 146px);background:#1c2330;border-color:#e37a2066;font-size:13px}

@media(min-width:1550px){.workspace main{padding:24px}.game-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:20px 14px}}
@media(max-width:1180px){
  :root{--subnav-width:200px}
  .sidebar{width:var(--subnav-width);padding:20px 10px 12px}
  .workspace{margin-left:calc(var(--rail-width) + var(--subnav-width));width:calc(100% - var(--rail-width) - var(--subnav-width))}
  .workspace main{padding:24px}.topbar{padding-right:18px}.topbar-right{gap:8px}.stream-health{display:none}
  .secondary-nav .nav-item{font-size:12px;padding:10px 8px;gap:8px}.game-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px 10px}
  .connect-form{margin-left:60px;width:calc(100% - 60px);margin-top:0}.connection-detail{padding-left:60px}.connection-copy{flex:1}
  .widgets-layout{grid-template-columns:1fr}.timer-panel{max-width:650px}.action-toast{left:calc(50% + 136px)}
}
@media(max-width:860px){
  :root{--subnav-width:0px}
  .sidebar{display:none}.icon-rail{width:72px}.icon-rail .studio-nav{gap:12px}.workspace{margin-left:72px;width:calc(100% - 72px);padding-bottom:0}
  .workspace main{padding:22px}.topbar{height:58px;padding-right:12px}.topbar-right{gap:7px}.header-connect{font-size:11px;padding:0 11px}.header-profile{display:none}.owner-badge{max-width:160px}
  .page-heading h1{font-size:24px}.page-heading{margin-bottom:22px}.page-heading p:last-child{font-size:11px}
  .connect-form{margin-left:0;width:100%;margin-top:4px}.connection-detail{padding-left:0}.stat-card strong{font-size:27px}.stat-card>span:not(.stat-icon){font-size:11px}.stat-card small{font-size:9px}
  .game-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}.game-welcome{padding:12px 16px}.game-welcome strong{font-size:14px}.game-welcome p{font-size:11px}.game-welcome img{width:64px;height:64px}.game-search-label{width:min(200px,35%)}
  .studio-footer{padding:15px 22px}.action-toast{left:calc(50% + 36px)}
}
@media(max-width:560px){
  :root{--rail-width:0px;--header-height:60px}
  .topbar{height:60px;min-height:60px;padding:8px 12px 8px 62px}.desktop-brand{left:12px;top:11px;width:36px;height:36px}.topbar .workspace-avatar{display:none}.topbar-right{gap:6px;width:100%;justify-content:flex-end}
  .header-connect{height:36px;min-height:36px;font-size:10px;gap:5px;padding:0 9px;border-radius:9px}.header-connect svg{width:15px;height:15px}.header-download{height:36px;min-height:36px;border-radius:9px;padding:0 8px}.header-download svg{width:19px;height:19px}
  .owner-badge{min-height:36px;max-width:42px;padding:3px 5px;border-radius:9px;gap:0}.owner-badge>.owner-avatar{width:25px;height:25px}.owner-badge>span:nth-child(2),.owner-badge>span:last-child{display:none}
  .icon-rail{position:fixed;z-index:55;left:0;right:0;top:auto;bottom:0;width:100%;height:64px;border:0;border-top:1px solid #30363d;background:#0d1117f5;backdrop-filter:blur(15px);padding-bottom:env(safe-area-inset-bottom)}
  .icon-rail .studio-nav{height:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:2px;margin:0;padding:5px 6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
  .rail-button{flex:1 0 46px;width:auto;min-width:46px;height:49px;min-height:49px;border-radius:9px;flex-direction:column;gap:3px;padding:5px 0}.rail-button svg{width:20px;height:20px;stroke-width:2}.rail-button .studio-fa{font-size:20px}.rail-label{position:static;width:auto;height:auto;margin:0;clip-path:none;overflow:visible;font-size:7px;line-height:1.1;color:inherit;font-weight:600;white-space:nowrap}.rail-footer{display:none}
  .workspace{margin:0;width:100%;padding-top:60px;padding-bottom:64px}.workspace main{padding:20px 15px 26px}.page-heading{align-items:flex-start;gap:12px;margin-bottom:20px}.page-heading h1{font-size:23px}.page-heading .eyebrow{font-size:8px;margin-bottom:7px}.page-heading p:last-child{font-size:10px;max-width:235px}.live-status{font-size:8px;margin-top:21px;padding:6px 7px;white-space:nowrap;gap:5px}
  .game-welcome{min-height:90px;padding:10px 12px;margin-bottom:14px;gap:12px;border-radius:12px}.game-welcome strong{font-size:13px}.game-welcome p{font-size:10px;line-height:1.7;max-width:230px}.game-welcome img{width:53px;height:53px;flex-shrink:0}
  .games-toolbar{flex-wrap:wrap;gap:8px;margin-bottom:10px}.games-toolbar h2{width:100%;font-size:13px;margin-bottom:3px}.games-toolbar h2 .muted{font-size:10px}.game-search-label{flex:1;width:auto;margin-left:0}.game-search-label input{height:34px;font-size:12px}.games-toolbar .button{height:34px;font-size:11px}.catalog-status{font-size:10px;margin-bottom:11px}
  .game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 9px}.game-card{border-radius:10px}.game-card-name,.game-name,.game-card h3{font-size:12px}.game-card-body,.game-card-info{padding:8px}.game-card-meta,.game-card-subtitle,.game-card .game-meta,.game-card .game-status{font-size:9px}.game-card-actions{padding:0 7px 7px}.game-card-actions .button,.game-open{font-size:10px;padding:7px 5px;min-height:31px;border-radius:7px}.game-card .game-badge{font-size:8px;padding:3px 5px;top:6px;right:6px}
  .connection-card{padding:17px;gap:12px}.connection-copy h2{font-size:14px}.connection-copy p{font-size:10px;max-width:235px}.connect-form{flex-wrap:wrap;gap:8px}.username-field{flex:1;min-width:135px}.connect-form .button{font-size:11px;min-height:40px;padding:10px 12px}.connection-detail{font-size:10px}.stat-grid{gap:10px}.stat-card{padding:17px 14px}.stat-card>span:not(.stat-icon){font-size:11px}.stat-card strong{font-size:28px}.stat-card small{font-size:9px}.stat-icon{width:25px;height:25px;font-size:17px;right:10px;top:13px}
  .panel{padding:18px}.panel-heading h2{font-size:14px}.panel-heading p{font-size:10px}.goal-panel>p{font-size:10px}.activity-content{font-size:11px}.activity-content p{font-size:10px}.activity-time{font-size:9px}.empty-state{font-size:11px}.empty-state strong{font-size:12px}.empty-state p{font-size:10px}
  .simulation-panel summary{font-size:10px}.simulation-panel>p{font-size:10px}.simulation-form label{font-size:10px}.simulation-form input,.simulation-form select{font-size:11px}.section-toolbar h2{font-size:16px}.section-toolbar p{font-size:11px}.rule-card{padding:16px}.rule-copy h3{font-size:12px}.rule-copy p,.rule-copy small{font-size:10px}.rule-edit,.rule-delete{font-size:11px}.rule-toggle{font-size:10px}
  .obs-layout .panel>h2,.audio-panel>h2{font-size:21px}.obs-layout .panel>.muted,.audio-panel>.muted{font-size:11px}.obs-layout .button{font-size:11px;padding:10px 11px}.overlay-url-label,.overlay-url-label input{font-size:11px}.privacy-note{font-size:10px}.obs-steps strong{font-size:12px}.obs-steps p{font-size:10px}.sound-grid h3{font-size:12px}.sound-grid p{font-size:10px}.sound-grid .button{font-size:10px}.audio-permission p{font-size:10px}.tts-setting p{font-size:11px}
  .widgets-layout{gap:16px}.widget-goal{padding:13px;gap:10px}.widget-goal .form-grid{grid-template-columns:1fr;gap:10px}.widget-goal label{font-size:11px}.timer-display{font-size:49px}.timer-controls{gap:6px}.timer-controls .button{padding:10px;font-size:11px}.timer-adjustments .button{font-size:10px}.timer-form{gap:8px}.timer-form label{font-size:11px}.timer-form button{font-size:10px;padding:11px}
  .studio-footer{padding:14px 15px;font-size:8px}.action-toast{left:50%;bottom:80px;font-size:12px;padding:14px 18px}
}
