:root{color:#e7edf3;background:#0d1117;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}button,input{font:inherit}.shell{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);height:100%;min-width:0;background:#0d1117}.shell.package-mode{grid-template-columns:minmax(0,1fr)}.shell.package-mode .sidebar{display:none}.sidebar{display:grid;grid-template-rows:auto auto auto auto minmax(0,1fr) auto;gap:14px;min-width:0;padding:16px;border-right:1px solid #263241;background:#141b23}.brand{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand h1{margin:0;font-size:18px;font-weight:700;letter-spacing:0}.badge{padding:4px 7px;border:1px solid #344151;border-radius:6px;color:#99a9ba;font-size:12px;white-space:nowrap}.toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0;height:36px;padding:0 10px;border:1px solid #334355;border-radius:6px;color:#e7edf3;background:#1c2631;cursor:pointer}.button:hover{border-color:#55708b;background:#233142}.button:disabled{cursor:not-allowed;opacity:.5}.button svg{width:16px;height:16px;flex:0 0 auto}.options{display:grid;gap:8px}.toggle{display:flex;align-items:center;gap:9px;min-height:32px;color:#dce5ef;font-size:13px;cursor:pointer;-webkit-user-select:none;user-select:none}.toggle input{width:16px;height:16px;accent-color:#7aa2c7}.search{width:100%;height:36px;padding:0 10px;border:1px solid #334355;border-radius:6px;color:#e7edf3;background:#0f151d;outline:none}.search:focus{border-color:#7394b8}.map-list{min-height:0;overflow:auto;border:1px solid #263241;border-radius:6px;background:#0f151d}.map-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;width:100%;padding:9px 10px;border:0;border-bottom:1px solid #202a35;color:#dce5ef;background:transparent;text-align:left;cursor:pointer}.map-row:hover,.map-row.active{background:#1c2631}.map-row span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.map-row span:last-child{color:#7f90a3;font-size:12px}.empty{padding:20px 12px;color:#8da0b3;line-height:1.45}.status{display:grid;gap:8px;min-width:0;padding-top:4px;color:#aebdca;font-size:13px}.status strong{color:#e7edf3;font-weight:650}.status-warning{color:#ffbc6e}.viewer-host{position:relative;min-width:0;min-height:0}.viewer-canvas{display:block;width:100%;height:100%}.hud{position:absolute;left:12px;right:12px;bottom:12px;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;pointer-events:none}.hud-pill{max-width:min(700px,100%);padding:8px 10px;border:1px solid rgba(151,169,188,.28);border-radius:6px;color:#dce5ef;background:#0d1117c7;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:13px;pointer-events:auto}.hud-left{display:grid;gap:2px;min-width:0;pointer-events:auto}.hud-title{overflow:hidden;color:#eef4fa;font-size:13px;font-weight:600;text-overflow:ellipsis;text-shadow:0 1px 4px rgba(0,0,0,.9);white-space:nowrap}.hud-hint{color:#a4b4c5;font-size:11px;text-shadow:0 1px 4px rgba(0,0,0,.9);white-space:nowrap}.hud-hint.hidden{display:none}.hud-right{display:flex;flex:0 0 auto;align-items:center;gap:8px}.hud-button{cursor:pointer}.hud-button:hover{border-color:#55708b;background:#1c2631e6}.stats-panel{position:absolute;right:12px;bottom:52px;display:grid;gap:5px;max-width:min(260px,70vw);max-height:calc(100% - 116px);padding:10px 12px;border:1px solid rgba(151,169,188,.28);border-radius:6px;color:#c6d2de;background:#0d1117d9;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:12px;line-height:1.35;overflow:auto}.stats-panel.hidden{display:none}.embed-bar{position:absolute;top:8px;left:8px;right:8px;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;pointer-events:none}.embed-bar>*{pointer-events:auto}.embed-bar select,.embed-bar a,.embed-bar .button,.embed-toggle{height:28px;border:1px solid rgba(151,169,188,.28);border-radius:6px;color:#dce5ef;background:#0d1117d1;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:12px}.embed-bar .button{padding:0 9px}.embed-bar select{max-width:min(320px,44vw);padding:0 8px;margin-right:auto}.embed-bar a{display:inline-flex;align-items:center;padding:0 9px;color:#dce5ef;text-decoration:none}.embed-toggle{padding:0 9px;background:#0d1117d1;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);white-space:nowrap}.embed-toggle input{width:14px;height:14px}.drop-active .viewer-host:after{position:absolute;top:16px;right:16px;bottom:16px;left:16px;display:grid;place-items:center;border:1px dashed #7aa2c7;border-radius:8px;color:#f1f6fb;background:#101820b8;content:"Drop PK3, BSP, shader, or texture files";pointer-events:none}.hidden{display:none}@media(max-width:820px){.shell{grid-template-columns:1fr;grid-template-rows:minmax(240px,42vh) minmax(0,1fr)}.sidebar{order:2;border-right:0;border-top:1px solid #263241}.viewer-host{order:1}}
