:root {
  --paper: #f3ecdd;
  --paper-light: #fffdf7;
  --ink: #171612;
  --muted: #756f64;
  --red: #ff3b30;
  --line: rgba(23, 22, 18, 0.18);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #201f1b;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #201f1b; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.app-shell {
  width: min(100%, 520px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  position: relative;
}

.site-filing {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 15px 20px calc(15px + var(--safe-bottom));
  border-top: 1px solid rgba(23, 22, 18, 0.22);
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.site-filing a {
  color: inherit;
  text-underline-offset: 3px;
}

.site-filing a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.screen { min-height: 100svh; animation: screen-in 260ms ease both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } }

.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}

.brand { font-size: 18px; font-weight: 950; letter-spacing: -0.04em; }
.brand-mark { display: inline-block; color: var(--red); transform: rotate(-7deg); }
.text-button, .icon-button { border: 0; background: transparent; padding: 10px 0; font-weight: 800; cursor: pointer; }
.icon-button { width: 44px; text-align: left; font-size: 24px; }
.privacy-link { width: auto; margin: 0 auto; padding: 6px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: underline; cursor: pointer; }
.ai-disclosure, .ai-mark { display: inline-block; width: max-content; padding: 5px 7px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 10px; line-height: 1.2; font-weight: 900; letter-spacing: .04em; }
.ai-disclosure { margin: 12px 0 0; }
.ai-mark { margin-top: 9px; }
.ai-story-label { margin: 0 0 7px; color: var(--red); font-size: 10px; font-weight: 950; letter-spacing: .14em; }

.home-cover { min-height: 100svh; background: var(--paper); }
.home-cover-nav { position: absolute; inset: 0 0 auto; z-index: 4; height: 58px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.home-nav-link { border: 0; background: transparent; padding: 10px 0; font-size: 12px; font-weight: 950; letter-spacing: .08em; cursor: pointer; }
.home-visual { position: relative; min-height: 610px; display: flex; flex-direction: column; overflow: hidden; background: #f3ecdd; isolation: isolate; }
.home-cover-image { position: relative; z-index: 1; width: min(78vw, 340px); height: auto; margin: 8px auto -26px; display: block; object-fit: contain; animation: document-enter 720ms cubic-bezier(.22,.75,.25,1) both, document-float 4.8s 720ms ease-in-out infinite; }
@keyframes document-enter { from { opacity: 0; transform: translateY(24px) rotate(-2deg) scale(.97); } to { opacity: 1; transform: translateY(0) rotate(-1deg) scale(1); } }
@keyframes document-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(.7deg); } }
.home-cover-copy { position: relative; z-index: 2; padding: 71px 20px 0; max-width: 390px; animation: copy-rise 620ms 100ms ease both; }
@keyframes copy-rise { from { opacity: 0; transform: translateY(12px); } }
.hero-cover-title { display: grid; gap: 3px; max-width: 360px; margin: 14px 0 0; font-size: clamp(44px, 12.5vw, 66px); line-height: 1; letter-spacing: -.045em; font-weight: 1000; text-wrap: balance; }
.hero-cover-title > span { display: block; }
.hero-cover-title em { color: var(--red); font-style: normal; letter-spacing: -.015em; }
.hero-cover-subtitle { width: max-content; max-width: 100%; margin: 18px 0 0; white-space: nowrap; font-size: clamp(12px, 3.5vw, 14px); line-height: 1.5; font-weight: 750; }
@keyframes stamp-drop { from { opacity: 0; transform: scale(1.6) rotate(2deg); } }
.home-dock { position: relative; z-index: 3; margin-top: -1px; padding: 18px 20px calc(18px + var(--safe-bottom)); border-top: 2px solid var(--ink); background: var(--paper); }
.home-main-action { min-height: 62px; font-size: 16px; }
.home-main-action small { display: block; margin-top: 3px; font-size: 9px; font-weight: 800; opacity: .72; }
.home-links { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.home-links .text-button, .home-links .privacy-link { margin: 0; font-size: 10px; }

.appraisal-screen { padding-bottom: calc(34px + var(--safe-bottom)); }
.appraisal-card { margin: 4px 16px 0; padding: 22px 19px 24px; border: 3px solid var(--ink); background: var(--paper-light); box-shadow: 8px 8px 0 var(--ink); }
.appraisal-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.appraisal-head h1 { margin: 8px 0 0; font-size: 44px; line-height: .92; letter-spacing: -.06em; }
.appraisal-slogan { margin: 18px 0 0; font-size: 17px; line-height: 1.35; font-weight: 900; }
.appraisal-value { margin-top: 24px; padding: 22px 0 20px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.appraisal-value small, .appraisal-value span { display: block; color: var(--muted); font-size: 11px; font-weight: 850; }
.appraisal-value strong { display: block; margin: 4px 0; color: var(--red); font-size: 62px; line-height: .92; letter-spacing: -.05em; font-weight: 1000; }
.appraisal-value strong i { margin-right: 4px; font-size: .48em; font-style: normal; vertical-align: 14px; }
.score-ledger { margin-top: 18px; border-top: 1.5px solid var(--ink); }
.score-ledger > div { position: relative; display: grid; grid-template-columns: 1fr 32px; gap: 10px; padding: 11px 0 13px; border-bottom: 1px solid var(--line); overflow: hidden; font-size: 12px; font-weight: 900; }
.score-ledger b { text-align: right; }
.score-ledger i { position: absolute; left: 0; bottom: 0; width: var(--score); height: 3px; background: var(--red); }
.appraisal-verdict { margin-top: 22px; }
.appraisal-verdict small { color: var(--red); font-size: 10px; font-weight: 950; letter-spacing: .14em; }
.appraisal-verdict p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; font-weight: 700; }
.appraisal-work { display: flex; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 850; }

.hero { min-height: calc(100svh - 58px); padding: 14px 22px calc(28px + var(--safe-bottom)); display: flex; flex-direction: column; }

.hero-kicker, .eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title {
  margin: 13px 0 0;
  font-size: clamp(52px, 15vw, 78px);
  line-height: 0.88;
  letter-spacing: -0.075em;
  font-weight: 1000;
  max-width: 460px;
}

.hero-title em { color: var(--red); font-style: normal; letter-spacing: -.02em; }
.hero-copy { margin: 19px 0 0; max-width: 330px; font-size: 16px; line-height: 1.55; font-weight: 650; }
.hero-art { position: relative; flex: 1; min-height: 270px; display: grid; place-items: center; margin: 0 -6px; }
.hero-art img { width: min(86vw, 410px); transform: rotate(2deg); animation: float 4.6s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(-1deg) translateY(-8px); } }
.stamp-note { position: absolute; right: 3px; top: 14%; padding: 8px 12px; color: var(--red); border: 3px solid var(--red); font-size: 12px; font-weight: 950; transform: rotate(8deg); background: rgba(243,236,221,.8); }

.primary-button, .secondary-button {
  width: 100%;
  min-height: 56px;
  border-radius: 0;
  border: 2px solid var(--ink);
  padding: 14px 18px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.primary-button { color: white; background: var(--red); box-shadow: 5px 5px 0 var(--ink); }
.secondary-button { color: var(--ink); background: transparent; }
.primary-button:active, .secondary-button:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.button-row { display: grid; gap: 12px; }

.quiz-screen { padding-bottom: calc(32px + var(--safe-bottom)); }
.quiz-progress { height: 5px; margin: 0 20px; background: rgba(23,22,18,.1); overflow: hidden; }
.quiz-progress span { display: block; height: 100%; background: var(--red); transition: width 240ms ease; }
.quiz-body { padding: 46px 22px 26px; }
.quiz-count { margin: 14px 0 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.quiz-title { margin: 12px 0 32px; font-size: 34px; line-height: 1.08; letter-spacing: -0.045em; }
.answers { display: grid; gap: 10px; }
.answer {
  appearance: none;
  width: 100%;
  border: 1.5px solid var(--ink);
  background: rgba(255,253,247,.72);
  padding: 17px 18px;
  text-align: left;
  cursor: pointer;
  min-height: 76px;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}
.answer:hover { transform: translateX(4px); }
.answer:active { background: var(--ink); color: white; }
.answer strong { display: block; font-size: 16px; line-height: 1.25; }
.answer small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.answer:active small { color: rgba(255,255,255,.62); }

.ritual { display: grid; place-items: center; padding: 36px 24px; background: var(--ink); color: white; }
.ritual-inner { width: 100%; text-align: center; }
.ritual-seal { width: 170px; height: 170px; margin: 0 auto 36px; border: 6px solid var(--red); border-radius: 50%; display: grid; place-items: center; color: var(--red); font-size: 32px; font-weight: 1000; line-height: .9; transform: rotate(-8deg); animation: seal-drop 620ms cubic-bezier(.2,1.5,.4,1) both; }
@keyframes seal-drop { from { transform: scale(2.2) rotate(-18deg); opacity: 0; } }
.ritual h1 { font-size: 34px; margin: 0 0 14px; }
.ritual-line { width: 100%; height: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.ritual-line span { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; animation: scan 1.5s ease both; }
@keyframes scan { from { transform: scaleX(0); } }
.ritual p { color: rgba(255,255,255,.62); font-size: 13px; }

.result-screen { background: var(--paper); padding-bottom: calc(34px + var(--safe-bottom)); }
.certificate { margin: 4px 16px 0; background: var(--paper-light); border: 3px solid var(--ink); padding: 22px 19px 24px; position: relative; box-shadow: 8px 8px 0 var(--ink); }
.certificate::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; }
.certificate-head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.certificate-label { margin: 0 0 9px; color: var(--red); font-size: 12px; font-weight: 950; letter-spacing: .18em; }
.persona-name { margin: 0; max-width: 270px; font-size: 44px; line-height: .93; letter-spacing: -.065em; }
.mini-seal { width: 72px; height: 72px; border: 4px solid var(--red); border-radius: 50%; color: var(--red); display: grid; place-items: center; text-align: center; font-size: 12px; font-weight: 950; line-height: 1.1; transform: rotate(9deg); flex: 0 0 auto; animation: seal-drop 720ms 420ms both; }
.slogan { position: relative; margin: 18px 0 0; font-size: 17px; font-weight: 850; }
.value-block { position: relative; margin: 28px 0 0; padding: 24px 0 19px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.value-label { font-size: 12px; font-weight: 850; color: var(--muted); }
.big-value { display: block; margin-top: 2px; color: var(--red); font-size: 66px; line-height: .95; letter-spacing: -.06em; font-weight: 1000; font-variant-numeric: tabular-nums; }
.value-unit { font-size: 13px; font-weight: 850; }
.certificate-meta { position: relative; display: flex; justify-content: space-between; gap: 12px; margin-top: 13px; font-size: 12px; font-weight: 800; }
.certificate-summary { position: relative; margin: 24px 0 0; font-size: 16px; line-height: 1.65; font-weight: 650; }
.evidence-list { position: relative; margin: 19px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; }
.evidence-list li { padding: 8px 0 8px 24px; font-size: 13px; line-height: 1.5; position: relative; }
.evidence-list li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 950; }
.result-actions { padding: 22px 16px 0; display: grid; gap: 12px; }
.gallery-submit-panel { margin: 28px 16px 0; padding: 20px 18px; border: 2px solid var(--ink); background: rgba(255,253,247,.82); box-shadow: 6px 6px 0 var(--ink); }
.gallery-submit-panel > .eyebrow { color: var(--red); }
.gallery-submit-panel h2 { margin: 8px 0 10px; font-size: 29px; line-height: 1.04; letter-spacing: -.04em; }
.gallery-submit-panel > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.55; }
.gallery-submit-panel > .primary-button { margin-top: 16px; }
.gallery-submit-panel header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gallery-submit-panel header small { color: var(--muted); }
.share-option { min-height: 48px; padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(23,22,18,.22); }
.share-option > span, .share-option b, .share-option small { display: block; }
.share-option b { font-size: 13px; }
.share-option small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.inline-action, .paste-button { width: auto; margin: 0; padding: 7px 9px; border: 1.5px solid var(--ink); background: transparent; font-size: 10px; font-weight: 900; white-space: nowrap; }
.optional-field { margin: 8px 0 14px; padding: 12px; border: 1px solid rgba(23,22,18,.22); background: rgba(255,253,247,.72); }
.field-title-row { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; }
.field-title-row b { font-size: 12px; }
.paste-button { color: var(--red); border-color: var(--red); }
.saved-profile-hint { margin: 0 0 16px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.gallery-state { margin: 28px 16px 0; padding: 16px; border: 2px solid var(--ink); background: var(--paper-light); color: var(--muted); font-size: 13px; line-height: 1.5; font-weight: 800; }
.privacy-note { margin: 16px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }

.gallery-head { padding: 24px 22px 22px; border-bottom: 2px solid var(--ink); }
.gallery-head h1 { margin: 10px 0 8px; font-size: 48px; line-height: .95; letter-spacing: -.06em; }
.gallery-head p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }
.work-list { padding: 0 18px calc(40px + var(--safe-bottom)); }
.work-item { appearance: none; display: block; width: 100%; padding: 20px 0; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; text-align: left; cursor: pointer; }
.work-cover { width: 100%; aspect-ratio: 10/7; object-fit: cover; display: block; background: #ddd; border: 2px solid var(--ink); }
.work-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; }
.work-badge { color: var(--red); font-size: 11px; font-weight: 950; letter-spacing: .08em; }
.work-price { font-size: 13px; font-weight: 900; }
.work-provenance { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gallery-author { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.gallery-author img { width: 34px; height: 34px; flex: 0 0 34px; border: 1.5px solid var(--ink); border-radius: 50%; object-fit: cover; }
.gallery-author b, .gallery-author small { display: block; }
.gallery-author b { font-size: 12px; }
.gallery-author small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.original-link-chip { margin-top: 9px; padding: 5px 7px; border: 1.5px solid var(--red); color: var(--red); font-size: 10px; line-height: 1.2; font-weight: 950; white-space: nowrap; }
.work-item h2 { margin: 7px 0 4px; font-size: 26px; letter-spacing: -.04em; }
.work-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.work-detail { padding: 0 18px calc(42px + var(--safe-bottom)); }
.detail-cover { width: calc(100% + 36px); margin-left: -18px; aspect-ratio: 10/7; object-fit: cover; display: block; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.detail-heading { padding: 23px 0 19px; border-bottom: 1px solid var(--line); }
.detail-heading h1 { margin: 8px 0; font-size: 42px; line-height: .98; letter-spacing: -.055em; }
.detail-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.source-link { margin-top: 15px; border: 1.5px solid var(--ink); background: var(--paper-light); color: var(--ink); padding: 9px 12px; box-shadow: 4px 4px 0 var(--red); font-weight: 900; text-align: left; }
.prompt-quote { margin: 24px 0; padding: 0 0 0 18px; border-left: 5px solid var(--red); font-size: 22px; line-height: 1.35; font-weight: 850; }
.story { color: var(--muted); line-height: 1.65; }
.original-link-row { width: 100%; min-height: 58px; margin-top: 18px; padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: transparent; text-align: left; cursor: pointer; }
.original-link-row span { min-width: 0; flex: 1; }
.original-link-row b, .original-link-row small { display: block; }
.original-link-row b { color: var(--red); font-size: 10px; letter-spacing: .12em; }
.original-link-row small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.3; font-weight: 750; overflow-wrap: anywhere; }
.original-link-row strong { flex: 0 0 auto; font-size: 13px; }
.original-link-row:hover strong { color: var(--red); }
.primary-original-link { min-height: 64px; padding: 12px 14px; border: 2px solid var(--ink); background: var(--red); box-shadow: 5px 5px 0 var(--ink); color: white; }
.primary-original-link b, .primary-original-link small, .primary-original-link strong { color: white; }
.author-card { margin-top: 22px; padding: 15px; display: grid; grid-template-columns: 52px 1fr; gap: 11px; border: 2px solid var(--ink); background: var(--paper-light); }
.author-card > img { width: 52px; height: 52px; border: 1.5px solid var(--ink); border-radius: 50%; object-fit: cover; }
.author-card small, .author-card strong, .author-card span { display: block; }
.author-card small { color: var(--red); font-size: 9px; font-weight: 950; letter-spacing: .1em; }
.author-card strong { margin-top: 3px; font-size: 17px; }
.author-card span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.author-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.author-actions button { min-height: 38px; border: 1.5px solid var(--ink); background: transparent; font-weight: 900; }
.detail-heading .original-link-status { margin-top: 10px; padding: 9px 11px; border-left: 4px solid var(--red); background: rgba(255,255,255,.45); color: var(--muted); font-size: 11px; line-height: 1.5; font-weight: 750; overflow-wrap: anywhere; }
.market-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); margin: 26px 0; }
.market-cell { padding: 18px 0; }
.market-cell + .market-cell { border-left: 1px solid var(--ink); padding-left: 18px; }
.market-cell small { display: block; color: var(--muted); font-weight: 800; }
.market-cell strong { display: block; margin-top: 5px; font-size: 26px; }
.market-cell .market-note { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 800; }
.vote-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 24px; }
.vote-head strong { color: var(--red); font-size: 13px; }
.vote-head small { color: var(--muted); font-size: 10px; font-weight: 700; }
.vote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 11px 0 20px; }
.vote-button { min-height: 44px; border: 1.5px solid var(--ink); background: var(--paper-light); font-weight: 850; padding: 8px 7px; cursor: pointer; }

.form-screen { padding-bottom: calc(36px + var(--safe-bottom)); }
.form-head { padding: 20px 22px 26px; }
.form-head h1 { margin: 10px 0 7px; font-size: 43px; line-height: .98; letter-spacing: -.055em; }
.form-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.publish-form { padding: 0 22px; }
.private-first-note { margin: 0 0 20px; padding: 13px 14px; display: grid; gap: 4px; border-left: 5px solid var(--red); background: rgba(255,253,247,.66); }
.private-first-note span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.challenge-origin { margin: 0 0 22px; padding: 16px; border: 1.5px solid var(--ink); background: var(--paper-light); box-shadow: 5px 5px 0 var(--red); }.challenge-origin span,.challenge-origin strong { display: block; }.challenge-origin span,.challenge-origin p { color: var(--muted); font-size: 12px; line-height: 1.45; }.challenge-origin strong { margin: 5px 0; font-size: 17px; }.challenge-origin p { margin: 0; }
.field { display: block; margin: 0 0 20px; }
.field span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 900; }
.field input, .field textarea { width: 100%; border: 1.5px solid var(--ink); background: var(--paper-light); border-radius: 0; outline: none; box-sizing: border-box; }
.field input { height: 44px; padding: 0 12px; line-height: 44px; }
.field textarea { min-height: 88px; padding: 11px 12px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { box-shadow: 4px 4px 0 var(--red); }
.field .field-hint { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; font-weight: 650; }
.upload-zone { display: grid; place-items: center; min-height: 180px; border: 2px dashed var(--ink); background: rgba(255,253,247,.5); overflow: hidden; cursor: pointer; text-align: center; font-weight: 900; }
.upload-zone img { width: 100%; height: 220px; object-fit: cover; }
.author-form { margin: 0 0 22px; padding: 16px; border: 2px solid var(--ink); background: rgba(255,253,247,.66); }
.author-form header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.author-form header small { color: var(--muted); font-size: 10px; }
.author-preview-button { width: 100%; min-height: 54px; margin: 8px 0 0; border: 1.5px solid var(--ink); background: var(--paper-light); font-weight: 900; text-align: left; padding: 9px 12px; }
.author-preview-button b, .author-preview-button small { display: block; }
.author-preview-button small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 650; }
.appraisal-questions { margin: 4px 0 25px; border-top: 2px solid var(--ink); }
.appraisal-questions-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 0 4px; }
.appraisal-questions-head span { font-size: 16px; font-weight: 950; }
.appraisal-questions-head small { color: var(--muted); font-size: 10px; text-align: right; }
.appraisal-question { margin: 0; padding: 19px 0 20px; border: 0; border-bottom: 1.5px solid var(--ink); }
.appraisal-question legend { width: 100%; padding: 0; font-size: 17px; line-height: 1.3; font-weight: 950; }
.appraisal-question legend small { display: block; margin-bottom: 7px; color: var(--red); font-size: 9px; letter-spacing: .12em; }
.appraisal-question > div { display: grid; gap: 7px; margin-top: 13px; }
.appraisal-option { display: block; cursor: pointer; }
.appraisal-option input { position: absolute; opacity: 0; pointer-events: none; }
.appraisal-option span { display: block; padding: 12px 13px; border: 1.5px solid var(--ink); background: rgba(255,253,247,.64); }
.appraisal-option b, .appraisal-option small { display: block; }
.appraisal-option b { font-size: 13px; line-height: 1.3; }
.appraisal-option small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.appraisal-option input:checked + span { background: var(--ink); color: white; box-shadow: 4px 4px 0 var(--red); }
.appraisal-option input:checked + span small { color: rgba(255,255,255,.68); }
.consent-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: end center; padding: 18px; background: rgba(23,22,18,.72); }
.consent-dialog { width: min(100%, 520px); padding: 28px 24px calc(24px + env(safe-area-inset-bottom)); background: var(--paper); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--red); }
.consent-dialog h2 { margin: 8px 0 18px; font-size: 34px; line-height: 1; }
.consent-dialog ul { margin: 0; padding: 16px 0 16px 22px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-weight: 900; line-height: 1.7; }
.consent-link-item span { display: block; max-width: 100%; color: var(--red); font-size: 12px; overflow-wrap: anywhere; }
.consent-dialog > p:last-of-type { color: var(--muted); line-height: 1.55; }
.consent-dialog .button-row { margin-top: 20px; }
.visibility { margin: 8px 0 22px; padding: 18px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.visibility label { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 14px; line-height: 1.4; }
.visibility input { margin-top: 3px; accent-color: var(--red); }
.status-message { margin: 14px 0; color: var(--red); font-weight: 850; font-size: 13px; line-height: 1.45; }

.mine-head { padding: 26px 22px 28px; border-bottom: 2px solid var(--ink); }
.mine-head h1 { margin: 10px 0 10px; font-size: 46px; line-height: .94; letter-spacing: -.06em; }
.mine-head p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.mine-list { padding: 0 18px calc(42px + var(--safe-bottom)); }
.mine-loading { padding: 38px 4px; font-weight: 900; }
.mine-item { position: relative; padding: 22px 0 26px; border-bottom: 2px solid var(--ink); }
.mine-item > img { width: 100%; aspect-ratio: 10/6; object-fit: cover; border: 2px solid var(--ink); background: #ddd; }
.mine-status { display: inline-block; margin-top: 13px; padding: 6px 9px; border: 2px solid var(--red); color: var(--red); font-size: 11px; font-weight: 950; transform: rotate(-1deg); }
.mine-item h2 { margin: 11px 0 8px; font-size: 28px; letter-spacing: -.04em; }
.mine-item blockquote { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.mine-item dl { margin: 0; border-top: 1px solid var(--line); }
.mine-item dl div { display: grid; grid-template-columns: 86px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.mine-item dt { color: var(--muted); font-weight: 800; }
.mine-item dd { margin: 0; overflow-wrap: anywhere; font-weight: 750; }
.mine-item a { color: var(--red); }
.delete-work { width: auto; margin: 18px 0 0; padding: 0; border: 0; background: transparent; color: #9b342e; font-size: 13px; font-weight: 850; text-align: left; text-decoration: underline; }
.danger-button { width: 100%; min-height: 50px; border: 2px solid #9b342e; border-radius: 0; background: #9b342e; color: #fffdf7; font-weight: 950; }
.delete-error { color: #9b342e !important; font-weight: 800; }
.mine-privacy { padding: 0 18px calc(32px + var(--safe-bottom)); text-align: center; }
.mine-empty { padding: 54px 4px; }
.mine-empty strong { display: block; font-size: 26px; }
.mine-empty p { color: var(--muted); line-height: 1.55; }
.mine-empty button { margin-top: 16px; }

.privacy-head { padding: 30px 22px 28px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.privacy-head h1 { margin: 12px 0 13px; font-size: 50px; line-height: .92; letter-spacing: -.065em; }
.privacy-head p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.privacy-sections { padding: 0 20px calc(44px + var(--safe-bottom)); }
.privacy-sections article { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 22px 0; border-bottom: 1.5px solid rgba(23,22,18,.24); }
.privacy-sections article > span { color: var(--red); font-size: 13px; font-weight: 950; }
.privacy-sections h2 { margin: 0 0 7px; font-size: 19px; line-height: 1.2; }
.privacy-sections p { margin: 0; color: #4e4a43; font-size: 13px; line-height: 1.62; }
.privacy-preview-note { margin: 24px 0 0 !important; padding: 14px; border: 2px solid var(--ink); color: var(--muted) !important; font-size: 12px !important; font-weight: 750; }

.review-badge { position: fixed; z-index: 50; top: 8px; left: 50%; max-width: calc(100vw - 24px); padding: 6px 10px; transform: translateX(-50%) rotate(-1deg); border: 2px solid var(--ink); background: #fffdf7; color: var(--red); box-shadow: 3px 3px 0 var(--ink); font-size: 10px; line-height: 1; font-weight: 950; white-space: nowrap; pointer-events: none; }

@media (min-width: 521px) {
  .app-shell, .site-filing { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 28px 90px rgba(0,0,0,.4); }
}

@media (max-height: 650px) {
  .home-visual { min-height: 570px; }
  .home-cover-image { width: min(64vw, 300px); margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
