:root{--bg:#fff;--fg:#1d2129;--muted:#69707d;--border:#e1e4ea;--surface:#f4f5f8;--accent:#ff6b2c;--accent-fg:#fff;--warn-bg:#fff4e0;--warn-fg:#8a5300;--shadow:0 4px 24px #0000001f;--footer-h:28px;color:var(--fg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}@media (prefers-color-scheme:dark){:root{--bg:#1b1e24;--fg:#e8eaee;--muted:#9aa1ad;--border:#343944;--surface:#262a32;--warn-bg:#3a2c14;--warn-fg:#f5c26b;--shadow:0 4px 24px #00000080}}*{box-sizing:border-box}html,body{background:var(--bg);height:100%;margin:0}#map{inset:0 0 var(--footer-h);position:absolute}#footer{z-index:5;height:var(--footer-h);color:var(--muted);background:var(--bg);border-top:1px solid var(--border);white-space:nowrap;justify-content:center;align-items:center;gap:14px;padding:0 12px;font-size:12px;display:flex;position:fixed;inset:auto 0 0;overflow:hidden}#footer>span:first-child{color:var(--fg);font-weight:600}#footer a{color:inherit}#footer a:hover{color:var(--fg)}#footer .support{align-items:center;gap:8px;display:inline-flex}#footer .coffee{color:#fff;background:#1d2129;border-radius:4px;align-items:center;gap:5px;padding:2px 8px;text-decoration:none;display:inline-flex}#footer .coffee:hover{color:#fff;background:#000}#footer .coffee svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linejoin:round}@media (prefers-color-scheme:dark){#footer .coffee{color:#1d2129;background:#e8eaee}#footer .coffee:hover{color:#000;background:#fff}}@media (width<=600px){:root{--footer-h:52px}#footer{flex-wrap:wrap;align-content:center;gap:4px 14px}#footer .support{flex-basis:100%;justify-content:center}}@media (width<=440px){#footer>span:first-child{display:none}}#panel{z-index:4;width:320px;max-height:calc(100% - 24px - var(--footer-h));background:var(--bg);box-shadow:var(--shadow);border-radius:12px;flex-direction:column;gap:16px;padding:16px;display:flex;position:absolute;top:12px;left:12px;overflow-y:auto}header{position:relative}.bug-open{border-radius:50%;width:28px;height:28px;padding:0;font-weight:600;position:absolute;top:0;right:0}.bug-dialog{width:min(480px,100% - 32px);color:var(--fg);background:var(--bg);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:12px;padding:20px}.bug-progress{margin-top:8px}.bug-trap{opacity:0;width:1px;height:1px;position:absolute;left:-10000px}.bug-dialog::backdrop{background:#00000059}.bug-dialog textarea{width:100%;font:inherit;color:var(--fg);background:var(--surface);border:1px solid var(--border);resize:vertical;border-radius:8px;margin:8px 0;padding:8px 10px;font-size:14px;display:block}.bug-dialog textarea:focus{border-color:var(--accent);outline:none}.bug-status:empty{display:none}.bug-status{margin:8px 0 0;font-size:13px}.bug-actions{justify-content:flex-end;gap:8px;margin-top:12px;display:flex}.bug-actions button{width:auto;padding:8px 20px}header h1{letter-spacing:-.02em;margin:0;font-size:20px}header p,.hint{color:var(--muted);margin:2px 0 0;font-size:13px}h2{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 8px;font-size:12px;font-weight:600}button{font:inherit;color:var(--fg);background:var(--surface);border:1px solid var(--border);cursor:pointer;border-radius:8px;padding:8px 12px;font-size:14px}button:hover:not(:disabled){border-color:var(--accent)}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:var(--accent);border-color:var(--accent);width:100%;color:var(--accent-fg);margin-top:8px;font-weight:600}button.secondary{background:0 0}#search{flex-wrap:wrap;display:flex}#search input{min-width:0;font:inherit;color:var(--fg);background:var(--surface);border:1px solid var(--border);border-right:none;border-radius:8px 0 0 8px;outline:none;flex:1;padding:10px 12px;font-size:15px}#search input:focus{border-color:var(--accent)}#search button{border-radius:0 8px 8px 0;place-items:center;display:grid}#search svg{fill:none;stroke:currentColor;stroke-width:2.2px;stroke-linecap:round}#search-results{background:var(--bg);border:1px solid var(--border);min-width:0;box-shadow:var(--shadow);border-radius:8px;flex-basis:100%;margin:4px 0 0;padding:4px;list-style:none}#search-results li{cursor:pointer;border-radius:6px;align-items:center;gap:8px;padding:8px 10px;display:flex}#search-results li>div{flex-wrap:wrap;flex:1;align-items:baseline;gap:2px 6px;min-width:0;display:flex}#search-results li strong{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}#search-results li em{color:var(--muted);border:1px solid var(--border);border-radius:4px;padding:0 4px;font-size:11px;font-style:normal}#search-results li span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;flex-basis:100%;font-size:12px;overflow:hidden}#search-results li button{padding:4px 8px;font-size:12px}#search-results li:hover,#search-results li.active{background:var(--surface)}#search-results li.message{cursor:default;color:var(--muted);font-size:13px}#data-details summary{cursor:pointer;color:var(--muted);margin-bottom:8px;font-size:13px}#data-details[open] summary{margin-bottom:12px}#progress-3d{margin-top:8px}.finish-shape{width:100%;margin-top:8px}.finish-shape[hidden]{display:none}.tools{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.tools button{flex-direction:column;align-items:center;gap:4px;padding:10px 4px;font-size:12px;display:flex}.tools svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linejoin:round;width:26px;height:26px}.tools .vertex{fill:currentColor;stroke:none}.tools button.active{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}dl{grid-template-columns:auto 1fr;gap:4px 12px;margin:0;font-size:14px;display:grid}dt{color:var(--muted)}dd{font-variant-numeric:tabular-nums;margin:0}.warning{background:var(--warn-bg);color:var(--warn-fg);border-radius:8px;margin:10px 0 0;padding:8px 10px;font-size:13px}.actions{gap:8px;margin-top:12px;display:flex}.actions button{flex:1}@media (width<=600px){#panel{gap:12px;width:auto;max-height:55%;padding:12px;top:8px;left:8px;right:8px}}.nav-hint b{color:var(--fg);font-weight:600}.nav-control{flex-direction:column;gap:6px;display:flex}.nav-control button{background:var(--bg);width:40px;height:40px;box-shadow:var(--shadow);place-items:center;padding:0;font-size:20px;line-height:1;display:grid}.nav-control .view3d{font-size:13px;font-weight:700}.nav-control .compass{cursor:grab;touch-action:none;border-radius:50%}.nav-control .compass svg{width:26px;height:26px;transition:transform 60ms linear}.nav-control .north{fill:var(--accent)}.nav-control .south{fill:var(--muted)}.handle{border:2px solid var(--accent);width:22px;height:22px;color:var(--accent);touch-action:none;-webkit-user-select:none;user-select:none;background:#fff;border-radius:50%;place-items:center;font-size:13px;line-height:1;display:grid;box-shadow:0 1px 4px #0000004d}.handle-move{cursor:move}.handle-scale{background:var(--accent);cursor:nwse-resize;border-radius:3px;width:14px;height:14px}.handle-rotate{cursor:grab}#data-status:empty,#data-terrain:empty{display:none}#data-status.error{color:var(--warn-fg)}#data-layers{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}#data-layers label{cursor:pointer;border-radius:6px;grid-template-columns:auto auto 1fr auto;align-items:center;gap:8px;padding:5px 4px;font-size:14px;display:grid}#data-layers label:hover{background:var(--surface)}#data-layers input{accent-color:var(--accent);margin:0}#data-layers .swatch{border-radius:3px;width:12px;height:12px}#data-layers .count{font-variant-numeric:tabular-nums;font-weight:600}#data-layers .detail{color:var(--muted);grid-column:3/5;margin-top:-4px;font-size:12px}#data-layers li.empty label{opacity:.5}.credit{font-size:11px}#data-progress[hidden],#print-progress[hidden]{display:none}#print-progress{margin-top:12px}.model-results .progress{grid-column:1/-1}.model-search[hidden]{display:none}#object-model-fit.warning{margin-top:6px}#data-progress{flex-direction:column;gap:12px;margin-bottom:8px;display:flex}.progress-head{justify-content:space-between;gap:8px;font-size:14px;display:flex}.progress-text{color:var(--muted);font-variant-numeric:tabular-nums}.progress .bar{background:var(--surface);border-radius:3px;height:6px;margin-top:6px;position:relative;overflow:hidden}.progress .bar>div{background:var(--accent);border-radius:3px;width:0;height:100%;transition:width .2s ease-out}.progress.busy .bar>div{width:35%;transition:none;animation:1.3s ease-in-out infinite progress-sweep;position:absolute}.progress.done .progress-text{color:var(--fg)}@keyframes progress-sweep{0%{left:-35%}to{left:100%}}@media (prefers-reduced-motion:reduce){.progress.busy .bar>div{animation-duration:4s}}.progress-note{color:var(--muted);margin:4px 0 0;font-size:12px}.progress-note:empty{display:none}#viewer{inset:0 0 var(--footer-h);z-index:3;position:absolute}#viewer[hidden]{display:none}#viewer canvas{display:block}body:not(.mode-3d) .view3d-only,body.mode-3d .map-only{display:none!important}.back{align-self:flex-start;margin-bottom:12px}.slider[hidden],.select-row[hidden]{display:none}.slider{grid-template-columns:1fr auto;gap:2px 8px;margin-bottom:10px;font-size:14px;display:grid}.slider output{color:var(--muted);font-variant-numeric:tabular-nums}.slider input{width:100%;accent-color:var(--accent);grid-column:1/-1}.object-title{margin:0 0 2px;font-weight:600}#object-edit .slider:first-of-type{margin-top:10px}#edits-summary{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 12px;display:flex}#edits-summary[hidden]{display:none}#select-hint{flex-basis:100%}.select-row{justify-content:space-between;align-items:center;gap:8px;margin:8px 0;font-size:14px;display:flex}.select-row select{font:inherit;color:var(--fg);background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:4px 6px;font-size:13px}.model-task{flex-basis:100%}.model-task[hidden]{display:none}.model-box{margin:12px 0 4px}.official-area{flex-direction:column;gap:8px;display:flex}.explode{margin-top:10px}.slider.explode[hidden],.official-area[hidden]{display:none}.official-area .hint{margin:0}.official-area .link{align-self:flex-start}.official-model{background:var(--surface);border:1px solid var(--border);border-radius:8px;margin-bottom:8px;padding:8px 10px}.official-model .hint{margin:0 0 6px}.official-buttons{grid-template-columns:1fr 1fr;gap:6px;display:grid}#official-progress{margin-top:8px}.official-buttons button{padding:6px 8px;font-size:13px}#object-model-find,#object-model-upload{width:100%}#object-model-upload{margin-top:6px}.model-results{border:1px solid var(--border);border-radius:8px;max-height:220px;margin:6px 0 0;padding:0;list-style:none;overflow-y:auto}.model-results li{grid-template-columns:1fr auto;align-items:center;gap:2px 8px;padding:6px 8px;font-size:13px;display:grid}.model-results li+li{border-top:1px solid var(--border)}.model-results li.with-thumb{grid-template-columns:56px 1fr auto}.model-results img{object-fit:cover;border-radius:4px;grid-row:1/span 2;width:56px;height:42px}.model-results .source{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-size:11px;font-weight:600}.model-results .restricted{color:var(--warn-fg);font-weight:600}.model-search{gap:6px;margin-top:6px;display:flex}.model-search input{min-width:0;font:inherit;color:var(--fg);background:var(--surface);border:1px solid var(--border);border-radius:6px;flex:1;padding:4px 6px;font-size:13px}.sketchfab-login{margin-top:6px}.token-row{gap:6px;margin-top:4px;display:flex}.token-row input{min-width:0;font:inherit;color:var(--fg);background:var(--surface);border:1px solid var(--border);border-radius:6px;flex:1;padding:4px 6px;font-size:13px}#sketchfab-forget{margin-top:4px;font-size:12px}.model-results .meta{color:var(--muted);grid-column:1;font-size:12px}.model-results button{grid-area:1/-2/span 2;padding:4px 10px}.model-results li.with-thumb .meta,.model-results li.with-thumb a{grid-column:2}#object-model-current .actions{margin-top:6px}.edit-actions{gap:12px;display:flex}button.link{color:var(--accent);font-size:inherit;background:0 0;border:none;padding:0;text-decoration:underline}button.link:disabled{color:var(--muted);text-decoration:none}.floating-card{background:var(--bg);box-shadow:var(--shadow);border-radius:12px;padding:16px}.overlay-right{z-index:4;width:300px;max-height:calc(100% - 24px - var(--footer-h) - var(--export-space,308px));flex-direction:column;gap:8px;display:flex;position:absolute;top:12px;right:12px;overflow-y:auto}.overlay-right>*{flex-shrink:0}.overlay-hint{color:var(--muted);background:color-mix(in srgb, var(--bg) 88%, transparent);box-shadow:var(--shadow);border-radius:10px;margin:0;padding:8px 12px;font-size:12px;line-height:1.5}.export-panel{right:12px;bottom:calc(12px + var(--footer-h));z-index:4;width:300px;max-height:calc(100% - 24px - var(--footer-h));position:absolute;overflow-y:auto}@media (width<=600px){.export-panel,.overlay-right{width:auto;left:8px;right:8px}.export-panel{bottom:calc(8px + var(--footer-h))}.overlay-right{top:auto;bottom:calc(8px + var(--footer-h))}.nav-hint{display:none}}.fields{grid-template-columns:1fr auto;align-items:center;gap:6px 10px;font-size:14px;display:grid}.field{color:var(--muted)}.field input{width:72px;font:inherit;color:var(--fg);background:var(--surface);border:1px solid var(--border);text-align:right;font-variant-numeric:tabular-nums;border-radius:6px;padding:4px 6px}.stepper{align-items:stretch;display:inline-flex}.stepper input{appearance:textfield}.stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.stepper .steps{flex-direction:column;margin-left:2px;display:flex}.stepper .steps button{border-radius:3px;padding:0 4px;font-size:9px;line-height:1.2}.field.pair input{width:66px}.pieces .hint{margin:8px 0 0}.msg{box-sizing:content-box;height:calc(var(--lines,3) * 1.45em);line-height:1.45;overflow-y:auto}.msg[hidden]{display:none}.warning.ok{background:var(--surface);color:var(--muted)}.pieces .bad{color:var(--warn-fg);font-weight:600}.pieces .check{color:var(--muted);align-items:center;gap:6px;margin-top:6px;font-size:13px;display:flex}.pieces .check.off{opacity:.5}.pieces .check select{font:inherit;color:var(--fg);background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:2px 4px}.pieces .check input[type=number]{width:66px;font:inherit;color:var(--fg);background:var(--surface);border:1px solid var(--border);text-align:right;border-radius:6px;padding:2px 6px}.field input:focus{border-color:var(--accent);outline:none}.format{grid-template-columns:1fr 1fr;gap:8px;margin-top:12px;display:grid}.format button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}#export-files[hidden]{display:none}#preview-print{width:100%;margin-top:12px}#preview-print[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.scene-export{align-items:center;gap:8px;margin-top:12px;display:flex}.scene-export .hint{flex:1;margin:0}#format-hint{margin-top:6px}
