:root {
  color-scheme: dark;
  --ink: #f3f6ef;
  --muted: #a2ad9e;
  --paper: #101310;
  --surface: #1b201c;
  --forest: #ccf97a;
  --forest-light: #303d26;
  --brass: #ccf97a;
  --danger: #ffaaa0;
  --line: #343d31;
  --input: #141913;
  --input-line: #65755a;
  --on-accent: #172010;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--paper); color: var(--ink); font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", "DejaVu Sans", sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; line-height: 1.6; background: radial-gradient(ellipse at 50% 24%, rgba(204,249,122,.035), transparent 55%); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1400; padding: .75rem 1rem; background: var(--forest); color: var(--on-accent); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 88px; max-width: 1248px; padding: 14px 44px; margin: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--on-accent); background: var(--forest); border-radius: 9px; font-size: 24px; font-weight: 800; line-height: 1; }
.brand strong { font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -1.6px; }
.brand strong span { color: var(--forest); }
nav { display: flex; gap: 12px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 13px; transition: background 150ms ease-out, color 150ms ease-out; }
nav a:hover { background: var(--surface); color: var(--forest); }
.mock-badge { padding: 5px 9px; border: 1px solid #65734b; color: var(--forest); background: #26311d; border-radius: 999px; font-size: 11px; white-space: nowrap; }
main { width: min(1080px, calc(100% - 48px)); min-height: calc(100dvh - 162px); margin: 0 auto; padding: 26px 0 48px; }
.hero { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero > *, .workspace > * { min-width: 0; }
.hero-copy { text-align: center; }
.eyebrow { color: var(--forest); text-transform: uppercase; letter-spacing: .24em; font-size: 10px; font-weight: 700; }
h1, h2, h3 { line-height: 1.3; text-wrap: balance; }
.hero-wordmark { font-size: clamp(60px, 6vw, 76px); font-weight: 800; letter-spacing: -.065em; line-height: 1.1; margin-top: 14px; }
.hero-wordmark span { color: var(--forest); }
.hero-tagline { color: var(--ink); font-size: 22px; font-weight: 400; margin-top: 12px; letter-spacing: .02em; }
.ticket { width: min(100%, 470px); padding: 28px 30px 22px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.entry-steps { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 24px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.entry-steps b { color: var(--forest); font-weight: 500; }
.ticket h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.ticket-description { margin: 8px 0 24px; color: var(--muted); font-size: 13px; }
.form-stack { display: grid; gap: 18px; }
.ticket .form-stack { gap: 14px; }
label { display: grid; gap: 8px; font-weight: 600; font-size: 14px; }
label small { color: var(--muted); font-weight: 400; }
.ticket label { font-size: 13px; margin-bottom: -5px; }
input, textarea, select { width: 100%; min-width: 0; padding: 14px 15px; border: 1px solid var(--input-line); border-radius: 8px; background: var(--input); color: var(--ink); outline: none; transition: border-color 150ms ease-out, box-shadow 150ms ease-out; }
input { min-height: 54px; font-size: 16px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { min-height: 180px; resize: vertical; font-family: ui-monospace, monospace; font-size: 14px; }
input:focus, textarea:focus, select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(204,249,122,.12); }
.field-hint { color: var(--muted); font-size: 12px; margin-top: -6px; }
.form-error { color: var(--danger); font-size: 14px; overflow-wrap: anywhere; }
.ticket .form-error { font-size: 13px; }
.ticket-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 3px; font-size: 11px; color: var(--muted); }
.ticket-bottom a { display: inline-flex; align-items: center; color: var(--ink); min-height: 44px; text-decoration: none; }
.ticket-bottom a:hover { color: var(--forest); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { min-height: 48px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; text-decoration: none; font-size: 14px; font-weight: 600; transition: transform 120ms ease-out, background 150ms ease-out; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .65; cursor: wait; transform: none; }
.btn-primary { color: var(--on-accent); background: var(--forest); }
.btn-primary:hover:not(:disabled) { background: #dafb9e; }
.ticket .btn-primary { justify-content: space-between; min-height: 52px; }
.btn-secondary { color: var(--forest); background: var(--forest-light); }
.btn-secondary:hover:not(:disabled) { background: #3b4c2d; }
.btn-ghost { color: var(--muted); background: transparent; border-color: var(--input-line); }
.btn-ghost:hover:not(:disabled) { color: var(--ink); background: #252d23; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; }
.page-head { max-width: 720px; margin: 16px 0 30px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -.025em; margin-top: 12px; }
.page-head p:not(.eyebrow) { margin-top: 12px; color: var(--muted); font-size: 14px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 24px; align-items: start; }
.panel { padding: clamp(20px, 4vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps { display: flex; gap: 4px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.step { flex: 1; padding: 7px 3px; text-align: center; color: var(--muted); font-size: 12px; }
.step.active { color: var(--forest); background: #2a3622; border-radius: 6px; }
.aside-card { padding: 20px; border-radius: 12px; background: #171c17; border: 1px solid var(--line); }
.aside-card + .aside-card { margin-top: 14px; }
.aside-card h3 { font-size: 15px; font-weight: 600; }
.aside-card p, .aside-card li { color: var(--muted); font-size: 13px; }
.aside-card p { margin-top: 8px; }
.aside-card ul { margin-top: 10px; padding-left: 18px; }
.result-card { display: grid; gap: 14px; padding: 22px; border-radius: 10px; background: #253021; border: 1px solid #44563a; border-left: 3px solid var(--forest); overflow-wrap: anywhere; }
.result-card.error { background: #332321; border-color: #69423c; border-left-color: var(--danger); }
.result-card.error strong { color: var(--danger); }
.email-confirm { font-family: ui-monospace, monospace; padding: 12px; border-radius: 8px; background: var(--input); border: 1px solid var(--line); overflow-wrap: anywhere; }
.status-result:not(:empty) { margin-top: 22px; }
.status-line { display: flex; align-items: center; gap: 10px; }
.status-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 4px rgba(204,249,122,.12); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 1400; max-width: min(360px, calc(100vw - 40px)); padding: 12px 16px; border-radius: 10px; color: var(--ink); background: #2d3927; border: 1px solid var(--input-line); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease-out; font-size: 13px; }
.toast.show { opacity: 1; transform: translateY(0); }
footer { min-height: 74px; width: min(1160px, calc(100% - 88px)); margin: auto; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .site-header { min-height: 76px; padding: 12px 22px; gap: 10px; }
  .brand strong { font-size: 25px; }
  .brand-mark { width: 30px; height: 30px; font-size: 21px; border-radius: 8px; }
  nav a { padding: 10px 0 10px 10px; font-size: 12px; }
  nav a:first-child { display: none; }
  main { width: calc(100% - 44px); min-height: calc(100dvh - 146px); padding: 20px 0 32px; }
  .hero { gap: 26px; }
  .hero-wordmark { font-size: 60px; }
  .hero-tagline { font-size: 20px; }
  .ticket { padding: 24px 21px 16px; }
  .ticket h2 { font-size: 21px; }
  .ticket-description { margin-bottom: 22px; font-size: 12px; }
  .entry-steps { font-size: 10px; margin-bottom: 22px; gap: 5px; }
  .field-hint { font-size: 11px; }
  .ticket-bottom { font-size: 10px; }
  .workspace { grid-template-columns: 1fr; gap: 18px; }
  .workspace aside { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .aside-card + .aside-card { margin-top: 0; }
  .page-head { margin-top: 4px; }
  footer { width: calc(100% - 44px); min-height: 70px; }
  footer span:last-child { display: none; }
}
@media (max-width: 480px) {
  .mock-badge { font-size: 9px; padding: 4px 6px; }
  .workspace aside { grid-template-columns: 1fr; }
  .button-row .btn { width: 100%; }
  .step { font-size: 11px; padding: 7px 1px; }
  .form-stack h2 { font-size: 21px; }
}
@media (max-width: 350px) {
  main { width: calc(100% - 32px); }
  .site-header { padding-inline: 16px; }
  .ticket { padding-inline: 18px; }
  .entry-steps { gap: 3px; font-size: 9px; }
  .entry-steps > span[aria-hidden] { display: none; }
  .panel { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
