/* 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.
   v50 (Dawa, Nov 16, 2026): the crisp pass. Surfaces go light
   (cream background, pure white cards) and every palette color
   lifts one step; plum is DEMOTED to two ceremonial surfaces
   only, the door's headline and the farewell/closed screen, and
   leaves buttons and notes (secondary is an outline button now,
   danger is ink). One radius (--r) on every card, hairline
   separators instead of shadows, serif (--serif) for headlines
   and answer text, sans for controls; chat stays sans. */
:root{--ink:#1E1E2C;--gold:#FFC84F;--cream:#FFF6E0;--terra:#D9622B;--terra-text:#AE4E22;--plum:#4B1B4E;--card:#FFFFFF;--line:#E7DFCE;--field:#CFC7B0;--dim:#6E675E;--gold-soft:#FFF1CF;--gold-line:#F0D488;--msg:#FBEFD2;--serif:Georgia,'Times New Roman',serif;--r:16px;
/* v86 (item 69, D51): ONE tab-bar clearance mechanism. The
   sticky tab bar's height (76px plus the safe-area inset)
   lives in this one variable; the body, every view
   container, and the internal scroll and sticky areas take
   their bottom clearance from it, so no screen's last line
   can render under the bar, and future screens inherit the
   clearance by using the same containers. */
--tabbar-clear:calc(76px + env(safe-area-inset-bottom));
/* v86 (item 96, D92): ONE shared type scale. Text sizes
   come from these steps, named by role; per-screen size
   inventions are retired. The standard text step is 17px
   (the survey review question text's spec size). Steps:
   fine 11px (badges), note 13px (notes and pills), small
   14px (helper and label text), body 15px (toast and list
   text), control 16px (fields and buttons), standard 17px
   (standard reading text), heading-sm 19px, heading 26px,
   display 30px. */
--fs-fine:12px;--fs-note:14px;--fs-small:15px;--fs-body:16px;--fs-control:17px;--fs-standard:18px;--fs-heading-sm:20px;--fs-heading:28px;--fs-display:32px}
*{box-sizing:border-box}body{margin:0;font-family:'Nunito Sans',system-ui,sans-serif;background:var(--cream);color:var(--ink);padding-bottom:var(--tabbar-clear)}
#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:12px}
.view{max-width:480px;margin:0 auto;padding:16px;padding-bottom:calc(var(--tabbar-clear) + 20px)}
.hidden{display:none!important}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);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}
/* v55 (N1): one vertical rhythm for the answers view stack.
   The video, its Edit this answer row, the coach line, the
   record and upload rows, the message line, and the Back /
   Next / Done and Back to my profile rows all sit 12px apart,
   in the record state and the review state alike. Scoped to
   this view: the shared .row class keeps its spacing on every
   other screen. */
#view-question #qa-media{margin-top:12px}
#view-question #coach-line{margin:12px 0 0}
#view-question #qa-msg{margin:12px 0 0}
/* v85 (W112): question navigation scrolls the counter to the
   top; the scroll margin keeps the counter and the question
   heading fully clear of the fixed top bar and the sticky
   subtabs (68px bar + the subtabs row + breathing room). */
#qa-progress{scroll-margin-top:calc(136px + env(safe-area-inset-top))}
/* v104 Chunk 3 (issue 7): the Profile and Public profile
   section headings share the same scroll margin, so a heading
   scrolled to never parks under the sticky top bar (the photo
   heading slid fully behind it). One rule covers both panels'
   headings; no layout at rest changes. */
#view-profile h2, #view-profile h3{scroll-margin-top:calc(136px + env(safe-area-inset-top))}
#view-question .row{margin-top:12px}
input,select,textarea{width:100%;padding:12px;margin:6px 0;border:1px solid var(--field);border-radius:10px;font-size:var(--fs-control)}
button{background:var(--gold);color:var(--ink);border:0;border-radius:10px;padding:12px 18px;font-size:var(--fs-control);min-height:48px;cursor:pointer}
button.danger{background:var(--ink);color:var(--cream)}
.row{display:flex;gap:8px}.row input{flex:1;min-width:0}
/* v71 (item 7): rows that carry several labelled buttons (the
   clock request's four) wrap instead of squeezing each button
   until its label breaks mid-word at phone width. */
.row.wrap{flex-wrap:wrap}
.row.wrap button{flex:1 0 auto}
/* Cleanup build (P2, small-screen Finding 2): scoped to the plan
   row. The Email-the-plan button's one-line label (316px) could
   not shrink under flex:1 0 auto, so at 320px it ended 12px past
   the screen; it may now shrink and wrap its label. The shared
   rule is untouched: the other multi-button .row.wrap rows (the
   early-confirm, report, and Ready rows) render as measured
   clean under it, and this button's grow behavior is unchanged
   wherever the row already fits. */
.row.wrap button#plan-send{flex:1 1 auto;min-width:0}
#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);z-index:30}
#tabbar button{flex:1;background:none;color:var(--ink);font-size:var(--fs-small);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}
/* v71 (item 6): a Likes card's photo is capped, so the card's
   action buttons stay in view with the card instead of falling
   below the fold under a full-width natural-aspect photo. The
   deck card keeps its full photo (not named in the item). */
.likecard img{max-height:52dvh;object-fit:cover}
.deckcard{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:12px}
.card-name{font-size:var(--fs-display);font-weight:800;margin:12px 0 6px;font-family:var(--serif)}
.card-why{color:var(--dim);font-size:var(--fs-small);margin:0 0 8px}
.card-intro p{margin:8px 0;font-size:var(--fs-standard)}
.card-quiet{display:flex;gap:18px;margin-top:10px}
.card-quiet button{background:none;color:var(--dim);font-size:15px;min-height:36px;padding:4px 2px;text-decoration:underline;flex:none}
/* v80 (item 7): on the Discover card, Block and Report ride on
   the photo, stacked (Block first, Report under it), as the
   same quiet text links they were at the card's bottom.
   v82 (member fix batch, item 11; notes item 37, FINAL): the
   pair moves to the photo's TOP-RIGHT corner, and Pass / Like
   join the photo as an overlay row along its bottom, Pass at
   the bottom-left, Like at the bottom-right, clear of the
   face. The below-photo Pass / Like row is gone; the profile
   reading below the photo is untouched. */
.deck-photo{position:relative}
.deck-photo img{display:block}
.card-quiet.overlay{position:absolute;right:10px;top:10px;flex-direction:column;gap:6px;margin-top:0;align-items:flex-end}
.card-quiet.overlay button{background:rgba(255,255,255,.88);border-radius:8px;padding:4px 8px}
.deck-actions{position:absolute;left:10px;right:10px;bottom:10px;display:flex;justify-content:space-between;align-items:flex-end}
.deck-actions button{box-shadow:0 1px 6px rgba(30,30,44,.35)}
/* v80 (item 29): the heart shown for a moment over the card
   when a Like lands (fired only after the server confirms the
   like). Under a second, pointer-transparent, and the client
   never creates it at all under reduced motion; the media
   rule below is the second guard. */
#view-discover{position:relative}
.like-heart{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#c0392b;pointer-events:none;z-index:5;animation:likeheart .85s ease-out forwards}
@keyframes likeheart{0%{opacity:0;transform:scale(.5)}25%{opacity:1;transform:scale(1.12)}55%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.04)}}
@media (prefers-reduced-motion: reduce){.like-heart{display:none}}
/* v76 (item 15): chat bubbles. A message is a bubble on its
   sender's side, not a full-width strip: incoming on the LEFT
   in a light neutral (white card surface, hairline border)
   with dark text; your own on the RIGHT in a solid accent
   with light text. The accent is plum: it is the palette's
   one solid dark accent that carries light text (gold, the
   fill accent, carries ink text by the palette rule at the
   top of this file, and terracotta is reserved for recording
   moments). Both sides were the same pale yellow before, so
   direction was hard to read. The Seen/Opened lines inside
   an own bubble take the farewell screen's on-plum dim. */
.msg{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:8px 10px;margin:6px 0;overflow-wrap:anywhere;max-width:84%}
.msg.mine{background:var(--plum);border-color:var(--plum);color:var(--cream);margin-left:auto;text-align:left}
.msg.mine .dim{color:#DCCBDE}
/* The sealed message's tap-to-open keeps the full thread
   width (v71 item 5: unmistakably a control), never the
   bubble width. */
.msg.sealed-wrap{max-width:none}
/* v71 (items 2 and 3): the thread is its own scroll area. The
   messages, the reply-clock line, and the clock-vote area flow
   inside it; the composer block (sealed note, input row, error
   line) sticks above the bottom navigation instead of sitting
   at the end of the page flow, so a long thread never buries
   the reply box. The sticky offset matches the body's 76px
   bottom clearance for the fixed tab bar. v73 (layout scan
   finding 4): both offsets carry the safe-area inset term,
   because the fixed tab bar grows by that inset on
   home-indicator phones (49px + inset, ~83px at a 34px
   inset) and the flat 76px left the last ~7px of content,
   and of the composer, behind the bar. */
#thread-scroll{overflow-y:auto;max-height:56dvh}
#composer{position:sticky;bottom:var(--tabbar-clear);background:var(--cream);border-top:1px solid var(--line);padding:8px 0 4px;z-index:20}
/* v71 (item 5): a sealed message's tap-to-open is a full-width,
   full-height dashed button, unmistakably a control. */
.sealed-btn{width:100%;min-height:56px;border:2px dashed var(--terra);background:var(--card);font-weight:700}
/* v82 (item 24): the sealed state's own explanation, above the
   button: a message is waiting, and replying opens after it
   does. */
.sealed-note{margin:0 0 8px;font-size:16px}
.opening{background:var(--gold-soft);border:1px solid var(--gold-line);border-radius:10px;padding:10px}
.dim{color:var(--dim);font-size:var(--fs-small)}
video{width:100%;border-radius:10px;background:#000}
/* Fix Build 2 (FR-3, R2-F32): a disabled button used to fade
   to 45 percent opacity, which washed gold and ink buttons out
   to a pale, hard-to-read state. Disabled buttons now take the
   app's established disabled palette (Scope K7: #EFE7D2 ground,
   #55556B text, full opacity), the same treatment disabled
   fields and the Record button already carry. */
button:disabled{background:#EFE7D2;color:#55556B;opacity:1;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,textarea{margin:8px 0}
.card>button,.view>button{margin-top:12px}
.card .row{margin-top:10px}
.row{gap:12px}
fieldset{margin-top:14px}
/* v85 (W66): the fixed +1 prefix beside every phone field; the
   field itself keeps the row's flexible width. */
/* Fix Build 2 (FR-4): the +1 prefix sits INSIDE the phone
   field's bordered group, so the prefix and the number read as
   one field. The row carries the border and the ground; the
   input inside it is borderless. Applies everywhere the shared
   phone markup appears (the door, the appeal card, Blocked
   numbers, the survey door). */
.phone-row{display:flex;align-items:center;gap:8px;flex:1;min-width:0;border:1px solid var(--field);border-radius:10px;background:#fff;padding-left:12px}
.phone-row input{flex:1;width:auto;min-width:0;margin:0;border:0;background:transparent;padding-left:2px}
.phone-prefix{font-weight:700}
/* v85 (W118): a refused profile field's error line sits under
   its own field, not at the foot of the panel. */
.field-err{margin:4px 0 0}
#au-step1 button,#au-step2 button,#au-step3 button,#au-step4 button{margin-top:12px;width:100%}
#appeal-step1 button,#appeal-step2>button{margin-top:12px}
/* Cleanup build (P4, small-screen Finding 4): the appeal step-2
   buttons sat inline with only the markup's whitespace (4px)
   between them; a real 8px right margin matches the app's gap
   rhythm, side by side and stacked alike. */
#appeal-step2>button{margin-right:8px}
#appeal-delete-confirm{margin-top:12px}
#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:23px;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:nowrap;padding:16px;padding-bottom:calc(16px + env(safe-area-inset-bottom));background:linear-gradient(transparent,rgba(0,0,0,.65));z-index:2}
/* Fix batch (Nov 27, 2026; item A2): the control bar never
   wraps. It used to wrap at phone widths in the review state
   (Cancel / Re-record / Submit together are wider than a small
   screen), so the bar grew a second line and every control
   moved whenever the state changed. The buttons now share the
   one line as equal slots that may shrink, with their labels
   held to one line, so the bar's height and footprint are the
   same in the record, recording, review, and processing
   states alike. */
.rec-controls button{flex:1 1 0;min-width:0;white-space:nowrap;padding-left:8px;padding-right:8px}
.rules{font-size:var(--fs-standard);padding-left:22px}
.rules li{margin:8px 0}
/* OHM recolor: terracotta marks the recording moment itself: the
   Record, Stop, and Re-record 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,.rec-controls #rec-again{background:var(--terra);color:#fff}
/* Waiting state (v50): the plum text treatment left with the
   crisp pass; the waiting room reads in ink like the rest of
   the app. */
#wait-count{font-weight:700}
/* Logo placement: the A+heart mark rides in the charcoal top
   bar; the full lockup is the brand block at the top of the
   door. v51 (Nov 16, 2026): Dawa's final art replaced the old
   gold webp mark and lockup. The header carries the FOR-DARK
   mark variant: the standard mark's plum strokes do not read
   on the charcoal bar (verified in the v51 visual pass; the
   scope's own fallback rule for dark surfaces). The door's
   full lockup is the standard art on the cream page, and the
   farewell carries the for-dark lockup on its plum panel (the
   v51 batch at the end of this file). */
#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:29px;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(255,200,79,.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:19px;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:17px;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:17px;line-height:1.45}
/* Fix batch (Nov 27, 2026; item A3): the upload refusal panel.
   A refused answer used to be announced only in the small
   rec-note line under the video, where it was easy to miss
   (the Daniel finding). The refusal now also stands here: the
   app's error colors (the .errbox family) on a panel in the
   lower line of sight, above the note and the controls, and
   it stays until the member re-records, retries, or leaves.
   z-index sits above the preview overlays; the processing
   overlay never runs at the same time (a new submit hides
   the panel first). */
.rec-refusal{position:absolute;left:16px;right:16px;bottom:calc(168px + env(safe-area-inset-bottom));background:#FBE3E0;border:1px solid #C0272D;color:#7A1710;border-radius:12px;padding:14px 16px;z-index:6;text-align:center;box-shadow:0 6px 28px rgba(0,0,0,.45)}
.rec-refusal p{margin:0;font-size:17px;font-weight:700;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:17px;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:var(--fs-display);font-weight:800;line-height:1.2;font-family:var(--serif)}
h2{font-size:var(--fs-heading);font-weight:800;line-height:1.25;font-family:var(--serif)}
h3{font-size:var(--fs-heading-sm);font-weight:700;line-height:1.3}
label{font-size:var(--fs-small);font-weight:600}
button{font-weight:600}
/* Fix batch (Nov 27, 2026; item A1): the press effect rides the
   standalone `scale` property, NOT `transform`. As a transform
   it REPLACED any transform the button itself carries while
   pressed: the recorder's preview button is centered with
   transform:translate(-50%,-50%), so every tap dropped its
   centering for the length of the press and the button snapped
   down-right, then back on release. The standalone property
   composes with the element's own transform instead of
   replacing it, which fixes the class of problem for any
   transform-carrying button, present or future. */
button:active{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 (ink
   text, always); secondary is the outline button (white surface,
   hairline border, ink text); danger is ink. v50: plum left the
   buttons entirely (see the palette note at the top). */
button.secondary{background:#fff;color:var(--ink);border:1px solid var(--field)}
/* 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:25px;font-weight:700;line-height:1.35;text-align:center;font-family:var(--serif)}
#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(30,30,44,.22)}
  #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{scale: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:var(--fs-standard)}
.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:var(--r);padding:4px 14px 14px;margin-top:20px}
.recap{background:var(--gold-soft);border:1px solid var(--gold-line);border-radius:var(--r);padding:10px 12px;margin:10px 0}
.recap p{margin:4px 0}
.safety h3{margin:0 0 6px}
.safety p{margin:10px 0}
.founder{background:var(--gold-soft);border:1px solid var(--gold-line);border-radius:var(--r);padding:12px 14px;margin:12px 0}
.founder p{margin:0}
.founder p + p{margin-top:10px}
.founder .founder-sig{color:var(--dim);font-size:15px;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}
/* v73 (layout scan finding 3): the subtab bar's sticky offset
   assumed a 54px top bar, true only when the 26px brand mark
   was its tallest child. With the session button showing
   (min-height 40px, the normal state on these screens) the
   bar is 68px + the safe-area inset, and the stuck subtabs
   slid 14px under it. The offset now uses the real height. */
.subtabs{position:sticky;top:calc(68px + 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;margin:12px 0}
.subtabs button{flex:1;background:none;color:var(--dim);font-size:var(--fs-small);min-height:40px;padding:8px 2px}
.subtabs button.on{background:var(--ink);color:var(--cream);font-weight:800}
/* v58 (Part G rider, slim pin): the progress CARD no longer pins;
   only its dot strip does, as its own slim bar under the subtabs.
   The count line, the legend, and the minimum line scroll away
   with the page. */
/* v66 (item 5): the dot strip no longer sticks. As a sticky
   bar it floated over the scrolling question content and
   clipped or covered safety-card lines and question headings
   (Q10's included); in flow it scrolls with the page and can
   cover nothing. The strip's own look is unchanged. */
.qapin-dots{background:var(--gold-soft);border:1px solid var(--line);border-radius:12px;padding:8px 10px;margin:12px 0}
.dots{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px;justify-content:center}
.dot{width:26px;height:26px;min-height:26px;border-radius:50%;border:2px solid #B7A96F;background:transparent;padding:0;font-size:0;cursor:pointer;position:relative}
/* v61 (F-10): the dot stays 26px on screen, but its tap area
   grows to 40px through the pseudo-element, so a thumb lands
   on the dot it aims at. */
.dot::after{content:"";position:absolute;inset:-7px;border-radius:50%}
.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:40px;height:40px;min-height:40px;border-radius:50%;background:rgba(20,20,28,.82);color:#fff;font-weight:800;padding:0;line-height:1;font-size:16px}
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). */
/* v84: the toast sits at the bottom, above the tab bar. At the
   top it landed on the first heading of every tab view and
   clipped it (v83 exercise). */
.toast{position:fixed;bottom:calc(var(--tabbar-clear) + 20px);left:50%;
  transform:translate(-50%,8px);background:#1E1E2C;color:#FFF6E0;
  border-radius:999px;padding:9px 20px;font-weight:800;font-size:16px;
  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)}
/* v85 exercise fix 2: the error toast (showErrorToast) wears the
   app's danger red and no checkmark, so a refusal never reads as
   a success. */
/* TOAST-1 fix (Nov 25, 2026): the cream text color is declared
   here, inside the error kind's own rule. Without it, the generic
   .err rule below (dark red text for inline errors on light
   surfaces, equal specificity, later in the file) wins the text
   color and the pill renders dark red on red, unreadable. */
.toast.err{background:#B3271E;color:#FFF6E0}
/* v86 (item 94, D90): the shared message component's
   guidance kind: a neutral guidance tone (the cream card
   surface with a hairline border and ink text), no
   checkmark, and not red: red is reserved for the error
   kind above, and the success kind is the ink pill. */
.toast.guide{background:var(--card);color:var(--ink);border:1px solid var(--gold-line)}
/* v86 (item 94): the component's three kinds as inline
   message styling (the appeal door's messages): error is
   the one red, success carries the gold-soft confirmation
   surface, guidance is the neutral dim helper tone. Three
   visually distinct styles; a refusal and a confirmation
   never share one. */
.msg-error{color:#b00020;font-weight:700}
.msg-success{color:var(--ink);font-weight:700;background:var(--gold-soft);border:1px solid var(--gold-line);border-radius:10px;padding:8px 10px}
.msg-guidance{color:var(--dim);font-size:var(--fs-small)}
/* v85 (W64): on Discover the toast rises clear of the deck's
   action row; everywhere else it keeps the standard offset. The
   on-deck class is set in the same showTab call that shows the
   deck, so the offset can never lag the view. */
.toast.on-deck{bottom:calc(176px + env(safe-area-inset-bottom,0px))}
/* v84: the Start anyway confirmation's two buttons carry equal
   weight, the app dialog convention (.dlg-btns): equal width,
   both filled (gold start, ink wait). */
#early-confirm-card .row button{flex:1 1 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:17px}
.pick-x{background:#1E1E2C;color:#fff;border:none;border-radius:50%;
  width:26px;height:26px;min-height:26px;padding:0;font-size:14px;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:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:8px;row-gap:0;margin:0;padding:7px 0;font-size:16px;cursor:pointer;min-height:40px}
/* v61 (F-10): the picker row is a 40px tap target (above) and
   the checkbox itself grows from the 13px default to 22px. */
.pub-item input{width:22px;height:22px;min-height:0;padding:0;margin:0;flex:none}
.pub-name{font-weight:700}
.pub-item:has(input:disabled){cursor:default}
/* v48: the "Looking to meet" checkbox groups (registration and
   the first-set step) and the Top 5 picker's empty-field note. */
.seek-box{border:1px solid var(--line);border-radius:10px;margin:10px 0;padding:8px 12px}
/* v66 (item 9d): the legend gets the same horizontal air the
   Top 5 fieldset's legend got in Scope K1, so it no longer
   straddles its border. */
.seek-box legend{font-weight:700;padding:0 6px}
.seek-box label{display:block;margin:6px 0}
.seek-box input{width:auto;min-height:0;padding:0;margin:0 6px 0 0}
/* v85 (QA loop F3): radios take the same scoped exemption
   the checkbox groups above carry. The generic input rules
   (width:100%, padding, 48px min-height) otherwise stretch
   a radio into a ~46px circle with its label text dropped
   below it, which is how the W119 list chooser rendered.
   The sizing rule is type-scoped, so text inputs are
   untouched; the chooser's own labels become rows, so each
   label sits beside its radio, aligned center. */
input[type=radio]{width:20px;height:20px;min-height:0;padding:0;margin:0}
#gr-list-wrap label{display:flex;align-items:center;gap:8px;margin:10px 0;cursor:pointer}
#gr-list-wrap input[type=radio]{flex:none}
/* v53 (B1): the empty-field note is a status pill: bold
   terracotta on a faint terracotta tint, so it cannot be
   missed and does not read as an alarm. Red is reserved for
   the refusal itself (B2, .pub-note-err below). */
.pub-note{font-size:14px;font-weight:800;color:var(--terra-text);background:transparent;border-radius:0;padding:4px 12px 10px 0;justify-self:stretch}
/* Fix Build 2 (R2-F37c): inside the Top 5 picker, a hidden
   "not added yet" note keeps its line reserved (invisible, not
   removed), so a pair of rows keeps one rhythm whether one of
   them carries a value or neither does. */
.pub-fields-box .pub-note.hidden{display:block;visibility:hidden}
.pub-note-err{background:#FBE3E0;color:#7A1710;border-radius:10px;padding-left:12px}
/* v57 (Part C5): the Ready line wears the same soft pill
   treatment as the picker notes: bold terracotta on a faint
   tint, a quiet status, never an alarm. */
.ready-pill{display:inline-block;font-size:13.5px;font-weight:800;color:var(--terra-text);background:rgba(217,98,43,.13);border-radius:999px;padding:2px 9px}
#ready-line{margin:4px 0 8px}
/* v57 (Part C4): the verified check beside a card's name, and
   its one-line explanation under the headline. */
.verified-badge{display:inline-block;font-size:13.5px;font-weight:900;color:#fff;background:var(--terra);border-radius:50%;width:19px;height:19px;line-height:19px;text-align:center;vertical-align:middle;margin-left:2px}
.verified-line{font-size:14px;color:#55556B;margin:2px 0 6px}
.pub-empty .pub-name{opacity:.55}
/* Fix Build 2 (R2-F29): the checklist items carry their own
   drawn check and cross markers, so the list's own bullets
   doubled them. The native markers are off; the left padding
   stays so the drawn markers keep their room. */
#complete-list{margin:6px 0;padding-left:20px;line-height:1.6;list-style:none}
#complete-list li{margin:8px 0}

/* ------------------------------------------------ v49 batch */
/* Scope B: the stage-2 pair card's photo had no size rule at
   all (the .deckcard/.likecard rules did not reach it), so it
   rendered at natural size and bled past the column and the
   viewport. The pair card carries its own class and rule now. */
.paircard img{width:100%;height:auto;display:block;border-radius:12px;max-height:52dvh;object-fit:cover}
/* Scope D3: the match announcement. v50: serif headline in ink
   (plum left the app surfaces with the crisp pass). */
.match-banner{font-size:23px;font-weight:900;color:var(--ink);margin:4px 0 10px;font-family:var(--serif)}
/* Scope D1: the pair card's persistent approval state. */
.waiting-note{font-weight:700;color:var(--ink)}
/* Scope G1: a pressed Ready to Meet reads as pressed. v50: the
   pressed treatment is the gold-soft fill with a gold edge (the
   plum fill left with the crisp pass). */
button.pressed{background:var(--gold-soft);color:var(--ink);border:2px solid var(--gold);opacity:.9}
/* Scope E: the exhausted-likes panel on Discover. */
.lockpanel{border:2px solid var(--gold)}
/* Scope C: the report panel. */
.report-cats{display:grid;gap:8px;margin:12px 0}
.report-cat{background:#fff;border:2px solid var(--line);color:var(--ink);text-align:left;font-weight:600}
.report-cat.sel{border-color:var(--gold);background:var(--cream)}
.err{color:#b00020;font-weight:600}
.brand-home{display:inline-flex;align-items:center;cursor:pointer}
/* Scope K1: the Top 5 fieldset's legend straddled its border
   with no padding, and a pick's "add a value first" note was
   squeezed into the narrow grid column. The box carries its
   own border and padding, the legend gets air, and the note
   spans the full row. */
.pub-fields-box{border:2px solid var(--line);border-radius:var(--r);padding:14px;margin:12px 0}
/* Fix Build 2 (R2-F31): the public-profile heading is a
   fieldset legend; when it wraps, the box border struck
   through its second line. The legend now carries the card's
   own ground and a taller line height, so the border passes
   behind the heading text instead of through it. */
.pub-fields-box legend{font-weight:900;padding:2px 8px;line-height:1.4;background:var(--card);border-radius:6px}
.pub-item{grid-template-columns:auto 1fr}
.pub-note{grid-column:1 / -1}
/* Scope K6: the answer upload control was the browser's raw
   file input in default grey. It takes the app's button
   styling now. */
input[type=file]{background:#fff;padding:10px}
input[type=file]::file-selector-button{background:var(--gold);border:none;border-radius:10px;padding:10px 14px;font:inherit;font-weight:700;color:var(--ink);cursor:pointer;margin-right:10px}
/* v66 (item 4): controls disabled by the survey-feed-on state
   render visibly disabled, in the same muted palette as
   disabled fields (Scope K7), not gold. The file input's
   button is a pseudo-element that does not inherit the
   input's own disabled styling, and the Record button's gold
   under the generic button:disabled opacity still read as
   tappable; both get the explicit muted treatment. The
   enabled state above is unchanged. */
input[type=file]:disabled::file-selector-button{background:#EFE7D2;color:#55556B;cursor:default}
#qa-record-btn:disabled{background:#EFE7D2;color:#55556B;opacity:1}
/* Scope K7: a disabled field reads as set, not as an empty
   editable box (trusted contact name and email used to render
   active-white in view state while their neighbors greyed). */
input:disabled,select:disabled,textarea:disabled{background:#EFE7D2;color:#55556B;opacity:1;-webkit-text-fill-color:#55556B}
/* Scope K8: guidance lines ride the empty-state renders in
   app.js (deck, likes), so a state is a sentence plus a
   direction, not a lone line over blank cream. */
/* Scope K9: the likes counter sticks under the top bar instead
   of sliding half under it; Likes and the message list get
   the bottom room the fixed tab bar needs. v73 (layout scan
   finding 2): the flat 64px offset became the top bar's real
   height, 68px (14px padding, the 40px session button, 14px
   padding), plus the safe-area inset the bar itself carries;
   at 64px the counter stuck 4px + the inset too high and the
   bar covered its text on notched phones. */
#deck-likes{position:sticky;top:calc(68px + env(safe-area-inset-top));background:var(--cream);z-index:6;padding:6px 0}
#view-likes{padding-bottom:calc(var(--tabbar-clear) + 34px)}
/* v66 (item 5): the Videos view gets the same bottom room as
   Likes (Scope K9). The fixed tab bar grows by the safe-area
   inset on notched phones, past the body's flat 76px, and the
   question screen's last row ("Back to my profile") could
   slide under it. */
#view-question{padding-bottom:calc(var(--tabbar-clear) + 34px)}
#messages{padding-bottom:24px}
/* Survey (scope L3/L4): the review step's vote label holds a
   fixed, unwrapped column so the rows line up; the standings'
   "your vote" marker stays on one line on a phone. */
.revrow .revvote{flex:none;width:76px;text-align:center;white-space:nowrap}
/* v61 (F-05): the bare .mine{white-space:nowrap} rule that used
   to sit here ran a member's OWN chat messages off the right
   edge of the screen (the .msg.mine bubble never wrapped). It
   is gone; own bubbles wrap like incoming ones. The survey
   page's own .mine marker style lives in survey.html and is
   untouched. */
.mine svg{vertical-align:-4px}
/* v63 (flags 14+26): a sent bubble's text aligns left like an
   incoming one (only its side and color differ), and a long
   unbroken word wraps inside the bubble instead of running off
   the screen (overflow-wrap on the .msg rule above). */
/* v61 (F-10): the small text links the sweep measured at 19px
   tall (the footer Terms / Privacy / Support links and the
   locked notes' "contact support") get a 40px tap height
   through padding, with the negative margin keeping the
   layout exactly where it was. */
.footlinks a,.locked-note a{display:inline-block;padding:11px 4px;margin:-11px 0}
/* v102 (item 9(d)): the same 40px tap-height treatment for the
   remaining sub-40px text-link families the census named: the
   door's "New here?" inline links, and the appeal door's
   "Suspended or closed?" header (a static heading measured at
   25px; it gets the 40px box so the door's title row meets the
   same floor). Padding/margin pattern as F-10, layout-neutral. */
.newhere a{display:inline-block;padding:11px 4px;margin:-11px 0}
#appeal-door h2{display:flex;align-items:center;min-height:40px}

/* ------------------------------------------------ v50 batch */
/* The crisp pass + Pause (Dawa, Nov 16, 2026). Palette and
   surfaces are set in :root above; this section carries the new
   components: the deck fact-chip strip, the empty-state recipe,
   the settings row grammar with its switch, the Edit | View
   segmented control, and plum's two remaining surfaces. */
/* The deck card's fact chips (age, distance, dating intention):
   a horizontally scrolling strip under the photo. It is
   CONTAINED: the strip scrolls inside its own box, so a long
   intention can never push the card or the page sideways
   (gap rule 10; named in the 390px visual pass). */
.chips{display:flex;gap:6px;overflow-x:auto;max-width:100%;padding:10px 0 2px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;white-space:nowrap;background:var(--gold-soft);border:1px solid var(--gold-line);color:var(--ink);border-radius:999px;padding:5px 11px;font-size:14.5px;font-weight:700}
/* The empty-state recipe (Hinge's pattern, our shapes and
   words): a simple graphic built from palette circles, a serif
   headline, one gray line, and buttons. Used by Discover,
   Likes, My Match, and the paused panels. */
.empty{text-align:center;padding:30px 18px}
.empty-art{position:relative;width:120px;height:84px;margin:0 auto 14px}
.empty-art .ea-a{position:absolute;left:4px;bottom:0;width:64px;height:64px;border-radius:50%;background:var(--gold)}
.empty-art .ea-b{position:absolute;right:8px;bottom:0;width:44px;height:44px;border-radius:50%;background:var(--terra);opacity:.85}
.empty-art .ea-c{position:absolute;left:46px;top:0;width:26px;height:26px;border-radius:50%;background:#fff;border:2px solid var(--gold-line)}
.empty-title{font-family:var(--serif);font-size:26px;font-weight:700;margin:0 0 6px}
.empty .row{justify-content:center}
/* The settings row grammar: icon in a soft circle, bold title,
   gray subtitle, state at the right (switch, button, badge). */
/* v82 (item 17b; QA defect 13): rows wrap, so a state column
   carrying buttons (the cancelled Membership card's Keep
   membership, above all) drops under the text at phone width
   instead of squeezing the text into a narrow column beside
   the buttons. */
.setrow{display:flex;align-items:center;gap:12px;padding:10px 0;flex-wrap:wrap}
.setrow + .setrow{border-top:1px solid var(--line)}
.setrow-ic{flex:none;width:38px;height:38px;border-radius:50%;background:var(--gold-soft);display:flex;align-items:center;justify-content:center;color:var(--ink)}
.setrow-main{flex:1;min-width:200px}
/* Fix Build 2 (R2-F37b): on the Profile About-you card, the
   Location row's wide button wrapped under its label while its
   sibling rows kept their buttons on the label row. Profile
   rows no longer wrap, and their text column may shrink, so
   every row on that card keeps the same one-line shape. */
#prof-p1 .setrow{flex-wrap:nowrap}
/* Fix batch (Nov 27, 2026; item C, sweep findings F-1/F-2):
   the R2-F37b rule above let the text column shrink to zero,
   and the widest button on the card ("Set location /
   distance") crushed it: at 320px the Location title had
   0px of width and its "not set" sub stacked, and the
   Hometown title clipped at 320 and 360 (measured). The
   column now keeps a usable minimum, and the BUTTON yields
   instead: the state span and its button may shrink, and the
   button's label wraps inside the button rather than taking
   the label column's space. Row-general for the whole p1
   card, so no present or future wide button can crush a
   label here. Other .setrow consumers are outside #prof-p1
   and untouched. */
#prof-p1 .setrow-main{flex:1 1 auto;min-width:104px}
#prof-p1 .setrow-state{flex:0 1 auto;min-width:0}
#prof-p1 .setrow-state button{white-space:normal;text-align:center;line-height:1.25;padding-left:10px;padding-right:10px}
.setrow-title{font-weight:800;margin:0}
.setrow-sub{color:var(--dim);font-size:var(--fs-small);margin:2px 0 0}
/* Cleanup build (P1, small-screen Finding 1): the state span is
   a wrapping flex row, so a state carrying TWO buttons (the
   Membership row's pairs) stacks them with an 8px gap instead of
   bleeding past the card and the screen. flex:0 1 auto (no grow)
   keeps every single-control row byte-identical to before: the
   span stays content-sized and the main column absorbs the
   leftover, exactly as flex:none rendered it; shrink plus
   min-width:0 is what lets the pair wrap inside the card. */
.setrow-state{display:flex;flex-wrap:wrap;gap:8px;flex:0 1 auto;min-width:0}
/* The pause switch: a pill with a knob, gold when on. The button
   reset keeps the global button chrome out of it. */
/* Fix Build 2 (R2-F36): the OFF track was a pale beige with a
   plain white knob, which washed out against the card. The OFF
   track is darker and the knob carries a border and a shadow,
   so the off state reads clearly. The ON state (gold) is
   unchanged, and no switch behavior changes. */
.switch{position:relative;width:52px;height:30px;min-height:30px;border-radius:999px;background:#B3A888;padding:0}
.switch::after{content:'';position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;border:1px solid rgba(30,30,44,.35);box-shadow:0 1px 3px rgba(30,30,44,.45);transition:left .15s ease}
/* A disabled switch keeps its OFF contrast instead of taking
   the generic disabled-button palette (Fix Build 2, FR-34's
   unavailable Discover switch renders disabled). */
.switch:disabled{background:#B3A888;color:var(--ink);opacity:1}
.switch[aria-checked="true"]{background:var(--gold)}
.switch[aria-checked="true"]::after{left:25px}
/* The Edit | View segmented control on Public profile (the
   subtabs pattern, scoped to the profile screens). */
/* Fix Build 2 (R2-F30): the Profile Edit/View control sticks
   under the sub-tabs, the same pattern the sub-tabs themselves
   use, so it can never come to rest clipped by the fixed
   bottom navigation in any scroll state. The offset stacks the
   top bar (68px) and the sub-tab bar (about 50px). */
.seg{display:flex;gap:4px;background:var(--gold-soft);border:1px solid var(--line);border-radius:12px;padding:4px;margin:12px 0;position:sticky;top:calc(118px + env(safe-area-inset-top));z-index:9}
.seg button{flex:1;background:none;color:var(--dim);font-size:var(--fs-small);min-height:40px;padding:8px 2px}
.seg button.on{background:var(--ink);color:var(--cream);font-weight:800}
/* Plum's two remaining surfaces (gap: plum demotion). The
   door's headline carries it as a color, with no layout change;
   the farewell/closed screen is a plum panel with cream text
   and the gold way out. */
#view-auth h1{color:var(--plum)}
#view-closed{background:var(--plum);color:var(--cream);border-radius:var(--r);margin-top:16px;padding:24px 20px}
#view-closed .dim{color:#DCCBDE}
#view-closed button{background:var(--gold);color:var(--ink)}

/* ------------------------------------------------ v51 batch */
/* Logo placement (Dawa, Nov 16, 2026): the A+heart art replaces
   the old gold mark and lockup. The header mark is the SVG at
   the same 26px height the old mark rode at (rule above); the
   door lockup keeps .brand-lockup's sizing. The farewell's
   lockup is the for-dark art on the plum panel, sized modestly
   and centered over the heading. */
.brand-lockup-farewell{display:block;width:min(56%,230px);height:auto;margin:0 auto 14px}
/* S6-07: the fact-chip strip WRAPS now instead of scrolling
   sideways. The v50 strip scrolled inside its own box, so a
   long intention chip could sit half off the card's right edge
   in a screenshot and read as clipped; wrapped, every chip is
   whole at every width. */
.chips{flex-wrap:wrap;overflow:visible}
/* S6-01, revised Nov 27, 2026 on Dawa's ruling: on short screens
   the door's hero still compresses (smaller lockup, tighter h1)
   so the phone field stays near the top, but the content blocks
   no longer crush. The first version squeezed the rules, the
   paragraphs, the tagline, and the founder card to 1-5px gaps,
   which read as one packed column; the sections now keep the
   app's normal rhythm and sizes, and the page scrolls a little
   more instead. The threshold covers the common 844px phone
   height, so this block is the landing most phones see. */
@media (max-height:880px){
  main{padding-top:8px}
  #view-auth{padding-top:6px}
  #view-auth .brand-lockup{width:min(23%,88px);margin:0 auto}
  #view-auth h1{font-size:21px;margin:12px 0 0}
  #view-auth .rules{font-size:var(--fs-standard);line-height:1.45;padding-left:22px;margin:12px 0}
  #view-auth .rules li{margin:8px 0}
  #view-auth p{margin:10px 0;font-size:var(--fs-body);line-height:1.5}
  #view-auth .tagline{font-size:var(--fs-body);margin:14px 0}
  #view-auth .founder{padding:12px 14px;margin:14px 0;font-size:var(--fs-body);line-height:1.5}
  #view-auth .founder .sig{margin-top:6px}
  #view-auth .card{padding:14px;margin:12px 0}
  #view-auth .card h2{font-size:20px;margin:2px 0}
  #view-auth .card button{padding:9px}
  #view-auth label{margin-top:6px}
  #view-auth input{padding:8px 10px}
}

/* v52: the in-app dialog. One overlay and one card serve every
   confirmation, notice, and form panel in the app (and, through
   these same classes, the admin page's own dialog). The shape is
   the v50 language: white card, hairline border, the one radius,
   serif heading, sans body; the primary button is the gold
   default, Cancel is the secondary outline, and destructive
   actions take the established danger classes. The overlay sits
   above the tab bar and the toast. An open dialog is a guarded
   surface for the state poll (app.js statePollGuarded): nothing
   re-renders under it. */
.dlg-overlay{position:fixed;inset:0;background:rgba(30,30,44,.55);z-index:80;display:flex;align-items:center;justify-content:center;padding:16px}
.dlg-card{position:relative;background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:20px;width:100%;max-width:440px;max-height:88vh;overflow-y:auto}
/* Fix Build 2 (FR-12): a row of exactly two links spreads to
   opposite edges of its container instead of clustering at
   the left. Rows of three or more links do not use this. */
.linkrow{display:flex;justify-content:space-between;align-items:center;gap:16px}
/* Fix Build 2 (R2-F33): the optional dialog close control, a
   plain X in the card's corner that dismisses the dialog with
   no action, for dialogs that opt in. */
.dlg-x{position:absolute;top:6px;right:6px;width:40px;height:40px;min-height:40px;padding:0;background:none;border:none;border-radius:50%;font-size:22px;line-height:1;color:var(--dim)}
.dlg-card:has(> .dlg-x) #dlg-heading{padding-right:36px}
.dlg-card h3{font-family:var(--serif);font-size:23px;margin:0 0 8px}
.dlg-body{margin:0}
.dlg-btns{display:flex;gap:12px;margin-top:16px}
.dlg-btns button{flex:1}
.dlg-rows{display:grid;gap:8px;margin:8px 0 4px}
.dlg-row{background:#fff;border:2px solid var(--line);color:var(--ink);text-align:left;font-weight:600;width:100%}
.dlg-row.sel{border-color:var(--gold);background:var(--cream)}
.act-err{margin:8px 0 0}

/* ------------------------------------------------ v73 batch */
/* Layout fixes from the whole-site layout scan (Nov 19, 2026;
   Dawa's ruling that day: note it down, fix it in one build,
   and the layout topic is not touched again until he asks).
   Each rule brings a stray control into the app's existing
   10 to 12px vertical rhythm (the .card>button / .view>button
   12px and .card .row 10px family). No redesign, no copy, no
   behavior changes. Findings 2, 3, and 4 are corrected in
   place at their rules above; findings 1 and 8 ride markup
   (a .row wrap in index.html and app.js) and need no rule
   here. Finding 10 (the toast pill) is by design and is
   NOT changed. */
/* Finding 5: inside .deckcard the card rhythm never applied
   (.deckcard is not .card), so the Undo pass row sat flush
   under the Pass/Like row. A row that follows a row inside
   the deck card gets the card's 10px; the first row keeps
   its place directly under the card body. */
.deckcard .row + .row{margin-top:10px}
/* Finding 6: the clock-lift request's answer buttons sat
   flush under the request text inside the .msg bubble, at
   both render sites (the thread's clock_request message
   and the clock area's requested_by_partner return point).
   A row inside a message bubble gets 10px above it. */
.msg .row{margin-top:10px}
/* Finding 7: on the Location screen the GPS button's row
   fell outside every rhythm container; with city results
   showing it sat flush under the last result button. The
   row gets the 10px gap in every state. */
#loc-geo-row{margin-top:10px}
/* Finding 9: the My Match action row follows the sticky
   composer with only the composer's 4px bottom padding
   between the input row and the buttons. 8px of margin on
   the row puts the effective gap at 12px, the app's
   rhythm. */
#composer + .row{margin-top:8px}

/* ------------------------------------------------ v76 batch */
/* Item 6: bottom clearance for the fixed tab bar, generalized.
   Likes and the question view already carried their own
   padding-bottom:110px rules (Scope K9 and v66 item 5, above);
   every other member view relied on the body's 76px alone,
   and at intermediate scroll stops content could sit hidden
   under the fixed bar, only appearing at the very bottom.
   Every member view that renders with the tab bar now carries
   the same 110px bottom room (the bar is 48px plus the
   safe-area inset; 110px is the value two views already
   proved), so any content can always be scrolled fully clear
   of the bar. The Likes and question rules above stay as they
   are; this rule covers the rest. */
#view-discover,#view-match,#view-profile,#view-waiting,#view-account,#view-location,#view-age-range,#view-vote,#view-report,#view-surveystep,#view-seekingstep{padding-bottom:calc(var(--tabbar-clear) + 34px)}
/* Item 10: the Discover Undo pass row is centered, like the
   rest of the screen's rows (it was the one left-aligned
   row). */
.undo-row{justify-content:center}
/* Item 11: the Likes locked state's explanation is placed in
   the view's vertical middle, so the locked state reads as
   intentional rather than a lone line over a blank screen. */
.likes-locked{display:flex;align-items:center;justify-content:center;text-align:center;min-height:50dvh}
/* v85 (W109, item 41): the guided tour's anchored bubbles.
   Cream card, gold line, the app's own type; the width is
   viewport-constrained and the text wraps inside the
   padding, so a bubble can never bleed off a phone screen.
   The tail is a rotated square on the edge facing the
   anchor; JS positions the bubble and the tail. The layer
   never blocks the tab bar: bubbles clamp above it. */
.tour-bubble{position:fixed;z-index:1200;background:var(--card);color:var(--ink);border:1px solid var(--gold-line);border-radius:16px;box-shadow:0 10px 30px rgba(30,30,44,.25);padding:14px 16px;width:max-content;max-width:min(320px,calc(100vw - 24px));font-size:16px;line-height:1.5;box-sizing:border-box}
.tour-bubble p{margin:0 0 10px;overflow-wrap:break-word}
.tour-bubble .tour-tail{position:absolute;width:14px;height:14px;background:var(--card);transform:rotate(45deg)}
.tour-bubble.tail-top .tour-tail{top:-8px;border-left:1px solid var(--gold-line);border-top:1px solid var(--gold-line)}
.tour-bubble.tail-bottom .tour-tail{bottom:-8px;border-right:1px solid var(--gold-line);border-bottom:1px solid var(--gold-line)}
.tour-bubble .tour-btns{display:flex;gap:8px}
.tour-bubble .tour-btns button{flex:1 1 0}

/* Spacing audit, Nov 27, 2026: rows that follow a card or a
   wrapped label keep a real gap instead of touching. */
#match-box > .row{margin-top:12px}
#plan-card .row{margin-top:10px}

/* v102 (item 10): the code step wears a slim auth view. While
   #au-step2 is the visible step, the explainer blocks under it
   (the rules list and everything that follows it in the auth
   column) are hidden, so the code boxes and the Verify button
   sit in the first screenful at phone widths. The appeal door
   sits BEFORE #rules-list in the markup, so this sibling
   selector can never reach it. app.js's authSlimSync owns the
   class; this rule owns the hiding. */
#view-auth.code-slim #rules-list,
#view-auth.code-slim #rules-list ~ *{display:none}

/* v102 (item 14): the spent vote section is read-only. The
   wrapper dims the controls it still shows (the member's own
   pick stays marked, the counts stay visible) and takes their
   pointer events away, so what is shown cannot be acted on. */
.vote-spent{opacity:.62;pointer-events:none}
