.tn-wrap { max-width: 640px; }
.tn-card { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; padding: 18px 16px; }
.tn-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.tn-tun { display: flex; align-items: center; gap: 10px; flex: 1 1 240px; min-width: 0; }
.tn-sel { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 10px; background: var(--panel2); color: var(--ink); border: 1px solid var(--line2);
  font-family: var(--f-num); font-size: 17px; border-radius: 3px; }
.tn-a4 { display: flex; align-items: center; gap: 8px; }
.tn-a4v { min-width: 66px; text-align: center; font-size: 18px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.tn-sq { min-height: 40px; width: 40px; padding: 0; font-size: 20px; }
.tn-gauge { display: block; width: 100%; aspect-ratio: 2 / 1.08; }
.tn-read { display: flex; align-items: center; justify-content: center; gap: 16px; height: 92px; }
.tn-notebox { display: flex; align-items: baseline; min-width: 112px; justify-content: flex-end; }
.tn-note { font-family: var(--f-stencil); font-size: 78px; line-height: 1; color: var(--line2); transition: color .2s; }
.tn-oct { font-size: 26px; font-weight: 500; color: var(--dim); margin-left: 3px; min-width: 16px; }
.tn-nums { display: flex; flex-direction: column; width: 124px; }
.tn-cents { font-size: 30px; font-weight: 500; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; transition: color .2s; }
.tn-hz { font-size: 16px; color: var(--dim); min-height: 1.4em; font-variant-numeric: tabular-nums; }
.good { color: var(--green) !important; } .close { color: var(--amber) !important; } .off { color: var(--red-soft) !important; }
.tn-note.good { text-shadow: 0 0 20px rgba(93, 255, 138, .5); }
.tn-hint { text-align: center; font-family: var(--f-label); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); min-height: 1.5em; }
.tn-target { text-align: center; font-size: 14px; color: var(--faint); font-variant-numeric: tabular-nums; margin-top: -8px; }
.tn-trace { display: block; width: 100%; height: 170px; background: linear-gradient(180deg, #0c0f0b, #10140e); border: 1px solid var(--line); }
.tn-strings { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.tn-str { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 66px; border: 1px solid var(--line2);
  background: var(--panel2); color: var(--ink); cursor: pointer; padding: 0; transition: border-color .2s, background .2s;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.tn-str::before { content: ""; position: absolute; left: 9px; right: 5px; top: 0; height: 3px; background: var(--sc); }
.tn-str b { font-family: var(--f-stencil); font-weight: 400; font-size: 23px; line-height: 1.1; color: inherit; }
.tn-str small { font-size: 12px; color: var(--faint); }
.tn-str i { position: absolute; top: 4px; right: 5px; color: var(--green); font-style: normal; font-size: 13px; visibility: hidden; }
.tn-str.ok i { visibility: visible; }
.tn-str.ok { border-color: rgba(93, 255, 138, .45); }
.tn-str.target { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 15%, #12150f); color: var(--sc); box-shadow: 0 0 0 1px var(--sc) inset; }
.tn-str.picked::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 16px; height: 2px; margin-left: -8px; background: var(--amber); }
.tn-meter { height: 8px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 12px); position: relative; overflow: hidden; }
.tn-meter i { position: absolute; inset: 0; width: 0; background: repeating-linear-gradient(90deg, var(--green) 0 10px, transparent 10px 12px); }
.tn-ctl { display: flex; gap: 10px; }
.tn-ctl #mic { flex: 1 1 auto; font-size: 16px; }
.tn-ctl #auto { width: 88px; padding: 0; color: var(--dim); }
.tn-ctl #auto.on { color: var(--amber); }
.tn-msg { padding: 12px 16px; background: #2a1512; box-shadow: inset 0 0 0 1px var(--red); color: var(--text); font-size: 16px; }
.tn-help { margin-top: 30px; color: var(--dim); font-size: 16.5px; }
.tn-help h3 { color: var(--amber); margin-bottom: 8px; font-size: 14px; }
.tn-help ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.tn-priv { color: var(--green); opacity: .8; font-size: 15px; }
@media (max-width: 480px) { .tn-note { font-size: 62px; } .tn-read { height: 76px; } .tn-trace { height: 130px; } .tn-ctl #auto { width: 70px; } }
@media (max-width: 480px) { .tn-ctl { gap: 8px; } .tn-ctl #tone { padding: 0 12px; } .tn-ctl #mic { min-width: 0; } .tn-card { padding: 16px 12px; } }
