:root{color-scheme:dark;--bg:#100e19;--card:#1c1929;--line:#353044;--fg:#f6f1fc;--muted:#b5acc5;--accent:#d9ff62;--accent-text:#161a0a;--pink:#ff91c9;--error:#ffafaa;--ok:#b5f6c4;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 10% 0%,#312044 0%,transparent 45%),var(--bg);color:var(--fg);font-size:15px;min-height:100vh}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a.btn{cursor:pointer;border:1px solid var(--line);border-radius:10px;padding:12px 16px;background:#2b2638;color:var(--fg);font-weight:650;display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:8px}button:hover,a.btn:hover{border-color:var(--pink)}button:disabled{cursor:not-allowed;opacity:.45}button.primary,a.primary{background:var(--accent);color:var(--accent-text);border-color:var(--accent);font-weight:800}input,select,textarea{width:100%;border:1px solid #4a425b;border-radius:9px;background:#14111f;color:var(--fg);padding:12px;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:1px}input[type=checkbox]{width:19px;height:19px;accent-color:var(--accent);flex:none}label{display:block;font-size:13px;color:#d9d0e6;font-weight:600;margin-bottom:6px}small,.muted{color:var(--muted)}h1,h2,h3,p{margin:0}h1{font-size:clamp(36px,6vw,72px);line-height:.98;letter-spacing:-.065em}h2{font-size:24px;letter-spacing:-.035em}h3{font-size:17px}.top{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,20px);border-bottom:1px solid var(--line);background:#120f1c}.brand{display:flex;align-items:center;gap:12px;font-size:12px;letter-spacing:.12em;font-weight:750}.brand b{display:block;color:var(--muted);font-weight:500}.mark{width:42px;height:42px;background:var(--accent);color:#1e2010;border-radius:12px;font-size:29px;font-weight:950;letter-spacing:-.09em;display:grid;place-items:center;position:relative}.mark span{font-size:13px;position:absolute;right:3px;top:3px}.mode{font-size:11px;color:var(--accent);border:1px solid #4a5331;border-radius:99px;padding:8px 12px;letter-spacing:.06em;font-weight:700}.mode.demo{background:#4d3027;color:#ffd3a1;border-color:#845c3c}main{max-width:1260px;margin:auto;padding:44px 24px;min-height:calc(100vh - 150px)}footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);padding:22px max(5vw,20px);font-size:12px;color:var(--muted)}footer a{text-decoration:underline}.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,470px);gap:36px;align-items:start}.hero{position:relative;overflow:hidden;min-height:660px;padding:42px 35px;border-radius:25px;border:1px solid #554363;background:radial-gradient(ellipse at 85% 75%,#6f285c 0%,transparent 52%),radial-gradient(ellipse at 10% 15%,#5c407d 0%,transparent 50%),#20172e;display:flex;flex-direction:column;justify-content:space-between;isolation:isolate}.hero::before,.hero::after{content:"";position:absolute;border:1px solid #bc8ed34a;border-radius:50%;width:420px;height:420px;right:-150px;bottom:-180px;z-index:-1;box-shadow:0 0 0 30px #cc76b315,0 0 0 60px #cc76b30a}.hero::after{width:220px;height:220px;top:28px;right:-100px;bottom:auto}.overline{font-size:11px;letter-spacing:.2em;text-transform:uppercase;font-weight:800;color:var(--pink)}.hero h1{font-size:clamp(55px,7vw,105px);margin:20px 0}.hero h1 em{font-style:normal;color:var(--accent)}.hero p{font-size:17px;line-height:1.6;color:#d9c8e8;max-width:410px}.hero-bottom{border-top:1px solid #8b6e9d70;padding-top:24px;display:grid;gap:15px}.hero-bottom span{display:block;font-size:12px;color:#c6afda;margin-bottom:5px}.hero-bottom strong{font-size:17px}.panel{border:1px solid var(--line);border-radius:17px;padding:25px;background:var(--card);min-width:0}.panel .overline{margin-bottom:8px}.panel h2{margin-bottom:8px}.intro{color:var(--muted);line-height:1.5;font-size:13px;margin-bottom:24px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{min-width:0}.wide{grid-column:1/-1}.field small{font-size:11px;line-height:1.4;display:block;margin-top:5px}.section{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.price{display:flex;justify-content:space-between;align-items:center;gap:12px}.price strong{font-size:24px;color:var(--accent);letter-spacing:-.04em}.detail{display:flex;justify-content:space-between;gap:10px;color:var(--muted);margin:10px 0;font-size:13px}.terms{max-height:110px;overflow:auto;background:#14111f;border:1px solid var(--line);border-radius:9px;padding:12px;white-space:pre-wrap;font-size:12px;line-height:1.6;color:var(--muted)}.accept{display:flex;align-items:start;gap:10px;font-size:12px;line-height:1.5;margin:14px 0}.full{width:100%}.notice{padding:12px 14px;margin:14px 0;border:1px solid #7b584f;background:#3a272b;border-radius:9px;color:var(--error);font-size:13px;line-height:1.5}.notice:empty{display:none}.notice.good{background:#1e382a;border-color:#477652;color:var(--ok)}.info{padding:12px;border-radius:9px;border:1px solid var(--line);font-size:12px;line-height:1.55;color:var(--muted);background:#15121f;margin-top:14px}.stack{display:grid;gap:16px}.center{max-width:660px;margin:auto}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.stat{border:1px solid var(--line);border-radius:12px;background:var(--card);padding:18px}.stat small{display:block;margin-bottom:10px;font-size:12px}.stat strong{font-size:clamp(20px,2.3vw,32px);color:var(--accent);letter-spacing:-.04em}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.tabs button.active{background:var(--accent);color:#161a0a}.table-wrap{overflow:auto;max-height:58vh;border:1px solid var(--line);border-radius:10px;margin-top:16px}table{border-collapse:collapse;width:100%;font-size:13px;white-space:nowrap;text-align:left}th,td{padding:13px 12px;border-bottom:1px solid var(--line)}th{position:sticky;top:0;background:#2a2438;color:#c6b8d7;font-size:11px;letter-spacing:.04em;text-transform:uppercase}td button{font-size:12px;padding:7px 10px}.state{font-size:11px;font-weight:700;padding:5px 8px;border-radius:20px;border:1px solid var(--line)}.state.PAID{color:var(--ok);background:#203c2e}.state.REVIEW,.state.CREATING{color:#ffcf96;background:#442d24}.ticket{background:white;color:#171222;border:2px solid #d0c5df;border-radius:14px;padding:20px;text-align:center;break-inside:avoid}.ticket img{width:180px;height:180px;display:block;margin:12px auto}.ticket small{color:#514c60}.ticket code{overflow-wrap:anywhere;font-size:10px}.tickets{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.loading{text-align:center;color:var(--muted);padding:70px}.big{font-size:40px;letter-spacing:-.04em;color:var(--accent)}.danger{color:var(--error)}.status-card{padding:22px;border-radius:12px;border:1px solid var(--line);background:#15121f}.small-btn{font-size:12px;padding:7px 10px}#app .admin-title{font-size:38px;line-height:1.15}.tools{display:grid;grid-template-columns:minmax(200px,1fr) 180px auto;gap:10px;align-items:end}.split{display:grid;grid-template-columns:1fr 1fr;gap:20px}textarea{resize:vertical;min-height:100px}@media(max-width:850px){main{padding:20px 14px}.layout{grid-template-columns:1fr;gap:14px}.hero{min-height:300px;padding:25px}.hero h1{font-size:clamp(46px,11vw,80px)}.hero p{font-size:14px}.hero-bottom{grid-template-columns:1fr 1fr;margin-top:22px}.panel{padding:20px}.stats{grid-template-columns:1fr 1fr}.split{grid-template-columns:1fr}.tools{grid-template-columns:1fr 1fr}.tools button{grid-column:1/-1}.brand{font-size:11px}.mode{font-size:9px}.top{height:63px}}@media(max-width:390px){.fields{grid-template-columns:1fr}.hero-bottom{grid-template-columns:1fr}.tools{grid-template-columns:1fr}}@media print{body{background:white;color:black}.top,footer,.no-print,.mode{display:none!important}main{padding:0;max-width:none}.panel{background:white;color:black;border:0}.tickets{display:block}.ticket{max-width:340px;margin:0 auto 20px;page-break-inside:avoid}.ticket img{width:200px;height:200px}.muted{color:#444}}
.stage-grid,.tier-admin{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.stage{background:#15121f;border:1px solid #544568;border-radius:10px;padding:12px;display:grid;gap:7px;min-width:0}.stage span{font-size:11px;line-height:1.4;color:var(--pink);font-weight:700}.stage strong{font-size:15px;color:var(--accent);overflow-wrap:anywhere}.stage small{font-size:11px;line-height:1.4}.stage.sold-out{opacity:.65}.tier-admin .stage strong{font-size:21px}.stats{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}#breakdown{padding:3px 10px;background:#15121f;border-radius:7px;margin:12px 0}#breakdown strong{white-space:nowrap}@media(max-width:460px){.stage-grid{grid-template-columns:1fr}.stage-grid .stage{grid-template-columns:1fr auto;gap:4px}.stage-grid .stage small{grid-column:1/-1}.tier-admin{grid-template-columns:1fr}}

/* v0.2.2: show only the price stages needed to cover a maximum purchase. */
.stage-grid.stage-count-1{grid-template-columns:1fr}.stage-grid.stage-count-2{grid-template-columns:repeat(2,minmax(0,1fr))}.stage-grid .stage{gap:7px}.stage-grid .best-stage{border-color:#d9ff62;background:#20251c}.stage-grid .best-stage strong{font-size:23px}.stage-grid .stage span{font-size:12px}.stage-grid .stage small{font-size:12px}.public-copy{white-space:pre-wrap;overflow-wrap:anywhere}.demo-fixed{font-weight:700;color:#ffd3a1;margin-top:5px}.contact-line{display:block;margin-top:5px;overflow-wrap:anywhere}.hero-bottom:has(.venue-photo-box){grid-template-columns:1fr 1fr;gap:14px 20px;align-items:start}.hero-bottom .venue-photo-box{grid-column:2;grid-row:1/span 4;align-self:stretch}.venue-photo{display:block;width:100%;height:100%;max-height:290px;object-fit:cover;border-radius:12px;border:1px solid #8b6e9d70}.photo-preview{max-width:420px;margin:12px 0}.photo-preview .venue-photo{height:auto;object-fit:contain}.photo-actions{margin:12px 0}.photo-actions input{flex:1;min-width:200px;max-width:420px}.photo-actions button{white-space:nowrap}@media(max-width:850px){.hero-bottom:has(.venue-photo-box){grid-template-columns:1fr 1fr}.hero-bottom .venue-photo-box{grid-column:1/-1;grid-row:auto}.venue-photo{max-height:260px;object-fit:cover}}@media(max-width:460px){.stage-grid.stage-count-2,.stage-grid.stage-count-3{grid-template-columns:1fr}.stage-grid .stage{grid-template-columns:1fr auto}.stage-grid .stage small{grid-column:1/-1}.photo-actions input{min-width:0;max-width:none;flex-basis:100%}}

/* v0.2.3: buyer-facing promotion labels, reference price and payment copy. */
.stage-grid .offer-percent{color:var(--accent);font-size:22px;line-height:1.15;letter-spacing:-.03em}.stage-grid .offer-normal{color:var(--muted);font-size:12px}.stage-grid .stage strong{font-size:21px}.stage-grid .stage small{line-height:1.4}#paymentNotice:empty{display:none}#paymentNotice>.info{margin-top:0}#paymentNotice .demo-fixed:first-child{margin-top:0}
@media(max-width:460px){.stage-grid .stage{grid-template-columns:minmax(0,1fr) auto;align-items:center}.stage-grid .stage span{grid-column:1;grid-row:1}.stage-grid .offer-percent{grid-column:1;grid-row:2}.stage-grid .offer-normal{grid-column:2;grid-row:1;text-align:right}.stage-grid .stage strong{grid-column:2;grid-row:2;text-align:right}.stage-grid .stage small{grid-column:1/-1;grid-row:3}.stage-grid .stage:not(:has(.offer-percent)) strong{grid-row:1}.stage-grid .stage:not(:has(.offer-percent)) small{grid-row:2}}

/* v0.2.4: purchase recovery and mobile access */
.recent-orders{border:1px solid #685d82;border-radius:12px;background:#181423;padding:14px;margin:12px 0 18px}.recent-orders h3{font-size:16px;margin-bottom:6px}.recent-orders .intro{margin-bottom:8px}.recent-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}.recent-row small{display:block;margin-top:5px;font-size:11px}.recent-row .btn{font-size:12px;padding:9px 12px}.recent-orders .small-btn{margin-top:10px}.scan-valid{background:#16372b;border-color:#4a9a73;color:#b5f6c4}.scan-used{background:#3a272b;border-color:#bd6666;color:#ffafaa}.scan-valid p,.scan-used p{line-height:1.5}.scan-valid h2,.scan-used h2{font-size:clamp(21px,5vw,30px)}

/* v0.2.5: secure recovery and camera */
.recovery-box{margin:14px 0 18px;padding:12px 15px;border:1px solid #67547d;border-radius:12px;background:#211c30}.recovery-box summary{cursor:pointer;color:#d9ff62;font-weight:700}.recovery-box small{display:block;color:var(--muted,#c9bddb);line-height:1.45}.scanner{border:1px solid #514263;padding:14px;border-radius:12px;background:#211c30}.scanner .row{flex-wrap:wrap}.scan-video{display:block;width:100%;max-height:380px;object-fit:contain;background:#09080c;border-radius:9px}.scan-video[hidden],.scanner [hidden]{display:none!important}.scanner input[type=file]{max-width:100%;font-size:.85rem}.scanner small{line-height:1.45}.scanner button{flex:1} @media(max-width:520px){.scanner .row{display:flex;gap:8px}.scanner{padding:11px}}
/* v0.2.6: print format controls; the PDF determines actual paper dimensions. */
.print-tools{align-items:flex-end;flex-wrap:wrap;gap:10px;margin:12px 0}.print-paper{min-width:150px;max-width:100%;display:flex;flex-direction:column;gap:4px}.print-paper label{font-size:.75rem}.print-paper select{width:auto;min-height:38px}.print-tools small{flex:1 1 200px;line-height:1.5}

/* v0.2.7: application-owned confirmations and scanner aiming guide. */
.app-dialog{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:0;border:1px solid #665579;border-radius:19px;background:#241d31;color:var(--fg);box-shadow:0 24px 90px #05030bb0;margin:auto}.app-dialog::backdrop{background:#080610ba;backdrop-filter:blur(3px)}.dialog-inner{padding:24px}.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.dialog-symbol{display:grid;place-items:center;width:43px;height:43px;border:1px solid #657b3b;border-radius:13px;background:#333d24;color:var(--accent);font-size:23px;font-weight:800}.dialog-symbol.warn{background:#483527;color:#ffd3a1;border-color:#806047}.dialog-close{font-size:22px;width:36px;height:36px;padding:0;background:transparent;border-color:transparent;color:var(--muted)}.dialog-inner h2{font-size:23px;margin-bottom:10px}.dialog-body{line-height:1.6;color:#d6cce3;margin:0 0 18px;white-space:pre-wrap;overflow-wrap:anywhere}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px;flex-wrap:wrap}.dialog-actions button{min-width:110px}.dialog-copy-status{display:block;margin-top:8px;line-height:1.4}.scan-viewport{position:relative;overflow:hidden;border-radius:10px;background:#09080c}.scan-viewport[hidden]{display:none!important}.scan-guide{position:absolute;pointer-events:none;inset:0;display:grid;place-items:center}.scan-guide::before{content:"";width:min(66%,240px);aspect-ratio:1;border:3px solid var(--accent);border-radius:14px;box-shadow:0 0 0 500px #0004}.mail-stats{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));margin:15px 0}.mail-stats .stat strong{font-size:23px}@media(max-width:430px){.dialog-inner{padding:19px}.dialog-actions button{flex:1;min-width:0;padding:12px 9px}.app-dialog{width:calc(100vw - 24px)}}

/* v0.2.8: quantity offer and hidden summary row */
.quantity-offer{margin:14px 0;padding:15px 16px;border:1px solid #a9cc52;border-radius:12px;background:linear-gradient(120deg,#28213a,#252b20)}.quantity-offer span{display:block;font-size:.72rem;letter-spacing:.1em;color:#f9a1ce;font-weight:800}.quantity-offer strong{display:block;font-size:1.6rem;line-height:1.2;color:#d9ff62;margin:5px 0}.quantity-offer p{margin:4px 0 0;color:#d7cde1;font-size:.85rem;line-height:1.5}.detail[hidden]{display:none!important}

/* v0.3.0 - Keep the admin frame fixed, scroll only the active workspace. */
.stage-fields{min-width:0;border:1px solid var(--line);border-radius:12px;padding:15px;margin:0}.stage-fields legend{padding:0 8px;font-weight:700;color:var(--muted);font-size:13px}.stage-fields[hidden],#disableStages[hidden]{display:none!important}.stage-history{font-size:12px;line-height:1.5}.strategy-box .intro{margin:8px 0 12px}.single-tier{grid-template-columns:repeat(2,minmax(0,1fr))}.single-tier .stage strong{overflow-wrap:anywhere}
@media screen and (min-width:850px) and (min-height:500px){
 body.admin-fit{height:100vh;height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
 body.admin-fit>.top{flex:none;height:60px}
 body.admin-fit>footer{flex:none;padding:8px max(3vw,16px);font-size:10px;gap:6px}
 body.admin-fit #app{flex:1 1 0;min-height:0;display:flex;flex-direction:column;width:100%;max-width:1600px;margin:0 auto;padding:14px 20px 10px;gap:10px;overflow:hidden}
 .admin-fit .admin-heading{flex:none}.admin-fit #app .admin-title{font-size:29px}.admin-fit .admin-heading .overline{margin-bottom:4px}.admin-fit .admin-heading button,.admin-fit .admin-heading .btn{padding:8px 13px;font-size:13px}
 .admin-fit #app>.stats{flex:none;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0}.admin-fit #app>.stats .stat{padding:10px 12px;min-width:0}.admin-fit #app>.stats .stat small{margin-bottom:3px;font-size:11px}.admin-fit #app>.stats .stat strong{font-size:clamp(17px,1.8vw,27px);overflow-wrap:anywhere}
 .admin-fit #app>.tabs{flex:none;flex-wrap:nowrap;overflow-x:auto;gap:6px;margin:0;padding:0 0 2px}.admin-fit #app>.tabs button{flex:none;padding:9px 12px;font-size:13px;white-space:nowrap}
 .admin-fit #app>#notice{flex:none;margin:0;padding:8px 12px;max-height:65px;overflow:auto}
 .admin-fit #tab{flex:1 1 0;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding:18px;scrollbar-gutter:stable;outline:none}
 .admin-fit #tab .table-wrap{max-height:none;overflow:auto;overscroll-behavior:contain}
 .admin-fit #tab .intro{margin-bottom:12px}.admin-fit #tab .print-tools{margin:5px 0 8px}.admin-fit #tab .tier-admin{margin:8px 0 12px}.admin-fit #tab .tier-admin .stage{padding:9px 12px;gap:4px}.admin-fit #tab .tier-admin .stage strong{font-size:18px}.admin-fit #tab th{z-index:1}
}
@media screen and (min-width:1000px) and (min-height:680px){
 .admin-fit #tab[data-section="orders"]{display:flex;flex-direction:column;gap:8px;overflow:auto}
 .admin-fit #tab[data-section="orders"]>*{flex-shrink:0}
 .admin-fit #tab[data-section="orders"]>.table-wrap{flex:1 1 0;min-height:90px;margin-top:0;overflow:auto}
 .admin-fit #tab[data-section="orders"]>.info{margin:0;padding:6px 10px;font-size:11px}
 .admin-fit #tab[data-section="orders"] .intro,.admin-fit #tab[data-section="orders"] .print-tools,.admin-fit #tab[data-section="orders"] .tier-admin{margin:0}
}
@media screen and (min-width:850px) and (max-height:650px){.admin-fit>.top{height:48px}.admin-fit #app{gap:6px;padding:8px 14px}.admin-fit #app .admin-title{font-size:24px}.admin-fit #app>.stats .stat{padding:6px 9px}.admin-fit #app>.tabs button{padding:7px 10px}.admin-fit #tab{padding:12px}.admin-fit>footer{padding:4px 14px}}
@media screen and (max-width:460px){.single-tier{grid-template-columns:1fr}}
