*{box-sizing:border-box}body{min-width:300px}button,input,select{font:inherit}button,a,select,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--tfx-ink-2);outline-offset:4px}button{color:var(--tfx-ink);border:0}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.app{max-width:1024px;padding:24px 40px 20px;margin:auto}header{display:flex;align-items:center;justify-content:space-between}.brand{font-weight:650;font-size:23px;letter-spacing:-1px;color:var(--tfx-ink);text-decoration:none}.brand span{font-weight:400;color:var(--tfx-muted);font-size:16px;letter-spacing:-.4px}.icon-button{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:transparent}.icon-button:hover:not(:disabled){background:var(--tfx-chip)}.intro{margin:42px 0 28px}.eyebrow{font:10px var(--tfx-mono);letter-spacing:2px;color:var(--tfx-muted);margin-bottom:14px}h1{font-size:44px;font-weight:500;line-height:1.08;letter-spacing:-2px;margin:0}.intro p{color:var(--tfx-muted);font-size:13px;margin:14px 0 0}.selectors{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.instrument-tabs{display:flex;gap:4px;background:var(--tfx-surface);border-radius:var(--tfx-r-pill);padding:4px}.instrument-tabs button{padding:9px 18px;border-radius:var(--tfx-r-pill);background:transparent;color:var(--tfx-muted);font-size:13px;min-height:44px}.instrument-tabs button[aria-pressed=true]{background:var(--tfx-chip);color:var(--tfx-ink)}.instrument-tabs span{font:10px var(--tfx-mono);margin-left:8px;color:var(--tfx-muted)}select{background:var(--tfx-surface);border:1px solid var(--tfx-line);color:var(--tfx-ink);padding:10px 12px;border-radius:var(--tfx-r-pill);min-height:44px;font-size:13px;max-width:100%}.tuner{display:grid;grid-template-columns:42% 58%;border:1px solid var(--tfx-line);border-radius:var(--tfx-r);background:var(--tfx-surface);overflow:hidden}.instrument-panel{padding:22px 26px 18px;position:relative;border-right:1px solid var(--tfx-line)}.panel-heading{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--tfx-ink-2)}.small-button{border:1px solid var(--tfx-line);background:transparent;padding:7px 14px;border-radius:var(--tfx-r-pill);font-size:11px;min-height:36px}.small-button[aria-pressed=true]{background:var(--tfx-ink);color:var(--tfx-bg)}.headstock{position:relative;height:300px;max-width:330px;margin:8px auto 0}.headstock img{position:absolute;height:100%;width:100%;object-fit:contain;opacity:.92}.peg{position:absolute;z-index:1;border-radius:50%;width:48px;height:48px;background:var(--tfx-bg);border:1px solid var(--tfx-line);display:flex;align-items:center;justify-content:center;gap:2px;box-shadow:0 4px 12px #0002}.peg .string-number{position:absolute;top:-9px;font:9px var(--tfx-mono);color:var(--tfx-muted);background:var(--tfx-surface);padding:0 4px}.peg sup{font-size:9px;color:var(--tfx-muted)}.peg.active{background:var(--tfx-ink);color:var(--tfx-bg);border-color:var(--tfx-ink)}.peg.active sup{color:inherit}.peg.tuned{box-shadow:0 0 0 2px var(--tfx-ink-2)}.instrument-help{text-align:center;color:var(--tfx-muted);font-size:11px;margin:6px 0 8px}.string-sequence{text-align:center;font:11px var(--tfx-mono);color:var(--tfx-ink-2);letter-spacing:5px}.readout-panel{padding:25px 30px 22px}.listen-status{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--tfx-muted)}.status-dot{height:5px;width:5px;border-radius:50%;background:var(--tfx-muted)}.status-dot.live{background:var(--tfx-ink)}.engine{margin-left:auto;font:8px var(--tfx-mono);letter-spacing:1px}.note-area{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;height:130px;margin-top:10px}.note{font-size:106px;font-weight:450;line-height:1;letter-spacing:-6px}.note-detail{display:flex;flex-direction:column;gap:5px;color:var(--tfx-muted);font:10px var(--tfx-mono)}#reference{position:absolute;right:0;bottom:15px;color:var(--tfx-ink-2)}button:disabled{opacity:.3;cursor:default}.verdict{text-align:center;font-size:14px;height:26px;color:var(--tfx-ink-2)}.deviation{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.deviation>span{font:8px var(--tfx-mono);color:var(--tfx-muted);letter-spacing:1px}.deviation strong{font:22px var(--tfx-mono);font-weight:400}.deviation small{font:10px var(--tfx-font);color:var(--tfx-muted)}.chart{position:relative;height:126px;margin:8px 0 12px}canvas{width:100%;height:110px;display:block}.chart-labels{display:flex;justify-content:space-between;color:var(--tfx-muted);font:9px var(--tfx-mono)}.signal-row{display:flex;align-items:center;gap:12px;color:var(--tfx-muted);font-size:9px}.meter{flex:1;max-width:90px;height:3px;background:var(--tfx-line);border-radius:3px;overflow:hidden}.meter div{height:100%;width:0;background:var(--tfx-ink-2)}#signal-label{font:8px var(--tfx-mono);margin-left:auto}.actions{display:flex;align-items:center;gap:24px;margin-top:20px}.mic-button{display:flex;justify-content:center;align-items:center;gap:10px;min-height:52px;padding:14px 24px;flex-shrink:0;border-radius:var(--tfx-r-pill);background:var(--tfx-inv-bg);color:var(--tfx-inv-ink);font-size:13px;font-weight:550}.mic-button:hover{opacity:.9}.mic-button svg{width:17px;height:17px}#hint{color:var(--tfx-muted);font-size:11px;line-height:1.6;max-width:300px;margin:0}footer{display:flex;align-items:center;justify-content:space-between;margin-top:35px;padding-bottom:env(safe-area-inset-bottom);font-size:10px;color:var(--tfx-muted)}.text-button{background:none;color:var(--tfx-muted);font:10px var(--tfx-mono);padding:12px}dialog{background:var(--tfx-surface);color:var(--tfx-ink);border:1px solid var(--tfx-line);border-radius:var(--tfx-r);max-width:420px;width:calc(100% - 32px);padding:24px}dialog::backdrop{background:#0009}.dialog-heading{display:flex;justify-content:space-between;align-items:center}h2{font-size:23px;font-weight:500;margin:0}.setting-row{display:flex;justify-content:space-between;align-items:center;margin:18px 0;font-size:13px}.setting-row input{width:74px;padding:10px;background:var(--tfx-bg);color:var(--tfx-ink);border:1px solid var(--tfx-line);border-radius:var(--tfx-r-xs)}dialog p{font-size:12px;line-height:1.65;color:var(--tfx-ink-2)}dialog small{color:var(--tfx-muted);font:9px var(--tfx-mono)}.sr-only{position:absolute;clip:rect(0,0,0,0);height:1px;width:1px;overflow:hidden}
@media(min-width:760px){h1 br{display:none}.intro{margin-top:48px}.app{padding-top:26px}}
@media(max-width:650px){.app{padding:16px 18px}.intro{margin:24px 0 22px}h1{font-size:33px;letter-spacing:-1.4px}.intro p{font-size:11px;max-width:280px}.eyebrow{font-size:8px;margin-bottom:10px}.selectors{gap:8px}.instrument-tabs button{padding:8px 12px;font-size:12px}.instrument-tabs span{display:none}.tuning-select{min-width:0;flex:1;text-align:right}.tuning-select select{width:100%;font-size:11px}.tuner{display:flex;flex-direction:column-reverse}.readout-panel{padding:18px 20px 12px}.note-area{height:98px;margin:4px 0}.note{font-size:82px}.verdict{height:22px;font-size:12px}.deviation{margin-top:4px}.chart{height:90px;margin:4px 0 8px}canvas{height:76px}.instrument-panel{border-right:0;border-top:1px solid var(--tfx-line);padding:12px 20px}.headstock{height:204px;max-width:300px;margin-top:-10px}.panel-heading{font-size:11px;position:relative;z-index:2;pointer-events:none}.panel-heading button{pointer-events:auto}.small-button{min-height:36px;padding:5px 12px}.peg{width:44px;height:44px;font-size:14px}.instrument-help{font-size:10px;margin-top:-3px;margin-bottom:4px}.string-sequence{font-size:10px}.actions{flex-direction:column;gap:10px;margin-top:16px}.mic-button{width:100%;min-height:50px}#hint{font-size:10px;text-align:center;max-width:100%}footer{margin-top:16px;font-size:9px}}
@media(max-height:760px) and (max-width:650px){.intro{margin:16px 0}.intro h1{font-size:27px}.intro h1 br{display:none}.intro p{display:none}.headstock{height:168px}.note-area{height:84px}.note{font-size:74px}.chart{height:78px}canvas{height:64px}footer{margin-top:6px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(max-width:650px){.intro{margin:16px 0 18px}.intro h1{font-size:27px}.intro h1 br{display:none}.intro p{display:none}.eyebrow{font-size:8px}.headstock{height:170px}.readout-panel{padding-top:14px}.note-area{height:84px}.note{font-size:74px}.chart{height:78px}canvas{height:64px}.instrument-panel{padding-top:8px;padding-bottom:10px}.instrument-help{margin-top:-8px}.actions{gap:8px;margin-top:14px}footer{margin-top:8px}.listen-status{font-size:10px}}
@media(max-width:650px){.intro{margin:12px 0 14px}.eyebrow{display:none}.intro h1{font-size:25px;line-height:1.15}.headstock{height:152px}.note-area{height:76px}.note{font-size:70px}.chart{height:68px}canvas{height:54px}.setting-row input,.setting-row select{font-size:16px}}
.chart canvas{width:calc(100% - 26px)}.chart-labels{position:absolute;right:0;top:0;bottom:16px;flex-direction:column;justify-content:space-between;text-align:right;font-size:8px}.chart-time{position:absolute;left:0;right:26px;bottom:0;display:flex;justify-content:space-between;font:8px var(--tfx-mono);color:var(--tfx-muted)}
.peg{top:calc(17% + var(--row)*17%)}.headstock[data-instrument=ukulele] .peg{top:calc(28% + var(--row)*26%)}
@media(max-width:650px){.intro h1{font-size:23px}.peg{top:calc(6% + var(--row)*30%)}.headstock[data-instrument=ukulele] .peg{top:calc(18% + var(--row)*42%)}.instrument-help{margin-top:2px}}
.chart-labels,.chart-time{font-size:10px}.signal-row{font-size:10px}#signal-label{font-size:9px}
@media(max-width:650px){.listen-status{font-size:11px}.panel-heading{font-size:12px}.peg{font-size:17px}.instrument-help{font-size:11px}.string-sequence{font-size:11px}}
[hidden]{display:none!important}.header-actions{display:flex;align-items:center;gap:4px}
.install-offer{display:grid;grid-template-columns:40px minmax(0,1fr) auto 44px;align-items:center;gap:12px;border:1px solid var(--tfx-line);border-radius:var(--tfx-r);padding:14px 16px;margin-top:20px}
.install-offer img{border-radius:var(--tfx-r-xs)}.install-offer strong{display:block;font-size:13px;line-height:1.35;font-weight:550}.install-offer p{font-size:11px;line-height:1.45;color:var(--tfx-muted);margin:4px 0 0}
.install-offer .small-button{min-height:44px;white-space:nowrap}.install-offer .icon-button{width:44px;height:44px;align-self:start}
@media(max-width:650px){.install-offer{grid-template-columns:40px minmax(0,1fr) 44px;gap:8px 10px;padding:12px;align-items:start}.install-offer img{grid-column:1;grid-row:1}.install-offer>div{grid-column:2;grid-row:1;padding-top:2px}.install-offer .small-button{grid-column:2;grid-row:2;justify-self:start;padding:9px 16px}.install-offer .icon-button{grid-column:3;grid-row:1}}
.install-guide{margin-top:24px;padding:20px 24px;border:1px solid var(--tfx-line);border-radius:var(--tfx-r)}.install-guide h2{font-size:17px;margin:0 0 12px}.install-guide ol{margin:0;padding-left:20px;color:var(--tfx-ink-2);font-size:13px;line-height:1.7}.install-guide li+li{margin-top:8px}.install-guide strong{font-weight:550;color:var(--tfx-ink)}.install-guide a{color:var(--tfx-ink);text-underline-offset:3px}.install-guide p{font-size:12px;color:var(--tfx-muted);line-height:1.6;margin:16px 0 0}.share-icon{width:18px;height:18px;vertical-align:middle;color:var(--tfx-ink)}
@media(max-width:650px){.install-guide{padding:18px}.install-guide h2{font-size:16px}}

.small-button:hover:not([aria-pressed="true"]),.peg:hover:not(.active),.instrument-tabs button:hover:not([aria-pressed="true"]){background:var(--tfx-chip)}
