/* Preparation stays in the menu. Battle input is glass over the arena, without a layout row. */
.input-choice602{display:grid;gap:6px;margin:14px 0;font:650 12px/1.5 system-ui;color:#62616b}.input-choice602 select{min-height:44px;padding:10px;border:1px solid #d8cfc5;border-radius:9px;background:#fff;color:#25252d;font:600 13px system-ui}
body.input-glass605 .stage{position:relative!important}
body.input-glass605 .player-input602{position:absolute!important;z-index:4;left:50%;bottom:38px;transform:translateX(-50%);width:calc(100% - 32px);max-width:650px;margin:0!important;padding:8px 0 0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:#f8f5f0;font-family:system-ui;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;pointer-events:none;box-sizing:border-box}
.player-input602[hidden],.player-input602 [hidden]{display:none!important}
.player-input602::before{content:'';position:absolute;inset:-12px -16px -16px;z-index:-1;background:linear-gradient(0deg,rgba(9,19,25,.65),rgba(9,19,25,.24) 65%,transparent);pointer-events:none;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.input-top602{display:contents}.input-top602>span{display:none}.player-input602 button{appearance:none;pointer-events:auto;touch-action:manipulation;font:650 12px/1.2 system-ui;cursor:pointer;color:#f8f5f0!important;border:1px solid rgba(255,255,255,.2)!important;background:rgba(15,28,34,.48)!important;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);border-radius:10px!important;min-width:0;margin:0;box-shadow:inset 0 1px 0 rgba(255,255,255,.06);text-shadow:0 1px 3px #09131b}
.input-top602>button{grid-column:2;grid-row:1;padding:7px 12px!important;min-height:36px!important;font-size:10px!important;background:rgba(15,28,34,.4)!important}
.input-swap602{grid-column:1;grid-row:1;justify-self:start;min-height:36px!important;max-width:100%;padding:7px 12px!important;font-size:10px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.input-moves602{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0}
.input-moves602>.input-cell648>button:not(.input-info648){position:relative;text-align:left;min-height:48px!important;padding:8px 10px!important;overflow:hidden}
.input-name603{display:block;font-size:12px;line-height:1.25;overflow-wrap:anywhere}.input-meta603{display:flex;align-items:center;gap:6px;font-size:9px;line-height:1.2;font-weight:500;margin-top:3px;color:rgba(248,245,240,.72)}
.input-type603,.input-state603,.input-matchup604{display:none!important}.input-meta603>span:not(.input-type603):not(.input-state603){white-space:nowrap}
.input-moves602>.input-cell648>button:not(.input-info648)[aria-pressed=true]{background:linear-gradient(115deg,rgba(137,32,49,.7),rgba(34,24,31,.5))!important;border-color:rgba(255,187,193,.75)!important;box-shadow:inset 3px 0 #e86577,0 0 14px rgba(205,51,69,.1)}
.input-moves602>.input-cell648>button:not(.input-info648)[aria-pressed=true] .input-name603::before{content:'✓ ';color:#ffc3cb}.input-moves602>.input-cell648>button:not(.input-info648)[data-state="In progress"]{border-color:rgba(255,255,255,.44)!important}
.player-input602 button:disabled{opacity:.4!important;cursor:default}.player-input602 button:focus-visible{outline:2px solid #ffd166;outline-offset:2px}.player-input602 button:active:not(:disabled){background:rgba(93,35,47,.78)!important}
.input-hint602{grid-column:1/-1;grid-row:3;color:rgba(255,255,255,.85);font:500 9px/1.4 system-ui;text-shadow:0 1px 3px #09131b;margin:0;min-height:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.input-confirm604{color:#ffc3cb;font-weight:700}.player-input602[data-engaged=false] .input-hint602{visibility:hidden}
.player-input602[data-manual=false]{display:flex!important;justify-content:flex-end;bottom:36px;max-width:none}.player-input602[data-manual=false]::before{display:none}.player-input602[data-manual=false] .input-hint602{position:absolute;bottom:42px;right:0;max-width:100%}.player-input602[data-manual=false] .input-top602>button{background:rgba(15,28,34,.65)!important}
@media(max-width:600px){body.input-glass605 .player-input602{bottom:30px;width:calc(100% - 24px);max-width:none;gap:5px 8px}.input-moves602{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.input-moves602>.input-cell648>button:not(.input-info648){min-height:44px!important;padding:6px 9px!important}.input-name603{font-size:11px}.input-meta603{font-size:8px;margin-top:2px}.input-top602>button,.input-swap602{min-height:32px!important;font-size:9px!important;padding:6px 10px!important}.input-hint602{font-size:8px;line-height:1.4;min-height:12px}body.input-glass605 .player-input602[data-manual=false]{bottom:32px}body.input-glass605 .intro-skip518,body.input-glass605 .journey-status,body.input-glass605 .pewter-cue561{bottom:calc(235px + env(safe-area-inset-bottom))!important}body.input-glass605:not(.manual-battle602) .journey-status,body.input-glass605:not(.manual-battle602) .intro-skip518{bottom:calc(125px + env(safe-area-inset-bottom))!important}}
@media(max-width:600px) and (max-height:600px){.input-moves602{grid-template-columns:repeat(4,minmax(0,1fr))}.input-name603{font-size:10px}.input-meta603{font-size:8px}.input-moves602>.input-cell648>button:not(.input-info648){padding:5px!important}.input-hint602{display:none}}
body.clean-video467 .player-input602,body.watching-replay448 .player-input602{display:none!important}
@media(prefers-reduced-transparency:reduce){.player-input602 button{background:rgba(15,28,34,.9)!important;backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-reduced-motion:no-preference){.player-input602 button{transition:background-color .12s,border-color .12s,box-shadow .12s}}

body.input-glass605 .player-input602[hidden]{display:none!important}

/* Real cooldown inside the existing card. No new row or overlay on the fight. */
.input-moves602>.input-cell648>button:not(.input-info648)::after{content:'';position:absolute;left:8px;right:8px;bottom:1px;height:2px;border-radius:2px;background:linear-gradient(90deg,#e5dfcf var(--ready607,0%),#ffffff1c var(--ready607,0%));opacity:0;pointer-events:none}.input-moves602>.input-cell648>button:not(.input-info648)[data-cooling607=true]::after{opacity:.8}
body.input-glass605 .input-state603,body.input-glass605 .input-cooldown607{display:block!important;position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
@media(prefers-reduced-motion:reduce){.input-moves602>.input-cell648>button:not(.input-info648){transition:none!important}}

/* Stable, readable move states inside the existing cards; no new arena row. */
body.input-glass605 .input-moves602 .input-state603{position:static!important;width:auto!important;height:auto!important;padding:0!important;margin:0 0 0 auto!important;clip-path:none!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:8px!important;max-width:65%;color:#f8f5f0cc}
body.input-glass605 .input-moves602 button[data-state=Ready] .input-state603{display:none!important}
body.input-glass605 .input-moves602 button[aria-pressed=true] .input-state603{color:#ffd8dc}
body.input-glass605 .input-moves602 button[data-state=Executing]{border-color:#f4e8c77a!important;background:rgba(44,49,40,.65)!important}
body.input-glass605 .input-top602>.input-tempo611{grid-column:1!important;grid-row:1!important;justify-self:end;padding:6px 9px!important;min-height:32px!important;font-size:9px!important}
body.input-glass605 .input-top602>button:not(.input-tempo611){grid-column:2!important}
body.input-glass605 .input-swap602{max-width:calc(100% - 76px)!important}
body.input-glass605 .input-moves602>.input-cell648>button:not(.input-info648){min-height:48px!important}
@media(min-width:601px){body.input-glass605 .input-top602>.input-tempo611{min-height:36px!important}}

/* Utility and type matchup share the existing metadata line. */
body.input-glass605 .input-meta603{gap:5px;min-width:0}body.input-glass605 .input-role612{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:8px;color:#eee9dfbd}body.input-glass605 .input-moves602 button:not([data-state=Ready]) .input-role612{display:none}body.input-glass605 .input-effect612{margin-left:auto;flex-shrink:0;font-size:8px;color:#ddd4c6;border-bottom:1px dotted #ffffff50}body.input-glass605 .input-effect612[data-kind="Types: super effective"]{color:#bce6ce}body.input-glass605 .input-effect612[data-kind="Types: no effect"]{color:#efb8bc}body.input-glass605 .input-moves602>.input-cell648>button:not(.input-info648){-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}body.input-glass605 .input-state603{min-width:0}body.input-glass605 .input-hint602{font-size:9px}
.move-details612{box-sizing:border-box;width:min(420px,calc(100vw - 28px));max-height:calc(100dvh - 40px);overflow:auto;padding:22px;border:1px solid #ffffff30;border-radius:18px;background:#17262e;color:#f8f5f0;box-shadow:0 18px 70px #0008;font:400 14px/1.5 system-ui}.move-details612[hidden]{display:none}.move-details612::backdrop{background:#081219a6;backdrop-filter:blur(3px)}.move-details612 h2{font:750 25px/1.15 system-ui;margin:0 0 12px;outline:none}.move-details612 p{margin:9px 0}.move-details612 .move-role612{font-weight:700;color:#f0cbd0}.move-details612 .move-stats612{display:grid;grid-template-columns:1fr auto;gap:6px 16px;margin:16px 0;padding:14px 0;border-block:1px solid #ffffff20}.move-stats612 dd{margin:0;font-weight:700}.move-details612 .move-note612{font-size:12px;color:#c5c7c6}.move-actions612{display:grid;gap:8px;margin-top:18px}.move-actions612 button{font:650 14px/1.3 system-ui;min-height:44px;padding:10px;border:1px solid #ffffff30;border-radius:10px;color:#f8f5f0;background:transparent;cursor:pointer}.move-actions612 button:first-child{background:#b52a3d;border-color:#d95263}.move-actions612 button:focus-visible{outline:2px solid #ffd166;outline-offset:2px}

/* Reserve picker appears only on request; battle remains paused behind it. */
.switch-dialog614{width:min(460px,calc(100vw - 24px));padding:20px}.switch-dialog614 h2{font-size:24px}.switch-roster614{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.switch-member614{appearance:none;display:flex;align-items:center;gap:10px;min-height:78px;text-align:left;border:1px solid #ffffff24;border-radius:11px;padding:10px;background:#ffffff05;color:#f8f5f0;font:500 12px/1.3 system-ui;cursor:pointer;min-width:0}.switch-member614:disabled{cursor:default;opacity:.5}.switch-member614[aria-pressed=true]{background:#8c263a55;border-color:#e47888;box-shadow:inset 3px 0 #e86577}.switch-member614:focus-visible{outline:2px solid #ffd166;outline-offset:2px}.switch-portrait614{width:40px;height:40px;flex-shrink:0;image-rendering:pixelated}.switch-copy614{display:grid;gap:3px;flex:1;min-width:0}.switch-copy614>strong{font-size:13px;overflow-wrap:anywhere}.switch-hp614{font-size:11px;color:#d6dcd9}.switch-life614{height:4px;background:#ffffff16;border-radius:3px;overflow:hidden}.switch-life614>i{display:block;height:100%;background:#91d8b0}.switch-reason614{color:#c6c7c5;font-size:10px}.switch-recommended614{color:#ffd166;font-size:10px}.switch-status614:not(:empty){border-left:2px solid #ffd166;padding-left:10px;font-size:12px;color:#f0d6a3}.switch-error614:not(:empty){font-size:12px;color:#ffb6c0}.switch-dialog614 .move-actions612{margin-top:12px}.switch-dialog614 button:disabled{opacity:.5;cursor:default}
@media(max-width:450px){.switch-dialog614{padding:17px}.switch-roster614{grid-template-columns:1fr;gap:6px}.switch-member614{min-height:62px;padding:8px 10px}.switch-copy614{grid-template-columns:1fr auto;gap:3px 8px}.switch-copy614>strong{grid-column:1;grid-row:1}.switch-hp614{grid-column:2;grid-row:1;align-self:center}.switch-life614{grid-column:1/-1}.switch-reason614,.switch-recommended614{grid-column:1/-1}.switch-dialog614>.move-note612{font-size:11px}}

.move-details612.switch-dialog614 .switch-member614{background:#ffffff05!important;color:#f8f5f0!important;border-color:#ffffff24!important}.move-details612.switch-dialog614 .switch-member614[aria-pressed=true]{background:#8c263a55!important;border-color:#e47888!important}

.switch-dialog614 .switch-member614:disabled{opacity:.65}

/* Decision assistance stays above the cards and appears only while the arena is paused. */
.input-decision646{position:absolute;left:0;right:0;bottom:calc(100% + 8px);padding:10px 12px;border:1px solid #e7cb9270;border-radius:10px;background:#102530f2;box-shadow:0 5px 22px #07151b50;color:#f8efdb;pointer-events:none;text-shadow:none}
.input-decision646 strong{display:block;font:750 13px/1.3 system-ui;color:#f1d59d;margin-bottom:3px}.input-decision646 span{display:block;font:500 11px/1.45 system-ui;color:#e2eaeb}
body.input-glass605 .input-moves602 .input-state603{font-size:10px!important;max-width:70%;color:#e8ecec}
body.input-glass605 .input-moves602 button[data-state=Ready] .input-state603{display:block!important;color:#bce6ce}
body.input-glass605 .input-role612{display:none!important}
body.input-glass605 .input-cooldown607{position:static!important;display:inline!important;width:auto!important;height:auto!important;padding:0!important;margin:0!important;clip-path:none!important;overflow:visible!important;font-size:10px;color:#f1d59d}
body.input-glass605 .input-hint602{font-size:10px;white-space:normal;overflow:visible;min-height:15px;line-height:1.4}
@media(max-width:600px) and (max-height:600px){.input-decision646{padding:7px 10px}.input-decision646 span{font-size:10px}}

/* Manual decisions: an explicit current/next queue plus compact base move facts. */
.input-queue647{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:6px;align-items:stretch}
.input-queue647>div,.input-queue647>.input-next647{padding:7px 9px!important;border:1px solid #ffffff24!important;border-radius:9px;background:#102530df!important;text-align:left;min-width:0;color:#e8ecec}
.input-queue647 small,.input-queue647 strong,.input-queue647 span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input-queue647 small{font:600 9px/1.4 system-ui;color:#c9d1d1}.input-queue647 strong{font:700 11px/1.5 system-ui;color:#f5e8d0}.input-queue647 span{font:500 9px/1.4 system-ui;color:#c6d8ce}.input-queue647>.input-next647{border-color:#e7cb9250!important}
.input-queue647>.input-help647{padding:5px!important;min-width:40px;min-height:44px;font-size:10px!important;align-self:stretch;background:#102530d9!important}
body.input-glass605 .input-moves602{grid-row:3}body.input-glass605 .input-hint602{grid-row:4}
body.input-glass605 .input-moves602>.input-cell648>button:not(.input-info648){min-height:68px!important}
.input-facts647{display:flex;flex-wrap:wrap;column-gap:7px;row-gap:2px;font:500 9px/1.35 system-ui;color:#d3dcd9;margin:3px 0}.input-facts647>span{white-space:nowrap}.input-facts647 .input-function647{flex-basis:100%;color:#c6d8ce;font-size:10px}
body.input-glass605 .input-meta603{flex-wrap:wrap;row-gap:3px}body.input-glass605 .input-moves602 .input-state603{max-width:100%;font-size:9px!important}
.guide-steps647{padding-left:23px;margin:18px 0}.guide-steps647 li{padding-left:4px;margin:14px 0}.guide-steps647 li::marker{color:#f1d59d;font-weight:750}.guide-steps647 strong{color:#f1d59d}.guide-steps647 p{font-size:13px;line-height:1.5}
.switch-info647{display:flex;gap:5px;flex-wrap:wrap}.switch-info647 small{font-size:10px;color:#d1ddd9}.switch-info647 .switch-condition647,.switch-condition647{font-size:10px;color:#f1d59d}.switch-advantage647{font-size:10px;color:#c3e7d3}.switch-option647{font-size:10px;color:#d4dcd8}.switch-dialog614 .switch-info647,.switch-dialog614 .switch-advantage647,.switch-dialog614 .switch-option647,.switch-dialog614 .switch-condition647{grid-column:1/-1}
@media(max-width:600px){body.input-glass605 .input-moves602>.input-cell648>button:not(.input-info648){min-height:78px!important;padding:7px 8px!important}.input-facts647{column-gap:5px;font-size:9px}.input-queue647 strong{font-size:10px}.input-queue647>div,.input-queue647>.input-next647{padding:5px 7px!important}body.input-glass605 .intro-skip518,body.input-glass605 .journey-status{bottom:calc(340px + env(safe-area-inset-bottom))!important}}
@media(max-width:600px) and (max-height:600px){body.input-glass605 .input-moves602{grid-template-columns:repeat(2,minmax(0,1fr))}.input-queue647 span{display:none}.input-facts647 .input-function647{flex-basis:auto}body.input-glass605 .input-moves602>.input-cell648>button:not(.input-info648){min-height:60px!important}.input-decision646 span{font-size:10px}}

/* Keep reserve confirmation within reach, with a separately scrollable team list. */
.switch-dialog614 .switch-roster614{max-height:min(36dvh,360px);overflow-y:auto;overscroll-behavior:contain;padding:2px;scrollbar-width:thin}.switch-dialog614 .move-actions612{position:sticky;bottom:-20px;z-index:1;padding:10px 0 3px;background:#17262e}.move-details612.switch-dialog614 .switch-member614:disabled{opacity:.8}

/* Compact live controls keep the full comparison available while deciding. */
.input-queue647{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.input-queue647>.input-repeat648{grid-column:1/-1;min-height:32px!important;font-size:10px!important;padding:5px!important;background:#102530df!important}.input-inspect648{grid-column:1/-1;grid-row:4;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;pointer-events:auto}.input-inspect648 button{min-height:32px!important;font-size:10px!important;padding:5px!important}body.input-glass605 .input-hint602{grid-row:5}.input-receipt648,.input-result648{grid-column:1/-1;margin:0;font:600 10px/1.4 system-ui;color:#d5e7dc}.input-receipt648{grid-row:6}.input-result648{grid-row:7;color:#efd7a4}.player-input602[data-compact648=true] .input-facts647{display:none}.player-input602[data-compact648=true] .input-current647>span{display:none}body.input-glass605 .player-input602[data-compact648=true] .input-moves602>.input-cell648>button:not(.input-info648){min-height:48px!important}.input-inspect648 button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input-repeat648[aria-pressed=true]{border-color:#f1d59d!important}.input-receipt648 strong{color:#c2f0d2}
@media(max-width:600px){.input-inspect648{grid-template-columns:repeat(4,minmax(0,1fr))}.input-inspect648 button{min-height:32px!important}}

.input-cell648{position:relative;min-width:0;display:grid}.input-cell648>button:not(.input-info648){width:100%;height:100%;box-sizing:border-box}.input-cell648 .input-name603{padding-right:27px;min-height:22px}.player-input602 .input-cell648>.input-info648{position:absolute;right:1px;top:1px;width:30px;min-height:30px!important;height:30px!important;padding:0!important;border:0!important;background:transparent!important;font:700 17px system-ui!important;text-align:center;z-index:1}.input-inspect648{display:none!important}
.input-queue647>.input-current647,.input-queue647>.input-next647{grid-row:1/span 2}.input-queue647>.input-help647{grid-column:3;grid-row:1;min-height:25px!important;padding:3px 6px!important}.input-queue647>.input-repeat648{grid-column:3;grid-row:2;min-height:25px!important;padding:3px 6px!important;font-size:9px!important}.input-queue647{column-gap:6px;row-gap:3px}.player-input602[data-compact648=true] .input-cell648>button:not(.input-info648){min-height:54px!important}

/* A single contextual line replaces competing receipts and outcome notices. */
.input-result648{grid-row:6;font-size:10px;line-height:1.4;max-height:2.8em;overflow:hidden}.input-result648[data-kind649=received]{color:#c2f0d2}.input-result648[data-kind649=interruption]{color:#f3d59d}.input-result648[data-kind649=opponent]{color:#e0d9cf}.input-result648 strong{font-weight:650}

/* The queue, button and help already explain the tactical pause. Preserve its
   status announcement without placing another banner over a fighter. */
body.input-glass605 .player-input602 .input-decision646{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;bottom:0!important;left:0!important;right:auto!important;box-shadow:none!important}
.player-input602[data-decision646=true] .input-next647{border-color:#e7cb92!important}

/*671: action readiness and confirmed outcomes stay readable in the existing controls. */
body.input-glass605 .player-input602 .input-current647>span{display:block!important;white-space:normal;line-height:1.35}
body.input-glass605 .player-input602 .input-hint602{display:block;box-sizing:border-box;background:#102530ed;border-left:3px solid #91b7c6;border-radius:6px;padding:6px 9px;min-height:43px;font-size:11px;line-height:1.35;white-space:normal;overflow:visible;text-shadow:none}
.player-input602 .input-hint602>.input-confirm604{display:block;font-size:12px;color:#f6eee0;margin-bottom:2px}
.player-input602 .input-hint602>span{display:block;color:#dbe4e5}
.player-input602 .input-hint602[data-kind671=ready]{border-color:#9ae0b4}
.player-input602 .input-hint602[data-kind671=ready]>.input-confirm604{color:#bdf0cd}
.player-input602 .input-hint602[data-kind671=blocked],.player-input602 .input-hint602[data-kind671=cooldown]{border-color:#f2cb80}
.player-input602 .input-hint602[data-kind671=preparing],.player-input602 .input-hint602[data-kind671=executing]{border-color:#e6b4be}
.player-input602 .input-result648{font-size:11px;line-height:1.4;max-height:none;min-height:1.4em;color:#f4dfb3;white-space:normal;overflow:visible}
body.input-glass605 .player-input602 .input-moves602 button[data-state=Cooldown] .input-state603{color:#f2d69f}
@media(max-height:600px){body.input-glass605 .player-input602 .input-hint602{font-size:10px;padding:4px 7px;min-height:37px}.player-input602 .input-hint602>.input-confirm604{font-size:11px}.player-input602 .input-result648{font-size:10px}}
/* Short phones keep the decision text and all four attacks; exact base facts
   remain in the info card instead of consuming the fighting area. */
@media(max-width:600px) and (max-height:650px){
 .player-input602 .input-facts647{display:none!important}
 body.input-glass605 .player-input602 .input-moves602>.input-cell648>button:not(.input-info648){min-height:64px!important;padding:6px 8px!important}
 .player-input602 .input-name603{font-size:11px;min-height:22px}
 .player-input602 .input-meta603{font-size:9px;gap:4px}
}
/* Give Info its own tap area: it must never cover a move name or state. */
.player-input602 .input-cell648{grid-template-columns:minmax(0,1fr) 44px;gap:0}
.player-input602 .input-cell648 .input-name603{padding-right:0}
.player-input602 .input-cell648>button:not(.input-info648){border-radius:9px 0 0 9px!important;border-right:0!important}
.player-input602 .input-cell648>.input-info648{position:static;width:44px;height:100%!important;min-height:44px!important;border:1px solid #ffffff30!important;border-left:1px solid #ffffff18!important;border-radius:0 9px 9px 0!important;background:#102530b8!important}

/*676: thumb-sized phone actions, secondary controls on request. */
.input-options676{display:none!important}
.manual-options676 .move-actions612{grid-template-columns:1fr 1fr}.manual-options676 .move-actions612 button{min-height:48px}.manual-options676 .move-actions612 button:last-child{grid-column:1/-1}.manual-options676 button[aria-pressed=true]{border-color:#eed493;background:#574b2b}
.move-details612[hidden]{display:none!important}
.move-details612[open]:has(>.move-scroll676),.switch-dialog614[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 28px);overflow:hidden;gap:0}
.move-scroll676{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:4px;scrollbar-width:thin}
.move-details612:has(>.move-scroll676)>.move-actions612{flex:0 0 auto;grid-template-columns:1fr 1fr;padding-top:10px;margin-top:6px;border-top:1px solid #ffffff20}.move-details612:has(>.move-scroll676)>.move-actions612 button{min-height:48px}
.switch-dialog614[open]{padding:16px;box-sizing:border-box}.switch-dialog614>h2{flex-shrink:0;margin-bottom:5px}.switch-dialog614>.move-note612{font-size:11px;margin:5px 0}.switch-dialog614>.switch-status614{flex-shrink:0;margin:6px 0}.switch-dialog614>.switch-status614:empty,.switch-dialog614>.switch-error614:empty{display:none}.switch-dialog614 .switch-roster614{flex:1 1 auto;min-height:0;max-height:none;margin:8px 0;align-content:start;scroll-padding:4px}.switch-dialog614>.move-actions612{position:static;flex:0 0 auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin:5px 0 0;padding:9px 0 0;border-top:1px solid #ffffff20}.switch-dialog614>.move-actions612 button{min-height:48px;white-space:normal;overflow-wrap:anywhere}.switch-help676{flex-shrink:0;margin-top:6px;font-size:11px}.switch-help676 summary{min-height:32px;align-content:center;cursor:pointer}.switch-help676 p{font-size:11px}.switch-dialog614 .switch-member614{scroll-margin:4px}
@media(min-width:380px){.switch-dialog614 .switch-roster614{grid-template-columns:repeat(2,minmax(0,1fr))}.switch-dialog614 .switch-member614{flex-direction:column;align-items:stretch;gap:5px;padding:8px}.switch-dialog614 .switch-portrait614{width:30px;height:30px}.switch-dialog614 .switch-copy614{display:grid;grid-template-columns:1fr;gap:3px}.switch-dialog614 .switch-copy614>*{grid-column:1!important;grid-row:auto!important}}
@media(max-width:600px),(max-width:1000px) and (max-height:500px){
 body.input-glass605 .player-input602[data-manual=true]{width:calc(100% - 16px);gap:4px 8px}
 .player-input602[data-manual=true] .input-top602>button:not(.input-options676),.player-input602[data-manual=true] .input-help647,.player-input602[data-manual=true] .input-repeat648{display:none!important}
 body.input-glass605 .player-input602[data-manual=true] .input-options676{display:block!important;grid-column:2!important;grid-row:1!important;min-height:44px!important;padding:9px 12px!important;font-size:12px!important}
 body.input-glass605 .player-input602[data-manual=true] .input-swap602{grid-column:1;grid-row:1;max-width:none!important;width:100%;min-height:44px!important;font-size:12px!important;padding:9px!important}
 .player-input602 .input-queue647{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px}
 .player-input602 .input-queue647>.input-current647,.player-input602 .input-queue647>.input-next647{grid-row:1!important;min-height:44px!important;padding:4px 7px!important;box-sizing:border-box}
 body.input-glass605 .player-input602 .input-current647>span{display:none!important}
 .player-input602 .input-queue647[data-empty676=true]{display:none}
 .player-input602 .input-facts647{display:none!important}
 body.input-glass605 .player-input602 .input-moves602>.input-cell648>button:not(.input-info648){min-height:56px!important;padding:6px 7px!important}
 .player-input602 .input-name603{font-size:12px;min-height:0}.player-input602 .input-meta603{font-size:9px;gap:4px}.player-input602 .input-cell648>.input-info648{min-height:56px!important}
 body.input-glass605 .player-input602 .input-hint602{font-size:10px;padding:5px 7px;min-height:36px}.player-input602 .input-hint602>.input-confirm604{font-size:11px;margin:0}
 .player-input602 .input-result648{font-size:10px;line-height:1.35}
 .manual-battle602 .first-cue564[data-kind676=welcome]{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;border:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;box-shadow:none!important}
}
/* Reserve rows keep their intrinsic height inside the scrolling grid. */
.switch-dialog614 .switch-roster614{grid-auto-rows:max-content!important}.switch-dialog614 .switch-member614{height:auto!important;min-height:76px;box-sizing:border-box}
/* Short landscape phones give the controls a separate side column. */
@media(min-width:601px) and (max-width:1000px) and (max-height:500px){
 body.input-glass605.manual-battle602 .stage{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(320px,44%);column-gap:8px;align-items:start}
 body.input-glass605.manual-battle602 .stage>#lab-canvas{grid-column:1;grid-row:1;min-width:0;width:100%!important;max-width:100%;object-fit:contain}
 body.input-glass605.manual-battle602 .stage>.stage-footer{grid-column:1;grid-row:2;min-width:0}
 body.input-glass605.manual-battle602 .stage>.player-input602{position:relative!important;grid-column:2;grid-row:1/span 2;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain;pointer-events:auto;padding:6px!important;background:#102530ed!important;border-radius:10px!important;scrollbar-width:thin}
 body.input-glass605.manual-battle602 .player-input602::before{display:none}
 body.input-glass605.manual-battle602 .player-input602 .input-moves602{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/*714: clear decision state and stable mobile tap targets; action area stays outside canvas. */
.player-input602[data-decision646=true] .input-top602{border-left:3px solid #f1c979;padding-left:8px}.player-input602[data-decision646=true] .input-top602>span{color:#ffe3ad!important}.player-input602 .input-swap602{min-height:44px!important}.switch-dialog614 .move-actions612{position:sticky;bottom:0;background:#102530;padding:8px 0;z-index:2}.switch-dialog614 .switch-member614{min-height:64px!important}.player-input602 .input-cell648>button{touch-action:manipulation}.player-input602 .input-cell648>button:focus-visible{outline:3px solid #f6d79b;outline-offset:2px}@media(max-width:600px){.player-input602 .input-name603{font-size:12px!important;line-height:1.25;white-space:normal!important}.player-input602 .input-top602>span{font-size:11px!important}.player-input602 .input-cell648>button:not(.input-info648){min-height:66px!important}.switch-dialog614{max-height:calc(100dvh - 24px)!important;overflow-y:auto;overscroll-behavior:contain}}
/*771: stable touch targets, clear queue and room for safe-area insets. */
.player-input602 .input-cell648{min-width:0}.player-input602 .input-cell648>button:not(.input-info648){user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:pan-y}.player-input602 .input-info648{min-width:44px;min-height:44px;touch-action:manipulation}.player-input602 .input-current647 strong,.player-input602 .input-next647 strong{overflow-wrap:anywhere}.player-input602 .input-next647:not(:disabled){border:2px solid #e9c775}.move-details612 button{touch-action:manipulation}@media(max-width:600px){body.input-glass605.manual-battle602 .player-input602{padding-bottom:max(8px,env(safe-area-inset-bottom))!important}.player-input602 .input-moves602{gap:8px!important}.player-input602 .input-cell648>button:not(.input-info648){min-height:74px!important}.player-input602 .input-name603{font-size:13px!important}.player-input602 .input-receipt648{min-height:20px}.switch-dialog614 .move-actions612 button{min-height:48px;white-space:normal}.move-details612{scroll-padding-bottom:85px}}
@media(max-width:600px){body.input-glass605.manual-battle602 .player-input602 .input-cell648>button:not(.input-info648){min-height:74px!important}body.input-glass605.manual-battle602 .player-input602 .input-info648{min-width:44px!important;min-height:44px!important}body.input-glass605.manual-battle602 .player-input602 .input-name603{font-size:13px!important}}
