:root{--orange:#c75028;--cream:#f6ecdf;--ink:#29231e}*{box-sizing:border-box}body{margin:0;background:var(--cream);font:16px/1.5 Arial,sans-serif;color:var(--ink)}header{display:flex;align-items:center;justify-content:space-between;max-width:1100px;margin:auto;padding:15px 24px;border-bottom:1px solid #d8c6b4}header img{width:92px;border-radius:12px}nav{display:flex;gap:16px}a{color:var(--ink)}main{max-width:1000px;margin:30px auto;padding:0 20px}.customer{max-width:500px;margin:auto}h1{font:normal 36px Georgia;margin:20px 0 10px}h2{font-size:22px}p{margin:10px 0 20px}.card,section{background:#fffbf6;border:1px solid #dfcdbc;border-radius:20px;padding:25px;margin:20px 0}.badge{background:#293c30;color:#fff;border-radius:20px;padding:6px 14px;display:inline-block;font-size:14px}.stamp-grid{display:flex;gap:10px;margin:25px 0}.stamp{width:50px;height:50px;border-radius:50%;border:2px dashed #ccb39a;display:grid;place-items:center;font-size:22px}.stamp.filled{background:var(--orange);color:white;border:2px solid var(--orange)}.counter{font-size:42px;font-weight:bold;color:var(--orange)}.qr{display:block;margin:20px auto;background:white;border-radius:12px;max-width:100%}button,.button{display:inline-block;background:var(--orange);border:0;border-radius:10px;padding:14px 20px;color:white;font:inherit;cursor:pointer;text-decoration:none;margin:4px 0}button.secondary{background:#293c30}button:disabled{opacity:.45;cursor:not-allowed}input,select{width:100%;padding:13px;border:1px solid #cbb5a0;border-radius:9px;font:inherit;margin:8px 0 16px}label{display:block}small{font-size:13px;color:#6f6156}.status{padding:12px;border-radius:10px;background:#edd8c2;margin:15px 0;min-height:45px}.layout{display:grid;grid-template-columns:1fr 1fr;gap:25px}.history{padding:12px 0;border-bottom:1px solid #dfcdbc}.history b{display:block}video{width:100%;border-radius:12px}.choices{display:flex;flex-wrap:wrap;gap:10px}.choices button[aria-pressed=true]{outline:3px solid var(--ink);outline-offset:3px}.danger{color:#942c15}canvas[hidden],[hidden]{display:none!important}button:focus-visible,a:focus-visible{outline:3px solid #293c30;outline-offset:4px}@media(max-width:700px){.layout{grid-template-columns:1fr}header{padding:12px 16px}nav{font-size:14px;gap:10px}.card,section{padding:20px}h1{font-size:30px}}

textarea{width:100%;padding:13px;border:1px solid #cbb5a0;border-radius:9px;font:inherit;min-height:120px;margin:8px 0 16px}.campaign-image{display:block;background:none;padding:0;margin:16px 0;width:100%;cursor:zoom-in}.campaign-image img,.campaign-preview{width:100%;max-width:500px;max-height:450px;object-fit:contain;border-radius:12px}.campaign-description{white-space:pre-line}.campaign-price{font-size:28px;color:var(--orange)}dialog{max-width:95vw;max-height:95vh;border:0;border-radius:14px;padding:12px;background:var(--cream)}dialog::backdrop{background:#000b}dialog img{display:block;max-width:90vw;max-height:80vh;object-fit:contain}
.campaign-list{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding:5px 0 12px;margin:15px 0 20px;scrollbar-width:thin}.campaign-list>.campaign{flex:0 0 calc(66.666% - 8px);min-width:0;scroll-snap-align:start;padding:12px;margin:0}.campaign-list .campaign-image{margin:10px 0}.campaign-list .campaign-image img{width:100%;height:130px;object-fit:contain}.campaign-list .campaign-description{font-size:14px;line-height:1.35;margin:8px 0;max-height:5.4em;overflow:auto}.campaign-list .badge{font-size:12px;padding:4px 8px}.campaign-list .campaign-price{font-size:22px}.date-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.date-filter label{flex:1;min-width:160px}.date-filter button{margin-bottom:16px}.stats-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.stats-totals article{background:#fffaf3;border:1px solid #dfcdbc;border-radius:12px;padding:16px}.stats-totals strong{display:block;font-size:32px;color:var(--orange);margin-top:8px}.stats-totals small{font-size:14px;display:block}.table-scroll{overflow:auto;max-height:500px}table{border-collapse:collapse;width:100%;text-align:left}th,td{border-bottom:1px solid #dfcdbc;padding:12px;white-space:nowrap}th{background:#f6ecdf;font-size:14px;position:sticky;top:0}.username-button{background:none;color:var(--orange);padding:4px 0;text-decoration:underline}.stats-customers td{font-size:14px}.delete-campaign{margin-left:10px}@media(max-width:650px){.stats-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-totals article{padding:12px}.stats-totals strong{font-size:28px}.campaign-list .campaign-image img{height:110px}}

.show-qr{width:100%;font-size:20px;font-weight:bold;min-height:64px}.qr-dialog{text-align:center;width:min(560px,95vw)}.qr-dialog canvas{width:min(480px,100%)!important;height:auto!important}.counter small{font-size:18px}

.install-shortcut{font-size:14px;max-width:170px;margin-left:16px}.install-help{width:min(440px,95vw);padding:24px}.install-help img{border-radius:16px}.install-help a{display:block;overflow-wrap:anywhere;font-size:14px}

.text-button{background:transparent;color:#293c30;text-decoration:underline;padding:12px 0;min-height:44px}.member-name{margin:0;color:#6f6156}.contact-area h2{margin-top:0}.contact-link{display:block;padding:14px 0;text-decoration:none;border-top:1px solid #dfcdbc;min-height:48px}.contact-link strong,.contact-link span{display:block}.contact-link strong{color:#293c30}.contact-link span{font-size:14px;margin-top:5px}.recovery-code{display:block;overflow-wrap:anywhere;padding:16px;border-radius:10px;background:#edd8c2;font-size:18px;user-select:all}#codeStatus{margin-top:12px}.stamp-grid{gap:8px}.stamp{flex:0 1 50px;min-width:0;aspect-ratio:1;height:auto}small{overflow-wrap:anywhere}.choices{margin-bottom:16px}@media(max-width:700px){main{margin:16px auto;padding:0 16px}header img{width:64px}h1{margin:12px 0 8px}.card,.auth-section{margin-top:12px}.customer>.badge{font-size:13px}.customer>.card{padding:18px}.stamp-grid{margin:16px 0}.counter{font-size:36px}.auth-section input{margin-bottom:12px}.contact-area{margin-bottom:28px}}

/* Mobile customer surface: shared type, spacing and controls. */
body[data-page="customer"]{font-family:Arial,sans-serif;line-height:1.5}body[data-page="customer"] .customer h1{font-size:1.875rem;line-height:1.2;font-weight:normal;margin:12px 0 6px}body[data-page="customer"] .customer h2{font-size:1.125rem;line-height:1.35;margin:0 0 12px}body[data-page="customer"] .customer p{margin:0 0 16px}body[data-page="customer"] .member-name{font-size:.875rem;margin-bottom:16px;overflow-wrap:anywhere}body[data-page="customer"] button{min-height:48px;border-radius:12px;padding:12px 16px;font-size:1rem;line-height:1.4}body[data-page="customer"] .install-shortcut{font-size:.875rem}body[data-page="customer"] .customer section,body[data-page="customer"] .loyalty-card{padding:20px;border-radius:18px;margin:16px 0}body[data-page="customer"] .customer small{font-size:.875rem}body[data-page="customer"] .customer label{font-size:.875rem;font-weight:600}body[data-page="customer"] input{min-height:48px;border-radius:12px;font-size:1rem;font-weight:400}body[data-page="customer"] .auth-section .choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}body[data-page="customer"] .choices button[aria-pressed=true]{outline:2px solid var(--ink);outline-offset:2px}body[data-page="customer"] #submit,body[data-page="customer"] #recoverSubmit{width:100%}.loyalty-card{border-top:4px solid #293c30!important}.card-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:.875rem;color:#6f6156}.card-rule{text-align:right;color:#293c30}.loyalty-card .counter{font-size:2.5rem;line-height:1.2;margin-top:16px;font-variant-numeric:tabular-nums}.loyalty-card .counter small{font-weight:400;font-size:1rem!important;color:#6f6156}.loyalty-card .stamp-grid{margin:16px 0 20px;justify-content:space-between}.loyalty-card .stamp{width:48px;max-width:48px;font-size:1.125rem}.loyalty-card .card-progress{font-size:1.125rem;font-weight:700;margin-bottom:6px!important;color:#293c30}.loyalty-card .card-hint{font-size:.875rem;color:#6f6156}.loyalty-card .show-qr{font-size:1.125rem!important;font-weight:700;min-height:56px;width:100%;margin:4px 0 8px}.card-refresh{display:block;margin:0 auto!important}.customer-details{border:1px solid #dfcdbc;border-radius:16px;background:#fffbf6;margin:12px 0}.customer-details summary{padding:18px 20px;min-height:56px;font-weight:600;cursor:pointer;font-size:1rem}.customer-details summary:focus-visible{outline:3px solid #293c30;outline-offset:3px;border-radius:16px}.details-content{padding:0 20px 20px}.customer-details[open] summary{border-bottom:1px solid #dfcdbc;margin-bottom:20px}.details-content .history:first-child{padding-top:0}.details-content .history:last-child{border-bottom:0}.account-name{font-size:.875rem;overflow-wrap:anywhere}#recoverySettings p{font-size:.875rem}.logout-button{display:block!important;color:#942c15!important;margin-top:20px!important;border-top:1px solid #dfcdbc!important;border-radius:0!important;width:100%;text-align:left}.qr-dialog small{display:block;overflow-wrap:anywhere}.qr-dialog p{font-size:1rem}.customer .campaign-list>.campaign{padding:12px;margin:0}.customer .campaign-list .campaign-image{min-height:0;padding:0}.customer .contact-area{margin-top:20px}body[data-page="customer"] .text-button{background:transparent;padding:12px 0}
