
:root {
  --ink: #14122b; --muted: #5d5a7a; --paper: #f6f6fb; --card: #ffffff; --line: #e3e2f0; --soft: #efeefb;
  --brand: #6d5cff; --brand-2: #22c3ee; --accent: #5b4bff; --hot: #ff5a7a; --ok: #12a37a; --err: #d23a52;
  --grad: linear-gradient(120deg, #6d5cff 0%, #8f5cff 40%, #22c3ee 100%);
  --wave-on: #6d5cff; --wave-off: #c9c6e6; --head: #ff5a7a;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 18px; color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #ecebff; --muted: #a8a5c8; --paper: #0e0d1c; --card: #17162b; --line: #2a2846; --soft: #1f1d38;
    --accent: #9d91ff; --wave-on: #8f83ff; --wave-off: #3a3760; --err: #ff7d92; }
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.62 var(--sans); -webkit-text-size-adjust: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
img, svg, canvas { max-width: 100%; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 8px; top: 8px; background: var(--card); padding: 8px; z-index: 99; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 34px; margin: 10px 0 8px; font-weight: 800; }
h2 { font-size: 25px; margin: 38px 0 10px; font-weight: 750; }
h3 { font-size: 19px; margin: 24px 0 8px; }
@media (min-width: 760px) { h1 { font-size: 46px; } h2 { font-size: 29px; } }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }


header.top { position: sticky; top: 0; z-index: 30; background: rgba(15,13,32,.9); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
@supports (backdrop-filter: blur(8px)) { header.top { background: rgba(15,13,32,.78); backdrop-filter: saturate(1.5) blur(12px); } }
header.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; margin-right: auto; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.navt { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
label.burger { display: none; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; cursor: pointer; font-size: 15px; order: 3; }
label.burger span, label.burger span::before, label.burger span::after { display: block; width: 16px; height: 2px; background: #fff; border-radius: 2px; position: relative; }
label.burger span::before, label.burger span::after { content: ""; position: absolute; left: 0; } label.burger span::before { top: -5px; } label.burger span::after { top: 5px; }
nav.main ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
nav.main li { position: relative; }
nav.main a.tl { display: block; color: #e3e1ff; text-decoration: none; padding: 19px 12px; font-size: 15px; font-weight: 600; }
nav.main a.tl[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 #8f83ff; }
nav.main .sub a { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 10px; font-size: 15px; font-weight: 600; }
nav.main .sub a .ic { color: var(--brand); }
.searchbtn { color: #e3e1ff; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); flex: none; }
header a.cta { background: var(--grad); color: #fff; font-weight: 700; text-decoration: none; padding: 9px 16px; border-radius: 999px; font-size: 15px; white-space: nowrap; box-shadow: 0 6px 18px rgba(109,92,255,.4); }
@media (min-width: 960px) {
  nav.main a.tl::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 1.5px solid #b9b5e8; border-bottom: 1.5px solid #b9b5e8; transform: rotate(45deg) translateY(-3px); }
  nav.main .sub { display: none; position: absolute; top: 100%; left: -6px; min-width: 260px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 18px 44px rgba(10,8,30,.3); }
  nav.main li:hover > .sub, nav.main li:focus-within > .sub { display: grid; }
  nav.main .sub a:hover, nav.main .sub a:focus { background: var(--soft); outline: none; }
  .navt { display: none; }
}
@media (max-width: 959px) {
  label.burger { display: flex; } header a.cta { padding: 8px 12px; font-size: 14px; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #12102a; padding: 6px 16px 18px; max-height: calc(100dvh - 60px); overflow-y: auto; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
  .navt:checked ~ nav.main { display: block; }
  nav.main ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  nav.main a.tl { padding: 14px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #8fe3f7; box-shadow: none !important; }
  nav.main .sub a { color: #e3e1ff; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; font-weight: 500; }
  nav.main .sub a .ic { color: #8f83ff; }
}
@media (max-width: 380px) { .brand span { display: none; } nav.main ul { grid-template-columns: 1fr; } }


main { padding: 0 0 40px; }
.hero { position: relative; margin: 0 calc(50% - 50vw); padding: 22px calc(50vw - 50%) 74px; color: #fff; overflow: hidden;
  background: radial-gradient(ellipse at 85% -20%, rgba(34,195,238,.35), transparent 55%), radial-gradient(ellipse at 0% 120%, rgba(143,92,255,.45), transparent 55%), linear-gradient(180deg, #0f0d20, #1b1740); }
.hero h1 { color: #fff; max-width: 15em; }
.hero .lede { color: #d6d3f5; font-size: 18px; max-width: 40em; margin: 0 0 12px; }
.crumbs { font-size: 14px; color: #b9b5e8; margin: 0; } .crumbs a { color: #cfccf3; display: inline-block; padding: 4px 0; } .crumbs i { font-style: normal; padding: 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 5px 12px; font-size: 14px; color: #fff; }
.chips .ic { width: 16px; height: 16px; color: #8fe3f7; }
.eq { position: absolute; right: calc(50vw - 50% + 8px); bottom: 0; display: flex; gap: 5px; align-items: flex-end; height: 120px; opacity: .55; pointer-events: none; }
.eq i { display: block; width: 7px; height: 30%; border-radius: 4px 4px 0 0; background: var(--grad); }
@media (max-width: 759px) { .eq { opacity: .25; height: 80px; } .hero .lede { font-size: 16px; } }
.hero + .toolbox { position: relative; margin-top: -48px; }


.toolbox { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: 0 20px 50px rgba(20,18,60,.14); }
@media (min-width: 760px) { .toolbox { padding: 22px; } }
#tool { min-height: 230px; }

#tool[data-tool=metronome] { min-height: 560px; } #tool[data-tool=tone-generator] { min-height: 520px; }
#tool[data-tool=guitar-tuner], #tool[data-tool=ukulele-tuner], #tool[data-tool=chromatic-tuner] { min-height: 600px; }
#tool[data-tool=mic-test] { min-height: 520px; } #tool[data-tool=tap-tempo] { min-height: 470px; } #tool[data-tool=hearing-test] { min-height: 520px; }
#tool[data-tool=camelot-wheel] { min-height: 760px; } #tool[data-tool=chord-finder] { min-height: 420px; }
#tool[data-tool=key-finder] { min-height: 380px; } #tool[data-tool=bpm-finder] { min-height: 300px; }
@media (min-width: 760px) { #tool[data-tool=camelot-wheel] { min-height: 470px; } #tool[data-tool=guitar-tuner], #tool[data-tool=ukulele-tuner], #tool[data-tool=chromatic-tuner] { min-height: 560px; } }
.drop { border: 2px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius: 18px; padding: 34px 16px; text-align: center; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 6%, transparent), transparent); transition: border-color .15s, background .15s, transform .15s; }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); outline: none; }
.drop.over { transform: scale(1.01); }
.drop-in { display: grid; gap: 4px; justify-items: center; }
.drop-in b { font-size: 20px; }
.drop-in span { color: var(--muted); font-size: 15px; } .drop-in small { color: var(--ok); font-weight: 600; font-size: 13px; margin-top: 6px; }
.drop-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--grad); display: block; margin-bottom: 6px; box-shadow: 0 10px 24px rgba(109,92,255,.35);
  -webkit-mask: none; position: relative; }
.drop-ic::after { content: ""; position: absolute; inset: 15px; border: 2.5px solid #fff; border-top: 0; border-radius: 0 0 6px 6px; }
.drop-ic::before { content: ""; position: absolute; left: 50%; top: 11px; width: 2.5px; height: 20px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 0 #fff; }
.resume { margin: 10px 0 0; font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.work { display: grid; gap: 12px; }
.fileinfo { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.fileinfo b { font-size: 16px; word-break: break-all; } .fileinfo span { color: var(--muted); font-size: 14px; }
.wavebox { position: relative; background: var(--soft); border-radius: 14px; padding: 6px; }
.wave { width: 100%; height: 120px; display: block; cursor: pointer; }
.sel { position: absolute; inset: 6px; pointer-events: none; --a: 0%; --b: 100%; }
.sel::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--a); right: calc(100% - var(--b)); border: 2px solid var(--brand); border-radius: 8px; background: color-mix(in srgb, var(--brand) 8%, transparent); }
.sel .h { position: absolute; top: -4px; bottom: -4px; width: 16px; margin-left: -8px; border-radius: 8px; background: var(--brand); pointer-events: auto; cursor: ew-resize; touch-action: none; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.sel .ha { left: var(--a); } .sel .hb { left: var(--b); }
.transport { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.status { font-size: 14px; color: var(--muted); margin-left: auto; }
.ab { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--soft); }
.ab button { border: 0; background: none; color: var(--muted); font: 600 14px var(--sans); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.ab button.on { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(20,18,60,.12); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 14px var(--sans); padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--brand); } .chip.on { background: var(--grad); color: #fff; border-color: transparent; }
.controls { display: grid; gap: 12px; }
@media (min-width: 760px) { .controls { grid-template-columns: 1fr 1fr; gap: 14px 24px; } }
.ctl { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; font-size: 15px; }
.ctl .cl { font-weight: 600; } .ctl output { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; font-size: 14px; }
.ctl input { grid-column: 1 / -1; }
input[type=range] { width: 100%; accent-color: var(--brand); height: 28px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.trimrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; grid-column: 1 / -1; }
.trimrow label, .export label, .row2 label { display: grid; gap: 3px; font-size: 13px; color: var(--muted); font-weight: 600; }
input[type=number], select { font: 16px var(--sans); padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
input[type=number] { width: 7.5em; }
.export { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding-top: 6px; border-top: 1px solid var(--line); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px var(--sans); background: var(--grad); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer; text-decoration: none; box-shadow: 0 8px 20px rgba(109,92,255,.3); transition: transform .12s, filter .12s; }
.btn:hover { filter: brightness(1.07); } .btn:active { transform: scale(.98); } .btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: none; }
.btn.sm { padding: 7px 14px; font-size: 14px; } .btn.big { padding: 15px 30px; font-size: 18px; }
.err { color: var(--err); font-size: 14px; margin: 0; min-height: 1em; }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.next { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.next span { color: var(--muted); }
.next a { padding: 6px 12px; border-radius: 999px; background: var(--soft); text-decoration: none; font-weight: 600; }
[hidden] { display: none !important; }


.readout { text-align: center; margin: 4px 0; }
.readout b { display: block; font-size: 72px; line-height: 1; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.readout span { color: var(--muted); font-weight: 600; } .readout em { display: block; font-style: normal; color: var(--accent); font-weight: 700; margin-top: 4px; }
.tap, .metro, .tuner, .tone, .mic { display: grid; gap: 14px; justify-items: center; text-align: center; }
.tapbtn { width: 190px; height: 190px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; font: 800 30px var(--sans); letter-spacing: .1em; cursor: pointer; box-shadow: 0 16px 40px rgba(109,92,255,.45); touch-action: manipulation; }
.tapbtn.hit { animation: thump .18s ease-out; }
@keyframes thump { 50% { transform: scale(.94); } }
.row2 { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: end; }
.dots { display: flex; gap: 10px; } .dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--line); transition: background .05s, transform .05s; }
.dots i.on { background: var(--hot); transform: scale(1.25); } .dots i:first-child.on { background: var(--brand); }
.gauge { position: relative; width: min(100%, 420px); height: 120px; border-radius: 210px 210px 0 0; background: conic-gradient(from 270deg at 50% 100%, #ff5a7a, #ffd35a 22%, #12a37a 50%, #ffd35a 78%, #ff5a7a 100%) ; -webkit-mask: radial-gradient(circle at 50% 100%, transparent 62%, #000 63%); mask: radial-gradient(circle at 50% 100%, transparent 62%, #000 63%); opacity: .9; }
.needle { --c: 0; position: absolute; left: 50%; bottom: 0; width: 3px; height: 112px; background: var(--ink); transform-origin: bottom center; transform: translateX(-50%) rotate(calc(var(--c) * 1.8deg)); transition: transform .12s; }
.gauge.ok { filter: drop-shadow(0 0 14px rgba(18,163,122,.6)); }
.scale { position: absolute; left: 0; right: 0; bottom: -22px; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.strings { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.strings span { min-width: 44px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; }
.strings span.on { background: var(--grad); color: #fff; border-color: transparent; }
.meter { width: min(100%, 460px); height: 18px; border-radius: 9px; background: var(--soft); overflow: hidden; --l: 0; }
.meter i { display: block; height: 100%; width: calc(var(--l) * 100%); background: linear-gradient(90deg, #12a37a, #ffd35a 75%, #ff5a7a); transition: width .06s; }
.scope { width: min(100%, 560px); height: 90px; background: var(--soft); border-radius: 12px; }
.result .bigs { display: grid; gap: 12px; margin: 10px 0; }
@media (min-width: 760px) { .result .bigs { grid-template-columns: 1fr 1fr; } }
.result .big { background: linear-gradient(160deg, #1b1740, #0f0d20); color: #fff; border-radius: 18px; padding: 18px; text-align: center; }
.result .big small { display: block; text-transform: uppercase; letter-spacing: .1em; color: #8fe3f7; font-size: 12px; }
.result .big b { display: block; font-size: 46px; font-weight: 800; margin: 4px 0; }
.result .big span { color: #cfccf3; font-size: 14px; } .result .big.alt { background: var(--soft); color: var(--ink); } .result .big.alt span { color: var(--muted); } .result .big.alt small { color: var(--accent); }


.howto { display: grid; gap: 12px; counter-reset: s; margin: 26px 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .howto { grid-template-columns: repeat(3, 1fr); } }
.howto li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 14px 56px; position: relative; font-size: 15px; }
.howto li::before { counter-increment: s; content: counter(s); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; }
.howto b { display: block; font-size: 16px; }
.prose p { max-width: 46em; line-height: 1.72; }
.prose > h2 { position: relative; padding-top: 18px; }
.prose > h2::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 4px; border-radius: 4px; background: var(--grad); }
.prose > h2 + p { font-size: 18px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 8px 0; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.faq summary { cursor: pointer; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 14px 0; }
.grid a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.grid a .tic { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; color: var(--brand); }
.grid a b { font-size: 16px; } .grid a span { font-size: 14px; color: var(--muted); }
.grid a:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,18,60,.12); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.grid a:hover .tic { background: var(--grad); color: #fff; }
.note { font-size: 14px; color: var(--muted); background: var(--card); border-left: 3px solid var(--brand); border-radius: 0 12px 12px 0; padding: 10px 14px; margin: 18px 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0 10px; }
.pager a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-decoration: none; color: var(--ink); font-weight: 700; }
.pager a small { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.pager .pg-next { text-align: right; grid-column: 2; }
.shared { margin-top: 36px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }


footer { margin-top: 30px; padding: 34px 0 28px; background: #0f0d20; color: #b9b5e8; font-size: 14px; }
footer a { color: #e3e1ff; text-decoration: none; display: block; padding: 5px 0; } footer a:hover { text-decoration: underline; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (min-width: 900px) { .fgrid { grid-template-columns: repeat(4, 1fr); } }
.fh { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #8fe3f7; }
.fbase { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 16px; align-items: flex-start; } .fbase p { margin: 0; flex: 1 1 300px; font-size: 13px; }


.toc { position: sticky; top: 60px; z-index: 20; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; align-items: center; margin: 18px calc(50% - 50vw) 8px; padding: 8px calc(50vw - 50%); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.toc::-webkit-scrollbar { display: none; }
.toc-l { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.toc a { white-space: nowrap; font-size: 14px; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.toc a.on { background: var(--grad); color: #fff; border-color: transparent; }
.totop { position: fixed; right: 16px; bottom: 18px; z-index: 25; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; text-decoration: none; font-size: 20px; box-shadow: 0 10px 26px rgba(20,18,60,.3); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .25s, transform .25s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.search { position: fixed; inset: 0; z-index: 60; background: rgba(10,8,26,.6); backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: 70px 16px 16px; }
.search.open { display: flex; }
.search-box { width: 100%; max-width: 620px; background: var(--card); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); padding: 12px; position: relative; }
.search-box input { width: 100%; font: 18px var(--sans); padding: 14px 44px 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-x { position: absolute; right: 22px; top: 22px; background: none; border: 0; font-size: 26px; color: var(--muted); cursor: pointer; }
.search-r { max-height: 60vh; overflow-y: auto; margin-top: 8px; }
.search-r a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.search-r a span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; align-self: center; }
.search-r a.on, .search-r a:hover { background: var(--soft); }
.search-r .none { color: var(--muted); font-size: 14px; padding: 8px 12px; margin: 0; }
html.noscroll { overflow: hidden; }
#result, #main, .work, .result { scroll-margin-top: 76px; }


@keyframes bar { 0%, 100% { height: 18%; } 50% { height: 92%; } }
@media (prefers-reduced-motion: no-preference) {
  .eq i { animation: bar 1.4s ease-in-out infinite; }
  .eq i:nth-child(3n) { animation-duration: 1.1s; } .eq i:nth-child(4n) { animation-duration: 1.7s; } .eq i:nth-child(5n) { animation-duration: .9s; }
  .eq i:nth-child(2n) { animation-delay: -.4s; } .eq i:nth-child(3n+1) { animation-delay: -.8s; }
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .55s ease-out var(--d, 0ms), transform .55s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
  .js .rv.in { opacity: 1; transform: none; }
  header a.cta { transition: box-shadow .3s; } header a.cta:hover { box-shadow: 0 8px 26px rgba(34,195,238,.5); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.trysample { text-align: center; margin: 12px 0 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
@media (max-width: 759px) { .transport { position: sticky; bottom: 0; z-index: 5; background: var(--card); border-top: 1px solid var(--line); margin: 0 -16px; padding: 10px 16px; } }
.result .big span a { color: inherit; }
.datablock { margin: 26px 0 0; }
.scroll { overflow-x: auto; }
.tbl { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.tbl th, .tbl td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tbl th { font-size: 13px; color: var(--muted); background: var(--soft); }
.tbl caption { caption-side: bottom; font-size: 12px; color: var(--muted); text-align: left; padding: 6px 2px; }


@media (min-width: 900px) {
  nav.main li:hover > .sub, nav.main li:focus-within > .sub { grid-template-columns: 1fr 1fr; min-width: 470px; gap: 2px; }
  nav.main li:last-child > .sub { left: auto; right: -6px; }
}
nav.main .sub a.all { grid-column: 1 / -1; justify-content: center; color: var(--accent); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
.pick { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: 15px; }
.pick .cl { font-weight: 600; }
.pick select, .export select, .row2 select, .row2 input[type=number], .trimrow input, .chordkey input, .campanel input, .campanel select, .chordf input { font: 15px var(--sans); padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.export .size { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; align-self: center; }
.files { list-style: none; counter-reset: f; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.files li { counter-increment: f; display: flex; gap: 6px; align-items: center; background: var(--soft); border-radius: 12px; padding: 6px 8px; }
.files li::before { content: counter(f); font-weight: 800; color: var(--accent); width: 22px; text-align: center; }
.files li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.files li small { color: var(--muted); font-weight: 400; }
.recpanel { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 26px 12px; border: 2px dashed color-mix(in srgb, var(--hot) 40%, var(--line)); border-radius: 18px; }
.recpanel .rectime { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; }
.recbtn.on { background: var(--hot); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--hot) 25%, transparent); } }
.meter { position: relative; }
.meter s { --h: 0; position: absolute; top: 0; bottom: 0; left: calc(var(--h) * 100%); width: 2px; background: var(--ink); text-decoration: none; }
.chordkey { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.chordkey label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); flex: 1 1 260px; }
.chordkey .ckout { flex: 1 1 100%; }
.ckout .big, .chordf .big { background: linear-gradient(160deg, #1b1740, #0f0d20); color: #fff; border-radius: 18px; padding: 18px; text-align: center; }
.ckout .big small, .chordf .big small { display: block; text-transform: uppercase; letter-spacing: .1em; color: #8fe3f7; font-size: 12px; }
.ckout .big b, .chordf .big b { display: block; font-size: 44px; font-weight: 800; margin: 4px 0; }
.ckout .big span, .chordf .big span { color: #cfccf3; font-size: 14px; } .ckout .big a { color: inherit; }
.strings button { min-width: 50px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 700 16px var(--sans); cursor: pointer; display: grid; line-height: 1.2; }
.strings button small { font-size: 11px; color: var(--muted); font-weight: 600; }
.strings button.on { background: var(--grad); color: #fff; border-color: transparent; } .strings button.on small { color: #e6e3ff; }
.tuner .row2 input[type=number] { width: 84px; }

.camelot { display: grid; gap: 18px; align-items: center; }
@media (min-width: 760px) { .camelot { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.wheel { width: 100%; max-width: 440px; justify-self: center; }
.wheel .wedge { cursor: pointer; outline: none; }
.wheel .wedge path { stroke: var(--paper); stroke-width: 2; opacity: .38; transition: opacity .15s, transform .15s; }
.wheel .wedge text { font: 700 12px var(--sans); fill: var(--ink); pointer-events: none; }
.wheel .wedge text.kn { font-size: 10px; font-weight: 600; fill: var(--muted); }
.wheel .wedge:hover path, .wheel .wedge:focus-visible path { opacity: .7; }
.wheel .wedge.fit path { opacity: .85; } .wheel .wedge.boost path { opacity: .65; stroke: var(--ink); stroke-dasharray: 4 3; }
.wheel .wedge.on path { opacity: 1; stroke: var(--ink); stroke-width: 3; }
.wheel .wedge.on text, .wheel .wedge.fit text { fill: #14122b; } .wheel .wedge.on text.kn, .wheel .wedge.fit text.kn { fill: #2b2850; }
.wheel .hubc { fill: var(--card); stroke: var(--line); } .wheel .hubt { font: 800 15px var(--sans); fill: var(--ink); } .wheel .hubs { font: 600 9px var(--sans); fill: var(--muted); }
.campanel { display: grid; gap: 10px; }
.campanel label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.kinfo b { display: block; font-size: 32px; font-weight: 800; } .kinfo span { color: var(--muted); font-size: 15px; }
.moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.moves li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .moves small { color: var(--muted); }

.chordf { display: grid; gap: 12px; }
.chordf .tabs { justify-self: start; }
.piano, .neck { width: 100%; display: block; touch-action: manipulation; }
.piano rect { cursor: pointer; transition: fill .1s; }
.piano .wk { fill: #fff; stroke: #2a2846; stroke-width: 1; } .piano .bk { fill: #1b1838; }
.piano .wk.on, .piano .bk.on { fill: var(--brand); }
.piano .kl { font: 600 9px var(--sans); fill: #5d5a7a; pointer-events: none; }
.neck { background: color-mix(in srgb, #b07a43 18%, var(--card)); border-radius: 10px; }
.neck .fret { stroke: #9c9cb0; stroke-width: 2; } .neck .str { stroke: #6b6880; stroke-width: 1.5; }
.neck .cell { fill: transparent; cursor: pointer; } .neck .cell:hover { fill: color-mix(in srgb, var(--brand) 18%, transparent); }
.neck .dots circle { fill: var(--brand); pointer-events: none; } .neck .dots circle.open { fill: none; stroke: var(--brand); stroke-width: 2.5; }
.neck .mute { font: 700 13px var(--sans); fill: var(--hot); pointer-events: none; } .neck .sl, .neck .fn { font: 600 10px var(--sans); fill: var(--muted); pointer-events: none; }
.chordf label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.chordf .notes { font-weight: 700; margin: 0 0 8px; }

.hear { display: grid; gap: 14px; justify-items: center; text-align: center; }
.hear .warn { background: color-mix(in srgb, #ffd35a 22%, var(--card)); border: 1px solid color-mix(in srgb, #ffd35a 60%, var(--line)); border-radius: 14px; padding: 10px 14px; margin: 0; font-size: 15px; }
.results { margin: 0; padding-left: 20px; text-align: left; font-weight: 600; }
.tone .row2 input[type=number] { width: 96px; }

.metro .dots { flex-wrap: wrap; justify-content: center; }
.metro .dots button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); cursor: pointer; padding: 0; transition: transform .05s, background .05s; }
.metro .dots button.m2 { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 25%, var(--card)); }
.metro .dots button.m0 { border-style: dashed; opacity: .45; }
.metro .dots button.on { background: var(--hot); border-color: var(--hot); transform: scale(1.15); }
.metro .dots button.m2.on { background: var(--brand); border-color: var(--brand); }
.metro .row2 input[type=number] { width: 64px; }
.drop-in small.own { color: var(--muted); font-weight: 500; margin-top: 0; }



@media (max-width: 959px) {
  label.burger { width: 44px; height: 44px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  header.top .wrap { gap: 8px; }
  nav.main .sub { display: grid; grid-template-columns: 1fr; border: 0; padding: 0; background: none; box-shadow: none; text-align: left; }
  nav.main .sub a { justify-content: flex-start; white-space: nowrap; padding: 12px 0; }
}
@media (max-width: 440px) { header a.cta { display: none; } }

.gauge { width: min(100%, 420px); height: auto; aspect-ratio: 2 / 1; margin: 0 auto 26px; background: none; -webkit-mask: none; mask: none; opacity: 1; border-radius: 0; }
.gauge::before { content: ""; position: absolute; inset: 0; border-radius: 999px 999px 0 0;
  background: conic-gradient(from 270deg at 50% 100%, #ff5a7a, #ffd35a 22%, #12a37a 50%, #ffd35a 78%, #ff5a7a 100%);
  -webkit-mask: radial-gradient(ellipse 50% 100% at 50% 100%, transparent 72%, #000 73%); mask: radial-gradient(ellipse 50% 100% at 50% 100%, transparent 72%, #000 73%); opacity: .92; }
.gauge::after { content: ""; position: absolute; left: calc(50% - 1px); top: 0; width: 2px; height: 28%; background: var(--ink); opacity: .55; }
.needle { height: 88%; width: 4px; border-radius: 4px; z-index: 1; }
.gauge .scale { position: absolute; left: 0; right: 0; bottom: -26px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; }
.gauge.ok::before { filter: drop-shadow(0 0 14px rgba(18,163,122,.6)); } .gauge.ok { filter: none; }

.ctl .cl { grid-row: 1; grid-column: 1; } .ctl output { grid-row: 1; grid-column: 2; font-size: 16px; font-weight: 800; } .ctl input { grid-row: 2; grid-column: 1 / -1; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(var(--brand), var(--brand)) 0 / var(--fill, 50%) 100% no-repeat, var(--line); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--brand); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
input[type=range]:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 6px; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }

.status { font-weight: 600; color: var(--ink); }
.status.busy::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
.wavebox.busy canvas { opacity: .45; transition: opacity .15s; }
@keyframes spin { to { transform: rotate(360deg); } }

.result .big b .u, .ckout .big b .u { font-size: 20px; font-weight: 700; color: #b9b5e8; margin-left: 6px; }
.result .big.alt b .u { color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0 4px; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 16px; background: rgba(255,255,255,.12); color: #fff; }
.result .big.alt .badge { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.big .chip { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); margin: 4px 2px; }
.result .big.alt .chip { background: var(--card); color: var(--ink); border-color: var(--line); }
.conf { display: block; height: 6px; border-radius: 6px; background: rgba(255,255,255,.15); margin: 8px auto 2px; max-width: 220px; overflow: hidden; }
.conf i { display: block; height: 100%; width: calc(var(--c, 0) * 100%); background: linear-gradient(90deg, #ffd35a, #12d39a); }
.mic .verdict { font-weight: 700; color: var(--ink); } .mic .verdict.bad { color: var(--err); } .mic .verdict.good { color: var(--ok); }
.mic .meter, .recpanel .meter { height: 22px; }

.work, .result, .ckout { scroll-margin-top: 80px; }
.again { margin: 0 0 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.err:not(:empty) { padding: 12px 14px 12px 42px; border-radius: 12px; background: color-mix(in srgb, var(--err) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--err) 45%, var(--line)); color: var(--ink); font-size: 15px; position: relative; margin: 10px 0; }
.err:not(:empty)::before { content: "!"; position: absolute; left: 12px; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--err); color: #fff; font: 800 13px/20px var(--sans); text-align: center; }

.row2 { gap: 12px 16px; align-items: flex-end; }
.row2 label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: left; }
.row2 label.check { display: flex; flex-direction: row; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; color: var(--ink); }
.row2 select, .row2 input[type=number], .row2 input[type=text] { min-height: 42px; }
.row2 label.sfx { grid-template-columns: auto auto; align-items: center; column-gap: 6px; } .row2 label.sfx > span { grid-column: 1 / -1; }
.metro .nudge { display: grid; grid-template-columns: repeat(2, 48px) auto repeat(2, 48px); gap: 8px; align-items: center; }

@media (pointer: coarse) {
  .btn.sm, .chip, .ab button, .strings button { min-height: 44px; }
  .ab button { padding: 10px 16px; }
  .crumbs a { padding: 12px 2px; }
  .files button { min-width: 44px; height: 44px; }
  select, input[type=number], input[type=text] { min-height: 44px; }
}

:root { --ok: #0b7a5a; }
@media (prefers-color-scheme: dark) { :root { --ok: #2fd39d; --line: #363356; } }
.wheel .wedge text.kn { font-size: 11px; }
@media (prefers-color-scheme: dark) { .wheel .wedge text { fill: #ecebff; } .wheel .wedge text.kn { fill: #cfccf3; } }

.scroll { max-width: 100%; } .datablock { min-width: 0; }
.mic .start:disabled { background: color-mix(in srgb, var(--ok) 15%, var(--card)); color: var(--ink); box-shadow: none; opacity: 1; cursor: default; }
.mic .start:disabled::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); animation: pulse 1.4s infinite; }
.next:not(:empty) { background: color-mix(in srgb, var(--brand) 8%, var(--card)); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); border-radius: 14px; padding: 10px 12px; }
.next a { background: var(--card); border: 1px solid var(--line); }
.prose h2 { margin-top: 52px; }
.prose ul, .prose ol { padding-left: 1.2em; } .prose li { margin: .4em 0; }
.neck .nut { stroke: var(--ink); stroke-width: 5; } .neck .inlay { fill: color-mix(in srgb, var(--ink) 18%, transparent); pointer-events: none; }
.neck .sl { font-size: 12px; font-weight: 700; fill: var(--ink); }

@media (max-width: 640px) { .v-guitar, .v-piano { overflow-x: auto; -webkit-overflow-scrolling: touch; } .neck { min-width: 680px; } .piano { min-width: 560px; } }
.piano rect:focus-visible, .wheel .wedge:focus-visible path { outline: none; stroke: var(--hot); stroke-width: 3; }
.result .big b .bv { font-size: inherit; color: inherit; font-weight: inherit; } .result .big b .u { font-size: 20px; }
.readout b { display: inline-block; padding: 0 .04em; } .readout > span, .readout > em { display: block; }
.readout b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--brand); padding: 0; }
.readout b.note { border: 0; border-radius: 0; padding: 0; margin: 0; font-size: 72px; color: var(--brand); background: none; }
