.design-setup{margin:0 12px 10px;padding:12px 14px;border:1px solid var(--border-color,#2c3d52);border-radius:10px;background:linear-gradient(180deg,rgba(18,32,48,.98),rgba(11,23,36,.98));box-shadow:0 6px 18px rgba(0,0,0,.18)}
.design-setup-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:10px}.design-setup-head>div:first-child{display:flex;flex-direction:column;gap:3px}.design-setup-head strong{font-size:13px;color:var(--text-primary,#e8f2fb)}.design-setup-head span{font-size:11px;color:#93a9bd}.project-actions{display:flex;gap:7px}.setup-action{border:1px solid #35506a;background:#152b3e;color:#d9eaff;border-radius:6px;padding:7px 10px;font-size:11px;cursor:pointer}.setup-action:hover{border-color:#00d9ff;background:#17354b}
.editor-preset-row{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:8px}.editor-preset{display:flex;align-items:center;gap:9px;text-align:left;background:#101f2e;color:#dbe8f3;border:1px solid #2a4054;border-radius:8px;padding:9px 10px;cursor:pointer;min-height:58px;transition:.15s ease}.editor-preset:hover{transform:translateY(-1px);border-color:#4d7795}.editor-preset.active{border-color:#00d9ff;box-shadow:0 0 0 1px rgba(0,217,255,.25),0 0 16px rgba(0,217,255,.08);background:#102a3c}.editor-preset .preset-icon{font-size:22px;width:26px;text-align:center}.editor-preset span:last-child{display:flex;flex-direction:column;gap:2px}.editor-preset b{font-size:11px}.editor-preset small{font-size:9px;color:#88a2b8}.design-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.design-meta span{font-size:10px;color:#9bb1c5;background:#0c1824;border:1px solid #24384a;border-radius:999px;padding:4px 8px}
.preview-tools{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;background:#101f2e;border:1px solid #263b4d;border-radius:8px}.preview-toggle{display:flex;align-items:center;gap:7px;color:#dceaf5;font-size:12px;white-space:nowrap}.preview-tip{font-size:10px;color:#8fa8bc;text-align:right}.stl-preview-container.illuminated #stl-preview-canvas{background:radial-gradient(circle at 50% 45%,#fffbd6 0,#d7bd71 15%,#72581e 38%,#171717 72%);filter:brightness(1.18) contrast(.92);box-shadow:inset 0 0 45px rgba(255,218,120,.28),0 0 24px rgba(255,210,100,.12)}
.stl-quality-select{width:100%;height:34px;background:#10202f;color:#e6f2fb;border:1px solid #324c61;border-radius:5px;padding:0 8px}.commercial-panel{margin-top:14px;padding:12px;border:1px solid #2a4054;border-radius:8px;background:#0e1c29}.commercial-panel-title{font-size:11px;font-weight:700;color:#dbe8f3;text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px}.print-title{margin-top:13px}.fit-readout{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.fit-readout span{display:flex;flex-direction:column;gap:2px;font-size:9px;color:#88a2b8;background:#0a1520;border-radius:6px;padding:7px}.fit-readout b{font-size:11px;color:#dcebf6}.fit-warning{font-size:10px;line-height:1.45;color:#95adbf;margin-top:8px}.fit-warning.danger{color:#ff9d9d}.print-guidance{font-size:10px;line-height:1.5;color:#9cb3c5}.print-guidance b{color:#e6f2fb}
.project-picker-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.68);z-index:100000;display:flex;align-items:center;justify-content:center;padding:18px}.project-picker{width:min(520px,95vw);max-height:75vh;background:#101e2b;border:1px solid #345069;border-radius:10px;box-shadow:0 20px 70px rgba(0,0,0,.55);overflow:hidden}.project-picker-head{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border-bottom:1px solid #293f52;color:#e6f2fb}.project-picker-head button{background:none;border:0;color:#a9bfd0;font-size:18px;cursor:pointer}.project-list{display:flex;flex-direction:column;gap:7px;padding:12px;overflow:auto;max-height:60vh}.project-card{display:flex;flex-direction:column;gap:3px;text-align:left;border:1px solid #2b4255;background:#0d1925;color:#dceaf5;border-radius:7px;padding:10px 12px;cursor:pointer}.project-card:hover{border-color:#00d9ff}.project-card small{color:#849daf}.empty-projects{padding:20px;text-align:center;color:#8fa7ba;font-size:12px}.lithobulb-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:200000;background:#102b3c;color:#e9f7ff;border:1px solid #00bddd;border-radius:999px;padding:9px 15px;font-size:11px;box-shadow:0 10px 30px rgba(0,0,0,.35);transition:.18s ease}.lithobulb-toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:900px){.editor-preset-row{grid-template-columns:repeat(2,minmax(120px,1fr))}.design-setup-head{align-items:flex-start;flex-direction:column}.project-actions{width:100%}.setup-action{flex:1}.fit-readout{grid-template-columns:1fr}.preview-tools{align-items:flex-start;flex-direction:column}.preview-tip{text-align:left}}

/* Account / commercial library */
.account-button{display:flex!important;align-items:center;gap:8px}.account-dot{width:8px;height:8px;border-radius:50%;background:#53d48b;box-shadow:0 0 12px rgba(83,212,139,.6)}.credit-pill{padding:3px 8px;border-radius:999px;background:rgba(83,212,139,.12);color:#79e7a7;font-size:11px;font-weight:700}.hidden{display:none!important}.account-drawer{position:fixed;inset:0;z-index:12000;display:flex;justify-content:flex-end}.account-backdrop{position:absolute;inset:0;background:rgba(5,7,10,.72);backdrop-filter:blur(5px)}.account-panel{position:relative;width:min(520px,100%);height:100%;overflow:auto;background:#101319;border-left:1px solid #2a303a;box-shadow:-24px 0 60px rgba(0,0,0,.45);padding:22px;color:#eef2f7}.account-panel-head{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #262d36;padding-bottom:18px}.account-panel-head small{font-size:10px;letter-spacing:.18em;color:#7f8b98}.account-panel-head h2{margin:4px 0 0;font-size:24px}.account-close{border:0;background:#1b2028;color:#cdd4dc;border-radius:9px;width:38px;height:38px;cursor:pointer}.account-signed-out{text-align:center;padding:70px 26px}.account-hero-icon{font-size:56px;color:#7ce8a9}.account-signed-out h3{font-size:25px;margin:15px 0 8px}.account-signed-out p{color:#aab4c0;line-height:1.55;max-width:380px;margin:0 auto 24px}.account-primary,.account-secondary{border:0;border-radius:10px;padding:12px 18px;font-weight:800;cursor:pointer}.account-primary{background:#67dc98;color:#07120c}.account-secondary{background:#1d232c;color:#d5dce5}.account-signed-out small{display:block;margin-top:15px;color:#74808d}.account-summary-card{display:grid;grid-template-columns:1fr auto;gap:14px;margin:22px 0;padding:17px;background:#171c23;border:1px solid #29323d;border-radius:14px}.account-summary-card span,.section-title small,.model-info span,.model-info small{display:block;color:#8e9aa8;font-size:12px}.account-summary-card b{display:block;margin-top:5px;word-break:break-all}.credit-balance{text-align:right}.credit-balance strong{font-size:34px;color:#78e7a6;line-height:1}.credit-store,.model-library{margin-top:25px}.section-title{display:flex;justify-content:space-between;gap:12px;align-items:end;margin-bottom:12px}.section-title b{font-size:15px}.section-title small{margin-top:4px}.credit-pack-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.credit-pack{position:relative;text-align:left;background:#171c23;color:#eef2f7;border:1px solid #2c3541;border-radius:12px;padding:15px 12px;cursor:pointer}.credit-pack:hover{border-color:#64d997}.credit-pack.featured{border-color:#53d48b;background:linear-gradient(180deg,rgba(83,212,139,.1),#171c23)}.credit-pack b,.credit-pack strong,.credit-pack small{display:block}.credit-pack strong{font-size:20px;margin:8px 0 3px}.credit-pack small{color:#8793a0}.pack-tag{position:absolute;top:-8px;right:8px;background:#53d48b;color:#07120c;font-size:9px;font-weight:900;padding:3px 7px;border-radius:999px}.payment-status{min-height:19px;margin-top:10px;color:#92a0af;font-size:12px}.model-list{display:grid;gap:8px}.model-card{display:grid;grid-template-columns:48px 1fr auto;gap:11px;align-items:center;background:#161b22;border:1px solid #29313b;padding:10px;border-radius:11px}.model-thumb{height:48px;display:grid;place-items:center;background:#222a34;border-radius:8px;color:#70dea0;font-size:11px;font-weight:900}.model-info{min-width:0}.model-info b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.model-info span{margin-top:2px}.model-info small{margin-top:3px}.model-download,.tiny-button{background:#202732;border:1px solid #35404d;color:#dce4ec;border-radius:8px;padding:8px 10px;cursor:pointer;font-weight:700}.model-download:hover,.tiny-button:hover{border-color:#5edc93}.empty-library{padding:28px;text-align:center;border:1px dashed #303946;border-radius:12px;color:#a4afbb}.empty-library span{display:block;font-size:12px;margin-top:5px}.account-footer{border-top:1px solid #262d36;margin-top:26px;padding-top:18px}@media(max-width:650px){.credit-pack-grid{grid-template-columns:1fr}.model-card{grid-template-columns:42px 1fr}.model-download{grid-column:1/-1}.account-panel{padding:16px}}
.auth-modal{position:fixed;inset:0;z-index:13000;display:grid;place-items:center}.auth-backdrop{position:absolute;inset:0;background:rgba(3,5,8,.78);backdrop-filter:blur(6px)}.auth-card{position:relative;width:min(430px,calc(100% - 30px));background:#12171e;border:1px solid #2e3742;border-radius:16px;padding:28px;box-shadow:0 25px 80px rgba(0,0,0,.55);color:#eef2f7}.auth-x{position:absolute;right:15px;top:15px;border:0;background:#202731;color:#cbd3dc;width:34px;height:34px;border-radius:8px;cursor:pointer}.auth-brand{font-size:11px;letter-spacing:.17em;color:#68df99;font-weight:900}.auth-card h2{margin:7px 0}.auth-card>p{margin:0 0 18px;color:#99a5b2}.auth-card label{display:block;font-size:12px;color:#aab4bf;margin:12px 0}.auth-card input{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:12px;border-radius:9px;border:1px solid #313b47;background:#0d1116;color:#eef2f7}.auth-submit{width:100%;margin-top:8px}.auth-message{min-height:20px;color:#91ddaF;font-size:12px;margin-top:10px}.auth-links{display:flex;justify-content:space-between;margin-top:12px}.auth-links button{border:0;background:none;color:#96a5b4;text-decoration:underline;cursor:pointer;font-size:12px}

.lb-layout-card{grid-template-columns:72px 1fr auto}
.lb-layout-thumb{width:72px;height:50px;object-fit:cover;background:#f5f5f5;border-radius:6px}
.lb-layout-card a{text-decoration:none;text-align:center}
@media(max-width:500px){.lb-layout-card{grid-template-columns:60px 1fr auto}.lb-layout-thumb{width:60px}}

/* Saved-layout controls: independent open and delete targets, no nested buttons. */
.lb-project-row{display:flex;align-items:stretch;gap:7px;min-width:0}
.lb-project-row .lb-project-card{display:flex;flex:1;min-width:0;flex-direction:row;align-items:center;gap:10px}
.lb-project-card img{width:72px;height:48px;flex:0 0 72px;object-fit:cover;border-radius:5px;background:#fff}
.lb-project-card span{display:flex;flex-direction:column;gap:3px;min-width:0}
.lb-project-card b,.lb-project-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lb-project-delete,.lb-layout-delete{display:grid;place-items:center;border:1px solid #42566a;border-radius:7px;background:#1b2d3e;color:#c7dae7;cursor:pointer;font-size:20px;line-height:1;flex:0 0 36px;width:36px;min-height:36px}
.lb-project-delete:hover,.lb-layout-delete:hover{border-color:#ff9090;background:#492731;color:#ffe0e0}
.lb-project-delete:disabled,.lb-layout-delete:disabled{opacity:.5;cursor:wait}
.lb-layout-actions{display:flex;align-items:center;gap:6px}
.lb-layout-actions .model-download{white-space:nowrap}
.lb-save-dialog{max-width:480px}
.lb-save-dialog-body{display:flex;flex-direction:column;gap:11px;padding:16px}
.lb-save-dialog-body p{margin:0 0 4px;font-size:12px;color:#aac0d2;line-height:1.5}
.lb-save-dialog-body label{font-size:11px;color:#a5bdce}
.lb-save-dialog-body input{width:100%;border:1px solid #46647c;border-radius:7px;background:#0c1927;color:#eaf5fc;padding:10px;font-size:13px}
.lb-save-option{border:1px solid #38627c;border-radius:8px;background:#163348;color:#e4f5ff;text-align:left;padding:11px 12px;cursor:pointer}
.lb-save-option b,.lb-save-option small{display:block}
.lb-save-option small{font-size:11px;color:#abc5d5;margin-top:3px}
.lb-save-option:hover{border-color:#30dced;background:#1b435a}
.lb-save-option.lb-save-new{border-color:#2c8293}
.lb-save-cancel{align-self:flex-end;background:transparent;border:0;color:#adbfcc;padding:5px 8px;cursor:pointer}
@media(max-width:500px){.lb-project-card img{width:54px;flex-basis:54px}.lb-layout-actions{gap:4px}.lb-layout-delete{width:31px;flex-basis:31px}}

/* Persistent STL transfer status: the old auto-dismiss toast hid long uploads. */
#lb-stl-transfer-status{display:block;margin:10px 16px 8px;padding:11px 13px;border:1px solid #3a667a;border-radius:8px;background:#102b3a;color:#d3ecf5;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
#lb-stl-transfer-status[data-mode="hint"]{background:#122636;border-color:#304a62;color:#a9c3d6}
#lb-stl-transfer-status[data-mode="busy"]{background:#102f3d;border-color:#37b4cb;color:#d6f5fa}
#lb-stl-transfer-status[data-mode="done"]{background:#15352e;border-color:#4abf90;color:#d0f8df}
#lb-stl-transfer-status[data-mode="error"]{background:#3c202b;border-color:#cb6275;color:#ffe1e5}
/* A moving activity bar remains visible while the browser builds an exact mesh;
   determinate stages display measured triangle/upload completion instead. */
#lb-stl-transfer-status{position:relative;padding-bottom:23px}
#lb-stl-transfer-status::after{content:"";position:absolute;left:13px;right:13px;bottom:8px;height:5px;border-radius:999px;background:rgba(166,217,229,.17)}
#lb-stl-transfer-status::before{content:"";position:absolute;z-index:1;left:13px;bottom:8px;height:5px;max-width:calc(100% - 26px);border-radius:999px;background:#48dfbb;box-shadow:0 0 10px rgba(72,223,187,.25)}
#lb-stl-transfer-status[data-mode="busy"][data-progress="determinate"]::before{width:var(--stl-progress,0%)}
#lb-stl-transfer-status[data-mode="busy"][data-progress="indeterminate"]::before{width:33%;animation:lb-stl-activity 1.35s ease-in-out infinite alternate}
#lb-stl-transfer-status[data-mode="hint"]::before{width:0}
#lb-stl-transfer-status[data-mode="done"]::before{width:calc(100% - 26px)}
#lb-stl-transfer-status[data-mode="error"]::before{width:calc(100% - 26px);background:#e18b92}
@keyframes lb-stl-activity{from{left:13px}to{left:calc(67% - 13px)}}
@media(prefers-reduced-motion:reduce){#lb-stl-transfer-status[data-progress="indeterminate"]::before{animation:none;width:33%}}


/* Signed-in referral promotion and private owner shortcut. */
.owner-dashboard-link{display:inline-flex;align-items:center;margin-top:8px;padding:7px 10px;background:#164b56;color:#65ebf4;border:1px solid #34899b;border-radius:8px;font-weight:760;font-size:11px;text-decoration:none}
.owner-dashboard-link:hover{border-color:#6ef6ff;color:#f3ffff}
.share-rewards{margin-top:22px;padding:15px;background:#10283a;border:1px solid #315970;border-radius:12px;color:#eaf6fc}
.share-rewards .section-title b{font-size:15px}
.share-rewards .section-title small{display:block;margin-top:4px;color:#9fc2d4;font-size:11px;line-height:1.5}
.share-link-row{display:flex;align-items:center;gap:7px;margin:12px 0 10px;min-width:0}
.share-link-row input{flex:1;min-width:0;border:1px solid #40677a;border-radius:8px;padding:9px 10px;background:#091b29;color:#c7f4fc;font:12px/1.3 system-ui}
.share-link-row button{white-space:nowrap}
.share-network-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.share-network-buttons button{padding:9px;border-radius:8px;border:1px solid #376f83;background:#174055;color:#d9f7ff;font-weight:700;cursor:pointer}
.share-network-buttons button:hover{border-color:#48dce9;background:#20566c}
.share-reward-status{margin:11px 0 4px;font-size:11px;line-height:1.5;color:#70e6c9}
.share-terms{display:block;color:#8baec2;font-size:10px;line-height:1.5}
@media(max-width:420px){.share-link-row{flex-direction:column;align-items:stretch}.share-network-buttons button{font-size:11px}}

/* A selected price must remain visible while authentication is required. */
.account-signed-out .account-pending-purchase:not(.hidden){display:block;margin:0 auto 16px;padding:12px 14px;max-width:400px;border:1px solid #4f96ab;border-radius:10px;background:#13374c;color:#d9f9ff;font-size:13px;font-weight:700;line-height:1.5}
.credit-pack.suggested{border-color:#4cd9ed!important;box-shadow:0 0 0 1px #4cd9ed50}

/* The verified owner can test the same paid credit options as customers. */
.credit-store .owner-purchase-note:not(.hidden){display:block;margin:0 0 13px;padding:10px 12px;border:1px solid #407888;border-radius:8px;background:#143245;color:#aee7f2;font-size:11px;line-height:1.5}

/* Paid-model actions stay separate from the free re-download button. */
.lb-model-actions{display:flex;flex-direction:column;gap:6px;min-width:108px}
.lb-model-actions .model-download{width:100%;white-space:nowrap}
.lb-model-delete{border:1px solid #88565e;border-radius:8px;background:#39212b;color:#ffced2;padding:7px 10px;font:inherit;font-size:11px;font-weight:700;cursor:pointer}
.lb-model-delete:hover{border-color:#eb8391;background:#542c39;color:#fff}
.lb-model-delete:focus-visible{outline:2px solid #ffb1bb;outline-offset:2px}
.lb-model-delete:disabled{opacity:.6;cursor:wait}
@media(max-width:650px){.model-card>.lb-model-actions{grid-column:1/-1;width:100%;flex-direction:row}.lb-model-actions>*{flex:1}}

/* Saved STL stays visible while its paid-model library backup continues. */
#lb-stl-backup-banner{position:fixed;right:16px;bottom:16px;z-index:200050;width:min(390px,calc(100vw - 32px));box-sizing:border-box;padding:13px 15px;background:#123247;color:#e3faff;border:1px solid #46b8ce;border-radius:11px;box-shadow:0 12px 45px rgba(0,0,0,.45);font-size:12px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
#lb-stl-backup-banner[data-mode="done"]{background:#153c2e;border-color:#53dca0;color:#e2ffe9}
#lb-stl-backup-banner[data-mode="error"]{background:#452630;border-color:#f08d9b;color:#fff0f1}
.lb-stl-backup-retry{display:block;width:100%;margin-top:9px;padding:9px 11px;border:1px solid #88d7ef;border-radius:7px;background:#1a4859;color:#e3ffff;font-weight:800;cursor:pointer;text-align:center}
.lb-stl-backup-retry:hover{filter:brightness(1.15)}
#lb-stl-transfer-status .lb-stl-backup-retry{width:auto}
