/* SPRINT-2 STORM (R-1009-26 item 2) - the Storm page, laid out as the Tree
   Shop prototype JD showed at 16:59 (outbox/tree-shop/2026-10-09_TREE-SHOP_
   prototype.html). Colours come from storm-look.css (the designer's tokens,
   linked after this file); the few prototype values storm-look.css does not
   name (--st-red, the blue rule) are set here once. Colour never carries
   meaning alone: every truck row has its WORDS (BEHIND THE GROUP / STOPPED /
   MOVING). Tap floor 56 px. 390 px wide first; no horizontal scroll.
   Selectors start `html:not([data-theme="light"]) body.storm` so they win
   over storm-look.css's page-wide h1/h2 rules. */
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body.storm {
  --st-red: #FF5A5A; --st-blue: #007CFD; --st-silver: #C7C7C7; --st-muted: #A3ACB9;
  margin: 0; background: #000; color: #FFF;
  font: 16px/1.35 -apple-system, "Helvetica Neue", Arial, sans-serif; overflow-wrap: anywhere;
}
body.storm .st-phone { max-width: 430px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
body.storm .st-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px 10px; border-bottom: 2px solid var(--st-blue); }
html:not([data-theme="light"]) body.storm .st-head h1, body.storm .st-head h1 {
  font-family: "Cinzel", Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: .14em;
  font-size: 24px; margin: 0; padding: 0; border: 0; text-transform: uppercase;
  background: linear-gradient(180deg, #fff 15%, #F3F3F3 32%, #DADADA 60%, #C7C7C7 92%, #A9A9A9 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
body.storm .st-sub { color: var(--st-muted); font-size: 12px; letter-spacing: .06em; }
body.storm .st-seat { color: var(--c-cyan, #19E6FF); font-weight: 600; }
body.storm .st-lang { margin-left: auto; display: flex; border: 1px solid #1C2634; border-radius: 10px; overflow: hidden; }
body.storm .st-lang button {
  appearance: none; background: #000; border: 0; border-radius: 0; margin: 0; width: auto; padding: 9px 11px;
  font-size: 13px; font-weight: 700; color: var(--st-muted); min-width: 44px; min-height: 44px; box-shadow: none;
}
body.storm .st-lang button.on { color: #000; background: var(--st-silver); }
body.storm .st-notice { background: #14100a; color: #FFB020; font-size: 13px; padding: 8px 16px; margin: 0; }
body.storm .st-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px 4px; }
body.storm .st-mode {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none;
  background: #000; border: 2px solid #1C2634; border-radius: 14px; padding: 12px 8px; min-height: 62px;
}
body.storm .st-mode .t { font: 600 17px/1 "Cinzel", Georgia, serif; letter-spacing: .16em; color: var(--st-silver); }
body.storm .st-mode .s { font-size: 12px; color: var(--st-muted); margin-top: 5px; }
body.storm .st-mode.on { border-color: #0091FF; box-shadow: 0 0 16px rgba(0,145,255,.45), inset 0 0 12px rgba(0,145,255,.15); }
body.storm .st-mode.on .t { color: #fff; }
body.storm .st-mode.live .s { color: #FFB020; }
body.storm main { flex: 1; padding: 6px 16px 16px; }
@media (max-width: 899px) { body.storm .st-phone > .sp-box { padding-left: 16px; padding-right: 16px; } }  /* FT-30: chips box sits above .st-modes, outside main; same 16px gutter */
html:not([data-theme="light"]) body.storm main h2, body.storm main h2 {
  font: 500 14px/1.2 "Cinzel", Georgia, serif; letter-spacing: .16em; text-transform: uppercase;
  color: #0091FF; margin: 16px 0 8px; border: 0; padding: 0;
  background: none; -webkit-text-fill-color: currentColor;
}
body.storm .st-asof-row { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; }
body.storm .st-asof { flex: 1; margin: 0; font-size: 13px; color: var(--st-muted); }
body.storm .st-btn {
  width: auto; margin: 0; min-height: 56px; padding: 0 14px; background: #000; color: #FFF;
  border: 2px solid #3DDC84; border-radius: 12px; font-weight: 700; font-size: 15px; font-family: inherit;
  box-shadow: 0 0 8px rgba(61,220,132,.3);
}
body.storm .st-message { padding: 10px 12px; margin: 6px 0; border: 1.5px solid #FFB020; border-radius: 10px; color: #FFB020; font-weight: 600; background: #14100A; }
/* home tiles */
body.storm .st-tile {
  display: block; text-decoration: none; color: #FFF; background: #0B0F15; border: 1px solid #1C2634;
  border-left: 6px solid var(--c, #0091FF); border-radius: 14px; padding: 14px; margin: 10px 0; min-height: 76px;
}
body.storm .st-tile .big { display: block; font-size: 22px; font-weight: 700; }
body.storm .st-tile .small { display: block; font-size: 14px; color: var(--st-silver); margin-top: 3px; }
body.storm .st-tile .go { float: right; color: var(--st-muted); font-size: 22px; line-height: 1; }
body.storm .st-c-red { --c: var(--st-red); } body.storm .st-c-amber { --c: #FFB020; }
body.storm .st-c-green { --c: #3DDC84; } body.storm .st-c-silver { --c: var(--st-silver); }
/* convoy */
body.storm .st-group { background: #10161F; border: 1px solid #20324a; border-radius: 14px; padding: 10px 14px; margin: 8px 0 4px; font-size: 14px; color: var(--st-silver); }
body.storm .st-group b { color: #fff; font-size: 16px; }
body.storm .st-small { font-size: 12px; color: var(--st-muted); }
body.storm .st-u {
  display: flex; gap: 10px; align-items: stretch; background: #0B0F15; border: 1px solid #1C2634;
  border-left: 6px solid var(--c); border-radius: 12px; padding: 10px 12px; margin: 8px 0;
}
body.storm .st-u .id { font: 700 19px/1.1 "SF Mono", Menlo, Consolas, monospace; min-width: 104px; }
body.storm .st-u .id small { display: block; font: 500 11px/1.3 -apple-system, Arial, sans-serif; color: var(--st-muted); letter-spacing: .04em; margin-top: 3px; }
body.storm .st-u .mid { flex: 1; min-width: 0; font-size: 14px; color: var(--st-silver); }
body.storm .st-u .st { font-weight: 800; font-size: 13px; letter-spacing: .08em; color: var(--c); }
body.storm .st-u .r { text-align: right; font-size: 13px; color: var(--st-muted); min-width: 64px; max-width: 92px; }
body.storm .st-u .r b { display: block; color: #fff; font-size: 16px; }
body.storm .st-pchip { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--st-red); border: 1px solid #5a2222; border-radius: 8px; padding: 2px 7px; }
/* P5-77 W-15: "N moving with the group" = one tappable count line (collapsed grid below) */
body.storm .st-rest-toggle { display: block; width: 100%; box-sizing: border-box; min-height: var(--tap); text-align: left; font-size: 1rem; padding: 6px 12px; }
body.storm .st-okgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0 4px; }
body.storm .st-okgrid span { border: 1px solid #1d4a2c; border-left: 4px solid #3DDC84; border-radius: 8px; padding: 9px 6px; font: 700 14px "SF Mono", Menlo, Consolas, monospace; text-align: center; }
body.storm .st-foot { font-size: 11px; color: var(--st-muted); text-align: center; padding: 12px 0 4px; }
body.storm .st-empty { color: var(--st-muted); text-align: center; padding: 30px 10px; font-size: 16px; }
/* bottom tab bar */
body.storm .st-nav {
  position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #000; border-top: 2px solid var(--st-blue);
}
body.storm .st-nav a {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none;
  background: #000; border: 2px solid #1C2634; border-radius: 12px; min-height: 58px; padding: 4px 2px;
  font-size: 11px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; color: var(--st-silver);
  overflow-wrap: normal; word-break: keep-all; white-space: nowrap;
}
body.storm .st-nav a.on { border-color: #0091FF; color: #fff; box-shadow: 0 0 12px rgba(0,145,255,.45); }
body.storm .st-badge {
  position: absolute; top: -7px; right: -4px; background: var(--st-red); color: #000; font-size: 12px; font-weight: 900;
  border-radius: 999px; min-width: 22px; height: 22px; line-height: 22px; padding: 0 5px;
}

/* ---- F-3 (app-tester verdict 2026-10-09 rel-sprint-1009): GLOVE FLOORS.
   Nothing on this page under 18 px; every control >= 56 px; text >= 7:1;
   control edges >= 4.5:1 (steel #7A8AA0 5.97:1). Values are the designer's
   tokens (storm-look.css): accent #57A9FE 8.51:1, hint #A3ACB9 9.16:1,
   red text #FF7070 7.80:1. The five-tab bar cannot hold 18 px words five
   across at 390 px, so it stacks three over two - Storm Time's own phone
   rule (JD 2026-10-09: "On the phone view the tabs need to be stacked"). */
body.storm { --st-red: #FF7070; }
body.storm .st-sub, body.storm .st-notice, body.storm .st-mode .s, body.storm .st-asof,
body.storm .st-tile .small, body.storm .st-group, body.storm .st-group b, body.storm .st-small,
body.storm .st-u .id small, body.storm .st-u .mid, body.storm .st-u .st, body.storm .st-u .r,
body.storm .st-u .r b, body.storm .st-pchip, body.storm .st-okgrid span, body.storm .st-foot,
body.storm .st-empty, body.storm .st-mode .t, body.storm .st-lang button, body.storm .st-btn {
  font-size: 18px;
}
html:not([data-theme="light"]) body.storm main h2 { font-size: 18px; color: #57A9FE; }
body.storm .st-lang button { min-width: 56px; min-height: 56px; }
body.storm .st-mode, body.storm .st-nav a { border-color: #7A8AA0; }
body.storm .st-mode.on, body.storm .st-nav a.on { border-color: #0091FF; }
body.storm .st-u .r { max-width: 120px; }
body.storm .st-nav { grid-template-columns: repeat(3, 1fr); }
body.storm .st-nav a { font-size: 18px; min-height: 56px; }
body.storm .st-nav .st-badge, body.storm .st-badge {
  font-size: 18px; min-width: 28px; height: 28px; line-height: 28px; top: -10px;
}
/* F-3 at 390 px: the 18 px words need room. The header's title block may
   shrink and the EN/ES pair keeps its 2 x 56 px; a truck row puts the
   unit and the right-hand figure on the first line and the state, town
   and seen time on a full-width second line, with no mid-word breaks. */
body.storm .st-head > :first-child { flex: 1 1 auto; min-width: 0; }
body.storm .st-lang { flex: 0 0 auto; border-color: #7A8AA0; }
body.storm .st-u { flex-wrap: wrap; }
body.storm .st-u .mid { flex: 1 1 100%; order: 3; }
body.storm .st-u .r { margin-left: auto; max-width: none; }
body.storm .st-u .mid, body.storm .st-u .st, body.storm .st-u .id { overflow-wrap: normal; word-break: normal; }
body.storm .st-nav { gap: 6px; padding-top: 6px; }
/* app-tester r2 residues: R-1 the message line was missing from the 18 px
   list; R-2 the four Storm home tiles are tappable, so they carry the 2 px
   steel control edge like the Home rows (5.97:1, was #1C2634 1.38:1). */
body.storm .st-message { font-size: 18px; }
body.storm .st-tile { border: 2px solid #7A8AA0; border-left: 6px solid var(--c, #0091FF); }

/* ---- p3-2 (R-1009-36): PROBLEMS, ROLL-OUT, TEAM - the prototype's
   .p / .det / .fixbox / .facts / .btn / .ro / .role / .sms, held to the
   F-3 glove floors above: nothing under 18 px, every control >= 56 px,
   steel control edges #7A8AA0, red text #FF7070. Colour never carries
   meaning alone: every card has its state WORD. */
body.storm .st-p {
  display: block; text-decoration: none; color: #FFF; background: #0B0F15; border: 2px solid #7A8AA0;
  border-left: 6px solid var(--c, #7A8AA0); border-radius: 14px; padding: 12px 14px; margin: 10px 0; font-size: 18px;
}
body.storm .st-p .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
body.storm .st-p .unit, body.storm .st-det .unit, body.storm .st-ro .unit { font: 700 22px/1.1 "SF Mono", Menlo, Consolas, monospace; }
body.storm .st-p .state { font-weight: 800; font-size: 18px; color: var(--c); letter-spacing: .04em; }
body.storm .st-p .what { font-weight: 700; font-size: 20px; margin-top: 6px; }
body.storm .st-p .fix { color: #57A9FE; font-size: 18px; margin-top: 4px; }
body.storm .st-p .meta, body.storm .st-ro .meta { color: var(--st-silver); font-size: 18px; margin-top: 4px; }
body.storm .st-empty--small { padding: 10px; font-size: 18px; }
body.storm .st-watch { margin: 16px 0; border: 2px solid #7A8AA0; border-radius: 14px; padding: 12px 14px; font-size: 18px; color: var(--st-silver); }
body.storm .st-watch summary { min-height: 56px; display: flex; align-items: center; font-weight: 700; color: #FFF; cursor: pointer; }
body.storm .st-watch li { margin: 6px 0; }
body.storm .st-link { display: inline-flex; align-items: center; min-height: 56px; color: var(--st-silver); font-size: 18px; text-decoration: underline; }
body.storm .st-link--btn { appearance: none; background: none; border: 0; padding: 0 8px; margin: 0; width: auto; box-shadow: none; font-family: inherit; }
body.storm .st-det .unit { font-size: 38px; margin-top: 4px; }
body.storm .st-det .what { font-size: 28px; font-weight: 800; margin: 6px 0; }
body.storm .st-det .raw { font: 18px/1.4 "SF Mono", Menlo, Consolas, monospace; color: var(--st-muted); }
body.storm .st-fixbox { background: #08131f; border: 2px solid #1d4f80; border-radius: 14px; padding: 12px 14px; margin: 12px 0; color: #57A9FE; font-size: 20px; }
body.storm .st-fixbox .lbl { font-size: 18px; letter-spacing: .1em; text-transform: uppercase; color: var(--st-muted); margin-bottom: 4px; }
body.storm .st-fixbox .src { font-size: 18px; color: var(--st-muted); margin-top: 6px; }
body.storm .st-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
body.storm .st-facts > div { background: #0B0F15; border: 2px solid #1C2634; border-radius: 12px; padding: 10px 12px; font-size: 18px; color: var(--st-muted); }
body.storm .st-facts b { display: block; color: #FFF; font-size: 20px; }
body.storm .st-texted { font-size: 18px; color: var(--st-silver); margin: 10px 0; }
body.storm .st-texted .held { color: #FFB020; margin-top: 4px; }
body.storm .st-has { font-size: 20px; margin: 10px 0; }
body.storm .st-big {
  appearance: none; display: block; width: 100%; background: #000; color: #FFF; border: 2px solid var(--c, #0091FF);
  border-radius: 14px; padding: 14px; min-height: 64px; margin: 10px 0; font: 800 20px/1.1 -apple-system, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .03em; box-shadow: 0 0 10px rgba(0,145,255,.25);
}
body.storm .st-big--fill { --c: #3DDC84; background: #3DDC84; color: #000; min-height: 72px; font-size: 24px; letter-spacing: .06em; }
body.storm .st-big--red { --c: var(--st-red); }
body.storm .st-big.sel { background: var(--c); color: #000; }
body.storm .st-big:disabled { opacity: .6; }
body.storm .st-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
body.storm .st-grid2 .st-big { margin: 0; min-height: 72px; }
body.storm .st-partlab { display: block; font-size: 18px; color: var(--st-silver); margin: 10px 0 0; }
body.storm .st-part {
  display: block; width: 100%; background: #000; color: #FFF; border: 2px solid #7A8AA0; border-radius: 12px;
  padding: 12px 14px; min-height: 56px; font-size: 18px; margin-top: 6px; font-family: inherit;
}
body.storm .st-card { background: #0B0F15; border: 2px solid #1C2634; border-radius: 14px; padding: 6px 14px; margin: 10px 0; font-size: 18px; }
body.storm .st-watcher { color: var(--st-silver); padding: 12px 14px; }
body.storm .st-okline { color: #3DDC84; font-weight: 700; padding: 12px 14px; }
body.storm .st-note { border-color: #3DDC84; color: #3DDC84; background: #07140c; }
body.storm .st-ro {
  background: #0B0F15; border: 2px solid #1C2634; border-left: 6px solid var(--c); border-radius: 14px; padding: 12px 14px; margin: 10px 0;
}
body.storm .st-ro .why { font-size: 20px; font-weight: 800; color: var(--c); margin: 6px 0 2px; }
body.storm .st-ro .done { font-size: 18px; color: #3DDC84; font-weight: 700; margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
body.storm .st-role { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid #1C2634; }
body.storm .st-role:last-child { border-bottom: 0; }
body.storm .st-role .k { font-size: 18px; letter-spacing: .08em; color: var(--st-muted); text-transform: uppercase; }
body.storm .st-role .v { font-size: 20px; font-weight: 700; }
body.storm .st-role .v.mono { font-family: "SF Mono", Menlo, Consolas, monospace; }
body.storm .st-role .t { font-size: 18px; color: #3DDC84; font-weight: 700; text-align: right; }
body.storm .st-role .t.muted { color: var(--st-muted); }
body.storm .st-sms { background: #1b1f26; border-radius: 18px 18px 18px 4px; padding: 10px 12px; font-size: 18px; color: #FFF; max-width: 94%; margin: 8px 0; }
body.storm .st-sms small { display: block; color: var(--st-muted); font-size: 18px; margin-top: 4px; }
body.storm .st-nav a[hidden] { display: none !important; }
/* HOTFIX rel-phase4-1009 (JD 10:57 PM, iPhone, live: "when I move all the way
   down the bottom at the end of the list, I can't see the bar ... unless I hold
   the list all the way up with my thumb"): the page's own tab bar is FIXED to
   the bottom of the screen (sticky inside the flex column let it drop below
   the fold), inside the iPhone home-indicator inset, never wrapping off
   screen (5 tabs = two rows of three, both inside the bar), and the page
   pads its bottom by the bar's height so the last row is never under it.
   JD 10:58 PM "there's no back button. Or even home button": Back + Home
   come from the shared page header (web/page-header.js, R-1009-47). */
body.storm .st-nav {
  position: fixed; left: 50%; right: auto; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 430px; box-sizing: border-box; z-index: 1000;
}
/* the bar can be two or three rows (6-7 tabs since p5-2 + p5-13): storm.js measures it into --st-nav-h */
body.storm .st-phone { padding-bottom: calc(var(--st-nav-h, 150px) + 16px + env(safe-area-inset-bottom)); }

/* P5-137 F (12:11 AM rerun: five controls under 44 px on storm.html at 390). On a
   phone every button, drop-down, text box and link-button on the Storm page is at
   least 44 px tall (the tabs and the EN/ES pair are already 44 in page-header.css). */
@media (max-width: 899px) {
  html body.storm .st-phone :is(button, select, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), a.st-link, summary) { min-height: 44px; box-sizing: border-box; }
}
/* p5-143: "Open a storm" button + its panel (office / owner), under the picker line */
body.storm .st-open { margin: 6px 0; }
body.storm .st-open-panel { display: grid; gap: 8px; margin: 8px 0; padding: 12px; background: #0B0F15; border: 1px solid #1C2634; border-radius: 12px; }
body.storm .st-open-panel[hidden], body.storm .st-open[hidden], body.storm .st-open-msg[hidden] { display: none; }
body.storm .st-open-panel label { display: grid; gap: 4px; font-size: 13px; color: var(--st-muted); }
body.storm .st-open-panel input { min-height: 44px; padding: 0 10px; font: inherit; font-size: 16px; color: #FFF; background: #000; border: 1.5px solid #1C2634; border-radius: 10px; }
body.storm .st-open-row { display: flex; gap: 10px; }
body.storm .st-open-msg { margin: 6px 0; font-weight: 600; }
