/* The music screens: the numbers list (#/music), the number screen (#/music/<number>, full screen, ../js/views/track.js) and the
   control screen. The number screen is a console in the middle of the night: black around the wave and the lyrics, the notes on warm
   stone paper with their own mid tones (a steel blue for the times, a highlighter for the note that plays now), the transport in black.
   The wave stays in the middle of the screen whatever is shown around it. */
.trk {
  --console: #0b0b0b; --wave-off: #3a3a3a; --wave-on: #e8e8e8;
  --stone: #ebe6dd; --stone-line: #d8d0c3; --stone-ink: #2b2823; --stone-muted: #7a7266; --steel: #2f5f8f; --steel-soft: #dde6ef;
  --lit: #f7deae; --lit-edge: #d98b1e; --done: #138a52;
  --wave-h: 72px; --pad: 16px; --lh: 32px; --lyr-base: 15px; --lyr-scale: 1.45;
  position: fixed; inset: 0; z-index: 60; background: var(--stone); color: var(--stone-ink);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; animation: trkIn .28s var(--ease);
}
[data-theme=dark] .trk { --stone: #1e1c19; --stone-line: #34302a; --stone-ink: #ece6dc; --stone-muted: #9b9284; --steel: #8fb6dc; --steel-soft: #26313d; --lit: #4a3a1c; --lit-edge: #e3a447; }
@keyframes trkIn { from { opacity: 0; transform: translateX(-6%); } to { opacity: 1; transform: none; } }
.trk button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.trk .tn, .trk [dir=ltr] { font-variant-numeric: tabular-nums; }
.trk-empty { grid-row: 1 / -1; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--stone-muted); }

/* ---- the top: back, title, singers (whoever sings the current line lights up in their colour) */
.trk-top { background: var(--console); color: #fff; display: flex; align-items: flex-start; gap: 8px; padding: calc(8px + env(safe-area-inset-top, 0px)) var(--pad) 0; flex-wrap: wrap; }
.trk-back { width: 44px; height: 44px; display: grid; place-items: center; color: #aaa; border-radius: 50%; margin-inline-start: -12px; margin-top: -6px; transition: background var(--fast); }
.trk-back:hover { background: #1c1c1c; }
.trk-empty .trk-back { color: var(--stone-ink); margin: 0; }
.trk-ttl { flex: 1; min-width: 0; }
.trk-ttl h1 { font-family: var(--head); font-weight: 400; font-size: 20px; line-height: 1.2; margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.trk-old { font-family: var(--body); font-size: 11px; color: #ffb86b; border: 1px solid #ffb86b55; border-radius: 10px; padding: 0 7px; }
.trk-who { display: flex; gap: 12px; margin-top: 3px; font-size: 13px; font-weight: 500; color: #9a9a9a; flex-wrap: wrap; }
.trk-who span { display: inline-flex; align-items: center; gap: 5px; padding-bottom: 2px; border-bottom: 2px solid transparent; transition: color .45s, border-color .45s; }
.trk-who i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.trk-who span.sing { color: #fff; border-color: var(--c); }
.trk-tabs { flex-basis: 100%; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px 0 0; }
.trk-tabs button { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid #333; color: #bbb; font-size: 13px; white-space: nowrap; transition: background var(--fast), color var(--fast); }
.trk-tabs button.on { background: #fff; color: #111; border-color: #fff; }

/* ---- the lyrics: one strip sliding up, the sung line in the middle; only it lights up */
.trk-upper { background: var(--console); color: #fff; display: flex; align-items: center; overflow: hidden; }
.trk-lyr { flex: 1; height: calc(var(--lh) * 3); overflow: hidden; position: relative; margin: 0 var(--pad); transition: opacity var(--mid);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); }
.trk-lyr.off { opacity: 0; }
.trk-lyr.none { display: flex; align-items: center; justify-content: center; gap: 12px; color: #777; font-size: 14px; -webkit-mask-image: none; mask-image: none; }
.trk-lyr-in { transition: transform .45s var(--ease); will-change: transform; }
.trk-ll { height: var(--lh); display: flex; align-items: center; position: relative; padding-inline-start: 12px; font-size: var(--lyr-base); white-space: nowrap; opacity: .22; transition: opacity .45s var(--ease); }
.trk-ll .t { display: inline-block; transform-origin: right center; transition: transform .45s var(--ease); overflow: hidden; text-overflow: ellipsis; max-width: calc(100% / var(--lyr-scale)); }
.trk-ll.p { opacity: .34; } .trk-ll.n { opacity: .55; }
.trk-ll.cur { opacity: 1; font-weight: 600; }
.trk-ll.cur .t { transform: scale(var(--lyr-scale)); }
.trk-ll .bars { position: absolute; inset-inline-start: 0; top: 6px; bottom: 6px; width: 4px; display: flex; flex-direction: column; gap: 2px; opacity: 0; transition: opacity .45s; }
.trk-ll.cur .bars { opacity: 1; }
.trk-ll .bars i { flex: 1; background: var(--c); border-radius: 2px; }
.trk-chip { height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid currentColor; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; transition: background var(--fast), opacity var(--fast); }
.trk-chip.big { height: 44px; padding: 0 16px; font-size: 14px; width: 100%; justify-content: center; border-color: var(--line2); color: var(--ink); }
.trk-chip:disabled { opacity: .5; }

/* ---- the wave zone: time, counts, toggles; the wave; the marks; a slot of its own for the note button (nothing moves when it shows) */
.trk-wz { background: var(--console); color: #fff; display: flex; flex-direction: column; padding: 6px 0 4px; user-select: none; -webkit-user-select: none; }
.trk-meta { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 48px; margin: 0 var(--pad) 4px; direction: ltr; }
.trk-times { display: flex; align-items: baseline; gap: 5px; font-size: 13px; font-weight: 500; color: #8a8a8a; justify-self: start; }
.trk-times b { font-family: var(--head); font-weight: 400; font-size: 24px; color: #fff; line-height: 1; }
.trk-count { display: flex; gap: 14px; justify-self: center; direction: rtl; transition: opacity var(--mid), transform var(--mid) var(--ease); }
.trk.no8 .trk-count { opacity: 0; transform: scale(.9); pointer-events: none; }
.trk-count .cn { display: flex; flex-direction: column; align-items: center; min-width: 34px; }
.trk-count b { font-family: var(--head); font-weight: 400; font-size: 22px; line-height: 1; }
.trk-count small { font-size: 11px; color: #aaa; margin-top: 3px; }
.trk-tgl { display: flex; gap: 2px; justify-self: end; direction: rtl; }
.trk-tg { width: 40px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: #fff; opacity: .36; transition: opacity var(--fast), background var(--fast); }
.trk-tg.on { opacity: 1; background: #1c1c1c; }
.trk-wave { position: relative; height: var(--wave-h); margin: 0 var(--pad); direction: ltr; cursor: pointer; touch-action: pan-y; }
.trk-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.trk-wave .off path { fill: var(--wave-off); animation: fade var(--mid); }
.trk-wave .on path { fill: var(--wave-on); }
.trk-wline { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: var(--wave-off); border-radius: 2px; }
.trk-wfill { position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; background: var(--wave-on); border-radius: 2px; }
.trk-grid line { stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.trk-grid { transition: opacity var(--mid); }
.trk.no8 .trk-grid { opacity: 0; }
.trk-band { position: absolute; top: 0; bottom: 0; background: rgba(227, 38, 43, .18); border-left: 1.5px solid var(--red); border-right: 1.5px solid var(--red); pointer-events: none; animation: fade .2s; }
.trk-band .lp { position: absolute; top: 3px; right: 4px; color: #ff8a8d; }
.trk-head { position: absolute; top: 0; bottom: -6px; width: 2px; margin-left: -1px; background: var(--red); pointer-events: none; }
.trk-head::before { content: ''; position: absolute; bottom: 0; left: -4px; border: 5px solid transparent; border-bottom: 6px solid var(--red); }
.trk-lane { position: relative; height: 24px; margin: 0 var(--pad); direction: ltr; transition: opacity var(--mid); }
.trk-lane.off { opacity: 0; pointer-events: none; }
.trk-mk { position: absolute; top: 4px; height: 16px; display: flex; align-items: center; animation: fade .25s; }
.trk-mk::after { content: ''; position: absolute; inset: -14px -10px; }
.trk-mk.dot { width: 18px; margin-left: -9px; justify-content: center; }
.trk-mk.dot i { width: 9px; height: 9px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease), box-shadow .2s; }
.trk-mk.rng i { flex: 1; height: 5px; border-radius: 3px; background: #fff; transition: box-shadow .2s; }
.trk-mk.closed i { opacity: .22; }
.trk-mk.hit i { box-shadow: 0 0 0 2px var(--red); }
.trk-mk.dot.hit i { transform: scale(1.4); }
.trk-slot { position: relative; height: 50px; margin: 0 var(--pad); direction: ltr; }
@keyframes trkPop { from { opacity: 0; transform: translateX(-50%) scale(.6); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.trk-addpop { position: absolute; top: 3px; z-index: 4; width: 44px; height: 44px; border-radius: 50%; background: #fff !important; color: #111 !important; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.35); animation: trkPop .2s var(--ease); transform: translateX(-50%); transition: opacity .25s, transform .25s var(--ease), left .12s linear; }
.trk-addpop.out { opacity: 0; transform: translateX(-50%) scale(.6); pointer-events: none; }
.trk-loopx { position: absolute; top: 10px; z-index: 4; height: 30px; width: 130px; justify-content: center; border-radius: 15px; background: var(--red) !important; color: #fff; display: flex; align-items: center; gap: 4px; font-size: 12px; animation: fade .2s; white-space: nowrap; direction: rtl; }
.trk-peek { position: fixed; z-index: 70; width: 240px; background: #fff; color: #111; border-radius: 10px; padding: 9px 11px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.35); pointer-events: none; animation: rise .16s var(--ease); direction: rtl; }
.trk-peek .m { color: #6e6e6e; font-size: 12px; }

/* ---- the notes, on stone paper: the time leads, the eights under it */
.trk-sheet { overflow-y: auto; overscroll-behavior: contain; position: relative; }
.trk-sheet-in { padding: 4px 0 24px; max-width: 960px; margin: 0 auto; transition: opacity var(--mid); }
.trk-sheet-in.off { opacity: 0; pointer-events: none; }
.trk.no8 .e8 { display: none; }
.trk-row { display: grid; grid-template-columns: 78px 20px minmax(0, 1fr) 32px; align-items: center; gap: 8px; min-height: 58px; padding: 8px var(--pad); border-bottom: 1px solid var(--stone-line); position: relative;
  animation: rise var(--mid) var(--ease) backwards; animation-delay: calc(min(var(--i, 0), 14) * 30ms); transition: background .18s; }
.trk-row::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px; background: var(--lit-edge); transform: scaleY(0); transform-origin: bottom; transition: transform .18s var(--ease); }
/* the four seconds before a note: its edge fills up like a countdown. The note playing now: a highlighter over it */
.trk-row.stby::before { transform: scaleY(1); transition: transform 4s linear; opacity: .5; }
.trk-row.go { background: var(--lit); }
.trk-row.go::before { transform: none; opacity: 1; }
.trk-row:hover:not(.go) { background: color-mix(in srgb, var(--stone) 92%, #000); }
.trk-tc { font-family: var(--head); font-size: 16px; color: var(--steel) !important; text-align: right; line-height: 1.2; white-space: nowrap; justify-self: start; padding: 4px 6px !important; margin: -4px -6px; border-radius: 8px; transition: background var(--fast); }
.trk-tc.rng { font-size: 14px; }
button.trk-tc:hover { background: var(--steel-soft); }
.trk-tc small { display: block; font-family: var(--body); font-size: 11px; color: var(--stone-muted); }
.trk-tc.all { font-family: var(--body); font-size: 13px; color: var(--stone-muted) !important; text-align: start; }
.trk-st { display: grid; place-items: center; color: var(--steel); }
.trk-st.done { color: var(--done); } .trk-st.rejected { color: var(--stone-muted); }
.trk-txt { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.trk-row.exp .trk-txt { -webkit-line-clamp: unset; }
.trk-av { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); color: var(--fg); font-size: 13px; font-weight: 600; display: grid; place-items: center; justify-self: end; cursor: pointer; }
.trk-av .nm { display: none; }
.trk-av em { position: absolute; top: -5px; inset-inline-end: -6px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--steel); color: #fff; font-size: 10px; font-style: normal; display: grid; place-items: center; padding: 0 4px; box-shadow: 0 0 0 2px var(--stone); }
.trk-row.go .trk-av em { box-shadow: 0 0 0 2px var(--lit); }
.trk-stw { display: none; }
.trk-row.rejected .trk-txt { text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.trk-row.rejected > :not(.trk-thread) { opacity: .45; }
.trk-thread { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--mid) var(--ease); }
.trk-thread > div { overflow: hidden; min-height: 0; }
.trk-row.exp .trk-thread { grid-template-rows: 1fr; }
.trk-thread .who2 { font-size: 12px; color: var(--stone-muted); padding-top: 2px; }
.trk-msg { border-inline-start: 2px solid var(--stone-line); padding: 4px 10px; margin: 6px 0; font-size: 14px; }
.trk-row.go .trk-msg { border-color: var(--lit-edge); }
.trk-msg b { font-weight: 600; font-size: 13px; } .trk-msg span { color: var(--stone-muted); font-size: 12px; margin-inline-start: 6px; }
.trk-acts { display: flex; gap: 8px; align-items: center; padding: 6px 0 4px; }
.trk-reply { flex: 1; display: flex; align-items: center; gap: 4px; border: 1px solid var(--stone-line); border-radius: 22px; padding: 0 4px 0 12px; height: 44px; background: color-mix(in srgb, var(--stone) 60%, #fff); }
[data-theme=dark] .trk-reply { background: color-mix(in srgb, var(--stone) 80%, #000); }
.trk-reply input { flex: 1; border: 0 !important; outline: 0; font: inherit; font-size: 15px; background: transparent !important; color: inherit; min-width: 0; box-shadow: none !important; padding: 0 !important; }
.trk-reply button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--steel); }
.trk-reply button:disabled { opacity: .35; }
.trk-stbtn { height: 44px; padding: 0 12px !important; border-radius: 22px; border: 1px solid var(--stone-line) !important; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.trk-stlbl { font-size: 13px; color: var(--stone-muted); padding: 0 8px; }
.trk-grp { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 48px; padding: 0 var(--pad) !important; font-size: 13px; color: var(--stone-muted) !important; }
.trk-grp .ic { transition: transform var(--mid) var(--ease); }
.trk-grp.open .ic { transform: rotate(180deg); }
.trk-fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--mid) var(--ease), opacity var(--mid); }
.trk-fold > * { overflow: hidden; min-height: 0; }
.trk-fold.off { grid-template-rows: 0fr; opacity: 0; }
.trk-none { padding: 28px var(--pad); color: var(--stone-muted); text-align: center; font-size: 14px; }

/* ---- the transport */
.trk-bar { background: #111; color: #fff; padding: 0 10px var(--safe-b); height: calc(70px + var(--safe-b)); display: flex; align-items: center; direction: ltr; }
.trk-mid { display: flex; align-items: center; justify-content: space-between; flex: 1; }
.trk-tb { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; transition: background var(--fast); }
.trk-tb:hover { background: #222; }
.trk-play { width: 58px; height: 58px; border-radius: 50%; background: #fff !important; color: #111 !important; display: grid; place-items: center; transition: transform var(--fast) var(--ease); }
.trk-play:active { transform: scale(.94); }
.trk-ratew { position: relative; }
.trk-rate { min-width: 52px; height: 44px; border-radius: 22px; border: 1px solid #3a3a3a !important; font-size: 13px; font-weight: 500; padding: 0 8px !important; transition: border-color var(--fast), background var(--fast); }
.trk-rate.on { border-color: #fff !important; } .trk-rate.open { background: #222; }
@keyframes trkRate { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
.trk-ratepop { position: absolute; bottom: calc(100% + 10px); left: -2px; display: flex; gap: 3px; background: #fff; color: #111; border-radius: 24px; padding: 3px; box-shadow: 0 8px 24px rgba(0,0,0,.3); animation: trkRate .18s var(--ease); transform-origin: 26px 100%; z-index: 8; }
.trk-ratepop::after { content: ''; position: absolute; top: 100%; left: 22px; border: 6px solid transparent; border-top-color: #fff; }
.trk-ratepop button { min-width: 58px; height: 42px; border-radius: 21px; font-size: 14px; font-weight: 500; transition: background var(--fast), color var(--fast); }
.trk-ratepop button:hover { background: #f1f1ef; }
.trk-ratepop button.on { background: #111; color: #fff; }
.trk-tcode, .trk-right { display: none; }

/* ---- the sheets of the screen (the page's own sheets, with the screen's contents) */
.trk-opts { display: grid; }
.trk-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 4px; border-bottom: 1px solid var(--line); font-size: 15px; text-align: start; text-decoration: none; color: var(--ink); background: none; border-inline: 0; border-top: 0; cursor: pointer; transition: background var(--fast); }
.trk-opt:last-child { border-bottom: 0; }
.trk-opt:hover { background: var(--soft); }
.trk-opt.on { font-weight: 600; }
.trk-opt small { color: var(--muted); font-size: 12px; margin-inline-start: auto; }
.trk-compose { display: grid; gap: 10px; }
.trk-ic { margin: 10px var(--pad) 6px; border: 1px solid var(--stone-ink); border-radius: 14px; padding: 12px; animation: rise .2s var(--ease); background: color-mix(in srgb, var(--stone) 70%, #fff); }
[data-theme=dark] .trk-ic { background: color-mix(in srgb, var(--stone) 85%, #000); }
.trk-ic-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.trk-ic-head b { font-family: var(--head); font-weight: 400; font-size: 16px; flex: 1; }
.trk-ic-head button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: none; border: 0; color: inherit; cursor: pointer; }
.trk-seg { display: flex; background: var(--soft); border-radius: 12px; padding: 3px; gap: 3px; }
.trk-ic .trk-seg { background: color-mix(in srgb, var(--stone) 85%, #000 4%); }
.trk-seg button { flex: 1; height: 42px; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--muted); background: none; border: 0; cursor: pointer; font: inherit; transition: background var(--fast), color var(--fast), box-shadow var(--fast); }
.trk-seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.trk-edges { display: flex; gap: 8px; direction: ltr; }
.trk-edge { flex: 1; display: flex; align-items: center; background: var(--soft); border-radius: 12px; padding: 3px; }
.trk-edge > div { flex: 1; text-align: center; direction: rtl; line-height: 1.2; }
.trk-edge b { font-family: var(--head); font-weight: 400; font-size: 19px; display: block; direction: ltr; }
.trk-edge small { font-size: 12px; color: var(--muted); }
.trk-edge button { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex: none; background: none; border: 0; color: inherit; cursor: pointer; transition: background var(--fast); }
.trk-edge button:hover { background: var(--soft2); }
.trk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.trk-chips button { height: 38px; padding: 0 13px; border-radius: 19px; border: 1px solid var(--line2); background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; transition: background var(--fast), border-color var(--fast), color var(--fast); }
.trk-chips button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.trk-write { display: flex; gap: 8px; align-items: flex-end; }
.trk-write textarea { flex: 1; border-radius: 14px; padding: 11px 12px; font-size: 16px; resize: none; min-height: 48px; max-height: 140px; }
.trk-send { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; flex: none; border: 0; cursor: pointer; transition: opacity var(--fast), transform var(--fast) var(--ease); }
.trk-send:disabled { opacity: .3; }
.trk-tempo, .trk-timing { display: grid; gap: 10px; }
.trk-save { height: 46px; border-radius: 23px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 500; border: 0; cursor: pointer; }
.trk-tlist { display: grid; max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.trk-tline { display: grid; grid-template-columns: 40px 56px minmax(0, 1fr); align-items: center; gap: 6px; min-height: 42px; padding: 0 6px; border-bottom: 1px solid var(--line); font-size: 14px; }
.trk-tline:last-child { border-bottom: 0; }
.trk-tline button { height: 34px; border-radius: 8px; border: 0; background: var(--soft); color: inherit; cursor: pointer; font: inherit; display: grid; place-items: center; }
.trk-tt { font-variant-numeric: tabular-nums; }

/* ---- a computer: the same order, wider */
@media (min-width: 900px) {
  .trk { --wave-h: 110px; --pad: 32px; --lh: 46px; --lyr-base: 19px; --lyr-scale: 1.75; }
  .trk-top { padding-top: 16px; }
  .trk-ttl h1 { font-size: 28px; }
  .trk-who { font-size: 14px; }
  .trk-lyr { max-width: 960px; margin: 0 auto; }
  .trk-ll { justify-content: center; }
  .trk-ll .t { transform-origin: center; }
  .trk-ll .bars { position: static; flex-direction: row; width: auto; height: 22px; margin-inline-end: 10px; }
  .trk-ll .bars i { width: 4px; flex: none; }
  .trk-lane { height: 28px; }
  .trk-mk { top: 6px; } .trk-mk.dot i { width: 11px; height: 11px; }
  .trk-meta .trk-times, .trk-meta .trk-tgl { visibility: hidden; }
  .trk-count b { font-size: 28px; } .trk-count .cn { min-width: 48px; }
  .trk-row { grid-template-columns: 120px 22px minmax(0, 1fr) 120px 70px; min-height: 54px; }
  .trk-stw { display: block; font-size: 12px; color: var(--stone-muted); }
  .trk-av { justify-self: start; width: auto; height: auto; background: none; color: var(--stone-ink); font-size: 13px; font-weight: 500; display: flex; gap: 6px; }
  .trk-av .ini { display: none; } .trk-av .nm { display: inline; }
  .trk-av em { position: static; box-shadow: none !important; background: var(--steel-soft); color: var(--steel); }
  .trk-bar { height: 76px; padding: 0 var(--pad); }
  .trk-tcode { display: flex; min-width: 220px; }
  .trk-tcode .trk-times b { font-size: 30px; }
  .trk-mid { flex: none; gap: 16px; margin: 0 auto; }
  .trk-right { display: flex; gap: 4px; min-width: 220px; justify-content: flex-end; align-items: center; }
}

/* ---- the numbers list */
.mlist2 { max-width: 960px; margin: 0 auto; }
.ml-head { display: flex; align-items: flex-end; gap: 10px; padding: 6px 0 10px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.ml-head h1 { flex: 1; font-size: 26px; line-height: 1.1; }
.ml-head h1 small { display: block; font-family: var(--body); font-size: 13px; color: var(--muted); }
.ml-chip { height: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); color: var(--ink2); display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; cursor: pointer; transition: background var(--fast), color var(--fast), border-color var(--fast); }
.ml-chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ml-wait { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 12px; padding: 8px 8px 8px 12px; margin: 10px 0 4px; animation: rise var(--mid) var(--ease); }
.ml-wait > .ic { color: var(--warn); }
.ml-wait div { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.ml-wait b { font-weight: 500; display: block; font-size: 14px; }
.ml-wait code { font-family: var(--body); color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.ml-ok, .ml-ghost { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 0; cursor: pointer; }
.ml-ok { background: var(--ink); color: var(--paper); } .ml-ghost { background: none; color: var(--ink2); }
.ml-num { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 44px; align-items: center; gap: 10px; min-height: 64px; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer;
  animation: rise var(--mid) var(--ease) backwards; animation-delay: calc(min(var(--i, 0), 14) * 26ms); transition: background var(--fast); }
.ml-num:hover { background: var(--soft); }
.ml-num .ix { font-family: var(--head); font-size: 18px; color: var(--muted); text-align: center; }
.ml-num .tt { min-width: 0; }
.ml-num b { font-family: var(--head); font-weight: 400; font-size: 17px; display: block; line-height: 1.2; }
.ml-num .sub { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-num .sub i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.ml-num .meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); }
.ml-num .nb { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--red-soft); color: #a3201f; font-size: 12px; font-weight: 500; }
.ml-num .pl { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.ml-num.nofile { cursor: default; }
.ml-num.nofile b, .ml-num.nofile .ix { color: var(--muted); opacity: .7; }
.ml-num.nofile .pl { border-style: dashed; color: var(--muted); }
.ml-fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--mid) var(--ease), opacity var(--mid); }
.ml-fold > * { overflow: hidden; min-height: 0; }
.ml-fold.off { grid-template-rows: 0fr; opacity: 0; }

/* ---- the control screen, and the alert at home */
.ct-wait, .home-alert { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; margin: 0 0 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--soft); color: var(--ink); font: inherit; text-align: start; cursor: pointer; animation: rise var(--mid) var(--ease); }
.ct-wait > span, .home-alert > span { flex: 1; min-width: 0; }
.ct-wait > .ic:first-child, .home-alert > .ic:first-child { color: var(--warn); }
.ct-list { display: grid; }
.ct-row { display: grid; grid-template-columns: 22px 140px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 52px; padding: 6px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: start; animation: rise var(--mid) var(--ease) backwards; animation-delay: calc(min(var(--i, 0), 14) * 22ms); }
button.ct-row { cursor: pointer; } button.ct-row:hover { background: var(--soft); }
.ct-row b { font-weight: 500; }
.ct-row small { display: block; color: var(--muted); font-size: 12px; }
.ct-row time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ct-none { padding: 20px 4px; }
@media (max-width: 760px) { .ct-row { grid-template-columns: 22px minmax(0, 1fr) auto; } .ct-row b { grid-column: 2; } .ct-row > span, .ct-row > small { grid-column: 2; } .ct-row time { grid-column: 3; grid-row: 1; } }
