/* The Slate faces (js/music/plate/*): a plugin as one hardware plate. Three canvases (the lit plate, the parts,
   the values and pictures) under real controls. Nothing here changes with the page's theme: it is an instrument. */

.plate { position: relative; display: flex; justify-content: center; min-width: 0; }
.plate__stage { position: relative; flex: 0 0 auto; max-width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; border-radius: 12px; background: linear-gradient(180deg, #5a6a74, #46545e); }
/* (The plate's flat base colour, always there under the lit picture: where the picture has not yet caught up with the window, or has not come, it is this, never a hole or a stretched picture.) */
.plate__can { position: absolute; left: 0; top: 0; display: block; }
.plate__layer { position: absolute; inset: 0; pointer-events: none; }
.plate .plate__ctl { position: absolute; left: 0; top: 0; pointer-events: auto; border-radius: 50%; touch-action: none; outline: none; cursor: grab; }
.plate .plate__ctl[data-held] { cursor: grabbing; }
.plate .plate__ctl[data-shape="rect"] { border-radius: 8px; }
.plate .plate__ctl[role="button"], .plate .plate__ctl[role="switch"], .plate .plate__ctl[role="radio"] { cursor: pointer; }
.plate .plate__ctl.plate__screen { cursor: crosshair; }
.plate .plate__ctl:focus-visible { box-shadow: 0 0 0 2px rgb(191 230 243 / 0.95), 0 0 0 4px rgb(0 0 0 / 0.55); }
.plate .plate__ctl[hidden] { display: none; }
.plate .plate__grp { position: absolute; inset: 0; pointer-events: none; }
.plate .plate__ctl.plate__screen:focus-visible { box-shadow: inset 0 0 0 2px rgb(191 230 243 / 0.95); }
@media (pointer: coarse) { .plate .plate__ctl:not(.plate__screen) { min-width: 36px; min-height: 36px; } }

/* A window that holds a plate: the strip over it is only a frame (where it is, how late, Close), and the plate
   fills the window to its edges. */
.mu-pf[data-plate] { padding: 0 0 var(--s2); gap: 0; }
.mu-win .mu-pf[data-plate] .mu-pf__head { margin: 0; padding: 0 54px 0 14px; height: 44px; box-sizing: border-box; flex-wrap: nowrap; border-radius: var(--mu-r-panel) var(--mu-r-panel) 0 0; }
.mu-pf[data-plate] .mu-pf__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mu-pf[data-plate] .mu-pf__body { gap: 0; padding: 6px 6px 0; }
.mu-pf[data-plate] .mu-place__heads { padding: var(--s1) var(--s4) 0; min-height: 52px; box-sizing: border-box; }
/* (The head's name, its choice and its listen button on one line: the row it keeps is one line tall.) */
.mu-pf[data-plate] .mu-place__headrow { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s2); }
.mu-pf[data-plate] .mu-place__headrow > .mu-select__name { order: 1; }
.mu-pf[data-plate] .mu-place__headrow > uc-select { order: 2; grid-column: auto; }
.mu-pf[data-plate] .mu-place__headrow > .mu-place__listen { order: 3; }
