/* OHM brand palette (Dawa, Nov 9 2026, sampled from the final logo
   art): charcoal ink, warm gold, warm cream, terracotta, deep plum.
   Gold is a FILL/accent color, never text on cream or white (it
   fails contrast); gold surfaces carry ink text. Terracotta is
   RESERVED for voice/recording moments (record/stop, the timer).
   Plum is the quiet dark: secondary/danger buttons, waiting state. */
:root{--ink:#1E1E2C;--gold:#F6BD4A;--cream:#FFEDCC;--terra:#C95629;--plum:#401441;--card:#FFF9EC;--line:#E8D5AC;--field:#D8C096;--dim:#5C5A66;--gold-soft:#FBE9BE;--gold-line:#E9CD85;--msg:#F5E7C6}
*{box-sizing:border-box}body{margin:0;font-family:'Nunito Sans',system-ui,sans-serif;background:var(--cream);color:var(--ink);padding-bottom:76px}
#topbar{position:sticky;top:0;background:var(--ink);color:var(--cream);padding:14px 16px;font-weight:700;padding-top:calc(14px + env(safe-area-inset-top));display:flex;align-items:center}
.testbadge{background:var(--gold);color:var(--ink);border-radius:6px;padding:1px 6px;font-size:11px}
.view{max-width:480px;margin:0 auto;padding:16px}
.hidden{display:none!important}
.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px;margin:12px 0}
.photo-thumb{width:100%;max-height:340px;object-fit:cover;border-radius:12px;display:block}
.qa-video{width:100%;border-radius:12px;background:#000;display:block}
input,select{width:100%;padding:12px;margin:6px 0;border:1px solid var(--field);border-radius:10px;font-size:16px}
button{background:var(--gold);color:var(--ink);border:0;border-radius:10px;padding:12px 18px;font-size:16px;min-height:48px;cursor:pointer}
button.danger{background:var(--plum);color:#fff}
.row{display:flex;gap:8px}.row input{flex:1}
#tabbar{position:fixed;left:0;right:0;bottom:0;background:var(--card);border-top:1px solid var(--line);display:flex;padding-bottom:env(safe-area-inset-bottom)}
#tabbar button{flex:1;background:none;color:var(--ink);font-size:14px;border-radius:0}
#tabbar button.active{font-weight:800;box-shadow:inset 0 -3px 0 var(--gold)}
.deckcard img,.likecard img{width:100%;border-radius:12px}
.deckcard{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px}
.card-name{font-size:30px;font-weight:800;margin:12px 0 2px}
.card-why{color:var(--dim);font-size:14px;margin:0 0 8px}
.card-intro p{margin:5px 0;font-size:17px}
.card-quiet{display:flex;gap:18px;margin-top:10px}
.card-quiet button{background:none;color:var(--dim);font-size:14px;min-height:36px;padding:4px 2px;text-decoration:underline;flex:none}
.msg{background:var(--msg);border-radius:10px;padding:8px 10px;margin:6px 0}
.msg.mine{background:var(--gold-soft);text-align:right}
.opening{background:var(--gold-soft);border:1px solid var(--gold-line);border-radius:10px;padding:10px}
.dim{color:var(--dim);font-size:14px}
video{width:100%;border-radius:10px;background:#000}
button:disabled{opacity:.45;cursor:default}
/* Recording (Requirement 25): a full-screen camera view. The live
   front-camera stream fills it, MIRRORED like a selfie preview;
   the question and the elapsed timer sit over the top, and the
   controls over the bottom. The review playback is not mirrored:
   it shows the clip as it was recorded. */
/* Requirement 26: breathing room. Stacked controls were cramped
   (the door's buttons sat on top of each other): one vertical
   rhythm everywhere: labels own their line, fields and buttons
   keep a minimum gap, rows widen. Spacing/layout only; no colors
   or brand changes in this pass. */
label{display:block;margin:12px 0 0}
input,select{margin:8px 0}
.card>button,.view>button{margin-top:12px}
.card .row{margin-top:10px}
.row{gap:12px}
fieldset{margin-top:14px}
#au-step1 button,#au-step2 button,#au-step3 button,#au-step4 button{margin-top:12px;width:100%}
#loc-results button{display:block;width:100%;margin-top:8px}
#loc-dist{margin-top:6px}
/* Requirement 26: tabs for a not-yet-active account are visibly
   locked, dimmed and desaturated; showTab also refuses to open
   them (the nav guard in app.js), and the server gates the data. */
#tabbar button.locked{opacity:.38;filter:grayscale(1)}
/* Requirement 26: the 50-second countdown, a large DOM overlay on
   the live preview. UI only: the recording captures the camera
   stream alone, so the countdown is never in the clip. */
.rec-countdown{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:120px;font-weight:800;color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.7);z-index:3;pointer-events:none}
.recorder{position:fixed;inset:0;background:#000;z-index:60}
.recorder video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0}
/* Review playback fix (Nov 13, 2026): the review video has no
   controls and needs no taps; the centered Preview button is the
   only control. The full-screen video sat in the tap path and
   could swallow the tap (reproduced at phone sizes: the clip
   loaded and played when invoked, but taps on the button did not
   start it). Tap-transparent removes the failure mode entirely,
   whatever the stacking order. */
#rec-playback{pointer-events:none}
/* The monthly-window lock banner on Profile screen 2 (Nov 13,
   2026): shown at the top of the card while the Top 5 window is
   closed, so the lock is seen before an edit is attempted. */
.lock-note{background:var(--gold-soft);border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-weight:600;margin:0 0 12px}
#rec-live{transform:scaleX(-1)}
.rec-top{position:absolute;top:0;left:0;right:0;padding:calc(14px + env(safe-area-inset-top)) 16px 30px;color:#fff;background:linear-gradient(rgba(0,0,0,.6),transparent);z-index:2}
.rec-top p{margin:2px 0}
#rec-timer{font-size:22px;font-weight:700;color:var(--terra)}
#rec-note{position:absolute;left:0;right:0;bottom:calc(96px + env(safe-area-inset-bottom));padding:0 16px;color:#fff;text-align:center;z-index:2;text-shadow:0 1px 4px rgba(0,0,0,.8)}
.rec-controls{position:absolute;left:0;right:0;bottom:0;display:flex;gap:8px;justify-content:center;flex-wrap:wrap;padding:16px;padding-bottom:calc(16px + env(safe-area-inset-bottom));background:linear-gradient(transparent,rgba(0,0,0,.65));z-index:2}
.rules{font-size:17px;padding-left:22px}
.rules li{margin:4px 0}
/* OHM recolor: terracotta marks the recording moment itself: the
   Record and Stop controls inside the recorder. (The countdown
   overlay stays white: maximum legibility over live video.) */
#rec-start{background:var(--terra);color:#fff}
.rec-controls #rec-stop{background:var(--terra);color:#fff}
/* OHM recolor: deep plum is the waiting state's quiet dark: the
   pool is still forming, nothing is live yet. */
#view-waiting h2{color:var(--plum)}
#wait-count{color:var(--plum);font-weight:700}
/* OHM logo placement (Nov 9 2026): the gold mark rides in the
   charcoal top bar (its transparent art is made for dark
   surfaces); the cream lockup is the brand block at the top of
   the door and the survey flow; its background IS the page
   cream, so it blends in with no card or border around it. */
#topbar .brand-mark{height:26px;width:auto;vertical-align:-6px;margin-right:10px}
.brand-lockup{display:block;width:min(64%,320px);height:auto;margin:10px auto 4px}
.brand-lockup-sm{width:min(46%,230px)}
/* Playback fix (Nov 9, 2026): the question over the live preview
   is BOLD and CENTERED (Dawa's explicit ask): the words being
   answered read like a title over the camera, with the REC timer
   centered under them. Nothing else in the overlay moves: the
   countdown keeps its own full-screen layer above this one. */
.rec-top{text-align:center}
#rec-question{font-size:28px;font-weight:800;line-height:1.35;background:rgba(30,30,44,.45);padding:10px 16px;border-radius:12px;display:inline-block}
/* Processing state (Nov 9, 2026): wherever the user waits, the
   upload in flight inside the recorder, and the background answer
   check on the question screen, there is a spinner and Dawa's
   sentence ("Please wait, we are processing your answer."),
   never a motionless screen. Gold ring on the recorder's dark
   overlay; a small terracotta ring inline on the cream question
   screen (terracotta stays a recording-moment color). */
.spinner{width:44px;height:44px;border-radius:50%;border:4px solid rgba(246,189,74,.3);border-top-color:var(--gold);animation:ohm-spin .9s linear infinite;margin:0 auto}
.spinner-sm{width:18px;height:18px;border-width:3px;display:inline-block;vertical-align:-4px;margin:0 8px 0 0;border-color:rgba(30,30,44,.18);border-top-color:var(--terra)}
@keyframes ohm-spin{to{transform:rotate(360deg)}}
.rec-processing{position:absolute;inset:0;background:rgba(30,30,44,.86);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;z-index:5;color:var(--cream);text-align:center;padding:0 24px}
.rec-processing p{font-size:18px;font-weight:700;margin:0}
.processing-line{color:var(--ink);font-weight:600}
/* Review step (Nov 10, 2026): the native post-capture pattern.
   The recorded clip fills the recorder; a loader covers the wait
   until it can play; one big centered Preview button is the
   play/pause control (its tap is the gesture iOS needs to play
   with sound, no autoplay); a plain fallback replaces both if
   the clip cannot load, with Submit still available. The action
   bar in review state spreads: Cancel left (quiet ghost),
   Re-record (plum secondary), Submit right (gold primary). All
   colors are the existing palette variables or the white already
   used over video by the countdown. */
.rec-preview-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:rgba(0,0,0,.45);color:var(--cream);z-index:4;text-align:center;padding:0 24px}
.rec-preview-loading p{margin:0;font-size:16px;font-weight:600}
.rec-preview-btn{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:84px;height:84px;min-height:84px;border-radius:50%;background:var(--gold);color:var(--ink);display:flex;align-items:center;justify-content:center;padding:0;z-index:4;box-shadow:0 4px 24px rgba(0,0,0,.5)}
.rec-preview-error{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(84%,420px);background:rgba(30,30,44,.88);color:var(--cream);border-radius:14px;padding:18px 20px;z-index:4;text-align:center}
.rec-preview-error p{margin:0;font-size:16px;line-height:1.45}
.rec-controls.review{justify-content:space-between}
.rec-controls button.quiet{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.4)}
/* Camera error state (Nov 10, 2026): when every rung of the
   camera ladder refuses, a plain ink panel over the dark
   recorder carries the classified message, a Try again button,
   and the file-upload alternative, so a denied or missing
   camera never dead-ends the user. Same ink/cream pairing and
   z-index as the preview fallback panel. */
.rec-cam-error{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(88%,440px);background:rgba(30,30,44,.92);color:var(--cream);border-radius:14px;padding:20px;z-index:4;text-align:center}
.rec-cam-error p{margin:0 0 14px;font-size:16px;line-height:1.5}
.rec-cam-error .row{justify-content:center}
.rec-cam-error label{color:var(--cream);text-align:left}

/* Build 2: UI blueprint design pass (Nov 10, 2026). Implements the
   UI team's blueprint document: Nunito Sans (self-hosted, so the
   installed app keeps its typeface offline), its type scale, its
   component states, and the same phone-style interface centered
   on desktop. No copy changes in this pass; palette roles and the
   terracotta reservation are untouched. */
@font-face{font-family:'Nunito Sans';src:url('/static/fonts/nunito-sans-400.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Nunito Sans';src:url('/static/fonts/nunito-sans-600.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'Nunito Sans';src:url('/static/fonts/nunito-sans-700.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'Nunito Sans';src:url('/static/fonts/nunito-sans-800.woff2') format('woff2');font-weight:800;font-display:swap}
@font-face{font-family:'Nunito Sans';src:url('/static/fonts/nunito-sans-900.woff2') format('woff2');font-weight:900;font-display:swap}
input,select,textarea,button{font-family:inherit}
h1{font-size:30px;font-weight:800;line-height:1.2}
h2{font-size:26px;font-weight:800;line-height:1.25}
h3{font-size:19px;font-weight:700;line-height:1.3}
label{font-size:14px;font-weight:600}
button{font-weight:600}
button:active{transform:scale(.98)}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--gold-line);outline-offset:1px}
input,select{min-height:48px}
/* Blueprint component set: primary is the gold default; secondary
   is the plum quiet action (danger keeps its own plum treatment
   and its confirm flows in app.js). */
button.secondary{background:var(--plum);color:#fff}
/* The question on the question screen carries the same weight as
   in the recorder: large, bold, centered. */
#qa-topic{text-align:center}
#qa-text{font-size:24px;font-weight:800;line-height:1.35;text-align:center}
#tabbar button{padding:10px 0 8px;font-weight:600}
#tabbar button.active{font-weight:800}
/* Desktop and tablet: the SAME phone interface, centered, with
   the ink surround the blueprint specifies; no separate desktop
   layout. The fixed tab bar and the full-screen recorder follow
   the column. */
@media (min-width:600px){
  html{background:var(--ink)}
  body{max-width:480px;margin:0 auto;min-height:100vh;box-shadow:0 0 0 1px rgba(246,189,74,.25),0 0 48px rgba(0,0,0,.45)}
  #tabbar{left:50%;right:auto;transform:translateX(-50%);width:100%;max-width:480px}
  .recorder{left:50%;right:auto;transform:translateX(-50%);width:100%;max-width:480px}
}
@media (prefers-reduced-motion:reduce){
  .spinner{animation-duration:2.4s}
  button:active{transform:none}
}

/* Stacked layout batch (Dawa, Nov 12, 2026): required-field stars,
   the door's Sign in button and rules accordion, the prominent
   registration error box, the pinned Profile sub-menu and question
   progress pin, the answer dot strip, the photo remove X, and the
   red Delete button. */
.req{color:#C0272D;font-weight:800}
.tagline{text-align:center;font-weight:800;font-size:17px}
.signin-row{display:flex;justify-content:flex-end}
.signin-btn{min-height:40px;padding:8px 18px;font-weight:800}
#session-btn{margin-left:auto}
.stage2{background:var(--gold-soft);border:1px solid var(--gold-line);border-radius:14px;padding:4px 14px 14px;margin-top:20px}
.recap{background:var(--gold-soft);border:1px solid var(--gold-line);border-radius:12px;padding:10px 12px;margin:10px 0}
.recap p{margin:4px 0}
.safety h3{margin:0 0 6px}
.safety p{margin:6px 0}
.founder{background:var(--gold-soft);border:1px solid var(--gold-line);border-radius:12px;padding:12px 14px;margin:12px 0}
.founder p{margin:0}
.founder .founder-sig{color:var(--dim);font-size:14px;margin-top:6px}
.errbox{background:#FBE3E0;border:1px solid #C0272D;color:#7A1710;border-radius:10px;padding:10px 12px;font-weight:700;margin:10px auto;width:fit-content;max-width:100%;text-align:center}
#topbar{z-index:30}
.subtabs{position:sticky;top:calc(54px + env(safe-area-inset-top));z-index:10;display:flex;gap:4px;background:var(--gold-soft);border:1px solid var(--line);border-radius:12px;padding:4px;box-shadow:0 3px 9px rgba(30,30,44,.18);margin:12px 0}
.subtabs button{flex:1;background:none;color:var(--dim);font-size:14px;min-height:40px;padding:8px 2px}
.subtabs button.on{background:var(--ink);color:var(--cream);font-weight:800}
.qapin{position:sticky;top:calc(116px + env(safe-area-inset-top));z-index:9;box-shadow:0 3px 9px rgba(30,30,44,.18)}
.dots{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}
.dot{width:26px;height:26px;min-height:26px;border-radius:50%;border:2px solid #B7A96F;background:transparent;padding:0;font-size:0;cursor:pointer}
.dot.f{background:var(--gold);border-color:var(--gold)}
.dot.h{background:linear-gradient(90deg,var(--gold) 50%,transparent 50%)}
.dot.cur{box-shadow:0 0 0 2.5px var(--terra)}
.photo-wrap{position:relative}
.photo-x{position:absolute;top:8px;right:8px;width:30px;height:30px;min-height:30px;border-radius:50%;background:rgba(20,20,28,.82);color:#fff;font-weight:800;padding:0;line-height:1;font-size:15px}
button.danger-red{background:#B3271E;color:#fff}

/* Suggestions batch (Dawa, Nov 12, 2026): the one Saved pop up used
   site wide, the location spinner, and the picked-city row with its X
   (the photo rule applied to the Location screen). */
.toast{position:fixed;top:calc(64px + env(safe-area-inset-top,0px));left:50%;
  transform:translate(-50%,-8px);background:#1E1E2C;color:#FFEDCC;
  border-radius:999px;padding:9px 20px;font-weight:800;font-size:15px;
  box-shadow:0 4px 14px rgba(30,30,44,.35);opacity:0;pointer-events:none;
  transition:opacity .25s ease,transform .25s ease;z-index:60}
.toast.show{opacity:1;transform:translate(-50%,0)}
.spin{display:inline-block;width:13px;height:13px;vertical-align:-2px;
  border:3px solid rgba(30,30,44,.25);border-top-color:#1E1E2C;
  border-radius:50%;margin-right:8px;animation:ohmspin .8s linear infinite}
@keyframes ohmspin{to{transform:rotate(360deg)}}
.pickrow{display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:#fff;border:1px solid var(--line);border-radius:10px;
  padding:9px 12px;margin:6px 0;font-size:16px}
.pick-x{background:#1E1E2C;color:#fff;border:none;border-radius:50%;
  width:26px;height:26px;min-height:26px;padding:0;font-size:13px;line-height:1;flex:none}
/* Crisp ballot buttons (v44, replacing the v40 gold-outline .sel
   rule): the ballot thumbs and the quarterly pick speak the public
   survey page's .vbtn language: card background with an ink icon
   and border at rest, solid gold fill when chosen. */
.thumb{background:var(--card);color:var(--ink);border:1px solid var(--ink)}
.thumb svg{vertical-align:middle}
.thumb.sel{background:var(--gold);color:var(--ink);font-weight:700}
.pickbtn{background:var(--card);color:var(--ink);border:1px solid var(--ink)}
.pickbtn.sel{background:var(--gold);color:var(--ink);font-weight:700}
/* v43 (Dawa, Nov 15, 2026): the Top 5 picker is a stacked list in
   two aligned columns under an extra-bold heading, replacing the
   inline flow that wrapped raggedly. Disabled items (the panel's
   view state, or the monthly window shut) keep their full bold
   ink names: the resting list is the member's public summary and
   must read clearly; only the checkbox itself greys. */
.pub-fields-box legend{font-weight:900}
#p-fields{display:grid;grid-template-columns:1fr 1fr;column-gap:18px;margin-top:6px}
.pub-item{display:flex;align-items:center;gap:8px;margin:0;padding:7px 0;font-size:15px;cursor:pointer}
.pub-item input{width:auto;min-height:0;padding:0;margin:0;flex:none}
.pub-name{font-weight:700}
.pub-item:has(input:disabled){cursor:default}
