:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #526077;
  --purple: #6936c7;
  --line: #dde3ed;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f7f8fc;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.6; }
h1, h2, p, dl, dd { margin: 0; }
a { color: var(--purple); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead > div, main { width: min(100% - 40px, 960px); margin-inline: auto; }
.masthead > div { min-height: 64px; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; font-weight: 750; color: var(--ink); text-decoration: none; }
main { padding: clamp(28px, 7vw, 76px) 0 38px; }
.receipt-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(255px, 1fr); gap: 18px; align-items: start; }
.receipt-status, .order-details { min-width: 0; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: white; }
.receipt-status:only-child { grid-column: 1 / -1; }
.state-mark { display: block; width: 36px; height: 5px; border-radius: 4px; margin-bottom: 20px; background: #64748b; }
.state-mark.action { background: var(--purple); }
.state-mark.waiting { background: #4069b4; }
.state-mark.attention { background: #ad631c; }
.state-mark.complete { background: #25825c; }
h1 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.25; letter-spacing: -.03em; }
.instruction { margin-top: 12px; color: var(--muted); }
.receipt-error { margin-top: 16px; padding: 10px 14px; border-left: 3px solid #ab3437; background: #fff4f2; color: #8a2f32; }
form { display: grid; margin-top: 24px; }
label, h2 { color: var(--ink); font-weight: 700; }
h2 { font-size: 19px; line-height: 1.45; }
input { width: 100%; height: 46px; margin-top: 6px; padding: 0 12px; border: 1px solid #8794aa; border-radius: 9px; font: inherit; color: var(--ink); }
.field-help { margin: 5px 0 16px; color: var(--muted); font-size: 14px; }
button { justify-self: start; min-height: 44px; padding: 8px 20px; border: 0; border-radius: 10px; color: white; background: var(--purple); font: inherit; font-weight: 700; cursor: pointer; }
button:hover { background: #5725b2; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; margin-top: 24px; padding-top: 10px; border-top: 1px solid var(--line); }
nav a, .back { display: inline-flex; align-items: center; min-height: 44px; }
.back { margin-top: 14px; color: var(--muted); }
.order-details dl { margin-top: 16px; }
.order-details dl > div { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-details dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
dt { color: var(--muted); font-size: 13px; }
dd { font-weight: 650; overflow-wrap: anywhere; }
.order-id { font: 500 14px/1.5 ui-monospace, Menlo, Consolas, monospace; }
@media (max-width: 670px) {
  .masthead > div, main { width: min(100% - 28px, 540px); }
  .receipt-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .receipt-status, .order-details { padding: 22px 18px; border-radius: 16px; }
  button { justify-self: stretch; }
}
