:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#203432;background:#f4f5f1;font-synthesis:none;--ink:#152b29;--green:#b9e476;--line:#dce2d9;--muted:#65756e;--accent:#237760}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);border-radius:9px;padding:10px 14px;display:inline-flex;gap:8px;align-items:center;justify-content:center;font-weight:600;min-height:42px}button:hover{background:#edf3e9}button:disabled{cursor:default;opacity:.45}button.primary{background:var(--green);border-color:var(--green)}button.active{background:var(--ink);color:white;border-color:var(--ink)}button.danger{color:#a73529}button.ghost{background:transparent;border-color:transparent}button svg{width:20px;height:20px;flex:none}input,select{width:100%;border:1px solid #bac7bc;border-radius:7px;padding:11px;background:white;color:var(--ink);min-height:42px}input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--accent)}label{display:grid;gap:7px;font-size:13px;font-weight:600}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px}h2{font-size:22px;letter-spacing:-.5px}h3{font-size:16px}p{line-height:1.6}.muted{color:var(--muted)}.small{font-size:12px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.stack{display:grid;gap:16px}.wrap{flex-wrap:wrap}.grow{flex:1}.tag{font-size:11px;border:1px solid var(--line);border-radius:20px;padding:5px 9px;display:inline-block}.complete{background:#e5f2d9;color:#335622}.header{height:74px;padding:0 30px;background:var(--ink);color:white;display:flex;align-items:center;justify-content:space-between;gap:16px}.header button{color:white}.brand{display:flex;align-items:center;gap:12px;font-weight:750;letter-spacing:-.3px}.brand svg{width:32px;height:32px;color:var(--green)}.header .small{color:#b8c8c0}.shell{display:grid;grid-template-columns:256px 1fr;min-height:calc(100dvh - 74px)}.sidebar{border-right:1px solid var(--line);padding:28px 20px;background:#fafbf7}.sidebar h2{font-size:12px;text-transform:uppercase;letter-spacing:1.5px;color:var(--muted);margin:0 12px 22px}.project-list{display:grid;gap:8px}.project-list button{justify-content:flex-start;text-align:left;overflow-wrap:anywhere}.sidebar details{margin-top:24px}.sidebar summary{cursor:pointer;padding:10px;font-size:14px}.sidebar form{padding-top:12px}.content{padding:34px 40px;min-width:0}.empty{padding:80px 24px;text-align:center;max-width:560px;margin:auto}.empty svg{width:52px;height:52px;color:var(--accent);margin-bottom:22px}.empty h2{font-size:24px}.empty p{color:var(--muted)}.room{margin:30px 0}.room-title{display:flex;gap:10px;align-items:center;margin-bottom:14px}.capture-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:18px}.capture-card{display:block;text-align:left;padding:0;overflow:hidden;min-height:168px;border-radius:13px}.capture-visual{height:95px;background:linear-gradient(135deg,#e8ede2,#d7e2d6);display:flex;align-items:center;justify-content:center}.capture-visual svg{width:38px;height:38px;color:#647e6e}.capture-info{padding:18px}.capture-info h3{margin:0 0 10px;overflow-wrap:anywhere}.capture-info .row{gap:6px}.login{min-height:100dvh;display:grid;grid-template-columns:1.1fr 1fr}.login-story{padding:64px;background:var(--ink);color:white;display:flex;flex-direction:column;justify-content:space-between;gap:70px}.login-story h1{font-size:clamp(36px,4.3vw,66px);line-height:1.05;max-width:600px;letter-spacing:-2px}.login-story p{max-width:460px;color:#b8c8c0}.login-form{display:grid;place-content:center;padding:32px}.login-form form{width:min(350px,80vw)}.login-form h2{margin-bottom:24px}.login-form .primary{margin-top:8px}.editor-top{padding:20px 28px;background:white;border-bottom:1px solid var(--line)}.editor-top h1{font-size:22px;margin:0 0 4px}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;min-height:calc(100dvh - 176px)}.editor-main{min-width:0;padding:18px}.toolbar{display:flex;gap:6px;flex-wrap:wrap;padding-bottom:14px}.toolbar button{font-size:12px;padding:8px 10px}.guidance{min-height:46px;font-size:13px;padding:10px 12px;background:#e8eee3;border-radius:8px;margin-bottom:12px}.canvas-controls{margin-bottom:12px;font-size:12px}.canvas-controls select{width:auto;padding:6px;min-height:36px}.viewport{position:relative;overflow:auto;max-height:67dvh;min-height:220px;background:#d9dfd8;border:1px solid #c9d1c8;border-radius:10px}.scene{position:relative;width:100%;margin:auto;line-height:0;user-select:none}.scene img{display:block;width:100%;height:auto}.scene svg,.scene canvas{position:absolute;inset:0;width:100%;height:100%}.scene canvas{pointer-events:none;opacity:.42}.scene svg{touch-action:pan-x pan-y;cursor:crosshair}.scene svg circle[data-point]{touch-action:none;cursor:grab}.scene .segment{fill:none;stroke:#d2fc80;stroke-width:3;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 1px #10241a)}.scene .selected-segment{stroke:#fff;stroke-width:3}.scene .control{fill:#fff;stroke:#173a32;stroke-width:2;vector-effect:non-scaling-stroke}.scene .label{fill:white;paint-order:stroke;stroke:#173a32;stroke-width:3;stroke-linejoin:round;font-weight:600}.qualification{font-size:12px;color:#667264;margin:12px 0}.inspector{background:#fff;border-left:1px solid var(--line);padding:22px 18px;min-width:0}.inspector h2{font-size:17px;margin:0 0 16px}.measure-list{display:grid;gap:8px}.measure-item{display:block;text-align:left;padding:12px;width:100%;font-weight:400;overflow-wrap:anywhere}.measure-item.selected{border-color:var(--accent);box-shadow:inset 3px 0 var(--accent)}.measure-item strong{display:block;margin-bottom:7px;font-size:13px}.measure-item small{color:var(--muted)}.edit-box{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.metric{display:flex;justify-content:space-between;gap:8px;font-size:13px;padding:7px 0;border-bottom:1px solid #eff2ed}.metric b{font-variant-numeric:tabular-nums;text-align:right}.point-row{display:grid;grid-template-columns:30px 1fr 1fr;gap:8px;align-items:center}.point-row input{padding:6px;width:100%;font-size:12px}.point-row label{font-size:10px}.point-list{max-height:200px;overflow:auto;display:grid;gap:10px}.check{display:flex;align-items:center;gap:8px}.error{color:#9c3427;background:#fbede8;border-radius:8px;padding:11px;font-size:13px;line-height:1.5}.error:empty{display:none}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:10px;padding:14px 20px;z-index:100;box-shadow:0 6px 30px #0002;max-width:90vw;font-size:14px}dialog{border:1px solid var(--line);border-radius:16px;padding:26px;max-width:540px;width:calc(100% - 32px);box-shadow:0 25px 80px #0004}dialog::backdrop{background:#102b2977}.member{padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}.history{max-height:60vh;overflow:auto}.history article{border-bottom:1px solid var(--line);padding:12px 0;font-size:13px}.history p{margin:5px 0}.loading{padding:60px;text-align:center;color:var(--muted)}:focus-visible{outline:3px solid #4da995;outline-offset:3px}[hidden]{display:none!important}
@media(max-width:1000px){.content{padding:25px}.shell{grid-template-columns:215px 1fr}.editor-layout{grid-template-columns:minmax(0,1fr) 290px}.login-story{padding:40px}.toolbar button{flex:1}}
.editor-top .row{flex-wrap:wrap}
.scene{overflow:hidden}.scene canvas{transform-origin:0 0;image-rendering:pixelated}
.point-support{grid-column:2 / -1;margin:0;color:var(--accent);font-weight:400;line-height:1.4}.point-support.unsupported{color:#9c3427}.point-list{max-height:280px}
.scene .control.unsupported{stroke:#a73529;stroke-dasharray:3 2}.scene .control.unsupported+text{stroke:#742c22}
#depth-summary{margin:8px 0}#depth-help{margin:8px 0}
@media(max-width:720px){.editor-top #back{min-width:42px;padding:10px}.editor-top #back span{display:none}.editor-top h1{font-size:20px}}
@media(max-width:720px){.header{padding:0 16px;height:64px}.header .user-name{display:none}.shell{display:block}.sidebar{padding:16px;border-right:0;border-bottom:1px solid var(--line)}.sidebar h2{margin-bottom:10px}.project-list{display:flex;overflow:auto}.project-list button{flex-shrink:0;max-width:240px}.sidebar details{margin-top:8px}.content{padding:22px 16px}.content h1{font-size:25px}.editor-layout{display:flex;flex-direction:column}.editor-top{padding:16px}.editor-top>.row{align-items:flex-start}.editor-main{padding:12px}.inspector{border-left:0;border-top:1px solid var(--line)}.viewport{max-height:55dvh;min-height:160px}.toolbar button{flex:0 0 calc(25% - 5px);flex-direction:column;padding:8px 3px}.toolbar button span{font-size:10px}.canvas-controls{flex-wrap:wrap}.login{display:block}.login-story{padding:32px;gap:36px}.login-story h1{font-size:36px}.login-story .tagline{display:none}.login-form{padding:35px 24px}.login-form form{width:min(380px,85vw)}.empty{padding:45px 10px}.measure-list{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.editor-top .small{max-width:170px;overflow-wrap:anywhere}}
