/* Kwantum Pad Drum Trainer. Site tokens (as the music studios) + drums colour. Pads are always a dark "deck". */
:root {
  --bg: #F4F6F9; --surface: #FFFFFF; --ink: #0F1726; --muted: #4A5568; --line: #D9DEE6; --chip: #E9EDF3; --hover: #EEF2F7;
  --ok: #17703F; --ok-bg: #E3F4EA; --warn: #9A5B06; --warn-bg: #FDF1DC; --no: #B42318; --no-bg: #FDE8E6;
  --acc: #0F6E6E; --acc-ink: #0B5B5B; --on-acc: #FFFFFF; --acc-soft: #E2F1F0;
  --deck: #151C28; --deck-edge: #0B1018; --pad: #232C3B; --pad-hi: #2C3748; --pad-ink: #E9EDF4;
  --g-kick: #FF6B3D; --g-snare: #F2C230; --g-hat: #2FC7B8; --g-cym: #5D93F2; --g-tom: #B47CFF; --g-perc: #69D36B;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B111C; --surface: #121A28; --ink: #E9EDF4; --muted: #A4AEC0; --line: #263247; --chip: #1B2536; --hover: #172131;
    --ok: #5BD08E; --ok-bg: #12301F; --warn: #F5B95B; --warn-bg: #33260F; --no: #FF8A80; --no-bg: #3A1614;
    --acc-ink: #5FD0C8; --acc-soft: #12302F; --deck: #0E141E; --deck-edge: #05080D; --pad: #1E2633; --pad-hi: #273142;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B111C; --surface: #121A28; --ink: #E9EDF4; --muted: #A4AEC0; --line: #263247; --chip: #1B2536; --hover: #172131;
  --ok: #5BD08E; --ok-bg: #12301F; --warn: #F5B95B; --warn-bg: #33260F; --no: #FF8A80; --no-bg: #3A1614;
  --acc-ink: #5FD0C8; --acc-soft: #12302F; --deck: #0E141E; --deck-edge: #05080D; --pad: #1E2633; --pad-hi: #273142;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg, #F4F6F9); color: var(--ink, #0F1726); font-family: var(--display); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.mono { font-family: var(--mono); font-size: .82rem; }
.row { display: flex; gap: 8px; align-items: center; }
.wrapr { flex-wrap: wrap; }

/* ---------- band (slim) ---------- */
.pt-band { background: var(--acc); color: var(--on-acc); }
.pt-head { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.pt-tile { width: 42px; height: 42px; border: 2px solid currentColor; border-radius: 6px; display: grid; place-items: center; position: relative; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.03em; flex: none; }
.pt-tile small { position: absolute; top: 2px; left: 4px; font: 500 .5rem/1 var(--mono); opacity: .85; }
.pt-head h1 { font-size: 1.3rem; font-weight: 800; flex: 1 1 auto; }
.pt-tabs { display: flex; gap: 4px; background: color-mix(in srgb, #000 18%, transparent); padding: 4px; border-radius: 10px; }
.pt-tab { background: transparent; border: 0; color: var(--on-acc); padding: 8px 14px; border-radius: 7px; font-weight: 700; font-size: .95rem; cursor: pointer; opacity: .85; }
.pt-tab[aria-selected="true"] { background: var(--bg); color: var(--ink); opacity: 1; }
@media (max-width: 560px) { .pt-tabs { width: 100%; } .pt-tab { flex: 1; padding: 8px 6px; } }

main { padding: 16px 0 40px; }

/* ---------- buttons and inputs ---------- */
.btn { white-space: nowrap; background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: 9px 14px; font-weight: 700; cursor: pointer; min-height: 42px; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: default; }
.btn[aria-pressed="true"] { background: var(--acc-soft); border-color: var(--acc); color: var(--acc-ink); }
.btn.rec[aria-pressed="true"] { background: var(--no-bg); border-color: var(--no); color: var(--no); }
.link { background: none; border: 0; padding: 0; color: var(--acc-ink); font-weight: 700; cursor: pointer; }
.sel { appearance: none; -webkit-appearance: none; background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: 9px 32px 9px 12px; font-weight: 600; min-height: 42px; flex: 1 1 auto; min-width: 0;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.sel.sm { flex: 0 0 auto; }
.sel option { color: #0F1726; background: #fff; }
input[type="range"] { width: 100%; accent-color: var(--acc); }
.sw { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; user-select: none; min-height: 38px; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw span { width: 38px; height: 22px; border-radius: 22px; background: var(--chip); border: 1.5px solid var(--line); position: relative; flex: none; transition: background .15s; }
.sw span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.sw input:checked + span { background: var(--acc); border-color: var(--acc); }
.sw input:checked + span::after { transform: translateX(16px); background: #fff; }
.sw input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.card > * + * { margin-top: 10px; }

/* ---------- free play ---------- */
.play { display: grid; gap: 16px; grid-template-columns: 1fr; }
.ctrl { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-content: start; }
.cg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 8px; align-content: start; }
.ck { font: 500 .74rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ck b { color: var(--ink); font-size: .9rem; }
.loopbar { height: 6px; background: var(--chip); border-radius: 6px; overflow: hidden; }
.loopbar i { display: block; height: 100%; width: 100%; background: var(--acc); transform-origin: left; transform: scaleX(0); }
@media (min-width: 1000px) and (orientation: landscape) {
  .play { grid-template-columns: 330px 1fr; align-items: start; }
  .ctrl { grid-template-columns: 1fr; }
  #host-play { position: sticky; top: 12px; }
}
/* phone / iPad portrait: keep the controls short so the pads get the screen */
@media (max-width: 999px), (orientation: portrait) {
  .ctrl .cg p.small { display: none; }
  .ctrl { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}

/* ---------- pads ---------- */
.pad-host { display: flex; justify-content: center; position: relative; min-width: 0; }
.pads { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: clamp(6px, 1.4vmin, 14px);
  padding: clamp(8px, 1.8vmin, 18px); background: var(--deck); border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 10px 30px -12px rgba(0,0,0,.45), 0 0 0 1px var(--deck-edge);
  width: 520px; height: 520px; max-width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pad { --c: var(--g-perc); position: relative; border: 0; border-radius: clamp(8px, 1.6vmin, 14px); background: linear-gradient(180deg, var(--pad-hi), var(--pad)); color: var(--pad-ink);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent), inset 0 -3px 0 rgba(0,0,0,.25); cursor: pointer; overflow: hidden; padding: 0;
  touch-action: none; -webkit-tap-highlight-color: transparent; text-align: left; transition: opacity .2s; }
.pad[data-g="kick"] { --c: var(--g-kick); } .pad[data-g="snare"] { --c: var(--g-snare); } .pad[data-g="hat"] { --c: var(--g-hat); }
.pad[data-g="cym"] { --c: var(--g-cym); } .pad[data-g="tom"] { --c: var(--g-tom); } .pad[data-g="perc"] { --c: var(--g-perc); }
.pad::before { content: ""; position: absolute; left: 10%; right: 10%; top: 8%; height: 3px; border-radius: 3px; background: var(--c); opacity: .85; }
.pad-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--c) 95%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000)); opacity: 0; pointer-events: none; }
.pad-cue { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 5px var(--c), inset 0 0 26px color-mix(in srgb, var(--c) 70%, transparent); opacity: 0; pointer-events: none; }
.pad-name { position: absolute; left: 10%; bottom: 9%; right: 8%; font-weight: 800; font-size: clamp(.72rem, 1.9vmin, 1.15rem); line-height: 1.1; text-shadow: 0 1px 2px rgba(0,0,0,.4); pointer-events: none; }
.pad-num { position: absolute; right: 9%; top: 13%; font: 500 clamp(.6rem, 1.3vmin, .8rem)/1 var(--mono); opacity: .55; pointer-events: none; }
.pad-key { position: absolute; left: 10%; top: 13%; font: 500 clamp(.6rem, 1.3vmin, .8rem)/1 var(--mono); opacity: .55; display: none; pointer-events: none; }
.pads.show-keys .pad-key { display: block; }
@media (hover: none) { .pads.show-keys .pad-key { display: none; } }
.pad-tag { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font-weight: 800; font-size: clamp(.7rem, 1.8vmin, 1rem); opacity: 0; pointer-events: none; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.pad-tag[data-k="ok"] { color: #7CF0A9; } .pad-tag[data-k="mid"] { color: #FFD66B; } .pad-tag[data-k="no"] { color: #FF9B91; }
.pad.dim { opacity: .38; }
.pad.target .pad-cue { opacity: 1; animation: pulse 0.9s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 8px var(--c), inset 0 0 40px var(--c); } }
.pad.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.pads.editing .pad { box-shadow: inset 0 0 0 2px var(--c), 0 0 0 2px dashed; outline: 2px dashed color-mix(in srgb, #fff 45%, transparent); outline-offset: -7px; }
@media (prefers-reduced-motion: reduce) { .pad.target .pad-cue { animation: none; } .pad.shake { animation: none; } }

.count { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: clamp(4rem, 16vmin, 10rem); color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.6); pointer-events: none; z-index: 2; }

/* ---------- picker ---------- */
.picker { position: fixed; inset: 0; background: rgba(5,8,13,.55); display: grid; place-items: center; z-index: 20; padding: 16px; }
.pk-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; width: min(620px, 100%); max-height: 90vh; overflow: auto; position: relative; }
.pk-close { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); }
.pk-title { font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }
.pk-g { font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 12px 0 6px; }
.pk-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-s { --c: var(--g-perc); border: 1.5px solid var(--line); border-left: 6px solid var(--c); background: var(--surface); border-radius: 8px; padding: 8px 12px; font-weight: 700; cursor: pointer; }
.pk-s[data-g="kick"] { --c: var(--g-kick); } .pk-s[data-g="snare"] { --c: var(--g-snare); } .pk-s[data-g="hat"] { --c: var(--g-hat); }
.pk-s[data-g="cym"] { --c: var(--g-cym); } .pk-s[data-g="tom"] { --c: var(--g-tom); }
.pk-s.on { background: var(--acc-soft); border-color: var(--acc); }

/* ---------- lesson list ---------- */
.ll-head { display: flex; gap: 16px; justify-content: space-between; align-items: end; flex-wrap: wrap; margin-bottom: 14px; }
.ll-head h2 { font-size: 1.5rem; font-weight: 800; }
.unit { margin-top: 18px; }
.unit-h { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.unit-h h3 { font-size: 1.1rem; font-weight: 800; }
.unit-n { width: 32px; height: 32px; border-radius: 6px; background: var(--acc); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.lcard { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; cursor: pointer; min-height: 64px; }
.lcard:hover { background: var(--hover); border-color: var(--acc); }
.lc-n { font: 500 .8rem/1 var(--mono); color: var(--muted); width: 22px; flex: none; }
.lc-b { flex: 1; min-width: 0; display: grid; }
.lc-t { font-weight: 800; }
.lc-m { font-size: .84rem; color: var(--muted); }
.stars { display: inline-flex; gap: 3px; flex: none; }
.stars i { width: 14px; height: 14px; background: var(--chip); border: 1px solid var(--line); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars i.on { background: #E9A400; border-color: #E9A400; }

/* ---------- lesson detail ---------- */
.ls { display: grid; gap: 14px; grid-template-columns: 1fr; grid-template-areas: "a" "b" "pads" "c"; }
.ls-a { grid-area: a; } .ls-b { grid-area: b; } .ls-c { grid-area: c; } #host-lesson { grid-area: pads; }
@media (min-width: 1000px) and (orientation: landscape) {
  .ls { grid-template-columns: minmax(380px, 1fr) minmax(0, 1.25fr); grid-template-areas: "a pads" "b pads" "c pads"; grid-template-rows: auto auto 1fr; align-items: start; }
  #host-lesson { position: sticky; top: 12px; }
}
.ls-nav { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; font-size: .88rem; margin-bottom: 8px; }
.ls-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.ls-teach p + p { margin-top: 8px; }
.ls-k { font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.ls-fingers, .ls-tips { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; }
.ls-fingers ul, .ls-tips ul { margin: 0; padding-left: 18px; }
.ls-fingers li, .ls-tips li { margin: 2px 0; }
.ls-ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.tempo { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tb { width: 42px; height: 42px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 800; font-size: 1.2rem; cursor: pointer; }
.tb:disabled { opacity: .45; }
.tv { min-width: 78px; text-align: center; }
.tv b { font-size: 1.15rem; }
.goal { font: 500 .76rem/1 var(--mono); color: var(--acc-ink); background: var(--acc-soft); padding: 6px 8px; border-radius: 6px; }
.ls-opts { display: flex; gap: 4px 16px; flex-wrap: wrap; margin-top: 6px; font-size: .92rem; }
.ls-bar { min-height: 1.4em; font-family: var(--mono); font-size: .82rem; margin-top: 4px; }

/* pattern grid */
.pgrid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pg-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; overflow-x: auto; }
.pg-head, .pg-row { display: grid; grid-template-columns: 82px repeat(var(--cols), minmax(9px, 1fr)); gap: 2px; align-items: center; }
.pg-row { margin-top: 3px; }
.pg-lab { font-size: .76rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.pg-head .pg-lab { font: 500 .7rem/1 var(--mono); color: var(--muted); }
.pg-count { font: 500 .62rem/1 var(--mono); color: var(--muted); text-align: center; }
.pg-count.beat { color: var(--ink); font-weight: 700; }
.pg-cell { --c: var(--g-perc); height: 18px; border-radius: 3px; background: var(--chip); position: relative; }
.pg-cell.beat { box-shadow: inset 2px 0 0 color-mix(in srgb, var(--muted) 35%, transparent); }
.pg-cell[data-g="kick"] { --c: var(--g-kick); } .pg-cell[data-g="snare"] { --c: var(--g-snare); } .pg-cell[data-g="hat"] { --c: var(--g-hat); }
.pg-cell[data-g="cym"] { --c: var(--g-cym); } .pg-cell[data-g="tom"] { --c: var(--g-tom); }
.pg-cell.on { background: var(--c); }
.pg-cell.acc::after { content: ">"; position: absolute; inset: 0; display: grid; place-items: center; font-size: .6rem; font-weight: 800; color: #111; }
.pg-cell.ghost { background: color-mix(in srgb, var(--c) 40%, var(--chip)); }
.pg-cell.ghost::after { content: "( )"; position: absolute; inset: 0; display: grid; place-items: center; font-size: .5rem; font-weight: 800; color: var(--ink); }
.pg-cell.ph { outline: 2px solid var(--ink); outline-offset: 0; }
.pg-cell.on.r3 { box-shadow: 0 0 0 2px var(--ok); } .pg-cell.on.r2 { box-shadow: 0 0 0 2px #C99A00; }
.pg-cell.on.r1 { box-shadow: 0 0 0 2px #E06D00; } .pg-cell.on.r0 { box-shadow: 0 0 0 2px var(--no); opacity: .55; }
.dot { --c: var(--g-perc); display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.dot[data-g="kick"] { --c: var(--g-kick); } .dot[data-g="snare"] { --c: var(--g-snare); } .dot[data-g="hat"] { --c: var(--g-hat); }
.dot[data-g="cym"] { --c: var(--g-cym); } .dot[data-g="tom"] { --c: var(--g-tom); }

/* results */
.note.warn { background: var(--warn-bg); color: var(--warn); border-radius: var(--r); padding: 10px 14px; font-weight: 600; }
.result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; }
.res-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.res-pct { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.res-pct small { font-size: 1.2rem; }
.res-top .stars i { width: 22px; height: 22px; }
.res-at { font: 500 .8rem/1 var(--mono); color: var(--muted); margin-left: auto; }
.res-counts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.res-counts li { background: var(--chip); border-radius: 6px; padding: 4px 9px; font-size: .86rem; }
.res-counts li[data-k="ok"] { background: var(--ok-bg); color: var(--ok); }
.res-counts li[data-k="no"] { background: var(--no-bg); color: var(--no); }
.res-counts li[data-k="lo"], .res-counts li[data-k="mid"] { background: var(--warn-bg); color: var(--warn); }
.res-adv, .res-per { margin: 0; padding-left: 18px; }
.res-per { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9rem; }
.res-per li { display: inline-flex; align-items: center; gap: 6px; }
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; background: var(--bg); border-radius: 6px; }
.chart figcaption { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.c-bar { stroke: var(--line); stroke-width: 1; }
.c-mid { stroke: var(--ink); stroke-width: 1.5; opacity: .6; }
.c-zone { fill: var(--ok); opacity: .14; }
.c-gap { fill: var(--muted); opacity: .12; }
.c-lab { fill: var(--muted); font: 500 10px var(--mono); }
.c-dot { fill: var(--g-perc); stroke: var(--surface); stroke-width: 1; }
.c-dot[data-g="kick"] { fill: var(--g-kick); } .c-dot[data-g="snare"] { fill: var(--g-snare); } .c-dot[data-g="hat"] { fill: var(--g-hat); }
.c-dot[data-g="cym"] { fill: var(--g-cym); } .c-dot[data-g="tom"] { fill: var(--g-tom); }
.c-miss { stroke: var(--no); stroke-width: 2; }
.ls-pn { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.finder { display: flex; align-items: baseline; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.finder-k { font: 500 .8rem/1 var(--mono); color: var(--muted); }
.finder-name { font-size: 1.8rem; font-weight: 800; }

/* settings */
.set { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 1100px; }
.tapper { display: block; width: 100%; height: 160px; border-radius: 14px; border: 0; background: var(--acc); color: #fff; font-weight: 800; font-size: 1.3rem; touch-action: none; cursor: pointer; }
.help { margin: 0; padding-left: 18px; }
.help li { margin: 4px 0; }
.txt { flex: 1 1 140px; min-width: 0; background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: 9px 12px; font-weight: 600; min-height: 42px; }
.note { background: var(--acc-soft); color: var(--ink); border-radius: var(--r); padding: 8px 12px; font-size: .92rem; margin-top: 10px; }

/* ---------- full screen pads ---------- */
.fp-full { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.fp-full svg { width: 18px; height: 18px; }
html.pad-fs, html.pad-fs body { overflow: hidden; height: 100%; overscroll-behavior: none; }
html.pad-fs #kwbar { display: none !important; }
#fs-host { position: fixed; inset: 0; z-index: 50; background: var(--deck-edge);
  padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  display: flex; touch-action: none; }
#fs-host .pads { width: 100% !important; height: 100% !important; max-width: none; border-radius: 14px; flex: 1; }
#fs-host .pad-name { font-size: clamp(.72rem, 2.4vmin, 1.4rem); overflow-wrap: anywhere; }
.fs-exit { position: absolute; top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.12); color: rgba(255,255,255,.75); font-size: 1.35rem; line-height: 1; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.fs-exit:hover, .fs-exit:focus-visible { background: rgba(255,255,255,.28); color: #fff; }
