/* ============================================================
   DORA SCREENS REBUILD (2026-11-26, staging) — screens.css
   A first-time build of the DORA owner screens: an app shell
   (header → ONE screen at a time → bottom nav), not the old
   page's endless stacked scroll of every panel at once.

   THEME: Neon Boss is the law — black glass, neon pink #ff2797
   frame + glow, neon green #2eff7a for money/done, crown gold
   #ffcf3f accents, script taglines, crowns/sparkles as light
   CSS/text touches only. No images, no webfonts — light enough
   for cell data.

   LANE COLORS: her ruled planner map, the same hex values as
   planner-rows.css / lane-colors.js (tests pin those two
   together; this sheet copies the map, it does not invent one):
   important #ff4040 · money #2fd35f · bills #ffd21f · school
   #3b82f6 · marketing #a855f7 · contractor #ff8a1e · digital
   #047857 · construction #b3402a · software #c0c6ce · dora
   #ff4da8 · anna white/blue · callie #ffc7dd · berklee #14b8a6.

   THE ANTI-COLLAPSE RULES (the E2 fix, by construction — the
   old My Day row died because a title shared a grid with an
   UNcapped `auto` track holding a full-sentence caption):
   R1. A text title NEVER shares a grid/flex track with an
       action block. Rows are `44px minmax(0,1fr)`: check cell,
       then a body column. Buttons and their captions live
       INSIDE the body column, stacked in normal flow.
   R2. Every text-bearing grid/flex child carries min-width:0,
       so a long word can shrink its box instead of crushing
       its neighbour.
   R3. A caption always sits in normal block flow under its
       button — never inside a sized track, never beside a
       title — so its length can only push DOWN, never sideways.
   R4. Titles carry overflow-wrap:anywhere as the final guard.
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #070408;
  --glass: rgba(10, 4, 10, .82);
  --glass-2: rgba(3, 1, 5, .66);
  --line: rgba(255, 39, 151, .35);
  --text: #fff7fb;
  --muted: #cbbac4;
  --pink: #ff2797;
  --pink-soft: #ff9ccc;
  --green: #2eff7a;
  --gold: #ffcf3f;
  --radius: 16px;
  --lane-important: #ff4040;
  --lane-money: #2fd35f;
  --lane-bills: #ffd21f;
  --lane-school: #3b82f6;
  --lane-marketing: #a855f7;
  --lane-contractor: #ff8a1e;
  --lane-digital: #047857;
  --lane-construction: #b3402a;
  --lane-software: #c0c6ce;
  --lane-dora: #ff4da8;
  --lane-anna: #ffffff;
  --lane-callie: #ffc7dd;
  --lane-berklee: #14b8a6;
  --lane-none: #6b7280;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 39, 151, .20), transparent 34%),
    radial-gradient(circle at 88% 6%, rgba(255, 207, 63, .07), transparent 30%),
    linear-gradient(180deg, #0a0509 0%, #070408 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.5;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.eyebrow { font-size: .74rem; letter-spacing: .12em; color: var(--pink-soft); margin: 0; }
.script-line { font-family: "Segoe Script", "Brush Script MT", "Apple Chancery", cursive; font-style: italic; font-weight: 600; color: var(--pink-soft); text-shadow: 0 0 12px rgba(255, 39, 151, .45); margin: 2px 0 0; font-size: 1.05rem; }
.cap { font-size: .8rem; color: var(--muted); margin: 4px 0 0; min-width: 0; }
h1 { font-size: 1.7rem; margin: .1rem 0; }
h2 { font-size: 1.25rem; margin: .2rem 0 .4rem; }
h3 { font-size: 1.05rem; margin: 0 0 4px; }
label { display: block; font-size: .92rem; font-weight: 650; margin: 10px 0 4px; }
input, select, textarea {
  display: block; width: 100%; min-width: 0;
  background: #08070a; color: #fff; border: 1px solid #6a405c;
  border-radius: 12px; padding: 12px; font: inherit; font-size: 16px;
}
.stack { display: grid; gap: 8px; }
.notice { border: 1px solid #8b3a49; background: #3b1920; color: #ffd2d9; border-radius: 12px; padding: 11px; }
.pill { display: inline-flex; border: 1px solid #6d3e5d; background: #271520; border-radius: 999px; padding: 4px 9px; font-size: .72rem; white-space: nowrap; }

/* ---- buttons: a button's caption ALWAYS goes under it (R3) ---- */
.btn {
  border: 1px solid #6a405c; background: #26131f; color: #fff;
  border-radius: 12px; padding: 11px 16px; min-height: 46px;
  font: inherit; font-weight: 700; cursor: pointer; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
}
.btn.primary { background: linear-gradient(135deg, #ff5db1, #ff2797 55%, #c40e74); border-color: #ffd3ea; color: #fff; box-shadow: 0 0 16px rgba(255, 39, 151, .35); }
.btn.small-btn { min-height: 38px; padding: 7px 12px; font-size: .88rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-block { min-width: 0; }
.btn-block .btn { width: 100%; }

/* ---- app shell ---- */
.app-shell { width: min(1060px, 100%); margin: 0 auto; padding: 12px 12px 118px; }
.app-header {
  position: sticky; top: 8px; z-index: 20;
  display: flex; gap: 12px; align-items: flex-start; min-width: 0;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; box-shadow: 0 0 18px rgba(255, 39, 151, .12);
  backdrop-filter: blur(6px);
}
.brand-medallion {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 1.7rem; color: var(--gold); text-shadow: 0 0 10px rgba(255, 207, 63, .8);
  border: 2px solid rgba(255, 207, 63, .55); border-radius: 999px; background: rgba(255, 207, 63, .06);
}
.header-text { flex: 1; min-width: 0; }
.header-text h1 { overflow-wrap: anywhere; }
.header-side { display: grid; gap: 4px; justify-items: end; min-width: 0; }
.screen { display: grid; gap: 14px; margin-top: 14px; min-width: 0; }
.screen-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; min-width: 0; }
.screen-head > div { min-width: 0; }

/* ---- bottom nav: icon + label + caption, the Neon Boss pattern ---- */
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 8px; z-index: 30;
  width: min(1060px, calc(100% - 16px));
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px;
  padding: 8px; box-shadow: 0 0 22px rgba(255, 39, 151, .18); backdrop-filter: blur(6px);
}
.nav-btn {
  min-width: 0; display: grid; gap: 0; justify-items: center; padding: 7px 2px 5px;
  background: transparent; border: 1px solid transparent; border-radius: 12px;
  color: var(--text); font: inherit; cursor: pointer;
}
.nav-btn .nav-ico { font-size: 1.15rem; line-height: 1.2; }
.nav-btn .nav-label { font-weight: 800; font-size: .92rem; }
.nav-btn .nav-cap { font-size: .64rem; color: var(--muted); white-space: nowrap; }
.nav-btn[aria-current="page"] { background: linear-gradient(135deg, #ff5db1, #ff2797 55%, #c40e74); border-color: #ffd3ea; box-shadow: 0 0 14px rgba(255, 39, 151, .5); }
.nav-btn[aria-current="page"] .nav-cap { color: #ffe9f4; }

/* ---- login ---- */
.login-card {
  max-width: 560px; margin: 6vh auto 0; background: var(--glass-2);
  border: 1px solid var(--line); border-radius: 20px; padding: 22px;
  box-shadow: 0 0 24px rgba(255, 39, 151, .12); display: grid; gap: 8px;
}
.login-card .brand-medallion { width: 64px; height: 64px; font-size: 2.1rem; }
.login-card .btn { width: 100%; }

/* ---- blocks, rails, tiles ---- */
.block { background: var(--glass-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: 0 0 14px rgba(255, 39, 151, .07); min-width: 0; }
.block-tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--pink-soft); }
.block--money { border-color: rgba(46, 255, 122, .55); box-shadow: 0 0 18px rgba(46, 255, 122, .14); }
.block--money .block-tag { border-color: rgba(46, 255, 122, .6); color: var(--green); }
.rail {
  display: flex; gap: 12px; align-items: center; width: 100%; min-width: 0;
  text-align: left; background: rgba(255, 255, 255, .03); color: var(--text);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px;
  padding: 12px 14px; font: inherit; cursor: pointer; margin-top: 8px;
}
.rail .rail-ico { flex: none; font-size: 1.5rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(46, 255, 122, .1); color: var(--green); border: 1px solid rgba(46, 255, 122, .4); }
.rail .rail-text { flex: 1; min-width: 0; }
.rail .rail-label { display: block; font-weight: 800; font-size: 1.05rem; }
.rail .rail-why { display: block; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.rail .rail-go { flex: none; color: var(--pink-soft); font-weight: 800; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
.tile {
  min-width: 0; display: grid; gap: 2px; align-content: start; text-align: left;
  background: var(--glass-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; color: var(--text); font: inherit; cursor: pointer; text-decoration: none;
  box-shadow: 0 0 12px rgba(255, 39, 151, .06);
}
.tile .tile-ico { font-size: 1.6rem; line-height: 1.15; }
.tile .tile-ico-img { width: 34px; height: 34px; border-radius: 10px; object-fit: contain; background: rgba(255,255,255,.06); }
.booking-new { outline: 2px solid var(--pink, #ff2797); }
.status-pill--new { background: var(--pink, #ff2797); color: #fff; }
.tile .tile-label { font-weight: 800; overflow-wrap: anywhere; }
.tile .tile-cap { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.motto-bar { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 39, 151, .06); padding: 12px 14px; text-align: center; }
.hl-item { margin: 6px 0 0; min-width: 0; overflow-wrap: anywhere; }
.hl-empty { color: var(--muted); }
.focus-num { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px; border: 2px solid var(--gold); color: var(--gold); font-weight: 800; }

/* ---- lane accents: band + chip ride inside the neon frame ---- */
.lane-band { border-left: 5px solid var(--lane-none); }
.lane-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; font-size: .74rem; font-weight: 700; border: 1px solid rgba(0,0,0,.28); white-space: nowrap; background: #6b7280; color: #fff; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; font-size: .74rem; font-weight: 650; border: 1px solid #8e95a3; color: #e8e2ea; background: rgba(255,255,255,.04); white-space: nowrap; }
.status-pill--overdue { border-color: #ff5f63; color: #ff9aa0; background: rgba(255,95,99,.12); }
.lane-band--important { border-left-color: var(--lane-important); }
.lane-band--money { border-left-color: var(--lane-money); }
.lane-band--bills { border-left-color: var(--lane-bills); }
.lane-band--school { border-left-color: var(--lane-school); }
.lane-band--marketing { border-left-color: var(--lane-marketing); }
.lane-band--contractor { border-left-color: var(--lane-contractor); }
.lane-band--digital { border-left-color: var(--lane-digital); }
.lane-band--construction { border-left-color: var(--lane-construction); }
.lane-band--software { border-left-color: var(--lane-software); }
.lane-band--dora { border-left-color: var(--lane-dora); }
.lane-band--anna { border-left-color: var(--lane-anna); }
.lane-band--callie { border-left-color: var(--lane-callie); }
.lane-band--berklee { border-left-color: var(--lane-berklee); }
.lane-band--none { border-left-color: var(--lane-none); }
.lane-chip--important { background: #ff4040; color: #ffffff; }
.lane-chip--money { background: #2fd35f; color: #0c2413; }
.lane-chip--bills { background: #ffd21f; color: #241d02; }
.lane-chip--school { background: #3b82f6; color: #ffffff; }
.lane-chip--marketing { background: #a855f7; color: #ffffff; }
.lane-chip--contractor { background: #ff8a1e; color: #26160a; }
.lane-chip--digital { background: #047857; color: #ffffff; }
.lane-chip--construction { background: #b3402a; color: #ffffff; }
.lane-chip--software { background: #c0c6ce; color: #1c2128; }
.lane-chip--dora { background: #ff4da8; color: #2b0716; }
.lane-chip--anna { background: #ffffff; color: #2563eb; border-color: #2563eb; }
.lane-chip--callie { background: #ffc7dd; color: #33131f; }
.lane-chip--berklee { background: #14b8a6; color: #06231f; }
.lane-chip--none { background: #6b7280; color: #ffffff; }

/* ---- THE TASK ROW (R1–R4 made visible) ----
   grid: [44px check] [body]. The body is a vertical stack:
   title, chips, then the action line (Open button, and its
   caption UNDER it in plain flow). No auto track anywhere. */
.row-list { display: grid; gap: 10px; min-width: 0; }
.task-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px;
  align-items: start; background: var(--glass-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; box-shadow: 0 0 12px rgba(255, 39, 151, .06); min-width: 0;
}
.task-check {
  width: 38px; height: 38px; padding: 0; display: grid; place-items: center;
  border-radius: 11px; border: 2px solid var(--pink); background: rgba(255, 39, 151, .08);
  color: transparent; font: inherit; font-size: 1.05rem; font-weight: 800; cursor: pointer;
}
.task-row.is-checked { border-color: rgba(46, 255, 122, .6); box-shadow: 0 0 16px rgba(46, 255, 122, .16); }
.task-row.is-checked .task-check { background: var(--green); border-color: var(--green); color: #04140a; box-shadow: 0 0 14px rgba(46, 255, 122, .75); }
.task-body { min-width: 0; display: grid; gap: 6px; }
.task-title { font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.task-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-width: 0; }
.task-detail { margin: 0; font-size: .9rem; min-width: 0; overflow-wrap: anywhere; }
.task-action { min-width: 0; }
.task-action .btn { min-height: 42px; padding: 8px 18px; }

/* ---- planner: day strip, mode switch, week stack, month grid ---- */
.day-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.day-pill {
  flex: 1 0 64px; min-width: 0; display: grid; justify-items: center; gap: 0;
  background: var(--glass); border: 1px solid rgba(255, 39, 151, .4); border-radius: 12px;
  color: #ffe9f4; font: inherit; padding: 8px 2px; cursor: pointer;
}
.day-pill .dow { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.day-pill .dnum { font-size: 1.05rem; font-weight: 800; }
.day-pill.is-today .dow::before { content: "♛ "; color: var(--gold); text-shadow: 0 0 8px rgba(255, 207, 63, .85); }
.day-pill[aria-selected="true"] { background: linear-gradient(135deg, #ff5db1, #ff2797 55%, #c40e74); border-color: #ffd3ea; box-shadow: 0 0 14px rgba(255, 39, 151, .55); }
.mode-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mode-btn { min-width: 0; min-height: 44px; border-radius: 999px; border: 1px solid rgba(255, 39, 151, .45); background: var(--glass); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.mode-btn[aria-pressed="true"] { background: linear-gradient(135deg, #ff5db1, #ff2797 55%, #c40e74); border-color: #ffd3ea; box-shadow: 0 0 14px rgba(255, 39, 151, .5); }
.day-card { background: var(--glass-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; min-width: 0; }
.day-card h3 { color: var(--pink-soft); }
.day-card.is-today { border-color: rgba(255, 207, 63, .55); }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.month-dow { font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .75; padding: 2px; text-align: center; }
.month-cell {
  min-width: 0; min-height: 52px; display: grid; gap: 2px; align-content: start; justify-items: center;
  background: var(--glass-2); border: 1px solid rgba(255, 39, 151, .28); border-radius: 10px;
  color: var(--text); font: inherit; padding: 5px 2px; cursor: pointer;
}
.month-cell .cnum { font-weight: 800; font-size: .85rem; }
.month-cell .cdots { font-size: .62rem; letter-spacing: 2px; color: var(--green); }
.month-cell.other { opacity: .42; }
.month-cell.is-today { outline: 2px solid var(--pink); box-shadow: 0 0 10px rgba(255, 39, 151, .5); }
.month-cell[aria-selected="true"] { border-color: var(--gold); }
/* ---- Planner Sheet door (restored 2026-11-26): the block lives
   INSIDE the My Day column, so its caption stacks in flow (R3) and
   can only push down — the door can never crush a title (R1). ---- */
.planner-sheet-door { background: var(--glass-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.planner-sheet-door .btn { width: 100%; }

/* ---- school compliance (restored 2026-11-26): per-girl cards in
   the Neon Boss frame, lane band on the left, hour meters that
   fill in green. All text children carry min-width:0 (R2). ---- */
.compliance-card { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; min-width: 0; }
.compliance-head { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; min-width: 0; }
.compliance-head h3 { min-width: 0; overflow-wrap: anywhere; }
.compliance-line { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.compliance-mark { color: var(--green); font-weight: 800; margin-right: 6px; }
.compliance-meter { display: grid; gap: 4px; min-width: 0; }
.compliance-meter-head { font-size: .88rem; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.meter-track { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .14); overflow: hidden; }
.meter-fill { height: 100%; background: var(--green); box-shadow: 0 0 10px rgba(46, 255, 122, .55); }

.add-task { background: var(--glass-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.add-btn { width: 100%; min-height: 54px; margin-top: 12px; border-radius: 999px; border: 1px solid #ffd3ea; background: linear-gradient(135deg, #ff5db1, #ff2797 55%, #c40e74); color: #fff; font-size: 1.06rem; font-weight: 800; box-shadow: 0 0 18px rgba(255, 39, 151, .45); cursor: pointer; font: inherit; }
.empty-note { border: 1px dashed rgba(255, 255, 255, .18); border-radius: 12px; padding: 14px; color: var(--muted); }

.loehr-software-id { width: min(1060px, 100%); margin: 0 auto; padding: 0 12px 130px; color: var(--muted); font-size: .82rem; }
.loehr-software-id p { margin: 2px 0; }

@media (min-width: 900px) {
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .month-cell { min-height: 68px; }
  .app-header { top: 12px; }
}
@media (max-width: 380px) {
  .header-side .pill { display: none; }
  .nav-btn .nav-cap { display: none; }
}

/* ---- owner build doors row (2026-11-29, her order) ----
   Deploy Runner / Owner PIN / Upgrade Planner, mounted by
   nav-doors.js INSIDE the bottom bar as its first row, for
   the primary owner only (signed out, the row never exists).
   The four screen buttons keep their row, order, and
   behavior below it. The doors are plain links in the same
   icon + label + caption pattern — one tap to the real
   pages. The bar grows by this one row; the standing bottom
   reserve (body padding-bottom 196px in dora-nav.css) still
   clears it, so no page content slides under the bar. */
.nav-doors {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 6px;
}
.bottom-nav a.nav-btn { text-decoration: none; }
.nav-door .nav-label { font-size: .86rem; }
