/* ---------- fonts (vendored) ---------- */
@font-face { font-family: 'Doto'; src: url(../vendor/fonts/doto-700.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Doto'; src: url(../vendor/fonts/doto-900.woff2) format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url(../vendor/fonts/inter-tight-500.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url(../vendor/fonts/inter-tight-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url(../vendor/fonts/inter-tight-800.woff2) format('woff2'); font-weight: 800 900; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(../vendor/fonts/plex-mono-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(../vendor/fonts/plex-mono-500.woff2) format('woff2'); font-weight: 500 700; font-display: swap; }

/* Tokens shared with every module css: --page --panel --ink --grey-1..3 --red --red-pale --glass --hover --faint
   --f-display --f-title --f-mono --shadow --line. Sizes in this file are rem so ui.scale (root font-size) scales the shell. */
:root {
  --page: #d9dad8; --panel: #f4f3ef; --ink: #0d0d0d;
  --grey-1: #c9cac7; --grey-2: #9a9b98; --grey-3: #6b6c69;
  --red: #d7191f; --red-pale: #f1c6c4;
  --glass: rgba(244, 243, 239, .62);
  --hover: rgba(13, 13, 13, .09); --faint: rgba(13, 13, 13, .18); --dots: rgba(13, 13, 13, .1);
  --f-display: 'Doto', 'IBM Plex Mono', monospace;
  --f-title: 'Inter Tight', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --shadow: 0 14px 34px -16px rgba(13, 13, 13, .35);
  --line: 1.5px solid var(--ink);
  --z: 1;
  color-scheme: light;
}
[data-theme=dark] {
  --page: #141413; --panel: #222220; --ink: #f0efe9;
  --grey-1: #3a3a37; --grey-2: #6f706c; --grey-3: #a3a49f;
  --red: #ff3d43; --red-pale: rgba(255, 61, 67, .28);
  --glass: rgba(34, 34, 32, .66);
  --hover: rgba(255, 255, 255, .1); --faint: rgba(255, 255, 255, .2); --dots: rgba(255, 255, 255, .07);
  --shadow: 0 14px 34px -16px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; font-size: calc(16px * var(--z)); }
body { height: 100%; margin: 0; }
* { scrollbar-width: thin; scrollbar-color: var(--grey-2) transparent; }
body {
  overflow: hidden; color: var(--ink);
  font: 400 .875rem/1.4 var(--f-title); background-color: var(--page);
  background-image: radial-gradient(var(--dots) 1px, transparent 1.3px); background-size: 16px 16px;
}
#app { position: fixed; inset: 0; display: flex; flex-direction: column; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.mono { font: 500 .6875rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.doto { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.dim { color: var(--grey-3); }
.row { display: flex; align-items: center; gap: .625rem; }
.wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .end { justify-content: flex-end; }
.grow { flex: 1; min-width: 0; } .sp { flex: 1; }
.panel { background: var(--glass); backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15); border: var(--line); border-radius: 1.5rem; box-shadow: var(--shadow); }
.dot-red { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--red); flex: none; }

/* ---------- buttons, pills, fields ---------- */
.btn { font: 500 .6875rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; border: var(--line); border-radius: 999px; background: transparent; color: var(--ink); padding: .6875rem 1.0625rem; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.btn:hover:not(:disabled) { background: var(--hover); }
.btn.on, .btn.solid, .btn[aria-pressed=true], .btn[aria-current=page], .btn[aria-checked=true] { background: var(--ink); color: var(--panel); }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; border-radius: .875rem; }
.btn.red:hover:not(:disabled) { filter: brightness(.88); background: var(--red); }
.btn:disabled, .btn[aria-disabled=true] { opacity: .35; cursor: default; }
.btn.sm { padding: .5625rem .8125rem; font-size: .625rem; }
.btn.icon { padding: .5625rem; width: 2.125rem; height: 2.125rem; display: inline-grid; place-items: center; }
.btn.big { padding: .9375rem 1.5rem; font-size: .75rem; }
.pills { display: inline-flex; flex-wrap: wrap; gap: .375rem; }
.field { font: 500 .75rem/1 var(--f-mono); letter-spacing: .05em; border: var(--line); border-radius: 999px; padding: .6875rem 1.0625rem; background: var(--panel); min-width: 0; }
select.field { appearance: none; padding-right: 2.25rem; cursor: pointer; text-transform: uppercase; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239a9b98' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9375rem center; }
select.field option { text-transform: none; }
input[type=color].field { padding: .25rem; width: 3rem; height: 2.125rem; cursor: pointer; }

/* switch */
.switch { flex: none; position: relative; width: 2.75rem; height: 1.5rem; padding: 0; border: var(--line); border-radius: 999px; background: var(--panel); cursor: pointer; transition: background .15s; }
.switch i { position: absolute; top: 2px; left: 2px; width: calc(1.5rem - 7px); height: calc(1.5rem - 7px); border-radius: 50%; background: var(--ink); transition: transform .15s, background .15s; }
.switch[aria-checked=true] { background: var(--red-pale); }
.switch[aria-checked=true] i { transform: translateX(1.25rem); background: var(--red); }

/* ruler pill */
.ruler { position: relative; height: 2.375rem; min-width: 9rem; border: var(--line); border-radius: 999px; overflow: hidden; cursor: ew-resize; background: var(--panel); touch-action: none; user-select: none; }
.ruler::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: repeating-linear-gradient(90deg, var(--faint) 0 1px, transparent 1px 8px); }
.r-fill { position: absolute; top: 0; bottom: 0; background: var(--red-pale); }
.r-needle { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--red); }
.r-txt { position: relative; display: block; padding: 0 1rem; font: 400 .6875rem/2.2rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; white-space: nowrap; }
.r-txt b { font-weight: 500; margin-left: .25rem; }
.ruler.dis { opacity: .4; pointer-events: none; }
.ruler.sm { height: 2rem; min-width: 7rem; } .ruler.sm .r-txt { line-height: 1.85rem; font-size: .625rem; }

/* dialog / toast / overlay */
.dialog { padding: 1.625rem; width: min(27.5rem, 92vw); color: var(--ink); background: var(--panel); }
.dialog::backdrop { background: rgba(0, 0, 0, .4); backdrop-filter: blur(3px); }
.dialog h3 { margin: 0 0 .75rem; font-size: 1.625rem; }
.dialog p { margin: 0 0 1rem; line-height: 1.6; }
.dialog .field { width: 100%; margin-bottom: 1.125rem; }
.toasts { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); display: grid; gap: .5rem; z-index: 100; justify-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--panel); border-radius: 999px; padding: .6875rem 1.25rem; max-width: 80vw; overflow-wrap: anywhere; box-shadow: var(--shadow); transition: opacity .3s; }
.toast.out { opacity: 0; }
.overlay { position: fixed; inset: 0; z-index: 60; background: var(--page); background-image: radial-gradient(var(--dots) 1px, transparent 1.3px); background-size: 16px 16px; display: flex; }
.overlay-body { flex: 1; min-width: 0; overflow: auto; padding: 3.25rem clamp(1rem, 4vw, 3.5rem) 2rem; }
.overlay-x { position: absolute; top: .75rem; right: 1rem; z-index: 2; }
.unavail { display: block; margin: .5rem; padding: .625rem .875rem; border: 1.5px dashed var(--grey-2); border-radius: 1rem; color: var(--grey-3); }

/* ---------- nav ---------- */
.nav { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; min-height: 3.375rem; padding: .375rem 1.25rem; background: var(--glass); backdrop-filter: blur(14px); border-bottom: var(--line); z-index: 20; }
.brand { font-size: 1.5rem; line-height: 1; border: 0; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; gap: .625rem; color: var(--ink); }
.nav-pills { display: inline-flex; gap: .375rem; }
.quickbar { flex: 1; min-width: 0; display: flex; align-items: center; gap: .375rem; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.quickbar::-webkit-scrollbar { display: none; }
.nav .tail { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
@media (max-width: 1150px) { .quickbar { order: 5; flex-basis: 100%; } }
.chip { display: inline-flex; align-items: center; gap: .375rem; flex: none; color: var(--grey-3); }
.chip .cl { max-width: 13ch; overflow: hidden; text-overflow: ellipsis; }
.chip b { font-weight: 500; color: var(--ink); }
.chip[aria-pressed=true] { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.chip[aria-pressed=true]::before { content: ''; width: .4375rem; height: .4375rem; border-radius: 50%; background: var(--red); }
.chip.sel b { color: var(--red); }
.flag { color: var(--red); border: 1.5px solid var(--red); border-radius: 999px; padding: .3125rem .625rem; }

/* ---------- screens ---------- */
#main { flex: 1; min-height: 0; position: relative; }
.screen { position: absolute; inset: 0; overflow: auto; padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem) 3.75rem; }
.screen-h { font-size: clamp(2.125rem, 5vw, 4rem); line-height: 1; margin: 0; }

/* ---------- library ---------- */
.lib-head { align-items: flex-end; margin-bottom: 1.25rem; }
.lib-tools { margin-bottom: 1.25rem; }
.lib-tools .field { width: min(22rem, 100%); }
.songs { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: .875rem; }
.card { display: flex; flex-direction: column; gap: .625rem; align-items: flex-start; padding: 1rem 1.125rem; border: var(--line); border-radius: 1.5rem; background: var(--glass); backdrop-filter: blur(10px); }
.card:hover { background: var(--hover); }
.song-card .sc-top { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: .5rem; }
.song-card .sc-title { margin: 0; padding: 0; text-align: left; border: 0; background: none; cursor: pointer; font: 800 1.625rem/1 var(--f-title); letter-spacing: -.035em; text-transform: uppercase; overflow-wrap: anywhere; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.song-card .sc-meta { display: flex; flex-wrap: wrap; gap: .25rem .875rem; color: var(--grey-3); }
.song-card .sc-act { margin-top: auto; padding-top: .5rem; gap: .375rem; flex-wrap: wrap; }
.tag { border: var(--line); border-radius: 99px; padding: .125rem .5rem; font-size: .625rem; }
.empty { margin-top: 3rem; max-width: 36rem; }
.big-doto { font-size: clamp(2.5rem, 7vw, 6rem); line-height: .95; margin: 0; }
.empty p { font-size: 1.0625rem; line-height: 1.5; margin: 1.125rem 0 1.5rem; }

/* ---------- song screen (practice + edit) ---------- */
.song { display: flex; gap: .875rem; padding: .75rem .875rem .875rem; overflow: hidden; }
.song-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .625rem; }
.song-head { flex: none; min-height: 2.125rem; gap: .75rem; }
.song-title { font: 800 1.375rem/1 var(--f-title); letter-spacing: -.03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.song-head .vers { color: var(--grey-3); white-space: nowrap; }
.song-head .dirty { color: var(--red); white-space: nowrap; }
.editor-toolbar { flex: none; }
.view-host { position: relative; flex: 1; min-height: 8rem; min-width: 0; overflow: hidden; border-radius: 1.25rem; border: var(--line); background: var(--panel); }
.side { flex: none; width: 20rem; max-width: 36vw; display: flex; flex-direction: column; gap: .625rem; overflow-y: auto; min-height: 0; padding-right: 2px; }
.side-block { flex: none; padding: .875rem 1rem; border-radius: 1.25rem; }
#app[data-side=off] .side { display: none; }
#app[data-mode=practice] #versions-panel, #app[data-mode=practice] #editor-toolbar,
#app[data-mode=edit] #practice-panel { display: none; }
#hands-panel[hidden] { display: none; }
.side-h { margin: 0 0 .625rem; color: var(--grey-3); }

/* transport bar */
.transportbar { flex: none; padding: .625rem 1rem; border-radius: 1.5rem; display: grid; gap: .5rem; }
.tb-row { display: flex; align-items: center; gap: .625rem; flex-wrap: wrap; }
.tb-row.main { flex-wrap: nowrap; }
.play { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--ink); color: var(--panel); border: 0; display: grid; place-items: center; cursor: pointer; padding: 0; }
.play:hover { filter: brightness(1.25); }
.play svg, .btn svg { width: 1.125rem; height: 1.125rem; fill: currentColor; display: block; }
.tb-time { min-width: 7.5rem; text-align: right; white-space: nowrap; }
.tb-bar { min-width: 5.5rem; color: var(--grey-3); white-space: nowrap; }
.tb-sep { width: 1px; align-self: stretch; background: var(--faint); margin: 0 .25rem; }
.tb-group { display: flex; align-items: center; gap: .25rem; }
.tb-group > .mono { color: var(--grey-3); margin-right: .25rem; }
.seekbar { --bw: 5%; --off: 0%; position: relative; flex: 1; min-width: 6rem; height: 2.25rem; cursor: pointer; touch-action: none; user-select: none; }
.sk-track { position: absolute; left: 0; right: 0; top: 50%; height: .75rem; margin-top: -.375rem; border: var(--line); border-radius: 999px; overflow: hidden; background: var(--panel); }
.sk-ticks { position: absolute; top: 0; bottom: 0; left: var(--off); right: 0; background: repeating-linear-gradient(90deg, var(--faint) 0 1px, transparent 1px var(--bw)); }
.sk-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--red-pale); }
/* loop tint lets clicks through (seek/scrub works inside it); edges resize, the grip underneath moves it */
.sk-loop { position: absolute; z-index: 1; top: .25rem; bottom: .625rem; border: 1.5px solid var(--red); background: color-mix(in srgb, var(--red) 18%, transparent); border-radius: .5rem; pointer-events: none; }
.sk-grip { position: absolute; top: 100%; left: 50%; width: 2rem; height: .5rem; margin-left: -1rem; border-radius: 0 0 .5rem .5rem; background: var(--red); cursor: grab; pointer-events: auto; }
.sk-grip:active { cursor: grabbing; }
.sk-h { position: absolute; top: -2px; bottom: -2px; width: .625rem; cursor: ew-resize; pointer-events: auto; }
.sk-h::after { content: ''; position: absolute; top: 3px; bottom: 3px; left: 50%; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--red); }
.sk-h.a { left: -.3125rem; } .sk-h.b { right: -.3125rem; }
.sk-head { position: absolute; z-index: 2; top: 2px; bottom: 2px; width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.sk-head::before { content: ''; position: absolute; top: -1px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }

/* hands panel */
.hand { display: grid; gap: .5rem; padding: .625rem 0; border-top: 1px solid var(--faint); }
.hand:first-of-type { border-top: 0; padding-top: 0; }
.hand-h { display: flex; align-items: center; gap: .5rem; }
.hand-dot { width: .75rem; height: .75rem; border-radius: 50%; flex: none; }
.hand .pills { display: grid; grid-template-columns: repeat(3, 1fr); }
.hand .btn { padding-inline: .375rem; text-align: center; }

/* ---------- settings drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.settings-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(27.5rem, 100vw); display: flex; flex-direction: column; background: var(--panel); border-left: var(--line); border-radius: 1.5rem 0 0 1.5rem; box-shadow: var(--shadow); transform: translateX(105%); visibility: hidden; transition: transform .25s, visibility 0s .25s; }
.settings-drawer.open { transform: none; visibility: visible; transition: transform .25s; }
.sd-head { flex: none; display: grid; gap: .625rem; padding: 1rem 1.25rem .75rem; border-bottom: var(--line); }
.sd-head h2 { margin: 0; font-size: 1.75rem; line-height: 1; }
.sd-head .field { width: 100%; }
.sd-groups { gap: .25rem; }
.sd-body { flex: 1; overflow-y: auto; padding: .25rem 1.25rem 2rem; }
.sd-grp { margin-top: 1.25rem; }
.sd-grp h3 { margin: 0 0 .5rem; display: flex; align-items: center; gap: .75rem; font: 500 .75rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }
.sd-grp h3::after { content: ''; flex: 1; border-top: var(--line); }
.set-row { display: grid; gap: .5rem; padding: .625rem .125rem; border-bottom: 1px solid var(--faint); }
.set-row.flash { animation: flash 1.2s; }
@keyframes flash { 0%, 60% { background: var(--red-pale); } }
.set-top { display: flex; align-items: center; gap: .5rem; min-height: 1.5rem; }
.set-top .lab { flex: 1; min-width: 0; }
.lab { font: 500 .6875rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.help { margin: 0; font: 400 .78rem/1.4 var(--f-title); color: var(--grey-3); }
kbd { font: 500 .625rem/1 var(--f-mono); letter-spacing: .08em; border: 1px solid var(--grey-2); border-bottom-width: 2px; border-radius: .375rem; padding: .1875rem .375rem; color: var(--grey-3); background: var(--panel); white-space: nowrap; }
.mini { width: 1.5rem; height: 1.5rem; padding: 0; flex: none; border: 1px solid var(--ink); border-radius: 50%; background: none; cursor: pointer; font-size: .75rem; line-height: 1; display: grid; place-items: center; }
.mini:hover { background: var(--ink); color: var(--panel); }
.mini.pin { border-color: var(--grey-2); color: var(--grey-3); font-size: .875rem; }
.mini.pin[aria-pressed=true] { color: var(--red); border-color: var(--red); }
.mini.hide { visibility: hidden; }
.color-row { display: flex; align-items: center; gap: .625rem; }
.chips-edit { display: flex; flex-wrap: wrap; gap: .375rem; }
.chips-edit .btn::after { content: ' \00d7'; opacity: .6; }

/* cheat sheet */
.cheat { max-width: 56rem; margin: 0 auto; }
.cheat h2 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 1.25rem; }
.cheat-cols { columns: 2 22rem; column-gap: 3rem; }
.cheat section { break-inside: avoid; margin-bottom: 1.5rem; }
.cheat h3 { margin: 0 0 .5rem; font: 500 .75rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--grey-3); }
.cheat dl { margin: 0; display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem .875rem; align-items: center; }
.cheat dt { justify-self: start; display: flex; gap: .25rem; flex-wrap: wrap; } .cheat dd { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; } }

/* ---------- touch / iPad ---------- */
html { overscroll-behavior: none; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior: none; touch-action: manipulation; }   /* no rubber-band, no double-tap zoom */
#app { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.settings-drawer { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) 0; }
.overlay { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.toasts { bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
.side-scrim { display: none; }
#app[data-nofs=true] .chip[title^="Fullscreen"] { display: none; }   /* no page fullscreen on iPad Safari */

/* narrow (iPad portrait): the side panel becomes an overlay drawer, the transport bar wraps */
@media (max-width: 900px) {
  .song { padding: .5rem; gap: .5rem; }
  .side {
    position: fixed; z-index: 35; top: 0; right: 0; bottom: 0; width: min(22rem, 88vw); max-width: none;
    padding: calc(.75rem + env(safe-area-inset-top)) calc(.75rem + env(safe-area-inset-right)) calc(.75rem + env(safe-area-inset-bottom)) .75rem;
    background: var(--page); border-left: var(--line); border-radius: 1.5rem 0 0 1.5rem; box-shadow: var(--shadow);
    transform: translateX(105%); visibility: hidden; transition: transform .25s, visibility 0s .25s;
  }
  #app[data-side=off] .side { display: flex; }
  #app[data-drawer=open] .side { transform: none; visibility: visible; transition: transform .25s; }
  .side-scrim { display: block; position: fixed; inset: 0; z-index: 34; background: rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity .2s; }
  #app[data-drawer=open] .side-scrim { opacity: 1; pointer-events: auto; }
  .tb-row.main { flex-wrap: wrap; }
  .tb-row.main .seekbar { order: 20; flex: 1 1 100%; }
  .tb-time { min-width: 0; margin-left: auto; }
  .tb-bar { min-width: 0; }
  .nav { padding-inline: .75rem; }
}

/* finger-sized targets (>= 44 px) and no hover-only controls on touch screens */
@media (pointer: coarse) {
  body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }
  input, select, textarea { font-size: 16px !important; }   /* iOS zooms the page into smaller fields */
  .btn { min-height: 44px; min-width: 44px; }
  .btn.icon { width: 44px; height: 44px; }
  .play { width: 48px; height: 48px; }
  .field { min-height: 44px; }
  .ruler, .ruler.sm { height: 44px; } .ruler .r-txt, .ruler.sm .r-txt { line-height: 42px; }
  .seekbar { height: 44px; }
  .sk-h { width: 1.75rem; } .sk-h.a { left: -.875rem; } .sk-h.b { right: -.875rem; }
  .sk-loop { bottom: .875rem; } .sk-grip { width: 2.75rem; height: .875rem; margin-left: -1.375rem; }
  .switch, .mini { position: relative; }
  .switch::after, .mini::after { content: ''; position: absolute; inset: -10px -6px; }   /* bigger hit area, same look */
  .set-row { padding-block: .875rem; }
}
