/* PANDA DUO — Cifras: tela própria (lista + leitor) e gaveta nas outras telas */
.cifras { --cf-ch: #ff8a3d; --cf-now: rgba(255, 138, 61, .13); --cf-paper: #121419; --cf-ink: #eceef2; --cf-soft: #9198a6;
  display: grid; grid-template-columns: minmax(250px, 300px) 1fr; height: 100%; min-height: 0; background: var(--bg); position: relative; }
html.light .cifras, html.light .cf-drawer { --cf-ch: #d4560c; --cf-now: rgba(224, 86, 12, .09); --cf-paper: #fffdf8; --cf-ink: #1d2027; --cf-soft: #6a707d; }
html.panda .cifras, html.panda .cf-drawer { --cf-ch: #c0392b; --cf-now: rgba(192, 57, 43, .1); --cf-paper: #f7f1e3; --cf-ink: #2a2622; --cf-soft: #7a6f62; }
.cf-drawer { --cf-ch: #ff8a3d; --cf-now: rgba(255, 138, 61, .13); --cf-paper: #121419; --cf-ink: #eceef2; --cf-soft: #9198a6; }

/* lista */
.cf-lib { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--panel); }
.cf-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 10px 10px 0; gap: 4px; }
.cf-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px; font-weight: 700; letter-spacing: .5px; color: var(--dim); cursor: pointer; }
.cf-tabs button.on { color: var(--txt); border-color: var(--accent); }
.cf-libtop { display: flex; gap: 6px; padding: 10px; flex-wrap: wrap; }
.cf-q { flex: 1 1 100%; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; user-select: text; }
.cf-new, .cf-imp { flex: 1; text-align: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; font-weight: 600; }
.cf-new { background: var(--accent); border-color: var(--accent); color: #fff; }
.cf-selb { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; font-weight: 600; }
.cf-selb.on { border-color: var(--accent); color: var(--accent); }
.cf-selbar { display: flex; align-items: center; gap: 6px; padding: 0 10px 8px; flex-wrap: wrap; position: relative; }
.cf-selbar > span { flex-basis: 100% !important; text-align: left !important; }
.cf-setmenu { position: absolute; z-index: 20; top: 100%; left: 10px; right: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.35); max-height: 50vh; overflow-y: auto; }
.cf-setmenu[hidden] { display: none; }
.cf-setmenu b { font-size: 12px; color: var(--dim); padding: 2px 4px 4px; }
.cf-setmenu button { text-align: left; background: none; border: 0; border-radius: 8px; padding: 9px 10px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
.cf-setmenu button:hover { background: var(--panel2); }
.cf-setmenu small { color: var(--dim); }
.cf-row { position: relative; overflow: hidden; border-radius: 10px; touch-action: pan-y; flex: none; }
.cf-row .cf-it { position: relative; z-index: 1; background: var(--panel); transition: transform .2s ease; }
.cf-row .cf-it:hover { background: var(--panel2); }
.cf-row .cf-it.cur, .cf-row .cf-it.pick.on { background: var(--panel2); }
.cf-swd { opacity: 0; }
.cf-row.sw .cf-swd, .cf-row.open .cf-swd { opacity: 1; }
.cf-swd { position: absolute; top: 0; right: 0; bottom: 0; width: 88px; border: 0; background: #d9443a; color: #fff; font-weight: 800; cursor: pointer; }
.cf-undo { display: flex; align-items: center; gap: 10px; margin: 0 10px 10px; padding: 10px 12px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.cf-undo[hidden] { display: none; }
.cf-undo span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-undo button { background: none; border: 0; color: var(--accent); font-weight: 800; cursor: pointer; }
.cf-selbar[hidden] { display: none; }
.cf-selbar span { flex: 1; font-size: 12px; color: var(--dim); text-align: center; }
.cf-selbar button { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-weight: 700; font-size: 12px; cursor: pointer; }
.cf-selbar .danger { background: #d9443a; border-color: #d9443a; color: #fff; }
.cf-selbar .danger:disabled { opacity: .4; cursor: default; }
.cf-it .cf-ck { width: 18px; height: 18px; flex: none; border: 2px solid var(--line); border-radius: 5px; display: grid; place-items: center; text-decoration: none; }
.cf-it.on .cf-ck { background: var(--accent); border-color: var(--accent); }
.cf-it.on .cf-ck::after { content: '✓'; color: #fff; font-size: 12px; font-weight: 900; }
.cf-it.pick.on { background: var(--panel2); }
.cf-list { overflow-y: auto; flex: 1; padding: 0 8px 16px; display: flex; flex-direction: column; gap: 2px; }
.cf-it { display: flex; align-items: center; gap: 8px; text-align: left; background: none; border: 0; border-radius: 10px; padding: 9px 10px; cursor: pointer; width: 100%; }
.cf-it:hover { background: var(--panel2); }
.cf-it.cur { background: var(--panel2); box-shadow: inset 3px 0 0 var(--accent); }
.cf-it span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cf-it b, .cf-it small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-it small { color: var(--dim); font-size: 12px; }
.cf-it em { font-style: normal; font-weight: 800; font-size: 12px; color: var(--accent); border: 1px solid currentColor; border-radius: 6px; padding: 1px 6px; }
.cf-it i { font-style: normal; font-size: 10px; font-weight: 700; color: var(--dim); }
.cf-empty { color: var(--dim); padding: 16px 10px; line-height: 1.5; }
.cf-empty.big { text-align: center; padding: 60px 20px; font-size: 16px; }
.cf-addset, .cf-splay { margin-top: 8px; background: var(--panel2); border: 1px dashed var(--line); border-radius: 10px; padding: 10px; cursor: pointer; font-weight: 600; }
.cf-splay { border-style: solid; background: var(--accent); border-color: var(--accent); color: #fff; margin: 4px 0 8px; }
.cf-sethead { display: flex; gap: 6px; align-items: center; padding: 4px 0; }
.cf-sethead input { flex: 1; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-weight: 700; user-select: text; }
.cf-sethead button, .cf-si span button { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; cursor: pointer; }
.cf-si { display: flex; align-items: center; gap: 4px; border-radius: 10px; }
.cf-si.cur { background: var(--panel2); box-shadow: inset 3px 0 0 var(--accent); }
.cf-sopen { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 8px; display: flex; flex-direction: column; cursor: pointer; }
.cf-sopen b, .cf-sopen small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-sopen small { color: var(--dim); font-size: 12px; }
.cf-si span { display: flex; gap: 2px; }
.cf-sadd { margin-top: 8px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px; }

/* leitor */
.cf-main { min-width: 0; min-height: 0; display: flex; }
.cf-vw { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--cf-paper); color: var(--cf-ink); position: relative; }
.cf-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cf-back { display: none; background: none; border: 0; font-size: 26px; line-height: 1; padding: 0 6px; cursor: pointer; }
.cf-ttl { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; }
.cf-ttl b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .2px; }
.cf-ttl small { color: var(--cf-soft); }
.cf-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cf-grp { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cf-grp button, .cf-tg { background: none; border: 0; padding: 6px 10px; cursor: pointer; font-weight: 700; min-width: 34px; }
.cf-grp button:hover, .cf-tg:hover { background: var(--panel2); }
.cf-grp span { padding: 0 6px; font-weight: 700; font-size: 13px; white-space: nowrap; min-width: 62px; text-align: center; }
.cf-grp .cf-key { color: var(--cf-ch); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; padding: 3px 8px; min-width: 76px; font-size: 13px; white-space: nowrap; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.cf-grp .cf-key small { font-size: 9.5px; font-weight: 700; opacity: .8; letter-spacing: .2px; margin-top: 1px; }
.cf-grp .cf-key.on { background: var(--cf-ch); color: var(--cf-paper); cursor: default; }
.cf-grp .cf-key.on:hover { background: var(--cf-ch); }
.cf-tg { border: 1px solid var(--line); border-radius: 10px; }
.cf-tg.on { color: var(--cf-ch); border-color: var(--cf-ch); }
.cf-hint { margin: 8px 14px 0; padding: 8px 12px; border-radius: 10px; background: var(--cf-now); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cf-hint button { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 3px 10px; cursor: pointer; }
.cf-scroll { flex: 1; overflow-y: auto; padding: 14px clamp(14px, 4vw, 48px) 0; scroll-behavior: auto; user-select: text; }
.cf-end { height: 55vh; }
.cf-diags { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px dashed var(--line); }
.cf-dg { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; background: none; border: 0; padding: 2px 4px; cursor: pointer; color: var(--cf-ink); }
.cf-dg b { font-size: 12px; color: var(--cf-ch); margin-top: -2px; }
.chd { width: 52px; height: 60px; display: block; }
.chd .dot { fill: var(--cf-ch); }
.cf-song { --fs: 1; font-size: calc(19px * var(--fs)); line-height: 1.25; max-width: 980px; }
.cf-song .ln { padding: 2px 8px; margin: 0 -8px; border-radius: 8px; transition: background .25s; }
.cf-song .ln.now { background: var(--cf-now); }
.cf-pair { padding-top: 4px !important; }
/* acorde em cima da palavra, ocupando espaço próprio: se a linha quebra, a parte de baixo leva os acordes junto */
.cf-pair .ck { display: inline-block; vertical-align: baseline; }
.cf-pair .ck .ch { display: block; width: max-content; margin-right: .4em; white-space: nowrap; line-height: 1.25; }
.cf-pair .w { white-space: pre-wrap; }
.cf-pair .nw, .cf-pair .nw .w { white-space: nowrap; }
.ch { color: var(--cf-ch); font-weight: 800; font-size: .86em; letter-spacing: .2px; cursor: pointer; border-radius: 5px; padding: 0 2px; margin-left: -2px; transition: background .15s, color .15s; }
.ch.now { background: var(--cf-ch); color: var(--cf-paper); }
.cf-only { display: flex; flex-wrap: wrap; gap: .3em 1.1em; padding-top: 6px !important; padding-bottom: 6px !important; }
.cf-only .lb { color: var(--cf-soft); font-weight: 700; font-size: .78em; text-transform: uppercase; letter-spacing: 1px; align-self: center; }
.cf-only .ch { font-size: .95em; }
.cf-ly { white-space: pre-wrap; }
.cf-sec { margin: 1.1em 0 .25em; font-size: .72em; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--cf-soft); display: flex; align-items: center; gap: 10px; }
.cf-sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cf-sec.ch { color: var(--cf-ch); cursor: default; background: none; padding: 0; margin-left: 0; font-size: .72em; }
.cf-cmt { color: var(--cf-soft); font-style: italic; font-size: .85em; margin: .3em 0; }
.cf-gap { height: .8em; }
.cf-tab { font: calc(13px * var(--fs)) / 1.25 Menlo, monospace; overflow-x: auto; background: var(--panel2); padding: 8px 10px !important; margin: .4em -8px !important; }

/* barra de tocar */
.cf-play { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; background: var(--panel); color: var(--txt); }
.cf-seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cf-seg button { background: none; border: 0; padding: 8px 10px; font-size: 11px; font-weight: 800; letter-spacing: .6px; color: var(--dim); cursor: pointer; }
.cf-seg button.on { background: var(--panel2); color: var(--txt); box-shadow: inset 0 -2px 0 var(--accent); }
.cf-spd { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); }
.cf-spd button { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-weight: 800; }
.cf-spd b { min-width: 16px; text-align: center; color: var(--txt); font-size: 15px; }
.cf-spd select { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 5px; }
.cf-go { margin-left: auto; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 6px 18px #0004; display: grid; place-items: center; }
.cf-go .pa { display: none; } .cf-vw.on .cf-go .pa { display: inline; } .cf-vw.on .cf-go .pl { display: none; }
.cf-vw.on .cf-go { background: var(--play); animation: cfpulse 1.6s ease-in-out infinite; }
.cf-vw.waiting .cf-go { background: var(--dub); }
@keyframes cfpulse { 50% { box-shadow: 0 0 0 7px rgba(46, 230, 107, .18); } }
.cf-set { display: flex; align-items: center; gap: 8px; flex-basis: 100%; }
.cf-set:empty { display: none; }
.cf-set span { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: 12px; }
.cf-set small { color: var(--dim); }
.cf-set button { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 18px; cursor: pointer; }
.cf-set button:disabled { opacity: .35; }

/* desenho grande ao tocar no acorde */
.cf-pop { position: absolute; z-index: 30; }
.cf-popc { background: var(--panel); color: var(--txt); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 8px; box-shadow: 0 14px 40px #0006; display: flex; flex-direction: column; align-items: center; --cf-ch: var(--accent); }
.cf-popc b { font-size: 20px; color: var(--accent); }
.cf-popc .chd { width: 120px; height: 138px; }
.cf-popc .chd .dot { fill: var(--accent); }
.cf-popc small { color: var(--dim); }

/* editor */
.cf-ed { position: absolute; inset: 0; z-index: 25; background: #0008; display: grid; place-items: center; padding: 12px; }
.cf-ed[hidden] { display: none; }
.cf-edbox { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; width: min(1100px, 100%); height: min(760px, 100%); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px #0007; }
.cf-edtop { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cf-edtop span { display: flex; gap: 6px; }
.cf-edf { display: grid; grid-template-columns: 2fr 1.5fr .8fr .6fr 1fr; gap: 8px; padding: 10px 14px; }
.cf-edf label { display: flex; flex-direction: column; font-size: 11px; color: var(--dim); gap: 3px; }
.cf-edf input { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; user-select: text; }
.cf-edbody { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; min-height: 0; }
.cf-edbody textarea { resize: none; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: 13px/1.35 Menlo, monospace; user-select: text; white-space: pre; overflow: auto; }
.cf-edprev { overflow: auto; border: 1px dashed var(--line); border-radius: 10px; padding: 10px; font-size: 13px; line-height: 1.5; color: var(--dim); }
.cf-edprev b { color: var(--accent); font-size: 11px; vertical-align: super; margin-right: 1px; }
.cf-edprev .s { color: var(--txt); font-weight: 800; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-top: 6px; }
.cf-edfoot { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.cf-edinfo { color: var(--dim); }

/* cifra aberta pelo botão do topo: tela toda (abaixo do topo), para ler */
.cf-drawer { position: fixed; top: 52px; left: 0; right: 0; bottom: 0; z-index: 40; transform: translateY(100%); opacity: 0; visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s, visibility 0s .28s; display: flex; flex-direction: column; background: var(--bg); }
.cf-drawer.open { transform: none; opacity: 1; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.cf-dhead { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--panel); }
.cf-dhead b { font-size: 11px; letter-spacing: 1.5px; color: var(--accent); }
.cf-dhead select { flex: 0 1 420px; min-width: 0; margin-right: auto; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.cf-dx { background: none; border: 0; font-size: 22px; cursor: pointer; padding: 0 6px; }
.cf-dbody { flex: 1; min-height: 0; display: flex; position: relative; }

body.covered .cf-drawer { visibility: hidden; }

/* ícone do topo: aceso e pulsando quando a cifra está rolando (como o de gravar) */
.cifrabtn svg { width: 19px; height: 19px; }
.cifrabtn { position: relative; }
.cifrabtn.on { border-color: var(--play); color: var(--play); background: rgba(46, 230, 107, .12); box-shadow: 0 0 0 3px rgba(46, 230, 107, .2); animation: cfpulse 1.6s ease-in-out infinite; }
.cifrabtn.waiting { border-color: var(--dub); color: var(--dub); background: rgba(255, 179, 0, .12); box-shadow: 0 0 0 3px rgba(255, 179, 0, .18); animation: none; }
.cifrabtn em { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); font: 800 8px/1 -apple-system, sans-serif; letter-spacing: .5px; background: var(--play); color: #000; border-radius: 4px; padding: 2px 3px; font-style: normal; display: none; }
.cifrabtn.on em, .cifrabtn.waiting em { display: block; }
.cifrabtn.waiting em { background: var(--dub); }

/* celular: lista OU leitor */
@media (max-width: 760px) {
  .cifras { grid-template-columns: 1fr; }
  .cifras .cf-main { display: none; }
  .cifras.reading .cf-lib { display: none; }
  .cifras.reading .cf-main { display: flex; }
  .cf-back { display: block; }
  .cf-drawer .cf-back { display: none; }
  .cf-edf { grid-template-columns: 1fr 1fr; }
  .cf-edbody { grid-template-columns: 1fr; }
  .cf-edprev { display: none; }
  .cf-tools { width: 100%; }
}

/* improviso: escala de cada acorde no lugar da letra */
.cf-imb { font-size: 12px; letter-spacing: .3px; }
.cf-imb.on { background: var(--cf-ch); color: var(--cf-paper); border-color: var(--cf-ch); }
.cf-imbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--cf-now); }
.cf-imbar[hidden] { display: none; }
.im-info { color: var(--cf-soft); font-size: 12px; }
.cf-song .im-row { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; padding-bottom: 6px; align-items: stretch; }
.im-row .lb { color: var(--cf-soft); font-weight: 700; font-size: .7em; text-transform: uppercase; letter-spacing: 1px; align-self: center; }
.ch.im-c { --f: #4f8cff; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; margin: 0; padding: 8px 12px 9px; min-width: 150px; font-size: 1em;
  background: var(--panel); color: var(--cf-ink); border: 1px solid var(--line); border-left: 4px solid var(--f); border-radius: 12px; font-weight: 400; }
.im-c.f-mm { --f: #b46bff; } .im-c.f-mh { --f: #ff5d73; } .im-c.f-Mh { --f: #22b8a6; }
.im-c > b { color: var(--cf-ch); font-size: 1.05em; font-weight: 800; }
.im-c small { font-size: .62em; color: var(--cf-soft); font-weight: 700; letter-spacing: .2px; }
.im-c small i { font-style: normal; font-weight: 500; }
.im-c > span { display: flex; flex-wrap: wrap; gap: .1em .45em; font-size: .72em; font-weight: 600; }
.im-c u, .im-on u { text-decoration: none; opacity: .62; }
.im-c u.ct, .im-on u.ct { opacity: 1; font-weight: 800; }
.im-c.troca { box-shadow: inset 0 0 0 1px var(--f); }
.im-c.troca small::before { content: "troca · "; color: var(--f); }
.im-c.manual > b::after { content: " ✎"; font-size: .7em; color: var(--cf-soft); }
.im-c.none { --f: var(--line); opacity: .6; }
.ch.im-c.now { background: var(--cf-ch); color: var(--cf-paper); border-color: var(--cf-ch); }
.ch.im-c.now > b, .ch.im-c.now small { color: var(--cf-paper); }
.im-c.sel { outline: 2px solid var(--cf-ch); outline-offset: 2px; }
.im-legend { display: inline-flex; gap: 8px; }

.im-pan { position: absolute; inset: 0; z-index: 28; background: #0007; display: flex; justify-content: flex-end; }
.im-pan[hidden] { display: none; }
.im-box { width: min(560px, 100%); height: 100%; overflow-y: auto; background: var(--panel); color: var(--txt); border-left: 1px solid var(--line); padding: 12px 16px 30px; box-shadow: -20px 0 60px #0006; }
.im-top { display: flex; align-items: center; gap: 8px; position: sticky; top: -12px; background: var(--panel); padding: 6px 0 10px; z-index: 1; }
.im-top > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.im-top b { font-size: 24px; color: var(--accent); }
.im-top small { color: var(--dim); }
.im-top button { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; font-size: 20px; cursor: pointer; }
.im-deg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 4px 0 10px; }
.im-deg span { display: flex; flex-direction: column; align-items: center; padding: 7px 2px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); }
.im-deg span b { font-size: 17px; }
.im-deg span small { font-size: 11px; color: var(--dim); font-weight: 700; }
.im-deg span.ct { border-color: var(--accent); }
.im-deg span.ct small { color: var(--accent); }
.im-deg span.rt { background: var(--accent); border-color: var(--accent); color: #fff; }
.im-deg span.rt small { color: #fff; }
.im-play { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.im-play button, .im-ob button { background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 6px 12px; cursor: pointer; font-weight: 700; }
.im-play small { color: var(--dim); font-size: 11px; flex-basis: 100%; }
.im-neck { width: 100%; height: auto; color: var(--txt); margin: 4px 0 6px; }
.im-neck circle.n { fill: var(--panel); stroke: currentColor; stroke-opacity: .55; }
.im-neck circle.c { fill: var(--accent); fill-opacity: .55; stroke: var(--accent); }
.im-neck circle.r { fill: var(--accent); }
.im-neck text { font-weight: 700; font-family: -apple-system, sans-serif; }
.im-neck .tn { fill: currentColor; opacity: .8; } .im-neck .tc, .im-neck .tr { fill: #fff; }
.im-box h4 { margin: 14px 0 6px; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); }
.im-opts { display: flex; flex-direction: column; gap: 8px; }
.im-opt { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel2); }
.im-opt.sel { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.im-oh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.im-oh em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.im-opt > small { color: var(--dim); }
.im-on { display: flex; gap: .6em; margin: 4px 0; font-weight: 600; }
.im-opt p { margin: 4px 0 6px; font-size: 12px; color: var(--dim); line-height: 1.4; }
.im-ob { display: flex; gap: 6px; align-items: center; }
.im-ob span { color: var(--accent); font-size: 12px; font-weight: 700; }
@media (max-width: 760px) { .cf-song .im-row { font-size: .82em; gap: 6px; } .ch.im-c { min-width: 0; flex: 1 1 140px; padding: 7px 9px; } .im-box { width: 100%; } }

/* improviso: uma escala só + tríades */
.im-info { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.im-ks { color: var(--cf-ink); font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.im-ks b { color: var(--cf-ch); font-weight: 800; }
.im-c.fora { border-color: var(--dub); }
.im-c.fora > b::before { content: "⚠ "; font-size: .7em; }
.im-tri { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.im-tri button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; cursor: pointer; text-align: left; color: var(--txt); }
.im-tri button b { font-size: 17px; }
.im-tri button small { color: var(--dim); font-weight: 700; font-size: 11px; }
.im-tri button em { font-style: normal; font-size: 10px; color: var(--dim); }
.im-tri button.cima { border-color: var(--accent); }
.im-tri button.cima em { color: var(--accent); font-weight: 700; }
.im-tri button.choca { opacity: .55; }
.im-tip { display: block; color: var(--dim); font-size: 11px; margin-top: 5px; }

/* artista aberto */
.cf-arthead { display: flex; align-items: center; gap: 8px; padding: 4px 2px 8px; }
.cf-arthead b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.cf-arthead small { color: var(--dim); font-weight: 700; font-size: 12px; }

/* arrastar para a direita: põe no repertório que está sendo montado */
.cf-swa { position: absolute; inset: 0; display: flex; align-items: center; padding-left: 14px; background: #2e9d5b; color: #fff; font-weight: 800; font-size: 13px; opacity: 0; white-space: nowrap; overflow: hidden; }
.cf-row.swr .cf-swa { opacity: 1; }
.cf-row.swr .cf-swd { opacity: 0; }
.cf-ativo { display: flex; align-items: center; gap: 6px; margin: 0 10px 8px; padding: 7px 10px; background: none; border: 1px dashed var(--line); border-radius: 10px; cursor: pointer; text-align: left; font-size: 12px; min-width: 0; }
.cf-ativo[hidden] { display: none; }
.cf-ativo span { color: #2e9d5b; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; font-size: 10px; }
.cf-ativo b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.cf-ativo small { flex: 1; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-ativo i { font-style: normal; color: var(--dim); }
.cf-it em.cf-emus { color: #2e9d5b; }

.cf-mkmenu { position: relative; top: auto; left: auto; right: auto; margin: -4px 10px 8px; }
.cf-mkmenu button.on { color: #2e9d5b; }
.cf-ativo i { font-size: 11px; font-weight: 700; color: var(--accent); }
