:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --surface: rgba(20, 23, 32, 0.78);
  --surface-strong: #171a24;
  --surface-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f2ec;
  --muted: #a7a2a1;
  --gold: #e8bd87;
  --gold-soft: rgba(232, 189, 135, 0.16);
  --lilac: #c4b5fd;
  --rose: #f2a7b9;
  --danger: #ef8f98;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(178, 156, 230, 0.08), transparent 32rem),
    radial-gradient(circle at 100% 80%, rgba(232, 189, 135, 0.07), transparent 28rem),
    var(--bg);
  overflow-x: hidden;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.ambient { position: fixed; z-index: -1; pointer-events: none; border-radius: 999px; filter: blur(2px); opacity: 0.26; }
.ambient-one { width: 18rem; height: 18rem; top: 12vh; left: -10rem; background: rgba(196, 181, 253, 0.12); }
.ambient-two { width: 24rem; height: 24rem; right: -12rem; bottom: 8vh; background: rgba(232, 189, 135, 0.1); }

.app-shell { width: min(100%, 1120px); min-height: 100vh; margin: 0 auto; padding: 24px 22px 112px; }

.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 10px 0 34px; }
.brand-mark, .eyebrow { margin: 0; color: var(--gold); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.brand-mark span { color: var(--muted); font-size: 0.55rem; letter-spacing: 0.12em; margin-left: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.45rem, 4vw, 2.3rem); font-weight: 500; letter-spacing: -0.045em; }
h2 { margin: 8px 0 0; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 500; letter-spacing: -0.04em; }
h3 { margin-bottom: 0; font-weight: 600; letter-spacing: -0.025em; }
.muted { color: var(--muted); }
.micro-copy { margin: 14px 0 0; color: var(--muted); font-size: 0.72rem; line-height: 1.5; text-align: center; }

.profile-chip { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px 7px 7px; background: rgba(255, 255, 255, 0.045); color: var(--text); transition: border-color 160ms ease, background 160ms ease; }
.profile-chip:hover { border-color: rgba(232, 189, 135, 0.55); background: var(--gold-soft); }
.profile-initial { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--lilac)); color: #211b1b; font-size: 0.75rem; font-weight: 800; }
.chevron { color: var(--muted); font-size: 1rem; line-height: 1; }

.welcome-row, .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.welcome-row { margin-bottom: 22px; }
.welcome-row .muted { margin: 7px 0 0; font-size: 0.82rem; }
.audience-select-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
select, .field-control { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-strong); color: var(--text); padding: 10px 12px; }
.audience-select-label select { padding: 8px 28px 8px 10px; }

.panel { border: 1px solid var(--line); border-radius: 30px; padding: clamp(18px, 3vw, 34px); background: linear-gradient(145deg, rgba(26, 29, 39, 0.86), rgba(14, 16, 23, 0.78)); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.content-panel { min-height: 520px; }
.compact-heading { align-items: center; margin-bottom: 22px; }
.match-pill, .count-label { border: 1px solid rgba(232, 189, 135, 0.3); border-radius: 999px; padding: 8px 11px; color: var(--gold); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; white-space: nowrap; }
.count-label { border-color: var(--line); color: var(--muted); letter-spacing: 0.02em; }

.portrait-card { position: relative; max-width: 700px; margin: 24px auto 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 28px; background: #181a22; box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34); }
.portrait-media { position: relative; min-height: 460px; aspect-ratio: 0.76; max-height: min(66vh, 700px); }
.portrait-media img { display: block; width: 100%; height: 100%; min-height: 460px; object-fit: cover; }
.media-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 11, 0.04) 36%, rgba(5, 7, 11, 0.84) 100%); pointer-events: none; }
.portrait-meta { position: absolute; right: 22px; bottom: 20px; left: 22px; }
.portrait-title-row { display: flex; align-items: center; gap: 10px; }
.portrait-title-row h3 { font-size: clamp(1.4rem, 4vw, 2.2rem); }
.portrait-meta p { margin: 6px 0 12px; color: rgba(255, 255, 255, 0.72); font-size: 0.78rem; }
.card-status { border: 1px solid rgba(255, 255, 255, 0.26); border-radius: 999px; padding: 5px 8px; color: #fff; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.1em; }
.tag-row, .filter-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-row span { border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 5px 8px; color: rgba(255, 255, 255, 0.78); font-size: 0.65rem; }

.action-row { display: grid; grid-template-columns: 1fr 1.1fr 1fr; max-width: 700px; margin: 18px auto 0; gap: 9px; }
.action-button { display: flex; min-height: 58px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-soft); color: var(--text); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.action-button:hover { transform: translateY(-2px); }
.action-button .action-icon { font-size: 1.25rem; line-height: 1; letter-spacing: 0; }
.action-button.pass:hover { border-color: rgba(255, 255, 255, 0.36); }
.action-button.like { border-color: rgba(242, 167, 185, 0.24); color: var(--rose); }
.action-button.like:hover { background: rgba(242, 167, 185, 0.1); border-color: var(--rose); }
.action-button.favorite { border-color: rgba(232, 189, 135, 0.25); color: var(--gold); }
.action-button.favorite:hover { background: var(--gold-soft); border-color: var(--gold); }
.match-feedback { min-height: 24px; margin-top: 16px; color: var(--muted); font-size: 0.8rem; text-align: center; }
.match-feedback span { margin-right: 5px; color: var(--gold); }
.music-control { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px auto 0; color: var(--muted); font-size: 0.68rem; }
.quiet-control { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; background: rgba(255, 255, 255, 0.035); color: var(--muted); font-size: 0.68rem; }
.quiet-control:hover { border-color: rgba(232, 189, 135, 0.45); color: var(--gold); }
.volume-control { display: inline-flex; align-items: center; gap: 6px; }
.volume-control input { width: 72px; accent-color: var(--gold); }
.music-control small { color: rgba(255, 255, 255, 0.42); }

.filter-row { margin-bottom: 24px; }
.filter-button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: transparent; color: var(--muted); font-size: 0.74rem; transition: all 160ms ease; }
.filter-button:hover, .filter-button.active { border-color: rgba(232, 189, 135, 0.55); background: var(--gold-soft); color: var(--gold); }
.portrait-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grid-card { position: relative; min-height: 238px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; padding: 0; background: var(--surface-strong); color: var(--text); text-align: left; }
.grid-card img { display: block; width: 100%; height: 100%; min-height: 238px; object-fit: cover; transition: transform 280ms ease; }
.grid-card:hover img { transform: scale(1.04); }
.grid-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(4, 5, 8, 0.86)); }
.grid-card-copy { position: absolute; right: 12px; bottom: 11px; left: 12px; display: flex; flex-direction: column; gap: 3px; }
.grid-card-copy strong { overflow: hidden; font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
.grid-card-copy small { color: rgba(255, 255, 255, 0.68); font-size: 0.65rem; }
.pack-entry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pack-card { position: relative; min-height: 220px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; padding: 0; background: var(--surface-strong); color: var(--text); text-align: left; }
.pack-card img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; transition: transform 280ms ease; }
.pack-card:hover img { transform: scale(1.04); }
.pack-card::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 11, 0.02) 32%, rgba(4, 5, 8, 0.9) 100%); content: ""; }
.pack-card-copy { position: absolute; z-index: 1; right: 16px; bottom: 15px; left: 16px; }
.pack-card-copy strong { display: block; font-size: 1.02rem; }
.pack-card-copy small { display: block; margin-top: 5px; color: rgba(255, 255, 255, 0.7); font-size: 0.7rem; }
.explore-back { margin-bottom: 18px; }
.browsing-preference-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 20px; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; background: rgba(255, 255, 255, 0.035); }
.preference-summary { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 6px 0 0; color: var(--muted); font-size: 0.78rem; }
.preference-summary strong { color: var(--text); }
.preference-summary span::before { color: var(--gold); content: "· "; }

.type-disclaimer { max-width: 620px; margin: 12px 0 22px; font-size: 0.8rem; line-height: 1.5; }
.type-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.type-card { min-height: 310px; border: 1px solid var(--line); border-radius: 22px; padding: 22px; background: rgba(255, 255, 255, 0.035); }
.type-card-header { display: flex; align-items: center; gap: 11px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.type-card-header h3 { margin-top: 5px; font-size: 1.35rem; }
.type-dot { display: block; width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 22px currentColor; }
.type-dot.female { color: var(--rose); background: var(--rose); }
.type-dot.male { color: var(--lilac); background: var(--lilac); }
.type-signal { margin: 17px 0; color: var(--muted); font-size: 0.73rem; }
.type-feature-groups { display: grid; gap: 20px; }
.type-feature-section { display: grid; gap: 10px; }
.type-feature-section h4 { margin: 0; color: var(--gold); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.feature-list { display: flex; flex-direction: column; gap: 13px; }
.feature-row { display: flex; flex-direction: column; gap: 6px; }
.feature-label { display: flex; justify-content: space-between; gap: 10px; font-size: 0.73rem; }
.feature-label span { overflow: hidden; color: #dfd8d3; text-overflow: ellipsis; white-space: nowrap; }
.feature-label strong { color: var(--gold); font-size: 0.7rem; }
.feature-signal { margin-left: 5px; color: var(--gold); font-size: 0.62rem; font-style: normal; }
.feature-row.is-negative .feature-signal { color: var(--muted); }
.feature-bar { height: 4px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.feature-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lilac), var(--gold)); }
.feature-row.is-negative .feature-bar span { background: linear-gradient(90deg, rgba(196, 181, 253, 0.45), rgba(239, 143, 152, 0.75)); }
.type-split { display: flex; justify-content: space-between; margin-top: 19px; color: var(--muted); font-size: 0.63rem; }
.type-empty { display: grid; min-height: 200px; place-items: center; align-content: center; gap: 10px; color: var(--muted); text-align: center; }
.type-empty span { color: var(--gold); font-size: 2rem; }
.type-empty p { max-width: 200px; margin: 0; font-size: 0.8rem; line-height: 1.5; }
.type-section-empty { margin: 0; color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.type-section-note { margin: -2px 0 0; color: var(--muted); font-size: 0.68rem; line-height: 1.5; }

.deck-complete { display: grid; min-height: 100%; place-items: center; align-content: center; gap: 10px; padding: 34px 22px; text-align: center; }
.deck-complete-symbol { color: var(--gold); font-size: 2.1rem; }
.deck-complete h3 { margin: 0; font-size: clamp(1.6rem, 7vw, 2.35rem); }
.deck-complete p:not(.eyebrow) { max-width: 300px; margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.6; }
.deck-actions { display: grid; width: min(100%, 300px); gap: 8px; margin-top: 12px; }

.bottom-nav { position: fixed; z-index: 10; right: 50%; bottom: 18px; display: grid; width: min(calc(100% - 30px), 500px); grid-template-columns: repeat(4, 1fr); transform: translateX(50%); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 22px; padding: 7px; background: rgba(21, 24, 33, 0.9); box-shadow: 0 18px 55px rgba(0, 0, 0, 0.38); backdrop-filter: blur(20px); }
.nav-button { display: flex; min-height: 54px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 16px; background: transparent; color: var(--muted); }
.nav-button span { font-size: 1.15rem; line-height: 1; }
.nav-button small { font-size: 0.64rem; }
.nav-button:hover, .nav-button.active { background: rgba(232, 189, 135, 0.12); color: var(--gold); }

.onboarding-view { display: grid; min-height: 65vh; place-items: center; }
.onboarding-step { grid-area: 1 / 1; }
.onboarding-card { width: min(100%, 620px); border: 1px solid var(--line); border-radius: 30px; padding: clamp(24px, 6vw, 54px); background: linear-gradient(145deg, rgba(28, 31, 42, 0.9), rgba(14, 16, 23, 0.82)); box-shadow: var(--shadow); text-align: center; }
.onboarding-card h2 { font-size: clamp(2rem, 6vw, 3.4rem); }
.onboarding-copy { max-width: 440px; margin: 16px auto 28px; font-size: 0.9rem; line-height: 1.7; }
.audience-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.audience-choice { display: flex; min-height: 126px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.04); color: var(--text); transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.audience-choice:hover { transform: translateY(-3px); border-color: rgba(232, 189, 135, 0.6); background: var(--gold-soft); }
.choice-symbol { font-size: 1.75rem; }
.audience-choice strong, .audience-choice small { display: block; }
.audience-choice strong { font-size: 0.9rem; }
.audience-choice small { margin-top: 4px; color: var(--muted); font-size: 0.64rem; }
.appearance-pool-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; text-align: left; }
.pool-choice { display: flex; min-height: 54px; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: rgba(255, 255, 255, 0.035); color: var(--muted); text-align: left; transition: border-color 160ms ease, background 160ms ease, color 160ms ease; }
.pool-choice:hover, .pool-choice[aria-pressed="true"] { border-color: rgba(232, 189, 135, 0.62); background: var(--gold-soft); color: var(--text); }
.pool-choice[aria-pressed="true"]::after { margin-left: auto; color: var(--gold); content: "✓"; font-weight: 800; }
.pool-choice strong { display: block; color: inherit; font-size: 0.76rem; font-weight: 700; }
.pool-choice small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.62rem; }
.onboarding-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.primary-button { border: 1px solid rgba(232, 189, 135, 0.56); border-radius: 12px; padding: 10px 15px; background: linear-gradient(135deg, rgba(232, 189, 135, 0.9), rgba(196, 181, 253, 0.88)); color: #201c24; font-weight: 800; }
.primary-button:hover { filter: brightness(1.08); }

.modal[hidden], [hidden] { display: none !important; }
.modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 7, 0.7); backdrop-filter: blur(8px); }
.modal-card { position: relative; width: min(100%, 470px); max-height: calc(100svh - 30px); overflow-y: auto; border: 1px solid var(--line); border-radius: 24px; padding: 24px; background: #171a24; box-shadow: var(--shadow); }
.portrait-preview-card { width: min(100%, 520px); max-height: calc(100svh - 30px); overflow-y: auto; }
.portrait-preview-image { display: block; width: 100%; max-height: 58svh; border-radius: 17px; object-fit: cover; }
.portrait-preview-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 15px 0 13px; }
.portrait-preview-meta h3 { margin: 0; font-size: 1.15rem; font-weight: 600; }
.portrait-preview-meta p { margin: 5px 0 0; color: var(--muted); font-size: 0.72rem; }
.preview-status { border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; color: var(--gold); font-size: 0.62rem; white-space: nowrap; }
.preview-action-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.preview-action-row .action-button { min-height: 54px; }
.preview-start-button { width: 100%; margin-top: 10px; }
.preview-note { margin: 12px 0 0; color: var(--muted); font-size: 0.7rem; line-height: 1.5; text-align: center; }
.preference-modal-actions { align-items: center; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.icon-button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.25rem; }
.icon-button:hover { border-color: var(--gold); color: var(--gold); }
.field-label { display: block; margin: 16px 0 7px; color: var(--muted); font-size: 0.74rem; }
.field-control { width: 100%; }
.inline-form { display: flex; align-items: stretch; gap: 8px; }
.inline-form .field-control { min-width: 0; }
.secondary-button, .danger-button { border: 1px solid rgba(232, 189, 135, 0.34); border-radius: 12px; padding: 10px 14px; background: var(--gold-soft); color: var(--gold); font-weight: 700; white-space: nowrap; }
.secondary-button:hover { border-color: var(--gold); }
.modal-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 27px; padding-top: 17px; border-top: 1px solid var(--line); }
.modal-actions .micro-copy { max-width: 235px; margin: 0; text-align: left; }
.danger-button { border-color: rgba(239, 143, 152, 0.3); background: transparent; color: var(--danger); font-size: 0.72rem; }
.danger-button:hover { background: rgba(239, 143, 152, 0.1); border-color: var(--danger); }
.toast { position: fixed; z-index: 30; right: 50%; bottom: 94px; max-width: calc(100% - 36px); transform: translateX(50%); border: 1px solid rgba(232, 189, 135, 0.35); border-radius: 13px; padding: 11px 15px; background: #201d20; color: var(--text); font-size: 0.78rem; box-shadow: var(--shadow); }
.toast.error { border-color: rgba(239, 143, 152, 0.5); color: #ffd9dd; }
.empty-state { display: grid; min-height: 400px; place-items: center; align-content: center; padding: 30px; color: var(--muted); text-align: center; }
.empty-state h3 { margin: 12px 0 7px; color: var(--text); }
.empty-state p { max-width: 340px; margin-bottom: 0; font-size: 0.8rem; line-height: 1.6; }
.empty-symbol { color: var(--gold); font-size: 2rem; }
.grid-empty { grid-column: 1 / -1; min-height: 280px; }

body.is-immersive-feed .topbar > div { opacity: 0.2; transition: opacity 180ms ease; }
body.is-immersive-feed .topbar > div:hover { opacity: 1; }
body.is-immersive-feed .welcome-row { margin-bottom: 10px; }
body.is-immersive-feed #feed-panel { border-color: rgba(255, 255, 255, 0.08); }
body.is-immersive-feed .portrait-media { aspect-ratio: 2 / 3; }
body.is-immersive-feed .portrait-meta p, body.is-immersive-feed .tag-row, body.is-immersive-feed .card-status { display: none; }
body.is-immersive-feed .portrait-meta { right: 18px; bottom: 18px; left: 18px; }
body.is-immersive-feed .portrait-title-row h3 { font-size: clamp(1.05rem, 4vw, 1.7rem); font-weight: 500; }
body.is-immersive-feed .portrait-card { touch-action: pan-y; }
body.is-immersive-feed .portrait-card.swipe-like { animation: swipe-like 260ms ease both; }
body.is-immersive-feed .portrait-card.swipe-pass { animation: swipe-pass 260ms ease both; }
@keyframes swipe-like { to { transform: translateX(25px) rotate(2deg); opacity: 0.7; } }
@keyframes swipe-pass { to { transform: translateX(-25px) rotate(-2deg); opacity: 0.7; } }

@media (max-width: 760px) {
  .app-shell { padding: 12px 10px 104px; }
  .topbar { padding-bottom: 24px; }
  .brand-mark span { display: none; }
  .profile-chip { padding-right: 8px; }
  .profile-chip #profile-name { display: none; }
  .panel { border-radius: 23px; padding: 17px; }
  .portrait-card { margin-top: 18px; border-radius: 22px; }
  .portrait-media, .portrait-media img { min-height: 430px; }
  .portrait-media { max-height: 62vh; }
  .portrait-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-card, .grid-card img { min-height: 220px; }
  .type-columns { grid-template-columns: 1fr; }
  .pack-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pack-card, .pack-card img { min-height: 190px; }
  body.is-immersive-feed .topbar { min-height: 30px; padding: 2px 0 6px; }
  body.is-immersive-feed .topbar > div { display: none; }
  body.is-immersive-feed .welcome-row { position: fixed; z-index: 8; top: 7px; right: 10px; left: 10px; margin: 0; pointer-events: none; }
  body.is-immersive-feed .welcome-row > div { display: none; }
  body.is-immersive-feed .audience-select-label { margin-left: auto; pointer-events: auto; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 4px 5px 4px 10px; background: rgba(11, 13, 18, 0.64); backdrop-filter: blur(16px); }
  body.is-immersive-feed .audience-select-label span { display: none; }
  body.is-immersive-feed .audience-select-label select { margin: 0; border: 0; padding: 4px 22px 4px 5px; background: transparent; font-size: 0.7rem; }
  body.is-immersive-feed #feed-panel { min-height: 0; border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
  body.is-immersive-feed #feed-panel > .section-heading { display: none; }
  body.is-immersive-feed .portrait-card { margin: 0; border: 0; border-radius: 22px; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38); }
  body.is-immersive-feed .portrait-media { height: min(72svh, 690px); min-height: 480px; max-height: none; }
  body.is-immersive-feed .portrait-media img { min-height: 0; object-position: center center; }
  body.is-immersive-feed .action-row { position: relative; z-index: 3; max-width: none; margin: 10px 2px 0; }
  body.is-immersive-feed .action-button { min-height: 58px; border-color: rgba(255, 255, 255, 0.17); background: rgba(22, 24, 33, 0.8); backdrop-filter: blur(14px); }
  body.is-immersive-feed .match-feedback { min-height: 17px; margin-top: 6px; font-size: 0.68rem; opacity: 0.72; }
  body.is-immersive-feed .music-control { margin-top: 4px; font-size: 0.62rem; }
  body.is-immersive-feed .music-control small { display: none; }
  body.is-immersive-feed .bottom-nav { bottom: 7px; width: calc(100% - 20px); border-radius: 18px; padding: 4px; }
  body.is-immersive-feed .nav-button { min-height: 44px; }
}

@media (max-width: 470px) {
  .welcome-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .browsing-preference-card { align-items: stretch; flex-direction: column; }
  .browsing-preference-card .secondary-button { width: 100%; }
  .audience-select-label { align-self: stretch; justify-content: space-between; }
  .audience-select-label select { flex: 1; margin-left: 8px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .match-pill { align-self: flex-start; }
  .audience-choices { grid-template-columns: 1fr; }
  .audience-choice { min-height: 78px; flex-direction: row; justify-content: flex-start; padding: 12px 18px; text-align: left; }
  .choice-symbol { width: 38px; text-align: center; }
  .action-row { gap: 6px; }
  .action-button { min-height: 54px; font-size: 0.57rem; }
  .portrait-media, .portrait-media img { min-height: 340px; }
  .portrait-media { max-height: 48vh; aspect-ratio: 0.82; }
  .modal-card { padding: 19px; }
  .modal-actions { align-items: stretch; flex-direction: column; }
  .modal-actions .micro-copy { max-width: none; }
  .appearance-pool-choices { grid-template-columns: 1fr; }
  .onboarding-actions { margin-top: 17px; }
  body.is-immersive-feed .portrait-media { height: min(69svh, 610px); min-height: 410px; }
  body.is-immersive-feed .portrait-card { border-radius: 18px; }
  body.is-immersive-feed .music-control { gap: 5px; }
}
