/* Phase 3C-1 refinement pass: preserve the locked Prediction Lab design while
   correcting the first-build shell, column flow, sizing, and readability. */
body.predictionLabPage{margin:0;background:#06101a;color:#f4f7fb;min-width:320px}
body.predictionLabPage .predictionLabMain{display:block;width:100%;min-height:100vh;margin:0;padding:0;background:#06101a}
body.predictionLabPage .predictionLab{width:100%;max-width:none;min-height:100vh;margin:0;padding:0 18px 22px;border:0;border-radius:0;box-shadow:none;background:radial-gradient(circle at 50% -16%,rgba(28,103,148,.24),transparent 34%),linear-gradient(180deg,#071522 0%,#06101a 100%)}

/* Lab-owned application header. */
body.predictionLabPage .plTopbar{position:sticky;top:0;z-index:40;min-height:78px;margin:0 -18px 14px;padding:15px 24px;border-bottom:1px solid #1e3951;background:rgba(6,17,29,.95);backdrop-filter:blur(16px);box-shadow:0 8px 24px rgba(0,0,0,.14)}
body.predictionLabPage .plBrand{min-width:340px;gap:13px}
body.predictionLabPage .plBrand>strong{font-size:2.2rem;letter-spacing:-.075em}
body.predictionLabPage .plBrand b{font-size:1.48rem;letter-spacing:-.025em}
body.predictionLabPage .plBrand small{font-size:.72rem;letter-spacing:.015em}
body.predictionLabPage .plFlask{width:34px;height:34px;display:grid;place-items:center;color:#36b9ff}
body.predictionLabPage .plFlask svg{width:31px;height:31px}
body.predictionLabPage .plNav{gap:8px}
body.predictionLabPage .plNav a{gap:7px;padding:10px 14px;font-size:.82rem;border:1px solid transparent}
body.predictionLabPage .plNav a.isActive{border-color:#225879;background:#0c2a40}
body.predictionLabPage .plNav svg{width:15px;height:15px}
body.predictionLabPage .plRankChip{min-width:188px;padding:8px 12px;border-radius:10px}
body.predictionLabPage .plRankHex{width:38px;height:38px}
body.predictionLabPage .plRankChip b{font-size:.84rem}
body.predictionLabPage .plRankChip small{font-size:.66rem}

/* Status messages are transient application toasts, not permanent layout rows. */
body.predictionLabPage .plStatus{position:fixed;z-index:80;top:88px;left:50%;width:min(620px,calc(100vw - 32px));margin:0;padding:10px 14px;border:1px solid #24506c;border-radius:9px;background:rgba(8,29,45,.97);box-shadow:0 12px 34px rgba(0,0,0,.3);font-size:.78rem;line-height:1.4;opacity:0;pointer-events:none;transform:translate(-50%,-8px);transition:opacity .18s ease,transform .18s ease}
body.predictionLabPage .plStatus.isVisible{opacity:1;transform:translate(-50%,0)}

/* The first build used one CSS grid row, forcing every top panel to inherit the
   height of Build a Prediction. JS now groups the six major panels into three
   independent vertical stacks. */
body.predictionLabPage .plDashboard{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
body.predictionLabPage .plColumn{display:flex;flex-direction:column;gap:14px;min-width:0;align-self:start}
body.predictionLabPage .plColumn>.plPanel{width:100%;margin:0}
body.predictionLabPage .plAchievements,body.predictionLabPage .plInstrumentStrip{grid-column:1/-1}
body.predictionLabPage .plPanel{padding:16px;border-radius:11px;border-color:#204159;background:linear-gradient(180deg,rgba(10,28,43,.99),rgba(7,21,33,.99));box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 12px 30px rgba(0,0,0,.11)}
body.predictionLabPage .plSectionTitle{gap:10px;margin-bottom:13px}
body.predictionLabPage .plSectionTitle>span{width:29px;height:29px;flex-basis:29px;font-size:.86rem}
body.predictionLabPage .plSectionTitle h2{font-size:1.22rem}
body.predictionLabPage .plSectionTitle p{font-size:.75rem;line-height:1.4}

/* Build a Prediction: restore the breathing room and 4+2 strategy composition. */
body.predictionLabPage .plDrawBar{grid-template-columns:minmax(175px,1fr) auto auto;gap:13px;padding:11px 12px;margin-bottom:10px}
body.predictionLabPage .plDrawBar>div:first-child{min-width:0;gap:9px;align-items:flex-start;flex-direction:column}
body.predictionLabPage .plDrawBar small{font-size:.67rem}
body.predictionLabPage .plCountdown{gap:3px 5px}
body.predictionLabPage .plCountdown b{font-size:1.07rem}
body.predictionLabPage .plCountdown small{font-size:.5rem}
body.predictionLabPage .plLockTime strong{font-size:.77rem}
body.predictionLabPage #pl-game-name.plGameNameLegacy{display:none}
body.predictionLabPage .plGameToggle{display:inline-flex;gap:4px;padding:3px;border:1px solid #254a64;border-radius:8px;background:#071725}
body.predictionLabPage .plGameToggle button{border:0;border-radius:5px;background:transparent;color:#8ea4b5;padding:6px 9px;font:inherit;font-size:.66rem;font-weight:800;cursor:pointer;white-space:nowrap}
body.predictionLabPage .plGameToggle button.isActive{background:#103551;color:#f3f9fd;box-shadow:inset 0 0 0 1px #2f769d}
body.predictionLabPage .plTabs{gap:7px;margin-bottom:11px}
body.predictionLabPage .plTabs button{padding:8px 7px;font-size:.73rem}
body.predictionLabPage .plComposer{grid-template-columns:minmax(0,1fr) 142px}
body.predictionLabPage .plComposerMain,body.predictionLabPage .plComposerBonus{padding:13px}
body.predictionLabPage .plLabel{font-size:.7rem}
body.predictionLabPage .plComposer small,body.predictionLabPage .plComplete small,body.predictionLabPage .plControlToggle small,body.predictionLabPage .plSubmitRow small{font-size:.66rem;line-height:1.45}
body.predictionLabPage .plBalls--composer{min-height:51px;flex-wrap:nowrap}
body.predictionLabPage .plBall{width:42px;height:42px;font-size:.88rem;flex:0 0 42px}
body.predictionLabPage .plPin{width:16px;height:16px;font-size:9px}
body.predictionLabPage .plComplete{gap:12px;margin:12px 0 7px}
body.predictionLabPage .plButton{padding:9px 13px;font-size:.72rem}
body.predictionLabPage .plStrategyPrompt{font-size:.66rem;margin:4px 0 8px}
body.predictionLabPage .plStrategies{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
body.predictionLabPage .plStrategies button{min-height:88px;padding:9px 8px;align-items:flex-start}
body.predictionLabPage .plStrategies button:nth-child(5),body.predictionLabPage .plStrategies button:nth-child(6){grid-column:span 2}
body.predictionLabPage .plStrategies button>span{font-size:1.3rem}
body.predictionLabPage .plStrategies button>span svg{width:20px;height:20px}
body.predictionLabPage .plStrategies button>b{font-size:.65rem;line-height:1.2}
body.predictionLabPage .plStrategies button>small{font-size:.55rem;line-height:1.25}
body.predictionLabPage .plBuildFooter{gap:9px;margin-top:10px}
body.predictionLabPage .plCurrentSet,body.predictionLabPage .plControlToggle{padding:10px}
body.predictionLabPage .plControlToggle b{font-size:.72rem}
body.predictionLabPage .plSubmitRow{margin-top:10px}

/* Fingerprint gauges are a primary visual instrument, not miniature decoration. */
body.predictionLabPage .plPanelKicker{font-size:.68rem}
body.predictionLabPage .plGaugeCluster{grid-template-columns:minmax(72px,.85fr) minmax(72px,.85fr) minmax(112px,1.3fr) minmax(72px,.85fr) minmax(72px,.85fr);gap:9px;padding:9px 2px 15px}
body.predictionLabPage .plGauge{min-width:0;box-shadow:0 0 0 1px rgba(53,93,119,.18)}
body.predictionLabPage .plGauge:before{inset:9px}
body.predictionLabPage .plGauge strong{font-size:1.3rem}
body.predictionLabPage .plGauge span{font-size:.58rem;line-height:1.05;max-width:86%;margin-top:5px}
body.predictionLabPage .plGauge small{font-size:.54rem;margin-top:2px}
body.predictionLabPage .plGauge--hero strong{font-size:2rem}
body.predictionLabPage .plGauge--hero span{font-size:.62rem}
body.predictionLabPage .plFingerprintStats div{padding:10px 5px}
body.predictionLabPage .plFingerprintStats small{font-size:.56rem;line-height:1.15}
body.predictionLabPage .plFingerprintStats strong{font-size:.91rem}
body.predictionLabPage .plInsight{padding:10px 11px}
body.predictionLabPage .plInsight p{font-size:.72rem;line-height:1.4}

/* Locked record. */
body.predictionLabPage .plLifecycle{margin:7px 7px 14px}
body.predictionLabPage .plLifecycle>span{width:38px;height:38px}
body.predictionLabPage .plLifecycle>span small{top:42px;font-size:.52rem}
body.predictionLabPage .plLifecycle>i{margin-top:18px}
body.predictionLabPage .plLifecycle .isCurrent{box-shadow:0 0 0 2px rgba(240,91,72,.08),0 0 16px rgba(230,76,55,.18)}
body.predictionLabPage .plLockedGrid{grid-template-columns:.72fr 1.42fr .72fr;gap:9px;margin-top:31px}
body.predictionLabPage .plLockedGrid aside,body.predictionLabPage .plSealed{padding:11px}
body.predictionLabPage .plLockedGrid aside b{font-size:.67rem}
body.predictionLabPage .plLockedGrid aside p{font-size:.65rem;line-height:1.5}
body.predictionLabPage .plSeal{font-size:1.06rem}
body.predictionLabPage .plSealed h3{font-size:.8rem}
body.predictionLabPage .plSealed p{font-size:.66rem;line-height:1.4}

/* Debrief / control / battles readability. */
body.predictionLabPage .plDebriefTop small,body.predictionLabPage .plCompare small,body.predictionLabPage .plRewardStrip small,body.predictionLabPage .plDebriefBottom ul,body.predictionLabPage .plNext p,body.predictionLabPage .plVersus article small,body.predictionLabPage .plExperimentSummary small,body.predictionLabPage .plXpSources small,body.predictionLabPage .plBattleTop table,body.predictionLabPage .plBattleChart aside p{font-size:.61rem}
body.predictionLabPage .plDebriefBottom h3,body.predictionLabPage .plBattleTop h3,body.predictionLabPage .plBattleChart h3{font-size:.7rem}
body.predictionLabPage .plRewardStrip article{padding:9px}
body.predictionLabPage .plRewardStrip b{font-size:.7rem}
body.predictionLabPage .plVersus article b{font-size:.75rem}
body.predictionLabPage .plExperimentSummary strong{font-size:1rem}
body.predictionLabPage .plProgressTop small{font-size:.55rem}
body.predictionLabPage .plProgressTop b{font-size:.73rem}
body.predictionLabPage .plProgressTop>strong{font-size:.64rem}
body.predictionLabPage .plXpSources b{font-size:.8rem}
body.predictionLabPage .plCenterNote{font-size:.61rem!important}
body.predictionLabPage .plChartPlaceholder{min-height:155px;font-size:.68rem}

/* Achievements remain a full-width progression band. */
body.predictionLabPage .plAchievements{margin-top:0}
body.predictionLabPage .plAchievementGrid{gap:9px}
body.predictionLabPage .plAchievementGrid article{padding:11px 6px}
body.predictionLabPage .plAchievementGrid article>span{width:54px;height:54px}
body.predictionLabPage .plAchievementGrid b{font-size:.67rem}
body.predictionLabPage .plAchievementGrid small{font-size:.54rem;line-height:1.3}
body.predictionLabPage .plUnlocked{font-size:.7rem}
body.predictionLabPage .plTrackerList span,body.predictionLabPage .plMasterProgress small,body.predictionLabPage .plMasterProgress p,body.predictionLabPage .plGlance div{font-size:.61rem}
body.predictionLabPage .plInstrumentStrip{margin-top:0;padding:10px}
body.predictionLabPage .plInstrumentStrip>span b{font-size:.75rem}
body.predictionLabPage .plInstrumentStrip>span small{font-size:.56rem}
body.predictionLabPage .plInstrumentStrip a{padding:10px;font-size:.63rem}
body.predictionLabPage .plFooter{font-size:.58rem;padding-bottom:2px}

@media(max-width:1280px){
  body.predictionLabPage .plDashboard{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  body.predictionLabPage .plColumn--right{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
  body.predictionLabPage .plGaugeCluster{grid-template-columns:repeat(2,minmax(90px,1fr));max-width:470px;margin-inline:auto}
  body.predictionLabPage .plGauge--hero{grid-column:1/-1;grid-row:1;max-width:175px;justify-self:center}
  body.predictionLabPage .plStrategies{grid-template-columns:repeat(3,1fr)}
  body.predictionLabPage .plStrategies button:nth-child(5),body.predictionLabPage .plStrategies button:nth-child(6){grid-column:span 1}
}
@media(max-width:900px){
  body.predictionLabPage .predictionLab{padding-inline:10px}
  body.predictionLabPage .plTopbar{margin-inline:-10px;padding:13px 14px;gap:12px}
  body.predictionLabPage .plBrand{min-width:auto}
  body.predictionLabPage .plDashboard{grid-template-columns:1fr}
  body.predictionLabPage .plColumn--right{grid-column:auto;display:flex}
  body.predictionLabPage .plAchievements,body.predictionLabPage .plInstrumentStrip{grid-column:1}
  body.predictionLabPage .plDrawBar{grid-template-columns:1fr}
  body.predictionLabPage .plComposer{grid-template-columns:1fr}
  body.predictionLabPage .plComposerBonus{border-left:0;border-top:1px solid #1d3e58}
  body.predictionLabPage .plComplete,body.predictionLabPage .plBuildFooter{grid-template-columns:1fr}
  body.predictionLabPage .plStrategies{grid-template-columns:repeat(2,1fr)}
  body.predictionLabPage .plStrategies button:nth-child(5),body.predictionLabPage .plStrategies button:nth-child(6){grid-column:span 1}
  body.predictionLabPage .plLockedGrid,body.predictionLabPage .plCompare,body.predictionLabPage .plDebriefBottom,body.predictionLabPage .plBattleTop,body.predictionLabPage .plBattleChart,body.predictionLabPage .plAchievementBottom{grid-template-columns:1fr}
}
@media(max-width:560px){
  body.predictionLabPage .plTopbar{min-height:64px}
  body.predictionLabPage .plBrand>strong{font-size:1.7rem}
  body.predictionLabPage .plBrand b{font-size:1.12rem}
  body.predictionLabPage .plBrand small{font-size:.62rem}
  body.predictionLabPage .plNav a{padding:8px 10px}
  body.predictionLabPage .plRankChip{min-width:0}
  body.predictionLabPage .plStrategies{grid-template-columns:1fr 1fr}
  body.predictionLabPage .plGaugeCluster{grid-template-columns:1fr 1fr;max-width:380px}
  body.predictionLabPage .plFingerprintStats{grid-template-columns:1fr 1fr}
  body.predictionLabPage .plBalls--composer{flex-wrap:wrap}
  body.predictionLabPage .plAchievementGrid{grid-template-columns:repeat(2,1fr)}
}
