/* ---------- Tokens ---------- */
:root {
  --bg: #0b0b0c;
  --bg-elev: #141416;
  --card: #17171a;
  --card-2: #212125;
  --line: #29292e;
  --line-2: #3a3a40;
  --text: #f3f2ee;
  --text-2: #c9c8c2;
  --muted: #8c8b93;
  --faint: #5c5b62;
  --accent: #ff9f0a;
  --accent-soft: rgba(255, 159, 10, .14);
  --on-accent: #1b1000;
  --danger: #ff453a;
  --ok: #32d74b;
  --barline: #4d4c54;
  --chord: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --gutter: 16px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f5f1; --bg-elev: #ffffff; --card: #ffffff; --card-2: #eeede8;
  --line: #e3e1da; --line-2: #d0cdc4; --text: #151514; --text-2: #3d3c39;
  --muted: #7b7973; --faint: #b2afa7; --accent: #c45f00; --accent-soft: rgba(196, 95, 0, .11);
  --on-accent: #ffffff; --barline: #b3afa5; --chord: #000000; color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #f6f5f1; --bg-elev: #ffffff; --card: #ffffff; --card-2: #eeede8;
    --line: #e3e1da; --line-2: #d0cdc4; --text: #151514; --text-2: #3d3c39;
    --muted: #7b7973; --faint: #b2afa7; --accent: #c45f00; --accent-soft: rgba(196, 95, 0, .11);
    --on-accent: #ffffff; --barline: #b3afa5; --chord: #000000; color-scheme: light;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.4 var(--font); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .fill { fill: currentColor; stroke: none; }
.statusbar-bg { position: fixed; top: 0; left: 0; right: 0; height: var(--sat); background: #0b0b0c; z-index: 60; }

/* ---------- Screen chrome ---------- */
.screen { padding: calc(var(--sat) + 8px) var(--gutter) calc(var(--sab) + 96px); max-width: 720px; margin: 0 auto; }
.screen.no-tabs { padding-bottom: calc(var(--sab) + 32px); }
.top { display: flex; align-items: center; gap: 8px; min-height: 52px; margin-top: 6px; }
.top h1 { font-size: 32px; line-height: 1.1; letter-spacing: -.02em; margin: 0; flex: 1; font-weight: 750; }
.nav { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.nav .spacer { flex: 1; }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 17px; margin-left: -6px; padding: 8px 6px 8px 0; }
.back svg { width: 24px; height: 24px; stroke-width: 2.2; }
.link-btn { color: var(--accent); font-size: 17px; padding: 8px 4px; }
.link-btn.strong { font-weight: 650; }
.link-btn:disabled { opacity: .35; }
.icon-btn { width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.icon-btn svg { stroke-width: 2.2; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-around;
  padding: 6px 8px calc(var(--sab) + 4px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-top: .5px solid var(--line);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--faint); font-size: 10.5px; font-weight: 600; letter-spacing: .01em; }
.tab.on { color: var(--accent); }
.tab svg { width: 25px; height: 25px; }

/* ---------- Lists & cards ---------- */
.group { background: var(--card); border-radius: 14px; overflow: hidden; margin: 12px 0; }
.group + .group { margin-top: 18px; }
.group-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 26px 4px 8px; font-weight: 600; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 52px; position: relative; width: 100%; text-align: left; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; border-top: .5px solid var(--line); }
.row:active { background: var(--card-2); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 17px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.row-meta { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-num { width: 22px; text-align: right; color: var(--faint); font-variant-numeric: tabular-nums; font-size: 15px; flex: none; }
.row.note .row-title { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.row .grip, .row .remove { display: none; }
.editing .row .grip { display: grid; place-items: center; width: 44px; height: 44px; margin: -10px -10px -10px 0; color: var(--faint); touch-action: none; }
.editing .row .remove { display: grid; place-items: center; width: 32px; color: var(--danger); margin-left: -4px; }
.editing .row .row-meta { display: none; }
.row.dragging { background: var(--card-2); box-shadow: 0 8px 28px rgba(0,0,0,.35); z-index: 2; border-radius: 10px; }
.st, .perf-title .t, .splash .t, .next-card .nt { text-transform: uppercase; }
.bpm-tag { color: var(--muted); }
.bpm-tag b { color: var(--text-2); font-weight: 600; }

.search { display: flex; align-items: center; gap: 8px; background: var(--card-2); border-radius: 11px; padding: 0 12px; height: 40px; margin: 10px 0 4px; color: var(--muted); }
.search svg { width: 18px; height: 18px; }
.search input { flex: 1; background: none; border: 0; outline: 0; font-size: 17px; color: var(--text); min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 12px; border-radius: 99px; background: var(--card-2); color: var(--text-2); font-size: 14px; font-weight: 550; white-space: nowrap; }
.chip.on { background: var(--text); color: var(--bg); }

.empty { text-align: center; color: var(--muted); padding: 56px 24px; }
.empty h2 { color: var(--text); font-size: 20px; margin: 0 0 6px; }
.empty p { margin: 0 0 20px; line-height: 1.5; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: 14px; font-size: 17px; font-weight: 650; background: var(--card-2); color: var(--text); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.danger { color: var(--danger); }
.btn.block { display: flex; width: 100%; }
.btn:active { transform: scale(.985); opacity: .9; }
.btn svg { width: 20px; height: 20px; }
.btn-row { display: flex; gap: 10px; margin: 12px 0; }
.btn-row .btn { flex: 1; padding: 0 10px; font-size: 15.5px; }

.card { background: var(--card); border-radius: 14px; padding: 14px; margin: 12px 0; }
.banner { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; margin: 12px 0; font-size: 14.5px; line-height: 1.45; display: flex; gap: 10px; align-items: flex-start; }
.banner b { color: var(--accent); }
.banner .x { color: var(--muted); padding: 0 2px; font-size: 20px; line-height: 1; }
.hint { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 8px 4px; }
.meta-line { color: var(--muted); font-size: 15px; margin: 2px 0 12px; }

/* setlist cards */
.set-card { display: block; background: var(--card); border-radius: 16px; padding: 16px; margin: 12px 0; }
.set-card:active { background: var(--card-2); }
.set-card h3 { margin: 0 0 4px; font-size: 19px; font-weight: 680; letter-spacing: -.01em; }
.set-card p { margin: 0; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.title-input { width: 100%; background: none; border: 0; outline: 0; font-size: 28px; font-weight: 750; letter-spacing: -.02em; padding: 4px 0; color: var(--text); }
.title-input::placeholder { color: var(--faint); }

/* ---------- Forms ---------- */
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin: 0 4px 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.input, .textarea, .select {
  width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px; font-size: 17px; outline: 0; color: var(--text); -webkit-appearance: none; appearance: none;
}
.input:focus, .textarea:focus { border-color: var(--accent); }
.textarea { font: 16px/1.5 var(--mono); min-height: 52vh; resize: vertical; white-space: pre-wrap; }
.textarea.short { min-height: 34vh; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.seg { display: flex; background: var(--card-2); border-radius: 10px; padding: 2px; }
.seg button { flex: 1; padding: 7px 4px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.seg button.on { background: var(--bg-elev); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch { position: relative; width: 51px; height: 31px; border-radius: 16px; background: var(--line-2); flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.switch.on { background: var(--ok); }
.switch.on::after { transform: translateX(20px); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 36px; height: 32px; border-radius: 8px; background: var(--card-2); font-size: 20px; font-weight: 500; }
.stepper output { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .2s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto;
  background: var(--bg-elev); border-radius: 20px 20px 0 0;
  padding: 10px var(--gutter) calc(var(--sab) + 16px);
  transform: translateY(100%); transition: transform .24s cubic-bezier(.2,.8,.2,1);
  max-height: 92vh; display: flex; flex-direction: column;
}
.sheet::before { content: ""; display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 10px; flex: none; }
.sheet.tall { height: 88vh; }
.sheet-wrap.open .sheet-bg { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.sheet h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 0 12px; font-weight: 700; }
.sheet-head { display: flex; align-items: center; gap: 10px; flex: none; }
.sheet-head .search { flex: 1; margin: 0; }
.sheet-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; margin: 10px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); }
.sheet .group { background: var(--card-2); }
.sheet .row:active { background: var(--line); }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: .5px solid var(--line); font-size: 17px; }
.sheet-row:first-of-type { border-top: 0; }
.check { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.check.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.check svg { width: 15px; height: 15px; stroke-width: 3; }

/* tempo sheet */
.tempo-top { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 14px; }
.tempo-top .bump { width: 56px; height: 56px; border-radius: 28px; background: var(--card-2); font-size: 28px; font-weight: 400; }
.tempo-num { text-align: center; min-width: 120px; }
.tempo-num input { width: 120px; text-align: center; font-size: 56px; font-weight: 700; letter-spacing: -.03em; background: none; border: 0; outline: 0; color: var(--text); font-variant-numeric: tabular-nums; padding: 0; }
.tempo-num small { display: block; color: var(--muted); font-size: 13px; letter-spacing: .1em; font-weight: 700; margin-top: -4px; }
.tap-pad { width: 100%; height: 108px; border-radius: 18px; background: var(--card-2); font-size: 22px; font-weight: 800; letter-spacing: .2em; color: var(--text-2); touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.tap-pad.hit { background: var(--accent); color: var(--on-accent); }
.beats { display: flex; gap: 6px; }
.beats button.auto { flex: 2.2; white-space: nowrap; }
.beats button { flex: 1; min-width: 0; height: 38px; border-radius: 10px; background: var(--card-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.beats button.on { background: var(--text); color: var(--bg); }
.setting-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: .5px solid var(--line); }
.setting-line .label { font-size: 16px; }
.setting-line .label small { display: block; color: var(--muted); font-size: 13px; }
.size-big { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 6px 0 14px; }
.size-big button { width: 64px; height: 56px; border-radius: 16px; background: var(--card-2); font-weight: 700; }
.size-big output { font-size: 34px; font-weight: 700; min-width: 70px; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--sab) + 92px); transform: translate(-50%, 12px);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 15px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Performance view ---------- */
.flash {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: calc(var(--sat) + 7px);
  background: var(--accent); opacity: 0; pointer-events: none;
  box-shadow: 0 0 22px 2px var(--accent);
}
.flash.one { background: #ffd60a; box-shadow: 0 0 26px 4px #ffb300; }
:root[data-theme="light"] .flash.one { background: #e85d00; box-shadow: 0 0 22px 2px #e85d00; }
.perf-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: calc(var(--sat) + 10px) 10px 8px; display: flex; align-items: center; gap: 6px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: .5px solid var(--line);
}
.perf-head .hbtn { height: 40px; min-width: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); }
.perf-head .hbtn:active { background: var(--card-2); }
.perf-head .hbtn svg { width: 24px; height: 24px; stroke-width: 2.2; }
.perf-title { flex: 1; min-width: 0; text-align: left; padding: 2px 4px; }
.perf-title .pos { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.perf-title .t { display: block; font-size: 18px; font-weight: 720; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.perf-head .aa { display: inline-flex; align-items: baseline; justify-content: center; font-size: 19px; font-weight: 700; letter-spacing: -.02em; padding: 0 6px; }
.perf-head .aa small { font-size: 13px; }
.bpm-pill { height: 36px; padding: 0 12px; border-radius: 18px; background: var(--card-2); display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 16px; color: var(--text); }
.bpm-pill.unset { color: var(--muted); font-weight: 600; }
.bpm-pill .note { font-size: 17px; opacity: .8; }
.perf { padding: calc(var(--sat) + 86px) 0 calc(var(--sab) + 40px); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; min-height: 100vh; }
.perf-empty { color: var(--muted); text-align: center; padding: 60px 24px; }
.next-card { display: flex; align-items: center; gap: 12px; margin: 36px var(--gutter) 0; padding: 16px; border-radius: 16px; background: var(--card); width: calc(100% - 2 * var(--gutter)); text-align: left; max-width: 640px; }
@media (min-width: 672px) { .next-card { margin-left: auto; margin-right: auto; } }
.next-card .lbl { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.next-card .nt { font-size: 18px; font-weight: 680; }
.next-card .grow { flex: 1; min-width: 0; }
.next-card svg { color: var(--muted); transform: rotate(180deg); }
.end-of-set { text-align: center; color: var(--faint); margin: 36px 0 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.splash {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.96); z-index: 75;
  background: color-mix(in srgb, var(--bg-elev) 94%, transparent); border: .5px solid var(--line-2);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 22px; padding: 18px 26px; text-align: center; opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s; min-width: 220px; max-width: calc(100% - 48px);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.splash.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.splash .pos { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.splash .t { font-size: 26px; font-weight: 780; letter-spacing: -.02em; margin: 4px 0 2px; line-height: 1.15; }
.splash .b { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Chart rendering ---------- */
.chart { font-size: 19px; line-height: 1.45; max-width: 34em; margin: 0 auto; padding: 4px var(--gutter) 0; color: var(--text); }
.chart .bars { display: flex; flex-wrap: wrap; align-items: stretch; row-gap: .28em; margin: .18em 0; }
.chart .bar {
  position: relative; flex: 0 0 25%; min-width: 0; min-height: 1.6em; white-space: nowrap;
  border-left: 2px solid var(--barline); padding: .08em .35em .08em .45em;
}
.chart .bars.loose .bar { flex: 0 0 auto; min-width: 25%; max-width: 100%; }
.chart .bars.loose .bar.long { flex-shrink: 1; white-space: normal; }
.chart .bar.long { flex: 0 1 auto; min-width: 25%; max-width: 100%; white-space: normal; overflow-wrap: anywhere; padding-right: .7em; }
.chart .bar.close { border-right: 2px solid var(--barline); }
.chart .bar.rend { border-right: 4px double var(--text-2); padding-right: .75em; }
.chart .bar.rend::after, .chart .bar.rstart::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 4px;
  background: radial-gradient(circle at 50% 36%, var(--text-2) 1.6px, transparent 2.2px), radial-gradient(circle at 50% 64%, var(--text-2) 1.6px, transparent 2.2px);
}
.chart .bar.rend::after { right: 3px; }
.chart .bar.rstart { border-left: 4px double var(--text-2); padding-left: .75em; }
.chart .bar.rstart::before { left: 3px; }
.chart .rep-badge, .chart .rep {
  font-size: .68em; font-weight: 800; color: var(--accent); background: var(--accent-soft);
  border-radius: .4em; padding: .05em .35em; font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.chart .rep-badge { position: absolute; right: .15em; top: -.62em; z-index: 1; }
.chart .bar.rend .rep-badge { right: .5em; }
.chart .rep { margin: 0 .3em; align-self: center; }
.chart .ch { font-weight: 660; color: var(--chord); letter-spacing: -.005em; }
.chart .sim { color: var(--faint); font-weight: 400; }
.chart .rhy { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; }
.chart .mel { color: var(--text-2); font-size: .84em; font-weight: 500; }
.chart .ts { display: inline-block; font-size: .64em; font-weight: 800; color: var(--accent); border: 1.5px solid currentColor; border-radius: .35em; padding: 0 .3em; line-height: 1.35; vertical-align: .18em; margin-right: .15em; }
.chart .par, .chart .par .ch { color: var(--muted); font-style: italic; }
.chart .par .ch { font-weight: 450; }
.chart .oct { color: var(--accent); font-size: .72em; font-weight: 800; font-style: normal; vertical-align: .45em; margin-right: .04em; }
.chart .hit { display: inline-block; font-size: .66em; font-weight: 800; font-style: normal; color: var(--on-accent); background: var(--accent); border-radius: .3em; padding: .02em .3em; line-height: 1.3; vertical-align: .16em; margin-right: .14em; letter-spacing: .02em; }
.chart .road { display: flex; flex-wrap: wrap; gap: .35em; margin: .95em 0 .3em; }
.chart > .road:first-child { margin-top: .2em; }
.chart .road .sec-name { background: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.chart .star { color: var(--muted); font-style: italic; font-size: .86em; }
.chart .brk { color: var(--accent); font-weight: 800; }
.chart .p { color: var(--muted); }
.chart .kw { color: var(--accent); font-weight: 650; font-size: .86em; letter-spacing: .03em; text-transform: uppercase; }
.chart .w { }
.chart .bnote { align-self: center; font-style: italic; color: var(--text-2); font-size: .82em; padding: 0 .5em; max-width: 100%; }
.chart .sec { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15em .55em; margin: .95em 0 .25em; }
.chart > .sec:first-child { margin-top: .2em; }
.chart .sec-name {
  font-size: .7em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: .16em .5em; border-radius: .38em; white-space: nowrap;
}
.chart .sec-rest { font-size: .84em; color: var(--text-2); font-style: italic; }
.chart .txt { color: var(--text-2); font-size: .9em; margin: .2em 0; font-style: italic; }
.chart .kw, .chart .ts, .chart .rep, .chart .rep-badge { font-style: normal; }
.chart .txt.lead { margin-bottom: 0; }
.chart .gap { height: .55em; }

/* mini preview (import) */
.chart.mini { font-size: 13px; padding: 0; margin: 8px 0 0; max-height: 7.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }

/* ---------- Import ---------- */
.imp-card { background: var(--card); border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.imp-card.skip { opacity: .4; }
.imp-top { display: flex; align-items: center; gap: 8px; }
.imp-title { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 17px; font-weight: 650; padding: 4px 0; color: var(--text); border-bottom: 1px dashed transparent; }
.imp-title:focus { border-bottom-color: var(--line-2); }
.imp-title::placeholder { color: var(--danger); }
.badge { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.badge.new { background: rgba(50,215,75,.15); color: var(--ok); }
.badge.update { background: var(--accent-soft); color: var(--accent); }
.badge.skip { background: var(--card-2); color: var(--muted); }
.imp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.imp-actions button { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: var(--card-2); color: var(--text-2); }
.imp-folder { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 4px 4px; display: flex; align-items: center; gap: 8px; }
.imp-folder::after { content: ""; flex: 1; border-top: .5px solid var(--line-2); }
.imp-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.sticky-foot { position: sticky; bottom: calc(var(--sab) + 72px); padding: 12px 0 0; background: linear-gradient(transparent, var(--bg) 30%); }

/* ---------- Multi-select ---------- */
.select-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter) calc(var(--sab) + 10px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-top: .5px solid var(--line);
}
.select-bar .count { flex: 1; font-weight: 600; color: var(--text-2); }
.select-bar .btn { height: 44px; font-size: 16px; }
.btn:disabled { opacity: .4; }

/* ---------- Transpose ---------- */
.xp-pill { height: 36px; min-width: 40px; padding: 0 10px; border-radius: 18px; background: var(--card-2); font-weight: 700; font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.xp-pill.on { background: var(--accent-soft); color: var(--accent); }
.xp-big { text-align: center; min-width: 120px; }
.xp-big output { display: block; font-size: 34px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.xp-big small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 2px; }
.xp-tag { color: var(--accent); font-weight: 700; font-size: 13px; background: var(--accent-soft); border-radius: 6px; padding: 2px 6px; margin-right: 4px; }

/* ---------- Swipe between songs ---------- */
.perf.from-right { animation: enter-right .22s cubic-bezier(.2,.8,.2,1); }
.perf.from-left { animation: enter-left .22s cubic-bezier(.2,.8,.2,1); }
@keyframes enter-right { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes enter-left { from { transform: translateX(-60px); opacity: 0; } to { transform: none; opacity: 1; } }
.perf { touch-action: pan-y; }

/* ---------- Update banner ---------- */
.update-pill {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--sab) + 76px); z-index: 90;
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 99px;
  background: var(--text); color: var(--bg); font-weight: 650; font-size: 15px; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.update-pill[hidden], body.in-perf .update-pill { display: none; }
.update-pill button { background: var(--accent); color: var(--on-accent); border-radius: 99px; padding: 7px 14px; font-weight: 750; }

/* ---------- Editor preview ---------- */
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 4px 8px; }
.field-head > span { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.field-head .seg { width: 180px; }
.ed-preview { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 0; min-height: 52vh; }
.textarea[hidden], .ed-preview[hidden] { display: none; }

/* ---------- Inbox ---------- */
.tab { position: relative; }
.tab-badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.inbox-card .row-title { font-weight: 650; }
.inbox-card .btn-row .btn { height: 42px; font-size: 14.5px; }
.inbox-card .btn svg { width: 18px; height: 18px; }
.howto { font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.howto ol { padding-left: 22px; margin: 10px 0; }
.howto li { margin: 8px 0; }
.howto code { font: 13px var(--mono); background: var(--card-2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* ---------- PDF stage (off-screen, light print theme) ---------- */
.pdf-stage {
  position: fixed; left: -20000px; top: 0; pointer-events: none; background: #fff; color: #111;
  --bg: #fff; --bg-elev: #fff; --card: #fff; --card-2: #f1f0eb; --line: #ddd; --line-2: #ccc;
  --text: #111; --text-2: #333; --muted: #767676; --faint: #a8a8a8; --accent: #c45f00;
  --accent-soft: rgba(196, 95, 0, .13); --on-accent: #fff; --barline: #5a5a5a; --chord: #000;
}
.pdf-stage .chart.pdf-chart { font-size: 15px; max-width: none; padding: 0; margin: 0; color: #111; }
.pdf-stage .road .sec-name { box-shadow: none; border: 1.2px solid rgba(196, 95, 0, .6); }

.version-line { text-align: center; color: var(--muted); font-size: 14px; margin: 24px 0 8px; }
.version-line .link-btn { font-size: 14px; padding: 4px 0; }

.check.num { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.select-bar .btn { padding: 0 14px; font-size: 15px; }
.select-bar .count { font-size: 14.5px; }

.imp-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.imp-meta .imp-sub { margin-top: 0; }
.imp-group { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imp-group.none { background: var(--card-2); color: var(--muted); }
.imp-group span { font-size: 10px; opacity: .8; }

/* ---------- Beat slots inside a bar ---------- */
.chart .bar.slots { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: .3em; align-items: baseline; }
.chart .bar.slots .slot { white-space: nowrap; min-width: 0; }
.chart .bar.slots.tight { grid-template-columns: repeat(var(--n), auto); justify-content: start; column-gap: .6em; }

/* ---------- Polychords (top over bottom) ---------- */
.chart .poly { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.05; font-size: .8em; font-weight: 660; color: var(--chord); margin: -.15em 0; }
.chart .poly .poly-top { border-bottom: 1.6px solid currentColor; padding: 0 .2em .1em; }
.chart .poly .poly-bot { padding: .1em .2em 0; }
.chart .par .poly { color: var(--muted); font-weight: 450; }

/* ---------- Grid editor (iReal-style) ---------- */
.field-head .seg { width: 230px; }
.ed-grid[hidden] { display: none; }
.g-root { font-size: 17px; padding: 6px 2px 0; max-width: none; }
.g-bars { display: grid; grid-template-columns: repeat(var(--bpr), minmax(0, 1fr)); row-gap: 8px; margin: .25em 0 .5em; }
.g-bar { position: relative; display: grid; grid-template-columns: repeat(var(--cpb), minmax(0, 1fr)); border-left: 2px solid var(--barline); min-height: 2.4em; overflow: hidden; }
.g-bar .rep-badge { top: 2px; right: 3px; }
.g-bars .g-bar:nth-child(4n), .g-bars .g-bar:last-child { box-shadow: inset -2px 0 0 var(--barline); }
.g-bar.rs { border-left: 4px double var(--text-2); }
.g-bar.re { border-right: 4px double var(--text-2); }
.g-bar.ls { border-left: 4px double var(--accent); }
.g-bar.le { border-right: 4px double var(--accent); }
.g-cell { display: flex; align-items: center; min-width: 0; padding: 0 .12em; white-space: nowrap; overflow: visible; font-size: .76em; cursor: pointer; border-right: 1px dotted var(--line-2); position: relative; }
.g-cell:last-child { border-right: 0; }
.g-cell .ch, .g-cell .sim, .g-cell .poly { position: relative; z-index: 1; }
.g-cell.sel { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); border-radius: 5px; }
.g-raw { grid-column: 1 / -1; white-space: normal; }
.g-br { grid-column: 1 / -1; height: 0; }
.g-sec, .g-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15em .55em; width: 100%; text-align: left; margin: .9em 0 .25em; padding: 2px 0; border-radius: 6px; }
.g-text { margin: .2em 0; display: block; }
.g-text .txt, .g-text .sec, .g-text .road, .g-text .bars { margin: 0; }
.g-sec:active, .g-text:active { background: var(--card-2); }
.g-trail { color: var(--text-2); font-style: italic; font-size: .82em; margin: -.2em 0 .4em; }
.g-gap { height: .6em; }
.g-add { display: flex; gap: 8px; margin-top: 18px; }
.g-add button { flex: 1; height: 44px; border-radius: 12px; background: var(--card-2); font-size: 15px; color: var(--text-2); }
.g-add .sec-name { font-size: 12px; }
.g-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.g-choices button { height: 42px; border-radius: 10px; background: var(--card-2); font-weight: 750; font-size: 13px; letter-spacing: .06em; color: var(--accent); }
.g-choices button.on { background: var(--accent); color: var(--on-accent); }
body.g-kb-open .screen { padding-bottom: 360px; }
.g-kb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--bg-elev); border-top: .5px solid var(--line-2); padding: 8px 8px calc(var(--sab) + 8px); box-shadow: 0 -10px 30px rgba(0,0,0,.25); max-width: 720px; margin: 0 auto; }
.g-tools { display: flex; gap: 5px; margin-bottom: 7px; }
.g-tools::-webkit-scrollbar { display: none; }
.g-tools .g-tool { flex: 1 1 0; min-width: 0; padding: 0 2px; }
.g-tool { flex: none; height: 34px; min-width: 40px; padding: 0 10px; border-radius: 8px; background: var(--card-2); font-weight: 750; font-size: 15px; color: var(--text-2); }
.g-tool.on { background: var(--accent-soft); color: var(--accent); }
.g-done { color: var(--accent); }
.g-tool svg { width: 18px; height: 18px; vertical-align: middle; }
.g-field { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.g-pos { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .03em; white-space: nowrap; line-height: 1.25; }
.g-val { flex: 1; min-width: 0; height: 38px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); padding: 0 10px; font: 700 18px var(--font); color: var(--text); outline: 0; }
.g-val:focus { border-color: var(--accent); }
.g-val::placeholder { color: var(--faint); font-weight: 500; font-size: 15px; }
.g-ph { color: var(--faint); font-weight: 500; font-size: 15px; }
.g-keys { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.g-key { height: 40px; border-radius: 8px; background: var(--card-2); font-weight: 650; font-size: 15px; color: var(--text); padding: 0; }
.g-key.root { background: var(--card); border: 1px solid var(--line-2); font-size: 17px; font-weight: 750; }
.g-key.next { grid-column: span 8; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.g-key:active, .g-tool:active { opacity: .7; }

.g-edit { background: var(--card); border: 1px solid var(--accent); border-radius: 14px; padding: 12px; margin: .7em 0; scroll-margin-top: 12px; }
.g-edit .g-sec.live { margin: 0 0 12px; }
.g-edit .g-choices { margin-bottom: 10px; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.g-edit .g-choices button { height: 36px; font-size: 12px; }
.g-edit .g-rest { font-size: 16px; }
.g-edit .btn-row { margin: 10px 0 0; }
.g-edit .btn { height: 42px; }
.g-txt { min-height: 90px; font-size: 16px; }

/* Two-bars-per-line charts: half-width bars. Squeezed beats never shrink below their chord. */
.chart.half .bars:not(.loose) .bar:not(.long) { flex-basis: 50%; }
.chart .bar.slots.tight .slot { min-width: auto; }
.chart .bars.loose .bar.slots { grid-template-columns: repeat(var(--n), auto); justify-content: start; column-gap: .45em; }

.g-cell .rhy { font-size: .78em; margin-right: .12em; }

/* ---------- Bold / italic ---------- */
.chart strong.b { font-weight: 850; color: var(--chord); }
.chart strong.b .ch, .chart strong.b .sim, .chart strong.b .rhy { font-weight: 850; }
.chart .txt strong.b, .chart .sec-rest strong.b, .chart .bnote strong.b { font-style: normal; }
.chart em.i { font-style: italic; }
.chart em.i .ch { font-style: italic; }
.fmt-bar { display: flex; align-items: center; gap: 8px; margin: 0 2px 8px; }
.fmt-bar[hidden] { display: none; }
.fmt-btn { width: 40px; height: 34px; border-radius: 8px; background: var(--card-2); font-size: 16px; color: var(--text); flex: none; }

.chart u.u { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .15em; }
/* B/I/U buttons only where there's no Cmd key (phones and tablets) */
@media (hover: hover) and (pointer: fine) { .fmt-bar { display: none; } }

/* ---------- Rich Write mode ---------- */
.textarea.rich { white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; min-height: 52vh; -webkit-user-select: text; user-select: text; }
.textarea.rich[hidden] { display: none; }
.textarea.rich:empty::before { content: attr(data-placeholder); color: var(--faint); }
.textarea.rich b { font-weight: 800; }
.textarea.rich u { text-decoration-thickness: 1.5px; text-underline-offset: .15em; }

/* Everything inside brackets (melody/unison lines, patch notes) is one uniform size and weight */
.chart .par .ch, .chart .par .mel, .chart .par .rhy, .chart .par .sim, .chart .par .w, .chart .par .p {
  font-size: 1em; font-weight: 450; color: var(--muted); letter-spacing: 0;
}
.chart .par { font-size: .9em; }
.chart .par .par { font-size: 1em; }

/* ---------- Group bar (when a group chip is selected) ---------- */
.group-bar { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; padding: 8px 8px 8px 14px; background: var(--card); border-radius: 12px; }
.group-bar .gb-name { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-bar .gb-name small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.group-bar .btn { height: 36px; padding: 0 12px; font-size: 14.5px; flex: none; }

/* ---------- Setlist edit mode + drag (Spotify-style) ---------- */
#set-list .row { transition: background .15s; }
#set-list .row .remove, #set-list .row .grip { display: grid; place-items: center; overflow: hidden; flex: none; opacity: 0; transition: width .26s cubic-bezier(.2,.8,.2,1), margin .26s cubic-bezier(.2,.8,.2,1), opacity .2s; }
#set-list .row .remove { width: 0; margin-left: -12px; color: var(--danger); }
#set-list .row .grip { width: 0; margin: -10px -10px -10px -12px; height: 44px; color: var(--faint); touch-action: none; cursor: grab; }
#set-list .row .row-meta { transition: opacity .2s; }
#set-list.editing .row .remove { width: 32px; margin-left: -4px; opacity: 1; }
#set-list.editing .row .grip { width: 44px; margin: -10px -10px -10px 0; opacity: 1; }
#set-list.editing .row .row-meta { opacity: 0; width: 0; overflow: hidden; }
#set-list .row.removing { height: 0 !important; min-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden; transition: height .24s cubic-bezier(.2,.8,.2,1), padding .24s, opacity .18s; }
#set-list .row.removing::before { opacity: 0; }
/* the lifted row that follows your finger */
.row-lifted { opacity: 1 !important; background: var(--card-2) !important; border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.25); transform: scale(1.03); z-index: 200; }
.row-lifted::before { display: none; }
/* where it will land */
#set-list .row-gap { opacity: .25; background: var(--card-2); }
#set-list .row-gap > * { visibility: hidden; }
#set-list .row-chosen .grip { color: var(--accent); }
body.dragging-row, body.dragging-row * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }

#set-list.editing .row .row-meta { display: block; }
.row-lifted { display: flex; align-items: center; gap: 12px; }
.row-lifted .remove { display: grid !important; place-items: center; width: 32px; margin-left: -4px; color: var(--danger); }
.row-lifted .grip { display: grid !important; place-items: center; width: 44px; height: 44px; margin: -10px -10px -10px 0; color: var(--accent); }
.row-lifted .row-meta { display: none; }

/* "*Chord" hits: the chord in an orange outlined box */
.chart .hitc { display: inline-block; border: 1.6px solid var(--accent); border-radius: .35em; padding: 0 .28em; line-height: 1.3; }
.chart .hitc .ch, .chart .hitc .rhy { color: var(--chord); font-weight: 750; }
.chart .par .hitc { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

/* closing barline on a bar that ends a wrapped row */
.chart .bar.wrap-end:not(.rend) { border-right: 2px solid var(--barline); }

/* Busy rows: half-width bars. Counts a touch smaller so chords stand out; more air between beats. */
.chart .bars.half:not(.loose) .bar:not(.long) { flex-basis: 50%; }
.chart .bar .rhy { font-size: .84em; }
.chart .bars.loose .bar.slots { column-gap: .6em; }
.chart .bar.slots { padding-right: .5em; }

/* ---------- Sync dot (on the Settings tab) ---------- */
.sync-dot { position: absolute; top: 2px; left: calc(50% + 9px); width: 8px; height: 8px; border-radius: 50%; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .25s, background .25s; pointer-events: none; }
.sync-dot.pending, .sync-dot.syncing { background: var(--accent); opacity: 1; transform: none; }
.sync-dot.syncing { animation: sync-pulse 1s ease-in-out infinite; }
.sync-dot.waiting { background: transparent; box-shadow: inset 0 0 0 1.6px var(--muted); opacity: 1; transform: none; }
.sync-dot.error { background: var(--danger); opacity: 1; transform: none; }
.sync-dot.done { background: var(--ok); opacity: 1; transform: none; }
@keyframes sync-pulse { 50% { opacity: .35; } }

/* ---------- Symbol row above the iPhone keyboard (Apple-keyboard look) ---------- */
.keybar {
  --kb-tray: #d1d3d9; --kb-key: #fff; --kb-key-down: #aeb3be; --kb-text: #000; --kb-shadow: #898a8d;
  position: fixed; left: 0; right: 0; top: 0; z-index: 95;
  display: flex; gap: 5px; padding: 6px 3px 6px; will-change: transform;
  background: var(--kb-tray); border-top: .5px solid rgba(0,0,0,.18);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  opacity: 0; pointer-events: none; transition: opacity .12s;
}
:root[data-theme="dark"] .keybar, :root[data-theme="auto"] .keybar { --kb-tray: #2b2b2d; --kb-key: #6b6b6e; --kb-key-down: #9b9ba0; --kb-text: #fff; --kb-shadow: #1b1b1d; }
@media (prefers-color-scheme: light) { :root[data-theme="auto"] .keybar { --kb-tray: #d1d3d9; --kb-key: #fff; --kb-key-down: #aeb3be; --kb-text: #000; --kb-shadow: #898a8d; } }
.keybar.show { opacity: 1; pointer-events: auto; transition: opacity .14s; }
.keybar.show.moving { opacity: 0; pointer-events: none; transition: opacity .06s; }
.kb-key {
  position: relative; flex: 1 1 0; min-width: 0; height: 42px; border-radius: 5px;
  background: var(--kb-key); color: var(--kb-text); box-shadow: 0 1px 0 var(--kb-shadow);
  font-size: 22px; font-weight: 400; line-height: 42px; text-align: center; padding: 0;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.kb-key.down { background: var(--kb-key-down); }
/* the little pop-up bubble iOS shows on a key press */
.kb-key.down:not(.kb-hide)::after {
  content: attr(data-k); position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%);
  min-width: 46px; height: 52px; line-height: 52px; border-radius: 9px; font-size: 30px;
  background: var(--kb-key); color: var(--kb-text); box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.kb-hide { flex: 1.3 1 0; background: transparent; box-shadow: none; display: grid; place-items: center; color: var(--kb-text); }
.kb-hide svg { width: 22px; height: 22px; stroke-width: 2; }
body.keybar-open .screen { padding-bottom: 80px; }

/* "Quoted" text: shown exactly as typed, plain */
.chart .q { font-style: normal; font-weight: 400; color: var(--text-2); letter-spacing: 0; text-transform: none; font-size: 1em; }
.chart strong.b .q { font-weight: 800; color: var(--chord); }
.chart em.i .q { font-style: italic; }

/* ---------- Artist + duplicates ---------- */
.row-sub .artist { color: var(--text-2); font-weight: 600; }
.splash .a { color: var(--muted); font-size: 14px; font-weight: 600; margin: -2px 0 4px; }
.dup-tag { color: var(--accent); font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; background: var(--accent-soft); border-radius: 6px; padding: 2px 6px; margin-right: 4px; }
.chart .qpara { font-style: normal; font-weight: 400; color: var(--text-2); letter-spacing: 0; text-transform: none; line-height: 1.45; margin: .35em 0; }
