body      { background:#000; -webkit-user-select: none;-webkit-app-region: drag; overflow: hidden; transition: background-color 500ms }
yu        { display: block; font-family: 'input_mono_regular'; font-size:11px; line-height: 30px; vertical-align: top; -webkit-app-region: no-drag; }
yu:after  { display: table; content: ""; clear: both; }
ln        { display: block;}
ln i      { color:#999; }
hl        { line-height: 29px; font-family: 'input_mono_medium'; display: block; border-bottom:1px solid black; }
t         { vertical-align: top; display: inline-block; }
svg       { display: inline-block; vertical-align: top }
textarea  { background:none; padding:px 0px; line-height: 15px; overflow: hidden}
b         { font-weight: normal; font-family: 'input_mono_medium'}

app { display: block; width:30px; height:30px; padding:30px; color:black; overflow: hidden; z-index:20; margin: calc(50vh - 277.5px) auto; transition: background-color 150ms, opacity 350ms; max-width: 830px; height: 495px; position: relative; opacity:0; width:calc(100% - 60px); }

.tracks tr td { padding: 0 2.5px; color:#555}
#instrument { width:130px; display:block; vertical-align:top; margin-left:15px; line-height:15px; overflow: hidden; position: absolute; right:25px;}
#instrument > div > * { width:100%; cursor:pointer; }
#instrument .family { margin-bottom:15px; }
/* Rows that swap (0.8.0, outputs/2026-11-24_marabu_env-pitch-lfo-spec_v01.md): the family's class says which shows.
 * ENV: row 5 is GLD in PITCH (#envelope.pitch), else POW. The LFO block: LFO 2's four (#lfo.lfo2), else LFO 1's */
#instrument #envelope .control.gld { display:none; }
#instrument #envelope.pitch .control.gld { display:block; }
#instrument #envelope.pitch .control.pow { display:none; }
#instrument #lfo .control.lfo2 { display:none; }
#instrument #lfo.lfo2 .control.lfo2 { display:block; }
#instrument #lfo.lfo2 .control.lfo1 { display:none; }
#sequencer { display:block; vertical-align:top; float:left; max-height: 465px; overflow:hidden; position: relative;}
#sequencer tr td { padding:0px;}
#sequencer tr td:first-child { padding-left:2.5px;}
#sequencer tr td:last-child { padding-right:2.5px;}
#scrollbar { background: #333;width: 1px;height: 0px;position: absolute;left: 161px;top: 30px; display: none }
#editor { display:block; vertical-align:top; margin-left:15px; float:left; max-width: 571px; overflow: hidden; height:480px; max-width:calc(100% - 270px); position: relative;}
#editor #composer-table { width:550px; }
#editor #pattern-table { width:550px; }
.tracks * { line-height: 15px }
.tracks tr:hover { color:#999}
.tracks tr td { position:relative}
.tracks td:hover { cursor:pointer}
.tracks tr td:hover { cursor:pointer; }
.tracks tr th { color:#555; font-family: 'input_mono_regular'; padding: 0 2.5px;}
.tracks tr th:hover { cursor:pointer; color:#999}

#editor.composer #composer-table { display: table; }
#composer-table { width:100%; margin-top: -240px; transition: all 150ms; margin-bottom: 15px  }
#composer-table tr td, #composer-table tr th { line-height: 15px; padding:0px; text-align: center }
#editor.composer #composer-table { margin-top:0px; }
#text-page { position: absolute; top: 0; left: 0; width: 100%; height: 480px; background: var(--background); transform: translateY(-100%); z-index: 1; }
#editor.text #text-page { transform: translateY(0); }
#editor.text #pattern-table { visibility: hidden; }
#text-page .text-row, #keymap .keymap-row { display: block; height: 15px; line-height: 15px; padding: 0 2.5px; white-space: pre; overflow: hidden; }
#text-page .caret { background: var(--b_low); color: var(--b_inv); } /* the selected-cell look of the pattern editor */
#keymap-wrap { position: absolute; top: 0; left: 0; width: 100%; height: 0px; overflow: hidden; transition: height 150ms; background: var(--background); z-index: 2; }
#editor.keymap #keymap-wrap { height: 240px; }
/* the guided theme picker (CmdOrCtrl+T): a drop-down like the keymap; .swatch's colour is set inline (the one V1 exception) */
#theme-wrap { position: absolute; top: 0; left: 0; width: 100%; height: 0px; overflow: hidden; transition: height 150ms; background: var(--background); z-index: 2; }
#editor.theme #theme-wrap { height: 240px; }
#theme-picker .picker-row { display: block; height: 15px; line-height: 15px; padding: 0 2.5px; white-space: pre; overflow: hidden; }
#theme-picker .swatch-end { box-shadow: inset 0 -3px 0 var(--background); } /* a gap under each swatch, so the rows read apart */
#mix-table { position: absolute; top: 0; left: 0; width: 100%; background: var(--background); transform: translateY(-100%); }
#mix-table tr td, #mix-table tr th { line-height: 15px; padding: 0 2.5px; }
#editor.mix #mix-table { transform: translateY(0); }
#editor.mix #pattern-table { visibility: hidden; }
#position { position: absolute;bottom: 45px;line-height: 15px;padding: 0px 2.5px;width: 110px;}
#control_name { position: absolute; bottom: 30px; right: 25px; width: 125px; line-height: 15px; padding: 0px 2.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }   /* Lantern: the selected panel row's full name, under the panel */
#info { position: absolute; bottom: 30px; line-height: 15px; padding: 0px 2.5px; overflow: hidden; white-space: nowrap; }

.right { float:right; }
.left { float:left; }
.hide { display: none }
.pointer { cursor:pointer; }

.control { height: 15px; overflow: hidden; }
.control t.name { width:42px; display:inline-block; padding:0px 2.5px; text-align: left; white-space: pre; }   /* Lantern: 6 characters, padded with spaces (Griffin, 2026-12-01) */   /* Lantern: up to 6 characters (Rule V3; panel spec §3.1); 25px (3) in Marabu */
.control t.name t.n2 { display:none; }                       /* Lantern: PROG's second label, KIT, shown on a rhythm part */
#instrument #part.rhythm .control t.name t.n1 { display:none; }
#instrument #part.rhythm .control t.name t.n2 { display:inline; }
#instrument .family.section .control { display:none; }         /* Lantern: a closed section shows its header only (panel spec v03 §2) */
#instrument .family.section .control.head, #instrument .family.section.open .control { display:block; }
#instrument .control.nobar .slide { display:none; }            /* Lantern: an EFX value too long for the bar's side */
#instrument #drum { display:none; }                           /* Lantern: the drum notes, on a drum part only (panel spec v03 §6) */
#instrument.rhythm:not(.song) #drum { display:block; }
#instrument:not(.rhythm) #tone .control.header { display:none; }
#instrument .family.section { margin-bottom:0; }
#instrument .family.section .control:not(.head) t.name { padding-left:9.5px; }   /* a section's rows: indented one space (7px) */
#instrument .family.section .control.slider:not(.head) .slide { width:36px; }   /* their bar gives the space back: 5 dashes */                /* a section has no gap under it: its header separates (panel spec v04 §4) */
#instrument .family .control.efxp, #instrument .family.section.open .control.efxp:not(.on) { display:none; }   /* only the EFX type stored */
#instrument .family.section.open .control.efxp.on { display:block; }
#instrument .family.songv { display:none; }                  /* Lantern: the song settings view (CmdOrCtrl+J) */
#instrument.song .family { display:none; }
#instrument.song .family.songv { display:block; }
.control t.value { display:inline-block; padding:0px 2.5px; }
.control.slider { cursor: pointer; display: block; position:relative; }
.control.slider.selected { position: relative; }
.control.slider .slide { width:43px; height:15px; display: inline-block; position:relative; padding:0px 2.5px;}   /* Lantern: 6 dashes (60px, 8 in Marabu) */
.control.uv { height:15px; }
#output { clear: both; height: 15px; display: block; line-height: 15px; overflow: hidden; max-width: calc(100% - 270px); }
#ports { line-height: 15px; white-space: pre; }   /* Lantern: the output row (ui/ports.js) */

/* Theme Defaults */

:root { --background: "#222"; --f_high: "#fff";--f_med: "#777";--f_low: "#444";--f_inv: "#000";--b_high: "#000";--b_med: "#affec7";--b_low: "#000";--b_inv: "#affec7"; }  

body { background:var(--background) !important }
.fh { color:var(--f_high) !important; stroke:var(--f_high) !important }
.fm { color:var(--f_med) !important ; stroke:var(--f_med) !important }
.fl { color:var(--f_low) !important ; stroke:var(--f_low) !important }
.f_inv { color:var(--f_inv) !important ; stroke:var(--f_inv) !important }
.f_inv { color:var(--f_inv) !important ; stroke:var(--f_inv) !important }
.bh { background:var(--b_high) !important; fill:var(--b_high) !important }
.bm { background:var(--b_med) !important ; fill:var(--b_med) !important }
.bl { background:var(--b_low) !important ; fill:var(--b_low) !important }
.b_inv { background:var(--b_inv) !important ; fill:var(--b_inv) !important }
.b { background:var(--background) !important }
.f_accent { color:var(--b_inv) !important } /* accent as text colour, as on the selected note; active-state labels only (Rule V5) */

#editor table tr.selected { background:var(--b_low) !important ; }
#editor table tr.selected td { color:var(--f_med) !important; }
#editor table tr.selected td.selected { color:var(--b_inv) !important ; }
#editor table td.beat { color:var(--f_med) !important; }

.control .name { color:var(--f_med) !important; }
.control.header .name { color:var(--f_high) !important; }        /* Lantern: a section header's own shade (Griffin, 2026-12-01) */
.control.header .name.f_inv { color:var(--f_inv) !important; }   /* … marked when a closed section's row has a keyframe (V5) */
.control .value { color:var(--f_med) !important ; }
.control.slider.min .value { color:var(--f_low) !important ; }
.control.slider.max .value { color:var(--f_high) !important ; }
.control.slider.keyframed .name { background: var(--b_inv) !important; color: var(--f_inv) !important; }
/* greyed out (0.8.0): PIT while ENV is NONE, where it does nothing */
.control.slider.off .name, .control.slider.off .value, .control.slider.off .slide .fg { color:var(--f_low) !important; }
.control.slider .slide { color:var(--f_low) !important; }
.control.slider .slide .fg { color:var(--f_high) !important }
.control.slider.selected { background:var(--b_low) !important; }
