:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--chrome:#1d1f24;--chrome-raised:#30343b;--text:#e9edf2;--muted:#b4bcc6;--line:#414751;--accent:#a9cbea;--on-accent:#17212b;--stage:#303238;--float:#24272d;--float-text:#e9edf2;--float-muted:#b4bcc6;--float-line:#444a54;--hover:#363d47;--selected:#3b5268;--selected-text:#f0f7ff;--segment:#1c1f24;--stage-text:#edf1f7;--stage-muted:#c0c7d1;--input:#181b20;--input-text:#e9edf2;--error-bg:#3e2523;--error-text:#ffd9d0;--error-line:#895249;--drop-bg:#293b4c;--drop-text:#e5f2ff;font-family:Segoe UI,Microsoft YaHei UI,sans-serif}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,select{font:inherit}button{cursor:pointer;white-space:nowrap;color:inherit;background:0 0;border:0;border-radius:7px;padding:9px 13px;font-size:13px;transition:background .13s}button:hover{background:var(--chrome-raised)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-offset:3px;outline:2px solid #5085a8}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}.topbar{background:var(--chrome);height:58px;color:var(--text);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:0 22px;display:flex}.brand{color:inherit;align-items:center;gap:10px;text-decoration:none;display:flex}.brand svg{fill:none;width:28px;height:28px;stroke:var(--accent);stroke-width:1.4px}.brand strong{letter-spacing:-.4px;font-size:18px;font-weight:600}.brand span{color:var(--muted);border-left:1px solid var(--line);margin-left:5px;padding-left:15px;font-size:12px}.header-actions{align-items:center;gap:7px;display:flex}.primary{background:var(--accent);color:var(--on-accent);font-weight:600}.primary:hover{filter:brightness(1.08);background:var(--accent)}.quiet{color:var(--muted)}.icon-button{min-width:36px;padding:8px}.icon-button#theme{font-size:19px}main{background:var(--stage);isolation:isolate;height:calc(100dvh - 58px);position:relative}#viewport{position:absolute;inset:0}#viewport canvas{touch-action:none;outline:none;width:100%;height:100%;display:block}.empty-state{pointer-events:none;color:var(--stage-text);flex-direction:column;justify-content:center;align-items:center;padding-bottom:24px;display:flex;position:absolute;inset:0}.empty-state button{pointer-events:auto;color:#fff;background:#315d78;margin-top:12px}.empty-state h1{letter-spacing:.4px;margin:20px 0 0;font-size:25px;font-weight:500}.empty-state p{color:var(--stage-muted);margin:12px 0;font-size:14px}.empty-state small{letter-spacing:1.4px;color:var(--stage-muted);margin-top:17px;font-size:11px}.model-symbol{width:82px;height:82px}.model-symbol svg{width:100%;height:100%;stroke:var(--accent);stroke-width:1px;fill:var(--segment)}.privacy-note{color:var(--stage-muted);align-items:center;gap:7px;margin-top:42px;font-size:12px;display:flex}.status-dot{background:#648d78;border-radius:50%;width:6px;height:6px;display:inline-block}.model-label{color:var(--stage-text);pointer-events:none;flex-direction:column;gap:6px;max-width:calc(100% - 320px);display:flex;position:absolute;top:22px;left:24px}.model-label strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;overflow:hidden}.model-label span{color:var(--stage-muted);font-size:11px}.view-switch{border:1px solid var(--float-line);background:var(--float);color:var(--float-text);border-radius:9px;padding:3px;display:flex;position:absolute;top:18px;right:21px;box-shadow:0 2px 8px #263d4810}.view-switch button{padding:7px 10px;font-size:12px}.view-switch button:hover,.controls button:hover,.settings button:hover{background:var(--hover)}.view-switch .selected,.segmented .selected{background:var(--selected);color:var(--selected-text);font-weight:600}.controls{background:var(--float);color:var(--float-text);border:1px solid var(--float-line);border-radius:12px;align-items:center;gap:3px;padding:6px;display:flex;position:absolute;bottom:32px;left:50%;transform:translate(-50%);box-shadow:0 8px 28px #23394a13}.segmented{background:var(--segment);border-radius:7px;padding:2px;display:flex}.divider{background:var(--float-line);width:1px;height:20px;margin:0 5px}.controls button{padding:9px 12px;font-size:12px}.controls button[aria-pressed=true]{background:var(--selected);color:var(--selected-text)}.interaction-hint{color:var(--stage-muted);white-space:nowrap;pointer-events:none;font-size:10px;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.settings{background:var(--float);width:240px;color:var(--float-text);border:1px solid var(--float-line);border-radius:12px;padding:15px 18px;position:absolute;bottom:100px;right:22px;box-shadow:0 8px 28px #23394a13}.panel-heading{justify-content:space-between;align-items:center;margin-bottom:18px;display:flex}.panel-heading strong{font-size:13px}.panel-heading button{color:var(--float-muted);padding:1px 5px;font-size:20px}.settings label{margin:14px 0 8px;font-size:12px;display:block}.settings input,.settings select{width:100%;accent-color:var(--accent)}.settings select{background:var(--input);color:var(--float-text);border:1px solid var(--float-line);border-radius:5px;padding:7px;font-size:12px}.settings p{color:var(--float-muted);white-space:pre-line;margin:16px 0 7px;font-size:11px;line-height:1.7}.settings small{color:var(--float-muted);font-size:10px;line-height:1.6;display:block}.loading{background:var(--float);color:var(--float-text);border:1px solid var(--float-line);border-radius:12px;align-items:center;gap:12px;padding:17px 22px;font-size:13px;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 7px 30px #23394a15}.spinner{border:2px solid var(--float-line);border-top-color:var(--accent);border-radius:50%;width:16px;height:16px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.drop-overlay{border:2px dashed var(--accent);background:var(--drop-bg);color:#315d78;pointer-events:none;border-radius:14px;place-items:center;font-size:22px;display:grid;position:absolute;inset:12px}.error{background:var(--error-bg);color:var(--error-text);border:1px solid var(--error-line);z-index:5;border-radius:9px;max-width:80%;padding:12px 20px;font-size:13px;position:absolute;top:80px;left:50%;transform:translate(-50%)}@media (width<=650px){.topbar{gap:8px;height:54px;padding:0 12px}.brand strong{font-size:16px}.brand span{display:none}.brand{gap:6px}.brand svg{width:23px}.header-actions{gap:2px}.header-actions button{padding:8px 9px;font-size:12px}#sample{display:none!important}main{height:calc(100dvh - 54px)}.model-label{max-width:calc(100% - 35px);top:16px;left:15px}.view-switch{top:68px;right:14px}.controls{flex-wrap:wrap;justify-content:center;gap:0;width:max-content;max-width:calc(100% - 20px);padding:4px;bottom:34px}.controls button{padding:8px;font-size:11px}.divider{margin:0 2px}.settings{bottom:106px;right:12px}.empty-state h1{font-size:22px}.interaction-hint{bottom:12px}}@media (prefers-reduced-motion:reduce){button{transition:none}.spinner{animation-duration:2s}}.baseline-link{color:var(--muted);border-radius:6px;padding:8px;font-size:12px;text-decoration:none}.baseline-link:hover{background:var(--chrome-raised);color:var(--text)}.settings{max-height:calc(100dvh - 180px);overflow:auto}.settings .color-row,.settings .roughness-label{justify-content:space-between;align-items:center;gap:14px;display:flex}.settings .color-row label,.settings .roughness-label label{margin:8px 0}.settings input[type=color]{border:1px solid var(--float-line);cursor:pointer;background:#fff;border-radius:5px;width:54px;height:29px;padding:2px}.settings output{color:var(--float-muted);font-variant-numeric:tabular-nums;font-size:11px}.settings .material-hint{border-bottom:1px solid var(--float-line);margin-top:8px;padding-bottom:12px}@media (width<=650px){.header-actions .baseline-link{padding:6px;font-size:11px}.controls{width:calc(100% - 24px);max-width:420px}.controls .segmented{justify-content:center;width:100%;margin-bottom:3px}.controls .segmented button{flex:1}.controls .divider{display:none}.settings{max-height:calc(100dvh - 245px);bottom:137px}}body{background:var(--stage)}.empty-state button{background:var(--accent);color:var(--on-accent)}.empty-state button:hover{background:var(--accent)}.drop-overlay{color:var(--drop-text)}.settings input[type=color]{background:var(--input)}.settings select{color:var(--input-text)}.background-choices{border:0;margin:0 0 15px;padding:0}.background-choices legend{margin-bottom:9px;font-size:12px}.background-choices #backgrounds{gap:4px;display:flex}.background-choices button{border:1px solid var(--float-line);flex:1;justify-content:center;align-items:center;gap:6px;padding:8px 7px;font-size:11px;display:flex}.background-choices button[aria-pressed=true]{background:var(--selected);color:var(--selected-text);border-color:var(--accent)}.swatch{border:1px solid #9ba4ae;border-radius:50%;flex-shrink:0;width:11px;height:11px;display:inline-block}.swatch.graphite{background:#303238}.swatch.gray{background:#686b71}.swatch.light{background:#e8eaed}.icon-button#theme{align-items:center;gap:6px;font-size:18px;display:flex}#theme-label{min-width:24px;font-size:12px;font-weight:500}.background-choices button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-color:var(--accent)}@media (width<=650px){#theme-label{display:none}.icon-button#theme{justify-content:center}.settings{width:252px}.background-choices button{padding:8px 6px}}.material-choices{border:0;margin:0 0 16px;padding:0}.material-choices legend{margin-bottom:9px;font-size:12px}.material-choices #materials{gap:5px;display:flex}.material-choices button{border:1px solid var(--float-line);flex:1;padding:8px 7px;font-size:11px}.material-choices button.selected{background:var(--selected);color:var(--selected-text);border-color:var(--accent)}.share-dialog{border:1px solid var(--float-line);background:var(--float);width:min(520px,100vw - 28px);max-height:calc(100dvh - 36px);color:var(--float-text);border-radius:16px;padding:24px;overflow:auto;box-shadow:0 22px 90px #0006}.share-dialog::backdrop{background:#0008}.share-heading{justify-content:space-between;align-items:center;gap:14px;display:flex}.share-heading h2{letter-spacing:-.4px;margin:0;font-size:19px;font-weight:600}.share-heading h3{margin:0;font-size:13px;font-weight:600}.share-heading button{white-space:normal;padding:7px 9px}#share-close{padding:3px 8px;font-size:24px;line-height:1}.share-description,.share-local{color:var(--float-muted);margin:16px 0;font-size:12px;line-height:1.75}.share-local{border-left:2px solid var(--accent);padding-left:10px}.share-dialog label{margin:15px 0 7px;font-size:12px;display:block}.share-dialog input,.share-dialog select{font:inherit;border:1px solid var(--float-line);background:var(--input);width:100%;min-width:0;color:var(--input-text);border-radius:7px;padding:10px 12px;font-size:13px}.share-dialog input[readonly]{font-family:ui-monospace,Consolas,monospace;font-size:12px}.share-form-row{gap:14px;display:flex}.share-form-row>div{flex:1}.share-dialog #share-publish{width:100%;margin-top:20px;padding:12px}.share-status{min-height:22px;color:var(--accent);overflow-wrap:anywhere;margin:15px 0;font-size:12px;line-height:1.7}.share-status.is-error{color:var(--error-text);background:var(--error-bg);border-radius:7px;padding:10px 12px}.share-buttons{flex-wrap:wrap;gap:7px;display:flex}.share-buttons button{border:1px solid var(--float-line);flex:1;min-height:40px}.share-management{border-top:1px solid var(--float-line);margin-top:22px;padding-top:16px}.share-management .share-heading button{color:var(--float-muted);font-size:11px}.share-history-row{border-top:1px solid var(--float-line);align-items:center;gap:5px;padding:13px 0;display:flex}.share-history-row:first-child{margin-top:10px}.share-history-row>div{flex:1;min-width:0}.share-history-row strong{overflow-wrap:anywhere;font-size:12px;font-weight:500;display:block}.share-history-row small{color:var(--float-muted);margin-top:5px;font-size:10px;display:block}.share-history-row button{padding:7px 8px;font-size:11px}#share-result{border-top:1px solid var(--float-line);padding-top:1px}.controls #publish-share{background:var(--selected);color:var(--selected-text)}.shared-status-card{text-align:center;background:var(--float);width:min(420px,100vw - 40px);color:var(--float-text);border:1px solid var(--float-line);border-radius:14px;padding:28px 24px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 8px 35px #0002}.shared-status-card .spinner{display:inline-block}.shared-status-card h1{margin:14px 0 10px;font-size:19px;font-weight:500}.shared-status-card p{color:var(--float-muted);margin:10px 0 18px;font-size:13px;line-height:1.8}.shared-view-page .model-label{max-width:calc(100% - 350px)}.shared-tools{background:var(--float);max-width:calc(100% - 28px);color:var(--float-text);border:1px solid var(--float-line);white-space:nowrap;border-radius:10px;align-items:center;gap:16px;padding:7px 14px;display:flex;position:absolute;bottom:38px;left:50%;transform:translate(-50%)}.shared-tools button{background:var(--selected);color:var(--selected-text);font-size:12px}.shared-tools span{color:var(--float-muted);font-size:11px}.shared-copy-status{color:var(--stage-text);text-align:center;max-width:calc(100% - 30px);font-size:12px;position:absolute;bottom:94px;left:50%;transform:translate(-50%)}.shared-view-page #shared-theme{align-items:center;gap:7px;display:flex}.shared-view-page #shared-theme-label{font-size:12px}.shared-view-page .interaction-hint{white-space:normal;text-align:center;max-width:calc(100% - 20px)}@media (width<=650px){.share-dialog{max-height:calc(100dvh - 24px);padding:18px}.share-description{font-size:12px}.share-history-row{flex-wrap:wrap}.share-history-row>div{flex-basis:100%;padding-bottom:3px}.shared-view-page .model-label{max-width:calc(100% - 30px)}.shared-view-page #shared-theme-label{display:none}.shared-view-page .view-switch{top:72px}.shared-tools{gap:10px;padding:6px 10px;bottom:52px}.shared-tools span{font-size:10px}.shared-copy-status{bottom:105px}.shared-view-page .interaction-hint{font-size:10px;bottom:15px}.controls{bottom:42px}.interaction-hint{bottom:13px}}.controls{flex-wrap:wrap;justify-content:center;max-width:calc(100% - 28px)}
