:root {
  --navy: #132238;
  --navy-soft: #243955;
  --green: #168d70;
  --green-dark: #0f6b55;
  --mint: #dff4ec;
  --coral: #f2765c;
  --coral-soft: #ffe6df;
  --amber: #f4b942;
  --sand: #f3f1eb;
  --surface: #ffffff;
  --surface-soft: #f8f8f5;
  --line: #dce1e5;
  --muted: #687383;
  --danger: #b7372d;
  --shadow: 0 14px 38px rgba(19, 34, 56, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--navy); background: var(--sand); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }

.page-frame { min-height: 100vh; background: var(--sand); }
.topbar { position: sticky; z-index: 50; top: 0; min-height: 76px; display: flex; align-items: center; gap: 26px; padding: 0 max(24px, calc((100vw - 1460px) / 2)); border-bottom: 1px solid rgba(19,34,56,.1); background: rgba(255,255,255,.95); backdrop-filter: blur(14px); }
.brand { min-width: 230px; display: flex; align-items: center; gap: 12px; }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.25rem; letter-spacing: -.035em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.brand-seed { width: 42px; height: 42px; display: grid; place-items: center; color: white; border-radius: 13px 13px 13px 4px; background: var(--green); box-shadow: 0 6px 15px rgba(22,141,112,.22); font-size: 1.25rem; font-weight: 900; }
.site-nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 3px; font-weight: 750; }
.site-nav > a, .auth-nav > a { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 12px; }
.site-nav > a:hover, .site-nav > a[aria-current="page"], .auth-nav > a:hover { background: var(--surface-soft); }
.nav-icon { width: 27px; height: 27px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--green-dark); background: white; font-size: 1rem; line-height: 1; transition: .17s ease; }
.site-nav > a:hover .nav-icon, .site-nav > a[aria-current="page"] .nav-icon, .auth-nav > a:hover .nav-icon { color: white; border-color: var(--navy); background: var(--navy); transform: translateY(-1px); }
.auth-nav { display: flex; align-items: center; gap: 3px; margin-left: 8px; }
.nav-create { color: white !important; background: var(--green) !important; box-shadow: 0 8px 20px rgba(22,141,112,.2); }
.profile-link { padding: 4px !important; }
.nav-avatar { width: 38px !important; height: 38px !important; }
.nav-badge { min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; color: white; border-radius: 999px; background: var(--coral); font-size: .7rem; }
.menu-toggle { display: none; }

#app { min-height: 70vh; outline: none; }
.loading { min-height: 62vh; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); font-weight: 700; }
.loading span { width: 46px; height: 46px; border: 4px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-weight: 800; transition: .17s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(19,34,56,.12); }
.button:disabled { opacity: .55; cursor: wait; }
.button-primary { color: white; background: var(--green); }
.button-secondary { color: var(--navy); border-color: var(--line); background: var(--surface); }
.button-secondary.active { border-color: var(--green); background: var(--mint); }
.button-danger { color: var(--danger); border-color: #efb2aa; background: var(--coral-soft); }
.button-small { min-height: 36px; padding: 7px 11px; font-size: .78rem; }
.quiet-button { border: 0; padding: 5px 7px; color: var(--green-dark); background: transparent; cursor: pointer; font-weight: 800; }
.quiet-button:hover { text-decoration: underline; }
.danger-text { color: var(--danger); }
.eyebrow { display: inline-block; margin-bottom: 11px; color: var(--green-dark); font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.hero { position: relative; max-width: 1460px; min-height: clamp(560px,62vw,720px); overflow: hidden; margin: 32px auto 20px; border: 1px solid var(--line); border-radius: 32px; background: var(--surface); box-shadow: var(--shadow); isolation: isolate; }
.hero-backdrop { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(247,242,232,.98) 0%, rgba(247,242,232,.94) 35%, rgba(247,242,232,.2) 58%, rgba(247,242,232,0) 76%); }
.hero-copy { width: min(660px,52%); min-height: inherit; display: flex; flex-direction: column; justify-content: center; padding: clamp(36px,5vw,76px); color: var(--navy); }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(3.7rem,7vw,7.4rem); line-height: .86; letter-spacing: -.07em; }
.hero h1 em { color: var(--green-dark); font-style: normal; }
.hero-copy > p { max-width: 590px; margin: 28px 0 0; color: #536172; font-size: 1.13rem; }
.hero-copy .eyebrow { color: var(--green-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-actions .button-secondary { border-color: rgba(19,34,56,.18); background: rgba(255,255,255,.72); backdrop-filter: blur(8px); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; color: #546273; font-size: .78rem; font-weight: 800; }
.hero-proof span::first-letter { color: var(--green-dark); }
.journey-strip { max-width: 1330px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0 auto 30px; padding: 0 30px; }
.journey-strip > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 13px; align-items: center; padding: 17px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.journey-strip > div > span { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--navy); background: var(--lime); font-weight: 950; }
.journey-strip strong { font-size: .92rem; }
.journey-strip small { color: var(--muted); }

.feed-shell, .simple-page, .profile-page, .dashboard-page { max-width: 1460px; margin: 0 auto; padding: 34px 30px 80px; }
.feed-tabs, .dashboard-tabs, .profile-tabs { display: flex; gap: 5px; overflow-x: auto; padding: 7px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.feed-tabs { margin-bottom: 42px; }
.feed-tabs a, .dashboard-tabs a, .profile-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; color: var(--muted); font-weight: 800; }
.dashboard-tabs a > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--surface-soft); font-size: .85rem; }
.dashboard-tabs a.active > span, .dashboard-tabs a:hover > span { color: var(--navy); background: var(--lime); }
.feed-tabs a:hover, .feed-tabs a.active, .dashboard-tabs a:hover, .dashboard-tabs a.active, .profile-tabs a:hover, .profile-tabs a.active { color: white; background: var(--navy); }
.profile-tabs a span { margin-left: 5px; opacity: .7; }
.section-heading, .page-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.section-heading h2, .page-heading h1 { margin: 0; font-size: clamp(2rem,4vw,3.7rem); line-height: 1; letter-spacing: -.045em; }
.page-heading { display: block; max-width: 800px; margin: 25px 0 38px; }
.page-heading p { max-width: 700px; color: var(--muted); font-size: 1.05rem; }
.page-heading.split { max-width: none; display: flex; }
.section-heading.compact { align-items: center; margin: 38px 0 20px; }
.section-heading.compact h2 { font-size: clamp(1.6rem,3vw,2.35rem); }
.result-count { min-width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: white; background: var(--coral); font-weight: 900; }

.prompt-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.prompt-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 24px rgba(19,34,56,.05); }
.prompt-image { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe5e8; }
.prompt-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.prompt-card:hover .prompt-image img { transform: scale(1.025); }
.model-pill { position: absolute; left: 13px; bottom: 13px; padding: 6px 10px; border-radius: 9px; color: white; background: rgba(19,34,56,.9); font-size: .72rem; font-weight: 850; }
.prompt-body { padding: 18px; }
.creator-row { display: flex; align-items: center; gap: 10px; }
.creator-row > div { min-width: 0; display: grid; line-height: 1.2; }
.creator-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-row span { margin-top: 4px; color: var(--muted); font-size: .76rem; }
.creator-row .quiet-button { margin-left: auto; }
.user-avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.avatar-fallback { color: white; background: var(--green); font-size: .78rem; font-weight: 900; }
.prompt-card h2 { min-height: 2.5em; margin: 17px 0 9px; font-size: 1.25rem; line-height: 1.22; letter-spacing: -.025em; }
.prompt-preview { display: -webkit-box; min-height: 4.5em; overflow: hidden; margin: 0; color: var(--muted); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.tag { border: 0; border-radius: 999px; padding: 5px 9px; color: var(--green-dark); background: var(--mint); cursor: pointer; font-size: .72rem; font-weight: 750; }
.card-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.action-button { display: flex; justify-content: space-between; gap: 6px; border: 0; border-radius: 9px; padding: 8px 9px; color: var(--muted); background: var(--surface-soft); cursor: pointer; font-size: .72rem; font-weight: 750; }
.action-button.active { color: var(--green-dark); background: var(--mint); }
.status-chip { display: inline-flex; margin: 0 0 14px; padding: 6px 9px; border-radius: 9px; font-size: .72rem; font-weight: 850; }
.status-pending { color: #785500; background: #fff1c4; }
.status-rejected { color: var(--danger); background: var(--coral-soft); }
.empty-state { grid-column: 1 / -1; padding: 55px 25px; text-align: center; border: 1px dashed #b9c1c9; border-radius: var(--radius); background: rgba(255,255,255,.58); }
.empty-state h2 { margin-top: 0; }

.search-panel { display: grid; grid-template-columns: minmax(220px,1.4fr) minmax(180px,.6fr) auto; gap: 12px; align-items: end; margin: 0 0 28px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
label { display: grid; gap: 6px; }
label > span, .comment-form label > span { font-size: .78rem; font-weight: 850; }
label small { color: var(--muted); font-size: .75rem; }
.field { width: 100%; min-height: 48px; border: 1px solid #cbd2d9; border-radius: 11px; padding: 11px 13px; color: var(--navy); background: white; outline: none; }
.field:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,141,112,.13); }
textarea.field { min-height: 120px; resize: vertical; }
textarea.tall { min-height: 300px; }
.active-filter { margin-bottom: 25px; padding: 12px 15px; border-radius: 12px; background: var(--mint); }
.active-filter a { margin-left: 10px; text-decoration: underline; }

.result-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.result-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.result-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.result-card > div { display: grid; gap: 3px; padding: 15px; }
.result-card span, .result-card p { margin: 0; color: var(--muted); font-size: .8rem; }
.compact-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }

.prompt-detail { max-width: 1500px; display: grid; grid-template-columns: minmax(380px,.9fr) minmax(520px,1.1fr); gap: 0; margin: 0 auto; background: var(--surface); }
.detail-media { padding: 28px; background: var(--navy); }
.detail-media > img { position: sticky; top: 104px; width: 100%; max-height: calc(100vh - 135px); border-radius: var(--radius); object-fit: contain; background: #0a1422; }
.reference-strip { margin-top: 24px; color: white; }
.reference-strip > div { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 10px; }
.reference-strip img { width: 100%; aspect-ratio: 1; border-radius: 9px; object-fit: cover; }
.detail-content { min-width: 0; padding: clamp(30px,5vw,72px); }
.detail-content > h1 { margin: 18px 0; font-size: clamp(2.5rem,5vw,5rem); line-height: .95; letter-spacing: -.055em; }
.prompt-box { margin: 28px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.prompt-box > div { display: flex; justify-content: space-between; align-items: center; padding: 13px 17px; border-bottom: 1px solid var(--line); }
.prompt-box pre { max-height: 420px; overflow: auto; margin: 0; padding: 20px; white-space: pre-wrap; font: inherit; line-height: 1.65; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.status-box, .success-box { margin: 20px 0; padding: 15px 17px; border-radius: 12px; background: #fff1c4; }
.success-box { color: var(--green-dark); background: var(--mint); }
.comments-section { margin-top: 50px; }
.comment-list { display: grid; gap: 10px; }
.comment { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.comment.is-reply { margin-left: 35px; border-left: 4px solid var(--green); }
.comment > div { display: flex; align-items: center; gap: 10px; }
.comment > div > div { display: grid; }
.comment span { color: var(--muted); font-size: .75rem; }
.comment > p { white-space: pre-wrap; }
.comment > img { max-width: 380px; max-height: 380px; border-radius: 12px; object-fit: contain; }
.comment-form { display: grid; gap: 12px; margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }

.auth-page { min-height: 680px; display: grid; grid-template-columns: 1fr minmax(360px,520px); gap: 40px; align-items: center; max-width: 1250px; margin: 0 auto; padding: 60px 30px; }
.auth-page.single { grid-template-columns: minmax(320px,620px); justify-content: center; }
.auth-intro h1 { margin: 0; font-size: clamp(2.8rem,5vw,5.2rem); line-height: .95; letter-spacing: -.055em; }
.auth-intro p { max-width: 650px; color: var(--muted); font-size: 1.05rem; }
.auth-intro ul { display: grid; gap: 13px; margin: 28px 0; padding: 0; list-style: none; }
.auth-intro li::before { content: "✓"; margin-right: 10px; color: var(--green); font-weight: 900; }
.auth-card { padding: clamp(25px,4vw,42px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.auth-card h1, .auth-card h2 { margin-top: 0; font-size: 2rem; }
.form-stack { display: grid; gap: 17px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .85rem; }
.check-row input { margin-top: 4px; }
.form-message { min-height: 22px; color: var(--danger); font-size: .84rem; font-weight: 750; }

.editor-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,390px); gap: 22px; align-items: start; }
.editor-main, .editor-side { display: grid; gap: 18px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.editor-side { position: sticky; top: 100px; }

.profile-header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 28px; align-items: center; padding: 38px; border-radius: 24px; color: white; background: var(--navy); }
.profile-avatar { width: 112px; height: 112px; font-size: 2rem; }
.profile-copy h1 { margin: 0; font-size: clamp(2.3rem,5vw,4.6rem); line-height: 1; letter-spacing: -.05em; }
.profile-copy > p { max-width: 650px; color: #d7e0e8; }
.profile-copy .eyebrow { color: #8de3ca; }
.profile-numbers { display: flex; flex-wrap: wrap; gap: 18px; color: #cbd6df; font-size: .85rem; }
.profile-numbers strong { color: white; }
.profile-actions { display: flex; flex-direction: column; gap: 9px; }
.profile-tabs { margin: 24px 0; }
.people-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.person-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.person-card > div { display: grid; }
.person-card span { color: var(--muted); font-size: .8rem; }
.large-avatar { width: 58px; height: 58px; }

.dashboard-tabs { margin-bottom: 30px; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin: 45px 0 30px; }
.welcome-row h1 { margin: 0; font-size: clamp(2.6rem,5vw,4.8rem); line-height: 1; letter-spacing: -.05em; }
.welcome-row p { color: var(--muted); }
.progress-card { padding: 28px; border: 1px solid #b7d9ce; border-radius: 22px; background: linear-gradient(120deg,#effaf6,#fff9ec); }
.progress-card h2 { margin: 0; }
.profile-progress, .badge-progress { width: 100%; display: block; overflow: hidden; border: 0; border-radius: 999px; background: #e8ecf1; appearance: none; -webkit-appearance: none; }
.profile-progress { height: 8px; margin: 22px 0; background: white; }
.badge-progress { height: 6px; }
.profile-progress::-webkit-progress-bar, .badge-progress::-webkit-progress-bar { border-radius: 999px; background: inherit; }
.profile-progress::-webkit-progress-value, .badge-progress::-webkit-progress-value { border-radius: 999px; background: var(--green); }
.profile-progress::-moz-progress-bar, .badge-progress::-moz-progress-bar { border-radius: 999px; background: var(--green); }
.progress-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.progress-steps > * { display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 13px; padding: 15px; text-align: left; color: var(--navy); background: white; cursor: pointer; }
.progress-steps span { color: var(--muted); font-size: .78rem; }
.progress-steps .done { border-color: #83c9b4; background: var(--mint); }
.dashboard-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 25px; }
.dashboard-grid a { display: grid; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.dashboard-grid strong { color: var(--green-dark); font-size: 2rem; }
.dashboard-grid span { font-size: 1.05rem; font-weight: 850; }
.dashboard-grid small { color: var(--muted); }
.milestones-intro { max-width: 760px; margin: 52px 0 34px; }
.milestones-intro h1 { margin: 0; font-size: clamp(2.8rem,5vw,5rem); letter-spacing: -.055em; }
.milestones-intro p { color: var(--muted); font-size: 1.05rem; }
.badge-section { margin-top: 38px; }
.badge-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.badge-section-title h2 { margin: 0; font-size: 1.6rem; }
.badge-section-title span { color: var(--muted); font-size: .86rem; font-weight: 800; }
.badge-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.badge-card { min-width: 0; display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: #7b8796; }
.badge-card.earned { border-color: #7ac7b0; color: var(--navy); background: linear-gradient(135deg,var(--mint),#f4fff9); box-shadow: 0 10px 24px rgba(22,141,112,.08); }
.badge-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; color: #9aa6b5; background: #eef1f5; font-size: 1.25rem; font-weight: 950; }
.badge-card.earned .badge-icon { color: var(--navy); background: var(--lime); }
.badge-copy { min-width: 0; flex: 1; }
.badge-copy > div:first-child { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.badge-copy strong { color: var(--navy); }
.badge-copy b { padding: 3px 6px; border-radius: 6px; color: var(--green-dark); background: rgba(255,255,255,.7); font-size: .62rem; text-transform: uppercase; }
.badge-card p { min-height: 38px; margin: 5px 0 12px; color: inherit; font-size: .82rem; line-height: 1.35; }
.badge-card small { display: block; margin-top: 6px; color: var(--muted); font-size: .7rem; }

.collection-list, .settings-stack { display: grid; gap: 24px; }
.collection-card, .settings-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.settings-card { display: grid; gap: 16px; }
.settings-card h2 { margin: 0; }
.danger-card { border-color: #efb2aa; background: #fff9f7; }
.collection-choices { display: grid; gap: 8px; margin: 18px 0; }

.notification-list { display: grid; gap: 8px; }
.notification-item { width: 100%; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 15px; color: var(--navy); background: var(--surface); text-align: left; cursor: pointer; }
.notification-item.unread { border-color: #83c9b4; background: var(--mint); }
.notification-item > span { display: grid; }
.notification-item small { color: var(--muted); }

.stats-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 25px; }
.stats-grid > * { display: grid; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.stats-grid strong { font-size: 2rem; }
.stats-grid span { color: var(--muted); font-size: .8rem; font-weight: 750; }
.admin-search { grid-template-columns: 1fr auto auto; }
.member-list { display: grid; gap: 10px; }
.member-row { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(200px,.7fr) minmax(480px,1.5fr); gap: 18px; align-items: center; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.member-row.is-suspended { background: var(--coral-soft); }
.member-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.member-identity > div { min-width: 0; display: grid; }
.member-identity strong, .member-identity a, .member-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-identity small, .member-meta { color: var(--muted); font-size: .76rem; }
.member-meta { display: grid; gap: 3px; }
.member-controls { display: grid; grid-template-columns: minmax(120px,1fr) minmax(120px,1fr) minmax(130px,1fr) auto auto; gap: 8px; align-items: end; }
.verified-mark { align-self: center; width: max-content; padding: 6px 9px; border-radius: 8px; color: var(--green-dark); background: var(--mint); font-size: .72rem; font-weight: 850; }
.audit-list { display: grid; border-top: 1px solid var(--line); }
.audit-list > div { display: flex; justify-content: space-between; gap: 15px; padding: 12px 3px; border-bottom: 1px solid var(--line); }
.audit-list span { color: var(--muted); font-size: .78rem; }

.queue { display: grid; gap: 12px; }
.queue-item { display: grid; grid-template-columns: 150px minmax(0,1fr) auto; gap: 18px; align-items: start; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.queue-item > img, .queue-placeholder { width: 150px; height: 125px; border-radius: 10px; object-fit: cover; background: #dfe5e8; }
.queue-item > div:nth-child(2) { display: grid; gap: 7px; }
.queue-item span { color: var(--muted); font-size: .78rem; }
.queue-item > div:last-child { display: grid; gap: 8px; }

.narrow-page { max-width: 900px; }
.notice-card { margin: 60px 0; padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.notice-card h1 { margin: 0; font-size: clamp(2.2rem,5vw,4rem); line-height: 1; }
.notice-card p { color: var(--muted); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 13px; padding: 0 17px; background: var(--surface); }
.faq-list summary { padding: 17px 0; cursor: pointer; font-weight: 850; }
.faq-list p { margin-top: 0; color: var(--muted); }

.footer { display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: center; padding: 42px max(30px,calc((100vw - 1400px)/2)); color: #dbe4eb; background: var(--navy); }
.footer strong { color: white; font-size: 1.2rem; }
.footer p { margin: 4px 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 15px; font-size: .84rem; }
.footer a:hover { color: #8de3ca; }

.modal-backdrop { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(9,20,34,.74); }
.modal-card { position: relative; width: min(620px,100%); max-height: 90vh; overflow: auto; padding: 30px; border-radius: 22px; background: var(--surface); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.modal-card h2 { margin: 0 0 18px; font-size: 2rem; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-soft); cursor: pointer; font-size: 1.5rem; }
.toast { position: fixed; z-index: 110; right: 24px; bottom: 24px; max-width: min(430px,calc(100% - 48px)); padding: 14px 18px; border-radius: 12px; color: white; background: var(--navy); box-shadow: var(--shadow); opacity: 0; transform: translateY(15px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.cookie-note { position: fixed; z-index: 80; left: 22px; right: 22px; bottom: 22px; max-width: 650px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.cookie-note p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }

@media (max-width: 1180px) {
  .topbar { padding-inline: 20px; }
  .brand { min-width: auto; }
  .brand small { display: none; }
  .prompt-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .result-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .member-row { grid-template-columns: 1fr; }
  .member-controls { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .badge-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .topbar { display: grid; grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; border: 0; border-radius: 10px; padding: 9px 12px; color: white; background: var(--navy); font-weight: 800; }
  .site-nav { position: absolute; top: 76px; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; padding: 15px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
  .site-nav.open { display: flex; }
  .auth-nav { align-items: stretch; flex-direction: column; margin: 0; }
  .hero { min-height: 650px; margin-inline: 20px; }
  .hero-copy { width: 66%; }
  .hero::after { background: linear-gradient(90deg, rgba(247,242,232,.98) 0%, rgba(247,242,232,.9) 48%, rgba(247,242,232,.15) 78%); }
  .journey-strip { grid-template-columns: 1fr; }
  .prompt-detail { grid-template-columns: 1fr; }
  .detail-media > img { position: static; max-height: 70vh; }
  .editor-form { grid-template-columns: 1fr; }
  .editor-side { position: static; }
  .profile-header { grid-template-columns: auto 1fr; }
  .profile-actions { grid-column: 1 / -1; flex-direction: row; }
  .dashboard-grid, .progress-steps, .people-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .footer { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .hero { min-height: 680px; margin: 18px 12px; border-radius: 22px; }
  .hero-backdrop { object-position: 64% center; }
  .hero::after { background: linear-gradient(180deg, rgba(247,242,232,.98) 0%, rgba(247,242,232,.95) 44%, rgba(247,242,232,.12) 74%, rgba(247,242,232,0) 100%); }
  .hero-copy { width: 100%; min-height: auto; padding: 34px 24px; }
  .feed-shell, .simple-page, .profile-page, .dashboard-page { padding-left: 16px; padding-right: 16px; }
  .journey-strip { padding-inline: 12px; }
  .hero h1 { font-size: clamp(2.8rem,15vw,4.4rem); }
  .section-heading, .page-heading.split, .welcome-row { align-items: stretch; flex-direction: column; }
  .prompt-grid, .result-gallery, .compact-gallery, .people-grid, .dashboard-grid, .badge-grid, .progress-steps { grid-template-columns: 1fr; }
  .search-panel, .admin-search { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; padding: 35px 16px; }
  .auth-intro h1 { font-size: 2.8rem; }
  .profile-header { grid-template-columns: 1fr; padding: 26px; }
  .profile-actions { grid-column: auto; flex-direction: column; }
  .profile-numbers { flex-direction: column; gap: 7px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .member-controls { grid-template-columns: 1fr; }
  .queue-item { grid-template-columns: 1fr; }
  .queue-item > img, .queue-placeholder { width: 100%; height: 220px; }
  .audit-list > div { flex-direction: column; }
  .comment.is-reply { margin-left: 18px; }
  .detail-content { padding: 28px 18px; }
  .cookie-note { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
