/* =====================================================================
   Project Viewer — warm light palette, angular (0–2px radius) geometry
   ===================================================================== */

:root {
  --bg: #F5F1EA;
  --bg-2: #EFEAE0;
  --surface: #FFFFFF;
  --surface-2: #FAF6EE;
  --oat: #E8E1D5;
  --oat-2: #D8D0C0;
  --ink: #2A2723;
  --ink-2: #4A4540;
  --ink-3: #6B645B;
  --ink-4: #8A8278;
  --line: #C5BCAB;
  --line-soft: #DDD5C5;
  --accent: #C8553D;
  --accent-2: #B5472F;
  --accent-soft: rgba(200, 85, 61, 0.12);
  --shadow-sm: 0 1px 2px rgba(42, 39, 35, 0.04), 0 1px 1px rgba(42, 39, 35, 0.03);
  --shadow-md: 0 4px 12px rgba(42, 39, 35, 0.06), 0 2px 4px rgba(42, 39, 35, 0.04);
  --shadow-lg: 0 12px 32px rgba(42, 39, 35, 0.10), 0 4px 8px rgba(42, 39, 35, 0.04);
  --radius: 0px;
  --radius-sm: 2px;
  --topbar-h: 56px;
  --bottombar-h: 44px;
  --toolbar-w: 56px;
  --panel-w: 280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  display: grid;
  grid-template-rows: var(--topbar-h) 1fr var(--bottombar-h);
  position: relative;
}

/* Blueprint grid — ink lines on warm white */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 39, 35, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 39, 35, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(42, 39, 35, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 39, 35, 0.02) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 16px 16px, 16px 16px;
  pointer-events: none;
  z-index: 0;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

/* =====================================================================
   TOPBAR
   ===================================================================== */
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 0 20px;
  background: var(--surface); border-bottom: 1px solid var(--line);
  position: relative; z-index: 10; box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 10px; padding-right: 16px; border-right: 1px solid var(--line-soft); height: 100%; color: inherit; text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; display: grid; place-items: center;
  background: rgb(57, 55, 30); color: var(--bg); border-radius: var(--radius-sm);
  position: relative; overflow: hidden;
}
.brand-mark img { width: 24px; height: 24px; object-fit: contain; display: block; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; line-height: 1; }
.brand-sub { font-size: 8px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; line-height: 1; }
.file-section { display: flex; align-items: center; gap: 10px; height: 100%; padding-right: 16px; border-right: 1px solid var(--line-soft); }
.file-btn { display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; background: var(--bg-2); border: 1px solid var(--line-soft); color: var(--ink-3); transition: all 0.15s; }
.file-btn:hover { color: var(--ink); background: var(--surface); }
.file-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.file-name { font-size: 12px; font-weight: 500; color: var(--ink); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name.admin-link { cursor: pointer; }
.file-name.admin-link:hover { color: var(--accent); text-decoration: underline; }
.file-meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-4); }
.topbar-section { display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 14px; border-right: 1px solid var(--line-soft); }
.section-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-4); font-weight: 600; margin-right: 4px; }
.viewport-styles { display: flex; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 2px; gap: 2px; }
.viewport-styles button { padding: 5px 12px; font-size: 12px; font-weight: 500; color: var(--ink-3); border-radius: var(--radius-sm); transition: all 0.15s; }
.viewport-styles button:hover { color: var(--ink); }
.viewport-styles button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.spacer { flex: 1; }

/* =====================================================================
   MAIN GRID
   ===================================================================== */
.main { display: grid; grid-template-columns: var(--toolbar-w) 1fr var(--panel-w); overflow: hidden; position: relative; z-index: 1; }
.toolbar { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 4px; }
.tool-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm); color: var(--ink-3); transition: all 0.15s; position: relative; }
.tool-btn:hover { background: var(--oat); color: var(--ink); }
.tool-btn.active { background: rgb(122, 154, 94); color: #FFFFFF; }
.tool-btn svg { width: 18px; height: 18px; }
.tool-btn .tooltip { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); background: var(--ink); color: var(--bg); padding: 5px 10px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s; z-index: 100; }
.tool-btn:hover .tooltip { opacity: 1; }
.tool-btn .tooltip::before { content: ''; position: absolute; right: 100%; top: 50%; transform: translateY(-50%); border: 4px solid transparent; border-right-color: var(--ink); }
.tool-divider { width: 28px; height: 1px; background: var(--line-soft); margin: 6px 0; }

/* =====================================================================
   VIEWPORT
   ===================================================================== */
.viewport { position: relative; overflow: hidden; background: var(--bg); }
#three-canvas { width: 100%; height: 100%; display: block; cursor: grab; }
#three-canvas:active { cursor: grabbing; }
#three-canvas.measure-cursor { cursor: crosshair; }
.viewport-overlay { position: absolute; pointer-events: none; z-index: 5; }
.viewport-overlay.top-left { top: 12px; left: 12px; }
.viewport-overlay.top-right { top: 12px; right: 12px; }
.viewport-overlay.bottom-left { bottom: 12px; left: 12px; }
.viewport-overlay.bottom-right { bottom: 12px; right: 12px; }

.viewcube-wrap { width: 88px; height: 88px; pointer-events: auto; }
#viewcube-canvas { width: 100%; height: 100%; display: block; cursor: pointer; }

.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; box-shadow: var(--shadow-sm); pointer-events: auto; min-width: 180px; }
.info-card-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-4); font-weight: 600; margin-bottom: 6px; }
.info-row { display: flex; justify-content: space-between; gap: 16px; font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 1px 0; }
.info-row .label { color: var(--ink-3); }
.info-row .value { color: var(--ink); font-weight: 600; }

.explode-control { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; box-shadow: var(--shadow-sm); pointer-events: auto; display: flex; align-items: center; gap: 12px; width: clamp(170px, 22vw, 320px); animation: slide-up 0.3s ease; }
@keyframes slide-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.explode-control label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-4); font-weight: 600; }
.explode-slider { flex: 1; min-width: 60px; -webkit-appearance: none; height: 4px; background: var(--oat); border-radius: 0; outline: none; }
.explode-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: var(--radius-sm); background: var(--surface); border: 2px solid var(--accent); cursor: pointer; box-shadow: var(--shadow-sm); }
.explode-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: var(--radius-sm); background: var(--surface); border: 2px solid var(--accent); cursor: pointer; }
.explode-value { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink); font-weight: 600; min-width: 32px; text-align: right; }

.tip-banner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 11px; color: var(--ink-2); box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 6px; }
.tip-banner .kbd { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 1px 5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); }

.loading-overlay { position: absolute; inset: 0; background: rgba(245, 241, 234, 0.92); display: grid; place-items: center; z-index: 20; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.loading-overlay.visible { opacity: 1; pointer-events: auto; }
.loading-overlay .ld-spin { width: 32px; height: 32px; border: 2px solid var(--oat-2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay .ld-text { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; }
.loading-overlay .ld-sub { font-size: 10px; color: var(--ink-4); margin-top: 6px; font-family: 'JetBrains Mono', monospace; }

.drag-overlay { position: absolute; inset: 8px; background: rgba(200, 85, 61, 0.08); border: 2px dashed var(--accent); display: grid; place-items: center; z-index: 25; opacity: 0; pointer-events: none; transition: opacity 0.2s; border-radius: var(--radius-sm); }
.drag-overlay.visible { opacity: 1; }
.drag-overlay .drag-text { background: var(--surface); padding: 16px 24px; border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.drag-overlay .drag-text svg { width: 24px; height: 24px; color: var(--accent); }

#osnap-indicator { position: absolute; width: 14px; height: 14px; border: 2px solid var(--accent); background: rgba(255, 255, 255, 0.4); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 10; display: none; box-shadow: 0 0 8px rgba(200, 85, 61, 0.5); }
.measure-label { position: absolute; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); padding: 4px 10px; border-radius: var(--radius-sm); font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; pointer-events: none; transform: translate(-50%, -50%); z-index: 5; white-space: nowrap; box-shadow: var(--shadow-md); }
.measure-label.temp { background: var(--accent); border-color: var(--accent); }
.measure-label::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: var(--ink); }
.measure-label.temp::after { border-top-color: var(--accent); }

/* Laser clearance HUD */
#laser-hud-live { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: 8px 10px; pointer-events: none; z-index: 15; min-width: 96px; }
#laser-hud-live .lh-title { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-4); font-weight: 600; margin-bottom: 4px; }
#laser-hud-live .lh-row { display: grid; grid-template-columns: 62px 1fr; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 1px 0; text-align: right; }
#laser-hud-live .lh-axis { color: var(--ink-3); font-weight: 600; text-align: left; }
#laser-hud-live .lh-val { color: var(--ink); font-weight: 600; }
#laser-hud-live .lh-closed .lh-val { color: var(--accent); }
#laser-hud-live .lh-approx .lh-val { color: var(--ink-2); }
#laser-hud-live .lh-open .lh-val { color: var(--ink-4); }

/* =====================================================================
   SCENE PANEL
   ===================================================================== */
.scene-panel { background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.panel-section { border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; overflow: hidden; }
.panel-section:last-child { border-bottom: none; flex: 1; }
.panel-head { padding: 14px 16px 10px; display: flex; justify-content: space-between; align-items: center; }
.panel-title { font-weight: 600; font-size: 13px; letter-spacing: -0.01em; }
.panel-count { font-family: 'JetBrains Mono', monospace; font-size: 10px; background: var(--bg-2); color: var(--ink-3); border: 1px solid var(--line-soft); padding: 2px 7px; border-radius: var(--radius-sm); }
.scene-tree { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
.panel-tabs { display: flex; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 2px; gap: 2px; }
.ptab { padding: 4px 12px; font-size: 11px; font-weight: 600; color: var(--ink-3); border-radius: var(--radius-sm); transition: all 0.15s; }
.ptab:hover { color: var(--ink); }
.ptab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tree-item { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.1s; }
.tree-item:hover { background: var(--oat); }
.tree-item.selected { background: var(--accent-soft); }
.tree-item.selected .tree-name { color: var(--ink); font-weight: 600; }
.tree-item.hidden-state { opacity: 0.45; }
.tree-item.hidden-state .tree-name { text-decoration: line-through; }
.tree-eye { width: 22px; height: 22px; display: grid; place-items: center; color: var(--ink-3); border-radius: var(--radius-sm); flex-shrink: 0; transition: all 0.1s; }
.tree-eye:hover { color: var(--ink); background: var(--oat-2); }
.tree-eye svg { width: 14px; height: 14px; }
.tree-eye.is-hidden { color: var(--ink-4); }
.tree-icon { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; display: grid; place-items: center; }
.tree-icon svg { width: 13px; height: 13px; }
.tree-name { font-size: 12px; color: var(--ink-2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.properties { padding: 12px 16px 16px; flex: 1; min-height: 0; overflow-y: auto; }
.prop-group { margin-bottom: 12px; }
.prop-group:last-child { margin-bottom: 0; }
.prop-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-4); font-weight: 600; margin-bottom: 4px; }
.prop-row { display: flex; justify-content: space-between; padding: 2px 0; font-size: 12px; }
.prop-row .prop-key { color: var(--ink-3); }
.prop-row .prop-val { font-family: 'JetBrains Mono', monospace; color: var(--ink); font-weight: 500; }
.empty-state { padding: 24px 16px; text-align: center; color: var(--ink-3); font-size: 12px; }
.empty-state svg { width: 32px; height: 32px; color: var(--ink-4); opacity: 0.4; margin-bottom: 8px; }
.empty-state.small { padding: 12px 16px; font-size: 11px; }

/* Measurements list */
#measure-panel { max-height: 180px; }
.measure-list { overflow-y: auto; padding: 0 8px 10px; }
.measure-item { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: var(--radius-sm); cursor: pointer; }
.measure-item:hover { background: var(--oat); }
.measure-item .mi-idx { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-4); min-width: 14px; }
.measure-item .mi-val { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink); font-weight: 600; flex: 1; }
.measure-item .mi-del { width: 18px; height: 18px; display: grid; place-items: center; color: var(--ink-4); border-radius: var(--radius-sm); }
.measure-item .mi-del:hover { color: var(--accent); background: var(--accent-soft); }
.measure-item .mi-del svg { width: 11px; height: 11px; }

/* =====================================================================
   BOTTOMBAR
   ===================================================================== */
.bottombar { background: var(--surface); border-top: 1px solid var(--line); display: flex; align-items: center; padding: 0 20px; gap: 20px; position: relative; z-index: 5; }
.stat { display: flex; align-items: center; gap: 6px; }
.stat-label { text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-4); font-weight: 600; font-size: 10px; }
.stat-value { font-family: 'JetBrains Mono', monospace; color: var(--ink); font-weight: 600; font-size: 12px; }
.stat-divider { width: 1px; height: 14px; background: var(--line-soft); }
.bottombar .spacer { flex: 1; }
.status-pill { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-2); font-weight: 500; }
.status-pill .pill-dot { width: 6px; height: 6px; border-radius: 50%; background: #5A8055; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* =====================================================================
   AUTH — staff chip, login popover, client restrictions
   ===================================================================== */
.user-chip {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  color: var(--ink); border: 1px solid var(--line);
  padding: 5px 12px; border-radius: var(--radius-sm); cursor: pointer;
  user-select: none; background: var(--surface); transition: all 0.15s;
}
.user-chip:hover { background: var(--oat); border-color: var(--ink-3); }

.topbar-action.icon-only { padding: 8px; }
.topbar-action.icon-only svg { display: block; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(42, 39, 35, 0.45);
  display: grid; place-items: center; z-index: 300;
  opacity: 0; pointer-events: none; transition: opacity 0.18s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.login-card {
  width: 280px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 24px; text-align: center; animation: ctx-in 0.15s ease;
}
.login-mark { width: 34px; height: 34px; object-fit: contain; margin: 0 auto 10px; display: block; }
.login-title { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.login-sub { font-size: 11px; color: var(--ink-3); margin: 4px 0 14px; }
.login-col { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.login-col input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--ink); outline: none; background: var(--surface);
}
.login-col input:focus { border-color: var(--ink-3); }
.btn-mini {
  padding: 8px 12px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 600;
  background: var(--ink); color: var(--bg); cursor: pointer; border: none;
}
.btn-mini:hover { background: var(--ink-2); }

/* Client-facing restricted mode (shareable link, not logged in):
   no Open File, no Properties panel */
.restricted .file-section { display: none !important; }
.restricted #properties-section { display: none !important; }

/* =====================================================================
   CONTEXT MENU
   ===================================================================== */
.context-menu { position: fixed; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 4px; z-index: 150; display: none; min-width: 200px; animation: ctx-in 0.12s ease; }
@keyframes ctx-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
.context-menu.open { display: block; }
.ctx-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: 12px; color: var(--ink-2); border-radius: var(--radius-sm); cursor: pointer; width: 100%; text-align: left; transition: all 0.1s; }
.ctx-item:hover { background: var(--oat); color: var(--ink); }
.ctx-item.danger { color: var(--accent); }
.ctx-item.danger:hover { background: var(--accent-soft); }
.ctx-item:disabled { opacity: 0.4; cursor: not-allowed; }
.ctx-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.ctx-sep { height: 1px; background: var(--line-soft); margin: 4px 0; }
.ctx-shortcut { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-4); }
.ctx-target { padding: 8px 10px 6px; font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-4); font-weight: 600; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.ctx-target b { color: var(--ink); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 12px; display: block; margin-top: 2px; }

/* =====================================================================
   TOASTS
   ===================================================================== */
.toast-container { position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); padding: 10px 18px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px; animation: toast-in 0.3s ease, toast-out 0.3s ease 2.7s forwards; pointer-events: auto; }
.toast .toast-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.toast.error .toast-dot { background: #C8553D; }
.toast.success .toast-dot { background: #5A8055; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--oat-2); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

/* =====================================================================
   RESPONSIVE — dynamically scale bottom overlays so they never obstruct
   ===================================================================== */
@media (max-width: 1024px) { :root { --panel-w: 240px; } }
@media (max-width: 900px), (max-height: 640px) {
  .tip-banner { display: none; }
  .explode-control { width: clamp(150px, 26vw, 240px); gap: 8px; padding: 8px 10px; }
}
@media (max-height: 520px) {
  .viewport-overlay.bottom-right { bottom: 8px; right: 8px; }
  .viewport-overlay.bottom-left { display: none; }
}
@media (max-width: 768px) {
  .main { grid-template-columns: var(--toolbar-w) 1fr; }
  .scene-panel { display: none; }
  .topbar-section.viewport-section { display: none; }
  .file-info { display: none; }
}
