/* ==========================================================================
   storm-look.css — the Storm Time facelift for the Bacco Tree App.
   Rev 1 DRAFT, 2026-10-09, app-ux-designer. Owner: app-ux-designer.
   Rev 1.1 2026-10-09 (rel-sprint-1009 fix pass, app-builder): F-1 chosen
   fill, F-2 tile edges, per app-tester's verdict; the design lane's copy
   in playbooks/app/design/prototypes/facelift-storm-look/ is re-copied
   from this one.
   Builders copy this file to web/storm-look.css BYTE-FOR-BYTE and link it
   as the LAST stylesheet in <head> of each page. They do not edit it.

   JD 2026-10-09 16:41 CDT (R-1009-25): "I don't like the look of the app.
   I like the look of the renderings you showed me earlier. That looks more
   like the Storm app. I want a complete facelift on the tree app. To look
   like the Storm app."
   JD 16:19: "nothing you're telling me is exactly like the words on the
   app" -> this file changes NO word. CSS only; no `content:` text anywhere.

   Source of the look: tools/stormtime/stormtime.html (German's live iPad
   page) and outbox/tree-shop/2026-10-09_TREE-SHOP_prototype.html.
   Spec: playbooks/app/design/2026-10-09_FACELIFT_storm-look_spec.md.

   KEPT FROM tokens.css (gloves at 6 AM): --tap 56px, --tap-primary 64px,
   --tap-gap 8px, --fs-min 18px, --fs-body 20px, text >= 7:1, control
   boundaries >= 4.5:1. Every colour pair below is measured in the spec §4.
   Scope: the DARK default only. data-theme="light" keeps the old look.
   ========================================================================== */

/* ---- 1. Token values (dark default) ------------------------------------ */
html:not([data-theme="light"]) {
  /* Storm Time palette (stormtime.html :root) */
  --c-panel:      #0B0F15;  /* card ground                               */
  --c-panel-2:    #10161F;  /* inner box ground                          */
  --c-line:       #1C2634;  /* card edge - decorative only, never a control */
  --c-blue-2:     #0091FF;  /* borders + glow only (6.49:1), never text  */
  --c-cyan:       #19E6FF;  /* 13.80:1 */
  --c-green:      #3DDC84;  /* 11.77:1 */
  --c-amber:      #FFB020;  /* 11.48:1 */
  --c-red-text:   #FF7070;  /*  7.80:1 (Storm #FF5A5A is 6.86 - lifted)  */
  --c-violet-text:#B58AFF;  /*  8.04:1 (Storm #A66CFF is 6.21 - lifted)  */
  --c-orange:     #FF7A45;  /*  8.12:1 */
  --c-text-3:     #A3ACB9;  /*  9.16:1 hints (Storm muted #8A94A3 is 6.85 - lifted) */
  --font-display: "Cinzel", Georgia, "Times New Roman", serif; /* same stack as Storm Time; no web font is fetched */
  --font-mono:    "SF Mono", Menlo, Consolas, monospace;
  --radius-card:  14px;

  /* changed values of existing tokens */
  --font-ui:      -apple-system, "Helvetica Neue", Arial, sans-serif; /* Storm Time body stack, system font, offline */
  --c-border:     #7A8AA0;  /* steel control border 5.97:1 (was silver) */
  --c-alert-bg:   #14100A;  /* alert = Storm lock-note: amber on near-black */
  --c-alert-text: #FFB020;  /* 10.8:1 on #14100A */
  --radius:       12px;     /* was 6px */
}

/* ---- 2. Page ground ---------------------------------------------------- */
html:not([data-theme="light"]) body {
  background: radial-gradient(ellipse 120% 40% at 50% -8%, rgba(0,124,253,.20), rgba(0,124,253,0) 70%) no-repeat, #000;
  font-family: var(--font-ui);
}

/* ---- 3. Titles: the STORM TIME header ---------------------------------- */
/* h1 on every page; h2 on the sign-in family of screens (they are titles there) */
html:not([data-theme="light"]) h1,
html:not([data-theme="light"]) #screen-login h1,
html:not([data-theme="light"]) main[id^="screen-"] h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #C7C7C7;                                   /* fallback if clip is unsupported */
  background: linear-gradient(180deg, #FFFFFF 15%, #F3F3F3 32%, #DADADA 60%, #C7C7C7 92%, #A9A9A9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: var(--sp-1) 0 var(--sp-2);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-rule);
}
/* the sign-in title sits under the picture: a size smaller, so the PIN stays above the fold (home.css arithmetic) */
html:not([data-theme="light"]) #screen-login h1 { font-size: 24px; margin-top: 0; }
/* section labels inside a screen (Tree Shop "State"): Storm card h2 */
html:not([data-theme="light"]) main[id^="ts-screen"] h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-min);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent);                           /* 8.51:1 */
}

/* ---- 4. Text ----------------------------------------------------------- */
html:not([data-theme="light"]) .muted { color: var(--c-text-3); }
html:not([data-theme="light"]) label { color: var(--c-text-2); letter-spacing: .02em; }
html:not([data-theme="light"]) #home-who {
  color: var(--c-cyan); font-weight: 600; letter-spacing: .04em;
}

/* ---- 5. Alerts = the Storm lock note (amber outline on near-black) ------ */
html:not([data-theme="light"]) .warn,
html:not([data-theme="light"]) .alert,
html:not([data-theme="light"]) .ts-banner {
  background: var(--c-alert-bg);
  color: var(--c-alert-text);
  border: 2px solid var(--c-amber);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(255,176,32,.25);
}
html:not([data-theme="light"]) .ts-banner .banner { color: var(--c-amber); }
html:not([data-theme="light"]) .filed-notice {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-left: 6px solid var(--c-green);
  border-radius: var(--radius-card);
}

/* ---- 6. Fields, the B-number box and the PIN box ------------------------ */
html:not([data-theme="light"]) input,
html:not([data-theme="light"]) textarea,
html:not([data-theme="light"]) select {
  background: #000;
  color: #FFF;
  border: var(--bw) solid var(--c-border);
  border-radius: var(--radius);
  caret-color: var(--c-cyan);
}
html:not([data-theme="light"]) input:focus,
html:not([data-theme="light"]) textarea:focus,
html:not([data-theme="light"]) select:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 14px rgba(25,230,255,.45);
}
html:not([data-theme="light"]) input[inputmode="numeric"] {
  font-family: var(--font-mono);
  font-weight: 700;
}
html:not([data-theme="light"]) .bnum-prefix {
  background: var(--c-panel-2);
  color: var(--c-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  border-color: var(--c-border);
  border-radius: var(--radius) 0 0 var(--radius);
}

/* ---- 7. Forms sit on a card (Storm .card) ------------------------------- */
html:not([data-theme="light"]) #signin,
html:not([data-theme="light"]) #enrol-form,
html:not([data-theme="light"]) #enrol-pin-form,
html:not([data-theme="light"]) #pin-change-form {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-card);
  padding: 4px 14px 14px;
  margin: var(--sp-2) 0;
}

/* ---- 8. Buttons: black, coloured edge, soft glow (Storm .btn) ----------- */
html:not([data-theme="light"]) button,
html:not([data-theme="light"]) a.primary {
  --c: var(--c-blue-2);
  background: #000;
  color: #FFF;
  border: 2px solid var(--c);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 0 8px color-mix(in srgb, var(--c) 30%, transparent);
}
/* quiet buttons (go back / clear / hold-to-show / cancel): Storm .btn.silver */
html:not([data-theme="light"]) #clear-b,
html:not([data-theme="light"]) #reveal,
html:not([data-theme="light"]) #enrol-back,
html:not([data-theme="light"]) #enrol-pin-keep,
html:not([data-theme="light"]) #pin-change-leave,
html:not([data-theme="light"]) #pin-change-home,
html:not([data-theme="light"]) #signout,
html:not([data-theme="light"]) #open-pin-change,
html:not([data-theme="light"]) #ts-cert-cancel,
html:not([data-theme="light"]) #ts-state-cancel,
html:not([data-theme="light"]) #ts-queue-refresh,
html:not([data-theme="light"]) #ts-board-refresh { --c: #C7C7C7; box-shadow: none; }
/* the way in for a new phone: Storm .btn.cyan */
html:not([data-theme="light"]) #open-enrol { --c: var(--c-cyan); }

/* THE ONE PRIMARY per screen: the green-edged button JD liked ("I'VE GOT IT") */
html:not([data-theme="light"]) #submit,
html:not([data-theme="light"]) #enrol-submit,
html:not([data-theme="light"]) #enrol-pin-submit,
html:not([data-theme="light"]) #pin-change-submit,
html:not([data-theme="light"]) button.primary,
html:not([data-theme="light"]) a.primary {
  --c: var(--c-green);
  display: block;
  width: 100%;
  background: #000;
  color: #FFF;
  min-height: var(--tap-primary);
  border-color: var(--c);        /* beats home.css #submit border-color */
  border-width: 3px;
  border-radius: var(--radius-card);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 0 14px color-mix(in srgb, var(--c) 45%, transparent);
}

/* chosen (aria-pressed=true): Storm .btn.fill - colour fill, black words */
html:not([data-theme="light"]) button[aria-pressed="true"] {
  /* F-1 (app-tester 2026-10-09): black on #0091FF is 6.49:1 < 7. A chosen
     button whose colour is the default blue (or the steel edge) fills with
     the accent instead (#57A9FE, 8.51:1 - base's value); coloured buttons
     keep their own fill. --c is resolved on this element, so re-pointing
     the two tokens here re-points only the default. */
  --c-blue-2: var(--c-accent);
  --c-border: #C7C7C7;
  background: var(--c);
  color: #000;
  border-color: var(--c);
  font-weight: 800;
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 55%, transparent);
}
/* finger-down flash (E-67 .is-pressing keeps its fill); add the Storm glow */
html:not([data-theme="light"]) .is-pressing {
  box-shadow: 0 0 26px var(--c-accent), inset 0 0 16px rgba(87,169,254,.35) !important;
}

/* language pair (login + Tree Shop): two Storm tabs side by side */
html:not([data-theme="light"]) #lang-en,
html:not([data-theme="light"]) #lang-es,
html:not([data-theme="light"]) .lang button {
  --c: var(--c-border);
  color: #C7C7C7;
  font-weight: 700;
  letter-spacing: .06em;
  box-shadow: none;
}
html:not([data-theme="light"]) #lang-en[aria-pressed="true"],
html:not([data-theme="light"]) #lang-es[aria-pressed="true"],
html:not([data-theme="light"]) .lang button[aria-pressed="true"] { --c: #C7C7C7; color: #000; }

/* ---- 9. Home rows: Storm tiles, one colour edge per door ---------------- */
html:not([data-theme="light"]) .home-row {
  --c: var(--c-blue-2);
  position: relative;
  min-height: 64px;
  padding: 16px 48px 16px 16px;
  display: flex; align-items: center;
  background: var(--c-panel);
  color: #FFF;
  border: 2px solid var(--c-border); /* F-2: a tappable tile gets a control edge, steel 5.97:1 */
  border-left: 6px solid var(--c);
  border-radius: var(--radius-card);
  font-size: 22px;
  font-weight: 700;
  box-shadow: none;
}
html:not([data-theme="light"]) .home-row[hidden] { display: none; }
/* chevron drawn with borders - no character, no text */
html:not([data-theme="light"]) a.home-row::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 12px; height: 12px; margin-top: -6px;
  border-top: 3px solid var(--c-text-3); border-right: 3px solid var(--c-text-3);
  transform: rotate(45deg);
}
html:not([data-theme="light"]) #home-jobs           { --c: var(--c-blue-2); }
html:not([data-theme="light"]) #home-crewday        { --c: var(--c-blue-2); }
html:not([data-theme="light"]) #home-dvir           { --c: var(--c-cyan); }
html:not([data-theme="light"]) #home-job-briefing   { --c: var(--c-amber); }
html:not([data-theme="light"]) #home-training       { --c: var(--c-violet-text); }
html:not([data-theme="light"]) #home-near-miss      { --c: var(--c-red-text); }
html:not([data-theme="light"]) #home-gear           { --c: var(--c-green); }
html:not([data-theme="light"]) #home-office,
html:not([data-theme="light"]) #home-owners         { --c: #C7C7C7; }
html:not([data-theme="light"]) #home-treeshop-owner,
html:not([data-theme="light"]) #home-treeshop-office { --c: var(--c-orange); }
/* account pair (Change PIN, Sign out): plain black, steel edge, no colour bar */
html:not([data-theme="light"]) .home-row--account,
html:not([data-theme="light"]) .home-row--signout {
  background: #000;
  border: 2px solid var(--c-border);
  color: #C7C7C7;
  font-size: var(--fs-label);
  font-weight: 600;
  min-height: var(--tap);
}

/* ---- 10. Tree Shop ------------------------------------------------------ */
/* Home / back = Storm tabs, stacked two across */
html:not([data-theme="light"]) .ts-nav a,
html:not([data-theme="light"]) .ts-nav button {
  --c: var(--c-blue-2);
  background: #000;
  color: #FFF;
  border: 2px solid var(--c);
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 0 12px color-mix(in srgb, var(--c) 40%, transparent);
}
html:not([data-theme="light"]) .ts-nav .ts-back { --c: #C7C7C7; box-shadow: none; }

/* the three Tree Shop doors = Storm tiles */
html:not([data-theme="light"]) button.ts-row {
  --c: var(--c-cyan);
  min-height: 76px;
  background: var(--c-panel);
  border: 2px solid var(--c-border); /* F-2: control edge, steel 5.97:1 */
  border-left: 6px solid var(--c);
  border-radius: var(--radius-card);
  box-shadow: none;
  padding: 14px 16px;
}
html:not([data-theme="light"]) #ts-row-queue  { --c: var(--c-red-text); }
html:not([data-theme="light"]) #ts-row-board  { --c: var(--c-amber); }
html:not([data-theme="light"]) #ts-row-review { --c: var(--c-cyan); }
html:not([data-theme="light"]) .ts-row-label { font-size: 22px; font-weight: 700; color: #FFF; }
html:not([data-theme="light"]) .ts-row-when  { color: var(--c-text-2); font-size: var(--fs-min); margin-top: 2px; }

/* one unit = one card; unit number in mono like Storm's truck numbers */
html:not([data-theme="light"]) section.ts-unit {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-left: 6px solid var(--c-cyan);
  border-radius: var(--radius-card);
  padding: 12px 14px 6px;
  margin: 0 0 var(--sp-2);
}
html:not([data-theme="light"]) .ts-unit-head {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #FFF;
}
html:not([data-theme="light"]) .ts-put-down { --c: var(--c-amber); }
html:not([data-theme="light"]) button.ts-defect,
html:not([data-theme="light"]) div.ts-defect {
  --c: var(--c-cyan);
  background: var(--c-panel-2);
  color: #FFF;
  border: 2px solid var(--c);
  border-radius: var(--radius);
  box-shadow: 0 0 10px color-mix(in srgb, var(--c) 25%, transparent);
  font-weight: 400;
}
html:not([data-theme="light"]) div.ts-defect { border: 1px solid var(--c-line); box-shadow: none; }
html:not([data-theme="light"]) .ts-defect .ts-item { font-size: 21px; color: #FFF; }
html:not([data-theme="light"]) .ts-state-word { color: var(--c-amber); }
html:not([data-theme="light"]) .ts-entry { border-top-color: var(--c-line); }

/* state + outcome choices = Storm mode buttons (MOB/WORK/STANDBY colours) */
html:not([data-theme="light"]) #ts-state-pick-down          { --c: var(--c-red-text); }
html:not([data-theme="light"]) #ts-state-pick-waiting_parts { --c: var(--c-amber); }
html:not([data-theme="light"]) #ts-state-pick-in_work       { --c: var(--c-cyan); }
html:not([data-theme="light"]) #ts-state-pick-ready         { --c: var(--c-green); }
html:not([data-theme="light"]) #ts-cert-repaired            { --c: var(--c-green); }
html:not([data-theme="light"]) #ts-cert-norepair            { --c: #C7C7C7; }

/* p4-4 bottom bar */
/* P4-4 (Phase 4), app-builder 2026-10-09: the shared bottom bar painted by
   web/bottom-bar.js. Look = storm.html #st-nav (black, blue top rule, round
   edged tabs, the page you are on lit blue). Glove floors: 56px buttons,
   17px bold caps, 44px minimum tap, iPhone safe area at the bottom.
   html.bb-on pads the page so the last content row is never under the bar.
   z-index 1000 keeps the ALL STOP red screen (2147483000) and the hospital
   route (2147482000) above it. Appended only; nothing above is changed. */
html { --bb-h: calc(74px + env(safe-area-inset-bottom)); }
/* P5-86 (JD 2026-10-12 9:34 PM: "FYI the app pages are still not scrolling
   to the button all the way"): the ONE bottom reserve. bottom-bar.js
   publishes --bb-h (the bar's painted height) and --top-h (TOP's 56 + 12)
   on <html>; this rule pads the page, and the page-level scroll container
   that is not body (the install screen), by both + the safe area + 16 px.
   No per-page value may override it (desk.css / office-home.css removed). */
/* cand-board3: the rule has NO extra env(safe-area-inset-bottom): --bb-h is the bar's painted height and the bar already pads its own bottom by the safe area, and the unpublished default above carries it too. */
html.bb-on body,
html.bb-on .install-screen {
  padding-bottom: calc(var(--bb-h, 0px) + var(--top-h, 0px) + 16px) !important;
}
html nav.bb-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: grid; grid-template-columns: repeat(4, minmax(min-content, 1fr)); gap: 4px;
  margin: 0; padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: #000; border-top: 2px solid var(--c-blue-2, #0091FF);
}
html nav.bb-bar a.bb-tab {
  display: flex; align-items: center; justify-content: center; text-align: center;
  box-sizing: border-box; min-height: 56px; min-width: 44px; padding: 4px 1px;
  background: #000; border: 2px solid #7A8AA0; border-radius: 12px;
  color: #C7C7C7; text-decoration: none;
  font-size: 17px; font-weight: 800; line-height: 1.1; letter-spacing: 0; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
html nav.bb-bar a.bb-tab.on { border-color: #0091FF; color: #FFF; box-shadow: 0 0 12px rgba(0,145,255,.45); }
html nav.bb-bar a.bb-tab:focus-visible { outline: 3px solid #FFF; outline-offset: 2px; }
/* things already pinned to the bottom of a page sit on top of the bar */
html.bb-on body.fleet .fm-sheet { bottom: var(--bb-h); max-height: calc(82vh - var(--bb-h)); }
html.bb-on body.stormtime .dock { bottom: var(--bb-h); }
@media print { html nav.bb-bar { display: none; } html.bb-on body { padding-bottom: 0 !important; } }
/* P5-57B (R-1011-17 DESIGN-DECISIONS section 4), app-builder 2026-10-11:
   HOME . slot 2 . STORM . ME - slot 2 is 1.35 wide so PRODUCTION fits at the
   bar's 17px; no column ever narrower than its word (no clipping). STORM
   with a storm open: amber edge + dot, the storm's short name under it.
   Appended only; nothing above is changed. */
html nav.bb-bar {
  grid-template-columns: minmax(min-content, 1fr) minmax(min-content, 1.35fr) minmax(min-content, 1fr) minmax(min-content, 1fr);
}
html nav.bb-bar a.bb-tab.bb-storm { flex-direction: column; }
html nav.bb-bar a.bb-tab.bb-storm.bb-live { border-color: var(--c-amber, #FFB020); color: #FFF; }
html nav.bb-bar a.bb-tab.bb-storm.bb-live::before {
  content: ""; display: block; width: 8px; height: 8px; margin: 0 0 2px;
  border-radius: 50%; background: var(--c-amber, #FFB020);
}
html nav.bb-bar a.bb-tab .bb-name {
  display: block; max-width: 100%; overflow: hidden; white-space: nowrap;
  font-size: 13px; font-weight: 700; color: var(--c-amber, #FFB020); text-transform: uppercase;
}
/* ---- PORTRAIT-FIT A (app-mobile-engineer audit 2026-10-11, JD 4:43 PM "the buttons don't fit the page").
   Cause: iPhone Display Zoom (Settings > Display & Brightness > Display Zoom > Larger Text) lays the page out at
   320 CSS px on a 6.1-inch phone and 375 on a 6.7-inch one; every size here is px, and the bar's columns were
   minmax(min-content, ...) so they could not shrink below their words. Appended only. */
html nav.bb-bar {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 3px; padding-left: max(4px, env(safe-area-inset-left)); padding-right: max(4px, env(safe-area-inset-right));
}
html nav.bb-bar a.bb-tab { position: relative; min-width: 0; padding: 4px 2px; white-space: nowrap; }
html nav.bb-bar a.bb-tab .bb-name { width: 100%; text-overflow: ellipsis; }
@media (max-width: 399px) { html nav.bb-bar a.bb-tab { font-size: 15px; } html nav.bb-bar a.bb-tab .bb-name { font-size: 12px; } }
@media (max-width: 359px) { html nav.bb-bar a.bb-tab { font-size: 13px; letter-spacing: 0; } html nav.bb-bar a.bb-tab .bb-name { font-size: 11px; } }
/* the compact 40 px bar on pages with the page header (page-header.css:44): the live-storm dot goes to the corner so STORM + its name fit */
html.ph-on nav.bb-bar a.bb-tab.bb-storm { line-height: 1.05; }
html.ph-on nav.bb-bar a.bb-tab.bb-storm.bb-live::before { position: absolute; top: 3px; right: 5px; margin: 0; }
/* the status bar / Dynamic Island: a black band the page scrolls under, never words under the clock */
html::before {
  content: ""; position: fixed; left: 0; right: 0; top: 0; z-index: 1400; pointer-events: none;
  height: env(safe-area-inset-top, 0px); background: #000;
}

/* C3 - append to web/storm-look.css after Section A (the three mechanic screens with no sheet of their own) */
body.storm #rr-main label, body.storm #md-main label, body.storm #uv-main label { display: block; margin: 12px 0 4px; }
body.storm #rr-main :is(input, select, textarea), body.storm #md-main :is(input, select, textarea), body.storm #uv-main :is(input, select, textarea) {
  display: block; width: 100%; box-sizing: border-box; min-height: 56px; padding: 8px 12px; font-size: 18px; }

/* p5-83 dock rearrange */
/* P5-83 (JD 2026-10-12 7:13 PM; W-9 D-W9-1/3/5), app-builder: four EQUAL keys
   (slot 2 is no longer 1.35), the word at the bar's 17px from 360 px up; a
   two-word key wraps to two lines rather than clip. Hold one second =
   html.bb-editing + nav.bb-edit: the keys lift and wiggle in place, the key
   under the finger (.bb-drag) rides higher; HOME (.bb-lock) never lifts.
   Appended only; nothing above is changed.
   P5-83B (D-W9-1, pictures 2026-10-12 8:08 PM): every dock word is a short
   word (strings nav.*_dock), so a key never wraps (nowrap) and never clips;
   the lifted key moves sideways by --bb-dx (bottom-bar.js keeps it inside
   the dock), no scale; the wiggle is 1deg. */
html nav.bb-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html nav.bb-bar a.bb-tab {
  white-space: nowrap; overflow: visible;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
@media (min-width: 360px) { html nav.bb-bar a.bb-tab { font-size: 17px; } }
html nav.bb-bar.bb-edit a.bb-tab { touch-action: none; }
html nav.bb-bar.bb-edit a.bb-tab:not(.bb-lock) {
  transform: translateY(-4px); box-shadow: 0 6px 14px rgba(0,0,0,.6), 0 0 0 2px #FFF;
  animation: bb-wiggle .28s ease-in-out infinite alternate;
}
html nav.bb-bar.bb-edit a.bb-tab.bb-drag {
  transform: translate(var(--bb-dx, 0px), -12px); animation: none; z-index: 2; border-color: #FFF; color: #FFF;
}
html nav.bb-bar.bb-edit a.bb-tab.bb-lock { opacity: .55; }
@keyframes bb-wiggle {
  from { transform: translateY(-4px) rotate(-1deg); }
  to { transform: translateY(-4px) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) { html nav.bb-bar.bb-edit a.bb-tab:not(.bb-lock) { animation: none; } }
