:root{--bg:#f4f3f0;--panel:#fff;--line:#dedbd4;--text:#24231f;--muted:#77746c;--accent:#1f6feb;--danger:#c92a2a;color:var(--text);font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:13px}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);overflow:hidden}.app{flex-direction:column;height:100%;display:flex}.body{flex:1;min-height:0;display:flex}.splash{height:100%;color:var(--muted);text-align:center;place-items:center;padding:24px;font-size:15px;display:grid}button,select,input{font:inherit;color:inherit}button{background:var(--panel);border:1px solid var(--line);cursor:pointer;white-space:nowrap;border-radius:6px;padding:4px 9px}.toolbar button{padding:4px 7px}button:hover:not(:disabled){border-color:#b9b5ab}button:disabled{opacity:.45;cursor:default}button.on,button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.danger{color:var(--danger)}button.link{color:var(--accent);background:0 0;border:0;padding:0;font-size:11px}button.icon{background:0 0;border:0;padding:0 3px;font-size:12px;line-height:1}button.icon.off{opacity:.35}.toolbar{background:var(--panel);border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:4px;padding:6px 10px;display:flex}.brand{font-size:14px}.apartments{background:#efede8;border-radius:8px;gap:2px;margin:0 8px 0 4px;padding:2px;display:flex}.apartments button{color:var(--muted);background:0 0;border:0;border-radius:6px;padding:4px 10px}.apartments button.on{background:var(--panel);color:var(--text);font-weight:600;box-shadow:0 1px 2px #00000026}.sep{background:var(--line);width:1px;height:20px;margin:0 2px}.grow{flex:1}.inline{color:var(--muted);align-items:center;gap:6px;display:flex}.inline select{color:var(--text);border:1px solid var(--line);background:var(--panel);border-radius:6px;padding:3px 4px}.seg{display:flex}.seg button{border-radius:0;margin-left:-1px}.seg button:first-child{border-radius:6px 0 0 6px;margin-left:0}.seg button:last-child{border-radius:0 6px 6px 0}.export{border:1px solid var(--line);background:var(--panel);cursor:pointer;border-radius:6px;width:84px;padding:4px 6px}.save{color:var(--muted);text-align:right;min-width:50px;font-size:12px}.save.error{color:var(--danger);font-weight:600}.sidebar,.inspector{background:var(--panel);flex-direction:column;flex:none;width:250px;min-height:0;display:flex}.sidebar{border-right:1px solid var(--line)}.inspector{border-left:1px solid var(--line);width:270px}.scroll{flex:1;padding:6px 10px 20px;overflow-y:auto}.tabs{border-bottom:1px solid var(--line);display:flex}.tabs button{color:var(--muted);background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;flex:1;padding:8px 4px}.tabs button.on{color:var(--text);border-bottom-color:var(--accent);background:0 0;font-weight:600}.badge{background:var(--accent);color:#fff;border-radius:9px;margin-left:5px;padding:0 6px;font-size:11px}h3{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:16px 0 8px;font-size:12px}h3:first-child{margin-top:6px}h4{align-items:baseline;gap:6px;margin:12px 0 4px;font-size:12px;display:flex}h4 small{color:var(--muted);font-weight:400}.muted{color:var(--muted);margin:4px 0 8px;line-height:1.45}.pad{padding:8px 0}code{background:#efede8;border-radius:4px;padding:0 4px;font-size:12px}.row{cursor:pointer;border-radius:5px;align-items:center;gap:6px;min-height:26px;padding:4px 6px;display:flex}.row:hover{background:#f1efea}.row.selected{background:#e2ecfd}.row.dim .name,.row.dim .swatch{opacity:.4}.row .name{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.row small{color:var(--muted)}.row .add{color:var(--accent);font-weight:700}.swatch{border:1px solid #0003;border-radius:2px;flex:none;width:10px;height:10px}.warn{color:#fff;background:var(--danger);border-radius:50%;place-items:center;width:14px;height:14px;font-size:10px;font-weight:700;display:grid}.swatches{grid-template-columns:repeat(6,1fr);gap:4px;margin-bottom:4px;display:grid}.swatches.small{grid-template-columns:repeat(8,1fr)}.swatches button,.swatch-custom{aspect-ratio:1;background-position:50%;background-size:cover;border:1px solid #0000002e;border-radius:6px;padding:0;position:relative;overflow:hidden}.swatches button:hover,.swatch-custom:hover{outline-offset:1px;outline:2px solid #9ec1ff}.swatches button.on,.swatch-custom.on{outline:2px solid var(--accent);outline-offset:1px}.swatch-custom{cursor:pointer;color:var(--muted);background:conic-gradient(#e66,#ee6,#6e6,#6ee,#66e,#e6e,#e66);place-items:center;font-size:16px;display:grid}.swatch-custom.on{color:#0000}.swatch-custom input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.current{flex-wrap:wrap;align-items:baseline;gap:8px;margin:2px 0 6px;font-weight:600;display:flex}.current .link{font-weight:400}.field.part span{align-items:center;gap:6px;display:flex}.field.part i{border:1px solid #0003;border-radius:3px;width:10px;height:10px;display:inline-block}h5{color:var(--muted);margin:12px 0 5px;font-size:11px;font-weight:600}.search{border:1px solid var(--line);border-radius:6px;width:100%;margin:2px 0 4px;padding:5px 8px}.cards{grid-template-columns:1fr 1fr;gap:6px;display:grid}.card{text-align:left;white-space:normal;flex-direction:column;align-items:stretch;gap:2px;padding:5px;display:flex}.card img,.card .noimg{aspect-ratio:4/3;object-fit:cover;background:#eceae4;border-radius:4px;width:100%}.card small{color:var(--muted);font-size:11px}.proposal{border:1px solid var(--line);border-radius:8px;margin-top:10px;padding:2px 10px 10px}.proposal ul,.notes{color:var(--muted);margin:4px 0 8px;padding-left:16px;line-height:1.45}.notes.bad{color:var(--danger)}.field{align-items:center;gap:6px;margin:4px 0;display:flex}.field span{color:var(--muted);flex:1}.field input[type=number]{width:76px}.field input,.field select{border:1px solid var(--line);background:#fff;border-radius:5px;min-width:0;padding:3px 5px}.field input:disabled{color:var(--muted);background:#f3f2ee}.field input[type=color]{width:40px;height:24px;padding:0}.field em{color:var(--muted);width:22px;font-size:11px;font-style:normal}.field.wide{flex-direction:column;align-items:stretch;gap:2px}.field.wide input,.field.wide select{width:100%}.grid2{grid-template-columns:1fr;display:grid}.checks{gap:14px;margin:6px 0;display:flex}.check{align-items:center;gap:5px;margin:4px 0;display:flex}.buttons{flex-wrap:wrap;gap:6px;margin:8px 0;display:flex}.views{flex:1;grid-template-columns:1fr;min-width:0;display:grid}.views.split{grid-template-columns:1fr 1fr}.pane{min-width:0;min-height:0;position:relative;overflow:hidden}.pane+.pane{border-left:1px solid var(--line)}.plan{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;background:#f7f6f3;width:100%;height:100%;display:block}.plan.tool-ruler,.plan.tool-addwall{cursor:crosshair}.plan text{fill:#222;pointer-events:none;font-family:system-ui,sans-serif}.plan .room-label{fill:#4a4840;font-weight:600}.plan .room-area{fill:#6f6c63}.plan .entity{cursor:move}.plan .entity.locked{cursor:pointer}.plan .entity-label,.plan .dim-label{paint-order:stroke;stroke:#fff;stroke-linejoin:round}.plan .dim-label{fill:var(--accent);font-weight:600}.plan .ruler-label{fill:#d6336c}.plan .handle{fill:#fff;stroke:var(--accent);cursor:pointer}.plan .room-handle{stroke:#8a6534}.plan .rotate-handle{cursor:grab}.view3d{width:100%;height:100%;position:relative}.hint{color:#fff;pointer-events:none;background:#141414b8;border-radius:16px;padding:6px 12px;font-size:12px;position:absolute;bottom:14px;left:50%;transform:translate(-50%)}.buttons.scenes button{text-shadow:0 0 3px #fffc;border:1px solid #00000026;padding:4px 8px;font-size:12px}.field input[type=range]{width:100%}.lighting{border-radius:6px;display:flex;position:absolute;top:8px;right:8px;overflow:hidden;box-shadow:0 1px 4px #00000040}.lighting button{background:#ffffffe0;border:0;border-radius:0;padding:4px 9px;font-size:12px}.lighting button.on{color:#fff;background:#1f6feb}.folder{margin-bottom:2px}.folder-head{text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;width:100%;padding:6px 2px;font-size:12px;font-weight:600;display:flex}.folder-head:hover{background:#0000000a}.folder-head small{color:var(--muted);margin-left:auto;font-weight:400}.folder-head .chev{width:10px;color:var(--muted)}.folder .cards{margin:2px 0 8px}.card{cursor:pointer;border:1px solid var(--line);background:var(--panel,#fff);border-radius:6px;position:relative}.card:hover{border-color:#1f6feb}.card .move{opacity:0;border:1px solid var(--line);background:#ffffffeb;border-radius:4px;padding:1px 4px;font-size:11px;line-height:1.2;position:absolute;top:8px;right:8px}.card:hover .move,.card .move:focus{opacity:1}.card select{width:100%;font-size:11px}.modal-back{z-index:50;background:#00000059;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.modal{background:var(--panel);white-space:normal;border-radius:12px;width:min(480px,100%);max-height:90vh;padding:18px 20px;overflow:auto;box-shadow:0 10px 40px #00000040}.modal h2{margin:0 0 8px;font-size:17px}.modal p{line-height:1.45}.modal-actions{justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.choice{flex-direction:column;align-items:flex-start;gap:4px;margin:12px 0;display:flex}.choice small{line-height:1.4}.qr{width:220px;margin:8px auto}.qr svg{width:100%;height:auto;display:block}.muted{color:var(--muted)}.error{color:var(--danger)}code{word-break:break-all;background:#efede8;border-radius:4px;padding:1px 4px}.welcome{max-width:520px;padding:calc(32px + env(safe-area-inset-top)) 22px 32px;height:100%;margin:0 auto;font-size:16px;line-height:1.5;overflow:auto}.welcome h1{margin:0 0 16px;font-size:26px}.tip{background:#fff7d6;border:1px solid #ecd98a;border-radius:10px;margin-bottom:16px;padding:12px 14px}label.button{cursor:pointer;border-radius:10px;padding:12px 18px;display:inline-block}label.button.primary{background:var(--accent);color:#fff}label.button.disabled{opacity:.6;pointer-events:none}.import{margin:12px 0}.device-info p{margin:4px 0 8px}.app.compact{height:100%}.compact .mbar{padding:calc(6px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) 6px calc(8px + env(safe-area-inset-left));background:var(--panel);border-bottom:1px solid var(--line);align-items:center;gap:4px;display:flex}.compact .mbar>*{flex:none}.compact .mbar .inline,.compact .mbar .apartment-select{flex:0 auto;min-width:0}.compact .mbar .inline select{width:100%}.compact .mbar button{padding:6px 9px}.compact .mbar select{border:1px solid var(--line);background:var(--panel);border-radius:8px;min-width:0;max-width:40vw;padding:6px 4px}.compact button,.compact select,.compact input{font-size:16px}.compact button{border-radius:8px;padding:6px 10px}.compact .views{flex:1;min-height:0;display:block;position:relative}.compact .views>.pane{position:absolute;inset:0}.compact .mtabs{background:var(--panel);border-top:1px solid var(--line);padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);display:flex}.compact .mtabs button{color:var(--muted);background:0 0;border:0;border-radius:0;flex:1;padding:12px 4px;font-weight:600}.compact .mtabs button.on{color:var(--accent);box-shadow:inset 0 3px 0 var(--accent);background:0 0}.compact .mmenu{z-index:40;background:#0000004d;position:fixed;inset:0}.compact .mmenu-panel{background:var(--panel);max-height:85%;padding:calc(10px + env(safe-area-inset-top)) 14px 14px;border-radius:0 0 14px 14px;position:absolute;top:0;left:0;right:0;overflow:auto;box-shadow:0 8px 30px #00000040}.compact .mmenu .row{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.compact .mmenu .row.end{justify-content:flex-end;margin-top:16px}.compact .sheet{z-index:20;background:var(--panel);border-radius:14px 14px 0 0;flex-direction:column;height:62%;display:flex;position:absolute;bottom:0;left:0;right:0;box-shadow:0 -6px 24px #0000002e}.compact .sheet-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:8px 12px;display:flex}.compact .sheet .sidebar,.compact .sheet .inspector{background:0 0;border:0;flex:1;width:100%}.compact .scroll{font-size:15px}@media (width>=700px){.compact .sheet{border-radius:14px 0 0 14px;width:360px;height:auto;top:0;left:auto}}.selbar{z-index:10;background:#fffffff2;border-radius:12px;flex-wrap:wrap;align-items:center;gap:6px;padding:8px;display:flex;position:absolute;bottom:8px;left:8px;right:8px;box-shadow:0 2px 12px #0003}.selname{text-overflow:ellipsis;white-space:nowrap;flex:100%;font-weight:600;overflow:hidden}@media (width>=560px){.selname{flex:1}}.compact .lighting button{padding:6px 10px;font-size:14px}.walkstick{touch-action:none;z-index:5;background:#ffffff40;border:2px solid #fff9;border-radius:50%;place-items:center;width:120px;height:120px;display:grid;position:absolute;bottom:54px;left:24px}.walkstick .knob{pointer-events:none;background:#ffffffd9;border-radius:50%;width:50px;height:50px;box-shadow:0 1px 6px #0000004d}.view3d canvas{touch-action:none}html{-webkit-text-size-adjust:100%}body{overscroll-behavior:none;-webkit-tap-highlight-color:transparent}
