:root {
  --ink: #172A42;
  --muted: #52657B;
  --paper: #EAF4FF;
  --cream: #FFFFFF;
  --rose: #285B91;
  --rose-dark: #1B436D;
  --bunny-blush: #D77991;
  --line: #D2E2F3;
}

* { scrollbar-width: thin; scrollbar-color: #91AEC9 #EAF4FF; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { border: 3px solid #EAF4FF; border-radius: 99px; background: #DCEAF7; }
::-webkit-scrollbar-thumb { min-height: 34px; border: 2px solid #EAF4FF; border-radius: 99px; background: linear-gradient(180deg,#A8C5DF,#6F91B3); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg,#86A9CA,#52799F); }

body { background: var(--paper); color: var(--ink); }
.topbar { background: rgba(234,244,255,.94); border-bottom-color: var(--line); }
.topbar nav > a, .btn-quiet { color: var(--ink); }
.brand-mark, .brand-dot, .eyebrow, h1 em, .section-heading h2 em,
.text-link span, .step-icon { color: var(--rose); }
.eyebrow { color: #52657B; }
.live-dot { background: #4D8E83; box-shadow: 0 0 0 3px rgba(77,142,131,.14); }
.btn-dark, .chat-compose button { background: var(--ink); color: #fff; }
.btn-dark:hover, .chat-compose button:hover { background: #285B91; }
.hero-lede, .section-heading p, .steps p, .profile-card-body > p { color: var(--muted); }
.visual-glow { background: #DCEBFA; }
.profile-card { box-shadow: 0 30px 80px rgba(23,42,66,.14); }
.profile-photo { background-color: #9DB8D2; }
.trust-line { flex-wrap: wrap; gap: 10px; }
.single-profile-note { display: inline-flex; align-items: center; padding: 8px 11px; border: 1px solid #C7DDF3; border-radius: 999px; background: #fff; color: #285B91; font-size: 9px; font-weight: 800; letter-spacing: .8px; }
.profile-placeholder { position: absolute; z-index: 1; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 13px; background: radial-gradient(ellipse at 50% 38%,rgba(255,255,255,.2),transparent 34%),linear-gradient(145deg,#6B98C5,#172A42); color: #fff; }
.profile-placeholder>span { display: grid; width: 104px; height: 104px; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(255,255,255,.13); box-shadow: 0 12px 35px rgba(10,27,48,.2); font: 600 50px/1 var(--serif); }
.profile-placeholder>small { color: rgba(255,255,255,.9); font-size: 8px; font-weight: 700; letter-spacing: 1.4px; }
.profile-label { color: var(--ink); }
.verified { background: #E5F2EE; color: #276C5E; }
.profile-tags span { background: #EAF4FF; color: #385C80; }
.pass-btn, .like-btn { border-color: var(--line); }
.like-btn { background: var(--bunny-blush); border-color: var(--bunny-blush); box-shadow: 0 6px 18px rgba(215,121,145,.25); }
.like-btn:hover { background: #C45E79; }
.pass-btn:hover { background: #F1F7FD; }
.floating-note { box-shadow: 0 14px 36px rgba(23,42,66,.12); }
.note-icon, .heart-note { background: #EAF4FF; color: var(--rose); }
.decor { color: #7BA4CD; }
.how-section { background: #DDEBFA; }
.steps article { background: rgba(255,255,255,.88); border-color: var(--line); }
.step-number { color: #7890A9; }
.bottom-cta { background: var(--ink); }
.bottom-cta .eyebrow { color: #C8DDF5; }
.bottom-cta p { color: #D7E6F5; }
.btn-light { color: var(--ink); }
footer p, footer > div, .link-button { color: #61758B; }
.modal-backdrop { background: rgba(17,35,56,.58); }
.modal { background: #F8FBFF; }
.modal-close { background: #E5EFF9; color: var(--ink); }
.modal-kicker { color: #52657B; }
.tabs { background: #EAF1F8; }
.tab.active { color: var(--ink); }
.auth-form label { color: #344D68; }
.auth-form input:not([type=checkbox]), .auth-form textarea, .auth-form select { border-color: var(--line); color: var(--ink); }
.auth-form input:focus, .auth-form textarea:focus, .auth-form select:focus { border-color: #6B98C5; box-shadow: 0 0 0 3px rgba(40,91,145,.14); }
.auth-form select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px 13px; font: 400 12px var(--sans); }
.check-label input { accent-color: var(--rose); }
.dashboard-tabs button { border-color: var(--line); }
.dashboard-tabs button.active { background: var(--ink); }
.dash-item button { background: #EAF4FF; color: var(--ink); }
.chat-box, .dash-item { border-color: var(--line); }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.social-links a { color: #285B91; font-size: 10px; font-weight: 700; text-decoration: underline; }
.chat-bubble { background: #EAF4FF; color: var(--ink); }
.chat-bubble.mine { background: #DCEBFA; }
.empty-state { border-color: var(--line); color: var(--muted); }
.toast { background: var(--ink); }
.cosmic-card { margin-top: 14px; padding: 12px; border-radius: 13px; background: #EAF4FF; color: var(--ink); }
.cosmic-heading { font-size: 11px; font-weight: 700; margin-bottom: 7px; }
.cosmic-copy { font-size: 10px; line-height: 1.6; color: var(--muted); margin: 0; }
.cosmic-result { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 10px; background: #fff; border-radius: 10px; }
.cosmic-result > div { display: grid; gap: 5px; }
.cosmic-result small { font-size: 8px; color: #71849A; }
.cosmic-result strong { font-size: 11px; }
.cosmic-result .cosmic-score { padding: 9px; border-radius: 8px; background: #DCEBFA; color: #285B91; font-size: 18px; }
.cosmic-result #cosmicMessage, .cosmic-result .cosmic-disclaimer { grid-column: 1 / -1; }
.cosmic-result #cosmicMessage { border-top: 1px solid var(--line); padding-top: 9px; margin: 3px 0 0; font-size: 10px; color: var(--ink); }
.zodiac-form { margin-top: 10px; display: grid; gap: 8px; }
.zodiac-form label { font-size: 10px; font-weight: 700; }
.zodiac-form select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px; background: #fff; color: var(--ink); }
.zodiac-form small, .age-privacy { font-size: 9px; line-height: 1.5; color: var(--muted); }
.zodiac-form .btn { padding: 10px; font-size: 10px; }
.age-privacy { margin: -7px 0 0; }
.cosmic-result + .zodiac-form { margin-top: 0; }

@media (max-width: 680px) {
  .topbar { background: rgba(234,244,255,.97); }
  .hero { padding-top: 40px; }
}
.google-mark { color: #4285f4; font: 700 19px Arial, sans-serif; }
.instagram-mark { width: 18px; height: 18px; fill: none; stroke: #c13584; stroke-width: 2; }
.auth-help { margin-top: -8px; color: var(--muted); font-size: 9px; }
.signup-photo-prompt { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; align-items: center; padding: 12px; border: 1px dashed #9fc2e1; border-radius: 13px; background: linear-gradient(135deg,#eff8ff,#fff); color: #274762; }
.signup-photo-prompt strong,.signup-photo-prompt small { display: block; }
.signup-photo-prompt strong { font-size: 12px; }
.signup-photo-prompt small { margin-top: 3px; color: #607b95; font-size: 10px; line-height: 1.45; }
.signup-photo-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #dceefe; font-size: 20px; }
.signup-photo-picker { position: relative; grid-column: 2; width: max-content; max-width: 100%; border: 1px solid #b9d7ef; border-radius: 999px; padding: 7px 10px !important; background: #fff; color: #285b91 !important; font-size: 10px !important; cursor: pointer; }
.signup-photo-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.signup-photo-picker:focus-within, .member-photo-add:focus-within, .member-photo-replace:focus-within { outline: 3px solid #6B98C5; outline-offset: 2px; }
.signup-photo-selection { grid-column: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #52657B; font-size: 9px; line-height: 1.45; }
.signup-photo-selection img { width: 42px; height: 50px; border: 1px solid #D2E2F3; border-radius: 8px; object-fit: cover; }
body.theme-midnight .signup-photo-prompt { border-color: #3b6588; background: #102a45; color: #e8f3ff; }
body.theme-midnight .signup-photo-prompt small { color: #bcd4e9; }
body.theme-midnight .signup-photo-icon { background: #193d60; }
.check-label { display: flex !important; align-items: flex-start; gap: 9px !important; line-height: 1.55; overflow-wrap: anywhere; }
.check-label input { flex: 0 0 auto; margin: 2px 0 0; }
.horoscope-preview { margin: 2px 0 8px; padding: 15px; border: 1px solid #D2E2F3; border-radius: 14px; background: linear-gradient(135deg,#EAF4FF,#fff 82%); color: var(--ink); }
.horoscope-kicker { color: #52657B; font-size: 9px; font-weight: 700; letter-spacing: .5px; }
.horoscope-preview h3 { margin: 8px 0 5px; color: var(--ink); font: 600 17px/1.3 var(--serif); }
.horoscope-preview p { margin: 0; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.horoscope-preview .horoscope-teaser { margin-top: 7px; color: var(--muted); }
.horoscope-preview .btn { min-height: 38px; margin: 8px 0 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 10px; }
.horoscope-preview .btn:disabled { cursor: wait; opacity: .7; }
.horoscope-preview .horoscope-result { margin-top: 8px; padding: 10px; border-radius: 9px; background: #fff; color: var(--ink); white-space: pre-line; }
.horoscope-preview .horoscope-disclaimer { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.beyond-bunny-section { padding: 56px 0; background: #EAF4FF; border-block: 1px solid #D2E2F3; }
.beyond-bunny-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.beyond-bunny-inner h2 { margin: 12px 0 8px; color: #172A42; font: 600 clamp(26px,3vw,36px)/1.2 var(--serif); }
.beyond-bunny-inner h2 span { font: 400 22px var(--sans); }
.beyond-bunny-inner p { max-width: 650px; margin: 0; color: #52657B; font-size: 13px; line-height: 1.75; }
.beyond-modal { width: min(760px,100%); }
.beyond-modal h2 { padding-right: 34px; color: #172A42; font-size: clamp(26px,4vw,34px); }
.beyond-modal h3 { color: #172A42; }
.beyond-lede { margin: 0 0 20px; color: #52657B; font-size: 13px; line-height: 1.75; }
.beyond-privacy,.beyond-owner-note { display: flex; gap: 12px; margin: 14px 0; padding: 15px; border: 1px solid #D2E2F3; border-radius: 14px; background: #EAF4FF; color: #172A42; }
.beyond-privacy { flex-direction: column; gap: 4px; }
.beyond-privacy strong { font-size: 12px; }
.beyond-privacy span,.beyond-owner-note p { margin: 0; color: #52657B; font-size: 11px; line-height: 1.65; }
.beyond-note-icon { font-size: 18px; }
.beyond-saved-note { margin: 10px 0; color: #285B91; font-size: 10px; }
.smoking-check { margin-top: 18px; padding: 19px; border: 1px solid #D2E2F3; border-radius: 16px; background: #fff; }
.smoking-check h3 { margin: 6px 0; font: 600 20px var(--serif); }
.smoking-check>p { margin: 0 0 12px; color: #52657B; font-size: 11px; line-height: 1.6; }
.beyond-step-label { color: #52657B; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.beyond-choices { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.beyond-choice { display: flex; align-items: flex-start; gap: 9px; min-height: 42px; padding: 11px 12px; border: 1px solid #D2E2F3; border-radius: 11px; background: #fff; color: #344D68; cursor: pointer; font-size: 11px; line-height: 1.5; transition: border-color .15s,background .15s; }
.beyond-choice:has(input:checked) { border-color: #6B98C5; background: #EAF4FF; }
.beyond-choice input { flex: 0 0 auto; margin: 1px 0 0; accent-color: #285B91; }
.beyond-progress-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #52657B; font-size: 10px; }
.beyond-progress { height: 6px; overflow: hidden; margin-bottom: 22px; border-radius: 8px; background: #EAF1F8; }
.beyond-progress span { display: block; height: 100%; border-radius: inherit; background: #285B91; transition: width .2s ease; }
.beyond-optional-reminder { display: block; margin-top: 4px; color: #71849A; font-size: 10px; }
.beyond-questions { display: grid; gap: 10px; max-height: min(52vh,570px); overflow-y: auto; padding: 2px 4px 2px 0; }
.beyond-question { padding: 14px; border: 1px solid #D2E2F3; border-radius: 13px; background: #fff; }
.beyond-question-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.beyond-question-heading h3 { margin: 0; font: 600 14px/1.45 var(--sans); }
.beyond-question-heading .optional { flex: 0 0 auto; color: #71849A; font-size: 9px; }
.beyond-question textarea { width: 100%; min-height: 76px; resize: vertical; padding: 11px; border: 1px solid #D2E2F3; border-radius: 10px; color: #172A42; font: 400 12px/1.55 var(--sans); }
.beyond-question textarea:focus { outline: 3px solid rgba(40,91,145,.16); border-color: #6B98C5; }
.beyond-question textarea:disabled { background: #F4F8FC; }
.beyond-prefer-not { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: #52657B; font-size: 10px; cursor: pointer; }
.beyond-prefer-not input { accent-color: #285B91; }
.beyond-feedback,.beyond-mismatch { margin: 14px 0; padding: 14px; border: 1px solid #D2E2F3; border-radius: 12px; background: #EAF4FF; color: #172A42; font-size: 11px; line-height: 1.7; }
.beyond-feedback-mismatch,.beyond-mismatch { background: #F4F8FC; }
.beyond-mismatch p { margin: 6px 0; color: #52657B; }
.beyond-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.beyond-actions .btn { min-height: 42px; padding: 11px 16px; font-size: 11px; }
.beyond-delete { margin-top: 18px; border: 0; background: transparent; color: #52657B; text-decoration: underline; cursor: pointer; font-size: 10px; }
.beyond-review { display: grid; gap: 12px; max-height: min(54vh,600px); overflow-y: auto; padding-right: 4px; }
.beyond-review-section { padding: 14px; border: 1px solid #D2E2F3; border-radius: 13px; background: #fff; }
.beyond-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.beyond-review-heading h3 { margin: 0; font: 600 16px var(--serif); }
.beyond-review-answer { display: grid; grid-template-columns: 1fr minmax(130px,1fr); gap: 10px; padding: 10px 0; border-top: 1px solid #EAF1F8; }
.beyond-review-answer:first-of-type { margin-top: 10px; }
.beyond-review-answer span { color: #52657B; font-size: 10px; line-height: 1.5; }
.beyond-review-answer p { margin: 0; color: #172A42; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.beyond-success { padding: 24px 0; text-align: center; }
.beyond-success-icon { margin-bottom: 10px; font-size: 30px; }
.beyond-success p { color: #52657B; font-size: 12px; line-height: 1.7; }
.beyond-loading,.beyond-error { padding: 30px 5px; color: #52657B; font-size: 12px; }
.beyond-answer-progress { display: grid; gap: 7px; margin: 14px 0 19px; }
.beyond-answer-progress-label { display: flex; justify-content: space-between; gap: 12px; color: #52657B; font-size: 10px; }
.beyond-answer-progress-label strong { color: #285B91; }
.beyond-answer-track { height: 8px; overflow: hidden; border-radius: 99px; background: #DCEAF7; }
.beyond-answer-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#4d91c9,#d77991); transition: width .3s ease; }
.beyond-answer-progress small { color: #71849A; font-size: 9px; line-height: 1.5; }
body.theme-midnight .beyond-answer-progress-label { color: #bdd4e9; }
body.theme-midnight .beyond-answer-progress-label strong { color: #91caff; }
body.theme-midnight .beyond-answer-track { background: #193653; }
body.theme-midnight .beyond-answer-progress small { color: #a9bfd8; }
.beyond-locked { display: grid; justify-items: start; gap: 11px; max-width: 560px; margin: 14px auto 4px; padding: 22px; border: 1px solid #D2E2F3; border-radius: 14px; background: linear-gradient(135deg,#EAF4FF,#fff 76%); color: #172A42; }
.beyond-locked-mark { font-size: 26px; animation: profile-doodle-bob 2.8s ease-in-out infinite; }
.beyond-locked h2 { margin: 0; color: #172A42; font: 600 25px/1.2 var(--serif); }
.beyond-locked p { margin: 0; color: #52657B; font-size: 12px; line-height: 1.7; }
body.theme-midnight .beyond-locked { background: #142b46; border-color: #315170; color: #e8f3ff; }
body.theme-midnight .beyond-locked h2 { color: #e8f3ff; }
body.theme-midnight .beyond-locked p { color: #b9d6ee; }
@media (prefers-reduced-motion: reduce) { .beyond-locked-mark { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 680px) {
  .beyond-bunny-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
  .beyond-bunny-inner>.btn { width: 100%; }
  .beyond-modal { padding: 25px 18px; max-height: calc(100dvh - 24px); }
  .beyond-questions,.beyond-review { max-height: 48vh; }
  .beyond-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .beyond-actions #beyondNext,.beyond-actions #reviewSaveComplete { grid-column: 1/-1; grid-row: 1; }
  .beyond-actions #beyondBack,.beyond-actions #reviewBack { grid-column: 1; grid-row: 2; }
  .beyond-actions #beyondSave,.beyond-actions #reviewSaveDraft { grid-column: 2; grid-row: 2; }
  .beyond-review-answer { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 380px) {
  .horoscope-preview { padding: 12px; }
  .horoscope-preview .btn { width: 100%; }
  .check-label { font-size: 10px !important; }
}

.profile-photo {
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.profile-photo:active { cursor: grabbing; }
.profile-photo:focus-visible { outline: 3px solid #6B98C5; outline-offset: 3px; }
.profile-reveal-image { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 34%; pointer-events: none; }
.photo-overlay { z-index: 1; }
.photo-top, .photo-bottom { z-index: 2; }
.profile-photo .profile-placeholder { z-index: 3; }
.reveal-tools { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 7px 10px; padding: 10px 10px 0; }
.reveal-caption { display: flex; align-items: center; gap: 9px; min-width: 0; }
.reveal-sticker { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border: 1px solid #D2E2F3; border-radius: 11px; background: #EAF4FF; font-size: 17px; }
.reveal-caption-text { margin: 0; color: var(--ink); font: 600 11px/1.45 var(--sans); overflow-wrap: anywhere; }
.reveal-surprise { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.reveal-navigation { display: flex; align-items: center; gap: 7px; color: #52657B; font-size: 9px; font-weight: 700; white-space: nowrap; }
.reveal-nav-button { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid #D2E2F3; border-radius: 50%; background: #fff; color: #285B91; font: 500 21px/1 var(--sans); cursor: pointer; transition: background .18s, transform .18s; }
.reveal-nav-button:hover { background: #EAF4FF; transform: scale(1.06); }
.reveal-nav-button:focus-visible, #returnToRevealEditor:focus-visible { outline: 3px solid rgba(40,91,145,.28); outline-offset: 2px; }
.reveal-gesture-hint { grid-column: 1/-1; margin: 0 2px; color: #71849A; font-size: 9px; line-height: 1.4; }
#returnToRevealEditor { grid-column: 1/-1; justify-self: start; min-height: 34px; padding: 7px 12px; border: 1px solid #D2E2F3; border-radius: 999px; background: #fff; font-size: 10px; }
.hero-visual[data-reveal-theme="moonlight"] .visual-glow { background: radial-gradient(circle,#D9E9FA,#BBD3EE 70%); }
.hero-visual[data-reveal-theme="sunrise"] .visual-glow { background: radial-gradient(circle,#E7F2FF,#D7E9F8 68%); }
.hero-visual[data-reveal-theme="garden"] .visual-glow { background: radial-gradient(circle,#DCEFEA,#C8E1E0 70%); }
.ambient-doodles { position: absolute; z-index: 0; inset: 20px 0; overflow: hidden; pointer-events: none; }
.ambient-doodles span { position: absolute; color: #6B98C5; font-size: 17px; opacity: .58; animation: doodle-drift 6.5s ease-in-out infinite; }
.ambient-doodles span:nth-child(1) { top: 7%; left: 11%; animation-delay: -1s; }
.ambient-doodles span:nth-child(2) { top: 24%; right: 8%; font-size: 13px; animation-delay: -3s; }
.ambient-doodles span:nth-child(3) { right: 4%; bottom: 23%; font-size: 14px; animation-delay: -4.3s; }
.ambient-doodles span:nth-child(4) { left: 14%; bottom: 12%; font-size: 12px; animation-delay: -2.2s; }
.profile-card { transform-origin: 50% 55%; }
.profile-card.is-revealing { animation: reveal-frame .34s ease-out; }
.profile-card.is-revealing .reveal-caption { animation: caption-arrive .26s ease-out; }
.profile-card.is-revealing .reveal-sticker { animation: sticker-pop .36s cubic-bezier(.2,.75,.3,1); }
@keyframes doodle-drift { 0%,100% { transform: translate3d(0,0,0) rotate(-5deg); } 50% { transform: translate3d(0,-9px,0) rotate(7deg); } }
@keyframes reveal-frame { 0% { box-shadow: 0 30px 80px rgba(23,42,66,.14); } 48% { box-shadow: 0 30px 92px rgba(40,91,145,.24); } 100% { box-shadow: 0 30px 80px rgba(23,42,66,.14); } }
@keyframes caption-arrive { 0% { opacity: .45; transform: translateY(4px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes sticker-pop { 0% { transform: rotate(-12deg) scale(.84); } 65% { transform: rotate(5deg) scale(1.08); } 100% { transform: rotate(0) scale(1); } }

.owner-reveal-manager { margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); }
.owner-reveal-manager h3 { margin: 0 0 7px; color: var(--ink); font: 600 20px/1.25 var(--serif); }
.owner-reveal-intro, .owner-reveal-saved { color: var(--muted); font-size: 11px; line-height: 1.6; }
.owner-reveal-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0; }
.owner-reveal-toolbar .btn { min-height: 38px; padding: 9px 13px; font-size: 10px; }
.owner-reveal-list { display: grid; gap: 12px; }
.owner-reveal-item { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.owner-reveal-thumb { display: block; width: 92px; height: 118px; border-radius: 9px; object-fit: cover; object-position: center 35%; background: #EAF4FF; }
.owner-reveal-thumb video { object-fit: cover; }
.reveal-crop-controls { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 8px; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 9px; }
.reveal-crop-controls legend { padding: 0 5px; color: var(--muted); font-size: 10px; }
.reveal-crop-controls label { display: grid; gap: 4px; color: var(--ink); font-size: 10px; }
.reveal-crop-controls input[type="range"] { min-height: 24px; padding: 0; accent-color: #3678b5; }
.reveal-crop-controls output { color: var(--muted); font-size: 10px; }
.reveal-crop-controls button { min-height: 32px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #F4F8FC; color: var(--ink); font-size: 10px; font-weight: 700; cursor: pointer; }
.owner-reveal-fields { display: grid; align-content: start; gap: 8px; min-width: 0; }
.owner-reveal-fields label { display: grid; gap: 4px; color: #344D68; font-size: 9px; font-weight: 700; }
.owner-reveal-fields input, .owner-reveal-fields select { width: 100%; min-width: 0; min-height: 36px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: 400 11px var(--sans); }
.owner-reveal-fields input:focus, .owner-reveal-fields select:focus { outline: 3px solid rgba(40,91,145,.14); border-color: #6B98C5; }
.owner-reveal-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.owner-reveal-actions button { min-height: 30px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #F4F8FC; color: var(--ink); font-size: 9px; font-weight: 700; cursor: pointer; }
.owner-reveal-actions button:disabled { opacity: .45; cursor: default; }
.owner-reveal-error { color: #9A3E4D; font-size: 10px; }
.owner-reveal-saved { margin-top: 8px; }

@media (max-width: 680px) {
  .ambient-doodles { inset: 12px 0; }
  .reveal-tools { padding-inline: 7px; }
  .topbar .brand { flex-shrink: 0; white-space: nowrap; }
  .topbar nav { flex-shrink: 0; flex-wrap: nowrap; }
  .topbar nav .btn { white-space: nowrap; }
  .owner-reveal-item { grid-template-columns: 76px minmax(0,1fr); gap: 9px; padding: 9px; }
  .owner-reveal-thumb { width: 76px; height: 104px; }
  .owner-reveal-fields input, .owner-reveal-fields select { font-size: 10px; }
  .reveal-crop-controls { grid-template-columns: 1fr 1fr; }
  .reveal-crop-controls button { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-doodles span, .profile-card.is-revealing { animation: none !important; }
  .reveal-nav-button { transition: none; }
}

/* Private onboarding and the authenticated photo deck */
body:not(.is-member-deck) #heroVisual { display: none; }
body.is-member-deck { min-height: 100vh; overflow-x: hidden; background: #EAF4FF; color: #172A42; }
body.is-member-deck #home { min-height: calc(100vh - 70px); }
body.is-member-deck #home > .hero { width: 100%; max-width: none; min-height: 0; height: calc(100vh - 70px); height: calc(100svh - 70px); padding: 18px 16px 28px; display: flex; justify-content: center; align-items: center; }
body.is-member-deck #home .hero-copy,
body.is-member-deck #home > .how-section,
body.is-member-deck #home > .beyond-bunny-section,
body.is-member-deck #home > .bottom-cta,
body.is-member-deck footer { display: none !important; }
body.is-member-deck #heroVisual { display: grid; position: relative; place-items: center; width: min(450px, calc(100vw - 36px)); height: min(770px, calc(100svh - 115px)); min-height: 390px; margin: 0 auto; isolation: isolate; }
body.is-member-deck #heroVisual { width:min(470px,calc(100vw - 28px)); height:min(720px,calc(100svh - 92px)); min-height:430px; }
body.is-member-deck #heroVisual .public-invite-card { display: none !important; }
body.is-member-deck #heroVisual .visual-glow { position: absolute; z-index: -2; inset: -12% -24%; opacity: .94; filter: blur(12px); background: radial-gradient(ellipse at center, #d9eaff 0%, #edf6ff 55%, transparent 76%); transition: background .5s ease; pointer-events: none; }
body.is-member-deck #heroVisual[data-deck-background="moonlight"] .visual-glow { background: radial-gradient(ellipse at center, #cbdcf2 0%, #eaf3ff 56%, transparent 78%); }
body.is-member-deck #heroVisual[data-deck-background="sunrise"] .visual-glow { background: radial-gradient(ellipse at center, #e5efff 0%, #f4f8ff 56%, transparent 78%); }
body.is-member-deck #heroVisual[data-deck-background="garden"] .visual-glow { background: radial-gradient(ellipse at center, #d8ece9 0%, #eaf5f3 56%, transparent 78%); }
body.is-member-deck .deck-stack { position: absolute; z-index: 1; inset: 3px 8px 53px; pointer-events: none; }
body.is-member-deck .deck-stack { display:none; }
body.is-member-deck .deck-under-card { position: absolute; inset: 0 9px 7px; overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 32px; background: #d5e5f6; box-shadow: 0 20px 45px rgba(23,42,66,.12); transform-origin: 50% 95%; }
body.is-member-deck .deck-under-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.is-member-deck .deck-under-card-one { z-index: 1; transform: translateY(12px) rotate(4deg) scale(.96); opacity: .82; }
body.is-member-deck .deck-under-card-two { z-index: 0; transform: translateY(22px) rotate(-4deg) scale(.92); opacity: .52; }
body.is-member-deck #heroVisual.has-single-reveal .deck-stack { display: none; }
body.is-member-deck #heroVisual.has-single-reveal .reveal-nav-button:disabled { opacity: .38; cursor: not-allowed; }
body.is-member-deck .profile-card { position: relative; z-index: 3; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; width: 100%; height: 100%; padding: 10px; overflow: visible; border: 1px solid rgba(255,255,255,.94); border-radius: 32px; background: rgba(255,255,255,.97); box-shadow: 0 26px 70px rgba(23,42,66,.19), 0 2px 7px rgba(23,42,66,.07); transform: translate3d(var(--drag-x,0),var(--drag-y,0),0) rotate(var(--drag-rotate,0deg)); transform-origin: center; will-change: transform; }
body.is-member-deck .profile-card { width:min(440px,100%); height:auto; max-height:calc(100svh - 96px); background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(227,241,254,.93)); }
body.is-member-deck .profile-photo { position: relative; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; overflow: hidden; border-radius: 24px; background: linear-gradient(145deg,#eaf4ff,#d9e9f8); touch-action: none; cursor: grab; }
body.is-member-deck .profile-photo { height:auto; aspect-ratio:4 / 5; }
body.is-member-deck .profile-photo:active { cursor: grabbing; }
body.is-member-deck .profile-reveal-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; user-select: none; -webkit-user-drag: none; }
body.is-member-deck .profile-reveal-image { transition:transform .7s cubic-bezier(.2,.7,.2,1),filter .35s ease; }
body.is-member-deck .profile-card:hover .profile-reveal-image { transform:scale(1.025); filter:saturate(1.04) contrast(1.02); }
body.is-member-deck .profile-placeholder { position: absolute; inset: 0; z-index: 1; display: grid; align-content: center; justify-items: center; gap: 14px; color: #285B91; background: linear-gradient(145deg,#eaf4ff,#d9e9f8); }
body.is-member-deck .profile-placeholder::after { width:42%; height:9px; border-radius:99px; background:linear-gradient(90deg,transparent,#fff,transparent); content:''; animation:photo-skeleton 1.2s ease-in-out infinite; }
body.is-member-deck .profile-placeholder span { font: 700 62px/1 var(--serif); }
body.is-member-deck .profile-placeholder small { font-size: 10px; letter-spacing: 2px; }
body.is-member-deck .photo-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg,rgba(18,39,65,.02),transparent 24%,transparent 72%,rgba(18,39,65,.12)); }
body.is-member-deck .reveal-tools { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 10px; align-items: center; min-height: 78px; padding: 2px 8px 3px; }
body.is-member-deck .reveal-caption { display: flex; align-items: center; gap: 10px; min-width: 0; }
body.is-member-deck .reveal-sticker { flex: 0 0 auto; font-size: 25px; }
body.is-member-deck .reveal-caption-text { margin: 0; color: #172A42; font-size: 13px; font-weight: 700; line-height: 1.35; }
body.is-member-deck .reveal-surprise { margin: 3px 0 0; color: #667c96; font-size: 11px; line-height: 1.3; }
body.is-member-deck .reveal-navigation { display: flex; align-items: center; gap: 7px; color: #58718d; font-size: 11px; }
body.is-member-deck .reveal-nav-button { width: 34px; height: 34px; }
body.is-member-deck .deck-photo-actions { position: absolute; z-index: 4; right: 10px; bottom: 88px; left: 10px; display: flex; justify-content: center; gap: 10px; pointer-events: none; }
body.is-member-deck .deck-photo-actions button { min-height: 38px; padding: 8px 18px; pointer-events: auto; box-shadow: 0 5px 18px rgba(23,42,66,.16); backdrop-filter: blur(12px); border: 1px solid #D2E2F3; border-radius: 22px; background: #fff; color: #294766; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
body.is-member-deck .deck-photo-actions button:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(23,42,66,.1); }
body.is-member-deck .deck-photo-actions .deck-like-button { border-color: var(--bunny-blush); background: var(--bunny-blush); color: #fff; }
body.is-member-deck .deck-photo-actions .deck-like-button:hover { background: #C45E79; }
body.is-member-deck .reveal-replay { padding: 7px 10px; border: 1px solid #d2e2f3; border-radius: 18px; background: #fff; color: #285b91; font-size: 11px; font-weight: 700; cursor: pointer; }
body.is-member-deck .reveal-gesture-hint { grid-column: 1/-1; margin: 0; text-align: center; color: #71849a; font-size: 10px; }
body.is-member-deck .floating-note, body.is-member-deck .decor { display: none !important; }
body.is-member-deck .ambient-doodles { position: absolute; z-index: -1; inset: -5% -9%; overflow: hidden; pointer-events: none; }
body.is-member-deck .ambient-doodles span { position: absolute; color: #4f83b4; font-size: clamp(16px,3vw,25px); opacity: .38; animation: doodle-drift 7s ease-in-out infinite; }
body.is-member-deck .ambient-doodles span:nth-child(4n+1) { top: 7%; left: 4%; }
body.is-member-deck .ambient-doodles span:nth-child(4n+2) { top: 24%; right: 2%; animation-delay: -2.4s; }
body.is-member-deck .ambient-doodles span:nth-child(4n+3) { right: 7%; bottom: 18%; animation-delay: -4s; }
body.is-member-deck .ambient-doodles span:nth-child(4n) { left: 8%; bottom: 10%; animation-delay: -1s; }
body.is-member-deck .profile-card.is-dragging { transition: none; }
body.is-member-deck .profile-card.is-revealing { animation: deck-arrive .42s cubic-bezier(.2,.75,.25,1); }
body.is-member-deck .profile-card.is-exiting[data-transition="left"] { animation: deck-exit-left .18s ease-in forwards; }
body.is-member-deck .profile-card.is-exiting[data-transition="right"] { animation: deck-exit-right .18s ease-in forwards; }
body.is-member-deck .profile-card.is-exiting[data-transition="up"] { animation: deck-exit-up .18s ease-in forwards; }
body.is-member-deck .profile-card.is-exiting[data-transition="down"] { animation: deck-exit-down .18s ease-in forwards; }
body.is-member-deck #heroVisual[data-reveal-animation="float"] .profile-card.is-revealing { animation-name: deck-float-arrive; }
body.is-member-deck #heroVisual[data-reveal-animation="pop"] .profile-card.is-revealing { animation-name: deck-pop-arrive; }
.onboarding-screen { width: min(850px, calc(100% - 32px)); min-height: calc(100vh - 100px); margin: 30px auto 70px; color: #172a42; }
.onboarding-heading { max-width: 650px; margin: 0 auto 28px; text-align: center; }
.onboarding-heading .eyebrow, .onboarding-kicker { color: #48739f; font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }
.onboarding-heading h1 { margin: 12px 0; font-size: clamp(32px,5vw,49px); letter-spacing: -1.5px; }
.onboarding-heading p, .onboarding-panel > p { color: #667b92; font-size: 14px; line-height: 1.65; }
.onboarding-progress-row { display: flex; justify-content: space-between; gap: 12px; margin: 0 clamp(20px,4vw,34px) 9px; color: #536d89; font-size: 11px; }
.onboarding-progress-row span { text-align: right; }
.onboarding-progress { height: 7px; margin: 0 clamp(20px,4vw,34px) 20px; overflow: hidden; border-radius: 8px; background: #dbe9f7; }
.onboarding-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#285b91,#79a9d3); transition: width .25s ease; }
.onboarding-panel { padding: clamp(20px,4vw,34px); border: 1px solid #d2e2f3; border-radius: 24px; background: #fff; box-shadow: 0 16px 45px rgba(23,42,66,.08); }
.onboarding-panel h2 { margin: 8px 0 7px; color: #172a42; font: 600 clamp(24px,4vw,32px)/1.2 var(--serif); }
.onboarding-panel > p { margin-bottom: 18px; }
.onboarding-question-list { display: grid; gap: 15px; margin: 22px 0; }
.onboarding-question { display: grid; gap: 7px; color: #294766; font-size: 13px; font-weight: 700; }
.onboarding-question input:not([type=checkbox]), .onboarding-question textarea, .onboarding-question select, .onboarding-options select { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #cfe0f2; border-radius: 12px; background: #fbfdff; color: #172a42; font-weight: 400; }
.onboarding-question textarea { resize: vertical; }
.onboarding-question :focus-visible, .onboarding-choice :focus-visible, .onboarding-chip :focus-visible { outline: 3px solid rgba(40,91,145,.3); outline-offset: 2px; }
.onboarding-options { margin: 20px 0; padding: 0; border: 0; }
.onboarding-options legend { margin-bottom: 9px; color: #294766; font-size: 13px; font-weight: 700; }
.onboarding-choice { display: flex; gap: 10px; align-items: center; min-height: 46px; margin: 8px 0; padding: 10px 14px; border: 1px solid #d2e2f3; border-radius: 12px; color: #334d69; font-size: 13px; cursor: pointer; touch-action: manipulation; user-select: none; }
.onboarding-choice:has(input:checked) { border-color: #6d98c2; background: #eef6ff; }
.onboarding-choice:focus-within { outline: 3px solid rgba(40,91,145,.3); outline-offset: 2px; }
.onboarding-choice input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: #285b91; cursor: pointer; }
.onboarding-options[aria-invalid="true"] .onboarding-choice { border-color: #c45e79; }
.onboarding-multi { padding: 0; border: 0; }
.onboarding-multi legend { margin-bottom: 9px; color: #294766; font-size: 13px; font-weight: 700; }
.onboarding-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.onboarding-chip { position: relative; }
.onboarding-chip input { position: absolute; opacity: 0; }
.onboarding-chip span { display: block; padding: 9px 12px; border: 1px solid #d2e2f3; border-radius: 18px; color: #526e8b; font-size: 12px; cursor: pointer; }
.onboarding-chip input:checked + span { border-color: #5e8fbd; background: #eaf4ff; color: #1e4f80; }
.optional { color: #879bb0; font-size: 11px; font-weight: 500; }
.onboarding-privacy { padding: 12px; border-radius: 12px; background: #f3f8fe; color: #6e8299 !important; font-size: 11px !important; }
.onboarding-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; }
.onboarding-actions .btn { min-height: 42px; }
.onboarding-step-count { color: #7489a0; font-size: 12px; }
.onboarding-error { min-height: 1em; margin: 10px 0 0 !important; color: #9c4350 !important; font-size: 12px !important; }
.onboarding-outcome { margin: 16px 0; padding: 14px; border: 1px solid #d6e6f5; border-radius: 13px; background: #eef6ff; color: #294766; font-size: 13px; line-height: 1.5; }
.approval-question { margin: 22px 0 10px; padding: clamp(17px,3vw,25px); border-radius: 18px; background: linear-gradient(145deg,#f5faff,#eaf4ff); }
.approval-question-meta { color: #728aa3; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }
.approval-question h3 { margin: 11px 0 18px; color: #172a42; font-size: 19px; line-height: 1.35; }
.approval-score { display: block; margin-bottom: 7px; color: #285b91; font: 700 28px/1 var(--serif); text-align: center; }
.approval-slider-control { position: relative; width: 100%; }
/* The labels use a 12px inset to mark the native thumb's center at min/max. */
.approval-slider { appearance: none; display: block; width: 100%; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; accent-color: #285b91; cursor: pointer; touch-action: pan-y; }
.approval-slider::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg,#d85d87 var(--score-fill,0%),#d8e2ee var(--score-fill,0%)); }
.approval-slider::-webkit-slider-thumb { appearance: none; width: 24px; height: 24px; margin-top: -8px; border: 3px solid #fff; border-radius: 50%; background: #d85d87; box-shadow: 0 2px 8px rgba(10,25,44,.28); }
.approval-slider::-moz-range-track { height: 8px; border-radius: 99px; background: #d8e2ee; }
.approval-slider::-moz-range-progress { height: 8px; border-radius: 99px; background: #d85d87; }
.approval-slider::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; background: #d85d87; box-shadow: 0 2px 8px rgba(10,25,44,.28); }
.approval-slider:focus-visible { outline: 3px solid rgba(99,174,235,.5); outline-offset: 2px; border-radius: 99px; }
.approval-scale { position: relative; display: block; height: 34px; margin: 0 12px; color: #71859a; font-size: 10px; text-align: center; }
.approval-scale button { position: absolute; top: 0; min-width: 24px; min-height: 30px; padding: 2px; transform: translateX(-50%); border: 0; border-radius: 9px; background: transparent; color: #8298af; font: 600 11px var(--sans); cursor: pointer; }
.approval-scale button[aria-pressed="true"] { background: #244767; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.approval-scale button:focus-visible, .approval-ani-button:focus-visible { outline: 3px solid rgba(99,174,235,.65); outline-offset: 2px; }
.approval-scale button:disabled { cursor: wait; opacity: .65; }
.approval-slider-hint { margin: 0 0 9px !important; color: #71869c !important; font-size: 10px !important; line-height: 1.4 !important; text-align: center; }
.approval-ani-button { display: block; min-height: 42px; margin: 1px auto 9px; padding: 9px 17px; border: 1px solid #b9d4ed; border-radius: 999px; background: #fff; color: #285b91; font: 700 12px var(--sans); cursor: pointer; transition: transform .18s ease,background .18s ease,border-color .18s ease; }
.approval-ani-button:hover { transform: translateY(-2px); border-color: #80b7e5; background: #f5faff; }
.approval-ani-button:disabled { cursor: wait; opacity: .7; }
.ani-card-tilt { animation: ani-slider-bounce .44s ease-out; }
.ani-slider-thumb-glow::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(214,109,141,.19),0 2px 8px rgba(10,25,44,.28); }
.ani-slider-thumb-glow::-moz-range-thumb { box-shadow: 0 0 0 6px rgba(214,109,141,.19),0 2px 8px rgba(10,25,44,.28); }
@keyframes ani-slider-bounce { 0% { transform: rotate(0) translateY(0); } 24% { transform: rotate(-1.1deg) translateY(-5px); } 58% { transform: rotate(.5deg) translateY(1px); } 100% { transform: rotate(0) translateY(0); } }
.ani-dream-popup { position: fixed; z-index: 1100; top: max(18px,env(safe-area-inset-top)); left: 50%; display: grid; gap: 5px; width: min(430px,calc(100vw - 28px)); padding: 15px 18px; transform: translateX(-50%); border: 1px solid #78b8e9; border-radius: 17px; background: #163b5b; color: #f4f9ff; text-align: center; box-shadow: 0 15px 45px rgba(0,0,0,.32); animation: ani-dream-pop .28s cubic-bezier(.2,.8,.2,1.2); pointer-events: none; }
.ani-dream-popup strong { color: #fff; font-size: 16px; }
.ani-dream-popup span { color: #d8ebfb; font-size: 12px; line-height: 1.45; }
@keyframes ani-dream-pop { from { opacity: 0; transform: translate(-50%,-12px) scale(.94); } to { opacity: 1; transform: translate(-50%,0) scale(1); } }
.approval-reaction { min-height: 42px; margin: 15px 0 7px !important; color: #5c7289 !important; text-align: center; }
.approval-reaction.passed { color: #2e6f5a !important; }
.approval-reaction.needs-work { color: #6c5d79 !important; }
.approval-result { margin: 0 !important; color: #6d8196 !important; font-size: 11px !important; text-align: center; }
.approval-result.passed { color: #23734d !important; font-weight: 800; }
.approval-result.not-approved { color: #b5323d !important; font-weight: 800; }
.approval-clear { display: block; margin: 8px auto 0; padding: 7px 12px; border: 1px solid #cbdced; border-radius: 18px; background: #fff; color: #526b85; font: inherit; font-size: 12px; cursor: pointer; }
.approval-clear[hidden] { display: none; }
.approval-clear:hover { border-color: #7ca5ce; color: #244f7b; }
.approval-text-question h3 { margin-bottom: 8px; }
.approval-question-description { margin: 0 0 17px !important; color: #526b86 !important; font-size: 13px !important; line-height: 1.6 !important; }
.approval-text-label { display: grid; gap: 8px; color: #294766; font-size: 12px; font-weight: 700; }
.approval-pickup-line { display: block; width: 100%; min-height: 122px; padding: 13px 15px; resize: vertical; border: 1px solid #cfe0f2; border-radius: 14px; background: rgba(255,255,255,.9); color: #172a42; font: 400 14px/1.6 var(--sans); box-shadow: inset 0 1px 2px rgba(23,42,66,.025); transition: border-color .18s,box-shadow .18s; }
.approval-pickup-line::placeholder { color: #8b9db1; }
.approval-pickup-line:focus { outline: 0; border-color: #6b98c5; box-shadow: 0 0 0 3px rgba(40,91,145,.13); }
.approval-text-helper { margin: 9px 0 0 !important; color: #71869c !important; font-size: 11px !important; line-height: 1.5 !important; }
.approval-retry { margin-top: 18px; padding: 14px; border-radius: 14px; background: #f5f9fe; color: #425d79; font-size: 12px; }
.approval-retry p { margin: 5px 0 10px; }
.approval-retry > div { display: flex; flex-wrap: wrap; gap: 6px; }
.approval-retry button { border: 1px solid #cfe0f2; border-radius: 16px; padding: 7px 10px; background: white; color: #285b91; font-size: 11px; cursor: pointer; }
.approval-gate-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(5,16,31,.76); backdrop-filter: blur(8px); animation: approval-gate-in .18s ease-out; }
.approval-gate { width: min(460px,100%); padding: clamp(22px,5vw,34px); border: 1px solid #cfe0f2; border-radius: 24px; background: #f8fbff; color: #172a42; box-shadow: 0 24px 80px rgba(0,0,0,.32); text-align: center; }
.approval-gate-sparkle { margin-bottom: 9px; font-size: 30px; }
.approval-gate .onboarding-kicker { display: block; color: #48739f; }
.approval-gate h2 { margin: 10px 0; color: #172a42; font: 700 clamp(25px,6vw,34px)/1.15 var(--serif); }
.approval-gate p { margin: 0 0 15px; color: #425d79; font-size: 14px; line-height: 1.6; }
.approval-gate .btn { min-height: 46px; margin-bottom: 12px; }
.approval-gate small { display: block; color: #526b86; font-size: 11px; line-height: 1.5; }
@keyframes approval-gate-in { from { opacity: 0; } to { opacity: 1; } }
.onboarding-review { display: grid; gap: 10px; max-height: 48vh; overflow: auto; }
.onboarding-review-section { padding: 13px 15px; border: 1px solid #e0ebf6; border-radius: 14px; }
.onboarding-review-section > div { display: flex; justify-content: space-between; align-items: center; }
.onboarding-review-section h3 { margin: 0 0 8px; color: #294766; font-size: 14px; }
.onboarding-review-section p { display: grid; gap: 3px; margin: 8px 0; color: #7890a8; font-size: 11px; }
.onboarding-review-section p strong { color: #455f7a; }
.onboarding-success { padding: clamp(35px,7vw,70px) 24px; text-align: center; }
.onboarding-success-mark { margin-bottom: 14px; font-size: 43px; }
.onboarding-success .btn { margin-top: 12px; }
body.is-onboarding { background: #f4f8fe; }
body.is-onboarding #home > .hero, body.is-onboarding #home > .how-section, body.is-onboarding #home > .beyond-bunny-section, body.is-onboarding #home > .bottom-cta, body.is-onboarding footer { display: none !important; }
body.is-onboarding .topbar nav > a, body.is-onboarding .topbar nav > button { display: none !important; }
.about-location { margin: -10px 0 20px; color: #71849a; font-size: 13px; }
#memberProfileInfo .profile-tags { margin: 16px 0; }
#memberProfileInfo .cosmic-card { margin-top: 16px; }
.card-actions { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px 0; }
.card-hint { color: #70849a; font-size: 12px; }
.connectionModal .btn-full { margin-top: 14px; }
@keyframes deck-arrive { from { opacity: .7; transform: translate3d(0,16px,0) scale(.97); } to { opacity: 1; transform: translate3d(var(--drag-x,0),var(--drag-y,0),0) rotate(var(--drag-rotate,0deg)) scale(1); } }
@keyframes deck-float-arrive { from { opacity: .5; transform: translateY(22px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes deck-pop-arrive { 0% { opacity: .4; transform: scale(.91); } 70% { opacity: 1; transform: scale(1.015); } 100% { transform: scale(1); } }
@keyframes deck-exit-left { to { opacity: .15; transform: translate3d(-120%,0,0) rotate(-12deg); } }
@keyframes deck-exit-right { to { opacity: .15; transform: translate3d(120%,0,0) rotate(12deg); } }
@keyframes deck-exit-up { to { opacity: .15; transform: translate3d(0,-100%,0) rotate(4deg); } }
@keyframes deck-exit-down { to { opacity: .15; transform: translate3d(0,100%,0) rotate(-4deg); } }
@keyframes photo-skeleton { from { transform:translateX(-125%); opacity:.2; } 50% { opacity:.8; } to { transform:translateX(125%); opacity:.2; } }
.owner-deck-settings { margin: 20px 0; padding: 16px; border: 1px solid #d2e2f3; border-radius: 16px; }
.owner-deck-settings legend { padding: 0 7px; color: #294766; font-weight: 700; }
.owner-deck-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.owner-deck-settings-grid label { display: grid; gap: 6px; color: #506b87; font-size: 12px; }
.owner-deck-settings-grid input, .owner-deck-settings-grid select { width: 100%; min-width: 0; padding: 10px; border: 1px solid #d2e2f3; border-radius: 9px; background: #fff; color: #172a42; }
body.is-member-deck .topbar nav { gap: 7px; }
body.is-member-deck .topbar nav .btn { padding: 9px 12px; font-size: 11px; }
body.is-member-deck #navHow { display: none; }
.onboarding-delete, .onboarding-skip-all { display: inline-flex; margin: 14px auto 0; border: 0; background: transparent; color: #607a95; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.onboarding-skip-all { color: #285b91; font-weight: 700; }
@media (max-width: 680px) {
  body.is-member-deck .topbar { height: auto; min-height: 64px; padding: 8px 12px; flex-wrap: wrap; gap: 6px; }
  body.is-member-deck .topbar .brand { font-size: 20px; }
  body.is-member-deck .topbar nav { width: 100%; max-width: 100%; gap: 5px; overflow-x: auto; padding: 1px 0 4px; scrollbar-width: thin; }
  body.is-member-deck .topbar nav .btn { flex: 0 0 auto; padding: 8px 10px; font-size: 10px; }
  body.is-member-deck #home > .hero { height: calc(100svh - 112px); padding: 12px 16px 24px; }
  body.is-member-deck #heroVisual { width: min(430px,calc(100vw - 34px)); height: min(740px,calc(100svh - 138px)); min-height: 340px; }
  body.is-member-deck .profile-card { padding: 8px; border-radius: 27px; }
  body.is-member-deck .profile-photo { border-radius: 20px; }
  body.is-member-deck .reveal-tools { min-height: 70px; gap: 5px 7px; padding-inline: 4px; }
  body.is-member-deck .reveal-caption-text { font-size: 12px; }
  body.is-member-deck .reveal-sticker { font-size: 22px; }
  body.is-member-deck .reveal-navigation { gap: 4px; }
  body.is-member-deck .reveal-nav-button { width: 30px; height: 30px; }
  .onboarding-screen { margin-top: 18px; }
  .onboarding-heading { margin-bottom: 20px; }
  .onboarding-actions { flex-wrap: wrap; }
  .onboarding-actions .btn { flex: 1 1 30%; padding-inline: 10px; }
  .owner-deck-settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  body.is-member-deck .topbar nav .btn { padding-inline: 8px; font-size: 9px; }
  body.is-member-deck #heroVisual { height: min(690px,calc(100svh - 132px)); min-height: 320px; }
  .onboarding-panel { padding: 18px 15px; }
  .approval-scale { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  body.is-member-deck .ambient-doodles span, body.is-member-deck .profile-card.is-revealing, body.is-member-deck .profile-card.is-exiting, .onboarding-progress span { animation: none !important; transition: none !important; }
  .ani-card-tilt, .ani-dream-popup { animation: none !important; }
  .approval-ani-button { transition: none !important; }
}

/* A personal, dating-first front door. Private members keep the immersive deck above. */
body:not(.is-member-deck):not(.is-onboarding) {
  background: #f5f9ff;
  background-image: radial-gradient(ellipse at 8% 22%, rgba(211,231,251,.55), transparent 32%), radial-gradient(ellipse at 93% 49%, rgba(227,238,250,.75), transparent 34%);
}
body:not(.is-member-deck):not(.is-onboarding) .topbar {
  border-bottom-color: rgba(111,151,190,.18);
  background: rgba(247,250,255,.88);
}
body:not(.is-member-deck):not(.is-onboarding) .topbar nav { gap: 17px; }
body:not(.is-member-deck):not(.is-onboarding) .brand { letter-spacing: -1.25px; }
body:not(.is-member-deck):not(.is-onboarding) .hero {
  min-height: 650px;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(22px,5vw,68px);
  padding-top: 34px;
  padding-bottom: 56px;
}
body:not(.is-member-deck):not(.is-onboarding) .hero-copy { position: relative; z-index: 2; padding: 22px 0; }
body:not(.is-member-deck):not(.is-onboarding) .hero-copy::after {
  content: '♡';
  position: absolute;
  top: 2px;
  right: 16%;
  color: #7ca6ce;
  font: 400 26px/1 var(--sans);
  transform: rotate(13deg);
  opacity: .7;
}
body:not(.is-member-deck):not(.is-onboarding) .hero .eyebrow {
  padding: 9px 13px;
  border: 1px solid #d6e6f5;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #52769a;
  letter-spacing: 1.25px;
}
body:not(.is-member-deck):not(.is-onboarding) .hero h1 {
  max-width: 560px;
  margin: 24px 0 19px;
  color: #172a42;
  font-size: clamp(58px,7.2vw,88px);
  line-height: .98;
  letter-spacing: -3.5px;
}
body:not(.is-member-deck):not(.is-onboarding) .hero h1 em { color: #4d80b2; }
body:not(.is-member-deck):not(.is-onboarding) .hero-lede {
  max-width: 440px;
  color: #586f88;
  font-size: 16px;
  line-height: 1.8;
}
body:not(.is-member-deck):not(.is-onboarding) .hero-actions { gap: 20px; flex-wrap: wrap; }
body:not(.is-member-deck):not(.is-onboarding) .hero-actions .btn-dark {
  min-height: 54px;
  padding-inline: 25px;
  border: 1px solid rgba(23,42,66,.08);
  box-shadow: 0 10px 24px rgba(23,42,66,.16);
}
body:not(.is-member-deck):not(.is-onboarding) .hero-actions .btn-dark:hover { background: #285b91; }
body:not(.is-member-deck):not(.is-onboarding) .text-link { color: #476987; }
body:not(.is-member-deck):not(.is-onboarding) .trust-line { margin-top: 30px; color: #758aa0; }
body:not(.is-member-deck):not(.is-onboarding) .single-profile-note {
  border-color: #ccdeef;
  background: rgba(255,255,255,.68);
  color: #547697;
  letter-spacing: .5px;
}
body:not(.is-member-deck):not(.is-onboarding) #heroVisual {
  display: flex;
  min-height: 560px;
  isolation: isolate;
}
body:not(.is-member-deck):not(.is-onboarding) #heroVisual .visual-glow {
  z-index: -1;
  top: 50%;
  right: auto;
  width: min(460px,90%);
  height: min(460px,90%);
  border: 1px solid rgba(255,255,255,.7);
  background: radial-gradient(circle at 45% 42%, #fff 0%, #e4f1ff 60%, #d6e8f9 100%);
  box-shadow: 0 25px 80px rgba(92,132,172,.12);
  transform: translateY(-50%);
}
body:not(.is-member-deck):not(.is-onboarding) #heroVisual .profile-card,
body:not(.is-member-deck):not(.is-onboarding) #heroVisual .deck-stack { display: none; }
.public-invite-card {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(365px,82%);
  min-height: 438px;
  padding: 38px 28px 30px;
  overflow: visible;
  border: 9px solid rgba(255,255,255,.94);
  border-radius: 42% 42% 34px 34px / 28% 28% 34px 34px;
  background: linear-gradient(157deg,#f9fcff 5%,#e5f1fc 55%,#d8e9f8 100%);
  box-shadow: 0 26px 72px rgba(36,73,111,.16), 0 3px 10px rgba(36,73,111,.06);
  text-align: center;
  transform: rotate(2deg);
  animation: invite-sway 7s ease-in-out infinite;
}
.public-invite-card::before,
.public-invite-card::after {
  position: absolute;
  z-index: -1;
  content: '';
  inset: 11px -17px -9px 15px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: inherit;
  background: rgba(194,218,241,.72);
  transform: rotate(7deg);
}
.public-invite-card::after { inset: 17px 12px -15px -18px; background: rgba(218,234,249,.78); transform: rotate(-6deg); }
.invite-kicker { color: #6d8dad; font-size: 9px; font-weight: 800; letter-spacing: 1.8px; }
.invite-heart {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  margin: 22px 0 18px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 50%;
  background: linear-gradient(145deg,#fff,#d2e6f8);
  box-shadow: 0 12px 30px rgba(70,112,153,.13);
  color: #4779a9;
  font: 400 60px/1 var(--sans);
}
.public-invite-card h2 { margin: 0; color: #1b3551; font: 600 clamp(29px,3.4vw,38px)/1.12 var(--serif); letter-spacing: -1px; }
.public-invite-card h2 em { color: #4c80b1; font-weight: 500; }
.public-invite-card p { margin: 14px 0 13px; color: #607b96; font-size: 12px; line-height: 1.7; }
.invite-signoff { color: #4779a9; font: italic 600 18px var(--serif); transform: rotate(-5deg); }
.invite-sticker { position: absolute; color: #4c80b1; font-size: 29px; opacity: .8; }
.invite-sticker-one { top: 22%; left: 8%; transform: rotate(-13deg); }
.invite-sticker-two { right: 8%; bottom: 25%; font-size: 21px; transform: rotate(12deg); }
body:not(.is-member-deck):not(.is-onboarding) .floating-note { border: 1px solid rgba(211,228,244,.9); box-shadow: 0 13px 35px rgba(48,82,116,.12); }
body:not(.is-member-deck):not(.is-onboarding) .note-icon { border-radius: 50%; background: #e3effb; }
body:not(.is-member-deck):not(.is-onboarding) .note-two .note-icon { background: #fff; }
body:not(.is-member-deck):not(.is-onboarding) .decor { color: #6e9ac4; }
body:not(.is-member-deck):not(.is-onboarding) .how-section {
  position: relative;
  overflow: hidden;
  padding: 82px 0 92px;
  background: linear-gradient(180deg,#eaf3fc,#f1f7fd);
}
body:not(.is-member-deck):not(.is-onboarding) .section-heading h2 { color: #1a3552; }
body:not(.is-member-deck):not(.is-onboarding) .section-heading h2 em { color: #4d80b2; }
body:not(.is-member-deck):not(.is-onboarding) .section-heading p { color: #617a94; }
body:not(.is-member-deck):not(.is-onboarding) .steps { gap: 16px; }
body:not(.is-member-deck):not(.is-onboarding) .steps article {
  min-height: 222px;
  padding: 25px 24px;
  border: 1px solid rgba(197,219,240,.85);
  border-radius: 22px 22px 22px 10px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 32px rgba(45,82,119,.06);
  transition: transform .22s ease, box-shadow .22s ease;
}
body:not(.is-member-deck):not(.is-onboarding) .steps article:nth-child(2) { transform: translateY(12px) rotate(.5deg); }
body:not(.is-member-deck):not(.is-onboarding) .steps article:hover { transform: translateY(-4px) rotate(0); box-shadow: 0 18px 38px rgba(45,82,119,.1); }
body:not(.is-member-deck):not(.is-onboarding) .step-number { color: #7492af; font-size: 9px; letter-spacing: 1px; }
body:not(.is-member-deck):not(.is-onboarding) .step-icon { display: grid; width: 46px; height: 46px; place-items: center; margin: 15px 0 13px; border-radius: 16px 16px 16px 5px; background: #e9f3fc; font-size: 22px; }
body:not(.is-member-deck):not(.is-onboarding) .steps h3 { color: #203a56; }
body:not(.is-member-deck):not(.is-onboarding) .steps p { color: #627a92; }
body:not(.is-member-deck):not(.is-onboarding) .beyond-bunny-section { background: #f5f9ff; border-color: #dfebf7; }
body:not(.is-member-deck):not(.is-onboarding) .beyond-bunny-inner h2 em { color: #4d80b2; font-weight: 500; }
body:not(.is-member-deck):not(.is-onboarding) .bottom-cta { background: linear-gradient(115deg,#1c3653,#28547b); }
body:not(.is-member-deck):not(.is-onboarding) .bottom-cta .eyebrow { color: #c8ddf1; }
body:not(.is-member-deck):not(.is-onboarding) .bottom-cta h2 { font-size: clamp(32px,4vw,42px); }
body:not(.is-member-deck):not(.is-onboarding) .cta-inner .btn-light { border: 1px solid rgba(255,255,255,.8); box-shadow: 0 9px 24px rgba(8,22,38,.14); }
body:not(.is-member-deck):not(.is-onboarding) footer { background: #f7faff; }

/* A little more bunny energy in the private photo deck. */
.deck-emoji-field { display: none; }
body.is-member-deck .deck-emoji-field {
  position: fixed;
  z-index: 0;
  inset: 72px 0 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 30%, rgba(206,231,255,.48), transparent 29%),
    radial-gradient(ellipse at 88% 72%, rgba(255,224,236,.34), transparent 28%);
}
body.is-member-deck #home { position: relative; z-index: 1; }
body.is-member-deck .deck-emoji-field span {
  position: absolute;
  display: block;
  font-size: clamp(20px, 2.1vw, 32px);
  line-height: 1;
  opacity: .62;
  filter: drop-shadow(0 5px 9px rgba(80,116,157,.12));
  animation: bunny-float 5.8s ease-in-out infinite;
  will-change: transform;
}
body.is-member-deck .deck-emoji-field span:nth-child(1) { left: 8%; top: 17%; animation-delay: -1s; }
body.is-member-deck .deck-emoji-field span:nth-child(2) { left: 22%; top: 70%; animation-delay: -3.6s; }
body.is-member-deck .deck-emoji-field span:nth-child(3) { left: 13%; top: 46%; animation-delay: -2.2s; }
body.is-member-deck .deck-emoji-field span:nth-child(4) { left: 31%; top: 24%; animation-delay: -4.5s; }
body.is-member-deck .deck-emoji-field span:nth-child(5) { right: 9%; top: 18%; animation-delay: -2.8s; }
body.is-member-deck .deck-emoji-field span:nth-child(6) { right: 18%; top: 73%; animation-delay: -.8s; }
body.is-member-deck .deck-emoji-field span:nth-child(7) { right: 8%; top: 47%; animation-delay: -3.2s; }
body.is-member-deck .deck-emoji-field span:nth-child(8) { right: 31%; top: 26%; animation-delay: -1.7s; }
body.is-member-deck .deck-emoji-field span:nth-child(9) { left: 4%; top: 86%; animation-delay: -4s; }
body.is-member-deck .deck-emoji-field span:nth-child(10) { right: 4%; top: 86%; animation-delay: -2.5s; }
body.is-member-deck .deck-emoji-field span:nth-child(11) { left: 42%; top: 8%; animation-delay: -5s; }
body.is-member-deck .deck-emoji-field span:nth-child(12) { right: 43%; top: 86%; animation-delay: -1.3s; }
@keyframes bunny-float {
  0%, 100% { transform: translate3d(0, 5px, 0) rotate(-9deg) scale(.94); }
  50% { transform: translate3d(7px, -18px, 0) rotate(9deg) scale(1.08); }
}
body.is-member-deck .reveal-caption-text { color: #203d5c; }
body.is-member-deck .reveal-surprise { color: #687f98; }
body.is-member-deck .deck-photo-actions .deck-like-button { box-shadow: 0 7px 20px rgba(225,112,144,.32); }
body.is-member-deck .deck-photo-actions .deck-like-button:hover { transform: translateY(-3px) scale(1.04); }
body.is-member-deck .reveal-nav-button:hover,
body.is-member-deck .reveal-replay:hover { background: #fff5f8; border-color: #f0c6d3; color: #b85877; }
@media (max-width: 680px) {
  body.is-member-deck .deck-emoji-field span { font-size: 21px; opacity: .48; }
  body.is-member-deck .deck-emoji-field span:nth-child(4n) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.is-member-deck .deck-emoji-field span { animation: none; }
}
@keyframes invite-sway { 0%,100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(.2deg) translateY(-8px); } }
@media (max-width: 900px) {
  body:not(.is-member-deck):not(.is-onboarding) .hero { gap: 18px; grid-template-columns: 1fr .9fr; }
  .public-invite-card { width: min(330px,86%); min-height: 410px; }
}
@media (max-width: 680px) {
  body:not(.is-member-deck):not(.is-onboarding) .topbar { height: 68px; }
  body:not(.is-member-deck):not(.is-onboarding) .topbar nav { gap: 5px; }
  body:not(.is-member-deck):not(.is-onboarding) .hero { gap: 10px; padding-top: 34px; padding-bottom: 46px; }
  body:not(.is-member-deck):not(.is-onboarding) .hero-copy::after { top: 5px; right: 7%; }
  body:not(.is-member-deck):not(.is-onboarding) .hero h1 { margin: 20px 0 16px; font-size: clamp(52px,13vw,68px); letter-spacing: -2.5px; }
  body:not(.is-member-deck):not(.is-onboarding) .hero-lede { max-width: 520px; font-size: 14px; }
  body:not(.is-member-deck):not(.is-onboarding) .hero-actions { gap: 14px; }
  body:not(.is-member-deck):not(.is-onboarding) .hero-actions .btn-dark { min-height: 49px; }
  body:not(.is-member-deck):not(.is-onboarding) .trust-line { display: none; }
  body:not(.is-member-deck):not(.is-onboarding) #heroVisual { min-height: 300px; margin: 0 -5px; }
  body:not(.is-member-deck):not(.is-onboarding) #heroVisual .visual-glow { width: 350px; height: 350px; }
  body:not(.is-member-deck):not(.is-onboarding) #heroVisual .floating-note { display: none; }
  .public-invite-card { width: min(320px,78%); min-height: 290px; padding: 22px 22px 18px; border-width: 7px; }
  .invite-heart { width: 74px; height: 74px; margin: 14px 0 13px; font-size: 47px; }
  .public-invite-card p { margin: 10px 0; }
  body:not(.is-member-deck):not(.is-onboarding) .how-section { padding: 65px 0 72px; }
  body:not(.is-member-deck):not(.is-onboarding) .steps article:nth-child(2) { transform: none; }
  body:not(.is-member-deck):not(.is-onboarding) .steps article:hover { transform: none; }
}
@media (max-width: 380px) {
  body:not(.is-member-deck):not(.is-onboarding) .hero h1 { font-size: 48px; }
  body:not(.is-member-deck):not(.is-onboarding) #heroVisual { min-height: 260px; }
  .public-invite-card { width: 76%; min-height: 270px; border-width: 7px; padding: 20px 17px; }
  .invite-heart { width: 66px; height: 66px; margin: 11px 0; font-size: 42px; }
  .public-invite-card h2 { font-size: 28px; }
  .public-invite-card p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .public-invite-card { animation: none; }
  body:not(.is-member-deck):not(.is-onboarding) .steps article { transition: none; }
}

/* Keep the logged-in deck and onboarding on the same airy ice-blue canvas. */
body.is-member-deck,
body.is-onboarding {
  background-color: #EAF4FF;
  background-image:
    radial-gradient(ellipse at 8% 18%, rgba(195,222,250,.48), transparent 31%),
    radial-gradient(ellipse at 91% 78%, rgba(255,226,238,.3), transparent 29%),
    linear-gradient(145deg, #EAF4FF 0%, #F4F8FE 52%, #EAF4FF 100%);
  background-attachment: fixed;
}

/* Give Bunny Files a little more breathing room and clear compatibility colors. */
.beyond-modal { padding: 32px clamp(23px, 4vw, 38px); }
.beyond-lede { margin-bottom: 24px; }
.beyond-privacy,
.beyond-owner-note { margin: 18px 0; padding: 18px; }
.smoking-check { margin-top: 22px; padding: 22px; }
.smoking-check > p { margin-bottom: 16px; }
.beyond-choices { gap: 11px; }
.beyond-feedback-compatible,
.beyond-feedback-positive,
.beyond-feedback-continue,
.onboarding-outcome-compatible {
  border-color: #acd7bd;
  background: #e9f7ee;
  color: #205d3b;
}
.beyond-feedback-neutral { border-color: #c7dbef; background: #eef6ff; color: #355b7e; }
.beyond-feedback-mismatch,
.beyond-mismatch,
.onboarding-outcome-mismatch {
  border-color: #efb8bd;
  background: #fff0f1;
  color: #8b2832;
}
.beyond-mismatch p { color: #8b2832; }
.beyond-feedback-compatible,
.beyond-feedback-positive,
.beyond-feedback-continue,
.beyond-feedback-neutral,
.beyond-feedback-mismatch,
.beyond-mismatch,
.onboarding-outcome-compatible,
.onboarding-outcome-mismatch { border-width: 1px; }
.smoking-check .beyond-choice:has(input[value="no"]:checked),
.onboarding-options .onboarding-choice:has(input[name="smokingCheck"][value="no"]:checked) {
  border-color: #8ec8a3;
  background: #e9f7ee;
  color: #205d3b;
}
.smoking-check .beyond-choice:has(input[value="sometimes"]:checked),
.smoking-check .beyond-choice:has(input[value="regularly"]:checked),
.onboarding-options .onboarding-choice:has(input[name="smokingCheck"][value="sometimes"]:checked),
.onboarding-options .onboarding-choice:has(input[name="smokingCheck"][value="regularly"]:checked) {
  border-color: #e6a0a7;
  background: #fff0f1;
  color: #8b2832;
}
@media (max-width: 680px) {
  .beyond-modal { padding: 26px 20px; }
  .smoking-check { padding: 18px; }
  .beyond-privacy,
  .beyond-owner-note { padding: 15px; }
}

/* Playful scrapbook finishing touches across the member experience. */
:root {
  --bunny-pink: #e985a0;
  --bunny-lilac: #eeeaff;
  --bunny-mint: #e7f7ed;
  --bunny-sunshine: #fff4d9;
}
.topbar nav .btn,
.topbar nav > a { transition: color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.topbar nav .btn-quiet { border-radius: 999px; }
.topbar nav .btn-quiet:hover,
.topbar nav > a:hover { color: #a84e6c; background: #fff0f4; transform: translateY(-1px); }
.topbar nav #navDeck::before { content: '✨'; }
.topbar nav #navAbout::before { content: '💙'; }
.topbar nav #navConnect::before { content: '💌'; }
.topbar nav #navBunny::before { content: '🐰'; }
.topbar nav #navEditAnswers::before { content: '📝'; }
.topbar nav #navDashboard::before { content: '🌷'; }
.topbar nav #navLogout::before { content: '👋'; }
.topbar nav button::before { margin-right: 0; }
body.is-member-deck .deck-emoji-field {
  background:
    radial-gradient(ellipse at 8% 25%, rgba(198,225,255,.54), transparent 31%),
    radial-gradient(ellipse at 91% 73%, rgba(255,213,228,.43), transparent 29%),
    radial-gradient(ellipse at 50% 5%, rgba(237,231,255,.34), transparent 27%);
}
body.is-member-deck .deck-emoji-field span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 50%;
  background: rgba(255,255,255,.66);
  box-shadow: 0 10px 22px rgba(76,112,151,.1);
  font-size: 26px;
  opacity: .94;
}
body.is-member-deck #heroVisual::before {
  content: 'A FEW LITTLE ANI MOMENTS  ·  NO PRESSURE 💌';
  position: absolute;
  z-index: 5;
  top: -9px;
  left: 50%;
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 22px rgba(35,72,112,.1);
  color: #52799f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
  transform: translateX(-50%) rotate(-1deg);
}
body.is-member-deck .profile-card {
  border-color: rgba(255,255,255,.98);
  box-shadow: 0 28px 72px rgba(35,69,105,.2), 0 0 0 5px rgba(255,255,255,.24);
}
body.is-member-deck .reveal-caption { padding: 5px 8px; border-radius: 16px; background: linear-gradient(110deg,#f4f8ff,#fff5f8); }
body.is-member-deck .reveal-sticker { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 14px 14px 14px 5px; background: #eeeaff; }
body.is-member-deck .reveal-navigation > span { min-width: 43px; padding: 6px 8px; border-radius: 99px; background: #f2f7ff; color: #395e83; text-align: center; font-weight: 800; }
body.is-member-deck .reveal-nav-button { border-color: #d7e6f4; background: #fff; box-shadow: 0 4px 12px rgba(35,69,105,.07); }
body.is-member-deck .deck-photo-actions .deck-pass-button { color: #496780; }
body.is-member-deck .deck-photo-actions .deck-like-button { background: linear-gradient(135deg,#e985a0,#d66d8d); }
body.is-member-deck .deck-photo-actions .deck-like-button:hover { background: linear-gradient(135deg,#db6f8d,#c35475); }
/* Ani is a single-profile deck: swipe to browse and use one heart when it feels right. */
body.is-member-deck .deck-photo-actions { bottom: 76px; }
body.is-member-deck .deck-photo-actions { right:18px; left:auto; width:56px; }
body.is-member-deck .deck-photo-actions { display:none; }
body.is-member-deck .deck-under-card-one { transform:translateY(10px) rotate(2.5deg) scale(.975); opacity:.48; }
body.is-member-deck .deck-under-card-two { transform:translateY(17px) rotate(-2.5deg) scale(.95); opacity:.23; }
body.is-member-deck .deck-photo-actions .deck-pass-button,
body.is-member-deck .reveal-navigation { display: none !important; }
body.is-member-deck .deck-photo-actions .deck-like-button { width: 56px; min-height: 56px; padding: 0; border-radius: 50%; font-size: 0; }
body.is-member-deck .deck-photo-actions .deck-like-button span { display: none; }
body.is-member-deck .deck-photo-actions .deck-like-button::after { content: '♥'; font: 700 28px/1 Arial,sans-serif; }
body.is-member-deck .reveal-tools { grid-template-columns: 1fr; min-height: 70px; padding-bottom: 2px; }
body.is-member-deck .profile-card::after { position: absolute; z-index: 7; inset: 12px; border-radius: 25px; content: ''; pointer-events: none; opacity: 0; }
body.is-member-deck .profile-card.is-exiting[data-transition="left"]::after { animation: swipe-flash-left .19s ease-out; }
body.is-member-deck .profile-card.is-exiting[data-transition="right"]::after { animation: swipe-flash-right .19s ease-out; }
body.is-member-deck .profile-card.is-exiting[data-transition="up"]::after { animation: swipe-flash-up .19s ease-out; }
body.is-member-deck .profile-card.is-exiting[data-transition="down"]::after { animation: swipe-flash-down .19s ease-out; }
@keyframes swipe-flash-left { from { opacity:.8; background:linear-gradient(90deg,rgba(118,185,245,.7),transparent); } to { opacity:0; } }
@keyframes swipe-flash-right { from { opacity:.8; background:linear-gradient(270deg,rgba(231,122,155,.7),transparent); } to { opacity:0; } }
@keyframes swipe-flash-up { from { opacity:.8; background:linear-gradient(180deg,rgba(255,207,115,.7),transparent); } to { opacity:0; } }
@keyframes swipe-flash-down { from { opacity:.8; background:linear-gradient(0deg,rgba(122,224,181,.7),transparent); } to { opacity:0; } }
.beyond-modal { position: relative; overflow-x: hidden; overflow-y: auto; border: 1px solid rgba(255,255,255,.9); background: linear-gradient(145deg,#fbfdff 0%,#f4f8ff 60%,#fff7fa 100%); box-shadow: 0 30px 90px rgba(18,43,71,.28); }
.beyond-modal::before { position: absolute; z-index: 0; top: -74px; right: -68px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle,#fbe1e9 0%,rgba(251,225,233,0) 72%); content: ''; pointer-events: none; }
.beyond-modal > .modal-kicker,
.beyond-modal > #beyondBunnyContent { position: relative; z-index: 1; }
.beyond-welcome-stickers { display: flex; gap: 8px; margin: 0 0 9px; }
.beyond-welcome-stickers span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #fff; border-radius: 12px 12px 12px 4px; background: #eaf4ff; box-shadow: 0 5px 12px rgba(43,78,117,.08); font-size: 17px; }
.beyond-welcome-stickers span:nth-child(2) { transform: rotate(6deg); background: #fff0f4; }
.beyond-welcome-stickers span:nth-child(3) { transform: rotate(-5deg); background: var(--bunny-sunshine); }
.beyond-welcome-kicker { display: block; margin-bottom: 5px; color: #7b88a2; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.beyond-privacy { background: linear-gradient(110deg,#eaf4ff,#f2f0ff); }
.beyond-owner-note { background: linear-gradient(110deg,#f3f7ff,#fff2f6); }
.beyond-note-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; align-self: center; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(43,78,117,.08); }
.smoking-check { border-color: #d8e6f5; background: rgba(255,255,255,.86); box-shadow: 0 12px 32px rgba(43,78,117,.06); }
.smoking-check h3 { font-size: 22px; }
.beyond-choice { min-height: 48px; align-items: center; border-radius: 14px; background: rgba(255,255,255,.85); }
.beyond-choice:hover { border-color: #a8c6e2; background: #f7fbff; transform: translateY(-1px); }
.beyond-choice input { accent-color: #6f9cc5; }
.beyond-feedback-compatible,.beyond-feedback-positive,.beyond-feedback-continue,.beyond-feedback-neutral,.beyond-feedback-mismatch,.beyond-mismatch { padding: 16px 18px; border-radius: 15px; box-shadow: 0 7px 17px rgba(43,78,117,.05); }
.beyond-actions { gap: 12px; margin-top: 21px; }
.beyond-actions .btn { border-radius: 999px; }

/* Dating app polish: clear profile-first discovery and a warm, confident visual system. */
:root { --ink:#242127; --muted:#716b70; --paper:#fffaf8; --cream:#f8e9e7; --rose:#b64f68; --rose-dark:#92394f; --line:#eadfe0; --bunny-blush:#b64f68; }
body:not(.is-member-deck):not(.is-onboarding) { background:#fffaf8; background-image:radial-gradient(ellipse at 84% 16%,#f8e9e7 0,transparent 32%),radial-gradient(ellipse at 10% 70%,#f4f0fa 0,transparent 28%); }
.topbar { background:rgba(255,250,248,.94); border-bottom-color:#eee3e2; }
.brand { color:#26222a; }
.brand-mark,.brand-dot { color:#b64f68; }
.topbar nav { gap:10px; }
.topbar nav .btn-quiet:hover,.topbar nav>a:hover { color:#92394f; background:#f9e9ed; }
.btn-dark { background:#2c2830; }
.btn-dark:hover { background:#51444d; }
.hero { min-height:620px; }
.hero h1 { max-width:680px; font-size:clamp(46px,6.2vw,78px); line-height:1.02; letter-spacing:-3px; }
.hero h1 em { color:#b64f68; }
.hero-lede { max-width:490px; color:#69636a; }
.single-profile-note { color:#655b62; font-weight:700; }
.public-invite-card { border-color:#f2e4e5; background:linear-gradient(145deg,#fff 0%,#fff7f6 100%); }
.public-invite-card h2 em { color:#b64f68; }
.how-section { background:#fff; }
.section-heading h2 em { color:#b64f68; }
.step-number,.eyebrow { color:#9b5366; }
.beyond-bunny-section { background:#f8eeee; border-color:#eedfe2; }
.bottom-cta { background:#302731; }
.bottom-cta h2,.bottom-cta p { color:#fff; }

body.is-member-deck { min-height:100vh; overflow-x:hidden; overflow-y:auto; background:#fffaf8; color:#28242b; }
body.is-member-deck .topbar { min-height:68px; height:auto; padding-block:8px; background:rgba(255,250,248,.96); border-bottom-color:#efe3e4; }
body.is-member-deck .topbar nav { gap:5px; }
body.is-member-deck .topbar nav .btn { padding:9px 12px; color:#50474e; font-size:12px; }
body.is-member-deck .topbar nav .btn-dark { color:#fff; }
body.is-member-deck #home { min-height:calc(100vh - 68px); padding-bottom:35px; }
body.is-member-deck #home > .hero { height:auto; min-height:calc(100vh - 68px); padding:36px 16px 58px; align-items:flex-start; }
body.is-member-deck #heroVisual { width:min(510px,calc(100vw - 32px)); height:auto; min-height:0; margin:0 auto; }
body.is-member-deck #heroVisual::before { content:'ANI’S PROFILE'; top:-22px; padding:6px 11px; border:0; background:transparent; box-shadow:none; color:#9b5366; font-size:10px; letter-spacing:1.8px; }
body.is-member-deck #heroVisual .visual-glow { inset:-8% -24%; opacity:.5; background:radial-gradient(ellipse at center,#f5e5eb 0%,#fff8f7 55%,transparent 76%); }
body.is-member-deck .profile-card { display:block; width:100%; height:auto; max-height:none; padding:9px; overflow:hidden; border:1px solid #eee4e4; border-radius:24px; background:#fff; box-shadow:0 18px 55px rgba(60,36,48,.12); transform:none; will-change:auto; }
body.is-member-deck .profile-photo { height:auto; min-height:0; aspect-ratio:4/5; border-radius:18px; cursor:grab; }
body.is-member-deck .profile-photo:active { cursor:grabbing; }
body.is-member-deck .photo-overlay { background:linear-gradient(180deg,rgba(22,15,20,.2),transparent 32%,transparent 56%,rgba(22,15,20,.72)); }
body.is-member-deck .photo-progress { position:absolute; z-index:4; top:12px; right:12px; left:12px; display:flex; gap:4px; }
body.is-member-deck .photo-progress span { height:3px; flex:1; border-radius:99px; background:rgba(255,255,255,.52); }
body.is-member-deck .photo-progress span.is-seen,body.is-member-deck .photo-progress span.is-current { background:#fff; }
body.is-member-deck .photo-controls { position:absolute; z-index:4; top:23px; right:12px; display:flex; align-items:center; gap:6px; color:#fff; font-size:10px; font-weight:700; }
body.is-member-deck .photo-controls > span { min-width:36px; padding:5px 7px; border-radius:99px; background:rgba(35,27,32,.45); text-align:center; }
body.is-member-deck .photo-controls .reveal-nav-button { width:27px; height:27px; border:1px solid rgba(255,255,255,.48); background:rgba(35,27,32,.38); color:#fff; font-size:19px; }
body.is-member-deck .photo-identity { position:absolute; z-index:3; right:18px; bottom:17px; left:18px; color:#fff; }
body.is-member-deck .photo-identity h2 { margin:0 0 3px; color:#fff; font:700 clamp(25px,5vw,32px)/1.1 var(--sans); letter-spacing:-.7px; }
body.is-member-deck .photo-identity .profile-age { margin-left:0; font:500 19px/1 var(--sans); }
body.is-member-deck .photo-identity p { margin:0; color:rgba(255,255,255,.9); font-size:13px; }
body.is-member-deck .profile-featured { display:inline-block; margin-bottom:8px; color:rgba(255,255,255,.9); font-size:9px; font-weight:800; letter-spacing:1.4px; }
body.is-member-deck .reveal-tools { display:grid; grid-template-columns:1fr; gap:10px; min-height:0; padding:14px 9px 5px; }
body.is-member-deck .reveal-caption { padding:0; background:transparent; }
body.is-member-deck .reveal-sticker { display:none; }
body.is-member-deck .reveal-caption-text { color:#373039; font-size:14px; line-height:1.45; }
body.is-member-deck .reveal-surprise { color:#746b73; font-size:12px; line-height:1.5; }
body.is-member-deck .deck-profile-bio { margin:0; color:#6e6670; font-size:13px; line-height:1.65; }
body.is-member-deck .deck-photo-actions { position:static; display:flex; justify-content:stretch; gap:10px; width:auto; margin:0; pointer-events:auto; }
body.is-member-deck .deck-photo-actions button { min-height:48px; border-radius:14px; font-size:14px; box-shadow:none; backdrop-filter:none; }
body.is-member-deck .deck-photo-actions .deck-pass-button { display:inline-flex !important; flex:0 0 104px; border-color:#e6dadd; background:#fff; color:#514951; }
body.is-member-deck .deck-photo-actions .deck-like-button { display:flex; flex:1; width:auto; min-height:48px; padding:8px 18px; border:0; border-radius:14px; background:#b64f68; color:#fff; font-size:14px; }
body.is-member-deck .deck-photo-actions .deck-like-button span { display:inline; }
body.is-member-deck .deck-photo-actions .deck-like-button::after { content:none; }
body.is-member-deck .deck-photo-actions .deck-pass-button:hover { background:#fbf4f4; }
body.is-member-deck .deck-photo-actions .deck-like-button:hover { background:#92394f; }
body.is-member-deck .reveal-navigation { display:none !important; }
body.is-member-deck .reveal-gesture-hint { color:#8a7d86; font-size:10px; text-align:center; }
body.is-member-deck .deck-message-fab { right:max(20px,calc((100vw - 500px)/2)); bottom:23px; border:1px solid #ead9dd; background:#fff; color:#9c425b; box-shadow:0 6px 20px rgba(60,36,48,.12); }
body.is-member-deck .deck-emoji-field { display:none; }
body.is-member-deck .ambient-doodles { display:none; }
body.is-member-deck #navHow { display:none; }
.modal { border:1px solid #efe3e4; border-radius:24px; box-shadow:0 26px 80px rgba(41,27,36,.22); }
.dashboard-tabs { position:sticky; top:0; z-index:2; background:#fffaf8; }
.dashboard-tabs button.active { border-color:#b64f68; background:#f9e9ed; color:#92394f; }
.incoming-likes { border-color:#efdee2; background:#fff7f8; }
.like-btn { background:#b64f68; border-color:#b64f68; }
.like-btn:hover { background:#92394f; }
@media(max-width:680px) {
  body:not(.is-member-deck) .hero { min-height:570px; padding-block:45px 55px; }
  body.is-member-deck .topbar { min-height:60px; padding:8px 14px; }
  body.is-member-deck .topbar nav { width:100%; max-width:100%; gap:4px; overflow-x:auto; padding:3px 0 6px; }
  body.is-member-deck .topbar nav .btn { flex:0 0 auto; padding:8px 10px; font-size:10px; }
  body.is-member-deck #home > .hero { min-height:calc(100svh - 112px); padding:30px 14px 90px; }
  body.is-member-deck #heroVisual { width:min(500px,calc(100vw - 28px)); }
  body.is-member-deck .profile-photo { aspect-ratio:4/5; }
  body.is-member-deck .profile-card { padding:7px; border-radius:20px; }
  body.is-member-deck .profile-photo { border-radius:15px; }
  body.is-member-deck .deck-photo-actions .deck-pass-button { flex-basis:82px; }
  body.is-member-deck .deck-message-fab { right:16px; bottom:calc(15px + env(safe-area-inset-bottom)); }
}
.onboarding-panel { border-radius: 30px; box-shadow: 0 22px 60px rgba(35,69,105,.11),0 0 0 6px rgba(255,255,255,.24); }
.approval-question { border: 1px solid rgba(203,224,244,.75); background: linear-gradient(145deg,#f1f7ff,#edf2ff 68%,#fff2f6); }
.approval-slider { accent-color: #d66d8d; }
.approval-slider:focus-visible { outline: 3px solid rgba(214,109,141,.24); outline-offset: 5px; }
.approval-score { color: #b45777; }
.approval-result.passed { color: #28734f !important; }
.approval-result.not-approved { color: #b52e45 !important; }
@media (max-width: 680px) {
  body.is-member-deck #heroVisual::before { top: -5px; padding: 7px 11px; font-size: 8px; letter-spacing: .6px; }
  body.is-member-deck .deck-emoji-field span { width: 38px; height: 38px; font-size: 20px; }
  .beyond-welcome-stickers span { width: 31px; height: 31px; }
  .beyond-modal::before { opacity: .6; }
}

/* Optional midnight-blue look; the sky-blue palette stays the default. */
.theme-toggle:hover { transform: translateY(-1px); }
body.theme-midnight {
  color-scheme: dark;
  --ink: #e8f3ff;
  --muted: #a9bfd8;
  --paper: #09182b;
  --cream: #10243c;
  --rose: #78b9f5;
  --rose-dark: #4d96d8;
  --line: #294563;
  background: #09182b !important;
  color: #e8f3ff !important;
}
body.theme-midnight .topbar { background: rgba(8,24,43,.96) !important; border-color: #294563 !important; }
body.theme-midnight .topbar .brand,
body.theme-midnight .topbar nav > a,
body.theme-midnight .topbar nav .btn-quiet { color: #e8f3ff !important; }
body.theme-midnight .topbar nav .btn-quiet:hover,
body.theme-midnight .topbar nav > a:hover { background: #183552 !important; color: #a8d5ff !important; }
body.theme-midnight .hero,
body.theme-midnight .onboarding-screen,
body.theme-midnight .beyond-bunny-section { background: #0b1d33 !important; }
body.theme-midnight .how-section { background: #0e223a !important; }
body.theme-midnight .steps article,
body.theme-midnight .profile-card,
body.theme-midnight .modal,
body.theme-midnight .beyond-modal,
body.theme-midnight .onboarding-panel,
body.theme-midnight .smoking-check,
body.theme-midnight .approval-question,
body.theme-midnight .beyond-question,
body.theme-midnight .beyond-review-section,
body.theme-midnight .owner-reveal-item,
body.theme-midnight .dash-item,
body.theme-midnight .chat-box { background: #10243c !important; border-color: #294563 !important; color: #e8f3ff !important; }
body.theme-midnight .owner-reveal-intro,
body.theme-midnight .owner-reveal-saved,
body.theme-midnight .owner-reveal-fields label,
body.theme-midnight .owner-reveal-actions strong,
body.theme-midnight .owner-deck-settings legend,
body.theme-midnight .owner-deck-settings-grid label { color: #d4e9fb !important; }
body.theme-midnight .owner-reveal-actions button { border: 1px solid #355878 !important; background: #193653 !important; color: #e4f2ff !important; }
body.theme-midnight .reveal-crop-controls { border-color: #355878; }
body.theme-midnight .reveal-crop-controls legend,
body.theme-midnight .reveal-crop-controls label,
body.theme-midnight .reveal-crop-controls output { color: #d8eaff; }
body.theme-midnight .reveal-crop-controls button { border-color: #456888; background: #193653; color: #e4f2ff; }
body.theme-midnight .owner-reveal-actions button:disabled { opacity: .62 !important; color: #a9bfd8 !important; }
body.theme-midnight .owner-reveal-error { color: #ff9ca9 !important; }
body.theme-midnight .owner-deck-settings { border-color: #355878 !important; }
body.theme-midnight .owner-reveal-toolbar .btn-quiet { color: #e0efff !important; }
body.theme-midnight .owner-reveal-intro { font-size: 14px !important; line-height: 1.65; }
body.theme-midnight .owner-reveal-saved { font-size: 12px !important; }
body.theme-midnight .owner-reveal-fields label,
body.theme-midnight .owner-deck-settings-grid label { font-size: 13px !important; }
body.theme-midnight .owner-reveal-fields input,
body.theme-midnight .owner-reveal-fields select,
body.theme-midnight .owner-reveal-fields textarea,
body.theme-midnight .owner-deck-settings-grid input,
body.theme-midnight .owner-deck-settings-grid select { min-height: 44px; font-size: 14px !important; }
body.theme-midnight .owner-reveal-fields textarea { min-height: 76px; }
body.theme-midnight .owner-reveal-actions button { min-height: 36px; padding: 8px 11px; font-size: 11px !important; }
body.theme-midnight .owner-reveal-toolbar .btn { min-height: 44px; padding: 11px 15px; font-size: 12px !important; }
body.theme-midnight .owner-deck-settings legend { font-size: 15px; }
body.theme-midnight .hero h1,
body.theme-midnight .hero h2,
body.theme-midnight .section-heading h2,
body.theme-midnight .steps h3,
body.theme-midnight .beyond-bunny-inner h2,
body.theme-midnight .modal h2,
body.theme-midnight .modal h3,
body.theme-midnight .onboarding-panel h1,
body.theme-midnight .onboarding-panel h2,
body.theme-midnight .onboarding-panel h3,
body.theme-midnight .beyond-modal h2,
body.theme-midnight .beyond-modal h3,
body.theme-midnight .approval-question h3,
body.theme-midnight .dash-item strong { color: #e8f3ff !important; }
body.theme-midnight .hero-lede,
body.theme-midnight .section-heading p,
body.theme-midnight .steps p,
body.theme-midnight .modal-sub,
body.theme-midnight .form-note,
body.theme-midnight .beyond-lede,
body.theme-midnight .beyond-owner-note p,
body.theme-midnight .beyond-privacy span,
body.theme-midnight .approval-question-description,
body.theme-midnight .approval-result,
body.theme-midnight .beyond-review-answer span,
body.theme-midnight .beyond-review-answer p,
body.theme-midnight footer p,
body.theme-midnight footer > div { color: #a9bfd8 !important; }
body.theme-midnight .profile-card-body,
body.theme-midnight .reveal-tools,
body.theme-midnight .beyond-privacy,
body.theme-midnight .beyond-owner-note,
body.theme-midnight .beyond-feedback,
body.theme-midnight .beyond-mismatch,
body.theme-midnight .beyond-choice,
body.theme-midnight .beyond-question textarea,
body.theme-midnight .beyond-review,
body.theme-midnight .chat-messages,
body.theme-midnight .empty-state { background: #142b46 !important; color: #e8f3ff !important; border-color: #315170 !important; }
body.theme-midnight .profile-tags span,
body.theme-midnight .note-icon,
body.theme-midnight .heart-note,
body.theme-midnight .reveal-sticker,
body.theme-midnight .reveal-navigation > span,
body.theme-midnight .reveal-nav-button,
body.theme-midnight .reveal-replay,
body.theme-midnight .dashboard-tabs button,
body.theme-midnight .dash-item button,
body.theme-midnight .approval-clear,
body.theme-midnight .modal-close { background: #193653 !important; color: #cce6ff !important; border-color: #355878 !important; }
body.theme-midnight .dashboard-tabs button.active,
body.theme-midnight .btn-dark,
body.theme-midnight .chat-compose button { background: #2875b7 !important; color: #fff !important; }
body.theme-midnight .bottom-cta { background: #06111f !important; }
body.theme-midnight .bottom-cta .eyebrow,
body.theme-midnight .bottom-cta p { color: #c4ddf6 !important; }
body.theme-midnight .btn-light { background: #e5f3ff !important; color: #10243c !important; }
body.theme-midnight footer { background: #081526 !important; }
body.theme-midnight .modal-backdrop { background: rgba(2,9,18,.78) !important; }
body.theme-midnight .tabs { background: #0a1b2f !important; }
body.theme-midnight .tab { color: #a9bfd8 !important; }
body.theme-midnight .tab.active { background: #193653 !important; color: #e8f3ff !important; }
body.theme-midnight .auth-form label,
body.theme-midnight .check-label,
body.theme-midnight .beyond-choice,
body.theme-midnight .beyond-step-label,
body.theme-midnight .beyond-prefer-not { color: #d2e6f8 !important; }
body.theme-midnight .auth-form input:not([type=checkbox]),
body.theme-midnight .auth-form textarea,
body.theme-midnight .auth-form select,
body.theme-midnight .zodiac-form select,
body.theme-midnight .owner-reveal-fields input,
body.theme-midnight .owner-reveal-fields select,
body.theme-midnight .owner-deck-settings-grid input,
body.theme-midnight .owner-deck-settings-grid select,
body.theme-midnight .chat-compose input { background: #0b1d33 !important; border-color: #355878 !important; color: #e8f3ff !important; }
body.theme-midnight input::placeholder,
body.theme-midnight textarea::placeholder { color: #829bb5 !important; }
body.theme-midnight .approval-question { background: linear-gradient(145deg,#122b47,#142943 68%,#1b2944) !important; }
body.theme-midnight .onboarding-heading h1 { color: #edf6ff !important; }
body.theme-midnight .onboarding-heading .eyebrow { color: #7fc4ff !important; }
body.theme-midnight .onboarding-heading p { color: #c2d8ec !important; }
body.theme-midnight .onboarding-question,
body.theme-midnight .onboarding-options legend,
body.theme-midnight .onboarding-multi legend { color: #e6f2ff !important; }
body.theme-midnight .onboarding-question .optional { color: #a9c7e2 !important; }
body.theme-midnight .onboarding-progress-row { color: #c6def4 !important; }
body.theme-midnight .onboarding-progress-row strong,
body.theme-midnight .onboarding-progress-row span { color: #c6def4 !important; }
body.theme-midnight .onboarding-progress { background: #25415d !important; }
body.theme-midnight .onboarding-progress span { background: linear-gradient(90deg,#4a9be0,#8bd0ff) !important; }
body.theme-midnight .approval-reaction { color: #d1e2f3 !important; }
body.theme-midnight .approval-reaction.needs-work { color: #ffb9c7 !important; }
body.theme-midnight .approval-reaction.passed { color: #91e2b2 !important; }
body.theme-midnight .approval-result.not-approved { color: #ff8798 !important; }
body.theme-midnight .approval-result.passed { color: #91e2b2 !important; }
body.theme-midnight .approval-slider::-webkit-slider-runnable-track { background: linear-gradient(90deg,#e2769a var(--score-fill,0%),#35516e var(--score-fill,0%)); }
body.theme-midnight .approval-slider::-moz-range-track { background: #35516e; }
body.theme-midnight .approval-slider::-moz-range-progress { background: #e2769a; }
body.theme-midnight .approval-scale button { color: #bdd3e8; }
body.theme-midnight .approval-scale button[aria-pressed="true"] { background: #315878; color: #fff; }
body.theme-midnight .approval-ani-button { border-color: #3c668b; background: #153451; color: #cce7ff; }
body.theme-midnight .approval-ani-button:hover { border-color: #78b8e9; background: #1b4164; }
body.theme-midnight .approval-slider-hint { color: #c0d6ea !important; }
body.theme-midnight .approval-gate { border-color: #355878; background: #10243c; color: #edf6ff; }
body.theme-midnight .approval-gate .onboarding-kicker,
body.theme-midnight .approval-gate h2 { color: #edf6ff !important; }
body.theme-midnight .approval-gate p,
body.theme-midnight .approval-gate small { color: #c4d9ed !important; }
body.theme-midnight .approval-score,
body.theme-midnight .approval-scale strong,
body.theme-midnight .approval-question-meta,
body.theme-midnight .approval-text-label { color: #91caff !important; }
body.theme-midnight .beyond-progress { background: #193653 !important; }
body.theme-midnight .beyond-progress span { background: #65b6ff !important; }
body.theme-midnight .beyond-choice:has(input:checked) { background: #173b5e !important; border-color: #67b6fa !important; }
body.theme-midnight .beyond-choice input,
body.theme-midnight .check-label input { accent-color: #75beff; }
body.theme-midnight .deck-emoji-field { background: radial-gradient(ellipse at 10% 28%,rgba(49,116,178,.28),transparent 31%),radial-gradient(ellipse at 90% 72%,rgba(56,97,157,.22),transparent 29%),#09182b !important; }
body.theme-midnight .profile-card { box-shadow: 0 28px 80px rgba(0,0,0,.42),0 0 0 5px rgba(113,183,239,.08) !important; }
body.theme-midnight .visual-glow { background: radial-gradient(circle,#1b3c5d,#10243c 72%) !important; }
body.theme-midnight .beyond-saved-note,
body.theme-midnight .beyond-progress-row,
body.theme-midnight .beyond-success p,
body.theme-midnight .beyond-loading,
body.theme-midnight .beyond-error,
body.theme-midnight .beyond-delete,
body.theme-midnight .link-button { color: #a9bfd8 !important; }
body.theme-midnight .beyond-modal::before { opacity: .2; }
body.theme-midnight .cosmic-card,
body.theme-midnight .cosmic-result,
body.theme-midnight .horoscope-preview { background: #142b46 !important; color: #e8f3ff !important; }
body.theme-midnight .horoscope-preview .horoscope-kicker,
body.theme-midnight .horoscope-preview .horoscope-teaser,
body.theme-midnight .horoscope-preview .horoscope-disclaimer { color: #c1d7eb !important; }
body.theme-midnight .horoscope-preview #horoscopePreviewCopy { color: #f0f7ff !important; }
body.theme-midnight .horoscope-preview .btn,
body.theme-midnight .horoscope-preview .btn-quiet { background: #2875b7 !important; border-color: #4c91cf !important; color: #fff !important; }
body.theme-midnight .horoscope-preview .horoscope-result { background: #0b1d33 !important; color: #f0f7ff !important; border: 1px solid #355878; }
body.theme-midnight .horoscope-preview .horoscope-result * { color: #f0f7ff !important; }
body.theme-midnight .cosmic-result .cosmic-score { background: #193653 !important; color: #a8d5ff !important; }
body.theme-midnight .toast { background: #183653 !important; }
body.theme-midnight .member-profile-editor,
body.theme-midnight .member-photo-section,
body.theme-midnight .member-stories-form { color: #e8f3ff !important; }
body.theme-midnight .member-photo-item,
body.theme-midnight .member-like-card { background: #10243c !important; border-color: #315170 !important; color: #e8f3ff !important; }
body.theme-midnight .member-photo-item strong,
body.theme-midnight .member-profile-heading,
body.theme-midnight .member-stories-form label,
body.theme-midnight .member-like-head strong,
body.theme-midnight .member-like-stories strong { color: #e8f3ff !important; }
body.theme-midnight .member-profile-editor p,
body.theme-midnight .member-profile-editor small,
body.theme-midnight .member-like-card small,
body.theme-midnight .member-like-card p { color: #afc6dc !important; }
body.theme-midnight .member-photo-actions button,
body.theme-midnight .member-photo-add { background: #193653 !important; border-color: #355878 !important; color: #dcedff !important; }
body.theme-midnight .member-like-stories section { background: #142b46 !important; border-color: #315170 !important; }
body.theme-midnight * { scrollbar-color: #47749a #0d2138; }
body.theme-midnight ::-webkit-scrollbar-track { border-color: #0d2138; background: #10243c; }
body.theme-midnight ::-webkit-scrollbar-thumb { border-color: #0d2138; background: linear-gradient(180deg,#5288b6,#315c82); }
body.theme-midnight .theme-toggle { width: 40px; min-width: 40px; height: 40px; padding: 0 !important; border: 1px solid #355878; border-radius: 50%; background: #142b46; color: #d5ecff; font-size: 18px; }
body.theme-midnight .theme-toggle::after { content: none; }
body.theme-midnight .member-photo-add input { color: #d4e9fb; }
body.theme-midnight .member-photo-add input::file-selector-button { border: 0; border-radius: 8px; background: #2875b7; color: white; padding: 8px 10px; }
/* Keep both palettes available and make the switch easy to reach. */
.theme-toggle { display: inline-flex !important; align-items: center; justify-content: center; width: 40px; min-width: 40px; height: 40px; padding: 0 !important; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }
#soundToggle { display: inline-flex !important; align-items: center; justify-content: center; width: 40px; min-width: 40px; height: 40px; padding: 0 !important; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }
body.theme-midnight #soundToggle { border-color: #355878; background: #142b46; color: #d5ecff; }
body.theme-midnight #themeToggle { border-color: #355878 !important; background: #142b46 !important; color: #d5ecff !important; }
body.theme-midnight #themeToggle:hover { background: #183552 !important; }
body:not(.theme-midnight) #themeToggle { border-color: #b9d7ef; background: #fff; color: #285b91; }
.owner-music-manager { display:grid; gap:13px; max-width:680px; margin-top:10px; }
.owner-music-manager h3 { margin:0; color:var(--ink); font:600 22px/1.25 var(--serif); }
.owner-music-manager>p,.owner-music-manager>small,.owner-music-empty { margin:0; color:var(--muted); font-size:11px; line-height:1.6; }
.owner-music-upload { display:inline-flex; align-items:center; justify-content:center; width:max-content; min-height:42px; padding:9px 14px; border:1px solid var(--line); border-radius:9px; background:#fff; color:#285b91; font-size:11px; font-weight:700; cursor:pointer; }
.owner-music-upload input { max-width:235px; margin-left:10px; font-size:10px; }
.owner-music-preview { width:min(100%,480px); height:40px; }
.owner-music-manager form { display:grid; gap:13px; padding:15px; border:1px solid var(--line); border-radius:12px; background:rgba(234,244,255,.35); }
.owner-music-manager form>label { display:grid; grid-template-columns:1fr auto; align-items:center; gap:6px 12px; color:var(--ink); font-size:11px; font-weight:700; }
.owner-music-manager form input[name="title"],.owner-music-manager form input[type="range"] { grid-column:1/-1; width:100%; }
.owner-music-manager form input[type="range"] { accent-color:#2877b8; }
.owner-music-manager .owner-music-enable { display:flex; justify-content:flex-start; gap:9px; }
.owner-music-manager .owner-music-enable input { accent-color:#2877b8; }
.owner-music-actions { display:flex; flex-wrap:wrap; gap:9px; }
.owner-music-status { min-height:16px; margin:0; color:#28734f; font-size:10px; }
body.theme-midnight .owner-music-manager form { background:#10243c; border-color:#315170; }
body.theme-midnight .owner-music-manager form>label { color:#e8f3ff; }
body.theme-midnight .owner-music-upload { background:#142b46; color:#d5ecff; border-color:#355878; }
body.theme-midnight .deck-emoji-field { display: block; position: fixed; z-index: 0; inset: 74px 0 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 10% 28%,rgba(49,116,178,.36),transparent 31%),radial-gradient(ellipse at 90% 72%,rgba(56,97,157,.32),transparent 29%),#09182b; }
body.theme-midnight .deck-emoji-field span { position:absolute; display:grid; width:50px; height:50px; place-items:center; font-size:27px; opacity:.68; animation:bunny-float 5.8s ease-in-out infinite; filter:drop-shadow(0 5px 12px rgba(0,0,0,.22)); }
body.theme-midnight .topbar { position:sticky; top:0; z-index:20; }
body.theme-midnight #home,body.theme-midnight footer { position:relative; z-index:1; }
body.theme-midnight .modal-backdrop { background:rgba(3,14,28,.77); }
body.theme-midnight #dashboardModal .modal::before { position:absolute; z-index:0; right:18px; bottom:14px; content:'💙  ✨  🐰'; font-size:24px; letter-spacing:10px; opacity:.17; pointer-events:none; }
body.theme-midnight #dashboardModal .modal > * { position:relative; z-index:1; }
body.theme-midnight .member-share-choice { background:#193653 !important; border:1px solid #3c668b !important; color:#edf6ff !important; }
body.theme-midnight .member-share-choice span { color:#edf6ff !important; }
body.theme-midnight .member-share-choice input { accent-color:#79c3ff; }
.featured-prompt-picker { grid-template-columns:1fr; max-height:470px; gap:12px; padding:4px; }
.featured-prompt-choice { min-height:132px; }
@media (max-width: 700px) { .featured-prompt-picker { max-height:440px; } }

/* Header: one aligned row on desktop, a real menu on smaller screens. */
.topbar { min-height: 74px; height: auto; gap: 24px; }
.topbar .brand { flex: 0 0 auto; min-width: max-content; white-space: nowrap; }
.brand-name { flex:0 0 auto; white-space:nowrap; }
.topbar nav { min-width: 0; gap: 4px; }
.topbar nav .btn { min-height: 38px; padding: 8px 7px; white-space: nowrap; }
.topbar nav .btn-quiet { gap: 4px; }
.topbar nav > a { white-space: nowrap; padding: 9px 7px; border-radius: 999px; }
.topbar nav > a:focus-visible, .topbar nav button:focus-visible, .nav-menu-toggle:focus-visible { outline: 3px solid #78b9f5; outline-offset: 2px; }
.icon-button { position: relative; min-width: 40px; padding-inline: 10px !important; }
.icon-button::before { content: none !important; }
.nav-badge { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 1px 4px; border-radius: 999px; background: #d77991; color: #fff; font-size: 9px; line-height: 15px; }
.nav-menu-toggle { display: none; width: auto; min-width: 98px; height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.topbar nav .is-active { background: #dcebf9; color: #17304d; box-shadow: inset 0 0 0 1px #bdd8f0; }
body.theme-midnight .topbar nav .is-active { background: #183e63 !important; color: #e8f3ff !important; }
body.theme-midnight .nav-menu-toggle { border-color:#355878; background:#142b46; color:#d5ecff; }
@media (max-width: 1100px) {
  .topbar { padding-inline: 20px; gap: 12px; }
  .topbar nav .btn, .topbar nav > a { font-size: 11px; padding-inline: 8px; }
}
@media (max-width: 820px) {
  .topbar { min-height: 64px; position: sticky; }
  .topbar .brand { white-space: nowrap; }
  .nav-menu-toggle { display: grid; place-items: center; margin-left: auto; }
  .topbar nav { display: none; position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); box-shadow: 0 18px 38px rgba(12,35,58,.18); grid-template-columns: repeat(2,minmax(0,1fr)); }
  .topbar nav.is-open { display: grid; }
  .topbar nav.is-open { z-index: 21; }
  .topbar nav > a, .topbar nav .btn { width: 100%; justify-content: center; min-height: 42px; }
  .topbar nav .icon-button { width: 42px; justify-self: center; }
}
@media (max-width: 390px) { .topbar nav { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  body.theme-midnight .topbar { background: rgba(8,24,43,.98) !important; }
  body.theme-midnight .topbar .theme-toggle { flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; padding: 0 !important; }
}

.member-profile-editor { display: grid; gap: 20px; }
.member-profile-view { display: grid; gap: 18px; }
.member-view-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.member-view-heading h3 { margin: 6px 0 2px; color: var(--ink); font: 600 26px/1.2 var(--serif); }
.member-view-heading p,.member-view-bio { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.member-view-section { padding: 15px 0; border-top: 1px solid var(--line); }
.member-view-section h4 { display: flex; justify-content: space-between; margin: 0 0 11px; color: var(--ink); font-size: 13px; }
.member-view-section h4 span { color: var(--muted); font-size: 10px; font-weight: 500; }
.member-view-photos { display: flex; gap: 9px; overflow-x: auto; }
.member-view-photos img { flex: 0 0 96px; width: 96px; height: 122px; border-radius: 10px; object-fit: cover; }
.member-view-photos p,.member-view-prompts>p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.member-view-prompts { display: grid; gap: 8px; }
.member-view-prompt { padding: 11px 12px; border-left: 3px solid #d77991; background: rgba(234,244,255,.55); }
.member-view-prompt strong { color: var(--ink); font-size: 11px; }
.member-view-prompt p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.member-view-privacy { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.deck-message-fab { position:fixed; z-index:12; right:max(22px,env(safe-area-inset-right)); bottom:max(22px,env(safe-area-inset-bottom)); display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:48px; padding:0 17px; border:1px solid rgba(255,255,255,.9); border-radius:999px; background:#fff; color:#17304d; box-shadow:0 10px 28px rgba(9,24,43,.22); font-size:12px; font-weight:800; cursor:pointer; transition:transform .18s ease,box-shadow .18s ease; }
.deck-message-fab:hover { transform:translateY(-2px); box-shadow:0 14px 32px rgba(9,24,43,.3); }
.deck-message-fab>span:first-child { font-size:17px; }
body.theme-midnight .deck-message-fab { border-color:#47749a; background:#173653; color:#e8f3ff; }
@media (max-width: 500px) { .deck-message-fab { right:16px; bottom:16px; min-height:46px; padding:0 14px; } }
.deck-quick-controls { position:fixed; z-index:12; right:max(22px,env(safe-area-inset-right)); bottom:82px; display:grid; justify-items:center; gap:8px; }
body:not(.is-member-deck) .deck-quick-controls { display:none; }
.deck-quick-controls .theme-toggle { width:42px; min-width:42px; height:42px; padding:0 !important; border-radius:50%; font-size:18px; }
body.theme-midnight .deck-quick-controls .theme-toggle { width:42px; min-width:42px; height:42px; padding:0 !important; border-radius:50%; }
.deck-quick-controls #soundToggle,.deck-quick-controls #musicToggle { width:42px; min-width:42px; height:42px; padding:0 !important; }
@media (max-width:500px) { .deck-quick-controls { right:16px; bottom:76px; } }
body.theme-midnight .member-view-prompt { background: #142b46; border-color: #d77991; }
body.theme-midnight .member-view-prompt strong { color: #e8f3ff; }
body.theme-midnight .member-view-prompt p { color: #bdd4e9; }
body.theme-midnight .member-view-section { border-color: #315170; }
.required-field-note { display: block; color: #52657B; font-size: 10px; font-weight: 600; }
.required-caption { display: block; }
.required-mark { color: #C45E79; font-weight: 800; }
.profile-setup-intro { position: relative; overflow: hidden; padding: 5px 4px 17px; border-bottom: 1px solid var(--line); animation: profile-copy-arrive .5s ease-out both; }
.profile-setup-step { color: #52657B; font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.profile-setup-intro h3 { margin: 8px 70px 5px 0; color: var(--ink); font: 600 25px/1.2 var(--serif); }
.profile-setup-intro p { max-width: 540px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.profile-setup-doodle { position: absolute; right: 5px; bottom: 11px; font-size: 27px; animation: profile-doodle-bob 2.8s ease-in-out infinite; }
.profile-setup-intro + header { animation: profile-copy-arrive .55s .08s ease-out both; }
.member-stories-form .featured-prompt-choice { animation: prompt-card-arrive .35s ease-out both; }
.member-stories-form .featured-prompt-choice:nth-child(2) { animation-delay: .04s; }
.member-stories-form .featured-prompt-choice:nth-child(3) { animation-delay: .08s; }
.member-stories-form .featured-prompt-choice:nth-child(4) { animation-delay: .12s; }
.member-stories-form .featured-prompt-choice:nth-child(5) { animation-delay: .16s; }
.member-stories-form .featured-prompt-choice:nth-child(6) { animation-delay: .2s; }
@keyframes profile-copy-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes profile-doodle-bob { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-6px) rotate(5deg); } }
@keyframes prompt-card-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .profile-setup-intro, .profile-setup-intro + header, .profile-setup-doodle, .member-stories-form .featured-prompt-choice { animation: none !important; }
}
.incoming-likes { margin-top: 16px; padding: 22px; border: 1px solid #b9d8ee; border-radius: 18px; background: linear-gradient(135deg,#eef8ff,#fff 72%); color: #17304d; }
.incoming-likes h3 { margin: 0 0 8px; font: 600 24px/1.2 var(--serif); }

.mobile-tabbar { display: none; }
@media (max-width: 820px) {
  html, body { overflow-x: clip; }
  body.has-mobile-tabs { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  #mobileTabBar:not(.hidden) {
    position: fixed;
    z-index: 30;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(110,145,177,.26);
    background: rgba(255,255,255,.97);
    box-shadow: 0 -8px 24px rgba(18,43,69,.09);
    backdrop-filter: blur(16px);
  }
  #mobileTabBar.is-owner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #mobileTabBar.is-guest { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .topbar nav.is-open { box-sizing: border-box; max-width: calc(100vw - 24px); min-width: 0; }
  .topbar nav.is-open > * { min-width: 0; white-space: normal; }
  .mobile-tab {
    display: grid;
    min-width: 0;
    min-height: 51px;
    place-content: center;
    justify-items: center;
    gap: 3px;
    padding: 4px 2px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #647991;
    cursor: pointer;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-tab svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-tab.is-active { background: #eaf4ff; color: #285b91; }
  .mobile-tab:focus-visible { outline: 2px solid #78b9f5; outline-offset: -2px; }
  body.theme-midnight #mobileTabBar {
    border-color: #294563;
    background: rgba(8,24,43,.97);
  }
  body.theme-midnight .mobile-tab { color: #a9c2db; }
  body.theme-midnight .mobile-tab.is-active { background: #183e63; color: #b9dcff; }
  body.is-onboarding #mobileTabBar { display: none !important; }
  body.is-onboarding.has-mobile-tabs { padding-bottom: 0; }
  body.has-mobile-tabs .deck-message-fab { display: none !important; }
}

.incoming-likes p { margin: 0 0 16px; color: #496983; line-height: 1.65; }
body.theme-midnight .incoming-likes { background: #142b46; border-color: #315170; color: #e8f3ff; }
body.theme-midnight .incoming-likes p { color: #b9d6ee; }
.member-profile-editor header h3 { margin: 4px 0 6px; font: 600 24px/1.2 var(--serif); color: var(--ink); }
.member-profile-editor header p,
.member-profile-hint { color: var(--muted); font-size: 12px; line-height: 1.65; }
.member-photo-section,
.member-stories-form { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(234,244,255,.42); }
.member-profile-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--ink); font-size: 13px; }
.member-profile-heading span { color: var(--muted); font-size: 11px; }
.member-photo-add { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; overflow: hidden; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: white; color: #285b91; font-size: 12px; font-weight: 700; cursor: pointer; }
.member-photo-add input { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; opacity: 0; cursor: pointer; }
.member-photo-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 10px; margin-top: 14px; }
.member-photo-item { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: white; }
.member-photo-item > img { display: block; width: 100%; height: 180px; object-fit: cover; }
.member-photo-item > div { padding: 10px; }
.member-photo-item strong { color: var(--ink); font-size: 11px; }
.member-photo-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.member-photo-actions button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: #f4f8fc; color: #294766; font-size: 10px; cursor: pointer; }
.member-photo-actions button:disabled { opacity: .5; cursor: default; }
.member-photo-actions [data-photo-delete] { color: #a83a51; }
.member-profile-empty { grid-column: 1/-1; margin: 0; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 12px; text-align: center; }
.member-profile-hint { margin: 9px 0 0; font-size: 10px; }
.member-stories-form { display: grid; gap: 12px; }
.member-stories-form label { display: grid; gap: 6px; color: #294766; font-size: 12px; font-weight: 700; }
.member-stories-form textarea { width: 100%; min-height: 70px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); font: 400 12px/1.5 var(--sans); resize: vertical; }
.member-stories-form small { color: var(--muted); font-size: 10px; font-weight: 400; }
.member-stories-form > p { min-height: 16px; margin: 0; color: #28734f; font-size: 11px; }
.member-like-card { display: grid; gap: 12px; align-items: stretch; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.member-like-head strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; }
.member-like-head small { color: var(--muted); font-size: 10px; }
.member-like-photos { display: grid; grid-template-columns: repeat(auto-fill,minmax(92px,1fr)); gap: 8px; }
.member-like-photos img { width: 100%; height: 130px; border-radius: 10px; object-fit: cover; }
.member-like-stories { display: grid; gap: 7px; }
.member-like-stories section { padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #f2f7fc; }
.member-like-stories strong { color: #294766; font-size: 10px; }
.member-like-stories p,.member-like-bio,.member-like-empty { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.member-like-actions { display: flex; justify-content: flex-end; }
.member-like-actions button { padding: 9px 14px; border: 0; border-radius: 999px; background: #2875b7; color: white; font-size: 11px; font-weight: 700; cursor: pointer; }
@media (max-width: 600px) {
  .member-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .member-photo-item > img { height: 145px; }
  .member-photo-add { align-items: flex-start; flex-direction: column; }
}
.questionnaire-modal { width: min(900px,100%); }
.questionnaire-top { padding-right: 28px; }
.questionnaire-top h2,.questionnaire-modal h2 { color: var(--navy,#172b46); }
.questionnaire-top p,.questionnaire-lede { color: #637a99; line-height: 1.65; }
.questionnaire-progress-row { display:flex; justify-content:space-between; gap:12px; margin-top:18px; color:#547092; font-size:12px; }
.questionnaire-answer-progress { display:grid; gap:6px; margin-top:12px; padding:10px 12px; border:1px solid #d2e2f3; border-radius:11px; background:#f7fbff; }
.questionnaire-answer-progress .questionnaire-progress-row { margin:0; font-size:10px; }
.questionnaire-answer-progress .questionnaire-progress { height:6px; margin:0; }
.questionnaire-answer-progress small { color:#657d96; font-size:9px; line-height:1.45; }
.questionnaire-answer-progress strong { color:#285b91; }
.required-mark { color:#c45e79; font-weight:800; }
body.theme-midnight .questionnaire-answer-progress { background:#10243c; border-color:#315170; }
body.theme-midnight .questionnaire-answer-progress small { color:#bdd4e9; }
body.theme-midnight .questionnaire-answer-progress strong { color:#91caff; }
.questionnaire-progress { height:7px; background:#dce9f7; border-radius:9px; overflow:hidden; margin:9px 0 18px; }
.questionnaire-progress span { display:block; height:100%; background:linear-gradient(90deg,#2f6eaa,#7dc4ff); border-radius:inherit; }
.questionnaire-category-nav { display:flex; gap:8px; overflow-x:auto; padding:4px 2px 12px; margin-bottom:12px; scrollbar-width:thin; }
.questionnaire-category-nav button { flex:none; border:1px solid #cfe0f5; background:#f5faff; color:#294563; border-radius:20px; padding:9px 12px; font-size:12px; cursor:pointer; }
.questionnaire-category-nav button.active { background:#17304d; border-color:#17304d; color:#fff; }
.questionnaire-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; max-height:min(49vh,520px); overflow-y:auto; padding:2px 4px 8px 0; }
.questionnaire-question { display:grid; align-content:start; gap:7px; color:#1c3553; font-size:13px; font-weight:650; }
.questionnaire-question textarea,.questionnaire-question select { width:100%; min-height:46px; border:1px solid #c9dcf3; border-radius:12px; padding:11px 12px; background:#fff; color:#172d49; font:500 13px/1.45 var(--sans,Arial,sans-serif); resize:vertical; }
.questionnaire-question textarea:focus,.questionnaire-question select:focus { outline:3px solid #78b8eb55; border-color:#5797d1; }
.questionnaire-question small { color:#607a9b; font-weight:400; line-height:1.5; }
.questionnaire-options { display:grid; gap:7px; }
.questionnaire-options label { display:flex; align-items:center; gap:8px; padding:7px 9px; background:#f6faff; border:1px solid #d9e7f7; border-radius:10px; font-weight:500; }
.questionnaire-options input { accent-color:#2877b8; }
.questionnaire-private-note { margin:15px 0; padding:13px 15px; background:#edf5ff; border-radius:12px; color:#4f698a; font-size:12px; line-height:1.6; }
.questionnaire-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:15px; }
.questionnaire-actions span { flex:1; }
.questionnaire-actions button { min-height:42px; }
.questionnaire-index { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; margin:22px 0; }
.questionnaire-index-card { min-height:125px; display:grid; grid-template-columns:auto 1fr; align-content:start; align-items:center; gap:5px 10px; text-align:left; padding:14px; color:#17304d; background:#f5faff; border:1px solid #cfe0f5; border-radius:15px; cursor:pointer; }
.questionnaire-index-card:hover { border-color:#77aee0; transform:translateY(-2px); }
.questionnaire-index-card>span { font-size:23px; grid-row:span 2; }
.questionnaire-index-card strong { font-size:13px; }
.questionnaire-index-card small { color:#6b83a0; }
.questionnaire-index-card b { grid-column:2; margin-top:8px; color:#276da8; font-size:12px; }
.questionnaire-approval { display:grid; justify-items:start; gap:10px; margin:20px 0; padding:20px; border-radius:14px; background:#edf5ff; color:#334d6d; }
@media(max-width:700px) {
  .questionnaire-fields { grid-template-columns:1fr; max-height:48vh; }
  .questionnaire-index { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .questionnaire-actions span { display:none; }
  .questionnaire-actions { justify-content:space-between; }
  .questionnaire-progress-row { font-size:10px; }
}
@media(max-width:390px) { .questionnaire-index { grid-template-columns:1fr; } .questionnaire-actions button { flex:1; padding-inline:10px; } }
.member-basics-form { display:grid; gap:12px; padding:16px; border:1px solid #d3e2f2; border-radius:14px; background:#fff; }
.member-basics-form label,.member-stories-form>label:not(.check-label) { display:grid; gap:6px; color:#1c3553; font-size:12px; font-weight:650; }
.member-basics-form input,.member-basics-form select,.member-basics-form textarea,.member-stories-form select,.featured-prompt-choice textarea { width:100%; border:1px solid #c9dcf3; border-radius:10px; padding:10px 12px; color:#17304d; background:#fff; font:500 13px/1.4 var(--sans,Arial,sans-serif); }
.member-profile-editor .form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.member-profile-editor .member-photo-item { display:grid; grid-template-columns:118px minmax(0,1fr); gap:14px; padding:12px; border:1px solid #d2e1f2; border-radius:14px; background:#fff; }
.member-profile-editor .member-photo-item img { width:118px; height:136px; object-fit:cover; border-radius:10px; }
.member-photo-actions { display:flex; gap:6px; flex-wrap:wrap; margin-top:9px; }
.member-photo-item[draggable="true"] { cursor:grab; }
.member-photo-item.is-dragging { opacity:.5; }
.member-editor-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.member-photo-actions button,.member-photo-replace { border:1px solid #c7d9ec; color:#294563; background:#f5faff; padding:8px 10px; border-radius:9px; font-size:11px; cursor:pointer; }
.member-photo-actions button:disabled { opacity:.5; cursor:default; }
.member-photo-replace { position:relative; display:inline-flex; align-items:center; min-height:40px; overflow:hidden; }
.member-photo-replace input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.member-photo-details { min-width:0; }
.member-upload-progress { width:100%; height:9px; margin:8px 0; accent-color:#2877b8; }
.member-upload-error { color:#b42337; font-size:11px; }
.member-profile-editor .member-stories-form { display:grid; gap:12px; }
.featured-prompt-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; max-height:420px; overflow:auto; padding:2px; }
.featured-prompt-choice { display:grid; gap:8px; align-content:start; padding:12px; border:1px solid #d2e1f2; border-radius:12px; color:#294563; background:#fff; font-size:12px; }
.featured-prompt-choice>span { line-height:1.5; }
.featured-prompt-choice input { accent-color:#2877b8; margin-right:6px; }
.featured-prompt-choice b { color:#67819e; }
.featured-prompt-choice small { color:#68809d; }
.featured-prompt-choice textarea:disabled { background:#f4f7fa; opacity:.65; }
.member-share-choice { padding:13px; background:#edf5ff; border-radius:12px; color:#294563; }
.member-profile-preview { padding:15px; border:1px solid #d2e1f2; border-radius:13px; color:#294563; }
.member-profile-preview h4 { margin:0 0 6px; }
.member-profile-preview p { font-size:12px; line-height:1.55; color:#607a9b; }
.member-preview-photos { display:flex; gap:8px; overflow:auto; margin:10px 0; }
.member-preview-photos img { width:96px; height:116px; object-fit:cover; border-radius:10px; }
.member-preview-prompt { padding:10px 0; border-top:1px solid #dce8f5; }
.member-preview-prompt p { margin:5px 0 0; color:#294563; }
@media(max-width:560px) { .member-profile-editor .form-row { grid-template-columns:1fr; } .member-profile-editor .member-photo-item { grid-template-columns:82px minmax(0,1fr); } .member-profile-editor .member-photo-item img { width:82px; height:104px; } .featured-prompt-picker { grid-template-columns:1fr; max-height:360px; } }
body.theme-midnight .questionnaire-top p,
body.theme-midnight .questionnaire-lede,
body.theme-midnight .questionnaire-progress-row,
body.theme-midnight .questionnaire-index-card small,
body.theme-midnight .questionnaire-question,
body.theme-midnight .questionnaire-question small,
body.theme-midnight .questionnaire-private-note,
body.theme-midnight .questionnaire-approval,
body.theme-midnight .member-basics-form label,
body.theme-midnight .member-stories-form>label:not(.check-label),
body.theme-midnight .featured-prompt-choice,
body.theme-midnight .member-profile-preview { color:#d8eaff !important; }
body.theme-midnight .questionnaire-category-nav button,
body.theme-midnight .questionnaire-index-card,
body.theme-midnight .questionnaire-private-note,
body.theme-midnight .questionnaire-approval,
body.theme-midnight .featured-prompt-choice,
body.theme-midnight .member-basics-form,
body.theme-midnight .member-profile-preview { background:#142b46 !important; border-color:#315170 !important; }
body.theme-midnight .questionnaire-category-nav button.active { background:#2875b7 !important; color:#fff !important; }
body.theme-midnight .questionnaire-index-card strong,
body.theme-midnight .questionnaire-index-card b,
body.theme-midnight .questionnaire-question>span,
body.theme-midnight .member-profile-preview h4 { color:#e8f3ff !important; }
body.theme-midnight .questionnaire-question textarea,
body.theme-midnight .questionnaire-question select,
body.theme-midnight .member-basics-form input,
body.theme-midnight .member-basics-form select,
body.theme-midnight .member-basics-form textarea,
body.theme-midnight .member-stories-form select,
body.theme-midnight .featured-prompt-choice textarea { background:#0b1d33 !important; color:#eff7ff !important; border-color:#456888 !important; }
/* Keep profile prompts spacious and readable inside the dashboard modal. */
.member-stories-form .featured-prompt-picker { grid-template-columns:1fr; max-height:470px; gap:12px; padding:4px; }
.member-stories-form .featured-prompt-choice { min-height:132px; }
body.theme-midnight .member-stories-form .member-share-choice { background:#193653 !important; border:1px solid #3c668b !important; color:#edf6ff !important; }
body.theme-midnight .member-stories-form .member-share-choice span { color:#edf6ff !important; }
body.theme-midnight .questionnaire-options label { background:#10243c !important; border-color:#355878 !important; color:#d8eaff !important; }

.questionnaire-mobile-category { display: none; }
@media (max-width: 700px) {
  #questionnaireModal.modal-backdrop {
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    padding: 0;
  }
  #questionnaireModal .questionnaire-modal {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: calc(22px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 0;
  }
  #questionnaireContent { width: 100%; max-width: 620px; margin-inline: auto; }
  .questionnaire-top { padding-right: 0; }
  .questionnaire-category-nav { display: none; }
  .questionnaire-mobile-category {
    display: grid;
    gap: 6px;
    margin: 0 0 18px;
    color: #607a96;
    font-size: 11px;
    font-weight: 700;
  }
  .questionnaire-mobile-category select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #c9dcf3;
    border-radius: 12px;
    background: #fff;
    color: #172d49;
    font: 600 13px/1.4 var(--sans,Arial,sans-serif);
  }
  .questionnaire-fields {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .questionnaire-actions {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    padding-top: 4px;
  }
  .questionnaire-actions button { min-width: 0; width: 100%; padding-inline: 8px; font-size: 11px; }
  body.theme-midnight .questionnaire-mobile-category { color: #bdd4e9; }
  body.theme-midnight .questionnaire-mobile-category select { background: #0b1d33; color: #eff7ff; border-color: #456888; }
}

.signup-photo-prompt {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #cbdff2;
  border-radius: 15px;
  background: linear-gradient(135deg,#eff8ff,#fff 75%);
}
.signup-photo-icon { font-size: 24px; }
.signup-photo-prompt strong,.signup-photo-prompt small { display: block; }
.signup-photo-prompt strong { color: var(--ink); font-size: 12px; }
.signup-photo-prompt small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.signup-photo-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  overflow: hidden;
  border: 1px solid #bdd6ec;
  border-radius: 999px;
  background: #fff;
  color: #285b91;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.signup-photo-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.signup-photo-selection { grid-column: 2/-1; min-height: 16px; color: #496983; font-size: 10px; line-height: 1.5; }
.signup-photo-selection img { width: 52px; height: 62px; margin: 7px 6px 0 0; border-radius: 8px; object-fit: cover; vertical-align: middle; }
body.theme-midnight .signup-photo-prompt { background: linear-gradient(135deg,#142b46,#10243c); border-color: #315170; }
body.theme-midnight .signup-photo-prompt strong,body.theme-midnight .signup-photo-selection { color: #e8f3ff; }
body.theme-midnight .signup-photo-prompt small { color: #bdd4e9; }
body.theme-midnight .signup-photo-picker { background: #0b1d33; border-color: #456888; color: #b9dcff; }
.signup-photo-input { display: none !important; }
.signup-photo-selection { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; min-height: 0; }
.signup-photo-slot { position: relative; display: grid; grid-template-rows: 1fr auto auto; min-width: 0; aspect-ratio: 3/4; overflow: hidden; border: 1px dashed #b8cde1; border-radius: 12px; background: rgba(255,255,255,.72); }
.signup-photo-slot.is-filled { border-style: solid; border-color: #cfdeec; }
.signup-photo-slot > img { width: 100%; height: 100%; min-height: 0; margin: 0; border-radius: 0; object-fit: cover; }
.signup-photo-slot > small { padding: 5px 6px 0; color: #496983; font-size: 9px; }
.signup-photo-slot-actions { display: flex; gap: 4px; padding: 4px; }
.signup-photo-slot-actions button,.signup-photo-slot-add { min-width: 0; min-height: 30px; padding: 4px; border: 0; border-radius: 7px; background: #edf5fc; color: #285b91; font-size: 9px; font-weight: 700; cursor: pointer; }
.signup-photo-slot-actions button { flex: 1; }
.signup-photo-slot-add { display: grid; align-content: center; justify-items: center; gap: 5px; width: 100%; height: 100%; background: transparent; }
.signup-photo-slot-add span { color: #5481aa; font-size: 22px; }
.signup-photo-slot-add strong { color: #496983; font-size: 10px; }
.signup-photo-help { grid-column: 1/-1; min-height: 14px; margin: 0; color: #496983; font-size: 10px; line-height: 1.5; }
.member-profile-view { gap: 20px; max-width: 680px; margin-inline: auto; }
.member-view-cover {
  position: relative;
  min-height: clamp(340px,62vw,540px);
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg,#dcecff,#f8e5eb);
  box-shadow: 0 14px 34px rgba(17,44,72,.14);
}
.member-view-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member-view-cover::after { position: absolute; inset: 30% 0 0; content: ""; background: linear-gradient(transparent,rgba(10,23,39,.76)); pointer-events: none; }
.member-view-cover-label { position: absolute; z-index: 1; right: 20px; bottom: 18px; left: 20px; display: grid; gap: 4px; color: white; }
.member-view-cover-label span { font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.member-view-cover-label strong { font: 600 28px/1.15 var(--serif); }
.member-view-cover-label small { font-size: 12px; }
.member-view-cover-empty { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 24px; color: #294766; text-align: center; }
.member-view-cover-empty span { font-size: 48px; }
.member-view-cover-empty small { max-width: 260px; color: #496983; line-height: 1.5; }
.member-view-gallery .member-view-photos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.member-view-gallery .member-view-photos img { width: 100%; height: clamp(110px,22vw,190px); border-radius: 13px; }
.member-view-bio-card { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(234,244,255,.5); }
.member-view-bio-card .member-view-bio { font-size: 13px; }
.member-view-prompt { padding: 15px; border: 1px solid #e2d7e2; border-left: 4px solid #d77991; border-radius: 12px; background: linear-gradient(135deg,#fff8fa,#f5faff); }
#dashboardModal .dashboard-tabs { display: flex; max-width: 100%; gap: 8px; overflow-x: auto; padding: 3px 2px 10px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
#dashboardModal .dashboard-tabs button { flex: 0 0 auto; white-space: nowrap; }
.mobile-music-control { display: none; }
.member-editor-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.member-editor-header > div { min-width: 0; }
.member-photo-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.member-profile-editor .member-photo-item { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; min-width: 0; padding: 0; }
.member-profile-editor .member-photo-item > img { display: block; width: 100%; height: auto; aspect-ratio: 3/4; border-radius: 0; }
.member-photo-slot-empty { min-width: 0; aspect-ratio: 3/4; overflow: hidden; border: 1px dashed #9fb9d1; border-radius: 13px; background: rgba(255,255,255,.55); }
.member-photo-slot-empty button { display: grid; align-content: center; justify-items: center; gap: 7px; width: 100%; height: 100%; padding: 8px; border: 0; background: transparent; color: #496983; cursor: pointer; }
.member-photo-slot-empty button > span { color: #5481aa; font-size: 28px; }
.member-photo-slot-empty strong { font-size: 11px; }
.member-photo-slot-empty small { font-size: 9px; }
.member-profile-editor .member-photo-item > div { padding: 7px; }
.member-photo-actions { gap: 4px; }
.member-photo-actions button,.member-photo-replace { flex: 1 1 auto; min-height: 30px; padding: 6px; text-align: center; }
body.theme-midnight .member-photo-slot-empty { background: #10243c; border-color: #456888; }
body.theme-midnight .member-photo-slot-empty button { color: #bdd4e9; }
body.theme-midnight .signup-photo-slot { background: #10243c; border-color: #456888; }
body.theme-midnight .signup-photo-slot > small,body.theme-midnight .signup-photo-help,body.theme-midnight .signup-photo-slot-add strong { color: #bdd4e9; }
@media (max-width: 820px) {
  #dashboardModal.modal-backdrop { align-items: stretch; overflow: hidden; padding: 0; }
  #dashboardModal .modal { width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: calc(22px + env(safe-area-inset-top)) 16px calc(22px + env(safe-area-inset-bottom)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border-radius: 0; }
  #dashboardContent { min-width: 0; }
  .member-view-heading { align-items: flex-start; }
  .member-view-heading h3 { font-size: 23px; }
  .member-view-cover { min-height: min(68vh,540px); }
  .mobile-music-control:not(.hidden) { position: fixed; z-index: 29; right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); left: 12px; display: flex; align-items: center; gap: 10px; width: min(360px,calc(100vw - 24px)); min-height: 52px; margin-inline: auto; padding: 8px 12px; border: 1px solid rgba(255,255,255,.75); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(15,39,66,.2); color: #17304d; }
  .mobile-music-play { flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #17304d; color: white; font-size: 17px; cursor: pointer; }
  .mobile-music-title { flex: 1; overflow: hidden; color: #294766; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-music-volume { width: 82px; accent-color: #2875b7; }
  body.theme-midnight .mobile-music-control { background: rgba(15,35,57,.97); border-color: #456888; }
  body.theme-midnight .mobile-music-title { color: #e8f3ff; }
}
@media (max-width: 520px) {
  .signup-photo-prompt { grid-template-columns: auto minmax(0,1fr); align-items: start; }
  .signup-photo-picker { grid-column: 1/-1; width: 100%; }
  .signup-photo-selection { grid-column: 1/-1; }
  .member-view-heading { flex-direction: column; }
  .member-editor-header { align-items: flex-start; }
  .member-editor-header > .btn { flex: 0 0 auto; }
  .member-photo-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .member-photo-item > img { aspect-ratio: 3/4; }
  .member-photo-item > div { padding: 5px; }
  .member-photo-actions { flex-direction: column; }
  .member-view-cover-label strong { font-size: 24px; }
  .member-view-gallery .member-view-photos { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .member-view-gallery .member-view-photos img { height: 150px; }
  .mobile-music-volume { width: 68px; }
}

@media(max-width:820px) {
  #mobileTabBar.is-member { grid-template-columns:repeat(7,minmax(0,1fr)); }
  #mobileTabBar.is-owner { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
body.is-member-deck.theme-midnight .profile-card { background:#171c25 !important; border-color:#303742 !important; }
body.is-member-deck.theme-midnight .deck-profile-bio,
body.is-member-deck.theme-midnight .reveal-caption-text { color:#e9e4e6 !important; }
body.is-member-deck.theme-midnight .deck-photo-actions .deck-pass-button { background:#202632; border-color:#3b4552; color:#eee; }
body.is-member-deck.theme-midnight .photo-controls .reveal-nav-button { background:rgba(15,17,21,.62); }
