/* Auth-only layout, loaded after shared page rules. */
.av-page-home .main {display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,480px);gap:48px;align-items:center;padding:36px 0 48px}
.av-page-home .card {width:100%;min-width:0;padding:32px;border:1px solid #313044;border-radius:24px;background:linear-gradient(155deg,#181524,#0d101c);box-shadow:0 24px 80px #0005}
.av-page-home .social-row {display:block}
.av-page-home .social {width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid #345c92;background:#14233c;border-radius:12px;color:#fff}
.av-page-home .social svg {width:24px;height:24px;flex-shrink:0}
.av-page-home .input {min-width:0;min-height:48px}
.av-page-home .input input {min-width:0;width:100%;font-size:16px}
.av-page-home .input:focus-within {border-color:#aa75ff;box-shadow:0 0 0 3px #aa75ff20}
.av-page-home button:focus-visible,.av-page-home a:focus-visible {outline:2px solid #b993ff;outline-offset:4px}
.av-page-home button:disabled {cursor:default;opacity:.55}
.av-page-home .eye {min-width:44px;min-height:44px;font-size:11px;color:#bcb8cd}
.av-page-home .terms {line-height:1.6;align-items:flex-start}
.av-page-home .terms input {width:18px;height:18px;flex-shrink:0;margin-top:4px;accent-color:#a95cff}
.av-page-home .auth-note {padding:12px 14px;margin:0 0 18px;border:1px solid #614684;border-radius:12px;background:#a95cff12;color:#d8c4f5;line-height:1.5;font-size:14px}
.av-page-home .toast {max-width:calc(100vw - 32px);white-space:normal;z-index:1000}
@media(max-width:900px){.av-page-home .main {grid-template-columns:1fr;gap:24px;max-width:560px;margin:auto}.av-page-home .hero {min-height:0}.av-page-home .hero-art,.av-page-home .features,.av-page-home .quote,.av-page-home .desc {display:none}.av-page-home .hero-copy {position:relative;width:100%;padding:0;text-align:center}.av-page-home .hero h2 {font-size:36px;margin:0}.av-page-home .hero .lead {margin:12px 0 0}.av-page-home .container {width:calc(100% - 32px)}.av-page-home .topbar {height:auto;min-height:76px;gap:12px}.av-page-home .top-action {font-size:12px;text-align:right}}
@media(max-width:480px){.av-page-home .main {padding:20px 0 28px}.av-page-home .card {padding:22px 18px;border-radius:20px}.av-page-home .card h1 {font-size:25px}.av-page-home .footer {flex-wrap:wrap;gap:16px;padding-bottom:24px}.av-page-home .dob {grid-template-columns:1fr 1.4fr 1.1fr;gap:6px}.av-page-home .dob select {font-size:14px;padding:8px;width:100%}}

.av-page-home #goProfile {display:flex;align-items:center;justify-content:center;min-height:48px;text-decoration:none;color:#fff}
/* STAGE80: optional title selection, with persistent selection across searches. */
.av-page-home .onboarding-anime>label{display:block;margin:16px 0 8px;color:#bfc5d5;font-size:13px}
.av-page-home #onboardingAnimeSearch{box-sizing:border-box;width:100%;min-height:44px;padding:12px 14px;border:1px solid #303950;border-radius:12px;background:#0c1120;color:#fff;font:inherit}
.av-page-home .onboarding-selection{color:#bfa0ff;font-size:13px;margin:12px 0}
.av-page-home .onboarding-selected{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}
.av-page-home .onboarding-chip{font-size:12px;min-height:36px;max-width:100%;overflow-wrap:anywhere;padding:8px 10px}
.av-page-home .onboarding-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-height:340px;overflow-y:auto;padding:4px}
.av-page-home .onboarding-title{display:flex;flex-direction:column;gap:8px;min-width:0;min-height:70px;padding:8px;border:1px solid #303950;border-radius:12px;background:#141b2b;color:#edf0f7;cursor:pointer;text-align:left;font:inherit;font-size:12px}
.av-page-home .onboarding-title img{width:100%;height:110px;object-fit:cover;border-radius:7px}
.av-page-home .onboarding-title span{overflow-wrap:anywhere;line-height:1.4}
.av-page-home .onboarding-title[aria-pressed=true]{border-color:#b284ff;background:#a16aff22;box-shadow:0 0 0 1px #b284ff}
.av-page-home .onboarding-anime :is(input,button):focus-visible{outline:2px solid #d8c2ff;outline-offset:2px}
.av-page-home .onboarding-error{color:#edb0b9;font-size:13px;line-height:1.5}
.av-page-home .onboarding-anime .wizard-actions{flex-wrap:wrap;gap:8px}
.av-page-home #goFeed{display:flex;align-items:center;justify-content:center;min-height:48px;text-decoration:none;color:#fff}
.av-page-home .onboarding-profile-link{display:inline-block;margin-top:14px;color:#cdb5fa}
@media(max-width:480px){.av-page-home .onboarding-results{grid-template-columns:repeat(2,minmax(0,1fr))}.av-page-home .onboarding-title img{height:120px}}

/* STAGE86: compact genre selection; actions stay outside the scrolling list. */
.av-page-home .onboarding-genres{min-width:0;margin:16px 0}
.av-page-home .onboarding-genres>label{display:block;color:#d3cce5;font-size:14px}
.av-page-home .genre-help,.av-page-home .genre-empty{font-size:13px;line-height:1.5;color:#aeb4c6;margin:8px 0}
.av-page-home #regGenreSearch{box-sizing:border-box;width:100%;min-height:44px;border:1px solid #3b3650;border-radius:12px;background:#0c1120;color:#fff;padding:10px 12px;font:inherit;font-size:14px}
.av-page-home .genre-summary{font-size:13px;color:#c6a6ff;margin:10px 0}
.av-page-home .genre-choices{display:flex;flex-wrap:wrap;align-content:flex-start;gap:8px;max-height:220px;overflow-y:auto;overscroll-behavior:contain;padding:5px;scrollbar-gutter:stable;border:1px solid #302c42;border-radius:12px}
.av-page-home .genre-choices .genre-chip{display:inline-flex;align-items:center;justify-content:center;flex:0 1 auto;min-width:0;width:auto;max-width:100%;min-height:40px;margin:0;padding:8px 12px;border:1px solid #453c5b;border-radius:20px;background:#1b1728;color:#d8d3e6;font-size:13px;line-height:1.3;overflow-wrap:anywhere}
.av-page-home .genre-choices .genre-chip.primary{background:#663aaa;border-color:#b085ee;color:#fff}
.av-page-home .onboarding-genres [hidden]{display:none}
@media(max-width:480px){.av-page-home .genre-choices{max-height:180px}.av-page-home .genre-choices .genre-chip{min-height:44px}.av-page-home .wizard-actions{display:flex;flex-wrap:wrap;gap:8px}}
