:root{--bg:#fff;--panel:#fafafa;--line:#e7e7e4;--text:#1c1d1a;--muted:#7b7d76;--accent:#7cc414;--accent-ink:#2f4a06;--accent-soft:#eef8de;--danger:#c2410c;--radius:10px}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;font:13px/1.4 ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}button,input,select{font:inherit;color:inherit}.studio{grid-template-columns:270px 1fr;height:100vh;display:grid}.studio.with-panel{grid-template-columns:270px 1fr 290px}.editor-head .close{color:var(--muted);margin-left:auto;padding:2px 9px;font-size:16px;line-height:1.2}.panel{background:var(--panel);flex-direction:column;gap:18px;padding:14px;display:flex;overflow-y:auto}.panel.left{border-right:1px solid var(--line)}.panel.right{border-left:1px solid var(--line)}.panel section{flex-direction:column;gap:8px;display:flex}.brand{align-items:center;gap:8px;font-size:14px;font-weight:650;display:flex}.brand .dot{background:var(--accent);border-radius:50%;width:10px;height:10px}.label{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-size:11px;font-weight:600}.label.small{text-transform:none;letter-spacing:0;font-weight:500}.muted{color:var(--muted)}.error{color:var(--danger);margin:0}select,input:not([type]),input[type=text]{border:1px solid var(--line);background:#fff;border-radius:8px;width:100%;padding:7px 9px}button{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:8px;padding:7px 10px}button:hover:not(:disabled){border-color:#cfd0cb}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--text);color:#fff;border-color:var(--text);font-weight:600}.row{gap:6px;display:flex}input[type=range]{width:100%;accent-color:var(--accent)}input[type=color]{border:1px solid var(--line);background:0 0;border-radius:6px;width:44px;height:28px;padding:0}.job{color:var(--muted);flex-direction:column;gap:4px;font-size:12px;display:flex}.job.error{color:var(--danger)}.bar{background:var(--line);border-radius:3px;height:6px;overflow:hidden}.bar>div{background:var(--accent);height:100%;transition:width .3s}.cams{flex-direction:column;gap:4px;display:flex}.cam{text-align:left;justify-content:space-between;display:flex}.cam small{color:var(--muted)}.cam.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink);font-weight:600}.seg{border:1px solid var(--line);background:#fff;border-radius:8px;display:flex;overflow:hidden}.seg button{border:0;border-radius:0;flex:1;padding:6px 4px;font-size:12px}.seg button+button{border-left:1px solid var(--line)}.seg button.on{background:var(--accent-soft);color:var(--accent-ink);font-weight:600}.stage{background:#f0f0ee;min-width:0;position:relative}.viewer,.viewer-host,.viewer canvas{width:100%;height:100%;display:block;position:absolute;inset:0}.viewer-host{cursor:crosshair;touch-action:none}.viewer-overlay{color:var(--muted);background:#ffffffa6;flex-direction:column;justify-content:center;align-items:center;gap:10px;display:flex;position:absolute;inset:0}.viewer-overlay.error{color:var(--danger)}.spinner{border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;width:22px;height:22px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.hint{pointer-events:none;color:#fff;white-space:nowrap;background:#1c1d1ab8;border-radius:99px;padding:6px 12px;font-size:12px;position:absolute;bottom:14px;left:50%;transform:translate(-50%)}.empty{text-align:center;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;padding:40px;display:flex;position:absolute;inset:0}.empty h2{color:var(--text);margin:0 0 6px;font-size:18px}.empty p{max-width:420px;margin:0}.mats{flex-direction:column;gap:2px;max-height:38vh;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.mats li{cursor:pointer;border-radius:7px;align-items:center;gap:8px;padding:6px 8px;display:flex}.mats li:hover{background:#f0f0ed}.mats li.active{background:var(--accent-soft);color:var(--accent-ink);font-weight:600}.mats .name{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.badge{background:var(--accent);color:#fff;border-radius:99px;padding:1px 6px;font-size:10px}.sw{border:1px solid #0000001f;border-radius:4px;flex:none;width:14px;height:14px}.sw.big{border-radius:7px;width:30px;height:30px}.editor{flex-direction:column;gap:12px;display:flex}.editor-head{align-items:center;gap:10px;display:flex}.editor-head div{flex-direction:column;min-width:0;display:flex}.editor-head strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.editor-head small{color:var(--muted)}.field{flex-direction:column;gap:4px;display:flex}.field.inline{flex-direction:row;justify-content:space-between;align-items:center}.texgrid{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.tex{aspect-ratio:1;background-position:50%;background-size:cover;border-radius:8px;padding:0}.tex.on{outline:2px solid var(--accent);outline-offset:1px}.texgrid{grid-template-columns:repeat(3,1fr)}.tex{position:relative;overflow:hidden}.tex span{text-align:left;white-space:nowrap;text-overflow:ellipsis;background:#ffffffd9;padding:2px 4px;font-size:10px;position:absolute;bottom:0;left:0;right:0;overflow:hidden}.switch{cursor:pointer;align-items:center;gap:8px;font-weight:500;display:flex}.switch input{appearance:none;background:var(--line);cursor:pointer;border-radius:99px;width:34px;height:20px;transition:background .15s;position:relative}.switch input:after{content:"";background:#fff;border-radius:50%;width:16px;height:16px;transition:left .15s;position:absolute;top:2px;left:2px;box-shadow:0 1px 2px #0003}.switch input:checked{background:var(--accent)}.switch input:checked:after{left:16px}.hidden-list{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.hidden-list li{justify-content:space-between;align-items:center;gap:6px;display:flex}.hidden-list button{padding:3px 8px;font-size:12px}button.link{text-align:left;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:0;padding:0;overflow:hidden}.budget .kv{justify-content:space-between;font-size:12px;display:flex}.budget .kv span{color:var(--muted)}.options{flex-direction:column;gap:4px;display:flex}.opt{text-align:left;justify-content:space-between;align-items:center;display:flex}.opt small{color:var(--muted);font-size:10px}.opt.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink);font-weight:600}.muted.small{margin:0;font-size:12px}.ellipsis{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.group-list{flex-direction:column;gap:6px;max-height:40vh;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.group-list li{border:1px solid var(--line);background:#fff;border-radius:8px;flex-direction:column;gap:3px;padding:6px 8px;display:flex}.group-list li.active{border-color:var(--accent);background:var(--accent-soft)}.group-list .link{font-size:12px;font-weight:600}.group-list select{padding:4px 6px;font-size:12px}.preload .kv{justify-content:space-between;font-size:12px;display:flex}.preload small{font-size:11px}.house-loading{z-index:5;background:#f6f6f3;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.house-loading .card{border:1px solid var(--line);background:#fff;border-radius:14px;flex-direction:column;gap:10px;width:min(420px,86%);padding:24px;display:flex}.house-loading h2{margin:0;font-size:16px}.house-loading .bar{height:8px}.house-loading .kv{justify-content:space-between;font-size:13px;display:flex}
