#buildDialog{width:min(960px,96vw);max-height:92dvh;padding:0;border:1px solid #627f9880;border-radius:20px;color:#edf5ff;background:#0b1220;box-shadow:0 30px 120px #000b;font:14px system-ui;overflow:auto;overscroll-behavior:contain}#buildDialog::backdrop{background:#020610c9;backdrop-filter:blur(5px)}#buildDialog *{box-sizing:border-box}#buildDialog .buildHeader{position:sticky;top:0;background:#0b1220f5;padding:18px 22px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #324052;z-index:2}#buildDialog h2{font-size:23px;letter-spacing:-.04em;margin:0}#buildDialog h3{margin:5px 0 10px;font-size:16px}#buildDialog p{line-height:1.55;color:#abbdd0;margin:8px 0}#buildDialog button,#buildDialog input,#buildDialog textarea,#buildDialog select{font:inherit}#buildDialog button{border:1px solid #51677d;border-radius:9px;background:#18283c;color:#edf5ff;padding:10px 14px;cursor:pointer;min-height:42px}#buildDialog button.primary{background:#baf47b;color:#152618;border-color:#baf47b;font-weight:800}#buildDialog button:disabled{opacity:.42;cursor:not-allowed}#buildDialog button:focus-visible,#buildDialog input:focus-visible,#buildDialog textarea:focus-visible{outline:2px solid #9be3f6;outline-offset:2px}#buildDialog .closeBuild{border:0;font-size:25px;padding:0 10px}#buildDialog .buildBody{padding:20px 22px;display:grid;grid-template-columns:1fr 1fr;gap:20px}#buildDialog .full{grid-column:1/-1}#buildDialog .tag{display:inline-flex;gap:6px;align-items:center;border:1px solid #4e7d5b;border-radius:50px;padding:5px 9px;font-size:10px;color:#baf47b;font-weight:800;letter-spacing:.04em}#buildDialog .price{font-size:40px;font-weight:900;letter-spacing:-.06em}#buildDialog .price small{font-size:13px;color:#abbdd0;font-weight:500;letter-spacing:0}#buildDialog .buildCard{padding:15px;border:1px solid #2c4257;border-radius:12px;background:#101d2b}#buildDialog .formField{display:block;margin-top:12px;font-size:12px;color:#c1d3e6;font-weight:700}#buildDialog textarea,#buildDialog input[type=text],#buildDialog input[type=url],#buildDialog input[type=file],#buildDialog select{display:block;width:100%;margin:6px 0 10px;background:#080f1a;color:#edf5ff;border:1px solid #3a5169;border-radius:8px;padding:10px}#buildDialog textarea{min-height:115px;resize:vertical}#buildDialog .buildActions{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}#buildStatus{padding:12px 15px;background:#152a39;border-radius:9px;color:#a9e4f3!important;min-height:43px;white-space:pre-wrap;word-break:break-word}#buildDialog .models{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}#buildDialog .modelCard{border:1px solid #3d5268;border-radius:10px;overflow:hidden;background:#0b1624;padding:8px;font-size:11px}#buildDialog .modelCard.selected{border-color:#baf47b;background:#213021}#buildDialog .modelCard img{width:100%;height:95px;object-fit:contain;background:#080d15;border-radius:6px}#buildDialog .modelCard button{font-size:11px;width:100%;padding:6px;min-height:33px;margin-top:5px}#buildDialog .modelCard .placeholder{height:95px;display:grid;place-items:center;color:#a4b7c9;text-align:center}#buildPreview{height:300px;width:100%;background:radial-gradient(ellipse at center,#304453,#0a1420);border:1px solid #334d62;border-radius:12px;touch-action:none}#buildPreview canvas{width:100%!important;height:100%!important;display:block;border-radius:12px}#buildDialog .small{font-size:11px;color:#91a9be}#buildDialog .warning{padding:11px;border:1px solid #b9914b77;background:#503c182f;color:#f4d398;font-size:12px;border-radius:9px}#buildDialog .paymentDetails{word-break:break-all;background:#080f1a;padding:12px;border-radius:8px;font:12px ui-monospace,monospace;white-space:pre-wrap}#buildDialog [hidden]{display:none!important}#plotHint{position:fixed;bottom:calc(114px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:2;pointer-events:none;font:700 10px system-ui;color:#caf5b4;background:#112419dd;padding:8px 12px;border:1px solid #86d56355;border-radius:8px}@media(max-width:650px){#buildDialog .buildBody{grid-template-columns:1fr;padding:15px;gap:12px}#buildDialog .models{grid-template-columns:repeat(3,minmax(0,1fr))}#buildPreview{height:220px}#buildDialog h2{font-size:20px}}@media(max-height:550px) and (orientation:landscape){#buildPreview{height:170px}#buildDialog .buildBody{grid-template-columns:1fr 1fr}} 

#generationActivity{padding:15px;border:1px solid #80c4d1;border-radius:12px;background:#142d3b;scroll-margin-top:100px}.generationHeading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}#generationElapsed{margin-left:auto;font-size:12px;color:#bfdbeb;font-variant-numeric:tabular-nums}#generationProgress{display:block;width:100%;height:15px;margin:12px 0 6px;accent-color:#baf47b}.generationSpinner{display:none;width:18px;height:18px;flex:none;border:3px solid #678b95;border-top-color:#baf47b;border-radius:50%;animation:generation-spin 1s linear infinite}.working .generationSpinner{display:inline-block}@keyframes generation-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.generationSpinner{animation:none}}
.shellDesigner{border:1px solid #355044;border-radius:16px;padding:18px;background:linear-gradient(145deg,#15251f,#101d2b)}#buildDialog .shellIntro h3{font-size:26px;letter-spacing:-.04em;margin-top:12px}.shellChoices{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:18px 0}.shellChoices button{text-align:left;font-weight:700}.shellChoices button.selected{border-color:#baf47b!important;background:#30422d!important}.shellChoices small{display:block;font-size:10px;font-weight:400;color:#aec2b9;margin-top:6px}.shellGlyph{display:block;font-size:32px;color:#baf47b;margin-bottom:8px}.shellLayout{display:grid;grid-template-columns:1.15fr 1fr;gap:20px}.shellViewport{height:350px;touch-action:none;background:radial-gradient(ellipse at center,#475e58,#17242c);border-radius:12px;overflow:hidden}.shellViewport canvas{display:block;width:100%;height:100%}.shellColors{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.shellColors label{font-size:11px;color:#bed1c9}.shellColors input{display:block;width:100%;height:36px;margin-top:6px;border:1px solid #547062;background:transparent;border-radius:7px;padding:3px}.shellFields input:not([type]){display:block;width:100%;margin-top:6px;background:#080f1a;border:1px solid #3a5169;color:#fff;padding:10px;border-radius:8px}.shellFields input[type=range]{width:100%;accent-color:#baf47b}.billboardOption{display:block;margin-top:14px}.shellDimensions{font-size:12px;color:#baf47b!important}.shellConsent{accent-color:#baf47b}.shellPlace{display:block;margin-top:15px}.shellAck{display:block;margin:12px 0}@media(max-width:650px){.shellChoices{grid-template-columns:repeat(2,1fr)}.shellChoices button:last-child{grid-column:1/-1}.shellLayout{grid-template-columns:1fr}.shellViewport{height:280px}.shellDesigner{padding:12px}}@media(max-height:550px) and (orientation:landscape){.shellViewport{height:250px}.shellChoices{grid-template-columns:repeat(5,1fr)}.shellLayout{grid-template-columns:1fr 1fr}}

#buildingWebsite{max-width:min(420px,90vw);background:#10201d;color:#eef9f2;border:1px solid #7aa983;border-radius:16px;padding:24px;font:15px system-ui}#buildingWebsite::backdrop{background:#000a}#buildingWebsite p{overflow-wrap:anywhere;color:#b9cdbf}#buildingWebsite a,#buildingWebsite button{display:block;padding:12px 16px;border-radius:8px;margin-top:12px;background:#baf47b;color:#112419;text-decoration:none;border:0;font:inherit}#buildingWebsite button{background:#263a32;color:#fff;width:100%}

/* One task per page, with preview and navigation always in the viewport. */
#buildDialog.shellWizard{height:min(880px,96dvh);max-height:96dvh;overflow:hidden;display:flex;flex-direction:column}#buildDialog.shellWizard:not([open]){display:none}#buildDialog.shellWizard .buildHeader{flex:none;padding:10px 16px}#buildDialog.shellWizard h2{font-size:19px}#buildDialog.shellWizard .buildHeader .tag{font-size:9px;padding:3px 7px}#buildDialog.shellWizard .buildBody{display:flex;flex-direction:column;min-height:0;flex:1;padding:10px 14px;gap:6px;overflow:hidden}#buildDialog.shellWizard .shellDesigner{display:flex;flex-direction:column;min-height:0;flex:1;padding:12px;overflow:hidden}#buildDialog.shellWizard .shellIntro,#buildDialog.shellWizard .shellLayout>div>p,#buildDialog.shellWizard #buildInstructions,#buildDialog.shellWizard #generationActivity,#buildDialog.shellWizard #buildModelsSection,#buildDialog.shellWizard #buildPreviewSection,#buildDialog.shellWizard #buildFinalizeSection{display:none!important}.wizardHeading{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;align-items:center;flex:none;margin-bottom:8px}.wizardStep{font-size:10px;color:#baf47b;letter-spacing:.06em}.wizardTitle{font-size:17px}.wizardHeading progress{grid-column:1/-1;width:100%;height:4px;accent-color:#baf47b}.wizardNav{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #3b5145;padding-top:8px;margin-top:8px;flex:none}.wizardNav span{font-size:10px;color:#a8c1b2}#buildDialog.shellWizard .shellLayout{display:grid;grid-template-columns:1.1fr 1fr;gap:16px;min-height:0;flex:1;align-items:stretch}#buildDialog.shellWizard .shellLayout>div{min-height:0}#buildDialog.shellWizard .shellViewport{height:100%;min-height:100px}#buildDialog.shellWizard .shellFields{min-height:0}.wizardPage{height:100%;display:flex;flex-direction:column;justify-content:center;gap:8px;min-height:0}#buildDialog.shellWizard .shellChoices{display:grid;grid-template-columns:1fr;gap:6px;margin:0}#buildDialog.shellWizard .shellChoices button{display:grid;grid-template-columns:28px 1fr;padding:7px 10px;min-height:42px;font-size:12px;align-items:center}#buildDialog.shellWizard .shellGlyph{grid-row:1/3;font-size:24px;margin:0}#buildDialog.shellWizard .shellChoices small{margin:0;font-size:9px}#buildDialog.shellWizard .formField{margin:0}#buildDialog.shellWizard .formField input,#buildDialog.shellWizard select{margin:4px 0 0;padding:8px}#buildDialog.shellWizard .shellColors{gap:8px}#buildDialog.shellWizard .shellColors input{height:38px}#buildDialog.shellWizard .shellFields button{padding:7px 10px;min-height:36px}#buildDialog.shellWizard #buildStatus{flex:none;margin:0;min-height:25px;max-height:40px;overflow:hidden;font-size:11px;padding:5px 9px;line-height:1.3}#buildDialog.shellWizard .shellLayout.review{display:none}#buildDialog.shellWizard .shellDesigner.review .shellLayout{grid-template-columns:1fr}#buildDialog.shellWizard .shellDesigner.review .shellLayout>div:first-child{display:none}#buildDialog.shellWizard .shellTerms{font-size:11px;padding:7px;margin:0}#buildDialog.shellWizard .shellAck{margin:0;font-size:12px}#buildDialog.shellWizard .shellPlace{margin-top:0}#buildDialog.shellWizard .shellPaidHint{display:none}#buildDialog.shellWizard #buildPurchase>.price{font-size:28px}#buildDialog.shellWizard #buildPurchase>p,#buildDialog.shellWizard #buildPurchase>.tag,#buildDialog.shellWizard #buildPurchase>.formField,#buildDialog.shellWizard #restoreBuildPackage{display:none}#buildDialog.shellWizard #buildPurchase .buildActions{margin:6px 0}#buildDialog.shellWizard #xrpBuildPayment>p{display:none}#buildDialog.shellWizard #xrpBuildDetails{font-size:10px;padding:6px}#buildDialog.shellWizard #xrpBuildPayment{display:grid;grid-template-columns:1.2fr 1fr;gap:8px;align-items:center}#buildDialog.shellWizard #verifyBuildXrp{grid-column:2}#buildDialog.shellWizard #cancelBuildCheckout{font-size:11px;padding:6px;min-height:32px}#buildDialog.shellWizard .billboardOption{margin:0}
@media(max-width:650px) and (orientation:portrait){#buildDialog.shellWizard .shellLayout{grid-template-columns:1fr;grid-template-rows:minmax(100px,1fr) minmax(185px,1fr);gap:9px}#buildDialog.shellWizard .shellChoices{grid-template-columns:1fr 1fr}#buildDialog.shellWizard .shellChoices button:last-child{grid-column:1/-1}#buildDialog.shellWizard .shellDesigner.review .shellLayout{grid-template-rows:1fr}#buildDialog.shellWizard .shellColors input{height:32px}#buildDialog.shellWizard .shellDesigner{padding:9px}.wizardTitle{font-size:15px}}
@media(max-height:550px){#buildDialog.shellWizard .buildHeader{padding:5px 12px}#buildDialog.shellWizard .buildHeader .tag{display:none}#buildDialog.shellWizard h2{font-size:16px}#buildDialog.shellWizard .buildBody{padding:6px 10px;gap:4px}#buildDialog.shellWizard .shellDesigner{padding:7px}.wizardHeading{margin-bottom:4px;gap:3px 9px}.wizardTitle{font-size:14px}.wizardNav{padding-top:5px;margin-top:4px}#buildDialog.shellWizard button{min-height:32px;padding:5px 10px}#buildDialog.shellWizard .shellChoices{grid-template-columns:1fr 1fr}#buildDialog.shellWizard .shellChoices button{font-size:10px;padding:4px 7px;min-height:38px}#buildDialog.shellWizard .shellChoices button:last-child{grid-column:1/-1}#buildDialog.shellWizard .shellGlyph{font-size:20px}#buildDialog.shellWizard .wizardPage{gap:5px}#buildDialog.shellWizard .small{font-size:10px;margin:2px 0}#buildDialog.shellWizard #buildStatus{max-height:27px;font-size:10px}#buildDialog.shellWizard .shellColors input{height:28px}}
@media(max-width:650px) and (orientation:portrait){#buildDialog.shellWizard .shellLayout{grid-template-rows:minmax(85px,1fr) minmax(210px,1fr)}#buildDialog.shellWizard .shellViewport{min-height:85px}}
@media(max-height:400px) and (orientation:landscape){#buildDialog.shellWizard .shellChoices button{min-height:30px;padding:2px 6px}#buildDialog.shellWizard .shellChoices{gap:4px}#buildDialog.shellWizard .wizardPage>.small{display:none}#buildDialog.shellWizard .wizardPage[data-step="2"],#buildDialog.shellWizard .wizardPage[data-step="3"]{display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:4px}#buildDialog.shellWizard .wizardPage [data-upload]{font-size:10px;padding:4px;min-height:28px}#buildDialog.shellWizard .wizardPage[data-step="2"]>label:first-child,#buildDialog.shellWizard .wizardPage[data-step="3"]>.formField,#buildDialog.shellWizard .billboardOption{grid-column:1/-1}#buildDialog.shellWizard .wizardPage[data-step="2"]>button,#buildDialog.shellWizard .wizardPage[data-step="3"]>button{font-size:10px;min-height:27px}#buildDialog.shellWizard .wizardPage[data-step="2"] input[type=range]{margin:0}#buildDialog.shellWizard .wizardNav span{display:none}}
@media(max-height:400px) and (orientation:landscape){#buildDialog.shellWizard .shellChoices button{min-height:27px}#buildDialog.shellWizard .shellChoices small{font-size:8px}#buildDialog.shellWizard .shellChoices .shellGlyph{font-size:17px}}

#buildDialog.shellWizard{height:min(880px,var(--wizard-height,96dvh))}#buildDialog.shellWizard .shellDesigner.typing .shellLayout>div:first-child{display:none}#buildDialog.shellWizard .shellDesigner.typing .shellLayout{grid-template-columns:1fr;grid-template-rows:1fr}#buildDialog.shellWizard .shellDesigner.typing .wizardPage{min-height:0}
#buildDialog.shellWizard .shellDesigner.review .shellLayout{grid-template-rows:minmax(0,1fr)}

#buildDialog.shellWizard .wizardPage[data-step="5"]>.small{display:none}#buildDialog.shellWizard .xrpCheckout #buildPurchase>.price,#buildDialog.shellWizard .xrpCheckout #buildPurchase>.buildActions{display:none}#buildDialog.shellWizard .xrpCheckout #xrpBuildPayment{grid-template-columns:1.2fr 1fr;gap:8px}#buildDialog.shellWizard #xrpBuildDetails{grid-column:1;grid-row:1/4;word-break:break-all}#buildDialog.shellWizard #xrpBuildPayment:not(.verifying)>.formField,#buildDialog.shellWizard #xrpBuildPayment:not(.verifying)>#verifyBuildXrp{display:none}#buildDialog.shellWizard #xrpBuildPayment.verifying>#xrpBuildDetails{display:none}#buildDialog.shellWizard #xrpBuildPayment.verifying{grid-template-columns:1fr 1fr}#buildDialog.shellWizard #xrpBuildPayment.verifying>.formField{grid-column:1;grid-row:1/3}#buildDialog.shellWizard #xrpBuildPayment>#cancelBuildCheckout,#buildDialog.shellWizard #xrpBuildPayment>.wizardVerifyToggle{grid-column:2;font-size:11px;padding:6px;min-height:34px}#buildDialog.shellWizard #xrpBuildPayment #verifyBuildXrp{grid-column:2;grid-row:1}#buildDialog.shellWizard #buildPurchase>.price small{font-size:11px}#buildDialog.shellWizard #buildPurchase>.buildActions{flex-wrap:nowrap}

@media(max-height:400px) and (orientation:landscape){#buildDialog.shellWizard .wizardPage[data-step="3"]>label:has([data-field="billboardSize"]){grid-column:2;grid-row:3}#buildDialog.shellWizard .wizardPage[data-step="3"] [data-field="billboardSize"]{margin:0}#buildDialog.shellWizard .wizardPage[data-step="3"]>[data-clear="billboardImage"]{grid-column:1;grid-row:3}}
@media(max-height:650px){#buildDialog.shellWizard .wizardPage[data-step="3"]>.small{display:none}}

.catalogNav{display:flex;align-items:center;justify-content:space-between;gap:5px}.catalogNav span{font-size:10px;color:#b8cbbf}#buildDialog.shellWizard .catalogNav button{font-size:10px;min-height:28px;padding:4px 7px}#buildDialog.shellWizard .shellChoices button:nth-child(5n){grid-column:1/-1}@media(max-height:400px) and (orientation:landscape){#buildDialog.shellWizard .shellChoices{grid-template-columns:repeat(3,1fr)}#buildDialog.shellWizard .shellChoices button:nth-child(5n){grid-column:auto}#buildDialog.shellWizard .shellChoices button{display:block;font-size:9px;min-height:29px}#buildDialog.shellWizard .shellChoices .shellGlyph{display:none}#buildDialog.shellWizard .catalogNav button{min-height:24px;padding:2px 6px}}
#buildDialog.shellWizard .wizardPage[data-step="0"]{gap:4px}#buildDialog.shellWizard .wizardPage[data-step="0"] .shellChoices{gap:4px}
