/* Layout: one centered column; header bar, then the view (login / onboarding / admin tabs / tablet player in two panes on wide screens) */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #e6eaf1;
  --fg: #0e1526;
  --muted: #4a5468;
  --line: #d3d9e4;
  --accent: #c2373b;
  --accent-ink: #ffffff;
  --accent-text: #b53237;
  --accent-soft: #fbe3e3;
  --ok: #1d734a;
  --ok-bg: #daefe3;
  --warn: #a84c15;
  --warn-bg: #f7e2d3;
  --like: #c0365a;
  --scrim: rgba(14, 21, 38, 0.45);
  --display: 'Heebo', system-ui, sans-serif;
  --body: 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b1120;
    --surface: #131c30;
    --surface-2: #1b2640;
    --fg: #e8ecf4;
    --muted: #9aa5bc;
    --line: #2a3654;
    --accent: #f06a6d;
    --accent-ink: #1a0a0b;
    --accent-text: #f06a6d;
    --accent-soft: #3a1c22;
    --ok: #5cc48d;
    --ok-bg: #163029;
    --warn: #ef9a5f;
    --warn-bg: #3a2419;
    --like: #f07a98;
    --scrim: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0b1120;
  --surface: #131c30;
  --surface-2: #1b2640;
  --fg: #e8ecf4;
  --muted: #9aa5bc;
  --line: #2a3654;
  --accent: #f06a6d;
  --accent-ink: #1a0a0b;
  --accent-text: #f06a6d;
  --accent-soft: #3a1c22;
  --ok: #5cc48d;
  --ok-bg: #163029;
  --warn: #ef9a5f;
  --warn-bg: #3a2419;
  --like: #f07a98;
  --scrim: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

html,
body {
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
#app {
  max-width: 1060px;
  margin: 0 auto;
  padding-inline: 16px;
  padding-block: 0 40px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
  line-height: 1.2;
}
h1 {
  font-size: 1.9rem;
}
h2 {
  font-size: 1.35rem;
}
h3 {
  font-size: 1.1rem;
}
p {
  margin: 0;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.5rem 0.95rem;
  font-weight: 600;
}
.btn:hover {
  border-color: var(--accent);
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn.small {
  padding: 0.3rem 0.65rem;
  font-size: 0.88rem;
}
input[type='text'],
input[type='password'],
input[type='number'],
select,
textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  min-width: 0;
}
textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  box-sizing: border-box;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.pwwrap {
  position: relative;
  display: flex;
}
.pwwrap input {
  flex: 1;
  padding-right: 2.8rem;
}
.pweye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.45rem;
  cursor: pointer;
  border-radius: 8px;
}
.pweye:focus-visible {
  outline: 2px solid var(--accent, #d9474b);
}

/* header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.brand b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--accent);
}
.who {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.discq {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface);
}
.disc {
  margin: 0;
  padding-inline-start: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.5;
}
.btn.danger {
  background: var(--like, #c0392b);
  color: #fff;
  border-color: transparent;
}
.bad {
  outline: 3px solid var(--like, #c0392b) !important;
  outline-offset: 2px;
}
.upgr .btn {
  margin-top: 6px;
}
.upgr {
  border: 1px solid var(--accent);
  margin-bottom: 14px;
}
.subq {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line, #ddd);
}
.subq[hidden] {
  display: none;
}
.subq h3 {
  font-size: 1rem;
}
.langchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.nudge {
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.topr {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.infobtn {
  min-width: 36px;
  padding-inline: 10px;
  font-weight: 800;
}
.langsw {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.langsw button {
  border: 0;
  background: none;
  color: inherit;
  padding: 0.35rem 0.6rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.langsw button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--accent-ink); /* readable in light and dark mode */
}
.infotbl {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
}
.infotbl .ir {
  display: grid;
  grid-template-columns: minmax(90px, 38%) 1fr;
  gap: 10px;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.infotbl .ir span {
  color: var(--muted);
}
.infotbl .ir b {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.ver {
  font-family: ui-monospace, monospace;
  font-weight: 700;
}

/* login */
.login {
  max-width: 420px;
  margin: 6vh auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.login form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.demo-users {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px dashed var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.err {
  color: var(--warn);
  font-weight: 600;
  min-height: 1.5em;
}

/* choice chips built on real inputs */
.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.opt {
  position: relative;
}
.opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.opt span {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
}
.opt input:checked + span {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--fg);
  font-weight: 700;
}
.opt input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* onboarding */
.onb {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.onb form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.q {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.slotq {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 760px) {
  .slotq {
    grid-template-columns: 1fr;
  }
}
.slotq .q {
  gap: 10px;
}
.slotq h3 span {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-inline-start: 6px;
}

/* admin */
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tab {
  background: none;
  border: none;
  padding: 0.6rem 0.9rem;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.tab[aria-selected='true'] {
  color: var(--fg);
  border-color: var(--accent);
}
.stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.stat .v {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
}
.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 680px;
}
th,
td {
  text-align: start;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--surface-2);
}
tr:last-child td {
  border-bottom: none;
}
td select {
  width: 100%;
  min-width: 140px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
}
.pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pill.ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.pill.warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.addform {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.addform .field {
  flex: 1 1 160px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.plcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.plcard .meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.checks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow: auto;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.checks label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.95rem;
}
.bank {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
}
.note {
  font-size: 0.9rem;
  color: var(--muted);
  border-inline-start: 3px solid var(--line);
  padding-inline-start: 10px;
}
.req {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 0.95rem;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
}
.toplist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.toplist li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* player */
.ptools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.player {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
}
@media (max-width: 760px) {
  .player {
    grid-template-columns: 1fr;
  }
}
.side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.fitbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.fitbar > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 320px;
  min-width: 0;
}
.fitchips {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}
.fitchips .opt span {
  padding: 0.2rem 0.55rem;
  font-size: 0.82rem;
}
.fitcell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  min-width: 120px;
}
.fitcell .pill {
  font-size: 0.72rem;
}
.reclist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reclist li {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: 8px;
}
.newbadge {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
  align-items: flex-start;
}
.newbadge small {
  color: var(--muted);
  font-size: 0.85rem;
}
.discpanel .busyrow {
  align-items: center;
}
.sw {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  align-self: flex-start;
}
.sw input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.sw .track {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  transition: background 0.15s;
  flex: none;
}
.sw .track::after {
  content: '';
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: inset-inline-start 0.15s;
}
.sw input:checked + .track {
  background: var(--ok, #2e7d4f);
}
.sw input:checked + .track::after {
  inset-inline-start: 23px;
}
.sw input:focus-visible + .track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.swl {
  font-weight: 700;
  font-size: 0.92rem;
}
.modesw {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.mbtn {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  color: var(--fg);
  min-width: 0;
}
.mbtn small {
  color: var(--muted);
  font-size: 0.8rem;
}
.mbtn.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.ownpanel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ownpanel h3 {
  margin: 0;
}
.owngrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.owncard {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}
.owncard > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.owncard.on {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.mplist {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  max-height: 240px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
}
.mplist li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mplist li .chk {
  flex: 1;
  min-width: 0;
}
.mpn {
  min-width: 1.6em;
  text-align: center;
  color: var(--muted, #888);
  font-size: 0.8rem;
}
.mpmv {
  display: flex;
  gap: 3px;
  flex: none;
}
.mpmv .btn {
  padding: 2px 8px;
  min-width: 34px;
  min-height: 34px;
}
.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.slot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.slot b {
  font-size: 1rem;
}
.slot span {
  font-size: 0.78rem;
  color: var(--muted);
}
.slot small {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot.on {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.now {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.eq {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 64px;
}
.eq i {
  flex: 1;
  background: var(--accent);
  opacity: 0.85;
  border-radius: 3px 3px 0 0;
  height: 12%;
  animation: eq 1.1s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.eq.playing i {
  animation-play-state: running;
}
@keyframes eq {
  from {
    height: 12%;
  }
  to {
    height: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .eq i {
    animation: none;
    height: 40%;
  }
}
.titlerow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.2;
}
.heart {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--muted);
}
.heart svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.heart.on {
  color: var(--like);
  border-color: var(--like);
}
.heart.on svg {
  fill: currentColor;
}
.bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
}
.bar div {
  height: 100%;
  background: var(--accent);
  width: 0;
}
.times {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cbtn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid;
  place-items: center;
}
.cbtn.big {
  width: 72px;
  height: 72px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.cbtn.on {
  border-color: var(--accent);
  color: var(--accent);
}
.cbtn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.cbtn.big svg {
  width: 30px;
  height: 30px;
}
.volinfo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px 14px;
}
.vrow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.vrow small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}
.vrow .pill {
  white-space: nowrap;
  flex: none;
}
.occrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.occrow input {
  flex: 1;
  accent-color: var(--accent);
}
.pads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 8px;
}
.sampler .pad {
  aspect-ratio: 1/1;
  min-height: 84px;
  border-radius: 16px;
  border: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  cursor: pointer;
  text-align: center;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.08s;
}
.sampler .pad b {
  font-size: 1.05rem;
  line-height: 1.15;
  word-break: break-word;
}
.sampler .pad small {
  font-size: 0.75rem;
  opacity: 0.85;
}
.sampler .pad:active {
  transform: scale(0.95);
}
.sampler .pad:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.sampler .pad.empty {
  background: var(--surface);
  color: var(--fg);
  border: 2px dashed var(--line);
  box-shadow: none;
}
.sampler .pad.empty small {
  color: var(--muted);
  opacity: 1;
}
.pad.p0 {
  background: #c2410c;
}
.pad.p1 {
  background: #7c3aed;
}
.pad.p2 {
  background: #0f766e;
}
.pad.hit {
  animation: padhit 0.45s ease-out;
}
@keyframes padhit {
  0% {
    filter: brightness(1.8);
    transform: scale(0.93);
  }
  100% {
    filter: none;
    transform: none;
  }
}
.padrow {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 10px;
}
.padrow legend {
  font-weight: 700;
  padding: 0 6px;
}
.padfile {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.reqlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reqlist li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}
.jrec {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface-2);
}
.jrec audio {
  width: 100%;
}
.fxrow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}
.fxrow.off {
  opacity: 0.7;
}
.fxempty {
  border: 2px dashed var(--line);
  background: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
}
.fxempty:hover {
  border-color: var(--accent);
  color: var(--fg);
}
.adlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.adlist li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
}
.adlist li.off {
  opacity: 0.6;
}
.panel .adlist li button.btn {
  width: auto;
  display: inline-flex;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.3rem 0.65rem;
  border-radius: 10px;
  font-weight: 600;
}
.panel .adlist li button.btn:hover {
  border-color: var(--accent);
  background: var(--surface);
}
.adt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.adform {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.adsec {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-inline-start: 3px solid var(--accent-soft);
  padding-inline-start: 12px;
}
.adform textarea {
  min-height: 80px;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.recbtn {
  align-self: flex-start;
  cursor: pointer;
}
.recres {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ab {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.ab canvas {
  width: 100%;
  height: 64px;
  background: var(--surface-2);
  border-radius: 8px;
  display: block;
}
.ab audio {
  width: 100%;
  margin-top: 6px;
}
.fixes {
  margin: 0;
  padding-inline-start: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.92rem;
}
.fixes li::marker {
  content: '✓  ';
  color: var(--ok);
}
.jlangs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.jl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.jl button {
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  font-weight: 700;
}
.jl button.x {
  padding: 0.25rem 0.5rem;
  color: var(--muted);
  font-weight: 400;
  border-inline-start: 1px solid var(--line);
}
.jl.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.jlangs select {
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}
.jedit summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
}
.jedit[open] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jtext {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.35;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px 12px;
}
.jpanel select {
  max-width: 100%;
  min-width: 0;
  flex: 1 1 140px;
}
.busyrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.occ {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.daygrid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dayrow {
  display: grid;
  grid-template-columns: 4.2em 1fr 1fr;
  gap: 10px;
  align-items: center;
}
.dayrow .win {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.dayrow input {
  min-width: 0;
  flex: 1;
}
@media (max-width: 620px) {
  .dayrow {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
.dayrow input {
  min-width: 7.5em;
}
.win {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.win input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  font: inherit;
  color: inherit;
}
.remotecta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px dashed var(--accent);
  border-radius: 14px;
  padding: 14px 16px;
}
.remotecta small {
  display: block;
}
.remote {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.4);
}
.rhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.rhead b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
}
.rnow {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 12px 14px;
}
.rslots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.rslots .slot small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vol input {
  flex: 1;
  accent-color: var(--accent);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.panel ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.panel li button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: none;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  text-align: start;
}
.panel li button:hover {
  background: var(--surface-2);
}
/* the song playing now: a slightly deeper red in light mode so it stays readable on the grey row */
.panel li.cur button {
  background: var(--surface-2);
  color: var(--accent-text, var(--accent));
  font-weight: 700;
}
.taste {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.trow {
  display: grid;
  grid-template-columns: 7.5em 1fr 4.5em;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
}
.trow .tb {
  height: 8px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
}
.trow .tb div {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.4s;
}
.trow small {
  color: var(--muted);
  text-align: end;
}
.lock {
  max-width: 480px;
  margin: 8vh auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toast {
  position: fixed;
  inset-inline: 16px;
  bottom: 0;
  margin-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 460px;
  margin-inline: auto;
  background: var(--fg);
  color: var(--bg);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.report {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.report .stats {
  margin-bottom: 0;
}
.report td {
  white-space: nowrap;
}
.rng {
  unicode-bidi: isolate;
  direction: ltr;
  display: inline-block;
}
.rephead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.repgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.srow {
  display: grid;
  grid-template-columns: 7.5em 1fr 9.5em;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
}
.srow .tb {
  height: 10px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
}
.srow .tb div {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}
.srow small {
  color: var(--muted);
  text-align: end;
}
.slotnums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.slotnums .v {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
}
.sendbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.brs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.brrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.pricebox {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
}
.pricing {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.pricing input {
  width: 110px;
}
.ladder {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}
.ladder b {
  color: var(--fg);
}
.tosq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  background: var(--bg);
}
.tosq summary {
  cursor: pointer;
  font-weight: 700;
}
.tos ol {
  margin: 0.6rem 0 0;
  padding-inline-start: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 68ch;
}
.chk {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.chk input {
  margin-top: 0.3rem;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--accent);
}
.brstats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.brstat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brstat dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.brstat dt {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.brstat dd {
  margin: 0;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
}
.bizgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.bizgrid .span2 {
  grid-column: span 2;
}
@media (max-width: 640px) {
  .bizgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 400px) {
  .bizgrid {
    grid-template-columns: 1fr;
  }
  .bizgrid .span2 {
    grid-column: auto;
  }
}
[hidden] {
  display: none !important;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--scrim);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  overflow: auto;
}
.sheet {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin-block: auto;
}
.payhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.payform {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-banner {
  background: var(--warn-bg);
  color: var(--fg);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.92rem;
  border-inline-start: 4px solid var(--warn);
}
.sum {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px 14px;
}
.sum div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.sum dt {
  font-weight: 600;
}
.sum dd {
  margin: 0;
}
.sum .tot {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 1.1rem;
}
.sum .tot dd {
  font-weight: 700;
}
.cardgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cardgrid .span2 {
  grid-column: span 2;
}
.cardgrid input {
  font-variant-numeric: tabular-nums;
}
.ferr {
  color: var(--warn);
  font-weight: 600;
  min-height: 0;
}
.paybtn {
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
}
.secure {
  font-size: 0.85rem;
}
.paydone {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  text-align: center;
}
.okmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  margin: 0 auto;
}
.paydone .sum {
  text-align: start;
}
.agr {
  display: flex;
  flex-direction: column;
  gap: 16px;
  line-height: 1.65;
}
.agr h2 {
  font-size: 1.3rem;
}
.agr h3 {
  font-size: 1.02rem;
  font-family: var(--body);
  font-weight: 700;
}
.agr section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 72ch;
}
.agr ol {
  margin: 0;
  padding-inline-start: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.agr p {
  margin: 0;
}
.ph {
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
}
.sig {
  flex-direction: row !important;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 2px solid var(--line);
  padding-top: 12px;
  max-width: none !important;
}
.foot {
  margin-top: 36px;
  font-size: 0.85rem;
  color: var(--muted);
}
/* 52-eq-live.js: bars follow the music */
.eq.live i {
  animation: none;
}
/* "are you sure?" box before deleting (askConfirm) */
.modal.confirm {
  z-index: 30;
  align-items: center;
}
.csheet {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.csheet h2,
.csheet p {
  margin: 0;
}
/* the owner's narration recordings, each with its delete button under it */
.jrecs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jrecrow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px 12px;
}
.recgone {
  margin: 0;
  font-weight: 700;
}
/* 54-own-multi.js: remote playlist checkboxes */
.ownchk {
  border: 0;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* 55-tablet-view-search.js: tablet view on the phone + quick search */
.mirrorbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.qsrow {
  display: flex;
  gap: 8px;
  margin: 6px 0;
}
.qsrow input {
  flex: 1;
  min-width: 0;
}
.qslist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qslist li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
/* 56-slot-genres.js: genres by family in the profile */
.gfam {
  margin: 6px 0 10px;
}
.gfam > small {
  display: block;
  margin-bottom: 4px;
}
.opt.off {
  opacity: 0.55;
}
/* 57-volumes.js */
.volrow input[type='range'] {
  width: 100%;
  accent-color: var(--accent);
}
.volrow output {
  font-weight: 700;
  margin-inline-start: 6px;
}
/* 57-volumes.js: − slider + */
.volctl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.volctl input[type='range'] {
  flex: 1;
  min-width: 0;
}
.volctl .btn {
  min-width: 40px;
  font-weight: 800;
}
/* queue row: the song (plays it) + a round "+" that adds it to one of the business's own playlists */
.panel li.qrow {
  display: flex;
  align-items: center;
  gap: 6px;
}
.panel li.qrow > button[data-act='jump'] {
  flex: 1;
  min-width: 0;
}
.panel li.qrow > button.qadd {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}
.panel li.qrow > button.qadd:hover {
  background: var(--accent);
  filter: brightness(1.12);
}
.panel li.qrow > button.qrem {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--fg);
  border: 1px solid var(--line, rgba(128, 128, 128, 0.4));
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}
.panel li.qrow > button.qrem:hover {
  filter: brightness(1.12);
}
.qaddlist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
/* playlist editor: each section (genres / artists / songs) folds, with a "hide / show" pill */
.mpsec {
  border-top: 1px solid var(--surface-2);
  padding: 4px 0;
}
.mpsec > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
}
.mpsec > summary::-webkit-details-marker {
  display: none;
}
.mptog {
  margin-inline-start: auto;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 14px;
  font-size: 0.85rem;
  opacity: 0.8;
}
.mpsec:not([open]) .mptog .on,
.mpsec[open] .mptog .off {
  display: none;
}
.mpq {
  width: 100%;
  margin: 4px 0 10px;
}
.mpsongs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 50vh;
  overflow: auto;
}

/* seek by click / drag on the progress line */
.seekwrap {
  padding: 8px 0;
  margin: -8px 0;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.seekwrap:hover .bar,
.seekwrap:active .bar {
  height: 9px;
}
.seekwrap .bar {
  transition: height 0.1s;
}

/* inbox */
.inboxbtn {
  position: relative;
  min-width: 36px;
  font-size: 1.05rem;
}
.inbadge {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: #d62f3a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.inbadge[hidden] {
  display: none;
}
.inbox {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: min(560px, 86vw);
}
.inhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.inhead h2 {
  margin: 0;
}
.inlist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 55vh;
  overflow: auto;
}
.inrow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.inrow .intxt {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.inrow .intxt small {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inrow .indot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  flex: none;
}
.inrow.unread .indot {
  background: #1fa05a;
}
.inrow.unread .intxt b {
  font-weight: 800;
}
.inrow .intime {
  color: var(--muted);
  flex: none;
}
.inbody {
  white-space: pre-wrap;
  line-height: 1.6;
  margin-top: 10px;
  max-height: 50vh;
  overflow: auto;
}
.instars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.instars .star {
  background: none;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 4px;
}
.instars .star.on {
  color: #e3ae45;
}
.inform textarea {
  width: 100%;
  font: inherit;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: inherit;
}
.inform {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inopts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.inans {
  margin-top: 12px;
}

.inoptt {
  margin: 14px 0 0;
  font-weight: 700;
}

/* content window of a playlist: one row per song with "+" / "−" */
.plist {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-height: 55vh;
  overflow-y: auto;
}
.plist li.plrow {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.plist li.plrow > .pltt {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plist li.plrow > button.qadd,
.plist li.plrow > button.qrem {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}
.plist li.plrow > button.qadd {
  background: var(--accent);
  color: #fff;
}
.plist li.plrow > button.qrem {
  background: var(--surface-2);
  color: var(--fg);
  border: 1px solid var(--line);
}

.livelist {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.livelist li.live {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-wrap: wrap;
}
.livelist .ltxt {
  flex: 1;
  min-width: 140px;
}
.ldot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b9bcc4;
  flex: none;
}
.live.play .ldot {
  background: #1fa971;
  box-shadow: 0 0 0 4px rgba(31, 169, 113, 0.18);
}
.live.idle .ldot {
  background: #e8960c;
}
.live.off {
  opacity: 0.6;
}
.ownseq { margin: 8px 0 12px; align-items: flex-start; }
.ownseqlist { margin: 8px 0 0; padding-inline-start: 22px; }
.ownseqlist li { margin: 4px 0; }
.ownseqlist .btn.small { padding: 2px 8px; margin-inline-start: 4px; }
