:root{color:#203d36;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--green:#215b48;--muted:#606e64;--line:#dce3d7;background:#f7f8f2;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,select{cursor:pointer}button,a{touch-action:manipulation}a,button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-offset:3px;outline:3px solid #a75b20}button{border:0}h1,h2,h3,p{margin:0}h1{letter-spacing:-.05em;font-size:clamp(1.6rem,5.8vw,2rem);font-weight:650;line-height:1.5}h2{font-size:1.15rem;font-weight:650;line-height:1.5}h3{font-size:.95rem}p{line-height:1.8}.app-shell{max-width:640px;padding:max(24px, env(safe-area-inset-top)) 22px calc(108px + env(safe-area-inset-bottom));margin:auto}.app-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding-bottom:28px;display:flex}.brand{letter-spacing:.15em;align-items:center;gap:10px;font-size:1.3rem;font-weight:700;text-decoration:none;display:flex}.brand small{letter-spacing:.17em;margin-top:2px;font-size:.5rem;display:block}.brand-mark{background:var(--green);color:#f7f8f2;border-radius:14px 14px 14px 3px;place-items:center;width:42px;height:46px;font-family:serif;font-size:1.5rem;display:grid}.header-actions{align-items:center;gap:10px;display:flex}.preview-badge{color:var(--muted);white-space:nowrap;background:#e9ede2;border-radius:5px;padding:5px 8px;font-size:.65rem}.icon-button{border:1px solid var(--line);background:0 0;border-radius:50px;min-width:44px;min-height:44px;padding:8px 12px;font-size:.8rem}.app-notice:empty{display:none}.app-notice{background:#e9ede2;border-radius:8px;margin-top:16px;padding:10px;font-size:.85rem}.section-intro{padding:30px 0 24px}.eyebrow{color:var(--muted);letter-spacing:.13em;margin-bottom:8px;font-size:.62rem;font-weight:600}.section-intro>.muted{margin-top:8px;font-size:.8rem}.muted{color:var(--muted)}.preset-strip{justify-content:space-between;gap:10px;padding:0 0 22px;display:flex}.preset-strip span{font-size:.72rem;line-height:1.6}.preset-strip small{color:var(--muted);margin-bottom:5px;font-size:.6rem;display:block}.reference-card{text-align:center;background:#e9eedf;border:1px solid #d9e2cd;border-radius:22px;padding:24px 22px 0}.card-caption{color:#52664f;justify-content:center;align-items:center;gap:7px;font-size:.7rem;display:flex}.status-dot{background:#66815a;border-radius:50%;width:6px;height:6px;display:inline-block}.reference-note{justify-content:center;align-items:center;gap:13px;margin:16px 0 4px;display:flex}#reference-note{letter-spacing:-.06em;font-size:clamp(3.5rem,17vw,5rem);font-weight:450;line-height:1.2}.solfege{color:#4c6148;border-left:1px solid #bcccac;padding-left:13px;font-size:.85rem}.reference-frequency{font-variant-numeric:tabular-nums;margin-bottom:26px;font-size:1.35rem}.unit{color:#52664f;font-size:.75rem}.reference-footer{color:#52664f;border-top:1px solid #cdd8c2;justify-content:space-between;gap:10px;padding:14px 0;font-size:.65rem;display:flex}.preview-note{color:var(--muted);padding:14px 2px 28px;font-size:.75rem}.section-title{justify-content:space-between;align-items:center;gap:10px;display:flex}.section-title .eyebrow{margin-bottom:3px;font-size:.58rem}.octave-control{color:var(--muted);align-items:center;gap:8px;font-size:.65rem;display:flex}select{border:1px solid var(--line);color:#203d36;background:#fffef8;border-radius:8px;min-height:44px;padding:8px 10px}.octave-control select{font-size:1rem}.table-help{color:var(--muted);margin:13px 0;font-size:.68rem}.table-wrap{border:1px solid var(--line);border-radius:12px;overflow:hidden}table{border-collapse:collapse;width:100%;font-size:.82rem}thead{color:#586653;background:#eef0e7}thead th{text-align:center;padding:13px 14px;font-size:.65rem;font-weight:500}thead th:first-child{text-align:left}thead th:last-child{text-align:right}tbody tr{background:#fffef9}tbody tr+tr{border-top:1px solid #edf0e7}tbody th{text-align:left;width:34%;padding:0 6px}tbody td{text-align:center;padding:8px 14px}tbody td:last-child{text-align:right}tbody tr.selected{background:#e7eede}.note-button{background:0 0;border-radius:8px;min-width:58px;min-height:44px;padding:10px 8px;font-weight:600}.note-button[aria-pressed=true]{color:#215b48;text-underline-offset:4px;text-decoration:underline}.numeric{font-variant-numeric:tabular-nums;font-family:ui-monospace,monospace}.footnote{color:var(--muted);padding-top:12px;font-size:.65rem}.teaching-note{border-top:1px solid var(--line);gap:14px;margin-top:28px;padding:20px 0;display:flex}.note-icon{color:#7b865d;font-size:1.8rem}.teaching-note h2{margin-bottom:6px;font-size:.85rem}.teaching-note p{font-size:.72rem}.teaching-note p+p{margin-top:8px}.app-footer{color:var(--muted);justify-content:space-between;gap:12px;margin-top:28px;font-size:.6rem;display:flex}.bottom-nav{bottom:0;z-index:2;padding:9px max(18px, env(safe-area-inset-left)) calc(9px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#f7f8f2f5;justify-content:center;gap:clamp(16px,10vw,64px);display:flex;position:fixed;inset-inline:0}.bottom-nav a{color:#6a7567;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;min-width:70px;min-height:52px;font-size:.68rem;text-decoration:none;display:flex;position:relative}.bottom-nav a>span{font-size:1.3rem;line-height:1.3}.bottom-nav a[aria-current=page]{color:#215b48;background:#e8eddf;font-weight:700}.bottom-nav small{font-size:.5rem;font-weight:500;position:absolute;top:2px;right:2px}.coming-card{border:1px solid var(--line);background:#eef0e5;border-radius:20px;margin:8px 0 60px;padding:36px 24px}.coming-symbol{color:#7b8b65;margin-bottom:25px;font-size:3rem;display:block}.coming-card h2{margin-bottom:14px}.coming-card p:not(.eyebrow){margin-top:10px;font-size:.85rem}.text-link{min-height:44px;color:var(--green);align-items:center;margin-top:20px;font-size:.85rem;display:inline-flex}dialog{border:1px solid var(--line);color:#203d36;background:#f7f8f2;border-radius:20px;width:min(480px,100% - 24px);max-height:calc(100dvh - 48px);padding:24px}dialog::backdrop{background:#152f2866}.dialog-heading{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.dialog-heading .eyebrow{margin-bottom:2px}.field-label{font-size:.8rem;font-weight:600}.preset-static{margin-top:8px;font-size:.9rem}.field-help{color:var(--muted);margin-top:6px;font-size:.72rem}.form-field{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:22px;font-size:.85rem;display:flex}.form-field span{color:var(--muted);font-size:.7rem}.form-field input,.form-field select{flex-basis:100%;width:100%;font-size:1rem}input{border:1px solid var(--line);color:#203d36;background:#fffef8;border-radius:8px;min-height:44px;padding:10px}.form-actions{gap:12px;margin-top:26px;display:flex}.form-actions button{border-radius:10px;flex:1;min-height:46px;padding:10px;font-size:.85rem}.primary-button{background:var(--green);color:#fff}.secondary-button{border:1px solid var(--line);background:#eef0e5}.help-section{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.help-section p{color:var(--muted);margin:8px 0 18px;font-size:.75rem}.sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.skip-link{z-index:4;background:#fff;padding:12px;position:fixed;top:-100px;left:10px}.skip-link:focus{top:10px}@media (width>=600px){.app-shell{padding-inline:40px}.section-intro{padding-top:40px}.reference-card{padding-top:30px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important}}.tempo-card{text-align:center;background:#e9eedf;border:1px solid #d9e2cd;border-radius:22px;padding:24px 20px}.tempo-number{justify-content:center;align-items:center;gap:12px;margin-top:18px;display:flex}.tempo-number label{min-width:0}.tempo-number input{text-align:center;font-variant-numeric:tabular-nums;appearance:textfield;background:0 0;border:0;width:3.3ch;max-width:100%;min-height:90px;padding:0;font-size:clamp(3rem,15vw,4.5rem);font-weight:450}.tempo-number input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tempo-number input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.tempo-step{background:0 0;border:1px solid #bcccac;border-radius:50%;flex-shrink:0;width:44px;height:44px;font-size:1.5rem}button:disabled{opacity:.4;cursor:default}.tempo-unit{color:#52664f;margin:8px 0 14px;font-size:.75rem}input[type=range]{accent-color:var(--green);background:0 0;border:0;width:100%;min-height:44px;padding:0}.range-ends{color:#52664f;justify-content:space-between;margin-top:-8px;font-size:.65rem;display:flex}.beat-indicators{flex-wrap:wrap;justify-content:center;gap:10px;margin:24px 0 12px;padding:0;list-style:none;display:flex}.beat-indicators li{font-variant-numeric:tabular-nums;border:1px solid #bcccac;border-radius:50%;place-items:center;width:30px;height:30px;font-size:.8rem;display:grid}.beat-indicators li.downbeat{border-width:2px}.beat-indicators li.active{background:var(--green);color:#fff;box-shadow:0 0 0 3px #bcccac}.beat-position{color:#52664f;font-variant-numeric:tabular-nums;min-height:26px;font-size:.75rem}.playback-button{border-radius:12px;width:100%;min-height:52px;margin:16px 0 12px;font-weight:600}.playback-state{color:#52664f;min-height:2.8em;font-size:.72rem}.rhythm-controls{margin:8px 0 28px}.accent-control{flex-wrap:wrap;align-items:center;gap:8px;margin-top:22px;font-size:.85rem;display:flex}.accent-control input{width:26px;min-height:44px;accent-color:var(--green);margin:0}.accent-control span{color:var(--muted);flex-basis:100%;font-size:.7rem}.tap-section{border-block:1px solid var(--line);grid-template-columns:1fr auto;align-items:center;gap:14px;padding:24px 0;display:grid}.tap-section>div{min-width:0}.tap-section h2{font-size:1rem}.tap-section p{color:var(--muted);margin-top:4px;font-size:.72rem}.tap-button{background:#e9eedf;border:1px solid #cdd8c2;border-radius:14px;min-width:90px;min-height:70px;padding:12px;font-size:.85rem}.text-button{text-underline-offset:4px;background:0 0;justify-self:start;min-height:44px;font-size:.75rem;text-decoration:underline}.reference-listen{background:var(--green);color:#fff;border-radius:12px;min-height:44px;margin:-8px auto 22px;padding:10px 22px;font-size:.85rem;display:block}dialog.tone-drawer{inset:auto 0 max(12px, env(safe-area-inset-bottom));max-height:calc(100dvh - 48px);margin:auto;padding:0}.tone-drawer[open]{flex-direction:column;display:flex}.tone-drawer .dialog-heading{border-bottom:1px solid var(--line);flex-shrink:0;gap:12px;margin:0;padding:20px 22px}.tone-body{min-height:0;padding:20px 22px;overflow-y:auto}.tone-note{justify-content:center;align-items:center;gap:14px;margin:14px 0 8px;display:flex}#tone-note{font-variant-numeric:tabular-nums;font-size:3.5rem;line-height:1.2}.tone-frequency{text-align:center;font-variant-numeric:tabular-nums;font-size:1.2rem}.tone-frequency small{color:var(--muted);white-space:nowrap;font-size:.7rem}.tone-target-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;display:grid}.tone-target-controls .form-field,.tone-target-controls select{min-width:0}.tone-actions{border-top:1px solid var(--line);flex-shrink:0;padding:14px 22px 18px}.tone-actions .playback-button{margin:6px 0 0}.tone-actions .playback-state{min-height:1.8em}.live-tuner{border:1px solid var(--line);text-align:center;background:#fffef9;border-radius:22px;margin-bottom:22px;padding:22px 20px}.live-tuner h2{font-size:1rem}.live-pitch{justify-content:center;align-items:center;gap:14px;margin:18px 0 8px;display:flex}#tuner-note{font-variant-numeric:tabular-nums;font-size:clamp(3rem,14vw,4.5rem);line-height:1.2}.tuner-direction{min-height:1.8em;font-size:.85rem}.tuner-cents{font-variant-numeric:tabular-nums;margin-top:3px;font-size:1.1rem}.cents-scale{background:linear-gradient(90deg,#eadbc9,#d9e6cc 45% 55%,#eadbc9);border-radius:8px;height:16px;margin:22px 0 14px;position:relative}.cents-center{background:#5b7356;width:2px;height:24px;position:absolute;top:-4px;left:50%}.cents-needle{background:var(--green);z-index:1;border-radius:4px;width:4px;height:30px;position:absolute;top:-7px;transform:translate(-50%)}.tuner-values{justify-content:space-between;gap:8px;margin:20px 0 10px;display:flex}.tuner-values dt{color:var(--muted);font-size:.65rem}.tuner-values dd{font-variant-numeric:tabular-nums;margin:6px 0 0;font-size:.95rem}#input-level{width:100%;height:10px}.offline-banner,.pwa-update{border:1px solid var(--line);background:#e9eedf;border-radius:12px;margin:12px 0;padding:12px;font-size:.75rem}.pwa-update p{margin-bottom:10px}.pwa-actions{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.pwa-actions button,.pwa-update button{white-space:normal;border-radius:10px;min-height:44px;padding:10px 14px;font-size:.8rem}[hidden]{display:none!important}.input-details{text-align:left;color:var(--muted);font-size:.7rem}.input-details summary{cursor:pointer;min-height:44px;padding-block:12px}.live-tuner .footnote{text-align:left}.tuner-page .app-shell{padding-bottom:calc(180px + env(safe-area-inset-bottom))}.tuner-page #toggle-tuner{bottom:calc(79px + env(safe-area-inset-bottom));z-index:3;width:min(560px,100% - 44px);margin:0;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 4px 18px #203d3622}
