:root {
  color: #111214;
  background: #f4f0e9;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  --ink: #111214;
  --muted: #62656b;
  --line: #d7d2c9;
  --surface: #fffefa;
  --accent: #d34b28;
  --accent-dark: #9b2f16;
  --danger-soft: #fff0eb;
  --green: #17694b;
  --green-soft: #edf8f2;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 15% 0%, #fff 0, transparent 33%), #f4f0e9; }
button, input { font: inherit; }
button:focus-visible, input:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid #e98164; outline-offset: 3px; }

.page-shell { width: min(1220px, calc(100% - 40px)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.site-header { min-height: 76px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .86rem; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.05rem; font-weight: 850; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--accent); font-weight: 900; }
main { flex: 1; padding: 58px 0 42px; }
.hero { display: grid; grid-template-columns: minmax(0, .93fr) minmax(420px, 1.07fr); gap: 38px; align-items: start; }
.eyebrow { margin: 0 0 12px; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; font-weight: 900; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 650px; margin-bottom: 16px; letter-spacing: -.055em; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: .98; }
.lede { max-width: 650px; margin-bottom: 28px; color: var(--muted); font-size: 1.04rem; line-height: 1.72; }
.check-form, .notice-card, .result-card, .error-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 18px 50px #33200e10; }
.check-form { padding: 24px; }
.check-form > label:first-child, .token-field label { display: block; margin-bottom: 9px; color: #34363a; letter-spacing: .07em; text-transform: uppercase; font-size: .75rem; font-weight: 850; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.form-row input, .token-field input { width: 100%; min-height: 49px; border: 1px solid #aaa69e; border-radius: 10px; padding: 0 14px; color: var(--ink); background: #fff; }
button { min-height: 49px; border: 1px solid var(--ink); border-radius: 10px; padding: 0 22px; color: #fff; background: var(--ink); cursor: pointer; font-weight: 850; transition: transform .15s, background .15s; }
button:hover:not(:disabled) { transform: translateY(-1px); background: #303238; }
button:disabled { cursor: not-allowed; border-color: #bab8b3; background: #bab8b3; }
.authorization { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; color: #505258; font-size: .86rem; line-height: 1.5; }
.authorization input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); }
.token-field { margin-top: 16px; }
.inline-error { margin: 10px 0 0; color: var(--accent-dark); font-size: .88rem; font-weight: 750; }
.feedback { min-height: 225px; margin-top: 22px; }
.notice-card { padding: 29px; }
.notice-card h2 { margin-bottom: 17px; letter-spacing: -.035em; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.12; }
.notice-lead { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 11px; padding: 16px 17px; background: #f7f3ec; color: #292b2e; font-size: .95rem; font-weight: 650; line-height: 1.65; }
.timeline { display: grid; gap: 21px; margin: 0; padding: 0; list-style: none; counter-reset: item; }
.timeline li { position: relative; padding-left: 46px; counter-increment: item; }
.timeline li::before { content: counter(item); position: absolute; left: 0; top: 0; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); font-size: .78rem; font-weight: 900; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 29px; bottom: -21px; width: 1px; background: #c9c4bb; }
.timeline strong, .timeline span { display: block; }
.timeline strong { margin-bottom: 4px; }
.timeline span { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.scope-note { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; color: var(--accent-dark); font-size: .86rem; font-weight: 750; line-height: 1.6; }
.result-card, .error-card { padding: 23px; }
.result-card.affected { border-color: #e1765b; background: var(--danger-soft); }
.result-card.clear { border-color: #9fc7b4; background: var(--green-soft); }
.result-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.result-header h2, .error-card h2 { margin: 0; letter-spacing: -.02em; }
.affected .result-header h2, .error-card h2 { color: var(--accent-dark); }
.clear .result-header h2 { color: var(--green); }
.badge { border-radius: 999px; padding: 7px 11px; color: #fff; background: var(--ink); letter-spacing: .06em; text-transform: uppercase; font-size: .68rem; font-weight: 900; }
.affected .badge { background: var(--accent); }
.clear .badge { background: var(--green); }
.result-card > p, .error-card p { margin: 18px 0 0; color: #43464b; line-height: 1.58; }
dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin: 18px 0 0; border-top: 1px solid #d1cec7; padding-top: 16px; }
dt { margin-bottom: 5px; color: #696b70; letter-spacing: .06em; text-transform: uppercase; font-size: .7rem; font-weight: 850; }
dd { margin: 0; overflow-wrap: anywhere; font-size: .88rem; font-weight: 700; }
.error-card { border-color: #e1765b; background: var(--danger-soft); }
footer { border-top: 1px solid var(--line); padding: 23px 0 28px; color: var(--muted); text-align: center; font-size: .78rem; }

@media (max-width: 780px) {
  .page-shell { width: min(100% - 24px, 620px); }
  .site-header { min-height: 66px; }
  main { padding-top: 36px; }
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  button { width: 100%; }
  .feedback { min-height: 0; }
  dl { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}
