.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-scene>.pq-panel.pq-battle-panel166{--pq-battle-dock250:right;left:auto;right:10px;top:10px;bottom:auto;transform:none;width:min(410px,42%);max-width:calc(100% - 20px);max-height:calc(100% - 20px);overflow-y:auto;overscroll-behavior:contain;grid-template-areas:"name clock" "actions actions" "stats stats" "intent intent" "cargo cargo";align-content:start;scrollbar-gutter:stable}
.pq-app .pq-battle-panel166>h2{overflow-wrap:break-word;min-width:0}
.pq-app .pq-battle-panel166>.pq-battle-actions .pq-button{min-height:44px}
/* The existing command guard disables these controls during the animation.
   Keep them visible in place instead of making the control grid disappear. */
.pq-app.pq-layout146.pq-in-battle.pq-presenting:has(.pq-welcome[hidden]) .pq-battle-panel166>:is(.pq-battle-actions,.pq-battle-clock){visibility:visible}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-battle-panel166.pq-arriving{animation:pq-choice-glow .34s ease-out;transform:none}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-battle-panel166>.pq-battle-clock{position:static;inset:auto;transform:none;min-width:0;max-width:100%;min-height:calc(var(--pq-font-meta) * 1.2 + var(--pq-font-timer) * 1.05 + 14px);align-self:start}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-battle-clock:has(>.gr-countdown)>span{display:none}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-battle-clock>.gr-countdown{position:static;inset:auto;transform:none;min-width:0;max-width:100%;margin:0;padding:5px 8px}
/* Both captions use the same bounded top lane. Its complete height is always
   reserved by reserve(), whether either notice is currently visible or not. */
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) :is(.pq-scene>.pq-presentation-note,.pq-stage>.pq-toast){left:10px;right:auto;top:8px;bottom:auto;width:var(--pq-battle-caption-width250,calc(100% - 20px));max-width:none;max-height:var(--pq-battle-caption-height250,80px);transform:none;box-sizing:border-box;padding:6px 10px;overflow-y:auto;overscroll-behavior:contain;pointer-events:auto;line-height:1.3}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-stage>.pq-toast{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:8px}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-stage>.pq-toast>span{flex:1 1 auto;max-height:calc(var(--pq-battle-caption-height250,80px) - 16px);overflow-y:auto;overscroll-behavior:contain}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-stage>.pq-toast>button{flex:0 0 auto;min-height:44px;padding:6px 8px}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-stage>.pq-toast>button[data-battle-reconnect250]{gap:6px}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-stage>.pq-toast>button[data-battle-reconnect250]>svg{width:24px;height:24px;flex:0 0 24px}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-stage>.pq-toast>button[data-action=dismiss]{width:44px;height:44px;min-width:44px;padding:6px}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-stage>.pq-toast>button[data-action=dismiss] svg{width:26px;height:26px}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-stage>.pq-toast[data-battle-caption-note250]{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:4px 6px}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-stage>.pq-toast>[data-battle-caption-copy250]{grid-row:1;grid-column:1;min-width:0;max-height:1.3em;overflow-y:auto;overscroll-behavior:contain;margin:0;font-weight:650}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-stage>.pq-toast[data-battle-caption-note250]>span{grid-row:2;grid-column:1;max-height:calc(var(--pq-battle-caption-height250,80px) - 1.3em - 20px)}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-stage>.pq-toast[data-battle-caption-note250]>button{grid-row:1/span 2}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-stage>.pq-toast[data-battle-caption-note250]>button[data-action=reconnect]{grid-column:2}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-stage>.pq-toast[data-battle-caption-note250]>button[data-action=dismiss]{grid-column:3}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) :is(.pq-presentation-note,.pq-toast>span,[data-battle-caption-copy250]):focus-visible{outline:2px solid #f2d49b;outline-offset:-3px}
.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-stage:has(>.pq-toast[data-battle-caption-note250]:not([hidden])) .pq-presentation-note{visibility:hidden}
@media(max-width:799px){.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-scene>.pq-panel.pq-battle-panel166{--pq-battle-dock250:bottom;left:8px;right:8px;top:auto;bottom:8px;transform:none;width:auto;max-width:none;max-height:55%;padding:10px;gap:8px}.pq-app .pq-battle-panel166>.pq-battle-ships166{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.pq-app .pq-battle-panel166>.pq-battle-ships166{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-stage>.pq-toast>button[data-battle-reconnect250]{position:relative;width:44px;height:44px;min-width:44px;padding:6px}.pq-app.pq-layout146.pq-in-battle:has(.pq-welcome[hidden]) .pq-stage>.pq-toast [data-battle-reconnect-label250]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}}
