/* The keyboard (cx-keys.js), every device's: Matter / Field's first keyboard (its Keys tab's, .kb-* until 4 Nov 2026) made
   a part of its own, its colours the device's own through these variables (Matter / Field's first palette, unless set) */
.cxk-board{--cxk-height:138px;--cxk-line:#3b4c56;--cxk-ground:#0f171b;--cxk-white:#2a3a43;--cxk-white-low:#1f2c33;--cxk-white-hover:#304551;--cxk-white-line:#33454e;--cxk-black:#0d1418;--cxk-black-low:#152027;--cxk-black-hover:#17242b;--cxk-black-line:#2c3b42;--cxk-held:#5b3d2b;--cxk-held-low:#3a2a21;--cxk-held-black:#6d4631;--cxk-held-black-low:#4a3122;--cxk-held-line:#d88d68;--cxk-glow-colour:#9fd0e2;--cxk-dot:#efa57e;--cxk-home:#ef9a73;--cxk-name:#8ea3ab;--cxk-letter:#c7d3d7;--cxk-letter-black:#9fb3bb;--cxk-focus:#ef9a7380;--cxk-font:var(--mono,ui-monospace,monospace);
 display:flex;align-items:stretch;gap:8px}
.cxk-oct{flex:none;width:34px;-webkit-tap-highlight-color:transparent;min-height:0;padding:0;display:grid;place-items:center;border:1px solid var(--cxk-line);border-radius:4px;background:transparent;color:inherit;cursor:pointer}
.cxk-oct svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.cxk-oct:disabled{opacity:.35;cursor:default}
.cxk-keys{position:relative;flex:1;min-width:0;display:flex;height:var(--cxk-height);touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;outline:none;border-radius:4px;border:1px solid var(--cxk-line);overflow:hidden;background:var(--cxk-ground)}
.cxk-keys:focus-visible{box-shadow:0 0 0 2px var(--cxk-focus)}
.cxk-key{position:relative;display:block;min-height:0;min-width:0;padding:0;margin:0;border-radius:0;appearance:none;box-shadow:none;font:inherit;letter-spacing:0;text-transform:none;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .06s,border-color .06s}
.cxk-key:disabled{opacity:.35;cursor:default}
.cxk-white{flex:1;border:0;border-right:1px solid var(--cxk-white-line);background:linear-gradient(var(--cxk-white),var(--cxk-white-low))}
.cxk-white:last-child{border-right:0}
.cxk-black{position:absolute;top:0;height:58%;z-index:2;border:1px solid var(--cxk-black-line);border-top:0;border-radius:0 0 3px 3px;background:linear-gradient(var(--cxk-black),var(--cxk-black-low))}
/* (a kept key keeps its colours under the pointer: the key just clicked with HOLD on had shown the hover's until the
   pointer left it, 4 Nov 2026, the CS/M site's chat) */
@media(hover:hover){.cxk-white:not(:disabled):not(.is-held):hover{background:linear-gradient(var(--cxk-white-hover),var(--cxk-white-low))}.cxk-black:not(:disabled):not(.is-held):hover{background:linear-gradient(var(--cxk-black-hover),var(--cxk-black-low))}}
.cxk-key.is-held{background:linear-gradient(var(--cxk-held),var(--cxk-held-low));border-color:var(--cxk-held-line)}
.cxk-black.is-held{background:linear-gradient(var(--cxk-held-black),var(--cxk-held-black-low))}
.cxk-glow{position:absolute;left:4px;right:4px;top:4px;height:3px;border-radius:2px;background:var(--cxk-glow-colour);opacity:var(--cxk-glow,0);transition:opacity .12s;box-shadow:0 0 8px var(--cxk-glow-colour)}
.cxk-key.is-sounding{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cxk-glow-colour) 35%,transparent)}
.cxk-dot{position:absolute;left:50%;bottom:9px;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--cxk-dot);opacity:0}
.cxk-black .cxk-dot{bottom:7px}
.cxk-key.in-key .cxk-dot{opacity:.9}
/* a voice's own note: a bar under its dot */
.cxk-key.is-home::after{content:"";position:absolute;left:22%;right:22%;bottom:3px;height:2px;border-radius:1px;background:var(--cxk-home)}
.cxk-name{position:absolute;left:0;right:0;bottom:21px;text-align:center;font:9px var(--cxk-font);color:var(--cxk-name);pointer-events:none}
.cxk-letter{position:absolute;left:0;right:0;top:12px;text-align:center;font:9px var(--cxk-font);color:var(--cxk-letter);opacity:0;pointer-events:none;transition:opacity .15s}
.cxk-black .cxk-letter{color:var(--cxk-letter-black)}
/* the letters on the keys while the computer's keys play them: with the focus, or live wherever the focus is */
.cxk-keys:focus-within .cxk-letter,.cxk-keys.cxk-live .cxk-letter{opacity:.75}
@media(hover:none){.cxk-letter{display:none}}
/* a touch screen's words 10 px at least (Cyrus's yes of 1 Nov 2026 to 10 to 11 px by touch; the fifth instrument's session's find): the note names, and the computer's letters where an iPad has a keyboard */
@media(pointer:coarse){.cxk-name,.cxk-letter{font-size:10px}}
@media(max-width:720px){.cxk-board{--cxk-height:124px;gap:6px}.cxk-oct{width:28px}}
@media(prefers-reduced-motion:reduce){.cxk-key,.cxk-glow,.cxk-letter{transition:none}}

/* The keys along the foot (cx-keys.js, CXKeys.Dock; 4 Nov 2026, the family pass's call 2A): held at the window's foot
   right above the output strip, in the frame's colours (--cxf-*, cx-frame.css): its head, KEYS with the line of what is
   held, then HOLD, ARP, RATE, OCTAVES, the device's own and CLEAR, wrapping as its room asks; under it the keyboard. Its
   menus in the frame's look, strong enough to keep a page's plain select rules off them (a device may still dress them
   with a rule of its own on .cxk-dock-menu>select) */
.cxk-dock{display:flex;flex-direction:column;gap:10px;padding:10px var(--cxf-pad,24px) 12px;background:var(--cxf-strip,#151a1c);border-top:1px solid var(--cxf-line,#343d42);box-shadow:0 -12px 28px rgba(0,0,0,.3)}
.cxk-dock[hidden]{display:none}
.cxk-dock-alone{position:fixed;left:0;right:0;bottom:0;z-index:64;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
/* on its own at the foot (a page with no output strip): while it is open the page padded by its height (--cxk-dock-h,
   cx-keys.js), a SONG window's foot over it, and a control brought into view stopping above it, as the strip keeps the
   page (the family's lessons, 24) */
body.cxk-on{padding-bottom:var(--cxk-dock-h,0px)}
body.cxk-on .cxs-song{bottom:var(--cxk-dock-h,0px)}
:root:has(>body.cxk-on){scroll-padding-bottom:var(--cxk-dock-h,0px)}
.cxk-dock-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 18px;min-width:0}
.cxk-dock-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;min-width:0;margin:0}
.cxk-dock-say{font:400 12px/1.35 var(--cxf-sans,Arial,sans-serif);color:var(--cxf-muted,#a2adb0);overflow-wrap:anywhere}
.cxk-dock-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-width:0}
.cxk-dock-menu{display:inline-flex;align-items:center;gap:8px;margin:0}
/* a menu a device puts away for a while (hidden) takes no room, as the frame's buttons and switches do (one device's
   ARP, RATE and OCTAVES while NEXT's pad is in the dock; it had carried a rule of its own) */
.cxk-dock-menu[hidden]{display:none}
.cxk-dock-menu>select{appearance:none;-webkit-appearance:none;width:auto;height:32px;min-height:0;margin:0;padding:0 28px 0 10px;border:1px solid var(--cxf-line-2,#4b585e);border-radius:5px;
  background:linear-gradient(45deg,transparent 50%,var(--cxf-muted,#a2adb0) 50%) calc(100% - 15px) 50%/5px 5px no-repeat,
    linear-gradient(135deg,var(--cxf-muted,#a2adb0) 50%,transparent 50%) calc(100% - 10px) 50%/5px 5px no-repeat,var(--cxf-bar,#1a1e20);
  color:var(--cxf-ink,#e7e2d8);font:400 12px/1 var(--cxf-sans,Arial,sans-serif);letter-spacing:0;text-transform:none;cursor:pointer}
.cxk-dock-menu>select:disabled{opacity:.5;cursor:default}
.cxk-dock .cxk-board{--cxk-height:120px}
.cxk-dock-menu>select:focus-visible{outline:2px solid var(--cxf-accent,#ed9369);outline-offset:2px}
@media(pointer:coarse){.cxk-dock-menu>select{height:40px}.cxk-dock-say{font-size:13px}}
@media(max-width:720px){.cxk-dock{gap:8px;padding:8px var(--cxf-pad,16px) 10px}.cxk-dock.cxk-dock-alone{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
  .cxk-dock .cxk-board{--cxk-height:108px}}
/* a phone, upright or on its side: the line of what is held above, and the tools one row under it that slides, faded at
   its end while there is more, so the keys keep their room (wrapped, a phone's tools took four rows) */
@media(max-width:720px),(max-height:560px){.cxk-dock-head{flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:6px}
  .cxk-dock-tools{flex-wrap:nowrap;gap:10px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;
    margin:0 calc(-1 * var(--cxf-pad,16px));padding:0 var(--cxf-pad,16px)}
  .cxk-dock-tools::-webkit-scrollbar{display:none}
  .cxk-dock-tools>*{flex:none}
  .cxk-dock-tools.cxk-more{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 44px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 44px),transparent)}}
/* a short window (a phone on its side): the keys lower and the line over them left to the keys lit, so the bar's
   transport row, KEYS in it, stays clear above the dock (on a phone on its side it had gone under it) */
@media(max-height:560px){.cxk-dock .cxk-board{--cxk-height:72px}.cxk-dock-title{display:none}}
