/* tuner.css : chromatic and instrument tuners. Hard-coded colours only inside the .display panel. */
#tuner .tuner-top { margin-bottom: 4px; }
#tuner .tuner-privacy { margin: 6px 0 10px; }
#tuner .notice { margin: 0 0 12px; }
#tuner .tuner-display { padding: 16px 16px 14px; transition: box-shadow .2s; }
#tuner .tuner-display.confirmed { box-shadow: 0 0 0 3px #4ade80 inset; }
#tuner .tuner-target { min-height: 1.5em; }
#tuner .tuner-note { margin: 4px 0 2px; }
#tuner .tuner-oct { font-size: .42em; margin-left: 2px; color: #a8a29e; }
#tuner .tuner-cents { color: #e7e5e4; }
#tuner .tuner-display[data-state="idle"] .tuner-note,
#tuner .tuner-display[data-state="idle"] .tuner-cents { opacity: .45; }

#tuner .tuner-meter { position: relative; height: 54px; max-width: 560px; margin: 12px auto 4px; }
#tuner .tuner-scale { position: absolute; left: 0; right: 0; top: 0; height: 30px; border-bottom: 2px solid rgba(255,255,255,.25); }
#tuner .tuner-scale i { position: absolute; bottom: 0; width: 1px; height: 8px; background: rgba(255,255,255,.35); transform: translateX(-50%); }
#tuner .tuner-scale i.mj { height: 16px; background: rgba(255,255,255,.6); }
#tuner .tuner-scale b { position: absolute; top: 34px; font: 500 11px/1 var(--sans); color: #a8a29e; transform: translateX(-50%); }
#tuner .tuner-zone { position: absolute; top: 0; height: 30px; left: 47%; width: 6%; background: rgba(74,222,128,.28); border-radius: 3px; }
#tuner .tuner-needle { position: absolute; top: -4px; left: 50%; width: 4px; height: 38px; margin-left: -2px; border-radius: 2px; background: #78716c; transition: left .09s linear, background .15s; }
#tuner .tuner-needle.ok { background: #4ade80; } #tuner .tuner-needle.warn { background: #fbbf24; } #tuner .tuner-needle.bad { background: #f87171; }
#tuner .tuner-says { font: 600 18px/1.3 var(--sans); margin: 8px 0 4px; color: #e7e5e4; min-height: 1.3em; }
#tuner .tuner-says.ok { color: #4ade80; } #tuner .tuner-says.warn { color: #fbbf24; } #tuner .tuner-says.bad { color: #f87171; }

#tuner .tuner-strings-wrap, #tuner .tuner-ref { margin-top: 14px; }
#tuner .tuner-strings { display: grid; gap: 6px; margin-top: 8px; }
#tuner .tuner-str { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; padding: 6px 2px;
  border-radius: 14px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); cursor: pointer; font: inherit; }
#tuner .tuner-str:hover { background: var(--strong); }
#tuner .tuner-str .sn { font-size: 11px; color: var(--muted); line-height: 1; }
#tuner .tuner-str .nn { font: 600 22px/1.15 var(--sans); }
#tuner .tuner-str .nn small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 1px; }
#tuner .tuner-str .ck { position: absolute; top: 4px; right: 7px; font-size: 13px; color: var(--ok); visibility: hidden; }
#tuner .tuner-str.tuned .ck { visibility: visible; }
#tuner .tuner-str.active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
#tuner .tuner-str[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
#tuner .tuner-str[aria-pressed="true"] .sn, #tuner .tuner-str[aria-pressed="true"] .nn small { color: var(--on-primary); opacity: .75; }
#tuner .tuner-notes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
#tuner .tuner-notes .chip { justify-content: center; min-height: 44px; padding: 6px 4px; }
#tuner .tuner-settings { margin-top: 14px; }
#tuner .tuner-settings .chip { min-height: 40px; min-width: 40px; justify-content: center; }
#tuner .tuner-a4 { width: 76px; text-align: center; }
#tuner .tuner-keys { margin: 10px 0 0; }
@media (min-width: 700px) { #tuner .tuner-notes { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
#tuner [data-tuning-wrap] { min-width: 0; max-width: 100%; }
#tuner [data-tuning] { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  #tuner .tuner-top { flex-wrap: nowrap; }
  #tuner .tuner-top .btn.big { flex: none; padding: 12px 20px; min-height: 52px; }
  #tuner [data-tuning-wrap] { flex: 1 1 auto; gap: 4px; }
  #tuner [data-tuning-wrap] select { width: 100%; }
  #tuner .tuner-privacy { margin: 4px 0 8px; font-size: 12px; }
  #tuner .tuner-display { padding: 10px 12px 10px; }
  #tuner .tuner-display .big { font-size: 50px; }
  #tuner .tuner-display .mid { font-size: 22px; }
  #tuner .tuner-meter { height: 46px; margin-top: 8px; }
  #tuner .tuner-says { font-size: 16px; margin: 4px 0 2px; }
  #tuner .tuner-strings-wrap, #tuner .tuner-ref { margin-top: 10px; }
  #tuner .tuner-str { min-height: 56px; }
}
@media (max-width: 640px) { #tuner .tuner-tlabel { display: none; } }
/* Show notes for (transposition) and tuning notes, chromatic tuner pages */
#tuner .tuner-transpose, #tuner .tuner-tnotes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; }
#tuner .tuner-transpose .chip, #tuner .tuner-tnotes .chip { min-height: 44px; justify-content: center; }
#tuner .tuner-tnotes .chip { min-width: 64px; }
#tuner .tuner-tr-note { flex: 1 1 100%; margin: 0; }
@media (max-width: 640px) {
  #tuner .tuner-transpose, #tuner .tuner-tnotes { margin-top: 10px; }
  #tuner .tuner-transpose .chip { padding-left: 10px; padding-right: 10px; font-size: 13px; }
}
