/* InazumArcade v407 · Galaxy travel-node cleanup.
   Galaxy nodes are icon/orbit controls, never rectangular themed buttons.
   Keep this file last so global customization skins cannot paint a square
   behind the planet currently occupied by the Galaxy shuttle. */
#galaxyDominationOverlay button.gd-node,
#galaxyDominationOverlay button.gd-node:hover,
#galaxyDominationOverlay button.gd-node:focus,
#galaxyDominationOverlay button.gd-node:focus-visible,
#galaxyDominationOverlay button.gd-node:active,
#galaxyDominationOverlay button.gd-node.selected{
  appearance:none!important;
  -webkit-appearance:none!important;
  background:none!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  border-color:transparent!important;
  border-radius:0!important;
  outline:0!important;
  box-shadow:none!important;
  text-decoration:none!important;
  -webkit-tap-highlight-color:transparent!important;
  overflow:visible!important;
}
#galaxyDominationOverlay button.gd-node::-moz-focus-inner{
  border:0!important;
  padding:0!important;
}
/* Restore only the intended circular orbit pseudo-elements; never a skin frame. */
#galaxyDominationOverlay button.gd-node::before{
  content:""!important;
  position:absolute!important;
  inset:3px!important;
  width:auto!important;
  height:auto!important;
  border:1px solid rgba(100,225,255,.22)!important;
  border-radius:50%!important;
  background:none!important;
  background-image:none!important;
  box-shadow:none!important;
  outline:0!important;
  pointer-events:none!important;
}
#galaxyDominationOverlay button.gd-node::after{
  content:""!important;
  position:absolute!important;
  left:-7px!important;
  right:-7px!important;
  top:29px!important;
  bottom:auto!important;
  width:auto!important;
  height:7px!important;
  border:1px solid rgba(106,224,255,.28)!important;
  border-radius:50%!important;
  background:none!important;
  background-image:none!important;
  box-shadow:none!important;
  outline:0!important;
  pointer-events:none!important;
}
#galaxyDominationOverlay button.gd-node:not(.chrono) .gd-node-core{
  border-radius:50%!important;
  overflow:hidden!important;
  background-clip:padding-box!important;
}

/* IA V788 bundle separator: original stylesheet rules preserved */
/* ============================================================================
   Galaxy runtime isolation · production-safe
   v417 keeps the original polished Galaxy match UI. No theme is allowed to add
   extra cards behind transient text or force glass effects during live play.
   ============================================================================ */

/* Do not use :has() here: on mobile it can force expensive style invalidation while
   the match DOM changes. The JS owns gd-live-match for the exact same lifetime. */
body.gd-live-match #galaxyDominationOverlay > .gd-shell{display:none!important}
body.gd-live-match #galaxyDominationOverlay::before,
body.gd-live-match #galaxyDominationOverlay::after{animation:none!important;opacity:0!important;filter:none!important}

body.gd-live-match #galaxyDominationOverlay #gdMatchWrap #gdPitchShell{contain:paint!important}
body.gd-live-match #galaxyDominationOverlay #gdMatchWrap :is(.gd-meter-fill,.gd-keeper-mini u,.gd-progress-fill){transition:none!important}

/* KICK OFF / goal / warning flashes were originally text only. Some interface themes
   later painted .gd-match-message as a generic panel, producing the random rectangle. */
body.gd-live-match #galaxyDominationOverlay #gdMatchWrap .gd-match-message{
  background:transparent!important;border:0!important;outline:0!important;
  box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  padding:0!important;border-radius:0!important;
}

/* Labels remain labels. Themes may recolour text but must never turn them into cards. */
body.gd-live-match[data-ia-ui-skin] #galaxyDominationOverlay #gdMatchWrap :is(
  .gd-duel-kicker,.gd-control-title,.gd57-setpiece-panel>small,.gd57-setpiece-panel>b,
  .gd57-setpiece-panel>p,.gd336-kickoff-key b,.gd336-kickoff-key small
){background:transparent!important;box-shadow:none!important;outline:0!important}

/* Glass/text-shadow effects are expensive while the canvas is animating. This only
   changes paint, never size, position, hitboxes, mechanics or the canvas itself. */
body.gd-live-match #galaxyDominationOverlay #gdMatchWrap *{
  text-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
body.gd-live-match #galaxyDominationOverlay #gdMatchWrap :is(
  .gd-match-side,.gd-controlled-hud,.gd-env-card,.gd-feed-card,.gd-keeper-card,
  .gd59-keyboard-card,.gd57-guide-card,.gd-tactical-actions,.gd-scorebox
){filter:none!important}

@media (pointer:coarse){
  body.gd-live-match #galaxyDominationOverlay #gdMatchWrap :is(
    .gd-match-side,.gd-controlled-hud,.gd-env-card,.gd-feed-card,.gd-keeper-card,
    .gd59-keyboard-card,.gd57-guide-card,.gd-tactical-actions,.gd-scorebox
  ){box-shadow:none!important}
  body.gd-live-match #galaxyDominationOverlay #gdMatchWrap #gdCanvas{touch-action:none!important}
}

/* IA V788 bundle separator: original stylesheet rules preserved */
/* ============================================================================
   InazumArcade v416 · Galaxy live-match frame budget
   Production-only visual/runtime guard. No gameplay, AI, timers or save changes.
   ============================================================================ */

/* While a live Galaxy match exists, freeze decorative site layers that are fully
   obscured by the match and would otherwise keep asking the compositor for frames. */
body.gd-live-match #iaFieldBackdrop,
body.gd-live-match .ia-home-hero-slide,
body.gd-live-match .ia-home-portal-fx,
body.gd-live-match .ia-navbar-theme-transition{
  animation-play-state:paused!important;
}

/* Persistent match chrome must stay cheap. Gameplay/cinematic overlays are excluded. */
body.gd-live-match #galaxyDominationOverlay #gdMatchWrap :is(
  .gd-match-side,.gd-controlled-hud,.gd-hud,.gd-env-card,.gd-feed-card,.gd-keeper-card,
  .gd59-keyboard-card,.gd57-guide-card,.gd-tactical-actions,.gd-scorebox
){
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  filter:none!important;
  text-shadow:none!important;
}
body.gd-live-match #galaxyDominationOverlay #gdMatchWrap :is(
  .gd-meter-fill,.gd-keeper-mini u,.gd320-tactic-btn span
){transition:none!important}

/* Some Android/landscape browsers do not receive the project's phone class quickly.
   Pointer capability is a safer fallback for paint-budget rules. */
@media (pointer:coarse){
  body.gd-live-match #galaxyDominationOverlay #gdMatchWrap :is(
    .gd-match-side,.gd-controlled-hud,.gd-hud,.gd-env-card,.gd-feed-card,.gd-keeper-card,
    .gd59-keyboard-card,.gd57-guide-card,.gd-tactical-actions,.gd-scorebox
  ){
    box-shadow:none!important;
  }
  body.gd-live-match #galaxyDominationOverlay #gdMatchWrap #gdCanvas{
    touch-action:none!important;
  }
}

/* IA V788 bundle separator: original stylesheet rules preserved */
/* InazumArcade v417 · final live Galaxy theme/performance isolation.
   Loaded last on purpose so Interface themes cannot re-add transient rectangles. */
body.gd-live-match #galaxyDominationOverlay #gdMatchWrap #gdMatchMessage,
body.gd-live-match[data-ia-ui-skin] #galaxyDominationOverlay #gdMatchWrap #gdMatchMessage{
  background:transparent!important;border:none!important;box-shadow:none!important;
  outline:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}

/* Keep the native Galaxy geometry for kick-off / free-kick setup. Themes can still
   supply colour variables elsewhere, but do not repaint the panel or its text labels. */
body.gd-live-match[data-ia-ui-skin] #galaxyDominationOverlay #gdMatchWrap #gd57SetPiecePanel{
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
body.gd-live-match[data-ia-ui-skin] #galaxyDominationOverlay #gdMatchWrap #gd57SetPiecePanel :is(small,b,p){
  background:transparent!important;box-shadow:none!important;
}

/* No theme transition is useful inside a running match. */
body.gd-live-match #galaxyDominationOverlay #gdMatchWrap :is(
  .gd-match-side,.gd-controlled-hud,.gd-hud,.gd-env-card,.gd-feed-card,.gd-keeper-card,
  .gd59-keyboard-card,.gd57-guide-card,.gd-scorebox,.gd-tactical-actions
),
body.gd-live-match[data-ia-ui-skin] #galaxyDominationOverlay #gdMatchWrap :is(
  .gd-match-side,.gd-controlled-hud,.gd-hud,.gd-env-card,.gd-feed-card,.gd-keeper-card,
  .gd59-keyboard-card,.gd57-guide-card,.gd-scorebox,.gd-tactical-actions
){transition:none!important;animation:none!important}

/* IA V788 bundle separator: original stylesheet rules preserved */
/* InazumArcade v418 · live Galaxy hard isolation.
   Production-only visual/performance contract. Mechanics are untouched. */

/* During a live match, freeze decorative work outside Galaxy. This stops navbar/home/theme
   animations from continuing to consume compositing time behind the canvas. */
body.gd-live-match > *:not(#galaxyDominationOverlay):not(script):not(style),
body.gd-live-match > *:not(#galaxyDominationOverlay):not(script):not(style) *{
  animation-play-state:paused!important;
}

/* Themes are allowed to change colour, but never geometry/surfaces of transient text. */
body.gd-live-match #galaxyDominationOverlay #gdMatchWrap :is(
  #gdMatchMessage,.gd-match-message,.gd-kickoff-sequence>small,.gd-kickoff-sequence>b,
  #gd57SetPiecePanel>small,#gd57SetPiecePanel>b,#gd57SetPiecePanel>p,
  .gd57-deadball-badge,.gd58-deadball-side
){
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  filter:none!important;
}

/* Keep the set-piece container itself native Galaxy. Themes must not wrap every line in
   extra surfaces. Buttons keep their normal styling. */
body.gd-live-match[data-ia-ui-skin] #galaxyDominationOverlay #gdMatchWrap #gd57SetPiecePanel{
  background:rgba(4,18,32,.96)!important;
  background-image:none!important;
  border:1px solid rgba(103,221,247,.24)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

/* Expensive theme effects are disabled only inside a running Galaxy match. */
body.gd-live-match #galaxyDominationOverlay #gdMatchWrap,
body.gd-live-match #galaxyDominationOverlay #gdMatchWrap *{
  text-shadow:none!important;
}
body.gd-live-match #galaxyDominationOverlay #gdMatchWrap :is(
  .gd-match-side,.gd-controlled-hud,.gd-hud,.gd-env-card,.gd-feed-card,.gd-keeper-card,
  .gd-control-card,.gd59-keyboard-card,.gd57-guide-card,.gd-scorebox,.gd-tactical-actions,
  .gd57-setpiece-panel,.gd58-setpiece-side,.gd335-match-bench
){
  filter:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  transition:none!important;
  animation:none!important;
}

/* Phone: remove nonessential live telemetry paint. Nothing here changes input, AI or physics. */
@media (pointer:coarse){
  body.gd-live-match #galaxyDominationOverlay #gdMatchWrap .gd-feed-card{display:none!important}
  body.gd-live-match #galaxyDominationOverlay #gdMatchWrap .gd-help-details{display:none!important}
  body.gd-live-match #galaxyDominationOverlay #gdMatchWrap .gd-nebula,
  body.gd-live-match #galaxyDominationOverlay #gdMatchWrap .gd-chrono-flash{display:none!important}
}

/* IA V788 bundle separator: original stylesheet rules preserved */

/* InazumArcade v420 · Galaxy live-match compositor isolation
   Scope: paint/compositing only. No gameplay, AI, physics, UI geometry or save logic changes. */

/* The Galaxy map keeps two full-screen animated starfield pseudo-layers plus the entire
   navigation shell alive behind the match. The match was still semi-transparent, so mobile
   browsers had to composite those moving layers underneath the canvas every frame.
   During gameplay the map is irrelevant: remove it from the paint tree completely. */
body.gd-live-match #galaxyDominationOverlay::before,
body.gd-live-match #galaxyDominationOverlay::after{
  content:none!important;
  display:none!important;
  animation:none!important;
  filter:none!important;
  transform:none!important;
}

/* The map/topbar/nodes/ship remain in DOM so state and event bindings are untouched, but
   they do not paint or participate in hit-testing while a match is running. */
body.gd-live-match #galaxyDominationOverlay > .gd-shell{
  visibility:hidden!important;
  pointer-events:none!important;
}

/* A fully opaque match surface prevents the compositor from sampling the Galaxy map/body
   underneath the animated canvas. */
body.gd-live-match #galaxyDominationOverlay,
body.gd-live-match #galaxyDominationOverlay #gdMatchWrap{
  background:#020512!important;
  background-image:none!important;
}
body.gd-live-match #galaxyDominationOverlay #gdMatchWrap{
  opacity:1!important;
  animation:none!important;
  transform:none!important;
  filter:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

/* Keep the live surface isolated from the rest of the page. */
body.gd-live-match #galaxyDominationOverlay #gdMatchWrap .gd-match-stage,
body.gd-live-match #galaxyDominationOverlay #gdMatchWrap #gdPitchShell{
  isolation:isolate!important;
}
body.gd-live-match #galaxyDominationOverlay #gdMatchWrap #gdPitchShell{
  contain:layout paint style!important;
}

/* No theme may reintroduce expensive whole-surface effects while the canvas changes. */
body.gd-live-match[data-ia-ui-skin] #galaxyDominationOverlay #gdMatchWrap,
body.gd-live-match[data-ia-ui-skin] #galaxyDominationOverlay #gdMatchWrap :is(
  .gd-match-top,.gd-match-side,.gd-controlled-hud,.gd-hud,.gd-env-card,.gd-feed-card,
  .gd-keeper-card,.gd-control-card,.gd-scorebox,.gd-tactical-actions,.ia-gd-phone-dock
){
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  filter:none!important;
  box-shadow:none!important;
}

/* The live pitch itself must not inherit theme filters/blending. */
body.gd-live-match #galaxyDominationOverlay #gdCanvas{
  filter:none!important;
  mix-blend-mode:normal!important;
  opacity:1!important;
}

/* IA V788 bundle separator: original stylesheet rules preserved */
/* InazumArcade v424 · targeted theme correctness guards.
   Surgical only: preserve semantic IndovInazuma feedback and Galaxy orbit geometry. */

/* IndovInazuma is strictly binary: every compared field is either correct or wrong.
   Theme contrast sheets must never recolor these two gameplay states into the same surface. */
body:not(#ia424A#ia424B#ia424C#ia424D#ia424E#ia424F#ia424G#ia424H)[data-ia-ui-skin]
#screen-indovinazuma .ig-guess-row .ig-cell.correct{
  border-color:#58d990!important;
  background:rgba(24,116,70,.34)!important;
  color:#b8ffd3!important;
  text-shadow:0 1px 2px rgba(0,0,0,.82)!important;
}
body:not(#ia424A#ia424B#ia424C#ia424D#ia424E#ia424F#ia424G#ia424H)[data-ia-ui-skin]
#screen-indovinazuma .ig-guess-row .ig-cell.wrong{
  border-color:#df6974!important;
  background:rgba(139,42,53,.34)!important;
  color:#ffc1c6!important;
  text-shadow:0 1px 2px rgba(0,0,0,.82)!important;
}

/* Galaxy map nodes are circular/orbital controls. Global button selected-state skins
   must never paint a rectangular panel behind them. The planet core keeps its own
   native selected glow from the Galaxy stylesheet. */
body:not(#ia424A#ia424B#ia424C#ia424D#ia424E#ia424F#ia424G#ia424H)[data-ia-ui-skin]
#galaxyDominationOverlay button.gd-node,
body:not(#ia424A#ia424B#ia424C#ia424D#ia424E#ia424F#ia424G#ia424H)[data-ia-ui-skin]
#galaxyDominationOverlay button.gd-node:hover,
body:not(#ia424A#ia424B#ia424C#ia424D#ia424E#ia424F#ia424G#ia424H)[data-ia-ui-skin]
#galaxyDominationOverlay button.gd-node:focus,
body:not(#ia424A#ia424B#ia424C#ia424D#ia424E#ia424F#ia424G#ia424H)[data-ia-ui-skin]
#galaxyDominationOverlay button.gd-node:focus-visible,
body:not(#ia424A#ia424B#ia424C#ia424D#ia424E#ia424F#ia424G#ia424H)[data-ia-ui-skin]
#galaxyDominationOverlay button.gd-node:active,
body:not(#ia424A#ia424B#ia424C#ia424D#ia424E#ia424F#ia424G#ia424H)[data-ia-ui-skin]
#galaxyDominationOverlay button.gd-node.selected{
  appearance:none!important;
  -webkit-appearance:none!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  border-color:transparent!important;
  border-radius:0!important;
  outline:0!important;
  box-shadow:none!important;
  filter:none!important;
  -webkit-tap-highlight-color:transparent!important;
}

/* IA V788 bundle separator: original stylesheet rules preserved */
/* InazumArcade v425 · surgical regression guards.
   Scope is intentionally limited to the four reported issues. No layout/gameplay refactor. */

/* --------------------------------------------------------------------------
   1) Personalization transition on real/coarse phones.
   The JS uses the existing pulse instead of Chromium's whole-page snapshot.
   Keep that pulse in its own cheap compositor layer and above every site overlay.
   -------------------------------------------------------------------------- */
html.ia-phone-theme-fallback .ia-navbar-theme-pulse{
  z-index:2147483646!important;
  pointer-events:none!important;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  will-change:transform,opacity;
}

/* --------------------------------------------------------------------------
   2) IndovInazuma semantic feedback is BINARY: correct / wrong.
   Interface skins may style the cell shell, but they must never erase the
   gameplay result. Child text is forced to inherit the semantic state because
   older theme coverage sheets also color spans/b/strong with !important.
   -------------------------------------------------------------------------- */
body[data-ia-ui-skin] #screen-indovinazuma .ig-guess-row .ig-cell.correct{
  background:rgba(24,116,70,.40)!important;
  border-color:#58d990!important;
  color:#b8ffd3!important;
  box-shadow:inset 0 0 0 1px rgba(88,217,144,.22)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.82)!important;
}
body[data-ia-ui-skin] #screen-indovinazuma .ig-guess-row .ig-cell.wrong{
  background:rgba(139,42,53,.40)!important;
  border-color:#df6974!important;
  color:#ffc1c6!important;
  box-shadow:inset 0 0 0 1px rgba(223,105,116,.22)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.82)!important;
}
body[data-ia-ui-skin] #screen-indovinazuma .ig-guess-row .ig-cell.correct :is(span,b,strong,small,em),
body[data-ia-ui-skin] #screen-indovinazuma .ig-guess-row .ig-cell.wrong :is(span,b,strong,small,em){
  color:inherit!important;
  text-shadow:inherit!important;
  background:transparent!important;
  box-shadow:none!important;
}
/* On the phone layout each cell also has a generated field label. Tint that
   label with the same binary result so the answer remains obvious at a glance. */
html.ia-real-phone-mode body[data-ia-ui-skin] #screen-indovinazuma .ig-cell.correct::before,
html.ia-phone-native body[data-ia-ui-skin] #screen-indovinazuma .ig-cell.correct::before{color:#8ef0b2!important}
html.ia-real-phone-mode body[data-ia-ui-skin] #screen-indovinazuma .ig-cell.wrong::before,
html.ia-phone-native body[data-ia-ui-skin] #screen-indovinazuma .ig-cell.wrong::before{color:#ff9aa3!important}

/* --------------------------------------------------------------------------
   3) Galaxy planets are orbital controls, not rectangular themed buttons.
   v401 selected-state styling now excludes .gd-node at source; this final guard
   protects the button box only and deliberately does NOT touch .gd-node-core,
   ::before or ::after, so native planet/orbit visuals remain intact.
   -------------------------------------------------------------------------- */
body[data-ia-ui-skin] #galaxyDominationOverlay button.gd-node,
body[data-ia-ui-skin] #galaxyDominationOverlay button.gd-node:hover,
body[data-ia-ui-skin] #galaxyDominationOverlay button.gd-node:focus,
body[data-ia-ui-skin] #galaxyDominationOverlay button.gd-node:focus-visible,
body[data-ia-ui-skin] #galaxyDominationOverlay button.gd-node:active,
body[data-ia-ui-skin] #galaxyDominationOverlay button.gd-node.selected,
body[data-ia-ui-skin] #galaxyDominationOverlay button.gd-node[aria-pressed="true"],
body[data-ia-ui-skin] #galaxyDominationOverlay button.gd-node[aria-selected="true"]{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  filter:none!important;
  -webkit-tap-highlight-color:transparent!important;
}

/* IA V788 bundle separator: original stylesheet rules preserved */
/* =====================================================================
   InazumArcade v427 · Career phone layout hard-fix
   PHONE-ONLY. No Career gameplay/state changes, no desktop layout changes.
   Root causes addressed:
   1) v208 puzzle-entry transforms visually cross stacked mobile panels.
   2) legacy desktop flex sizing can leave the activity card visually
      detached from its content on real landscape phones.
   ===================================================================== */

/* The Career puzzle entrance was designed for three desktop columns.
   On a one-column phone layout the pieces physically fly through other
   panels. Keep the normal navbar transition context, but do not translate
   individual Career pieces on real phones. */
html.ia-real-phone-mode #screen-career.career-puzzle-armed :is(
  .career-head,.career-v200-strip,.career-panel,.career-v58-dock,
  .career-dashboard-bottom,.career-result,.career-puzzle-piece
),
html.ia-real-phone-mode #screen-career.career-puzzle-playing :is(
  .career-head,.career-v200-strip,.career-panel,.career-v58-dock,
  .career-dashboard-bottom,.career-result,.career-puzzle-piece
){
  opacity:1!important;
  transform:none!important;
  filter:none!important;
  transition:none!important;
  animation:none!important;
  will-change:auto!important;
}

/* Phone dashboard = true document flow.  Nothing in the three desktop
   columns may keep a fixed/flex height or clip the following column. */
html.ia-real-phone-mode body.ia-career-fit-active{
  overflow-y:auto!important;
  height:auto!important;
}
html.ia-real-phone-mode #screen-career:not(.hidden){
  height:auto!important;
  min-height:calc(100dvh - 61px)!important;
  max-height:none!important;
  overflow:visible!important;
  padding-bottom:76px!important;
}
html.ia-real-phone-mode #screen-career #careerRoot,
html.ia-real-phone-mode #screen-career .career-wrap{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
html.ia-real-phone-mode #screen-career .career-dashboard-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-rows:auto!important;
  align-items:start!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
html.ia-real-phone-mode #screen-career .career-dashboard-grid > .career-column{
  display:flex!important;
  flex-direction:column!important;
  flex:0 0 auto!important;
  align-self:auto!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  contain:none!important;
}
html.ia-real-phone-mode #screen-career .career-dashboard-grid > .career-column > .career-panel{
  flex:0 0 auto!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  box-sizing:border-box!important;
}

/* V58 moves these panels after render.  Inline/max-height measurements made
   for desktop must never constrain the phone document flow. */
html.ia-real-phone-mode #screen-career .career-v60-trophy-static,
html.ia-real-phone-mode #screen-career .career-v59-frontier-wide{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}

/* Activity/training is the main offender in the screenshots: force the card
   and its matchbox to contain their children instead of behaving as a
   desktop flex fill region. */
html.ia-real-phone-mode #screen-career .career-activity-column > .career-activity-card,
html.ia-real-phone-mode #screen-career .career-activity-card > .career-matchbox{
  display:block!important;
  flex:0 0 auto!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  contain:none!important;
}
html.ia-real-phone-mode #screen-career .career-activity-card .career-plan-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-rows:auto!important;
  align-items:stretch!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin-top:8px!important;
  gap:8px!important;
  overflow:visible!important;
}
html.ia-real-phone-mode.ia-phone-landscape #screen-career .career-activity-card .career-plan-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
html.ia-real-phone-mode #screen-career .career-activity-card .career-plan{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:88px!important;
  max-height:none!important;
  padding:10px 11px!important;
  box-sizing:border-box!important;
}
html.ia-real-phone-mode #screen-career .career-activity-card .career-training-switch{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  width:100%!important;
  height:auto!important;
  margin-top:9px!important;
  padding-top:8px!important;
}
html.ia-real-phone-mode #screen-career .career-activity-card .career-training-switch > span{
  flex:1 1 220px!important;
  min-width:0!important;
}
html.ia-real-phone-mode #screen-career .career-activity-card .career-training-switch > button{
  flex:0 1 auto!important;
  max-width:100%!important;
  white-space:normal!important;
}

/* Keep the existing preferred phone order but guarantee real gaps between
   independent sections so a moved V58 panel cannot visually merge with the
   next column. */
html.ia-real-phone-mode #screen-career .career-activity-column{
  order:-1!important;
}
html.ia-real-phone-mode #screen-career .career-dashboard-grid,
html.ia-real-phone-mode #screen-career .career-dashboard-grid > .career-column{
  gap:12px!important;
}

/* Standings stays horizontally scrollable when needed, but the card itself
   participates in normal vertical flow. */
html.ia-real-phone-mode #screen-career .career-standings-card{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
html.ia-real-phone-mode #screen-career .career-standings-scroll{
  width:100%!important;
  min-width:0!important;
  max-height:360px!important;
  overflow:auto!important;
  -webkit-overflow-scrolling:touch!important;
}

/* Fixed utility controls stay available without covering a huge portion of
   a short landscape viewport. */
html.ia-real-phone-mode .career-reset-btn{
  right:max(8px,env(safe-area-inset-right))!important;
  bottom:calc(8px + env(safe-area-inset-bottom))!important;
  min-height:38px!important;
  padding:8px 11px!important;
  font-size:10px!important;
  line-height:1.1!important;
}

/* IA V788 bundle separator: original stylesheet rules preserved */
/* v428 · Restore the approved Career training result behavior.
   Training results are transient feedback, never blocking buttons/modals. */
#career-special-popup.career-training-toast{
  pointer-events:none!important;
  background:transparent!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
#career-special-popup.career-training-toast .career-special-popup-card{
  pointer-events:none!important;
  min-width:min(320px,80vw)!important;
  max-width:min(420px,88vw)!important;
  padding:12px 16px!important;
  transform:translateZ(0);
}
#career-special-popup.career-training-toast:not(.career-training-toast-special) .career-special-popup-title{
  color:#8ef6d2!important;
}
#career-special-popup.career-training-toast.career-training-toast-out{
  opacity:0!important;
  transform:translateY(-8px) scale(.98)!important;
  transition:opacity .18s ease,transform .18s ease!important;
}
@media(max-width:900px){
  #career-special-popup.career-training-toast{
    align-items:center!important;
    justify-content:center!important;
    padding:12px!important;
  }
  #career-special-popup.career-training-toast .career-special-popup-card{
    width:auto!important;
    min-width:min(300px,78vw)!important;
    max-width:min(390px,88vw)!important;
  }
}

/* IA V788 bundle separator: original stylesheet rules preserved */
/* v429 · The training-result toast is feedback, never a blocking modal. */
#career-special-popup.ia-v429-training-toast{
  pointer-events:none!important;
}
#career-special-popup.ia-v429-training-toast button,
#career-special-popup.ia-v429-training-toast [data-career-popup-close]{
  display:none!important;
  pointer-events:none!important;
}

/* IA V788 bundle separator: original stylesheet rules preserved */
/* v432 · targeted FFI/Galaxy fixes only. */
#modalRoot .ffi95-plan-overlay.ia265-prep-overlay{align-items:center!important;justify-content:center!important;padding:18px!important}
#modalRoot .ffi95-plan-overlay.ia265-prep-overlay .ia265-prep-card{margin:auto!important;max-height:calc(100dvh - 36px)!important}
html.ia-real-phone-mode #modalRoot .ffi95-plan-overlay.ia265-prep-overlay{padding:10px!important}
html.ia-real-phone-mode #modalRoot .ffi95-plan-overlay.ia265-prep-overlay .ia265-prep-card{max-height:calc(100dvh - 20px)!important}
#galaxyDominationOverlay #gdMatchWrap .gd-keeper-card{display:none!important}
#galaxyDominationOverlay #gdMatchWrap .gd-env-card{grid-column:1 / -1!important;width:100%!important;max-width:none!important;box-sizing:border-box!important}
#galaxyDominationOverlay #gdMatchWrap.gd177-streamer .gd-env-card{grid-column:1 / -1!important;height:auto!important;min-height:62px!important;max-height:none!important;padding:9px 12px!important;overflow:visible!important}
#galaxyDominationOverlay #gdMatchWrap.gd177-streamer .gd-env-card .gd-control-title{font-size:9px!important;line-height:1.15!important}
#galaxyDominationOverlay #gdMatchWrap.gd177-streamer .gd-env-name{font-size:15.5px!important;line-height:1.1!important}
#galaxyDominationOverlay #gdMatchWrap.gd177-streamer .gd-env-copy{display:block!important;white-space:normal!important;overflow:visible!important;font-size:11px!important;line-height:1.38!important;margin-top:4px!important;color:#bdd3e5!important}
