/* Scoped Bot Mode additions; original game styles remain authoritative. */
#bot-panel[hidden],#bot-mode-dialog[hidden],.bot-home-record[hidden],.bot-hud-record[hidden],#cb-open-leaderboard[hidden],#cb-bot-thought[hidden]{display:none!important}
#game-container{--bot-accent:#b789ff;--mode-accent:#00ff41}#game-container[data-mode=bot]{--mode-accent:var(--bot-accent)}
.bot-mode-tabs{display:flex;align-items:center;gap:5px}
#cb-bot-thought{position:absolute;left:50px;right:50px;top:120px;font:13px/1.5 'Space Mono',monospace;color:#d7bfff;background:#101425ed;border:1px solid #8861b5;padding:8px 12px;z-index:100;pointer-events:none}
#game-container[data-mode=bot] .menu-arena .arena-glow{background:radial-gradient(ellipse at 20% 70%,#b789ff30,transparent 65%),radial-gradient(ellipse at 85% 65%,#fca31120,transparent 60%)}
#game-container[data-mode=bot] .arena-trace{color:#b789ff;filter:drop-shadow(0 0 6px #b789ff)}#game-container[data-mode=bot] .arena-floor>div{background:repeating-linear-gradient(0deg,transparent 0 44px,#b789ff50 45px 46px),repeating-linear-gradient(90deg,transparent 0 44px,#b789ff50 45px 46px)}
#game-container[data-mode=bot] .arena-player{filter:drop-shadow(0 0 14px #b789ff50)}#game-container[data-mode=bot] .classic-primary button,#game-container[data-mode=bot] .cb-sim-title,#game-container[data-mode=bot] .cb-sim-counter{color:#b789ff!important}
html body #game-container[data-mode=bot] #main-menu #console-content-main .arena-quick-fight{border-color:#b789ff!important;color:#b789ff!important;background:radial-gradient(circle,#2b1746,#0e071b)!important;text-shadow:0 0 12px #b789ff!important;animation:botBeacon 1.8s ease-in-out infinite!important}
html body #game-container[data-mode=bot] #main-menu #console-content-main .arena-quick-fight span{color:#b789ff!important}html body #game-container[data-mode=bot] #main-menu .classic-dock button{color:#bc9eea!important}#game-container[data-mode=bot] #user-email-display{color:#b789ff!important}.bot-config-caption{font-size:11px;color:#b789ff;letter-spacing:1px}
@keyframes botBeacon{50%{box-shadow:0 0 22px #b789ff66,inset 0 0 18px #b789ff33}}
#bot-panel{width:100%;flex:1;min-height:0;display:flex;flex-direction:column;padding-top:20px;color:#dce4ee;text-align:left;gap:14px}.bot-panel-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #334155;padding-bottom:14px;flex-shrink:0}.bot-panel-heading h1{font-size:25px;color:var(--mode-accent)}.bot-panel-heading button{color:#8cf4ff;width:70px;height:65px;font-size:27px;flex-shrink:0}.bot-scroll{overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;min-height:0;flex:1;padding:3px 4px 18px;scrollbar-width:thin;scrollbar-color:#695183 #101923}.bot-build-note{font-size:14px;color:#94a3b8;line-height:1.6;margin:0 0 16px}.bot-section{border:1px solid #384152;background:#080f1b;padding:17px;margin-bottom:15px}.bot-section h2{font-size:18px;color:var(--mode-accent);margin-bottom:17px}.bot-section p{font-size:13px;line-height:1.6;color:#94a3b8}.bot-form-field{display:flex;flex-direction:column;gap:8px;margin-bottom:17px;font-size:15px;color:#cbd5e1}.bot-form-field input,.bot-form-field select{width:100%;min-height:61px;padding:10px 12px;border:1px solid #546075;background:#030712;color:#fff;font:17px 'Space Mono',monospace;user-select:text}.bot-form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.bot-check{display:flex;align-items:center;gap:12px;min-height:61px;font-size:15px}.bot-check input{width:24px;height:24px;accent-color:#b789ff}.bot-unlock{color:#b789ff;display:flex;flex-direction:column;justify-content:center;gap:8px;text-align:left;min-height:90px;width:100%;padding:15px;font-size:16px}.bot-unlock small{font-size:12px;color:#a396ba}.bot-save-bar{display:flex;gap:12px;flex-shrink:0}.bot-save-bar button{flex:1;min-height:72px;font-size:18px;color:#b789ff}.bot-save-bar button:last-child{color:#ffe18b}.bot-shop-item{margin-bottom:14px;border:1px solid #334155;padding:18px}.bot-shop-item h2{color:#b789ff;font-size:20px;margin-bottom:10px}.bot-shop-item p{font-size:14px;line-height:1.7;color:#a4b0c1;margin-bottom:14px}.bot-shop-item button{width:100%;min-height:68px;color:#ffe18b;font-size:17px}.bot-shop-item button:disabled{color:#64748b!important;cursor:default}.bot-history-row{border-bottom:1px solid #334155;padding:18px 0;font-size:15px;color:#b789ff}.bot-history-row small{display:block;color:#94a3b8;margin-top:9px}.bot-sim-caption{height:18px;font-size:11px;color:var(--mode-accent);text-align:center}
#bot-mode-dialog{position:absolute;inset:0;background:#000c;z-index:200000;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(5px)}.bot-mode-dialog-content{width:600px;max-height:90%;overflow:auto;touch-action:pan-y;background:#080f1b;border:3px solid var(--mode-accent);padding:30px;color:#dbe6ee;box-shadow:0 0 35px #000}.bot-mode-dialog-content h2{font-size:25px;color:var(--mode-accent);margin-bottom:20px}.bot-mode-dialog-content p{font-size:16px;line-height:1.7;margin-bottom:20px;color:#a5b2c4}.bot-mode-dialog-content button{font-size:18px;min-height:70px;padding:12px 18px;border:2px solid var(--mode-accent);background:#101d2c;color:var(--mode-accent);margin-top:12px;width:100%}.bot-mode-dialog-content button:last-child{border-color:#475569;color:#94a3b8}.bot-mode-dialog-content .bot-form-field input{min-height:60px}.bot-mode-dialog-content ul{font-size:16px;line-height:2;margin:10px 0 25px;padding-left:22px}#bot-mode-toast{position:absolute;bottom:110px;left:60px;right:60px;text-align:center;background:#18253a;border:1px solid var(--mode-accent);color:white;padding:16px;z-index:300000;font-size:15px;display:none}.bot-combat{position:relative;height:320px;overflow:hidden;background:radial-gradient(ellipse at bottom,#55387744,transparent)}.bot-combat .arena-fighter{--fighter-size:380px;bottom:-20px}.bot-combat .arena-player{left:calc(25% - 190px)}.bot-combat .arena-boss{left:calc(77% - 190px)}.bot-combat .arena-vs{top:55%;font-size:26px}.bot-action{color:var(--mode-accent);font-size:22px;min-height:36px}.bot-combat-note{font-size:12px!important}.bot-step-detail{min-height:78px}.bot-mode-dialog-content button:focus-visible{outline:3px solid white;outline-offset:3px}
@media(prefers-reduced-motion:reduce){#bot-panel *{animation:none!important;transition:none!important}}
html body #game-container #main-menu .bot-mode-tabs button[aria-pressed=true]{color:var(--mode-accent)!important}
#bot-mode-toast{pointer-events:none}
/* Brawl / Bot keeps its exact HUD position, now a proper segmented pill. */
html body #game-container #main-menu #bot-mode-tabs{gap:5px;padding:5px;border:1px solid #334155;border-radius:40px;background:#030712}
#bot-mode-tabs>span{display:none}
html body #game-container #main-menu #bot-mode-tabs button.cb-stat-shortcut{width:104px;min-width:104px!important;min-height:52px!important;height:52px;padding:7px 12px!important;border:1px solid transparent!important;border-radius:30px!important;text-decoration:none!important;font-size:17px!important;background:transparent!important;color:#8491a4!important;transition:background 120ms,color 120ms}
html body #game-container #main-menu #bot-mode-tabs button[data-mode=brawl][aria-pressed=true]{background:#00ff4128!important;border-color:#00ff41!important;color:#00ff41!important;box-shadow:0 0 12px #00ff4130!important}
html body #game-container #main-menu #bot-mode-tabs button[data-mode=bot][aria-pressed=true]{background:#b789ff30!important;border-color:#b789ff!important;color:#d6baff!important;box-shadow:0 0 12px #b789ff30!important}
#bot-panel{gap:10px;padding-top:12px}.bot-panel-heading{padding-bottom:8px}.bot-panel-heading h1{font-size:23px}.bot-panel-heading button{height:52px;width:60px;min-height:52px!important}
.bot-roster{display:flex;gap:8px;flex-shrink:0;width:100%;overflow-x:auto;padding:2px 0;touch-action:pan-x}.bot-roster button{flex:1;min-width:0;padding:12px 8px;color:#b789ff;text-align:left;min-height:76px;font-size:13px;overflow:hidden}.bot-roster button span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bot-roster small{display:block;margin-top:6px;color:#8fa0b9;font-size:10px;white-space:nowrap}.bot-roster button[aria-pressed=true] small{color:#d4b7fb}.bot-roster .roster-locked{color:#728197}
#profile-summary{flex-shrink:0}.bot-profile{display:grid;grid-template-columns:240px 1fr;gap:12px;align-items:center;border:1px solid #473b60;background:#0c1120;padding:6px 12px;height:194px}.bot-radar{width:235px;height:180px;overflow:visible}.radar-grid{fill:none;stroke:#76648c;stroke-width:1;opacity:.42}.radar-fill{fill:#b789ff3b;stroke:#c49dff;stroke-width:2}.bot-radar text{font:10px 'Space Mono',monospace;fill:#9caac1}.bot-radar .radar-value{fill:#d6b8ff;font-size:10px}.profile-label{font-size:10px;letter-spacing:1px;color:#8c759f}.bot-profile h2{font-size:21px;color:#d9c4ff;margin:5px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:270px}.bot-profile p{font-size:12px;color:#a3b1c4;line-height:1.8}.bot-profile strong{display:block;color:#f5e392;font-size:17px;margin-top:5px}.bot-profile strong small{display:inline;color:#8996aa;font-size:9px}.bot-profile button{font-size:10px;color:#b789ff;padding:7px;margin-top:6px;min-height:34px}.bot-profile>div{min-width:0}
.bot-config-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;flex-shrink:0}.bot-config-tabs button{min-height:49px;padding:8px 5px;font-size:12px;color:#8fa0b9}.bot-config-tabs button[aria-pressed=true]{color:#d4b7ff!important}.bot-scroll.tab-content{padding-top:10px}.bot-option-group{border-bottom:1px solid #2f3848;padding-bottom:16px;margin-bottom:18px}.bot-option-group h3{font-size:17px;color:#d0b3f5;margin-bottom:8px}.bot-option-group p{font-size:13px;line-height:1.7;color:#9aa9bf;margin:0 0 12px}.bot-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.bot-choice-grid button{min-height:61px;padding:10px 7px;color:#92a3b9;font-size:14px}.bot-choice-grid button[aria-pressed=true]{color:#dfc8ff!important}.bot-choice-grid button small{display:block;font-size:10px;margin-top:5px;color:#c8ae80}.bot-choice-grid button[data-buy]{color:#9a849e}.bot-choice-grid+.bot-save-bar{margin-top:10px}.bot-save-bar button{min-height:65px}.bot-build-note{font-size:13px}.bot-shop-item{padding:15px}.product-kind{font-size:9px;letter-spacing:.5px;color:#94a3b8;margin-bottom:8px}.bot-shop-item h2{font-size:17px}.bot-shop-item p{font-size:13px}.bot-shop-item button{min-height:56px;font-size:13px}.mini-market{padding:17px;background:#061822;border:1px solid #254451;margin-bottom:16px}.mini-market svg{width:100%;height:70px}.mini-market path{fill:none;stroke:#b789ff;stroke-width:2}.mini-market>span{color:#b789ff;font-size:32px;letter-spacing:9px}.mini-market small{display:block;text-align:center;color:#64748b;font-size:10px;margin-top:5px}.record-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:8px 0 20px}.record-totals>span{padding:15px;border:1px solid #4a3b63;text-align:center;font-size:27px;color:#c7a2ff}.record-totals small{display:block;font-size:11px;color:#94a3b8;margin-top:5px}.purchase-scope{padding:15px;border:1px solid #524366;color:#d4b7fb;font-size:15px;margin:15px 0 20px}
html body #game-container #main-menu #console-content-main .cb-home-opponent{overflow:visible}
html body #game-container #main-menu #console-content-main .bot-home-record{position:absolute;left:50%;top:calc(100% + 14px);transform:translateX(-50%);width:330px;min-height:34px!important;height:auto;padding:8px 5px;font-size:11px;color:#cfb5ed;white-space:nowrap;text-align:center}
html body #game-container #main-menu #console-content-main .bot-home-record:before,html body #game-container #main-menu #console-content-main .bot-home-record:after{display:none}
#game-container[data-mode=bot] .cb-home-opponent{bottom:310px}
html body #game-container #main-menu #bot-panel button[aria-pressed=true]{color:#d6b7ff!important}
/* Compact configuration: full detail is available on click/tap, never hover-only. */
#bot-panel{gap:8px;padding-top:8px}
#bot-panel .bot-panel-heading{padding-bottom:6px}
#bot-panel .bot-roster button{padding:9px 8px;min-height:60px}
#bot-panel .bot-roster small{margin-top:4px}
#bot-panel .bot-profile{height:158px;grid-template-columns:210px 1fr;gap:8px;padding:3px 10px}
#bot-panel .bot-radar{width:205px;height:150px}
#bot-panel .bot-profile h2{font-size:19px;margin:2px 0}
#bot-panel .bot-profile p{line-height:1.5}
#bot-panel .bot-profile strong{font-size:15px;margin-top:3px}
#bot-panel .bot-profile button{padding:5px 7px;margin-top:2px}
#bot-panel .bot-config-tabs{gap:5px}
#bot-panel .bot-config-tabs button{padding:6px 4px}
html body #game-container #main-menu #bot-panel button{min-height:54px!important}
html body #game-container #main-menu #bot-panel .bot-config-tabs button{min-height:46px!important}
html body #game-container #main-menu #bot-panel .bot-profile button{min-height:44px!important}
html body #game-container #main-menu #bot-panel .bot-help{min-height:44px!important;width:44px;height:44px;min-width:44px;flex:0 0 44px;padding:0!important;display:grid;place-items:center;border:0!important;color:#ad92d7!important;background:transparent!important}
html body #game-container #main-menu #bot-panel .bot-help::before,html body #game-container #main-menu #bot-panel .bot-help::after{display:none}
.bot-help>span{display:grid;place-items:center;width:24px;height:24px;border:1px solid #76648e;border-radius:50%;font-size:14px;line-height:1;color:#c8b0e7}
.option-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;margin:0 0 5px}
#bot-panel .option-heading h3,#bot-panel .option-heading h2{margin:0;font-size:15px;line-height:1.4}
#bot-panel .bot-option-group{margin-bottom:10px;padding-bottom:10px}
#bot-panel .bot-choice-grid{gap:6px;grid-template-columns:repeat(3,minmax(0,1fr))}
#bot-panel .bot-choice-grid button{padding:7px 5px;font-size:13px;display:flex;align-items:center;justify-content:center;gap:5px;line-height:1.3}
#bot-panel .bot-choice-grid button small{display:inline;font-size:10px;margin:0}
#bot-panel .bot-form-field{margin-bottom:10px;font-size:13px;gap:6px}
#bot-panel .bot-form-field input{min-height:54px;padding:8px 10px;font-size:16px}
#bot-panel .tab-content{padding:0 3px 4px}
#bot-panel .tab-content[data-config-tab=risk]{display:grid;grid-template-columns:1fr 1fr;gap:5px 16px;align-content:start}
#bot-panel .tab-content[data-config-tab=risk] .bot-option-group:last-child{grid-column:1/-1}
#bot-panel .tab-content[data-config-tab=risk] [data-group=balance] .bot-choice-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
#bot-panel .tab-content[data-config-tab=signals] .bot-choice-grid{grid-template-columns:repeat(var(--choices,3),minmax(0,1fr))}
#bot-panel .tab-content[data-config-tab=signals] .bot-choice-grid button{font-size:11px;gap:2px;flex-wrap:wrap;padding:6px 3px}
#bot-panel .tab-content[data-config-tab=timing] .bot-choice-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
#bot-panel .tab-content[data-config-tab=charts] .bot-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.compact-hint{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:11px;color:#899bb3;min-height:40px}
#bot-panel .compact-product{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;padding:9px 12px;min-height:77px}
.compact-product .product-copy{min-width:0;flex:1}
#bot-panel .compact-product .product-kind{margin-bottom:0;font-size:9px}
#bot-panel .compact-product h2{font-size:14px}
#bot-panel .compact-product .option-heading{margin:0;min-height:35px}
#bot-panel .compact-product .product-unlock{width:120px;flex:0 0 120px;font-size:11px;padding:5px;margin:0}
.upgrade-filters{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-bottom:10px}
.upgrade-filters button{font-size:11px;color:#9aacc3;padding:7px 5px}
#bot-panel .mini-market{padding:10px;margin-bottom:10px}
#bot-panel .mini-market svg{height:55px}
#bot-panel .record-totals{margin:5px 0 10px}
#bot-panel .record-totals>span{padding:10px;font-size:23px}
/* Popover is outside the scaled cabinet, keeping text and targets readable on phones. */
#bot-help-popup{position:fixed;inset:auto;margin:0;width:min(330px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;touch-action:pan-y;padding:14px 16px 16px;background:#101725;color:#d7e1f0;border:1px solid #9872cb;border-radius:9px;box-shadow:0 12px 45px #000b;font:14px/1.65 'Space Mono',monospace;z-index:2147483647;user-select:text}
#bot-help-popup::backdrop{background:transparent}
#bot-help-popup .help-popup-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
#bot-help-popup h2{font-size:13px;line-height:1.4;color:#cfb3f5;margin:0}
#bot-help-popup p{margin:0;font-size:13px;white-space:pre-line;user-select:text}
#bot-help-popup button{width:44px;height:44px;min-width:44px;flex-shrink:0;padding:0;border:1px solid #586078;border-radius:6px;color:#d5bbfb;background:#1c2032;font-size:24px;line-height:1;cursor:pointer}
#bot-help-popup button:focus-visible{outline:2px solid #e3cbff;outline-offset:3px}

#bot-panel [data-group=parry] .bot-choice-grid,#bot-panel [data-group=super] .bot-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#bot-panel .bot-config-tabs[aria-label="Configuration sections"]{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
#bot-panel .bot-config-tabs[aria-label="Configuration sections"] button{font-size:11px;padding:5px 1px;letter-spacing:0}
#bot-panel .compact-product:last-child{margin-bottom:0}
/* Keep compact controls at least 24 screen pixels at the 320px cabinet scale. */
html body #game-container #main-menu #bot-panel .bot-help{width:54px;height:54px;min-width:54px;flex-basis:54px;min-height:54px!important}
html body #game-container #main-menu #bot-panel .bot-config-tabs button,html body #game-container #main-menu #bot-panel .bot-profile button{min-height:54px!important}
#bot-panel .bot-option-group{margin-bottom:6px;padding-bottom:6px}
#bot-panel .tab-content[data-config-tab=signals] .bot-option-group:last-child{margin-bottom:0}
/* Readable rows, fixed summary help, and direct roster renaming. */
#bot-panel .profile-heading{display:flex;align-items:center;justify-content:space-between;height:40px}
#bot-panel .profile-heading .bot-help{margin:0;align-self:center}
#bot-panel .bot-profile{height:164px;min-height:164px}
#bot-panel .bot-profile p{margin:2px 0}
#bot-panel .bot-profile strong{margin-top:4px}
#bot-panel .bot-roster{overflow:visible}
#bot-panel .roster-entry{display:grid;grid-template-columns:minmax(0,1fr) 65px;gap:2px;min-width:0;flex:1;border:1px solid #384454;background:#0b1823;padding:3px}
#bot-panel .roster-entry[data-selected=true]{border-color:#b789ff;background:#b789ff10}
html body #game-container #main-menu #bot-panel .roster-entry button{padding:4px!important;font-size:9px!important;min-width:0!important}
#bot-panel .roster-entry .roster-name{order:-1;font-size:12px!important;color:#cbb1ed;text-align:left;overflow:hidden}
#bot-panel .roster-name i{font-style:normal;color:#b789ff}
#bot-panel .roster-entry small{font-size:9px}
#bot-panel .roster-locked{flex:1;min-width:0}
#bot-panel .style-intro .option-heading{margin:0}
#bot-panel .style-intro p{font-size:12px;color:#9aabc0;margin:-2px 0 9px}
#bot-panel .style-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #384152;background:#0b1420;padding:6px 10px;margin-bottom:6px;min-height:67px}
#bot-panel .style-row h3{font-size:14px;color:#dac5fa;margin:0 0 4px}
#bot-panel .style-row h3 small{font-size:8px;color:#93a3b8;font-weight:normal}
#bot-panel .style-row p{font-size:11px;color:#9baabe;margin:0;line-height:1.5}
#bot-panel .style-row button{flex:0 0 112px;font-size:11px;padding:5px;color:#a7afc3}
#bot-panel .style-row button[data-buy]{color:#e3c47e}
#bot-panel .style-list{margin-bottom:10px}
#bot-panel .signals-heading{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-bottom:5px;font-size:12px;color:#d0b6f4;min-height:54px}
#bot-panel .signals-heading>button:not(.bot-help){padding:4px 10px;font-size:10px;color:#e3c47e}
#bot-panel .signal-row{display:grid;grid-template-columns:minmax(0,1fr) 54px 140px 110px;gap:5px;align-items:center;padding:5px 8px;border:1px solid #384152;background:#0b1420;margin-bottom:5px;min-height:66px}
#bot-panel .signal-copy{min-width:0}
#bot-panel .signal-copy h3{font-size:14px;color:#dac5fa;margin:0 0 3px}
#bot-panel .signal-copy small{display:block;font-size:10px;color:#96a6bb;line-height:1.3}
#bot-panel .signal-levels{display:flex;align-items:center;justify-content:flex-end;gap:4px;color:#69788f;font-size:12px}
#bot-panel .signal-levels button{flex:1;min-width:0;padding:3px;font-size:11px;color:#9aabc0}
#bot-panel .signal-levels button[data-buy]{color:#b2a18b}
#bot-panel .signal-levels .level-basic{padding:0 15px}
#bot-panel .signal-equip{padding:3px;font-size:10px;color:#a6aec3}
#bot-panel .signal-footnote{font-size:11px;color:#96a6bb;line-height:1.6;margin:9px 0}
#bot-panel .timer-explanation{margin:14px 0}
#bot-panel .timer-explanation h2{font-size:19px;color:#d0b3f5;margin:0 0 7px}
#bot-panel .timer-explanation p{font-size:13px;color:#a3b1c4;line-height:1.7}
#bot-panel .timer-timeline{display:flex;justify-content:space-around;gap:10px;padding:22px 12px;border:1px solid #473b60;color:#c4a2ed;font-size:13px;margin:22px 0}
html body #game-container #main-menu #bot-panel .roster-entry .roster-name{font-size:12px!important}
#bot-panel [data-config-tab=signals] [data-group=agreement]{display:grid;grid-template-columns:160px 1fr;gap:6px;align-items:center;border:0;margin:3px 0 0;padding:0}
#bot-panel [data-config-tab=signals] [data-group=agreement] .option-heading{margin:0;gap:0}
#bot-panel [data-config-tab=signals] [data-group=agreement] h3{font-size:11px}
#bot-panel .memory-controls{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#bot-panel .memory-controls>.option-heading{grid-column:1/-1;margin:0}
#bot-panel .memory-controls .bot-save-bar{margin:0;gap:6px}
#bot-panel .memory-controls .bot-save-bar button{min-height:54px;font-size:11px;padding:4px}
#bot-panel .style-row{margin-bottom:4px}
#bot-panel .style-list{margin-bottom:6px}
#bot-panel .memory-controls{margin-bottom:0}

html body #game-container #main-menu .bot-hud-record{color:#d6b7ff;font-size:20px;padding:0!important;white-space:nowrap}

#challenge-friend-btn[hidden],#bot-result-save[hidden]{display:none!important}

/* Three equal tracks center the mode switch independently of record/balance width. */
html body #game-container #main-menu .menu-top-stats{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:10px}
html body #game-container #main-menu .menu-top-stats>.left-stats{grid-column:1;grid-row:1;justify-self:start;min-width:0}
html body #game-container #main-menu .menu-top-stats>.right-stats{grid-column:3;grid-row:1;justify-self:end;min-width:0}
html body #game-container #main-menu #bot-mode-tabs{grid-column:2;grid-row:1;justify-self:center}

#cb-bot-thought[data-state="waiting"]{color:#ffd166;border-color:#b8860b}
#cb-bot-thought[data-state="acting"]{color:#62efbb;border-color:#2e9e78}
