:root {
  font: 16px/1.55 "Instrument Sans","Segoe UI","Microsoft YaHei",sans-serif;
  color:#18332e;background:#f3f4ee;--line:#d4dcd2;--green:#215e4c;--muted:#54695f;
}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,.filebtn,summary{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,.filebtn:focus-within{outline:3px solid #418e9a;outline-offset:3px}
.shell{width:min(1376px,calc(100% - clamp(32px,7vw,112px)));margin:auto}
.top{background:#122f2a;color:#f5f7ee}.top-inner,.brand,.open-actions,.intro,.viewer-head,.file-heading,.viewer-foot,.legend,.export-head,.readout{display:flex;align-items:center}
.top-inner{min-height:66px;justify-content:space-between}.brand{gap:12px}.brand strong{font-size:18px;letter-spacing:.025em}.brand-mark{display:grid;place-items:center;border:1px solid #b2d5ac;border-radius:7px;color:#ddf3be;width:34px;height:34px;font-weight:750}.edition{color:#c4d9c7;font-size:13px;border-left:1px solid #476255;padding-left:12px}.top a{color:#dae7da;text-decoration:none;font-size:14px}.top a:hover,.link:hover{text-decoration:underline}
main{padding:34px 0 48px}.intro{align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}h1,h2,p{margin:0}h1{font-weight:680;font-size:clamp(30px,3.1vw,46px);letter-spacing:-.05em;line-height:1.25}.intro p{margin-top:8px;color:var(--muted);font-size:15px}.open-actions{gap:8px;flex-shrink:0}
button,.filebtn{border:1px solid transparent;border-radius:7px;padding:9px 14px;background:transparent;font-weight:600;font-size:14px}.filebtn,.primary{background:var(--green);color:white}.filebtn:hover,.primary:hover:enabled{background:#174839}.filebtn{position:relative;display:inline-flex;align-items:center;gap:5px}.filebtn input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.secondary{border-color:#becbbf;color:#2d5143;background:#fafbf6}.secondary:hover{background:#e5ecdf}.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(282px,325px);gap:16px;align-items:stretch}
.viewer,.inspector{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fcfdf8}.viewer{min-width:0;display:flex;flex-direction:column}.viewer-head,.viewer-foot{justify-content:space-between;gap:12px;padding:13px 18px}.file-heading{gap:10px;min-width:0}.file-heading strong{font:600 14px/1.45 "IBM Plex Mono",Consolas,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-type{white-space:nowrap;font-size:12px;font-weight:650;background:#e8eee1;border-radius:4px;padding:2px 7px;color:#355343}.units{color:var(--muted);font:13px Consolas,monospace}
.stage{position:relative;flex:1;min-height:380px;background:#112d29}.stage canvas{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair;display:block}.camera{position:absolute;bottom:14px;right:14px;display:flex;gap:1px;border:1px solid #54766a;border-radius:7px;overflow:hidden}.camera button{border-radius:0;padding:4px 10px;color:#d0e1d4;background:#203e35;font-size:14px}.camera button:hover{background:#36594b}.drag-hint{position:absolute;inset:8px;display:grid;place-content:center;background:#153b32e8;border:2px dashed #abdb8d;border-radius:6px;font-weight:650;color:white;pointer-events:none}.drag-hint[hidden]{display:none}
.viewer-foot{min-height:44px;flex-wrap:wrap;row-gap:5px;color:#5a6d62;font-size:12px}.legend{gap:6px}.legend .ink:not(:first-child){margin-left:8px}.ink{width:9px;height:9px;border-radius:2px;display:inline-block}.edge{background:#95b9a0}.pad{background:#b89152}.active{background:#70ab66}
.inspector{padding:21px 20px}.inspector h2{font-size:22px;letter-spacing:-.045em;margin-bottom:13px}.inspector label{display:block;font-size:13px;font-weight:650;margin:10px 0 5px}.inspector select,.inspector input{border:1px solid #bfcdbf;border-radius:6px;background:#fff;color:#1e372b;padding:8px 9px;width:100%;min-width:0;font-size:14px}.fields{display:grid;grid-template-columns:1.23fr 1fr;gap:10px;margin:4px 0 14px}.readout{margin-top:8px;justify-content:space-between;gap:6px;font-size:12px;color:var(--muted);flex-wrap:wrap}.readout output{font-family:Consolas,monospace;color:#315946}.wide{width:100%;display:flex;align-items:center;justify-content:space-between}.export{border-top:1px solid var(--line);margin-top:20px;padding-top:14px}.export-head{justify-content:space-between;font-size:13px}.link{border:0;color:var(--green);font-size:12px;padding:3px 0}.export ol{margin:6px 0 12px;padding:0;list-style:none;color:var(--muted);font-size:12px;overflow:auto;max-height:75px}.export li{padding:3px 0;overflow-wrap:anywhere}.download{border-color:#839e89;color:#1e513d;background:#eef3e8}.download:hover:enabled{background:#e1edd9}button:disabled{opacity:.48;cursor:default}
.status{margin:12px 1px;color:#425e50;font-size:14px;min-height:22px;overflow-wrap:anywhere}.status.error{color:#923e24}.status:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#70977c;margin:0 8px 2px 1px}.status.error:before{background:#b3502b}
details{border-top:1px solid var(--line);margin-top:17px;padding:12px 1px;color:var(--muted);font-size:14px}summary{width:fit-content;font-weight:600;color:#355044}details p{margin:8px 0;max-width:84ch;overflow-wrap:anywhere}noscript{padding:1rem;display:block}
@media(max-width:900px){.shell{width:calc(100% - 36px)}.intro{align-items:flex-start;flex-wrap:wrap}.workspace{grid-template-columns:minmax(0,1fr) 275px}.inspector{padding:16px}.stage{min-height:355px}}
@media(max-width:690px){.shell{width:calc(100% - 24px)}.top-inner{min-height:54px}.brand{gap:8px}.brand strong{font-size:16px}.edition,.top a{font-size:12px}main{padding-top:22px}.intro{gap:12px;margin-bottom:15px}.intro p{font-size:14px}.workspace{grid-template-columns:minmax(0,1fr);gap:12px}.stage{min-height:300px}.viewer-head,.viewer-foot{padding:10px 12px}.inspector{padding:17px}.export{margin-top:15px}.open-actions{flex-wrap:wrap}.viewer-foot{font-size:11px}.readout{justify-content:flex-start;gap:12px}}
