.redeem-body { min-height: 100vh; background: radial-gradient(circle at 85% 0, rgba(242,216,140,.25), transparent 28%), #f4f7f4; }
.redeem-shell { width: min(100%, 560px); margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 16px calc(34px + env(safe-area-inset-bottom)); }
.redeem-brand { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px 2px 22px; }
.redeem-brand img { width: 48px; height: 48px; object-fit: cover; border-radius: 15px; box-shadow: 0 8px 22px rgba(23,54,42,.12); }
.redeem-brand small, .redeem-brand h1 { display: block; margin: 0; }
.redeem-brand small { color: var(--muted); font-size: 10px; }
.redeem-brand h1 { margin-top: 3px; font-size: 23px; letter-spacing: -.04em; }
.redeem-brand a { color: var(--green); font-size: 12px; font-weight: 800; text-decoration: none; }
.redeem-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.redeem-settings label { color: var(--muted); font-size: 10px; }
.redeem-settings input { width: 100%; height: 40px; margin-top: 5px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #fff; }
.redeem-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.redeem-card + .redeem-card { margin-top: 13px; }
.redeem-card h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.redeem-help { margin: 8px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.code-input-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.code-input-row input { min-width: 0; height: 54px; padding: 0 14px; border: 1px solid #a9c9bc; border-radius: 12px; outline: none; text-transform: uppercase; font: 900 21px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.code-input-row input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(18,107,82,.09); }
.code-input-row button, .history-heading button { border: 1px solid var(--line); border-radius: 10px; color: var(--green); background: #fff; font-size: 11px; font-weight: 800; }
.mobile-primary { width: 100%; margin-top: 10px; padding: 14px; color: #fff; border: 0; border-radius: 12px; background: var(--green); font-weight: 800; }
.mobile-primary:disabled { opacity: .5; }
.mobile-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.mobile-result .voucher-facts { grid-template-columns: 1fr 1fr; }
.mobile-result .voucher-items label { display: grid; }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.history-heading button { padding: 8px 11px; }
.mobile-history { display: grid; gap: 9px; margin-top: 16px; }
.history-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px; border-radius: 11px; background: #f4f7f4; }
.history-row strong, .history-row small { display: block; }
.history-row small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.history-row b { color: var(--green); font-size: 12px; }
.security-note { margin: 16px 12px 0; color: #89958f; font-size: 10px; line-height: 1.6; text-align: center; }
.store-report-dates { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; margin-top: 16px; }
.store-report-dates label { min-width: 0; font-size: 12px; color: var(--muted); }
.store-report-dates input { display: block; width: 100%; min-width: 0; margin-top: 5px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; font: inherit; }
.store-report-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.store-report-actions button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--green); background: #fff; }
.store-report-actions button[type=submit] { color: #fff; background: var(--green); }
.store-report-actions button:disabled { opacity: .5; }
.store-dish-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.store-dish-table th, .store-dish-table td { padding: 12px 4px; text-align: left; border-bottom: 1px solid var(--line); }
.store-dish-table th { color: var(--muted); font-size: 12px; }
.store-dish-table td:first-child { overflow-wrap: anywhere; }
.store-dish-table td:not(:first-child) { white-space: nowrap; }
.store-dish-table small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
#staffIdentity small, #staffStore { display: block; }
#staffStore { margin-top: 8px; color: var(--green); font-size: 22px; line-height: 1.5; }
#staffAccess:has(#staffIdentity:not([hidden])) { position: sticky; top: 8px; z-index: 5; background: #f0f3ea; }
@media (max-width: 390px) { .redeem-settings { grid-template-columns: 1fr; } .redeem-card { padding: 18px; } }

[hidden]{display:none!important}#staffAccess{display:block;background:white;border:1px solid var(--line);border-radius:16px;padding:20px}#staffLogin{display:grid;gap:12px}#staffAuthError{color:#9d3d32;margin-bottom:0}#staffLogout{border:1px solid var(--line);background:#fff;color:var(--green);border-radius:8px;padding:8px 12px}#storeToday{font-size:17px;line-height:1.8}#storeKitchen .history-row{display:block;margin-top:12px}#storeKitchen button{margin-top:8px}
