/* Layout only. Shared lab-tool-theme.css owns the paper, coral, ink and purple palette. */
*{box-sizing:border-box}body{margin:0;line-height:1.55}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:var(--lab-purple)}[hidden]{display:none!important}.page{margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{text-decoration:none;display:inline-flex;align-items:center;white-space:nowrap}.lang{display:flex;gap:3px}.lang a{padding:6px 10px;text-decoration:none;font-size:13px}.hero{display:grid;grid-template-columns:1.7fr .8fr;gap:36px;align-items:center;margin-top:42px}.eyebrow{font-size:11px;font-weight:850;letter-spacing:2px;margin:0 0 12px}.hero h1{font-size:clamp(36px,4.5vw,57px);line-height:1.08;margin:0 0 19px;font-weight:850;letter-spacing:-1.9px!important}.hero h1 em{font-style:normal;color:var(--lab-purple)}.summary{font-size:16px;line-height:1.75;margin:0;max-width:700px}.trust{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.trust span{padding:4px 8px;font-size:11px;font-weight:700}.hero-art{position:relative;padding:18px 10px;transform:rotate(2deg);max-width:360px}.art-paper{background:#fffdf8;border:2px solid var(--lab-ink);box-shadow:7px 7px 0 var(--lab-ink);padding:24px 17px 20px;border-radius:4px}.art-paper p{font-size:13px;font-weight:800;margin:0 0 18px}.art-paper small{display:block;font-size:10px;margin-top:18px}.art-tag{position:absolute;right:-3px;top:3px;background:var(--lab-yellow);border:2px solid var(--lab-ink);padding:5px 8px;font-size:9px;font-weight:850;transform:rotate(-7deg)}.art-family{display:flex;gap:12px;align-items:flex-end;height:108px}.art-family>div{background:#eee6fb;border:2px solid var(--lab-ink);border-radius:3px;position:relative;display:grid;place-items:center;width:52px;height:52px}.art-family>div:nth-child(2){width:75px;height:75px}.art-family>div:nth-child(3){width:98px;height:98px}.art-family i{font-style:normal;color:var(--lab-purple);font-size:32px;line-height:1}.art-family>div:nth-child(2) i{font-size:48px;color:var(--lab-coral)}.art-family>div:nth-child(3) i{font-size:68px}.art-family b{position:absolute;bottom:2px;right:4px;font:800 8px monospace}.scope-note{border:1px solid #b8a56a;border-left:5px solid var(--lab-purple);background:#fff6d8;padding:16px 20px;margin:0 0 26px}.scope-note h2{font-size:14px;margin:0 0 7px}.scope-note p{font-size:12px;line-height:1.8;margin:7px 0;color:#494638}.panel{padding:22px;min-width:0}.section-heading{display:flex;gap:12px;align-items:center;margin:0 0 16px;font-size:17px;font-weight:850}.step{font:800 12px/1 ui-monospace,monospace;padding:7px 8px;border:1.5px solid var(--lab-ink);border-radius:3px;background:var(--lab-yellow)}.import-row{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.3fr);gap:22px}.drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:24px 12px;text-align:center;min-height:150px}.drop strong{font-size:14px}.drop small{font-size:12px;color:var(--lab-muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 12px;font-size:12px;line-height:1.35;text-decoration:none;min-height:40px}.file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.file-input:focus-visible+.btn{outline:3px solid var(--lab-purple);outline-offset:4px}.limits,.hint{font-size:11px;line-height:1.75;color:var(--lab-muted)}.limits{margin:13px 0 0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.panel-head .section-heading{margin:0}.panel-head>span{font-size:11px;color:var(--lab-muted)}.empty{padding:28px 14px;text-align:center;color:var(--lab-muted)}.empty strong{font-size:14px;color:var(--lab-ink)}.empty p{font-size:12px;margin:7px auto;max-width:580px}.source-list{list-style:none;margin:16px 0;padding:0;max-height:340px;overflow:auto}.source-item{border:1px solid #d1cbbd;padding:11px 12px;margin-top:8px;background:#fff;display:flex;justify-content:space-between;gap:12px}.source-item.active{border:2px solid var(--lab-purple);padding:10px 11px;background:#f5f0ff}.source-main{min-width:0;flex:1}.source-select{display:block;border:0;background:none;padding:0;font-size:12px;font-weight:800;text-align:left;color:var(--lab-ink);max-width:100%;overflow-wrap:anywhere;min-height:28px}.source-select:disabled{color:var(--lab-muted)}.source-meta{font-size:10px;display:block;margin-top:4px;color:var(--lab-muted);overflow-wrap:anywhere}.source-actions{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap;justify-content:flex-end}.source-actions .btn{min-height:34px;padding:5px 7px;font-size:10px}.row-error{display:block;color:#9b271d;font-size:11px;margin-top:5px;overflow-wrap:anywhere}.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.feedback{font-size:12px;min-height:20px;margin:18px 0}.error{color:#8b261c;background:#ffebe5;border-left:4px solid #a23727;padding:11px 14px;font-size:12px;overflow-wrap:anywhere}.settings-panel,.editor-panel{margin-bottom:24px}.presets{margin-bottom:19px}.settings-grid{display:grid;grid-template-columns:1.25fr 1.2fr .75fr .7fr;gap:18px;align-items:start}.field{min-width:0}.field label{display:block;font-size:11px;font-weight:800;margin-bottom:6px}.field input:not([type=checkbox]),.field select{width:100%;padding:8px;height:41px;font-size:12px;min-width:0}.field input[type=color]{padding:4px;width:100%;border:1px solid #b9b6ad;border-radius:3px}.field .hint{margin:7px 0}.field .check-label{display:flex;align-items:center;gap:7px;min-height:22px;margin-bottom:8px}.check-label input{margin:0;width:16px;height:16px;accent-color:var(--lab-purple)}.mode-note{font-size:12px;padding:12px 14px;background:#f0e9fc;border:1px solid #c9bae4;line-height:1.7;margin:15px 0 10px}.editor-head{display:flex;justify-content:space-between;gap:15px;align-items:baseline;margin:0 0 16px}.editor-head h3{font-size:14px;margin:0;overflow-wrap:anywhere;min-width:0}.editor-head .hint{margin:0;flex:none}.editor-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:28px}.preview-viewport{height:360px;display:flex;align-items:center;justify-content:center;border:1px solid #bdb6a8;overflow:hidden;padding:18px;background:#ebe7df}.preview-viewport img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;background-color:#fff;background-image:linear-gradient(45deg,#ddd 25%,transparent 25%),linear-gradient(-45deg,#ddd 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ddd 75%),linear-gradient(-45deg,transparent 75%,#ddd 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}.source-stats{display:grid;grid-template-columns:1.2fr .8fr;gap:10px;margin:0 0 20px}.source-stats>div{border:1px solid #bbb29e;background:#fff9dd;padding:12px;min-width:0}.source-stats dt{font-size:10px;color:var(--lab-muted)}.source-stats dd{font-size:15px;font-weight:800;color:var(--lab-purple);margin:5px 0 0;overflow-wrap:anywhere}.variants-panel h3{font-size:12px;margin:20px 0 8px}.variant-list{list-style:none;margin:0 0 20px;padding:0}.variant-list li{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #ddd6c8;padding:8px 0;font-size:12px}.variant-list li.active{font-weight:800;color:var(--lab-purple)}.variant-list li span:first-child{white-space:nowrap}.variant-list li span:last-child{font-family:ui-monospace,monospace}.variants-panel>.btn{width:100%}.export-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.export-panel>div{flex:1;min-width:220px}.batch-summary{font-weight:800;font-size:14px;margin:0 0 8px}.estimate{font:700 12px/1.7 ui-monospace,monospace;color:var(--lab-purple)}#export-status{flex-basis:100%;margin:0}.privacy-note{font-size:12px;color:var(--lab-muted);margin:20px 0}.how{margin-top:36px}.how h2,.faq h2{font-size:20px}.how ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding-left:22px}.how li{padding-left:4px}.how h3{font-size:13px;margin:0 0 7px}.how p{font-size:12px;color:var(--lab-muted);line-height:1.8;margin:0}.faq{margin-top:34px}.faq details{border-top:1px solid #bdb5a7;padding:14px 0}.faq summary{font-size:13px;font-weight:800;cursor:pointer}.faq p{font-size:12px;line-height:1.8;color:var(--lab-muted);max-width:950px}.related{display:flex;gap:16px;flex-wrap:wrap;margin-top:28px;font-size:12px}.related p{margin:0;font-weight:800}.lab-simple-footer{display:flex;justify-content:space-between;gap:15px;margin-top:36px;font-size:11px}.lab-simple-footer a{text-decoration:none}
@media(max-width:1000px){.settings-grid{grid-template-columns:1fr 1fr}.hero h1{font-size:44px}.hero-art{padding-inline:0}.art-family{gap:7px}}
@media(max-width:900px){.import-row{grid-template-columns:1fr}.hero-art{display:none}.editor-grid{grid-template-columns:1fr}.variants-panel{border-top:1px solid #d2cbbd;padding-top:20px}.preview-viewport{height:380px}.how ol{grid-template-columns:1fr;gap:14px}}
@media(max-width:560px){.hero{margin-top:28px}.hero h1{font-size:34px!important;letter-spacing:-1.2px!important}.topbar{gap:8px}.brand{font-size:15px!important}.lang a{padding:6px 7px;font-size:11px}.scope-note{padding:13px 15px}.scope-note p{font-size:11px}.panel{padding:16px!important}.source-item{gap:9px;flex-wrap:wrap}.source-main{flex-basis:100%}.source-actions{justify-content:flex-start}.editor-head{align-items:flex-start;flex-direction:column;gap:5px}.editor-head .hint{flex:auto}.preview-viewport{height:270px;padding:12px}.settings-grid{grid-template-columns:1fr}.field label{min-height:18px}.background-field{display:grid;grid-template-columns:1fr 1fr;gap:4px 14px}.background-field .check-label{grid-row:1/3}.export-panel{align-items:stretch}.export-panel>.btn{width:100%}.lab-simple-footer{flex-direction:column}.source-stats dd{font-size:14px}.presets>.btn{width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
