*{box-sizing:border-box}:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.5;font-weight:400;color:#213547;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}html{font-size:16px}body{margin:0;min-width:320px;min-height:100vh;background-color:#f8f9fa}button{font-family:inherit;cursor:pointer;border:none;background:none;padding:0;margin:0}button:focus,button:focus-visible{outline:2px solid #007bff;outline-offset:2px}a{color:#007bff;text-decoration:none}a:hover{color:#0056b3;text-decoration:underline}h1,h2,h3,h4,h5,h6{margin:0;font-weight:600;line-height:1.2}p{margin:0}@media (max-width: 768px){html{font-size:14px}}@media (max-width: 480px){html{font-size:13px}}.loading-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background-color:transparent}.loading-content{text-align:center;padding:2rem}.spinner{width:50px;height:50px;border:4px solid #e0e0e0;border-top:4px solid #007bff;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 1rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-message{color:#666;font-size:1.1rem;margin:0}.payment-status-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:1rem;width:100%}.payment-status-card{background:#fff;border-radius:1rem;padding:2rem;max-width:500px;width:100%;text-align:center;box-shadow:0 10px 30px #00000026;max-height:calc(100vh - 2rem);overflow-y:auto}.status-icon{font-size:4rem;margin-bottom:1.5rem}.status-title{color:#333;font-size:1.8rem;font-weight:600;margin-bottom:1rem;line-height:1.3}.status-message{color:#666;font-size:1.1rem;line-height:1.5;margin-bottom:2rem}.payment-details{background:#f8f9fa;border-radius:12px;padding:1.5rem;margin-bottom:2rem;text-align:left}.detail-row{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;border-bottom:1px solid #e9ecef}.detail-label{font-weight:600;color:#495057}.detail-value{color:#333;font-weight:500}.action-buttons{display:flex;gap:1rem;justify-content:center;margin-bottom:2rem;flex-wrap:wrap}.return-button{background:#007bff;color:#fff;border:none;padding:.875rem 1.5rem;border-radius:.5rem;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;min-height:44px;touch-action:manipulation}.return-button:hover{background:#0056b3;transform:translateY(-1px)}.return-button:active{transform:translateY(0)}.retry-button{background:#6c757d;color:#fff;border:none;padding:.875rem 1.5rem;border-radius:.5rem;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;min-height:44px;touch-action:manipulation}.retry-button:hover{background:#545b62;transform:translateY(-1px)}.retry-button:active{transform:translateY(0)}@media (max-width: 768px){.payment-status-container{padding:.75rem}.payment-status-card{padding:1.5rem;border-radius:.75rem}.status-icon{font-size:3rem}.status-title{font-size:1.5rem}}@media (max-width: 480px){.payment-status-container{padding:1rem .5rem .5rem;align-items:flex-start}.payment-status-card{padding:1.25rem;border-radius:.5rem;max-height:none}.status-icon{font-size:2.5rem;margin-bottom:1rem}.status-title{font-size:1.375rem;margin-bottom:.75rem}.status-message{font-size:.95rem;margin-bottom:1.25rem}.payment-details{padding:1rem;margin-bottom:1.25rem}.action-buttons{flex-direction:column;gap:.5rem;margin-bottom:1.25rem}.return-button,.retry-button{width:100%;padding:1rem 1.25rem;font-size:.95rem;min-height:48px}.footer{padding-top:1.25rem}.church-name{font-size:1rem}.secure-text{font-size:.85rem}}.payment-confirmation-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:1rem;width:100%}.payment-confirmation-card{background:#fff;border-radius:1rem;padding:2rem;max-width:500px;width:100%;text-align:center;box-shadow:0 10px 30px #00000026;max-height:calc(100vh - 2rem);overflow-y:auto}.confirmation-icon{font-size:3.5rem;margin-bottom:1rem}.confirmation-title{color:#333;font-size:1.75rem;font-weight:600;margin-bottom:1rem;line-height:1.3}.confirmation-message{color:#666;font-size:1rem;line-height:1.5;margin-bottom:1.5rem}.donation-details{background:#f8f9fa;border-radius:.75rem;padding:1.25rem;margin-bottom:1.5rem;text-align:left}.detail-row{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;border-bottom:1px solid #e9ecef;flex-wrap:wrap;gap:.5rem}.detail-row:last-child{border-bottom:none}.detail-label{font-weight:600;color:#495057;font-size:.95rem;min-width:fit-content}.detail-value{color:#333;font-weight:500;font-size:.95rem;word-break:break-word}.action-buttons{display:flex;gap:.75rem;justify-content:center;margin-bottom:1.5rem;flex-direction:column}.confirm-button{background:#28a745;color:#fff;border:none;padding:.875rem 1.5rem;border-radius:.5rem;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;min-height:44px;touch-action:manipulation}.confirm-button:hover:not(:disabled){background:#218838;transform:translateY(-1px)}.confirm-button:active{transform:translateY(0)}.confirm-button:disabled{background:#6c757d;cursor:not-allowed;transform:none}.cancel-button{background:transparent;color:#6c757d;border:2px solid #6c757d;padding:.75rem 1.5rem;border-radius:.5rem;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;min-height:44px;touch-action:manipulation}.cancel-button:hover:not(:disabled){background:#6c757d;color:#fff;transform:translateY(-1px)}.cancel-button:active{transform:translateY(0)}.cancel-button:disabled{opacity:.5;cursor:not-allowed;transform:none}.footer{border-top:1px solid #e9ecef;padding-top:1.5rem}.church-name{font-weight:600;color:#333;margin-bottom:.5rem;font-size:1.1rem}.secure-text{color:#6c757d;font-size:.9rem;margin:0}.retry-notice{color:#ffc107;font-size:.9rem;margin-top:.5rem;font-weight:500}.idempotency-warning{background:#fff3cd;border:1px solid #ffeaa7;border-radius:8px;padding:1rem;margin-bottom:1rem;color:#856404;font-size:.95rem}.duplicate-payment-notice{background:#d1ecf1;border:1px solid #bee5eb;border-radius:8px;padding:1rem;margin-bottom:1rem;color:#0c5460;font-size:.95rem}@media (max-width: 768px){.payment-confirmation-container{padding:.75rem}.payment-confirmation-card{padding:1.5rem;border-radius:.75rem}.confirmation-icon{font-size:3rem}.confirmation-title{font-size:1.5rem}}@media (max-width: 480px){.payment-confirmation-container{padding:1rem .5rem .5rem;align-items:flex-start}.payment-confirmation-card{padding:1.25rem;border-radius:.5rem;max-height:none}.confirmation-icon{font-size:2.5rem;margin-bottom:.75rem}.confirmation-title{font-size:1.375rem;margin-bottom:.75rem}.confirmation-message{font-size:.95rem;margin-bottom:1.25rem}.donation-details{padding:1rem;margin-bottom:1.25rem}.detail-row{padding:.625rem 0}.detail-label,.detail-value{font-size:.9rem}.action-buttons{gap:.5rem;margin-bottom:1.25rem}.confirm-button,.cancel-button{padding:1rem 1.25rem;font-size:.95rem;min-height:48px}.retry-notice{font-size:.85rem}.footer{padding-top:1.25rem}.church-name{font-size:1rem}.secure-text{font-size:.85rem}}@media (max-width: 360px){.detail-row{flex-direction:column;align-items:flex-start;gap:.25rem}.detail-label{font-size:.85rem}.detail-value{font-size:.9rem;font-weight:600}}.donation-container{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:linear-gradient(135deg,#667eea,#764ba2)}.donation-card{background:#fff;border-radius:16px;padding:40px;max-width:600px;width:100%;box-shadow:0 20px 60px #0000004d}.donation-card h1{font-size:32px;color:#333;margin-bottom:8px;text-align:center}.subtitle{text-align:center;color:#666;margin-bottom:32px;font-size:16px}.form-section{margin-bottom:32px}.section-label{display:block;font-size:16px;font-weight:600;color:#333;margin-bottom:12px}.helper-text{font-size:13px;color:#666;margin-bottom:12px;font-style:italic}.amount-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:12px;margin-bottom:16px}.amount-button{padding:16px;border:2px solid #e0e0e0;background:#fff;border-radius:8px;font-size:18px;font-weight:600;color:#333;cursor:pointer;transition:all .2s ease}.amount-button:hover{border-color:#667eea;background:#f5f7ff}.amount-button.selected{border-color:#667eea;background:#667eea;color:#fff}.custom-amount{margin-top:16px}.custom-amount label{display:block;font-size:14px;color:#666;margin-bottom:8px}.input-with-prefix{position:relative;display:flex;align-items:center}.prefix{position:absolute;left:16px;font-size:18px;font-weight:600;color:#333}.custom-amount-input{width:100%;padding:14px 14px 14px 36px;border:2px solid #e0e0e0;border-radius:8px;font-size:16px;transition:border-color .2s ease}.custom-amount-input:focus{outline:none;border-color:#667eea}.text-input,.select-input{width:100%;padding:14px 16px;border:2px solid #e0e0e0;border-radius:8px;font-size:16px;margin-bottom:12px;transition:border-color .2s ease}.text-input:focus,.select-input:focus{outline:none;border-color:#667eea}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:12px}.two-column .text-input,.two-column .select-input{margin-bottom:12px}.submit-button{width:100%;padding:16px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:18px;font-weight:600;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease;margin-top:8px}.submit-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 24px #667eea66}.submit-button:disabled{opacity:.6;cursor:not-allowed}.back-button{width:100%;padding:16px;background:#fff;color:#667eea;border:2px solid #667eea;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s ease;margin-top:12px}.back-button:hover:not(:disabled){background:#f5f7ff}.back-button:disabled{opacity:.6;cursor:not-allowed}.button-group{margin-top:24px}.error-message{background:#fee;border:1px solid #fcc;color:#c33;padding:12px 16px;border-radius:8px;margin:16px 0;font-size:14px}.success-card{text-align:center}.success-icon{font-size:64px;margin-bottom:24px}.success-card h1{color:#28a745;margin-bottom:16px}.success-card p{font-size:16px;color:#666;margin-bottom:12px;line-height:1.6}.donation-summary{background:#f5f7ff;border-radius:8px;padding:20px;margin-bottom:24px}.donation-summary p{margin:8px 0;font-size:16px;color:#333}.footer{margin-top:32px;padding-top:24px;border-top:1px solid #e0e0e0;text-align:center}.church-name{font-size:18px;font-weight:600;color:#333;margin-bottom:8px}.tax-note{font-size:13px;color:#666;margin-bottom:8px}.secure-text{font-size:13px;color:#999;margin-top:8px}@media (max-width: 600px){.donation-card{padding:24px}.donation-card h1{font-size:24px}.amount-buttons{grid-template-columns:repeat(2,1fr)}.two-column{grid-template-columns:1fr}}.pos-shell{--red: #920006;--red-ink: #5c0003;--bg: #f3efee;--card: #ffffff;--line: #e2dad8;--ink: #1f1a19;--muted: #5b5352;--green: #1f7a46;--orange: #c45a00;--orange-bg: #fdebd6;--blue: #2f6fd6;--radius: 16px;min-height:100vh;background:var(--bg);color:var(--ink);font-size:16px}@media (prefers-color-scheme: dark){.pos-shell{--red: #f2524d;--red-ink: #ffdad6;--bg: #141112;--card: #211c1d;--line: #433a39;--ink: #ede0df;--muted: #d6c5c3;--green: #5fd38d;--orange: #ffab5c;--orange-bg: #3d2410;--blue: #8ab4ff}}.pos-shell *{box-sizing:border-box}.pos-shell.center,.pos-shell .center{display:flex;align-items:center;justify-content:center}.pos-shell .pad{padding:32px 0}.pos-shell .muted{color:var(--muted)}.pos-shell .small{font-size:13px}.pos-shell .block{display:block}.pos-shell .center-text{text-align:center;display:block;margin:0 auto}.pos-header{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top));background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.pos-header h1{font-size:18px;font-weight:700;text-align:center;letter-spacing:-.2px}.pos-header>:last-child{justify-self:end}.pos-brand{font-weight:700;color:var(--red)}.pos-main{max-width:720px;margin:0 auto;padding:16px 16px 48px;display:flex;flex-direction:column;gap:16px}.pos-shell.is-training .pos-header{border-bottom:3px solid #f08a1c}.pos-shell .card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px}.pos-shell .stack{display:flex;flex-direction:column;gap:12px}.pos-shell h2{font-size:22px;font-weight:700;letter-spacing:-.3px}.pos-shell h3{font-size:15px;font-weight:600;color:var(--muted);margin-bottom:8px}.pos-shell button{font:inherit;color:inherit}.pos-shell button:focus,.pos-shell a:focus{outline:none}.pos-shell button:focus-visible,.pos-shell a:focus-visible{outline:3px solid color-mix(in srgb,var(--red) 55%,transparent);outline-offset:2px}.pos-shell button:disabled{opacity:.45;cursor:not-allowed}.pos-shell .primary,.pos-shell .secondary{display:block;width:100%;border-radius:14px;padding:14px 18px;font-weight:600;text-align:center}.pos-shell .big{min-height:54px;font-size:17px}.pos-shell .primary{background:var(--red);color:#fff}.pos-shell .primary.green{background:var(--green)}@media (prefers-color-scheme: dark){.pos-shell .primary,.pos-shell .primary.green{color:#140d0c}}.pos-shell .secondary{background:var(--card);border:1.5px solid var(--line);color:var(--ink)}.pos-shell .text-button{color:var(--red);font-weight:600;padding:8px 4px}.pos-shell .text-button.danger{color:#c62828}.pos-shell .back{justify-self:start}.pos-shell .round{width:44px;height:44px;border-radius:50%;background:color-mix(in srgb,var(--red) 10%,var(--card));color:var(--red);font-size:24px;line-height:1;display:inline-flex;align-items:center;justify-content:center}.pos-shell .pill{border:1.5px solid var(--line);border-radius:999px;padding:6px 16px;font-weight:600;color:var(--red);background:var(--card)}.pos-shell input,.pos-shell select{font:inherit;color:var(--ink);background:var(--card);width:100%;border:1.5px solid var(--line);border-radius:12px;padding:12px 14px;min-height:48px}.pos-shell input:focus,.pos-shell select:focus{outline:2px solid var(--red);outline-offset:1px;border-color:transparent}.pos-shell label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14px;color:var(--muted)}.pos-shell .search{font-size:17px}.pos-shell .amount-input{font-size:32px;font-weight:700;text-align:center}.pos-shell .switch{-moz-appearance:none;appearance:none;-webkit-appearance:none;flex-shrink:0;width:52px;height:32px;min-height:0;padding:0;border:0;border-radius:999px;background:color-mix(in srgb,var(--muted) 30%,var(--card));position:relative;cursor:pointer;transition:background .15s}.pos-shell .switch:after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0000004d;transition:transform .15s}.pos-shell .switch:checked{background:#f08a1c}.pos-shell .switch:checked:after{transform:translate(20px)}.pos-shell .toggle-row{flex-direction:row;align-items:center;justify-content:space-between;gap:16px;color:var(--ink);font-weight:400}.pos-shell .toggle-row strong{font-weight:600}.pos-shell.signin{display:flex;align-items:center;justify-content:center;padding:16px}.signin-card{width:100%;max-width:400px;display:flex;flex-direction:column;gap:14px}.signin-card h1{font-size:26px;font-weight:700}.brand-mark{width:52px;height:52px;border-radius:14px;background:var(--red);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:26px}.hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hub-tile{display:flex;flex-direction:column;justify-content:flex-end;gap:4px;min-height:120px;padding:16px;border-radius:20px;color:#fff!important;text-decoration:none!important}.hub-tile.tone-green{background:#2e8b57}.hub-tile.tone-blue{background:#2f6fd6}.hub-tile.tone-orange{background:#e0780f}.hub-tile.tone-gray{background:#5b5352}.hub-title{font-size:18px;font-weight:700}.hub-detail{font-size:13px;opacity:.9}@media (max-width: 380px){.hub-grid{grid-template-columns:1fr}.hub-tile{min-height:84px}}.training-banner{background:#f08a1c;color:#fff;border-radius:14px;padding:12px 16px;font-size:14px}.error-note{background:#fde7e7;color:#8a1010;border-radius:12px;padding:12px 14px;font-size:15px}.warn-note{background:var(--orange-bg);color:var(--orange);border-radius:12px;padding:10px 14px;font-size:14px}.ok-note{background:color-mix(in srgb,var(--green) 14%,var(--card));color:var(--green);border-radius:12px;padding:12px 14px;font-weight:600}.ok-text{color:var(--green);font-weight:600}@media (prefers-color-scheme: dark){.error-note{background:#4a1414;color:#ffb4ab}}.pos-shell .list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.pos-shell .list-row{width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px 14px;min-height:64px}.pos-shell .list-row.refunded .row-title{text-decoration:line-through;color:var(--muted)}.row-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.row-title{font-weight:600;font-size:16px}.row-side{flex-shrink:0}.chev{color:var(--muted);font-size:24px}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{font-size:12px;font-weight:600;padding:2px 8px;border-radius:999px}.chip-orange{background:#fdebd6;color:#a14a00}.chip-purple{background:#efe3f7;color:#6b2f8e}.chip-indigo{background:#e3e6fb;color:#3a3fa0}.tag{font-size:13px;font-weight:700;padding:4px 10px;border-radius:999px;white-space:nowrap}.tag-green{background:color-mix(in srgb,var(--green) 15%,var(--card));color:var(--green)}.tag-red{background:#fde7e7;color:#b3261e}.tag-orange{background:var(--orange-bg);color:var(--orange)}.tag-gray{background:color-mix(in srgb,var(--muted) 14%,var(--card));color:var(--muted)}.code-badge{flex-shrink:0;min-width:56px;text-align:center;font-weight:800;font-variant-numeric:tabular-nums;background:var(--ink);color:var(--card);border-radius:10px;padding:8px 6px;font-size:15px}.stats-row{display:flex;justify-content:space-around;gap:8px;text-align:center;padding:12px}.stats-row div{display:flex;flex-direction:column}.stats-row strong{font-size:20px;font-variant-numeric:tabular-nums}.stats-row span{font-size:12px;color:var(--muted)}.segmented{display:flex;background:color-mix(in srgb,var(--muted) 12%,var(--bg));border-radius:12px;padding:3px}.segmented button{flex:1;padding:9px 4px;border-radius:10px;font-weight:600;font-size:14px;color:var(--muted)}.segmented button.on{background:var(--card);color:var(--ink);box-shadow:0 1px 3px #0000001f}.stepper{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.stepper:last-of-type{border-bottom:0}.stepper-text{flex:1;min-width:0}.stepper-label{font-weight:600;font-size:17px}.stepper-detail{font-size:13px;color:var(--muted)}.stepper-controls{display:flex;align-items:center;gap:10px}.stepper-value{min-width:32px;text-align:center;font-size:22px;font-weight:700;font-variant-numeric:tabular-nums}.quick-adds{display:flex;gap:8px;padding:0 0 10px;border-bottom:1px solid var(--line)}.inline-field{margin-top:12px}.receipt summary{cursor:pointer;font-weight:600;color:var(--red)}.checkout-bar{position:sticky;bottom:0;display:flex;flex-direction:column;gap:10px;background:var(--card);border:1px solid var(--line);border-radius:20px;padding:16px;padding-bottom:max(16px,env(safe-area-inset-bottom));box-shadow:0 -6px 24px #00000014}.total-line{display:flex;justify-content:space-between;align-items:baseline;font-size:18px}.total-line strong{font-size:26px;font-variant-numeric:tabular-nums}.done-card{text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center;padding:32px 20px}.done-check,.paid-mark{width:72px;height:72px;border-radius:50%;background:#1f7a46;color:#fff;font-size:40px;display:flex;align-items:center;justify-content:center}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:#00000073;display:flex;align-items:flex-end;justify-content:center}.modal{width:100%;max-width:560px;max-height:92vh;overflow:auto;background:var(--bg);border-radius:22px 22px 0 0;padding:16px;padding-bottom:max(20px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px}@media (min-width: 700px){.modal-backdrop{align-items:center}.modal{border-radius:22px}}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-head h2{font-size:20px}.detail{display:flex;flex-direction:column;gap:14px}.detail-counts{display:flex;gap:10px}.detail-counts div{flex:1;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px 8px;display:flex;flex-direction:column;align-items:center}.detail-counts strong{font-size:30px;font-variant-numeric:tabular-nums}.detail-counts span{font-size:13px;color:var(--muted)}.qr-pay{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}.qr-amount{font-size:40px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-1px}.qr{background:#fff;border-radius:16px;padding:12px;width:min(260px,80vw);height:auto}.qr-placeholder{background:#fff}.waiting-dot{color:var(--muted);font-weight:600}.waiting-dot:before{content:"";display:inline-block;width:10px;height:10px;border-radius:50%;background:#f08a1c;margin-right:8px;animation:pos-pulse 1.2s ease-in-out infinite}@keyframes pos-pulse{50%{opacity:.25}}.sum-line{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}.sum-line:last-child{border-bottom:0}.sum-line small{color:var(--muted);font-size:12px;margin-left:4px}.sum-line.big{font-size:17px;font-weight:600}.recent-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.recent-row:last-child{border-bottom:0}.spinner{width:32px;height:32px;border-radius:50%;border:3px solid color-mix(in srgb,var(--red) 20%,transparent);border-top-color:var(--red);animation:pos-spin .8s linear infinite}@keyframes pos-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.spinner,.waiting-dot:before{animation-duration:3s}}.maze-page{--night: #120f14;--night-2: #1d1820;--pumpkin: #f08a1c;--pumpkin-ink: #2a1300;--bone: #f4ede4;--fog: #b9aeb8;--paid: #49c27a;min-height:100vh;background:radial-gradient(120% 60% at 50% -10%,#3a2140 0%,transparent 60%),var(--night);color:var(--bone);padding:24px 16px 40px;padding-top:max(24px,env(safe-area-inset-top))}.maze-page *{box-sizing:border-box}.maze-inner{max-width:440px;margin:0 auto;display:flex;flex-direction:column;gap:20px}.maze-head{text-align:center;display:flex;flex-direction:column;gap:6px}.maze-kicker{font-size:13px;letter-spacing:.3px;color:var(--fog)}.maze-head h1{font-size:40px;font-weight:900;letter-spacing:-1.5px;line-height:1;color:var(--pumpkin)}.maze-card{background:var(--night-2);border:1px solid #332b36;border-radius:22px;padding:20px;display:flex;flex-direction:column;gap:16px}.maze-card h2{font-size:24px;font-weight:800;letter-spacing:-.4px}.maze-card.center,.maze-note.center,.maze-lede.center{text-align:center;align-items:center}.maze-lede{font-size:17px;line-height:1.45;color:var(--bone)}.maze-note{font-size:14px;font-weight:400;color:var(--fog);line-height:1.4}.maze-field{display:flex;flex-direction:column;gap:8px;font-weight:700;font-size:15px}.maze-field input{font:inherit;font-weight:500;font-size:18px;color:var(--bone);background:var(--night);border:1.5px solid #3c3340;border-radius:14px;padding:14px 16px;min-height:54px;width:100%}.maze-field input:focus{outline:2px solid var(--pumpkin);outline-offset:1px;border-color:transparent}.maze-stepper{display:flex;align-items:center;justify-content:center;gap:28px;padding:6px 0}.maze-stepper span{font-size:48px;font-weight:900;min-width:64px;text-align:center;font-variant-numeric:tabular-nums}.maze-stepper button{width:60px;height:60px;border-radius:50%;font-size:30px;line-height:1;background:#2c2430;color:var(--pumpkin);display:inline-flex;align-items:center;justify-content:center}.maze-btn{display:block;width:100%;min-height:58px;border-radius:16px;font:inherit;font-size:18px;font-weight:800;padding:14px 18px;text-align:center}.maze-btn.primary{background:var(--pumpkin);color:var(--pumpkin-ink)}.maze-btn.ghost{background:transparent;color:var(--bone);border:1.5px solid #4a3f4e}.maze-btn:disabled{opacity:.5}.maze-btn:focus-visible,.maze-stepper button:focus-visible{outline:3px solid var(--bone);outline-offset:2px}.maze-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}.maze-error{background:#4a1414;color:#ffcfc9;border-radius:12px;padding:12px 14px;font-size:15px}.maze-training{text-align:center;font-size:13px;color:var(--pumpkin)}.maze-spinner{width:40px;height:40px;margin:40px auto;border-radius:50%;border:4px solid #3a2f3e;border-top-color:var(--pumpkin);animation:maze-spin .8s linear infinite}@keyframes maze-spin{to{transform:rotate(360deg)}}.ticket{border-radius:24px;overflow:hidden;color:var(--pumpkin-ink);filter:drop-shadow(0 18px 40px rgba(0,0,0,.5))}.ticket-top,.ticket-bottom{background:var(--bone)}.ticket-top{padding:22px 20px 18px;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}.ticket-label{font-size:13px;font-weight:700;color:#6f5e52}.ticket-code{font-size:88px;font-weight:900;letter-spacing:-4px;line-height:.95;font-variant-numeric:tabular-nums}.ticket-name{font-size:22px;font-weight:700;word-break:break-word}.ticket-perf{height:22px;background:radial-gradient(circle at 0 50%,var(--night) 11px,transparent 12px),radial-gradient(circle at 100% 50%,var(--night) 11px,transparent 12px),linear-gradient(var(--bone),var(--bone));position:relative}.ticket-perf:after{content:"";position:absolute;left:22px;right:22px;top:50%;border-top:2px dashed #cdbfb1}.ticket-bottom{display:flex;padding:16px 20px 20px;gap:12px}.ticket-bottom div{flex:1;display:flex;flex-direction:column;align-items:center;text-align:center}.ticket-bottom strong{font-size:26px;font-weight:900}.ticket-bottom span{font-size:13px;color:#6f5e52}.ticket.is-paid .ticket-status{color:#1c7a43}.ticket.is-unpaid .ticket-top{background:var(--pumpkin)}.ticket.is-unpaid .ticket-label,.ticket.is-unpaid .ticket-name{color:var(--pumpkin-ink)}.maze-page.plain .maze-card{margin-top:15vh}.paid-mark{width:76px;height:76px;border-radius:50%;background:var(--paid);color:#0b2415;font-size:42px;font-weight:900;display:flex;align-items:center;justify-content:center}.paid-mark.no{background:#6b5f6e;color:var(--bone)}.maze-sign{min-height:100vh;background:#e9e4dd;display:flex;flex-direction:column;align-items:center;padding:24px 16px;gap:16px}.sign-sheet{width:min(100%,8.5in);aspect-ratio:8.5 / 11;background:#120f14;color:#f4ede4;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:.6in .5in;text-align:center}.sign-kicker{font-size:28px;font-weight:800;color:#f08a1c}.sign-sheet h1{font-size:clamp(40px,9vw,76px);font-weight:900;letter-spacing:-2px;line-height:1}.sign-sub{font-size:clamp(18px,3.4vw,26px);color:#d8ccd6}.sign-sheet .qr{width:min(4.4in,70%);height:auto;border-radius:18px;padding:16px;background:#fff}.sign-steps{text-align:left;font-size:clamp(15px,2.6vw,20px);line-height:1.5;margin:0;padding-left:1.2em}.sign-price{font-size:clamp(16px,2.8vw,22px);font-weight:700;color:#f08a1c}.sign-url{font-size:15px;color:#b9aeb8}.sign-print{background:#120f14;color:#fff;border-radius:12px;padding:12px 22px;font-weight:700}@media print{@page{size:letter;margin:0}.maze-sign{background:none;padding:0}.sign-sheet{width:8.5in;height:11in;border-radius:0;-webkit-print-color-adjust:exact;print-color-adjust:exact}.sign-print{display:none}}@media (prefers-reduced-motion: reduce){.maze-spinner{animation-duration:3s}}.app-container{min-height:100vh;display:flex;align-items:center;justify-content:center;width:100%;background:linear-gradient(135deg,#667eea,#764ba2);padding:1rem}.error-container{text-align:center;padding:2rem;max-width:500px;width:100%;background:#fff;border-radius:1rem;box-shadow:0 10px 30px #00000026}.error-container h1{color:#dc3545;font-size:1.75rem;margin-bottom:1rem;line-height:1.3}.error-container p{color:#666;font-size:1rem;line-height:1.5;margin-bottom:1rem}.error-container p:last-child{margin-bottom:0}@media (max-width: 480px){.app-container{padding:1rem .5rem .5rem;align-items:flex-start}.error-container{padding:1.25rem;border-radius:.5rem}.error-container h1{font-size:1.5rem}.error-container p{font-size:.95rem}}.get-app{text-align:center;padding:3rem 1.5rem}.get-app h1{margin-bottom:.5rem}.get-app-links{margin-top:1.5rem;font-size:.9rem;opacity:.8}.get-app-links a{color:#667eea;font-weight:600}
