/* Facet: drafting-table industrial. Graphite, paper, signal orange, dimension cyan. */
:root {
  --bg: #0c0e11;
  --stage: #101318;
  --stage-2: #07080a;
  --panel: #13161b;
  --panel-2: #191d23;
  --line: #262c35;
  --line-2: #323a45;
  --text: #e7e9ec;
  --muted: #8b939f;
  --accent: #ff7a1a;
  --accent-ink: #1a0d02;
  --dim: #3ad1e0;
  --ok: #4ad295;
  --warn: #ffb547;
  --danger: #ff5d5d;
  --grid-line: rgba(140, 170, 200, 0.06);
  --grid-line-2: rgba(140, 170, 200, 0.11);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.35);
  --radius: 6px;
  --font: "Archivo", ui-sans-serif, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --topbar: 52px;
  --panel-w: 304px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #e9e7e1;
  --stage: #f3f1ec;
  --stage-2: #e0ddd5;
  --panel: #f7f6f2;
  --panel-2: #eeece6;
  --line: #d9d5cb;
  --line-2: #c8c3b7;
  --text: #1b1d21;
  --muted: #6c6f76;
  --accent: #e8590c;
  --accent-ink: #fff;
  --dim: #0b8fa0;
  --ok: #1f9d63;
  --warn: #b7791f;
  --danger: #d63939;
  --grid-line: rgba(30, 60, 90, 0.06);
  --grid-line-2: rgba(30, 60, 90, 0.12);
  --shadow: 0 10px 30px -12px rgba(40, 30, 10, 0.25), 0 2px 6px rgba(40, 30, 10, 0.1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
kbd {
  font-family: var(--mono); font-size: 11px; padding: 1px 5px; border-radius: 3px;
  border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--panel-2); color: var(--text);
}
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
[hidden] { display: none !important; }

/* ---------- layout ---------- */
.app {
  display: grid;
  grid-template-columns: var(--panel-w) 1fr;
  grid-template-rows: var(--topbar) 1fr;
  height: 100dvh;
}
.topbar {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 14px;
  flex-wrap: nowrap;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  min-width: 0;
  position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); flex: none; }
.brand-mark { width: 24px; height: 24px; stroke-width: 2; }
.brand-mark .bm-a { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 14%, transparent); }
.brand-mark .bm-b { stroke: var(--accent); }
.brand-word { font-weight: 800; font-stretch: 120%; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; }
.doc {
  display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1;
  padding-left: 14px; border-left: 1px solid var(--line); height: 26px;
}
.doc-title { font-weight: 600; font-stretch: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rev-select {
  flex: none; font-family: var(--mono); font-size: 12px; padding: 3px 6px; border-radius: 4px;
  background: var(--panel-2); border: 1px solid var(--line-2);
}
.status-chip {
  flex: none; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 99px; border: 1px solid currentColor; white-space: nowrap;
}
.status-chip[data-s="open"] { color: var(--muted); }
.status-chip[data-s="approved"] { color: var(--ok); }
.status-chip[data-s="changes_requested"] { color: var(--warn); }
.topbar-actions { display: flex; align-items: center; gap: 6px; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px;
  border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--panel-2);
  cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; user-select: none;
  transition: background .15s, border-color .15s, transform .08s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.btn.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.lg { height: 42px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }
.icon-btn {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border-radius: var(--radius); border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--muted);
}
.icon-btn:hover { color: var(--text); background: var(--panel-2); border-color: var(--line); }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn.sm svg { width: 15px; height: 15px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }
.only-mobile { display: none; }

/* ---------- panel ---------- */
.panel {
  background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 8px; flex: none; }
.tab {
  flex: 1; background: none; border: 0; padding: 12px 4px 10px; cursor: pointer; color: var(--muted);
  font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em; font-stretch: 110%;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-count { font-family: var(--mono); color: var(--accent); letter-spacing: 0; }
.tab-body { display: none; overflow-y: auto; flex: 1; min-height: 0; padding-bottom: 24px; scrollbar-width: thin; }
.tab-body.active { display: block; }
.group { padding: 16px 16px 14px; border-bottom: 1px solid var(--line); }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; min-height: 24px; }
.group h3 {
  margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-stretch: 115%; color: var(--muted);
}
.row { display: flex; align-items: center; gap: 10px; margin: 8px 0; min-height: 28px; }
.row > label:first-child, .row > span.small:first-child { width: 58px; flex: none; }
.row input[type="range"] { flex: 1; min-width: 0; }
.row select, .row input[type="text"] {
  flex: 1; min-width: 0; height: 30px; padding: 0 8px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--panel-2);
}
input[type="range"] { accent-color: var(--accent); height: 18px; }
input[type="color"] { width: 44px; height: 28px; padding: 2px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; }
textarea {
  width: 100%; resize: vertical; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); line-height: 1.45;
}
textarea:focus, input:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 0; border-color: transparent; }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 5px; overflow: hidden; flex: none; }
.seg button { background: transparent; border: 0; padding: 4px 9px; font-size: 12px; font-family: var(--mono); cursor: pointer; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--text); color: var(--panel); }

.toggles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 30px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line-2); background: transparent;
  font-size: 12px; font-weight: 600; cursor: pointer; color: var(--muted); white-space: nowrap;
}
.toggle svg { width: 14px; height: 14px; }
.toggle:hover { color: var(--text); border-color: var(--muted); }
.toggle.on { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.toggle.sm { height: 24px; min-width: 44px; font-size: 11px; font-family: var(--mono); }
.views-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.views-grid button {
  height: 30px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; font-size: 12px; font-weight: 600;
}
.views-grid button:hover { border-color: var(--accent); color: var(--accent); }
.views-grid .wide { grid-column: 1 / -1; }

/* parts */
.parts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.parts li {
  display: flex; align-items: center; gap: 8px; padding: 5px 4px 5px 8px; border-radius: 5px; border: 1px solid transparent; cursor: pointer;
}
.parts li:hover { background: var(--panel-2); }
.parts li.sel { border-color: var(--line-2); background: var(--panel-2); }
.parts li.hidden-part .part-name { opacity: 0.45; text-decoration: line-through; }
.part-swatch { width: 14px; height: 14px; border-radius: 3px; flex: none; border: 1px solid rgba(0,0,0,.3); position: relative; overflow: hidden; cursor: pointer; }
.part-swatch input { position: absolute; inset: -6px; opacity: 0; cursor: pointer; }
.part-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.part-tris { font-family: var(--mono); font-size: 11px; color: var(--muted); flex: none; }
.parts .icon-btn { width: 26px; height: 26px; }
.parts .icon-btn svg { width: 15px; height: 15px; }

/* readouts */
.readout { font-family: var(--mono); font-size: 12px; }
.readout dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 0; }
.readout dt { color: var(--muted); }
.readout dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.dim {
  border: 1px solid var(--line-2); border-radius: 5px; padding: 7px 8px 6px; position: relative; background: var(--panel-2);
}
.dim b { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; }
.dim span { display: block; font-size: 14px; font-weight: 500; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dim.x b { color: #ff5d6c; } .dim.y b { color: #6bd66b; } .dim.z b { color: #5aa2ff; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 2px 7px; border-radius: 99px; border: 1px solid currentColor; }
.badge.ok { color: var(--ok); } .badge.warn { color: var(--warn); }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* notes */
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.note {
  border: 1px solid var(--line-2); border-radius: 6px; padding: 9px 10px; background: var(--panel-2); cursor: pointer;
  transition: border-color .15s;
}
.note:hover, .note.focus { border-color: var(--accent); }
.note.resolved { opacity: 0.55; }
.note-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.note-num {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-size: 11px; font-weight: 600; flex: none;
}
.note.resolved .note-num { background: var(--muted); }
.note-author { font-weight: 600; font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-meta { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.note-text { white-space: pre-wrap; word-break: break-word; font-size: 13px; }
.note-replies { margin: 6px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.note-replies b { font-weight: 600; }
.note-actions { display: flex; gap: 4px; margin-top: 6px; justify-content: flex-end; }
.note-actions .icon-btn { width: 26px; height: 26px; }
.note-actions .icon-btn svg { width: 14px; height: 14px; }
.verdict-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.verdict-btns .btn { justify-content: center; }

/* ---------- stage ---------- */
.stage {
  position: relative; overflow: hidden; min-width: 0; min-height: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 30%, var(--stage-2) 100%),
    linear-gradient(var(--grid-line-2) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, var(--grid-line-2) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--stage);
}
#canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.stage[data-tool="measure"] #canvas, .stage[data-tool="note"] #canvas { cursor: crosshair; }
.labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.view-cube { position: absolute; top: 12px; right: 12px; width: 120px; height: 120px; cursor: pointer; z-index: 2; }

.lbl3d {
  position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 11.5px; font-weight: 500; white-space: nowrap;
  padding: 2px 6px; border-radius: 3px; pointer-events: none; will-change: transform;
}
.lbl3d.measure { background: var(--dim); color: #04161a; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.lbl3d.measure small { opacity: .7; margin-left: 6px; font-size: 10px; }
.lbl3d.bbox { color: var(--text); background: color-mix(in srgb, var(--panel) 80%, transparent); border: 1px solid var(--line-2); }
.lbl3d.bbox.x { border-color: #ff5d6c; } .lbl3d.bbox.y { border-color: #6bd66b; } .lbl3d.bbox.z { border-color: #5aa2ff; }
.pin3d {
  position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; will-change: transform;
  width: 26px; height: 26px; margin: -26px 0 0 -13px;
  display: grid; place-items: center; padding: 0; border: 0; background: none;
}
.pin3d span {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 3px 10px rgba(0,0,0,.4); border: 2px solid var(--panel);
}
.pin3d span i { transform: rotate(45deg); font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 600; }
.pin3d.resolved span { background: var(--muted); }
.pin3d.occluded { opacity: 0.35; }
.pin3d.focus span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pin3d.draft span { background: var(--dim); color: #04161a; }

.hud {
  position: absolute; left: 12px; top: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  background: color-mix(in srgb, var(--panel) 85%, transparent); border: 1px solid var(--line); border-radius: 5px; padding: 6px 9px;
  pointer-events: none; z-index: 2; max-width: calc(100% - 160px);
}
.hud b { color: var(--dim); font-weight: 500; }

.toolbar {
  position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 4px; z-index: 3;
  background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow);
}
.tool {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 7px;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; position: relative;
}
.tool svg { width: 19px; height: 19px; }
.tool:hover { color: var(--text); background: var(--panel-2); }
.tool.on { color: var(--accent-ink); background: var(--accent); }
.tool.lit { color: var(--accent); }
.tool-sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 4px; }

.empty {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 4; padding: 24px;
  background: color-mix(in srgb, var(--stage) 30%, transparent);
}
.empty-inner { text-align: center; max-width: 440px; animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
.empty-mark { width: 104px; height: 104px; margin-bottom: 16px; stroke-width: 1.4; animation: spin-in 1.2s cubic-bezier(.2,.8,.2,1) both; }
.empty-mark .em-a { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 8%, transparent); stroke-dasharray: 340; animation: draw 1.4s .1s ease-out both; }
.empty-mark .em-b { stroke: var(--accent); opacity: .7; stroke-dasharray: 200; animation: draw 1.4s .5s ease-out both; }
.empty h1 { font-size: 46px; font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.05; }
.empty p { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes draw { from { stroke-dashoffset: 340; } to { stroke-dashoffset: 0; } }
@keyframes spin-in { from { transform: rotate(-30deg) scale(.85); opacity: 0; } }

.loading {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-family: var(--mono); font-size: 12px;
}
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.drop-veil {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .15s;
  background: color-mix(in srgb, var(--accent) 12%, transparent); border: 3px dashed var(--accent);
}
.drop-veil div { font-size: 34px; font-weight: 800; font-stretch: 125%; color: var(--accent); }
body.dragging .drop-veil { opacity: 1; }

.note-pop {
  position: fixed; z-index: 30; width: 300px; padding: 10px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.note-pop-actions { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.note-pop-actions .muted { margin-right: auto; }

/* ---------- modals & toasts ---------- */
.modal {
  border: 1px solid var(--line-2); border-radius: 10px; padding: 0; background: var(--panel); color: var(--text);
  width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(0,0,0,.5); backdrop-filter: blur(2px); }
.modal-inner > header { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 18px; border-bottom: 1px solid var(--line); }
.modal h2 { margin: 0; font-size: 15px; font-weight: 700; font-stretch: 110%; text-transform: uppercase; letter-spacing: 0.08em; }
.modal-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.modal-inner > footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 18px 16px; }
.modal-inner > footer .muted { margin-right: auto; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.field input, .field select { height: 34px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); }
.share-result { display: flex; gap: 8px; }
.share-result input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--accent); background: var(--panel-2); font-family: var(--mono); font-size: 12px; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; font-size: 13px; }
.keys .span { grid-column: 1 / -1; margin-top: 4px; }

.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast {
  max-width: 360px; padding: 10px 14px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent); box-shadow: var(--shadow); font-size: 13px; animation: rise .25s ease-out both;
}
.toast.err { border-left-color: var(--danger); }
.toast.ok { border-left-color: var(--ok); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .lbl { display: none; }
  .topbar-actions .btn { width: 32px; padding: 0; justify-content: center; gap: 0; }
}
@media (max-width: 760px) {
  :root { --topbar: 50px; }
  .app { grid-template-columns: 1fr; }
  .only-mobile { display: grid; }
  .hide-mobile { display: none; }
  .topbar { gap: 8px; padding: 0 8px; }
  .brand-word { display: none; }
  .doc { padding-left: 8px; gap: 6px; }
  .status-chip { display: none; }
  .panel {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: 62dvh; z-index: 20;
    border-right: 0; border-top: 1px solid var(--line-2); border-radius: 14px 14px 0 0; box-shadow: var(--shadow);
    transform: translateY(105%); transition: transform .25s cubic-bezier(.2,.8,.2,1);
  }
  .app.panel-open .panel { transform: none; }
  .stage { grid-column: 1; }
  .view-cube { width: 92px; height: 92px; }
  .empty h1 { font-size: 36px; }
  .note-pop { left: 16px !important; right: 16px; width: auto; }
  .keys { grid-template-columns: 1fr; }
}
