/* PNW-FILE-GUIDE
   css/styles.css — stylesheet dasar (layout & komponen lama).
   Dimuat oleh index.html SEBELUM design.css. Memakai token var(--d-*) yang didefinisikan di css/design.css.
   Untuk ubah warna/tema, edit token di design.css, bukan warna mentah di sini.
 */

:root {
  --text: #f8fafc;
  --muted: var(--d-ink-3);
  --line: var(--d-line);
  --soft: var(--d-s2);
  --paper: var(--d-s2);
  --blue: var(--d-accent);
  --blueSoft: var(--d-accent-wash);
  --orange: var(--d-chord);
  --green: var(--d-ok);
  --greenSoft: var(--d-ok-wash);
  --red: var(--d-danger);
  --redSoft: var(--d-danger-wash);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
@font-face {
  font-family: "PJS-fallback";
  src: local("Arial");
  ascent-override: 92%;
  descent-override: 31%;
  line-gap-override: 9%;
  size-adjust: 112%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.42;
  font-size: 15px;
}
.app {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding-right: 52px;
}
.brand img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  flex: none;
}
h1 {
  font-size: 23px;
  line-height: 1.15;
  margin: 0 0 4px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  font-weight: 300;
}
.control {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0;
}
.label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.songGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.songBtn,
.keyBtn,
.actionBtn {
  border: 1px solid var(--line);
  background: var(--d-s1);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 12px;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
}
.songBtn.active,
.keyBtn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.keyGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.keyBtn {
  text-align: center;
  padding: 11px 4px;
}
.status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}
.pill {
  border-radius: 999px;
  background: var(--blueSoft);
  color: #0b5797;
  font-size: 13px;
  padding: 7px 10px;
  font-weight: 800;
}
.pill.green {
  background: var(--greenSoft);
  color: #245f42;
}
.help {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.help summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--blue);
}
.help p {
  margin: 8px 0 0;
}
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 14px;
}
.actionBtn {
  text-align: center;
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.actionBtn.secondary {
  background: var(--d-s1);
  color: var(--text);
  border-color: var(--line);
}
.actionBtn.green {
  background: var(--green);
  border-color: var(--green);
}
.actionBtn.orange {
  background: var(--orange);
  border-color: var(--orange);
}
.actionBtn.red {
  background: var(--red);
  border-color: var(--red);
}
.sheet {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--d-s1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
#songTitle {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 4px;
  font-weight: 800;
}
#keyLine,
#sourceLine {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}
.line {
  margin: 3px 0;
  min-height: 1.25em;
  white-space: pre-wrap;
}
.chord {
  font-family: var(--font-chord);
  font-weight: 800;
  color: var(--blue);
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
  margin-top: 8px;
  margin-bottom: 2px;
  overflow-wrap: anywhere;
  letter-spacing: 0.01em;
}
.section {
  font-weight: 800;
  margin-top: 12px;
}
.editor {
  display: none;
  border: 1px solid var(--line);
  background: var(--d-s1);
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0;
}
.editor.open {
  display: block;
}
.field {
  margin: 10px 0;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}
.field textarea {
  min-height: 300px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.45;
}
.chordSuggest {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 2px;
  margin-top: 8px;
  -webkit-overflow-scrolling: touch;
}
.chordSuggest[hidden] {
  display: none;
}
.chordSuggest .csChip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--d-s1);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.chordSuggest .csChip:first-child {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(39, 131, 222, 0.08);
}
.chordSuggest .csChip:active {
  transform: scale(0.96);
}
body.dark .chordSuggest .csChip {
  background: var(--d-s2);
}
body.dark .chordSuggest .csChip:first-child {
  background: rgba(104, 176, 240, 0.14);
}
.small {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
}
.editorActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.deleteRow {
  margin-top: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}
.backupActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.modalBackdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  z-index: 50;
  padding: 18px;
  overflow: auto;
}
.modalBackdrop.open {
  display: block;
}
.modal {
  max-width: 720px;
  margin: 30px auto;
  background: var(--d-s1);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}
.modal h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.modal textarea {
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}
.dangerText {
  background: var(--redSoft);
  border-left: 4px solid var(--red);
  padding: 10px;
  border-radius: 8px;
  color: #8f211a;
}
.footer {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.footer b {
  color: var(--text);
}
@media (min-width: 760px) {
  .songGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .keyGrid {
    grid-template-columns: repeat(12, 1fr);
  }
  .app {
    padding: 28px 24px 40px;
  }
  h1 {
    font-size: 26px;
  }
  .sheet {
    padding: 22px;
  }
  .chord {
    font-size: 15px;
    overflow-wrap: normal;
  }
  .actions,
  .editorActions,
  .backupActions {
    max-width: 560px;
    grid-template-columns: repeat(4, 1fr);
  }
  .deleteRow {
    max-width: 560px;
  }
}
@media print {
  body {
    background: white;
  }
  .app {
    max-width: none;
    padding: 0;
  }
  .control,
  .help,
  .actions,
  .status,
  .sub,
  .no-print,
  .editor,
  .modalBackdrop {
    display: none !important;
  }
  .brand img {
    display: none;
  }
  .sheet {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .chord {
    color: #000;
    overflow-wrap: normal;
  }
  #songTitle {
    font-size: 18pt;
  }
  .line {
    font-size: 10.5pt;
  }
  .chord {
    font-size: 10pt;
  }
  .footer {
    border: 0;
    text-align: left;
    margin-top: 16px;
  }
  @page {
    margin: 12mm;
  }
}
.menuBtn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 55;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--d-s1);
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  flex: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}
.songRow {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.songRow .songBtn {
  flex: 1;
}
.dragHandle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
  cursor: grab;
  touch-action: none;
  font-size: 18px;
  user-select: none;
  flex: none;
}
.songRow.placeholder {
  opacity: 0;
}
.songRow.dropBefore {
  box-shadow: inset 0 3px 0 0 var(--blue);
}
.songRow.dropAfter {
  box-shadow: inset 0 -3px 0 0 var(--blue);
}
.rowGhost {
  position: fixed;
  z-index: 120;
  pointer-events: none;
  margin: 0;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  border-radius: 12px;
  transform-origin: center;
  transition: none;
}
.rowGhost.landing {
  transition:
    transform 0.2s cubic-bezier(0.2, 0.9, 0.25, 1.15),
    box-shadow 0.2s;
}
.rowGhost .dragHandle {
  cursor: grabbing;
}
.drawerBackdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 60;
}
.drawerBackdrop.open {
  display: block;
}
.drawerBackdrop.dragging-bank {
  background: transparent;
}
.drawerBackdrop.dragging-bank .drawer {
  opacity: 0.2;
}
.drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 90vw);
  background: var(--d-s1);
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.18);
  padding: 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drawerHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawerHead b {
  font-size: 18px;
}
.xBtn {
  border: 1px solid var(--line);
  background: var(--d-s1);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 15px;
  cursor: pointer;
  color: var(--text);
}
.menuSec {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--soft);
}
.menuSec .label {
  margin-bottom: 10px;
}
.menuDot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--d-line);
  display: none;
}
.menuDot.on {
  display: block;
}
.infoList {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0 4px;
  max-height: 50vh;
  overflow: auto;
}
.infoItem {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  padding: 10px 12px;
}
.infoItem .iv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.infoItem .iv b {
  font-size: 14px;
  color: var(--blue);
}
.infoItem .iv span {
  font-size: 11px;
  color: var(--muted);
}
.infoItem ul {
  margin: 0;
  padding-left: 18px;
}
.infoItem li {
  font-size: 13px;
  margin: 3px 0;
}
.rowBtns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rowBtns .actionBtn {
  flex: 1;
  min-width: 64px;
}
.bankList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.bankItem {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--d-s1);
  padding: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.bankGrip {
  color: var(--muted);
  cursor: grab;
  touch-action: none;
  font-size: 18px;
  flex: none;
}
.bankInfo {
  flex: 1;
  min-width: 0;
}
.bankInfo b {
  display: block;
  font-size: 14px;
}
.bankInfo span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.bankInfo a {
  font-size: 12px;
  color: var(--blue);
  word-break: break-all;
}
.bankAdd {
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--d-ink);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
  cursor: pointer;
  flex: none;
}
.dropHint {
  outline: 3px dashed var(--blue);
  outline-offset: 3px;
}
.dragGhost {
  position: fixed;
  z-index: 99;
  pointer-events: none;
  background: var(--blue);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
}
body.big .chord {
  font-size: 19px;
}
body.big .line {
  font-size: 17px;
}
body.xl .chord {
  font-size: 23px;
}
body.xl .line {
  font-size: 21px;
}
body.dark {
  --text: #f8fafc;
  --muted: var(--d-ink-2);
  --line: var(--d-line);
  --soft: var(--d-s2);
  --blue: var(--d-accent-hi);
  --blueSoft: var(--d-accent-wash);
  background: var(--d-canvas);
}
body.dark .sheet {
  background: var(--d-s1);
}
body.dark .songBtn,
body.dark .keyBtn,
body.dark .actionBtn.secondary,
body.dark .menuBtn,
body.dark .xBtn,
body.dark .bankItem,
body.dark .dragHandle,
body.dark .field input,
body.dark .field textarea,
body.dark .modal textarea {
  background: var(--d-s2);
  color: var(--text);
}
body.dark .drawer,
body.dark .modal {
  background: var(--d-s1);
}
body.dark .pill {
  background: var(--d-accent-wash);
  color: var(--d-accent-hi);
}
.sheet {
  position: relative;
}
.scrollDock {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  z-index: 5;
}
.sdBtn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--d-s1);
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 0.08s ease,
    background 0.15s;
}
.sdBtn.sdSmall {
  width: 36px;
  height: 36px;
  font-size: 20px;
}
.sdBtn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--d-ink);
}
.sdBtn:active {
  transform: scale(0.88);
}
#songTitle {
  padding-right: 110px;
}
.textSize {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.touchBtn {
  flex: 1;
  min-height: 58px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--d-s1);
  color: var(--text);
  font-size: 23px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 0.08s ease,
    background 0.15s;
}
.touchBtn:active {
  transform: scale(0.9);
  background: var(--blueSoft);
}
#textSizeLabel {
  min-width: 70px;
  text-align: center;
  font-weight: 800;
  color: var(--muted);
}
body.sm .chord {
  font-size: 13px;
}
body.sm .line {
  font-size: 13px;
}
body.xs .chord {
  font-size: 11px;
  line-height: 1.4;
  margin-top: 4px;
}
body.xs .line {
  font-size: 11px;
}
body.compact .line {
  margin: 1px 0;
  min-height: 1em;
}
body.compact .chord {
  line-height: 1.35;
  margin-top: 3px;
  margin-bottom: 0;
}
body.compact #songTitle {
  margin: 0 0 2px;
}
.secBlock {
  border-radius: 10px;
  margin: 6px 0;
  padding: 6px 10px;
}
.secBlock.sec-none {
  background: transparent;
  margin: 0;
  padding: 0;
}
body.compact .secBlock {
  margin: 3px 0;
  padding: 3px 7px;
}
.sec-intro {
  background: rgba(39, 131, 222, 0.06);
}
.sec-verse {
  background: rgba(70, 161, 113, 0.06);
}
.sec-pre {
  background: rgba(213, 128, 59, 0.07);
}
.sec-chorus {
  background: rgba(229, 100, 88, 0.08);
}
.sec-post {
  background: rgba(213, 128, 59, 0.05);
}
.sec-bridge {
  background: rgba(120, 90, 200, 0.08);
}
.sec-inst {
  background: rgba(125, 122, 117, 0.08);
}
.sec-inter {
  background: rgba(39, 131, 222, 0.05);
}
.sec-break {
  background: rgba(125, 122, 117, 0.11);
}
.sec-mod {
  background: rgba(229, 100, 88, 0.11);
}
.sec-outro {
  background: rgba(70, 161, 113, 0.09);
}
.modBadge {
  color: var(--orange);
  font-weight: 800;
  font-size: 0.85em;
}
.structPalette {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.palChip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.palChip:active {
  transform: scale(0.96);
}
.structCanvas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 40px;
}
.structBlock {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
}
.sbHead {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.sbHandle {
  cursor: grab;
  color: var(--muted);
  font-size: 18px;
  touch-action: none;
  padding: 0 2px;
}
.sbName {
  font-weight: 800;
  flex: 1;
}
.sbDesc {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 6px;
}
.sbMod {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
}
.sbMod button,
.sbDel {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  width: 26px;
  height: 26px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}
.sbModVal {
  min-width: 26px;
  text-align: center;
  font-weight: 800;
  color: var(--text);
}
.structBlock textarea {
  width: 100%;
  min-height: 60px;
  resize: vertical;
  font-family: var(--font-chord);
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: transparent;
  color: var(--text);
}
.structBlock.dragging {
  opacity: 0.5;
}
#adminPanel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
#adminPanel[hidden] {
  display: none;
}
.lockRow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#lockStatus {
  margin-top: 4px;
}
body.noEdit #addBtn,
body.noEdit #editBtn,
body.noEdit #duplicateBtn,
body.noEdit #deleteSongBtn,
body.noEdit .dragHandle,
body.noEdit #bankAddBtn {
  display: none !important;
}
.liveBanner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--red);
  color: var(--d-ink);
  font-weight: 800;
  text-align: center;
  padding: 7px 10px;
  border-radius: 0 0 10px 10px;
  font-size: 13px;
  letter-spacing: 0.3px;
}
body.spectating .control,
body.spectating #editor {
  display: none !important;
}
body.dark .sdBtn,
body.dark .touchBtn {
  background: var(--d-s2);
  color: var(--text);
}
.ytBtn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  border: 1px solid var(--red);
  color: var(--d-ink);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  z-index: 5;
  box-shadow: 0 3px 10px rgba(229, 100, 88, 0.35);
  transition:
    transform 0.08s ease,
    filter 0.15s;
}
.ytBtn:active {
  transform: scale(0.93);
}
.ytBtn:hover {
  filter: brightness(1.05);
}
.ytFrame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 6px;
}
.ytFrame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media print {
  #songTitle {
    padding-right: 0;
  }
  .scrollDock {
    display: none !important;
  }
}
.capoHint {
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
  margin: 0 0 8px;
}
.ytBar {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 4px 0 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}
.ytBar.open {
  display: flex;
}
.ytPP {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--d-ink);
  font-size: 12px;
  cursor: pointer;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ytPP:active {
  transform: scale(0.9);
}
.ytTrack {
  position: relative;
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
}
.ytFill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--red);
}
.ytDot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--d-s1);
  border: 3px solid var(--red);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.ytTime {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  min-width: 74px;
  text-align: right;
}
.ytX {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--d-s1);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}
#ytHost {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 320px;
  height: 180px;
  pointer-events: none;
  opacity: 0;
}
.bankFind {
  display: flex;
  gap: 8px;
}
.bankFind input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
}
.bankFind select {
  flex: none;
  max-width: 44%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 8px;
  font: inherit;
  background: var(--d-s1);
  color: var(--text);
}
.searchResults {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.searchResults:empty {
  display: none;
}
.srItem {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  background: var(--d-s1);
  cursor: pointer;
}
.srItem b {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.srItem .srTag {
  font-size: 11px;
  color: var(--blue);
  font-weight: 700;
  flex: none;
}
.metroRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}
.metroToggle {
  flex: 1;
}
.touchBtn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--d-ink);
}
.metroBpm {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mBtn {
  width: 40px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--d-s1);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  color: var(--text);
}
#bpmVal {
  min-width: 46px;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
}
.bankPage {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--soft);
  overflow: auto;
}
.bankPage.open {
  display: block;
}
.bankPageInner {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 16px 60px;
}
.bankPageHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--soft);
  padding: 8px 0 12px;
  z-index: 2;
}
.bankPageHead b {
  font-size: 22px;
  font-weight: 800;
}
.bankSearch2 {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  margin-bottom: 14px;
}
.bankGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.songCard {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--d-s1);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.songCard .scInfo {
  flex: 1;
  min-width: 0;
}
.songCard .scInfo b {
  display: block;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.songCard .scInfo span {
  font-size: 12px;
  color: var(--muted);
}
.scBtns {
  display: flex;
  gap: 6px;
  flex: none;
}
.scBtn {
  border: 1px solid var(--line);
  background: var(--d-s1);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
}
.scBtn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.bankPresets {
  margin-top: 22px;
}
.bankPresets summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--blue);
}
@media (min-width: 680px) {
  .bankGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
body.dark .bankFind input,
body.dark .bankFind select,
body.dark .bankSearch2,
body.dark .songCard,
body.dark .scBtn,
body.dark .srItem,
body.dark .mBtn,
body.dark .ytX {
  background: var(--d-s2);
  color: var(--text);
}
@media print {
  .ytBar,
  .bankPage,
  #ytHost {
    display: none !important;
  }
}
.line.inlineChord {
  white-space: normal;
  line-height: 1.18;
  margin: 3px 0 8px;
}
.ic {
  display: inline-flex;
  flex-direction: column;
  vertical-align: bottom;
}
.ic-ch {
  font-family: var(--font-chord);
  font-weight: 700;
  color: var(--blue);
  font-size: 0.85em;
  min-height: 1.3em;
  line-height: 1.3;
  letter-spacing: 0.3px;
  padding-right: 2px;
}
.ic-tx {
  white-space: pre;
}
.editPreview {
  margin-top: 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--soft);
  max-height: 340px;
  overflow: auto;
}
.editPreview .pvHead {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
body.dark .editPreview {
  background: var(--d-s2);
}
#bankAddBtn {
  flex: none;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--d-ink);
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}
.help ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.help li {
  margin: 4px 0;
}
.labelRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.infoI {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.dragTip {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin: 8px 0 0;
}
button {
  transition: transform 0.08s ease;
}
button:active {
  transform: scale(0.92);
}
.izinField {
  margin: 12px 0;
}
.izinField label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 6px;
}
.izinField input,
.izinField textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px;
  font: inherit;
  background: var(--d-s1);
  color: var(--text);
  box-sizing: border-box;
}
.izinField textarea {
  min-height: 80px;
  resize: vertical;
}
.weekChips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.weekChip {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--d-s1);
  color: var(--text);
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
}
.weekChip.on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
body.dark .izinField input,
body.dark .izinField textarea,
body.dark .weekChip {
  background: var(--d-s2);
  color: var(--text);
}
#bpmVal {
  cursor: pointer;
  border-bottom: 1px dashed var(--muted);
}
.stepRow {
  gap: 8px;
}
.stepBtn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--d-s1);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.stepBtn.on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
body.dark .stepBtn {
  background: var(--d-s2);
  color: var(--text);
}
body.dark .stepBtn.on {
  background: var(--blue);
  color: #fff;
}
body.eye::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 168, 60, 0.2);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2147483000;
}
.actionBtn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
#toastWrap {
  position: fixed;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: calc(100% - 24px);
  max-width: 380px;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--d-s1);
  color: var(--d-ink);
  border: 1px solid var(--d-line);
  border-left: 4px solid var(--d-accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  max-width: 100%;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.22s,
    transform 0.22s;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.success {
  border-left-color: var(--d-ok);
}
.toast.error {
  border-left-color: var(--d-danger);
}
.toast.info {
  border-left-color: var(--d-accent);
}
.toast.loading {
  border: none;
  border-left: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.toast .tIco {
  font-size: 16px;
  line-height: 1;
}
.toast .tSpin {
  width: 15px;
  height: 15px;
  border: 2px solid var(--d-line);
  border-top-color: var(--d-chord);
  border-radius: 50%;
  animation: tspin 0.7s linear infinite;
  flex: 0 0 auto;
}
@keyframes tspin {
  to {
    transform: rotate(360deg);
  }
}
body.dark .toast {
  background: var(--d-s2);
  color: var(--d-ink);
  border-color: var(--d-ink-3);
}
.wkLabel {
  display: block;
  width: 100%;
  margin-top: 4px;
  font-size: 11px;
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-sizing: border-box;
  font-weight: 500;
}
.wkLabelText {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 2px;
}
#schedPrintArea {
  display: none;
}
@media print {
  body.printing-sched .app {
    display: none !important;
  }
  body.printing-sched #schedPrintArea {
    display: block !important;
  }
  #schedPrintArea .spTitle {
    font-size: 18pt;
    margin: 0 0 8px;
  }
  #schedPrintArea .spTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #schedPrintArea .spTable th,
  #schedPrintArea .spTable td {
    border: 1px solid #999;
    padding: 4px 6px;
    vertical-align: top;
    text-align: left;
  }
  #schedPrintArea .spHead th {
    background: #111 !important;
    color: #f5c542 !important;
    text-align: center;
    font-size: 10pt;
  }
  #schedPrintArea .spBand td {
    font-weight: 700;
    text-align: center;
  }
  #schedPrintArea .spBand.hosp td {
    background: #f2cccc !important;
  }
  #schedPrintArea .spBand.mm td {
    background: #cfe0f5 !important;
  }
  #schedPrintArea .spBand.wor td {
    background: #f6e6ad !important;
  }
  #schedPrintArea .spRole {
    font-weight: 600;
    width: 130px;
  }
}
.scBtn.danger {
  background: var(--d-danger);
  color: var(--d-ink);
  border-color: var(--d-danger);
}
.songCard .scInfo b .inSet {
  color: var(--d-ok);
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
}
.schedTabs {
  display: flex;
  gap: 6px;
  margin: 8px 0 12px;
}
.schedTabBtn {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--d-line);
  background: var(--d-s1);
  border-radius: 9px;
  font-weight: 600;
  cursor: pointer;
  color: var(--d-ink);
}
.schedTabBtn.on {
  background: var(--d-accent);
  color: #fff;
  border-color: var(--d-accent);
}
.schedToolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.schedToolbar input {
  flex: 1;
  min-width: 140px;
  padding: 8px;
  border: 1px solid var(--d-line);
  border-radius: 8px;
}
.schedScroll {
  overflow: auto;
  max-width: 100%;
}
table.schedGrid {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
table.schedGrid th,
table.schedGrid td {
  border: 1px solid var(--d-line);
  padding: 6px 8px;
  vertical-align: top;
}
table.schedGrid th {
  background: var(--d-s2);
  font-weight: 700;
}
.reqPanel {
  border: 1px solid var(--d-line);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0 12px;
  background: var(--d-s2);
}
.reqPanelHead {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}
.reqStatus {
  font-size: 11.5px;
  color: var(--d-ink-3);
  line-height: 1.5;
}
.reqStatus.pend {
  color: #92400e;
  background: var(--d-warn-wash);
  border-radius: 8px;
  padding: 5px 8px;
  margin-top: 6px;
}
.reqRow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.reqNote {
  flex: 1;
  min-width: 150px;
  border: 1px solid var(--d-line);
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12px;
  font-family: inherit;
}
.reqItem {
  border-top: 1px solid var(--d-line);
  padding-top: 8px;
  margin-top: 8px;
}
.reqItemHead {
  font-size: 13px;
}
.reqChips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}
.reqChip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--d-line);
  color: var(--d-ink-2);
}
.reqChip.add {
  background: var(--d-ok-wash);
  color: #166534;
}
.reqChip.del {
  background: var(--d-danger-wash);
  color: #991b1b;
}
.rosterCard.sayaCard {
  border: 2px solid #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.sayaTag {
  margin-left: 8px;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--d-accent-wash);
  color: var(--d-accent);
}
.reqBox {
  border-top: 1px dashed var(--d-line);
  margin-top: 8px;
  padding-top: 8px;
}
body.dark .reqPanel {
  background: #f8fafc;
  border-color: var(--d-ink-2);
}
body.dark .reqNote {
  background: #0b1220;
  color: var(--d-ink-3);
  border-color: var(--d-ink-2);
}
body.dark .reqItem {
  border-top-color: var(--d-ink-2);
}
.tbGrp {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tbGrp + .tbGrp {
  padding-left: 10px;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
}
.tbShare {
  margin-left: auto;
}
.tbGrp .actionBtn {
  padding: 6px 11px;
  font-size: 12px;
}
.weekTutup {
  background: var(--d-s2);
  vertical-align: middle;
  text-align: center;
}
.wkTutupBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 5px;
}
.wkTutupInp {
  width: 100%;
  min-width: 92px;
  border: 1px solid var(--d-line);
  border-radius: 8px;
  padding: 5px 7px;
  font-size: 11px;
  font-family: inherit;
  resize: vertical;
  background: var(--d-s1);
  color: var(--d-ink-2);
}
.wkTutupTxt {
  font-size: 11px;
  font-style: italic;
  color: var(--d-ink-3);
  white-space: pre-wrap;
}
body.dark .weekTutup {
  background: #f8fafc;
}
body.dark .wkTutupInp {
  background: #f8fafc;
  color: var(--d-ink-3);
  border-color: var(--d-ink-2);
}
body.dark .tbGrp + .tbGrp {
  border-left-color: rgba(255, 255, 255, 0.14);
}
@media (max-width: 600px) {
  .tbGrp + .tbGrp {
    padding-left: 0;
    border-left: 0;
  }
  .tbShare {
    margin-left: 0;
  }
}
table.schedGrid tr.teamRow td {
  background: var(--d-accent-wash);
  font-weight: 700;
  color: var(--d-accent);
}
table.schedGrid td.roleCell {
  font-weight: 600;
  white-space: nowrap;
  background: var(--d-s2);
}
.cell .chip {
  display: inline-flex;
  align-items: center;
  background: var(--d-accent-wash);
  color: var(--d-ink);
  border-radius: 20px;
  padding: 3px 9px;
  margin: 2px;
  font-size: 12px;
  font-weight: 600;
}
.cell .chip.warn {
  background: var(--d-danger-wash);
  color: #b23a2e;
}
.chipX {
  cursor: pointer;
  margin-left: 4px;
  color: var(--d-danger);
  font-weight: 800;
}
.cellSel {
  margin-top: 3px;
  font-size: 12px;
  padding: 3px;
  border: 1px solid var(--d-line);
  border-radius: 6px;
  max-width: 140px;
}
.cellPick {
  display: inline-block;
  margin-top: 3px;
}
.cellPickInp {
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid var(--d-line);
  border-radius: 6px;
  max-width: 140px;
  width: 100%;
  box-sizing: border-box;
}
body.dark .cellPickInp {
  background: var(--d-s1);
  color: var(--d-ink);
  border-color: var(--d-ink-3);
}
.rosterCard {
  border: 1px solid var(--d-line);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}
.rosterHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.roleChecks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.roleCheck {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
body.dark .schedTabBtn,
body.dark table.schedGrid th,
body.dark table.schedGrid td,
body.dark .rosterCard {
  background: var(--d-s1);
  color: var(--d-ink);
  border-color: var(--d-ink-3);
}
body.dark table.schedGrid tr.teamRow td {
  background: #1e2a38;
}
body.dark .cell .chip {
  background: var(--d-line);
  color: var(--d-ink);
}
.cell .chip.dbl {
  background: var(--d-warn-wash);
  color: #8a5a00;
}
body.dark .cell .chip.dbl {
  background: #4a3a12;
  color: var(--d-warn-wash);
}
.dblToggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.bankGrid {
  min-width: 0;
}
.songCard {
  flex-wrap: wrap;
  min-width: 0;
}
@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }
  .app {
    padding: 16px 12px 40px;
  }
  .bankPageInner {
    padding: 12px 12px 60px;
  }
  .songCard {
    gap: 8px;
  }
  .songCard .scInfo {
    flex: 1 1 100%;
  }
  .scBtns {
    width: 100%;
  }
  .scBtns .scBtn {
    flex: 1;
  }
  .schedTabBtn {
    padding: 8px 4px;
    font-size: 13px;
  }
  table.schedGrid {
    font-size: 12px;
  }
  table.schedGrid th,
  table.schedGrid td {
    padding: 5px 6px;
  }
  .cellSel {
    max-width: 118px;
  }
}
.verTag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--blueSoft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  vertical-align: middle;
}
.infoItem .iv {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.noteActs {
  margin-left: auto;
  display: inline-flex;
  gap: 6px;
}
.noteAct {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  color: var(--blue);
  cursor: pointer;
}
.noteAct.danger {
  color: var(--red);
}
.noteEditedTag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.07);
  color: #6b6b6b;
  letter-spacing: 0.02em;
}
.gridSearch {
  min-width: 150px;
  flex: 1;
}

/* ---- v1.6 icon additions ---- */
.fi {
  line-height: 1;
}
.menuBtn .fi {
  font-size: 22px;
  vertical-align: middle;
}
.infoI .fi {
  font-size: 12px;
  vertical-align: middle;
}
.actionBtn .fi,
.actionBtn .actionIco {
  vertical-align: -2px;
  margin-right: 5px;
  font-size: 18px;
}
.lottieIco {
  display: inline-block;
  width: 22px;
  height: 22px;
  vertical-align: middle;
}
.lottieBtn {
  margin-right: 5px;
}
.lottieLg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 3px rgba(47, 128, 237, 0.55));
}
.lottieH2 {
  width: 30px;
  height: 30px;
  margin-right: 6px;
}
.noteLike {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--d-s1);
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
}
.noteLike .fi {
  font-size: 13px;
}
.noteLike.liked {
  color: var(--d-danger);
  border-color: var(--d-danger);
  background: var(--d-danger-wash);
}
body.dark .noteLike {
  background: #232323;
}
.saranFotoPreview {
  margin-top: 6px;
}
.saranFotoPreview img {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}

/* ---- v1.8 additions (tap fx) ---- */
@keyframes tapBounce {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(0.88);
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}
.actionBtn.tapping {
  animation: tapBounce 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(47, 128, 237, 0.14) !important;
  border-color: var(--d-accent) !important;
}
.actionBtn.tapping .lottieIco {
  filter: invert(39%) sepia(57%) saturate(2476%) hue-rotate(202deg)
    brightness(97%) contrast(101%);
}
.actionBtn.tapping .fi,
.actionBtn.tapping .actionIco {
  color: var(--d-accent) !important;
}
/* ---- v1.7 additions ---- */
.lkIco {
  width: 18px;
  height: 18px;
}
.loadOverlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}
.loadOverlay.on {
  display: flex;
}
.loadBox {
  background: transparent;
  padding: 0;
  text-align: center;
  box-shadow: none;
}
body.dark .loadBox {
  background: transparent;
}
.loadAnim {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  transition: opacity 0.22s ease;
}
.loadMsg {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--d-ink);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ===== bagian tambahan (v1.7+) ===== */
/* v2.3 - legenda & garis penghubung Double Role */
.schedLegend {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin: 2px 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.lgSw {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: -3px;
}
.lgSw.dbl {
  background: linear-gradient(135deg, var(--d-warn), #b45309);
}
.lgSw.warn {
  background: var(--d-danger);
}
.schedScroll {
  position: relative;
}
.cell .chip.dbl {
  border-left: 4px solid var(--dblc, var(--d-warn));
}
.cell .chip .dblTag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  margin-left: 5px;
  border-radius: 8px;
  background: var(--dblc, var(--d-warn));
  color: var(--d-ink);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}
.cell .chip {
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
}
.schedScroll.dimOn .cell .chip {
  opacity: 0.28;
}
.schedScroll.dimOn .cell .chip.hot {
  opacity: 1;
  transform: scale(1.08);
  outline: 2px solid var(--dblc, var(--d-warn));
  outline-offset: 1px;
  position: relative;
  z-index: 3;
}
.schedRO {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--d-accent-wash);
  color: var(--d-accent);
  font-size: 12px;
  font-weight: 700;
}
body.dark .schedRO {
  background: #26304d;
  color: var(--d-accent-wash);
}
/* v2.4 - baris Pemusik: empat instrumen berjejer dalam satu sel. */
.cell.musCell {
  padding: 3px 4px;
}
.cell.musCell .musSlot {
  display: inline-block;
  vertical-align: top;
  width: calc(25% - 5px);
  min-width: 72px;
  margin: 0 2px;
}
.cell.musCell .musLb {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
  font-style: normal;
}
.cell.musCell .chip {
  display: block;
  margin: 0 0 3px 0;
}
#schedSyncPill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--d-accent-wash);
  color: var(--d-accent);
  margin-left: auto;
}
body.dark #schedSyncPill {
  background: #2a3350;
  color: var(--d-accent-wash);
}
/* v2.5 - daftar pilihan nama, pengganti datalist yang ramah HP. */
.cellPick {
  position: relative;
  display: block;
  margin-top: 3px;
}
.pickList {
  position: absolute;
  z-index: 60;
  left: 0;
  top: 100%;
  min-width: 190px;
  max-width: 260px;
  max-height: 220px;
  overflow: auto;
  background: var(--d-s1);
  border: 1px solid var(--d-line);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  padding: 4px;
  -webkit-overflow-scrolling: touch;
}
body.dark .pickList {
  background: var(--d-s1);
  border-color: var(--d-ink-3);
}
.pickOpt {
  padding: 8px 9px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.25;
  border-left: 3px solid transparent;
}
.pickOpt:hover {
  background: var(--d-accent-wash);
}
body.dark .pickOpt:hover {
  background: var(--d-line);
}
.pickOpt.t1 {
  border-left-color: #34a853;
}
.pickOpt.t2 {
  border-left-color: var(--d-warn);
}
.pickOpt.t3 {
  border-left-color: var(--d-chord);
}
.pickMark {
  display: block;
  font-size: 10px;
  font-style: normal;
  color: var(--muted);
  margin-top: 1px;
}
.pickEmpty {
  padding: 8px 9px;
  font-size: 12px;
  color: var(--muted);
}
/* v2.5 - tampilan HP & tablet: kolom role menempel, header menempel. */
@media (max-width: 1024px) {
  .schedScroll {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    max-height: 72vh;
  }
  table.schedGrid thead th {
    position: sticky;
    top: 0;
    z-index: 5;
  }
  table.schedGrid th:first-child,
  table.schedGrid td.roleCell {
    position: sticky;
    left: 0;
    z-index: 4;
    box-shadow: 2px 0 0 rgba(0, 0, 0, 0.06);
  }
  table.schedGrid th:first-child {
    z-index: 6;
  }
  table.schedGrid th,
  table.schedGrid td {
    min-width: 132px;
  }
  table.schedGrid td.roleCell {
    min-width: 104px;
    white-space: normal;
  }
  .cell.musCell .musSlot {
    width: calc(50% - 5px);
    margin-bottom: 4px;
  }
  .schedToolbar {
    flex-wrap: wrap;
    gap: 6px;
  }
  .schedToolbar .actionBtn {
    flex: 1 1 auto;
    min-height: 38px;
  }
  #schedSyncPill {
    margin-left: 0;
  }
  .cell .chip {
    font-size: 12px;
    padding: 5px 10px;
  }
  .chipX {
    padding: 0 5px;
    font-size: 14px;
  }
  .cellPickInp {
    min-height: 34px;
    font-size: 13px;
    max-width: none;
  }
}
@media (max-width: 600px) {
  table.schedGrid th,
  table.schedGrid td {
    min-width: 118px;
  }
  table.schedGrid td.roleCell {
    min-width: 92px;
    font-size: 11px;
  }
  .cell.musCell .musSlot {
    width: 100%;
    margin: 0 0 5px 0;
  }
  .pickList {
    min-width: 158px;
    max-width: 210px;
  }
}

/* ===== Song Bank folder (v47) ===== */
.bankCrumb {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 6px;
}
.bankEmpty {
  grid-column: 1 / -1;
}
.folderCard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--d-s1);
  padding: 16px 16px 14px;
  cursor: pointer;
  text-align: left;
  transition: 0.15s;
}
.folderCard:hover {
  background: var(--soft);
  border-color: var(--blue);
}
.folderCard b {
  font-size: 15px;
}
.folderIco {
  font-size: 26px;
  line-height: 1;
}
.bankCatSel {
  padding: 6px 8px;
  max-width: 120px;
}
body.dark .folderCard {
  background: var(--d-s2);
  color: var(--text);
}

/* ===== Cari lagu online (v48) ===== */
.onlineSearchBar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.onlineSearchBar .bankSearch2 {
  margin-bottom: 0;
}
.onlineSearchBar .scBtn {
  flex: none;
}
.olCard {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--d-s1);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.olArt {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}
body.dark .olCard {
  background: var(--d-s2);
  color: var(--text);
}

/* === MODE PROYEKTOR / LIVE (Fitur 3) === */
body.display-mode {
  overflow: hidden;
}
body.display-mode .app {
  display: none !important;
}
.displayScreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0b0b0f;
  color: var(--d-ink);
  display: flex;
  flex-direction: column;
}
.displayScreen[hidden] {
  display: none !important;
}
.dispBar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #000;
  font-size: 14px;
  color: #9aa4b2;
  flex: 0 0 auto;
}
.dispDot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  background: var(--d-danger);
}
.dispDot.on {
  background: var(--d-ok);
  box-shadow: 0 0 8px var(--d-ok);
}
.dispDot.off {
  background: var(--d-danger);
}
.dispBrand {
  letter-spacing: 0.5px;
}
.dispIdle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dispIdleInner {
  text-align: center;
  opacity: 0.7;
}
.dispLogo {
  font-size: 72px;
  margin-bottom: 12px;
}
.dispStage {
  flex: 1;
  overflow-y: auto;
  padding: 3vh 5vw;
  -webkit-overflow-scrolling: touch;
}
.dispStage h2 {
  font-size: clamp(28px, 5vw, 72px);
  margin: 0 0 1vh;
  color: var(--d-ok);
}
.dispKey {
  font-size: clamp(13px, 2.2vw, 28px);
  opacity: 0.65;
  margin: 0 0 3vh;
}
.dispContent .secBlock {
  margin-bottom: 2.4vh;
}
.dispContent .line {
  font-size: clamp(20px, 4.2vw, 56px);
  line-height: 1.45;
  white-space: pre-wrap;
}
.dispContent .line.chord {
  color: var(--d-chord);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-weight: 700;
}
.dispContent .line.section {
  font-size: clamp(15px, 2.6vw, 30px);
  color: #7c8cff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 3vh;
  opacity: 0.85;
}
.dispContent .inlineChord {
  display: block;
  font-size: clamp(20px, 4.2vw, 56px);
}
.dispContent .ic {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  vertical-align: bottom;
}
.dispContent .ic-ch {
  color: var(--d-chord);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: clamp(13px, 2.4vw, 30px);
  line-height: 1.1;
  min-height: 1.2em;
}
.displayScreen.hideChords .line.chord {
  display: none;
}
.displayScreen.hideChords .ic-ch {
  display: none;
}

/* === SISTEM DAFTAR & PERSETUJUAN ADMIN (Fitur keamanan) === */
.orSep {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0;
  position: relative;
}
.orSep::before,
.orSep::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--line);
}
.orSep::before {
  left: 0;
}
.orSep::after {
  right: 0;
}
.adminReqSec {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.reqRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 6px;
  background: var(--ivory);
}
.reqInfo {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.reqInfo b {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reqInfo span {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.reqBtns {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
.reqBtns .actionBtn {
  padding: 6px 10px;
  font-size: 13px;
  width: auto;
}
.pendingBanner {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 9998;
  background: var(--orange);
  color: var(--d-ink);
  text-align: center;
  padding: 8px 12px;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.pendingBanner a {
  color: var(--d-ink);
  text-decoration: underline;
  margin-left: 8px;
  font-weight: 600;
}

/* === PENGINGAT JADWAL H-1 (Fitur 4) === */
.reminderCard {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 9997;
  width: min(92vw, 380px);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.reminderX {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
}
.reminderHead {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  padding-right: 20px;
}
.reminderDate {
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
  margin: 2px 0 8px;
}
.reminderBody {
  max-height: 42vh;
  overflow-y: auto;
}
.remTeam {
  margin-bottom: 8px;
}
.remTeam > b {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  margin-bottom: 2px;
}
.remRole {
  font-size: 14px;
  line-height: 1.45;
}
.remRoleName {
  color: var(--orange);
  font-weight: 600;
}

/* === TAMPILAN v53: breadcrumb, tombol minimalis, landscape, folder foto === */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 12px 0 14px;
  font-size: 13px;
}
.crumb .crumbItem {
  font-weight: 700;
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crumb .crumbItem:first-child {
  color: var(--blue);
}
.crumb .crumbItem.dim {
  font-weight: 600;
  color: var(--muted);
}
.crumb .crumbSep {
  color: var(--muted);
  opacity: 0.5;
  font-weight: 700;
}
body.dark .crumb .crumbItem {
  color: var(--d-ink-3);
}
body.dark .crumb .crumbItem:first-child {
  color: var(--d-accent-hi);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 12px;
  max-width: none;
}
.actions .actionBtn {
  flex: 0 0 auto;
  min-height: 0;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  text-align: center;
  box-shadow: none;
}
.help {
  text-align: center;
}
.help summary {
  font-size: 13px;
  font-weight: 600;
}
.help ul {
  display: inline-block;
  text-align: left;
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13.5px;
}
@media (max-width: 420px) {
  .actions {
    gap: 6px;
  }
  .actions .actionBtn {
    padding: 7px 12px;
    font-size: 12.5px;
  }
}

/* HP landscape: bagian lagu berjajar horizontal */
@media (orientation: landscape) and (max-height: 560px) {
  .sheet {
    padding: 12px;
  }
  #content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
  }
  #content .secBlock {
    flex: 0 0 auto;
    width: max-content;
    min-width: 0;
    max-width: none;
    margin: 0;
    border-radius: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.16);
    padding: 2px 13px;
    scroll-snap-align: start;
  }
  #content .secBlock .line:empty,
  #content .secBlock .line.blankLine {
    display: none;
  }
  body.dark #content .secBlock {
    border-right-color: rgba(255, 255, 255, 0.17);
  }
  #content .secBlock:last-child {
    border-right: none;
  }
  #content .secBlock .line {
    white-space: pre;
  }
  #content .line.chord {
    overflow-wrap: normal;
  }
}

/* Song Bank: folder berfoto (landscape 16:9) */
.folderCard {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  background: var(--d-canvas);
  border: 1px solid var(--line);
  cursor: pointer;
}
.folderCard.noPhoto {
  background: linear-gradient(135deg, #1b2530, var(--d-accent));
}
.folderCard .fcImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}
.folderCard .fcShade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 10, 16, 0.88) 0%,
    rgba(6, 10, 16, 0.46) 38%,
    rgba(6, 10, 16, 0.06) 72%,
    transparent 100%
  );
}
.folderCard .fcMeta {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
  color: var(--d-ink);
  z-index: 2;
}
.folderCard .fcName {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  transition:
    font-size 0.38s cubic-bezier(0.2, 0.7, 0.2, 1),
    letter-spacing 0.38s ease;
}
.folderCard .fcCount {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  transition: font-size 0.3s ease;
}
.folderCard:hover,
.folderCard:focus-visible,
.folderCard.isOn {
  border-color: var(--blue);
}
.folderCard:hover .fcName,
.folderCard:focus-visible .fcName,
.folderCard.isOn .fcName {
  font-size: 30px;
  letter-spacing: 0.5px;
}
.folderCard:hover .fcCount,
.folderCard:focus-visible .fcCount,
.folderCard.isOn .fcCount {
  font-size: 12.5px;
}
.folderCard:hover .fcImg,
.folderCard:focus-visible .fcImg,
.folderCard.isOn .fcImg {
  transform: scale(1.09);
}
body.dark .folderCard {
  background: var(--d-canvas);
}
@media (max-width: 600px) {
  .folderCard .fcName {
    font-size: 13px;
  }
  .folderCard:hover .fcName,
  .folderCard.isOn .fcName {
    font-size: 26px;
  }
}

/* === v54: logo Google, ikon cari, kartu lagu ringkas, perataan judul bagian === */
.btnIco {
  display: inline-block;
  width: 17px;
  height: 17px;
  vertical-align: -3px;
  margin-right: 6px;
  flex: none;
}
#onlineOpenBtn {
  display: inline-flex;
  align-items: center;
}
#googleLoginBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
#googleLoginBtn .gIco {
  width: 18px;
  height: 18px;
  flex: none;
}

/* Kartu lagu: tombol navigasi kecil di sudut kanan atas */
.songCard {
  position: relative;
  display: block;
  padding: 32px 12px 12px;
}
.songCard .scInfo {
  width: 100%;
  min-width: 0;
}
.songCard .scInfo b {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 14.5px;
  line-height: 1.3;
}
.songCard .scInfo span {
  font-size: 11.5px;
}
.scNav {
  position: absolute;
  top: 7px;
  right: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}
.scNav .scBtn {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1.55;
}
.scNav .bankCatSel {
  max-width: 96px;
  padding: 3px 5px;
}
@media (max-width: 420px) {
  .scNav .scBtn {
    font-size: 10.5px;
    padding: 3px 7px;
  }
  .scNav .bankCatSel {
    max-width: 76px;
  }
}

/* Perataan judul bagian (kiri / tengah / kanan) */
body.secAlignCenter #content .line.section,
body.secAlignCenter #editPreviewBody .line.section {
  text-align: center;
}
body.secAlignRight #content .line.section,
body.secAlignRight #editPreviewBody .line.section {
  text-align: right;
}
.secAlignRow {
  display: flex;
  gap: 6px;
}
.secAlignBtn {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--d-s1);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.secAlignBtn.isOn {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
body.dark .secAlignBtn {
  background: var(--d-s2);
  color: var(--text);
}

/* v55 - pemindah folder Song Bank */
.bankMoveBar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 2px 0 6px;
}
.bmLbl {
  font-size: 11.5px;
  color: var(--muted);
  margin-left: 4px;
}
.bmBtn {
  border: 1px solid var(--line);
  background: var(--d-s1);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.bmBtn.isOn {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.bmBtn.go {
  border-color: var(--green);
  color: var(--green);
  background: var(--greenSoft);
}
.bmBtn.go:hover {
  background: var(--green);
  color: var(--d-ink);
}
body.dark .bmBtn {
  background: var(--d-s2);
  color: var(--text);
}
.songCard.selectable {
  padding-left: 38px;
}
.bmChk {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  cursor: pointer;
}
@media (max-width: 420px) {
  .bmBtn {
    font-size: 11.5px;
    padding: 4px 10px;
  }
}

/* === v56 — WYSIWYG chord/lirik: kunci posisi chord ke huruf (monospace) === */
:root {
  --sheetSize: 15.5px;
}
body.xs {
  --sheetSize: 11.5px;
}
body.sm {
  --sheetSize: 13.5px;
}
body.big {
  --sheetSize: 18px;
}
body.xl {
  --sheetSize: 21px;
}
.sheet #content,
#editPreviewBody {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sheet .line:not(.inlineChord),
#editPreviewBody .line:not(.inlineChord) {
  font-family: var(--font-chord);
  font-size: var(--sheetSize);
  line-height: 1.5;
  letter-spacing: 0;
  white-space: pre;
  overflow-wrap: normal;
  tab-size: 4;
  -moz-tab-size: 4;
  margin: 0;
  min-height: 1.5em;
}
.sheet .line.chord,
#editPreviewBody .line.chord {
  font-size: var(--sheetSize);
  line-height: 1.5;
  letter-spacing: 0;
  white-space: pre;
  overflow-wrap: normal;
  margin: 6px 0 0;
  min-height: 1.5em;
}
.sheet .line.blankLine,
#editPreviewBody .line.blankLine {
  min-height: 0.7em;
}
.sheet .line.section,
#editPreviewBody .line.section {
  font-family: var(--font-subjudul);
  white-space: normal;
  letter-spacing: 0.02em;
  margin: 12px 0 2px;
  min-height: 0;
}
/* "batasan": batas tipis tiap bagian supaya chord tetap terikat pada barisnya */
.sheet .secBlock:not(.sec-none) {
  border-left: 2px solid rgba(0, 0, 0, 0.06);
}
body.dark .sheet .secBlock:not(.sec-none) {
  border-left-color: rgba(255, 255, 255, 0.08);
}
/* editor: tampilkan grid monospace apa adanya (tanpa bungkus baris) */
#editLines,
.structBlock textarea {
  white-space: pre;
  overflow-x: auto;
  tab-size: 4;
  -moz-tab-size: 4;
}

/* === v57 — Rapikan otomatis (lyric formatter + chord finder) === */
#autoFormatBtn {
  border-color: rgba(39, 131, 222, 0.45);
  color: var(--blue);
  font-weight: 800;
}
.afBar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -2px 0 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--blueSoft);
}
.afMsg {
  flex: 1 1 180px;
  min-width: 140px;
  font-size: 12.5px;
  line-height: 1.45;
}
.afUndo {
  border: 1px solid var(--line);
  background: var(--d-s1);
  color: var(--text);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.afUndo:hover {
  background: var(--soft);
}
body.dark .afUndo {
  background: transparent;
  color: inherit;
}

/* ==== v58: judul bagian bisa diedit + ikon tombol editor ==== */
.sbNameIn {
  flex: 1;
  min-width: 90px;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 3px 6px;
  cursor: text;
}
.sbNameIn:hover {
  border-color: var(--line);
  background: var(--soft);
}
.sbNameIn:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--blueSoft);
}
.sbNameIn.bad {
  border-color: var(--red);
  background: var(--redSoft);
}
body.dark .sbNameIn:hover,
body.dark .sbNameIn:focus {
  background: rgba(255, 255, 255, 0.07);
}
#autoFormatBtn .btnIco,
#structToggleBtn .btnIco {
  width: 18px;
  height: 18px;
  vertical-align: -4px;
  margin-right: 6px;
}

/* ===================== v60: Tombol melayang + Wheel ===================== */
#atBtn {
  position: fixed;
  z-index: 9998;
  left: auto;
  right: 14px;
  top: 60%;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  transition:
    opacity 0.35s ease,
    transform 0.16s ease;
}
#atBtn.idle {
  opacity: 0.42;
}
#atBtn.dragging {
  cursor: grabbing;
  transform: scale(1.08);
}
#atBtn:active {
  transform: scale(0.94);
}
.atDot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 34% 30%,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.32)
  );
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.18);
}
body.dark #atBtn {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(30, 32, 44, 0.42);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
body.dark .atDot {
  background: radial-gradient(
    circle at 34% 30%,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.18)
  );
  border-color: rgba(255, 255, 255, 0.24);
}

#atOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 18, 26, 0.3);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: atFade 0.18s ease both;
}
#atOverlay[hidden] {
  display: none;
}
@keyframes atFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#atWheel {
  position: relative;
  width: 292px;
  height: 292px;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0.16)
  );
  border: 1px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  animation: atPop 0.3s cubic-bezier(0.2, 1.1, 0.3, 1) both;
}
@keyframes atPop {
  from {
    transform: scale(0.72) rotate(-8deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}
#atWheel.closing {
  animation: atPopOut 0.16s ease both;
}
@keyframes atPopOut {
  to {
    transform: scale(0.8);
    opacity: 0;
  }
}
body.dark #atWheel {
  background: linear-gradient(
    145deg,
    rgba(42, 44, 60, 0.62),
    rgba(24, 25, 34, 0.42)
  );
  border-color: rgba(255, 255, 255, 0.16);
}
.atRing {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
body.dark .atRing {
  border-color: rgba(255, 255, 255, 0.14);
}

.atItem {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  padding: 0 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.36);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transform: translate(0, 0) scale(0.2);
  opacity: 0;
  animation: atIn 0.36s cubic-bezier(0.2, 1.2, 0.3, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes atIn {
  to {
    transform: translate(var(--x), var(--y)) scale(1);
    opacity: 1;
  }
}
.atItems.leaving .atItem {
  animation: atOut 0.16s ease forwards;
  animation-delay: 0ms;
}
@keyframes atOut {
  from {
    transform: translate(var(--x), var(--y)) scale(1);
    opacity: 1;
  }
  to {
    transform: translate(0, 0) scale(0.3);
    opacity: 0;
  }
}
.atItem:active {
  filter: brightness(1.12);
}
.atItem.pressed {
  animation: atPress 0.32s ease;
}
@keyframes atPress {
  0% {
    transform: translate(var(--x), var(--y)) scale(1);
  }
  40% {
    transform: translate(var(--x), var(--y)) scale(1.18);
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(1);
  }
}
.atItem.on {
  background: rgba(39, 131, 222, 0.32);
  border-color: rgba(39, 131, 222, 0.6);
}
.atItem.cur {
  background: rgba(70, 161, 113, 0.32);
  border-color: rgba(70, 161, 113, 0.6);
}
.atIco {
  font-size: 19px;
  line-height: 1;
}
.atItem .lottieIco {
  width: 24px;
  height: 24px;
}
.atLbl {
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.dark .atItem {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: var(--d-ink);
}

.atHub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 94px;
  height: 94px;
  margin: -47px 0 0 -47px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.52);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.atHub:active {
  transform: scale(0.95);
}
.atHubIco {
  width: 30px;
  height: 30px;
}
.atHubLbl {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atHubSub {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
}
body.dark .atHub {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: var(--d-ink);
}
body.dark .atHubSub {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 380px) {
  #atWheel {
    width: 262px;
    height: 262px;
  }
  .atItem {
    width: 62px;
    height: 62px;
    margin: -31px 0 0 -31px;
  }
}

/* ===================== v61: Token gerak + reduced motion ===================== */
/* Arketipe Premium: halus, tanpa overshoot. */
:root {
  --dur-micro: 100ms;
  --dur-quick: 180ms;
  --dur-normal: 300ms;
  --dur-slow: 450ms;
  --ease-sig: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-in: cubic-bezier(0.3, 0, 1, 1);
}

/* Wajib: hormati pengaturan "kurangi gerak" di sistem operasi. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   v62 - logo api, semitone, rekaman, poles UI, assistive touch
   Prinsip: hanya transform + opacity + filter. Tanpa animasi
   layout (width/height/top/left). Hormati prefers-reduced-motion.
   ============================================================ */

:root {
  --flame-deep: var(--d-accent-deep);
  --flame-mid: var(--d-accent);
  --flame-bright: var(--d-accent-hi);
  --ring: 0 0 0 3px rgba(39, 131, 222, 0.28);
  --lift: 0 6px 18px -8px rgba(20, 30, 50, 0.28);
  --lift-sm: 0 3px 10px -6px rgba(20, 30, 50, 0.24);
}

/* ---------- 1. LOGO: api biru -> logo lama (fade) ---------- */
.brandMark {
  position: relative;
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  display: block;
  line-height: 0;
  align-self: center;
  overflow: visible; /* v63: api boleh sedikit melewati lingkaran */
}
.brandFlame {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition:
    opacity 220ms var(--ease-out, ease-out),
    transform 520ms var(--ease-sig, ease);
  transform: scale(1);
  pointer-events: none;
}
.brandMark.flameOn .brandFlame {
  opacity: 1;
}
.brandFlame svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* v63: kunci ukuran gambar ke wadahnya. Tanpa ini, aturan lama
   `.brand img { width:74px }` menang karena lebih spesifik dan logo
   meluber keluar wadah 58px di layar HP sehingga menabrak judul. */
.brand .brandMark .brandLogo,
.brandLogo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 460ms var(--ease-out, ease-out),
    transform 560ms var(--ease-sig, ease);
  will-change: opacity, transform;
}
/* saat logo lama masuk, api mengecil & memudar */
.brandMark.logoIn .brandLogo {
  opacity: 1;
  transform: scale(1);
}
.brandMark.logoIn .brandFlame {
  opacity: 0;
  transform: scale(1.14);
}
.brandMark.flameGone .brandFlame {
  display: none;
}
.brandMark.noAnim .brandLogo,
.brandMark.noAnim .brandFlame {
  transition: none;
}

/* ---------- 2. SEMITONE (naik/turun setengah nada) ---------- */
.semiRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.semiBtn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--d-s1);
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--dur-quick, 180ms) var(--ease-out, ease),
    background var(--dur-quick, 180ms) linear,
    border-color var(--dur-quick, 180ms) linear;
}
.semiBtn:hover {
  background: var(--blueSoft);
  border-color: var(--blue);
}
.semiBtn:active {
  transform: scale(0.92);
}
.semiBtn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.semiBtn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.semiInfo {
  min-width: 92px;
  padding: 5px 12px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  text-align: center;
  line-height: 1.15;
}
.semiLbl {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.semiVal {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.semiVal.up {
  color: var(--green);
}
.semiVal.down {
  color: var(--blue);
}
.semiVal.bump {
  animation: semiBump 260ms var(--ease-out, ease-out);
}
@keyframes semiBump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.16);
  }
  100% {
    transform: scale(1);
  }
}
.semiReset {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--d-s1);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform var(--dur-quick, 180ms) var(--ease-out, ease),
    color var(--dur-quick, 180ms) linear;
}
.semiReset:hover {
  color: var(--text);
  border-color: var(--blue);
}
.semiReset:active {
  transform: scale(0.94);
}
.semiHint {
  width: 100%;
  font-size: 11.5px;
  color: var(--muted);
  margin: 2px 0 0;
}
body.dark .semiBtn,
body.dark .semiReset {
  background: var(--d-s2);
  border-color: var(--d-ink-3);
  color: var(--d-ink-3);
}
body.dark .semiInfo {
  background: var(--d-s1);
  border-color: var(--d-ink-3);
}
body.dark .semiVal {
  color: var(--d-ink-3);
}

/* ---------- 3. REKAMAN ---------- */
.recBack {
  z-index: 9400;
}
.recModal {
  max-width: 460px;
  width: 100%;
}
.recHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.recTitle {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.recSub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.recX {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
  transition: transform var(--dur-quick, 180ms) var(--ease-out, ease);
}
.recX:hover {
  color: var(--red);
}
.recX:active {
  transform: scale(0.9);
}
.recStage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 0 12px;
}
#recDot {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform var(--dur-quick, 180ms) var(--ease-out, ease),
    border-color var(--dur-quick, 180ms) linear;
}
#recDot:hover {
  border-color: var(--red);
}
#recDot:active {
  transform: scale(0.94);
}
#recDot:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.recDotIn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  transition:
    border-radius 200ms var(--ease-sig, ease),
    transform 200ms var(--ease-sig, ease);
}
.recModal.isRec .recDotIn {
  border-radius: 6px;
  transform: scale(0.72);
}
.recModal.isRec #recDot {
  border-color: var(--red);
  animation: recPulse 1.6s ease-in-out infinite;
}
@keyframes recPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(229, 100, 88, 0.34);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(229, 100, 88, 0);
  }
}
#recTime {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: 0.02em;
}
#recHint {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  text-align: center;
}
#recWave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 22px;
  opacity: 0;
  transition: opacity var(--dur-quick, 180ms) linear;
}
.recModal.isRec #recWave {
  opacity: 1;
}
#recWave i {
  width: 4px;
  height: 6px;
  border-radius: 3px;
  background: var(--blue);
  display: block;
  transform-origin: bottom center;
  animation: recWave 900ms ease-in-out infinite;
  animation-delay: calc(var(--i) * 110ms);
}
@keyframes recWave {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(3.2);
  }
}
#recList {
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.recItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--d-s1);
  transition:
    border-color var(--dur-quick, 180ms) linear,
    transform var(--dur-quick, 180ms) var(--ease-out, ease);
}
.recItem:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}
.recItem.playing {
  border-color: var(--blue);
  background: var(--blueSoft);
}
.recPlay {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--soft);
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-quick, 180ms) var(--ease-out, ease);
}
.recPlay:active {
  transform: scale(0.9);
}
.recInfo {
  flex: 1 1 auto;
  min-width: 0;
}
.recName {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recItemMeta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.recMini {
  border: 1px solid var(--line);
  background: var(--d-s1);
  border-radius: 9px;
  padding: 5px 8px;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
  transition:
    transform var(--dur-quick, 180ms) var(--ease-out, ease),
    color var(--dur-quick, 180ms) linear;
}
.recMini:hover {
  color: var(--text);
}
.recMini:active {
  transform: scale(0.92);
}
.recMini.danger:hover {
  color: var(--red);
  border-color: var(--red);
}
.recEmpty {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  padding: 18px 8px;
}
.recFoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
#recNote {
  font-size: 11.5px;
  color: var(--muted);
}
/* lencana jumlah rekaman di tombol lagu */
.recBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  margin-left: 6px;
  border-radius: 9px;
  background: var(--blueSoft);
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 700;
  vertical-align: middle;
  line-height: 1;
}
body.dark .recItem,
body.dark .recPlay,
body.dark .recMini {
  background: var(--d-s2);
  border-color: var(--d-ink-3);
  color: var(--d-ink-3);
}
body.dark #recDot {
  background: var(--d-s1);
  border-color: var(--d-ink-3);
}

/* ---------- 4. POLES UI RINGAN (arketipe Premium) ---------- */
/* fokus keyboard konsisten & terlihat (WCAG) */
.actionBtn:focus-visible,
.songBtn:focus-visible,
.keyBtn:focus-visible,
.menuBtn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
/* tekanan tombol terasa, tanpa memindah layout */
.actionBtn {
  transition:
    transform var(--dur-quick, 180ms) var(--ease-out, ease),
    box-shadow var(--dur-quick, 180ms) var(--ease-out, ease),
    filter var(--dur-quick, 180ms) linear;
}
.actionBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--lift-sm);
}
.actionBtn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
}
.songBtn {
  transition:
    transform var(--dur-quick, 180ms) var(--ease-out, ease),
    border-color var(--dur-quick, 180ms) linear,
    box-shadow var(--dur-quick, 180ms) var(--ease-out, ease);
}
.songBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--lift-sm);
}
.songBtn:active {
  transform: scale(0.98);
}
.keyBtn {
  transition:
    transform var(--dur-micro, 100ms) var(--ease-out, ease),
    background var(--dur-quick, 180ms) linear;
}
.keyBtn:active {
  transform: scale(0.92);
}
/* remah status lebih rapi */
.crumbItem {
  transition: color var(--dur-quick, 180ms) linear;
}
/* modal masuk lebih halus (Premium: 350-600ms, tanpa overshoot) */
.modalBackdrop {
  transition: opacity var(--dur-normal, 300ms) var(--ease-out, ease);
}
.modalBackdrop .modal {
  transition:
    transform 380ms var(--ease-sig, ease),
    opacity 280ms var(--ease-out, ease);
}
/* v63 PENTING: aplikasi ini membuka modal dengan kelas .open.
   Kelas .show hanya dipakai panel rekaman v62. Dukung KEDUANYA,
   dan jangan pernah menyembunyikan modal yang sudah terbuka. */
.modalBackdrop:not(.show):not(.open) .modal {
  transform: translateY(10px) scale(0.985);
  opacity: 0;
}
.modalBackdrop.show .modal,
.modalBackdrop.open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ---------- 5. ASSISTIVE TOUCH LEBIH SEGAR ---------- */
/* denyut lembut pada tombol saat menganggur (pseudo-element saja,
   supaya tidak bentrok dengan transform drag milik JS) */
#atBtn::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--flame-mid);
  opacity: 0;
  pointer-events: none;
  animation: atHalo 3.4s ease-out infinite;
}
#atBtn.dragging::after,
#atBtn:active::after {
  animation: none;
  opacity: 0;
}
@keyframes atHalo {
  0% {
    transform: scale(0.86);
    opacity: 0;
  }
  22% {
    opacity: 0.5;
  }
  60%,
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}
/* item roda: pegas masuk dari pusat + sedikit blur -> tajam */
.atItem {
  animation: atPop 420ms var(--ease-sig, cubic-bezier(0.4, 0, 0.2, 1)) both;
  animation-delay: var(--d, 0ms);
}
@keyframes atPop {
  0% {
    transform: translate(0, 0) scale(0.42);
    opacity: 0;
    filter: blur(5px);
  }
  55% {
    filter: blur(0);
  }
  70% {
    transform: translate(var(--x, 0), var(--y, 0)) scale(1.06);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x, 0), var(--y, 0)) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}
.atItem.cur {
  animation-name: atPopCur;
}
@keyframes atPopCur {
  0% {
    transform: translate(0, 0) scale(0.42);
    opacity: 0;
    filter: blur(5px);
  }
  70% {
    transform: translate(var(--x, 0), var(--y, 0)) scale(1.12);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: translate(var(--x, 0), var(--y, 0)) scale(1.04);
    opacity: 1;
  }
}
/* hub bernapas halus */
.atHub {
  animation: atBreathe 4.2s ease-in-out infinite;
}
@keyframes atBreathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}
/* penutupan roda: mengempis balik ke pusat */
#atOverlay.closing .atItem {
  animation: atOut 150ms var(--ease-in, cubic-bezier(0.3, 0, 1, 1)) both;
  animation-delay: 0ms;
}
@keyframes atOut {
  0% {
    transform: translate(var(--x, 0), var(--y, 0)) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) scale(0.55);
    opacity: 0;
  }
}
#atOverlay.closing .atHub {
  animation: atHubOut 150ms var(--ease-in, ease-in) both;
}
@keyframes atHubOut {
  to {
    transform: scale(0.8);
    opacity: 0;
  }
}

/* ---------- 6. HORMATI PENGATURAN GERAK MINIM ---------- */
@media (prefers-reduced-motion: reduce) {
  .brandFlame,
  .brandLogo,
  .atItem,
  .atHub,
  #atBtn::after,
  #recWave i,
  .semiVal.bump,
  #recDot,
  .modalBackdrop .modal {
    animation: none !important;
    transition: none !important;
  }
  .brandLogo {
    opacity: 1 !important;
    transform: none !important;
  }
  .atItem {
    transform: translate(var(--x, 0), var(--y, 0)) !important;
    opacity: 1 !important;
    filter: none !important;
  }
  .actionBtn:hover,
  .songBtn:hover,
  .recItem:hover {
    transform: none;
  }
}

/* ---------- 7. LAYAR KECIL ---------- */
@media (max-width: 420px) {
  .brand .brandMark {
    width: 58px;
    height: 58px;
  }
  .brand .brandMark .brandLogo {
    width: 100%;
    height: 100%;
  }
  .semiInfo {
    min-width: 80px;
  }
  .recModal {
    max-width: 100%;
  }
}

/* ---------- 8. JANGAN CETAK ---------- */
@media print {
  .semiRow,
  .recBack,
  .brandFlame {
    display: none !important;
  }
}

/* ---------- v63: PANEL NADA DI PEMUTAR ---------- */
.ytPitch {
  display: none;
  margin: 10px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.ytPitch.open {
  display: block;
}
.ytPitchRow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ytPitchRow + .ytPitchRow {
  margin-top: 8px;
}
.ytPitchLbl {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 52px;
}
.semiTone {
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--d-s1);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform var(--dur-quick, 180ms) var(--ease-sig, ease),
    box-shadow var(--dur-quick, 180ms) var(--ease-sig, ease);
}
.semiTone:hover {
  transform: translateY(-1px);
  box-shadow: var(--lift-sm, 0 2px 8px rgba(0, 0, 0, 0.08));
}
.semiTone:active {
  transform: scale(0.97);
}
.ytPitch .semiHint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 420px) {
  .semiTone {
    margin-left: 0;
    width: 100%;
  }
}
@media print {
  .ytPitch {
    display: none !important;
  }
}


/* === PROYEKTOR v69: logo animasi (Lottie presenter.json) + jam layar standby === */
#displayScreen .dispIdleInner{opacity:1;}
#displayScreen .dispLogo{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-bottom:22px;}
#displayScreen .dispLogoAnim{box-sizing:border-box;width:min(38vh,320px);height:min(38vh,320px);max-width:70vw;margin:0 auto;padding:7%;display:flex;align-items:center;justify-content:center;border-radius:32px;background:radial-gradient(120% 120% at 50% 32%, #FFFFFF 0%, #E5F3F8 100%);box-shadow:0 26px 70px rgba(0,0,0,.5), inset 0 0 0 1px rgba(18,130,162,.18);}
#displayScreen .dispLogoAnim svg{width:100%!important;height:100%!important;display:block;}
#displayScreen .dispLogo.hasLogo .dispLogoFallback{display:none;}
.dispLogoFallback{font-size:72px;line-height:1;}
#displayScreen #dispWait{font-size:clamp(15px,2.4vh,22px);color:#c7d0dc;letter-spacing:.02em;margin:0;}
#displayScreen .dispClock{margin-top:10px;font-family:var(--font-chord,"JetBrains Mono",monospace);font-size:clamp(30px,7vh,72px);font-weight:700;letter-spacing:.04em;color:#fff;opacity:.92;}


/* === STAGE DISPLAY (mode=stage) v69: layar musisi === */
body.stage-mode .dispBar{background:#05070c;color:#cdd6e2;}
body.stage-mode .dispBrand{letter-spacing:.5px;font-weight:700;color:#e6edf5;}
.stageClock{margin-left:auto;font-family:var(--font-chord,"JetBrains Mono",monospace);font-weight:700;font-size:16px;letter-spacing:.06em;color:#8fd0e0;}
body.stage-mode #dispClock{display:none;}
body.stage-mode .dispStage{padding:2.5vh 4vw;}
body.stage-mode .dispStage h2{font-size:clamp(30px,5.2vw,80px);}
body.stage-mode .dispContent{font-size:clamp(20px,3.2vw,44px);line-height:1.5;}
body.stage-mode .dispContent .line.chord,
body.stage-mode .dispContent .ic-ch{color:#7fe0ff !important;font-weight:700;}


/* === Slide teks/pengumuman (kind:text) v71 === */
/* Hormati atribut hidden pada #dispIdle: sebelumnya .dispIdle{display:flex} menimpa [hidden],
   sehingga logo standby tetap tampil saat lagu/teks aktif. Ini memperbaikinya. */
.dispIdle[hidden]{display:none !important;}
/* v81: atribut hidden WAJIB menang di layar output.
   Sebelumnya #displayScreen.yvSlideMode .dispStage{position:absolute;inset:0;
   display:flex} menimpa [hidden] bawaan browser, sehingga slide lama tetap
   menutupi seluruh layar saat output kembali idle. */
#displayScreen [hidden],
.dispStage[hidden]{display:none !important;}
/* v81: penangkal untuk KELAS bug yang sama di luar layar output.
   Aturan display dari stylesheet selalu mengalahkan [hidden] bawaan browser,
   jadi tiap elemen yang disembunyikan lewat JS wajib punya penangkal sendiri.
   Ditemukan lewat audit menyeluruh: panel ini tampil serentak padahal JS
   sudah menyuruhnya sembunyi (tab latar proyektor, katalog, bar rapikan). */
#afBar[hidden],
#projSolids[hidden],
#projPresets[hidden],
#projBgApi[hidden],
#projSlideGrid[hidden],
#projCatalogList[hidden],
#projBgStudio[hidden],
#projBgMediaLib[hidden]{display:none !important;}
#displayScreen.dispTextMode #dispStage{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:100%;}
#displayScreen.dispTextMode #dispTitle,
#displayScreen.dispTextMode #dispKey{display:none;}
#displayScreen.dispTextMode #dispContent{display:flex;align-items:center;justify-content:center;width:100%;}
.dispTextBlock{max-width:88vw;display:flex;flex-direction:column;gap:.35em;}
.dispTextLine{font-family:var(--font-judul,"JetBrains Mono",monospace);font-weight:800;color:#fff;font-size:clamp(28px,6.5vh,88px);line-height:1.22;}
.dispTextLine:empty{min-height:.5em;}
body.stage-mode #displayScreen.dispTextMode .dispTextLine{font-size:clamp(24px,5vh,64px);}

/* === Slide ayat Alkitab (kind:verse) v72 === */
.dispVerseBlock{max-width:90vw;display:flex;flex-direction:column;gap:1.1em;align-items:center;}
.dispVerseText{display:flex;flex-direction:column;gap:.3em;}
.dispVerseText .dispTextLine{font-weight:700;}
.dispVerseRef{font-family:var(--font-judul,"JetBrains Mono",monospace);font-size:clamp(18px,3.2vh,40px);font-weight:700;color:#7fe0ff;letter-spacing:.04em;}
body.stage-mode #displayScreen.dispTextMode .dispVerseRef{color:#8fd0e0;}

/* === Navigasi per-bait (Fitur 4) v73 === */
.baitNav{position:fixed;left:50%;transform:translateX(-50%);bottom:16px;z-index:60;display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(14,18,28,.92);border:1px solid rgba(127,224,255,.35);box-shadow:0 8px 28px rgba(0,0,0,.45);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);}
.baitNav[hidden]{display:none !important;}
.baitNavLbl{font-size:12px;letter-spacing:.04em;color:#9fb3c8;text-transform:uppercase;}
.baitNavBtn{font:inherit;font-weight:700;cursor:pointer;border-radius:999px;padding:8px 16px;border:1px solid rgba(127,224,255,.45);background:linear-gradient(180deg,#1b2740,#141d30);color:#eaf2ff;}
.baitNavBtn:active{transform:translateY(1px);}
@media (max-width:520px){.baitNavLbl{display:none;}.baitNav{bottom:12px;padding:6px 10px;gap:6px;}.baitNavBtn{padding:8px 14px;}}

/* === Background/media per lagu (Fitur 5) v74 === */
.dispBg{position:absolute;inset:0;z-index:0;background-position:center;background-size:cover;background-repeat:no-repeat;opacity:0;transition:opacity .5s ease;pointer-events:none;}
.dispBg.on{opacity:1;}
.dispBg.on::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,9,16,.60),rgba(6,9,16,.80));}
#displayScreen .dispBar,#displayScreen .dispIdle,#displayScreen .dispStage{position:relative;z-index:1;}

/* === Proyektor: keterbacaan teks di atas permukaan gelap + gambar latar (Fitur 5) === */
#displayScreen{color:#f4f8ff;}
#displayScreen .dispContent .line{color:#f4f8ff;}
#displayScreen #dispWait,#displayScreen .dispKey{color:#dbe6f5;}
#dispBg.on ~ .dispStage h2,#dispBg.on ~ .dispStage .dispContent{text-shadow:0 2px 12px rgba(0,0,0,.72),0 1px 3px rgba(0,0,0,.85);}
