:root { color-scheme: light; --orange: #bd490a; --orange-bright: #e96b22; --ink: #202522; --muted: #69716b; --line: #e4e8e3; --green: #187143; --red: #ae2525; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #fff; color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .55; cursor: default; }
button, input, select, textarea, a { outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--orange-bright); }
.header { max-width: 600px; margin: auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { object-fit: contain; }
.brand strong { display: block; font-size: 17px; letter-spacing: -.3px; }
.brand span { display: block; color: var(--muted); font-size: 12px; }
main { max-width: 552px; margin: 0 auto; padding: 30px 24px 16px; min-height: 60vh; }
h1 { margin: 0; font-size: clamp(25px, 5vw, 30px); font-weight: 750; line-height: 1.2; letter-spacing: -.8px; }
h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
h1:focus { outline: none; }
.intro { color: var(--muted); margin: 10px 0 28px; }
.small { font-size: 13px; margin: 4px 0 0; }
.muted { color: var(--muted); }
.heading-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.staff-label { font-size: 13px; color: var(--muted); }
label, legend { font-weight: 650; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.quantity-row label { font-size: 16px; }
.stepper { display: grid; grid-template-columns: 42px 55px 42px; flex-shrink: 0; border: 1px solid #cdd4cd; border-radius: 10px; overflow: hidden; }
.stepper button { border: 0; background: #f5f7f4; min-height: 48px; font-size: 23px; color: var(--ink); }
.stepper input { width: 100%; padding: 0 2px; text-align: center; font-weight: 650; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; appearance: textfield; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.stepper :focus-visible { outline-offset: -3px; }
fieldset { border: 0; padding: 0; margin: 26px 0; }
legend { margin-bottom: 12px; padding: 0; }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-options label { display: flex; align-items: center; gap: 10px; padding: 15px; border: 1px solid #cdd4cd; border-radius: 10px; cursor: pointer; }
.payment-options label:has(input:checked) { background: #fff6ed; border-color: var(--orange); color: var(--orange); }
.payment-options input { accent-color: var(--orange); width: 18px; height: 18px; margin: 0; }
.amount-panel { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff5eb; border-radius: 12px; padding: 20px; margin: 24px 0 20px; }
.amount-panel p { color: #805e47; }
.amount-panel output, .total-value { font-size: clamp(25px, 6vw, 34px); font-weight: 750; letter-spacing: -1px; color: var(--orange); white-space: nowrap; }
.full { width: 100%; min-height: 54px; border-radius: 10px; padding: 14px 18px; font-weight: 700; }
.primary { background: var(--orange); color: white; border: 1px solid var(--orange); }
.primary:hover:not(:disabled) { background: #a83f07; }
.secondary { background: white; border: 1px solid #cdd4cd; color: var(--ink); margin-top: 12px; }
.text-button { border: 0; background: none; color: var(--muted); font-size: 13px; min-height: 44px; padding: 8px 0 8px 8px; white-space: nowrap; }
.pin-input { display: block; width: 100%; height: 60px; border: 1px solid #b9c1b9; border-radius: 10px; padding: 12px 16px; font-size: 26px; letter-spacing: 16px; margin: 10px 0 20px; }
.login-note { text-align: center; margin-top: 20px; }
.stack-form { display: grid; gap: 8px; }
.stack-form input:not(.pin-input), .stack-form select, .stack-form textarea { width: 100%; min-height: 48px; margin-bottom: 10px; padding: 10px 12px; border: 1px solid #b9c1b9; border-radius: 10px; background: white; }
.stack-form textarea { min-height: 96px; resize: vertical; }
.session-banner, .summary-card { margin-bottom: 22px; padding: 14px 16px; border-radius: 10px; background: #f6f8f5; color: #4e5851; font-size: 13px; }
.summary-card p { margin: 7px 0; }
.denomination-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.denomination-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.denomination-row input { width: 62px; min-height: 42px; padding: 6px; text-align: center; border: 1px solid #b9c1b9; border-radius: 8px; }
.result-box { margin: 20px 0; padding: 18px; border-radius: 12px; }
.result-box.balanced { color: var(--green); background: #eaf5ec; }
.result-box.mismatch { color: var(--red); background: #fff0ef; }
.result-box ul { margin: 12px 0 0; padding-left: 20px; }
.error, .notice { padding: 14px 16px; border-radius: 8px; font-size: 14px; }
.error { color: var(--red); background: #fff0ef; border: 1px solid #f2c9c5; margin: 0 0 24px; }
.notice { background: #fff6ed; color: #814015; margin: 16px 0; }
.paynow-proof { margin: 24px 0; padding: 18px; border: 1px solid #f0cbaa; border-radius: 12px; background: #fffaf5; }
.paynow-proof > p { margin: 0 0 10px; }
.paynow-proof ul { margin: 0 0 18px; padding-left: 22px; }
.paynow-proof li + li { margin-top: 7px; }
.verification-check { display: flex; gap: 11px; align-items: flex-start; padding: 14px; margin-bottom: 14px; border: 1px solid #d5dbd4; border-radius: 10px; background: white; cursor: pointer; }
.verification-check input { width: 21px; height: 21px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--orange); }
.photo-button { display: grid; place-items: center; width: 100%; min-height: 54px; padding: 13px 16px; border-radius: 10px; background: var(--orange); color: white; font-weight: 700; cursor: pointer; text-align: center; }
.photo-button.disabled { opacity: .5; cursor: default; }
.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; }
#proof-help { margin-top: 10px; }
.proof-preview { margin-top: 16px; }
.proof-preview img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #202522; border-radius: 10px; }
.proof-preview > div { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; }
.proof-preview .secondary { margin-top: 12px; }
.receipt-details { margin: 20px 0 24px; }
.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-row > :last-child { font-weight: 650; text-align: right; }
.detail-row.total { align-items: center; padding-top: 22px; border-bottom: 0; }
.success-mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; background: #eaf5ec; color: var(--green); border-radius: 50%; font-size: 28px; }
#success h1, #success .total-value { color: var(--green); }
.metadata { background: #f6f8f5; padding: 16px; border-radius: 10px; font-size: 12px; margin: 0 0 24px; }
.metadata dt { color: var(--muted); margin-top: 12px; }
.metadata dt:first-child { margin-top: 0; }
.metadata dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.share-status { min-height: 24px; margin: 10px 0 0; color: var(--green); font-size: 14px; text-align: center; }
#staff-links { display: grid; gap: 12px; }
#staff-links a { display: flex; justify-content: space-between; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 650; }
#staff-links span { font-size: 13px; font-weight: 400; color: var(--muted); }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 16px max(24px, env(safe-area-inset-bottom)); }
@media (max-width: 360px) { .header { padding: 16px; } main { padding: 26px 16px 12px; } .stepper { grid-template-columns: 36px 44px 36px; } .quantity-row label { font-size: 14px; } .amount-panel, .paynow-proof { padding: 16px; } .denomination-counts { grid-template-columns: 1fr; } }
@media (min-width: 700px) { .header { margin-top: 28px; } main { padding-top: 40px; } }
