/* Singing Grader 1.0.0 – scoped to .sgr. singingrangetest.com palette (Astra): blue #046bd2, slate #1e293b. */
.sgr{--sgr-ink:#1e293b;--sgr-muted:#334155;--sgr-line:#d1d5db;--sgr-bg:#fff;--sgr-soft:#f5f8fc;--sgr-accent:#046bd2;--sgr-accent-soft:#e8f2fc;--sgr-good:#047857;--sgr-off:#b45309;--sgr-err:#b91c1c;box-sizing:border-box;max-width:780px;margin:1em 0 1.5em;padding:16px;background:var(--sgr-bg);color:var(--sgr-ink);border:1px solid var(--sgr-line);border-radius:12px;box-shadow:0 1px 3px rgba(20,30,50,.06);font-size:16px;line-height:1.5}
.sgr *,.sgr *::before,.sgr *::after{box-sizing:inherit}
.sgr [hidden]{display:none!important}
.sgr .sgr-title{margin:0 0 4px;font-size:1.35em;line-height:1.25;color:var(--sgr-ink)}
.sgr .sgr-intro{margin:0 0 12px;color:var(--sgr-muted);font-size:.95em}
.sgr .sgr-modes{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 6px;padding:0;border:0;min-width:0}
.sgr .sgr-legend{width:100%;margin:0 0 6px;padding:0;font-weight:600;font-size:.9em}
.sgr .sgr-mode{flex:1 1 140px;display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;cursor:pointer;font-weight:600}
.sgr .sgr-mode:has(input:checked){border-color:var(--sgr-accent);background:var(--sgr-accent-soft);color:var(--sgr-accent)}
.sgr .sgr-mode input{width:18px;height:18px;margin:0;flex:none;accent-color:var(--sgr-accent)}
.sgr .sgr-tip{margin:0 0 10px}
.sgr .sgr-row{display:grid;grid-template-columns:1fr;gap:10px;margin:0 0 12px}
.sgr .sgr-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.sgr .sgr-field label{font-weight:600;font-size:.9em}
.sgr select{box-sizing:border-box;width:100%;min-height:44px;padding:8px 10px;font:inherit;color:var(--sgr-ink);background:#fff;border:1px solid #cbd5e1;border-radius:8px}
.sgr select:disabled,.sgr .sgr-mode:has(input:disabled){background:var(--sgr-soft);color:var(--sgr-muted);cursor:not-allowed}
.sgr .sgr-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.sgr .sgr-btn{min-height:44px;padding:9px 16px;font:inherit;font-weight:600;color:var(--sgr-ink);background:#fff;border:1px solid #cbd5e1;border-radius:8px;cursor:pointer;line-height:1.2}
.sgr .sgr-btn:hover{border-color:var(--sgr-accent)}
.sgr .sgr-btn-primary{color:#fff;background:var(--sgr-accent);border-color:var(--sgr-accent)}
.sgr .sgr-btn-primary:hover{background:#045cb4}
.sgr .sgr-btn-quiet{border-color:transparent;background:transparent;color:var(--sgr-accent)}
.sgr .sgr-btn:disabled{opacity:.5;cursor:not-allowed}
.sgr button:focus-visible,.sgr select:focus-visible,.sgr input:focus-visible,.sgr summary:focus-visible,.sgr .sgr-results:focus-visible{outline:3px solid #8fc1ee;outline-offset:2px}
.sgr .sgr-results:focus{outline:none}
.sgr .sgr-status{margin:8px 0 12px;font-size:.92em;color:var(--sgr-muted)}
.sgr .sgr-status.sgr-error{color:var(--sgr-err);font-weight:600}
.sgr .sgr-display{padding:14px;background:var(--sgr-soft);border:1px solid var(--sgr-line);border-radius:10px}
.sgr .sgr-live{border-color:var(--sgr-accent)}
.sgr .sgr-top{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:.88em;font-weight:600;color:var(--sgr-muted);margin:0 0 8px;font-variant-numeric:tabular-nums}
.sgr .sgr-now{display:flex;flex-direction:column;align-items:center;padding:10px 6px;background:#fff;border:1px solid var(--sgr-line);border-radius:10px}
.sgr .sgr-label{font-size:.8em;color:var(--sgr-muted)}
.sgr .sgr-big{font-size:2.6em;font-weight:800;line-height:1.1;color:var(--sgr-accent);font-variant-numeric:tabular-nums}
.sgr .sgr-sub{font-size:.85em;color:var(--sgr-muted);font-variant-numeric:tabular-nums}
.sgr .sgr-cents{display:block;margin:12px 0 0;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}
.sgr .sgr-good{color:var(--sgr-good)}
.sgr .sgr-off{color:var(--sgr-off)}
.sgr .sgr-meter{position:relative;height:30px;margin:10px 0 22px;background:linear-gradient(90deg,#fde7c8,#fff 35%,#fff 65%,#fde7c8);border:1px solid var(--sgr-line);border-radius:6px}
.sgr .sgr-zone{position:absolute;top:0;bottom:0;left:40%;width:20%;background:rgba(16,185,129,.16)}
.sgr .sgr-needle{position:absolute;top:-4px;bottom:-4px;left:50%;width:4px;margin-left:-2px;background:var(--sgr-ink);border-radius:2px;transition:left .08s linear}
.sgr .sgr-scale{position:absolute;left:0;right:0;top:100%;display:flex;justify-content:space-between;font-size:.72em;color:var(--sgr-muted);padding-top:2px}
.sgr .sgr-bars{display:grid;gap:5px}
.sgr .sgr-bar{height:6px;background:#d1d5db;border-radius:3px;overflow:hidden}
.sgr .sgr-bar span{display:block;height:100%;width:0;background:#94a3b8;transition:width .08s linear}
.sgr .sgr-bar-time span{background:var(--sgr-accent)}
.sgr .sgr-small{margin:8px 0 0;font-size:.85em;color:var(--sgr-muted)}
.sgr .sgr-results{margin:14px 0 0;padding:14px;border:1px solid var(--sgr-line);border-radius:10px}
.sgr .sgr-h3{margin:0 0 6px;font-size:1.1em;line-height:1.3}
.sgr .sgr-grade{margin:0 0 4px;line-height:1}
.sgr .sgr-grade output{font-size:3.2em;font-weight:800;color:var(--sgr-accent);font-variant-numeric:tabular-nums}
.sgr .sgr-outof{font-size:1.3em;font-weight:700;color:var(--sgr-muted)}
.sgr .sgr-verdict{margin:6px 0 10px;font-weight:600}
.sgr .sgr-summary{display:grid;grid-template-columns:1fr;gap:8px;margin:0 0 10px}
.sgr .sgr-summary div{padding:8px 10px;background:var(--sgr-soft);border-radius:8px;min-width:0}
.sgr .sgr-summary dt{font-size:.85em;color:var(--sgr-muted);font-weight:600}
.sgr .sgr-summary dd{margin:2px 0 0;font-size:.9em;overflow-wrap:anywhere}
.sgr .sgr-summary dd b{display:block;font-size:1.25em;color:var(--sgr-ink)}
.sgr .sgr-w{font-weight:400}
.sgr .sgr-formula{margin:0 0 6px;padding:8px 10px;background:var(--sgr-accent-soft);border-radius:8px;font-size:.9em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.sgr .sgr-tipbox{margin:10px 0;padding:8px 10px;border-left:4px solid var(--sgr-accent);background:var(--sgr-soft);border-radius:0 8px 8px 0;font-size:.92em}
.sgr .sgr-details{margin:0 0 12px}
.sgr .sgr-details summary{cursor:pointer;font-weight:600;padding:10px 0;display:list-item}
.sgr .sgr-tw{overflow-x:auto}
.sgr .sgr-table{width:100%;border-collapse:collapse;font-size:.9em;font-variant-numeric:tabular-nums}
.sgr .sgr-table th,.sgr .sgr-table td{padding:6px 8px;border-bottom:1px solid var(--sgr-line);text-align:left;white-space:nowrap}
.sgr .sgr-table th{font-size:.85em;color:var(--sgr-muted)}
.sgr .sgr-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sgr .sgr-note{margin:14px 0 0}
@media (min-width:600px){
	.sgr{padding:22px}
	.sgr .sgr-row{grid-template-columns:repeat(3,minmax(0,1fr))}
	.sgr .sgr-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
	.sgr .sgr-big{font-size:3.2em}
}
@media (prefers-reduced-motion:reduce){.sgr .sgr-needle,.sgr .sgr-bar span{transition:none}}
