/* Rundown: the look of a TV control room. White paper, black ink, one red for "on air" and the running clock. */
:root {
  --ink: #111; --ink2: #3a3a3a; --muted: #6e6e6e; --paper: #fff; --soft: #f4f4f2; --soft2: #ebebe8;
  --line: #e4e4e0; --line2: #cfcfca; --red: #e3262b; --red-soft: #fdecec; --blue: #1f5bd6; --blue-soft: #eaf0fd;
  --ok: #138a52; --warn: #b25e00; --head: 'Secular One', 'Rubik', sans-serif; --body: 'Rubik', system-ui, sans-serif;
  --r: 6px; --tally: 52px; --nav: 46px; --ease: cubic-bezier(.2, .8, .2, 1); --fast: .16s; --mid: .26s;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; overflow-x: hidden; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; margin: 0; line-height: 1.2; }
h1 { font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
.ic { flex: none; vertical-align: middle; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.grow { flex: 1; }
.row { display: flex; align-items: center; } .gap { gap: 8px; } .wrap { flex-wrap: wrap; } .end { justify-content: flex-end; }
bdi { unicode-bidi: isolate; }
[dir=ltr] { unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- movement: everything that appears, opens or changes moves */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes playerIn { from { transform: translateY(140%); } to { transform: none; } }
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: none; } }
/* backwards, not both: a transform left on the screen after its entrance would make it the frame for everything pinned to the window inside it */
.screen { animation: rise var(--mid) var(--ease) backwards; }
.nrow, .card.vrow, .inbox-item, .mnum, .lyr-num, .cmp, .mrow, .path .on, .feed-list li, .np-anim { animation: rise var(--mid) var(--ease) backwards; animation-delay: calc(min(var(--i, 0), 14) * 22ms); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- controls */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line2); background: var(--paper); border-radius: var(--r); cursor: pointer; text-decoration: none; white-space: nowrap; font-weight: 500;
  transition: background var(--fast), border-color var(--fast), transform var(--fast), color var(--fast), opacity var(--fast); }
.btn:hover { background: var(--soft); border-color: var(--ink2); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.icon-only { width: 36px; padding: 0; justify-content: center; }
.btn.sm.icon-only { width: 30px; }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #333; }
.btn.danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--soft); border-color: transparent; }
.btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.on-dark { color: #fff; } .btn.on-dark:hover { background: #2a2a2a; }
.btn.google { margin-top: 10px; width: 100%; justify-content: center; }
.link { background: none; border: 0; padding: 4px 0; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
input:not([type=checkbox]):not([type=range]):not([type=file]), textarea { width: 100%; border: 1px solid var(--line2); border-radius: var(--r); padding: 7px 10px; background: var(--paper); transition: border-color var(--fast), box-shadow var(--fast); }
input:focus, textarea:focus, .btn:focus-visible, button:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .12); }
textarea { resize: vertical; line-height: 1.5; }
input.short { width: 90px !important; }
input[type=range] { width: 100%; accent-color: var(--ink); }
.lbl { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 5px; }
.lbl > input, .lbl > .pick, .lbl > textarea { margin-top: 5px; color: var(--ink); }
.lbl.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.lbl.short { width: 120px; }
.lbl span .ic { margin-inline-end: 4px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; padding: 3px 0; }
.check input { width: 17px; height: 17px; accent-color: var(--ink); }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; }
.form-msg { color: var(--red); font-size: 13px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height var(--mid), opacity var(--mid), margin var(--mid); }
.form-msg.in { max-height: 60px; opacity: 1; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-style: normal; font-weight: 500; padding: 1px 7px; border-radius: 20px; background: var(--soft2); color: var(--ink2); margin-inline-start: 6px; vertical-align: 2px; }
.tag.new { background: var(--red); color: #fff; }
.tag.st-option { background: var(--blue-soft); color: var(--blue); } .tag.st-check { background: var(--red-soft); color: var(--red); } .tag.st-removed { text-decoration: line-through; }
.chip { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line2); background: var(--paper); cursor: pointer; font-size: 13px; transition: all var(--fast); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* the prominent "?" for anything still unknown */
.q { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 600; font-size: 12px; line-height: 1; flex: none; vertical-align: middle; animation: fade var(--mid); }
.q.big { width: 26px; height: 26px; font-size: 16px; }
.q.soft { background: none; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line2); }
.q.count { width: auto; padding: 0 7px 0 6px; gap: 3px; border-radius: 10px; }
.q.count b { font-weight: 600; font-variant-numeric: tabular-nums; }
.warn-t { color: var(--red); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }

/* segmented choice and the drawn drop-down */
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; background: var(--paper); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 0 12px; height: 34px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: background var(--fast), color var(--fast); border-inline-start: 1px solid var(--line); }
.seg button:first-child { border-inline-start: 0; }
.seg button.on { background: var(--ink); color: #fff; }
.seg.sm button { height: 28px; padding: 0 9px; font-size: 13px; }
.pick { position: relative; display: inline-block; min-width: 130px; }
.pick-btn { width: 100%; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--paper); cursor: pointer; text-align: start; }
.pick-btn span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .chev { transition: transform var(--fast); }
.pick.open .chev { transform: rotate(180deg); }
.pick-menu { position: absolute; z-index: 60; inset-inline-start: 0; top: calc(100% + 4px); min-width: 100%; max-height: 280px; overflow: auto; background: var(--paper); border: 1px solid var(--line2); border-radius: var(--r); box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top; pointer-events: none; transition: opacity var(--fast), transform var(--fast); }
.pick.open .pick-menu { opacity: 1; transform: none; pointer-events: auto; }
.pick-opt { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 8px 12px; text-align: start; cursor: pointer; white-space: nowrap; }
.pick-opt:hover { background: var(--soft); }
.pick-opt.on { font-weight: 600; }
.pick-opt .tick { margin-inline-start: auto; }
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--mid) var(--ease), opacity var(--mid); opacity: 0; }
.collapse.open { grid-template-rows: 1fr; opacity: 1; }
.collapse-in { overflow: hidden; min-height: 0; }
.chev { transition: transform var(--fast); } .chev.up { transform: rotate(180deg); }
.pbar { height: 6px; background: var(--soft2); border-radius: 3px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--ink); transition: width .3s var(--ease); }
.spin { width: 22px; height: 22px; border: 2px solid var(--line2); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }

/* faces: every artist has a colour and a photo */
.face { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; flex: none; font-weight: 600; position: relative; box-shadow: 0 0 0 2px var(--paper); }
.face.sq { border-radius: 5px; }
.face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face.unknown { background: var(--soft2); color: var(--red); border: 1.5px dashed var(--red); box-shadow: none; }
.faces { display: inline-flex; align-items: center; }
.faces .face + .face { margin-inline-start: -6px; }
.faces .more { font-size: 12px; color: var(--muted); margin-inline-start: 4px; }
.chip-face { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; border: 1.5px solid transparent; background: none; border-radius: 8px; padding: 4px 6px; cursor: pointer; font-size: 12px; transition: all var(--fast); opacity: .55; }
.chip-face:hover { opacity: .85; background: var(--soft); }
.chip-face.on { opacity: 1; border-color: var(--ink); background: var(--soft); }
.chip-face .face { box-shadow: none; }

/* ---------- the tally bar: black strip on top, like a broadcast monitor */
.tally { position: sticky; top: 0; z-index: 40; height: var(--tally); background: #0b0b0b; color: #fff; }
.tally-in { height: 100%; max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 0 18px; }
.brand-wrap { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.onair { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(227, 38, 43, .25); animation: pulse 2.4s ease-in-out infinite; flex: none; }
.brand { font-family: var(--head); font-size: 21px; letter-spacing: .3px; }
.app-ver { font-size: 11px; color: #8a8a8a; font-variant-numeric: tabular-nums; position: relative; top: 4px; }
.show-name { display: grid; line-height: 1.1; font-family: var(--head); font-size: 17px; color: #fff; padding-inline-start: 14px; border-inline-start: 1px solid #333; min-width: 0; }
.show-name small { font-family: var(--body); font-size: 10.5px; color: #8a8a8a; letter-spacing: .4px; }
.ver-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; border: 1px solid #444; border-radius: 20px; padding: 3px 10px; color: #ddd; text-decoration: none; transition: border-color var(--fast), color var(--fast), background var(--fast); }
.ver-chip:hover { border-color: var(--red); color: #fff; background: #1d1d1d; }
.dept-pick .pick { min-width: 150px; }
.dept-pick.dark .pick-btn { background: #161616; border-color: #3a3a3a; color: #e6e6e6; height: 32px; transition: border-color var(--fast); }
.dept-pick.dark .pick-btn:hover { border-color: #777; }
.dept-pick.dark .pick-menu { color: var(--ink); inset-inline-start: auto; inset-inline-end: 0; }
.tally-tc { font-family: var(--body); font-weight: 500; font-size: 24px; color: var(--red); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.tc-plus { font-size: 14px; margin-inline-start: 2px; }
.save-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; transition: background var(--mid); }
.save-dot.saving { background: #f0b400; animation: pulse 1s infinite; } .save-dot.saved { background: #2fbf71; } .save-dot.error, .save-dot.conflict { background: var(--red); }
.ic.flip { transform: scaleX(-1); }
.undo-pair { display: inline-flex; gap: 2px; }
.undo-pair .btn:disabled { opacity: .25; }
.who { position: relative; }
.who-menu { position: absolute; inset-inline-end: 0; top: 46px; background: var(--paper); color: var(--ink); border: 1px solid var(--line2); border-radius: 8px; padding: 12px; width: 270px; box-shadow: 0 12px 34px rgba(0, 0, 0, .2);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity var(--fast), transform var(--fast); display: grid; gap: 10px; }
.who-menu.in { opacity: 1; transform: none; pointer-events: auto; }
.who-mail { font-size: 13px; color: var(--muted); word-break: break-all; text-align: start; }
.who-dept { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.who-dept .pick { flex: 1; }

/* navigation: a strip of icons with names on a laptop, a bar at the bottom on a phone */
.nav-top { position: sticky; top: var(--tally); z-index: 35; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; gap: 2px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.nav-top a { display: flex; align-items: center; gap: 6px; padding: 0 12px; height: var(--nav); text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14px; transition: color var(--fast), border-color var(--fast); }
.nav-top a:hover { color: var(--ink); }
.nav-top a.on { color: var(--ink); border-bottom-color: var(--red); }
.nav-bottom, .more-sheet { display: none; }

.banners { position: sticky; top: calc(var(--tally) + var(--nav)); z-index: 30; }
.banner { display: flex; align-items: center; gap: 10px; padding: 0 18px; font-size: 14px; max-height: 0; overflow: hidden; transition: max-height var(--mid) var(--ease), padding var(--mid); flex-wrap: wrap; }
.banner.in { max-height: 120px; padding: 8px 18px; }
.banner.warn { background: #fff6e0; } .banner.info { background: var(--blue-soft); } .banner.danger { background: var(--red-soft); }
.banner.static { border-radius: var(--r); margin-bottom: 14px; }
.pub { position: relative; }
.pub-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 28px; border-radius: 20px; border: 1px solid #444; background: none; color: #ddd; cursor: pointer;
  transition: border-color var(--fast), color var(--fast), background var(--fast); }
.pub-btn:hover, .pub-btn.open { border-color: var(--red); color: #fff; background: #1d1d1d; }
.pub-btn.team { background: #f0b400; border-color: #f0b400; color: #0b0b0b; }
.pub-btn .dot-live { position: absolute; top: -2px; inset-inline-end: -2px; box-shadow: 0 0 0 2px #0b0b0b; }
.pub-menu { inset-inline-end: auto; inset-inline-start: 0; top: 40px; }
.pub-state { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #f0b400; animation: pulse 1.6s infinite; }

.screen { max-width: 1400px; margin: 0 auto; padding: 20px 18px 120px; }
.screen.narrow { max-width: 1000px; }
.screen.narrow :is(.inbox-list, .vlist, .cmp-list, .mtable, .miss-group, .add-members, .mlist, .lyr-index, .lyrics, .path) { max-width: none; }
.screen-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.screen-head h1 { flex: none; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); display: grid; justify-items: center; gap: 8px; }
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 20px; }
.boot .onair { width: 18px; height: 18px; }
.empty-show { padding: 60px 20px; text-align: center; }

/* ---------- home */
.home-clock { background: #0b0b0b; color: #fff; border-radius: 12px; padding: 22px 24px 18px; margin-bottom: 18px; overflow: hidden; }
.clock-label { font-size: 13px; color: #9a9a9a; letter-spacing: .5px; }
.clock { font-size: clamp(46px, 9vw, 92px); font-weight: 500; color: var(--red); font-variant-numeric: tabular-nums; line-height: 1.05; letter-spacing: 2px; text-align: right; }
.clock-plus { font-size: .4em; margin-inline-start: 6px; }
.clock-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; color: #cfcfcf; font-size: 14px; margin-top: 6px; }
.clock-sub .warn-t { color: #ff8e8e; }
.clock-bar { display: flex; gap: 2px; height: 14px; margin-top: 16px; }
.clock-bar span { background: var(--c); border-radius: 2px; cursor: pointer; transition: transform var(--fast), opacity var(--fast); animation: fade .6s both; min-width: 3px; }
.clock-bar span:hover { transform: scaleY(1.6); }
.clock-bar span.unk { background: repeating-linear-gradient(45deg, #555 0 3px, #222 3px 6px); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
.feed { padding: 16px 18px; }
.feed h2, .miss-group h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-list li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 8px; border-top: 1px solid var(--line); border-radius: 6px; transition: background var(--fast); }
.feed-list li .ic { grid-row: span 2; margin-top: 2px; color: var(--muted); }
.feed-list li.click { cursor: pointer; } .feed-list li.click:hover { background: var(--soft); }
.feed-list li.unread .feed-t { font-weight: 600; } .feed-list li.unread .ic { color: var(--red); }
.feed-m { font-size: 12.5px; color: var(--muted); }
.home-side { display: grid; gap: 14px; align-content: start; }
.tile { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 16px 18px; text-decoration: none; transition: border-color var(--fast), transform var(--fast); }
.tile:hover { border-color: var(--ink); transform: translateY(-1px); }
.tile b { font-size: 22px; font-family: var(--head); font-weight: 400; margin-inline-end: 4px; }
.tile-sub { grid-column: 2; font-size: 13px; color: var(--muted); }
.miss-tile b { font-size: 19px; }
.tile-list { grid-column: 2; list-style: none; margin: 2px 0 0; padding: 0; font-size: 14px; color: var(--ink2); display: grid; gap: 1px; }
.tile-list li::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--red); margin-inline-end: 8px; vertical-align: 3px; }
.artists-tile { padding: 16px 18px; }
.artist-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin-top: 10px; }
.artist-chip { display: grid; justify-items: center; gap: 2px; text-decoration: none; font-size: 13px; transition: transform var(--fast); }
.artist-chip:hover { transform: translateY(-2px); }
.artist-chip .face { width: 58px; height: 58px; color: #fff; font-size: 20px; }
.artist-chip small { color: var(--muted); font-size: 11px; }

/* ---------- lineup list */
.totals { display: flex; align-items: center; gap: 8px; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--red); font-weight: 500; }
.totals small { font-size: 13px; color: var(--muted); font-weight: 400; }
.block { margin-bottom: 10px; }
.block-head { display: flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .6px; color: var(--muted); padding: 10px 4px 4px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.drop-wrap { position: relative; transition: opacity var(--fast); }
.drop-wrap.drop-here::before, .block-drop.drop-here::before { content: ''; position: absolute; inset-inline: 0; top: -2px; height: 3px; background: var(--red); border-radius: 2px; z-index: 2; animation: fade var(--fast); }
.block-drop { position: relative; }
.drop-wrap.is-dragging { opacity: .35; }
.nlist.dragging { user-select: none; cursor: grabbing; }
.nrow { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.grip { border: 0; background: none; color: var(--line2); cursor: grab; padding: 0 2px; touch-action: none; transition: color var(--fast); }
.grip:hover { color: var(--ink); }
.nrow-main { flex: 1; display: grid; grid-template-columns: 40px 76px minmax(0, 1fr) auto auto 70px; align-items: center; gap: 12px; border: 0; background: none; padding: 10px 6px; text-align: start; cursor: pointer; border-radius: 6px; transition: background var(--fast); }
.nrow-main:hover { background: var(--soft); }
.nidx { font-family: var(--head); font-size: 22px; color: var(--ink); text-align: center; min-width: 30px; display: inline-block; }
.nstart { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.ntitle { display: grid; min-width: 0; }
.ntitle b { font-weight: 500; font-size: 16px; }
.ntitle small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nflags { display: flex; gap: 6px; align-items: center; }
.flag { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); }
.flag .q { width: 15px; height: 15px; font-size: 10px; }
.flag.miss .q { height: 19px; font-size: 11.5px; }
.flag.miss .q:not(.count) { width: 19px; }
.flag.on { color: var(--ink); } .flag.ok { color: var(--ok); } .flag.note { color: var(--blue); }
.ndur { font-variant-numeric: tabular-nums; font-weight: 500; font-size: 15px; text-align: end; display: inline-flex; justify-content: flex-end; align-items: center; gap: 3px; }
.ndur i { color: var(--ok); font-style: normal; }
.add-num, .add-block, .add-line { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--line2); background: none; border-radius: var(--r); padding: 6px 12px; margin: 8px 0; cursor: pointer; color: var(--muted); font-size: 13px; transition: all var(--fast); }
.add-num:hover, .add-block:hover, .add-line:hover { color: var(--ink); border-color: var(--ink); }
.removed-list { margin-top: 24px; padding: 14px 16px; }

/* ---------- timeline */
.tl-screen .screen-head { margin-bottom: 10px; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 18px; height: 8px; border-radius: 2px; margin-inline-start: 8px; }
.lg-play { background: repeating-linear-gradient(45deg, #777 0 3px, #ddd 3px 6px); }
.lg-gap { background: var(--red); }
.zoom { display: inline-flex; align-items: center; gap: 4px; }
.zoom-slider { width: 190px !important; height: 26px; -webkit-appearance: none; appearance: none; background: transparent; cursor: ew-resize; }
.zoom-slider::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: repeating-linear-gradient(to left, var(--line2) 0 2px, transparent 2px 9px), var(--soft2); }
.zoom-slider::-moz-range-track { height: 6px; border-radius: 3px; background: repeating-linear-gradient(to left, var(--line2) 0 2px, transparent 2px 9px), var(--soft2); }
.zoom-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--paper), 0 1px 6px rgba(0, 0, 0, .3); transition: transform var(--fast); }
.zoom-slider::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--paper), 0 1px 6px rgba(0, 0, 0, .3); }
.zoom-slider:active::-webkit-slider-thumb { transform: scale(1.15); background: var(--red); }
.zoom .btn.sm:not(.icon-only) span { font-variant-numeric: tabular-nums; min-width: 38px; text-align: center; }
.tl { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.tl-num, .tl-seg { transition: background var(--fast), transform var(--fast), left .22s var(--ease), right .22s var(--ease), width .22s var(--ease); }
.tl-tip { position: fixed; z-index: 70; width: 280px; overflow: hidden; background: #0b0b0b; color: #fff; border-radius: 10px; padding: 10px 12px 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); pointer-events: none; animation: tipIn .14s var(--ease); display: grid; gap: 6px; }
@keyframes tipIn { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }
.tip-head { display: flex; align-items: center; gap: 8px; }
.tip-head .nidx { color: #fff; font-size: 20px; min-width: 24px; }
.tip-head b { font-weight: 500; font-size: 15px; }
.tip-time { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; font-size: 13px; color: #aaa; border-bottom: 1px solid #2a2a2a; padding-bottom: 6px; }
.tip-time b { color: var(--red); font-weight: 500; font-size: 15px; }
.tip-songs { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 13px; counter-reset: s; }
.tip-songs li { display: flex; justify-content: space-between; gap: 10px; }
.tip-songs li span:first-child::before { counter-increment: s; content: counter(s) '. '; color: #777; }
.tip-songs em { color: #9ab; font-style: normal; font-size: 12px; }
.tip-songs li span:last-child { font-variant-numeric: tabular-nums; color: #bbb; }
.tip-faces .face { box-shadow: 0 0 0 2px #0b0b0b; }
.tl-grid { display: grid; grid-template-columns: 110px var(--w); min-width: min-content; }
.tl-corner, .tl-label { position: sticky; inset-inline-start: 0; z-index: 3; background: var(--paper); border-inline-end: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 13px; }
.tl-corner { height: 30px; border-bottom: 1px solid var(--line); }
.tl-total { font-variant-numeric: tabular-nums; color: var(--red); font-weight: 500; }
.tl-ruler { position: relative; height: 30px; border-bottom: 1px solid var(--line); }
.tl-ruler span { position: absolute; top: 0; height: 100%; border-inline-start: 1px solid var(--line2); padding-inline-start: 4px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 30px; }
.tl-label { height: 40px; border-bottom: 1px solid var(--line); animation: fade .4s both; animation-delay: calc(var(--i, 0) * 30ms); }
.tl-numbers { position: relative; height: 56px; border-bottom: 1px solid var(--line); }
.tl-label:nth-of-type(3) { height: 56px; }
.tl-num { position: absolute; top: 6px; bottom: 6px; border: 0; background: var(--ink); color: #fff; border-radius: 4px; padding: 3px 6px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 5px; text-align: start; cursor: pointer; overflow: hidden;
  box-shadow: inset 0 0 0 1px #fff; transition: background var(--fast), transform var(--fast); animation: fade .4s both; }
.tl-num:hover { background: var(--red); }
.tl-num.unk { background: repeating-linear-gradient(45deg, #444 0 5px, #222 5px 10px); }
.tl-idx { font-family: var(--head); font-size: 15px; grid-row: span 2; }
.tl-title { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-dur { font-size: 11px; color: #bbb; font-variant-numeric: tabular-nums; }
.tl-num.tiny .tl-title, .tl-num.tiny .tl-dur { display: none; }
.tl-lane { position: relative; height: 40px; border-bottom: 1px solid var(--line); background-image: linear-gradient(to left, transparent calc(100% - 1px), var(--soft) 0); }
.tl-seg { position: absolute; top: 9px; bottom: 9px; background: var(--c); border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); cursor: pointer; transform-origin: right; animation: grow .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.tl-seg.play { background: repeating-linear-gradient(45deg, var(--c) 0 4px, #fff 4px 8px); }
.tl-seg.unk { background: var(--red-soft); border: 1px dashed var(--red); }
.tl-seg.dancers { background: #333; color: #fff; }
.tl-gap { position: absolute; top: 18px; height: 4px; background: var(--red); border-radius: 2px; }
.tl-mark { position: absolute; top: 11px; }
.tl-els { position: absolute; top: 8px; display: flex; justify-content: center; gap: 2px; }
.tl-el { color: var(--ink); }

/* ---------- number panel: slides in from the side on a laptop, up from the bottom on a phone */
.np-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .25); z-index: 50; opacity: 0; pointer-events: none; transition: opacity var(--mid); }
.np-scrim.in { opacity: 1; pointer-events: auto; }
.npanel { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(560px, 100vw); background: var(--paper); z-index: 51; box-shadow: 0 0 40px rgba(0, 0, 0, .18); display: flex; flex-direction: column;
  transform: translateX(-104%); transition: transform .32s var(--ease); }
[dir=rtl] .npanel { inset-inline-end: 0; left: 0; right: auto; }
.npanel.in { transform: none; }
.np-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; border-bottom: 1px solid var(--line); }
.np-idx { font-family: var(--head); font-size: 28px; color: #fff; background: var(--ink); border-radius: 6px; min-width: 42px; text-align: center; line-height: 42px; }
.np-title { flex: 1; font-family: var(--head); font-size: 21px; border: 0 !important; padding: 2px 4px !important; min-width: 0; }
input.np-title:hover { background: var(--soft); }
.np-dur { font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.np-sub { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.np-min { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.np-min input { width: 70px !important; padding: 3px 6px !important; }
.np-body { overflow-y: auto; padding: 4px 14px 40px; flex: 1; overscroll-behavior: contain; }
.np-sec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.np-sec h3 { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.np-sec h3 .btn { margin-inline-start: auto; }
.np-sec h3.click { cursor: pointer; }
.np-sec h3.click .chev { margin-inline-start: auto; }
.np-danger { padding-top: 18px; }
.songs { list-style: none; margin: 0; padding: 0; }
.song { border-bottom: 1px solid var(--soft2); }
.song.st-removed .song-t { text-decoration: line-through; color: var(--muted); }
.song-line { display: flex; align-items: center; gap: 8px; padding: 7px 0; }
.song-k { color: var(--muted); font-size: 12px; width: 16px; text-align: center; }
.song-t { flex: 1; }
.song-len { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.song-lyr { display: inline-flex; align-items: center; gap: 2px; color: var(--ok); padding: 4px; border-radius: 4px; }
.song-lyr.missing, .song-lyr.unmarked { color: var(--muted); }
.song-lyr.instrumental { color: var(--muted); }
.song-lyr:hover { background: var(--soft); }
.song-note { font-size: 13px; color: var(--muted); padding: 0 24px 6px; }
.song-edit { padding: 4px 0 14px; display: grid; gap: 8px; }
.song-edit .lbl { margin: 0; }
.perf { display: grid; gap: 8px; }
.perf-row { display: flex; align-items: center; gap: 10px; }
.perf-name { flex: 1; display: grid; }
.perf-name small { color: var(--muted); font-size: 12px; }
.perf-pick { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 8px; border-top: 1px dashed var(--line); }
.els { margin: 0; padding-inline-start: 18px; }
.els.edit { list-style: none; padding: 0; display: grid; gap: 6px; }
.els.edit li { display: flex; gap: 6px; align-items: center; }
.file-list { display: grid; gap: 6px; }
.unlock { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 18px; background: var(--soft); border-radius: 8px; margin: 14px 0; }
.unlock .code-in { width: 170px; }
.code-in { position: relative; flex: 1; display: block; }
.code-in input { padding-left: 38px !important; }
.code-eye { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); width: 30px; height: 30px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; transition: color var(--fast), background var(--fast); }
.code-eye:hover { color: var(--ink); background: var(--soft); }

/* notes */
.notes { display: grid; gap: 8px; }
.note { background: var(--soft); border-radius: 8px; padding: 9px 11px; animation: rise var(--mid) var(--ease); }
.note.done { opacity: .6; }
.note.reply { background: var(--paper); margin-top: 6px; padding: 7px 10px; }
.note-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.note-t { white-space: pre-wrap; margin: 3px 0; }
.composer { display: flex; gap: 6px; align-items: flex-end; }
.composer textarea { min-height: 38px; max-height: 160px; resize: none; }
.inbox-list { display: grid; gap: 12px; max-width: 820px; }
.inbox-item { padding: 12px 14px; }
.inbox-place { display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0 0 8px; cursor: pointer; font-weight: 500; text-align: start; }
.inbox-place:hover { color: var(--blue); }

/* ---------- music and the player */
.mlist { display: grid; gap: 10px; max-width: 980px; }
.mnum { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.mnum.none { padding-block: 2px; }
.mrest { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--paper); cursor: pointer; text-align: start; color: var(--muted); padding: 10px 12px !important; transition: border-color var(--fast); }
.mrest:hover { border-color: var(--ink); }
.music-empty { border: 1px dashed var(--line2); border-radius: 12px; }
.mu-list { display: grid; gap: 6px; }
.mu-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; animation: rise var(--mid) var(--ease) backwards; animation-delay: calc(min(var(--i, 0), 14) * 22ms); transition: background var(--mid); }
.mu-row.done { background: #effaf3; }
.mu-name { flex: 1 1 180px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.mu-row .pick { flex: 1 1 200px; }
.mu-ok { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-size: 13px; }
.mu-prog, .mu-err { flex-basis: 100%; display: grid; gap: 3px; }
.mnum-head { display: flex; align-items: center; gap: 10px; padding: 4px 0 6px; }
.mnum-head b { font-weight: 500; }
.frow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 6px; border-top: 1px solid var(--soft2); border-radius: 6px; transition: background var(--fast); }
.frow.new { background: #fff4f4; }
.frow.empty { display: flex; gap: 8px; }
.frow-t { display: grid; min-width: 0; }
.frow-t b { font-weight: 500; }
.frow-t small { color: var(--muted); font-size: 12.5px; }
.frow-a { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.frow-hist { grid-column: 1 / -1; display: grid; gap: 2px; padding-inline-start: 40px; animation: rise var(--mid); }
.frow-old { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.player { animation: playerIn .32s var(--ease); position: fixed; z-index: 45; inset-inline: 12px; bottom: calc(12px + var(--safe-b)); max-width: 820px; margin: 0 auto; background: #0b0b0b; color: #fff; border-radius: 12px; padding: 8px 12px; display: flex; align-items: center; gap: 10px;
  transform: translateY(140%); transition: transform .32s var(--ease); box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.player.in { transform: none; }
.player .btn.ghost { color: #fff; } .player .btn.ghost:hover { background: #2a2a2a; }
.player .btn.primary { background: var(--red); border-color: var(--red); }
.pl-info { display: grid; min-width: 0; max-width: 220px; }
.pl-info b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-info small { color: #aaa; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-time { font-variant-numeric: tabular-nums; font-size: 12px; color: #bbb; }
.pl-bar { flex: 1; height: 26px; position: relative; cursor: pointer; display: flex; align-items: center; touch-action: none; }
.pl-bar::before { content: ''; position: absolute; inset-inline: 0; height: 4px; background: #333; border-radius: 2px; }
.pl-fill { position: absolute; inset-inline-start: 0; height: 4px; background: var(--red); border-radius: 2px; }
.pl-bar i { position: absolute; top: 6px; width: 2px; height: 14px; background: #fff; opacity: .7; }
.target-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.target-pick button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: var(--paper); border-radius: var(--r); padding: 7px 11px; cursor: pointer; transition: all var(--fast); }
.target-pick button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.drop { display: grid; justify-items: center; gap: 6px; border: 2px dashed var(--line2); border-radius: 10px; padding: 22px; margin: 14px 0; cursor: pointer; text-align: center; transition: border-color var(--fast), background var(--fast); }
.drop:hover, .drop.has { border-color: var(--ink); background: var(--soft); }
.drop { position: relative; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop small { color: var(--muted); }
.progress { display: grid; gap: 6px; margin: 10px 0; font-size: 14px; }
.mk-audio { width: 100%; margin-bottom: 10px; }
.mk-list { padding-inline-start: 20px; display: grid; gap: 6px; margin: 14px 0; }
.mk-list li > * { vertical-align: middle; }
.mk-list li { display: list-item; }
.mk-list li span { display: inline-block; min-width: 150px; }

/* ---------- lyrics */
.lyr-index { display: grid; gap: 8px; max-width: 980px; }
.lyr-num { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; flex-wrap: wrap; transition: border-color var(--fast); }
.lyr-num:hover { border-color: var(--ink); }
.lyr-num b { font-weight: 500; min-width: 140px; }
.lyr-songs { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.lyr-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; padding: 2px 9px; border-radius: 12px; background: var(--soft2); }
.lyr-chip.ok { background: #e3f4ea; color: var(--ok); } .lyr-chip.instrumental { color: var(--muted); }
.lyr-chip .q { width: 14px; height: 14px; font-size: 9px; }
.lyrics { max-width: 860px; }
.lyr-head h1 { display: flex; align-items: center; gap: 10px; }
.lyr-song { padding: 16px 18px; margin-bottom: 14px; scroll-margin-top: 120px; }
.lyr-song-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.lyr-song-head .muted { font-size: 12.5px; }
.lyr-lines { display: grid; gap: 1px; }
.lyr-line { position: relative; display: flex; align-items: center; gap: 10px; padding: 3px 12px 3px 6px; border-inline-start: 5px solid transparent; border-image: var(--bar) 1; border-image-width: 0 0 0 0; min-height: 34px; flex-wrap: wrap; }
.lyr-line { border-inline-start: 0; box-shadow: none; }
.lyr-line::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 5px; background: var(--bar, transparent); }
.lyr-line { padding-inline-start: 16px; }
.lyr-line.change { margin-top: 8px; }
.lyr-line.backing .lyr-t { font-style: italic; color: var(--muted); }
.lyr-t { flex: 1; font-size: 17px; min-width: 60%; }
.lyr-lines.big .lyr-t { font-size: 24px; line-height: 1.45; }
.lm { display: inline-flex; gap: 2px; min-width: 26px; }
.lm.bk { font-size: 11px; color: var(--muted); border: 1px solid var(--line2); border-radius: 10px; padding: 0 6px; }
.lm.ghost { width: 26px; }
.lyr-sec { font-family: var(--head); font-size: 14px; color: var(--muted); margin: 14px 0 2px; padding-inline-start: 16px; }
.lyr-tr { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-style: italic; padding: 4px 16px; margin: 6px 0; border-top: 1px dashed var(--line2); border-bottom: 1px dashed var(--line2); }
.lyr-note { border: 0; background: none; color: var(--line2); cursor: pointer; display: inline-flex; align-items: center; gap: 2px; font-size: 11px; opacity: 0; transition: opacity var(--fast); }
.lyr-line:hover .lyr-note, .lyr-note.has { opacity: 1; }
.lyr-note.has { color: var(--blue); }
.lyr-notebox { flex-basis: 100%; padding: 6px 0 8px; animation: rise var(--mid); }
.lyr-line.split { gap: 0; padding-inline-start: 0; }
.lyr-line.split::before { display: none; }
.lyr-part { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; padding-inline-start: 14px; font-size: 17px; flex: 1; }
.lyr-part::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 5px; background: var(--bar); }
.lyr-missing { display: flex; align-items: center; gap: 10px; color: var(--red); }
.lyr-inst { display: flex; align-items: center; gap: 6px; }
.lyr-edit { display: grid; gap: 10px; }
.lyr-paste { font-size: 15px; }
.lyr-tools { position: sticky; top: calc(var(--tally) + var(--nav)); z-index: 5; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.lt-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.lt-label { font-size: 13px; color: var(--muted); }
.lyr-lines.editing .lyr-line { cursor: pointer; border-radius: 0 6px 6px 0; transition: background var(--fast); padding-top: 2px; padding-bottom: 2px; }
.lyr-lines.editing .lyr-line:hover { background: var(--soft); }
.lyr-lines.editing .lyr-line.sel { background: var(--blue-soft); }
.lyr-lines.editing .lyr-line.section .li-t { font-family: var(--head); color: var(--muted); }
.lyr-lines.editing .lyr-line.transition .li-t { font-style: italic; color: var(--muted); }
.li-n { width: 22px; font-size: 11px; color: var(--muted); text-align: center; }
.li-t { flex: 1; border-color: transparent !important; background: transparent !important; padding: 4px 6px !important; font-size: 16px; }
.li-t:focus { border-color: var(--line2) !important; background: var(--paper) !important; }
.parts { display: flex; flex: 1; gap: 6px; }
.parts .lyr-part { flex-direction: column; align-items: stretch; }
.part-who { display: flex; gap: 2px; }
.mini-face { border: 0; background: none; padding: 1px; border-radius: 50%; opacity: .35; cursor: pointer; transition: opacity var(--fast); }
.mini-face.on { opacity: 1; }
.lyr-save { position: sticky; bottom: calc(12px + var(--safe-b)); display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; box-shadow: 0 6px 22px rgba(0, 0, 0, .1); }
.hist-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

/* ---------- missing, versions, members, artist */
.meters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.meter { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; padding: 14px 16px; text-decoration: none; transition: border-color var(--fast); }
.meter:hover { border-color: var(--ink); }
.meter .pbar { grid-column: 1 / -1; }
.meter-t { display: grid; } .meter-t span { font-size: 13px; color: var(--muted); }
.miss-group { padding: 14px 16px; margin-bottom: 12px; max-width: 900px; }
.miss-group ul { list-style: none; margin: 0; padding: 0; }
.count { font-family: var(--body); font-size: 13px; background: var(--red); color: #fff; border-radius: 10px; padding: 0 8px; }
.link-row { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 7px 4px; text-align: start; cursor: pointer; border-radius: 6px; transition: background var(--fast); }
.link-row:hover { background: var(--soft); }
.vlist { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; max-width: 820px; }
.vrow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; flex-wrap: wrap; transition: border-color var(--fast); }
.vrow.sel { border-color: var(--blue); background: var(--blue-soft); }
.vlabel { font-family: var(--head); font-size: 20px; }
.plabel { font-family: var(--head); font-size: 17px; }
.points { margin-top: 28px; }
.points .cmp-sec { flex-wrap: wrap; }
.cmp-list { display: grid; gap: 10px; max-width: 900px; }
.cmp { padding: 12px 16px; border-inline-start: 4px solid var(--line2); }
.cmp.added { border-inline-start-color: var(--ok); } .cmp.removed { border-inline-start-color: var(--red); } .cmp.changed { border-inline-start-color: #f0b400; }
.cmp-head { display: flex; align-items: center; gap: 10px; }
.cmp-head b { font-weight: 500; }
.cmp ul { margin: 8px 0 0; padding-inline-start: 22px; }
.cmp li { margin: 3px 0; }
.tag.cmp-added { background: #e3f4ea; color: var(--ok); } .tag.cmp-removed { background: var(--red-soft); color: var(--red); } .tag.cmp-changed { background: #fff3d0; color: #8a6200; }
.ldiff { list-style: none; padding: 0 !important; }
.ld-added { color: var(--ok); } .ldiff .ld-added::before { content: '+ '; }
.ld-removed-n { color: var(--red); }
.cmp-sec { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; }
.cmp-note { font-family: var(--body); font-size: 13px; }
.count.dark { background: var(--ink); }
.cmp-fold { width: 100%; border: 0; background: none; padding: 0; cursor: pointer; text-align: start; flex-wrap: wrap; }
.cmp-fold .muted { font-size: 13px; }
.cmp-sum { display: inline-flex; gap: 10px; font-size: 13px; }
.cmp.lyrics { border-inline-start-color: var(--blue); }
.cmp .collapse .ldiff { margin-top: 8px; }
.ld-removed { color: var(--red); text-decoration: line-through; }
.ld-singer { color: var(--blue); }
.add-members { padding: 14px 16px; margin-bottom: 16px; max-width: 900px; }
.mtable { display: grid; gap: 6px; max-width: 900px; }
.mrow { display: grid; grid-template-columns: minmax(0, 1.5fr) 150px 150px 110px 70px; gap: 10px; align-items: center; padding: 8px 12px; }
.m-who { display: grid; min-width: 0; }
.m-who .muted { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.m-name { border-color: transparent !important; padding: 2px 4px !important; font-weight: 500; }
.m-name:hover { border-color: var(--line2) !important; }
.m-seen { font-size: 12.5px; }
.artist-hero { display: flex; align-items: center; gap: 20px; padding: 20px; border-radius: 12px; background: var(--c); color: var(--ink, #fff); margin-bottom: 18px; }
.artist-hero h1 { font-size: 32px; }
.artist-hero .face { box-shadow: 0 0 0 3px #fff; }
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 820px; }
.path .on { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto 60px; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; transition: border-color var(--fast); }
.path .on:hover { border-color: var(--ink); }
.path-t { display: grid; } .path-t small { color: var(--muted); font-size: 12.5px; }
.path .gap { display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 0; margin-inline-start: 26px; border-inline-start: 2px dotted var(--line2); font-size: 13px; color: var(--muted); }
.path .gap.short { color: var(--red); border-inline-start-color: var(--red); font-weight: 500; }
.path .gap.none { border-inline-start-style: solid; }
.path-role { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; }

/* ---------- sheets (windows inside the page) and messages */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0); display: flex; align-items: center; justify-content: center; padding: 16px; transition: background var(--mid); }
.sheet-wrap.in { background: rgba(0, 0, 0, .35); }
.sheet { background: var(--paper); border-radius: 12px; width: min(520px, 100%); max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity var(--mid), transform var(--mid) var(--ease); }
.sheet.wide { width: min(760px, 100%); }
.sheet-wrap.in .sheet { opacity: 1; transform: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 8px; }
.sheet-head h2 { flex: 1; font-size: 18px; }
.sheet-body { padding: 4px 16px 18px; overflow-y: auto; display: grid; gap: 10px; }
.toasts { position: fixed; z-index: 90; bottom: calc(86px + var(--safe-b)); inset-inline: 0; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: rise var(--mid) var(--ease); transition: opacity .3s, transform .3s; max-width: calc(100vw - 32px); }
.toast.err { background: var(--red); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- fingerprint or face login */
.pk-btn { width: 100%; justify-content: center; height: 44px; margin-top: 10px; font-size: 15px; }
.pk-btn.primary { margin: 0; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 12px 0; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.pk-offer-wrap { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--mid) var(--ease), opacity var(--mid), margin var(--mid); }
.pk-offer-wrap.in { grid-template-rows: 1fr; opacity: 1; margin-bottom: 14px; }
.pk-offer-wrap > .pk-offer { overflow: hidden; min-height: 0; }
.pk-offer { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-color: var(--ink); flex-wrap: wrap; }
.pk-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.pk-t { flex: 1; display: grid; min-width: 180px; } .pk-t span { color: var(--muted); font-size: 14px; }
.pk-list { display: grid; gap: 4px; }
.pk-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); animation: rise var(--mid) var(--ease) backwards; animation-delay: calc(var(--i, 0) * 30ms); }
.pk-row .grow { display: grid; } .pk-row small { font-size: 12.5px; }
.who-menu .btn { justify-content: flex-start; }

/* ---------- landing page */
.landing { min-height: 100vh; }
.landing .tally-in { max-width: 1180px; }
.landing .tally-tc { margin-inline-start: auto; animation: pulse 3s infinite; }
.hero { max-width: 1180px; margin: 0 auto; padding: 56px 20px 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.08; animation: rise .5s var(--ease) backwards; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { font-size: 18px; color: var(--ink2); max-width: 520px; animation: rise .5s .08s var(--ease) backwards; }
.login { padding: 18px; max-width: 480px; margin-top: 22px; display: grid; position: relative; animation: rise .5s .16s var(--ease) backwards; overflow: hidden; }
.login-step { grid-area: 1 / 1; opacity: 0; transform: translateX(-20px); pointer-events: none; transition: opacity var(--mid), transform var(--mid) var(--ease); }
.login-step.in { opacity: 1; transform: none; pointer-events: auto; }
.login .lbl { margin-top: 0; }
.link-mail { font-size: 18px; margin: 4px 0 14px; text-align: right; }
.login .form-msg { grid-area: 2 / 1; }
input.code { font-size: 22px; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.hero-art { background: #0b0b0b; border-radius: 14px; padding: 22px 18px 14px; display: grid; gap: 10px; animation: rise .6s .1s var(--ease) backwards; }
.hero-art .lane { position: relative; height: 18px; background: #1b1b1b; border-radius: 3px; overflow: hidden; }
.hero-art .lane span { position: absolute; top: 0; bottom: 0; border-radius: 3px; transform-origin: right; animation: grow .9s var(--ease) both; animation-delay: var(--d); }
.hero-art .ruler { display: flex; justify-content: space-between; color: #777; font-size: 11px; padding-top: 4px; border-top: 1px solid #2a2a2a; }
.features { max-width: 1180px; margin: 0 auto; padding: 20px 20px 50px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.feature { border-top: 2px solid var(--ink); padding-top: 14px; }
.feature h3 { margin: 8px 0 4px; font-size: 19px; }
.feature p { margin: 0; color: var(--ink2); }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; border-top: 1px solid var(--line); }

/* ---------- print screen */
.print { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.pr-settings { padding: 16px; position: sticky; top: calc(var(--tally) + var(--nav) + 12px); max-height: calc(100vh - 130px); overflow-y: auto; }
.pr-settings h2 { display: flex; align-items: center; gap: 8px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.pr-actions { margin-top: 16px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.preset { display: inline-flex; border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; }
.preset button { border: 0; background: none; padding: 4px 10px; cursor: pointer; font-size: 13px; }
.preset button:hover { background: var(--soft); }
.preset .x { padding: 4px 6px; border-inline-start: 1px solid var(--line); }
.pr-preview { display: grid; justify-items: center; gap: 18px; background: var(--soft); border-radius: 12px; padding: 20px; overflow-x: auto; }
.pr-page, .pr-measure-body { width: var(--pw); font-family: var(--pf); font-size: var(--pt); color: #000; }
.pr-page { zoom: var(--fit, 1); height: var(--ph); background: #fff; padding: var(--pm); box-shadow: 0 4px 18px rgba(0, 0, 0, .12); display: flex; flex-direction: column; overflow: hidden; animation: rise var(--mid) backwards; }
.pr-measure { position: absolute; visibility: hidden; pointer-events: none; inset-inline-start: -9999px; top: 0; }
.pr-measure-body { padding: 0 var(--pm); }
.pr-head { height: 12mm; display: flex; align-items: center; gap: 10px; border-bottom: 1.5pt solid #000; font-size: 9pt; flex: none; }
.pr-head b { font-size: 13pt; font-family: var(--head); font-weight: 400; }
.pr-head span:last-child { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.pr-body { flex: 1; overflow: hidden; padding-top: 2mm; }
.pr-foot { height: 6mm; display: flex; justify-content: space-between; align-items: flex-end; font-size: 8pt; color: #555; flex: none; }
.pr-unit, .pr-unit-out { overflow: hidden; }
.pr-num { display: flex; align-items: center; gap: 2.5mm; padding: 2.2mm 0 1mm; border-top: .6pt solid #999; }
.pr-unit:first-child .pr-num, .pr-body > .pr-unit-out:first-child .pr-num { border-top: 0; }
.pr-idx { font-family: var(--head); font-size: 1.35em; min-width: 7mm; text-align: center; }
.pr-title { flex: 1; display: grid; }
.pr-title b { font-weight: 600; }
.pr-perf { font-size: .85em; color: #333; display: inline-flex; align-items: center; gap: 1mm; flex-wrap: wrap; }
.pr-perf i { width: 2.4mm; height: 2.4mm; border-radius: 50%; display: inline-block; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pr-start, .pr-dur { font-variant-numeric: tabular-nums; font-size: .9em; }
.pr-dur { font-weight: 600; min-width: 11mm; text-align: end; }
.pr-meta { display: flex; flex-wrap: wrap; gap: 0 4mm; font-size: .85em; color: #333; padding: 0 9.5mm 1mm 0; }
.pr-song { padding: .6mm 9.5mm 0 0; font-size: .95em; }
.pr-song em { color: #555; font-style: normal; font-size: .9em; }
.pr-song.cont { color: #555; }
.pr-lsec { padding: 1mm 13mm 0 0; font-size: .85em; color: #555; font-family: var(--head); }
.pr-ltr { padding: .5mm 13mm 0 0; font-size: .85em; font-style: italic; color: #555; }
.pr-line { display: flex; gap: 2mm; padding: .2mm 13mm 0 0; }
.pr-who { min-width: 16mm; font-size: .8em; color: #444; font-weight: 600; }

@media print {
  html, body { background: #fff; }
  body * { visibility: hidden; }
  .pr-preview, .pr-preview * { visibility: visible; }
  .pr-preview { position: absolute; inset: 0; padding: 0; gap: 0; background: none; display: block; }
  .pr-page { zoom: 1 !important; box-shadow: none; animation: none; page-break-after: always; break-after: page; margin: 0; }
  .tally, .nav-top, .nav-bottom, .player, .toasts, .banners { display: none !important; }
}

/* ---------- phone */
@media (max-width: 760px) {
  html, body { font-size: 15px; }
  .tally-in { padding: 0 10px; gap: 4px; overflow: hidden; }
  .app-ver { display: none; }
  .brand { font-size: 18px; }
  .show-name { font-size: 15px; padding-inline-start: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .undo-pair .btn.sm.icon-only { width: 28px; }
  .ver-chip { display: none; }
  .tally-tc { font-size: 18px; }
  .nav-top { display: none; }
    .banners { top: var(--tally); }
  .pub-menu, .who-menu { position: fixed; top: calc(var(--tally) + 6px); inset-inline: 10px; width: auto; }
  .lyr-tools { top: var(--tally); }
  .nav-bottom { display: flex; position: fixed; z-index: 44; bottom: 0; inset-inline: 0; background: var(--paper); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
  .nav-bottom a, .nav-bottom button { flex: 1; display: grid; justify-items: center; gap: 1px; padding: 7px 0 6px; text-decoration: none; color: var(--muted); font-size: 11px; border: 0; background: none; transition: color var(--fast); }
  .nav-bottom .on { color: var(--ink); }
  .nav-bottom .on .ic { color: var(--red); }
  .more-sheet { display: block; position: fixed; inset: 0; z-index: 43; background: rgba(0, 0, 0, 0); pointer-events: none; transition: background var(--mid); }
  .more-sheet.in { background: rgba(0, 0, 0, .3); pointer-events: auto; }
  .more-grid { position: absolute; inset-inline: 0; bottom: calc(58px + var(--safe-b)); background: var(--paper); border-radius: 14px 14px 0 0; padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    transform: translateY(calc(100% + 70px + var(--safe-b))); visibility: hidden; transition: transform var(--mid) var(--ease), visibility 0s linear var(--mid); }
  .more-sheet.in .more-grid { transform: none; visibility: visible; transition: transform var(--mid) var(--ease), visibility 0s; }
  .more-dept { grid-column: 1 / -1; display: grid; gap: 6px; font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .dept-chips { display: flex; flex-wrap: wrap; gap: 5px; }
  .dept-chips .chip { height: 30px; padding: 0 11px; }
  .dept-pick { display: none; }
  .show-name small { display: none; }
  .zoom-slider { width: 120px !important; }
  .tl-tip { display: none; }
  .more-grid a { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border-radius: 10px; text-decoration: none; font-size: 13px; background: var(--soft); }
  .screen { padding: 14px 12px 150px; }
  h1 { font-size: 22px; }
  .home-grid { grid-template-columns: 1fr; }
  .home-clock { padding: 16px; }
  .nrow-main { grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: 'idx title dur' 'idx faces flags'; gap: 2px 10px; padding: 9px 4px; }
  .nidx { grid-area: idx; font-size: 20px; }
  .nstart { display: none; }
  .ntitle { grid-area: title; } .nfaces { grid-area: faces; } .nflags { grid-area: flags; justify-content: flex-end; } .ndur { grid-area: dur; }
  .npanel { top: auto; height: 92vh; width: 100vw; border-radius: 16px 16px 0 0; transform: translateY(104%); left: 0; right: 0; }
  .npanel.in { transform: none; }
  .player { inset-inline: 8px; bottom: calc(64px + var(--safe-b)); flex-wrap: wrap; gap: 6px; padding: 8px; }
  .pl-info { flex: 1; max-width: none; }
  .pl-bar { order: 5; flex-basis: 100%; }
  .pl-time { display: none; }
  .toasts { bottom: calc(140px + var(--safe-b)); }
  .frow { grid-template-columns: auto minmax(0, 1fr); }
  .frow-a { grid-column: 1 / -1; justify-content: flex-start; padding-inline-start: 40px; }
  .mrow { grid-template-columns: minmax(0, 1fr) auto; }
  .mrow .pick { min-width: 0; }
  .m-seen { display: none; }
  .print { grid-template-columns: 1fr; }
  .pr-settings { position: static; max-height: none; }
  .pr-preview { justify-items: start; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 28px; }
  .hero-art { order: -1; }
  .features { grid-template-columns: 1fr; }
  .sheet-wrap { align-items: flex-end; padding: 0; }
  .sheet { width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; transform: translateY(100%); }
  .lyr-save { bottom: calc(66px + var(--safe-b)); }
  .path .on { grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: 'idx title dur' 'idx role dur'; gap: 2px 10px; }
  .path .on > .nidx { grid-area: idx; } .path .on > .path-t { grid-area: title; } .path .on > .ndur { grid-area: dur; }
  .path .on > .muted:not(.path-role) { display: none; }
  .path .on > .path-role { grid-area: role; }
  .artist-hero { flex-direction: column; text-align: center; }
  .field-row { flex-wrap: wrap; }
  .lyr-t { font-size: 16px; }
  .tl-screen .legend { display: none; }
  .tl-screen .seg { flex-wrap: nowrap; }
  .tl-grid { grid-template-columns: 84px var(--w); }
  .tl-label { padding: 0 6px; font-size: 12px; gap: 5px; }
}
@media (max-width: 400px) {
  .show-name { display: none; }
  .tally-tc { font-size: 16px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .nrow-main { grid-template-columns: 36px minmax(0, 1fr) auto auto 64px; }
  .nstart { display: none; }
  .print { grid-template-columns: 260px minmax(0, 1fr); }
}
