:root{--ink:#24332c;--muted:#6d7771;--line:#dbe1dc;--green:#24634b;--yellow:#efc95c;--paper:#fff}*{box-sizing:border-box}body{margin:0;font:14px system-ui,sans-serif;color:var(--ink);background:#eef1ee}button,input,select{font:inherit;color:inherit}button{min-height:44px;min-width:44px;border:1px solid var(--line);background:white;border-radius:5px;padding:8px 12px;cursor:pointer}button:hover{background:#eef4ef}button:disabled{opacity:.35;cursor:default}input,select{width:100%;border:1px solid var(--line);border-radius:4px;padding:10px;min-height:44px;background:white}input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--green)}input[type=color]{padding:4px}header{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:10px 16px}header img{width:95px;max-height:40px}header strong{font-size:13px;margin-right:10px}header #title{max-width:260px;border:none;background:#f3f5f3}#saved{margin-left:auto;color:var(--muted);font-size:12px}main{height:calc(100dvh - 70px);display:grid;grid-template-columns:250px minmax(0,1fr) 250px}aside{padding:16px;background:white;overflow:auto}#left{border-right:1px solid var(--line);display:flex;flex-direction:column;gap:16px}#right{border-left:1px solid var(--line)}section{padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:16px}h2{font-size:14px;margin:0 0 14px;font-weight:650}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.heading h2{margin:0}.dimensions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0 4px}label{font-size:12px;color:var(--muted)}.dimensions input{padding:8px 4px;margin-top:5px;font-size:13px}.wide{display:block;margin-top:14px}.wide input,.wide select{margin-top:6px}small{font-size:11px;color:var(--muted)}.check{display:flex;align-items:center;gap:7px;color:var(--ink);margin:14px 0}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#184f39}.danger{color:#ac3838}.actions{display:flex;gap:6px;margin:15px 0}#inspector>button{width:100%;margin-bottom:8px}.inventory{flex:1;min-height:150px;overflow:auto;margin:0}.inventory button.item{width:100%;text-align:left;margin-bottom:6px;display:flex;align-items:center;gap:10px;border-color:transparent}.item.selected{background:#e7f1eb!important;border-color:var(--green)!important}.swatch{width:12px;height:30px;border-radius:2px;flex-shrink:0}.item strong,.item small{display:block}.item small{margin-top:3px}.workspace{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative}.toolbar{display:flex;align-items:center;gap:8px;padding:10px;background:#fff;flex-wrap:wrap;border-bottom:1px solid var(--line)}.segmented{display:flex;flex-shrink:0}.segmented button{border-radius:0;padding:8px 10px}.segmented button:first-child{border-radius:5px 0 0 5px}.segmented button:last-child{border-radius:0 5px 5px 0}.segmented .active{background:var(--ink);color:#fff}.toolbar .check{margin:0}.toolbar select{width:90px}.zoom-tools{margin-left:auto}#stage{position:relative;flex:1;min-height:250px;overflow:hidden;background:#f1f4f1}canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none}.view-label{position:absolute;left:20px;top:18px;font-size:11px;color:var(--muted);pointer-events:none}#ruler{position:absolute;bottom:14px;left:20px;font-size:12px;color:var(--muted);pointer-events:none}footer{height:50px;flex-shrink:0;padding:8px 16px;background:white;display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:10px}footer button{min-height:32px;font-size:12px}#notice{position:absolute;bottom:65px;left:20px;right:20px;background:var(--ink);color:white;padding:14px;border-radius:5px;z-index:3}#empty{color:var(--muted);padding:20px 0}.issue{font-size:12px;padding:9px 0;border-bottom:1px solid var(--line);color:#9f4b30;overflow-wrap:anywhere}.ok{font-size:12px;color:var(--green)}[hidden]{display:none!important}@media(max-width:1150px){main{grid-template-columns:210px minmax(0,1fr) 210px}aside{padding:12px}header #saved{display:none}header #title{max-width:190px}.toolbar{gap:5px}.toolbar button{padding:8px}.toolbar select{width:90px}}@media(max-width:760px){header{height:60px;padding:8px;gap:5px}header img{width:62px}header strong{display:none}header #title{min-width:0;flex:1;max-width:none}header button span{display:none}main{height:auto;min-height:calc(100dvh - 60px);grid-template-columns:1fr}#left{order:2;display:block;border:0}#right{order:3;border:0}.workspace{height:65dvh;order:1}#left .inventory{max-height:250px}.toolbar{padding:6px}.toolbar .check{display:none}footer{padding:6px;font-size:10px}.dimensions input{padding:10px}}@media print{header button,aside,.toolbar,footer,#notice{display:none!important}main{display:block;height:80vh}.workspace{height:100%}header{height:60px}}
:root #scene3d{position:absolute;inset:0;touch-action:none}
#scene3d canvas{position:absolute;inset:0;touch-action:none}
#measurement{position:absolute;z-index:4;pointer-events:none;padding:7px 10px;border:1px solid #b6cbbc;border-radius:5px;background:#fff;box-shadow:0 2px 8px #20372920;color:#173c2b;font-size:12px;font-weight:650;white-space:nowrap}
.inspect-bar{flex-shrink:0;background:#fff;border-bottom:1px solid var(--line);padding:8px 10px;display:flex;flex-direction:column;gap:8px}
.camera-views{display:flex;flex-wrap:wrap;gap:4px}
.camera-views button{font-size:12px;padding:8px 10px;flex:1;white-space:nowrap}
.camera-views button.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.layer-tools{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-height:44px}
.layer-tools select{width:125px;max-width:100%;font-size:12px}
.layer-tools .check{margin:0;font-size:12px;min-height:44px}
#layer-summary{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.height-info{margin:10px 0;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.height-info div:first-child{color:var(--green);font-weight:650}
.item span:last-child{min-width:0;overflow-wrap:anywhere}
button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:760px){.workspace{height:max(72dvh,620px)}.inspect-bar{padding:6px}.camera-views{gap:3px}.camera-views button{padding:8px 6px}.layer-tools{gap:4px 8px}#layer-summary{flex-basis:100%}.view-label{top:10px;left:12px}}
@media print{.inspect-bar{display:none}}
