* { box-sizing: border-box; }
:root { color-scheme: dark; --bg: #10140c; --panel: #f8f3e4; --ink: #26301f; --muted: #65705d; --line: #d8cfb7; --acid: #d7fb59; --mint: #74e8c3; --bad: #ff795f; }
html, body { min-height: 100%; }
body { margin: 0; background: radial-gradient(circle at 10% 0%, #394422 0 14%, transparent 32%), linear-gradient(145deg, #10140c, #182318 55%, #070a06); color: #f7ffe7; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, a { font: inherit; }
.shell { width: min(1120px, calc(100% - 28px)); margin: 0 auto; padding: 18px 0 30px; }
.topbar, .meta, .controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar { justify-content: space-between; min-height: 56px; margin-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fbffe6; font-size: 22px; font-weight: 900; text-decoration: none; }
.brand span { display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid var(--acid); border-radius: 8px; background: #202b13; color: var(--acid); }
.meta span { min-height: 36px; border: 1px solid rgba(215, 251, 89, .34); border-radius: 6px; padding: 8px 12px; background: rgba(0, 0, 0, .22); font-weight: 800; }
.layout { display: grid; grid-template-columns: minmax(0, 620px) minmax(300px, 430px); gap: 18px; align-items: start; }
.receipt, .audit { border-radius: 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, .34); }
.receipt { color: var(--ink); background: repeating-linear-gradient(0deg, var(--panel) 0 31px, #efe8d2 32px); padding: clamp(18px, 3vw, 30px); }
.audit { border: 1px solid rgba(116, 232, 195, .24); background: rgba(8, 14, 10, .82); padding: clamp(18px, 3vw, 28px); }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { margin: 0; letter-spacing: 0; }
h1 { color: #151b12; font-size: clamp(32px, 8vw, 64px); line-height: .95; }
h2 { font-size: clamp(24px, 4vw, 40px); line-height: 1; }
.stamp { margin: 12px 0 20px; color: #596251; font-weight: 800; }
.lines, .summary, .finding-list { display: grid; gap: 8px; }
.line, .sum-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; border-bottom: 1px dashed var(--line); padding: 8px 0; }
.line small, .sum-row small { display: block; color: var(--muted); font-weight: 700; }
.summary { margin-top: 18px; border-top: 2px solid #9e936f; padding-top: 10px; }
.finding { width: 100%; min-height: 48px; border: 1px solid rgba(215, 251, 89, .28); border-radius: 6px; padding: 10px 12px; color: #faffdd; background: #1d2615; text-align: left; cursor: pointer; }
.finding:hover, .finding.selected { border-color: var(--acid); background: #2b381d; }
.finding.solved { border-color: var(--mint); box-shadow: inset 4px 0 0 var(--mint); }
.status { min-height: 48px; margin: 16px 0; color: #e7f4c3; font-weight: 750; }
.controls button { min-height: 44px; border: 0; border-radius: 6px; padding: 0 15px; color: #15200d; background: var(--acid); font-weight: 900; cursor: pointer; }
.controls button:nth-child(2) { background: #dfe9cd; }
#submit-button { background: var(--mint); }
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; } .shell { width: min(100% - 18px, 680px); } }
