/* AuroraCockpit Tactical / NOAA Kp outlook.
 * Independent visual layer only: no forecast-source or decision CSS changes. */
html.layout-v2 #tacticalView .ac-kp-outlook{
  position:relative;min-width:0;margin-top:12px;padding:16px 20px 13px;
  border:1px solid rgba(145,228,205,.20);border-radius:14px;
  background:linear-gradient(110deg,rgba(10,33,37,.98),rgba(4,19,27,.98));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 9px 25px rgba(0,0,0,.09);
  overflow:hidden
}
html.layout-v2 #tacticalView .ac-kp-outlook::before{
  content:"";position:absolute;top:0;left:20px;width:58px;height:2px;
  background:linear-gradient(90deg,#92eed2,rgba(146,238,210,0))
}
html.layout-v2 #tacticalView .ac-kp-outlook-head{
  display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:9px 16px
}
html.layout-v2 #tacticalView .ac-kp-outlook-kicker{
  margin:0;font:700 10px/1.4 var(--mono);letter-spacing:.13em;color:#91d7c7
}
html.layout-v2 #tacticalView .ac-kp-outlook-heading{
  margin:3px 0 0;font:750 clamp(17px,1.65vw,23px)/1.18 var(--display);letter-spacing:.02em;color:#effffa
}
html.layout-v2 #tacticalView .ac-kp-outlook-heading small{
  margin-left:8px;font:650 11px/1.3 var(--mono);letter-spacing:.08em;color:#a9c6c5
}
html.layout-v2 #tacticalView .ac-kp-outlook-status{
  padding:6px 10px;border:1px solid rgba(150,230,207,.14);border-radius:7px;
  font:650 10px/1.3 var(--mono);letter-spacing:.06em;color:#afc8c5;
  background:rgba(105,207,186,.05)
}
html.layout-v2 #tacticalView .ac-kp-outlook-status[data-state="ready"]{color:#89efc8}
html.layout-v2 #tacticalView .ac-kp-outlook-status[data-state="unavailable"]{color:#f2cb8c}
html.layout-v2 #tacticalView .ac-kp-outlook-row{
  display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:clamp(4px,1.0vw,12px);
  min-height:110px;align-items:end;margin-top:13px;max-width:100%
}
/* Kp outlook uses same palette and thresholds as the live Kp gauge (kpStatus in v22.js):
 * below 3 = neutral blue, 3–3.9 = watch yellow, 4+ = good green.
 * Higher Kp is positive geomagnetic activity here, not a red/error state. */
html.layout-v2 #tacticalView .ac-kp-outlook-cell{--kp-color:#78c9ff}
html.layout-v2 #tacticalView .ac-kp-outlook-cell[data-level="unsettled"]{--kp-color:#ffd449}
html.layout-v2 #tacticalView .ac-kp-outlook-cell:is([data-level="active"],[data-level="storm"],[data-level="severe"]){--kp-color:#63efb8}
html.layout-v2 #tacticalView .ac-kp-outlook-cell[data-level="unknown"]{--kp-color:rgba(210,229,229,.32)}
html.layout-v2 #tacticalView .ac-kp-outlook-cell{
  min-width:0;display:flex;align-items:stretch;flex-direction:column;gap:4px;text-align:center
}
html.layout-v2 #tacticalView .ac-kp-outlook-value{
  font:750 12px/1.15 var(--mono);color:var(--kp-color);font-variant-numeric:tabular-nums
}
html.layout-v2 #tacticalView .ac-kp-outlook-track{
  height:52px;display:flex;align-items:flex-end;padding:0 2px;
  border:1px solid rgba(146,216,202,.13);border-radius:4px 4px 2px 2px;
  background:repeating-linear-gradient(to top,rgba(169,223,213,.06),rgba(169,223,213,.06) 1px,transparent 1px,transparent 25%);
  overflow:hidden
}
html.layout-v2 #tacticalView .ac-kp-outlook-fill{
  width:100%;border-radius:2px 2px 0 0;
  background:linear-gradient(180deg,var(--kp-color),color-mix(in srgb,var(--kp-color) 30%,#072025));
  box-shadow:0 0 9px color-mix(in srgb,var(--kp-color) 20%,transparent)
}
html.layout-v2 #tacticalView .ac-kp-outlook-hour{
  font:700 11px/1.2 var(--mono);color:#dfefed;font-variant-numeric:tabular-nums;
  white-space:nowrap;letter-spacing:0
}
html.layout-v2 #tacticalView .ac-kp-outlook-day{
  min-height:12px;font:650 9px/1.15 var(--mono);letter-spacing:.04em;color:#96b4b0
}
html.layout-v2 #tacticalView .ac-kp-outlook-kind{
  font:700 9px/1.1 var(--mono);letter-spacing:.02em;color:#91a8a8;
  text-transform:uppercase
}
html.layout-v2 #tacticalView .ac-kp-outlook-footer{
  display:flex;flex-wrap:wrap;gap:5px 15px;justify-content:space-between;
  border-top:1px solid rgba(157,229,215,.10);margin-top:13px;padding-top:10px
}
html.layout-v2 #tacticalView .ac-kp-outlook-footer :is(span,a){
  font:550 11px/1.4 var(--sans);color:#a4c0bb;text-decoration:none
}
html.layout-v2 #tacticalView .ac-kp-outlook-footer a{
  color:#98e5ce;text-decoration:underline;text-underline-offset:3px
}
html.layout-v2 #tacticalView .ac-kp-outlook-footer a:focus-visible{
  outline:2px solid #91eacf;outline-offset:4px
}
html.layout-v2 #tacticalView .ac-kp-outlook-placeholder{
  grid-column:1/-1;min-height:90px;display:flex;align-items:center;justify-content:center;
  border:1px dashed rgba(149,226,205,.17);border-radius:7px;
  font:550 12px/1.5 var(--sans);text-align:center;color:#aac2bd;padding:14px
}
@media(max-width:760px){
  html.layout-v2 #tacticalView .ac-kp-outlook{padding:15px 12px 12px;margin-top:10px}
  html.layout-v2 #tacticalView .ac-kp-outlook::before{left:12px}
  html.layout-v2 #tacticalView .ac-kp-outlook-row{gap:4px;min-height:105px}
  html.layout-v2 #tacticalView .ac-kp-outlook-heading{font-size:20px}
  html.layout-v2 #tacticalView .ac-kp-outlook-heading small{font-size:10px}
  html.layout-v2 #tacticalView .ac-kp-outlook-status{font-size:10px}
  html.layout-v2 #tacticalView .ac-kp-outlook-value{font-size:11px}
  html.layout-v2 #tacticalView .ac-kp-outlook-track{height:47px;padding:0 1px}
  html.layout-v2 #tacticalView .ac-kp-outlook-hour{font-size:10px}
  html.layout-v2 #tacticalView .ac-kp-outlook-day{font-size:8px}
  html.layout-v2 #tacticalView .ac-kp-outlook-kind{font-size:8px}
  html.layout-v2 #tacticalView .ac-kp-outlook-footer :is(span,a){font-size:11px}
}
@media(max-width:345px){
  html.layout-v2 #tacticalView .ac-kp-outlook-row{gap:3px}
  html.layout-v2 #tacticalView .ac-kp-outlook-track{height:44px}
  html.layout-v2 #tacticalView .ac-kp-outlook-hour{font-size:9px}
}
