
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 24px; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
.dq-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-6); }
.dq-stack { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); }
.dq-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.dq-label { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.dq-muted { color: var(--ink-muted); }
:where(.dq-btn, .dq-input, .dq-toggle, .dq-sugg button):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Button */
.dq-btn { font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; height: 40px; padding: 0 var(--space-4); display: inline-flex; align-items: center; gap: var(--space-2); border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, background .12s ease; white-space: nowrap; }
.dq-btn:active { transform: translateY(1px); }
.dq-btn-lg { height: 52px; padding: 0 var(--space-6); font-size: 16px; }
.dq-btn-sm { height: 32px; padding: 0 var(--space-3); font-size: 14px; }
.dq-btn-primary { background: var(--ink); color: var(--on-ink); }
.dq-btn-signal { background: var(--signal); color: var(--on-signal); }
.dq-btn-quiet { background: var(--paper-raised); color: var(--ink); border-color: var(--line-strong); }
.dq-btn-quiet:hover { background: var(--paper-sunk); }
.dq-btn-ghost { background: transparent; color: var(--ink); }
.dq-btn-ghost:hover { background: var(--paper-sunk); }
.dq-btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.dq-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Field */
.dq-field { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.dq-field-label { font-size: 14px; line-height: 20px; font-weight: 600; }
.dq-field-hint { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.dq-field-error .dq-field-hint { color: var(--danger); }
.dq-input-wrap { display: flex; align-items: center; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--paper-raised); padding: 0 var(--space-3); gap: var(--space-2); }
.dq-input-wrap:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.dq-field-error .dq-input-wrap { border-color: var(--danger); background: var(--danger-soft); }
.dq-input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; }
.dq-input::placeholder { color: var(--ink-muted); }
.dq-input-prefix { font-family: var(--font-mono); color: var(--ink-muted); }
.dq-input-amount { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }

/* Tag */
.dq-tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; background: var(--paper-sunk); color: var(--ink); white-space: nowrap; }
.dq-tag-dot { width: 7px; height: 7px; border-radius: var(--radius-pill); background: currentColor; flex: none; }
.dq-tag-proof { background: var(--proof-soft); color: var(--proof); }
.dq-tag-signal { background: var(--signal-soft); color: var(--signal-text); }
.dq-tag-signal .dq-tag-dot { background: var(--signal); }
.dq-tag-danger { background: var(--danger-soft); color: var(--danger); }
.dq-tag-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-muted); }

/* Amount */
.dq-amount { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; font-size: 15px; line-height: 20px; letter-spacing: -0.01em; white-space: nowrap; }
.dq-amount-xl { font-size: 44px; line-height: 48px; letter-spacing: -0.03em; }
.dq-amount-cents { color: var(--ink-muted); }
.dq-amount-credit { color: var(--proof); }
.dq-amount-credit .dq-amount-cents { color: inherit; opacity: .75; }

/* Panel — the receipt edge is the brand's signature */
.dq-panel { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.dq-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.dq-panel-title { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.dq-panel-body { padding: var(--space-2) var(--space-6) var(--space-4); }
.dq-panel-receipt { border: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lift); padding-bottom: var(--space-4);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%; }
.dq-panel-receipt .dq-panel-head { border-bottom-style: dashed; }

/* EvidenceRow */
.dq-erow { display: grid; grid-template-columns: 40px 1fr auto; gap: var(--space-3) var(--space-4); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.dq-erow:last-child { border-bottom: 0; }
.dq-erow-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--paper-sunk); display: grid; place-items: center; color: var(--ink); }
.dq-erow-main { min-width: 0; }
.dq-erow-merchant { font-weight: 600; font-size: 16px; line-height: 22px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dq-erow-meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.dq-erow-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dq-erow-chips { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 6px; }
.dq-chip { display: inline-flex; align-items: center; gap: var(--space-1); height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper); font-size: 12px; line-height: 16px; color: var(--ink); }
.dq-chip svg { color: var(--proof); }
.dq-chip-missing { border-style: dashed; border-color: var(--line-strong); color: var(--ink-muted); background: transparent; }
.dq-chip-missing svg { color: var(--signal-text); }

/* Suggestion */
.dq-sugg { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-6) var(--space-4); display: grid; gap: var(--space-3); max-width: 520px; }
.dq-sugg-q { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.dq-sugg-why { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin: 0; }
.dq-sugg-why b { color: var(--ink); font-weight: 600; }
.dq-sugg-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.dq-sugg-decided { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }

/* ConsentToggle */
.dq-consent { display: grid; grid-template-columns: 40px 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.dq-consent:last-child { border-bottom: 0; }
.dq-consent-name { font-weight: 600; letter-spacing: -0.01em; }
.dq-consent-desc { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.dq-toggle { appearance: none; -webkit-appearance: none; margin: 0; width: 44px; height: 26px; border-radius: var(--radius-pill); background: var(--paper-sunk); box-shadow: inset 0 0 0 1px var(--line-strong); position: relative; cursor: pointer; transition: background .15s ease; flex: none; }
.dq-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: var(--radius-pill); background: var(--ink-muted); transition: transform .15s ease, background .15s ease; }
.dq-toggle:checked { background: var(--proof); box-shadow: none; }
.dq-toggle:checked::after { transform: translateX(18px); background: var(--on-proof); }

/* EmailCapture — the hero's one action */
.dq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dq-capture { display: flex; gap: 6px; padding: 6px; background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: calc(var(--radius-md) + 6px); max-width: 520px; }
.dq-capture:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.dq-capture-input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 0 var(--space-3); outline: none; }
.dq-capture-input::placeholder { color: var(--ink-muted); }
.dq-capture-stacked { flex-direction: column; }
.dq-capture-stacked .dq-capture-input { height: 48px; }
.dq-capture-stacked .dq-btn { justify-content: center; }

/* AllClear */
.dq-clear { display: grid; gap: var(--space-3); justify-items: start; padding: var(--space-6) 0; }
.dq-clear-mark { width: 56px; height: 56px; border-radius: var(--radius-lg); background: var(--proof); color: var(--on-proof); display: grid; place-items: center; }
.dq-clear-title { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; margin: var(--space-2) 0 0; }
.dq-clear-body { margin: 0; color: var(--ink-muted); max-width: 34ch; }
.dq-clear-total { display: grid; gap: var(--space-1); margin-top: var(--space-4); }

/* ProofMeter */
.dq-meter { display: grid; gap: var(--space-2); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.dq-meter:last-child { border-bottom: 0; }
.dq-meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.dq-meter-name { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; letter-spacing: -0.01em; }
.dq-meter-track { height: 6px; border-radius: var(--radius-pill); background: var(--paper-sunk); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.dq-meter-fill { height: 100%; background: var(--proof); border-radius: var(--radius-pill); }
.dq-meter-foot { font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* PhoneFrame */
.dq-phone-fig { margin: 0; display: grid; gap: var(--space-4); justify-items: center; }
.dq-phone { width: 360px; height: 740px; box-sizing: border-box; border-radius: 44px; padding: 10px; background: #0b0d0a; box-shadow: var(--shadow-lift); }
.dq-phone > .dq-phone-status, .dq-phone > .dq-phone-screen { background: var(--paper); }
.dq-phone-status { height: 44px; border-radius: 34px 34px 0 0; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; font-size: 14px; font-weight: 600; position: relative; }
.dq-phone-notch { position: absolute; left: 50%; top: 10px; width: 96px; height: 26px; margin-left: -48px; border-radius: var(--radius-pill); background: #0b0d0a; }
.dq-phone-screen { height: calc(100% - 44px); border-radius: 0 0 34px 34px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.dq-phone > .dq-phone-status, .dq-phone > .dq-phone-screen { color: var(--ink); }
.dq-phone-cap { display: grid; gap: 2px; text-align: center; max-width: 300px; font-size: 14px; line-height: 20px; }
