:root {
  --bg: #f5f3ee;
  --surface: #fffdfa;
  --surface-2: #efede6;
  --ink: #17191d;
  --muted: #777a80;
  --muted-2: #a1a29f;
  --line: #e5e1d8;
  --accent: #e36239;
  --accent-dark: #b64325;
  --teal: #2d8881;
  --shadow: 0 18px 55px rgba(34, 30, 22, .1);
}
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--bg); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.receipt-shell { width: min(650px, calc(100% - 32px)); min-height: 100dvh; display: grid; align-content: center; gap: 14px; margin: 0 auto; padding: 34px 0; }
.back-link { width: fit-content; color: var(--muted); font-size: 12px; }
.back-link:hover { color: var(--accent); }
.receipt-card { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.receipt-brand { display: flex; align-items: center; gap: 10px; }
.brand-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px 12px 12px 4px; color: #fff; background: var(--accent); box-shadow: 4px 4px 0 #f4b36c; font-size: 16px; font-weight: 850; letter-spacing: -.08em; }
.receipt-brand div { display: grid; gap: 1px; }
.receipt-brand strong { font-size: 14px; }
.receipt-brand small { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.receipt-kicker { margin: 34px 0 10px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(30px, 6vw, 43px); letter-spacing: -.06em; }
.receipt-lead { margin: 12px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.receipt-state { padding: 15px; border-radius: 11px; color: var(--muted); background: var(--surface-2); font-size: 12px; }
.lookup-form { display: grid; gap: 8px; margin-top: 15px; }
.lookup-form label { color: var(--muted); font-size: 11px; font-weight: 700; }
.lookup-row { display: flex; gap: 8px; }
.lookup-row input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: var(--surface); font-size: 12px; }
.lookup-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227, 98, 57, .11); }
.lookup-row button, .primary-link, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 15px; border: 0; border-radius: 10px; font-size: 12px; font-weight: 700; }
.lookup-row button, .primary-link { color: #fff; background: var(--accent); box-shadow: 0 7px 15px rgba(227, 98, 57, .16); }
.lookup-row button:hover, .primary-link:hover { background: var(--accent-dark); }
.result-panel { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--surface) 76%, var(--surface-2)); }
.result-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result-label { color: var(--muted); font-size: 11px; }
.status-badge { padding: 5px 9px; border-radius: 7px; color: var(--accent-dark); background: #f8e7df; font-size: 11px; font-weight: 700; }
.status-badge.is-pending { color: #9a6a18; background: #fff1cf; }
.status-badge.is-accepted { color: var(--teal); background: #e3f1eb; }
.status-badge.is-rejected { color: var(--accent-dark); background: #f8e7df; }
.result-panel h2 { margin: 15px 0 9px; font-size: 18px; line-height: 1.35; letter-spacing: -.03em; }
.public-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; white-space: pre-line; }
.result-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 0; padding-top: 15px; border-top: 1px solid var(--line); }
.result-meta div { display: grid; gap: 3px; }
.result-meta dt { color: var(--muted-2); font-size: 10px; }
.result-meta dd { margin: 0; font-size: 11px; }
.related-issue { margin: 14px 0 0; padding: 9px 11px; border-radius: 8px; color: var(--teal); background: #e3f1eb; font-size: 11px; }
.receipt-error { margin: 14px 0 0; padding: 10px 11px; border-radius: 8px; color: var(--accent-dark); background: #f8e7df; font-size: 12px; }
.receipt-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.secondary-button { color: var(--ink); background: var(--surface-2); }
.secondary-button:hover { background: var(--line); }
.receipt-footnote { margin: 0; color: var(--muted-2); font-size: 10px; line-height: 1.7; text-align: center; }
@media (max-width: 520px) {
  .receipt-shell { width: min(100% - 24px, 650px); padding: 19px 0; }
  .receipt-card { padding: 22px 17px; border-radius: 17px; }
  .receipt-kicker { margin-top: 27px; }
  .lookup-row { display: grid; }
  .lookup-row button { width: 100%; }
  .result-meta { grid-template-columns: 1fr; gap: 9px; }
  .receipt-actions { display: grid; }
  .receipt-actions > * { width: 100%; }
}

