:root{--page:#f0f1eb;--surface:#fafbf7;--ink:#222a2b;--muted:#82898a;--line:#dfe3da;--accent:#365eec;--accent-soft:#edf1ff}.topbar .brand-mark{color:#e9f5f3;box-shadow:none;background:#193a4b;border-radius:9px}.brand-mark .mark-top{fill:#77c5ba;stroke:#b9e8df}#upload-title{font-weight:750;font-size:19px!important}.upload-filename{white-space:nowrap;text-overflow:ellipsis;color:#546470;max-width:100%;font-size:12px;font-weight:550;overflow:hidden}.upload-zone.has-file{height:205px!important}.upload-zone.has-file img{background-color:#aeb9c0;background-image:linear-gradient(45deg,#c8d1d5 25%,#0000 25%),linear-gradient(-45deg,#c8d1d5 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#c8d1d5 75%),linear-gradient(-45deg,#0000 75%,#c8d1d5 75%);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px;border-radius:5px}.raster-import{margin-top:12px}.raster-import>.secondary-button{width:100%;height:38px;font-size:12px}.raster-import .magnet-toggle{margin-top:10px;font-size:11px;line-height:1.5}.raster-import .field-note{margin-top:7px}.raster-import>#svg-button{width:100%;height:44px;margin-bottom:9px;font-size:15px;font-weight:650}.conversion-help{color:#606e75;margin:9px 0 0;font-size:12px;line-height:1.7}.conversion-help a{color:var(--accent);text-underline-offset:3px;font-weight:650;text-decoration:underline}.repository-link{color:var(--ink);white-space:nowrap;border:1px solid var(--line);border-radius:6px;padding:6px 10px;font-size:12px;font-weight:650}.repository-link:hover,.page-footer a:hover{color:var(--accent)}.page-footer a{text-underline-offset:3px;text-decoration:underline}@media (max-width:680px){.brand-group{gap:9px;width:auto}.brand h1{font-size:15px}.brand{gap:7px}.language-switch{width:98px}.language-switch:before{width:44px}.language-switch[data-language=zh]:before{transform:translate(46px)}.header-actions{gap:0}.repository-link{padding:5px;font-size:11px}}.header-actions{align-items:center;gap:18px;display:flex}.language-button{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:6px;padding:6px 10px;font-size:12px}.field input:disabled{color:var(--muted);background:#eef0ec}#model-dimensions{white-space:pre-line;text-align:right;line-height:1.7}.icon-button.view-label{white-space:nowrap;width:auto;padding:0 10px;font-size:11px}*{box-sizing:border-box}html{background:var(--page);min-height:100%}body{color:var(--ink);margin:0;font-family:Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px;line-height:1.5}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}button,a,input,select{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,label.upload-zone:focus-within{outline-offset:3px;outline:3px solid #b1c5ff}input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:1px}svg{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.topbar{border-bottom:1px solid var(--line);background:var(--surface);justify-content:space-between;align-items:center;height:76px;padding:0 36px;display:flex}.brand{align-items:center;gap:14px;display:flex}.brand h1{letter-spacing:-.5px;margin:0;font-size:19px;font-weight:700}.brand-mark{background:var(--ink);width:32px;height:32px;color:var(--surface);border-radius:9px;place-items:center;font-size:24px;line-height:1;display:grid;transform:rotate(-5deg)}.brand-note{border-left:1px solid var(--line);color:var(--muted);letter-spacing:1.8px;margin-left:9px;padding-left:22px;font:11px Consolas,monospace}.local-note{color:var(--muted);align-items:center;gap:8px;font-size:12px;display:flex}.local-note i,.status-pill i{background:#63a37d;border-radius:50%;width:6px;height:6px}.workspace{grid-template-columns:304px minmax(0,1fr);max-width:1640px;min-height:calc(100svh - 116px);margin:auto;display:grid}.inspector{border-right:1px solid var(--line);background:var(--surface);padding:27px 26px 18px}.section-heading{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.section-heading h2{letter-spacing:.2px;margin:0;font-size:13px;font-weight:650}.unit-label{color:var(--muted);font-size:11px}.text-button{color:var(--muted);background:0 0;border:none;padding:2px 0;font-size:11px}.text-button:hover{color:var(--accent)}.upload-zone{text-align:center;cursor:pointer;background:#f8f8f5;border:1px dashed #bfc2c3;border-radius:11px;flex-direction:column;justify-content:center;align-items:center;gap:5px;height:172px;transition:background .18s,border-color .18s,transform .18s;display:flex;position:relative;overflow:hidden}.upload-zone:hover,.upload-zone.dragging{border-color:var(--accent);background:var(--accent-soft)}.upload-zone.dragging{transform:scale(1.02)}.upload-zone input{opacity:0;width:1px;height:1px;position:absolute}.upload-icon{width:37px;height:37px;color:var(--muted);place-items:center;margin-bottom:4px;display:grid}.upload-icon svg{width:24px;height:24px}.upload-title{text-overflow:ellipsis;white-space:nowrap;max-width:220px;font-size:13px;font-weight:600;overflow:hidden}.upload-hint{color:var(--muted);font-size:11px}.upload-zone.has-file{gap:4px;height:172px;padding:12px}.upload-zone.has-file .upload-icon{display:none}.upload-zone.has-file img{object-fit:contain;order:-1;width:98px;height:90px;margin-bottom:3px;padding:4px}.mode-switch{background:#eceeea;border-radius:8px;margin-top:16px;padding:3px;display:flex}.mode-button{color:var(--muted);background:0 0;border:none;border-radius:6px;flex:1;padding:7px;font-size:12px;transition:all .18s}.mode-button.active{color:var(--ink);background:#fff;box-shadow:0 1px 4px #11111112}.field-note{color:var(--muted);margin:10px 0 0;font-size:11px;line-height:1.6}.palette{flex-wrap:wrap;gap:7px;min-height:16px;margin-top:11px;display:flex}.swatch{border-radius:50%;width:16px;height:16px;box-shadow:inset 0 0 0 1px #00000018}.control-section{border-top:1px solid var(--line);margin-top:21px;padding-top:20px}.field-row{grid-template-columns:1fr 1fr;gap:13px;margin-top:12px;display:grid}.field{color:var(--muted);flex-direction:column;gap:6px;font-size:11px;display:flex}.field input,.field select{background:var(--surface);width:100%;min-width:0;height:35px;color:var(--ink);border:1px solid #dedfdb;border-radius:6px;padding:7px 9px;font-size:12px;transition:border .2s}.field select{padding-right:24px}.field input:hover,.field select:hover{border-color:#b5b9ba}.field.full{width:100%}#puzzle-field{margin-top:13px}.inspector-foot{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;gap:8px;margin-top:26px;padding-top:16px;font-size:10px;display:flex}.preview-panel{flex-direction:column;min-width:0;padding:28px 36px 18px;display:flex}.preview-heading{z-index:1;justify-content:space-between;align-items:center;gap:12px;display:flex}.eyebrow{color:var(--muted);letter-spacing:.8px;font-size:10px;display:block}.preview-heading h2{letter-spacing:-.7px;text-overflow:ellipsis;white-space:nowrap;max-width:480px;margin:3px 0 0;font-size:20px;font-weight:550;overflow:hidden}.status-pill{border:1px solid var(--line);white-space:nowrap;color:var(--muted);background:var(--surface);border-radius:20px;align-items:center;gap:7px;padding:5px 10px;font-size:10px;display:flex}.status-pill[data-state=loading] i{background:#bca461;animation:1.2s infinite pulse}.status-pill[data-state=error] i{background:#cd6559}.viewport{touch-action:none;flex:1;min-height:420px;margin:17px -20px 5px;position:relative;overflow:hidden}.viewport canvas{opacity:0;width:100%;height:100%;transition:opacity .4s;display:block}.viewport.has-model canvas{opacity:1}.preview-placeholder{color:var(--muted);pointer-events:none;flex-direction:column;justify-content:center;align-items:center;font-size:12px;display:flex;position:absolute;inset:0}.placeholder-shape{border:1px dashed #b9bcb5;border-radius:25px;width:150px;height:150px;margin-bottom:25px;transform:rotate(-12deg)}.viewer-actions{z-index:1;gap:4px;display:flex;position:absolute;bottom:20px;left:20px}.icon-button{background:var(--surface);border:1px solid var(--line);color:#6a7377;border-radius:7px;place-items:center;width:34px;height:34px;transition:background .18s,color .18s;display:grid}.icon-button svg{width:17px;height:17px}.icon-button:hover,.icon-button[aria-pressed=true]{color:var(--accent);background:var(--accent-soft);border-color:#ced9f8}.viewport-hint{letter-spacing:.3px;color:var(--muted);pointer-events:none;white-space:nowrap;font-size:10px;position:absolute;bottom:18px;left:50%;transform:translate(-50%)}.model-dimensions{color:var(--muted);font:11px Consolas,monospace;position:absolute;bottom:26px;right:20px}.feedback{color:#68705d;white-space:pre-line;background:#eef0e9;border-left:2px solid #bdc3b0;margin:0 0 12px;padding:10px 12px;font-size:11px;line-height:1.6}.export-bar{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;padding-top:22px;display:flex}.export-summary{flex-direction:column;gap:3px;min-width:0;display:flex}.export-summary strong{font-size:14px;font-weight:550}.export-summary>span:last-child{color:var(--muted);font-size:11px}.export-buttons{flex-shrink:0;align-items:center;gap:8px;display:flex}.primary-button,.secondary-button{border:1px solid var(--line);border-radius:7px;justify-content:center;align-items:center;gap:7px;height:42px;padding:0 17px;font-size:12px;font-weight:550;transition:background .18s,transform .18s;display:flex}.primary-button{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 3px 8px #365eec15}.primary-button svg{width:16px;height:16px}.primary-button:hover:enabled{background:#244ecf;transform:translateY(-1px)}.secondary-button{background:var(--surface);color:var(--ink)}.secondary-button:hover:enabled{background:#fff;border-color:#bcc3d1;transform:translateY(-1px)}.secondary-button.compact{letter-spacing:.4px;color:var(--muted);padding:0 11px;font:10px Consolas,monospace}.print-note{color:var(--muted);margin:14px 0 0;font-size:10px}.page-footer{border-top:1px solid var(--line);height:40px;color:var(--muted);background:var(--surface);justify-content:space-between;align-items:center;padding:0 36px;font-size:10px;display:flex}@keyframes pulse{50%{opacity:.25}}@media (min-width:1600px){.preview-panel{padding-left:55px;padding-right:55px}.viewport{min-height:560px}}@media (max-width:1000px){.topbar{padding:0 22px}.workspace{grid-template-columns:276px minmax(0,1fr)}.inspector{padding:24px 20px}.preview-panel{padding:25px 24px 18px}.export-bar{flex-direction:column;align-items:flex-start;gap:14px}.export-buttons{width:100%}.primary-button{flex:1}.model-dimensions{bottom:65px}.viewport-hint{bottom:20px;left:auto;right:20px;transform:none}.page-footer{padding:0 22px}}@media (max-width:680px){.topbar{height:62px;padding:0 17px}.brand{gap:10px}.brand h1{font-size:17px}.brand-note{display:none}.local-note{font-size:10px}.workspace{flex-direction:column;display:flex}.preview-panel{order:0;padding:20px 19px 18px}.inspector{border-top:1px solid var(--line);border-right:none;order:1;padding:24px 22px}.preview-heading h2{font-size:18px}.viewport{flex:unset;height:340px;min-height:340px;margin-left:-12px;margin-right:-12px}.export-summary>span:last-child{display:none}.export-bar{gap:12px;padding-top:16px}.export-summary strong{font-size:12px}.export-buttons{gap:6px}.primary-button,.secondary-button{height:40px;padding:0 12px;font-size:11px}.page-footer{flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;height:auto;min-height:50px;padding:8px 20px}.upload-zone.has-file img{height:90px}.inspector-foot{margin-top:22px}.status-pill,.viewport-hint{font-size:9px}.model-dimensions{font-size:10px}.preview-placeholder{font-size:11px}.print-note{font-size:10px;line-height:1.6}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}.brand-group{align-items:center;gap:20px;min-width:0;display:flex}.brand-mark{background:var(--accent);transform:none;box-shadow:0 3px 9px #365eec20}.brand-mark svg{stroke-width:1.5px;width:28px;height:28px}.language-switch{color:#65728a;background:#e7ecf6;border:1px solid #cbd4e9;border-radius:20px;align-items:center;gap:0;width:114px;height:36px;padding:3px;font-size:12px;font-weight:650;display:flex;position:relative}.language-switch:before{content:"";background:var(--accent);border-radius:16px;width:52px;height:28px;transition:transform .18s;position:absolute;top:3px;left:3px;box-shadow:0 2px 5px #365eec25}.language-switch[data-language=zh]:before{transform:translate(54px)}.language-switch span{z-index:1;text-align:center;flex:1;position:relative}.language-switch[data-language=en] .language-en,.language-switch[data-language=zh] .language-zh{color:#fff}#upload-title{color:var(--ink);font-size:16px;font-weight:750}.upload-zone .upload-icon{color:var(--accent)}.magnet-toggle{color:var(--ink);align-items:center;gap:9px;font-size:12px;display:flex}.magnet-toggle input{accent-color:var(--accent);width:16px;height:16px}.template-actions{gap:9px;display:flex}.template-actions button{flex:1;height:35px;padding:0 7px;font-size:11px}#config-notice.error{color:#a4483e}.top-export-bar{border-bottom:1px solid var(--line);background:var(--page);z-index:3;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;padding:12px 0;display:flex;position:sticky;top:0}.top-export-bar .primary-button,.top-export-bar .secondary-button{height:35px;padding:0 12px;font-size:11px}@media (max-width:680px){.header-actions .local-note{display:none}.brand-group{justify-content:space-between;gap:14px;width:100%}.brand h1{font-size:17px}.language-switch{flex-shrink:0}.top-export-bar>.eyebrow{display:none}.top-export-bar .export-buttons{justify-content:flex-end;width:100%}.top-export-bar .primary-button{flex:1}.top-export-bar{gap:5px}}html,body{height:100%;overflow:hidden}body{grid-template-rows:64px minmax(0,1fr) 28px;height:100dvh;display:grid}.topbar{height:64px;padding:0 24px}.workspace{grid-template-columns:330px minmax(0,1fr);width:100%;max-width:none;min-height:0;margin:0;display:grid;overflow:hidden}.inspector{flex-direction:column;order:0;min-height:0;padding:16px 18px 12px;display:flex;overflow:hidden}.settings-tabs{background:#eceee9;border-radius:8px;flex-shrink:0;gap:3px;margin-bottom:16px;padding:4px;display:flex}.settings-tabs button{color:#657274;background:0 0;border:0;border-radius:5px;flex:1;padding:9px 0;font-size:13px;font-weight:600;transition:background .15s,color .15s}.settings-tabs button[aria-selected=true]{color:#173344;background:#fff;box-shadow:0 1px 4px #0000000b}.settings-scroll{scrollbar-width:thin;scrollbar-gutter:stable;flex:1;min-height:0;padding:0 3px 10px;overflow:auto}.settings-scroll>.control-section:first-of-type{border:0;margin:0;padding:0}.section-heading h2{font-size:14px}.control-section{margin-top:18px;padding-top:16px}.field{font-size:12px}.field input,.field select{height:40px;font-size:14px}.field-row{gap:10px}.field-range{color:#919998;font-size:10px;line-height:1.3}.field-error{color:#a94334;font-size:11px;line-height:1.4}.field input[aria-invalid=true]{background:#fff6f2;border-color:#c25d4c}.field-note{font-size:12px;line-height:1.55}.unit-label{font-size:11px}.config-panel summary{cursor:pointer;color:#25383c;margin-bottom:12px;font-size:13px;font-weight:600}.config-panel:not([open]) summary{margin-bottom:0}.inspector-foot{flex-shrink:0;margin-top:12px;padding-top:10px}.inspector-foot .text-button{font-size:12px}.upload-zone,.upload-zone.has-file{height:156px!important}.upload-zone.has-file img{width:102px;height:58px;margin-bottom:0}#upload-title{font-size:15px!important}#upload-filename{max-width:250px;font-size:11px}#upload-hint{font-size:11px}.raster-import>#svg-button{height:42px;font-size:15px}.conversion-help{font-size:12px}.palette{margin-top:10px}.mode-switch{margin-top:14px}.preview-panel{flex-direction:column;order:1;min-height:0;padding:16px 24px 10px;display:flex;overflow:hidden}.preview-heading{flex-shrink:0}.preview-heading h2{max-width:min(40vw,520px);font-size:18px}.status-pill{font-size:11px}.top-export-bar{flex-shrink:0;margin-top:8px;padding:8px 0;position:static}.top-export-bar .export-buttons{width:auto}.top-export-bar .primary-button,.top-export-bar .secondary-button{height:36px;font-size:12px}.feedback{border-radius:0 5px 5px 0;flex-shrink:0;max-height:120px;margin:8px 0 0;font-size:13px;line-height:1.5;overflow:auto}.feedback.error{color:#a53f30;background:#fff1eb;border-color:#c6614b}.viewport{flex:1;height:auto;min-height:160px;margin:8px 0 0}.model-dimensions{font-size:11px;bottom:17px;right:12px}.viewport-hint{font-size:11px;bottom:12px}.viewer-actions{bottom:16px;left:12px}.export-bar{flex-shrink:0;gap:0;padding-top:8px}.export-summary{flex-flow:wrap;align-items:center;gap:12px}.export-summary strong{font-size:12px}.print-note{flex-shrink:0;margin:4px 0 0;font-size:10px}.page-footer{flex-direction:row;align-items:center;height:28px;padding:0 24px;font-size:10px}#place-magnets{width:100%;height:42px;margin-top:14px;font-size:13px}.magnet-point-list{margin:12px 0;padding:0;list-style:none}.magnet-point-list li{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:9px 0;font-size:12px;display:flex}.magnet-point-list button{color:#a34438;background:0 0;border:0;padding:4px 8px;font-size:12px}.placement-banner{z-index:4;color:#23446b;background:#fafcfef2;border:1px solid #ced8e7;border-radius:8px;align-items:center;gap:16px;max-width:calc(100% - 24px);padding:8px 10px 8px 16px;font-size:12px;display:flex;position:absolute;top:10px;left:50%;transform:translate(-50%);box-shadow:0 3px 15px #20334c12}.placement-banner .primary-button{white-space:nowrap;height:32px;font-size:12px}@media (max-width:1050px){.workspace{grid-template-columns:300px minmax(0,1fr)}.preview-panel{padding:14px 16px 8px}.export-summary>.eyebrow,.export-detail{display:none}.viewport-hint{bottom:60px;left:auto;right:12px;transform:none}.model-dimensions,.viewer-actions{bottom:12px}.top-export-bar>.eyebrow{display:none}.top-export-bar{justify-content:flex-end}}@media (max-width:760px){html,body{height:auto;overflow:auto}body{min-height:100dvh;display:block}.topbar{z-index:10;height:62px;padding:0 12px;position:sticky;top:0}.brand-group{gap:9px;width:auto}.brand{gap:6px}.brand h1{font-size:14px}.brand-mark{width:28px;height:28px}.language-switch{flex-shrink:0;width:98px}.language-switch:before{width:44px}.language-switch[data-language=zh]:before{transform:translate(46px)}.header-actions .local-note{display:none}.repository-link{padding:5px;font-size:11px}.workspace{flex-direction:column;display:flex;overflow:visible}.inspector{border-right:0;border-bottom:1px solid var(--line);order:0;max-height:57dvh;padding:12px 16px}.settings-tabs{margin-bottom:10px}.inspector-foot{margin-top:4px}.preview-panel{order:1;padding:12px 14px;overflow:visible}.preview-heading h2{max-width:62vw}.viewport{flex:none;height:52dvh;min-height:320px;margin:8px 0 0}.feedback.error{z-index:20;max-height:100px;position:fixed;top:66px;left:10px;right:10px;box-shadow:0 3px 14px #8a372019}.placement-banner{gap:8px;width:max-content;max-width:calc(100% - 12px);padding-left:10px;font-size:11px}.top-export-bar .export-buttons{width:100%}.top-export-bar .primary-button{flex:1}.export-summary>span:last-child{display:inline}.page-footer{flex-wrap:wrap;gap:6px;height:auto;min-height:40px;padding:8px 14px}.model-dimensions,.viewport-hint{font-size:10px}}.workspace{grid-template-columns:400px minmax(0,1fr)}.brand-mark{width:38px;height:38px;box-shadow:none;background:0 0;border-radius:0}.brand-mark svg{stroke:none;width:38px;height:38px}.inspector{grid-template-rows:auto minmax(0,1fr) auto;grid-template-columns:66px minmax(0,1fr);gap:16px;display:grid}.template-toolbar{border-bottom:1px solid var(--line);grid-column:1/-1;padding-bottom:14px}.template-toolbar .template-actions{gap:8px}.template-toolbar .template-actions button{height:36px;font-size:12px}.template-toolbar .field-note{margin-top:7px;font-size:11px}.template-toolbar #config-notice{max-height:64px;overflow:auto}.settings-tabs{background:#eef0ec;flex-direction:column;grid-area:2/1;align-self:start;gap:5px;margin:0;padding:4px}.settings-tabs button{flex:none;min-height:48px;padding:10px 3px;font-size:13px}.settings-tabs button[aria-selected=true]{color:#365eec;box-shadow:0 1px 4px #00000009}.settings-scroll{grid-area:2/2;padding-left:0;padding-right:2px}.inspector-foot{grid-area:3/1/auto/-1;margin:0}.settings-scroll>.control-section{border-top:0;margin-top:0;padding-top:0}.settings-scroll>.control-section+.control-section{border-top:1px solid var(--line);margin-top:20px;padding-top:20px}@media (max-width:1050px){.workspace{grid-template-columns:360px minmax(0,1fr)}.inspector{grid-template-columns:60px minmax(0,1fr);column-gap:12px}}@media (max-width:760px){.workspace{display:flex}.inspector{grid-template-columns:60px minmax(0,1fr);row-gap:12px;min-height:390px;max-height:62dvh;display:grid}.settings-tabs{margin:0}.brand-mark,.brand-mark svg{width:30px;height:30px}.template-toolbar{padding-bottom:10px}.template-toolbar .field-note{font-size:10px}}.inspector{grid-template-rows:minmax(0,1fr) auto auto}.settings-tabs,.settings-scroll{grid-row:1}.template-toolbar{border-bottom:0;border-top:1px solid var(--line);grid-row:2;padding:12px 0 0}.inspector-foot{grid-row:3}.logo-only-toggle{margin-bottom:14px}.logo-only-toggle+.field-note{margin:-5px 0 14px}
