/* ==========================================================================
   Toko Gitar AYRI — app.css (mode aplikasi untuk alat latihan)
   Satu layar penuh tanpa scroll halaman, tab bar alat di bawah (HP) atau
   segmen di atas (layar lebar), laci (bottom sheet), dan kontrol form.
   Tinggi layar nyata (--app-h) & tingkat kepadatan .fit1–.fit3 diatur app.js.
   Token & komponen dasar ada di theme-dark.css; tampilan alat di tools.css.
   ========================================================================== */

/* Alias warna untuk skrip yang membaca variabel CSS lama (garis waktu di transkrip.html) */
:root { --sub: var(--ink-3); --edge: var(--line-strong); --card: var(--surface); --acc: #9E5A0C; }
html[data-theme="dark"] { --acc: #A8620F; }

:root {
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23766B61' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23766B61' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E");
  --i-mic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5.5 11a6.5 6.5 0 0 0 13 0M12 17.5V21'/%3E%3C/svg%3E");
}
html[data-theme="dark"] {
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23998E81' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E");
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23998E81' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* 1. Kerangka satu layar
   ========================================================================== */
body.app-page { height: 100vh; height: var(--app-h, 100dvh); overflow: hidden; padding-bottom: 0; }
body.app-page > .site-footer { display: none; }
.app-page .site-header::before { opacity: 1; }
.app-page .site-header { border-bottom-color: var(--line); }

main.app {
  --dock-h: calc(66px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-width: 1100px; height: 100vh; height: var(--app-h, 100dvh);
  margin: 0 auto;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 12px) max(12px, env(safe-area-inset-right)) calc(var(--dock-h) + 12px) max(12px, env(safe-area-inset-left));
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  color: var(--ink);
}
main.app > * { min-width: 0; flex: 0 0 auto; }

/* 2. Pindah alat: tab bar bawah (HP) */
.apptop {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: flex; align-items: stretch;
  height: var(--dock-h);
  padding: 4px max(6px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px, env(safe-area-inset-left));
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -20px rgba(28, 22, 16, .35);
}
.tt { flex: 6 1 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ib { flex: 1 1 0; }
.tt a,
.ib {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 0; padding: 0; border: 0; background: none;
  font: 600 .6875rem/1.1 var(--font-sans); letter-spacing: .01em; color: var(--ink-3);
  white-space: nowrap; cursor: pointer;
  transition: color .2s;
}
.tt a span, .ib span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tt a .ic, .ib .ic { width: 22px; height: 22px; transition: transform .35s var(--spring); }
.tt a::before {
  content: ""; position: absolute; z-index: -1; top: 5px; left: 50%;
  width: 56px; height: 30px; margin-left: -28px; border-radius: var(--r-pill);
  background: var(--accent-soft);
  transform: scaleX(.4); opacity: 0; transition: transform .35s var(--ease-out), opacity .2s;
}
.tt a[aria-current="page"] { color: var(--accent); }
.tt a[aria-current="page"]::before { transform: none; opacity: 1; }
.tt a:active .ic, .ib:active .ic { transform: scale(.86); }
/* enam alat + Info di layar sangat sempit: label dikecilkan dan Info cukup ikon, supaya nama alat tidak terpotong */
@media (max-width: 379.98px) { .tt a, .ib { font-size: .625rem; letter-spacing: 0; } .ib { flex: 0 0 36px; } .ib span { display: none; } }
/* HP: header dan tab bar diramping supaya ruang alat lebih luas; area aman bawah (garis home iPhone) tidak ditambah penuh */
@media (max-width: 899.98px), (max-height: 519.98px) {
  .app-page { --header-h: 48px; }
  .app-page .brand { gap: 8px; font-size: .9375rem; }
  .app-page .brand__mark { width: 24px; height: 28px; }
  .app-page .nav__toggle { width: 38px; height: 38px; }
  main.app { --dock-h: calc(52px + max(0px, env(safe-area-inset-bottom) - 14px)); padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 8px); padding-bottom: calc(var(--dock-h) + 8px); }
  .apptop { padding-top: 2px; padding-bottom: max(0px, env(safe-area-inset-bottom) - 14px); }
  .tt a, .ib { gap: 2px; }
  .tt a .ic, .ib .ic { width: 20px; height: 20px; }
}

/* 3. Laci (bottom sheet) untuk info & opsi jarang dipakai
   ========================================================================== */
.drawer {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(18, 14, 10, .5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: fade-in .25s var(--ease);
}
.drawer[hidden] { display: none; }
.drawer-in {
  position: relative; width: 100%; max-width: 640px;
  max-height: 88vh; max-height: 88dvh; overflow: auto; overscroll-behavior: contain;
  padding: 30px 20px calc(22px + env(safe-area-inset-bottom));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lg);
  animation: sheet-up .45s var(--ease-out);
}
.drawer-in::before {
  content: ""; position: absolute; top: 10px; left: 50%;
  width: 40px; height: 4px; margin-left: -20px; border-radius: 4px;
  background: var(--line-strong);
}
.drawer-in h2 {
  margin: 1.5rem 0 .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; line-height: 1.2; letter-spacing: -.01em;
}
.drawer-in > h2:first-child,
.drawer-in > .drawer-x + h2 { margin-top: 0; }
.drawer-x { float: right; margin: -4px 0 8px 12px; }
@media (min-width: 760px) {
  .drawer { align-items: center; padding: 24px; }
  .drawer-in { border-radius: var(--r-xl); padding: 28px; animation-name: sheet-in; }
  .drawer-in::before { display: none; }
}
html[data-theme="dark"] .drawer { background: rgba(0, 0, 0, .6); }
html[data-theme="dark"] .drawer-in { border: 1px solid var(--line); }

/* 4. Kontrol form & tombol aplikasi
   ========================================================================== */
.lb {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3);
}
select.sel,
.numin {
  width: 100%; min-width: 0; height: 44px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background-color: var(--surface); color: var(--ink);
  font: 600 .9375rem/1.2 var(--font-sans); letter-spacing: 0; text-transform: none;
  transition: border-color .2s, box-shadow .2s;
}
select.sel {
  -webkit-appearance: none; appearance: none;
  padding: 0 30px 0 12px; text-overflow: ellipsis; cursor: pointer;
  background-image: var(--chev); background-repeat: no-repeat; background-position: right 9px center; background-size: 16px;
}
.numin { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
select.sel:hover, .numin:hover { border-color: var(--ink-3); }
select.sel:focus-visible, .numin:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.t-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 1.4rem;
  border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--wa); color: #fff;
  font: 700 1rem/1.1 var(--font-sans);
  cursor: pointer; -webkit-user-select: none; user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 22px -10px rgba(18, 128, 77, .6);
  transition: transform .2s var(--ease-out), background-color .2s, border-color .2s, color .2s, box-shadow .25s;
}
.t-btn:hover { background: var(--wa-hover); }
.t-btn:active { transform: scale(.97); transition-duration: .08s; }
.t-btn.alt {
  min-height: 44px; padding: 0 1rem;
  border-color: var(--line-strong); background: var(--surface); color: var(--ink);
  font-size: .9375rem; box-shadow: var(--shadow-sm);
}
.t-btn.alt:hover { border-color: var(--ink-3); }
.t-btn.alt.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

button.chip { font-family: var(--font-sans); cursor: pointer; }
.chip.on,
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }

/* 5. Tata letak: Tuner
   ========================================================================== */
/* alat musik + tombol pengaturan di baris 1, setelan (teks panjang) selebar layar di baris 2; mode presisi, mikrofon, dan A4 ada di panel tombol pengaturan */
.tuner-app .selrow {
  position: relative; display: grid; gap: 8px; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "inst gear" "tun tun";
}
.tuner-app .selrow:has(#tonicwrap:not([hidden])) { grid-template-areas: "inst gear" "tun tun" "tonic tonic"; }
.tuner-app .selrow > .lb-i { grid-area: inst; }
.tuner-app .selrow > #tsetbtn { grid-area: gear; width: 44px; height: 44px; }
.tuner-app .selrow > .lb-t { grid-area: tun; }
.tuner-app .selrow > #tonicwrap { grid-area: tonic; }
.tuner-app .selrow > .lb-i, .tuner-app .selrow > .lb-t { gap: 0; font-size: 0; }
.tuner-app .tset-panel {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  flex-direction: column; gap: 12px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-md);
}
.tuner-app .tset-panel.buka { display: flex; }
.tuner-app .tm { flex: 1 1 0; min-height: 0; }
.tuner-app .ctl-col { display: contents; }
.tuner-app .strrow { display: flex; align-items: stretch; gap: 6px; }
.tuner-app #pianobar { align-items: flex-end; }
.tuner-app #pianobar .lb { flex: 1; }
.tuner-app #pplay { min-width: 48px; padding: 0; }
.tuner-app #start { width: 100%; }

/* 5b. Tata letak: Chord
   ========================================================================== */
.chords-app .selpanel {
  display: flex; flex-direction: column;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.chords-app .chcard { flex: 1 1 0; min-height: 0; }
.srchrow { display: flex; gap: 8px; padding-bottom: 8px; }
.srchrow .srch { flex: 1 1 auto; min-width: 0; }
.instsel { display: none; flex: 0 0 36%; min-width: 0; }
.selsec { padding: 8px 0; border-top: 1px solid var(--line); }
.selsec:last-child { padding-bottom: 2px; }
.sl {
  display: none; margin-bottom: 6px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
@media (min-width: 900px), (min-height: 900px) { .sl { display: block; } }
.instg { display: flex; gap: 5px; }
.rootg { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.typeg { display: flex; flex-wrap: wrap; gap: 5px; }
.chords-app .instg .chip { flex: 1 1 0; justify-content: center; min-width: 0; height: 36px; padding: 0 6px; font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; }
.chords-app .rootg .chip { height: 36px; padding: 0; justify-content: center; font-size: .875rem; }
.chords-app .typeg .chip { height: 32px; padding: 0 10px; font-size: .8125rem; }
@media (max-width: 899.98px) and (max-height: 700px) {
  .instsel { display: block; }
  .selpanel .selinst { display: none; }
  .chords-app .srchrow select.sel, .chords-app .srch { height: 40px; }
  .selsec { padding: 6px 0; }
  .chords-app .rootg .chip { height: 31px; }
  .chords-app .typeg .chip { height: 29px; padding: 0 8px; font-size: .75rem; }
}

/* 5c. Tata letak: Metronom
   ========================================================================== */
.metro-app .mtgrid { display: flex; flex-direction: column; gap: 10px; flex: 1 1 0; min-height: 0; }
.metro-app #mt { flex: 1 1 0; min-height: 0; }
.mtset { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr) minmax(0, 1fr) 54px; gap: 6px; }
.mtset2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 14px; }
.mttr { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: end; gap: 6px; }
.mttr .lb { white-space: nowrap; text-transform: none; letter-spacing: 0; font-size: .75rem; }
.mttr.mati .lb:not(:first-child) { opacity: .45; }
.mtpre { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }

/* 5d. Tata letak: Transkrip
   ========================================================================== */
.trans-app .drop { flex: 1 1 0; min-height: 0; }
.trans-app .tapp { display: flex; flex-direction: column; gap: 10px; flex: 1 1 0; min-height: 0; }
.trans-app .tr-stage { flex: 1 1 0; min-height: 0; }
.trans-app .tr-now { flex: 1 1 0; min-height: 84px; }

/* 6. Layar lebar: segmen alat di atas, panel kontrol di samping
   ========================================================================== */
@media (min-width: 900px) and (min-height: 520px) {
  main.app { --dock-h: 0px; gap: 16px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }

  .apptop {
    position: static; display: flex; align-items: center; gap: 10px;
    height: auto; padding: 0;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    border: 0; box-shadow: none;
  }
  .tt {
    display: flex; flex: 1; gap: 4px; padding: 5px;
    border: 1px solid var(--line); border-radius: var(--r-pill);
    background: var(--surface); box-shadow: var(--shadow-sm);
  }
  .tt a {
    flex: 1; flex-direction: row; gap: 8px; height: 44px;
    border-radius: var(--r-pill);
    font-size: .9375rem; color: var(--ink-2);
    transition: color .2s, background-color .25s;
  }
  .tt a .ic { width: 18px; height: 18px; }
  .tt a::before { display: none; }
  .tt a:hover { color: var(--ink); background: var(--surface-2); }
  .tt a[aria-current="page"] { background: var(--ink); color: var(--bg); }
  .ib {
    flex: 0 0 auto; width: 56px; height: 56px;
    border: 1px solid var(--line); border-radius: 50%;
    background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-sm);
  }
  .ib:hover { color: var(--accent); border-color: var(--accent-line); }
  .ib span { display: none; }

  main.tuner-app {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas: "top top" "meter sel" "meter ctl";
    gap: 16px 24px;
  }
  .tuner-app .apptop { grid-area: top; }
  .tuner-app .tm { grid-area: meter; }
  .tuner-app .selrow,
  .tuner-app .ctl-col {
    padding: 18px;
    border: 1px solid var(--line); border-radius: var(--r-xl);
    background: var(--surface); box-shadow: var(--shadow-sm);
  }
  /* PC: tampilan lama (label terlihat, mode presisi dan mikrofon di baris kedua, A4 di bawah senar); tombol pengaturan dan panelnya hanya untuk HP */
  .tuner-app .selrow { grid-area: sel; gap: 12px; grid-template-columns: 1fr 1fr; grid-template-areas: "inst tun" "pres sens"; align-items: end; }
  .tuner-app .selrow:has(#tonicwrap:not([hidden])) { grid-template-areas: "inst tun" "tonic sens" "pres pres"; }
  .tuner-app .selrow > .lb-i, .tuner-app .selrow > .lb-t { gap: 4px; font-size: .6875rem; }
  .tuner-app #tsetbtn { display: none; }
  .tuner-app .tset-panel, .tuner-app .tset-panel.buka { display: contents; }
  .tuner-app .tset-panel > .lb-cek { grid-area: pres; align-self: center; justify-content: space-between; max-width: 11rem; }
  .tuner-app .tset-panel > .lb:not(.lb-cek) { grid-area: sens; }
  .tuner-app .ctl-col > .strrow, .tuner-app .ctl-col > #pianobar { margin-block: auto; }
  .tuner-app .ctl-col > .strrow { flex: 1 1 auto; max-height: 190px; }
  .tuner-app #start { margin-top: 0; }
  .tuner-app .ctl-col { grid-area: ctl; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
  .tuner-app #start { margin-top: auto; }

  main.chords-app {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "top top" "sel card";
    gap: 16px 24px;
  }
  .chords-app .apptop { grid-area: top; }
  .chords-app .selpanel { grid-area: sel; align-self: start; max-height: 100%; overflow-y: auto; padding: 14px 16px; border-radius: var(--r-xl); }
  .chords-app .chcard { grid-area: card; }
  .chords-app .selsec { padding: 10px 0; }
  .chords-app .rootg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chords-app .rootg .chip { height: 38px; }

  .metro-app .mtgrid { flex-direction: row; gap: 24px; }
  .metro-app #mt { flex: 1.3 1 0; }
  .metro-app .mtside { flex: 1 1 0; min-width: 0; align-self: flex-start; max-height: 100%; overflow-y: auto; }

  .trans-app .tr-stage { flex: 1 1 0; }
}

/* 7. Layar pendek & tingkat kepadatan (diatur app.js)
   ========================================================================== */
@media (max-height: 690px) {
  main.app { gap: 7px; }
  select.sel, .numin { height: 40px; }
  .t-btn { min-height: 46px; }
}

main.app.fit1 { gap: 5px; }
main.app.fit1 select.sel, main.app.fit1 .numin { height: 36px; }
main.app.fit1 .t-btn { min-height: 42px; }
main.app.fit1 .t-btn.alt { min-height: 38px; }
main.app.fit1 .chip { height: 34px; }

main.app.fit2 .lb { gap: 0; font-size: 0; }
main.app.fit2 .t-hz { display: none; }

main.app.fit1 .rootg .chip { height: 30px; }
main.app.fit1 .typeg .chip { height: 28px; }
main.app.fit1 .selsec { padding: 4px 0; }
main.app.fit1 .srchrow { padding-bottom: 4px; }
main.app.fit1 .srch { height: 36px; }
main.app.fit2 .sl, main.app.fit2 .ch-notes, main.app.fit2 .ch-pinfo { display: none; }

main.app.fit3 select.sel, main.app.fit3 .numin { height: 32px; }
main.app.fit3 .chleft .ch-type { display: none; }
main.app.fit3 .rootg .chip, main.app.fit3 .typeg .chip { height: 26px; }
main.app.fit3 .a4row .t-a4s { display: none; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-up { from { opacity: .4; translate: 0 48px; } }
@keyframes sheet-in { from { opacity: 0; scale: .96; } }

/* transkrip: chord yang terdengar di audio bila beda dari chart (mode chart) */
.trans-app .tr-hd { font-size: .85rem; font-weight: 700; color: var(--accent, var(--acc)); line-height: 1.2; margin-top: 2px; }
.trans-app .tr-hd:empty { display: none; }
main.app.fit2 .tr-hd { font-size: .72rem; }
/* chord: jenis lanjutan di balik tombol "lainnya" */
.typeg:not(.show-ext) .chip.ext { display: none; }
.typeg .chip.more { font-weight: 700; border-style: dashed; }
/* transkrip: tombol geser waktu ganti chord di layar utama, tombol 1/2 tempo */
.trans-app .tr-adj { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.trans-app .tr-adjl { font-size: .72rem; font-weight: 700; color: var(--ink-3, var(--sub)); text-transform: uppercase; letter-spacing: .04em; }
.trans-app .tr-adj .chip { height: 32px; min-height: 32px; padding: 0 10px; font-size: .78rem; }
.trans-app .tr-adjm { flex-basis: 100%; font-size: .72rem; color: var(--accent, var(--acc)); min-height: 0; }
.trans-app .tr-adjm:empty { display: none; }
main.app.fit2 .tr-adjl { display: none; }
main.app.fit3 .tr-adj .chip { height: 28px; min-height: 28px; padding: 0 8px; }
.trans-app .chip.bpmh { flex: 0 0 auto; min-width: 40px; padding: 0 8px; height: 42px; font-weight: 700; }
main.app.fit1 .trans-app .chip.bpmh, main.app.fit1 .chip.bpmh { height: 36px; }
/* baris tombol waktu/edit selebar kartu; di HP tanpa label supaya muat satu baris */
.trans-app .tr-adj { margin-top: 2px; flex: 0 0 auto; }
@media (max-width: 520px) { .trans-app .tr-adjl { display: none; } .trans-app .tr-adj { gap: 5px; } .trans-app .tr-adj .chip { flex: 1 1 auto; padding: 0 6px; font-size: .74rem; } }
/* urungkan / ulangi; teks tombol dipersingkat di HP */
.trans-app .tr-adj .chip.ic { min-width: 36px; padding: 0 8px; font-size: 1rem; }
.trans-app .tr-adj .chip:disabled, .chip.xreset:disabled { opacity: .4; cursor: default; }
@media (max-width: 520px) { .trans-app .tr-adj .lw { display: none; } .trans-app .tr-adj .chip.ic { flex: 0 0 34px; min-width: 34px; padding: 0; } }
/* transkrip: area chord tidak boleh lebih kecil dari isinya (sebelumnya isi meluber dan tertimpa kartu kontrol);
   bila tidak muat, app.js merapatkan tampilan (fit1-fit3) dan sebagai jalan terakhir halaman bisa digulir */
.trans-app .tapp, .trans-app .tr-stage { min-height: auto; }

/* HP miring (landscape): header & dock lebih pendek, chord di kiri dan kontrol di kanan */
@media (orientation: landscape) and (max-height: 560px) and (min-width: 560px) {
  .app-page { --header-h: 48px; }
  main.app { --dock-h: calc(48px + env(safe-area-inset-bottom)); gap: 8px; padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 6px); padding-bottom: calc(var(--dock-h) + 6px); }
  .apptop .tt a, .apptop .ib { gap: 1px; font-size: .625rem; }
  .trans-app .tr-now { min-height: 96px; }
  /* kartu dua kolom: chord di kiri, garis waktu dan kontrol di kanan */
  .trans-app .tr-stage { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: auto auto auto 1fr auto; grid-template-areas: "now next" "now tab" "now seek" "now ktl" "adj ktl"; column-gap: 14px; align-content: start; }
  .trans-app .tr-stage > .tr-lagu { grid-area: now; }
  .trans-app .tr-stage > .tr-ttl { display: none; }
  .trans-app .tr-stage > .tr-now { grid-area: now; align-self: stretch; }
  .trans-app .tr-stage > .tr-adj { grid-area: adj; align-self: end; }
  .trans-app .tr-stage > .tr-next { grid-area: next; }
  .trans-app .tr-stage > .ctab { grid-area: tab; }
  .trans-app .tr-stage .tr-seek { grid-area: seek; }
  .trans-app .tr-stage .tr-kontrol { grid-area: ktl; align-self: start; gap: 5px; }
  .trans-app .ts { height: 28px; }
}
/* baris tombol di kolom kiri (samping diagram): boleh 2 baris di HP tanpa menambah tinggi kartu */
.trans-app .tr-now > div:first-child { min-width: 0; }
.trans-app .tr-adj { margin-top: 6px; }
/* layar sempit: pratinjau chord berikutnya lebih penting untuk play along daripada kotak saran kapo */
main.app.trans-app.fit2 .tr-next { display: flex; }
main.app.trans-app.fit1 #capohint { display: none; }
@media (orientation: landscape) and (max-height: 560px) and (min-width: 560px) {
  .trans-app .tr-cn { font-size: 2.6rem; line-height: 1; }
  .trans-app .tr-cd { max-height: 120px; }
  main.app.trans-app .tr-next .tr-nd { display: none; }
}
/* blok chord juga tidak boleh lebih kecil dari isinya; baris tombol selebar kartu di bawahnya */
.trans-app .tr-stage > .tr-adj { margin-top: 0; flex-wrap: nowrap; }
.trans-app .tr-stage > .tr-adj .tr-adjm { position: absolute; left: 0; right: 0; bottom: 100%; text-align: center; }
.trans-app .tr-stage > .tr-adj { position: relative; }
/* landscape ringkas: tombol Putar harus terlihat tanpa menggulir */
@media (orientation: landscape) and (max-height: 560px) and (min-width: 560px) {
  .trans-app .tr-stage { padding: 10px 12px; gap: 6px; }
  .trans-app .tr-now { min-height: 64px; }
  .trans-app .tr-cn { font-size: 2.2rem; }
  .trans-app .tr-cs { margin-top: 0; font-size: .72rem; }
  .trans-app .tr-cd { max-height: 86px; }
  .trans-app canvas.ctab, main.app.fit1 canvas.ctab, main.app.fit3 canvas.ctab { height: 42px; }
  .trans-app .tr-next { font-size: .75rem; } .trans-app .tr-next b { font-size: 1rem; }
  main.app.trans-app .tr-stage .tr-bar { --tb: 34px; --go: 42px; gap: 14px; padding: 0; }
  .trans-app .tb-go { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 4px var(--wa-soft); }
  .trans-app .tr-adj .chip { height: 28px; min-height: 28px; }
}
@media (orientation: landscape) and (max-height: 560px) and (min-width: 560px) {
  .app-page { --header-h: 44px; }
  main.app { --dock-h: calc(44px + env(safe-area-inset-bottom)); }
  .apptop .tt a span, .apptop .ib span { font-size: .6rem; }
  .trans-app .tr-cs { display: none; }
  .trans-app canvas.ctab, main.app.fit1 canvas.ctab, main.app.fit3 canvas.ctab { height: 38px; }
}
/* HP miring (landscape) untuk Chord, Metronom, Tuner: dua kolom berdampingan.
   Kotak tidak boleh lebih kecil dari isinya (min-height: auto) supaya luberan terbaca oleh app.js
   (fit1-fit3) dan, sebagai jalan terakhir, halaman bisa digulir alih-alih isi saling menimpa. */
@media (orientation: landscape) and (max-height: 560px) and (min-width: 560px) {
  /* Chord: panel pilihan di kiri, kartu chord di kanan */
  main.chords-app {
    display: grid; gap: 8px 12px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-rows: minmax(auto, 1fr);
  }
  .chords-app .selpanel { min-height: 0; overflow-y: auto; padding: 8px 10px; }
  .chords-app .chcard { min-height: auto; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 8px 10px; padding: 10px 12px; }
  .chords-app .chbot { gap: 6px; }
  .chords-app .rb { height: 40px; }
  .chords-app .playrow .seg .chip { height: 30px; }
  .chords-app .pbtn { height: 38px; }

  /* Metronom: panggung + tempo di kiri, pengaturan di kanan */
  .metro-app .mtgrid { flex-direction: row; gap: 12px; min-height: auto; }
  main.metro-app #mt {
    flex: 1.4 1 0; min-width: 0; min-height: auto;
    display: grid; gap: 6px 10px; padding: 8px;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto 1fr;
    grid-template-areas: "vis tabs" "vis bpm" "vis rg" "vis act" "vis acc";
  }
  .metro-app .mt-tabs { grid-area: tabs; }
  .metro-app .mt-vis { grid-area: vis; min-height: 0; min-width: 0; }
  .metro-app .mt-vis > svg.an { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; }
  .metro-app .mt-bpm { grid-area: bpm; gap: 10px; }
  .metro-app #bs { grid-area: rg; }
  .metro-app .mt-act { grid-area: act; }
  .metro-app .accr { grid-area: acc; align-content: flex-start; gap: 6px; }
  .metro-app .mt-act .t-btn { min-height: 42px; }
  .metro-app .mtside { flex: 1 1 0; min-width: 0; align-self: stretch; gap: 8px; padding: 8px 10px; }
  .metro-app .mttr .lb { white-space: normal; line-height: 1.1; }

  /* Tuner: meteran setinggi layar di kiri, pilihan & tombol di kanan */
  main.tuner-app {
    display: grid; gap: 8px 12px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(auto, 1fr);
    grid-template-areas: "meter sel" "meter ctl";
  }
  .tuner-app .tm { grid-area: meter; min-height: auto; padding: 8px 10px 10px; }
  .tuner-app .selrow { grid-area: sel; }
  .tuner-app .ctl-col { grid-area: ctl; display: flex; flex-direction: column; gap: 8px; }
  .tuner-app #start { margin-top: auto; min-height: 46px; }
}
/* piano jauh lebih lebar dari diagram gitar: jangan sampai mendesak (dan menutupi) nama chord */
.trans-app .tr-cd { min-width: 0; }
.trans-app .tr-cd .cd { max-width: 100%; }
.trans-app .tr-now > div:first-child { flex: 1 1 auto; }
.trans-app .tr-cd.kb { flex: 0 1 56%; height: auto; align-self: center; }
.trans-app .tr-cd.kb .cd { width: 100%; height: auto; }
/* Metronom digital: angka tetap di dalam kotak hitam; kiri/kanan = nama tempo sebelum dan sesudahnya */
/* kotak LCD melayang di dalam panggung (tidak ikut menentukan tingginya): kalau ikut, ukuran angka (fitLcd) dan tinggi panggung (fit di app.js) saling mengubah dan layar berkedip tiap ketukan */
.metro-app .lcd { position: absolute; inset: 0; width: auto !important; height: auto; margin: 10px; overflow: hidden; gap: 4px; padding: 8px 10px; }
.metro-app .lcd-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; width: 100%; }
.metro-app .lcd-n { font-size: clamp(2rem, min(8dvh, 15vw), 4rem); line-height: .9; }
.metro-app .lcd-s {
  overflow: hidden; font: 700 .625rem/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; color: rgba(242, 201, 138, .5);
}
.metro-app .lcd-s b { display: block; font-size: 1rem; letter-spacing: .02em; color: rgba(242, 201, 138, .62); font-variant-numeric: tabular-nums; }
.metro-app #lcdp { text-align: left; }
.metro-app #lcdx { text-align: right; }
.metro-app .lcd .boxes { margin-top: 2px; }

/* 9. Partitur & tab (partitur.html)
   HP: partitur memenuhi layar, pemutar di bawah, pengaturan muncul sebagai lembar dari bawah.
   Layar lebar: pengaturan di panel samping yang selalu terlihat.
   ========================================================================== */
main.score-app { --tr-h: 104px; max-width: 1280px; padding-bottom: calc(var(--dock-h) + var(--tr-h) + 14px); }
main.score-app.ikut-on { --tr-h: 200px; }

/* kepala: judul lagu + chip instrumen, menempel di bawah header */
.sc-kepala {
  /* di dalam main.app (wadah gulir) posisi sticky dihitung dari dalam padding atasnya (header + 12px) */
  position: sticky; top: -12px; z-index: 6;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  margin: -12px -12px 0; padding: 10px 12px 8px;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.sc-judul { flex: 1 1 0; min-width: 0; display: grid; }
.sc-judul b { overflow: hidden; font: 700 1.125rem/1.2 var(--font-display); white-space: nowrap; text-overflow: ellipsis; }
.sc-judul small { overflow: hidden; font-size: .75rem; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
.sc-kepala > .chip { flex: none; height: 36px; }
.sc-tp { display: none; }
/* HP sempit: tombol kepala diringkas supaya judul lagu tetap terbaca */
@media (max-width: 399.98px) { .sc-tk { display: none; } .sc-tp { display: inline; } .sc-kepala > .chip { padding: 0 12px; } }
.sc-ikon { min-width: 38px; justify-content: center; padding: 0 10px; }
.sc-chips { flex: 1 1 100%; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sc-chips::-webkit-scrollbar { display: none; }
.sc-chips:empty { display: none; }
.sc-chips .chip { flex: none; height: 32px; font-size: .8125rem; }
.sc-chips .chip[aria-pressed="false"] { color: var(--ink-3); }
.sc-chips .chip.bisu { text-decoration: line-through; }

/* kertas partitur selalu terang (juga di mode gelap) supaya not mudah dibaca */
/* z-index 0: kursor alphaTab (z-index 1000) tetap di dalam kertas, tidak menutupi header */
.sc-paper { position: relative; z-index: 0; min-height: 60vh; margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: #1c1815; box-shadow: var(--shadow-sm); }
#at { min-height: 320px; }
.sc-msg { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); padding: 6px 12px; border-radius: var(--r-pill); background: rgba(28, 24, 21, .82); color: #fff; font-size: .8125rem; font-weight: 600; pointer-events: none; }
.sc-msg[hidden] { display: none; }
.sc-msg.err { position: static; transform: none; max-width: none; margin: 14px; border-radius: var(--r-md); background: rgba(180, 35, 24, .08); color: #B42318; }
main.app.drop .sc-paper { outline: 3px dashed var(--accent); outline-offset: 4px; }
.at-cursor-bar { background: rgba(214, 140, 40, .13); }
.at-selection div { background: rgba(214, 140, 40, .22); }
.at-cursor-beat { width: 3px; background: #B5640E; }
.at-highlight * { fill: #B5640E; stroke: #B5640E; }

/* pemutar di bawah, di atas tab bar alat */
.sc-transport {
  position: fixed; left: 0; right: 0; bottom: var(--dock-h); z-index: 54;
  display: grid; gap: 6px; padding: 8px max(10px, calc((100vw - 1256px) / 2)) 8px;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -22px rgba(28, 22, 16, .4);
}
.sc-tr1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sc-putar { flex: none; min-width: 92px; min-height: 42px; padding: 0 16px; font-size: .9375rem; }
.sc-putar.on { background: var(--accent); }
.sc-tr1 .sc-ikon { flex: none; height: 40px; }
.sc-posisi { flex: 1 1 auto; min-width: 0; accent-color: var(--accent); cursor: pointer; }
.sc-time { flex: none; min-width: 74px; font: 700 .75rem var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: right; }
.sc-tr2 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.sc-tb { display: grid; justify-items: center; gap: 1px; min-width: 0; padding: 5px 2px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-family: var(--font-sans); cursor: pointer; transition: border-color .2s, background-color .2s; }
.sc-tb b { max-width: 100%; overflow: hidden; font: 800 .875rem/1.2 var(--font-sans); white-space: nowrap; text-overflow: ellipsis; }
.sc-tb span { max-width: 100%; overflow: hidden; font-size: .625rem; font-weight: 700; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
.sc-tb[aria-pressed="true"], .sc-tb.aktif { border-color: var(--accent); background: var(--accent-soft); }
.sc-tb:active { transform: scale(.97); }

/* main bersama: chord sekarang + berikutnya, di atas pemutar */
.sc-ikut { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.sc-ikut[hidden] { display: none; }
.sc-ikut > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; align-items: center; gap: 0 8px; min-width: 0; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.sc-ikut span { grid-column: 1 / -1; font-size: .625rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.sc-ikut b { font: 700 1.875rem/1 var(--font-display); color: var(--accent); }
.sc-ikut-lanjut b { font-size: 1.125rem; color: var(--ink-2); }
.sc-ikut-d { min-width: 0; height: 70px; }
.sc-ikut-lanjut .sc-ikut-d { height: 54px; }
.sc-ikut-d .cd { width: auto; height: 100%; max-width: 100%; margin: 0; }

/* pengaturan: lembar dari bawah (HP) */
.sc-samping {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  max-height: 82dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; background: var(--surface); box-shadow: 0 -18px 40px -12px rgba(0, 0, 0, .35);
  transform: translateY(105%); visibility: hidden; transition: transform .3s var(--ease-out), visibility 0s .3s;
}
.sc-samping[data-buka] { transform: none; visibility: visible; transition: transform .3s var(--ease-out); }
.sc-lembar-kepala { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -16px 10px; padding: 14px 16px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.sc-lembar-kepala b { font: 700 1.125rem var(--font-display); }
.sc-lembar { display: none; gap: 10px; min-width: 0; }
.sc-samping[data-buka] .sc-lembar.aktif { display: grid; }
.sc-lembar > h2 { display: none; margin: 0; font: 700 1rem/1.2 var(--font-display); }
.sc-lembar > h2 small { font: 700 .8125rem var(--font-sans); color: var(--ink-3); }
.sc-latar { position: fixed; inset: 0; z-index: 79; background: rgba(15, 10, 5, .42); opacity: 0; pointer-events: none; transition: opacity .25s; }
body.lembar-on .sc-latar { opacity: 1; pointer-events: auto; }

/* isi lembar */
.sc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sc-row select.sel { flex: 1 1 180px; width: auto; min-width: 0; max-width: 100%; }
.sc-baris { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.sc-baris[hidden] { display: none; }
.sc-label { font-size: .875rem; font-weight: 700; color: var(--ink-2); }
.sc-baris select.sel { flex: 0 1 210px; width: auto; height: 40px; }
.sc-baris .sc-bpm { flex: 1 1 auto; }
.sc-saklar { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-lagu { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.sc-lagu button { display: grid; gap: 2px; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-family: var(--font-sans); text-align: left; cursor: pointer; }
.sc-lagu button b { font-size: .875rem; }
.sc-lagu button small { font-size: .6875rem; line-height: 1.3; color: var(--ink-3); }
.sc-lagu button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.sc-file { position: relative; overflow: hidden; min-height: 44px; cursor: pointer; }
.sc-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sc-teks summary { padding: 6px 0; font-size: .875rem; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.sc-teks[open] { display: grid; gap: 8px; }
.sc-tex { width: 100%; min-height: 190px; padding: 10px 12px; resize: vertical; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); font: 500 .8125rem/1.55 ui-monospace, Menlo, Consolas, monospace; tab-size: 2; }
.sc-tex:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sc-err { padding: 8px 10px; border-radius: var(--r-sm); background: rgba(180, 35, 24, .08); color: var(--danger); font-size: .8125rem; font-weight: 600; white-space: pre-line; cursor: pointer; }
.sc-err[hidden] { display: none; }
.sc-h3 { margin: 6px 0 0; font: 800 .75rem var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.sc-nada { display: inline-flex; align-items: center; gap: 4px; }
.sc-nada > span { min-width: 64px; font: 700 .8125rem var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: center; }
.sc-nada .chip { min-width: 38px; justify-content: center; padding: 0 8px; }
.sc-bpm { font: 700 .875rem var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.sc-latih { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-trks { display: grid; gap: 8px; }
.sc-trk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); }
.sc-trk b { flex: 1 1 100%; }
.sc-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc-cheat { display: grid; gap: 8px; margin: 0 0 12px; padding-left: 1.1em; font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
.sc-cheat code { padding: 1px 5px; border-radius: 4px; background: var(--surface-2); color: var(--ink); font-size: .8125rem; }
.sc-chord { display: grid; gap: 8px; }
.sc-chord[hidden], #tanpa-chord[hidden] { display: none; }
.sc-saran { margin: 0; padding: 8px 10px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--ink); font-size: .875rem; line-height: 1.5; }
.sc-saran[hidden] { display: none; }
.sc-saran .chip { height: 30px; margin-left: 4px; }
#kidal-w[hidden] { display: none; }
.sc-chords { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.sc-chords.pk { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.sc-cb { display: grid; gap: 2px; min-width: 0; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.sc-cb-h { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.sc-cb-h b { font: 700 .9375rem var(--font-sans); }
.sc-cb-x { width: 26px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink-3); font-size: .875rem; cursor: pointer; }
.sc-cb-d { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.sc-cb-d .cd { width: 100%; max-width: none; }
.sc-nod { display: block; padding: 10px 0; font-size: .6875rem; color: var(--ink-3); text-align: center; }

/* layar lebar: panel samping kiri selalu terlihat, partitur di kanan */
@media (min-width: 900px) and (min-height: 520px) {
  main.score-app { padding-bottom: calc(var(--tr-h) + 18px); }
  .sc-kepala { margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); top: -12px; background: var(--surface); box-shadow: 0 -14px 0 0 var(--bg), var(--shadow-sm); }
  .sc-kepala > .chip { display: none; }
  .sc-chips { flex: 0 1 auto; max-width: 60%; justify-content: flex-end; }
  .sc-isi { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 12px; }
  .sc-paper { margin-top: 0; }
  .sc-samping {
    position: sticky; top: 62px; z-index: 1;
    max-height: calc(100dvh - var(--header-h) - 96px - var(--tr-h) - 24px);
    padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
    transform: none; visibility: visible; transition: none;
  }
  .sc-lembar-kepala, .sc-latar { display: none; }
  .sc-lembar, .sc-samping[data-buka] .sc-lembar { display: grid; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .sc-lembar:last-child { border-bottom: 0; }
  .sc-lembar > h2 { display: block; }
  .sc-lagu { grid-template-columns: 1fr; }
  .sc-transport { bottom: 0; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ikut ikut" "tr1 tr2"; align-items: center; }
  .sc-ikut { grid-area: ikut; max-width: 560px; }
  .sc-tr1 { grid-area: tr1; }
  .sc-tr2 { grid-area: tr2; display: flex; }
  .sc-tr2 [data-lembar] { display: none; }
  .sc-tr2 .sc-tb { min-width: 110px; }
}

/* 10. Editor tab ketuk-ketik (partitur-edit.js)
   HP: panel bawah berisi panjang not, pilihan senar + keypad angka fret, dan baris teknik.
   HP miring: panel di kanan. Layar lebar: panel samping + keyboard, pemutar tetap di bawah.
   ========================================================================== */
main.edit-on .sc-edit, main.edit-on .sc-chips { display: none; }
main.edit-on #at { cursor: pointer; }
/* kursor putar alphaTab hanya tampil saat lagu diputar, supaya tidak bertumpuk dengan kursor edit */
main.edit-on .at-cursor-bar, main.edit-on .at-selection, main.edit-on:not(.ed-main) .at-cursor-beat { visibility: hidden; }
.sc-draf { display: grid; gap: 2px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: var(--accent-soft); color: var(--ink); font-family: var(--font-sans); text-align: left; cursor: pointer; }
.sc-draf[hidden] { display: none; }
.sc-draf b { font-size: .875rem; }
.sc-draf small { font-size: .75rem; color: var(--ink-3); }

main.score-app.edit-on { --dock-h: 0px; --tr-h: var(--ed-h, 330px); }
main.score-app.edit-on .apptop, main.score-app.edit-on .sc-transport { display: none; }

.ed-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 56;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; max-height: 72dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  background: var(--glass-strong); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -22px rgba(28, 22, 16, .4);
}
.ed-panel[hidden] { display: none; }
.ed-nama, .ed-kunci, .ed-lagu { display: none; }
.ed-atas { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ed-alat { display: flex; flex: none; gap: 4px; }
main.score-app .ed-atas select.sel { flex: 1 1 auto; width: auto; min-width: 0; height: 40px; }
main.score-app .ed-alat .chip { height: 40px; min-width: 40px; padding: 0; justify-content: center; font-size: 1.0625rem; }
.ed-alat .chip:disabled { opacity: .4; cursor: default; }
main.score-app .ed-selesai { flex: none; min-height: 40px; padding: 0 14px; font-size: .9375rem; }

.ed-durasi { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.ed-dur { display: grid; justify-items: center; align-content: center; gap: 1px; min-width: 0; height: 46px; padding: 2px 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-family: var(--font-sans); cursor: pointer; }
.ed-dur svg { width: 16px; height: 21px; }
.ed-dur b { font: 800 1.0625rem/21px var(--font-sans); }
.ed-dur small { font-size: .625rem; font-weight: 700; line-height: 1; color: var(--ink-3); }
.ed-dur[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.ed-dur[aria-pressed="true"] small { color: inherit; opacity: .85; }

.ed-tengah { display: grid; grid-template-columns: minmax(64px, 26%) minmax(0, 1fr); gap: 6px; }
.ed-senar { display: grid; gap: 3px; }
.ed-senar button { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; min-height: 0; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-3); font: 700 .75rem var(--font-sans); cursor: pointer; }
.ed-senar button b { font-size: .9375rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.ed-senar button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink-2); box-shadow: inset 3px 0 0 var(--accent); }
.ed-pad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 42px; gap: 4px; }
.ed-pad button { min-width: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 800 1.1875rem var(--font-sans); cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.ed-pad .ed-fn { background: var(--surface-2); color: var(--ink-2); font-size: .875rem; font-weight: 700; }
.ed-pad button:active, .ed-dur:active, .ed-senar button:active { transform: scale(.96); }

.ed-efek { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.ed-efek::-webkit-scrollbar { display: none; }
main.score-app .ed-efek .chip { flex: none; height: 34px; padding: 0 11px; font-size: .8125rem; }
.ed-chord { display: flex; align-items: center; gap: 6px; }
.ed-chord[hidden] { display: none; }
main.score-app .ed-chord .numin { flex: 1 1 0; width: 0; min-width: 0; height: 38px; padding: 0 10px; text-align: left; }
main.score-app .ed-chord .chip { height: 38px; }
.ed-panel.info .ed-lagu { display: grid; }
.ed-panel.info .ed-tengah { display: none; }
.ed-lagu { grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-lagu .ed-lb-judul, .ed-lagu .t-help { grid-column: 1 / -1; }
.ed-lagu .t-help { margin: 0; }
main.score-app .ed-lagu .numin, main.score-app .ed-lagu select.sel { height: 40px; }
main.score-app .ed-lagu .lb { gap: 4px; font-size: .6875rem; }
.ed-lb-judul .numin { padding: 0 10px; text-align: left; font-weight: 600; }
.ed-status { margin: 0; overflow: hidden; font-size: .6875rem; font-weight: 700; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
.ed-pesan { position: fixed; left: 12px; right: 12px; bottom: calc(var(--ed-h, 330px) + 10px); z-index: 57; max-width: 520px; margin: 0 auto; padding: 9px 14px; border-radius: var(--r-md); background: rgba(28, 24, 21, .92); color: #fff; font-size: .8125rem; font-weight: 600; line-height: 1.4; box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .45); }
.ed-pesan[hidden] { display: none; }

/* kursor: kolom ketukan + kotak senar terpilih di tab */
.ed-kursor { position: absolute; z-index: 2; border-radius: 5px; background: rgba(214, 140, 40, .12); box-shadow: inset 0 0 0 1px rgba(181, 100, 14, .35); pointer-events: none; }
.ed-kursor[hidden] { display: none; }
.ed-sel { position: absolute; left: -3px; right: -3px; border: 2px solid #B5640E; border-radius: 4px; background: rgba(214, 140, 40, .2); }

/* HP miring: panel di sisi kanan */
@media (orientation: landscape) and (max-height: 560px) and (min-width: 560px) {
  main.score-app.edit-on { --tr-h: 0px; padding-right: calc(min(380px, 50vw) + 12px); }
  .ed-panel { top: calc(var(--header-h) + env(safe-area-inset-top)); left: auto; width: min(380px, 50vw); max-height: none; align-content: start; border-top: 0; border-left: 1px solid var(--line); }
  .ed-pad { grid-auto-rows: 36px; }
  .ed-dur { height: 40px; }
  .ed-pesan { bottom: 12px; right: calc(min(380px, 50vw) + 12px); }
}

/* layar lebar: panel editor menggantikan panel pengaturan di kiri, keyboard jadi alat utama */
@media (min-width: 900px) and (min-height: 520px) {
  main.score-app.edit-on { --tr-h: 104px; }
  main.score-app.edit-on .sc-transport { display: grid; }
  main.score-app.edit-on .apptop { display: flex; }
  .sc-kepala > .chip.sc-edit { display: inline-flex; }
  main.edit-on .sc-kepala > .chip.sc-edit, main.edit-on .sc-samping { display: none; }
  .ed-panel {
    position: sticky; top: 62px; left: auto; right: auto; bottom: auto; z-index: 1;
    gap: 10px; align-content: start; max-height: calc(100dvh - var(--header-h) - 96px - var(--tr-h) - 24px);
    padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg);
    background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow-sm);
  }
  .ed-atas { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nama selesai" "track track" "alat alat"; gap: 8px; }
  .ed-nama { display: block; grid-area: nama; font: 700 1.0625rem var(--font-display); }
  main.score-app .ed-atas select.sel { grid-area: track; }
  .ed-alat { grid-area: alat; }
  main.score-app .ed-alat .chip { flex: 1 1 0; }
  .ed-selesai { grid-area: selesai; }
  .ed-durasi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ed-tengah { display: none; }
  .ed-efek { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  main.score-app .ed-efek .chip { min-width: 0; padding: 0 4px; justify-content: center; }
  main.score-app .ed-efek .ed-info-btn { display: none; }
  .ed-lagu { display: grid; }
  .ed-kunci { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--ink-3); }
  .ed-kunci dt { font-weight: 800; color: var(--ink-2); white-space: nowrap; }
  .ed-kunci dd { margin: 0; }
  .ed-pesan { bottom: calc(var(--tr-h) + 16px); }
}
/* tablet layar lebar tanpa keyboard: keypad tetap ada */
@media (min-width: 900px) and (min-height: 520px) and (pointer: coarse) {
  .ed-tengah { display: grid; }
  .ed-kunci { display: none; }
}

/* 11. Editor untuk semua instrumen: bagian panel mengikuti jenis instrumen yang diedit
   (data-jenis = senar | piano | drum; data-untuk = jenis yang memakai bagian itu)
   ========================================================================== */
.ed-panel[data-jenis="senar"] [data-untuk]:not([data-untuk~="senar"]),
.ed-panel[data-jenis="piano"] [data-untuk]:not([data-untuk~="piano"]),
.ed-panel[data-jenis="drum"] [data-untuk]:not([data-untuk~="drum"]) { display: none; }
.ed-panel.info .ed-piano, .ed-panel.info .ed-drum { display: none; }

/* piano, vokal, melodi: dua oktaf tuts */
.ed-piano, .ed-drum { display: grid; gap: 6px; }
.ed-okt { display: flex; align-items: center; gap: 6px; }
.ed-okt b { flex: 1 1 auto; font: 700 .8125rem var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: center; white-space: nowrap; }
main.score-app .ed-okt .chip { flex: none; height: 34px; padding: 0 10px; font-size: .8125rem; }
.ed-tuts { position: relative; display: flex; height: 118px; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.ed-tuts .p { display: flex; flex: 1 1 0; align-items: flex-end; justify-content: center; min-width: 0; margin: 0 -.5px; padding: 0 0 6px; border: 1px solid #B9B0A5; border-radius: 0 0 6px 6px; background: #fff; color: #6B6158; font: 700 .625rem var(--font-sans); cursor: pointer; }
.ed-tuts .h { position: absolute; top: 0; z-index: 1; width: 4.4%; height: 62%; margin-left: -2.2%; padding: 0; border: 0; border-radius: 0 0 4px 4px; background: #1F1A16; cursor: pointer; }
.ed-tuts .p:active { background: #F2E6D6; }
.ed-tuts .h:active { background: #5A4636; }
.ed-tuts .p[aria-pressed="true"] { background: #F3C98B; color: #6B3B00; }
.ed-tuts .h[aria-pressed="true"] { background: #B5640E; }
.ed-fnrow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.ed-fnrow button { min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); font: 700 .875rem var(--font-sans); cursor: pointer; touch-action: manipulation; }
.ed-fnrow button:active { transform: scale(.96); }

/* drum: kisi pukulan satu birama */
.ed-drum-atas { display: flex; align-items: center; gap: 6px; }
.ed-drum-atas b { flex: 1 1 auto; font: 700 .8125rem var(--font-sans); color: var(--ink-2); text-align: center; white-space: nowrap; }
main.score-app .ed-drum-atas .chip { flex: none; height: 34px; min-width: 38px; }
main.score-app .ed-drum-atas select.sel { flex: 0 1 132px; width: auto; height: 34px; font-size: .8125rem; }
.ed-kisi { display: grid; grid-template-columns: 54px repeat(var(--langkah, 16), minmax(0, 1fr)); gap: 2px; }
.ed-lbl { overflow: hidden; align-self: center; font: 700 .6875rem var(--font-sans); color: var(--ink-2); white-space: nowrap; text-overflow: ellipsis; }
.ed-kisi button { min-width: 0; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); cursor: pointer; touch-action: manipulation; }
.ed-kisi button.g { background: var(--surface-2); }
.ed-kisi button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); }

/* lirik: satu suku kata per not */
.ed-lirik { display: flex; align-items: center; gap: 6px; }
.ed-lirik[hidden] { display: none; }
main.score-app .ed-lirik .numin { flex: 1 1 0; width: 0; min-width: 0; height: 38px; padding: 0 10px; text-align: left; }
main.score-app .ed-lirik .chip { flex: none; height: 38px; }

@media (orientation: landscape) and (max-height: 560px) and (min-width: 560px) {
  .ed-tuts { height: 92px; }
  .ed-kisi button { height: 18px; }
}
@media (min-width: 900px) and (min-height: 520px) {
  .ed-tuts { height: 104px; }
  .ed-kisi { grid-template-columns: 50px repeat(var(--langkah, 16), minmax(0, 1fr)); gap: 1px; }
  .ed-kisi button { height: 20px; border-radius: 2px; }
  /* panel samping sempit: isian lirik di baris sendiri */
  .ed-lirik { flex-wrap: wrap; }
  main.score-app .ed-lirik .numin { flex: 1 0 100%; order: -1; }
}

/* 12. Amp & efek (efek.html)
   HP: panel input, preset, deretan rantai efek (chip), lalu kartu pengaturan efek yang dipilih.
   Layar lebar: input & preset di kiri, semua kartu pedal tampil seperti pedalboard di kanan.
   ========================================================================== */
main.efek-app { max-width: 1280px; }
.w-abu { --w: #6E6862; } .w-perak { --w: #8D99A6; } .w-hijau { --w: #2F8F4E; } .w-oranye { --w: #D9661F; } .w-ungu { --w: #7B4FB3; }
.w-baja { --w: #3E5C76; } .w-amp { --w: #A0682C; } .w-biru { --w: #2D6CC0; } .w-hijau-laut { --w: #1F8A84; }
.w-kuning { --w: #C9A227; } .w-gelap { --w: #5A5550; } .w-merah-muda { --w: #D9487D; } .w-biru-muda { --w: #3AA6D9; } .w-ungu-muda { --w: #9B7FD1; }
.w-jingga { --w: #E58A1F; } .w-hijau-muda { --w: #6DBE45; } .w-emas { --w: #B8892B; } .w-kayu { --w: #7A5230; }
.w-nila { --w: #4B5BC9; } .w-magenta { --w: #C2338E; } .w-pirus { --w: #22A8BC; } .w-neon { --w: #12A58C; }
.ef-eks { margin-left: 4px; padding: 1px 6px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font: 700 .625rem var(--font-sans); letter-spacing: .02em; vertical-align: middle; white-space: nowrap; }
.ef-kiri { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; min-width: 0; }
.ef-masuk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.ef-tombol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
main.efek-app .ef-tombol .t-btn { min-width: 0; min-height: 48px; padding: 0 10px; font-size: .9375rem; line-height: 1.15; white-space: normal; }
main.efek-app #ef-mulai.on { background: var(--accent); }
/* meter: latar berwarna (hijau-kuning-merah), penutup gelap menyusut dari kanan sesuai level */
.ef-meter { display: grid; grid-template-columns: 30px minmax(0, 1fr) 46px 40px; align-items: center; gap: 6px 8px; font: 800 .625rem var(--font-sans); letter-spacing: .06em; color: var(--ink-3); }
.ef-bar { position: relative; height: 10px; overflow: hidden; border-radius: 6px; background: linear-gradient(90deg, #2E9E5B 0 80%, #E2B33B 80% 95%, #D9412B 95%); }
.ef-bar i { position: absolute; inset: 0; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transform-origin: right; }
.ef-meter em { font-style: normal; font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--ink-2); text-align: right; white-space: nowrap; }
.ef-clip { padding: 2px 0; border-radius: 4px; background: var(--surface-2); color: var(--ink-3); text-align: center; }
.ef-clip.on { background: #D9412B; color: #fff; }
.ef-atur { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; }
main.efek-app .ef-atur select.sel { height: 40px; }
.ef-geserin > span { display: flex; justify-content: space-between; gap: 6px; }
.ef-geserin output { font-variant-numeric: tabular-nums; color: var(--ink-2); letter-spacing: 0; text-transform: none; }
.ef-geserin .rg { width: 100%; }
/* rekam & hasil */
.ef-rekam { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
main.efek-app .ef-rekam .chip { height: 38px; padding: 0 14px; gap: 6px; text-decoration: none; }
.ef-titik { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #D9412B; }
#ef-rekam[aria-pressed="true"] { border-color: #D9412B; background: rgba(217, 65, 43, .1); color: #D9412B; }
#ef-rekam[aria-pressed="true"] .ef-titik { border-radius: 2px; animation: ef-kedip 1s steps(2) infinite; }
@keyframes ef-kedip { 50% { opacity: .2; } }
@keyframes ef-sorot { 0%, 40% { box-shadow: 0 0 0 4px var(--w), var(--shadow-md); } }
.ef-waktu { font: 700 .8125rem var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ef-rekam audio { flex: 1 1 100%; width: 100%; height: 40px; }
.ef-rekam [hidden] { display: none; }
.ef-status { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }
.ef-status.err { color: var(--danger); font-weight: 600; }
.ef-jeda { margin: 0; font-size: .75rem; font-weight: 700; color: var(--ink-3); }
.ef-jeda:empty { display: none; }
.ef-preset { display: flex; align-items: center; gap: 6px; }
main.efek-app .ef-preset select.sel { flex: 1 1 0; width: 0; min-width: 0; height: 42px; }
main.efek-app .ef-preset .chip { flex: none; height: 42px; }
.ef-preset .chip:disabled { opacity: .45; cursor: default; }

/* rantai efek (HP): chip berurutan, panah menunjukkan arah sinyal */
.ef-papan { display: grid; gap: 10px; min-width: 0; }
.ef-rantai { display: flex; align-items: center; gap: 16px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
.ef-rantai::-webkit-scrollbar { display: none; }
.ef-c { position: relative; display: inline-flex; flex: none; align-items: center; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); }
.ef-c + .ef-c::before { content: "\203A"; position: absolute; left: -12px; color: var(--ink-3); font: 800 1rem/1 var(--font-sans); }
.ef-c.on { border-color: var(--w); }
.ef-cl { width: 30px; height: 30px; margin-left: 4px; padding: 0; border: 0; border-radius: 50%; background: #4A403A; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); cursor: pointer; }
.ef-c.on .ef-cl, .ef-kartu.on .ef-led { background: radial-gradient(circle at 35% 35%, #FF9A8A, #E0281B 55%, #8F1208); box-shadow: 0 0 10px rgba(255, 50, 30, .65); }
.ef-cn { height: 100%; padding: 0 12px 0 6px; border: 0; background: none; color: var(--ink-2); font: 700 .8125rem var(--font-sans); white-space: nowrap; cursor: pointer; }
.ef-c.on .ef-cn { color: var(--ink); }
.ef-cn[aria-pressed="true"] { color: var(--w); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* kartu efek */
.ef-blok { display: grid; gap: 12px; }
.ef-kartu { display: none; gap: 10px; padding: 12px 14px 14px; border: 1px solid var(--line); border-top: 5px solid var(--w); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.ef-kartu.aktif { display: grid; }
.ef-kartu:not(.on) { border-top-color: color-mix(in srgb, var(--w) 35%, var(--line)); }
.ef-kartu.seret { opacity: .45; }
.ef-kk { display: flex; align-items: center; gap: 10px; }
.ef-kk b { flex: 1 1 auto; min-width: 0; font: 700 1.0625rem var(--font-display); }
.ef-led { flex: none; width: 30px; height: 30px; padding: 0; border: 2px solid var(--line-strong); border-radius: 50%; background: #4A403A; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5); cursor: pointer; }
.ef-geser { display: flex; gap: 4px; }
.ef-geser button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font: 800 1.125rem/1 var(--font-sans); cursor: pointer; }
.ef-geser button:disabled { opacity: .35; cursor: default; }
.ef-isi { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px 14px; }
.ef-p { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 6px; min-width: 0; font: 700 .75rem var(--font-sans); color: var(--ink-2); }
.ef-p output { font-variant-numeric: tabular-nums; color: var(--ink); }
.ef-p .rg { grid-column: 1 / -1; width: 100%; accent-color: var(--w); }
.ef-pil { grid-template-columns: 1fr; }
main.efek-app .ef-pil select.sel { height: 40px; }
.ef-cat { margin: 0; font-size: .75rem; line-height: 1.5; color: var(--ink-3); }
.ef-kartu:not(.on) .ef-isi { opacity: .6; }

@media (min-width: 900px) and (min-height: 520px) {
  main.efek-app {
    display: grid; gap: 16px 20px; align-content: start;
    grid-template-columns: 340px minmax(0, 1fr); grid-template-areas: "top top" "kiri papan";
  }
  .efek-app .apptop { grid-area: top; }
  .ef-kiri { grid-area: kiri; position: sticky; top: 0; align-self: start; }
  .ef-papan { grid-area: papan; }
  .ef-rantai { flex-wrap: wrap; overflow: visible; row-gap: 8px; }
  .ef-kartu.aktif { box-shadow: 0 0 0 2px var(--w), var(--shadow-sm); }
  .ef-kartu.sorot { animation: ef-sorot 1.2s var(--ease-out); }
  .ef-blok { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: start; }
  .ef-kartu, .ef-kartu.aktif { display: grid; }
  .ef-kartu.lebar { grid-column: span 2; }
  .ef-kk[draggable="true"] { cursor: grab; }
  .ef-isi { grid-template-columns: 1fr; }
  .ef-kartu.lebar .ef-isi, .ef-kartu[data-blok="eq"] .ef-isi { grid-template-columns: 1fr 1fr; }
}
