.plate-tabs{max-width:100%;overflow-x:auto;padding:1px 1px 5px;scrollbar-width:thin}
.plate-tab{white-space:nowrap;flex:none}
.plate-canvas{width:min(100%,480px);height:auto;aspect-ratio:1;overflow:hidden;margin:10px auto 0;border:1px solid #dfe5d5;border-radius:8px;background:#f8faf4}
.plate-canvas:before{display:none}
.plate-canvas svg{display:block;width:100%;height:100%}
.bed-grid{fill:none;stroke:#e6ebdf;stroke-width:.35}
.plate-message{display:grid;place-items:center;width:100%;height:100%;padding:24px;text-align:center;color:#7b8576;font-size:12px}
.plate-colors{max-width:480px;margin:13px auto 0;gap:8px 14px}
.plate-colors span{font-size:9px}
.plate-colors i{background:var(--swatch)}
.generated-build-card{cursor:pointer}
.empty-builds{padding:24px;border:1px dashed #dfe5d5;border-radius:8px;color:#7b8576;font-size:13px;text-align:center}
.empty-builds[hidden]{display:none}
.generated-build-card .build-image{background:#fbfaf7}
.generated-build-card .build-image img{object-fit:contain;background:#fbfaf7}
.generated-build-card .build-details{padding-top:13px}
.generated-build-card .color-dots{padding:10px 0 11px}
.dialog-photo-controls{position:absolute;inset:0;pointer-events:none}
.build-dialog[data-build="generated"] .dialog-cover img{object-fit:contain;background:#fbfaf7}
.photo-arrow{position:absolute;top:50%;display:grid;place-items:center;width:27px;height:27px;padding:0;transform:translateY(-50%);border:1px solid #e8eae5;border-radius:50%;background:#ffffffed;color:#43513d;font-size:20px;line-height:1;cursor:pointer;box-shadow:0 2px 8px #20242118;pointer-events:auto}
.photo-arrow:hover{background:#fff;color:#718a39}
.photo-previous{left:10px}
.photo-next{right:10px}
.photo-counter{position:absolute;right:10px;bottom:9px;padding:4px 6px;border:1px solid #e8eae5;border-radius:4px;background:#ffffffed;color:#687265;font-size:8px;font-weight:700;letter-spacing:.3px;pointer-events:none}
.dialog-color-list{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 2px}
.dialog-color-list:empty{display:none}
.dialog-color-list>span{display:flex;align-items:center;gap:5px;padding:5px 7px;border:1px solid #edf0e9;border-radius:5px;color:#626b60;font-size:8px}
.dialog-color-list i{width:10px;height:10px;border:1px solid #00000012;border-radius:50%;background:var(--swatch)}
.dialog-color-list small{color:#9ba198}
.profile-row[hidden]{display:none}
.generated-image-placeholder{display:grid;place-items:center;color:#819e42;font:800 18px Manrope,sans-serif;letter-spacing:2px}
.generated-downloads{align-items:center}
.generated-download-links{display:grid;gap:4px;justify-items:end}
.generated-download-links a{white-space:nowrap}
.brickset-gallery{margin-top:14px;padding-top:12px;border-top:1px solid #e7e9e2}.brickset-gallery-title{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#687365;margin-bottom:8px}.brickset-gallery-rail{display:flex;gap:8px;overflow-x:auto;padding:1px 1px 7px}.brickset-gallery-rail a{display:block;flex:0 0 92px;height:68px;border-radius:7px;overflow:hidden;background:#f0f1ec}.brickset-gallery-rail img{width:100%;height:100%;object-fit:cover}.image-credit{display:block;margin-top:2px;color:#858b80;font-size:10px}.export-note{font-size:12px;line-height:1.45;color:#765a2a;background:#fff8e8;padding:9px 11px;border-radius:7px;margin:12px 0 0}
.dialog-cover img{cursor:zoom-in}
dialog.image-lightbox{box-sizing:border-box;width:85vw;max-width:85vw;max-height:85vh;padding:34px 16px 16px;border:1px solid #e5e8e1;border-radius:12px;background:#fff;box-shadow:0 24px 80px #18201855;overflow:auto}
dialog.image-lightbox::backdrop{background:#182018b8;backdrop-filter:blur(3px)}
#lightbox-image{display:block;width:100%;height:auto;max-height:calc(85vh - 52px);object-fit:contain;border-radius:6px}
.lightbox-close{position:absolute;top:7px;right:8px;display:grid;place-items:center;width:27px;height:27px;padding:0;border:1px solid #e8eae5;border-radius:50%;background:#f7f8f5;color:#43513d;font-size:20px;line-height:1;cursor:pointer}
.lightbox-close:hover{background:#edf1e8}

.app-shell{min-height:100vh;max-width:1440px;margin:0 auto;padding:0 44px}
.site-header{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;min-height:78px;border-bottom:1px solid var(--line);background:#f7f8f5f2;backdrop-filter:blur(12px)}
.brand{display:flex;align-items:center;gap:11px;margin:0;color:var(--ink);text-decoration:none;font:800 19px Manrope,sans-serif;letter-spacing:-1px}
.brand-logo{width:40px;height:40px;flex:none;object-fit:cover;border-radius:9px}
.brand small{display:block;margin-top:3px;color:#81877e;font:700 8px "DM Sans",sans-serif;letter-spacing:1.5px}
.workspace-nav{display:flex;align-items:center;gap:8px}
.workspace-nav a{display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border-radius:8px;color:#626b60;text-decoration:none;font-size:12px;font-weight:600;transition:background .16s,color .16s}
.workspace-nav a:hover{background:#eaf0df;color:#35442c}
.workspace-nav a:last-child{background:#edf2e3;color:#35442c}
.workspace-nav a:last-child:hover{background:#e4ebd4}
.workspace-nav span{min-width:20px;padding:2px 6px;border-radius:20px;background:#fff;color:#667747;text-align:center;font-size:10px}
.main-content{max-width:1040px;margin:0 auto;padding:0 0 30px}
.welcome-row{height:auto;min-height:188px;padding:34px 0 29px;align-items:center}
.welcome-row h1{font-size:36px;line-height:1.12}
.welcome-copy{max-width:520px;font-size:13px}
.builder-card{padding:23px 25px 19px}
.builder-heading{margin-bottom:18px}
.builder-heading .card-kicker{margin-bottom:5px}
.builder-heading h2{font-size:18px}
.builder-foot{margin-top:10px;font-size:11px}
.input-feedback{position:static;margin-top:15px;padding:12px 13px;border:1px solid #e7ebdf;border-radius:8px;background:#fbfcf9;color:#596651;font-size:11px}
.input-feedback[hidden]{display:none}
.progress-heading{display:flex;align-items:center;gap:8px;min-height:18px}
.progress-heading strong{color:#35442c;font-size:12px;font-weight:700}
.progress-elapsed{margin-left:auto;color:#8b9286;font-size:10px;font-variant-numeric:tabular-nums}
.progress-spinner{display:none;width:13px;height:13px;flex:none;border:2px solid #dce4cd;border-top-color:#819e42;border-radius:50%;animation:progress-spin .8s linear infinite}
.is-active .progress-spinner{display:block}
@keyframes progress-spin{to{transform:rotate(360deg)}}
.progress-track{height:5px;margin-top:9px;overflow:hidden;border-radius:8px;background:#e8ecdf}
.progress-track>span{display:block;height:100%;width:0;border-radius:inherit;background:#91b23c;transition:width .35s ease}
.progress-detail{margin:7px 0 0;color:#7a8375;font-size:10px;line-height:1.45}
.input-feedback.is-error{border-color:#f0ddcf;background:#fffaf7}
.is-error .progress-heading strong{color:#885c44}
.is-error .progress-track{display:none}
.input-feedback.is-ready{border-color:#dce8c8;background:#f8fbf2}
.input-feedback.is-ready .progress-heading strong{color:#536d2b}
.source-panel .primary-button:disabled{opacity:.6;cursor:wait}
.section-block{margin-top:43px;scroll-margin-top:96px}
.section-heading{margin-bottom:17px}
.section-heading h2{font-size:21px}
.build-grid{gap:18px}
.build-image{height:170px}
.page-footer{margin-top:34px;padding-top:15px;font-size:10px}
@media(max-width:820px){.app-shell{padding:0 25px}.main-content{margin:0;padding:0 0 24px}.welcome-row{min-height:165px}.welcome-row h1{font-size:33px}.build-grid{grid-template-columns:1fr 1fr}.build-image{height:150px}}
@media(max-width:560px){.app-shell{padding:0 16px}.site-header{min-height:66px}.brand{gap:8px;font-size:17px}.brand-logo{width:34px;height:34px}.workspace-nav{gap:0}.workspace-nav a{padding:9px 8px;font-size:10px}.workspace-nav a:first-child{display:none}.main-content{margin:0;padding:0 0 20px}.welcome-row{min-height:154px;padding:26px 0 22px}.welcome-row h1{font-size:30px}.welcome-copy{max-width:360px;font-size:11px}.builder-card{padding:18px 15px}.builder-heading{margin-bottom:15px}.builder-heading h2{font-size:16px}.source-panel{flex-wrap:wrap}.set-input-wrap{flex-basis:100%}.source-panel .primary-button{width:100%;height:43px}.input-feedback{margin-top:9px;padding:10px}.build-grid{grid-template-columns:1fr}.build-image{height:175px}.section-block{margin-top:32px}.page-footer{margin-top:26px}}
@media(max-width:820px){.brand>span:last-child{font-size:18px}}
@media(max-width:560px){.brand>span:last-child{font-size:16px}}
