/* ==========================================================================
   Offseason Next: public front door (landing, sign in, verification, recovery)
   Loads after v2.css and uses its --os-* tokens. Adds the always-dark stage
   panel, the receipt, split-flap, and the shared public chrome.
   Brand rules: real logo, salmon fill with navy label, neutral surfaces,
   hairlines, flat (the only gradients are the 52 degree hairline stripes and
   the receipt's torn edges), Inter Tight / Inter / JetBrains Mono.
   ========================================================================== */

:root {
    --np-stage: #0A0E1A;
    --np-stage-2: #121826;
    --np-stage-3: #1A2234;
    --np-stage-ink: #F2F5FA;
    --np-stage-ink-2: #B4BDD0;
    --np-stage-ink-3: #8F99B1;
    --np-stage-rule: rgba(242, 245, 250, 0.14);
    --np-stage-frame: #33456B;
    --np-stage-good: #35B586;
    --np-receipt: #FCFAF5;
    --np-receipt-ink: #23272E;
    --np-receipt-ink-2: #5C5B55;
    --np-receipt-rule: #D8D3C6;
    --np-r-lg: 12px;
    --np-slow: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    --np-overlay-shadow: 0 8px 28px rgba(10, 14, 26, 0.18);
}
[data-theme="dark"] {
    --np-stage: #05070E;
    --np-stage-2: #0E1320;
    --np-stage-3: #161D2E;
    --np-stage-frame: #33456B;
}

/* ---------- Base ---------- */
html.np-html { scroll-padding-top: 84px; }
body.np {
    margin: 0;
    background: var(--os-paper);
    color: var(--os-ink);
    font-family: var(--os-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* Base resets use :where() so every component class below wins without !important. */
:where(.np) *, :where(.np) *::before, :where(.np) *::after { box-sizing: border-box; }
:where(.np) :where(a) { color: inherit; text-decoration: none; }
:where(.np) :where(button, input, select, textarea) { font-family: inherit; color: inherit; }
:where(.np) :where(img) { max-width: 100%; }
:where(.np) :where(p, h1, h2, h3, h4, ul, ol, figure, blockquote, dl, dd) { margin: 0; }
:where(.np) :where(ul, ol) { padding: 0; }
:where(.np) :focus-visible { outline: 2px solid var(--os-coral); outline-offset: 2px; border-radius: 4px; }
.np ::selection { background: var(--os-coral-wash); }
.np-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.np-main { flex: 1 0 auto; outline: none; }
.np-wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 1099px) { .np-wrap { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 767px) { .np-wrap { padding-left: 16px; padding-right: 16px; } }

.np-label { font-family: var(--os-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--os-ink-3); }
.np-num { font-family: var(--os-mono); font-variant-numeric: tabular-nums; }
.np-mark { text-decoration: underline; text-decoration-color: var(--os-coral); text-decoration-thickness: 0.12em; text-underline-offset: 0.1em; text-decoration-skip-ink: none; }
.np-link { font-weight: 600; color: var(--os-ink); text-decoration: underline; text-decoration-color: var(--os-coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.np-link:hover { text-decoration-color: var(--os-ink); }
.np-linkbtn { background: none; border: 0; padding: 0; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.np-linkbtn:disabled { color: var(--os-ink-3); text-decoration-color: var(--os-rule); cursor: default; }

/* ---------- Logo ---------- */
.np-logo { width: 30px; height: 30px; border-radius: 7px; display: block; flex: 0 0 auto; }
[data-theme="dark"] .np-logo, .np-plate { background: #FAFAFA; box-shadow: 0 0 0 2px #FAFAFA; }

/* ---------- Header ---------- */
.np-head {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--os-paper) 92%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--os-rule-soft);
}
.np-head-in { height: 64px; display: flex; align-items: center; gap: 12px; }
.np-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.np-brand .np-wm { display: flex; flex-direction: column; line-height: 1; }
.np-brand b { font-family: var(--os-wordmark); font-weight: 900; letter-spacing: 0.05em; font-size: 15px; text-transform: uppercase; }
.np-brand small { font-family: var(--os-mono); font-weight: 500; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--os-ink-3); margin-top: 4px; }
.np-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.np-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--os-r-md); font-size: 14px; font-weight: 500; color: var(--os-ink-2); transition: background var(--os-fast), color var(--os-fast); }
.np-nav a:hover { color: var(--os-ink); background: var(--os-tint); }
.np-head .os-nav-actions { display: flex; align-items: center; gap: 8px; }
.np-head .np-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.np-iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--os-rule); border-radius: var(--os-r-md); background: transparent; cursor: pointer; color: var(--os-ink-2); transition: background var(--os-fast), color var(--os-fast); }
.np-iconbtn:hover { background: var(--os-tint); color: var(--os-ink); }
.np-menu-btn { display: none; }
.np-menu { display: none; }
.np-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; font-size: 14px; font-weight: 600; color: var(--os-ink-2); }
.np-back:hover { color: var(--os-ink); }
.np-head-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
@media (max-width: 767px) {
    .np-head-in { height: 58px; }
    .np-head .np-nav { display: none; }
    .np-head .os-nav-actions { margin-left: auto; }
    .np-menu-btn { display: inline-flex; }
    .np-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--os-paper); border-bottom: 1px solid var(--os-rule); padding: 6px 16px 12px; flex-direction: column; }
    .np-menu.open { display: flex; }
    .np-menu a { display: flex; align-items: center; min-height: 48px; border-top: 1px solid var(--os-rule-soft); font-weight: 500; }
    .np-menu a:first-child { border-top: 0; }
    .np-brand small { display: none; }
    .np-back span { display: none; }
}

/* ---------- Ticker (live platform facts, pausable) ---------- */
.np-ticker { position: relative; display: flex; align-items: center; height: 34px; overflow: hidden; background: var(--np-stage); color: var(--np-stage-ink-2); border-bottom: 1px solid var(--np-stage-rule); font-family: var(--os-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.np-ticker-pause { position: relative; z-index: 2; flex: 0 0 auto; width: 44px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: var(--np-stage); color: var(--np-stage-ink-2); border: 0; border-right: 1px solid var(--np-stage-rule); cursor: pointer; font-size: 11px; }
.np-ticker-pause:hover { color: var(--np-stage-ink); }
.np-ticker-view { flex: 1; min-width: 0; overflow: hidden; }
.np-ticker-track { display: inline-flex; white-space: nowrap; animation: np-marquee 60s linear infinite; }
.np-ticker:hover .np-ticker-track, .np-ticker.is-paused .np-ticker-track { animation-play-state: paused; }
.np-ticker-item { padding: 0 22px; }
.np-ticker-item + .np-ticker-item { border-left: 1px solid var(--np-stage-rule); }
.np-ticker-item b { color: var(--os-coral); font-weight: 700; margin-right: 4px; }
@keyframes np-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Buttons ---------- */
.np-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--os-r-md); border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; white-space: nowrap; transition: background var(--os-fast), border-color var(--os-fast), color var(--os-fast); text-align: center; }
.np-btn.primary { background: var(--os-coral); color: var(--os-on-coral); }
.np-btn.primary:hover { background: var(--os-coral-deep); }
.np-btn.ghost { background: transparent; border-color: var(--os-rule); color: var(--os-ink); }
.np-btn.ghost:hover { background: var(--os-tint); border-color: var(--os-ink-3); }
.np-btn.quiet { background: none; padding: 0 4px; color: var(--os-ink); text-decoration: underline; text-decoration-color: var(--os-coral); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.np-btn.lg { min-height: 50px; padding: 0 22px; font-size: 16px; }
.np-btn.block { width: 100%; }
.np-btn:disabled, .np-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.np-btn[aria-busy="true"] { cursor: progress; }
.np-stage .np-btn.ghost { color: var(--np-stage-ink); border-color: var(--np-stage-rule); }
.np-stage .np-btn.ghost:hover { background: var(--np-stage-3); }

/* ---------- Chips and tags ---------- */
.np-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--os-r-pill); border: 1px solid var(--os-rule); font-family: var(--os-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--os-ink-2); white-space: nowrap; }
.np-chip.fill { background: var(--os-tint); border-color: transparent; }
.np-chip.live { border-color: var(--os-coral); color: var(--os-coral-text); }
.np-chip.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--os-coral-deep); animation: np-pulse 1.6s ease-in-out infinite; }
.np-stage .np-chip { border-color: var(--np-stage-rule); color: var(--np-stage-ink-2); }
.np-stage .np-chip.live { border-color: var(--os-coral); color: var(--os-coral); }
.np-stage .np-chip.live i { background: var(--os-coral); }
.np-sample { display: inline-flex; align-items: center; font-family: var(--os-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 4px; padding: 2px 6px; color: var(--os-ink-3); white-space: nowrap; }
.np-stage .np-sample { color: var(--np-stage-ink-2); }

/* ---------- Surfaces ---------- */
.np-stage { position: relative; background: var(--np-stage); color: var(--np-stage-ink); border: 1px solid var(--np-stage-frame); border-radius: var(--np-r-lg); overflow: clip; }
.np-stage .np-label { color: var(--np-stage-ink-3); }
.np-stripes { position: absolute; inset: -200px; opacity: 0.05; pointer-events: none; background: repeating-linear-gradient(-52deg, currentColor 0 1px, transparent 1px 48px); }
.np-stage > :not(.np-stripes) { position: relative; }
.np-artifact { background: var(--os-sheet); border: 1px solid var(--os-frame); border-radius: var(--np-r-lg); overflow: hidden; }
.np-art-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 14px 18px; border-bottom: 1px solid var(--os-rule); }
.np-art-head h3 { font-family: var(--os-display); font-weight: 700; font-size: 18px; line-height: 1.2; margin-right: auto; }
.np-art-foot { padding: 12px 18px 14px; font-size: 12.5px; color: var(--os-ink-3); border-top: 1px solid var(--os-rule-soft); }
@media (max-width: 767px) { .np-art-head, .np-art-foot { padding-left: 14px; padding-right: 14px; } }
.np-rows > * { border-top: 1px solid var(--os-rule-soft); }
.np-rows > *:first-child { border-top: 0; }
.np-stage .np-rows > * { border-color: var(--np-stage-rule); }

/* ---------- Data visuals ---------- */
.np-bar { height: 6px; border-radius: 3px; background: var(--os-tint-2); overflow: hidden; }
.np-bar i { display: block; height: 100%; width: 0; background: var(--os-coral); transition: width var(--np-slow); }
.np-stage .np-bar, .np-stage .np-wp { background: var(--np-stage-3); }
.np-wp { display: flex; height: 8px; gap: 3px; border-radius: 4px; overflow: hidden; background: var(--os-tint-2); }
.np-wp i { display: block; height: 100%; flex: 0 1 50%; background: var(--np-stage-ink-3); transition: flex-basis var(--np-slow); }
.np-wp i.you { background: var(--os-coral); }
.np-form { display: inline-flex; gap: 3px; }
.np-form i { width: 8px; height: 8px; border-radius: 2px; background: var(--os-tint-2); }
.np-form i.w { background: var(--os-good); }
.np-form i.l { background: var(--os-bad); opacity: 0.55; }
.np-av { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; font-family: var(--os-mono); font-weight: 700; color: #F2F5FA; }
.np-flap { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.np-flap span { width: 1.1em; height: 1.55em; display: inline-flex; align-items: center; justify-content: center; background: var(--np-stage-3); color: var(--np-stage-ink); border: 1px solid var(--np-stage-rule); border-radius: 4px; font-family: var(--os-mono); font-weight: 700; position: relative; overflow: hidden; }
.np-flap span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.28); }
.np-flap span.gap { background: transparent; border-color: transparent; }
.np-flap span.gap::after { display: none; }
.np-flap.hot span:not(.gap) { background: var(--os-coral); color: var(--os-on-coral); border-color: var(--os-coral); }
.np-flap.hot span::after { background: rgba(10, 14, 26, 0.2); }

/* ---------- Receipt: the only cream surface ---------- */
.np-receipt { position: relative; background: var(--np-receipt); color: var(--np-receipt-ink); font-family: var(--os-mono); font-size: 13px; line-height: 1.6; padding: 22px 20px 26px; filter: drop-shadow(0 4px 12px rgba(10, 14, 26, 0.18)); }
.np-receipt::before, .np-receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: conic-gradient(from 135deg at 50% 76%, var(--np-receipt) 0 90deg, transparent 0) 0 0 / 16px 8px repeat-x; }
.np-receipt::before { top: -7px; }
.np-receipt::after { bottom: -7px; transform: scaleY(-1); }
.np-receipt .rl { display: flex; gap: 8px; align-items: baseline; }
.np-receipt .rl .d { flex: 1; min-width: 12px; border-bottom: 2px dotted var(--np-receipt-rule); transform: translateY(-4px); }
.np-receipt .rl b { font-weight: 700; text-align: right; }
.np-receipt hr { border: 0; border-top: 2px dashed var(--np-receipt-rule); margin: 12px 0; }
.np-receipt .c { text-align: center; }
.np-receipt .t { text-align: center; font-weight: 700; letter-spacing: 0.18em; }
.np-receipt .sub { text-align: center; color: var(--np-receipt-ink-2); font-size: 11px; letter-spacing: 0.08em; }
.np-stamp { display: inline-block; font-family: var(--os-mono); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border: 3px solid currentColor; border-radius: 8px; padding: 4px 12px; color: var(--os-bad); transform: rotate(-8deg); }
.np-stamp.hit { animation: np-stamp 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* ---------- Notices (full hairline, full wash, never one-side edges) ---------- */
.np-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--os-rule); border-radius: var(--os-r-md); background: var(--os-tint); font-size: 14px; color: var(--os-ink-2); line-height: 1.5; }
.np-note > [data-i] { flex: 0 0 auto; margin-top: 1px; color: var(--os-ink-3); display: inline-flex; }
.np-note b { color: var(--os-ink); font-weight: 600; }
.np-note.bad { background: transparent; border-color: var(--os-bad); color: var(--os-ink); }
.np-note.bad > [data-i] { color: var(--os-bad); }
.np-note .acts { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 4px; }

/* ---------- Footer ---------- */
.np-foot { margin-top: 56px; border-top: 1px solid var(--os-rule); padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--os-ink-2); }
.np-foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.np-foot nav { display: flex; flex-wrap: wrap; gap: 0 2px; }
.np-foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.np-foot nav a:hover { color: var(--os-ink); text-decoration: underline; text-underline-offset: 4px; }
.np-foot .os-theme-group { margin-left: auto; display: inline-flex; align-items: center; border: 1px solid var(--os-rule); border-radius: var(--os-r-pill); overflow: hidden; }
.np-foot .os-theme-opt { min-height: 40px; min-width: 64px; padding: 0 12px; background: transparent; border: 0; cursor: pointer; font-family: var(--os-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--os-ink-2); }
.np-foot .os-theme-opt + .os-theme-opt { border-left: 1px solid var(--os-rule); }
.np-foot .os-theme-opt:hover { color: var(--os-ink); }
.np-foot .os-theme-opt.is-active { background: var(--os-tint-2); color: var(--os-ink); }
.np-foot .fine { flex-basis: 100%; font-size: 12.5px; color: var(--os-ink-3); line-height: 1.5; }
@media (max-width: 767px) { .np-foot .os-theme-group { margin-left: 0; } }

/* ==========================================================================
   Account entry shell: auth, verify, forgot, reset
   ========================================================================== */
.np-auth-grid { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 24px; align-items: stretch; }
.np-panel { min-width: 0; display: flex; flex-direction: column; }
.np-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.np-dots { display: inline-flex; gap: 4px; }
.np-dots i { width: 18px; height: 4px; border-radius: 2px; background: var(--os-tint-2); transition: background var(--os-base); }
.np-dots i.on { background: var(--os-coral); }
.np-title { font-family: var(--os-display); font-weight: 800; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.04; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.np-sub { color: var(--os-ink-2); font-size: 16px; margin-top: 10px; max-width: 34rem; }
.np-sub strong, .np-sub b { color: var(--os-ink); font-weight: 600; overflow-wrap: anywhere; }
.np-body { margin-top: 26px; }
.np-field { margin-bottom: 18px; }
.np-field > label, .np-lab { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--os-ink); }
.np-labrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.np-input { width: 100%; min-height: 50px; padding: 0 14px; font: 400 16px/1.2 var(--os-body); color: var(--os-ink); background: var(--os-sheet); border: 1px solid var(--os-rule); border-radius: var(--os-r-md); transition: border-color var(--os-fast), background var(--os-fast); }
.np-input::placeholder { color: var(--os-ink-3); }
.np-input:hover { border-color: var(--os-ink-3); }
.np-input:focus { border-color: var(--os-ink); outline: 2px solid var(--os-coral); outline-offset: 1px; }
.np-input[readonly] { background: var(--os-tint); color: var(--os-ink-2); }
.np-pw { position: relative; }
.np-pw .np-input { padding-right: 76px; }
.np-pw .np-reveal { position: absolute; right: 3px; top: 3px; height: 44px; padding: 0 12px; border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--os-ink-2); cursor: pointer; border-radius: var(--os-r-sm); }
.np-pw .np-reveal:hover { color: var(--os-ink); background: var(--os-tint); }
.np-hint { margin-top: 6px; font-size: 13px; color: var(--os-ink-3); }
.np-change { background: none; border: 0; padding: 0 2px; min-height: 32px; font-size: 13px; font-weight: 600; color: var(--os-ink); text-decoration: underline; text-decoration-color: var(--os-coral); text-underline-offset: 4px; text-decoration-thickness: 2px; cursor: pointer; }
.np-alert { position: relative; margin-bottom: 16px; padding: 12px 14px 12px 40px; border: 1px solid var(--os-bad); border-radius: var(--os-r-md); background: transparent; color: var(--os-ink); font-size: 14px; line-height: 1.45; }
.np-alert::before { content: ""; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; background: var(--os-bad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.np-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin: -6px 0 14px; font-size: 14px; }
.np-check { display: inline-flex; align-items: center; gap: 8px; color: var(--os-ink-2); cursor: pointer; min-height: 44px; }
.np-check input { width: 18px; height: 18px; accent-color: var(--os-coral-deep); margin: 0; }
.np-fine { margin-top: 16px; font-size: 13px; color: var(--os-ink-3); line-height: 1.5; }
.np-fine a { color: var(--os-ink-2); text-decoration: underline; text-underline-offset: 3px; }
.np-panel .np-note { margin-top: 22px; }
.np-divider { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--os-rule-soft); font-size: 14px; color: var(--os-ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }

/* Entry context and invite banner: full wash, full hairline, stays across steps */
.np-banner { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 26px; padding: 14px 16px; background: var(--os-coral-wash); border: 1px solid var(--os-rule); border-radius: var(--os-r-md); font-size: 15px; line-height: 1.45; color: var(--os-ink); }
.np-banner[hidden] { display: none; }
.np-banner .ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: var(--os-coral); color: var(--os-on-coral); display: inline-flex; align-items: center; justify-content: center; }
.np-banner .msg { display: block; font-weight: 500; }
.np-banner[data-state="error"] { background: transparent; border-color: var(--os-bad); }
.np-banner[data-state="error"] .ic { background: transparent; color: var(--os-bad); border: 1px solid var(--os-bad); }
.np-banner .np-entry-actions { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 2px; }
.np-banner .np-entry-actions button { background: none; border: 0; padding: 0; min-height: 44px; font-weight: 600; font-size: 14px; color: var(--os-ink); text-decoration: underline; text-decoration-color: var(--os-coral); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }

/* Already-signed-in notice (session-header.js fills it) */
.np .os-auth-signedin { margin-bottom: 22px; padding: 14px 16px; border: 1px solid var(--os-rule); border-radius: var(--os-r-md); background: var(--os-tint); }
.np .os-auth-signedin[hidden] { display: none; }
.np .os-auth-signedin-line { font-size: 15px; color: var(--os-ink); overflow-wrap: anywhere; }
.np .os-auth-signedin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.np .os-auth-signedin-actions .os-btn { flex: 1 1 auto; min-height: 44px; }

/* Six-digit code: one real input over six mirrored cells, so one-time-code
   autofill, paste, and assistive tech all see a single labeled field. */
.np-code { position: relative; max-width: 420px; }
.np-code-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; pointer-events: none; }
.np-code-cells span { height: 64px; display: flex; align-items: center; justify-content: center; font: 700 28px/1 var(--os-mono); color: var(--os-ink); background: var(--os-sheet); border: 1px solid var(--os-rule); border-radius: var(--os-r-md); transition: border-color var(--os-fast), background var(--os-fast); }
.np-code-cells span:nth-child(3) { margin-right: 8px; }
.np-code-cells span.filled { background: var(--os-tint); }
.np-code-cells span.active { border-color: var(--os-ink); outline: 2px solid var(--os-coral); outline-offset: 1px; }
.np-code-cells span.active:empty::after { content: ""; width: 2px; height: 28px; background: var(--os-coral-deep); animation: np-blink 1s steps(1) infinite; }
.np-code input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.01; color: transparent; caret-color: transparent; background: transparent; border: 0; font-size: 16px; letter-spacing: 1em; padding: 0 12px; cursor: text; }
.np-code input:focus { outline: none; }
.np-code[data-state="bad"] .np-code-cells span { border-color: var(--os-bad); }
.np-code[data-state="ok"] .np-code-cells span { border-color: var(--os-good); }
.np-code[data-state="checking"] .np-code-cells span { opacity: 0.6; }
.np-feedback { min-height: 22px; margin-top: 10px; font-size: 14px; }
.np-resend { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin-top: 10px; font-size: 14px; color: var(--os-ink-2); }

/* Stage aside: what is waiting on the other side of the form */
.np-aside { min-width: 0; padding: 28px; display: flex; flex-direction: column; min-height: 600px; }
.np-aside-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.np-aside-top .np-sample { margin-left: auto; }
.np-board { margin-top: 18px; font-size: clamp(14px, 1.6vw, 21px); min-height: 1.6em; }
.np-aside-sub { margin-top: 12px; color: var(--np-stage-ink-2); font-size: 15px; max-width: 34rem; }
.np-aside-sub b { color: var(--np-stage-ink); font-weight: 600; }
.np-rwrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 34px 0 10px; }
.np-rwrap .np-receipt { width: min(100%, 360px); transform: rotate(-1.2deg); }
.np-receipt .rl.done b { color: #087F55; }
.np-receipt .rl span:first-child { white-space: nowrap; }
.np-stampwrap { position: absolute; right: -14px; top: -16px; pointer-events: none; }
.np-stampwrap .np-stamp { color: #087F55; font-size: 20px; background: color-mix(in srgb, var(--np-receipt) 75%, transparent); }
.np-aside-foot { display: flex; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--np-stage-rule); padding-top: 14px; margin-top: 8px; }
.np-stat .np-num { display: block; font-size: 22px; font-weight: 700; color: var(--np-stage-ink); line-height: 1.1; }
.np-stat .np-label { font-size: 10px; }
.np-steps { list-style: none; margin-top: 26px; border-top: 1px solid var(--np-stage-rule); }
.np-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--np-stage-rule); color: var(--np-stage-ink-2); font-size: 15px; }
.np-steps li .n { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--os-mono); font-size: 12px; font-weight: 700; border: 1px solid var(--np-stage-rule); color: var(--np-stage-ink-2); }
.np-steps li b { display: block; color: var(--np-stage-ink); font-weight: 600; }
.np-steps li small { display: block; font-size: 13px; color: var(--np-stage-ink-3); margin-top: 2px; }
.np-steps li .st { font-family: var(--os-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--np-stage-ink-3); }
.np-steps li.now .n { background: var(--os-coral); border-color: var(--os-coral); color: var(--os-on-coral); }
.np-steps li.now .st { color: var(--os-coral); }
.np-steps li.done .n { background: var(--np-stage-good); border-color: var(--np-stage-good); color: #05070E; }
.np-steps li.done .st { color: var(--np-stage-good); }
.np-aside-note { margin-top: auto; padding-top: 22px; font-size: 13px; color: var(--np-stage-ink-3); line-height: 1.5; }

@media (max-width: 1099px) {
    .np-auth-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 28px; padding-top: 32px; }
    .np-aside { padding: 22px; min-height: 560px; }
    .np-code-cells span { height: 58px; font-size: 24px; }
}
@media (max-width: 767px) {
    .np-auth-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; }
    .np-aside { min-height: 0; padding: 18px; }
    .np-rwrap, .np-aside-foot, .np-aside-note { display: none; }
    .np-steps { margin-top: 16px; }
    .np-steps li { padding: 10px 0; font-size: 14px; }
    .np-steps li small { display: none; }
    .np-board { margin-top: 12px; font-size: 15px; }
    .np-aside-sub { font-size: 14px; }
    .np-code-cells { gap: 6px; }
    .np-code-cells span { height: 56px; font-size: 22px; }
    .np-code-cells span:nth-child(3) { margin-right: 4px; }
    .np-banner { font-size: 14px; }
    .np-foot { margin-top: 32px; }
}

/* ---------- Motion (data-driven, reduced-motion aware) ---------- */
/* Only hide reveal targets once the runtime is present, so content never depends on JS. */
.np-js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.np-js [data-reveal].in { opacity: 1; transform: none; }
.np-cursor { display: inline-block; width: 0.55em; height: 1.05em; background: var(--os-coral); vertical-align: -0.15em; animation: np-blink 1s steps(1) infinite; }
.np-reveal-in { animation: np-rise 0.18s ease both; }
@keyframes np-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes np-blink { 50% { opacity: 0; } }
@keyframes np-rise { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes np-stamp { from { transform: rotate(-8deg) scale(1.9); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .np *, .np *::before, .np *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .np-js [data-reveal] { opacity: 1; transform: none; }
    .np-ticker-track { animation: none !important; }
}
