:root {
  --ink: #171a16;
  --ink-soft: #3f463d;
  --paper: #f4f1e8;
  --paper-deep: #ebe7da;
  --mail: #fffdf7;
  --line: #d8d3c5;
  --line-dark: #b9b4a5;
  --muted: #767b70;
  --signal: #f05535;
  --signal-dark: #c93f23;
  --acid: #e4ff59;
  --acid-soft: #f3ffc2;
  --blue: #2d4bd1;
  --green: #1d6a4c;
  --danger: #bd3b2c;
  --shadow: 0 20px 50px rgba(34, 34, 24, .08);
  --sans: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Noto Serif SC", "Songti SC", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
[hidden] { display: none !important; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.button { border: 1px solid transparent; min-height: 48px; padding: 0 23px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 2px; font-size: 14px; font-weight: 700; letter-spacing: .02em; transition: .18s ease; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button-signal { background: var(--signal); color: #fff; border-color: var(--signal); box-shadow: 4px 4px 0 var(--ink); }
.button-signal:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); background: var(--signal-dark); }
.button-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--paper); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--signal); }
.button-small { min-height: 38px; padding-inline: 15px; font-size: 12px; }
.kicker { display: flex; align-items: center; gap: 11px; font-size: 10px; font-weight: 800; letter-spacing: .16em; color: var(--signal-dark); text-transform: uppercase; }
.kicker-line { width: 26px; height: 1px; background: currentColor; }
.site-header { height: 70px; border-bottom: 1px solid var(--line); background: rgba(244, 241, 232, .9); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 50; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-symbol { width: 33px; height: 33px; border: 2px solid var(--ink); display: grid; place-items: center; position: relative; flex: 0 0 auto; }
.brand-symbol::before { content: ""; position: absolute; inset: 4px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); transform: rotate(45deg) translate(1px, 1px); width: 13px; height: 13px; }
.brand-symbol > span { position: absolute; width: 17px; height: 1px; background: var(--ink); transform: rotate(-45deg); bottom: 8px; right: 3px; }
.brand-text { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: -.04em; display: flex; flex-direction: column; gap: 4px; }
.brand-text small { font-family: var(--mono); font-size: 7px; letter-spacing: .1em; font-weight: 500; color: var(--muted); }
.header-meta { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: .06em; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(29, 106, 76, .12); }
.header-divider { width: 1px; height: 12px; background: var(--line-dark); margin-inline: 5px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(23,26,22,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(23,26,22,.035) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, transparent, #000 65%, #000); }
.hero-inner { min-height: 600px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 60px; padding: 75px 0 80px; position: relative; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(58px, 7.2vw, 94px); line-height: 1.02; letter-spacing: -.075em; margin: 26px 0 29px; }
.hero h1 em { font-style: italic; color: var(--signal); position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 3px; right: -8px; bottom: 4px; height: 13px; background: var(--acid); z-index: -1; transform: rotate(-1.3deg); opacity: .85; }
.hero-intro { max-width: 480px; font-size: 14px; line-height: 1.9; color: var(--ink-soft); margin-bottom: 32px; white-space: pre-line; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-note { font-size: 10px; color: var(--muted); letter-spacing: .03em; }
.hero-disclosure { margin: 17px 0 0; font-family: var(--mono); font-size: 8px; line-height: 1.7; letter-spacing: .03em; color: #8b8e82; }
.hero-facts { display: flex; gap: 30px; margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line); width: fit-content; }
.hero-facts span { font-size: 9px; color: var(--muted); letter-spacing: .04em; }
.hero-facts b { display: block; font-family: var(--mono); font-size: 18px; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.hero-art { position: relative; min-height: 440px; }
.mail-stack { position: absolute; width: 365px; height: 300px; left: 50%; top: 50%; background: var(--mail); border: 1px solid var(--ink); }
.mail-stack-back { transform: translate(-46%, -44%) rotate(7deg); background: var(--acid); box-shadow: none; }
.mail-stack-mid { transform: translate(-53%, -50%) rotate(-4deg); background: var(--paper-deep); }
.mail-stack-front { transform: translate(-50%, -50%) rotate(1deg); box-shadow: 13px 16px 0 rgba(23,26,22,.1); padding: 18px 20px; z-index: 2; }
.mini-mail-top { display: flex; align-items: center; gap: 5px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 16px; }
.mini-mail-top span { width: 6px; height: 6px; border: 1px solid var(--line-dark); border-radius: 50%; }
.mini-mail-top b { margin-left: auto; font-family: var(--mono); font-size: 7px; color: var(--muted); letter-spacing: .1em; font-weight: 500; }
.mini-sender { display: flex; gap: 9px; align-items: center; margin-bottom: 14px; }
.mini-avatar { width: 30px; height: 30px; background: var(--ink); color: var(--acid); display: grid; place-items: center; font-family: var(--serif); font-size: 17px; }
.mini-sender b { display: block; font-size: 11px; margin-bottom: 3px; }
.mini-sender small { font-family: var(--mono); font-size: 8px; color: var(--muted); }
.mini-subject { font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.45; letter-spacing: -.03em; margin-bottom: 13px; }
.mini-lines i { display: block; width: 92%; height: 4px; background: #e5e1d6; margin-bottom: 6px; }
.mini-lines i.short { width: 61%; }
.mini-button { display: inline-block; background: var(--signal); color: white; font-size: 8px; font-weight: 700; padding: 7px 14px; margin-top: 12px; }
.mini-flag { position: absolute; right: -35px; bottom: 35px; background: var(--ink); color: var(--acid); font-family: var(--mono); font-size: 9px; padding: 7px 10px; transform: rotate(4deg); }
.stamp { position: absolute; z-index: 4; top: 6px; right: 8px; border: 2px solid var(--signal); color: var(--signal); font-family: var(--mono); font-size: 9px; line-height: 1.5; letter-spacing: .1em; padding: 8px 10px; transform: rotate(7deg); opacity: .85; }
.scribble { position: absolute; font-family: var(--serif); font-style: italic; color: var(--ink-soft); z-index: 4; }
.scribble-one { left: 1px; top: 27px; font-size: 15px; transform: rotate(-5deg); }
.scribble-two { right: 3px; bottom: 8px; font-size: 40px; color: var(--signal); }

/* Survey */
.survey-stage { background: var(--paper-deep); border-bottom: 1px solid var(--line); padding-bottom: 90px; min-height: 500px; }
.survey-loading { padding: 90px 0; text-align: center; color: var(--muted); font-size: 12px; }
.loading-line { width: 130px; height: 2px; background: var(--line); margin: 0 auto 18px; position: relative; overflow: hidden; }
.loading-line::after { content: ""; position: absolute; inset: 0; width: 45%; background: var(--signal); animation: loading 1.2s infinite ease-in-out; }
@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } }
.survey-wrap { padding-top: 0; }
.progress-dock { position: sticky; top: 70px; z-index: 30; height: 45px; margin-bottom: 0; background: var(--paper-deep); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr 45px; align-items: center; gap: 15px; }
.progress-info { display: flex; justify-content: space-between; align-items: center; font-size: 9px; letter-spacing: .05em; color: var(--muted); }
.progress-info b { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.progress-track { height: 3px; background: #d6d1c4; overflow: hidden; }
.progress-fill { width: 0; height: 100%; background: var(--signal); transition: width .35s ease; }
.progress-percent { font-family: var(--mono); font-size: 10px; text-align: right; color: var(--ink); }
.section-block { padding-top: 65px; scroll-margin-top: 125px; }
.section-heading { display: flex; gap: 23px; align-items: flex-start; margin-bottom: 31px; }
.section-number { font-family: var(--mono); font-size: 12px; border-top: 1px solid var(--ink); padding-top: 8px; min-width: 30px; }
.section-kicker { display: block; font-family: var(--mono); font-size: 8px; color: var(--signal-dark); letter-spacing: .14em; margin-bottom: 8px; }
.section-heading h2 { font-family: var(--serif); font-size: clamp(31px, 4vw, 42px); line-height: 1.15; letter-spacing: -.05em; font-weight: 600; margin-bottom: 9px; }
.section-heading p { font-size: 12px; line-height: 1.8; color: var(--muted); max-width: 620px; margin: 0; white-space: pre-line; }
.section-heading .rating-prompt { margin: 13px 0 0; padding-left: 10px; border-left: 2px solid var(--signal); font-size: 13px; font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
.email-list { display: grid; gap: 24px; }
.mail-card { background: var(--mail); border: 1px solid var(--ink); box-shadow: 7px 7px 0 rgba(23,26,22,.07); scroll-margin-top: 140px; transition: box-shadow .2s, transform .2s; }
.mail-card.answered { box-shadow: 7px 7px 0 rgba(29,106,76,.14); }
.mail-card.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(189,59,44,.12); }
.mail-card-top { min-height: 34px; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: #f8f5eb; }
.mail-number { font-family: var(--mono); font-size: 8px; letter-spacing: .12em; color: var(--muted); }
.mail-status { font-size: 9px; color: #9a7351; display: flex; align-items: center; gap: 6px; }
.mail-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #d0a069; }
.answered .mail-status { color: var(--green); }
.answered .mail-status::before { background: var(--green); }
.mail-window { padding: 0 27px 21px; }
.window-chrome { height: 36px; margin: 0 -27px; padding: 0 14px; background: #f2efe5; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.window-dots { display: flex; gap: 4px; }
.window-dots i { width: 5px; height: 5px; border: 1px solid #b4afa2; border-radius: 50%; }
.window-title { font-family: var(--mono); font-size: 7px; color: var(--muted); letter-spacing: .04em; }
.window-index { margin-left: auto; font-family: var(--mono); font-size: 7px; color: var(--muted); }
.mail-head { display: flex; gap: 12px; align-items: flex-start; padding: 22px 0 17px; border-bottom: 1px solid #e7e2d6; }
.mail-avatar { width: 38px; height: 38px; flex: 0 0 auto; background: var(--ink); color: var(--acid); display: grid; place-items: center; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.mail-sender { min-width: 0; flex: 1; }
.mail-sender strong { font-size: 13px; display: inline-block; margin-right: 8px; }
.mail-address { font-family: var(--mono); font-size: 9px; color: var(--muted); word-break: break-all; }
.mail-to { font-size: 9px; color: var(--muted); margin-top: 5px; }
.mail-date { font-family: var(--mono); font-size: 8px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.mail-subject { font-family: var(--serif); font-size: clamp(20px, 2.5vw, 27px); letter-spacing: -.035em; line-height: 1.4; font-weight: 650; margin: 20px 0 16px; }
.mail-body { font-size: 13px; line-height: 1.95; color: var(--ink-soft); max-width: 760px; overflow-wrap: anywhere; }
.mail-body p { margin: 0; }
.mail-body p.blank { height: 13px; }
.mail-image { margin: 18px 0 0; padding: 9px; border: 1px solid var(--line); background: #f4f1e8; }
.mail-image img { display: block; width: auto; max-width: 100%; max-height: 520px; height: auto; margin: 0 auto; }
.mail-image figcaption { margin-top: 8px; font-size: 9px; line-height: 1.6; color: var(--muted); text-align: center; }
.mail-action { margin-top: 20px; }
.mail-button { display: inline-block; background: var(--signal); color: #fff; padding: 9px 19px; font-size: 11px; font-weight: 700; letter-spacing: .02em; cursor: default; }
.link-inspect { margin-top: 12px; background: #f5f2e8; border-left: 2px solid var(--line-dark); padding: 8px 10px; display: grid; gap: 3px; }
.link-label { font-family: var(--mono); font-size: 7px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.link-label.second { margin-top: 4px; color: var(--signal-dark); }
.link-inspect code { font-family: var(--mono); font-size: 9px; color: var(--ink-soft); word-break: break-all; }
.attachment { margin-top: 15px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 6px 9px; font-size: 10px; color: var(--ink-soft); }
.mail-footnote { margin-top: 17px; font-family: var(--mono); font-size: 7px; color: #a09b8d; letter-spacing: .04em; }
.mail-answer { border-top: 1px solid var(--ink); padding: 22px 27px 25px; background: #faf7ee; }
.answer-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.answer-index { font-family: var(--mono); font-size: 8px; border: 1px solid var(--line-dark); padding: 3px 5px; color: var(--muted); }
.answer-heading h4 { font-size: 12px; font-weight: 650; margin: 0; }
.required, .optional { margin-left: auto; font-size: 8px; color: var(--signal-dark); letter-spacing: .04em; }
.optional { color: var(--muted); }
.judgment-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 25px; }
.judgment-option { min-height: 45px; border: 1px solid var(--line); background: var(--mail); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; cursor: pointer; transition: .16s; text-align: center; padding: 7px 9px; }
.judgment-option:hover { border-color: var(--ink); background: #fff; }
.judgment-option input { position: absolute; opacity: 0; pointer-events: none; }
.judgment-mark { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--line-dark); flex: 0 0 auto; position: relative; }
.judgment-option:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.judgment-option:has(input:checked) .judgment-mark { border-color: var(--acid); background: var(--acid); }
.judgment-option:has(input:checked) .judgment-mark::after { content: ""; position: absolute; inset: 3px; background: var(--ink); border-radius: 50%; }
.judgment-option:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.clue-heading { margin-bottom: 11px; }
.clue-options { display: flex; flex-wrap: wrap; gap: 7px; }
.clue-option { border: 1px solid var(--line); background: var(--mail); padding: 7px 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; cursor: pointer; transition: .16s; }
.clue-option:hover { border-color: var(--ink); }
.clue-option input { position: absolute; opacity: 0; pointer-events: none; }
.clue-check { width: 11px; height: 11px; border: 1px solid var(--line-dark); flex: 0 0 auto; position: relative; }
.clue-option:has(input:checked) { background: var(--acid); border-color: var(--ink); }
.clue-option:has(input:checked) .clue-check { background: var(--ink); border-color: var(--ink); }
.clue-option:has(input:checked) .clue-check::after { content: ""; position: absolute; left: 3px; top: 1px; width: 3px; height: 5px; border-right: 1px solid var(--acid); border-bottom: 1px solid var(--acid); transform: rotate(40deg); }
.rating-list { background: var(--mail); border: 1px solid var(--ink); box-shadow: 7px 7px 0 rgba(23,26,22,.07); }
.rating-item { display: grid; grid-template-columns: 42px minmax(220px, 1fr) minmax(280px, .9fr); gap: 18px; align-items: center; padding: 19px 24px; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.rating-item:last-child { border-bottom: 0; }
.rating-item.invalid { background: #fff1ee; box-shadow: inset 3px 0 var(--danger); }
.rating-index { font-family: var(--mono); font-size: 9px; color: var(--muted); align-self: start; padding-top: 5px; }
.rating-copy h3 { font-size: 13px; margin-bottom: 4px; }
.rating-copy p { font-size: 10px; color: var(--muted); line-height: 1.6; margin: 0; }
.rating-options { display: flex; gap: 4px; justify-content: flex-end; }
.rating-choice { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: var(--mono); font-size: 11px; transition: .15s; }
.rating-choice:hover { border-color: var(--ink); }
.rating-choice input { position: absolute; opacity: 0; pointer-events: none; }
.rating-choice:has(input:checked) { background: var(--ink); color: var(--acid); border-color: var(--ink); }
.rating-choice:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 1px; }
.rating-legend { display: flex; justify-content: space-between; font-size: 8px; color: var(--muted); margin-top: 5px; }
.finish-block { margin-top: 70px; background: var(--ink); color: var(--paper); padding: 45px 48px; position: relative; overflow: hidden; }
.finish-block::after { content: "?”"; position: absolute; right: 20px; bottom: -105px; font-family: var(--serif); font-size: 290px; color: rgba(255,255,255,.04); line-height: 1; }
.finish-copy { position: relative; z-index: 1; margin-bottom: 24px; }
.finish-block .section-kicker { color: var(--acid); }
.finish-block h2 { font-family: var(--serif); font-size: 34px; letter-spacing: -.04em; font-weight: 600; margin-bottom: 7px; }
.finish-block .finish-copy p { font-size: 11px; color: #b8baad; line-height: 1.7; margin: 0; }
.comment-field { display: block; position: relative; z-index: 1; }
.comment-field > span { display: block; font-size: 11px; margin-bottom: 8px; color: #d9dbcf; }
.comment-field textarea { width: 100%; min-height: 110px; background: #262a24; border: 1px solid #4a4e45; color: var(--paper); padding: 13px; font-size: 12px; line-height: 1.7; resize: vertical; outline: none; }
.comment-field textarea:focus { border-color: var(--acid); }
.comment-field textarea::placeholder { color: #7c8175; }
.submit-row { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-top: 25px; position: relative; z-index: 1; }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; }
.lock-mark { color: var(--acid); font-size: 18px; line-height: 1; }
.privacy-note p { color: #92978b; font-size: 9px; line-height: 1.7; margin: 0; }
.button-submit { min-width: 185px; background: var(--acid); color: var(--ink); border-color: var(--acid); box-shadow: 4px 4px 0 var(--signal); }
.button-submit:hover { background: #efff9a; box-shadow: 6px 6px 0 var(--signal); }
.form-error { display: none; position: relative; z-index: 1; margin-top: 18px; background: #4a2420; border-left: 2px solid var(--signal); color: #ffd7cf; padding: 10px 12px; font-size: 11px; line-height: 1.6; }
.form-error.show { display: block; }
.thanks-panel { max-width: 700px; margin: 0 auto; background: var(--mail); border: 1px solid var(--ink); padding: 58px 50px 52px; text-align: center; position: relative; box-shadow: 8px 8px 0 rgba(23,26,22,.08); margin-top: 70px; }
#thank-you { scroll-margin-top: 88px; }
.thanks-mark { width: 58px; height: 58px; border-radius: 50%; background: var(--acid); border: 1px solid var(--ink); display: grid; place-items: center; margin: 0 auto 22px; font-size: 25px; }
.thanks-panel .section-kicker { color: var(--signal-dark); }
.thanks-panel h2 { font-family: var(--serif); font-size: 44px; letter-spacing: -.05em; font-weight: 600; margin-bottom: 13px; }
.thanks-panel > p { color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 450px; margin: 0 auto 22px; white-space: pre-line; }
.thanks-rule { width: 40px; height: 1px; background: var(--line-dark); margin: 24px auto; }
.thanks-small { font-size: 10px !important; color: #9b9c91 !important; }
.thanks-stamp { position: absolute; right: 28px; top: 23px; border: 1px solid var(--green); color: var(--green); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; padding: 5px 7px; transform: rotate(5deg); }
.closed-card { max-width: 620px; margin: 65px auto; background: var(--mail); border: 1px solid var(--ink); padding: 45px; text-align: center; }
.closed-icon { width: 45px; height: 45px; border: 1px solid var(--line-dark); display: grid; place-items: center; margin: 0 auto 18px; color: var(--muted); }
.closed-card h2 { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: -.04em; }
.closed-card p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.site-footer { padding: 35px 0 40px; background: var(--paper); }
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; }
.brand-small .brand-symbol { width: 25px; height: 25px; border-width: 1px; }
.brand-small .brand-text { font-size: 17px; }
.footer-inner p { font-size: 9px; color: var(--muted); margin: 9px 0 0; }
.footer-right { text-align: right; font-family: var(--mono); font-size: 8px; color: var(--muted); letter-spacing: .04em; }
.footer-right a { display: inline-block; margin-top: 7px; color: var(--ink-soft); border-bottom: 1px solid var(--line-dark); padding-bottom: 2px; }
.toast-region { position: fixed; z-index: 100; top: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: max-content; max-width: calc(100% - 30px); }
.toast { background: var(--ink); color: var(--paper); padding: 11px 16px; font-size: 11px; box-shadow: var(--shadow); opacity: 0; transform: translateY(-6px); transition: .2s; border-left: 2px solid var(--acid); }
.toast.show { opacity: 1; transform: none; }
.toast.error { border-left-color: var(--signal); }

/* Admin shared */
.admin-page { background: #efede4; min-height: 100vh; }
.admin-shell { width: min(1320px, calc(100% - 40px)); margin: 0 auto; }
.admin-header { height: 64px; background: var(--ink); color: var(--paper); position: sticky; top: 0; z-index: 40; }
.admin-header .admin-shell { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-header .brand-symbol { border-color: var(--acid); }
.admin-header .brand-symbol::before { border-color: var(--acid); }
.admin-header .brand-symbol > span { background: var(--acid); }
.admin-header .brand-text { color: var(--paper); font-size: 18px; }
.admin-header .brand-text small { color: #8d9286; }
.admin-nav { display: flex; align-items: center; gap: 4px; margin-left: 35px; margin-right: auto; }
.admin-nav a, .admin-nav button { background: transparent; border: 0; color: #aeb3a6; padding: 8px 12px; font-size: 11px; }
.admin-nav a.active { color: var(--acid); background: #292d26; }
.admin-nav a:hover, .admin-nav button:hover { color: var(--paper); }
.admin-account { display: flex; align-items: center; gap: 12px; color: #949a8d; font-size: 9px; font-family: var(--mono); }
.admin-main { padding: 32px 0 70px; }
.admin-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 25px; }
.admin-title-row h1 { font-family: var(--serif); font-size: 36px; font-weight: 600; letter-spacing: -.04em; margin: 0 0 5px; }
.admin-title-row p { margin: 0; font-size: 11px; color: var(--muted); }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: start; }
.admin-main-col { min-width: 0; display: grid; gap: 15px; }
.admin-side { position: sticky; top: 84px; display: grid; gap: 12px; }
.admin-card { background: var(--mail); border: 1px solid var(--line); }
.admin-card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-card-head h2 { font-size: 13px; margin: 0; }
.admin-card-head p { font-size: 10px; color: var(--muted); margin: 4px 0 0; }
.admin-card-body { padding: 20px; }
.admin-section-title { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.admin-section-title span { font-family: var(--mono); font-size: 8px; color: var(--muted); border: 1px solid var(--line); padding: 3px 5px; }
.admin-section-title h2 { font-size: 13px; margin: 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field > label, .field-label { font-size: 10px; color: var(--ink-soft); font-weight: 650; }
.field small { font-size: 9px; color: var(--muted); font-weight: 400; }
.field-note { margin: 0; font-size: 9px; line-height: 1.6; color: var(--muted); }
.clue-answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px; padding: 10px; border: 1px solid var(--line); background: #fff; }
.clue-answer-item { display: flex; align-items: center; gap: 6px; font-size: 9px; line-height: 1.5; color: var(--ink-soft); }
.clue-answer-item input { width: 13px; height: 13px; margin: 0; accent-color: var(--ink); }
.input, .textarea, .select { width: 100%; background: #fff; border: 1px solid var(--line); padding: 9px 10px; outline: none; font-size: 11px; line-height: 1.6; border-radius: 0; transition: border-color .15s; }
.input, .select { height: 37px; }
.textarea { min-height: 85px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--ink); }
.input::placeholder, .textarea::placeholder { color: #b1aea2; }
.save-state { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: var(--muted); }
.save-state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.save-state.dirty { color: #9c6c27; }
.save-state.dirty::before { background: #c39248; }
.side-card { background: var(--mail); border: 1px solid var(--line); padding: 16px; }
.side-card h3 { font-family: var(--mono); font-size: 8px; color: var(--muted); letter-spacing: .1em; margin-bottom: 13px; }
.side-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; font-size: 10px; }
.toggle { width: 36px; height: 20px; background: #c9c5b8; border: 0; border-radius: 99px; padding: 2px; transition: .18s; }
.toggle::after { content: ""; display: block; width: 16px; height: 16px; background: white; border-radius: 50%; transition: .18s; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.toggle.on { background: var(--green); }
.toggle.on::after { transform: translateX(16px); }
.side-actions { display: grid; gap: 7px; margin-top: 14px; }
.side-actions .button { width: 100%; min-height: 37px; font-size: 10px; }
.side-note { font-size: 9px; color: var(--muted); line-height: 1.7; margin: 0; }
.email-editor { border-bottom: 1px solid var(--line); }
.email-editor:last-child { border-bottom: 0; }
.email-editor summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 13px 18px; cursor: pointer; font-size: 11px; }
.email-editor summary::-webkit-details-marker { display: none; }
.email-editor summary::before { content: "+"; font-family: var(--mono); color: var(--muted); width: 12px; }
.email-editor[open] summary::before { content: "−"; }
.email-editor summary b { min-width: 25px; font-family: var(--mono); font-size: 8px; color: var(--muted); font-weight: 500; }
.email-editor summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.email-editor summary em { font-style: normal; font-family: var(--mono); font-size: 8px; color: var(--muted); }
.email-editor[open] summary { background: #faf8f0; border-bottom: 1px solid var(--line); }
.email-editor-body { padding: 17px 18px; background: #fdfbf4; }
.image-upload { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px dashed var(--line-dark); background: #fff; }
.image-preview { width: 180px; height: 110px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); background: #f4f1e8; }
.image-preview img { width: 100%; height: 100%; object-fit: contain; }
.image-preview-empty { font-size: 9px; color: var(--muted); }
.image-upload-side { display: grid; gap: 6px; min-width: 0; }
.image-upload-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.image-upload-status { font-size: 9px; color: var(--muted); }
.image-upload-side small { font-size: 9px; line-height: 1.6; color: var(--muted); }
.image-file { display: none; }
.email-editor-actions { display: flex; gap: 6px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.mini-button { border: 1px solid var(--line); background: transparent; font-size: 9px; padding: 5px 8px; color: var(--ink-soft); }
.mini-button:hover { border-color: var(--ink); }
.mini-button.danger { color: var(--danger); margin-left: auto; }
.clue-editor-row { display: flex; gap: 8px; align-items: start; margin-bottom: 8px; }
.clue-editor-row .input:first-child { flex: 0 0 170px; }
.clue-editor-row .input:nth-child(2) { flex: 1; }
.icon-button { border: 1px solid var(--line); background: transparent; width: 30px; height: 30px; display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.icon-button:hover { color: var(--danger); border-color: var(--danger); }
.add-row-button { border: 1px dashed var(--line-dark); background: transparent; width: 100%; min-height: 34px; font-size: 10px; color: var(--muted); }
.add-row-button:hover { border-color: var(--ink); color: var(--ink); }
.empty-editor { padding: 30px; text-align: center; color: var(--muted); font-size: 11px; border: 1px dashed var(--line); }
.admin-toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); font-size: 11px; padding: 10px 15px; z-index: 100; border-left: 2px solid var(--acid); box-shadow: var(--shadow); }
.admin-toast.error { border-left-color: var(--signal); }

/* Login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; background: var(--paper); }
.login-art { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; padding: 45px 7vw; display: flex; flex-direction: column; justify-content: space-between; }
.login-art::after { content: "“"; position: absolute; right: -30px; bottom: -230px; font-family: var(--serif); font-size: 620px; color: rgba(255,255,255,.04); line-height: 1; }
.login-art .brand { position: relative; z-index: 1; }
.login-art .brand-symbol { border-color: var(--acid); }
.login-art .brand-symbol::before { border-color: var(--acid); }
.login-art .brand-symbol > span { background: var(--acid); }
.login-art .brand-text { color: var(--paper); }
.login-art .brand-text small { color: #8d9286; }
.login-quote { position: relative; z-index: 1; max-width: 500px; margin-block: auto; padding: 70px 0; }
.login-quote .quote-mark { color: var(--acid); font-family: var(--serif); font-size: 70px; line-height: .6; }
.login-quote h2 { font-family: var(--serif); font-size: clamp(38px, 4.4vw, 62px); font-weight: 500; line-height: 1.25; letter-spacing: -.055em; margin: 23px 0; }
.login-quote p { color: #a8ad9f; font-size: 12px; line-height: 1.9; }
.login-art footer { color: #7d8377; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; position: relative; z-index: 1; }
.login-panel { display: grid; place-items: center; padding: 40px; }
.login-form { width: min(350px, 100%); }
.login-form .brand { display: none; margin-bottom: 40px; }
.login-form h1 { font-family: var(--serif); font-size: 38px; font-weight: 600; letter-spacing: -.04em; margin-bottom: 8px; }
.login-form > p { color: var(--muted); font-size: 11px; margin-bottom: 30px; }
.login-form .field { margin-bottom: 14px; }
.login-form .button { width: 100%; margin-top: 6px; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 48px; }
.password-toggle { position: absolute; right: 7px; top: 5px; border: 0; background: transparent; font-size: 9px; color: var(--muted); padding: 7px; }
.form-error { display: none; }
.login-form .form-error { display: none; background: #fff1ee; color: var(--danger); border-left: 2px solid var(--danger); padding: 9px 10px; font-size: 10px; margin-bottom: 12px; }
.login-form .form-error.show { display: block; }
.back-home { display: block; text-align: center; font-size: 9px; color: var(--muted); margin-top: 20px; }

/* Results */
.results-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.metric { background: var(--mail); border: 1px solid var(--line); padding: 17px 18px; }
.metric b { display: block; font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: -.04em; line-height: 1.2; }
.metric span { font-size: 9px; color: var(--muted); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab { border: 0; background: transparent; padding: 10px 14px; font-size: 10px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--ink); border-bottom-color: var(--signal); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result-card { background: var(--mail); border: 1px solid var(--line); padding: 18px 20px; }
.result-card h3 { font-size: 12px; margin-bottom: 4px; }
.result-card .result-sub { font-size: 9px; color: var(--muted); margin-bottom: 14px; }
.result-card .correct-badge { display: inline-block; font-size: 8px; color: var(--green); border: 1px solid #b9d0c2; background: #eff7f1; padding: 2px 5px; margin-left: 6px; vertical-align: 1px; }
.dist-row { display: grid; grid-template-columns: 80px 1fr 32px; gap: 8px; align-items: center; font-size: 9px; margin: 6px 0; }
.dist-label { color: var(--ink-soft); }
.dist-track { height: 6px; background: #eeeae0; }
.dist-fill { height: 100%; background: var(--ink); }
.dist-fill.signal { background: var(--signal); }
.dist-fill.muted { background: #b7b3a6; }
.dist-count { text-align: right; font-family: var(--mono); font-size: 8px; color: var(--muted); }
.clue-stat-list { display: grid; gap: 11px; }
.clue-stat { display: grid; grid-template-columns: 190px 1fr 40px; gap: 10px; align-items: center; font-size: 9px; }
.clue-stat .track { height: 5px; background: #eeeae0; }
.clue-stat .fill { height: 100%; background: var(--signal); }
.clue-stat b { font-family: var(--mono); font-size: 8px; font-weight: 500; color: var(--muted); text-align: right; }
.table-wrap { overflow-x: auto; background: var(--mail); border: 1px solid var(--line); }
.responses-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.responses-table th { background: #f8f5eb; color: var(--muted); font-size: 8px; font-weight: 500; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.responses-table td { padding: 10px 12px; border-bottom: 1px solid #eeeae0; font-size: 9px; vertical-align: top; }
.responses-table tr:last-child td { border-bottom: 0; }
.responses-table .id-cell { font-family: var(--mono); font-size: 8px; color: var(--muted); }
.responses-table .judgment-tag { display: inline-block; padding: 2px 5px; font-size: 8px; border: 1px solid var(--line); white-space: nowrap; }
.responses-table .judgment-tag.phishing { color: #9b3d2d; border-color: #e1b8b0; background: #fff2ef; }
.responses-table .judgment-tag.legit { color: var(--green); border-color: #bdd5c4; background: #f0f7f1; }
.responses-table .judgment-tag.unsure { color: #7e7458; border-color: #d8cfb5; background: #fbf6e8; }
.empty-results { background: var(--mail); border: 1px dashed var(--line-dark); padding: 60px 30px; text-align: center; color: var(--muted); font-size: 11px; }
.compare-overview { margin-bottom: 14px; }
.compare-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.compare-metrics div { display: grid; gap: 3px; }
.compare-metrics b { font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.compare-metrics span { font-size: 9px; color: var(--muted); }
.compare-list { display: grid; gap: 14px; }
.compare-card { background: var(--mail); border: 1px solid var(--line); padding: 18px 20px; }
.compare-card h3 { font-size: 12px; margin-bottom: 6px; }
.compare-standard { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 9px; color: var(--muted); margin: 0 0 4px; }
.compare-totals { font-family: var(--mono); font-size: 8px; color: var(--muted); margin: 0 0 10px; }
.compare-rows { display: grid; gap: 5px; border-top: 1px solid var(--line); padding-top: 9px; }
.compare-row { display: grid; grid-template-columns: 155px 1fr; gap: 10px; align-items: start; padding: 7px 0; border-bottom: 1px dashed #eeeae0; }
.compare-row:last-child { border-bottom: 0; }
.compare-meta { font-family: var(--mono); font-size: 8px; line-height: 1.7; color: var(--muted); }
.compare-meta span { display: block; color: #a9a496; }
.compare-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.compare-tag { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; font-size: 8px; line-height: 1.4; border: 1px solid var(--line); color: var(--ink-soft); background: #f8f5eb; }
.compare-tag.standard, .compare-tag.hit { border-color: #b9d0c2; background: #eff7f1; color: var(--green); }
.compare-tag.extra { border-color: #e1b8b0; background: #fff2ef; color: #9b3d2d; }
.compare-tag.missed { border-color: #d8cfb5; background: #fbf6e8; color: #7e7458; }
.compare-tag.empty { color: var(--muted); }
.comment-list { display: grid; gap: 8px; }
.comment-item { background: var(--mail); border-left: 2px solid var(--signal); padding: 12px 14px; font-size: 10px; line-height: 1.7; }
.comment-item span { display: block; font-family: var(--mono); font-size: 8px; color: var(--muted); margin-top: 6px; }
.danger-zone { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 15px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.danger-zone p { margin: 0; font-size: 9px; color: var(--muted); }

/* Simple/404 */
.simple-page { min-height: 100vh; display: grid; place-items: center; }
.not-found { text-align: center; padding: 30px; }
.not-found .brand { justify-content: center; margin-bottom: 35px; }
.not-found-code { font-family: var(--serif); font-size: 150px; line-height: 1; color: #ddd8c9; letter-spacing: -.08em; }
.not-found h1 { font-family: var(--serif); font-size: 30px; margin: -18px 0 8px; font-weight: 600; }
.not-found p { color: var(--muted); font-size: 12px; margin-bottom: 24px; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; min-height: auto; padding-top: 55px; padding-bottom: 60px; }
  .hero-art { min-height: 390px; max-width: 500px; width: 100%; margin: 0 auto; }
  .hero-intro { max-width: 620px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; grid-template-columns: 1fr 1fr; }
  .results-summary { grid-template-columns: repeat(2, 1fr); }
  .result-grid { grid-template-columns: 1fr; }
  .rating-item { grid-template-columns: 35px 1fr; gap: 10px 14px; }
  .rating-control { grid-column: 2; }
  .rating-options { justify-content: flex-start; }
  .rating-legend { max-width: 220px; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel { min-height: 100vh; }
  .login-form .brand { display: inline-flex; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 28px); }
  .site-header { height: 59px; }
  .header-meta { font-size: 8px; }
  .header-meta span:nth-child(2), .header-divider { display: none; }
  .hero-inner { padding: 40px 0 46px; }
  .hero h1 { font-size: 54px; margin-top: 19px; }
  .hero-intro { font-size: 13px; line-height: 1.8; }
  .hero-actions { align-items: flex-start; gap: 14px; }
  .hero-note { line-height: 1.6; max-width: 150px; }
  .hero-facts { gap: 24px; margin-top: 30px; }
  .hero-art { min-height: 340px; transform: scale(.9); transform-origin: center; margin-top: -10px; }
  .mail-stack { width: 315px; height: 270px; }
  .mail-stack-front { padding: 14px 16px; }
  .mini-subject { font-size: 14px; }
  .stamp { top: -2px; right: 4px; }
  .progress-dock { top: 59px; grid-template-columns: 115px 1fr 37px; gap: 9px; height: 41px; }
  .progress-info { font-size: 8px; }
  .progress-percent { font-size: 9px; }
  .section-block { padding-top: 45px; }
  .section-heading { gap: 13px; margin-bottom: 22px; }
  .section-heading h2 { font-size: 31px; }
  .section-heading p { font-size: 11px; }
  .mail-window { padding: 0 16px 17px; }
  .window-chrome { margin: 0 -16px; }
  .mail-head { flex-wrap: wrap; gap: 9px; padding: 16px 0 14px; }
  .mail-date { width: 100%; padding-left: 47px; }
  .mail-address { display: block; margin-top: 4px; }
  .mail-subject { font-size: 20px; margin: 15px 0 12px; }
  .mail-body { font-size: 12px; line-height: 1.85; }
  .mail-answer { padding: 17px 16px 20px; }
  .judgment-group { grid-template-columns: 1fr; gap: 6px; }
  .judgment-option { justify-content: flex-start; min-height: 42px; padding-left: 13px; }
  .clue-option { font-size: 9px; padding: 7px 8px; }
  .rating-item { padding: 15px 14px; grid-template-columns: 25px 1fr; }
  .rating-copy h3 { font-size: 12px; }
  .rating-choice { width: 34px; height: 34px; }
  .finish-block { padding: 30px 20px; margin-top: 48px; }
  .finish-block h2 { font-size: 28px; }
  .submit-row { display: block; }
  .privacy-note { margin-bottom: 18px; }
  .button-submit { width: 100%; }
  .thanks-panel { padding: 45px 21px 38px; margin-top: 35px; }
  .thanks-panel h2 { font-size: 34px; }
  .footer-inner { align-items: flex-start; display: block; }
  .footer-right { text-align: left; margin-top: 22px; }
  .admin-header { height: auto; position: static; padding: 13px 0; }
  .admin-header .admin-shell { flex-wrap: wrap; gap: 10px; }
  .admin-nav { order: 3; width: 100%; margin: 3px 0 0; overflow-x: auto; }
  .admin-nav a, .admin-nav button { white-space: nowrap; padding: 6px 9px; }
  .admin-account { margin-left: auto; }
  .admin-main { padding-top: 22px; }
  .admin-title-row { display: block; }
  .admin-title-row .button { margin-top: 13px; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .admin-side { grid-template-columns: 1fr; }
  .admin-card-body { padding: 14px; }
  .email-editor-body { padding: 13px; }
  .image-upload { align-items: stretch; flex-direction: column; }
  .image-preview { width: 100%; height: 170px; }
  .clue-answer-grid { grid-template-columns: 1fr; }
  .compare-metrics { grid-template-columns: repeat(2, 1fr); }
  .compare-row { grid-template-columns: 1fr; gap: 4px; }
  .clue-editor-row { flex-wrap: wrap; }
  .clue-editor-row .input:first-child, .clue-editor-row .input:nth-child(2) { flex: 1 1 100%; }
  .clue-stat { grid-template-columns: 120px 1fr 35px; }
  .metric b { font-size: 26px; }
  .login-panel { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
