/* Cue pads on the deck (js/playerpads.js). Surfaces follow the skin tokens, so dark, Light and High contrast all work; a
   customised pad and its ticks use the brand colours, like the Sync pack strip. A customised pad shows its time and a ×,
   and a pad that is off is dashed with a dash for its time, so colour is never the only cue. Rule kept: no text under 13px. */
.deck:focus{outline:none}
.cuehd{flex-wrap:wrap;min-height:20px}
.padhint{font:500 13px/1.2 var(--u-mono);color:var(--u-muted)}
.padsr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.pad.padcue{height:auto;min-height:54px;width:100%;flex-direction:column;gap:5px;padding:6px 4px;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.padcue *{pointer-events:none}
.padcue b{font:600 14px/1 var(--u-sans)}
.padcue span{font:500 13px/1 var(--u-mono);color:var(--u-text2)}
.pad.padcue:focus-visible,.padx:focus-visible{outline:2px solid var(--u-hot);outline-offset:2px}

/* off: flat and dashed. Still focusable, so the label and the hint can be read out */
.pad.padcue[aria-disabled=true]{background:transparent;color:var(--u-muted);border:1px dashed var(--u-fog);box-shadow:none;cursor:default}
.pad.padcue[aria-disabled=true] span{color:var(--u-muted)}
.hc .pad.padcue[aria-disabled=true]{border:2px dashed var(--u-ink);color:var(--u-ink)}
.hc .pad.padcue[aria-disabled=true] span{color:var(--u-ink)}

/* customised pad: the pad jumps, the × on its right edge resets. The × hit area is 44 px or more; the mark inside stays small */
.padw{position:relative;min-width:0}
.pad.padset{padding-right:40px;border-left:4px solid #C9826B}
.hc .pad.padset{border-left:6px solid #C9826B}
.padx{position:absolute;top:0;right:0;bottom:0;width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;color:var(--u-ink);background:none;border:0;cursor:pointer;touch-action:manipulation}
.padx svg.i{width:15px;height:15px;stroke-width:2.6}
.padx:hover{background:var(--u-hi)}

/* the active pad: filled, with a pause mark and the word Stop, so colour is never the only cue */
.pad.padcue.on{background:var(--u-ink);color:var(--u-bg)}
.pad.padcue.on span{color:var(--u-bg);display:inline-flex;align-items:center;gap:4px}
.pad.padcue.on svg.i{width:13px;height:13px}
.pad.padcue.on em{font-style:normal;font-weight:600}
.pad.padcue.on + .padx{color:var(--u-bg)}
.pad.padcue.on + .padx:hover{background:transparent}
.hc .pad.padcue.on{outline:2px solid var(--u-ink);outline-offset:2px}

/* Edit pads: the header button and the panel. Pad and shared cut windows sit in separate boxes with their own headings */
.btn.ppopen{min-height:44px;margin-left:auto;touch-action:manipulation}
.btn.ppopen[aria-disabled=true]{background:transparent;color:var(--u-muted);box-shadow:inset 0 0 0 1px var(--u-fog);cursor:default}
.btn.ppopen[aria-expanded=true]{text-decoration:underline;text-underline-offset:3px}
.padpanelw:empty{display:none}
.padpanel{margin-top:10px;padding:10px 12px 12px;border:1px solid var(--u-rule-s);background:var(--u-p3);min-width:0}
.pphd{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.ppttl{margin:0;font:600 14px/1.3 var(--u-sans);color:var(--u-ink)}
.btn.ppbtn{min-height:44px;min-width:44px;padding:0 8px;justify-content:center;background:transparent;color:var(--u-ink);box-shadow:inset 0 0 0 1px var(--u-rule);font-size:13px;touch-action:manipulation}
.btn.ppbtn:hover{background:var(--u-hi)}
.btn.ppbtn[aria-pressed=true]{background:var(--u-ink);color:var(--u-bg);text-decoration:underline;text-underline-offset:3px}
.btn.ppbtn[aria-disabled=true]{color:var(--u-muted);box-shadow:none;border:1px dashed var(--u-fog);cursor:default;background:transparent}
.btn.ppbtn:focus-visible,.btn.ppopen:focus-visible{outline:2px solid var(--u-hot);outline-offset:2px}
.pppick{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:10px}
.ppsec{border-top:1px solid var(--u-rule-s);padding-top:8px;margin-top:10px}
.ppsub{margin:0 0 2px;font:600 13.5px/1.3 var(--u-sans);color:var(--u-ink)}
.ppnote{margin:0 0 8px;font-size:13px;line-height:1.35;color:var(--u-muted);overflow-wrap:anywhere}
.ppnudge{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.ppline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:6px}
.pprow{border-top:1px dashed var(--u-rule-s);padding:8px 0 4px}
.pprowhd{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin-bottom:6px;font-size:13px;color:var(--u-ink)}
.pptimes{font:500 13px/1.3 var(--u-mono);font-variant-numeric:tabular-nums}
.ppadj{font-style:normal;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.ppfollow{color:var(--u-muted)}
.ppkeys{margin:10px 0 0;font:500 13px/1.4 var(--u-mono);color:var(--u-muted)}
.hc .padpanel{border-width:2px}
.hc .ppnote,.hc .ppkeys,.hc .ppfollow{color:var(--u-ink)}
.hc .btn.ppbtn{box-shadow:inset 0 0 0 2px var(--u-ink)}
.hc .btn.ppbtn[aria-pressed=true]{background:var(--u-ink);color:var(--u-bg)}
.hc .btn.ppbtn[aria-disabled=true]{box-shadow:none;border:2px dashed var(--u-ink);color:var(--u-ink)}

/* ticks on the deck waveform: a line and a letter. They never take a pointer, so scrubbing works through them */
.padticks{--pt-line:#EFEBE3;--pt-bg:#EFEBE3;--pt-ink:#1C1F2E;position:absolute;inset:0;pointer-events:none}
body.light .padticks{--pt-line:#1C1F2E;--pt-bg:#1C1F2E;--pt-ink:#EFEBE3}
.padtick{position:absolute;top:0;bottom:0;width:1px;margin-left:-.5px;background:var(--pt-line);opacity:.95}
.hc .padtick{width:2px;margin-left:-1px}
.padtick b{position:absolute;top:2px;left:0;transform:translateX(-50%);padding:1px 3px;font:600 13px/1 var(--u-mono);font-style:normal;color:var(--pt-ink);background:var(--pt-bg);white-space:nowrap}
.padtick.l1 b{top:20px}
.padtick.l2 b{top:38px}
.padtick.al b{transform:none}
.padtick.ar b{left:auto;right:0;transform:none}
.padtick.cust,.padtick[data-k].cust{--pt-line:#C9826B;--pt-bg:#C9826B;--pt-ink:#1C1F2E}

/* the grid wraps by the width it has, not the page: the deck column is narrow on phones and beside the panels at 1280,
   and a set pad needs room for its time next to the × */
.pads{grid-template-columns:repeat(auto-fit,minmax(118px,1fr))}
@media (prefers-reduced-motion:reduce){.pad.padcue,.padx{transition:none}.pad.padcue:active{transform:none}}
.rm .pad.padcue:active{transform:none}
