:root {
  --bg: #121216;
  --panel: #1c1c22;
  --panel2: #24242c;
  --line: #2f2f3a;
  --text: #ececf1;
  --muted: #9a9aab;
  --accent: #ffb547;
  --ok: #4ade80;
  --warn: #facc15;
  --bad: #f87171;
  --rec: #ef4444;
  --radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; }
h2 { font-size: 15px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 13px; margin: 16px 0 6px; color: var(--accent); }
[hidden] { display: none !important; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 20px;
  padding: 10px 20px; background: #16161b; border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; letter-spacing: .02em; }
.tabs { display: flex; gap: 4px; }
.tabs button {
  background: none; border: 0; color: var(--muted); padding: 8px 14px; border-radius: 8px; cursor: pointer; font: inherit;
}
.tabs button[aria-selected="true"] { background: var(--panel2); color: var(--text); }
.chips { margin-left: auto; display: flex; gap: 6px; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--panel2); color: var(--muted); }
.chip.ok { color: var(--ok); }
.chip.warn { color: var(--warn); }

main { max-width: 1180px; margin: 0 auto; padding: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 > .card { margin-bottom: 16px; }
.step { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #111; font-size: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.msg { min-height: 1.4em; margin: 8px 0 0; }
.msg.ok { color: var(--ok); }
.msg.warn { color: var(--warn); }
.msg.bad { color: var(--bad); }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }

label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
label.inline { display: inline-block; margin: 0; }
label.check { display: flex; gap: 6px; align-items: center; }
select, input, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 8px 10px;
  background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit;
}
input[type="checkbox"] { width: auto; margin: 0; }
input[type="range"] { padding: 0; accent-color: var(--accent); }
.row label { flex: 1; }

.btn {
  display: inline-block; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel2); color: var(--text); font: inherit; cursor: pointer; text-decoration: none;
}
.btn:hover:not(:disabled) { border-color: #4a4a58; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #111; font-weight: 600; }
.btn.danger { color: var(--bad); }
.btn.rec { width: 100%; background: var(--rec); border-color: var(--rec); color: #fff; font-weight: 700; font-size: 16px; padding: 12px; }
.btn.rec.stop { background: var(--panel2); border-color: var(--rec); color: var(--rec); }

.preview { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; display: block; object-fit: contain; }
.mirror { transform: scaleX(-1); }

/* 레벨 미터 */
.meters { display: grid; gap: 10px; margin-bottom: 8px; }
.meter { display: grid; grid-template-columns: 70px 1fr 64px; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.meter .bar { position: relative; height: 14px; background: var(--panel2); border-radius: 4px; overflow: hidden; }
.meter .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--ok) 0 70%, var(--warn) 70% 90%, var(--bad) 90%); transition: width .05s linear; }
.meter .peak { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; opacity: .7; }
.meter.selected .label { color: var(--accent); font-weight: 600; }
.meter.clip .val { color: var(--bad); font-weight: 700; }

/* 박 표시등 */
.beat-dots { display: flex; gap: 8px; margin: 12px 0; min-height: 18px; }
.beat-dots span { width: 16px; height: 16px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--line); }
.beat-dots span.count { border-color: var(--muted); }
.beat-dots span.on { background: var(--accent); border-color: var(--accent); }
.beat-dots span.hit { background: var(--ok); border-color: var(--ok); }

/* 레슨 */
.lesson-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.stage { position: relative; }
.overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; pointer-events: none; }
.overlay .big { font-size: 72px; font-weight: 800; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.big-dots span { width: 22px; height: 22px; }
.rec-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--panel2); }
.rec-dot.on { background: var(--rec); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.mini-meter { flex: 1; height: 6px; background: var(--panel2); border-radius: 3px; overflow: hidden; }
.mini-meter div { height: 100%; width: 0; background: var(--ok); }
.notice { background: #2a2414; border: 1px solid #5c4a1c; color: var(--warn); padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.notice a { color: var(--accent); }

/* 기록 */
.history-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.lesson-list { list-style: none; margin: 0; padding: 0; max-height: 70vh; overflow-y: auto; }
.lesson-list li { padding: 10px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.lesson-list li:hover { background: var(--panel2); }
.lesson-list li.active { border-color: var(--accent); background: var(--panel2); }
.lesson-list .t { font-weight: 600; }
.lesson-list .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lesson-list .empty { color: var(--muted); cursor: default; }

.guide summary { cursor: pointer; font-weight: 600; }
.guide ul { margin: 0; padding-left: 20px; line-height: 1.7; color: #cfcfda; }

/* 분석 결과 */
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.result h3 { margin-top: 18px; }
.result-head { display: flex; gap: 16px; align-items: center; }
.score { width: 108px; height: 108px; flex: none; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 50% 40%, #2a2a33, #1a1a20); border: 3px solid var(--accent); }
.score-v { font-size: 38px; font-weight: 800; line-height: 1; }
.score-l { font-size: 11px; color: var(--muted); margin-top: 4px; }
.result-right { flex: 1; min-width: 0; }
.grade { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stat { background: var(--panel2); border-radius: 8px; padding: 6px 8px; }
.stat-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-l { font-size: 11px; color: var(--muted); }
.stat.warn .stat-v { color: var(--warn); }
.describe { margin: 12px 0 0; padding-left: 18px; line-height: 1.7; }
.describe li.ok::marker { color: var(--ok); }
.describe li.warn { color: #f5e3a3; }
.describe li.warn::marker { color: var(--warn); }
.describe li.bad { color: var(--bad); }
.chart { width: 100%; height: auto; display: block; background: #17171c; border-radius: 8px; }
.chart .axis { font-size: 10px; fill: var(--muted); }
.chart .hint { fill: #6b6b7b; }
.chart .pt { cursor: pointer; }
.chart .pt:hover circle, .chart .pt:focus circle { r: 7; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }

/* 촬영 가이드 */
.guide-overlay { position: absolute; inset: 0 0 auto 0; aspect-ratio: 16 / 9; pointer-events: none; }
.guide-overlay .g-v, .guide-overlay .g-h { position: absolute; background: rgba(255, 181, 71, .45); }
.guide-overlay .g-v { top: 0; bottom: 0; width: 1px; }
.guide-overlay .g-h { left: 0; right: 0; height: 1px; }
.g1 { left: 33.3%; } .g2 { left: 66.6%; } .h1 { top: 33.3%; } .h2 { top: 66.6%; }
.g-tip { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 6px; }

/* AI 동의 창 */
.ai-dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; max-width: 460px; width: 92vw; padding: 20px; }
.ai-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.ai-dialog .opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 14px; cursor: pointer; }
.ai-dialog .opt:has(input:checked) { border-color: var(--accent); background: var(--panel2); }
.ai-dialog .opt:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.ai-dialog .opt input { width: auto; margin: 3px 0 0; }
.ai-dialog .notice { margin: 12px 0; }
.row-end { justify-content: flex-end; }
.ai-dialog { max-height: 92vh; overflow-y: auto; }
.refs { margin-top: 12px; border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; }
.refs summary { cursor: pointer; font-weight: 600; }
.refs label { margin-top: 10px; }
.ref-files { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.ref-files li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; color: #cfcfda; }
.ref-files button { background: none; border: 0; color: var(--bad); cursor: pointer; font: inherit; }
.ref-link { margin-left: 4px; color: #ff6b6b; border: 1px solid #ff6b6b; border-radius: 99px; padding: 2px 10px; font-size: 12px; text-decoration: none; white-space: nowrap; }
.badge.src { background: #1f2a3a; color: #9cc3ff; }

/* AI 리포트 */
.ai-report { margin-top: 16px; padding: 16px; border-radius: 10px; background: #19191f; border: 1px solid #3a3020; }
.ai-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ai-head h2 { margin: 0 8px 0 0; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--panel2); color: var(--muted); white-space: nowrap; }
.badge.demo { background: #4a3a14; color: var(--warn); }
.ai-summary { font-size: 15px; margin: 12px 0; }
.ai-progress { background: #16261b; border: 1px solid #24432d; padding: 8px 12px; border-radius: 8px; margin-bottom: 8px; }
.ai-section h3 { margin-top: 18px; }
.ai-item { padding: 10px 12px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 8px; }
.ai-item p { margin: 6px 0 0; color: #d6d6e0; line-height: 1.6; }
.ai-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-item.conf-low { opacity: .7; }
.ai-item.good { border-color: #24432d; }
.time-btn { margin-left: auto; background: none; border: 1px solid var(--accent); color: var(--accent); border-radius: 99px; padding: 2px 10px; cursor: pointer; font: inherit; font-size: 12px; }
.homework { background: #1d1a12; border-radius: 8px; padding: 2px 12px 12px; }
.hw-title { font-size: 16px; font-weight: 700; }
.hw-meta { color: var(--accent); margin: 4px 0; }
#review-report, #player-report { margin-bottom: 8px; }

/* 연습실 */
.practice-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.practice-layout > .card { margin-bottom: 16px; }
.seg { display: flex; background: var(--panel2); border-radius: 8px; padding: 3px; margin-bottom: 12px; }
.seg button { flex: 1; background: none; border: 0; color: var(--muted); padding: 7px; border-radius: 6px; cursor: pointer; font: inherit; }
.seg button.on { background: var(--panel); color: var(--text); }
.hw-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.hw-list li { padding: 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; cursor: pointer; }
.hw-list li:hover, .hw-list li.on { border-color: var(--accent); }
.hw-list .t { font-weight: 600; }
.hw-list .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.hw-list .empty { cursor: default; color: var(--muted); border-style: dashed; }
.ladder-card { min-height: 420px; }
.ladder-empty { display: grid; place-items: center; min-height: 380px; color: var(--muted); }
.ladder-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ladder-title { font-size: 16px; font-weight: 700; }
.bpm-big { text-align: center; margin-top: 10px; font-variant-numeric: tabular-nums; }
.bpm-big span { font-size: 84px; font-weight: 800; line-height: 1; }
.bpm-big small { color: var(--muted); margin-left: 6px; }
.ladder-status { text-align: center; color: var(--accent); font-weight: 600; margin-top: 4px; min-height: 1.4em; }
.center { justify-content: center; text-align: center; }
.beat-dots.center { justify-content: center; }
.ladder-focus { text-align: center; min-height: 1.4em; color: #d6d6e0; }
.progress { height: 6px; background: var(--panel2); border-radius: 3px; overflow: hidden; margin: 14px 0 10px; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.step-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px; }
.step-chips button { background: var(--panel2); border: 1px solid var(--line); color: var(--muted); border-radius: 99px; padding: 3px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.step-chips button.done { color: var(--ok); border-color: #24432d; }
.step-chips button.now { color: #111; background: var(--accent); border-color: var(--accent); font-weight: 700; }
.ctrl .btn.big { min-width: 140px; font-size: 16px; }
.opts { margin-top: 10px; gap: 18px; }
.opts label { margin: 0; flex: none; }
.opts input[type=range] { width: 120px; display: inline-block; vertical-align: middle; margin: 0 0 0 6px; }
.tips { margin: 14px 0 0; padding-left: 18px; color: #cfcfda; line-height: 1.7; font-size: 13px; }
.practice-log { list-style: none; margin: 0; padding: 0; }
.practice-log li { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.practice-log li:last-child { border-bottom: 0; }
.practice-log li.muted { display: block; }
.practice-log .d { color: var(--muted); }
.practice-log .b { font-variant-numeric: tabular-nums; }
.practice-log .ok { color: var(--ok); }

/* 성장·비교 */
.row.space { justify-content: space-between; align-items: center; }
.row.space h2 { margin: 0; }
#growth-chart { margin-top: 10px; }
.growth-empty { color: var(--muted); padding: 24px; text-align: center; border: 1px dashed var(--line); border-radius: 8px; }
.chart .gp { cursor: pointer; }
.chart .gp:hover circle { r: 7; }
.ctrl label.inline select { display: inline-block; width: auto; margin-left: 6px; }
.chart .panel-label { font-size: 11px; fill: #cfcfda; }
.cmp-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.cmp-label { font-size: 13px; margin-bottom: 6px; }
.cmp-label b { color: var(--accent); }
.cmp-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.cmp-table th, .cmp-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; color: var(--muted); }
.cmp-table td.better { color: var(--ok); }
.cmp-table td.worse { color: var(--bad); }
.cmp-result { margin-top: 10px; padding: 14px; border-radius: 10px; background: #19191f; border: 1px solid #3a3020; line-height: 1.7; }
.cmp-result h3 { margin: 10px 0 4px; }
.cmp-result ul { margin: 0; padding-left: 18px; }
.lesson-list li { position: relative; padding-right: 44px; }
.cmp-toggle { position: absolute; right: 8px; top: 10px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--muted); cursor: pointer; font: inherit; }
.cmp-toggle.on { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 700; }

/* 기초 연습 */
.basics-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.next-card { border-color: #5c4a1c; background: linear-gradient(180deg, #2a2414, var(--panel)); }
.next-card .label { font-size: 12px; color: var(--accent); font-weight: 700; }
.next-card .t { font-size: 17px; font-weight: 700; margin: 4px 0; }
.stage { margin-bottom: 16px; }
.stage-head { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; }
.stage-desc { font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.stage.locked { opacity: .5; }
.stage .progress { margin: 6px 0 8px; }
.ex-list { list-style: none; margin: 0; padding: 0; }
.ex-list li { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; border: 1px solid transparent; }
.ex-list li:hover { background: var(--panel2); }
.ex-list li.on { border-color: var(--accent); background: var(--panel2); }
.ex-list .mark { width: 20px; text-align: center; }
.ex-list .sub { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.ex-detail h2 { font-size: 18px; margin-bottom: 4px; }
.ex-goal { color: #d6d6e0; margin: 0 0 10px; }
.ex-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ex-detail ol { padding-left: 20px; line-height: 1.8; margin: 6px 0 12px; }
.tab-block { background: #0f0f13; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; overflow-x: auto; color: #e8e8f0; margin: 6px 0 12px; }
.ex-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.ex-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.exercise-banner { border-color: #2a4a6a; padding: 12px 16px; }
.exercise-banner .row { margin-top: 0; }

@media (max-width: 900px) {
  .basics-layout { grid-template-columns: 1fr; }
  .cmp-videos { grid-template-columns: 1fr; }
  .practice-layout { grid-template-columns: 1fr; }
  .grid2, .lesson-layout, .history-layout, .review-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .chips { display: none; }
}

/* 상태 점 (이모지 대신) */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; box-sizing: border-box; }
.dot.high { background: var(--bad); }
.dot.mid { background: var(--warn); }
.dot.low { border: 1.5px solid var(--muted); }
.dot.good { background: var(--ok); }
.dot.next { border: 2px solid var(--accent); }
.dot.todo { border: 1.5px solid var(--line); }

/* 튜너 */
.tuner .row { margin-top: 0; }
.tuner-body { margin-top: 12px; text-align: center; }
.tn-strings { display: flex; justify-content: center; gap: 8px; margin-bottom: 6px; }
.tn-strings span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--muted); font-weight: 700; }
.tn-strings span.on { border-color: var(--accent); color: var(--text); }
.tn-strings span.ok { border-color: var(--ok); background: var(--ok); color: #111; }
.tn-note { font-variant-numeric: tabular-nums; }
.tn-note span { font-size: 56px; font-weight: 800; }
.tn-note small { color: var(--muted); margin-left: 8px; }
.tn-meter { position: relative; max-width: 520px; height: 46px; margin: 4px auto 0; border-bottom: 1px solid var(--line); }
.tn-zone { position: absolute; left: calc(50% - 3%); width: 6%; top: 0; bottom: 0; background: rgba(74, 222, 128, .15); border-radius: 4px; }
.tn-ticks { position: absolute; left: 0; right: 0; bottom: -18px; display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.tn-needle { position: absolute; left: 50%; top: 2px; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--muted); border-radius: 2px; transition: left .08s linear, background .1s; opacity: .3; }
.tn-needle.live { opacity: 1; background: var(--warn); }
.tn-needle.ok { background: var(--ok); }
.tn-msg { margin-top: 26px; min-height: 1.4em; font-weight: 600; }
.tn-msg.ok { color: var(--ok); }
.tn-msg.warn { color: var(--warn); }

/* 리듬 패턴 */
.pattern { display: flex; gap: 4px; margin: 6px 0 4px; flex-wrap: wrap; }
.pattern span { width: 34px; height: 34px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 12px; }
.pattern span.on { background: var(--accent); border-color: var(--accent); color: #111; font-weight: 700; }
#lx-pattern .pattern { margin-top: 10px; }

.file-btn { margin: 0; color: var(--text); font-size: 14px; }
a.chip { text-decoration: none; }
.tn-input { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; color: var(--muted); }
.tn-level { width: 140px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tn-level i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .06s linear; }
.tn-level i.low { background: var(--warn); }
.rec-warn { color: var(--warn); font-weight: 600; font-size: 13px; }
.overlay.prep .big { color: var(--muted); }
.overlay.prep .beat-dots { visibility: hidden; }
.pitch-box { margin: 12px 0; }
.pitch-box h3 { margin-bottom: 6px; }
.wrong-notes { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; list-style: none; margin: 0; }
.wrong-notes li { font-size: 13px; color: var(--warn); }
.linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* 녹화 화면의 한 마디 타브 */
.tabview { margin-top: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.tg-head { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.tg-row { display: flex; gap: 18px; align-items: flex-start; overflow-x: auto; }
.tabgrid { display: grid; grid-template-columns: 18px repeat(var(--cols), minmax(22px, 1fr)); row-gap: 2px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; flex: 1; }
.tabgrid.next { flex: 0 0 auto; opacity: .55; font-size: 11px; grid-template-columns: 12px repeat(var(--cols), 14px); }
.tg-nextbox { flex: 0 0 auto; }
.tg-str { color: var(--muted); font-size: 12px; align-self: center; }
.tg-cell { text-align: center; border-bottom: 1px solid var(--line); height: 22px; line-height: 22px; font-weight: 700; border-radius: 3px; }
.tabgrid.next .tg-cell { height: 14px; line-height: 14px; }
.tg-cell.ghost { color: var(--muted); }
.tg-lab { text-align: center; font-size: 11px; color: var(--muted); }
.tabgrid.cur .now { background: rgba(255, 181, 71, .2); }
.tabgrid.cur .tg-cell.on.now { background: var(--accent); color: #111; }

/* 곡 악보 */
.song-card summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.song-card h3 { margin: 16px 0 6px; font-size: 14px; }
.song-pick select { min-width: 200px; flex: 1; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; width: 100%; box-sizing: border-box; white-space: pre; overflow-x: auto; }
.song-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin: 8px 0; }
.song-bar { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.song-bar.uncertain { border-color: var(--warn); }
.song-bar .tg-head { display: flex; justify-content: space-between; }
.song-bar .tabgrid { grid-template-columns: 14px repeat(var(--cols), minmax(16px, 1fr)); font-size: 12px; }
.song-bar .tg-cell { height: 18px; line-height: 18px; }
