:root{--background: #ffffff;--surface: #f5f6f8;--surface-hover: #eceef2;--border: #e1e4e9;--text: #111418;--muted: #5b6470;--accent: #3b5bdb;--accent-text: #ffffff;--focus: #3b5bdb;--warning-background: #fff6e0;--warning-text: #6b4a00;--problem-background: #fdecec;--problem-text: #8a1c1c;--success: #1f9d55;--success-background: #e6f5ec;--success-text: #13693a;--radius-small: 8px;--radius: 12px;--radius-large: 16px;--motion: .16s ease;--history-height: 320px;--step-fill: .45s;color-scheme:light dark}:root[data-theme=light]{color-scheme:light}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--background: #121417;--surface: #1c1f24;--surface-hover: #252931;--border: #2c3139;--text: #eef1f4;--muted: #9aa4b0;--accent: #7c96ff;--accent-text: #0d1020;--focus: #9db0ff;--warning-background: #3a2f12;--warning-text: #f2d48a;--problem-background: #3d1a1a;--problem-text: #f19a9a;--success: #4cc38a;--success-background: #133022;--success-text: #8be0b3}}:root[data-theme=dark]{color-scheme:dark;--background: #121417;--surface: #1c1f24;--surface-hover: #252931;--border: #2c3139;--text: #eef1f4;--muted: #9aa4b0;--accent: #7c96ff;--accent-text: #0d1020;--focus: #9db0ff;--warning-background: #3a2f12;--warning-text: #f2d48a;--problem-background: #3d1a1a;--problem-text: #f19a9a;--success: #4cc38a;--success-background: #133022;--success-text: #8be0b3}*{box-sizing:border-box}html.growing{overflow:hidden}html[data-display=modal]{scrollbar-gutter:stable}body{margin:0;background:var(--background);color:var(--text);font:15px/1.45 system-ui,-apple-system,Segoe UI,sans-serif}p{margin:0 0 8px}a{color:var(--accent)}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}[tabindex="-1"]:focus{outline:none}.card{display:flex;flex-direction:column;gap:16px;padding:16px}.header{display:flex;flex-direction:column;gap:6px}.header .product-title{display:-webkit-box;margin:0;overflow:hidden;font-size:20px;font-weight:700;line-height:1.3;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.store-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0;min-width:0;color:var(--muted);font-size:13px}.store-name{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-line .badge,.store-line .chip{flex:none;max-width:100%}.store-line .chip{overflow-wrap:anywhere}.badge{padding:2px 8px;border-radius:var(--radius-small);background:var(--warning-background);color:var(--warning-text);font-size:12px;font-weight:600}.chip{padding:2px 8px;border:1px solid var(--border);border-radius:var(--radius-small);background:var(--surface);color:var(--muted);font-size:12px;font-weight:400}.chip[data-level=A]{color:var(--success)}.step{display:flex;flex-direction:column;gap:8px;animation:enter .18s ease}@keyframes enter{0%{opacity:0;transform:translateY(4px)}}.reveal{animation:enter .16s ease}.step-heading{margin:0;font-size:18px;font-weight:600}h3.step-heading{font-size:16px}.offer-panel,.product{display:flex;flex-direction:column;gap:8px}.offer-panel>[data-step=wallets]{margin-top:8px}.summary,.note,.label,.pay-label,.footer{color:var(--muted)}.label{margin:0;font-size:13px}.price{margin:0;font-size:28px;font-weight:700;letter-spacing:-.01em}.paying{display:flex;align-items:center;gap:8px;margin:0;padding:8px 12px;border-radius:var(--radius-small);background:var(--surface);font-weight:600}.pay-label{display:flex;align-items:center;gap:8px;margin:0}.sent-email{margin:0;overflow-wrap:anywhere}.sent-email .label{margin-right:8px}.pay-with{display:flex;flex-direction:column;gap:4px}.select-root{position:relative}.select{display:flex;align-items:center;gap:8px;width:100%;border-color:var(--border);background:var(--background);color:var(--text);font-weight:400;text-align:left}.select:hover:not([aria-disabled=true]){background:var(--surface-hover)}.select[aria-expanded=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.select[aria-disabled=true]{cursor:not-allowed;opacity:.5}.select-value{flex:1}.select-chevron{flex:none;width:8px;height:8px;margin:-4px 4px 0;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg)}.select[aria-expanded=true] .select-chevron{margin-top:4px;transform:rotate(-135deg)}.select-list{position:absolute;top:calc(100% + 4px);right:0;left:0;z-index:10;margin:0;padding:4px;border:1px solid var(--border);border-radius:var(--radius);background:var(--background);box-shadow:0 12px 32px #0000003d;list-style:none}.select-option{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border-radius:var(--radius-small);cursor:pointer}.select-option[data-active]{background:var(--surface-hover)}.select-option[aria-selected=true]{font-weight:600}.countdown{font-variant-numeric:tabular-nums;font-weight:600}.glyph{flex:none;width:24px;height:24px}.wallet-icon,.monogram{flex:none;width:32px;height:32px;border-radius:var(--radius-small)}.monogram{display:inline-flex;align-items:center;justify-content:center;background:var(--surface-hover);font-weight:700}.problem,.banner{padding:8px 12px;border-radius:var(--radius-small)}.problem{background:var(--problem-background);color:var(--problem-text)}.problem p:last-child{margin-bottom:0}.banner{margin:16px 16px 0;background:var(--surface)}.field{display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:13px}.field input{min-height:44px;padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius-small);background:var(--background);color:var(--text);font:inherit}button,.button{min-height:44px;padding:8px 16px;border:1px solid transparent;border-radius:var(--radius);font:inherit;font-weight:600;text-align:center;text-decoration:none;cursor:pointer;transition:background var(--motion),border-color var(--motion),opacity var(--motion)}button:disabled{cursor:not-allowed;opacity:.5}.primary{display:block;width:100%;background:var(--accent);color:var(--accent-text)}.secondary{width:100%;border-color:var(--border);background:transparent;color:var(--text)}.wallet-list{display:flex;flex-direction:column;gap:8px}.wallet-row{display:flex;align-items:center;gap:12px;min-height:56px;padding:12px;border-color:var(--border);background:var(--background);color:var(--text);text-align:left}.wallet-row:hover:not(:disabled){background:var(--surface-hover)}.wallet-name{display:flex;flex:1;flex-direction:column}.chevron:after{content:"›";color:var(--muted);font-size:20px}.empty{padding:12px;border:1px dashed var(--border);border-radius:var(--radius)}.install{display:flex;gap:16px;margin:0 0 8px;padding:0;list-style:none}.stepper{margin:0;padding:0;list-style:none}.stepper li{position:relative;padding:0 0 12px 24px;color:var(--muted)}.stepper li:before{content:"";position:absolute;top:5px;left:0;width:10px;height:10px;border:2px solid var(--border);border-radius:50%;background:var(--background);transition:background-color var(--step-fill) ease,border-color var(--step-fill) ease}.stepper li[data-state=done]{color:var(--text)}.stepper li[data-state=done]:before{border-color:var(--success);background:var(--success)}.stepper li[data-state=active]{color:var(--text);font-weight:600}.stepper li[data-state=active]:before{border-color:var(--accent);animation:pulse 1.2s ease-in-out infinite}@keyframes pulse{50%{box-shadow:0 0 0 4px var(--surface-hover)}}.status{margin:0}.loading{color:var(--muted)}.mark{align-self:center;width:40px;height:40px}.done .step-heading,.ended .step-heading{text-align:center}.receipt{display:flex;flex-direction:column;gap:4px;margin-top:8px;padding-top:12px;border-top:1px solid var(--border)}.receipt .copy{display:flex;flex-direction:column;gap:8px}.receipt-title{margin:0;color:var(--muted);font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}.receipt-text{margin:0;padding:8px 12px;border-radius:var(--radius-small);background:var(--surface);font-size:13px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}.label-stack{display:inline-grid}.label-option{grid-area:1 / 1}.label-option[data-current=false]{visibility:hidden}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.receipt-line{display:block}.receipt-hint{display:block;color:var(--muted);font-size:12px}.footer{display:flex;flex-direction:column;align-items:center;gap:4px;padding-top:8px;border-top:1px solid var(--border);font-size:12px;text-align:center}.link-button{min-height:32px;padding:4px 8px;border:none;background:transparent;color:var(--accent);font-size:13px;text-decoration:underline}.purchases-region{height:var(--history-height);overflow-y:auto;padding:0 4px;scroll-padding-top:44px;scroll-padding-bottom:40px}.purchases-nav{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:4px;padding:4px 0 8px;background:var(--background)}.purchases-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;padding-top:4px;background:var(--background)}.icon-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;min-height:32px;padding:0;border:none;border-radius:var(--radius-small);background:transparent;color:var(--text);font-weight:400}.icon-button:hover{background:var(--surface-hover)}.text-button,.nav-back{min-height:32px;padding:4px 8px;border:none;background:transparent;font-size:13px}.text-button{color:var(--accent);font-weight:400}.text-button:hover{text-decoration:underline}.nav-back{color:var(--text);font-weight:600}.purchase-list{margin:0;padding:0;list-style:none}.purchase-list li+li{border-top:1px solid var(--border)}.purchase-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 12px;width:100%;padding:8px;border:none;border-radius:var(--radius-small);background:transparent;color:var(--text);font-weight:400;text-align:left}.purchase-row:hover{background:var(--surface-hover)}.purchase-product{overflow:hidden;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.purchase-amount{justify-self:end;font-variant-numeric:tabular-nums}.purchase-day{color:var(--muted);font-size:13px}.status-badge{justify-self:end;padding:1px 8px;border:1px solid transparent;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}.status-badge[data-tone=success]{background:var(--success-background);color:var(--success-text)}.status-badge[data-tone=neutral]{border-color:var(--border);background:var(--surface);color:var(--muted)}.status-badge[data-tone=pending]{background:var(--warning-background);color:var(--warning-text)}.status-badge[data-tone=problem]{background:var(--problem-background);color:var(--problem-text)}.purchase-card{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:var(--radius);background:var(--surface)}.purchase-card .note{margin:0}.purchase-hero{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px}.purchase-total{margin:0;white-space:nowrap;font-size:24px;font-weight:700;font-variant-numeric:tabular-nums}.purchase-meta{margin:0;color:var(--muted);font-size:13px}.purchase-facts{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:8px 16px;margin:0}.purchase-facts>div{display:contents}.purchase-facts dt{color:var(--muted);font-size:13px}.purchase-facts dd{display:flex;align-items:center;gap:4px;margin:0;overflow-wrap:anywhere}.order-id{display:inline-flex;align-items:center;gap:4px;min-width:0}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;overflow-wrap:anywhere}.purchase-copy{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.purchase-copy .text-button{margin-left:-8px}.purchase-receipt-full{margin:0;padding:8px 12px;border-radius:var(--radius-small);background:var(--background);font-size:13px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
