:root {
  color-scheme: light;
  --page: oklch(98% .007 145);
  --surface: oklch(100% 0 0);
  --surface-soft: oklch(96.1% .013 145);
  --ink: oklch(25% .032 150);
  --muted: oklch(49% .022 150);
  --subtle: oklch(63% .017 150);
  --line: oklch(88% .018 145);
  --line-light: oklch(93% .013 145);
  --green: oklch(38% .075 152);
  --green-hover: oklch(31% .068 152);
  --mint: oklch(92% .043 151);
  --mint-light: oklch(96% .026 151);
  --amber: oklch(48% .086 73);
  --amber-bg: oklch(96% .038 86);
  --red: oklch(46% .145 27);
  --red-bg: oklch(97% .019 27);
  --blue: oklch(46% .07 244);
  --blue-bg: oklch(95% .019 244);
  --radius: 15px;
  --content: 1160px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
button, input, textarea, select { color: inherit; }
a { color: var(--green); text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid oklch(65% .14 150); outline-offset: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 38px; letter-spacing: -.045em; line-height: 1.12; font-weight: 650; }
h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.025em; font-weight: 650; }
h3 { font-size: 17px; line-height: 1.3; letter-spacing: -.015em; font-weight: 600; }
small { font-size: 12px; }
svg { display: block; }
[hidden] { display: none !important; }
.icon, .icon svg { width: 20px; height: 20px; flex: none; }
.icon svg { stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.muted { color: var(--muted); }
.eyebrow { color: var(--green); font-size: 11px; text-transform: uppercase; font-weight: 650; letter-spacing: .1em; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 630px; }

.preview-bar { background: var(--green); color: white; font-size: 11px; min-height: 32px; padding: 6px max(24px, calc((100vw - var(--content)) / 2)); display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.preview-label { display: inline-flex; gap: 8px; align-items: center; opacity: .9; }
.preview-dot { display: none; }
.preview-label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: oklch(87% .09 150); }
.preview-actions { display: inline-flex; align-items: center; gap: 12px; }
.preview-bar button { color: inherit; font-size: 11px; border: 0; border-radius: 4px; background: none; padding: 1px 0; }
.preview-bar button:hover { text-decoration: underline; }
.preview-bar a { color: inherit; }
.preview-tools { position: relative; }
.preview-tools > summary { cursor: pointer; list-style: none; padding: 1px 0; }
.preview-tools > summary::-webkit-details-marker { display: none; }
.preview-tools > summary::after { content: "⌄"; margin-left: 6px; }
.preview-tools-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 220px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 9px 35px #18332118; color: var(--ink); }
.preview-tools-menu button, .preview-scenario { display: block; width: 100%; border: 0; border-radius: 6px; background: transparent; color: var(--ink) !important; padding: 9px 11px !important; text-align: left; font-size: 12px !important; }
.preview-tools-menu button:hover, .preview-scenario:hover { background: var(--surface-soft); text-decoration: none; }

.site-header { background: var(--page); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--content); margin: auto; min-height: 90px; padding: 0 0; display: flex; align-items: center; gap: 22px; }
.wordmark { padding: 0; border: 0; background: none; font-size: 38px; line-height: 1; font-weight: 750; letter-spacing: -.075em; text-decoration: none; color: var(--ink); }
.brand-caption { padding-left: 20px; border-left: 1px solid var(--line); max-width: 150px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.primary-nav { display: flex; align-items: stretch; gap: 7px; margin-left: auto; align-self: stretch; }
.primary-nav button { border: 0; position: relative; background: transparent; min-width: 82px; padding: 0 18px; font-size: 14px; color: var(--muted); }
.primary-nav button:hover { color: var(--ink); }
.primary-nav button.is-active { color: var(--green); font-weight: 600; }
.primary-nav button.is-active::after { content: ""; position: absolute; bottom: -1px; left: 18px; right: 18px; height: 3px; background: var(--green); border-radius: 3px 3px 0 0; }
.account-button { margin-left: 22px; border: 0; background: none; padding: 4px; border-radius: 50%; }
.avatar { display: grid; place-items: center; background: var(--mint); color: var(--green); font-size: 13px; font-weight: 650; border-radius: 50%; width: 37px; height: 37px; flex: none; }
main#app { max-width: var(--content); margin: auto; min-height: calc(100svh - 123px); }
.page { padding: 52px 0 80px; animation: page-appear 170ms ease-out; }
.page-heading { margin-bottom: 34px; }
.page-heading .eyebrow { margin-bottom: 12px; }
.page-heading .lead { margin-top: 15px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 42px 0 17px; }
.section-heading h2 { font-size: 20px; }
.section-subtitle { color: var(--muted); font-size: 13px; margin-top: 4px; }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--green); font-size: 13px; font-weight: 550; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 10px 19px; border: 1px solid transparent; font-size: 14px; font-weight: 550; line-height: 1.3; text-decoration: none; transition: background 130ms ease, border-color 130ms ease; white-space: normal; text-align: center; }
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--green-hover); }
.btn-secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-soft); border-color: oklch(77% .026 145); }
.btn-quiet { background: transparent; color: var(--green); padding-left: 8px; padding-right: 8px; }
.btn-quiet:hover:not(:disabled) { background: var(--mint-light); }
.icon-button { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border: 1px solid var(--line); background: transparent; border-radius: 50%; color: var(--muted); }
.icon-button:hover { background: var(--surface-soft); color: var(--ink); }

.upload-hero { display: grid; grid-template-columns: 1fr 310px; align-items: end; gap: 80px; margin-bottom: 44px; }
.upload-hero h1 { max-width: 600px; font-size: 48px; letter-spacing: -.05em; line-height: 1.08; }
.upload-hero .lead { font-size: 16px; max-width: 490px; margin-top: 18px; }
.invite-nudge { border-radius: 13px; background: var(--mint-light); padding: 23px 25px; }
.invite-nudge h3 { font-size: 16px; margin-bottom: 7px; }
.invite-nudge p { font-size: 13px; line-height: 1.5; color: var(--muted); margin-bottom: 15px; }
.category-tabs { display: flex; gap: 5px; border-bottom: 1px solid var(--line); margin-bottom: 1px; padding-bottom: 13px; overflow-x: auto; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs button { border: 0; background: none; padding: 8px 15px; border-radius: 7px; font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--muted); }
.category-tabs button:hover { background: var(--surface-soft); color: var(--ink); }
.category-tabs button.is-active { background: var(--mint); color: var(--green); font-weight: 600; }
.collection-list { border-bottom: 1px solid var(--line); }
.collection-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 155px 24px; align-items: center; gap: 24px; width: 100%; text-align: left; padding: 24px 8px 24px 0; border: 0; border-bottom: 1px solid var(--line-light); background: transparent; color: var(--ink); }
.collection-row:last-child { border-bottom: 0; }
.collection-row:hover { background: var(--mint-light); }
.collection-row:hover .row-arrow { transform: translateX(3px); }
.collection-art { display: grid; place-items: center; height: 76px; width: 88px; border-radius: 10px; background: var(--surface-soft); overflow: hidden; }
.collection-art svg { width: 100%; height: 100%; }
.collection-copy h3 { margin-bottom: 6px; }
.collection-copy p { color: var(--muted); font-size: 13px; line-height: 1.45; max-width: 500px; }
.collection-copy .eyebrow { margin-bottom: 5px; font-size: 10px; }
.collection-reward { display: flex; flex-direction: column; gap: 3px; text-align: right; }
.collection-reward strong { font-size: 17px; font-weight: 650; letter-spacing: -.02em; color: var(--green); }
.collection-reward small { color: var(--muted); font-size: 11px; }
.row-arrow { width: 20px; height: 20px; color: var(--green); transition: transform 140ms ease; }
.row-arrow svg { width: 20px; height: 20px; }
.submission-list { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.submission-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line-light); }
.submission-row:last-child { border-bottom: 0; }
.file-avatar { width: 42px; height: 46px; border: 1px solid var(--line); border-radius: 7px; display: grid; place-items: center; background: var(--page); color: var(--green); font-size: 9px; font-weight: 650; letter-spacing: .035em; flex: none; }
.submission-copy h3 { font-size: 14px; margin-bottom: 4px; overflow-wrap: anywhere; }
.submission-copy p { color: var(--muted); font-size: 12px; }
.status { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 9px; border-radius: 5px; font-size: 11px; font-weight: 550; line-height: 1.25; white-space: nowrap; }
.status-success { background: var(--mint-light); color: var(--green); }
.status-warn { background: var(--amber-bg); color: var(--amber); }
.status-error { background: var(--red-bg); color: var(--red); }
.status-neutral { background: var(--surface-soft); color: var(--muted); }
.status-progress { background: var(--blue-bg); color: var(--blue); }
.row-action { font-size: 12px; min-width: 78px; text-align: right; }
.empty-state { padding: 42px 25px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.empty-state h3 { color: var(--ink); font-size: 15px; margin-bottom: 5px; }
.empty-state p { font-size: 13px; }

.back-link { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 0; color: var(--muted); font-size: 12px; margin-bottom: 30px; text-decoration: none; }
.back-link:hover { color: var(--green); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 70px; align-items: start; }
.detail-title { margin: 17px 0; }
.collection-illustration { height: 240px; background: var(--surface-soft); border-radius: 13px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 27px 0; }
.collection-illustration svg { width: 100%; height: 100%; }
.detail-main > h2 { font-size: 20px; margin: 30px 0 15px; }
.detail-main > p { color: var(--muted); line-height: 1.6; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 26px 0; }
.spec-grid > div { min-width: 0; }
.spec-grid dt, .spec-grid small { color: var(--muted); font-size: 11px; display: block; margin-bottom: 5px; }
.spec-grid dd { margin: 0; font-size: 14px; font-weight: 550; }
.requirements-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.requirements-list li { margin: 11px 0; padding-left: 3px; }
.requirements-list strong { color: var(--ink); font-weight: 550; }
.terms { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; }
.terms summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.terms p, .terms ul { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.65; }
.reward-panel { background: var(--mint-light); border-radius: 15px; padding: 27px; }
.reward-panel .eyebrow { margin-bottom: 13px; }
.reward-panel h2 { font-size: 33px; letter-spacing: -.04em; color: var(--green); }
.reward-panel p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.reward-panel .btn { width: 100%; margin-top: 24px; }
.reward-panel > small { display: block; color: var(--muted); margin-top: 13px; font-size: 11px; }
.detail-side .notice { margin-top: 18px; }

.stepper { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; color: var(--subtle); font-size: 12px; }
.step { display: inline-flex; align-items: center; gap: 7px; }
.step:not(:last-child)::after { content: ""; width: 32px; height: 1px; background: var(--line); margin-left: 6px; }
.step > span:first-child { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 10px; }
.step.active { color: var(--green); font-weight: 600; }
.step.active > span:first-child, .step.complete > span:first-child { border-color: var(--green); color: var(--surface); background: var(--green); }
.upload-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 60px; align-items: start; }
.upload-main h1 { margin-bottom: 12px; }
.upload-main > .muted { margin-bottom: 25px; }
.upload-aside { border-left: 1px solid var(--line); padding-left: 28px; }
.upload-aside h3 { font-size: 14px; margin-bottom: 12px; }
.upload-aside p { color: var(--muted); font-size: 12px; margin-bottom: 13px; }
.upload-aside ul { color: var(--muted); font-size: 12px; padding-left: 17px; margin: 12px 0; }
.upload-aside li { margin-bottom: 8px; }
.drop-zone { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; padding: 33px 18px; min-height: 192px; border: 1.5px dashed oklch(75% .045 150); border-radius: 12px; background: var(--surface); text-align: center; cursor: pointer; }
.drop-zone:hover, .drop-zone.is-dragover { border-color: var(--green); background: var(--mint-light); }
.drop-zone > .icon { width: 30px; height: 30px; margin-bottom: 8px; color: var(--green); }
.drop-zone > .icon svg { width: 30px; height: 30px; }
.drop-zone strong { font-size: 14px; font-weight: 550; }
.drop-zone p, .drop-zone small { color: var(--muted); font-size: 12px; }
.drop-zone .btn { margin-top: 7px; min-height: 36px; font-size: 12px; padding: 8px 15px; }
.file-list { margin: 13px 0 25px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.file-row .file-avatar { width: 32px; height: 37px; font-size: 8px; }
.file-meta { min-width: 0; flex: 1; }
.file-meta strong { display: block; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.file-meta small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.remove-file { border: 0; background: none; color: var(--muted); padding: 8px; font-size: 18px; border-radius: 5px; }
.remove-file:hover { background: var(--surface-soft); color: var(--red); }
.form-field { margin-bottom: 22px; }
.form-field > label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 8px; }
.form-field label small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.form-field input:not([type=checkbox]), .form-field select, .form-field textarea, .auth-form input { display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-height: 45px; font-size: 14px; }
.form-field textarea { resize: vertical; min-height: 105px; line-height: 1.5; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--subtle); }
.form-field > small { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--muted); line-height: 1.55; margin: 18px 0; cursor: pointer; }
.check-row input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.upload-actions { display: flex; align-items: center; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }
.inline-note { color: var(--muted); font-size: 11px; }
.error-text { color: var(--red); font-size: 12px; margin-top: 7px; }
.summary-block { border: 1px solid var(--line); border-radius: 12px; padding: 23px; margin: 24px 0; background: var(--surface); }
.summary-block h3 { margin-bottom: 9px; }
.summary-block p { font-size: 13px; color: var(--muted); margin: 6px 0; }
.summary-block dl { display: grid; grid-template-columns: minmax(100px, 1fr) 2fr; gap: 12px; font-size: 13px; margin: 20px 0 0; }
.summary-block dt { color: var(--muted); }
.summary-block dd { margin: 0; overflow-wrap: anywhere; }
.progress-track { margin: 27px 0; }
.progress-node { position: relative; display: flex; gap: 14px; align-items: flex-start; min-height: 72px; }
.progress-node:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 3px; width: 1px; background: var(--line); }
.progress-dot { width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface); color: var(--subtle); font-size: 11px; }
.progress-node.done .progress-dot { background: var(--green); color: white; border-color: var(--green); }
.progress-node.current .progress-dot { border: 6px solid var(--mint); background: var(--green); }
.progress-node.blocked .progress-dot { background: var(--amber-bg); border-color: oklch(83% .08 80); color: var(--amber); }
.progress-copy { padding-bottom: 23px; }
.progress-copy strong { font-size: 13px; font-weight: 550; }
.progress-copy p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.status-banner { background: var(--mint-light); border-radius: 12px; padding: 22px 25px; margin: 23px 0; }
.status-banner h2, .status-banner h3 { font-size: 17px; }
.status-banner p { color: var(--muted); font-size: 13px; margin-top: 6px; max-width: 600px; }
.status-banner.is-warn { background: var(--amber-bg); }
.status-banner.is-error { background: var(--red-bg); }
.status-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }

.invite-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 65px; align-items: start; }
.invite-main > h1 { margin-bottom: 13px; }
.invite-main > .lead { margin-bottom: 30px; max-width: 530px; }
.link-box { padding: 24px; background: var(--mint-light); border-radius: 14px; }
.link-box > label, .link-box > small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 9px; }
.invite-link { display: flex; gap: 10px; align-items: center; }
.invite-link input { min-width: 0; flex: 1; width: 100%; border: 1px solid var(--line); background: var(--surface); padding: 12px; border-radius: 7px; font-size: 12px; color: var(--green); }
.link-box > p { font-size: 11px; color: var(--muted); margin-top: 12px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.metric { min-width: 0; }
.metric:not(:first-child) { padding-left: 20px; border-left: 1px solid var(--line); }
.metric strong { display: block; font-size: 27px; font-weight: 600; line-height: 1.2; letter-spacing: -.04em; }
.metric small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.invite-side { border-left: 1px solid var(--line); padding-left: 28px; }
.invite-side h3 { font-size: 15px; margin-bottom: 12px; }
.invite-side > p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.referral-path { display: flex; flex-direction: column; align-items: flex-start; margin: 23px 0; }
.person-node { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.person-node .mini-avatar { background: var(--mint); }
.person-node small { color: var(--muted); display: block; font-size: 10px; }
.path-connector { margin-left: 15px; width: 1px; height: 23px; background: var(--line); }
.referral-list { margin-top: 19px; }
.referral-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line-light); }
.referral-row h3 { font-size: 13px; font-weight: 550; }
.referral-row p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.referral-row > strong { font-size: 13px; font-weight: 550; }
.mini-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--green); font-size: 11px; font-weight: 600; flex: none; }

.earnings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 65px; align-items: start; }
.earnings-overview { background: var(--mint); padding: 29px; border-radius: 16px; margin-bottom: 29px; }
.earnings-overview > .muted { font-size: 12px; }
.money-primary { display: flex; align-items: baseline; gap: 8px; font-size: 49px; line-height: 1.15; font-weight: 600; letter-spacing: -.045em; margin: 8px 0 24px; }
.money-primary small { font-size: 13px; font-weight: 500; color: var(--green); letter-spacing: 0; }
.money-secondary { display: flex; gap: 33px; border-top: 1px solid oklch(83% .045 150); padding-top: 19px; }
.money-secondary div { display: flex; flex-direction: column; gap: 4px; }
.money-secondary strong { font-weight: 550; font-size: 17px; letter-spacing: -.02em; }
.money-secondary small { color: var(--muted); font-size: 11px; }
.earnings-side h3 { font-size: 15px; margin-bottom: 10px; }
.earnings-side > p { color: var(--muted); font-size: 12px; }
.ledger-list { border-top: 1px solid var(--line); }
.ledger-row { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.ledger-icon { width: 35px; height: 35px; background: var(--mint-light); border-radius: 8px; display: grid; place-items: center; color: var(--green); }
.ledger-icon svg { width: 18px; height: 18px; }
.ledger-copy h3 { font-size: 13px; margin-bottom: 4px; }
.ledger-copy p { color: var(--muted); font-size: 11px; }
.ledger-copy .status { margin-top: 7px; }
.amount { text-align: right; font-size: 14px; font-weight: 600; white-space: nowrap; }
.amount small { color: var(--muted); display: block; font-weight: 400; font-size: 10px; margin-top: 5px; }
.amount-positive { color: var(--green); }
.payment-address { padding: 23px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
.payment-address h3 { font-size: 14px; margin-bottom: 10px; }
.payment-address p { color: var(--muted); font-size: 12px; margin: 8px 0 17px; }
.payment-address .btn { min-height: 37px; padding: 8px 13px; font-size: 12px; }
.address-display { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; padding: 11px 12px; background: var(--surface-soft); border-radius: 7px; color: var(--green); margin-bottom: 14px; }
.timeline { padding: 23px 0; color: var(--muted); font-size: 12px; }
.timeline p { margin: 7px 0; }
.notice { font-size: 11px; line-height: 1.6; color: var(--muted); padding: 16px 0; }
.notice strong { color: var(--ink); font-weight: 550; }

.mobile-nav { display: none; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); padding: 12px 20px; background: var(--ink); color: white; border-radius: 9px; font-size: 12px; box-shadow: 0 5px 20px #18332116; z-index: 100; max-width: calc(100vw - 32px); text-align: center; animation: toast-appear 150ms ease; }
.toast:empty { display: none; }
dialog#sheet { width: min(580px, calc(100vw - 40px)); padding: 0; background: var(--page); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 25px 110px #112c242b; max-height: calc(100svh - 80px); }
dialog#sheet::backdrop { background: #17382b57; }
.sheet-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 26px 28px 18px; }
.sheet-heading h2 { font-size: 23px; }
.sheet-heading p { color: var(--muted); font-size: 12px; margin-top: 7px; }
.sheet-close { flex: none; width: 31px; height: 31px; padding: 0; display: grid; place-items: center; background: transparent; border: 0; border-radius: 50%; color: var(--muted); font-size: 24px; line-height: 1; }
.sheet-close:hover { background: var(--surface-soft); }
.sheet-body { padding: 4px 28px 27px; }
.sheet-body > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.sheet-footer { padding: 18px 28px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.auth-form { margin-top: 20px; }
.auth-form label { display: block; font-size: 12px; font-weight: 550; margin-bottom: 8px; }
.auth-form .btn { width: 100%; margin-top: 18px; }
.auth-form small { display: block; color: var(--muted); font-size: 11px; margin-top: 14px; text-align: center; }

.review-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 38px; }
.review-sidebar { border-right: 1px solid var(--line); padding-right: 23px; }
.review-sidebar h3 { font-size: 12px; color: var(--muted); margin-bottom: 15px; }
.review-sidebar button { width: 100%; background: none; border: 0; border-radius: 7px; text-align: left; padding: 11px 12px; font-size: 13px; margin-bottom: 4px; }
.review-sidebar button.is-active { background: var(--mint); color: var(--green); font-weight: 550; }
.review-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 25px 0; }
.review-toolbar h2 { font-size: 22px; }
.review-file-list { margin: 20px 0; border: 1px solid var(--line); border-radius: 10px; padding: 6px 18px; background: var(--surface); }
.review-file-list .file-row:last-child { border: 0; }
.review-decisions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 25px; border-top: 1px solid var(--line); padding-top: 22px; }
.payment-batch { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 22px; margin: 24px 0; }
.payment-batch h3 { margin-bottom: 12px; }
.payment-batch p { font-size: 13px; color: var(--muted); }
.payment-batch .metric-row { border-bottom: 0; padding-bottom: 8px; }

@keyframes page-appear { from { opacity: .6; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-appear { from { opacity: 0; bottom: 16px; } to { opacity: 1; bottom: 25px; } }

@media (max-width: 1240px) {
  .header-inner, main#app { margin-left: 40px; margin-right: 40px; }
  .preview-bar { padding-left: 40px; padding-right: 40px; }
  .upload-hero { gap: 50px; }
  .detail-layout, .invite-layout, .earnings-layout { gap: 42px; grid-template-columns: minmax(0, 1fr) 290px; }
  .upload-layout { gap: 40px; grid-template-columns: minmax(0, 1fr) 270px; }
}

@media (max-width: 900px) {
  .header-inner, main#app { margin-left: 28px; margin-right: 28px; }
  .preview-bar { padding-left: 28px; padding-right: 28px; }
  .brand-caption { display: none; }
  .header-inner { min-height: 78px; }
  .page { padding-top: 39px; }
  .upload-hero { grid-template-columns: minmax(0, 1fr) 255px; gap: 28px; }
  .upload-hero h1 { font-size: 41px; }
  .invite-nudge { padding: 20px; }
  .collection-row { grid-template-columns: 76px minmax(0, 1fr) 135px 18px; gap: 17px; }
  .collection-art { width: 76px; height: 70px; }
  .collection-reward strong { font-size: 15px; }
  .detail-layout, .invite-layout, .earnings-layout, .upload-layout { gap: 30px; grid-template-columns: minmax(0, 1fr) 240px; }
  .reward-panel { padding: 22px; }
  .reward-panel h2 { font-size: 28px; }
  .invite-side, .upload-aside { padding-left: 20px; }
  .invite-link { flex-wrap: wrap; }
  .invite-link .btn { width: 100%; }
  .submission-row { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 18px; gap: 12px; }
  .submission-row .file-avatar { width: 36px; height: 40px; }
  .submission-row .row-action { grid-column: 2 / 4; text-align: left; margin-top: -3px; }
}

@media (max-width: 720px) {
  :root { --radius: 12px; }
  body { font-size: 14px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .preview-bar { padding: 6px 20px; gap: 5px 10px; font-size: 10px; flex-wrap: wrap; }
  .preview-label { gap: 6px; }
  .preview-label > span:not(.preview-dot) { display: none; }
  .preview-actions { gap: 12px; }
  .preview-bar button { font-size: 10px; }
  .header-inner { min-height: 72px; margin: 0; padding: 0 22px; justify-content: space-between; }
  .wordmark { font-size: 35px; }
  .primary-nav { display: none; }
  .account-button { margin-left: auto; }
  .avatar { width: 32px; height: 32px; font-size: 11px; }
  main#app { margin: 0; min-height: calc(100svh - 176px); }
  .page { padding: 32px 22px 38px; }
  h1 { font-size: 32px; }
  h2 { font-size: 21px; }
  h3 { font-size: 16px; }
  .lead { font-size: 15px; line-height: 1.55; }
  .page-heading { margin-bottom: 27px; }
  .page-heading .eyebrow { margin-bottom: 9px; }
  .page-heading .lead { margin-top: 12px; }
  .upload-hero { display: flex; flex-direction: column; align-items: stretch; gap: 23px; margin-bottom: 27px; }
  .upload-hero h1 { font-size: 34px; max-width: 370px; letter-spacing: -.045em; line-height: 1.12; }
  .upload-hero .lead { font-size: 14px; margin-top: 13px; max-width: 400px; }
  .invite-nudge { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 15px; padding: 17px 18px; border-radius: 11px; }
  .invite-nudge h3 { font-size: 13px; margin: 0; }
  .invite-nudge p { font-size: 11px; margin: 0; grid-column: 1; }
  .invite-nudge .text-link, .invite-nudge > .btn { grid-column: 2; grid-row: 1 / 3; font-size: 12px; white-space: nowrap; }
  .invite-nudge .btn { padding: 8px 11px; min-height: 35px; }
  .category-tabs { margin-right: -22px; margin-left: -3px; padding-bottom: 10px; padding-right: 22px; gap: 1px; }
  .category-tabs button { padding: 7px 11px; font-size: 12px; }
  .collection-row { grid-template-columns: 64px minmax(0, 1fr); gap: 6px 15px; padding: 22px 0; }
  .collection-art { width: 64px; height: 64px; grid-row: 1 / 3; border-radius: 8px; align-self: start; }
  .collection-copy h3 { font-size: 14px; margin-bottom: 4px; line-height: 1.3; }
  .collection-copy p { font-size: 11px; line-height: 1.4; }
  .collection-copy .eyebrow { font-size: 9px; margin-bottom: 5px; }
  .collection-reward { grid-column: 2; text-align: left; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 5px; }
  .collection-reward strong { font-size: 13px; }
  .collection-reward small { font-size: 10px; }
  .row-arrow { display: none; }
  .section-heading { margin-top: 32px; margin-bottom: 14px; gap: 10px; }
  .section-heading h2 { font-size: 18px; }
  .section-heading .text-link { font-size: 11px; }
  .section-subtitle { font-size: 11px; }
  .submission-list { border-radius: 10px; }
  .submission-row { grid-template-columns: 31px minmax(0, 1fr); padding: 17px 14px; gap: 7px 11px; }
  .submission-row .file-avatar { width: 31px; height: 36px; grid-row: 1 / 3; font-size: 8px; align-self: start; }
  .submission-copy h3 { font-size: 12px; margin-bottom: 3px; }
  .submission-copy p { font-size: 10px; }
  .submission-row > .status { grid-column: 2; justify-self: start; margin-top: 2px; }
  .submission-row .row-action { grid-column: 2; font-size: 11px; margin-top: 4px; }
  .status { font-size: 10px; padding: 4px 7px; }
  .btn { min-height: 44px; padding: 11px 16px; font-size: 13px; border-radius: 8px; }
  .text-link { font-size: 12px; }
  .empty-state { padding: 28px 15px; }
  .back-link { margin-bottom: 24px; font-size: 11px; }
  .detail-layout, .invite-layout, .earnings-layout, .upload-layout { display: flex; flex-direction: column; gap: 28px; }
  .detail-main, .detail-side, .invite-main, .invite-side, .earnings-main, .earnings-side, .upload-main, .upload-aside { width: 100%; min-width: 0; }
  .detail-title { margin: 12px 0; }
  .detail-main > p { font-size: 13px; }
  .detail-main > h2 { font-size: 18px; margin-top: 25px; }
  .collection-illustration { height: 190px; margin: 23px 0; border-radius: 10px; }
  .spec-grid { gap: 19px 14px; padding: 20px 0; margin: 23px 0; }
  .spec-grid dt, .spec-grid small { font-size: 10px; }
  .spec-grid dd { font-size: 12px; }
  .requirements-list { font-size: 12px; padding-left: 18px; }
  .requirements-list li { margin: 10px 0; }
  .reward-panel { padding: 23px; }
  .reward-panel h2 { font-size: 31px; }
  .reward-panel p { font-size: 12px; }
  .reward-panel .btn { margin-top: 18px; }
  .detail-side .notice { margin-top: 4px; }
  .stepper { gap: 7px; margin-bottom: 27px; font-size: 10px; flex-wrap: wrap; }
  .step { gap: 5px; }
  .step > span:first-child { width: 21px; height: 21px; font-size: 9px; }
  .step:not(:last-child)::after { width: 18px; margin-left: 4px; }
  .upload-main h1 { margin-bottom: 10px; }
  .upload-main > .muted { font-size: 12px; margin-bottom: 22px; }
  .upload-aside, .invite-side { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .upload-aside h3 { font-size: 13px; }
  .drop-zone { min-height: 182px; padding: 25px 15px; }
  .drop-zone strong { font-size: 13px; }
  .drop-zone p, .drop-zone small { font-size: 11px; }
  .file-list { margin-bottom: 22px; }
  .form-field { margin-bottom: 20px; }
  .form-field > label { font-size: 12px; }
  .form-field input:not([type=checkbox]), .form-field select, .form-field textarea, .auth-form input { font-size: 16px; padding: 11px 12px; }
  .check-row { font-size: 11px; gap: 9px; }
  .check-row input { width: 17px; height: 17px; }
  .upload-actions { gap: 15px; margin-top: 21px; padding-top: 20px; }
  .upload-actions .inline-note { font-size: 10px; max-width: 150px; }
  .summary-block { padding: 19px; margin: 20px 0; }
  .summary-block h3 { font-size: 15px; }
  .summary-block p, .summary-block dl { font-size: 12px; }
  .summary-block dl { grid-template-columns: 90px minmax(0, 1fr); gap: 11px; }
  .status-banner { padding: 20px; margin: 22px 0; }
  .status-banner h2, .status-banner h3 { font-size: 16px; }
  .status-banner p { font-size: 12px; }
  .status-actions { gap: 9px; }
  .status-actions .btn { flex: 1; }
  .progress-copy strong { font-size: 12px; }
  .progress-copy p { font-size: 11px; }
  .invite-main > .lead { margin-bottom: 24px; }
  .link-box { padding: 20px; border-radius: 12px; }
  .invite-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
  .invite-link input { font-size: 11px; min-height: 43px; padding: 11px; }
  .invite-link .btn { width: auto; padding: 10px 15px; }
  .metric-row { gap: 12px; padding: 24px 0; }
  .metric:not(:first-child) { padding-left: 12px; }
  .metric strong { font-size: 24px; }
  .metric small { font-size: 10px; margin-top: 5px; }
  .invite-side h3 { font-size: 14px; }
  .referral-path { flex-direction: row; align-items: center; margin: 22px 0; }
  .path-connector { width: 22px; height: 1px; margin: 0 8px; }
  .person-node { gap: 6px; font-size: 10px; }
  .person-node .mini-avatar { width: 27px; height: 27px; font-size: 9px; }
  .person-node small { font-size: 8px; }
  .referral-row { gap: 10px; }
  .referral-row h3 { font-size: 12px; }
  .referral-row p { font-size: 10px; }
  .referral-row > strong { font-size: 12px; }
  .earnings-overview { padding: 25px; border-radius: 13px; }
  .money-primary { font-size: 45px; margin-bottom: 23px; }
  .money-secondary { gap: 28px; padding-top: 17px; }
  .money-secondary strong { font-size: 16px; }
  .ledger-row { grid-template-columns: 31px minmax(0, 1fr) auto; gap: 10px; padding: 18px 0; }
  .ledger-icon { width: 31px; height: 31px; border-radius: 7px; }
  .ledger-copy h3 { font-size: 12px; }
  .ledger-copy p { font-size: 10px; }
  .amount { font-size: 13px; }
  .amount small { font-size: 9px; }
  .payment-address { padding: 21px; }
  .notice { font-size: 10px; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; border-top: 1px solid var(--line); background: var(--page); padding: 9px 12px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around; min-height: 66px; }
  .mobile-nav button { flex: 1; background: none; border: 0; border-radius: 7px; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; color: var(--muted); font-size: 10px; min-height: 46px; }
  .mobile-nav .icon, .mobile-nav .icon svg { width: 21px; height: 21px; }
  .mobile-nav button.is-active { color: var(--green); font-weight: 600; }
  .mobile-nav button.is-active .icon { background: var(--mint); border-radius: 5px; outline: 5px solid var(--mint); }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); font-size: 11px; }
  dialog#sheet { width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 90svh; max-width: none; border-bottom: 0; }
  .sheet-header { padding: 25px 22px 19px; }
  .sheet-heading h2 { font-size: 22px; }
  .sheet-heading p { font-size: 12px; }
  .sheet-body { padding: 3px 22px 26px; }
  .sheet-footer { padding: 17px 22px calc(17px + env(safe-area-inset-bottom)); }
  .sheet-footer > .btn { flex: 1; }
  .review-layout { display: flex; flex-direction: column; gap: 24px; }
  .review-sidebar { border-right: 0; padding: 0 0 15px; border-bottom: 1px solid var(--line); display: flex; gap: 4px; overflow-x: auto; }
  .review-sidebar h3 { display: none; }
  .review-sidebar button { width: auto; white-space: nowrap; font-size: 12px; margin: 0; padding: 9px 12px; }
  .review-toolbar { flex-wrap: wrap; margin: 19px 0; }
  .review-toolbar h2 { font-size: 20px; }
  .review-decisions .btn { flex: 1; }
  .payment-batch { padding: 19px; }
}

@media (max-width: 360px) {
  .preview-bar { padding-left: 17px; padding-right: 17px; }
  .header-inner { padding-left: 18px; padding-right: 18px; }
  .page { padding-left: 18px; padding-right: 18px; }
  .upload-hero h1 { font-size: 31px; }
  .invite-nudge { padding: 15px; gap: 5px 9px; }
  .invite-nudge h3 { font-size: 12px; }
  .invite-nudge p { font-size: 10px; }
  .invite-nudge .text-link { font-size: 11px; }
  .collection-row { grid-template-columns: 56px minmax(0, 1fr); gap: 6px 12px; }
  .collection-art { width: 56px; height: 57px; }
  .collection-copy h3 { font-size: 13px; }
  .collection-copy p { font-size: 10px; }
  .category-tabs { margin-right: -18px; padding-right: 18px; }
  .category-tabs button { font-size: 11px; padding-left: 10px; padding-right: 10px; }
  .referral-path { flex-wrap: wrap; row-gap: 12px; }
  .money-primary { font-size: 40px; }
  .money-secondary { gap: 20px; }
  .metric strong { font-size: 21px; }
  .metric small { font-size: 9px; }
  .invite-link { grid-template-columns: 1fr; }
  .invite-link .btn { width: 100%; }
  .summary-block { padding: 17px; }
  .summary-block dl { grid-template-columns: 76px minmax(0, 1fr); font-size: 11px; }
}

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