/* LoVeRWatchBot Studio — dedicated admin workspace, shared Twitch/game session. */
body:has(#adminBotModal:not(.hidden)){overflow:hidden}
#adminBotModal{inset:0;box-sizing:border-box;padding:0;overflow:hidden;background:#100c20;backdrop-filter:none}
#adminBotModal>.bot-studio-panel{display:flex;flex-direction:column;width:100%;max-width:none;height:100dvh;min-height:0;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:radial-gradient(ellipse at 85% 10%,#7436a440,transparent 55%),radial-gradient(ellipse at 20% 90%,#46288538,transparent 60%),#100c20;color:#eef0f8;box-shadow:none;position:relative;isolation:isolate}
.bot-studio-header{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:0 0 auto;min-height:84px;padding:16px 32px;border-bottom:1px solid #b18ae629;background:linear-gradient(100deg,#211332,#171027e8);box-sizing:border-box}
.bot-studio-brand{display:flex;align-items:center;gap:13px;min-width:0}.bot-studio-mark{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border:1px solid #9973e96b;border-radius:13px;background:#ad84ff19;color:#c3a1ff;font-size:28px;line-height:1}
#adminBotTitle{margin:0;font-size:20px;line-height:1.3;letter-spacing:-.04em;font-weight:850}.bot-studio-brand>div>span{display:block;margin-top:4px;font-size:9px;font-weight:750;letter-spacing:.13em;color:#b6a1cc}
.bot-studio-header-actions{display:flex;gap:16px;align-items:center}.bot-back-button{min-height:40px;padding:8px 14px;border:1px solid #b18ae642;border-radius:9px;background:#30213e;color:#d1d3e4;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.bot-back-button:hover{border-color:#a580df;color:#fff}
.bot-status-chip{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;padding:7px 10px;border:1px solid #34384b;border-radius:7px;color:#b2b4c8;font-size:11px;font-weight:750;white-space:nowrap}.bot-status-chip.live{background:#41b48b12;border-color:#42bc8b40;color:#77dbb0}
.bot-studio-shell{display:grid;grid-template-columns:228px minmax(0,1fr);flex:1;min-height:0}.bot-studio-sidebar{display:flex;flex-direction:column;min-height:0;padding:32px 16px 20px;background:#171027cc;border-right:1px solid #b18ae629}.bot-sidebar-label{display:block;padding:0 14px 14px;color:#a78fbe;font-size:10px;letter-spacing:.09em;font-weight:800}.bot-studio-nav{display:grid;gap:5px}.bot-studio-nav button{display:flex;align-items:center;gap:12px;min-height:46px;min-width:0;width:100%;padding:11px 14px;border:1px solid transparent;border-radius:9px;background:transparent;color:#bfb0d2;font:inherit;font-size:13px;font-weight:650;text-align:left;cursor:pointer}.bot-studio-nav button>span{display:grid;place-items:center;flex:0 0 20px;font-size:20px;color:#7d819a}.bot-studio-nav button:hover{background:#ffffff05;color:#fff}.bot-studio-nav button.active{color:#f1e4ff;background:linear-gradient(110deg,#9146ff40,#b16bf21a);border-color:#bb88ff50}.bot-studio-nav button.active>span{color:#c7a3ff}.bot-studio-nav small{display:grid;place-items:center;min-width:20px;height:20px;margin-left:auto;border-radius:5px;background:#b191e921;color:#c2a1ff;font-size:10px}
.bot-sidebar-footer{display:flex;align-items:center;gap:10px;margin-top:auto;padding:24px 12px 0;color:#b1b5ce}.bot-sidebar-footer strong{font-size:11px}.bot-sidebar-footer small{display:block;font-size:9px;color:#737a95;line-height:1.7}.bot-sidebar-dot{width:7px;height:7px;flex:0 0 7px;background:#ad83ed;border-radius:50%}
.bot-studio-main{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:38px clamp(24px,3vw,56px) 64px;background:transparent;scrollbar-gutter:stable}.bot-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 28px}.bot-page-kicker{display:block;margin-bottom:12px;color:#8f719e;font-size:9px;font-weight:800;letter-spacing:.12em}#botStudioPageTitle{margin:0;color:#f3f2fa;font-size:30px;line-height:1.25;font-weight:800;letter-spacing:-.04em;outline:none}#botStudioPageDescription{margin:9px 0 0;color:#b8a7cd;font-size:14px;line-height:1.6}
#adminBotContent{max-width:1440px;margin:0 auto}#adminGameBot .hidden{display:none!important}
#adminGameBot{min-width:0;margin:0;padding:0;border:0;background:none;box-shadow:none}
#adminGameBot .bot-studio-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 22px}.bot-stat{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:10px;padding:22px 20px;border:1px solid #b48ae63b;border-radius:12px;background:#231a35ed}.bot-stat>span{color:#c3b2d8;font-size:11px}.bot-stat>strong{font-size:23px;line-height:1.3;letter-spacing:-.03em;color:#f3effb}.bot-stat>small{color:#ad99c2;font-size:10px;line-height:1.5}.bot-studio-stats[data-connected="true"] .bot-stat[data-stat="connection"]>strong{color:#7dddb2}
#adminGameBot .bot-panel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}#adminGameBot .bot-panel-grid>div,#adminGameBot .bot-panel-grid>section{box-sizing:border-box;min-width:0;margin:0;padding:26px;border:1px solid #a57bd13d;border-radius:12px;background:#211832ed;box-shadow:none}#adminGameBot .bot-connection-card,#adminGameBot .bot-card-wide,#adminGameBot .bot-schedule-card,#adminGameBot .bot-egg-card{grid-column:1/-1}
#adminGameBot .bot-card-eyebrow{display:block;margin-bottom:10px;font-size:9px;line-height:1.6;font-weight:800;letter-spacing:.1em;color:#a28abd}#adminGameBot h3,#adminGameBot h4{margin:0 0 12px;color:#eeeef7;font-size:17px;letter-spacing:-.02em;line-height:1.4}#adminGameBot p{margin:9px 0;line-height:1.7;font-size:12px;color:#c0b4d1}#adminGameBot .admin-player-meta{color:#858da7;font-size:11px}#adminGameBot .bot-connection-card p{max-width:860px}
#adminGameBot .btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;max-width:100%;margin-top:6px;padding:10px 15px;border:1px solid #a67be74d;border-radius:8px;background:#9970dc;color:#fff;box-shadow:none;font-size:11px;font-weight:750;line-height:1.4;white-space:normal;text-decoration:none;cursor:pointer}#adminGameBot .btn.secondary{background:#342446;border-color:#a57bd14d;color:#c7cce0}#adminGameBot .btn:hover:not(:disabled){filter:brightness(1.12)}#adminGameBot .btn:disabled{opacity:.55;cursor:wait}
#adminGameBot .bot-connection-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}#adminGameBot .bot-connection-actions>.btn{margin:0}#adminGameBot .bot-chat-test-help{display:block;margin-top:12px;color:#737d98;font-size:10px;line-height:1.7}
#adminGameBot .bot-power-switch{gap:10px}#adminGameBot .bot-power-track{position:relative;display:block;flex:0 0 32px;width:32px;height:19px;border-radius:20px;background:#5b6178}#adminGameBot .bot-power-thumb{position:absolute;top:3px;left:3px;width:13px;height:13px;border-radius:50%;background:#fff}#adminGameBot .bot-power-label{font-size:11px;font-weight:750}#adminGameBot .bot-power-switch[aria-checked="true"]{color:#96e7c3;background:#174032;border-color:#4ab78b55}#adminGameBot .bot-power-switch[aria-checked="true"] .bot-power-track{background:#43b887}#adminGameBot .bot-power-switch[aria-checked="true"] .bot-power-thumb{left:16px}
#adminGameBot [data-game-bot-status]:empty{display:none}#adminGameBot [data-game-bot-status]:not(:empty){margin:0 0 20px;padding:14px 18px;border:1px solid #73d4a540;border-radius:10px;background:#51be9210;color:#a0e3c6;overflow-wrap:anywhere}#adminGameBot [data-game-bot-status][data-error="true"]{border-color:#ea879c50;background:#ea879c0c;color:#ffc3d0}
.bot-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.bot-quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:8px}.bot-quick-links button{position:relative;display:grid;gap:9px;min-width:0;padding:20px;border:1px solid #303347;border-radius:10px;background:#291d3d;color:#d6d8e8;font:inherit;text-align:left;cursor:pointer}.bot-quick-links button:hover{border-color:#9672ce;background:#202236}.bot-quick-links button>span{font-size:22px;color:#ba96f1}.bot-quick-links button strong{font-size:12px;font-weight:750}.bot-quick-links button small{font-size:10px;line-height:1.5;color:#858faa}.bot-quick-links button>b{position:absolute;right:18px;top:18px;font-size:16px;color:#7f739c}.bot-recent-heading{margin-top:30px}.bot-text-link{padding:5px 0;background:none;border:0;color:#c09bef;font:inherit;font-size:11px;cursor:pointer}.bot-recent-list>article{display:flex;align-items:flex-start;gap:12px;padding:16px 0;border-top:1px solid #282c3d}.bot-recent-list>article>div{flex:1;min-width:0}.bot-recent-list strong{font-size:11px;color:#b9c1d8}#adminGameBot .bot-recent-list p{margin:5px 0 0;overflow-wrap:anywhere;font-size:11px}.bot-recent-list time{font-size:10px;color:#76819a}.bot-status-dot{flex:0 0 6px;width:6px;height:6px;margin-top:5px;border-radius:50%;background:#929ab3}.bot-status-dot.success{background:#63c69f}.bot-status-dot.error{background:#eb849c}.bot-studio-empty{padding:24px 0 4px}.bot-studio-empty strong{color:#cbd1e4}
#adminGameBot .bot-editor-card>.game-bot-messages,#adminGameBot .bot-commands-card>.game-bot-messages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#adminGameBot .bot-template-card{display:flex;flex-direction:column;gap:12px;min-width:0;padding:20px;border:1px solid #30364b;border-radius:10px;background:#181c29;box-shadow:none}#adminGameBot .bot-template-card h5{margin:0;color:#f2edff;font-size:14px;line-height:1.5}#adminGameBot .bot-template-badge{align-self:flex-start;padding:4px 8px;border-radius:5px;background:#a886db15;color:#b3a0d1;font-size:9px;line-height:1.6}#adminGameBot .bot-template-card>.game-bot-message-text{flex:1;margin:0;font-size:12px;line-height:1.8;color:#a1abc4}#adminGameBot .bot-card-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:auto}#adminGameBot .bot-card-actions>.btn{flex:1 1 auto;margin:0;font-size:10px;padding:8px 12px;min-height:36px}
.bot-command-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;margin-top:24px;padding-top:24px;border-top:1px solid #2c3144}.bot-command-toolbar label{display:grid;gap:8px}.bot-command-toolbar label:first-child{flex:1;min-width:min(220px,100%)}.bot-command-toolbar label>span{color:#9fa7bf;font-size:10px}.bot-command-toolbar :is(input,select){box-sizing:border-box;max-width:100%;min-height:42px;padding:10px 12px;border:1px solid #343c55;border-radius:8px;background:#101522;color:#dedff0;font:inherit;font-size:12px}.bot-command-toolbar input{width:100%}.bot-command-toolbar [data-bot-command-results]{flex-basis:100%;font-size:10px;color:#838fa9}.bot-search-empty{padding:30px 12px;color:#a4afc9;text-align:center;font-size:13px}
#adminGameBot .bot-schedule-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}#adminGameBot .bot-schedule-inputs label{display:grid;gap:8px;color:#b5bed5;font-size:12px}#adminGameBot .bot-schedule-inputs input{box-sizing:border-box;min-width:0;width:100%;min-height:44px;padding:11px 14px;border:1px solid #3b4059;border-radius:8px;background:#101521;color:#e9e4fa;font:inherit}#adminGameBot .bot-schedule-toggle{display:flex;align-items:center;gap:10px;font-size:12px;color:#c9cce1}#adminGameBot .bot-schedule-toggle input{width:18px;height:18px;accent-color:#a67be7}#adminGameBot .bot-schedule-next{padding:14px 18px;border:1px solid #ac84df33;border-radius:8px;background:#9c78d50d;color:#bcacd8}#adminGameBot .bot-timing-card ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;list-style:none;margin:20px 0 0}#adminGameBot .bot-timing-card li{padding:18px;border:1px solid #30364a;border-radius:9px;font-size:12px;line-height:1.8;color:#9ba6c0}#adminGameBot .bot-timing-card li strong{color:#ced2e6}#adminGameBot [data-bot-countdown]{display:inline-block;padding:6px 10px;border-radius:7px;background:#b080e71a;color:#c5a6ec}
#adminGameBot .bot-history-card .game-bot-message{background:#191d29;border:1px solid #2e354a}#adminGameBot .bot-history-card .game-bot-message p{font-size:12px}#adminGameBot .bot-history-card .game-bot-messages{margin-top:20px}.game-bot-editor .bot-command-enabled{display:flex;align-items:center;gap:10px}.game-bot-editor #botCommandEnabled{width:22px;min-height:22px;height:22px;flex:0 0 22px;accent-color:#af7eff}
#adminBotModal :is(button,input,select,a):focus-visible{outline:2px solid #c9a7ff;outline-offset:3px}
@media(max-width:1200px){.bot-studio-shell{grid-template-columns:200px minmax(0,1fr)}.bot-studio-main{padding:28px 24px 48px}#adminGameBot .bot-studio-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.bot-quick-links{grid-template-columns:1fr}.bot-quick-links button{padding:16px 20px;grid-template-columns:28px minmax(0,1fr);gap:5px 12px}.bot-quick-links button>span{grid-row:1/3}.bot-quick-links button small{grid-column:2}}
@media(max-width:900px){
 #adminBotModal{z-index:1000070}.bot-studio-header{min-height:74px;padding:14px 18px;gap:12px}.bot-studio-mark{width:34px;height:34px;flex-basis:34px;font-size:23px}.bot-studio-brand{gap:10px}#adminBotTitle{font-size:17px}.bot-studio-brand>div>span{font-size:7px}.bot-studio-header-actions{gap:8px}.bot-studio-header-actions>.bot-status-chip{display:none}.bot-back-button{font-size:11px;padding:8px;min-height:40px}
 .bot-studio-shell{display:flex;flex-direction:column}.bot-studio-sidebar{display:block;flex:0 0 auto;padding:10px 14px;border-right:0;border-bottom:1px solid #282d3f}.bot-sidebar-label,.bot-sidebar-footer{display:none}.bot-studio-nav{display:flex;gap:6px;overflow:auto;scrollbar-width:none}.bot-studio-nav::-webkit-scrollbar{display:none}.bot-studio-nav button{flex:0 0 auto;width:auto;min-height:40px;padding:8px 12px;font-size:12px;white-space:nowrap}.bot-studio-nav button>span{flex-basis:16px;font-size:17px}.bot-studio-main{flex:1;padding:26px 16px calc(30px + env(safe-area-inset-bottom))}.bot-page-heading{align-items:flex-start;gap:12px;margin-bottom:22px}#botStudioPageTitle{font-size:25px}.bot-page-kicker{font-size:8px;margin-bottom:8px}#botStudioPageDescription{font-size:12px}.bot-page-heading>.bot-status-chip{font-size:9px;padding:6px}
 #adminGameBot .bot-studio-stats{gap:10px}.bot-stat{gap:8px;padding:17px 14px}.bot-stat>span{font-size:10px}.bot-stat>strong{font-size:20px}.bot-stat>small{font-size:10px}#adminGameBot .bot-panel-grid{grid-template-columns:minmax(0,1fr);gap:14px}#adminGameBot .bot-panel-grid>div,#adminGameBot .bot-panel-grid>section{padding:20px 16px}#adminGameBot .bot-editor-card>.game-bot-messages,#adminGameBot .bot-commands-card>.game-bot-messages,#adminGameBot .bot-timing-card ul{grid-template-columns:minmax(0,1fr)}#adminGameBot .bot-template-card{padding:18px 14px}#adminGameBot .bot-template-card h5{font-size:15px}#adminGameBot p,#adminGameBot .bot-template-card>.game-bot-message-text{font-size:13px}#adminGameBot .btn{min-height:44px;font-size:12px}#adminGameBot .bot-card-actions .btn{min-height:44px;font-size:12px}#adminGameBot .bot-connection-actions{display:grid;grid-template-columns:minmax(0,1fr)}#adminGameBot .bot-connection-actions .btn{width:100%}#adminGameBot .bot-schedule-inputs{grid-template-columns:1fr}.bot-command-toolbar{display:grid;grid-template-columns:minmax(0,1fr)}.bot-command-toolbar :is(input,select),#adminGameBot .bot-schedule-inputs input{font-size:16px;min-height:46px}.bot-studio-main :is(input,select){max-width:100%}#adminBotContent,#adminGameBot{min-width:0;max-width:100%;overflow-wrap:anywhere}
}
/* Independent owner-only studio: no game navigation or game application. */
#adminBotContent.hidden,#botStudioTwitch.hidden{display:none!important}
.bot-studio-standalone .bot-studio-header-actions a{text-decoration:none;box-sizing:border-box;display:inline-flex;align-items:center}
.bot-twitch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.bot-twitch-card{min-width:0;padding:26px;border:1px solid #a57bd13d;border-radius:12px;background:#211832ed}.bot-twitch-card h3{margin:8px 0 14px;font-size:20px;overflow-wrap:anywhere}.bot-twitch-card p{color:#c0b4d1;font-size:13px;line-height:1.7}.bot-twitch-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.bot-twitch-actions a{text-decoration:none}.bot-twitch-card dl>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #2c3144}.bot-twitch-card dt{font-size:12px;color:#c0b4d1}.bot-twitch-card dd{margin:0;font-weight:750}.bot-twitch-card .bot-card-eyebrow{font-size:10px;color:#bda2df;letter-spacing:.1em}#botTwitchNotice{color:#b6d9c9;font-size:13px}
.bot-login-page{box-sizing:border-box;min-height:100dvh;margin:0;display:grid;place-items:center;padding:24px;background:#100c20;color:#eef0f8;font-family:system-ui,sans-serif}.bot-login-card{box-sizing:border-box;width:min(440px,100%);padding:36px;border:1px solid #343448;border-radius:18px;background:#231a35ed;box-shadow:0 20px 80px #0004}.bot-login-card h1{font-size:30px;letter-spacing:-.04em}.bot-login-card p{color:#c0b4d1;font-size:14px;line-height:1.7}.bot-login-card form{display:grid;gap:12px;margin:28px 0}.bot-login-card label{font-size:13px;color:#c9c9dd}.bot-login-card input{box-sizing:border-box;width:100%;min-width:0;min-height:46px;margin-bottom:6px;padding:12px;border:1px solid #42425c;border-radius:8px;background:#0c1020;color:#fff;font:inherit}.bot-login-card button{min-height:46px;border:0;border-radius:8px;background:#9970dc;color:#fff;font:inherit;font-weight:750;cursor:pointer}.bot-login-card button:disabled{opacity:.6}.bot-login-card a{color:#c5a8f1;font-size:13px}.bot-login-card #botLoginNotice{margin:0;color:#e9c1c9}
@media(max-width:900px){.bot-twitch-grid{grid-template-columns:minmax(0,1fr)}.bot-twitch-card{padding:20px}.bot-studio-standalone .bot-studio-header{flex-wrap:wrap}.bot-studio-standalone .bot-studio-header-actions{margin-left:auto}.bot-login-card{padding:26px}.bot-login-card input{font-size:16px}}

#botStudioNotice:empty{display:none}#botStudioNotice{margin:0;padding:10px 24px;color:#e9c1c9;font-size:13px}

/* A separate, noninteractive scene stays fixed while the studio content scrolls. */
.bot-studio-header,.bot-studio-shell,#botStudioNotice{position:relative;z-index:1}
.bot-studio-sky{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;color:#bf83ff;contain:strict}
.bot-studio-sky svg{position:absolute;left:var(--x);top:var(--y);width:var(--size);height:var(--size);opacity:.14;animation:bot-twitch-float var(--duration) ease-in-out var(--delay) infinite alternate;will-change:transform}
.bot-studio-sky svg:nth-of-type(even){color:#e1a9ff;opacity:.1}
.bot-studio-sky .bot-twitch-symbol{position:absolute;width:0;height:0;opacity:0;animation:none}
.bot-studio-mark{box-shadow:0 0 28px #9146ff24;background:linear-gradient(140deg,#9146ff38,#b879ed14)}
.bot-back-button{transition:background .2s,border-color .2s}.bot-back-button:hover{background:#4b2b64}
.bot-studio-nav button:focus-visible,.bot-back-button:focus-visible,#adminGameBot .btn:focus-visible{outline:2px solid #d4a4ff;outline-offset:3px}
@keyframes bot-twitch-float{from{transform:translate3d(-12px,18px,0) rotate(-12deg)}to{transform:translate3d(22px,-42px,0) rotate(9deg)}}
@media(max-width:900px){.bot-studio-sky svg{opacity:.1}.bot-studio-sky svg:nth-of-type(n+6){display:none}}
@media(prefers-reduced-motion:reduce){.bot-studio-sky svg{animation:none;will-change:auto}.bot-back-button{transition:none}}
