/* SETTINGS: the gear button in the top bar and its pop-up (js/settings.js). Reuses .inspect-dialog / .inspect-body. */
.settings-btn {
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  font: 400 1.2rem/1 var(--font-body); color: var(--ink); background: var(--panel); cursor: pointer; transition: background 0.15s, transform 0.15s;
}
.settings-btn:hover { background: rgba(255, 255, 255, 0.14); transform: rotate(30deg); }
@media (prefers-reduced-motion: reduce) { .settings-btn:hover { transform: none; } }

.settings-dialog { width: min(34rem, calc(100vw - 2rem)); }
.settings-body { text-align: left; }
.settings-body .inspect-title { margin-bottom: 1rem; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, 0.22); }
.settings-row-text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.settings-row-text span { font-size: 0.85rem; color: var(--muted); }
.settings-h { margin: 1.3rem 0 0.5rem; font: 400 1.15rem var(--font-display); }
.settings-body .inspect-title + .settings-h { margin-top: 0; }
.settings-note { margin: 0 0 0.6rem; font-size: 0.85rem; color: var(--muted); }
.settings-stack { display: flex; flex-direction: column; gap: 0.5rem; }
.settings-ctl { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0.5rem; flex-shrink: 0; }
.settings-range { width: 8.5rem; accent-color: var(--accent); cursor: pointer; }
.settings-range:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn.settings-small { padding: 0.35rem 0.9rem; font-size: 0.85rem; border-width: 1.5px; }
.settings-row-text b, .settings-row-text span { overflow-wrap: anywhere; }
.settings-song { color: var(--ink); }
.settings-warn { margin: 0 0 0.8rem; font-weight: 700; color: var(--ink); }
.settings-body .craft-actions { justify-content: flex-end; }
.btn-danger { background: #d9362f; border-color: #d9362f; color: #fff; }
.btn-danger:hover { background: #ec4a43; }
@media (max-width: 560px) { .settings-row { flex-direction: column; align-items: stretch; } .settings-ctl { justify-content: flex-start; } .settings-range { flex: 1; min-width: 6rem; } }
