:root{color:#1f2937;--accent:#2563eb;--good:#16a34a;--bad:#dc2626;background:#f5f1e8;font-family:system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}.app{max-width:1800px;margin:0 auto;padding:12px 20px 48px}header{flex-wrap:wrap;align-items:center;gap:12px;display:flex}header h1{margin:0 auto 0 0;font-size:1.6rem}select,input,button,textarea{font:inherit}select,input[type=number],input:not([type]),textarea{background:#fff;border:1px solid #c8c1b0;border-radius:8px;padding:6px 8px}button{cursor:pointer;background:#fff;border:1px solid #c8c1b0;border-radius:10px;padding:8px 14px}button:disabled{opacity:.5;cursor:default}nav{flex-wrap:wrap;gap:6px;margin:12px 0;display:flex}nav button.active{background:var(--accent);color:#fff;border-color:var(--accent)}.controls{flex-wrap:wrap;align-items:center;gap:18px;margin-bottom:10px;display:flex}.controls label{align-items:center;gap:6px;display:flex}.controls .tempo input{width:160px}.staff{border-radius:12px;width:100%;height:clamp(300px,100vh - 360px,620px);display:block;box-shadow:0 1px 4px #0000001f}.staff.small{height:clamp(200px,30vh,320px)}.live{flex-wrap:wrap;justify-content:center;align-items:center;gap:16px;margin:16px 0;display:flex}.bubble{text-align:center;background:#fff;border-radius:16px;min-width:120px;padding:8px 22px;box-shadow:0 1px 4px #0000001a}.bubble span{color:#6b7280;font-size:.85rem;display:block}.bubble b{font-size:2.6rem}.bubble.heard b{color:var(--accent)}.big{color:#fff;border:none;border-radius:999px;padding:14px 34px;font-size:1.5rem}.big.go{background:var(--good)}.big.stop{background:var(--bad)}.report{background:#fff;border-radius:12px;padding:12px 20px;box-shadow:0 1px 4px #0000001a}.report h2{font-size:1.35rem}.report h3{margin:18px 0 6px}.stars{color:#f59e0b;letter-spacing:2px}ul.bars{padding:0;list-style:none}ul.bars li{border-left:4px solid;border-radius:4px;margin:4px 0;padding:5px 10px}ul.bars li.good{border-color:var(--good);background:#f0fdf4}ul.bars li.bad{border-color:var(--bad);background:#fef2f2}ul.work{padding:0;list-style:none}ul.work li{border-bottom:1px solid #eee;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;display:flex}ul.work button{white-space:nowrap;background:var(--accent);color:#fff;border:none}.error{color:var(--bad)}.warn{color:#b45309}.editor .row{flex-wrap:wrap;align-items:end;gap:16px;margin:10px 0;display:flex}.editor label{flex-direction:column;gap:4px;display:flex}.editor .notes textarea{width:100%;font-family:ui-monospace,monospace;font-size:1.1rem}.primary{background:var(--accent);color:#fff;border:none}.danger{color:var(--bad);border-color:var(--bad)}.help table{border-collapse:collapse;margin-top:8px}.help td{padding:3px 10px}.history table{border-collapse:collapse;background:#fff;border-radius:8px;width:100%;margin-bottom:12px}.history th,.history td{text-align:left;border-bottom:1px solid #eee;padding:6px 8px}.settings{flex-direction:column;gap:18px;max-width:560px;display:flex}.settings label{flex-direction:column;gap:6px;display:flex}.settings label.check{flex-direction:row;align-items:center}.hint{color:#6b7280}.sync{color:#6b7280;font-size:.9rem}.sync.offline{color:#b45309}.modes{border:1px solid #c8c1b0;border-radius:10px;display:inline-flex;overflow:hidden}.modes button{border:none;border-radius:0}.modes button.active{background:var(--accent);color:#fff}.bubble small{color:#1e3a8a;margin-top:2px;font-size:.95rem;display:block}.tuner{grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:16px;display:grid}.card{background:#fff;border-radius:12px;padding:12px 20px 20px;box-shadow:0 1px 4px #0000001a}.strings{justify-content:center;gap:10px;margin:12px 0 20px;display:flex}.string{color:#6b7280;background:#f3f4f6;border-radius:50%;place-items:center;width:52px;height:52px;font-size:1.5rem;font-weight:700;display:grid}.string.active{color:#92400e;background:#fde68a}.string.ok{background:var(--good);color:#fff}.needle-box{max-width:520px;margin:0 auto}.scale{color:#6b7280;justify-content:space-between;font-size:.85rem;display:flex}.track{background:linear-gradient(90deg,#fecaca,#fef3c7 40%,#bbf7d0 47% 53%,#fef3c7 60%,#fecaca);border-radius:17px;height:34px;position:relative}.track .center{background:#374151;width:2px;position:absolute;top:-4px;bottom:-4px;left:50%}.needle{background:#dc2626;border-radius:50%;width:28px;height:28px;margin-left:-14px;transition:left 80ms linear;position:absolute;top:3px}.needle.ok{background:var(--good)}.tune-msg{text-align:center;min-height:1.6em;margin:16px 0;font-size:1.3rem}.meter{background:#e5e7eb;border-radius:4px;max-width:520px;height:8px;margin:0 auto;overflow:hidden}.meter div{background:var(--accent);height:100%;transition:width 60ms linear}.center{flex-direction:column;justify-content:center;align-items:center;gap:24px;min-height:60vh;display:flex}button.link{color:#6b7280;background:0 0;border:none;text-decoration:underline}.ai-tip{border-left:4px solid var(--accent);background:#eff6ff;border-radius:6px;padding:10px 14px;font-size:1.1rem}ul.hints{background:#fffbeb;border:1px solid #fcd34d;border-radius:8px;padding:10px 28px}
