#geometry-inspector,#geometry-tracks,#geometry-heads { min-width:0 }
#geometry-inspector { grid-column:1/-1 }
.geo-panel { min-width:0; padding-block:6px 9px; color:var(--text,#f1f1f1); font:500 .76rem/1.35 system-ui,sans-serif }
.geo-titlebar,.geo-picker,.geo-actions,.geo-keybar { display:flex; align-items:center; gap:4px; min-width:0 }
.geo-titlebar { justify-content:space-between; padding-block:3px 5px }
.geo-titlebar h3 { margin:0; font:650 .84rem/1.2 system-ui,sans-serif; letter-spacing:0 }
.geo-count,.geo-key-count { color:#afafaf; font:550 .65rem/1.2 var(--mono,monospace); white-space:nowrap }
.geo-count { margin-left:auto }
.geo-library>summary,.geo-extra>summary { padding:5px 3px; cursor:pointer; color:#d1d1d1; font-size:.72rem }
.geo-library { margin-bottom:4px }
.geo-library>summary { border:1px solid #474747; border-radius:5px; background:#2c2c2c; padding:5px 8px; font-weight:650 }
.geo-extra { border-top:1px solid #3b3b3b; margin-top:5px }
.geo-shelf { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; margin-top:3px }
.geo-shelf .geo-tile { display:flex; flex-direction:column; align-items:center; gap:2px; min-width:0; min-height:36px; padding:3px 1px; background:#2b2b2b; border:1px solid #404040; border-radius:4px; font:500 .65rem/1.15 system-ui; color:#e3e3e3 }
.geo-tile b { color:var(--accent,#8caee8); font:500 .94rem/1.1 system-ui,sans-serif }
.geo-panel button:is(:hover,:focus-visible):not(:disabled) { border-color:#979797; color:#ffffff }
.geo-picker .geo-field { flex:1; grid-template-columns:auto minmax(48px,1fr) }
.geo-panel .geo-action { min-width:24px; min-height:26px; height:auto; padding:3px 5px; border:1px solid #494949; border-radius:4px; background:#2b2b2b; color:#e2e2e2; font:550 .74rem/1.2 system-ui,sans-serif }
.geo-action .glyph,.geo-head .glyph { width:15px; height:15px; vertical-align:middle }
.geo-actions { margin:2px 0 5px; flex-wrap:wrap }
.geo-field,.geo-color { display:grid; align-items:center; gap:3px; min-width:0; color:#bcbcbc; font:560 .68rem/1.2 system-ui,sans-serif }
.geo-field { grid-template-columns:minmax(0,1fr) minmax(36px,45%); min-height:25px }
.geo-field span,.geo-color span { overflow-wrap:anywhere }
.geo-field :is(input,select),.geo-color input { width:100%; height:25px; min-width:0; padding:2px 3px; border:1px solid #484848; border-radius:4px; color:var(--text,#f1f1f1); background:#1f1f1f; font:500 .69rem/1.2 var(--mono,monospace) }
.geo-field select { font-family:system-ui,sans-serif }
.geo-field input:focus-visible,.geo-field select:focus-visible,.geo-color input:focus-visible,.geo-panel summary:focus-visible { outline:1px solid var(--accent,#8caee8); outline-offset:1px }
.geo-look,.geo-coords,.geo-accents { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px 7px }
.geo-look .geo-field:has(select) { grid-column:1/-1 }
.geo-color { grid-template-columns:minmax(0,1fr) minmax(30px,45%) }
.geo-color input { cursor:pointer; padding:1px; overflow:hidden }
.geo-guide { margin:7px 0 4px; color:#bec4cd; font-size:.68rem; line-height:1.4 }
.geo-keybar { margin-bottom:6px; flex-wrap:wrap; gap:3px }
.geo-keybar #geometry-add-key { background:#c0cce1; color:#192231; border-color:#c0cce1; font-weight:700 }
.geo-keybar #geometry-add-key:disabled { opacity:.51 }
.geo-key-count { margin-left:auto }
.geo-extra> .geo-field { margin-top:4px }
.geo-graph .fb-curve-card { width:100% }
.geo-properties :disabled { opacity:.5 }

#geometry-tracks,#geometry-heads {
  --geo-row-h:27px; --geo-max-h:161px; display:flex; flex-direction:column; gap:2px;
  max-height:var(--geo-max-h); overflow-x:hidden; overflow-y:auto;
  scrollbar-width:none; overscroll-behavior-y:contain;
}
#geometry-tracks::-webkit-scrollbar,#geometry-heads::-webkit-scrollbar { display:none }
#geometry-tracks:not(:empty),#geometry-heads:not(:empty) { margin-top:4px }
.track-heads .geo-head,.geo-lane { flex:none; width:100%; min-width:0; height:var(--geo-row-h); min-height:var(--geo-row-h); box-sizing:border-box }
.track-heads .geo-head { border:1px solid #3e3e3e; background:#272727 }
.geo-lane {
  position:relative; isolation:isolate; overflow:hidden; border:1px solid #414141; border-radius:4px;
  background:linear-gradient(90deg,color-mix(in srgb,var(--geo-color) 17%,#252525),#252525 74%); touch-action:pan-y; cursor:crosshair;
}
.geo-lane[data-selected=true] { border-color:var(--accent,#8caee8); box-shadow:inset 3px 0 var(--geo-color) }
.geo-lane[data-muted=true] .geo-rail,.geo-lane[data-muted=true] .geo-keys { opacity:.42 }
.geo-lane:focus-visible { outline:1px solid #e0eafc; outline-offset:-3px }
.track-bed[data-magnet=true] .geo-rail { background:repeating-linear-gradient(90deg,#a8c1ed21 0 1px,transparent 1px var(--tick)) }
.geo-rail,.geo-keys { position:absolute; inset:0; pointer-events:none }
.geo-track-name { position:absolute; inset:50% auto auto 11px; transform:translateY(-50%); font:570 .65rem/1.15 system-ui,sans-serif; color:#cdcdcd; white-space:nowrap; text-shadow:0 1px 2px #181d25 }
.geo-keys .geo-key { position:absolute; top:0; bottom:0; width:20px; height:100%; min-width:0; min-height:0; margin:0; padding:0; border:0; border-radius:2px; background:none; transform:translateX(-50%); touch-action:none; pointer-events:auto; cursor:ew-resize }
.geo-key::before { content:''; position:absolute; left:50%; top:50%; width:8px; height:8px; border:1px solid #f0f0f0; border-radius:1px; background:#686868; transform:translate(-50%,-50%) rotate(45deg) }
.geo-key[aria-pressed=true]::before,.geo-key.geo-moving::before { background:var(--accent,#8caee8); border-color:white }
.geo-key:focus-visible { outline:1px solid #e3ebf9; outline-offset:-2px }
@media(max-width:700px) {
  .geo-panel { padding:6px 1px }
  #geometry-tracks,#geometry-heads { --geo-row-h:30px; --geo-max-h:158px }
  .geo-panel .geo-action,.geo-field :is(input,select) { min-height:29px }
}

#shape-assets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding-bottom:16px}#shape-assets .shape-asset{display:flex;flex-direction:column;align-items:center;gap:5px;padding:8px 4px;background:#1e1e1e;color:#e7e7e7;border:1px solid #3d3d3d;border-radius:7px;cursor:grab;font-size:11px}#shape-assets canvas{width:100%;height:auto;max-width:76px}.shape-asset span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.geo-lane{cursor:default;touch-action:none;background:#202020;border-color:#343434}
.geo-lane>.range-item{top:0;height:100%;z-index:1}
.geo-lane>.geo-keys{z-index:3}
.geo-lane .range-item .range-body{padding-left:10px;font-size:11px}

.geo-keys .geo-key{top:auto;bottom:0;height:12px;width:12px}

.geo-lane[data-selected=true]{border-color:#343434;box-shadow:none}.geo-lane[data-muted=true]>.range-item{opacity:.42}
