:root{color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',sans-serif;background:#080809;color:#f5f5f7;font-size:16px;-webkit-tap-highlight-color:transparent;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overscroll-behavior:none}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.4;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #80baff;outline-offset:3px}button{color:inherit;border:0}a{color:#80baff}h1,h2,h3,p{margin:0}h1{font-size:2rem;letter-spacing:-.045em}h2{font-size:1.75rem;letter-spacing:-.035em}h3{font-size:1.1rem}p{line-height:1.5}small,.muted{color:#a5a5ad;font-size:.88rem;line-height:1.5}[hidden]{display:none!important}#app{min-height:100dvh;max-width:480px;margin:auto}.stack{padding:calc(env(safe-area-inset-top) + 28px) 15px calc(env(safe-area-inset-bottom) + 32px);min-height:100dvh}.card{display:block;position:relative;width:100%;aspect-ratio:1.586;border-radius:15px;padding:23px 24px;text-align:left;overflow:hidden;box-shadow:0 -1px 0 #ffffff1a,0 7px 20px #0006;background:var(--card-color);color:var(--ink,#fff);isolation:isolate}.stack>.card+.card{margin-top:calc(-1 * (min(450px,100vw - 30px) / 1.586) + 78px)}.card-header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:2;min-height:33px}.brand-logo{max-width:142px;max-height:40px;object-fit:contain;object-position:left center}.brand-logo.dm{width:67px;max-height:43px}.brand-logo.payback{max-width:151px;max-height:36px}.brand-logo.rewe{max-width:128px;max-height:32px}.card-name{font-size:.9rem;font-weight:600;text-align:right;max-width:45%;overflow-wrap:anywhere}.card-bottom{position:absolute;left:24px;bottom:24px;right:24px;font-size:.95rem;font-weight:500}.card.rewe::before{content:'';position:absolute;inset:52% -10% -60%;background:#a00016;transform:rotate(-12deg);z-index:-1}.card.payback::before{content:'°';position:absolute;right:14px;bottom:-108px;font-size:340px;line-height:1;color:#ffffff09;font-weight:800;z-index:-1}.card.dm::after{content:'';position:absolute;bottom:0;left:0;right:0;height:9px;background:linear-gradient(90deg,#efb81b 0 44%,#cc1430 44% 72%,#163c7c 72%)}.settings-card{background:linear-gradient(125deg,#303035,#222226);color:#e9e9ed}.settings-card .card-header{font-size:1.22rem;font-weight:600;letter-spacing:-.025em}.settings-card .card-bottom{color:#a5a5ad;font-size:.9rem;display:flex;justify-content:space-between;align-items:end}.cardmark{display:flex;width:43px;height:34px;position:relative}.cardmark i{position:absolute;display:block;inset:0;border:1px solid #939398;border-radius:5px;background:#35353b}.cardmark i:nth-child(1){transform:translate(-4px,-6px)}.cardmark i:nth-child(2){transform:translate(-2px,-3px)}.cardmark i:nth-child(3){background:#4b4b53}.view{position:fixed;inset:0;z-index:10;background:#111113;overflow-y:auto;overscroll-behavior:contain;padding:calc(env(safe-area-inset-top) + 12px) max(16px,calc((100vw - 448px)/2)) calc(env(safe-area-inset-bottom) + 28px)}.topline{display:flex;justify-content:space-between;align-items:center;min-height:42px;margin-bottom:18px;gap:16px}.topline h2{font-size:1.25rem;letter-spacing:-.025em}.text-button{background:none;color:#80baff;padding:10px 0;min-height:44px}.close-button{width:36px;height:36px;border-radius:50%;background:#ffffff16;font-size:24px;font-weight:300;display:grid;place-items:center;flex-shrink:0}.detail{background:#080809}.detail-face{margin-bottom:16px}.detail-face .card{min-height:160px}.code-well{display:flex;align-items:center;justify-content:center;background:white;border-radius:17px;width:100%;min-height:285px;padding:16px;overflow:hidden}.code-well img{display:block;max-width:100%;height:auto;max-height:48dvh;object-fit:contain;image-rendering:pixelated;image-rendering:crisp-edges}.code-hint{margin-top:10px;text-align:center;color:#95959f;font-size:.8rem}.rewe-open{display:block;width:fit-content;margin:25px auto 0;padding:12px 19px;border-radius:22px;background:#27272b;color:#fff;text-decoration:none;font-size:.9rem;font-weight:600;min-height:44px}.fullscreen{background:white;display:flex;align-items:center;justify-content:center;padding:calc(env(safe-area-inset-top) + 70px) 12px calc(env(safe-area-inset-bottom) + 40px)}.fullscreen img{max-width:100%;max-height:100%;object-fit:contain;image-rendering:pixelated;image-rendering:crisp-edges}.fullscreen .close-button{position:absolute;right:max(20px,env(safe-area-inset-right));top:calc(env(safe-area-inset-top) + 18px);background:#eee;color:#333}.lock{display:flex;min-height:100dvh;flex-direction:column;align-items:center;justify-content:center;padding:40px 28px;text-align:center;gap:16px}.lock p{max-width:330px;color:#a5a5ad}.app-icon{width:78px;height:78px;border-radius:20px;margin-bottom:10px}.primary{display:block;width:100%;background:#f1f1f5;color:#131318;border-radius:13px;font-weight:600;min-height:50px;padding:14px 20px;margin-top:18px}.lock .primary{max-width:290px}.section-label{text-transform:uppercase;font-size:.76rem;letter-spacing:.04em;color:#9696a0;margin:28px 16px 10px}.group{background:#222225;border-radius:13px;overflow:hidden}.row{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:14px;width:100%;background:none;min-height:53px;padding:14px 16px}.row+.row{border-top:1px solid #ffffff0b}.row .chevron{font-size:21px;color:#6b6b73;font-weight:300}.note{margin:10px 15px;color:#93939e;font-size:.83rem;line-height:1.5}.intro{padding:10px 14px 20px}.intro p{margin-top:10px;color:#aaaab3}.danger{color:#ff6969}.success{color:#82d8a1}.field{display:block;margin:20px 0;font-size:.88rem;color:#c0c0c7}.field input,.field select{display:block;width:100%;border:1px solid #414149;border-radius:11px;background:#232327;color:#fff;min-height:48px;padding:12px;margin-top:8px}.field input[type=color]{padding:5px;max-width:90px}.field input[type=file]{font-size:.88rem}.field input[type=checkbox]{width:23px;height:23px;min-height:0;padding:0;margin:0;flex-shrink:0;accent-color:#659eed}.check{display:flex;gap:12px;align-items:flex-start;line-height:1.5}.warning{background:#382b14;color:#f4d49a;border-radius:12px;padding:14px;font-size:.88rem;line-height:1.5;margin:15px 0}.preview-code{background:#fff;display:block;max-width:100%;max-height:300px;object-fit:contain;margin:14px auto;border-radius:8px;image-rendering:pixelated}.crop-source{display:block;max-width:100%;max-height:220px;margin:auto;object-fit:contain}.crop-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.crop-grid .field{margin:7px 0}.crop-grid input{min-height:30px;padding:0;border:0}.management{display:flex;align-items:center;gap:10px;padding:12px 14px}.management+.management{border-top:1px solid #ffffff0b}.management .title{flex:1;overflow-wrap:anywhere;background:none;text-align:left;padding:10px 0}.small-button{background:#36363d;border-radius:9px;min-width:42px;min-height:42px;padding:8px}.swatch{width:9px;height:32px;border-radius:4px;background:var(--card-color);flex-shrink:0}#toast{position:fixed;bottom:calc(env(safe-area-inset-bottom) + 24px);left:20px;right:20px;max-width:440px;margin:auto;padding:15px 19px;background:#33333b;color:white;box-shadow:0 8px 30px #0007;border-radius:14px;z-index:100;font-size:.9rem;line-height:1.4}#privacy{position:fixed;inset:0;background:#080809;z-index:1000;display:grid;place-items:center}#privacy img{width:72px;border-radius:18px}.inline-actions{display:flex;gap:12px;flex-wrap:wrap}.inline-actions .text-button{padding:12px 5px}details{margin:20px 0}summary{min-height:44px;padding:12px 0;color:#bbb}details p{font-size:.88rem;color:#aaa;line-height:1.5}.confirm{position:fixed;inset:0;z-index:40;background:#0009;display:flex;align-items:center;justify-content:center;padding:24px}.confirm-box{width:100%;max-width:340px;background:#29292e;border-radius:20px;padding:24px}.confirm-box p{margin-top:12px;font-size:.9rem;color:#c3c3ca}.confirm-box .row{justify-content:center;border-top:1px solid #ffffff1a;padding:15px}.confirm-box .actions{margin:22px -24px -24px}.blank-logo{font-size:1.35rem;font-weight:700;letter-spacing:-.025em}.version{font-size:.8rem;color:#777780;text-align:center;padding:30px 0 0}.scan-label{color:#9b9ba6;text-align:center;margin-top:15px;font-size:.85rem}@media(min-width:500px){.stack{padding-top:65px}.card{border-radius:18px}.view{padding-top:25px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}@media(max-height:650px){.code-well{min-height:200px}.detail-face .card{min-height:0;aspect-ratio:2.2}.card-bottom{bottom:18px}.code-well img{max-height:35dvh}}
.brand-logo.payback{background:white;padding:7px 9px;border-radius:4px;max-height:39px;max-width:158px}.crop-container{position:relative;width:fit-content;margin:auto;overflow:hidden}.crop-outline{position:absolute;inset:0;border:2px solid #4ba8ff;background:#4ba8ff13;pointer-events:none;box-shadow:0 0 0 1000px #0006}

/* WebKit centres the content of a <button> vertically regardless of display:block.
   The cards are buttons, so the header drifted to the middle of the card and was
   hidden under the next card in the stack. Force top alignment. */
.card{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}
/* The settings card closes the stack as a compact tile instead of a full-size panel,
   so the last customer card stays the prominent one. */
.stack>.settings-card,.stack>.card+.settings-card{aspect-ratio:auto;min-height:0;padding:17px 22px;margin-top:14px}
.stack>.settings-card .card-bottom{position:static;left:auto;right:auto;bottom:auto;margin-top:15px}

/* Sticky stack: scrolling piles the upper cards at the top edge, the way Wallet does. */
.stack{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.stack>.card{position:sticky;top:calc(env(safe-area-inset-top) + 18px + var(--i,0) * 7px)}
.stack>.settings-card{position:relative;top:auto}

/* Opening a card turns it around its vertical axis and reveals the code on the back. */
.detail{perspective:1500px}
.flip{position:relative;transform-style:preserve-3d;transform:rotateY(180deg);margin-bottom:18px}
.flip-front{position:absolute;left:0;right:0;top:0;aspect-ratio:1.586;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.flip-back{position:relative;aspect-ratio:auto;min-height:min(66dvh,520px);gap:15px;transform:rotateY(180deg);backface-visibility:hidden;-webkit-backface-visibility:hidden}
.flip-back .code-well{flex:1;min-height:0;width:100%}
.flip-back .code-hint{margin:0;color:var(--ink);opacity:.72}
@media(prefers-reduced-motion:reduce){.flip,.flip-back{transform:none}.flip-front{display:none}}

/* Pull past the last card and hold to reach the settings. */
.pull-zone{display:flex;flex-direction:column;align-items:center;gap:11px;padding:30px 0 12px}
.pull-hint{width:36px;height:4px;border-radius:2px;background:#ffffff24}
.pull-bar{width:134px;height:4px;border-radius:2px;background:#ffffff1a;overflow:hidden;opacity:0;transition:opacity .15s}
.pull-fill{display:block;height:100%;border-radius:2px;background:#f1f1f5;transform:scaleX(0);transform-origin:left center}
.pull-label{font-size:.74rem;color:#9696a0;opacity:0;transition:opacity .15s}
.pull-zone.pulling .pull-bar,.pull-zone.pulling .pull-label{opacity:1}
