/* The side panels' pages, built from the kit (styles/kit.css; docs/ui-pass/DIRECTION.md, The kit and The shell). Each
   panel's layout and nothing else: every face, ink and state is the kit's. */

/* A page: sections top to bottom, 28 apart, in the body's padding. */
.kit .pg { display: grid; row-gap: 28px; align-content: start; padding: 20px 24px 24px; }

/* ---------- Play (src/ui/panels/play-panel.ts; DIRECTION.md, The Play panel) ---------- */
.kit .play-page .kit-section { min-width: 0; }
.kit .play-choice { min-width: 0; }
/* The tempo window: drag, arrows, typing; the figures tall, or key-high in a short panel. */
.kit .play-page .kit-win-group.hero { display: flex; min-width: 0; }
.kit .play-page .kit-win-group.hero > .kit-win { flex: 1 1 auto; justify-content: center; }
.kit .play-page .play-tempo > .short-figures { display: none; }
.kit .play-tempo { cursor: ns-resize; }
.kit .play-tempo > input.field-tempo-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; outline: none !important; cursor: text; }
.kit.kit-shell.short .play-page .kit-win-group.hero > .kit-win { height: 36px; padding: 0 12px; gap: 6px; align-items: center; }
.kit.kit-shell.short .play-page .play-tempo > .tall-figures { display: none; }
.kit.kit-shell.short .play-page .play-tempo > .short-figures { display: block; }
.kit.kit-shell.short .play-page .play-tempo .unit { line-height: 16px; }
.kit.kit-shell.short .play-page .kit-win-group.hero > .steps { grid-template-rows: none; grid-auto-flow: column; grid-template-columns: 36px 36px; }
.kit.kit-shell.short .play-page .kit-win-group.hero > .steps > .kit-key { height: 36px; border-radius: 2px; }
.kit.kit-shell.short .play-page .kit-win-group.hero > .steps > .kit-key:last-child { border-radius: 2px 6px 6px 2px; }
.kit.kit-shell.short .play-page .kit-win-group.hero > .steps > .kit-key:first-child { order: 2; }   /* − then + */
/* The bar's beats: flat lamps, the beat now in the metronome's ink; they switch without fading. */
.kit .play-beats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; align-items: center; min-width: 0; }
.kit .play-beats > .lamp { width: 100%; height: 6px; border-radius: 3px; }
.kit .play-beats > .lamp.on { background: var(--deal-metronome); }
/* Tap: a press pulses its face in the tempo's ink. */
.kit .play-tap.pulse { animation: play-tap-pulse 220ms var(--note-ease, ease-out); }
@keyframes play-tap-pulse { from { background: var(--deal-tempo); color: var(--deal-tempo-pair); } }
/* The octave at its row's width; the scale lit on it: its notes carry a lamp in the on ink, the rest go quiet. Free: none. */
.kit .play-page .kit-oct.large { grid-template-columns: repeat(14, minmax(0, 1fr)); grid-template-rows: 40px 56px; width: 100%; }
.kit.kit-shell.short .play-page .kit-oct.large > .kit-key { padding-bottom: 5px; }
.kit .play-page .kit-oct > .kit-key::before { content: ''; position: absolute; top: 7px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: transparent; z-index: 2; }
.kit .play-page .kit-oct > .kit-key.in-key::before { background: var(--deal-on); }
.kit .play-page .kit-oct > .kit-key.chosen::before { background: transparent; }
.kit .play-page .kit-oct > .kit-key.out-key:not(.chosen) { background: var(--note-key-off); color: var(--note-text-disabled); }
.kit .play-page .kit-oct > .kit-key.sounding::before { background: var(--deal-sound); }
.kit.kit-shell.short .play-page .kit-oct > .kit-key::before { top: 4px; width: 4px; height: 4px; margin-left: -2px; }
/* A scale while the keys play free: shown, not lit (choosing one plays in key). */
.kit .play-page .scale-box.parked .kit-win canvas { opacity: .5; }

/* The page: two zones the body's height, Tempo | Key side by side past a hairline (stacked in a narrow panel). Key holds the
   one strong object, the octave with its scale lit, which grows with the room (96 to 300 high); Tempo is one group at the
   top: the window, the beats, Tap and Click. Too little room for their least: the page overflows
   and the shell goes short (DIRECTION.md, The Play panel). */
.kit .play-view { height: 100%; }
.kit .play-page { height: 100%; box-sizing: border-box; align-content: stretch; grid-template-rows: 1fr; }
.kit .play-zones { display: grid; grid-template-columns: minmax(196px, 5fr) 1px minmax(0, 7fr); column-gap: 24px; max-height: 433px; }
.kit .play-zones > .col-rule { background: var(--note-rule); }
.kit .play-zones > .kit-section { display: grid; row-gap: 12px; }
.kit .play-zones > .play-time { align-content: start; }
.kit .play-zones > .play-key { grid-template-rows: auto auto minmax(96px, 1fr) auto; }
.kit .play-zones .time-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kit .play-zones .time-keys > .kit-key { width: 100%; justify-content: center; }
.kit .play-zones .play-root, .kit .play-zones .play-root > .kit-oct.large { height: 100%; }
.kit .play-zones .play-root > .kit-oct.large { grid-template-rows: 2fr 3fr; }
.kit .play-zones .scale-line { display: flex; min-width: 0; }
.kit .play-page.narrow .play-zones { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 0 1fr; row-gap: 24px; max-height: 640px; }
.kit .play-page.narrow .play-zones > .col-rule { display: none; }
/* A host without tracks (the play-only web host): Key alone, the whole width (Tempo and its rule are hidden). */
.kit .play-page.key-only .play-zones { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
.kit.kit-shell.short .play-zones > .kit-section { row-gap: calc(8px + 4px * var(--air, 0)); }
.kit.kit-shell.short .play-zones > .kit-section > .sh { padding-bottom: 4px; }
.kit.kit-shell.short .play-zones > .play-key { grid-template-rows: auto auto minmax(60px, 1fr) auto; }
.kit.kit-shell.short .play-zones { max-height: 336px; }
.kit.kit-shell.short .play-page { padding-top: 12px; padding-bottom: 12px; }
/* A section whose first control has its own label above it: the section's label on that label's line. */
.kit.kit-shell.short .pg > .kit-section:has(> .sh + .kit-ctl > .lab) > .sh { top: 0; }

/* Backing: Accompaniment, then Your own MIDI, a row each. */
.kit .backing-page .play-row { display: flex; align-items: center; gap: 24px; }
.kit .backing-page .kit-picker { max-width: 100%; }
.kit .backing-page .play-source { display: grid; }

/* ---------- Settings (src/ui/panels/settings-panel.ts; docs/ui-pass/mock/settings-audio-screens.png) ---------- */
/* Sections of Settings (the kit's Setting), one column; a picker at most its column's width; a folder's path is its
   Setting's help line (its middle gives way when it is long). */
.kit .settings-page .kit-setting .kit-picker { max-width: 100%; }
.kit .settings-page .kit-setting > .txt > .kit-path { color: var(--note-text-muted); font-size: var(--note-text-xs); line-height: 16px; }
.kit .settings-page .set-midi-list { min-width: 0; }
.kit.kit-shell.short .settings-page .kit-setting > .txt > .kit-path { display: block; }
/* Assistant: an assistant's state is its Setting's help line, a lamp and its words, kept when a short panel drops the
   other help lines (as a folder's path is); the one plain sentence on where the snippet goes, in the help voice. */
.kit .settings-page .kit-setting > .txt > .set-state { min-height: 16px; font-size: var(--note-text-xs); line-height: 16px; color: var(--note-text-muted); white-space: normal; }
.kit .settings-page .kit-setting > .txt > .set-state .v { color: inherit; }
.kit.kit-shell.short .settings-page .kit-setting > .txt > .set-state { display: inline-flex; }
.kit .settings-page .set-note { margin: 0; font-size: var(--note-text-xs); line-height: 16px; color: var(--note-text-muted); }

/* ---------- Help (src/ui/panels/help-panel.ts) ---------- */
/* Playing: short sections in a measure that reads (at most 60ch). With a body at least 560 wide the sections go two
   across, read left to right and row by row (a grid, never newspaper columns, which send the reader back up); each
   keeps its measure. Keyboard shortcuts the same, a group never split. One scroller: the body. */
.kit .help-guide { display: grid; row-gap: 28px; max-width: 60ch; }
.kit .help-guide > .kit-section { max-width: 60ch; }
.kit .help-p { margin: 0; font-size: var(--note-text-sm); line-height: 22px; color: var(--note-text); }
.kit .help-p + .help-p { margin-top: -4px; }
.kit .help-groups { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
@container kit-body (min-width: 560px) {
  .kit .help-guide, .kit .help-groups { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; align-items: start; }
}
.kit .help-list { display: grid; row-gap: 6px; margin: 0; }
.kit .help-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 12px; align-items: center; min-height: 28px; }
.kit .help-row > dt, .kit .help-row > dd { margin: 0; min-width: 0; }
.kit .help-row > dd { font-size: var(--note-text-sm); line-height: 18px; color: var(--note-text); }
.kit .help-keys { display: flex; flex-wrap: wrap; gap: 2px; }
/* Credits, at the foot of Playing: quiet, their links kept. */
.kit .help-credits .help-p { color: var(--note-text-muted); }
.kit .help-keys-row { display: flex; margin-top: 4px; }
.kit .help-credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Sound (src/ui/panels/sound-panel.ts) ---------- */
/* The instrument is the hero. sound-panel.ts fit lays it out from the box's size (data-layout; the sizes as --sound-list-w,
   --pad-w, --pad-h, --knob-cols, --knob-w), so the pad is never narrower than it is tall and at most 1.6 times as wide:
     under   the list in its column (scrolling inside it, ending on a whole row), past a hairline the pad at the column's
             width with the knobs standing in a row beneath it
     beside  a short body: the pad, and at its right the knobs in their compact form, one column
     stack   a narrow panel: the list whole (the body is the one scroller), the pad at the width, the knobs beneath
   Short (the shell's rule), the section labels step out: the display names the instrument. */
.kit .sound-view { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr); align-content: stretch; }
.kit .sound-view[data-layout=stack] { height: auto; grid-template-rows: auto; }
.kit .sound-view .sound-cols { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 28px; min-height: 0; }
.kit .sound-view .col-rule { display: none; }
.kit .sound-view.two .sound-cols { grid-template-columns: var(--sound-list-w, 208px) 1px minmax(0, 1fr); column-gap: 24px; }
.kit .sound-view.two .col-rule { display: block; background: var(--note-rule); }
.kit.kit-shell.short .sound-view.two .sound-cols { column-gap: 12px; }
.kit.kit-shell.short .sound-view .kit-section > .sh { display: none; }
.kit.kit-shell.short .sound-view .sound-list-col { grid-template-rows: minmax(0, 1fr); }
.kit .sound-view .sound-list-col { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; min-height: 0; }
.kit .sound-view .sound-list-col > .kit-scroller { margin: 0 -6px; min-height: 0; }
/* Side by side, the list's column runs the body's full height: through the page's foot padding to the display row,
   its cue on the row's edge (the list takes the room first: no empty band under a cut list). */
.kit .sound-view.two .sound-list-col { margin-bottom: -24px; }
.kit.kit-shell.short .sound-view.two .sound-list-col { margin-bottom: calc(-8px - 16px * var(--air, 0)); }
.kit .sound-view .sound-list-col .scroll { padding: 0 6px; }
/* Stacked, the list is whole: no box of its own scrolling inside the body (one scroller per column). */
.kit .sound-view[data-layout=stack] .sound-list-col > .kit-scroller > .scroll { position: static; overflow: visible; }
.kit .sound-view[data-layout=stack] .sound-list-col > .kit-scroller > :is(.thumb, .track, .kit-more) { display: none; }
.kit .sound-view .sound-list { row-gap: 2px; }
/* The folders (desktop): a header (the chevron, down open and right closed; the name; a quiet count; the lamp lit when
   it is closed over the chosen instrument), its rows under it; an empty folder's one quiet line. */
.kit .sound-view .sound-folder-group { display: grid; row-gap: 2px; }
.kit .sound-view .sound-folder-group + .sound-folder-group { margin-top: 12px; }
.kit.kit-shell.short .sound-view .sound-folder-group + .sound-folder-group { margin-top: 6px; }
.kit .sound-view .sound-folder-head { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 2px 8px; min-width: 0; }   /* a narrow list: the folder's key goes under its name, never over it */
.kit .sound-view .sound-folder { flex: 1 1 auto; min-width: max-content; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 4px 0 10px; border: 0; border-radius: 6px;
  background: none; color: var(--note-text); font: inherit; font-size: var(--note-text-sm); font-weight: var(--note-weight-label); text-align: left; cursor: default; }
.kit.kit-shell.short .sound-view .sound-folder { height: 32px; gap: 8px; padding: 0 4px 0 8px; }
.kit .sound-view .sound-folder:hover { background: var(--note-key); }
.kit .sound-view .sound-folder:focus-visible { outline: 2px solid var(--deal-on); outline-offset: -2px; }
.kit .sound-view .sound-folder > .kit-icon { display: inline-flex; transition: rotate var(--note-dur) var(--note-ease); }
.kit .sound-view .sound-folder[aria-expanded="false"] > .kit-icon { rotate: -90deg; }
.kit .sound-view .sound-folder > .lamp { display: none; }
.kit .sound-view .sound-folder.holds > .lamp { display: block; background: var(--deal-on); }
.kit .sound-view .sound-folder > .count { font-size: var(--note-text-xs); font-weight: 400; color: var(--note-text-faint); }
.kit .sound-view .sound-folder-body { display: grid; row-gap: 2px; }
.kit .sound-view .sound-folder-body[hidden] { display: none; }
.kit .sound-view .sound-folder-empty { padding: 6px 14px 8px 32px; font-size: var(--note-text-xs); line-height: 16px; color: var(--note-text-muted); }
.kit .sound-view .sound-setup, .kit .sound-view .sound-add, .kit .sound-view .sound-get { flex: none; }
.kit .sound-view .sound-list-title { display: block; padding: 14px 0 6px 14px; font-size: var(--note-text-xs); line-height: 16px; color: var(--note-text-muted); }
/* A narrow list (a short, narrow panel): its rows tighter at their left. */
.kit.kit-shell.short .sound-view .sound-list .kit-row > .main { padding-left: 10px; gap: 8px; }
.kit .sound-view .sound-folder-head > .sound-folder { flex-basis: 0; }
/* The instrument's column. */
.kit .sound-view .sound-own-col { align-self: start; min-width: 0; min-height: 0; }
.kit .sound-view .sound-own { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 16px; min-width: 0; justify-items: start; }
/* The pad (or the capture square): the up axis's words in a 16 px column at its left, the across axis's under it. */
.kit .sound-view :is(.sound-pad, .sound-field) { display: grid; grid-template-columns: 16px var(--pad-w, 300px); grid-template-rows: var(--pad-h, 200px) auto; column-gap: 8px; row-gap: 6px; }
.kit .sound-view .sound-pad-surface, .kit .sound-view .sound-plane { grid-area: 1 / 2; position: relative; width: 100%; height: 100%; border-radius: 6px; background: var(--note-window); touch-action: none; cursor: crosshair; outline: none; }
.kit .sound-view :is(.sound-pad-surface, .sound-plane):focus-visible { outline: 2px solid var(--deal-on) !important; outline-offset: 2px; }
.kit .sound-view .sound-pad-surface.is-dragging { cursor: none; }
.kit .sound-view :is(.sound-pad-point, .sound-dot) { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--deal-on); pointer-events: none; }
.kit .sound-view .sound-pad-home { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 1px solid var(--note-text-faint); pointer-events: none; }
.kit .sound-view :is(.sound-pad-pole, .sound-pole) { font-size: var(--note-text-xs); line-height: 16px; color: var(--note-text-muted); white-space: nowrap; min-width: 0; min-height: 0; }
.kit .sound-view :is(.sound-pad-pole, .sound-pole):is(.is-top, .is-bottom) { grid-area: 1 / 1; writing-mode: vertical-rl; transform: rotate(180deg); justify-self: center; }
.kit .sound-view :is(.sound-pad-pole, .sound-pole).is-top { align-self: start; }
.kit .sound-view :is(.sound-pad-pole, .sound-pole).is-bottom { align-self: end; }
.kit .sound-view :is(.sound-pad-pole, .sound-pole):is(.is-left, .is-right) { grid-area: 2 / 2; }
.kit .sound-view :is(.sound-pad-pole, .sound-pole).is-left { justify-self: start; }
.kit .sound-view :is(.sound-pad-pole, .sound-pole).is-right { justify-self: end; }
/* The knobs: standing, in a row of --knob-cols beneath the pad, as wide as the pad and its words; each column at least
   its widest label (sound-panel.ts measures it), so a label is never cut. */
.kit .sound-view .sound-controls-col, .kit .sound-view .sound-controls-col > .scroll { display: contents; }
.kit .sound-view .sound-controls-col > :is(.thumb, .track, .kit-more) { display: none; }
.kit .sound-view .sound-dials { display: grid; grid-template-columns: repeat(var(--knob-cols, 4), minmax(0, 1fr)); gap: 16px 4px; justify-items: center; width: calc(var(--pad-w, 300px) + 24px); }
.kit .sound-view .sound-dials > .panel-row { display: block; margin: 0; min-width: 0; }
.kit .sound-view .sound-dials > .panel-row[hidden] { display: none; }
.kit .sound-view .sound-dials .kit-knob { min-width: 0; max-width: 100%; }
.kit .sound-view .sound-dials .kit-knob .lab { white-space: nowrap; }
/* Labels that would take a second row of knobs wrap instead, every label of the row in the same two-line box. */
.kit .sound-view[data-wrap] .sound-dials .kit-knob .lab { white-space: normal; text-align: center; min-height: 32px; display: flex; align-items: flex-end; justify-content: center; }
.kit .sound-view .sound-switches { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 16px; width: calc(var(--pad-w, 300px) + 24px); }
.kit .sound-view .sound-switches:not(:has(> :not([hidden]))) { display: none; }
/* Beside: the pad, then past 16 px of air the knobs' column in the compact form (36 px dial, label and value at its
   right), as tall as the pad and its words, scrolling inside itself only if an instrument has more than it holds. */
.kit .sound-view[data-layout=beside] .sound-own { grid-template-columns: auto var(--knob-w); column-gap: 12px; align-items: start; }
.kit .sound-view[data-layout=beside] .sound-own > :is(.sound-pad, .sound-field) { grid-column: 1; grid-row: 1; }
.kit .sound-view[data-layout=beside] .sound-controls-col { display: block; grid-column: 2; grid-row: 1; justify-self: stretch; position: relative; height: calc(var(--pad-h) + 22px); }
.kit .sound-view[data-layout=beside] .sound-controls-col > .scroll { display: block; }
.kit .sound-view[data-layout=beside] .sound-controls-col > .thumb { display: block; }
.kit .sound-view[data-layout=beside] .sound-controls-col > :is(.thumb, .track, .kit-more)[hidden] { display: none; }
.kit .sound-view[data-layout=beside] .sound-controls-col > .track:not([hidden]), .kit .sound-view[data-layout=beside] .sound-controls-col > .kit-more:not([hidden]) { display: flex; }
.kit .sound-view[data-layout=beside] .sound-dials { width: auto; grid-template-columns: minmax(0, 1fr); row-gap: 6px; justify-items: start; }
.kit .sound-view[data-layout=beside] .sound-switches { width: auto; margin-top: 16px; row-gap: 10px; }
.kit .sound-view[data-layout=beside] .sound-switches .kit-sel > .kit-key { height: 28px; min-width: 28px; padding: 0 10px; }
.kit .sound-view[data-layout=beside] .sound-dials .kit-knob { display: grid; grid-template-columns: 36px auto; grid-template-areas: "dial lab" "dial val"; justify-items: start; align-items: center; column-gap: 8px; row-gap: 0; }
.kit .sound-view[data-layout=beside] .sound-dials .kit-knob > .dial { grid-area: dial; }
.kit .sound-view[data-layout=beside] .sound-dials .kit-knob > .lab { grid-area: lab; align-self: end; }
.kit .sound-view[data-layout=beside] .sound-dials .kit-knob > :is(.val, .kit-readout) { grid-area: val; align-self: start; }
/* Mute, in the head beside close (the host gives a panel's keys the head's free room: Mute keeps to its right). */
.kit .sound-mute { display: flex; margin-left: auto; }

/* ---------- Mixer (src/ui/panels/mixer-panel.ts; docs/ui-pass/mock/mixer-screens.png) ---------- */
/* The strips side by side, equal, hairlines between them, over the body's whole height, sharing the panel's width
   whatever their count (one to four tracks, the Drums, Master: three to six strips). Six strips need 708: where the
   panel is narrower (a docked 643 or 620) they keep their least width (118) and the body scrolls sideways under its
   thumb, Master last. The page says its tall height (data-tall 360): under it the shell is short (the kit's rule) and so
   are the strips. */
/* The strips stand in the kit's page padding (24 at each side) as far as the strips' least width lets them (50% less half
   of --mx-count × 118, the strips shown: mixer-panel.ts): four strips of 118 in a 518 panel leave 23, five in a 620 leave
   15; at the least width, none. */
.kit .pg.mx-page { padding: 0 clamp(0px, calc(50% - var(--mx-count, 4) * 59px), 24px); row-gap: 0; height: 100%; min-height: 360px; grid-template-rows: minmax(0, 1fr); align-content: stretch; }
.kit .mx-strips { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); min-height: 0; }   /* under 118 a strip's controls no longer fit: the body scrolls sideways */
.kit .mx-strip { display: grid; grid-template-rows: auto minmax(0, 1fr); row-gap: 16px; padding: 12px 3px 12px 5px; min-width: 0; min-height: 0; container: mx-strip / inline-size; }
.kit .mx-strip + .mx-strip { border-left: 1px solid var(--note-rule); }
/* The head: a flat chip in the strip's ink, the name, the instrument under it. */
.kit .mx-head { display: grid; min-width: 0; }
.kit .mx-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kit .mx-chip { flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--kit-ink); }
.kit .mx-name { font-size: var(--note-text-sm); line-height: 18px; font-weight: var(--note-weight-label); color: var(--note-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kit .mx-what { min-width: 0; padding-left: 18px; font-size: var(--note-text-xs); line-height: 16px; color: var(--note-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Two columns: the knobs, latches and Reset at the left; the fader, its meter and its window at the right. The left
   column is as wide as its keys; a knob's value wider than that (R 100, −12.0) runs on into the air beside the fader,
   which stands centred in its column, so the columns never jump as values change. */
.kit .mx-body { display: grid; grid-template-columns: max-content minmax(max-content, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); column-gap: 6px; min-height: 0; }
/* Mute and Solo directly under Pan, Reset right under them (the owner: no gap between Solo and Reset); the air below.
   The left column's parts sit in the body's rows, and the fader spans the same three, so its level window ends on
   Reset's line in every form and at every height (the air under both). */
.kit .mx-left { display: contents; }
.kit .mx-left > * { grid-column: 1; }
.kit .mx-knobs { grid-row: 1; display: grid; grid-template-rows: repeat(4, 36px); row-gap: 12px; contain: inline-size; }
.kit .mx-knobs > .mx-empty { height: 36px; }
.kit .mx-left .kit-knob.compact { column-gap: 6px; }
.kit .mx-ms { grid-row: 2; margin-top: 16px; display: grid; grid-template-rows: 28px 28px; row-gap: 2px; }
.kit .mx-ms > .kit-key:first-child { border-radius: 6px 6px 2px 2px; }
.kit .mx-ms > .kit-key:last-child { border-radius: 2px 2px 6px 6px; }
.kit .mx-ms.none { visibility: hidden; }
.kit .mx-reset { grid-row: 3; display: grid; margin-top: 8px; }
.kit .mx-right { grid-column: 2; grid-row: 1 / 4; display: grid; min-height: 0; min-width: 0; }
.kit .mx-right > .kit-fader { min-height: 0; }
.kit .mx-right > .kit-fader > .kit-win { padding: 0 4px; gap: 3px; }
/* The Mixer's display sits 8 under the strips. */
body #side-panel .kit-shell:has(.mx-page) > .display-row { padding-top: 8px; }
/* Short (the shell's rule: the body under 360): the same type and controls, less air, and Mute and Solo first, under
   the strip's name, so the primary actions show however short the body is; the knobs, then Reset, under them. */
.kit.kit-shell.short .pg.mx-page { min-height: 302px; }   /* its strips whole: under it the body scrolls (the cue shows) and the fader keeps its travel */
.kit.kit-shell.short .mx-strip { padding-top: 8px; padding-bottom: 8px; row-gap: 8px; }
.kit.kit-shell.short .mx-knobs { grid-row: 2; row-gap: 2px; margin-top: 8px; }
.kit.kit-shell.short .mx-ms { grid-row: 1; margin-top: 0; }
.kit.kit-shell.short .mx-reset { margin-top: 8px; }
/* A narrow strip (five in a 620 panel, four in a 518): the knob's dial 28 and its words tighter, the fader's lane 28
   and its meter 6, its window without the unit (the display says dB when it is touched). */
@container mx-strip (max-width: 150px) {
  .kit .mx-strip .mx-body { column-gap: 0; }
  .kit .mx-strip .mx-left .kit-knob.compact { grid-template-columns: 28px auto; column-gap: 2px; }
  .kit .mx-strip .mx-right > .kit-fader > .kit-win { padding: 0 1px; }
  .kit .mx-strip .mx-left .kit-knob.compact .dial { width: 28px; height: 28px; }
  .kit .mx-strip .kit-fader > .track { gap: 2px; }
  .kit .mx-strip .kit-fader > .track > .lane { width: 28px; }
  .kit .mx-strip .kit-fader .cap { width: 28px; }
  .kit .mx-strip .kit-fader .slot { left: 13px; }
  .kit .mx-strip .kit-fader > .track > .meter { width: 6px; }
  .kit .mx-strip .kit-fader > .kit-win .unit { display: none; }
  .kit .mx-strip .mx-ms > .kit-key, .kit .mx-strip .mx-reset > .kit-key { padding: 0 6px; gap: 6px; }
}

/* ---------- Library (src/ui/panels/library-panel.ts; docs/ui-pass/mock/library-screens.png) ---------- */
/* The tools at the top (the field filling the line, New song at its own width), then the songs, scrolling inside their
   own box under the tools, the view ending on a whole row. */
.kit .pg.lib-page { height: 100%; min-height: 240px; padding: 16px 24px 16px; row-gap: 16px; grid-template-rows: auto minmax(0, 1fr); align-content: stretch; }
/* Short (the shell's rule): the page is the body's height whatever it is (the list scrolls in its own box), with the
   short gaps; the rows take the dense 32 (the kit's). */
.kit.kit-shell.short .pg.lib-page { min-height: 0; padding-top: 8px; padding-bottom: 8px; row-gap: 8px; }
.kit .lib-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kit .lib-tools > .kit-field { flex: 1 1 auto; min-width: 0; }
.kit .lib-tools > .kit-key { flex: none; }
.kit .lib-scroller { margin: 0 -6px; }   /* room for a row's focus ring */
.kit .lib-scroller > .scroll { padding: 2px 6px 4px; }
.kit .lib-list { grid-template-columns: minmax(0, 1fr); }   /* a long name ends in an ellipsis; the list never widens */
/* One line per song: the name (14/500), when it changed in a column at the right (left-aligned, so the times scan down),
   then its keys, which keep their room on the quiet rows (and show while their Menu is open). */
.kit .lib-row > .main > .name { font-weight: var(--note-weight-label); }
.kit .lib-row > .main > .meta { width: 120px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kit .lib-row:has(> .row-keys > .kit-key.lit) > .row-keys { visibility: visible; }
.kit .lib-row > .row-keys > .kit-key[aria-disabled="true"] { color: var(--note-text-disabled); }
/* Renaming in place: the name a field, the row's height kept. */
.kit .lib-row > .lib-rename { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; height: 100%; padding-left: 14px; }
.kit .lib-row > .lib-rename > .kit-field { flex: 1 1 auto; height: 32px; }
.kit .lib-empty { padding-left: 14px; }
.kit #library-undo { margin-left: auto; }   /* in the head, beside close (the host gives a panel's keys the head's free room) */
/* A narrow Library (under 480 px of list): the name keeps the room and the changed line steps out of the row (a touched
   row still reads it on the display). */
.kit .lib-list { container-type: inline-size; }
@container (max-width: 479px) { .kit .lib-row > .main > .meta { display: none; } }

/* ---------- Recordings (the website's takes; recordings-panel.ts): the Library's shape, a tools row, rows in their own
   scroller, a quiet foot. The rows' keys always show (the website runs on touch); a chosen row (Select) lights its lamp
   and name in the ink, as a lit row does. ---------- */
.kit .pg.rec-page { height: 100%; min-height: 240px; padding: 16px 24px 16px; row-gap: 16px; grid-template-rows: auto minmax(0, 1fr) auto; align-content: stretch; }
.kit .rec-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kit .rec-tools > .kit-field { flex: 1 1 auto; min-width: 0; }
.kit .rec-scroller { margin: 0 -6px; }
.kit .rec-scroller > .scroll { padding: 2px 6px 4px; }
.kit .rec-list { grid-template-columns: minmax(0, 1fr); container-type: inline-size; }
.kit .kit-list.rec-list > .kit-row.rec-row:not(.lit):not(:hover):not(:focus-within) > .row-keys { visibility: visible; }
.kit .rec-row > .main > .name { font-weight: var(--note-weight-label); }
.kit .rec-row > .main > .meta { white-space: nowrap; }
.kit .rec-row.chosen > .main > .lamp { background: var(--kit-ink); }
.kit .rec-list.selecting > .rec-row > .row-keys { display: none; }   /* choosing: the rows are choices, their keys step out */
.kit .rec-row.chosen > .main > :is(.name, .meta) { color: var(--kit-ink); }
.kit .rec-row > .rec-rename { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; height: 100%; padding-left: 14px; }
.kit .rec-row > .rec-rename > .kit-field { flex: 1 1 auto; height: 32px; }
.kit .rec-empty { padding-left: 14px; }
.kit .rec-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--note-rule);
  font-size: var(--note-text-xs); line-height: 16px; color: var(--note-text-muted); }
@container (max-width: 359px) { .kit .rec-row > .main > .meta { display: none; } }

/* ---------- Audio & MIDI (the website's; audio-midi-panel.ts): two sections side by side (kit columns), stacked when
   narrow. The input level is a flat bar in a window; the keyboard's activity a lamp. ---------- */
.kit .am-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.kit .am-controls { display: grid; row-gap: 16px; justify-items: start; }
.kit .am-row { display: grid; }
.kit .am-level { display: flex; align-items: center; gap: 10px; }
.kit .am-meter { appearance: none; display: block; width: 120px; height: 6px; border: 0; border-radius: 2px; background: var(--note-window); }
.kit .am-meter::-webkit-meter-bar { height: 6px; border: 0; border-radius: 2px; background: var(--note-window); }
.kit .am-meter::-webkit-meter-optimum-value, .kit .am-meter::-webkit-meter-suboptimum-value, .kit .am-meter::-webkit-meter-even-less-good-value { border-radius: 2px; background: var(--deal-on); }
.kit .am-meter::-moz-meter-bar { border-radius: 2px; background: var(--deal-on); }
.kit .am-peak { font-size: var(--note-text-xs); line-height: 16px; color: var(--note-text-muted); font-variant-numeric: var(--note-numeric); white-space: nowrap; }
.kit .am-lamp { margin-left: 4px; }
.kit .am-lamp.on { background: var(--deal-on); }

/* ---------- The Export window (src/ui/export-window.ts; DIRECTION.md, The Export window): its own small window, the
   display over its keys, nothing else. ---------- */
html:has(body.export-window-body), body.export-window-body { height: 100%; margin: 0; background: var(--note-casing); overflow: hidden; }
.kit.export-window { position: fixed; inset: 0; background: var(--note-casing); }
.kit .export-page { box-sizing: border-box; height: 100%; display: grid; grid-template-rows: minmax(52px, 1fr) auto; row-gap: 12px; padding: 16px; outline: none; }
.kit .export-page > .export-hero { height: auto; min-height: 52px; }
.kit .export-keys { display: flex; justify-content: flex-end; gap: 8px; }
.kit .export-keys > .kit-key[hidden] { display: none; }

/* ---------- Visual (src/ui/panels/visual-panel.ts) ---------- */
/* The scenes as Sound's instruments are: the list in a column of its own (scrolling inside it, ending on a whole row, its
   column running the body's full height to the display row: the list takes the room first), past a hairline the chosen
   scene's name over its Look and its subject. Narrow (under 440 inside): the list whole, then the choices; the body is
   the one scroller. Short (the shell's rule): the section labels step out (the display names the scene), the rows take
   the dense 32 and the gaps tighten. */
.kit .vis-view { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr); align-content: stretch; }
.kit .vis-view[data-layout=stack] { height: auto; grid-template-rows: auto; }
.kit .vis-view .vis-cols { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 28px; min-height: 0; }
.kit .vis-view .col-rule { display: none; }
.kit .vis-view.two .vis-cols { grid-template-columns: var(--vis-list-w, 208px) 1px minmax(0, 1fr); column-gap: 24px; }
.kit .vis-view.two .col-rule { display: block; background: var(--note-rule); }
.kit.kit-shell.short .vis-view.two .vis-cols { column-gap: 12px; }
.kit.kit-shell.short .vis-view .kit-section > .sh { display: none; }
.kit .vis-view .vis-list-col { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; min-height: 0; }
.kit.kit-shell.short .vis-view .vis-list-col { grid-template-rows: minmax(0, 1fr); }
.kit .vis-view .vis-list-col > .kit-scroller { margin: 0 -6px; min-height: 0; }
.kit .vis-view.two .vis-list-col { margin-bottom: -24px; }
.kit.kit-shell.short .vis-view.two .vis-list-col { margin-bottom: calc(-8px - 16px * var(--air, 0)); }
.kit .vis-view .vis-list-col .scroll { padding: 0 6px; }
.kit .vis-view[data-layout=stack] .vis-list-col > .kit-scroller > .scroll { position: static; overflow: visible; }
.kit .vis-view[data-layout=stack] .vis-list-col > .kit-scroller > :is(.thumb, .track, .kit-more) { display: none; }
.kit .vis-view .vis-list { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
.kit.kit-shell.short .vis-view .vis-list .kit-row > .main { padding-left: 10px; gap: 8px; }
.kit .vis-view .vis-own-col { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; min-width: 0; min-height: 0; }
.kit.kit-shell.short .vis-view .vis-own-col { grid-template-rows: minmax(0, 1fr); }
.kit .vis-view .vis-own-col > .kit-scroller { margin: 0 -6px; min-height: 0; }
.kit .vis-view .vis-own-col .scroll { padding: 0 6px; }
.kit .vis-view.two .vis-own-col { margin-bottom: -24px; }
.kit.kit-shell.short .vis-view.two .vis-own-col { margin-bottom: calc(-8px - 16px * var(--air, 0)); }
.kit .vis-view .vis-own-col .scroll > .vis-screen { margin-top: 16px; }
.kit .vis-view[data-layout=stack] .vis-own-col > .kit-scroller > .scroll { position: static; overflow: visible; }
.kit .vis-view[data-layout=stack] .vis-own-col > .kit-scroller > :is(.thumb, .track, .kit-more) { display: none; }
.kit .vis-view .vis-choices { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 24px; min-width: 0; }
.kit.kit-shell.short .vis-view .vis-choices { row-gap: calc(12px + 12px * var(--air, 0)); }
.kit .vis-view .vis-choices .kit-sel { max-width: 100%; }
.kit .vis-view .vis-none { margin: 0; font-size: var(--note-text-xs); line-height: 16px; color: var(--note-text-muted); }
.kit .vis-view .vis-screen { width: 100%; border-radius: 6px; overflow: hidden; }
.kit .vis-view .vis-screen[hidden] { display: none; }
.kit .vis-view .vis-screen > canvas { position: absolute; left: 0; top: 0; }
.kit .vis-view .vis-choices .kit-sel { width: 100%; grid-auto-columns: minmax(0, 1fr); }
.kit.kit-shell.short .vis-view .vis-list .kit-row { height: var(--vis-row-h, calc(32px + 8px * var(--air, 0))); }

/* ---------- The Mixer's racks (src/ui/panels/mixer-rack.ts; docs/ui-pass/DIRECTION.md, Racks; the approved pictures B1, B2
   on ui/mixer-effects-mock). Kit materials and tokens only; flat. ---------- */
/* Each strip's head: a lamp per unit of its rack, lit while it plays, at the instrument line's end. */
.kit .mx-strip .mx-head { position: relative; }
.kit .mx-strip .mx-lamps { position: absolute; right: 4px; bottom: 5px; display: inline-flex; gap: 2px; }
.kit .mx-strip .mx-lamps[hidden] { display: none; }
.kit .mx-strip .mx-lamps > .lamp { width: 5px; height: 5px; }
.kit .mx-strip.mx-has-rack .mx-what { padding-right: 34px; }
.kit .mx-lamps > .lamp.on, .kit .rk-lamps > .lamp.on { background: var(--kit-ink); }
/* The Mix page with the slim rack under the strips: the strips in their full rhythm when it fits so, else their short
   rhythm (Mute and Solo first: slim-short). */
.kit .pg.mx-page.with-slim { grid-template-rows: var(--mx-strips-h, 302px) minmax(0, 1fr); min-height: 0; padding-bottom: 0; }
.kit .mx-page.slim-short .mx-strip { padding-top: 8px; padding-bottom: 10px; row-gap: 8px; }
.kit .mx-page.slim-short .mx-knobs { grid-row: 2; row-gap: 2px; margin-top: 8px; }
.kit .mx-page.slim-short .mx-ms { grid-row: 1; margin-top: 0; }
.kit .mx-page.slim-short .mx-reset { margin-top: 8px; }
/* The chosen strip: its title a lit plate of its ink; its foot carries the ink into the rack below (a 2 px tab). */
.kit .mx-page.with-slim .mx-strip.rk-chosen .mx-title { background: var(--kit-ink); border-radius: 6px; margin: -1px 0 -1px -6px; padding: 1px 4px 1px 6px; }
.kit .mx-page.with-slim .mx-strip.rk-chosen .mx-chip { background: var(--kit-ink-pair); }
.kit .mx-page.with-slim .mx-strip.rk-chosen .mx-name { color: var(--kit-ink-pair); }
.kit .mx-page.with-slim .mx-strip.rk-chosen::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--kit-ink); z-index: 1; }
.kit .mx-page .mx-strip { position: relative; }
/* The Effects page: the strips step out; the racks have the page, its height what they need. */
.kit .pg.mx-page[data-page=effects] { grid-template-rows: auto; min-height: 0; height: auto; }
.kit .pg.mx-page > [hidden] { display: none !important; }

/* A zone: the head (its strip, the saved chain, Add) over the units. */
.kit .rk-zone { display: grid; min-height: 0; min-width: 0; }
.kit .rk-slim { grid-template-rows: 28px minmax(0, 1fr); row-gap: 10px; padding: 12px 0 14px; border-top: 1px solid var(--note-rule); }
.kit .rk-head { display: flex; align-items: center; gap: 8px; min-width: 0; height: 28px; }
.kit .rk-big .rk-head { height: 36px; }
.kit .rk-spacer { flex: 1 1 auto; }
.kit .rk-lab { font-size: var(--note-text-xs); line-height: 16px; font-weight: var(--note-weight-label); color: var(--note-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kit .rk-chain, .kit .rk-add { flex: none; }
.kit .rk-chain-name { flex: none; width: 220px; }
.kit .rk-units { position: relative; display: grid; grid-auto-rows: max-content; row-gap: 3px; min-height: 0; align-content: start; }
.kit .rk-empty { font-size: var(--note-text-sm); line-height: 18px; color: var(--note-text-muted); padding: 7px 0; }

/* A unit: a plate on the casing, its screws, the name key (its lamp: on), its knobs, ⋯. */
.kit .rk-unit {
  position: relative; display: grid; grid-template-columns: 4px 132px minmax(0, 1fr) 28px 4px; align-items: center; column-gap: 10px;
  height: 42px; padding: 0 6px; border-radius: 6px; background: var(--note-casing); outline: 1px solid var(--note-rule); outline-offset: -1px;
}
.kit .rk-screw { width: 4px; height: 4px; border-radius: 50%; background: var(--note-lamp); }
.kit .rk-unit .rk-name { justify-content: flex-start; width: 132px; height: 30px; padding: 0 10px; cursor: grab; touch-action: none; }
.kit .rk-unit .rk-name > .kit-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* On: the name key stays the key face (one solid block per region is the chosen strip's), its lamp lit in the strip's ink. */
.kit .rk-unit .rk-name.lit { background: var(--note-key); color: var(--note-text); }
.kit .rk-unit .rk-name.lit:hover { background: var(--note-key-hover); }
.kit .rk-unit .rk-name.lit .lamp { background: var(--kit-ink); }
/* Off (bypassed): the lamp dark, the name and every control in the disabled ink. */
.kit .rk-unit.off .rk-name { color: var(--note-text-faint); }
.kit .rk-unit .rk-knobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.kit .rk-unit .rk-knobs > .kit-knob.compact { min-width: 0; column-gap: 6px; grid-template-columns: 30px minmax(0, auto); }
.kit .rk-unit .rk-knobs > .kit-knob.compact .dial { width: 30px; height: 30px; }
.kit .rk-unit .rk-knobs > .kit-knob .lab { white-space: nowrap; }
.kit .rk-unit .rk-knobs > .kit-knob.compact .val { font-size: var(--note-text-xs); line-height: 16px; white-space: nowrap; }
.kit .rk-unit .rk-more { width: 28px; padding: 0; }
/* Dragged: lifted off the rack (an on-ink edge), the marker where it lands. */
.kit .rk-unit.lifted { z-index: 4; outline: 2px solid var(--deal-on); outline-offset: -2px; background: var(--note-key); box-shadow: none; }
.kit .rk-unit.lifted .rk-name { cursor: grabbing; }
.kit .rk-marker { position: absolute; left: 6px; right: 6px; height: 2px; background: var(--deal-on); pointer-events: none; z-index: 5; }

/* The Effects page (B2): the strips at the left, past a hairline the chain's larger units. */
.kit .rk-big { grid-template-columns: 148px minmax(0, 1fr); column-gap: 25px; padding: 16px 0 8px; position: relative; align-items: start; }
.kit .rk-big::before { content: ''; position: absolute; left: 160px; top: 16px; bottom: 8px; width: 1px; background: var(--note-rule); }
.kit .rk-left { display: grid; grid-auto-rows: max-content; row-gap: 8px; align-content: start; min-width: 0; }
.kit .rk-col { height: 36px; display: flex; align-items: center; }
.kit .rk-strips .kit-list { display: grid; row-gap: 2px; }
.kit .rk-strips .kit-row { height: 36px; }
.kit .rk-strips .kit-row > .main { gap: 10px; padding-left: 12px; padding-right: 10px; }
.kit .rk-strips .kit-row:not(.lit) > .main > .lamp { background: var(--kit-ink); opacity: .9; }
.kit .rk-strips .rk-lamps { display: inline-flex; gap: 3px; margin-left: auto; flex: none; }
.kit .rk-strips .rk-lamps > .lamp { width: 5px; height: 5px; }
.kit .rk-right { display: grid; grid-template-rows: 36px auto; row-gap: 12px; min-width: 0; }
.kit .rk-unit.big { height: 96px; grid-template-columns: 4px 116px minmax(0, 1fr) 28px 4px; align-items: start; padding-top: 10px; padding-bottom: 10px; }
.kit .rk-unit.big > .rk-screw { margin-top: 14px; }
.kit .rk-unit.big .rk-side { display: grid; row-gap: 4px; min-width: 0; }
.kit .rk-unit.big .rk-name { width: 116px; height: 30px; }
.kit .rk-unit.big .rk-side .kit-picker { width: 116px !important; }
.kit .rk-unit.big .rk-side > .rk-opt { row-gap: 2px; }
.kit .rk-unit.big .rk-knobs { gap: 4px; }
.kit .rk-unit.big .rk-knobs > .kit-knob { min-width: 0; }
.kit .rk-unit.big .rk-knobs > .kit-knob .val { font-size: var(--note-text-sm); line-height: 18px; white-space: nowrap; }
.kit .rk-unit.big .rk-keys { display: grid; row-gap: 4px; }
.kit .rk-unit.big .rk-keys > .kit-key { width: 28px; padding: 0; }
.kit .rk-unit.big .rk-side > .rk-opt { margin-top: 2px; }
/* Narrow (a docked panel under 600 wide): the strips a row of keys over the chain, the units the full width. */
/* The units' own list (a kit scroller): whole rows, the More tab under them when the rest scroll. */
.kit .rk-list { min-width: 0; }
.kit .rk-list.scrolls .rk-units { padding-right: 10px; }   /* room for the list's thumb beside the plates */
/* The strips a row of keys over the units: narrow (a docked panel under 600 wide) and the short form. */
.kit .rk-big.short { grid-template-columns: minmax(0, 1fr); row-gap: 12px; padding: 8px 0; }
.kit .rk-big.short::before { display: none; }
.kit .rk-big.short .rk-col { display: none; }
.kit .rk-big.short .rk-strips .kit-list { display: flex; gap: 2px; }
.kit .rk-big.short .rk-strips .kit-row { flex: 1 1 0; min-width: 0; }
.kit .rk-big.short .rk-strips .rk-lamps { display: none; }
.kit .rk-big.short .rk-strips .kit-row > .main { padding-left: 10px; padding-right: 6px; gap: 8px; }
.kit .rk-big.short .rk-right { grid-template-rows: 28px auto; }
.kit .rk-big.short .rk-head { height: 28px; }
@container kit-body (max-width: 599px) {
  .kit .rk-big { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .kit .rk-big::before { display: none; }
  .kit .rk-big .rk-col { display: none; }
  .kit .rk-strips .kit-list { display: flex; gap: 2px; }
  .kit .rk-strips .kit-row { flex: 1 1 0; min-width: 0; }
  .kit .rk-strips .rk-lamps { display: none; }
}

/* The ⋯ sheet: the unit's other controls, its options, Turn off and Remove. */
.kit.kit-pop.rk-sheet > .rk-sheet-box { display: grid; row-gap: 16px; width: min(400px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow: auto;
  padding: 12px 12px 16px 16px; border-radius: 10px; background: var(--note-casing); outline: 1px solid var(--note-rule); outline-offset: -1px; scrollbar-width: none; }
.kit .rk-sheet-head { display: flex; align-items: center; gap: 12px; min-height: 28px; }
.kit .rk-sheet-title { flex: 1 1 auto; font-size: var(--note-text-sm); line-height: 18px; font-weight: var(--note-weight-label); color: var(--note-text); }
.kit .rk-sheet-opts { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.kit .rk-opt { display: grid; row-gap: 4px; }
.kit .rk-sheet-knobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); row-gap: 16px; column-gap: 8px; justify-items: center; }
.kit .rk-sheet-foot { display: flex; gap: 8px; }
.kit .rk-big .rk-title { flex: none; overflow: visible; }
