:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#24312f;background:#f4f6f4;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;padding:24px 16px;min-height:100vh}
main{width:min(100%,520px);margin:24px auto;background:#fff;border:1px solid #e3e9e5;border-radius:22px;padding:28px;box-shadow:0 14px 38px #14352d0d}
.wide-page main{width:min(100%,840px)}
h1{font-size:clamp(1.7rem,5vw,2.2rem);line-height:1.15;margin:0 0 18px}
h1,.customer-row strong,.reward-card strong,.reward-item strong{overflow-wrap:anywhere}
h2{font-size:1.12rem;margin:0 0 16px}
p{line-height:1.5}
nav{margin-bottom:24px}
a{color:#176454;text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible,button:focus-visible{outline:3px solid #8a55ad;outline-offset:3px}
.eyebrow{color:#607770;text-transform:uppercase;letter-spacing:.14em;font-size:.72rem;font-weight:800;margin:0 0 10px}
label{display:block;font-weight:650;margin:20px 0 7px}
input{display:block;width:100%;padding:12px 14px;font:inherit;color:inherit;border:1px solid #becdc5;border-radius:10px;background:#fff}
textarea{display:block;width:100%;padding:12px 14px;font:inherit;color:inherit;border:1px solid #becdc5;border-radius:10px;background:#fff;resize:vertical}
input:focus{outline:2px solid #237b66;outline-offset:2px}
textarea:focus{outline:2px solid #237b66;outline-offset:2px}
.check-row{display:flex;align-items:center;gap:10px;font-weight:500}.check-row input{width:auto;accent-color:#176454}
button,.button-link{display:inline-block;border:0;border-radius:10px;padding:12px 18px;margin-top:20px;background:#176454;color:#fff;font:inherit;font-weight:700;cursor:pointer;text-align:center}
button:hover,.button-link:hover{background:#0d4c3f;color:#fff;text-decoration:none}
button.subtle{background:#e8f1ec;color:#176454}
.hint,small{color:#64756e;font-size:.88rem}
.hint{margin:7px 0 0}
.error{background:#fff0ed;color:#a52818;border-radius:10px;padding:10px 12px}
.success{background:#e8f7ed;color:#196037;border-radius:10px;padding:10px 12px}
.heading-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.heading-row .button-link{margin:0}
.search-form{margin:18px 0 24px}
.search-row{display:flex;gap:8px;align-items:end}
.search-row button{margin:0}
.customer-list{border-top:1px solid #e2eae5}
.customer-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:16px 2px;border-bottom:1px solid #e2eae5;color:inherit}
.customer-row strong,.customer-row small{display:block}
.customer-row small{margin-top:3px}
.row-stats{color:#456357;text-align:right;font-size:.9rem}
.stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:26px 0}
.stats-grid div{background:#eff6f0;border-radius:14px;padding:18px}
.stats-grid strong,.stats-grid span{display:block}
.stats-grid strong{font-size:1.4rem;color:#175b4b}
.stats-grid span{font-size:.8rem;color:#5c7267;margin-top:4px}
.visit-form{margin:-8px 0 26px}.visit-form button{margin:0}
.visit-history{list-style:none;margin:0;padding:0}.visit-history li{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:baseline;border-top:1px solid #e2eae5;padding:12px 0}.visit-history span{color:#40594d}.visit-history small{margin-left:auto}
.reward-list{border-top:1px solid #e2eae5}.reward-item{display:flex;justify-content:space-between;gap:14px;align-items:center;border-bottom:1px solid #e2eae5;padding:15px 0}.reward-item strong,.reward-item small,.reward-card strong,.reward-card small{display:block}.reward-item small,.reward-card small{margin-top:5px}.reward-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.reward-actions button{margin:0;padding:8px 12px}.warning{display:block;color:#9b4915;font-size:.82rem;margin-top:5px}
.reward-card{background:#f3f8f3;border:1px solid #e0ebe1;border-radius:14px;padding:16px;margin:10px 0}.reward-card strong{font-size:1.02rem}.reward-card.redeemed{background:#f5f5f3;color:#58645f}.reward-card form button{margin-top:10px}.landing-rewards{margin-top:20px}.landing-rewards h2{margin-bottom:12px}.secret-teaser{text-align:center;background:#f4edf9;border-color:#e7d9ee}.gift-icon{display:block;font-size:1.9rem;margin-bottom:8px}.surprise-label{color:#7854a3;font-weight:800;font-size:.83rem;text-transform:uppercase;letter-spacing:.08em;margin:0 0 8px}
.section-card{border-top:1px solid #e2eae5;padding:24px 0}
code{overflow-wrap:anywhere}
.customer-page{background:radial-gradient(circle at top,#dbf4e5,#f5f7f4 65%)}
.customer-page main{background:transparent;border:0;box-shadow:none;padding:8px 0}
.brand-mark{width:46px;height:46px;display:grid;place-items:center;border-radius:15px;background:#186753;color:#fff;font-size:1.4rem;margin-bottom:24px}
.customer-page h1{margin-bottom:24px}
.customer-page form,.digital-card,.history-card{background:#fff;border:1px solid #e0eae2;border-radius:22px;padding:24px;box-shadow:0 14px 38px #14352d0b}
.customer-page form button{width:100%}
.digital-card{background:linear-gradient(145deg,#126550,#0d4338);color:#fff;min-height:220px;display:flex;flex-direction:column;justify-content:space-between}
.card-label{font-size:.76rem;letter-spacing:.16em;font-weight:800;margin:0}
.stamps{display:flex;flex-wrap:wrap;gap:11px;margin:28px 0}
.stamp{width:23px;height:23px;border:2px solid #b5d2c6;border-radius:50%}
.stamp.filled{background:#e6f6b4;border-color:#e6f6b4;box-shadow:0 0 0 4px #ffffff18}
.visit-count{margin:0;color:#dbeee5}
.visit-count strong{font-size:1.6rem;color:#fff}
.progress{height:12px;background:#ffffff44;border-radius:20px;margin:42px 0 32px;overflow:hidden}
.progress span{height:100%;background:#e6f6b4;display:block}
.history-card{margin-top:16px}
.history-card div{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e7eee8;padding:13px 0}
.history-card strong{color:#176454}
@media(max-width:520px){body{padding:12px}.panel-page main{padding:22px}.customer-page main{padding:12px}.search-row{display:block}.search-row button{width:100%}.customer-row,.reward-item{align-items:flex-start;flex-direction:column}.row-stats{text-align:left}.stats-grid div{padding:14px}}
