/* Hridaya Kirtan Companion — calm, contemplative, on-brand.
   Official Hridaya Core Colors:
   Serenity #F9F4EA · Calm Sand #CDAD85 · Terracotta #C47457 · Gray Teal #79939D
   Quiet Blue #5D748C · Deep Blueberry #2D3352 · Vital Rose #DEB1A1 · Soft Pink #EBD0C6
   Warm cream ground, deep-blueberry text, terracotta as the devotional heart-glow.
   Default: light. A blueberry night mode is offered for deep meditation. */

:root {
  --bg: #f9f4ea;            /* Serenity */
  --bg-2: #ebd0c6;          /* Soft Pink — a warm dawn tint */
  --ink: #2d3352;           /* Deep Blueberry */
  --ink-soft: #5d748c;      /* Quiet Blue */
  --ink-faint: #79939d;     /* Gray Teal */
  --brand: #c47457;         /* Terracotta */
  --brand-deep: #a85a40;
  --brand-soft: #ebd0c6;    /* Soft Pink */
  --line-active: #2d3352;
  --glow: #deb1a1;          /* Vital Rose */
  --glow-warm: #c47457;     /* Terracotta heart */
  --on-brand: #f9f4ea;      /* text on terracotta */
  --panel: rgba(196,116,87,0.07);
  --panel-line: rgba(45,51,82,0.14);
  /* Serif chosen for CORRECT IAST diacritic placement (the dot-below on ṃ ḥ ṇ,
     macrons on ā ī ū). Measured dot-offset under 'm': Cambria 0.6px, Georgia
     1.2px, Hoefler Text good — all effectively centred. Palatino Linotype
     (54px) and Constantia (28px) push it right, so they are deliberately NOT
     used. Georgia is present on both Windows and macOS, guaranteeing a correct
     final fallback everywhere. */
  --serif: "Cambria", "Hoefler Text", Georgia, "Times New Roman", serif;
  --sans: "Mulish", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

:root[data-theme="dark"] {
  --bg: #2d3352;            /* Deep Blueberry night */
  --bg-2: #3b426a;
  --ink: #f9f4ea;          /* Serenity */
  --ink-soft: #cdad85;     /* Calm Sand */
  --ink-faint: #79939d;    /* Gray Teal */
  --brand: #d98a6a;        /* Terracotta, lifted for glow on dark */
  --brand-deep: #c47457;
  --brand-soft: rgba(217,138,106,0.16);
  --line-active: #f9f4ea;
  --glow: #deb1a1;
  --glow-warm: #d98a6a;
  --on-brand: #2d3352;
  --panel: rgba(255,255,255,0.05);
  --panel-line: rgba(249,244,234,0.12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* honour the hidden attribute even on flex/grid elements */
/* the build number: big, bold and ALWAYS on top (also over the full-screen editing window) */
.app-ver { position: fixed; right: 10px; bottom: 8px; z-index: 200; font-size: 1.05rem; font-weight: 800; font-family: var(--sans);
  color: var(--brand-deep); background: color-mix(in srgb, var(--bg) 85%, transparent); border: 1.5px solid color-mix(in srgb, var(--brand) 55%, transparent);
  border-radius: 10px; padding: 3px 10px; pointer-events: none; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: radial-gradient(120% 90% at 50% -10%, var(--bg-2), var(--bg) 60%);
  min-height: 100dvh;
  overflow-x: hidden;
  transition: background .8s var(--ease), color .6s var(--ease);
  -webkit-font-smoothing: antialiased;
}

/* ---- Breathing aura: a warm terracotta heart within a rose field ---- */
.aura {
  position: fixed; inset: 0; z-index: 0;
  display: grid; justify-items: center; align-items: start;
  pointer-events: none; overflow: hidden;
}
/* A warm heart-glow anchored HIGH (behind the title/mantra) and large + very soft, so its
   edge fades out well above the controls: no hard colour band cutting across the lower page,
   and the gentle breathing no longer reads as a moving line. */
.aura-core {
  width: min(120vw, 720px); aspect-ratio: 1; margin-top: -28vh; border-radius: 50%;
  background: radial-gradient(circle at 50% 46%,
    color-mix(in srgb, var(--glow-warm) 40%, transparent),
    color-mix(in srgb, var(--glow) 26%, transparent) 44%,
    transparent 68%);
  filter: blur(60px);
  opacity: .40;
  animation: breathe 12s var(--ease) infinite;
  will-change: transform, opacity;
}
@keyframes breathe {
  0%,100% { transform: scale(.94); opacity: .30; }
  50%     { transform: scale(1.04); opacity: .42; }
}
body[data-mode="meditative"] .aura-core { animation-duration: 15s; opacity: .5; }

/* ---- Layout ---- */
.stage {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
  padding: clamp(16px, 4vw, 30px);
  padding-bottom: 22px;
  display: flex; flex-direction: column; gap: clamp(12px, 2vh, 22px);
  min-height: 100dvh;         /* fill the screen, but allow scrolling for lower content */
}

.masthead { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.titles { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.titles h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 5vw, 2.1rem); margin: 0; letter-spacing: .01em; color: var(--ink); }
.subtitle { margin: 0; color: var(--ink-faint); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.ghost-btn {
  background: none; border: 1px solid var(--panel-line); color: var(--ink-soft);
  width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; cursor: pointer;
  transition: color .3s, border-color .3s, transform .3s;
}
.ghost-btn:hover { color: var(--brand); border-color: var(--brand); transform: rotate(20deg); }
.mast-actions { display: flex; gap: 10px; }

/* ---- Correction mode ---- */
body.editing #editToggle { color: var(--on-brand); background: linear-gradient(180deg, var(--brand), var(--brand-deep)); border-color: transparent; }
.edit-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between;
  background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: 14px; padding: 12px 16px; animation: fadein .3s var(--ease); }
.edit-msg { font-size: .82rem; color: var(--ink); line-height: 1.5; flex: 1 1 260px; }
.edit-msg b { color: var(--brand-deep); }
.edit-actions { display: flex; align-items: center; gap: 12px; }
.save-btn { cursor: pointer; border: none; border-radius: 30px; padding: 9px 22px; font-family: var(--sans); font-size: .86rem; font-weight: 600;
  color: var(--on-brand); background: linear-gradient(180deg, var(--brand), var(--brand-deep)); box-shadow: 0 3px 16px color-mix(in srgb, var(--brand) 30%, transparent); transition: transform .2s var(--ease); }
.save-btn:hover { transform: scale(1.04); }
.save-status { font-size: .8rem; font-style: italic; color: var(--ink-soft); }
.save-status.dirty { color: var(--brand-deep); }
.save-status.ok { color: var(--ink-faint); }

/* Editable fields get a soft dashed cue only while editing */
body.editing .li-iast[contenteditable], body.editing .li-tr[contenteditable],
body.editing .ml-label[contenteditable], body.editing .ml-notes[contenteditable] {
  outline: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 3px; border-radius: 4px; }
body.editing .li-iast:focus, body.editing .li-tr:focus,
body.editing .ml-label:focus, body.editing .ml-notes:focus { outline-style: solid; outline-color: var(--brand); }
/* While editing, every line always shows BOTH boxes — words and translation — even when one is still empty */
body.editing .lyrics li .li-iast, body.editing .lyrics li .li-tr { display: block; min-height: 1.4em; margin-top: 6px; }
/* the grey hint in an empty box is drawn here — it is NOT text, so it disappears as you type and a box emptied by hand never collapses */
body.editing .lyrics li .li-iast:empty::before, body.editing .lyrics li .li-tr:empty::before {
  content: attr(data-ph); color: var(--ink-faint); font-style: italic; opacity: .8; pointer-events: none; }

/* Per-line editing controls (timing / delete) */
.li-edit { display: none; align-items: center; gap: 8px; margin-top: 8px; }
body.editing .lyrics li .li-edit { display: flex; }
.li-now { cursor: pointer; border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); background: none; color: var(--brand-deep);
  border-radius: 20px; padding: 4px 12px; font-size: .74rem; white-space: nowrap; }
.li-now:hover { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.li-t { width: 68px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--panel-line); background: var(--bg); color: var(--ink); font-size: .78rem; font-variant-numeric: tabular-nums; }
.li-sec { color: var(--ink-faint); font-size: .74rem; margin-left: -4px; }
.li-ins { cursor: pointer; margin-left: auto; border: 1px dashed color-mix(in srgb, var(--brand) 55%, transparent); background: none; color: var(--brand-deep);
  border-radius: 20px; padding: 4px 12px; font-size: .74rem; white-space: nowrap; }
.li-ins:hover { background: color-mix(in srgb, var(--brand) 12%, transparent); border-style: solid; }
/* a line that was just inserted: a soft glow so you see where it landed */
.lyrics li.fresh { background: color-mix(in srgb, var(--brand) 14%, transparent); box-shadow: inset 3px 0 0 var(--brand); border-radius: 10px; animation: fresh-fade 6s ease-out forwards; }
@keyframes fresh-fade { 0%, 60% { background: color-mix(in srgb, var(--brand) 14%, transparent); } 100% { background: transparent; box-shadow: none; } }
.li-del { cursor: pointer; background: none; border: none; color: var(--ink-faint); font-size: .95rem; padding: 2px 8px; border-radius: 8px; }
.li-del:hover { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.add-line { display: block; width: 100%; margin: 6px 0 2px; cursor: pointer; background: none; border: 1px dashed color-mix(in srgb, var(--brand) 40%, transparent);
  color: var(--brand-deep); border-radius: 12px; padding: 10px; font-size: .8rem; font-family: var(--sans); }
.add-line:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }

/* ---- Previous / Next song ---- */
.nav-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: none; border: 1px solid var(--panel-line); color: var(--ink-soft); transition: color .25s, border-color .25s, transform .2s, opacity .25s; }
.nav-btn svg { width: 20px; height: 20px; fill: currentColor; }
.nav-btn:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 50%, transparent); transform: scale(1.06); }
.nav-btn:disabled { opacity: .28; cursor: default; pointer-events: none; }

/* ---- Chord sheet: chord symbols directly above the words ---- */
.chord-chart { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.chord-chart li { display: block; }
.chd-lines { overflow-x: auto; }
body.editing .chord-chart li { display: flex; align-items: flex-start; gap: 8px; }
body.editing .chd-lines { flex: 1; min-width: 0; }
.chd-chords, .chd-words { margin: 0; font-family: "Cascadia Code", "Consolas", "SFMono-Regular", ui-monospace, monospace; white-space: pre; line-height: 1.35; }
.chd-chords { color: var(--brand-deep); font-weight: 600; font-size: .9rem; min-height: 1.2em; letter-spacing: -.01em; }
.chd-words { color: var(--ink); font-size: .92rem; }
body.editing .chord-chart .chd-chords[contenteditable], body.editing .chord-chart .chd-words[contenteditable] {
  outline: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 3px; }
.chd-del { flex: none; cursor: pointer; background: none; border: none; color: var(--ink-faint); font-size: .95rem; padding: 2px 6px; line-height: 1; }
.chd-del:hover { color: var(--brand); }
/* Correction-mode chord tools (hint + Start-from-lyrics / Add) */
.chd-tools { margin-top: 14px; }
.chd-hint { color: var(--ink-soft); font-size: .8rem; line-height: 1.5; margin: 0 0 8px; }
.chd-tool-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.composer-note { color: var(--ink-faint); font-size: .78rem; font-style: italic; margin: 16px 0 2px; }

/* In-place timing bar — sits at the top of the lyrics box (no fullscreen) */
.time-bar { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--brand) 15%, var(--bg)); border: 1px solid color-mix(in srgb, var(--brand) 38%, transparent);
  border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; }
.tb-label { font-size: .82rem; color: var(--ink); flex: 1 1 200px; }
.tb-label b { color: var(--brand-deep); }
.tb-tap { cursor: pointer; border: none; border-radius: 30px; padding: 9px 20px; font-weight: 600; font-family: var(--sans); font-size: .9rem;
  color: var(--on-brand); background: linear-gradient(180deg, var(--brand), var(--brand-deep)); box-shadow: 0 3px 14px color-mix(in srgb, var(--brand) 30%, transparent); transition: transform .08s; }
.tb-tap:active { transform: scale(.96); }
.tb-mini { cursor: pointer; background: none; border: 1px solid var(--panel-line); color: var(--ink-soft); border-radius: 20px; padding: 8px 14px; font-size: .82rem; font-family: var(--sans); }
.tb-mini:hover { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.tb-saved { font-size: .76rem; color: var(--ink-faint); font-style: italic; }
.tb-transport { display: flex; align-items: center; gap: 6px; }
.tb-time { font-variant-numeric: tabular-nums; font-size: .84rem; color: var(--ink-soft); min-width: 42px; }
.tb-play { min-width: 44px; }
.tb-seekrow { order: 99; flex: 1 1 100%; display: flex; align-items: center; gap: 10px; }
.tb-seek { flex: 1 1 auto; min-width: 0; height: 22px; cursor: pointer; accent-color: var(--brand); }
.tb-play .ic-pause { display: none; }
body.playing .tb-play .ic-play { display: none; }
body.playing .tb-play .ic-pause { display: inline; }
body:not(.timing) .only-timing { display: none !important; }
body.timing .only-idle { display: none !important; }

/* ---- the big editing window: the lyric list takes the whole screen ---- */
body.edit-full { overflow: hidden; }
body.edit-full .lyrics-wrap { position: fixed; inset: 0; z-index: 60; border: none; border-radius: 0; background: var(--bg);
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
body.edit-full .lyrics-head { flex: none; }
body.edit-full .time-bar { flex: none; }
body.edit-full .lyrics { max-height: none; flex: 1 1 auto; min-height: 0; overflow-y: auto; font-size: 1.15rem; padding: 8px 6px 40vh; }
body.edit-full .lyrics li { padding: 12px 16px; }
body.edit-full .notes-pane { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
body.edit-full .add-line { flex: none; }
/* the one line currently being timed */
.lyrics li.to-time { background: color-mix(in srgb, var(--brand) 24%, transparent); box-shadow: inset 3px 0 0 var(--brand); }
.lyrics li.to-time .li-iast { color: var(--brand-deep); font-weight: 600; }

/* ---- Song library ---- */
.lib-panel { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 16px; padding: 10px 8px; animation: fadein .3s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lib-head { margin: 4px 10px 8px; color: var(--ink-faint); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.lib-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lib-item { padding: 10px 14px; border-radius: 12px; cursor: pointer; transition: background .25s var(--ease); display: flex; flex-direction: column; gap: 2px; }
.lib-item:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.lib-item.current { background: color-mix(in srgb, var(--brand) 16%, transparent); }
.lib-item .lib-title { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.lib-item.current .lib-title { color: var(--brand-deep); }
.lib-item .lib-sub { font-size: .74rem; color: var(--ink-faint); }

/* ---- The central mantra ---- */
.mantra { text-align: center; padding: clamp(10px, 2.5vh, 26px) 6px; flex: none; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.mantra-line {
  font-family: var(--serif); font-size: clamp(1.4rem, 5.2vw, 2.1rem); line-height: 1.24;
  margin: 0; color: var(--line-active);
  text-shadow: 0 0 32px color-mix(in srgb, var(--glow-warm) 30%, transparent);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.mantra-line .word { transition: color .25s var(--ease), opacity .25s var(--ease); }
.mantra-line .word.sung { color: var(--brand); }
.mantra-tr { margin: 0; color: var(--ink-soft); font-size: clamp(.9rem, 2.6vw, 1.02rem); font-style: italic; max-width: 32ch; margin-inline: auto; }
.mantra-line.fade { opacity: 0; transform: translateY(6px); }

/* ---- Reminder (meditative) ---- */
.reminder {
  text-align: center; font-family: var(--serif); font-style: italic;
  color: var(--brand); font-size: 1.05rem; margin: 0; min-height: 0;
  opacity: 0; transition: opacity 1.6s var(--ease); letter-spacing: .01em;
}
body[data-mode="meditative"] .reminder { min-height: 1.4em; }
.reminder.show { opacity: .95; }

/* ---- Lyrics ---- */
.lyrics-wrap { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 18px; padding: 6px 4px 10px; transition: opacity .6s var(--ease); flex: none; display: flex; flex-direction: column; }
.lyrics-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 4px; flex: none; }
.lyrics-label { color: var(--ink-faint); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.switch { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: .8rem; cursor: pointer; user-select: none; }
.switch input { accent-color: var(--brand); }
.head-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

/* Single-button notation selector (opens Sargam / Western / Chords) */
.notation-drop { position: relative; }
.notation-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: .78rem;
  color: var(--on-brand); background: linear-gradient(180deg, var(--brand), var(--brand-deep)); border: none;
  border-radius: 20px; padding: 6px 14px; box-shadow: 0 2px 10px color-mix(in srgb, var(--brand) 26%, transparent); }
.nd-caret { font-size: .7rem; transition: transform .25s var(--ease); }
.notation-btn[aria-expanded="true"] .nd-caret { transform: rotate(180deg); }
.notation-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; display: flex; flex-direction: column; gap: 2px;
  background: var(--bg); border: 1px solid var(--panel-line); border-radius: 12px; padding: 4px; min-width: 128px;
  box-shadow: 0 10px 30px rgba(0,0,0,.16); animation: fadein .18s var(--ease); }
.nd-opt { cursor: pointer; text-align: left; background: none; border: none; color: var(--ink-soft); font-family: var(--sans); font-size: .82rem;
  padding: 8px 12px; border-radius: 8px; transition: background .2s, color .2s; }
.nd-opt:hover { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--ink); }
.nd-opt.active { color: var(--brand-deep); font-weight: 600; }

/* Notes pane lives in the same box as the lyrics (toggled by the Notes switch) */
.notes-pane { padding: 4px 12px 8px; max-height: 34vh; overflow-y: auto; }
.notes-key { margin: 2px 0 12px; color: var(--brand-deep); font-style: italic; font-size: .86rem; }
.lyrics { list-style: none; margin: 0; padding: 4px 8px 6px; max-height: 34vh; overflow-y: auto; }
.lyrics li { padding: 9px 14px; border-radius: 12px; cursor: pointer; transition: background .3s, color .3s, opacity .4s; color: var(--ink-soft); }
.lyrics li .li-iast { font-family: var(--serif); font-size: 1.06rem; }
.lyrics li .li-tr { display: block; font-size: .82rem; color: var(--ink-faint); margin-top: 2px; }
/* chord row — sits directly above the mantra, shown only when "Chords" is on (monospace = aligned) */
.ly-chords { display: none; margin: 0 0 1px; font-family: "Cascadia Code","Consolas","SFMono-Regular",ui-monospace,monospace; white-space: pre; overflow-x: auto; color: var(--brand-deep); font-weight: 600; font-size: .8rem; line-height: 1.25; letter-spacing: -.01em; }
body.show-chords .lyrics .ly-chords { display: block; }
body.show-chords:not(.editing) .lyrics .ly-chords:empty { display: none; }   /* no gap for lines without a chord */
body.show-chords .lyrics li.active .ly-chords { color: var(--brand); }
body.editing.show-chords .lyrics .ly-chords { min-height: 1.1em; }           /* room to click, even when empty */
body.editing.show-chords .lyrics .ly-chords[contenteditable] { outline: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 3px; }
body.editing.show-chords .lyrics .ly-chords:empty::before { content: attr(data-ph); color: var(--ink-faint); font-weight: 400; }
.lyrics li:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.lyrics li.active { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--ink); }
.lyrics li.active .li-iast { color: var(--line-active); }
body.hide-tr .li-tr, body.hide-tr .mantra-tr { display: none !important; }
body:not(.editing) .lyrics .li-tr:empty { display: none; }  /* no gap for lines without a translation */

/* ---- Music (play & learn): collapsible card with a notation switch ---- */
.music-wrap { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 18px; overflow: hidden; flex: none; }
.music-head {
  width: 100%; display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: none; border: none; padding: 12px 16px; color: var(--ink-soft);
  font-family: var(--sans); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
}
.music-head .music-label { font-weight: 600; }
.music-key { text-transform: none; letter-spacing: .01em; color: var(--brand-deep); font-style: italic; font-size: .82rem; }
.music-caret { margin-left: auto; transition: transform .3s var(--ease); font-size: .9rem; }
.music-head[aria-expanded="true"] .music-caret { transform: rotate(180deg); }
.music-body { padding: 4px 14px 14px; animation: fadein .3s var(--ease); }

.notation-switch { display: inline-flex; padding: 3px; gap: 3px; border-radius: 30px; background: color-mix(in srgb, var(--brand) 8%, transparent); border: 1px solid var(--panel-line); margin: 2px 0 12px; }
.nsw {
  cursor: pointer; border: none; background: none; color: var(--ink-soft);
  padding: 7px 16px; border-radius: 26px; font-size: .8rem; font-family: var(--sans);
  transition: all .25s var(--ease);
}
.nsw:hover { color: var(--ink); }
.nsw.active { background: linear-gradient(180deg, var(--brand), var(--brand-deep)); color: var(--on-brand); box-shadow: 0 3px 14px color-mix(in srgb, var(--brand) 28%, transparent); }

.music-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.music-lines li { display: flex; flex-direction: column; gap: 3px; }
.ml-label { font-family: var(--serif); font-size: .98rem; color: var(--ink); }
.ml-notes { font-family: "Cascadia Code", "Consolas", "SFMono-Regular", ui-monospace, monospace; font-size: .96rem; color: var(--brand-deep); letter-spacing: .02em; line-height: 1.5; }
.ml-capo .ml-notes { font-family: var(--sans); color: var(--ink-soft); font-size: .82rem; background: color-mix(in srgb, var(--brand) 9%, transparent); border-radius: 10px; padding: 8px 12px; display: block; }
.music-note { color: var(--ink-faint); font-size: .76rem; font-style: italic; margin: 12px 0 0; line-height: 1.5; }

/* Meditative mode simplifies the screen */
body[data-mode="meditative"] .lyrics-wrap { opacity: .18; }
body[data-mode="meditative"] .lyrics-wrap:hover { opacity: 1; }
body[data-mode="meditative"] .music-wrap { opacity: .18; }
body[data-mode="meditative"] .music-wrap:hover { opacity: 1; }
body[data-mode="meditative"] .subtitle { opacity: 0; }

/* ---- Console ---- */
.console { flex: none; display: flex; flex-direction: column; gap: 14px; }
.transport { display: flex; align-items: center; gap: 16px; }
.play-btn {
  flex: none; width: 62px; height: 62px; border-radius: 50%; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--brand) 50%, transparent);
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%);
  color: var(--brand); display: grid; place-items: center;
  transition: transform .25s var(--ease), box-shadow .4s, border-color .3s;
}
.play-btn:hover { transform: scale(1.05); box-shadow: 0 0 30px color-mix(in srgb, var(--brand) 32%, transparent); }
.play-btn svg { width: 26px; height: 26px; fill: currentColor; }
.play-btn .ic-pause { display: none; }
body.playing .play-btn .ic-play { display: none; }
body.playing .play-btn .ic-pause { display: block; }
body.loading .play-btn { animation: pulse 1.1s ease-in-out infinite; }  /* song still loading */

/* Quiet caption under the play bar while a song is loading (button pulses). */
.load-note { display: none; }
body.loading .load-note { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left; margin: 2px 0; animation: fadein .4s var(--ease); }
.load-art { flex: none; width: 54px; height: 54px; }
.load-msg { margin: 0; color: var(--brand-deep); font-size: .9rem; line-height: 1.45; }
.load-msg span { color: var(--ink-soft); font-size: .82rem; font-style: italic; }
.load-svg { width: 100%; height: 100%; display: block; animation: breathe 6s var(--ease) infinite; }
/* a living flame for the loading screen — gently flickers & sways from its base, like a real flame */
.flame-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.flame-body { transform-origin: 60px 152px; animation: flicker 2.6s ease-in-out infinite; }
.flame-inner { transform-origin: 60px 146px; animation: flicker-core 1.5s ease-in-out infinite; }
@keyframes flicker {
  0%,100% { transform: scale(1,1) rotate(0deg) translateX(0); }
  20%     { transform: scale(.955,1.06) rotate(-2.2deg) translateX(-1.6px); }
  40%     { transform: scale(1.035,.965) rotate(1.6deg) translateX(1.6px); }
  60%     { transform: scale(.975,1.04) rotate(-1.1deg) translateX(-1px); }
  80%     { transform: scale(1.02,.99) rotate(.8deg) translateX(.8px); }
}
@keyframes flicker-core { 0%,100% { opacity: .72; transform: scaleY(1); } 50% { opacity: .98; transform: scaleY(1.12); } }

.scrub { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.times { display: flex; justify-content: space-between; color: var(--ink-faint); font-size: .74rem; font-variant-numeric: tabular-nums; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--panel-line); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px color-mix(in srgb, var(--brand) 50%, transparent); }
input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: none; border-radius: 50%; background: var(--brand); }

/* modes (left) + faders (right), side by side to free vertical space */
.controls-row { display: flex; gap: 16px; align-items: stretch; }
.modes { flex: 1 1 52%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
@media (max-width: 470px) { .controls-row { flex-direction: column; gap: 12px; } }
.mode {
  padding: 11px 8px; border-radius: 12px; cursor: pointer; font-size: .82rem;
  background: var(--panel); border: 1px solid var(--panel-line); color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.mode:hover { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 48%, transparent); }
.mode.active { color: var(--on-brand); background: linear-gradient(180deg, var(--brand), var(--brand-deep)); border-color: transparent; font-weight: 600; box-shadow: 0 4px 20px color-mix(in srgb, var(--brand) 30%, transparent); }
.mode-hint { text-align: center; color: var(--ink-soft); font-size: .84rem; font-style: italic; margin: -6px 0 0; min-height: 1.3em; }

.faders { flex: 1 1 48%; display: flex; flex-direction: column; gap: 12px; justify-content: center; }

/* Record row: the record button sits at the FRONT, then a hint (idle) or timer + level meter (recording) */
.record-row { display: flex; align-items: center; gap: 14px; }
.rec-info { flex: 1; min-width: 0; }
.rec-status { display: none; align-items: center; gap: 12px; }
body.recording .rec-status { display: flex; }
body.recording .rec-hint { display: none; }
.rec-live-label { color: var(--brand-deep); font-weight: 600; font-size: .84rem; letter-spacing: .02em; }
.rec-timer { color: var(--ink); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.meter { flex: 1; height: 9px; border-radius: 6px; background: var(--panel-line); overflow: hidden; }
.meter-fill { height: 100%; width: 0%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--brand-deep)); transition: width .09s linear; }
.fader-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.fader-top label { font-size: .9rem; }
.fader-top span { color: var(--ink-faint); font-size: .78rem; font-variant-numeric: tabular-nums; }
.fader-sub { color: var(--ink-faint); font-size: .68rem; letter-spacing: .03em; margin-top: 5px; display: block; }

/* ---- Hear yourself (practice recording) ---- */
.practice { display: flex; flex-direction: column; gap: 8px; margin-top: -6px; }
/* round record button, sits in the play bar next to play/seek */
.rec-btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--panel-line);
  transition: border-color .3s, transform .25s var(--ease), box-shadow .3s;
}
.rec-btn:hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent); transform: scale(1.05); }
.rec-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--brand); transition: all .3s; }
body.recording .rec-btn { border-color: var(--brand); box-shadow: 0 0 20px color-mix(in srgb, var(--brand) 30%, transparent); }
body.recording .rec-dot { border-radius: 3px; animation: pulse 1.1s ease-in-out infinite; }  /* dot → square while recording */
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .55; } }
.rec-hint { color: var(--ink-faint); font-size: .74rem; font-style: italic; }

.takes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.take {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 14px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--panel-line);
}
.take-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.take .take-date { color: var(--ink-soft); font-size: .8rem; margin-right: auto; }
.take .take-actions { display: inline-flex; gap: 8px; }
.take .take-btn {
  cursor: pointer; background: none; padding: 6px 14px; font-size: .78rem; border-radius: 30px;
  border: 1px solid var(--panel-line); color: var(--ink-soft); transition: all .25s var(--ease);
}
.take .take-btn:hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent); color: var(--ink); }
.take .take-btn.on { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.take .take-del { cursor: pointer; background: none; border: none; color: var(--ink-faint); font-size: .95rem; padding: 2px 6px; }
.take .take-del:hover { color: var(--brand); }
.take.playing { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }

/* Scrub bar for a recording — appears only while that take is playing */
.take-scrub { display: none; }
.take.playing .take-scrub { display: block; animation: fadein .25s var(--ease); }
.take-transport { display: flex; align-items: center; gap: 10px; }
.take-seek { flex: 1; width: 100%; }
.take-nav {
  flex: none; cursor: pointer; background: none; border: 1px solid var(--panel-line);
  color: var(--ink-soft); border-radius: 20px; padding: 5px 11px; font-size: .74rem;
  font-variant-numeric: tabular-nums; white-space: nowrap; transition: border-color .25s, color .25s;
}
.take-nav:hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent); color: var(--ink); }
.take-times { display: flex; justify-content: space-between; color: var(--ink-faint); font-size: .72rem; font-variant-numeric: tabular-nums; margin-top: 4px; }
/* "it's a recorder" — a clear heading + a little mic tag on each take */
.takes-head { margin: 2px 2px 4px; font-size: .82rem; font-weight: 600; color: var(--brand-deep); }
.takes-sub { font-weight: 400; color: var(--ink-faint); }
.take-tag { font-size: .72rem; font-weight: 600; color: var(--brand-deep); background: color-mix(in srgb, var(--brand) 12%, transparent); border-radius: 20px; padding: 2px 9px; }

/* ---- Fullscreen karaoke / singing view (tap the big mantra to enter) ---- */
.mantra-line { cursor: pointer; }
body.karaoke-open, body.timing-open { overflow: hidden; }
.karaoke {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(90% 70% at 50% 38%, #3b426a, #2d3352 72%);
  color: #f9f4ea; padding: 6vh 6vw; text-align: center; animation: fadein .45s var(--ease);
}
.k-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4vh; width: 100%; }
.k-line { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 8.5vw, 5rem); line-height: 1.18; margin: 0; max-width: 20ch;
  color: #f9f4ea; text-shadow: 0 0 55px color-mix(in srgb, #c47457 45%, transparent); transition: opacity .4s var(--ease); }
.k-line.fade { opacity: 0; }
.k-next { font-family: var(--serif); font-size: clamp(1rem, 3.4vw, 1.9rem); color: #cdad85; opacity: .5; margin: 0; max-width: 26ch; }
.k-exit { position: absolute; top: max(18px, 3vh); right: max(20px, 3vw); width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(249,244,234,.18); color: #f9f4ea; font-size: 1.05rem; cursor: pointer; opacity: .55; transition: opacity .25s; }
.k-exit:hover { opacity: 1; }
.k-bar { width: min(680px, 92vw); display: flex; align-items: center; gap: 16px; padding-bottom: max(20px, 3vh); opacity: .62; transition: opacity .3s; }
.karaoke:hover .k-bar, .k-bar:focus-within, .k-bar:active { opacity: 1; }
.k-play { flex: none; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: none; border: 1px solid rgba(249,244,234,.3); color: #f9f4ea; transition: transform .2s var(--ease); }
.k-play:hover { transform: scale(1.06); }
.k-play svg { width: 24px; height: 24px; fill: currentColor; }
.k-play .ic-pause { display: none; }
body.playing .k-play .ic-play { display: none; }
body.playing .k-play .ic-pause { display: block; }
.k-seek { flex: 1; background: rgba(249,244,234,.22); }
.k-seek::-webkit-slider-thumb { background: #cdad85; box-shadow: 0 0 10px rgba(205,173,133,.5); }
.k-seek::-moz-range-thumb { background: #cdad85; }

/* ---- Immersive Meditative view (the mantra is internalized: only the deity & the chant) ---- */
body.meditative-open { overflow: hidden; }
.meditative {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #12151f; color: #f9f4ea; animation: fadein .9s var(--ease); text-align: center; overflow: hidden;
}
/* a blurred, darkened copy of the current image fills the whole screen — no black bars behind a portrait */
.m-bg { position: absolute; inset: -6%; z-index: 0; background-size: cover; background-position: center; filter: blur(36px) brightness(.5); transform: scale(1.08); }
.m-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.28), rgba(0,0,0,.08) 42%, rgba(0,0,0,.62)); }
.m-stage { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 0; padding: max(14px,3vh) 2vw 0; }
.m-image { display: grid; place-items: center; width: min(96vw, 560px); max-height: 88vh; }
.m-image img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 16px; box-shadow: 0 20px 80px rgba(0,0,0,.6); animation: fadein 1.3s var(--ease); }
/* rotation: two images stacked in the same cell, cross-fading slowly */
.m-image.rot img { grid-area: 1 / 1; opacity: 0; transition: opacity 6s var(--ease); animation: none; }
.m-image.rot img.on { opacity: 1; }
.m-image svg { width: min(70vw, 300px); height: auto; animation: breathe 13s var(--ease) infinite; }
.m-reminder { position: absolute; left: 0; right: 0; bottom: 16vh; z-index: 2; font-family: var(--serif); font-size: clamp(1rem, 3.2vw, 1.5rem);
  color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.85); opacity: 0; max-width: 26ch; margin: 0 auto; padding: 0 8vw; transition: opacity 1.3s var(--ease); }
.m-reminder.show { opacity: .94; }
/* controls sit ON the image, over a soft dark scrim, with a dark outline so they read on any picture */
.m-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 16px;
  max-width: 620px; margin: 0 auto; padding: 46px 8vw calc(env(safe-area-inset-bottom,0px) + 22px);
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.28) 55%, transparent);
  opacity: .85; transition: opacity .45s var(--ease); }
.m-bar:hover, .m-bar:focus-within { opacity: 1; }
.m-play { flex: none; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: rgba(0,0,0,.42); border: 1.5px solid rgba(255,255,255,.85); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.5); transition: transform .2s var(--ease); }
.m-play:hover { transform: scale(1.06); }
.m-play svg { width: 24px; height: 24px; fill: currentColor; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.m-play .ic-pause { display: none; }
body.playing .m-play .ic-play { display: none; }
body.playing .m-play .ic-pause { display: block; }
.m-seek { flex: 1; height: 6px; background: rgba(0,0,0,.45); box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.m-seek::-webkit-slider-thumb { width: 18px; height: 18px; background: #fff; border: 2px solid rgba(0,0,0,.6); box-shadow: 0 1px 6px rgba(0,0,0,.6); }
.m-seek::-moz-range-thumb { width: 16px; height: 16px; background: #fff; border: 2px solid rgba(0,0,0,.6); }
.m-exit { position: absolute; top: max(14px, 3vh); right: max(16px, 4vw); z-index: 4; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.42); border: 1.5px solid rgba(255,255,255,.7); color: #fff; font-size: 1.05rem; cursor: pointer; opacity: .85; box-shadow: 0 2px 10px rgba(0,0,0,.5); transition: opacity .25s; }
.m-exit:hover { opacity: 1; }
@media (max-width: 470px) {
  .m-image { width: 100vw; max-height: 100vh; }
  .m-image img { max-height: 100vh; border-radius: 0; box-shadow: none; }
  .m-stage { padding: 0; }
}
/* wide screens (desktop): let the landscape deity image fill the screen, blurred fill around the edges */
@media (min-width: 820px) and (min-aspect-ratio: 1/1) {
  .m-image { width: 96vw; max-height: 92vh; }
  .m-image img { max-width: 96vw; max-height: 92vh; }
  .m-bar { max-width: 760px; }
}
@media (prefers-reduced-motion: reduce) { .m-image svg { animation: none; } }

/* ---- Timing mode (tap along to set each line's exact time) ---- */
.time-btn { cursor: pointer; border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); background: none; color: var(--brand-deep);
  border-radius: 30px; padding: 9px 16px; font-family: var(--sans); font-size: .84rem; transition: all .2s var(--ease); }
.time-btn:hover { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.timing { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; align-items: center;
  background: radial-gradient(90% 70% at 50% 38%, #3b426a, #2d3352 72%); color: #f9f4ea; padding: 4vh 6vw; text-align: center; animation: fadein .4s var(--ease); }
.tm-top { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.tm-progress { color: #cdad85; font-size: .85rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.tm-done { cursor: pointer; border: none; border-radius: 30px; padding: 9px 20px; font-weight: 600; color: var(--on-brand); font-family: var(--sans);
  background: linear-gradient(180deg, var(--brand), var(--brand-deep)); }
.tm-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3vh; width: 100%; }
.tm-instr { color: #cdad85; opacity: .8; font-size: clamp(.9rem, 2.4vw, 1.1rem); margin: 0; }
.tm-line { font-family: var(--serif); font-size: clamp(1.8rem, 7vw, 4rem); margin: 0; max-width: 22ch; color: #f9f4ea; text-shadow: 0 0 50px color-mix(in srgb, #c47457 45%, transparent); }
.tm-next { font-family: var(--serif); font-size: clamp(1rem, 3vw, 1.6rem); color: #cdad85; opacity: .45; margin: 0; max-width: 26ch; }
.tm-palette { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 800px; margin-bottom: 2vh; }
.tm-phrase { cursor: pointer; border: 1px solid rgba(249,244,234,.3); background: rgba(255,255,255,.06); color: #f9f4ea;
  border-radius: 14px; padding: 13px 18px; font-family: var(--serif); font-size: clamp(1rem, 2.6vw, 1.35rem); line-height: 1.2; transition: background .12s, transform .08s, border-color .12s; }
.tm-phrase:hover { background: rgba(255,255,255,.13); }
.tm-phrase:active { transform: scale(.97); }
.tm-phrase.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 32%, rgba(255,255,255,.06)); }
.tm-saved { color: #a9cf9f; font-size: .8rem; margin-left: auto; margin-right: 12px; font-style: italic; }
.tm-seek { width: min(680px, 92vw); margin: 0 auto 2vh; }
@keyframes tm-flash-k { 0% { transform: scale(1.05); color: #ffffff; text-shadow: 0 0 60px color-mix(in srgb, var(--brand) 70%, transparent); } 100% { transform: scale(1); } }
.tm-flash { animation: tm-flash-k .4s var(--ease); }
.tm-controls { display: flex; gap: 12px; padding-bottom: max(20px, 3vh); flex-wrap: wrap; justify-content: center; }
.tm-mini { cursor: pointer; background: none; border: 1px solid rgba(249,244,234,.25); color: #f9f4ea; opacity: .75; border-radius: 20px; padding: 8px 16px; font-size: .85rem; font-family: var(--sans); }
.tm-mini:hover { opacity: 1; }

/* ---- Veil (first touch) ---- */
.veil { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: radial-gradient(80% 60% at 50% 40%, var(--bg-2), var(--bg)); transition: opacity .9s var(--ease), visibility .9s; }
.veil.gone { opacity: 0; visibility: hidden; }
.veil-inner { text-align: center; padding: 24px; max-width: 30ch; }
.veil-art { width: min(46vw, 190px); margin: 0 auto 4px; }
.veil-text { color: var(--brand-deep); font-size: 1.05rem; margin: 8px 0 4px; }
.enter-btn { font-family: var(--serif); font-size: 1.1rem; padding: 12px 34px; border-radius: 40px; cursor: pointer; color: var(--on-brand); background: linear-gradient(180deg, var(--brand), var(--brand-deep)); border: none; box-shadow: 0 6px 30px color-mix(in srgb, var(--brand) 40%, transparent); transition: transform .25s var(--ease); }
.enter-btn:hover { transform: scale(1.05); }
.veil-note { color: var(--ink-faint); font-size: .82rem; font-style: italic; margin-top: 26px; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .aura-core, .load-svg, .flame-body, .flame-inner { animation: none; }
}

/* recordings: name, day · hour · length, ⭐ ✎ ⬇ — and 🎙 All my recordings */
.take .take-name { font-weight: 700; color: var(--brand-deep); }
.take-more { display: inline-flex; gap: 4px; }
.take-more button { border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); background: transparent; border-radius: 8px; padding: 2px 7px; cursor: pointer; color: var(--brand-deep); font-size: .85rem; }
.take-more .take-star { color: #c99a2e; }
.all-takes-btn { margin: 4px 0 8px; border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); background: transparent; border-radius: 20px; padding: 5px 12px; cursor: pointer; color: var(--brand-deep); font-weight: 600; font-size: .85rem; }
.all-takes { position: fixed; inset: 0; z-index: 9000; background: rgba(20, 20, 35, .55); display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; overflow: auto; }
.all-takes[hidden] { display: none; }
.all-takes-box { background: var(--card, #fff); color: var(--ink, #222); border-radius: 16px; max-width: 620px; width: 100%; padding: 16px 18px; box-shadow: 0 14px 44px rgba(0,0,0,.35); }
.all-takes-top { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
.all-takes-top button { border: none; background: none; font-size: 1.1rem; cursor: pointer; color: var(--ink-soft); }
.all-takes-sub { font-size: .8rem; color: var(--ink-soft); margin: 4px 0 10px; }
.at-song { margin: 10px 0 14px; }
.at-head { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid color-mix(in srgb, var(--brand) 20%, transparent); padding-bottom: 4px; margin-bottom: 4px; }
.at-n { font-size: .75rem; background: color-mix(in srgb, var(--brand) 14%, transparent); border-radius: 10px; padding: 0 7px; }
.at-go { margin-left: auto; border: none; background: none; color: var(--brand-deep); cursor: pointer; font-size: .8rem; font-weight: 600; }
.at-row { display: flex; align-items: center; gap: 8px; padding: 4px 2px; font-size: .88rem; }
.at-name { font-weight: 600; }
.at-when { color: var(--ink-soft); font-size: .8rem; margin-right: auto; }
.at-dl { border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); background: transparent; border-radius: 8px; padding: 1px 7px; cursor: pointer; }
.at-empty { color: var(--ink-soft); }
