/* 11/16 polish on the accepted 11/14 direction. Two kinds of control only:
   - the two actions that do the job (Audition at the top, Save MIDI / Save audio at the end of the bottom row): filled
   - everything else: plain words that show they can be pressed (a light ground on hover, darker when pressed)
   Small labels share one style; numbers stay monospaced; orange means "selected", red means "recording". */
:root{--ink:#252624;--ink-2:#55574f;--ink-3:#8a8c84;--line:#d9dbd3;--hover:#eeefe9;--press:#e1e3db}

/* plain-word buttons: one look everywhere */
.product31 :is(#project-open,#tools-open,#sound-open,#rec-open,#save-desktop,#daw-info,#undo,#redo,[data-look]){
 background:transparent!important;border:0!important;border-radius:4px!important;box-shadow:none!important;color:var(--ink);padding:6px 9px!important;min-height:30px}
.product31 :is(#project-open,#tools-open,#sound-open,#rec-open,#save-desktop,#daw-info,#undo,#redo,[data-look]):hover:not(:disabled){background:var(--hover)!important}
.product31 :is(#project-open,#tools-open,#sound-open,#rec-open,#save-desktop,#daw-info,#undo,#redo,[data-look]):active:not(:disabled){background:var(--press)!important}
.product31 :is(#undo,#redo):disabled{color:#b9bbb3}
.product31 [data-look][aria-pressed=true]{box-shadow:inset 0 -2px 0 var(--ink)!important;border-radius:0!important}

/* the finishing action at the end of the bottom row: filled, the strongest thing in that row */
.product31 .delivery #midi-drag{background:var(--ink)!important;color:#fff!important;border:0!important;border-radius:4px!important;padding:7px 14px!important}
.product31 .delivery #midi-drag:hover:not(:disabled){background:#44483e!important}
.product31 .delivery #midi-drag:disabled,.product31 .delivery #midi-drag[data-ready=false]{background:#c9cbc3!important;color:#fff!important}

/* small labels: one size, one colour */
.product31 :is(.sc-k,.snap-label,#sound-pick .sound-k,.keyshift-k,.ap-label){font:500 9.5px/1 "Geist Mono",Mono,monospace!important;letter-spacing:.07em!important;text-transform:uppercase;color:var(--ink-3)!important}

/* colour roles: orange = selected, red = recording; other text stays ink */
#auto-connect{color:var(--ink-2)!important;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line)}
#auto-connect:hover{color:var(--ink)!important;text-decoration-color:var(--ink)}

/* library tabs: equal cells, the chosen one filled, the others show hover */
#pitch-panel .library-tabs button{border:0!important;border-radius:4px!important;background:transparent!important;color:var(--ink-2)}
#pitch-panel .library-tabs button:hover:not([aria-pressed=true]){background:var(--hover)!important;color:var(--ink)}
#pitch-panel .library-tabs button[aria-pressed=true]{background:var(--ink)!important;color:#fff!important}

/* wordmark: the small name sits on the same baseline as "flow" */
.product31 .wordmark{display:flex;align-items:baseline;gap:10px}
.product31 .wordmark span{position:static!important;transform:none!important}
/* 11/16: the header never wraps (a wrapped header pushed the export row under the strip at 940 x 660) */
.instrument.product31 header.top{flex-wrap:nowrap!important}
@media(max-width:1000px){.instrument.product31 #preset-open{margin-left:4px!important;margin-right:auto}.instrument.product31 :is(#midi-drop-zone,.sound-pick){margin-left:6px!important}.instrument.product31 header.top{column-gap:6px!important}}
/* 11/16: four shapes to a row (the smallest Japanese window showed one row of three: 21 pages) */
#pitch-panel #preset-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;column-gap:6px!important;row-gap:4px!important}
#pitch-panel #preset-grid .recipe strong{font-size:11px;line-height:1.25;white-space:normal;overflow-wrap:anywhere;text-align:center}
#pitch-panel #preset-grid .recipe svg{max-height:34px}
.instrument.product31 .top-right{flex-wrap:nowrap!important}
/* 11/16: on short windows the shape tiles are compact, so two rows fit and the list needs few pages */
@media(max-height:760px){
 #pitch-panel #preset-grid .recipe{min-height:0!important;padding:4px 1px 4px!important;gap:2px!important;grid-template-rows:24px auto!important}
 #pitch-panel #preset-grid .recipe svg{max-height:24px}
 #pitch-panel #preset-grid .recipe strong{font-size:10px!important;line-height:1.2}
}
/* crowded chord rows: narrow cells drop their inner padding so a letter fits instead of a dot */
#chords .chord.tight{padding-left:2px!important;padding-right:2px!important}

/* 11/17: short windows (under 700 px tall) keep one screen in every view: a lower chord row and a tighter hint line */
@media(max-height:700px){
 .instrument.product31{grid-template-rows:auto auto auto minmax(140px,1fr) auto auto auto!important}
 .instrument.product31 .progression{padding-top:0!important;padding-bottom:0!important}
 .instrument.product31 #chords .chord{padding-top:3px!important;padding-bottom:3px!important}
 .instrument.product31 #chords .chord strong{font-size:19px!important;line-height:1.15!important}
 .instrument.product31 #chords .chord :is(small,em){line-height:1.2!important}
 .instrument.product31 footer{min-height:0!important;padding-top:3px!important;padding-bottom:3px!important}
 .instrument.product31 footer #edit-hint{line-height:1.3!important}
}
/* 11/17 19:05 (owner: "flickers every time the bar changes"): the playing position (27.3.3 → 27.4) changed width every beat
   and pushed ‹ › beside it. A fixed-width box, digits of equal width, right-aligned: nothing around it moves. */
#position{display:inline-block!important;width:8ch!important;min-width:8ch!important;text-align:right!important;font-variant-numeric:tabular-nums!important;white-space:nowrap!important;overflow:hidden}
/* 11/17 19:08 (owner: "the right side of the play button is empty, and the layout"): the play button's mark and word sit
   together in the middle; the width stays the same for Audition and Stop, the space is shared evenly on both sides */
.product31 .header-actions #animate{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-width:112px!important;padding:0 16px!important;border-left:0!important}
.product31 #animate::after{content:none!important;display:none!important}
.product31 #animate .transport-label{text-align:center!important}
/* BPM: the number and the word on one baseline, in the same face (the word was a small monospace) */
.product31 .header-actions label:has(#tempo){display:inline-flex!important;align-items:baseline!important;gap:5px!important;font:400 11px Geist,"IBM Plex Sans JP",sans-serif!important;letter-spacing:0!important;color:#77796f!important;text-transform:none!important}
.product31 #tempo{font:300 20px Geist,sans-serif!important;font-variant-numeric:tabular-nums!important;letter-spacing:-.3px!important;width:56px!important;text-align:right!important;padding:0 2px 1px!important;line-height:1.1!important}
/* 11/17 19:08 (owner: "this button is tacky too"): Apply to and Pick are ONE kind of switch. The parts touch, the chosen
   part is filled dark (the same way the chosen Bend tab is shown), the others read at normal strength. Labels in the same
   face and size as the other small headings, not spaced capitals. */
#pitch-panel :is(.scope-chips,.stack-row){gap:0!important}
#pitch-panel :is(.scope-chips,.stack-row) .sc-k{font:400 11px Geist,"IBM Plex Sans JP",sans-serif!important;letter-spacing:0!important;text-transform:none!important;color:#77796f!important;margin-right:10px!important;min-width:54px}
#pitch-panel :is(.scope-chips,.stack-row) button{border:1px solid #c9c9c3!important;border-radius:0!important;background:#fff!important;color:#252624!important;box-shadow:none!important;opacity:1!important;margin-left:-1px!important;padding:3px 10px!important;min-height:26px!important}
#pitch-panel :is(.scope-chips,.stack-row) .sc-k+button,#pitch-panel :is(.scope-chips,.stack-row) button:first-child{margin-left:0!important;border-radius:3px 0 0 3px!important}
#pitch-panel :is(.scope-chips,.stack-row) button:last-of-type{border-radius:0 3px 3px 0!important}
#pitch-panel :is(.scope-chips,.stack-row) button:hover:not(:disabled){background:#f2f2ef!important}
#pitch-panel :is(.scope-chips,.stack-row) button:is([aria-checked=true],[aria-pressed=true]){background:#252624!important;border-color:#252624!important;color:#fff!important;position:relative;z-index:1}
#pitch-panel :is(.scope-chips,.stack-row) button:disabled{color:#a3a59d!important;background:#fff!important;cursor:default}
