/* Battle-specific final layer: actual Shutdown PNG/UV, not the obsolete HGSS silver HUD.
 * This file is last in the cascade so mobile landscape does not stack command rows. */
#battle-dialog.battle-window-solid .battle-stage .combat-card.hgss-box.battle-modern-hud{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 box-sizing:border-box!important;width:clamp(240px,32%,354px)!important;height:110px!important;
 min-width:0!important;min-height:0!important;max-width:calc(50% - 12px)!important;
 max-height:calc(100% - 20px)!important;padding:8px 12px!important;margin:0!important;gap:3px!important;
 border:8px solid transparent!important;border-image:url("../theme/pal/battle/chrome/slot.png?v=pal1") 8 fill / 8px / 0 stretch!important;
 border-radius:0!important;background:#1e2941!important;background-image:none!important;
 box-shadow:none!important;overflow:visible!important;color:#fff3dc!important;
 font:700 13px/1.15 Arial,sans-serif!important;isolation:isolate;
}
#battle-dialog.battle-window-solid .battle-stage.hgss .combat-card.battle-modern-hud.enemy,
#battle-dialog.battle-window-solid .battle-stage.hgss .combat-card.battle-modern-hud.enemy.mirrored{
 left:12px!important;right:auto!important;top:13px!important;bottom:auto!important;
}
#battle-dialog.battle-window-solid .battle-stage.hgss .combat-card.battle-modern-hud.you{
 right:12px!important;left:auto!important;bottom:13px!important;top:auto!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud :is(.hgss-box-art,.hgss-box-art-hp){display:none!important}
#battle-dialog.battle-window-solid .battle-modern-hud .party-name{
 position:relative!important;inset:auto!important;order:1!important;
 display:flex!important;flex:none!important;align-items:center!important;
 justify-content:flex-start!important;gap:5px!important;width:100%!important;height:22px!important;
 min-width:0!important;min-height:0!important;margin:0!important;padding:0 0 3px!important;
 overflow:hidden!important;border-bottom:1px solid #79513d!important;color:#fff3dc!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud .combat-name-wrap{
 flex:0 1 auto!important;min-width:0!important;max-width:100%!important;padding-right:8px!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud .combat-name{
 min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
 color:#fff3dc!important;text-shadow:1px 1px 0 #141b2b!important;
 font:700 16px/20px Arial,sans-serif!important;letter-spacing:0!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud .party-name.name-fit-1 .combat-name{font-size:15px!important}
#battle-dialog.battle-window-solid .battle-modern-hud .party-name.name-fit-2 .combat-name{font-size:14px!important}
#battle-dialog.battle-window-solid .battle-modern-hud .party-name.name-fit-3 .combat-name{font-size:13px!important}
#battle-dialog.battle-window-solid .battle-modern-hud .party-name .combat-level{
 flex:none!important;margin-left:auto!important;white-space:nowrap!important;
 color:#ffe0a8!important;text-shadow:1px 1px 0 #141b2b!important;
 font:700 14px/20px Arial,sans-serif!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud .combat-gender{flex:none!important;width:16px!important;height:16px!important}
#battle-dialog.battle-window-solid .battle-modern-hud .combat-caught{flex:none!important;width:12px!important;height:12px!important}
#battle-dialog.battle-window-solid .battle-modern-hud .party-meta{
 position:static!important;inset:auto!important;order:2!important;display:flex!important;
 flex:none!important;align-items:center!important;justify-content:space-between!important;
 width:100%!important;height:17px!important;min-width:0!important;
 margin:0!important;padding:0!important;gap:8px!important;border:0!important;
 background:transparent!important;box-shadow:none!important;text-shadow:none!important;
 color:#e7cda2!important;font:700 12px/16px Arial,sans-serif!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud .combat-status,
#battle-dialog.battle-window-solid .battle-modern-hud .combat-status.none{
 position:static!important;inset:auto!important;display:inline!important;visibility:visible!important;
 padding:0!important;border:0!important;background:transparent!important;
 color:#e7cda2!important;text-shadow:none!important;font:700 11px/16px Arial,sans-serif!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud .combat-hp{
 position:static!important;inset:auto!important;display:inline-flex!important;
 align-items:center!important;gap:3px!important;width:auto!important;height:auto!important;white-space:nowrap!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud .combat-hp :is(.hp-now,.hp-max,.hp-sep){
 position:static!important;inset:auto!important;display:inline!important;margin:0!important;padding:0!important;
 color:#fff3dc!important;text-shadow:none!important;font:700 12px/16px Arial,sans-serif!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud .combat-hp .hp-sep{color:#b79e88!important}
#battle-dialog.battle-window-solid .battle-modern-hud>.hp-track{
 position:static!important;inset:auto!important;order:3!important;display:block!important;
 flex:none!important;width:100%!important;height:7px!important;min-height:7px!important;
 margin:0!important;border:1px solid #6b493b!important;border-radius:0!important;
 background:#141b2b!important;overflow:hidden!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud>.hp-track .hp-fill{
 height:100%!important;min-height:0!important;border-radius:0!important;
 background:#57c98d!important;transition:width .55s steps(20,end)!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud>.hp-track .hp-fill.low{background:#e6c354!important}
#battle-dialog.battle-window-solid .battle-modern-hud>.hp-track .hp-fill.critical{background:#c97869!important}
#battle-dialog.battle-window-solid .battle-modern-hud .combat-traits{
 position:static!important;inset:auto!important;order:4!important;display:flex!important;
 flex:0 1 auto!important;align-items:center!important;gap:5px!important;
 width:100%!important;max-width:100%!important;height:23px!important;min-width:0!important;min-height:0!important;
 margin:0!important;padding:0!important;white-space:nowrap!important;overflow:hidden!important;
 border:0!important;border-image:none!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud .combat-types{
 display:inline-flex!important;flex:none!important;gap:3px!important;min-width:0!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud .combat-types .battle-type-chip{
 flex:none!important;height:21px!important;max-width:90px!important;padding:0 3px 0 1px!important;
 border-width:4px!important;border-image-width:4px!important;font:700 11px/14px Arial,sans-serif!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud .battle-type-icon{width:15px!important;height:15px!important}
#battle-dialog.battle-window-solid .battle-modern-hud .combat-nature{
 min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;
 white-space:nowrap!important;color:#e7cda2!important;font:400 12px/18px Arial,sans-serif!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud .hgss-exp{
 position:static!important;order:5!important;flex:none!important;width:100%!important;height:2px!important;margin:0!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud .hgss-exp-fill{background:#e6c354!important}
#battle-dialog.battle-window-solid .battle-modern-hud .battle-balls{
 z-index:2!important;position:absolute!important;top:-15px!important;bottom:auto!important;
 right:8px!important;left:auto!important;display:flex!important;gap:3px!important;margin:0!important;padding:0 3px!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud .battle-ball{width:15px!important;height:15px!important}
#battle-dialog.battle-window-solid .battle-modern-hud .boss-badge{z-index:3;top:-13px!important}
#battle-dialog.battle-window-solid .battle-modern-hud .boss-segments{
 position:static!important;order:6!important;width:100%!important;margin:0!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud.battle-inspect-toggle:is(:hover,:focus-visible,[aria-pressed="true"]){
 border-image-source:url("../theme/pal/battle/chrome/slot-active.png?v=pal1")!important;filter:none!important;
}
/* Translate/scale do not touch sprite transform (the mirrored-back image or WAAPI moves). */
@keyframes battle-responsive-bob{0%,100%{translate:0 0}25%,75%{translate:0 3px}50%{translate:0 6px}}
/* feature:sprites (20261021): the foe breathes by rising whole pixels, never by squashing: a non-uniform `scale` stretched the picture (and its pixel rows) every few seconds. */
@keyframes battle-responsive-breathe{
 0%,40%,100%{translate:0 0}20%,60%{translate:0 -3px}
 74%{translate:0 0}80%{translate:0 -5px}88%{translate:0 0}
}
#battle-dialog.battle-window-solid .battle-stage.idle .battle-sprite.you:not(.fainted-out),
#battle-dialog.battle-window-solid .battle-stage.idle .combat-card.you:not(.fainted-out){
 animation:battle-responsive-bob 1.2s steps(2,end) infinite!important;
}
#battle-dialog.battle-window-solid .battle-stage.idle .battle-sprite.enemy:not(.fainted-out){
 transform-origin:50% 100%;animation:battle-responsive-breathe 3s ease-in-out infinite!important;
}
/* Mobile landscape: do not stack a tall message over commands or let cards escape the scene. */
body.mobile-web #battle-dialog.battle-window-solid{
 box-sizing:border-box!important;width:min(98dvw,1100px)!important;height:min(96dvh,720px)!important;
 max-width:98dvw!important;max-height:96dvh!important;
 --battle-header-height:clamp(38px,10dvh,48px);--battle-controls-height:clamp(132px,40dvh,172px);
}
body.mobile-web #battle-dialog.battle-window-solid #battle-content{
 grid-template-rows:var(--battle-header-height) minmax(0,1fr) var(--battle-controls-height)!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-head{
 display:flex!important;align-items:center!important;min-width:0!important;
 overflow:hidden!important;padding:2px 7px!important;gap:5px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-head>div:first-child{
 min-width:0!important;max-width:calc(100% - 94px)!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-head .eyebrow{
 font-size:10px!important;line-height:12px!important;white-space:nowrap!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-head h2{
 margin:0!important;font-size:12px!important;line-height:15px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-head .pill{
 font-size:11px!important;line-height:14px!important;padding:1px 4px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-stage .combat-card.hgss-box.battle-modern-hud{
 width:clamp(162px,34%,218px)!important;height:71px!important;
 max-width:calc(50% - 7px)!important;max-height:calc(50% - 9px)!important;
 padding:4px 6px 3px!important;gap:1px!important;
 border-width:5px!important;border-image-width:5px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-stage.hgss .combat-card.battle-modern-hud.enemy,
body.mobile-web #battle-dialog.battle-window-solid .battle-stage.hgss .combat-card.battle-modern-hud.enemy.mirrored{
 left:5px!important;top:6px!important;right:auto!important;bottom:auto!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-stage.hgss .combat-card.battle-modern-hud.you{
 right:5px!important;bottom:6px!important;left:auto!important;top:auto!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .party-name{
 height:17px!important;padding-bottom:1px!important;gap:2px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .combat-name{
 font-size:12px!important;line-height:15px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .party-name:is(.name-fit-2,.name-fit-3) .combat-name{
 font-size:11px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .party-name .combat-level{
 font-size:11px!important;line-height:15px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .combat-gender{width:11px!important;height:11px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .combat-caught{width:10px!important;height:10px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .party-meta{
 height:13px!important;font-size:11px!important;line-height:13px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .combat-status,
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .combat-hp :is(.hp-now,.hp-max,.hp-sep){
 font-size:11px!important;line-height:13px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud>.hp-track{height:5px!important;min-height:5px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .combat-traits{height:20px!important;gap:2px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .combat-types .battle-type-chip{
 height:18px!important;max-width:60px!important;font-size:10px!important;line-height:12px!important;
 gap:1px!important;padding:0 1px!important;border-width:3px!important;border-image-width:3px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .battle-type-icon{width:11px!important;height:11px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .combat-nature{font-size:10px!important;line-height:15px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .battle-balls{
 top:-11px!important;right:3px!important;gap:1px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .battle-ball{width:11px!important;height:11px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-controls.text-box:not(.playing){
 display:grid!important;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important;
 grid-template-rows:minmax(0,1fr)!important;min-height:0!important;gap:4px!important;padding:3px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-controls.text-box.playing{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-message{
 min-height:0!important;height:100%!important;overflow-y:auto!important;
 padding:7px 15px 6px 8px!important;font-size:12px!important;line-height:1.28!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-choice-panel{
 display:block!important;height:100%!important;min-height:0!important;min-width:0!important;
 padding:3px!important;overflow:hidden!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-menu{
 min-width:0!important;min-height:0!important;gap:3px!important;overflow-y:auto!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-cmd-grid,
body.mobile-web #battle-dialog.battle-window-solid .battle-menu[data-menu="fight"] .move-grid{
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:3px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-cmd,
body.mobile-web #battle-dialog.battle-window-solid .battle-menu .move-button{
 height:100%!important;min-height:0!important;min-width:0!important;
 padding:2px 5px!important;gap:3px!important;border-width:5px!important;border-image-width:5px!important;
 transform:none!important;scale:none!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-cmd:is(:hover,:active,:focus-visible),
body.mobile-web #battle-dialog.battle-window-solid .battle-menu .move-button:is(:hover,:active,:focus-visible){
 transform:none!important;scale:none!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-cmd-glyph{flex:none!important;width:20px!important;height:20px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-command-icon{width:20px!important;height:20px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-cmd strong{font-size:11px!important;line-height:14px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-menu .move-button>strong{font-size:11px!important;line-height:13px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-menu .move-button>small{font-size:10px!important;gap:3px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-menu .move-button .battle-type-chip{height:18px!important;font-size:10px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-menu .move-button .battle-type-icon{width:12px!important;height:12px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-menu-head{flex-basis:25px!important;min-height:25px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-party-list{
 grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:46px!important;
 gap:3px!important;overflow-y:auto!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-party-card{height:46px!important;min-height:46px!important;max-height:46px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-party-card img.battle-partner-art{width:32px!important;height:32px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-stage .battle-inspect{
 width:min(275px,44%)!important;max-width:calc(50% - 9px)!important;
 max-height:calc(100% - 10px)!important;padding:5px!important;border-width:5px!important;border-image-width:5px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-stage .battle-inspect.enemy{
 left:5px!important;right:auto!important;top:5px!important;bottom:auto!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-stage .battle-inspect.you{
 right:5px!important;left:auto!important;bottom:5px!important;top:auto!important;
}
@media(max-height:370px){
 body.mobile-web #battle-dialog.battle-window-solid{
  --battle-controls-height:clamp(124px,43dvh,144px);--battle-header-height:37px;
 }
 body.mobile-web #battle-dialog.battle-window-solid .battle-stage .combat-card.hgss-box.battle-modern-hud{
  height:60px!important;max-height:calc(50% - 7px)!important;padding:2px 5px!important;gap:0!important;
 }
 body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .party-name{height:15px!important}
 body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .party-meta{height:12px!important}
 body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .combat-traits{height:17px!important}
 body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .battle-balls{top:-9px!important}
 body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .battle-ball{width:9px!important;height:9px!important}
 body.mobile-web #battle-dialog.battle-window-solid .battle-message{font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){
 #battle-dialog.battle-window-solid .battle-stage.idle .battle-sprite,
 #battle-dialog.battle-window-solid .battle-stage.idle .combat-card{
  animation:none!important;translate:none!important;scale:none!important;
 }
}

/* The legacy native-box rule had !important + five classes. Beat it explicitly:
 * a dark name or HP value on the dark PNG plate is unreadable. */
#battle-dialog.battle-window-solid .battle-stage .combat-card.hgss-box.battle-modern-hud :is(.combat-name,.combat-level,.hp-now,.hp-max,.hp-sep){
 color:#fff3dc!important;text-shadow:1px 1px 0 #141b2b!important;
}
#battle-dialog.battle-window-solid .battle-stage .combat-card.hgss-box.battle-modern-hud .party-meta{
 color:#e7cda2!important;text-shadow:none!important;
}
#battle-dialog.battle-window-solid .battle-stage .combat-card.hgss-box.battle-modern-hud .combat-hp .hp-sep{
 color:#b79e88!important;text-shadow:none!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-controls.text-box.playing .battle-choice-panel{
 display:none!important;
}

/* Opponent party indicators belong beneath the top-left plate, never cut by
 * the stage's top clipping edge; own party indicators stay above the lower plate. */
#battle-dialog.battle-window-solid .battle-stage .battle-modern-hud.enemy .battle-balls{
 top:calc(100% + 1px)!important;bottom:auto!important;left:5px!important;right:auto!important;
}

/* Fieldset is also the menu: it must really be flex for the 2×2 command grid
 * to claim its reserved dock height instead of deriving zero-height rows. */
#battle-dialog.battle-window-solid .battle-choice-panel.battle-menu{
 display:flex!important;flex-direction:column!important;min-height:0!important;
}
#battle-dialog.battle-window-solid .battle-controls.text-box.playing .battle-choice-panel.battle-menu{
 display:none!important;
}
#battle-dialog.battle-window-solid .battle-menu[data-menu="root"] .battle-cmd-grid,
#battle-dialog.battle-window-solid .battle-menu[data-menu="fight"] .move-grid{
 flex:1 1 auto!important;min-height:0!important;
}

/* feature:battle-sync-status-menu (Work-ID 20260930-battle-sync-status-menu-7ad9; Trello "batalha", zenux 2026-09-30:
 * "voltou a cortar as informações"). Three regressions, all paint/box fixes, loaded last:
 *  1. The HP boxes had a fixed height (110 / 71 / 60 px) that the rows no longer fit since the EXP bar and the type chips grew
 *     (22+17+9+23 px plus gaps plus the 2 px EXP bar): flex squeezed the chip row and cut the chips' bottom edge. A box now takes
 *     the height of its rows (auto) and no row may shrink.
 *  2. The foe box's HP label kept the old mirrored-plate `transform:translateY(-50%)` and rode up onto the name's underline.
 *  3. A long name (a Mega form, "Mega Charizard X") takes one more size step (name-fit-4) before it ever ellipsizes.
 * Paint and box only; no hover/focus rule touches a size (AGENTS.md "Absolute UI hover geometry"). */
#battle-dialog.battle-window-solid .battle-stage .combat-card.hgss-box.battle-modern-hud{
 height:auto!important;min-height:0!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud>*{flex-shrink:0!important}
#battle-dialog.battle-window-solid .battle-modern-hud>.battle-balls{flex-shrink:1!important}
#battle-dialog.battle-window-solid .battle-modern-hud .party-name,
#battle-dialog.battle-window-solid .battle-modern-hud .party-meta,
#battle-dialog.battle-window-solid .battle-modern-hud .combat-traits,
#battle-dialog.battle-window-solid .battle-modern-hud>.hp-track,
#battle-dialog.battle-window-solid .battle-modern-hud>.hgss-exp{flex:none!important}
#battle-dialog.battle-window-solid .battle-stage .combat-card.hgss-box.enemy.mirrored .combat-status,
#battle-dialog.battle-window-solid .battle-stage .combat-card.hgss-box .combat-status{
 position:static!important;left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;
 transform:none!important;translate:none!important;margin:0!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud .party-name.name-fit-4 .combat-name{font-size:12px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .party-name.name-fit-4 .combat-name{font-size:10px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-stage .combat-card.hgss-box.battle-modern-hud{height:auto!important}
#battle-dialog.battle-window-solid .battle-modern-hud .combat-traits{
 flex-wrap:wrap!important;height:auto!important;min-height:23px!important;overflow:visible!important;
 align-content:flex-start!important;row-gap:2px!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud .combat-types .battle-type-chip{max-width:none!important}
#battle-dialog.battle-window-solid .battle-modern-hud .combat-nature{flex:0 1 auto!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .combat-traits{min-height:20px!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .combat-types .battle-type-chip{max-width:none!important}
@media(max-height:370px){
 body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .combat-traits{min-height:17px!important;height:auto!important}
}
/* The phone header gave its two lines (eyebrow + title) less room than they need: the eyebrow's top was cut off. */
body.mobile-web #battle-dialog.battle-window-solid{--battle-header-height:clamp(46px,12dvh,52px)}
@media(max-height:370px){
 body.mobile-web #battle-dialog.battle-window-solid{--battle-header-height:44px}
}
@media(max-height:540px){
 body:not(.mobile-web) #battle-dialog.battle-window-solid{--battle-header-height:54px}
}
/* A short phone stage capped the box at half its height; the box (rows + EXP bar) is taller than that, so its bottom was cut. */
body.mobile-web #battle-dialog.battle-window-solid .battle-stage .combat-card.hgss-box.battle-modern-hud{max-height:calc(100% - 10px)!important}

/* Work-ID 20261022-ui-sweep (zenux, "as habilidades na batalha estao desconfiguradas"): on a landscape phone
 *  1. the type chips + nature + held-item chip wrap onto a second line (196px box) but the row kept height:20px, so the card ended above the wrapped line and cut "Natureza: ..." and the held item;
 *  2. the Fight menu title (LUTAR) took 44px (5px borders + 6px padding + 20px line), so the second row of the 2 x 2 move grid was cut and the dock scrolled; it is a 24px ribbon now.
 * Boxes of non-interactive rows only; no control changes size in any state. */
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .combat-traits{height:auto!important}
body.mobile-web #battle-dialog#battle-dialog.battle-window-solid .battle-menu[data-menu="fight"] .battle-menu-head{flex-basis:24px!important;min-height:24px!important;height:24px!important;padding:0 8px!important;border-width:3px!important;border-image-width:3px!important}
body.mobile-web #battle-dialog#battle-dialog.battle-window-solid .battle-menu[data-menu="fight"] .battle-menu-head h3{line-height:16px!important;font-size:12px!important}
