/* Naija Records — STRUCTURE REDESIGN mockup. Design-only: not the live app.
   Built from the app's real tokens (app.css) + the arm identity system. */
:root{
  --bg:#fcfcfa; --surface:#ffffff; --surface-soft:#f2f7f2;
  --ink:#18251e; --ink-2:#55665c; --ink-3:#5f7267; --line:#e7ede7;
  --green:#0a7a44; --green-bright:#16a34a; --green-soft:#e6f4ea; --green-deep:#0a4d2e;
  --amber:#9a6a0a; --amber-dot:#eab308; --amber-bg:#fff6d9; --acc-blue:#1d4ed8; --wash:#fde8e0; --earth:#b03a08; --red:#b03a08; --red-bg:#fde8e0; --grey-bg:#f1f3f1;
  /* movement-chip colour law (owner, 13 Nov 2026): red = weakness, green = strength */
  --mv-weak-bg:#fdeee6; --mv-weak-ink:#b23a09; --mv-strong-bg:#e6f4ea; --mv-strong-ink:#0a6e3e;
  --shadow:0 4px 28px rgba(20,50,35,.06); --shadow-lg:0 12px 40px rgba(20,50,35,.08);
  /* THE THREE HOUSES */
  --exec:#0a4d2e; --exec-mid:#0a7a44; --exec-soft:#e6f4ea; --exec-ink:#ffffff;
  --leg:#7a5203;  --leg-mid:#7a5203;  --leg-soft:#faf0d2;  --leg-ink:#ffffff;
  --jud:#2e2a5e;  --jud-mid:#2e2a5e;  --jud-soft:#ebe9f6;  --jud-ink:#ffffff;
  /* THE SQUARE (neutral shared ground) */
  --sq:#41584a; --sq-soft:#eef3ee;
  color-scheme:light;
}
*{box-sizing:border-box}
body{margin:0;background:#e7eae7;font-family:"Nunito","Segoe UI",system-ui,-apple-system,sans-serif;font-size:18px;line-height:1.6;color:var(--ink);-webkit-font-smoothing:antialiased}
button{font:inherit;cursor:pointer}
h1,h2,h3{line-height:1.2;letter-spacing:-.01em;font-weight:800;margin:0}
:focus-visible{outline:3px solid #facc15;outline-offset:2px;border-radius:8px}

/* mockup chrome (NOT part of the design) */
.mockbar{max-width:430px;margin:0 auto;background:#18251e;color:#e8f2ea;padding:10px 14px;font-size:13px;line-height:1.5}
.mockbar b{color:#fff}
.mockbar .screens{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.mockbar button{background:#24382c;color:#cfe6d6;border:1px solid #35503f;border-radius:999px;padding:7px 12px;font-size:12.5px;font-weight:700;min-height:36px}
.mockbar button.on{background:var(--green-bright);color:#fff;border-color:var(--green-bright)}

.device{max-width:430px;margin:0 auto;background:var(--bg);min-height:100vh;box-shadow:var(--shadow-lg);position:relative;padding-bottom:104px}
/* the rebuild's app column is the mock's .device under its own name: it must
   paint the page ground itself — otherwise the outer body colour shows
   through as the ground and the skin's ground (#fcfcfa) never lands */
.app{max-width:430px;margin:0 auto;background:var(--bg);min-height:100vh;box-shadow:var(--shadow-lg);position:relative;padding-bottom:104px}
.topbar{position:sticky;top:0;z-index:30;background:color-mix(in srgb, var(--bg) 92%, transparent);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.topbar-in{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px}
.brand{display:flex;align-items:center;gap:9px;font-weight:800;font-size:15px}
.brand img{width:32px;height:32px;border-radius:10px;display:block}
.themebtn{border:1.5px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;width:48px;height:48px;font-size:19px}
.wrap{padding:0 20px}
.screen{display:none}
.screen.on{display:block}
.backbtn{display:inline-flex;align-items:center;gap:7px;margin:14px 0 2px;background:var(--surface);border:1.5px solid var(--line);color:var(--ink);border-radius:999px;padding:10px 18px;font-weight:800;font-size:15.5px;min-height:48px}

/* ============ THE BONES — every screen is built from these ============ */
/* BONE 1 · identity band: says which house (or the Square) you are in */
.band{display:flex;align-items:center;gap:11px;border-radius:18px;padding:13px 15px;margin-top:16px;color:#fff}
.band .motif{width:42px;height:42px;border-radius:13px;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.band .motif svg{width:24px;height:24px;display:block}
.band .bk{font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;opacity:.82}
.band .bt{font-size:19px;font-weight:900;line-height:1.15}
.band .bs{font-size:12.5px;font-weight:700;opacity:.85;line-height:1.35}
.band.exec{background:linear-gradient(120deg,var(--exec),var(--exec-mid))}
.band.leg{background:linear-gradient(120deg,var(--leg),var(--leg-mid))}
.band.jud{background:linear-gradient(120deg,var(--jud),var(--jud-mid))}
.band.sq{background:var(--green-soft);color:var(--ink);border:1.5px solid var(--line)}
.band.sq .motif{background:#fff;border:1px solid var(--line)}
.band.sq .bk{color:var(--green-deep)}
/* BONE 2 · job line */
.jobline{font-size:17px;color:var(--ink-2);margin:13px 2px 0;line-height:1.55}
.jobline b{color:var(--ink)}
/* BONE 3 · the one main thing (hero block) */
.mainthing{margin-top:16px}
/* BONE 4 · doors onward (max 3) */
.doors{margin-top:18px;display:grid;gap:11px}
/* BONE 5 · stamp line */
.stamp{font-size:12.5px;color:var(--ink-3);margin:22px 2px 4px;line-height:1.55;border-top:1px solid var(--line);padding-top:12px}

/* ============ THE KIT — components drawn once, used everywhere ============ */
/* section head */
.sechead{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 10px;margin:24px 2px 0}
.sechead h2{font-size:13px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-2);min-width:0}
.sechead a{font-size:13.5px;font-weight:800;color:var(--green);text-decoration:none;white-space:nowrap}
/* door card */
.door{display:block;width:100%;text-align:left;background:var(--surface);border:1.5px solid var(--line);border-radius:20px;padding:17px 18px;box-shadow:var(--shadow);color:var(--ink)}
.door .dt{font-size:19px;font-weight:900;display:flex;justify-content:space-between;align-items:center;gap:10px}
.door .dt .arr{color:var(--green);font-weight:900}
.door .dd{font-size:14.5px;color:var(--ink-2);margin:4px 0 0;line-height:1.5}
.door.exec{border-left:7px solid var(--exec)} .door.exec .arr{color:var(--exec)}
.door.leg{border-left:7px solid var(--leg-mid)} .door.leg .arr{color:var(--leg)}
.door.jud{border-left:7px solid var(--jud)} .door.jud .arr{color:var(--jud)}
/* person row */
.prow{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:12px 14px;box-shadow:var(--shadow);color:var(--ink)}
.prow img,.prow .avatar{width:48px;height:48px;border-radius:50%;flex:0 0 auto;object-fit:cover;border:1.5px solid var(--line)}
.prow .avatar{background:var(--green-soft);color:var(--green-deep);font-weight:900;font-size:15px;display:flex;align-items:center;justify-content:center}
.prow .nm{font-weight:900;font-size:16px;line-height:1.25}
.prow .of{font-size:13px;color:var(--ink-2);font-weight:700;line-height:1.4}
.prow .arr{margin-left:auto;color:var(--ink-3);font-weight:900}
/* arm chip — sizes to its text; may wrap internally rather than ever clip */
.chip{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:900;letter-spacing:.03em;padding:4px 10px;border-radius:999px;max-width:100%;overflow-wrap:break-word;text-align:center;line-height:1.3}
.chip.exec{background:var(--exec-soft);color:var(--exec)}
.chip.leg{background:var(--leg-soft);color:var(--leg)}
.chip.jud{background:var(--jud-soft);color:var(--jud)}
.chip.sq{background:var(--grey-bg);color:var(--ink-2)}
/* a chip inside a list row sizes to its words on ONE line: it never
   shrinks, so a long neighbouring text column can never squeeze it into
   stacking — the set keeps one height (owner's chip gate). A chip that
   belongs to a person sits inside that person's text column (the profile
   screen's construction), never as a trailing flex item beside it. */
.lrow>.chip{flex:0 0 auto}
/* number tile */
.tiles{display:flex;gap:8px}
.tile{flex:1;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 8px 10px;text-align:center;box-shadow:var(--shadow)}
.tile b{display:block;font-size:20px;font-weight:900;line-height:1.1}
.tile span{display:block;font-size:11px;font-weight:700;color:var(--ink-2);line-height:1.35;margin-top:3px}
.tile .src{display:block;font-size:10px;color:var(--ink-3);font-weight:700;margin-top:2px}
/* movement chip — kit part 7. Lives on a number tile: arrow + signed change on
   the first line, the period in plain words under it. COLOUR LAW (owner,
   13 Nov 2026 — replaces the earlier neutral style): red = weakness,
   green = strength, judged by what the movement MEANS for that tile. All
   three Standard prices are "rising hurts" numbers — petrol up, a higher
   ₦/$ rate, rising inflation are weakness; falling is strength — so a
   positive change wears .weak (red family) and a negative change .strong
   (green family). The arrow and the signed figure carry the colour; the
   period line stays ink. Both inks pass WCAG AA on their tints, light
   (5.30 / 5.58) and dark (7.71 / 7.98). */
.movechip{display:inline-flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center;column-gap:4px;margin-top:auto;align-self:center;background:var(--grey-bg);border:1px solid var(--line);border-radius:12px;padding:4px 8px 5px;max-width:100%;line-height:1.25}
.tile-tap .src{margin-bottom:8px} /* minimum gap above the bottom-pinned chip; the auto top margin absorbs the rest */
.tile .movechip{margin-top:auto} /* specificity: must beat .tile span's margin-top so the bottom pin actually applies */
.movechip .mv-top{display:inline-flex;align-items:baseline;gap:4px;font-size:11.5px;font-weight:900;color:var(--ink);white-space:nowrap}
.movechip .mv-arr{font-size:8.5px;color:inherit}
.movechip.weak{background:var(--mv-weak-bg);border-color:color-mix(in srgb, var(--mv-weak-ink) 28%, var(--mv-weak-bg))}
.movechip.weak .mv-top{color:var(--mv-weak-ink)}
.movechip.strong{background:var(--mv-strong-bg);border-color:color-mix(in srgb, var(--mv-strong-ink) 28%, var(--mv-strong-bg))}
.movechip.strong .mv-top{color:var(--mv-strong-ink)}
.movechip .mv-per{flex-basis:auto;text-align:center;font-size:10px;font-weight:700;color:var(--ink-2);margin-top:1px;white-space:nowrap}
.movechip .mv-per::after{content:"›";margin-left:3px;opacity:.65} /* the quiet "tap" hint */
.tile-tap{cursor:pointer;-webkit-tap-highlight-color:transparent}
.tile-tap:active{transform:scale(.98)}
@keyframes movePulse{0%{box-shadow:0 0 0 0 rgba(65,88,74,.38)}100%{box-shadow:0 0 0 10px rgba(65,88,74,0)}}
.movechip.pulse{animation:movePulse .9s ease-out .5s 1 both}
@media (prefers-reduced-motion:reduce){.movechip.pulse{animation:none}.tile-tap:active{transform:none}}
/* narrow phones: a tile row must fit its screen — the longest tile values
   (₦XX.XXtrn on the Money screen) set the size, so the value size steps
   down and the side padding tightens before the row can overflow */
@media (max-width:374px){.tile{padding-left:6px;padding-right:6px}.tile b{font-size:17px}}
/* record card */
.record{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:17px 18px;box-shadow:var(--shadow)}
.record .rt{font-size:17.5px;font-weight:900;line-height:1.3}
.record .rm{font-size:13.5px;color:var(--ink-2);margin-top:4px;line-height:1.5}
/* card head — title + pill share a line only while both truly fit; the title
   is measured at its natural width, so a long title takes the line and the
   pill moves to its own line below (right-aligned) instead of squeezing */
.cardhead{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 10px}
.cardhead .rt,.cardhead .of{flex:0 1 auto;min-width:0}
.cardhead .pill{flex:0 0 auto;margin-left:auto}
/* status pill — sizes to its text; wraps internally as a last resort, never clips, never overflows */
.pill{display:inline-block;font-size:11.5px;font-weight:900;padding:4px 10px;border-radius:999px;max-width:100%;overflow-wrap:break-word;text-align:center;line-height:1.35}
.pill.done{background:var(--exec-soft);color:var(--exec)}
.pill.doing{background:var(--amber-bg);color:var(--amber)}
.pill.stuck{background:var(--red-bg);color:var(--red)}
.pg{height:9px;border-radius:99px;background:var(--grey-bg);margin-top:11px;overflow:hidden}
.pg i{display:block;height:100%;background:var(--green-bright);border-radius:99px}
/* square door tiles (compact grid) */
.sqgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.sqdoor{display:block;text-align:left;background:var(--surface);border:1.5px solid var(--line);border-radius:18px;padding:14px 15px;box-shadow:var(--shadow);color:var(--ink)}
.sqdoor .st-t{font-size:16.5px;font-weight:900;display:flex;justify-content:space-between;align-items:center}
.sqdoor .st-t .arr{color:var(--green)}
.sqdoor .st-d{font-size:12.5px;color:var(--ink-2);font-weight:700;margin-top:2px;line-height:1.4}
/* houses strip (Home) */
.houses{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px;margin-top:12px}
.house{border-radius:18px;padding:13px 11px 11px;color:#fff;text-align:left;border:0;width:100%}
.house .motif{width:34px;height:34px;border-radius:11px;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;margin-bottom:8px}
.house .motif svg{width:20px;height:20px}
.house b{display:block;font-size:14.5px;font-weight:900;line-height:1.2}
.house span{display:block;font-size:11px;font-weight:700;opacity:.88;line-height:1.35;margin-top:3px}
.house.exec{background:linear-gradient(150deg,var(--exec),var(--exec-mid))}
.house.leg{background:linear-gradient(150deg,var(--leg),var(--leg-mid))}
.house.jud{background:linear-gradient(150deg,var(--jud),var(--jud-mid))}
/* bottom nav — UNCHANGED from the live app */
.bottomnav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:430px;display:flex;gap:6px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:color-mix(in srgb, var(--bg) 94%, transparent);backdrop-filter:blur(12px);border-top:1px solid var(--line);z-index:40}
.bottomnav button{flex:1;border:1.5px solid var(--line);background:var(--surface);color:var(--ink-2);border-radius:999px;min-height:52px;font-weight:800;font-size:14.5px}
.bottomnav button.on{background:var(--green);border-color:var(--green);color:#fff}
/* misc */
.countline{display:flex;gap:8px;flex-wrap:wrap;margin-top:11px}
.note{font-size:13.5px;color:var(--ink-2);line-height:1.55;margin:10px 2px 0}
.hero-mini{padding:20px 0 2px;text-align:left}
.hero-mini h1{font-size:32px;line-height:1.15}
.hero-mini h1 em{font-style:normal;color:var(--green)}
.hero-mini .lede{font-size:16.5px;color:var(--ink-2);margin:8px 0 0;line-height:1.55;max-width:36ch}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:15px 24px;font-weight:800;font-size:16.5px;min-height:56px;text-decoration:none}
.btn-green{background:var(--green);color:#fff}
.kv{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--line);font-size:15px}
.kv:last-child{border-bottom:0}
.kv b{font-weight:900;text-align:right}
.kv span{color:var(--ink-2);font-weight:700}
.layerhead{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;margin:0 0 4px}

/* ============ OWNER'S RULINGS, 13 Nov 2026 ============
   1 · The map is the REAL map (production SVG geometry + record tiers).
   2 · No dead buttons: nav, More sheet and every door are wired. */

/* map tokens (production app.css values) */
:root{
  --map-full:#0b6e3f; --map-active:#2f9e63; --map-starting:#f0c93f; --map-waiting:#dfe5df;
  --map-lbl-thin:#55665c;
  --map-lbl-ink:#0b2e1f; --map-lbl-halo:#fff6d8;
}
/* the real Nigeria map (production geometry, classes and behaviour) */
.ngmap-wrap{max-width:620px;margin:14px auto 0}
svg#ngMap{width:100%;height:auto;display:block}
.st{stroke:var(--surface);stroke-width:1.4;cursor:pointer;transition:opacity .15s ease}
.st.full{fill:var(--map-full)} .st.strong{fill:var(--map-active)} .st.growing{fill:var(--map-starting)} .st.thin{fill:var(--map-waiting)}
.st:hover{opacity:.82}
.st.selected{stroke:#f59e0b;stroke-width:5.5}
.st:focus{outline:none}
.st:focus-visible{stroke:#f59e0b;stroke-width:3.5}
.hit{fill:rgba(0,0,0,0);stroke:rgba(0,0,0,0);stroke-width:18px;cursor:pointer;pointer-events:all}
/* state names: deep ink letters wrapped in a soft pale halo (paint-order
   stroke), so a name reads on the deep green and the lighter green alike;
   size is set per state by the measured-fit pass in index.html */
.lbl{font-family:"Nunito",sans-serif;font-weight:900;text-anchor:middle;pointer-events:none;fill:var(--map-lbl-ink);paint-order:stroke;stroke:var(--map-lbl-halo);stroke-linejoin:round}
.leader{stroke:var(--map-lbl-ink);stroke-width:1.6;opacity:.55;pointer-events:none}
.ldot{fill:var(--map-lbl-ink);stroke:var(--map-lbl-halo);stroke-width:1.8;pointer-events:none}
.map-legend{display:flex;flex-wrap:wrap;gap:8px 16px;justify-content:center;margin-top:14px;font-size:13px;font-weight:700;color:var(--ink-2)}
.map-legend span{display:inline-flex;align-items:center;gap:6px}
.map-legend i{width:10px;height:10px;border-radius:50%;display:inline-block}
.map-legend-note{font-size:12.5px;color:var(--ink-3);text-align:center;margin:9px 0 0;line-height:1.5}
.map-msg{margin:14px 0 0;font-size:14.5px;background:var(--surface-soft);border-radius:14px;padding:13px 16px;text-align:center;line-height:1.55}
.map-msg strong{color:var(--green)}
.map-counts{display:block;font-size:13.5px;color:var(--ink-2);margin-top:3px}
.map-acts{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:11px}
.map-act{display:inline-flex;align-items:center;justify-content:center;background:var(--green);color:#fff;border:0;font-weight:800;font-size:14.5px;border-radius:999px;padding:12px 18px;min-height:52px;cursor:pointer}
.map-act.ghost{background:var(--surface);color:var(--green);border:1.5px solid var(--green)}
.coverage-counts{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:14px}
.ccount{background:var(--surface-soft);border-radius:999px;padding:8px 15px;font-size:13px;font-weight:700;color:var(--ink-2)}
.ccount b{color:var(--ink);font-weight:900}
.map-credit{font-size:11.5px;color:var(--ink-3);text-align:center;margin:11px auto 0;line-height:1.5}

/* More sheet (production behaviour: backdrop, grip, described rows) */
.more-backdrop{position:fixed;inset:0;background:rgba(16,30,20,.45);z-index:55;opacity:0;pointer-events:none;transition:opacity .25s ease}
.more-backdrop.open{opacity:1;pointer-events:auto}
.moresheet{position:fixed;left:50%;bottom:0;transform:translate(-50%,105%);width:100%;max-width:430px;background:var(--bg);border-radius:26px 26px 0 0;z-index:56;padding:10px 20px calc(20px + env(safe-area-inset-bottom));box-shadow:var(--shadow-lg);transition:transform .28s ease;max-height:82vh;overflow:auto}
.moresheet.open{transform:translate(-50%,0)}
.more-grip{width:44px;height:5px;border-radius:99px;background:var(--line);margin:4px auto 10px}
.more-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.more-head h2{font-size:21px}
.more-close{border:1.5px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:9px 16px;font-weight:800;font-size:14px;min-height:44px}
.more-row{display:flex;align-items:center;gap:12px;width:100%;min-height:85px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:13px 15px;margin-top:9px;box-shadow:var(--shadow);color:var(--ink)}
.more-row b{display:block;font-size:16.5px;font-weight:900;line-height:1.25}
.more-row span{display:block;font-size:13px;color:var(--ink-2);font-weight:700;line-height:1.4}
.more-row .mr-arrow{margin-left:auto;color:var(--green);font-weight:900;font-size:18px}
.more-row.join{border:1.5px solid var(--green);background:var(--green-soft)}
.more-row[hidden]{display:none}

/* expandable rows (judge rows, LegalPadi entries, lessons, eras) */
.xrow{width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:12px 14px;box-shadow:var(--shadow);color:var(--ink)}
.xdetail{display:none;font-size:14px;color:var(--ink-2);line-height:1.55;margin-top:9px;border-top:1px dashed var(--line);padding-top:9px}
.xopen .xdetail{display:block}
.xopen .arr{transform:rotate(90deg)}
.prow .arr,.xrow .arr{transition:transform .2s ease}
.hiddenrows{display:none}
.hiddenrows.open{display:grid}

/* finder / join forms */
.fform{display:grid;gap:13px;margin-top:14px}
.fform label{font-size:15px;font-weight:800;display:block}
.fform select,.fform input{width:100%;margin-top:6px;font:inherit;font-size:16px;padding:13px 14px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);min-height:52px}
.fform select:disabled{opacity:.55}
.fhint{font-size:13px;color:var(--red);font-weight:800;min-height:18px;margin:2px 0 0}
.donebox{display:none;background:var(--green-soft);border:1.5px solid var(--green);border-radius:16px;padding:14px 16px;font-size:14.5px;line-height:1.55;margin-top:14px}
.donebox.open{display:block}

/* motion vote row (production wireMotion behaviour) */
/* opinion pills: ONE construction for all three — stance label stacked over
   its count badge, every pill the same height, built for the longest label
   ("Need more info" gets a reserved two-line label zone, so no pill changes
   shape because its words are longer) */
.vote-row{display:flex;gap:8px;margin-top:12px}
.vbtn{flex:1 1 0;min-width:0;height:80px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;border:1.5px solid var(--green);background:var(--surface);color:var(--green-deep);border-radius:22px;padding:10px 6px 8px;font-weight:800}
.vbtn .vlabel{display:flex;align-items:center;justify-content:center;height:32px;font-size:13.5px;font-weight:800;line-height:1.18;text-align:center}
.vbtn .vcount{font-size:19px;font-weight:900;line-height:1;color:var(--green-deep);background:var(--green-soft);border-radius:999px;padding:3px 10px;min-width:38px;text-align:center}
.vbtn[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:#fff}
.vbtn[aria-pressed="true"] .vcount{background:rgba(255,255,255,.24);color:#fff}
.vbtn:disabled{cursor:default}
.vbtn:disabled:not([aria-pressed="true"]){opacity:.72}
:root[data-theme="dark"] .vbtn{color:#57d992;border-color:var(--green-bright)}
:root[data-theme="dark"] .vbtn .vcount{color:#57d992}
:root[data-theme="dark"] .vbtn[aria-pressed="true"]{background:var(--green);color:#fff}
:root[data-theme="dark"] .vbtn[aria-pressed="true"] .vcount{color:#fff}
.progress-track{height:10px;border-radius:99px;background:var(--grey-bg);margin-top:13px;overflow:hidden}
.progress-fill{height:100%;background:var(--green-bright);border-radius:99px;transition:width .3s ease}
.progress-label{font-size:13.5px;color:var(--ink-2);margin:8px 0 0;line-height:1.5}

/* simple list rows inside record cards */
.lrow{display:flex;gap:11px;align-items:flex-start;padding:11px 0;border-bottom:1px solid var(--line)}
.lrow:last-child{border-bottom:0;padding-bottom:2px}
.lrow .lt{font-weight:900;font-size:15.5px;line-height:1.3}
.lrow .ld{font-size:13.5px;color:var(--ink-2);line-height:1.45}
.lrow .lv{margin-left:auto;font-weight:900;font-size:15.5px;white-space:nowrap}

/* toast (share + misc visible responses) */
.toast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translate(-50%,20px);background:var(--ink);color:#fff;font-size:14px;font-weight:800;border-radius:999px;padding:12px 20px;z-index:60;opacity:0;pointer-events:none;transition:all .25s ease;max-width:88vw;text-align:center}
.toast.open{opacity:1;transform:translate(-50%,0)}
.seclink{background:none;border:0;color:var(--green);font-size:13.5px;font-weight:800;padding:4px 0;cursor:pointer;white-space:nowrap}
/* dark-theme contrast: the green accent at text size needs the bright mint
   (slice gauntlet 2026-11-14: --green measured 3.06:1 on dark surfaces) */
:root[data-theme="dark"] .seclink,
:root[data-theme="dark"] .door .dt .arr,
:root[data-theme="dark"] .sqdoor .st-t .arr{color:var(--num1)}

/* dark theme (moon toggle actually toggles) */
:root[data-theme="dark"]{
  --bg:#0e1511; --surface:#16211a; --surface-soft:#1a2920;
  --ink:#e8f0ea; --ink-2:#a9bcb0; --ink-3:#7e9184; --line:#26362c;
  --green-soft:#14301f; --grey-bg:#1c2a21; --sq-soft:#1a2920;
  --exec-soft:#14301f; --jud-soft:#221e45; --leg-soft:#33270a;
  --amber-bg:#33270a; --red-bg:#3a1e10;
  --mv-weak-bg:#3a1e10; --mv-weak-ink:#ffa07e; --mv-strong-bg:#14301f; --mv-strong-ink:#57d992;
  --map-full:#35b06f; --map-active:#2ea86a; --map-starting:#c9a227; --map-waiting:#2c3a31;
  --map-lbl-thin:#93a89a;
  --shadow:0 4px 28px rgba(0,0,0,.35); --shadow-lg:0 12px 40px rgba(0,0,0,.45);
  color-scheme:dark;
}
:root[data-theme="dark"] body{background:#060a07}
:root[data-theme="dark"] .band.sq .motif{background:var(--surface)}

/* State screen opened bare (owner-confirmed, 13 Nov 2026): never an
   empty screen — one plain line and the door to the map instead. */
#stateGuard{display:none}
#s-state.bare #stateGuard{display:block}
#s-state.bare .state-pop{display:none}
/* state identity — arms + slogan at the head of the state page; the arms
   tile keeps a white ground in both themes (the seals are artwork drawn
   on white — the named artwork exception, as with the party logos) */
.stateid{display:flex;gap:14px;align-items:center;margin:12px 0 0}
.stateid[hidden]{display:none}
.stateid img{width:62px;height:62px;object-fit:contain;background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:4px;flex:none}
.stateid-slogan{font-size:19px;font-weight:900;line-height:1.3;color:var(--ink)}
.stateid-flag{font-size:12.5px;color:var(--ink-2);margin-top:3px;line-height:1.45}

/* ============ SKIN OF RECORD — the /colour/ skin (owner verdict, 13 Nov 2026, 22:52 EST) =
   Snapshot of record: ~/workspace/my-polling-unit-data/colour-skin-of-record-2026-11-13/
   (sha256 d4a52832…). V1's balance: calm green+white base; blue and gold at
   FULL STRENGTH but SMALL IN AREA, always in the same small jobs — a white
   card's top stripe and its number, rotating green → blue → gold evenly.
   Stripes wear the BRIGHT set (green-bright / royal blue / amber-dot);
   numerals wear the deeper set (green / royal blue / true gold).
   One solid green primary (main buttons) at most; the nav pill wears
   v1's soft tint instead (see the alignment block at the foot). ======== */
:root{
  --blue:#1d4ed8; --gold:#9a6a0a; --navy:#2e2a5e;
  --num1:#0a7a44; --num2:#1d4ed8; --num3:#9a6a0a;
  --stripe1:#16a34a; --stripe2:#1d4ed8; --stripe3:#eab308;
}
:root[data-theme="dark"]{
  --blue:#60a5fa; --gold:#facc15; --navy:#a5a0e0;
  --num1:#4ade80; --num2:#60a5fa; --num3:#facc15;
  --stripe1:#4ade80; --stripe2:#60a5fa; --stripe3:#facc15;
}
/* Standard tiles: stripe + numeral rotation */
.tiles .tile{position:relative;overflow:hidden;padding-top:15px}
.tiles .tile::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--stripe1)}
.tiles .tile:nth-child(2)::before{background:var(--stripe2)}
.tiles .tile:nth-child(3)::before{background:var(--stripe3)}
.tiles .tile:nth-child(1) b{color:var(--num1)}
.tiles .tile:nth-child(2) b{color:var(--num2)}
.tiles .tile:nth-child(3) b{color:var(--num3)}
/* the one compact sources line under the Standard card (v1.17 ruling:
   no per-tile source lines) — the whole line is the door to #stdsources */
.srcsline{display:block;width:100%;margin-top:9px;background:none;border:0;padding:4px 2px;font:inherit;font-size:12.5px;font-weight:700;color:var(--ink-3);text-align:center;cursor:pointer}
/* watcher map fills (owner decision, 13 Nov 2026 — v1's map, live in v1.19) */
.st.watch-active{fill:#2f9e63}
.st.watch-starting{fill:#f0c93f}
.st.watch-waiting{fill:#dfe5df}
:root[data-theme="dark"] .st.watch-active{fill:#2ea86a}
:root[data-theme="dark"] .st.watch-starting{fill:#c9a227}
:root[data-theme="dark"] .st.watch-waiting{fill:#2c3a31}
/* dark map labels keep the v1 treatment: deep ink on the cream halo */
:root[data-theme="dark"]{--map-lbl-ink:#0b2e1f;--map-lbl-halo:#fff6d8}
/* Home cards for Promise of the Day + the daily right: quiet white cards,
   one small coloured stripe each (gold for a promise, judiciary navy for a right) */
.homecard{position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px 16px 14px;box-shadow:var(--shadow);margin-top:12px;text-align:left;width:100%;font:inherit;color:var(--ink);cursor:pointer;display:block}
.homecard::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--amber-dot)}
.homecard.right::before{background:var(--navy)}
.homecard .hc-k{font-size:11px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3)}
.homecard .hc-t{font-size:16.5px;font-weight:800;line-height:1.45;margin-top:5px}
.homecard .hc-s{font-size:13px;font-weight:700;color:var(--ink-2);margin-top:5px;line-height:1.45}
/* Home boldest promises deck (owner ruling, 2026-11-14): one slide per
   candidate in place of the single pinned Promise of the Day card. Fixed
   slide height inside the set, wording clamped, the full text one tap
   away on the candidate's own promise page. Flag chips take the Promise
   family's colours, paired for both themes as promises.css pairs them.
   Clamp fix (2026-11-14, §6.11): the box truly holds four lines at the
   real font and line height, so the clamp is four; a fifth line was cut
   through its glyphs on the long wordings. Wordings over 120 characters
   take the .long step down to 14.5px, which keeps even a two line source
   inside the 245px slide, and a clamped wording now ends with the clean
   ellipsis the line clamp itself draws. */
.decksub{font-size:13.5px;font-weight:700;color:var(--ink-2);margin:6px 2px 0;line-height:1.45}
.deck{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin-top:10px;padding:2px 2px 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.deck::-webkit-scrollbar{display:none}
.pslide{position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);flex:0 0 86%;scroll-snap-align:start;height:245px;padding:16px 16px 14px;text-align:left;font:inherit;color:var(--ink);cursor:pointer;display:flex;flex-direction:column}
.pslide::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--amber-dot)}
.pslide .hc-k{font-size:11px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pslide .phd{display:flex;align-items:center;gap:10px}
.pslide .phd .hc-k{min-width:0}
.pslide .pflag{align-self:flex-start;font-size:11px;font-weight:900;border-radius:999px;padding:4px 9px;margin-top:8px}
.pslide .pflag.ok{background:var(--exec-soft);color:var(--exec)}
.pslide .pflag.part{background:var(--amber-bg);color:#7a5203}
.pslide .pflag.vague{background:var(--red-bg);color:var(--red)}
:root[data-theme="dark"] .pslide .pflag.ok{color:#57d992}
:root[data-theme="dark"] .pslide .pflag.part{color:#facc15}
:root[data-theme="dark"] .pslide .pflag.vague{color:#ffa07e}
.pslide .hc-t{font-size:15.5px;font-weight:800;line-height:1.45;margin-top:9px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.pslide .hc-t.long{font-size:14.5px;line-height:1.42}
.pslide .hc-s{font-size:13px;font-weight:700;color:var(--ink-2);line-height:1.45;margin-top:auto;padding-top:8px}
.deckpos{display:flex;align-items:center;gap:12px;margin:2px 2px 0}
.deckdots{display:inline-flex;gap:6px}
.deckdots i{width:7px;height:7px;border-radius:50%;background:var(--ink-3);opacity:.3}
.deckdots i.on{background:var(--amber);opacity:1}
.deckcount{font-size:12.5px;font-weight:800;color:var(--ink-2)}
/* honest empty state for a screen whose pour has not happened yet */
/* language button in the topbar (shell furniture) */
.langbtn{border:1.5px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;height:48px;padding:0 15px;font:inherit;font-size:14px;font-weight:800;margin-left:auto}
.topbar-in .themebtn{margin-left:8px}
.brand{margin-right:auto}
.langsheet-row{display:flex;width:100%;align-items:center;justify-content:space-between;background:none;border:0;border-bottom:1px solid var(--line);padding:14px 4px;font:inherit;font-size:16px;font-weight:800;color:var(--ink);cursor:pointer}
.langsheet-row:last-child{border-bottom:0}
.langsheet-row .on{color:var(--green);font-weight:900}
/* contrast hardening (acceptance bar: no text pair under 4.5 on poured
   surfaces — the mock's --ink-3 reads 2.96:1 at stamp size, so the quiet
   lines take --ink-2; the Square band kicker keeps a bright green in dark) */
.stamp,.srcsline,.map-credit,.map-legend-note{color:var(--ink-2)}
:root[data-theme="dark"] .band.sq .bk{color:#57d992}
/* legend swatches follow the theme's own watcher fills */
.map-legend i.lg-a{background:#2f9e63}
.map-legend i.lg-s{background:#f0c93f}
.map-legend i.lg-w{background:#a8b5ab;box-shadow:inset 0 0 0 1px var(--line)}
:root[data-theme="dark"] .map-legend i.lg-a{background:#2ea86a}
:root[data-theme="dark"] .map-legend i.lg-s{background:#c9a227}
:root[data-theme="dark"] .map-legend i.lg-w{background:#2c3a31;box-shadow:inset 0 0 0 1px var(--line)}

/* ============ SKIN OF RECORD — component alignments (13 Nov 2026) ============
   Each rule below takes the rebuild's existing component and gives it the
   /colour/ file of record's treatment of the same job. Structure untouched. */
/* bottom nav, chosen pill: v1's own recipe from the file of record — a soft
   green tint (10% green on the surface), a green-tinted edge, deep-green
   words. This SUPERSEDES the solid green pill Phase 1 shipped (logged as a
   conflict: the file of record is explicit, and it is the later approval). */
.bottomnav button.on{background:color-mix(in srgb, var(--green) 10%, var(--surface));border-color:color-mix(in srgb, var(--green) 26%, var(--line));color:#0a2417}
:root[data-theme="dark"] .bottomnav button.on{background:color-mix(in srgb, var(--green-bright) 14%, var(--surface));border-color:color-mix(in srgb, var(--green-bright) 40%, var(--line));color:#57d992}
/* the Square band's words in light take the deep green, as the file of
   record sets its Square band; dark keeps the bright kicker + ink words */
:root:not([data-theme="dark"]) .band.sq{color:var(--green-deep)}
/* section heads carry the rotation's stripe segment under the words;
   position classes tk-b / tk-a are set in the markup (green is default) */
.sechead h2::after{content:"";display:block;width:34px;height:4px;border-radius:2px;background:var(--green-bright);margin-top:5px}
.sechead.tk-b h2::after{background:var(--acc-blue)}
.sechead.tk-a h2::after{background:var(--amber-dot)}
/* person-row avatar: the file of record's blue chip (tint ground, royal ink) */
.prow .avatar{background:#e0edff;color:var(--acc-blue)}
:root[data-theme="dark"] .prow .avatar{background:#1e3a5f;color:#93c5fd}
/* warning pair + status pills: the file of record's deepened inks — a pair
   that fails is deepened, never repeated. .pill.doing's gold on amber cream
   measured 4.38:1; the deepened ink measures 6.40:1. Dark grounds take the
   bright inks of the same families. */
.pill.doing{color:#7a5203}
:root[data-theme="dark"] .pill.doing{color:#facc15}
:root[data-theme="dark"] .pill.stuck{color:#ffa07e}
:root[data-theme="dark"] .fhint{color:#ffa07e}
:root[data-theme="dark"]{--amber-dot:#facc15}
/* dark house chips: the soft grounds go dark in the dark theme, so the chip
   inks take the bright ink of each house family (the light inks measured
   1.44 / 2.11 / 1.20 on the dark softs — a pair that fails is deepened or
   brightened, never repeated) */
:root[data-theme="dark"] .chip.exec{color:#57d992}
:root[data-theme="dark"] .chip.leg{color:#facc15}
:root[data-theme="dark"] .chip.jud{color:#a5a0e0}
/* ============ HOME FIRST CARD — v1's hero head (owner instruction,
   2026-11-13: the first card becomes "the one we had on v1"). Composition
   lifted from the final v1 monolith and re-expressed in the rebuild's
   skin tokens — the token names are v1's own (--green, --green-soft,
   --green-bright, --ink-2, --acc-blue, --surface, --line, --shadow), so
   no v1 CSS or colour is imported, only the arrangement. v1's Home
   overrides ride along: the projects ghost wears blue, the Nigeria
   ghost wears green. Dark: the text inks take the bright ink of each
   family, per the skin's standing rule — the same #57d992 the dark
   Square band and exec chip use, and #60a5fa, the dark theme's blue. */
.herohead{text-align:center;padding:22px 0 2px}
.hero-badge{display:inline-flex;align-items:center;gap:7px;background:var(--green-soft);color:var(--green);font-size:13px;font-weight:700;padding:7px 14px;border-radius:999px;margin-bottom:20px}
.hero-badge i{width:7px;height:7px;border-radius:50%;background:var(--green-bright);display:inline-block}
.herohead h1{font-size:clamp(36px,6.5vw,56px);margin:0 auto 16px;max-width:16ch}
.herohead h1 em{font-style:normal;color:var(--green)}
.herohead .lede{font-size:20px;font-weight:600;color:var(--ink-2);margin:0 auto 28px;max-width:52ch;line-height:1.55;white-space:pre-line}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.btn-ghost{background:var(--surface);color:var(--ink);border:1.5px solid var(--line);box-shadow:var(--shadow)}
.hero-actions .btn-ghost.proj{color:var(--acc-blue);border-color:var(--acc-blue)}
.hero-actions .btn-ghost.ng{color:var(--green);border-color:var(--green)}
@media(max-width:640px){.hero-actions{flex-direction:column;align-items:stretch;max-width:340px;margin-left:auto;margin-right:auto}.hero-actions .btn{width:100%}}
:root[data-theme="dark"] .hero-badge{color:#57d992}
:root[data-theme="dark"] .herohead h1 em{color:#57d992}
:root[data-theme="dark"] .hero-actions .btn-ghost.proj{color:#60a5fa;border-color:#60a5fa}
:root[data-theme="dark"] .hero-actions .btn-ghost.ng{color:#57d992;border-color:#57d992}
