/* ============================================================
   SABRINA OS — Shared Design System v2.5
   Glassmorphism · Animations · OS-grade Polish
   ============================================================ */

/* --- Make backgrounds transparent enough for glass to show --- */
.hero, .panel {
  background: rgba(8, 24, 56, 0.58) !important;
  border: 1px solid rgba(100, 180, 255, 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 0 0 1px rgba(80,160,240,.08),
    0 16px 40px rgba(0,0,0,.42) !important;
}

.site-chrome {
  background: rgba(5, 16, 40, 0.82) !important;
  border: 1px solid rgba(80, 150, 220, 0.22) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 8px 28px rgba(0,0,0,.36) !important;
}

/* --- Glassmorphism blur --- */
.panel, .hero, .site-chrome {
  backdrop-filter: blur(28px) saturate(1.6) brightness(1.04);
  -webkit-backdrop-filter: blur(28px) saturate(1.6) brightness(1.04);
}

/* --- Richer, animated background orbs (applied to body via extra radials) --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 700px 500px at 15% 85%, rgba(21,81,173,.28) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 90% 10%, rgba(22,143,111,.32) 0%, transparent 65%),
    radial-gradient(ellipse 600px 400px at 50% 50%, rgba(32,90,160,.15) 0%, transparent 70%);
  animation: orbDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes orbDrift {
  0%   { opacity: .9;  transform: scale(1)    translateY(0px); }
  50%  { opacity: 1;   transform: scale(1.04) translateY(-12px); }
  100% { opacity: .85; transform: scale(.97)  translateY(8px); }
}

/* --- Enhanced nav links --- */
.lane-link {
  transition:
    transform .2s cubic-bezier(.4,0,.2,1),
    filter .2s cubic-bezier(.4,0,.2,1),
    box-shadow .2s cubic-bezier(.4,0,.2,1),
    background .2s ease !important;
}
.lane-link:hover  { transform: translateY(-2px) !important; }
.lane-link:active { transform: scale(.96) translateY(1px) !important; }

/* --- Entrance animations --- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero { animation: fadeSlideUp .5s cubic-bezier(.4,0,.2,1) both; }
.grid > *:nth-child(1) { animation: fadeSlideUp .5s cubic-bezier(.4,0,.2,1) .06s both; }
.grid > *:nth-child(2) { animation: fadeSlideUp .5s cubic-bezier(.4,0,.2,1) .12s both; }
.grid > *:nth-child(3) { animation: fadeSlideUp .5s cubic-bezier(.4,0,.2,1) .18s both; }
.grid > *:nth-child(4) { animation: fadeSlideUp .5s cubic-bezier(.4,0,.2,1) .24s both; }
.grid > *:nth-child(5) { animation: fadeSlideUp .5s cubic-bezier(.4,0,.2,1) .30s both; }
.grid > *:nth-child(6) { animation: fadeSlideUp .5s cubic-bezier(.4,0,.2,1) .36s both; }

/* --- Animated breathing status dots --- */
@keyframes dotBreath {
  0%, 100% { transform: scale(1);    opacity: 1;   box-shadow: 0 0 0 0 currentColor; }
  50%       { transform: scale(1.4); opacity: .6;  box-shadow: 0 0 6px 2px currentColor; }
}
.dot.ok   { animation: dotBreath 2.4s ease-in-out infinite; color: #31d29a; }
.dot.warn { animation: dotBreath 3.0s ease-in-out infinite; color: #f1c85f; }
.dot.bad  { animation: dotBreath 1.6s ease-in-out infinite; color: #ff7488; }

/* --- OS Progress Bar --- */
.os-progress-wrap {
  height: 7px;
  border-radius: 999px;
  background: rgba(4,19,43,.65);
  overflow: hidden;
  border: 1px solid rgba(80,140,200,.15);
}
.os-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #168f6f, #20b681, #31d29a);
  background-size: 200% 100%;
  width: 0%;
  transition: width .9s cubic-bezier(.4,0,.2,1);
  animation: barShimmer 2.5s linear infinite;
}
.os-progress-bar.warn {
  background: linear-gradient(90deg, #a07010, #c49a20, #f1c85f);
  background-size: 200% 100%;
}
.os-progress-bar.bad {
  background: linear-gradient(90deg, #8f2030, #b64b5f, #ff7488);
  background-size: 200% 100%;
}
@keyframes barShimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* --- Live Clock --- */
.os-live-clock {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #7aaed4;
  letter-spacing: .07em;
}

/* --- Button press effect --- */
.btn:active, .nav a:active, .hero-actions .btn:active {
  transform: translateY(1px) scale(.97) !important;
  filter: brightness(.9) !important;
  transition-duration: .05s !important;
}

/* --- KPI card hover glow --- */
.kpi {
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.kpi:hover {
  border-color: rgba(49,210,154,.42) !important;
  background: rgba(10,40,80,.85) !important;
  box-shadow: 0 0 22px rgba(32,182,130,.14) !important;
}

/* --- Table row hover --- */
td { transition: background .14s ease; }
tr:not(:first-child):hover td { background: rgba(40,100,160,.13); }

/* --- Pill / tag glow --- */
.pill.ok,  .tag.ok  { box-shadow: 0 0 10px rgba(49,210,154,.32); }
.pill.warn,.tag.warn { box-shadow: 0 0 10px rgba(241,200,95,.26); }
.pill.bad, .tag.bad  { box-shadow: 0 0 10px rgba(255,116,136,.32); }

/* --- Custom scrollbar --- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(4,19,43,.7); border-radius: 999px; }
::-webkit-scrollbar-thumb { background: rgba(45,108,173,.6); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(60,140,210,.85); }

/* --- Shimmer loading state --- */
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.loading-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,.03) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.03) 75%);
  background-size: 200% auto;
  animation: shimmer 1.8s linear infinite;
  border-radius: 6px;
}

/* --- Lane/pulse card accent borders --- */
.lane-card, .pulse-item {
  border: 1px solid rgba(80,140,200,.18);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lane-card:hover {
  border-color: rgba(49,210,154,.3);
  box-shadow: 0 0 16px rgba(32,182,130,.1);
}

/* --- Notion link cards --- */
.notion-link {
  transition:
    transform .18s cubic-bezier(.4,0,.2,1),
    box-shadow .18s ease,
    filter .18s ease !important;
}
.notion-link:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 0 0 1px rgba(126,223,198,.24),
    0 0 22px rgba(32,182,129,.2),
    0 12px 20px rgba(0,0,0,.28) !important;
}

/* ============================================================
   SABRINA OS — Hero Title Row
   Shared layout for the hero <h1> row. Formerly also hosted the
   "Founder OS Launcher" dropdown menu (Sprints 37-38); that nav
   pattern was superseded by the PADD left rail (PR #46/Sprint 45)
   and its launcher CSS/JS removed. This block now only lays out
   the hero title.
   ============================================================ */

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  margin-bottom: 8px;
}
.hero-title-row h1 {
  margin: 0;
  min-width: 0;
}

/* --- Ensure hero stacks above grid panels --- */
.hero {
  position: relative;
  z-index: 2;
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .hero-title-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
   SABRINA OS — Shared PADD Primitives
   Lightweight pieces of the Command Center PADD console, factored
   out so simpler founder pages (Grocery Optimizer, Intake Status,
   Founder Hub) can adopt them without copy-pasting CSS.

   IMPORTANT — Command Center compatibility:
   Command Center declares its own inline copies of `.explain` and
   `details.disclosure` in its <style> block, which loads BEFORE this
   stylesheet. Same-specificity rules here therefore win on that page,
   so the declarations below are kept VALUE-IDENTICAL to the inline
   originals (the --sapphire-glow fallback resolves to its #2A8FF0
   value on Command Center and to the literal elsewhere). Do not change
   these values without re-checking SABRINA_OS_Command_Center_Dashboard.html.
   ============================================================ */

/* Plain-language "what this tells you / why it matters" caption box,
   intended to sit under a technical panel or table. */
.explain {
  margin: 4px 0 8px;
  padding: 6px 9px;
  border-left: 3px solid var(--sapphire-glow, #2A8FF0);
  background: rgba(21,81,173,.14);
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  line-height: 1.5;
  color: #bcd6f5;
}
.explain strong { color: #d9ecff; }

/* Native <details> progressive disclosure for reference/detail-heavy
   content. Collapsed by default unless given the `open` attribute.
   Never wrap critical primary status in this — reference tables only. */
details.disclosure {
  margin-top: 8px;
  border: 1px solid #2d5080;
  border-radius: 10px;
  background: #0a1f40;
  overflow: hidden;
}
details.disclosure > summary {
  cursor: pointer;
  list-style: none;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #9ad0ff;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::before {
  content: "\25B8";
  display: inline-block;
  transition: transform .15s ease;
  color: #5fd6b9;
}
details.disclosure[open] > summary::before { transform: rotate(90deg); }
details.disclosure > summary .summary-hint {
  font-weight: 400;
  color: #7ba0c8;
  font-size: 11px;
}
details.disclosure > .disclosure-body { padding: 0 10px 10px; }

/* ============================================================
   SABRINA OS — Pill / Badge Vocabulary (documented convention)
   No class renames — every name below already ships in production.
   `.sot-pill` is the CANONICAL base for new founder pages going
   forward; `.pill` (page-local) and `.tag` (hero) remain valid for
   existing usage. This block documents the agreed mapping so future
   pages don't invent a fourth name or drift the labels.

     Concept                         Canonical class
     -----------------------------   ---------------------------
     Status pill (base)              .sot-pill
     Source-of-truth badge           .sot-pill.source-of-truth
     Live dashboard badge            .sot-pill.live   (alias: .pill.live)
     Capture-only badge              .sot-pill.capture-only
     Static snapshot badge           .sot-pill.static-snapshot
     Phase scaffold badge            .sot-pill.scaffold (alias: .pill.scaffold)
     Not connected / not integrated  .sot-pill.not-connected
                                       (alias: .pill.not-integrated)
     Needs attention / stale badge   .sot-pill.needs-attention

   These describe DATA LINEAGE / readiness only. They must never assert
   a business-state fact the page does not actually compute, and the
   founder-only console chrome they live in must not be reused verbatim
   on any future patient/user/doctor surface (see PADD audit §8).

   PR #49 — moved here from index.html's page-local <style> block, which
   was the ONLY place these rules existed (the vocabulary table above was
   documentation-only; pages other than index.html that tried to use
   .sot-pill got an unstyled plain span). Now genuinely shared so any
   founder page can use the lineage vocabulary, not just Founder Hub.
   `.not-connected` added as a real alias for `.not-integrated` (the doc
   table already claimed this alias existed; it didn't until now).
   ============================================================ */
.sot-pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.sot-pill.source-of-truth { background: rgba(80,216,194,.18); color: #b9fff0; border: 1px solid #3fae95; }
.sot-pill.live { background: rgba(21,81,173,.22); color: #cfe3ff; border: 1px solid #2a8ff0; }
.sot-pill.capture-only { background: rgba(241,200,95,.16); color: #ffe5a1; border: 1px solid #b48e33; }
.sot-pill.static-snapshot { background: rgba(165,189,223,.14); color: #c7d9f0; border: 1px solid #5a7ca3; }
.sot-pill.needs-attention { background: rgba(255,116,136,.16); color: #ffc3ce; border: 1px solid #b64b5f; }
.sot-pill.not-integrated, .sot-pill.not-connected { background: rgba(165,189,223,.08); color: #88a0c2; border: 1px dashed #4a6788; }
.sot-pill.scaffold { background: rgba(241,200,95,.16); color: #ffe5a1; border: 1px solid #b48e33; }

/* ============================================================
   SABRINA OS — Generic Status / Health Vocabulary (PR #49,
   formalized — not undecided leftover usage)

   `.pill`/`.tag` with `.ok`/`.warn`/`.bad` modifiers are the approved
   system for a DIFFERENT concept than the lineage pills above: a
   traffic-light read of a value or process — payment status, sync
   health, test/validation results, DQ flag state, event/classification
   labels. These never describe where data comes from or how trustworthy
   the connection is; that's what `.sot-pill` is for.

   Do not migrate `.pill.ok/.warn/.bad` or `.tag.ok/.warn/.bad` into
   `.sot-pill` — mixing the two concepts into one class defeats the
   point of separating them. When a new page needs a generic
   ok/warn/bad indicator, reuse `.pill.ok/.warn/.bad` (or `.tag.*` in a
   hero meta-tag row); when it needs a lineage/readiness indicator,
   use `.sot-pill.*` from the vocabulary above.
   ============================================================ */

/* ============================================================
   SABRINA OS — Role-Aware Shell Reference (documentation only,
   no new selectors below this point change appearance/behavior)

   Full detail: docs/SABRINA_OS_3_0_SHARED_APP_SHELL_TOKENS.md

   ROLE-NEUTRAL (shared-safe; visual shape only, content decides role):
     .hero, .panel, .explain, details.disclosure, .summary-hint,
     .disclosure-body, base glass/background system, color custom
     properties (e.g. --sapphire-glow).

   FOUNDER-ONLY (must never appear on a patient/doctor surface):
     .padd-shell, .padd-nav-rail, .padd-screen-head,
     .cmd-card, .sot-pill.* lineage states (source-of-truth,
     capture-only, static-snapshot, scaffold, not-connected,
     needs-attention), 3-column console-body/deck-rail/status-rail,
     data-shell-mode="founder_console", data-build-surface="founder_site".

   COMPONENT REUSED, MEANING REDEFINED PER ROLE:
     Status Pill shape only — founder pill = data lineage state;
     a future patient/doctor pill must define its own modifier
     classes (not .sot-pill.*) with plan/progress or review-queue
     semantics, scoped to its own future stylesheet.
   ============================================================ */

/* ════════════════════════════════════════════════════════════════════
   SABRINA OS — FIXED LANDSCAPE PADD SHELL  (Sprint 45)

   The shared "device" frame that makes every founder dashboard feel like
   one continuous horizontal PADD screen instead of a long vertical web
   page. Landscape-handheld interaction/layout inspiration only — no
   third-party sci-fi UI names, insignia, symbols, or copied color
   layouts; this keeps the original SABRINA/Guardrail navy-glass +
   emerald/sapphire identity.

   Structure (added to each founder page, wrapping its existing <main>):

     body.padd-shell-host          ← fixed-height host, no page scroll
       .padd-shell                 ← landscape device frame (flex row)
         aside.padd-nav-rail       ← persistent LEFT control/screen rail
         .padd-stage               ← active display viewport (internal scroll)
           main.wrap               ← the page's existing content, untouched

   Command Center keeps its own internal status-rail / deck-viewport
   console by adding `.padd-shell--console`, which lets its <main> fill the
   stage and scroll its decks internally rather than scrolling the stage.

   FUTURE HORIZONTAL PHONE / TABLET APP MODE:
   The host is sized with 100dvh and the frame is a flex row, so a future
   landscape phone/tablet build can keep the left rail as a slim icon rail
   and let .padd-stage host a single active "app screen." The <=860px
   fallback below already collapses the rail to a horizontal strip and
   re-enables document scroll for portrait/small screens. This shell is
   intentionally Founder-only (data-shell-mode="founder_console"); it must
   not be reused verbatim on any future patient/user/doctor surface.
   ════════════════════════════════════════════════════════════════════ */

html:has(body.padd-shell-host) { height: 100%; }

body.padd-shell-host {
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 10px;
  overflow: hidden;              /* desktop: no full-page scroll */
  display: flex;
  flex-direction: column;
}

.padd-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(80,210,190,.32);
  background: rgba(6,18,42,.42);
  box-shadow:
    inset 0 0 0 1px rgba(126,223,198,.08),
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 28px rgba(32,182,130,.10),
    0 18px 50px rgba(0,0,0,.45);
  backdrop-filter: blur(2px) saturate(1.05);
  -webkit-backdrop-filter: blur(2px) saturate(1.05);
}

/* ── Embed mode: page loaded inside the unified PADD console's iframe
   stage (?embed=1). Hides this page's own rail so only the outer
   console's rail is visible, and lets its stage fill the frame. ── */
body.padd-embedded {
  padding: 0;
}
body.padd-embedded .padd-shell {
  border-radius: 0;
  border: none;
  box-shadow: none;
}
body.padd-embedded .padd-nav-rail {
  display: none !important;
}
body.padd-embedded .padd-stage {
  border-radius: 0;
}

/* ── Left control / screen rail ─────────────────────────────────────── */
.padd-nav-rail {
  flex: 0 0 196px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  overflow-y: auto;
  border-right: 1px solid rgba(60,120,180,.28);
  background:
    linear-gradient(180deg, rgba(10,30,62,.65), rgba(8,18,46,.55));
  border-radius: 18px 0 0 18px;
  position: relative;
  transition: flex-basis .18s ease, padding .18s ease;
}
.padd-rail-peek-toggle {
  position: absolute;
  top: clamp(220px, 50%, calc(100% - 220px));
  right: -18px;
  width: 38px;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 18px 18px 0;
  border: 1px solid rgba(56, 104, 146, .22);
  border-left: 1px solid rgba(18, 44, 81, .78);
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(10, 30, 62, .94), rgba(9, 34, 70, .94));
  color: rgba(202, 235, 255, .72);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 0 6px rgba(111, 190, 232, .10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 1px 0 0 rgba(96, 174, 210, .06);
  opacity: .94;
  z-index: 6;
  transform: translateY(-50%);
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease, opacity .18s ease, right .18s ease, top .18s ease;
}
.padd-rail-peek-toggle:hover,
.padd-nav-rail.padd-nav-rail--engaged .padd-rail-peek-toggle,
.padd-rail-peek-toggle:focus-visible {
  color: #ffffff;
  border-color: rgba(126, 214, 237, .42);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(15, 51, 95, .98), rgba(21, 98, 102, .95));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 1px 0 0 rgba(133, 230, 210, .16),
    0 0 0 1px rgba(132, 224, 212, .12),
    0 8px 14px rgba(0,0,0,.18);
  opacity: 1;
  filter: brightness(1.05);
}
.padd-rail-peek-toggle:focus-visible {
  outline: 2px solid #8effd8;
  outline-offset: 2px;
}
.padd-rail-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 8px 12px;
  border-bottom: 1px solid rgba(60,120,180,.22);
  margin-bottom: 8px;
}
.padd-rail-os {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .10em;
  color: #d9f5ff;
}
.padd-rail-edition {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  color: #5fd6b9;
  text-transform: uppercase;
}
.padd-rail-utility {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px 10px;
}
.padd-rail-utility[hidden] {
  display: none;
}
.padd-rail-utility--top {
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(60,120,180,.20);
}
.padd-rail-utility--bottom {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(60,120,180,.20);
}
.padd-rail-utility-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #4a8fb8;
  opacity: .82;
}
.padd-rail-utility .btn,
.padd-rail-utility .btn-small,
.padd-rail-utility .srcDropBtn,
.padd-rail-utility .padd-rail-btn {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--padd-rail-btn-border, rgba(134, 231, 197, .48));
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0)) padding-box,
    linear-gradient(160deg, rgba(33, 111, 93, .98), rgba(20, 77, 72, .98)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 3px 0 0 var(--padd-rail-btn-accent, rgba(140, 237, 194, .88)),
    0 0 0 1px rgba(126,223,198,.08),
    0 8px 16px rgba(0,0,0,.20);
  color: #f3fff9;
  text-decoration: none;
  line-height: 1.2;
}
.padd-rail-utility .padd-rail-btn .name,
.padd-rail-utility .padd-rail-btn > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.padd-rail-utility .padd-rail-btn strong {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--padd-rail-badge-border, rgba(170, 245, 212, .42));
  background: var(--padd-rail-badge-bg, rgba(171, 247, 215, .16));
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--padd-rail-badge-fg, #effff7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.padd-rail-utility a.padd-rail-btn,
.padd-rail-utility a.padd-rail-btn:visited,
.padd-rail-utility .btn.padd-rail-btn,
.padd-rail-utility .btn-small.padd-rail-btn {
  color: #eef6ff;
  text-decoration: none;
}
.padd-rail-utility .padd-rail-btn:hover,
.padd-rail-utility .srcDropBtn:hover,
.padd-rail-utility .padd-rail-btn:focus-visible,
.padd-rail-utility .srcDropBtn:focus-visible {
  filter: saturate(1.08);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.24),
    inset 3px 0 0 var(--padd-rail-btn-accent, rgba(140, 237, 194, .92)),
    0 0 0 1px rgba(126,223,198,.18),
    0 0 18px var(--padd-rail-btn-glow, rgba(78, 226, 168, .18)),
    0 10px 18px rgba(0,0,0,.24);
}
.padd-rail-btn--session {
  --padd-rail-btn-border: rgba(146, 239, 199, .50);
  --padd-rail-btn-accent: rgba(158, 247, 210, .92);
  --padd-rail-btn-glow: rgba(82, 229, 171, .20);
  --padd-rail-badge-bg: rgba(188, 255, 223, .18);
  --padd-rail-badge-border: rgba(170, 245, 212, .40);
  --padd-rail-badge-fg: #e9fff4;
}
.padd-rail-btn--session strong {
  color: var(--padd-rail-badge-fg, #e9fff4);
}
.padd-rail-btn--action {
  --padd-rail-btn-border: rgba(132, 232, 191, .54);
  --padd-rail-btn-accent: rgba(128, 236, 193, .94);
  --padd-rail-btn-glow: rgba(58, 214, 150, .20);
  --padd-rail-badge-bg: rgba(191, 255, 225, .16);
  --padd-rail-badge-border: rgba(152, 240, 204, .40);
  --padd-rail-badge-fg: #e2fff1;
}
.padd-rail-btn--action strong {
  color: var(--padd-rail-badge-fg, #e2fff1);
}
.padd-rail-btn--source,
.padd-rail-source-wrap .srcDropBtn {
  --padd-rail-btn-border: rgba(160, 245, 204, .56);
  --padd-rail-btn-accent: rgba(170, 255, 214, .96);
  --padd-rail-btn-glow: rgba(91, 229, 172, .22);
  --padd-rail-badge-bg: rgba(208, 255, 231, .18);
  --padd-rail-badge-border: rgba(170, 245, 212, .42);
  --padd-rail-badge-fg: #f0fff7;
  color: #f3fff9;
}
.padd-rail-btn--source strong,
.padd-rail-source-wrap .srcDropBtn strong,
.padd-rail-source-wrap .srcDropBtn .chevron {
  color: var(--padd-rail-badge-fg, #ddfff1);
}
.padd-rail-source-wrap,
.padd-rail-source-wrap .srcDropWrap {
  width: 100%;
}
.padd-rail-source-wrap .srcDropBtn {
  white-space: normal;
  text-align: left;
}
.padd-rail-source-wrap .srcDropMenu {
  min-width: 220px;
  max-width: 270px;
}
.padd-rail-groups { display: flex; flex-direction: column; gap: 2px; }
.padd-rail-group-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #4a8fb8;
  opacity: .8;
  padding: 10px 8px 3px;
}
.padd-rail-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.padd-rail-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 8px 4px;
  border: 0;
  background: transparent;
  color: #4a8fb8;
  opacity: .88;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.padd-rail-group-toggle:hover {
  color: #86c4ee;
}
.padd-rail-group-toggle:focus-visible {
  outline: 2px solid #9fd6ff;
  outline-offset: 2px;
  border-radius: 8px;
}
.padd-rail-group-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.padd-rail-group-chevron {
  font-size: 10px;
  opacity: .82;
  transform: rotate(0deg);
  transition: transform .16s ease, opacity .16s ease;
}
.padd-rail-group-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.padd-rail-group--collapsed .padd-rail-group-links {
  display: none;
}
.padd-rail-group--collapsed .padd-rail-group-chevron {
  transform: rotate(-90deg);
  opacity: .65;
}
.padd-rail-group--current .padd-rail-group-toggle {
  color: #9fd6ff;
}
.padd-nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  width: calc(100% - 18px);
  border-radius: 9px;
  text-decoration: none;
  color: #c8e8ff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
  border: 1px solid transparent;
  transition: background .13s ease, border-color .13s ease, color .13s ease;
}
.padd-nav-link .pnl-icon {
  width: 16px;
  text-align: center;
  font-size: 12px;
  opacity: .7;
  flex-shrink: 0;
}
.padd-nav-link:hover {
  background: rgba(32,182,130,.12);
  border-color: rgba(80,210,190,.28);
  color: #adffd8;
}
.padd-nav-link:hover .pnl-icon { opacity: 1; }
.padd-nav-link:focus-visible {
  outline: 2px solid #9fd6ff;
  outline-offset: 2px;
}
.padd-nav-link--active {
  background: rgba(18,68,160,.55);
  border-color: rgba(80,160,255,.55);
  color: #e3f1ff;
  box-shadow: inset 0 0 0 1px rgba(80,160,255,.16), 0 0 10px rgba(50,140,255,.16);
}
.padd-nav-link--active .pnl-icon { opacity: 1; color: #7effd4; }
.padd-nav-link--sabrina.padd-nav-link--active {
  background: rgba(22,143,111,.45);
  border-color: rgba(80,210,190,.55);
}
.padd-rail-foot {
  margin-top: auto;
  padding: 10px 8px 2px;
  border-top: 1px solid rgba(60,120,180,.20);
}
.padd-rail-foot-id {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #3f6c92;
}

@media (min-width: 981px) {
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail {
    overflow-x: visible;
  }

  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--peek-open {
    flex-basis: 196px;
    padding-left: 10px;
    padding-right: 10px;
  }

  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact {
    flex-basis: 82px;
    padding-left: 6px;
    padding-right: 6px;
  }

  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact .padd-rail-brand {
    padding-left: 4px;
    padding-right: 4px;
  }

  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact .padd-rail-utility {
    display: none;
  }

  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact .padd-rail-os,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact .padd-rail-edition,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact .padd-rail-utility-label,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact .padd-rail-group-label,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact .padd-rail-group-toggle,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact .padd-rail-foot-id,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact .padd-nav-link .pnl-label,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact .padd-rail-btn strong,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact .srcDropBtn .chevron {
    display: none !important;
  }

  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact .padd-rail-group-links {
    display: flex !important;
  }

  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact .padd-nav-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    min-height: 40px;
  }

  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact .padd-nav-link .pnl-icon {
    margin: 0;
    width: 100%;
    font-size: 28px;
    line-height: 1;
    opacity: .92;
  }

  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact .padd-rail-utility .btn,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact .padd-rail-utility .btn-small,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact .padd-rail-utility .srcDropBtn,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact .padd-rail-utility .padd-rail-btn {
    min-height: 40px;
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }

  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact #logoutBtn::before,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact #refreshNowBtn::before,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact #refreshBtn::before,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact #runSyncNowBtn::before,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact #refreshBoardBtn::before,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact #srcDropBtn::before {
    font-size: 18px;
    line-height: 1;
  }

  body.padd-shell-host.padd-rail-autohide .padd-nav-rail:not(:hover):not(:focus-within) #logoutBtn::before { content: "⇠"; }
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail:not(:hover):not(:focus-within) #refreshNowBtn::before,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail:not(:hover):not(:focus-within) #refreshBtn::before,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail:not(:hover):not(:focus-within) #runSyncNowBtn::before,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail:not(:hover):not(:focus-within) #refreshBoardBtn::before { content: "⟳"; }
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail:not(:hover):not(:focus-within) #srcDropBtn::before { content: "📂"; }
}

/* ── Active display viewport (the lane/app screen) ──────────────────── */
.padd-stage {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;             /* internal scroll for content-heavy lanes */
  overflow-x: hidden;
  scroll-behavior: smooth;
  border-radius: 0 18px 18px 0;
}
.padd-stage > main.wrap,
.padd-stage > .wrap {
  min-height: 0;
}

/* Command Center variant: let its own console body own the scroll, so we
   don't create a second competing scrollbar. The stage clips; <main>
   fills it; the existing .deck-viewport scrolls internally. */
.padd-shell--console .padd-stage {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.padd-shell--console .padd-stage > main.wrap { flex: 1 1 auto; }

/* Reduce oversized hero so the PADD interface enters view immediately. */
body.padd-shell-host .hero { padding: 14px; }
body.padd-shell-host .hero-artifact-slot { min-height: 150px; }
body.padd-shell-host #sabrinaArtifactFounder .sa-shell,
body.padd-shell-host #sabrinaArtifactFounder .sa-stage { min-height: 150px; }

/* PR #51: at the PADD shell's desktop width, several lane heroes' h1 was
   wrapping to two lines (32-34px was sized for the pre-shell full-width
   page, not the narrower column left after the AI log-entry panel takes
   its fixed width) — pushing real content further down. Scoped to the
   shell's desktop range only; each page's own narrow-viewport h1 rule
   (already smaller) is untouched below 901px.
   24px (not the originally-shipped 28px, measured insufficient) keeps
   the longest lane titles ("Financial Operations Dashboard", "Rideshare
   Operations Dashboard") on one line even at a ~960px-wide hero
   (heroLeft ~413px after the fixed-width AI panel column) — a common
   laptop width, not just wide monitors. */
@media (min-width: 901px) {
  body.padd-shell-host .hero h1 { font-size: 24px; }
}

/* ── Responsive / portrait fallback: collapse rail, re-enable scroll ── */
@media (max-width: 860px) {
  body.padd-shell-host {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
    padding: 6px;
  }
  .padd-shell { flex-direction: column; overflow: visible; }
  .padd-nav-rail {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    overflow-x: visible;
    overflow-y: hidden;
    border-right: none;
    border-bottom: 1px solid rgba(60,120,180,.28);
    border-radius: 18px 18px 0 0;
  }
  .padd-rail-brand {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    border-bottom: none;
    margin-bottom: 0;
    padding: 4px 8px;
  }
  .padd-rail-groups {
    flex: 1 1 100%;
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .padd-rail-group-label { display: none; }
  .padd-rail-group {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
  }
  .padd-rail-group-toggle {
    width: auto;
    padding: 4px 2px;
  }
  .padd-rail-group-title {
    font-size: 8px;
    letter-spacing: .16em;
  }
  .padd-rail-group-chevron { font-size: 9px; }
  .padd-rail-group-links {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
  }
  .padd-rail-group--collapsed .padd-rail-group-links { display: flex; }
  .padd-rail-group--collapsed .padd-rail-group-chevron { transform: rotate(0deg); opacity: .82; }
  .padd-rail-utility {
    flex-direction: row;
    align-items: center;
    padding: 0;
    margin: 0;
    border: 0;
    gap: 6px;
  }
  .padd-rail-utility-label { display: none; }
  .padd-rail-utility .btn,
  .padd-rail-utility .btn-small,
  .padd-rail-utility .srcDropBtn,
  .padd-rail-utility .padd-rail-btn {
    width: auto;
    white-space: nowrap;
  }
  .padd-rail-source-wrap,
  .padd-rail-source-wrap .srcDropWrap { width: auto; }
  .padd-rail-source-wrap .srcDropMenu {
    min-width: 220px;
    max-width: 280px;
  }
  .padd-nav-link { flex: 0 0 auto; padding: 6px 10px; white-space: nowrap; }
  .padd-rail-foot { display: none; }
  .padd-stage { overflow: visible; border-radius: 0 0 18px 18px; }
  .padd-shell--console .padd-stage { display: block; overflow: visible; }
}

/* JS-driven rail modes extend the original width-only fallback so portrait
   tablets and mid-width founder screens behave deliberately instead of
   landing between desktop and phone rules. */
body.padd-shell-host[data-padd-layout="wide"] .padd-shell,
body.padd-shell-host[data-padd-layout="compact"] .padd-shell {
  flex-direction: row;
  overflow: hidden;
}

body.padd-shell-host[data-padd-layout="wide"] .padd-nav-rail,
body.padd-shell-host[data-padd-layout="compact"] .padd-nav-rail {
  overflow-x: visible;
}

body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--peek-open,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--peek-open {
  flex-basis: 196px;
  padding-left: 10px;
  padding-right: 10px;
}

body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact {
  flex-basis: 82px;
  padding-left: 6px;
  padding-right: 6px;
}

body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-brand,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-brand {
  padding-left: 4px;
  padding-right: 4px;
}

body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-utility,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-utility {
  display: none;
}

body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-os,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-edition,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-utility-label,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-group-label,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-group-toggle,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-foot-id,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .padd-nav-link .pnl-label,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-btn strong,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .srcDropBtn .chevron,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-os,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-edition,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-utility-label,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-group-label,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-group-toggle,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-foot-id,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .padd-nav-link .pnl-label,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-btn strong,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .srcDropBtn .chevron {
  display: none !important;
}

body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-group-links,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-group-links {
  display: flex !important;
}

body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .padd-nav-link,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .padd-nav-link {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  min-height: 40px;
  width: 100%;
}

body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .padd-nav-link .pnl-icon,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .padd-nav-link .pnl-icon {
  margin: 0;
  width: 100%;
  font-size: 28px;
  line-height: 1;
  opacity: .92;
}

body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-utility .btn,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-utility .btn-small,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-utility .srcDropBtn,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-utility .padd-rail-btn,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-utility .btn,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-utility .btn-small,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-utility .srcDropBtn,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-utility .padd-rail-btn {
  min-height: 40px;
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
  font-size: 0;
  gap: 0;
}

body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-peek-toggle,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact .padd-rail-peek-toggle {
  right: -14px;
  opacity: 0;
  pointer-events: none;
}

body.padd-shell-host.padd-rail-autohide[data-padd-layout="wide"] .padd-nav-rail.padd-nav-rail--compact.padd-nav-rail--engaged .padd-rail-peek-toggle,
body.padd-shell-host.padd-rail-autohide[data-padd-layout="compact"] .padd-nav-rail.padd-nav-rail--compact.padd-nav-rail--engaged .padd-rail-peek-toggle {
  opacity: 1;
  pointer-events: auto;
}

body.padd-shell-host[data-padd-layout="stacked"] {
  height: auto;
  min-height: 100dvh;
  overflow: auto;
  padding: 6px;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-shell {
  flex-direction: column;
  overflow: visible;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-nav-rail {
  flex: 0 0 auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  overflow-x: visible;
  overflow-y: hidden;
  border-right: none;
  border-bottom: 1px solid rgba(60,120,180,.28);
  border-radius: 18px 18px 0 0;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-peek-toggle {
  display: none !important;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-brand {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  border-bottom: none;
  margin-bottom: 0;
  padding: 4px 8px;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-groups {
  flex: 1 1 100%;
  min-width: 0;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-group-label {
  display: none;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-group {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-group-toggle {
  width: auto;
  padding: 4px 2px;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-group-title {
  font-size: 8px;
  letter-spacing: .16em;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-group-chevron {
  font-size: 9px;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-group-links {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-group--collapsed .padd-rail-group-links {
  display: flex;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-group--collapsed .padd-rail-group-chevron {
  transform: rotate(0deg);
  opacity: .82;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-utility {
  flex-direction: row;
  align-items: center;
  padding: 0;
  margin: 0;
  border: 0;
  gap: 6px;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-utility-label {
  display: none;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-utility .btn,
body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-utility .btn-small,
body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-utility .srcDropBtn,
body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-utility .padd-rail-btn {
  width: auto;
  white-space: nowrap;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-source-wrap,
body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-source-wrap .srcDropWrap {
  width: auto;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-source-wrap .srcDropMenu {
  min-width: 220px;
  max-width: 280px;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-nav-link {
  flex: 0 0 auto;
  padding: 6px 10px;
  white-space: nowrap;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-rail-foot {
  display: none;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-stage {
  overflow: visible;
  border-radius: 0 0 18px 18px;
}

body.padd-shell-host[data-padd-layout="stacked"] .padd-shell--console .padd-stage {
  display: block;
  overflow: visible;
}

/* ════════════════════════════════════════════════════════════════════
   SABRINA OS — PADD SHELL MOTION  (Sprint 46)
   Futuristic-but-readable rail animation + screen transition. Tasteful,
   low-amplitude, and fully disabled under prefers-reduced-motion.
   Founder-only surface — not for any patient/user/doctor screen.
   ════════════════════════════════════════════════════════════════════ */

/* Active "screen" change: the stage content fades + lifts in on load. Because
   navigation is full page loads (not an SPA), this plays once per screen and
   reads as the viewport switching to the selected app. */
@keyframes paddStageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.padd-stage > main.wrap,
.padd-stage > .wrap {
  animation: paddStageIn .32s ease both;
}

/* Ambient rail life: a slow vertical light sweep down the left rail edge so the
   control column feels powered without distracting from content. */
@keyframes paddRailScan {
  0%   { background-position: 0 -40%; }
  100% { background-position: 0 140%; }
}
.padd-nav-rail::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(80,210,190,.0) 38%,
    rgba(80,210,190,.55) 50%,
    rgba(80,210,190,.0) 62%,
    transparent 100%);
  background-size: 100% 240%;
  animation: paddRailScan 5.5s linear infinite;
  pointer-events: none;
}
.padd-nav-rail { position: relative; }

/* Hover/active links get a quick light wipe so selecting a screen feels alive. */
.padd-nav-link { position: relative; overflow: hidden; }
.padd-nav-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(126,223,198,.16) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform .45s ease;
  pointer-events: none;
}
.padd-nav-link:hover::after { transform: translateX(120%); }

/* The active screen's rail link breathes gently so "where am I" is obvious. */
@keyframes paddActivePulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(80,160,255,.16), 0 0 8px rgba(50,140,255,.12); }
  50%      { box-shadow: inset 0 0 0 1px rgba(80,160,255,.30), 0 0 16px rgba(50,140,255,.28); }
}
.padd-nav-link--active { animation: paddActivePulse 3.2s ease-in-out infinite; }
.padd-nav-link--active .pnl-icon { animation: paddActivePulse 3.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .padd-stage > main.wrap,
  .padd-stage > .wrap,
  .padd-nav-rail::before,
  .padd-nav-link--active,
  .padd-nav-link--active .pnl-icon { animation: none; }
  .padd-nav-link::after { transition: none; }
  .padd-rail-group-chevron { transition: none; }
}

/* ════════════════════════════════════════════════════════════════════
   SABRINA OS — PADD SCREEN HEAD  (Sprint 46)
   Shared deck-style header band so every lane "screen" reads as a PADD
   app, not a plain web page: a labelled name, a one-line blurb, a status
   pill, and a plain-language "what this screen is" caption. Reusable
   across all founder lane pages. Founder-only surface.
   ════════════════════════════════════════════════════════════════════ */
.padd-screen-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(80,210,190,.28);
  background: linear-gradient(100deg, rgba(22,143,111,.22), rgba(21,81,173,.16) 60%, rgba(10,50,110,.10));
  box-shadow: inset 0 0 0 1px rgba(126,223,198,.08);
}
.padd-screen-head .psh-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #c9fff0;
  white-space: nowrap;
}
.padd-screen-head .psh-blurb {
  font-size: 12px;
  color: #bcd6f5;
  flex: 1 1 260px;
  line-height: 1.45;
}
.padd-screen-head .psh-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid #3fae95;
  background: rgba(80,216,194,.16);
  color: #b9fff0;
}
.padd-screen-head .psh-status--snapshot { border-color: #5a7ca3; background: rgba(165,189,223,.14); color: #c7d9f0; }
.padd-screen-head .psh-status--building { border-color: #b48e33; background: rgba(241,200,95,.16); color: #ffe5a1; }
.padd-screen-explain {
  margin: 0 0 14px;
  padding: 7px 11px;
  border-left: 3px solid var(--sapphire-glow, #2A8FF0);
  background: rgba(21,81,173,.14);
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  line-height: 1.5;
  color: #bcd6f5;
}
.padd-screen-explain strong { color: #d9ecff; }

/* ════════════════════════════════════════════════════════════════════
   SABRINA OS — PADD META STRIP  (PR #53)
   Compact home for the ONE piece of secondary context worth a founder's
   glance without a click — almost always a freshness/health indicator
   with a real ok/warn/bad state. Everything else that used to share a
   row with it (source attribution, sync cadence, exact timestamps, a
   live clock) answers "where does this come from" or "when does it
   refresh next," not "how am I doing" — moved into an adjacent
   `details.disclosure` ("Source & sync details") instead of competing
   for hero space. Founder-only surface.
   ════════════════════════════════════════════════════════════════════ */
.padd-meta-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 6px;
}
.padd-meta-strip .tag,
.padd-meta-strip .meta-chip {
  font-size: 11px;
  opacity: .92;
}

.founder-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}
.founder-flow-card {
  border-radius: 14px;
  border: 1px solid rgba(80, 160, 255, .20);
  background: rgba(9, 23, 51, .78);
  padding: 12px 12px 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.founder-flow-card--action {
  border-color: rgba(80, 210, 190, .28);
  background: linear-gradient(180deg, rgba(10, 34, 58, .90), rgba(8, 24, 46, .82));
}
.founder-flow-card--reference {
  border-style: dashed;
  border-color: rgba(120, 150, 190, .24);
}
.founder-flow-kicker {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #82d9ff;
}
.founder-flow-card h2,
.founder-flow-card h3 {
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1.28;
  color: #e6f2ff;
}
.founder-flow-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #afc8e6;
}
.founder-flow-list {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #c8def6;
  font-size: 12px;
  line-height: 1.45;
}
.founder-flow-list li + li {
  margin-top: 3px;
}
.founder-flow-note {
  margin-top: 6px;
  font-size: 11px;
  color: #7ea6cd;
}

/* Shared decision boundary for Founder lane operating surfaces. */
.lane-cockpit {
  margin: 0 0 12px;
  padding: 11px 12px 12px;
  border: 1px solid rgba(80, 216, 194, .34);
  border-radius: 14px;
  background: linear-gradient(115deg, rgba(21, 81, 173, .16), transparent 48%), rgba(7, 23, 49, .90);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 20px rgba(0,0,0,.16);
}
.lane-cockpit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.lane-cockpit-kicker { display: block; color: #9fe7d7; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lane-cockpit-note { margin-top: 3px; color: #87a7c7; font-size: 10px; line-height: 1.35; }
.lane-cockpit-return { color: #a7d8ff; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lane-cockpit-return:hover { color: #d5efff; text-decoration: underline; }
.lane-cockpit-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 7px; }
.lane-cockpit-cell { min-width: 0; padding: 8px 9px; border: 1px solid rgba(80, 130, 185, .28); border-radius: 10px; background: rgba(10, 31, 63, .74); }
.lane-cockpit-cell > span { display: block; margin-bottom: 3px; color: #789abd; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.lane-cockpit-cell > strong { display: block; color: #dcecff; font-size: 11px; line-height: 1.35; font-weight: 650; overflow-wrap: anywhere; }
.lane-cockpit-cell[data-tone="good"] { border-color: rgba(49, 210, 154, .42); }
.lane-cockpit-cell[data-tone="good"] > strong { color: #b9f7df; }
.lane-cockpit-cell[data-tone="warn"] { border-color: rgba(241, 200, 95, .46); }
.lane-cockpit-cell[data-tone="warn"] > strong { color: #ffe5a1; }
.lane-cockpit-cell[data-tone="bad"] { border-color: rgba(255, 116, 136, .52); }
.lane-cockpit-cell[data-tone="bad"] > strong { color: #ffc3ce; }

@media (max-width: 920px) { .lane-cockpit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .lane-cockpit-head { display: block; }
  .lane-cockpit-return { display: inline-block; margin-top: 7px; }
  .lane-cockpit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .founder-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .founder-flow-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) {
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact #logoutBtn::before { content: "⇠"; }
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact #refreshNowBtn::before,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact #refreshBtn::before,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact #runSyncNowBtn::before,
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact #refreshBoardBtn::before { content: "⟳"; }
  body.padd-shell-host.padd-rail-autohide .padd-nav-rail.padd-nav-rail--compact #srcDropBtn::before { content: "📂"; }
}

