:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #171714;
  background: #f4f1e9;
  font-synthesis: none;
  --brand-primary: #ef7139;
  --brand-secondary: #f4d569;
}

.operational { background: #f4f6f5; color: #202624; }
.operational .shell { width: min(100% - 32px, 880px); }
.operational h1 { font-size: 28px; line-height: 1.2; }
.operational h2 { font-size: 20px; }
.operational section { padding: 22px 0; border-bottom: 1px solid #dbe1de; margin: 0; }
.operational .button, .operational input, .operational select, .operational textarea, .operational .recent-customer { border-radius: 6px; box-shadow: none; }
.operational .primary { background: #246b51; }
.operational .topbar { flex-wrap: wrap; }
.operational .topbar h1 { flex: 1; }
.operational .eyebrow { letter-spacing: 0; color: #56665d; }
.operational input, .operational select, .operational textarea { width: 100%; min-height: 42px; padding: 8px; border: 1px solid #bbc8c0; font: inherit; letter-spacing: 0; text-transform: none; background: white; }
.operational input[type=checkbox] { width: 20px; min-height: 20px; }
.operational input[type=color] { width: 64px; padding: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; align-items: end; }
.form-grid label { display: grid; gap: 6px; font-size: 14px; }
.app-logo { width: 44px; height: 44px; object-fit: contain; }
.operational button, .operational a { overflow-wrap: anywhere; }
.operational .customer-card { min-height: 145px; }
.operational .recent-customer { background: white; }
.operational .input-row input { border-radius: 6px; letter-spacing: 0; }
.table-scroll { overflow-x: auto; }
.operational table { border-collapse: collapse; width: 100%; font-size: 14px; }
.operational td, .operational th { padding: 10px 8px; text-align: left; border-bottom: 1px solid #dde4df; }
.metrics { display: flex; flex-wrap: wrap; gap: 24px; margin: 16px 0; }
.metrics strong { display: block; font-size: 26px; }
.tag-qr { width: 150px; height: 150px; }
.operational .tabs { display: flex; flex-wrap: wrap; gap: 16px; margin-block: 20px; }
.operational .tabs a { color: #246b51; }
@media print { .no-print { display: none !important; } .print-tag { break-inside: avoid; } }

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #fffaf0 0, #f4f1e9 45%, #e8e2d5 100%); }
button, a { font: inherit; }

.shell { width: min(100% - 32px, 560px); margin: 0 auto; padding: 34px 0 48px; }
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.brand-mark, .coffee-logo { display: grid; place-items: center; background: #161612; color: #fff; font-weight: 800; }
.brand-mark { width: 48px; height: 48px; border-radius: 16px; }
.coffee-logo { width: 74px; height: 74px; border-radius: 24px; margin: 0 auto 18px; font-size: 24px; }
.coffee-logo img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(28px, 7vw, 40px); line-height: 1.05; margin-bottom: 6px; }
h2 { font-size: 22px; margin-bottom: 8px; }
.eyebrow { margin-bottom: 6px; color: #817766; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: #776f63; line-height: 1.5; margin-bottom: 0; }
.card { background: rgba(255,255,255,.86); border: 1px solid rgba(55,45,30,.08); border-radius: 24px; padding: 22px; box-shadow: 0 18px 45px rgba(63,51,33,.08); }
.hero { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.status-dot { width: 18px; height: 18px; border-radius: 50%; background: #c8c2b8; box-shadow: 0 0 0 7px rgba(200,194,184,.2); }
.status-dot.active { background: #25b970; box-shadow: 0 0 0 7px rgba(37,185,112,.16); }
.button { width: 100%; min-height: 52px; border: 0; border-radius: 17px; padding: 14px 18px; font-weight: 800; cursor: pointer; text-align: center; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.primary { background: var(--brand-primary); color: #fff; margin-bottom: 14px; box-shadow: 0 12px 25px rgba(239,113,57,.25); }
.dark { background: #171714; color: white; margin-top: 12px; }
.ghost { margin-top: 14px; background: rgba(255,255,255,.45); color: #514a40; border: 1px solid rgba(55,45,30,.1); }
.customer-card { display: flex; gap: 16px; align-items: center; }
.avatar { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-secondary); font-weight: 900; }
.grow { flex: 1; }
.progress { height: 9px; overflow: hidden; background: #ece7dd; border-radius: 99px; margin: 12px 0 8px; }
.progress div { height: 100%; width: 0; background: var(--brand-primary); border-radius: inherit; transition: width .25s ease; }
.reward { margin-top: 14px; background: linear-gradient(135deg, #fff3be, #ffd68b); }
.hidden { display: none !important; }
.event-box { padding: 18px 4px 4px; display: grid; gap: 4px; color: #776f63; font-size: 13px; }
.event-box strong { color: #28241f; font-size: 15px; }
.tap-page { background: linear-gradient(180deg, #f8df99 0, #f5f0e6 48%); }
.customer-shell { padding-top: 52px; }
.centered { text-align: center; margin-bottom: 24px; }
.wallet-card { color: var(--brand-ink, #171714); background: var(--brand-primary); border: 0; }
.wallet-card .eyebrow, .wallet-card .public-code { color: inherit; }
.wallet-card .stamp { color: inherit; border-color: currentColor; }
.wallet-card .stamp.filled { color: var(--secondary-ink, #171714); }
.wallet-head { display: flex; justify-content: space-between; align-items: flex-start; }
.wallet-head .eyebrow { color: inherit; }
.wallet-head span { font-size: 30px; }
.public-code { margin: 8px 0 0; color: var(--brand-secondary); font-size: 14px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.wallet-button { margin-top: 18px; background: #fff; color: #171714; }
.customer-qr { width: 164px; min-height: 164px; display: grid; place-items: center; margin-top: 16px; padding: 10px; background: white; border-radius: 16px; }
.customer-qr img { display: block; width: 144px; height: 144px; }
.stamp-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.stamp { width: 52px; height: 52px; display: grid; place-items: center; border: 2px dashed rgba(255,255,255,.45); border-radius: 50%; color: rgba(255,255,255,.55); font-weight: 900; }
.stamp.filled { border-style: solid; background: var(--brand-secondary); color: #29231b; border-color: var(--brand-secondary); }
.link-button { display: block; text-decoration: none; }
.info-box { padding: 18px 4px 0; color: #514a40; line-height: 1.45; overflow-wrap: anywhere; }
.privacy-link { display: inline-block; margin-top: 8px; color: #514a40; font-weight: 800; }
.scanner-card { display: grid; gap: 10px; margin-bottom: 14px; }
.field-label { color: #514a40; font-size: 13px; font-weight: 800; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.input-row input { min-width: 0; border: 1px solid rgba(55,45,30,.16); border-radius: 14px; padding: 0 14px; font: inherit; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.compact { width: auto; min-height: 46px; padding-inline: 16px; background: #171714; color: white; }
.scanner-video { width: 100%; max-height: 260px; border-radius: 16px; background: #171714; object-fit: cover; }
.recent-card { margin-bottom: 14px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.customer-list { display: grid; gap: 8px; }
.recent-customer { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border: 1px solid rgba(55,45,30,.1); border-radius: 16px; background: #fffaf0; padding: 12px; color: #28241f; cursor: pointer; text-align: left; }
.recent-customer.selected { border-color: #ef7139; box-shadow: 0 0 0 3px rgba(239,113,57,.16); }
.recent-customer strong, .recent-customer small, .customer-meta { display: block; }
.recent-customer strong { font-size: 17px; letter-spacing: .08em; }
.recent-customer small, .customer-meta { color: #776f63; font-size: 12px; }
.customer-meta { text-align: right; }
.customer-meta b { color: #25a566; }
.transaction-list { display: grid; gap: 8px; }
.transaction-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(55,45,30,.08); }
.transaction-row span { color: #776f63; font-size: 12px; }

@media (max-width: 420px) {
  .shell { width: min(100% - 22px, 560px); padding-top: 24px; }
  .card { border-radius: 20px; padding: 18px; }
  .recent-customer { align-items: flex-start; flex-direction: column; }
  .customer-meta { text-align: left; }
  .input-row { grid-template-columns: 1fr; }
  .compact { width: 100%; }
}
.nfc-section { border-bottom: 1px solid #d7e0dc; padding-bottom: 20px; }
.nfc-request { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 0; }
.nfc-request strong { flex: 1 1 140px; overflow-wrap: anywhere; }
.nfc-request .button { width: auto; margin: 0; }
