:root{color:#e7eefc;background:#09111f;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:14px}*{box-sizing:border-box}body{min-width:320px;margin:0;overflow:hidden}button,input{font:inherit}button{color:#dbeafe;cursor:pointer;background:#17243a;border:1px solid #2b3c58;border-radius:6px;padding:6px 9px}button:hover,button.active{background:#1d4e80;border-color:#3b82f6}.topbar{background:#101a2b;border-bottom:1px solid #24334d;justify-content:space-between;align-items:center;gap:16px;height:62px;padding:0 18px;display:flex}.brand{white-space:nowrap;align-items:center;gap:9px;display:flex}.brand strong{letter-spacing:.02em;display:block}.brand small{color:#8da1bf;font-size:11px}.brand-mark{background:#2563eb;border-radius:8px;place-items:center;width:31px;height:31px;font-size:11px;font-weight:800;display:grid}.toolbar,.view-buttons{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;display:flex}.file-button{color:#dbeafe;cursor:pointer;background:#17243a;border:1px solid #2b3c58;border-radius:6px;padding:6px 9px}main{grid-template-columns:310px minmax(0,1fr);height:calc(100vh - 62px);display:grid}.sidebar{background:#0e1727;border-right:1px solid #24334d;padding:15px;overflow:auto}.sidebar section{border-bottom:1px solid #273750;margin-bottom:15px;padding-bottom:14px}.sidebar h2{letter-spacing:.08em;color:#95aac9;text-transform:uppercase;margin:0 0 10px;font-size:12px}.section-heading{justify-content:space-between;align-items:center;display:flex}.section-heading div{gap:4px;display:flex}.section-heading button{padding:4px 6px;font-size:11px}.segment-list{gap:7px;display:grid}.segment-row{grid-template-columns:minmax(0,1fr) 26px 100px;align-items:center;gap:7px;display:grid}.segment-name{cursor:pointer;align-items:center;gap:7px;min-width:0;display:flex}.segment-name span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.segment-name i{border-radius:50%;flex:none;width:10px;height:10px}.segment-row input[type=color]{appearance:none;cursor:pointer;background:0 0;border:0;width:23px;height:23px;padding:0}.opacity{align-items:center;gap:5px;display:flex}.opacity input{accent-color:#60a5fa;width:69px}.opacity output{color:#9db1ce;width:28px;font-size:11px}.window-section label{color:#b6c6dd;grid-template-columns:1fr auto;gap:4px;margin-top:10px;display:grid}.window-section input{accent-color:#60a5fa;grid-column:1/-1}.window-section output{color:#fff}.preset-grid{grid-template-columns:1fr 1fr;gap:5px;display:grid}.preset-grid button{font-size:12px}.hint{color:#91a4c2;font-size:12px;line-height:1.45}.hint p{margin:0}.viewer-wrap{background:#050914;outline:none;min-width:0;min-height:0;position:relative}.viewer-wrap.dragging{box-shadow:inset 0 0 0 3px #60a5fa}.viewer-wrap.dragging #drop-message{opacity:1}.viewer-wrap canvas{width:100%;height:100%;display:block}.loading,.error{text-align:center;background:#0e1727eb;border:1px solid #334866;border-radius:10px;flex-direction:column;align-items:center;gap:8px;max-width:360px;padding:18px 24px;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.loading span{color:#9dafc8;font-size:12px}.spinner{border:3px solid #385174;border-top-color:#60a5fa;border-radius:50%;width:24px;height:24px;animation:.8s linear infinite spin}.error{color:#fecaca}.readout{background:#09111fd9;border:1px solid #31435e;border-radius:7px;gap:14px;padding:8px 11px;display:flex;position:absolute;bottom:15px;left:16px}.readout span{color:#b8c8e0}.readout strong{color:#fff}.orientation-labels{color:#7dd3fc;pointer-events:none;gap:6px;font-size:11px;font-weight:700;display:flex;position:absolute;top:14px;right:15px}.orientation-labels span{background:#09111fb3;border-radius:3px;padding:3px 5px}#drop-message{opacity:0;pointer-events:none;color:#dbeafe;background:#09111fc7;border:2px dashed #60a5fa;place-items:center;font-weight:600;transition:all .15s;display:grid;position:absolute;inset:25%}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=850px){body{overflow:auto}.topbar{align-items:flex-start;height:auto;min-height:62px;padding:10px 12px}.toolbar{justify-content:flex-start}.topbar{flex-direction:column}main{grid-template-columns:1fr;height:auto}.sidebar{border-top:1px solid #24334d;border-right:0;order:2}.viewer-wrap{height:65vh;min-height:400px}.segment-row{grid-template-columns:minmax(0,1fr) 28px 130px}}.loading[hidden],.error[hidden]{display:none}
