:root {
  --bg: #0e0f13; --bg2: #15171d; --bg3: #1d2028; --line: #2a2e39; --line2: #3a3f4d;
  --tx: #eef0f5; --tx2: #a7adbb; --tx3: #6f7686;
  --acc: #f2b441; --acc2: #ffcf6b; --teal: #5cc6b3; --red: #ff5a5f; --blue: #8fa8ff;
  --paper: #fbfbf8; --ink: #15161a; --ink2: #5b5f6a; --playhead: #e0403f;
  --r: 14px; --r2: 10px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--tx); font-family: var(--font); overscroll-behavior: none; }
body { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg .f { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }
input[type=range] { accent-color: var(--acc); width: 100%; }
select, input[type=number], textarea { background: var(--bg3); color: var(--tx); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 8px; font: inherit; }
textarea { width: 100%; resize: vertical; min-height: 160px; line-height: 1.5; }
code { background: var(--bg3); padding: 2px 6px; border-radius: 6px; font-size: .85em; word-break: break-all; }

.app { height: 100dvh; display: flex; flex-direction: column; }

/* ---------- topo ---------- */
.top { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--bg); min-height: 56px; }
.song-btn { background: none; border: 0; text-align: left; padding: 4px 8px; border-radius: 10px; display: flex; flex-direction: column; min-width: 0; max-width: 260px; }
.song-btn:hover { background: var(--bg3); }
.song-title { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-title::after { content: " ▾"; color: var(--tx3); font-size: 12px; }
.song-sub { font-size: 12px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modes { display: flex; gap: 2px; background: var(--bg2); padding: 3px; border-radius: 12px; margin: 0 auto; }
.modes button { display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 7px 12px; border-radius: 9px; color: var(--tx2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.modes button svg { width: 18px; height: 18px; }
.modes button[aria-selected=true] { background: var(--bg3); color: var(--tx); box-shadow: inset 0 0 0 1px var(--line2); }
.modes button[aria-selected=true] svg { color: var(--acc); }
.top-actions { display: flex; gap: 6px; align-items: center; }

.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--tx2); white-space: nowrap; transition: .15s; }
.chip svg { width: 17px; height: 17px; }
.chip:hover { border-color: var(--line2); color: var(--tx); }
.chip[aria-pressed=true] { background: color-mix(in srgb, var(--acc) 16%, var(--bg2)); border-color: color-mix(in srgb, var(--acc) 55%, transparent); color: var(--acc2); }
.icon-btn { background: var(--bg2); border: 1px solid var(--line); width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 20px; padding: 0; flex: none; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { border-color: var(--line2); }
.ghost-btn { background: var(--bg3); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.ghost-btn:hover { border-color: var(--tx3); }
.ghost-btn.sm { padding: 4px 10px; font-size: 12px; }
.ghost-btn:disabled { opacity: .4; cursor: default; }
.primary-btn { background: var(--acc); color: #1a1405; border: 0; border-radius: 10px; padding: 9px 16px; font-weight: 800; font-size: 14px; }
.badge { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.badge.warn { background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--acc2); }

/* ---------- seções ---------- */
.sections { display: flex; gap: 6px; padding: 8px 14px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); flex: none; }
.sections::-webkit-scrollbar { display: none; }
.sec-chip { flex: none; display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 11px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--tx2); }
.sec-chip i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sec-chip .lp { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 0; color: var(--tx3); padding: 0; }
.sec-chip .lp svg { width: 14px; height: 14px; }
.sec-chip .lp:hover { background: var(--bg3); color: var(--tx); }
.sec-chip.cur { color: var(--tx); border-color: var(--line2); background: var(--bg3); }
.sec-chip.looping { border-color: var(--acc); }
.sec-chip.looping .lp { color: var(--acc); }

/* ---------- palco / modos ---------- */
.stage { flex: 1; min-height: 0; position: relative; display: grid; gap: 12px; padding: 12px 14px; overflow: hidden; }
.pane { min-height: 0; min-width: 0; display: none; position: relative; }
.paper { background: var(--paper); color: var(--ink); border-radius: var(--r); box-shadow: 0 10px 30px rgba(0,0,0,.35); position: relative; }

/* vídeo */
.video-box { position: relative; width: 100%; height: 100%; background: #000; border-radius: var(--r); overflow: hidden; display: grid; place-items: center; }
.video-box video { width: 100%; height: 100%; object-fit: contain; display: block; }
.video-box.mirror video { transform: scaleX(-1); }
.video-empty { position: absolute; color: var(--tx3); font-size: 14px; display: none; }
.video-off .video-box video { display: none; }
.video-off .video-empty { display: block; }

/* PALCO */
.stage[data-mode=palco] { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "video kit" "strip kit"; }
.stage[data-mode=palco] .p-video, .stage[data-mode=palco] .p-kit, .stage[data-mode=palco] .p-strip { display: block; }
.stage[data-mode=palco] .p-video { grid-area: video; }
.stage[data-mode=palco] .p-strip { grid-area: strip; }
.stage[data-mode=palco] .p-kit { grid-area: kit; }
.stage[data-mode=palco].no-video { grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "strip kit" "hw kit"; }
.stage[data-mode=palco].no-video .p-video { display: none; }
.stage[data-mode=palco].no-video .p-highway { display: block; grid-area: hw; }
.stage[data-mode=palco].no-score .p-strip { display: none; }
.stage[data-mode=palco].no-score:not(.no-video) { grid-template-areas: "video kit" "video kit"; }
.stage[data-mode=palco].no-score.no-video { grid-template-areas: "hw kit" "hw kit"; }

/* LETRA */
.stage[data-mode=letra] { grid-template-rows: minmax(0, 1fr) auto minmax(150px, 34%); grid-template-areas: "lyrics" "strip" "hw"; }
.stage[data-mode=letra] .p-lyrics { display: flex; grid-area: lyrics; }
.stage[data-mode=letra] .p-strip { display: block; grid-area: strip; }
.stage[data-mode=letra] .p-highway { display: block; grid-area: hw; }
.stage[data-mode=letra].no-score { grid-template-rows: minmax(0, 1fr) minmax(170px, 40%); grid-template-areas: "lyrics" "hw"; }
.stage[data-mode=letra].no-score .p-strip { display: none; }
.stage[data-mode=letra]:not(.no-video) .p-video { display: block; position: absolute; inset: 0; z-index: 0; opacity: .28; filter: blur(2px) saturate(.8); pointer-events: none; }
.stage[data-mode=letra] .p-video .video-box { border-radius: 0; }
.stage[data-mode=letra] .p-video video { object-fit: cover; }
.stage[data-mode=letra] > .pane:not(.p-video) { z-index: 1; }

/* PARTITURA */
.stage[data-mode=partitura] { grid-template-rows: minmax(0, 1fr); grid-template-areas: "score"; }
.stage[data-mode=partitura] .p-score { display: flex; flex-direction: column; grid-area: score; }
.stage[data-mode=partitura]:not(.no-video) .p-video { display: block; position: absolute; right: 26px; bottom: 18px; width: min(340px, 38vw); aspect-ratio: 16/9; z-index: 5; box-shadow: 0 12px 40px rgba(0,0,0,.6); border-radius: var(--r); }

/* JOGO (bateria): pista grande em cima, sua bateria embaixo, vídeo ao lado */
.stage[data-mode=bateria] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(170px, 32%); grid-template-areas: "hw" "kit"; }
.stage[data-mode=bateria] .p-kit { display: block; grid-area: kit; }
.stage[data-mode=bateria] .p-highway { display: block; grid-area: hw; }
.stage[data-mode=bateria] .limbs { display: none; }
.stage[data-mode=bateria]:not(.no-video) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "hw hw" "kit video"; }
.stage[data-mode=bateria]:not(.no-video) .p-video { display: block; grid-area: video; }
.stage[data-mode=bateria] .kit-wrap { flex-direction: row; align-items: stretch; }
.stage[data-mode=bateria] .now { flex-direction: column; justify-content: center; align-items: flex-start; min-width: 120px; gap: 6px; }
.stage[data-mode=bateria] .count { font-size: 54px; line-height: 1; }
.stage[data-mode=bateria] .next-sec { text-align: left; }

/* EDITOR */
.stage[data-mode=editor] { grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "editor" "strip"; }
.stage[data-mode=editor] .p-editor { display: flex; flex-direction: column; grid-area: editor; }
.stage[data-mode=editor] .p-strip { display: block; grid-area: strip; }

/* AULA */
.stage[data-mode=aula] { grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "lesson side" "lesson strip"; }
.stage[data-mode=aula] .p-lesson { display: block; grid-area: lesson; }
.stage[data-mode=aula] .p-strip { display: block; grid-area: strip; }
.stage[data-mode=aula] .p-kit { display: block; grid-area: side; }
.stage[data-mode=aula]:not(.no-video) .p-kit { display: none; }
.stage[data-mode=aula]:not(.no-video) .p-video { display: block; grid-area: side; }
.p-lesson { overflow-y: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.ls-prog { height: 6px; background: var(--bg3); border-radius: 99px; overflow: hidden; }
.ls-prog div { height: 100%; background: linear-gradient(90deg, var(--teal), var(--acc)); transition: width .3s; }
.ls-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--tx3); font-weight: 700; margin: 6px 0 12px; }
.ls-group { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ls-card h3 { margin: 4px 0 10px; font-size: 22px; line-height: 1.2; }
.ls-card p { margin: 0 0 8px; color: var(--tx2); font-size: 14.5px; line-height: 1.5; }
.ls-goal { background: color-mix(in srgb, var(--teal) 12%, var(--bg3)); border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 12px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.ls-goal b { color: var(--teal); text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.ls-loops { margin-left: auto; font-weight: 800; color: var(--tx); font-variant-numeric: tabular-nums; }
.ls-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.ls-tags span { font-size: 11.5px; font-weight: 700; color: var(--tx2); background: var(--bg3); border: 1px solid var(--line); padding: 2px 8px; border-radius: 99px; }
.ls-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ls-actions .primary-btn { flex: 1 1 100%; padding: 12px; font-size: 15px; }
.ls-actions .ghost-btn { flex: 1; }
.ls-help { margin-top: 10px; padding: 10px; border: 1px dashed var(--line2); border-radius: 12px; display: grid; gap: 8px; }
.ls-help-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ls-help-btns .ghost-btn { font-size: 13px; padding: 7px 8px; }
.ls-nav { display: flex; justify-content: space-between; gap: 6px; margin-top: 14px; }
.ls-list { margin-top: 12px; display: grid; gap: 10px; }
.ls-lgh { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.ls-item { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 6px 4px; border-radius: 8px; font-size: 13.5px; color: var(--tx2); }
.ls-item i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg3); font-size: 11px; font-weight: 800; flex: none; }
.ls-item.ok i { background: var(--teal); color: #062; }
.ls-item.cur { background: var(--bg3); color: var(--tx); }
.ls-item:hover { background: var(--bg3); }
/* painel de treino simplificado */
.sheet-body.tr { gap: 0; padding-top: 0; }
.tg { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.tg:first-child { border-top: 0; }
.tg h3 { margin: 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--tx2); display: flex; justify-content: space-between; }
.tg h3 b { color: var(--acc2); font-size: 15px; letter-spacing: 0; }
.speed { display: flex; gap: 8px; align-items: stretch; }
.speed .seg { flex: 1; }
.big-btn { width: 46px; flex: none; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg3); font-size: 22px; font-weight: 800; }
.seg.big button { padding: 11px 6px; font-size: 14px; }
.seg button { transition: background .12s; }
.sheet .seg button[aria-pressed=true] { background: var(--acc); color: #1a1405; box-shadow: 0 2px 10px rgba(242,180,65,.25); }
#spPresets button { padding: 10px 0; }
.switch small { color: var(--tx3); font-weight: 600; }
.vol { display: grid; grid-template-columns: 64px 1fr 42px; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--tx2); }
.vol output { text-align: right; font-variant-numeric: tabular-nums; color: var(--tx); font-size: 13px; }
/* controle deslizante próprio (igual em todos os navegadores) */
input.rng { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 50%; }
input.rng::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--acc) var(--p), var(--line2) var(--p)); }
input.rng::-moz-range-track { height: 8px; border-radius: 99px; background: var(--line2); }
input.rng::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--acc); }
input.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -7px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
input.rng::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
input.rng:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 45%, transparent); }
.mixer { display: grid; gap: 8px; padding: 10px; background: var(--bg); border-radius: 12px; border: 1px solid var(--line); }
.mixer.off { opacity: .45; }
.mixer .lbl input { max-width: 62%; }

/* ---------- partitura ---------- */
.p-score .score-head { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding-bottom: 8px; }
.p-score .score-head .badge { margin-right: auto; }
.page { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 8px 60px; scroll-behavior: smooth; }
.strip { height: auto; overflow: hidden; padding: 4px 8px; }
.nt-sys { position: relative; }
.nt-svg { display: block; overflow: visible; }
.nt-staff line { stroke: #8c8f98; stroke-width: 1; }
.nt-barline { stroke: #2b2d33; stroke-width: 1.3; }
.nt-barline.end { stroke-width: 3; }
.nt-clef { fill: var(--ink); stroke: none; }
.nt-time text { fill: var(--ink); stroke: none; font-weight: 800; text-anchor: middle; font-family: Georgia, "Times New Roman", serif; }
.nt-hit { fill: transparent; stroke: none; cursor: pointer; }
.nt-bar.cur .nt-hit { fill: rgba(242, 180, 65, .10); }
.nt-loop { fill: rgba(92, 198, 179, .13); stroke: none; }
.nt-sel { fill: rgba(143, 168, 255, .18); stroke: none; }
.nt-barnum { fill: var(--ink2); stroke: none; font-size: 11px; font-weight: 700; }
.nt-section { stroke: none; font-size: 12px; font-weight: 800; letter-spacing: .02em; paint-order: stroke; }
.nt-fill { fill: var(--ink); stroke: none; }
.nt-x { stroke: var(--ink); stroke-width: 1.7; }
.nt-xc { stroke: var(--ink); stroke-width: 1.2; }
.nt-open { stroke: var(--ink); stroke-width: 1.3; fill: none; }
.nt-stem { stroke: var(--ink); stroke-width: 1.3; }
.nt-beam { fill: var(--ink); stroke: none; }
.nt-flag { stroke: var(--ink); stroke-width: 1.6; }
.nt-dot { fill: var(--ink); stroke: none; }
.nt-ledger { stroke: #55585f; stroke-width: 1.1; }
.nt-accent { stroke: var(--ink); stroke-width: 1.4; }
.nt-rest { fill: var(--ink); stroke: none; }
.nt-rest.stroke { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.nt-paren { fill: var(--ink2); stroke: none; font-size: 13px; text-anchor: middle; }
.nt-tuplet { fill: var(--ink); stroke: none; font-size: 11px; font-weight: 700; font-style: italic; text-anchor: middle; }
.nt-hand { fill: #2b6cb0; stroke: none; font-size: 12px; font-weight: 800; text-anchor: middle; }
.nt-hand.left { fill: #c0392b; }
.nt-hand.both { fill: #6b3fa0; font-size: 10px; }
.nt-count { fill: var(--ink2); stroke: none; font-size: 11px; text-anchor: middle; font-weight: 600; }
.nt-count.beat { fill: var(--ink); font-weight: 800; font-size: 12px; }
.nt-count.dim { opacity: .45; }
.nt-head.ghost { opacity: .55; }
.nt-head.on .nt-fill, .nt-head.on .nt-x, .nt-head.on .nt-xc { fill: var(--playhead); stroke: var(--playhead); }
.nt-head.on .nt-fill { fill: var(--playhead); }
.nt-open.on { stroke: var(--playhead); }
.nt-playhead { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-left: 3px dashed var(--playhead); pointer-events: none; will-change: transform; opacity: .9; }
.focus-hands .nt-notes [data-v=down], .focus-feet .nt-notes [data-v=up] { opacity: .18; }

/* ---------- letra ---------- */
.p-lyrics { flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden; }
.lyrics { width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px; }
.ly-sec { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
.ly-cur { font-size: clamp(22px, min(5vw, 6.5vh), 58px); font-weight: 800; line-height: 1.12; text-shadow: 0 3px 24px rgba(0,0,0,.6); max-width: 22ch; }
.ly-cur.tip { font-size: clamp(15px, min(2.4vw, 3.4vh), 26px); font-weight: 650; max-width: 42ch; line-height: 1.35; color: var(--tx); }
.ly-next { font-size: clamp(14px, min(2.4vw, 3vh), 26px); color: var(--tx2); font-weight: 600; max-width: 30ch; }
@media (max-height: 760px) { .lyrics .ghost-btn { padding: 4px 10px; font-size: 12px; } }
.lyrics .ghost-btn { margin-top: 6px; opacity: .85; }

/* ---------- bateria ---------- */
.p-kit { background: radial-gradient(120% 90% at 50% 0%, #1c1f27 0%, var(--bg2) 60%); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kit-wrap { height: 100%; display: flex; flex-direction: column; padding: 10px; gap: 6px; }
.now { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 4px; }
.count { font-size: 30px; font-weight: 900; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.count small { font-size: 16px; color: var(--tx3); font-weight: 700; margin-left: 4px; }
.next-sec { font-size: 12.5px; color: var(--tx2); text-align: right; font-weight: 600; }
.next-sec b { color: var(--acc2); }
#kit { flex: 1; min-height: 0; width: 100%; }
#kit .wood { fill: #b98a55; stroke: #8a6236; stroke-width: 2; }
#kit .frame { fill: none; stroke: #8a6236; stroke-width: 7; stroke-linecap: round; opacity: .55; }
#kit .pad { fill: #1b1c21; stroke: #c99a62; stroke-width: 4; transition: fill .15s, stroke .15s; }
#kit .pad-g { transform-box: fill-box; transform-origin: center; transition: transform .1s cubic-bezier(.3,1.6,.5,1), filter .15s; }
#kit .pad-g.hit .pad { fill: var(--hc, var(--acc)); stroke: #fff; }
#kit .pad-g.hit { transform: scale(1.1); filter: drop-shadow(0 0 14px var(--hc, var(--acc))); }
#kit .pad-g.hit .lbl { fill: #111; }
#kit .pad-g.dim { opacity: .25; }
#kit .lbl { fill: #e9e1d4; stroke: none; font-size: 12px; font-weight: 700; text-anchor: middle; pointer-events: none; }
#kit .ring { fill: none; stroke-width: 3; pointer-events: none; }
#kit .badge { font-size: 17px; font-weight: 900; text-anchor: middle; stroke: #111; stroke-width: 3; paint-order: stroke; pointer-events: none; }
.limbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.limb { background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; min-width: 0; }
.limb .lname { font-size: 10.5px; color: var(--tx3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.limb .lnow { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 19px; }
.limb .lnext { font-size: 11.5px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.limb.on { border-color: var(--lc, var(--acc)); box-shadow: inset 0 0 0 1px var(--lc, var(--acc)); }
.limb.dim { opacity: .3; }

/* ---------- highway ---------- */
.p-highway { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
#highway { width: 100%; height: 100%; display: block; touch-action: pan-y; }

/* ---------- editor ---------- */
.p-editor { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; gap: 10px; }
.ed-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-title { font-weight: 800; min-width: 150px; text-align: center; }
.ed-title small { display: block; color: var(--tx3); font-size: 11px; font-weight: 600; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.seg button { background: none; border: 0; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--tx2); }
.seg button[aria-pressed=true] { background: var(--bg3); color: var(--tx); box-shadow: inset 0 0 0 1px var(--line2); }
.seg.wide { display: flex; }
.seg.wide button { flex: 1; }
.ed-grid { flex: 1; min-height: 0; overflow: auto; display: grid; gap: 2px; align-content: start; user-select: none; }
.ed-row-lbl { position: sticky; left: 0; z-index: 1; background: var(--bg2); font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; padding-right: 8px; white-space: nowrap; }
.ed-row-lbl i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ed-cell { height: 32px; min-width: 26px; border-radius: 6px; background: var(--bg3); border: 0; padding: 0; font-size: 11px; font-weight: 900; color: #111; position: relative; }
.ed-cell.beat { background: #262a35; }
.ed-cell.on { background: var(--c); }
.ed-cell.on.acc::after { content: ">"; position: absolute; top: -1px; right: 3px; font-size: 10px; }
.ed-cell.on.gh { opacity: .55; }
.ed-cell.now { outline: 2px solid var(--playhead); }
.ed-head { font-size: 11px; color: var(--tx3); text-align: center; font-weight: 700; }
.ed-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grow { flex: 1; }

/* ---------- transporte ---------- */
.transport { border-top: 1px solid var(--line); background: var(--bg); padding: 8px 14px calc(8px + var(--safe-b)); flex: none; }
.timeline { position: relative; height: 26px; cursor: pointer; touch-action: none; outline: none; }
.tl-secs { position: absolute; inset: 9px 0; display: flex; border-radius: 6px; overflow: hidden; background: var(--bg3); }
.tl-secs span { height: 100%; opacity: .32; border-right: 1px solid var(--bg); }
.tl-secs span.cur { opacity: .75; }
.tl-fill { position: absolute; left: 0; top: 9px; bottom: 9px; background: rgba(255,255,255,.18); border-radius: 6px 0 0 6px; pointer-events: none; }
.tl-loop { position: absolute; top: 4px; bottom: 4px; border: 2px solid var(--acc); border-radius: 7px; background: color-mix(in srgb, var(--acc) 14%, transparent); pointer-events: none; }
.tl-head { position: absolute; top: 2px; bottom: 2px; width: 4px; margin-left: -2px; background: #fff; border-radius: 3px; box-shadow: 0 0 0 3px rgba(0,0,0,.35); pointer-events: none; }
.timeline:focus-visible .tl-head { box-shadow: 0 0 0 3px var(--acc); }
.controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 4px; }
.c-left { display: flex; gap: 10px; align-items: baseline; font-variant-numeric: tabular-nums; min-width: 0; }
.time { font-weight: 800; font-size: 15px; }
.pos { color: var(--tx2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.c-mid { display: flex; gap: 10px; align-items: center; }
.controls { grid-template-columns: auto auto auto 1fr; }
.c-left { min-width: 110px; }
.looppad { display: flex; align-items: center; gap: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; justify-self: start; }
.looppad button { min-width: 38px; height: 34px; border: 0; border-radius: 9px; background: var(--bg3); font-weight: 900; font-size: 14px; color: var(--tx2); font-variant-numeric: tabular-nums; }
.looppad button:hover { color: var(--tx); }
.looppad button.on { background: var(--teal); color: #052; box-shadow: 0 0 0 2px color-mix(in srgb, var(--teal) 40%, transparent); animation: lp 1s infinite; }
.looppad .lp-x { background: transparent; color: var(--tx3); min-width: 30px; }
.looppad.active .lp-x { background: color-mix(in srgb, var(--red) 22%, var(--bg3)); color: #ffb3b3; }
@keyframes lp { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--teal) 15%, transparent); } }
.lp-beats { display: flex; gap: 3px; padding: 0 6px; }
.lp-beats i { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.lp-beats i.on { background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.lp-beats i.on:first-child { background: var(--red); box-shadow: 0 0 8px var(--red); }
.play-btn { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--acc); color: #1a1405; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(242,180,65,.3); }
.play-btn svg { width: 24px; height: 24px; }
.play-btn .i-pause, .playing .play-btn .i-play { display: none; }
.playing .play-btn .i-pause { display: block; }
.c-right { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- contagem ---------- */
.countin-overlay { position: absolute; inset: 0; display: grid; place-items: center; z-index: 20; pointer-events: none; font-size: min(30vw, 220px); font-weight: 900; color: var(--acc); text-shadow: 0 10px 50px rgba(0,0,0,.7); animation: pop .3s ease-out; }
@keyframes pop { from { transform: scale(1.3); opacity: .3; } to { transform: scale(1); opacity: 1; } }

/* ---------- sheets ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(5,6,9,.6); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet-card { width: min(560px, 100%); max-height: min(86dvh, 820px); display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--line2); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.sheet-head h2 { margin: 0; font-size: 18px; }
.sheet-body { padding: 8px 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.group { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.lbl { font-size: 13px; font-weight: 700; color: var(--tx2); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.lbl b { color: var(--tx); }
.mix .lbl input { max-width: 65%; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.row.small { font-size: 13px; color: var(--tx2); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets button { background: var(--bg3); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 700; }
.presets button.on { border-color: var(--acc); color: var(--acc2); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.stepper button { background: var(--bg3); border: 0; width: 34px; height: 34px; font-size: 18px; }
.stepper input { width: 56px; border: 0; border-radius: 0; text-align: center; height: 34px; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.switch input { display: none; }
.switch span { width: 40px; height: 23px; background: var(--line2); border-radius: 999px; position: relative; flex: none; transition: .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked + span { background: var(--acc); }
.switch input:checked + span::after { left: 20px; }
.hint { color: var(--tx2); font-size: 13px; line-height: 1.45; margin: 0; }
.hint.kbd { font-size: 12.5px; }
.song-list { display: grid; gap: 10px; }
.song-card { display: flex; gap: 12px; align-items: center; background: var(--bg3); border: 1px solid var(--line); border-radius: 12px; padding: 8px; text-align: left; }
.song-card img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: #000; }
.song-card b { display: block; }
.song-card span { font-size: 12.5px; color: var(--tx2); }
.song-card.cur { border-color: var(--acc); }
.howto { font-size: 13.5px; color: var(--tx2); }
.howto summary { cursor: pointer; font-weight: 700; color: var(--tx); }
.howto li { margin: 6px 0; }
.sec-list { display: grid; gap: 6px; }
.sec-row { display: grid; grid-template-columns: 14px 1fr 80px 34px; gap: 8px; align-items: center; }
.sec-row i { width: 12px; height: 12px; border-radius: 50%; }
.sec-row input { min-width: 0; }

.toast { position: fixed; left: 50%; bottom: calc(110px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: #fff; color: #111; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 80; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .modes button span { display: none; }
  .modes button { padding: 8px 11px; }
  .top-actions .chip span { display: none; }
  .top-actions .chip { padding: 8px; }
}
@media (max-width: 900px) {
  .stage { padding: 8px; gap: 8px; }
  .stage[data-mode=palco] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "video" "strip" "kit"; }
  .stage[data-mode=palco] .p-video { aspect-ratio: 16/9; max-height: 34dvh; justify-self: center; width: 100%; }
  .stage[data-mode=palco].no-video { grid-template-rows: auto minmax(0, 1fr) minmax(0, 0.8fr); grid-template-areas: "strip" "kit" "hw"; }
  .stage[data-mode=palco].no-score:not(.no-video) { grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "video" "kit"; }
  .stage[data-mode=palco].no-score.no-video { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "kit" "hw"; }
  .stage[data-mode=bateria], .stage[data-mode=bateria]:not(.no-video) { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(140px, 30%); grid-template-areas: "hw" "kit"; }
  .stage[data-mode=bateria]:not(.no-video) .p-video { display: none; }
  .stage[data-mode=bateria] .count { font-size: 34px; }
  .stage[data-mode=bateria] .now { min-width: 76px; }
  .stage[data-mode=partitura]:not(.no-video) .p-video { width: 46vw; right: 14px; bottom: 12px; }
  .stage[data-mode=aula] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "lesson" "strip"; }
  .stage[data-mode=aula] .p-kit, .stage[data-mode=aula]:not(.no-video) .p-video { display: none; }
  .p-lesson { padding: 10px; }
  .ls-card h3 { font-size: 18px; }
  .ls-card p { font-size: 13.5px; }
  .controls { grid-template-columns: auto 1fr; grid-template-areas: "left mid" "loop loop" "right right"; row-gap: 6px; }
  .looppad { grid-area: loop; justify-self: stretch; }
  .looppad button { flex: 1; }
  .c-left { min-width: 0; }
  .c-left { grid-area: left; flex-direction: column; gap: 0; }
  .c-mid { grid-area: mid; justify-content: flex-end; }
  .c-right { grid-area: right; justify-content: space-between; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .c-right .chip { flex: 1; justify-content: center; padding: 7px 8px; }
  .limbs { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .limb { padding: 4px 6px; }
  .limb .lname { font-size: 9px; letter-spacing: .02em; }
  .limb .lnow { font-size: 12px; min-height: 16px; }
  .limb .lnext { display: none; }
  #kit { min-height: 140px; }
  .kit-wrap { padding: 6px; gap: 4px; }
  .count { font-size: 22px; }
}
@media (max-width: 600px) {
  .top { padding: 6px 8px; gap: 6px; flex-wrap: wrap; min-height: 0; }
  .song-btn { flex: 1; max-width: none; order: 1; }
  .top-actions { order: 2; }
  .modes { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .modes button { flex: 1; justify-content: center; }
  .sections { padding: 6px 8px; }
  .transport { padding: 6px 8px calc(6px + var(--safe-b)); }
  .c-right .chip span { font-size: 12px; }
  .c-right .chip svg { display: none; }
  .play-btn { width: 50px; height: 50px; }
  .count { font-size: 24px; }
  .stage[data-mode=letra] { grid-template-rows: minmax(0, 1fr) auto minmax(130px, 32%); }
  .ed-cell { min-width: 20px; height: 30px; }
  .sheet { padding: 0; place-items: end stretch; }
  .sheet-card { width: 100%; border-radius: 18px 18px 0 0; max-height: 90dvh; padding-bottom: var(--safe-b); }
}
@media (hover: none) { .chip:hover, .icon-btn:hover, .ghost-btn:hover { border-color: var(--line); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .page { scroll-behavior: auto; } }

/* =====================================================================
   POLIMENTO VISUAL + ANIMAÇÕES (v2)
   ===================================================================== */
body { background: radial-gradient(120% 70% at 50% -10%, #1a1d27 0%, var(--bg) 55%) fixed; }
.app { background: transparent; }
.top { background: rgba(14,15,19,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: rgba(255,255,255,.06); }
.sections { border-bottom-color: rgba(255,255,255,.05); }
.transport { background: rgba(14,15,19,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top-color: rgba(255,255,255,.06); }

/* resposta ao toque em tudo que é botão */
button { transition: transform .12s ease, background-color .15s, border-color .15s, color .15s, box-shadow .2s; }
button:active { transform: scale(.95); }

/* abas de modo: indicador suave */
.modes button { position: relative; }
.modes button[aria-selected=true] { background: linear-gradient(180deg, #2a2e3a, #22252f); }
.modes button[aria-selected=true]::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 2px; height: 2px; border-radius: 2px; background: var(--acc); animation: grow .25s ease-out; }
@keyframes grow { from { transform: scaleX(0); } }

/* troca de modo: os painéis entram com fade + leve subida */
.stage > .pane { animation: paneIn .35s cubic-bezier(.2,.8,.2,1) both; }
.stage > .pane:nth-child(2) { animation-delay: .03s; } .stage > .pane:nth-child(3) { animation-delay: .06s; }
.stage > .pane:nth-child(4) { animation-delay: .09s; } .stage > .pane:nth-child(5) { animation-delay: .12s; }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px) scale(.995); } }

/* cartões com borda luminosa sutil */
.p-kit, .p-highway, .p-editor, .p-lesson { border-color: rgba(255,255,255,.07); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px rgba(0,0,0,.25); }
.video-box { box-shadow: 0 18px 40px rgba(0,0,0,.35); }

/* seção atual em destaque */
.sec-chip { transition: all .2s; }
.sec-chip.cur { background: linear-gradient(180deg, #2a2e3a, #22252f); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 18px rgba(0,0,0,.3); }
.sec-chip.cur i { box-shadow: 0 0 10px currentColor; animation: dot 1.2s ease-in-out infinite; }
@keyframes dot { 50% { transform: scale(1.35); } }

/* ▶: chama para o primeiro play e pulsa no tempo */
.play-btn { transition: transform .12s, box-shadow .2s; }
.fresh .play-btn { animation: callme 1.6s ease-out infinite; }
@keyframes callme { 0% { box-shadow: 0 0 0 0 rgba(242,180,65,.55), 0 6px 20px rgba(242,180,65,.3); } 70% { box-shadow: 0 0 0 18px rgba(242,180,65,0), 0 6px 20px rgba(242,180,65,.3); } 100% { box-shadow: 0 0 0 0 rgba(242,180,65,0); } }
.play-btn.beat { animation: beat .28s ease-out; }
.play-btn.beat.one { animation: beatOne .32s ease-out; }
@keyframes beat { 0% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes beatOne { 0% { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(242,180,65,.25); } 100% { transform: scale(1); } }
.count.beat { animation: countBeat .3s ease-out; }
.count.beat.one { color: var(--acc2); }
@keyframes countBeat { 0% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* linha do tempo com cabeça luminosa */
.tl-head { box-shadow: 0 0 0 3px rgba(0,0,0,.35), 0 0 14px rgba(255,255,255,.6); transition: left .08s linear; }
.timeline:hover .tl-secs span { opacity: .55; }

/* chip de repetição: só aparece quando está repetindo (clique = soltar) */
#btnLoop[aria-pressed=false] { display: none; }
#btnLoop[aria-pressed=true] { background: color-mix(in srgb, var(--teal) 22%, var(--bg2)); border-color: var(--teal); color: #c9fff4; animation: paneIn .25s ease-out; }

/* painéis deslizam (celular: de baixo; desktop: zoom suave) */
.sheet { animation: fade .18s ease-out; }
.sheet .sheet-card { animation: sheetIn .28s cubic-bezier(.2,.9,.25,1); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* toast mais elegante */
.toast { background: rgba(255,255,255,.96); box-shadow: 0 12px 40px rgba(0,0,0,.45); border-radius: 14px; }

/* contagem antes de tocar */
.countin-overlay { background: radial-gradient(closest-side, rgba(14,15,19,.55), transparent); }

/* ---------- tour guiado ---------- */
.tour { position: fixed; inset: 0; z-index: 90; }
.tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(5,6,9,.72), 0 0 0 2px var(--acc), 0 0 30px rgba(242,180,65,.45); transition: all .35s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.tour-card { position: fixed; width: 360px; background: linear-gradient(180deg, #23262f, #1a1c23); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px 16px 14px; box-shadow: 0 24px 70px rgba(0,0,0,.6); transition: left .3s, top .3s; }
.tour-card.in { animation: tourIn .3s cubic-bezier(.2,.9,.25,1); }
@keyframes tourIn { from { opacity: 0; translate: 0 8px; } }
.tour-card h3 { margin: 6px 0 6px; font-size: 18px; }
.tour-card p { margin: 0 0 14px; color: var(--tx2); font-size: 14.5px; line-height: 1.5; }
.tour-dots { display: flex; gap: 5px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line2); transition: all .2s; }
.tour-dots i.on { width: 18px; background: var(--acc); }
.tour-btns { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* abas com nome também no celular */
@media (max-width: 600px) {
  .modes button { flex-direction: column; gap: 2px; padding: 6px 2px; }
  .modes button span { display: block !important; font-size: 10px; font-weight: 700; letter-spacing: .01em; }
  .modes button svg { width: 19px; height: 19px; }
  .tour-card { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .stage > .pane, .fresh .play-btn, .sec-chip.cur i { animation: none !important; } }

/* =====================================================================
   PRODUTO: login, assinatura, conta, admin
   ===================================================================== */
body.product:not(.is-admin) .modes [data-mode=editor] { display: none; }
.acct-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--bg2); border-radius: 999px; padding: 3px 10px 3px 3px; font-weight: 800; font-size: 12.5px; }
.acct-btn:not(:has(.pro)) { padding-right: 3px; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--acc), #ff8a5c); color: #1a1405; font-weight: 900; font-size: 14px; }
.av.big { width: 48px; height: 48px; font-size: 20px; }
.acct-btn .pro { color: var(--acc2); }

.auth { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: radial-gradient(80% 60% at 20% 0%, rgba(242,180,65,.18), transparent 60%), radial-gradient(70% 60% at 100% 100%, rgba(92,198,179,.14), transparent 60%), #0b0c10; }
.auth-card { width: min(440px, 100%); background: rgba(21,23,29,.85); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.08); border-radius: 22px; padding: 26px 22px 18px; box-shadow: 0 30px 90px rgba(0,0,0,.6); animation: sheetIn .4s cubic-bezier(.2,.9,.25,1); }
.auth-brand { font-weight: 900; font-size: 15px; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; color: var(--tx2); }
.auth-brand .logo { font-size: 22px; }
.auth h1 { font-size: clamp(24px, 6vw, 30px); line-height: 1.12; margin: 14px 0 8px; }
.auth h1 em { font-style: normal; color: var(--acc); }
.auth-sub { color: var(--tx2); margin: 0 0 18px; line-height: 1.5; font-size: 14.5px; }
.auth-tabs { margin-bottom: 14px; }
.fld { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--tx2); }
.fld input { height: 46px; font-size: 16px; border-radius: 12px; padding: 0 14px; background: #0f1015; border: 1px solid var(--line2); color: var(--tx); }
.fld input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(242,180,65,.2); }
.auth-err { min-height: 20px; color: #ff9a9a; font-size: 13.5px; font-weight: 600; margin: 0 0 6px; }
.auth-go, .primary-btn.big { width: 100%; height: 50px; font-size: 16px; border-radius: 14px; }
.auth-go:disabled { opacity: .6; }
.auth-foot { color: var(--tx3); font-size: 12px; text-align: center; margin: 12px 0 0; }

.sheet-card.pay .price { display: flex; align-items: baseline; gap: 6px; }
.sheet-card.pay .price b { font-size: 40px; font-weight: 900; color: var(--acc2); }
.sheet-card.pay .price span { color: var(--tx2); font-weight: 700; }
.perks { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 9px; }
.perks li { padding-left: 28px; position: relative; font-size: 14.5px; line-height: 1.4; }
.perks li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--teal) 25%, transparent); color: var(--teal); display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.hint.center { text-align: center; }

.acct-head { display: flex; gap: 12px; align-items: center; }
.acct-head b { display: block; font-size: 17px; }
.acct-head span { color: var(--tx2); font-size: 13.5px; }
.acct-plan { display: flex; justify-content: space-between; gap: 10px; padding: 14px; border-radius: 14px; background: var(--bg3); border: 1px solid var(--line); }
.acct-plan span { color: var(--tx2); font-weight: 700; font-size: 13px; }
.acct-plan.on { border-color: color-mix(in srgb, var(--teal) 50%, transparent); }
.acct-plan.on b { color: var(--teal); }

.sheet-card.wide { width: min(860px, 100%); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpis div { background: var(--bg3); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpis b { display: block; font-size: 22px; font-weight: 900; }
.kpis span { color: var(--tx2); font-size: 12px; font-weight: 700; }
.adm-h { margin: 8px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--tx2); }
.adm-q { width: 100%; height: 40px; }
.adm-songs, .adm-users { display: grid; gap: 6px; }
.adm-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 12px; background: var(--bg3); border: 1px solid var(--line); border-radius: 12px; }
.adm-row > div { min-width: 0; flex: 1; }
.adm-row b { display: block; font-size: 14px; word-break: break-all; }
.adm-row span { color: var(--tx2); font-size: 12px; }
.tag { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--bg2); color: var(--tx3) !important; }
.tag.on { background: color-mix(in srgb, var(--teal) 20%, transparent); color: var(--teal) !important; }
.song-card.locked { opacity: .75; }
.song-card .poster-lock { width: 96px; aspect-ratio: 16/9; border-radius: 8px; background: var(--bg2); display: grid; place-items: center; font-size: 22px; }
.song-card .free { font-style: normal; font-size: 11px; color: var(--teal); background: color-mix(in srgb, var(--teal) 18%, transparent); padding: 1px 7px; border-radius: 99px; margin-left: 4px; }
@media (max-width: 600px) { .kpis { grid-template-columns: repeat(2, 1fr); } .acct-btn .pro { display: none; } }
.auth .seg button[aria-pressed=true] { background: var(--acc); color: #1a1405; }

/* upgrade com planos + música trancada elegante + busca */
.plan-list { display: grid; gap: 8px; }
.plan-opt { display: grid; gap: 4px; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--bg3); color: var(--tx); }
.plan-opt[aria-pressed=true] { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(242,180,65,.18); background: color-mix(in srgb, var(--acc) 8%, var(--bg3)); }
.po-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.po-price { font-weight: 900; color: var(--acc2); font-size: 18px; }
.po-price small { color: var(--tx2); font-size: 12px; font-weight: 700; }
.po-desc { color: var(--tx2); font-size: 13px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--tx3); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.ghost-btn.big { width: 100%; height: 48px; font-size: 15px; border-radius: 14px; }
.center-btn { text-align: center; text-decoration: none; }
.song-search { width: 100%; height: 44px; border-radius: 12px; background: #0f1015; border: 1px solid var(--line2); color: var(--tx); padding: 0 14px; font-size: 15px; }
.song-search:focus { outline: none; border-color: var(--acc); }
.genre-h { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); margin-top: 6px; }
.song-card .poster { position: relative; width: 96px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #23262f, #15171d); flex: none; }
.song-card .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.song-card.locked { opacity: 1; }
.song-card.locked .poster img { opacity: .35; filter: grayscale(.4); }
.song-card.locked > div b { opacity: .8; }
.song-card .lock { position: absolute; inset: 0; display: grid; place-items: center; }
.song-card .lock svg { width: 26px; height: 26px; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.unlock-hint { display: block; color: var(--acc2) !important; font-weight: 700; font-size: 12px !important; margin-top: 2px; }
body.product:not(.is-admin) .howto { display: none; }
