@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("./fonts/SourceSerif4-Variable-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("./fonts/SourceSerif4-Variable-Italic-latin.woff2") format("woff2");
}

:root {
  --color-plum: #43233f;
  --color-magenta: #d92d8a;
  --color-champagne: #f2e7d5;
  --color-bg: var(--color-champagne);
  --color-surface: #fffaf2;
  --color-surface-strong: var(--color-plum);
  --color-text: var(--color-plum);
  --color-text-muted: #71636d;
  --color-primary: var(--color-magenta);
  --color-primary-hover: #b91f72;
  --color-border: #d8cabc;
  --color-danger: #a82c43;
  --color-success: #26664f;
  --color-focus: #a91d68;
  --shadow-soft: 0 18px 45px rgb(33 24 33 / 0.08);
  --shadow-card: 0 1px 0 rgb(67 35 63 / 0.04);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-card: var(--radius-md);
  --content-width: 1120px;
  --content-detail-width: 920px;
  --content-form-width: 820px;
  --app-gutter: 20px;
  --space-page-top: clamp(48px, 6vw, 68px);
  --space-page-bottom: clamp(72px, 8vw, 96px);
  --space-section: clamp(36px, 5vw, 52px);
  --card-padding: clamp(22px, 3vw, 28px);
  --font-size-meta-xs: .8rem;
  --font-size-meta-sm: .84rem;
  --font-size-meta-compact: .875rem;
  --font-size-meta: .9rem;
  --font-size-meta-large: .94rem;
  --font-size-page-title: clamp(2.125rem, 4vw, 2.75rem);
  --font-size-section-title: clamp(1.65rem, 3vw, 2.25rem);
  --font-size-secondary-display: clamp(2.25rem, calc(1.5rem + 1.875vw), 3rem);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-family-ui: "Avenir", var(--font-sans);
  --font-family-display: "Source Serif 4", serif;
  --font-family-home-display: var(--font-family-display);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family-ui);
  font-size: 16px;
  line-height: 1.55;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--color-focus) 55%, white); outline-offset: 3px; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 20; padding: 10px 14px; background: white; }
.skip-link:focus { top: 16px; }
.site-header {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid #5f425a;
  padding: 0 max(var(--app-gutter), calc((100vw - var(--content-width)) / 2));
  color: var(--color-champagne);
  background: var(--color-plum);
}
.brand { font-weight: 900; letter-spacing: .18em; text-decoration: none; }
.brand span { color: var(--color-magenta); }
.site-header nav { min-width: 0; align-self: stretch; display: flex; align-items: center; gap: 18px; }
.public-navigation { grid-column: 3; justify-self: end; }
.nav-link { height: 100%; display: flex; align-items: center; padding: 0 8px; color: #d9cfd6; text-decoration: none; font-size: .92rem; white-space: nowrap; }
.nav-link.active { color: white; box-shadow: inset 0 -3px var(--color-magenta); }
.account-tools { position: relative; justify-self: end; display: flex; align-items: center; gap: 10px; }
.account-name { max-width: 150px; overflow: hidden; color: white; font-size: .8rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.signout-button { border: 0; padding: 6px 0; background: transparent; color: #d9cfd6; cursor: pointer; font-size: .76rem; }
.signout-button:hover { color: white; }
.auth-navigation .button { min-height: 38px; padding: 7px 13px; }
.credit-balance { min-height: 36px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--color-primary); border-radius: var(--radius-sm); padding: 6px 12px; background: var(--color-primary); color: white; cursor: pointer; font-size: var(--font-size-meta-xs); font-weight: 760; }
.credit-balance:hover, .credit-balance[aria-expanded="true"] { border-color: var(--color-primary-hover); background: var(--color-primary-hover); }
.credit-balance strong { color: inherit; font-weight: 850; }
.credit-balance-caret { margin-left: 2px; font-size: .72rem; line-height: 1; }
.credit-history-panel { position: absolute; z-index: 25; top: calc(100% + 13px); right: 0; width: min(360px, calc(100vw - 28px)); padding: 20px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); color: var(--color-text); box-shadow: 0 16px 36px rgb(33 24 33 / .14); }
.credit-history-panel > header { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border); }
.credit-history-panel > header span { color: var(--color-text-muted); font-size: var(--font-size-meta); }
.credit-history-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--color-border); }
.credit-history-item div { display: grid; }
.credit-history-item div strong { font-size: .86rem; }
.credit-history-item div span { color: var(--color-text-muted); font-size: var(--font-size-meta-sm); }
.credit-history-item b { flex: 0 0 auto; }
.credit-positive { color: var(--color-success); }
.credit-negative { color: var(--color-danger); }
.credit-history-empty { margin: 15px 0 0; color: var(--color-text-muted); font-size: .84rem; }
.credit-buy-link { display: block; margin-top: 16px; color: var(--color-primary-hover); font-size: .86rem; font-weight: 800; text-align: center; }
.payment-shell { max-width: 820px; }
.payment-heading { margin-top: 24px; }
.payment-balance { flex: 0 0 auto; border: 1px solid var(--color-border); padding: 10px 18px; background: var(--color-surface); }
.payment-balance span, .payment-balance strong { display: block; }
.payment-balance span { color: var(--color-text-muted); font-size: var(--font-size-meta-xs); font-weight: 800; text-transform: uppercase; }
.credit-packs { display: grid; gap: 12px; margin-top: 36px; }
.credit-pack { display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 22px 24px; background: var(--color-surface); }
.credit-pack h2, .credit-pack p { margin: 0; }
.credit-pack h2 { font-size: 1.25rem; }
.credit-pack p { color: var(--color-text-muted); }
.payment-note { margin-top: 20px; color: var(--color-text-muted); font-size: var(--font-size-meta); }
.page-shell.payment-result { padding-top: clamp(44px, 5vw, 60px); padding-bottom: clamp(56px, 7vw, 80px); }
.payment-result-copy { max-width: 620px; }
.payment-result h1 { max-width: 620px; margin-bottom: 14px; font-size: var(--font-size-page-title); }
.payment-status { color: var(--color-text-muted); font-size: 1.05rem; line-height: 1.55; }
.payment-status p { margin: 0; }
.payment-status p + p { margin-top: 4px; }
.payment-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

#main { min-height: calc(100vh - 240px); }
.home-shell { width: min(var(--content-width), calc(100% - 40px)); margin: 0 auto; }
.homepage .home-display { font-family: var(--font-family-home-display); font-style: normal; font-weight: 600; font-variation-settings: "opsz" 60, "wght" 600; letter-spacing: 0; line-height: 1; text-wrap: balance; }
.homepage .home-display-emphasis { font-style: italic; }
.home-hero { display: grid; align-items: start; padding: 64px 0 68px; border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); align-items: start; gap: clamp(42px, 6vw, 78px); }
.home-hero h1 { max-width: 760px; font-size: clamp(3rem, 5.5vw, 5.25rem); }
.home-hero-copy { max-width: 680px; display: grid; gap: 2px; color: var(--color-text-muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.4; }
.home-hero-copy span { display: block; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 31px; }
.hero-results-preview { background: var(--color-champagne); box-shadow: var(--shadow-soft); }
.hero-results-preview > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 23px 26px; border-bottom: 1px solid var(--color-border); }
.hero-results-preview > header .eyebrow { margin: 0; }
.hero-results-preview > header > span, .hero-results-preview > div > span { color: var(--color-text-muted); font-size: var(--font-size-meta-xs); font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.hero-results-preview > div { display: grid; gap: 7px; padding: 24px 26px; }
.hero-results-preview > div strong { font-size: 1.08rem; line-height: 1.35; }
.hero-results-preview .hero-results-start { margin: 0 26px 26px; border: 1px solid var(--color-border); padding: 19px 20px; background: var(--color-surface); }
.home-section { padding: clamp(64px, 7vw, 88px) 0; }
.home-section-heading { max-width: 700px; }
.home-section-heading h2 { margin-bottom: 18px; font-size: clamp(2.25rem, 5vw, 4.35rem); }
.home-section-heading > p:last-child { max-width: 610px; color: var(--color-text-muted); }
.home-how { padding: clamp(32px, 4vw, 48px) 0; background: var(--color-surface); }
.home-how-panel { border-radius: var(--radius-md); padding: 52px; background: var(--color-bg); }
.home-how .home-section-heading { max-width: 960px; }
.home-how .home-section-heading h2 { font-size: var(--font-size-secondary-display); }
.home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--color-border); }
.home-how-panel .home-steps { margin-top: 40px; }
.home-steps li { padding: 25px clamp(22px, 3vw, 36px) 0 0; }
.home-steps li + li { border-left: 1px solid var(--color-border); padding-left: clamp(22px, 3vw, 36px); }
.home-how-panel .home-steps li { padding-right: 28px; }
.home-how-panel .home-steps li + li { padding-left: 28px; }
.home-steps li > span { color: var(--color-primary-hover); font-size: var(--font-size-meta-sm); font-weight: 900; letter-spacing: .12em; }
.home-steps h3 { margin: 15px 0 8px; font-size: 1.3rem; }
.home-steps p { color: var(--color-text-muted); }
.home-credits { border-top: 1px solid var(--color-border); padding-bottom: 0; background: var(--color-surface); }
.credit-loop-intro { max-width: none; }
.credit-loop-heading-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: baseline; column-gap: clamp(48px, 8vw, 100px); }
.credit-loop-heading-row h2 { margin-bottom: 0; font-size: var(--font-size-secondary-display); white-space: nowrap; }
.credit-loop-principle { margin: 0; padding: 5px 0 5px 22px; color: var(--color-plum); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 820; line-height: 1.3; }
.credit-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(48px, 8vw, 100px); margin-top: 36px; border-top: 1px solid var(--color-border); }
.credit-path { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; padding: 28px 0 29px; }
.credit-path h3 { margin: 0 0 22px; color: var(--color-primary-hover); font-size: var(--font-size-meta-large); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.credit-path-steps { display: grid; align-content: start; gap: 7px; }
.credit-path-steps p { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.credit-path-cost { display: flex; align-items: baseline; gap: .38em; margin: 27px 0 0; white-space: nowrap; }
.credit-path-cost span { color: var(--color-plum); font-size: var(--font-size-meta-sm); font-weight: 850; letter-spacing: .08em; }
.credit-path-cost strong { color: var(--color-magenta); font-size: 1rem; font-weight: 850; }
.credit-convergence { width: 100%; margin: 32px 0 0; border-top: 1px solid var(--color-border); padding: 32px 0 56px; text-align: center; }
.credit-convergence .home-actions { justify-content: center; margin-top: 26px; }
.home-closing-line { margin-bottom: 0; font-size: var(--font-size-secondary-display); font-weight: 780; letter-spacing: -.025em; }
.home-build-statement { margin: 64px 0 0; font-size: clamp(3.3rem, 7vw, 5.8rem); }
.auth-shell { min-height: calc(100vh - 241px); display: grid; place-items: center; padding: 58px 20px 80px; }
.auth-card { width: min(470px, 100%); padding: clamp(28px, 6vw, 48px); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card); }
.auth-card h1 { margin-bottom: 12px; font-size: clamp(2.2rem, 7vw, 3.6rem); }
.auth-card > p:not(.eyebrow, .auth-switch) { color: var(--color-text-muted); }
#auth-form { display: grid; gap: 19px; margin-top: 28px; }
#auth-form .button { width: 100%; margin-top: 4px; }
.auth-form-error { margin: 0; color: var(--color-danger); font-size: .85rem; font-weight: 700; }
.auth-form-error:empty { display: none; }
.auth-switch { margin: 23px 0 0; color: var(--color-text-muted); font-size: .86rem; text-align: center; }
.auth-switch a { color: var(--color-primary-hover); font-weight: 760; }
.page-shell { width: min(var(--content-width), calc(100% - var(--app-gutter) - var(--app-gutter))); margin: 0 auto; padding: var(--space-page-top) 0 var(--space-page-bottom); }
.eyebrow { margin: 0 0 10px; color: var(--color-primary-hover); font-size: var(--font-size-meta-sm); font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 750px; margin-bottom: 16px; font-size: clamp(2.25rem, 6vw, 4.75rem); line-height: .98; letter-spacing: -.055em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.03em; }
h3 { line-height: 1.25; }
.page-heading h1, .discovery-hero h1, .form-header h1, .detail-hero h1, .assignment-hero h1, .auth-card h1, .empty-state h1, .empty-state h2, .payment-result h1, .creator-results-header h2, .completion-dialog-card h2, .start-here h4 {
  font-family: var(--font-family-display);
  font-style: normal;
  font-weight: 600;
  font-variation-settings: "opsz" 60, "wght" 600;
  letter-spacing: 0;
  line-height: 1.05;
  text-wrap: balance;
}
.page-heading h1, .discovery-hero h1, .form-header h1, .detail-hero h1, .assignment-hero h1, .auth-card h1, .empty-state h1, .empty-state h2 { font-size: var(--font-size-page-title); }
.lede { max-width: 650px; color: var(--color-text-muted); font-size: 1.1rem; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: var(--space-section); }
.page-heading h1 { margin-bottom: 12px; }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 10px 17px; background: none; color: var(--color-text); cursor: pointer; font-weight: 760; text-decoration: none; transition: background .16s, border-color .16s, transform .16s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--color-primary); color: white; }
.button-primary:hover { background: var(--color-primary-hover); }
.button-secondary { border-color: var(--color-border); background: color-mix(in srgb, white 45%, transparent); }
.button-secondary:hover { border-color: #a992a2; background: var(--color-surface); }
.button-quiet { min-height: 34px; padding: 5px 9px; color: var(--color-text-muted); font-size: .86rem; }
.button-danger { color: var(--color-danger); }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }

.empty-state { padding: clamp(42px, 8vw, 72px); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); text-align: center; }
.empty-state h2 { margin-bottom: 10px; font-size: clamp(1.8rem, 4vw, 3rem); }
.empty-state p { max-width: 480px; margin: 0 auto 28px; color: var(--color-text-muted); }
.request-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.request-card { position: relative; min-height: 260px; display: flex; flex-direction: column; padding: var(--card-padding); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card); }
.request-card h2 { margin: 22px 0 10px; font-size: 1.55rem; }
.request-card p { color: var(--color-text-muted); }
.request-card .card-link { position: absolute; inset: 0; }
.request-card .card-link:focus-visible { outline-offset: 4px; }
.card-top, .card-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.card-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--color-border); font-size: var(--font-size-meta-large); }
.platform-label { font-weight: 750; text-transform: capitalize; }
.badge { display: inline-flex; align-items: center; border-radius: 100px; padding: 4px 10px; background: #e9ded0; color: #5f525a; font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.badge-published { background: #d6e8df; color: var(--color-success); }
.badge-paused { background: #efe0b9; color: #765d1d; }
.badge-closed { background: #e6dadd; color: #70404b; }
.badge-available { background: var(--color-magenta); color: white; }
.badge-claimed { background: #d6e8df; color: var(--color-success); }
.badge-completed { background: var(--color-plum); color: var(--color-champagne); }
.badge-full { background: #e6dadd; color: #70404b; }

.discovery-hero { border-bottom: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); }
.discovery-hero .page-shell { padding-top: var(--space-page-top); padding-bottom: var(--space-page-top); }
.discovery-hero h1 { margin-bottom: 14px; }
.discovery-hero .eyebrow { color: var(--color-primary-hover); }
.discovery-hero .lede { margin-bottom: 0; color: var(--color-text-muted); }
.discovery-shell { padding-top: 34px; }
.filter-bar { display: flex; align-items: center; gap: 28px; padding: 18px 0 25px; border-bottom: 1px solid var(--color-border); }
.filter-bar h2 { flex: 0 0 auto; margin: 0; font-size: var(--font-size-meta-compact); letter-spacing: .1em; text-transform: uppercase; }
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { min-height: 38px; display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 100px; padding: 7px 14px; color: var(--color-text-muted); background: color-mix(in srgb, white 35%, transparent); font-size: .85rem; font-weight: 750; text-decoration: none; }
.filter-chip:hover { border-color: #a48f9c; color: var(--color-text); }
.filter-chip.active { border-color: var(--color-magenta); background: var(--color-magenta); color: white; }
.discovery-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0 20px; color: var(--color-text-muted); font-size: .86rem; }
.discovery-summary p { margin: 0; }
.discovery-summary strong { color: var(--color-text); font-size: 1rem; }
.discovery-summary > span { font-size: var(--font-size-meta-sm); font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.discovery-rotate { flex: 0 0 auto; }
.discovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.discovery-card { min-height: 420px; display: flex; flex-direction: column; padding: var(--card-padding); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card); }
.discovery-card-meta { display: flex; align-items: center; justify-content: space-between; color: var(--color-text-muted); font-size: var(--font-size-meta); font-weight: 750; }
.platform-marker { color: var(--color-primary-hover); letter-spacing: .06em; text-transform: uppercase; }
.discovery-card h2 { margin: 24px 0 11px; font-size: 1.65rem; }
.discovery-description { color: var(--color-text-muted); }
.tester-callout { margin: 8px 0 24px; padding: 15px 0; border-top: 1px solid var(--color-border); }
.tester-callout span { display: block; margin-bottom: 4px; color: var(--color-primary-hover); font-size: var(--font-size-meta-xs); font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.tester-callout p { margin: 0; font-size: .9rem; }
.not-for-me { align-self: flex-start; margin: -10px 0 16px; border: 0; padding: 5px 0; background: transparent; color: var(--color-text-muted); cursor: pointer; font: inherit; font-size: .78rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.not-for-me:hover { color: var(--color-primary-hover); }
.not-for-me:disabled { cursor: wait; opacity: .6; }
.discovery-card-footer { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--color-border); font-size: var(--font-size-meta); }
.discovery-card-footer strong { font-size: 1.1rem; }
.discovery-card-footer .full-label { color: #70404b; text-transform: uppercase; }
.discovery-card-footer span { color: var(--color-text-muted); }
.discovery-card-footer .button { min-height: 40px; padding: 8px 13px; }
.discovery-empty { margin-top: 4px; }

.form-shell { width: min(var(--content-form-width), calc(100% - var(--app-gutter) - var(--app-gutter))); margin: 0 auto; padding: var(--space-page-top) 0 var(--space-page-bottom); }
.form-header { padding-bottom: 34px; border-bottom: 1px solid var(--color-border); }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--color-text-muted); font-size: .9rem; font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--color-primary-hover); }
.form-section { display: grid; grid-template-columns: 150px 1fr; gap: 34px; padding: 34px 0; border-bottom: 1px solid var(--color-border); }
.section-label .section-number { color: var(--color-primary-hover); font-size: var(--font-size-meta-sm); font-weight: 850; letter-spacing: .14em; }
.section-label h2 { margin: 5px 0 0; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.section-fields { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .field-label { font-size: .9rem; font-weight: 760; }
.field-hint { margin: -3px 0 0; color: var(--color-text-muted); font-size: .82rem; }
.mission-field { padding: 22px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.mission-field textarea { background: white; }
.access-requirements-fields { display: grid; gap: 20px; margin-top: 2px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.access-requirements-fields > header p { margin: 0; }
.access-requirements-fields > header p:last-child { margin-top: 5px; color: var(--color-text-muted); font-size: .84rem; }
.access-binary-choice, .permission-choice-field { min-width: 0; margin: 0; border: 0; padding: 0; }
.access-binary-choice legend, .permission-choice-field legend { margin-bottom: 9px; font-size: .9rem; font-weight: 760; }
.compact-options { display: flex; gap: 8px; }
.compact-options label, .permission-options label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .86rem; font-weight: 680; }
.compact-options label { min-width: 76px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 9px 11px; background: var(--color-surface); }
.compact-options input, .permission-options input { width: auto; margin: 0; accent-color: var(--color-magenta); }
.permission-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 14px; }
.permission-options label { min-width: 0; }
.compact-textarea { min-height: 82px; }
.field[hidden], #invite-code-field[hidden] { display: none; }
input, textarea, select { width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--color-surface); color: var(--color-text); }
textarea { min-height: 105px; resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: #b7a5ae; }
input:focus, textarea:focus, select:focus { border-color: var(--color-focus); outline: 3px solid color-mix(in srgb, var(--color-magenta) 18%, transparent); }
[aria-invalid="true"] { border-color: var(--color-danger); }
.field-error { min-height: 0; margin: 0; color: var(--color-danger); font-size: .83rem; font-weight: 650; }
.field-error:empty { display: none; }
.credit-estimate { margin: 0; padding: 13px 15px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); font-size: .9rem; }
.credit-estimate strong { color: var(--color-text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: 10px; padding: 18px 0; background: linear-gradient(transparent, var(--color-bg) 22%); }

.detail-hero { padding: var(--space-page-top) 0 52px; border-bottom: 1px solid var(--color-border); color: var(--color-text); background: var(--color-surface); }
.detail-hero-inner { width: min(var(--content-width), calc(100% - var(--app-gutter) - var(--app-gutter))); margin: 0 auto; }
.detail-hero .back-link { color: var(--color-text-muted); }
.detail-title-row { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.detail-hero h1 { margin-bottom: 14px; }
.detail-hero .lede { color: var(--color-text-muted); }
.public-detail-body { padding-top: 50px; }
.detail-actions { display: flex; gap: 10px; padding-bottom: 12px; }
.publish-credit-context { display: grid; justify-items: end; gap: 7px; }
.publish-credit-context > span { color: var(--color-text-muted); font-size: var(--font-size-meta); font-weight: 700; }
.publish-credit-context > p { max-width: 300px; margin: 0; color: var(--color-danger); font-size: var(--font-size-meta-compact); text-align: right; }
.detail-actions .button-secondary { border-color: var(--color-border); color: var(--color-text); background: transparent; }
.claim-panel { min-width: 245px; padding: 22px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-champagne); }
.claim-panel p { margin-bottom: 13px; color: var(--color-text-muted); font-size: .88rem; }
.claim-panel p strong { color: var(--color-text); font-size: 1.05rem; }
.claim-panel .button { width: 100%; }
.claim-panel .claim-message { margin: 10px 0 0; color: var(--color-danger); font-weight: 700; }
.detail-body { width: min(var(--content-detail-width), calc(100% - var(--app-gutter) - var(--app-gutter))); margin: 0 auto; padding: 52px 0 var(--space-page-bottom); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 50px; overflow: hidden; background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--radius-card); }
.fact { padding: 20px; background: var(--color-surface); }
.fact span { display: block; color: var(--color-text-muted); font-size: var(--font-size-meta-xs); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.fact strong { display: block; margin-top: 6px; text-transform: capitalize; }
.fact small { display: block; margin-top: 2px; color: var(--color-text-muted); font-size: var(--font-size-meta-sm); }
.detail-section { display: grid; grid-template-columns: 190px 1fr; gap: 35px; padding: 35px 0; border-top: 1px solid var(--color-border); }
.detail-section h2 { font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.content-list { margin: 0; padding-left: 22px; }
.content-list li { padding: 8px 0 12px 8px; border-bottom: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent); }
.access-box { padding: 22px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); overflow-wrap: anywhere; }
.meta-note { color: var(--color-text-muted); font-size: var(--font-size-meta); }
.assignment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.assignment-card { min-height: 270px; display: flex; flex-direction: column; padding: var(--card-padding); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card); }
.assignment-card-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--color-text-muted); font-size: var(--font-size-meta); }
.assignment-card h2 { margin: 24px 0 10px; font-size: 1.65rem; }
.assignment-card > p { color: var(--color-text-muted); }
.assignment-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: var(--font-size-meta); }
.assignment-hero { padding: var(--space-page-top) 0 52px; border-bottom: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); }
.assignment-hero .eyebrow { color: var(--color-primary-hover); }
.assignment-hero .lede { color: var(--color-text-muted); }
.assignment-detail-body { max-width: 950px; }
.assignment-mission { margin: 36px 0 10px; padding: clamp(24px, 5vw, 38px); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card); }
.assignment-mission .eyebrow { margin-bottom: 12px; }
.assignment-mission > p:last-child { max-width: 760px; margin: 0; font-size: clamp(1.2rem, 3vw, 1.65rem); font-weight: 760; line-height: 1.35; white-space: pre-wrap; }
.assignment-access-requirements { margin-top: 30px; padding: 28px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.assignment-access-requirements > .eyebrow { margin-bottom: 17px; }
.access-requirements-list { margin: 0; }
.access-requirements-list > div { display: grid; grid-template-columns: 145px 1fr; gap: 18px; padding: 11px 0; border-top: 1px solid var(--color-border); }
.access-requirements-list dt { color: var(--color-text-muted); font-size: var(--font-size-meta-sm); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.access-requirements-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.assignment-section h2 { font-size: 1rem; }
.coming-next { margin-top: 38px; padding: 28px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.coming-next h2 { margin-bottom: 8px; }
.coming-next p:last-child { max-width: 650px; margin-bottom: 0; color: var(--color-text-muted); }
.feedback-form-section, .submitted-feedback, .founder-feedback-section { margin-top: 44px; padding-top: 38px; border-top: 1px solid var(--color-border); }
.feedback-form-section > header { max-width: 680px; margin-bottom: 28px; }
.feedback-form-section > header h2, .submitted-feedback h2, .founder-feedback-section h2 { margin-bottom: 8px; font-family: var(--font-family-display); font-size: var(--font-size-section-title); font-style: normal; font-weight: 600; font-variation-settings: "opsz" 60, "wght" 600; text-transform: none; letter-spacing: 0; line-height: 1.08; }
.feedback-form-section > header > p:last-child { color: var(--color-text-muted); }
#feedback-form { display: grid; gap: 26px; }
.feedback-field { padding: var(--card-padding); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.feedback-field label { display: flex; align-items: start; gap: 12px; font-size: 1rem; }
.feedback-field:not(.choice-field) label > span:not(.optional-label) { flex: 0 0 auto; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--color-plum); color: white; font-size: .72rem; }
.feedback-field textarea { min-height: 125px; background: white; }
.choice-field { margin: 0; border: 0; }
.choice-field legend { margin-bottom: 16px; font-weight: 760; }
.feedback-choice-group { display: grid; gap: 10px; }
.outcome-options { grid-template-columns: repeat(3, 1fr); }
.difficulty-options { grid-template-columns: repeat(5, 1fr); }
.feedback-choice-group label { position: relative; display: block; cursor: pointer; }
.feedback-choice-group input { position: absolute; opacity: 0; pointer-events: none; }
.feedback-choice-group label > span { height: 100%; display: grid; place-items: center; min-height: 54px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 9px; background: white; text-align: center; font-size: .82rem; font-weight: 740; }
.difficulty-options label > span { align-content: center; gap: 2px; min-height: 78px; }
.difficulty-options b { color: var(--color-magenta); font-size: 1.15rem; }
.feedback-choice-group input:checked + span { border-color: var(--color-plum); outline: 2px solid var(--color-plum); background: var(--color-champagne); }
.feedback-choice-group input:focus-visible + span { outline: 3px solid var(--color-magenta); outline-offset: 2px; }
.optional-label { margin-left: auto; color: var(--color-text-muted); font-size: .76rem; font-weight: 600; }
#feedback-form .button { justify-self: end; min-width: 180px; }
.feedback-submit-error { margin: 0; color: var(--color-danger); font-weight: 700; }
.submitted-feedback > header, .section-header-row { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.submitted-feedback dl, .founder-feedback-card dl { margin: 0; }
.submitted-feedback dl > div, .founder-feedback-card dl > div { padding: 20px 0; border-top: 1px solid var(--color-border); }
.submitted-feedback dt, .founder-feedback-card dt { margin-bottom: 8px; color: var(--color-text-muted); font-size: var(--font-size-meta-large); font-weight: 760; }
.submitted-feedback dd, .founder-feedback-card dd { margin: 0; white-space: pre-wrap; }
.founder-feedback-section { margin-top: 52px; }
.feedback-count { border: 1px solid var(--color-border); border-radius: 100px; padding: 6px 12px; color: var(--color-text-muted); font-size: var(--font-size-meta); font-weight: 760; }
.founder-feedback-list { display: grid; gap: 20px; }
.founder-feedback-card { padding: var(--card-padding); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card); }
.founder-feedback-card > header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; }
.founder-feedback-card > header span { color: var(--color-text-muted); font-size: var(--font-size-meta); }
.feedback-evaluation { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.feedback-evaluation > div:first-child { display: grid; gap: 3px; }
.feedback-evaluation strong { font-size: .9rem; }
.evaluation-status { color: var(--color-text-muted); font-size: var(--font-size-meta-sm); }
.evaluation-options { display: flex; gap: 8px; }
.evaluation-button { min-height: 38px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 7px 14px; background: transparent; color: var(--color-text-muted); cursor: pointer; font-weight: 760; }
.evaluation-button:hover { border-color: var(--color-primary-hover); color: var(--color-text); }
.evaluation-button.selected { border-color: var(--color-plum); background: var(--color-plum); color: white; }
.evaluation-button:disabled { opacity: .55; cursor: wait; }
.feedback-empty { padding: 28px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); color: var(--color-text-muted); }
.creator-results { margin-top: 58px; padding-top: 42px; }
.creator-results-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.creator-results-header h2 { margin: 0; font-size: var(--font-size-page-title); }
.creator-results-header > strong { color: var(--color-text-muted); font-size: .9rem; }
.results-mission { padding: clamp(24px, 5vw, 36px); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card); }
.results-mission > p:last-child { max-width: 780px; margin: 0; font-size: clamp(1.15rem, 3vw, 1.55rem); font-weight: 760; line-height: 1.4; white-space: pre-wrap; }
.results-empty { margin-top: 22px; padding: clamp(30px, 6vw, 54px); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); text-align: center; }
.results-empty h3 { margin-bottom: 8px; font-size: 1.5rem; }
.results-empty p { max-width: 520px; margin: 0 auto; color: var(--color-text-muted); }
.results-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.results-summary > div { display: grid; align-content: start; gap: 4px; padding: 24px; }
.results-summary > div + div { border-left: 1px solid var(--color-border); }
.results-summary span { color: var(--color-primary-hover); font-size: var(--font-size-meta-xs); font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.results-summary strong { font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.2; }
.results-summary small { color: var(--color-text-muted); font-size: var(--font-size-meta); }
.results-section { padding: 44px 0; border-bottom: 1px solid var(--color-border); }
.results-section h3 { margin-bottom: 24px; font-size: clamp(1.45rem, 3vw, 2rem); }
.outcome-list { max-width: 720px; border-top: 1px solid var(--color-border); }
.outcome-row { display: grid; grid-template-columns: 1fr auto 70px; align-items: center; gap: 24px; padding: 17px 0; border-bottom: 1px solid var(--color-border); }
.outcome-row strong { font-size: 1.3rem; }
.outcome-row small { color: var(--color-text-muted); font-size: var(--font-size-meta); text-align: right; }
.difficulty-distribution { max-width: 720px; }
.difficulty-distribution > div { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 13px 0; border-top: 1px solid var(--color-border); }
.difficulty-distribution b { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; background: var(--color-plum); color: white; }
.results-evidence-list { display: grid; gap: 14px; }
.results-evidence-card { padding: clamp(22px, 4vw, 30px); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card); }
.results-evidence-card > p { max-width: 780px; margin-bottom: 16px; font-size: 1.08rem; white-space: pre-wrap; }
.results-evidence-card > footer { color: var(--color-text-muted); font-size: var(--font-size-meta-compact); }
.observations-section .results-evidence-card { box-shadow: none; }
.ai-insight { margin: 50px 0 12px; padding: clamp(26px, 5vw, 40px); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); color: var(--color-text); }
.ai-insight > h3, .ai-insight > header h3 { max-width: 760px; margin-bottom: 12px; font-family: var(--font-family-display); font-size: var(--font-size-section-title); font-style: normal; font-weight: 600; font-variation-settings: "opsz" 60, "wght" 600; letter-spacing: 0; line-height: 1.08; }
.ai-insight .eyebrow { color: var(--color-primary-hover); }
.ai-insight-note { max-width: 700px; color: var(--color-text-muted); }
.ai-insight > .button { margin-top: 12px; }
.ai-insight-complete > header { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.ai-confidence { flex: 0 0 auto; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 5px 11px; color: var(--color-text-muted); font-size: var(--font-size-meta-xs); font-weight: 780; text-transform: capitalize; }
.ai-summary { max-width: 800px; margin: 24px 0 30px; color: var(--color-text); font-size: 1.08rem; }
.ai-stale-notice { display: grid; gap: 3px; margin: 8px 0 25px; padding: 15px 18px; border: 1px solid var(--color-border); background: var(--color-champagne); }
.ai-stale-notice span { color: var(--color-text-muted); font-size: .86rem; }
.start-here { padding: clamp(24px, 5vw, 36px); border-radius: var(--radius-card); background: var(--color-champagne); color: var(--color-text); }
.start-here .eyebrow { color: var(--color-primary-hover); }
.start-here h4 { max-width: 740px; margin: 0 0 9px; font-size: clamp(1.45rem, 4vw, 2.25rem); line-height: 1.15; }
.start-here > strong { color: var(--color-primary-hover); font-size: var(--font-size-meta); }
.start-here > p:last-child { max-width: 760px; margin: 16px 0 0; }
.ai-patterns, .ai-secondary-signal { padding-top: 34px; }
.ai-patterns h4, .ai-secondary-signal h4 { margin-bottom: 18px; font-size: 1.25rem; }
.ai-patterns > div { display: grid; gap: 10px; }
.ai-patterns article { padding: 19px 0; border-top: 1px solid var(--color-border); background: transparent; }
.ai-patterns article header { display: flex; justify-content: space-between; gap: 20px; }
.ai-patterns article header span { color: var(--color-text-muted); font-size: var(--font-size-meta-compact); }
.ai-patterns article p { margin: 10px 0 0; color: var(--color-text-muted); }
.ai-secondary-signal { max-width: 820px; }
.ai-secondary-signal > p:last-child, .ai-secondary-signal li { color: var(--color-text-muted); }
.ai-secondary-signal ul { margin-bottom: 0; padding-left: 22px; }
.ai-retry-error { margin: 16px 0 0; color: var(--color-danger); font-weight: 700; }
.raw-evidence-heading { margin-top: 58px; }
.raw-evidence-heading h3 { margin-bottom: 0; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.quality-summary { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(250px, 1fr); margin: -18px 0 32px; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.quality-summary > div { padding: 18px 22px; }
.quality-summary > div + div { border-left: 1px solid var(--color-border); }
.quality-summary span { display: block; margin-bottom: 5px; color: var(--color-text-muted); font-size: var(--font-size-meta-xs); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.quality-summary strong { font-size: 1rem; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; max-width: 360px; padding: 13px 17px; border-radius: var(--radius-sm); background: var(--color-plum); color: white; box-shadow: var(--shadow-soft); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--color-danger); }
.completion-dialog { width: min(520px, calc(100% - 28px)); max-width: none; border: 0; padding: 0; background: transparent; color: var(--color-text); }
.completion-dialog::backdrop { background: rgb(33 24 33 / .72); }
.completion-dialog-card { position: relative; border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: clamp(30px, 6vw, 48px); background: var(--color-surface); box-shadow: 0 24px 60px rgb(16 10 16 / .22); }
.completion-dialog-card h2 { max-width: 390px; margin-bottom: 12px; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.completion-dialog-card > p:not(.eyebrow, .completion-credit) { color: var(--color-text-muted); }
.completion-dialog-close { position: absolute; top: 15px; right: 17px; width: 42px; height: 42px; border: 0; background: transparent; color: var(--color-text-muted); cursor: pointer; font-size: 1.65rem; line-height: 1; }
.completion-dialog-close:hover { color: var(--color-text); }
.completion-credit { margin: 28px 0; padding: 17px 19px; border: 1px solid var(--color-border); background: var(--color-champagne); font-size: 1.08rem; font-weight: 850; }
.completion-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.loading { padding: 100px 20px; color: var(--color-text-muted); text-align: center; }
.site-footer { min-height: 165px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px max(24px, calc((100vw - var(--content-width)) / 2)); background: var(--color-plum); color: #cdbfc8; }
.brand-footer { color: var(--color-champagne); }

@media (max-width: 820px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero { min-height: auto; }
  .home-how-panel { padding: 40px 28px; }
  .hero-results-preview { width: min(560px, 100%); }
  .credit-loop-heading-row { grid-template-columns: 1fr; gap: 18px; }
  .credit-loop-heading-row h2 { white-space: normal; }
  .credit-loop-principle { max-width: 560px; }
  .request-grid { grid-template-columns: 1fr 1fr; }
  .discovery-grid { grid-template-columns: 1fr 1fr; }
  .assignment-grid { grid-template-columns: 1fr; }
  .form-section, .detail-section { grid-template-columns: 1fr; gap: 18px; }
  .section-label { display: flex; align-items: baseline; gap: 10px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .detail-title-row { align-items: start; flex-direction: column; }
}
@media (max-width: 600px) {
  :root { --app-gutter: 14px; }
  .site-header { min-height: 108px; grid-template-columns: 1fr auto; grid-template-areas: "brand user" "nav nav"; gap: 0 10px; padding: 10px 14px 0; }
  .site-header > .brand { grid-area: brand; }
  .site-header nav { grid-area: nav; width: 100%; height: 48px; justify-content: center; gap: clamp(8px, 4vw, 18px); }
  .site-header .account-tools { grid-area: user; }
  .account-name { display: none; }
  .nav-link { height: 48px; padding: 0 3px; font-size: clamp(.7rem, 3.4vw, .78rem); }
  .page-shell { width: min(100% - 28px, var(--content-width)); padding-top: 42px; }
  .page-heading { align-items: start; flex-direction: column; gap: 12px; }
  .page-heading .button { width: 100%; }
  .home-shell { width: min(100% - 28px, var(--content-width)); }
  .home-hero { padding: 62px 0 70px; }
  .home-hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-results-preview > header { align-items: flex-start; flex-direction: column; gap: 3px; }
  .home-actions { align-items: stretch; flex-direction: column; }
  .home-actions .button { width: 100%; }
  .home-steps { grid-template-columns: 1fr; margin-top: 34px; }
  .home-steps li { padding: 26px 0; }
  .home-steps li + li { border-top: 1px solid var(--color-border); border-left: 0; padding-left: 0; }
  .home-how-panel { padding: 36px 26px; }
  .home-how-panel .home-steps li, .home-how-panel .home-steps li + li { padding-right: 0; padding-left: 0; }
  .credit-paths { grid-template-columns: 1fr; margin-top: 36px; }
  .credit-path { padding: 26px 0 28px; }
  .credit-pack { align-items: stretch; flex-direction: column; }
  .credit-pack .button { width: 100%; }
  .payment-result-actions { display: grid; grid-template-columns: 1fr; }
  .payment-result-actions .button { width: 100%; }
  .completion-dialog-actions { display: grid; grid-template-columns: 1fr; }
  .request-grid { grid-template-columns: 1fr; }
  .discovery-hero .page-shell { padding-top: 48px; padding-bottom: 52px; }
  .filter-bar { align-items: start; flex-direction: column; gap: 13px; }
  .filter-options { width: 100%; }
  .discovery-summary { align-items: stretch; flex-direction: column; gap: 12px; }
  .discovery-rotate { width: 100%; }
  .discovery-grid { grid-template-columns: 1fr; }
  .discovery-card { min-height: 390px; }
  .field-row { grid-template-columns: 1fr; }
  .permission-options { grid-template-columns: 1fr 1fr; }
  .access-requirements-list > div { grid-template-columns: 1fr; gap: 4px; }
  .ordered-item { grid-template-columns: 25px 1fr; }
  .item-actions { grid-column: 2; justify-self: end; }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; }
  body:has(.form-actions) .toast { bottom: 88px; }
  .facts { grid-template-columns: 1fr; }
  .detail-actions { width: 100%; }
  .publish-credit-context { width: 100%; justify-items: stretch; }
  .publish-credit-context > span, .publish-credit-context > p { text-align: left; }
  .detail-actions .button { flex: 1; }
  .claim-panel { width: 100%; }
  .assignment-card-footer { align-items: stretch; flex-direction: column; }
  .submitted-feedback > header, .section-header-row, .founder-feedback-card > header { flex-direction: column; gap: 10px; }
  .feedback-field { padding: 18px; }
  .difficulty-options { grid-template-columns: 1fr; }
  .difficulty-options label > span { grid-template-columns: 26px 1fr; min-height: 50px; text-align: left; }
  .feedback-evaluation { align-items: stretch; flex-direction: column; gap: 14px; }
  .creator-results-header { align-items: start; flex-direction: column; gap: 8px; }
  .ai-insight-complete > header { flex-direction: column; gap: 10px; }
  .ai-patterns article header { flex-direction: column; gap: 4px; }
  .results-summary { grid-template-columns: 1fr; }
  .results-summary > div + div { border-top: 1px solid var(--color-border); border-left: 0; }
  .outcome-row { grid-template-columns: 1fr auto 56px; gap: 12px; }
  .evaluation-options { display: grid; grid-template-columns: 1fr 1fr; }
  .quality-summary { grid-template-columns: 1fr; margin-top: 0; }
  .quality-summary > div + div { border-top: 1px solid var(--color-border); border-left: 0; }
  #feedback-form .button { width: 100%; }
  .site-footer { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
