/* Shared layout and control styles for Music Tools pages */
#micBtn { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: #5a4330; color: #fdf6e9; font-weight: 700; cursor: pointer; }
#micBtn.live { background: #5c7a4a; border-color: #7a9a68; }
.card { background: var(--panel, #fffdf8); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0 0 1rem; }
.card h2 { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.cents { font-weight: 800; }
.gauge::before { content: ""; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 2px; margin-left: -1px; background: rgba(253,246,233,0.55); }
.hint { font-size: 0.88rem; color: var(--muted); line-height: 1.45; margin: 0.8rem 0 0; }
.hint.hidden { display: none; }
.lead { color: #4a3c2e; margin: 0 0 1.2rem; line-height: 1.5; }
.needle.live { opacity: 1; }
.page { max-width: 52rem; margin: 0 auto; padding: 28px 20px 80px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
button.act { background: var(--terra); color: #fff; border: none; padding: 9px 16px; border-radius: 10px; font-weight: 700; cursor: pointer; font: inherit; }
button.act:hover { background: var(--terra-soft, #8a5a3a); }
button.ghost { background: #fffdf8; color: var(--ink); border: 1px solid var(--line); padding: 8px 14px; border-radius: 10px; font-weight: 700; cursor: pointer; font: inherit; }
button.ghost:hover { border-color: var(--terra); }
h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); color: var(--terra); margin: 0 0 0.3em; }
label.ctrl { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fffdf8; color: var(--ink); font: inherit; font-weight: 700; }

/* BEGIN DARK (generated by scripts/gen_dark.py; do not edit) */
html[data-theme="dark"] #micBtn {
  border: 1px solid var(--line);
  background: #5a4330;
  color: #fdf6e9;
}
html[data-theme="dark"] #micBtn.live {
  background: #5c7a4a;
  border-color: #7a9a68;
}
html[data-theme="dark"] .card {
  background: var(--panel, #2a210b);
  border: 1px solid var(--line);
}
html[data-theme="dark"] .card h2 {
  color: var(--muted);
}
html[data-theme="dark"] .gauge::before {
  background: rgba(44, 33, 15, 0.55);
}
html[data-theme="dark"] .hint {
  color: var(--muted);
}
html[data-theme="dark"] .lead {
  color: #cdc3b9;
}
html[data-theme="dark"] button.act {
  background: #b5451d;
  color: #ffffff;
  border: none;
}
html[data-theme="dark"] button.act:hover {
  background: #c8663a;
}
html[data-theme="dark"] button.ghost {
  background: #2a210b;
  color: var(--ink);
  border: 1px solid var(--line);
}
html[data-theme="dark"] button.ghost:hover {
  border-color: var(--terra);
}
html[data-theme="dark"] h1 {
  color: var(--terra);
}
html[data-theme="dark"] select {
  border: 1px solid var(--line);
  background: #2a210b;
  color: var(--ink);
}
/* END DARK */
