/* Inner Dive · Scales and Modes, Your Daily Soundtrack · 24 Oct 2026 */
.md-switch, .md-modes, .md-roots { display: flex; flex-wrap: wrap; gap: 8px; }
.md-switch { margin: 6px 0 14px; }
.md-switch button, .md-modes button, .md-roots button { appearance: none; cursor: pointer; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface, #0E1530); color: var(--ink); font: 600 0.88rem/1.2 var(--font-body); text-align: left; }
.md-roots button { min-width: 46px; text-align: center; font-family: var(--font-mono, monospace); }
.md-switch button[aria-pressed="true"], .md-modes button[aria-pressed="true"], .md-roots button[aria-pressed="true"] { border-color: #6FD6FF; background: rgba(111, 214, 255, 0.14); color: #fff; box-shadow: 0 0 12px rgba(111, 214, 255, 0.3); }

.md-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 720px) { .md-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.md-card { appearance: none; cursor: pointer; display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--k) 40%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--k) 12%, transparent), var(--surface, #0E1530)); color: var(--ink); font: inherit; transition: box-shadow .2s ease, border-color .2s ease; }
.md-card[aria-pressed="true"] { border-color: var(--k); box-shadow: 0 0 18px color-mix(in srgb, var(--k) 45%, transparent); }
.md-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.md-top b { font-size: 1.08rem; color: var(--k); }
.md-top small { font: 600 0.74rem var(--font-mono, monospace); color: color-mix(in srgb, var(--ink) 60%, transparent); }
.md-notes { display: flex; flex-wrap: wrap; gap: 5px; }
.md-notes i, .md-degs i { font-style: normal; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); font: 700 0.82rem/1 var(--font-mono, monospace); transition: all .15s ease; }
.md-notes i.ch, .md-degs i.alt, .md-ex-notes span.ch { border-color: var(--k, #F2B84B); color: var(--k, #F2B84B); }
.md-notes i.on, .md-degs i.on, .md-ex-notes span.on { background: var(--k, #6FD6FF); border-color: var(--k, #6FD6FF); color: #0A0F24; box-shadow: 0 0 12px var(--k, #6FD6FF); }
.md-mood { font-size: 0.9rem; color: color-mix(in srgb, var(--ink) 75%, transparent); }

.md-table td:first-child b { color: var(--k); }
.md-table td { white-space: nowrap; }

.md-forms { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.md-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface, #0E1530); }
.md-form b { min-width: 104px; color: var(--k); }
.md-form small { color: color-mix(in srgb, var(--ink) 65%, transparent); font-size: 0.82rem; }
.md-degs { display: flex; flex-wrap: wrap; gap: 4px; }

.md-ladder { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface, #0E1530); }
.md-ladder .md-ladder-play { flex: none; width: 46px; height: 46px; padding: 0; justify-content: center; }
.md-ladder ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.md-ladder li { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--k) 45%, transparent); transition: all .2s ease; }
.md-ladder li b { font-size: 0.86rem; color: var(--k); }
.md-ladder li span { font: 600 0.72rem var(--font-mono, monospace); color: color-mix(in srgb, var(--ink) 60%, transparent); }
.md-ladder li.on { background: color-mix(in srgb, var(--k) 20%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--k) 50%, transparent); }

.md-more, .md-styles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 720px) { .md-more, .md-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.md-x { appearance: none; cursor: pointer; display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--k) 35%, var(--line)); background: var(--surface, #0E1530); color: var(--ink); font: inherit; }
.md-x b { color: var(--k); }
.md-x small { font-size: 0.86rem; color: color-mix(in srgb, var(--ink) 72%, transparent); }
.md-x[aria-pressed="true"] { border-color: var(--k); box-shadow: 0 0 16px color-mix(in srgb, var(--k) 40%, transparent); }
.md-style { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); border-left: 3px solid var(--k); background: var(--surface, #0E1530); }
.md-style b { color: var(--k); }
.md-style span { font-size: 0.92rem; }
.md-style small { font-size: 0.84rem; color: color-mix(in srgb, var(--ink) 62%, transparent); }

.md-steps { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.md-steps li::marker { color: #F2B84B; font-weight: 700; }

.md-ex { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface, #0E1530); }
.md-ex-out { display: flex; flex-direction: column; gap: 12px; }
.md-ex-notes { display: flex; flex-wrap: wrap; gap: 6px; --k: #F2B84B; }
.md-ex-notes span { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 50px; padding: 8px 6px; border-radius: 10px; border: 1px solid var(--line); transition: all .15s ease; }
.md-ex-notes b { font: 700 0.95rem var(--font-mono, monospace); }
.md-ex-notes small { font: 600 0.7rem var(--font-mono, monospace); opacity: 0.7; }
.md-ex-actions { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.md-ex-actions .md-ex-play { width: 46px; height: 46px; padding: 0; justify-content: center; }
.md-ex-chords { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.md-chord { appearance: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; }
.md-chord b { font: 700 0.95rem var(--font-mono, monospace); }
.md-chord small { font: 600 0.72rem var(--font-mono, monospace); color: #F2B84B; }
.md-chord.on { border-color: #6FD6FF; background: rgba(111, 214, 255, 0.15); box-shadow: 0 0 14px rgba(111, 214, 255, 0.45); }

/* Your Daily Soundtrack */
.ds-day { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 720px) { .ds-day { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ds-slot { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--k) 40%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--k) 12%, transparent), var(--surface, #0E1530)); }
.ds-slot .ds-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ds-slot b { color: var(--k); font-size: 1.02rem; }
.ds-slot .ds-time { font: 600 0.74rem var(--font-mono, monospace); color: color-mix(in srgb, var(--ink) 60%, transparent); }
.ds-slot p { margin: 0; font-size: 0.92rem; }
.ds-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-tags span { padding: 4px 9px; border-radius: 99px; font: 600 0.74rem var(--font-mono, monospace); border: 1px solid color-mix(in srgb, var(--k) 50%, transparent); color: var(--k); }
.ds-slot .cym-play { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; }
.ds-tempo { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface, #0E1530); }
.ds-tempo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ds-tempo input[type="range"] { flex: 1; min-width: 160px; accent-color: #6FD6FF; }
.ds-bpm { font: 700 1.6rem var(--font-mono, monospace); color: #6FD6FF; min-width: 92px; }
.ds-bpm small { font-size: 0.8rem; opacity: 0.7; margin-left: 4px; }
.ds-feel { margin: 0; font-weight: 600; }
.ds-dot { width: 18px; height: 18px; border-radius: 50%; background: #6FD6FF; opacity: 0.25; transition: opacity .08s ease, transform .08s ease; }
.ds-dot.on { opacity: 1; transform: scale(1.25); box-shadow: 0 0 14px #6FD6FF; }
.ds-tempo .ds-tempo-play { flex: none; width: 46px; height: 46px; padding: 0; justify-content: center; }
.ds-slot .ds-play span { font: 600 0.9rem/1 var(--font-body); }
