/* css/my-lists.css -- My lists rows, Recommended for you, Add more lists, the Browse lists library and the
   "Save as list" button (Oct 2026). Shared by explore.html (dashboard section, js/dash-lists.js) and lists.html
   (the My Lists page hub + library). Moved out of css/dash-v2.css unchanged. */
/* "Save as list" button + confirmation (Oct 2026 My lists; js/list-save.js). Same block in playlist.css,
   company.css, dash-v2.css and (injected) js/firm.js. The button always sits in an absolutely positioned slot, so it never moves content. */
.qv-lsave { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; box-sizing: border-box; border: 1px solid var(--border-color); border-radius: 999px; background: var(--bg-card); color: var(--text-secondary); font: inherit; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .15s, border-color .15s; }
.qv-lsave:hover { color: var(--accent); border-color: var(--accent-border); }
.qv-lsave:focus-visible, .qv-lsave-done__a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qv-lsave[disabled] { opacity: .7; cursor: progress; }
.qv-lsave svg { flex: none; }
.qv-lsave-slot { display: inline-flex; max-width: 100%; }
.qv-lsave-done { display: inline-flex; align-items: center; gap: 6px; height: 30px; max-width: 100%; min-width: 0; font-size: 13px; color: var(--text-secondary); white-space: nowrap; }
.qv-lsave-done svg { flex: none; color: var(--accent-green); }
.qv-lsave-done__t { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.qv-lsave-done__t b { color: var(--text-primary); font-weight: 600; }
.qv-lsave-done__a { flex: none; color: var(--accent); font-weight: 600; text-decoration: none; }
.qv-lsave-done__a:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .qv-lsave__x { display: none; }
  .qv-lsave-done__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .qv-lsave { transition: none; } }

/* ===== My lists (Oct 2026, every signed-in user; js/dash-lists.js). Appended below Browse, new classes only. ===== */
.mylists { margin: 0 0 var(--space-12); padding: 18px 20px 20px; border: 1px solid var(--border-light, var(--border-color)); border-radius: 12px; background: var(--bg-card); }
html[data-theme="dark"] .mylists { border-color: var(--border-color); }
.mylists.is-collapsed { padding-bottom: 18px; }
.mylists__head { display: flex; align-items: flex-end; gap: 12px; min-width: 0; }
.mylists__hd { flex: none; }
.mylists__hd .explore-section__label { margin-bottom: 2px; }
.mylists__t { margin: 0; font-size: var(--text-xl); font-weight: var(--font-bold); letter-spacing: -0.01em; color: var(--text-bright); line-height: 1.25; }
.mylists__sub { flex: 1 1 auto; min-width: 0; padding-bottom: 3px; font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mylists__all { flex: none; padding-bottom: 3px; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.mylists__all:hover { text-decoration: underline; }
.mylists .mylists__tog { position: static; flex: none; margin: 0 -6px 0 -4px; }
.mylists__body { padding-top: 14px; }
.ml-rows { display: flex; flex-direction: column; }
.ml-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--border-light, var(--border-color)); }
.ml-row:first-child { border-top: 0; }
html[data-theme="dark"] .ml-row { border-color: var(--border-color); }
.ml-row__ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.ml-row--fav .ml-row__ic { background: color-mix(in srgb, #f59e0b 14%, transparent); color: #d97706; }
.ml-row--smart .ml-row__ic { background: color-mix(in srgb, #8b5cf6 13%, transparent); color: #7c3aed; }
html[data-theme="dark"] .ml-row--fav .ml-row__ic { color: #fbbf24; }
html[data-theme="dark"] .ml-row--smart .ml-row__ic { color: #a78bfa; }
.ml-row__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ml-row__name { display: block; min-width: 0; font-size: 15px; font-weight: 700; color: var(--text-bright); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.ml-row__name:hover { color: var(--accent); }
a.ml-row__name:focus-visible, .ml-btn:focus-visible, .ml-tpl:focus-visible, .mylists__all:focus-visible, .ml-more:focus-visible, .ml-row__peek a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ml-chip { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, #8b5cf6 12%, transparent); color: #7c3aed; font-size: 11px; font-weight: 600; vertical-align: 2px; }
html[data-theme="dark"] .ml-chip { color: #c4b5fd; }
.ml-row__meta { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.ml-row__bar { flex: none; width: 88px; height: 4px; border-radius: 99px; background: color-mix(in srgb, var(--text-muted) 22%, transparent); overflow: hidden; }
.ml-row__bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent-green, #22c55e); }
.ml-row__peek { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ml-row__n--m { display: none; }
.ml-row__peek a { color: var(--text-secondary); text-decoration: none; }
.ml-row__peek a:hover { color: var(--accent); text-decoration: underline; }
.ml-row__acts { flex: none; display: flex; align-items: center; gap: 8px; }
.ml-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; box-sizing: border-box; border: 1px solid var(--border-color); border-radius: 8px; background: transparent; color: var(--text-primary); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .15s, color .15s, background .15s; }
.ml-btn:hover { border-color: var(--accent-border); color: var(--accent); }
.ml-btn--go { border-color: transparent; background: var(--accent); color: #fff; }
.ml-btn--go:hover { background: var(--accent-hover, var(--accent)); color: #fff; border-color: transparent; }
.ml-btn[disabled] { opacity: .45; cursor: default; }
.ml-btn--save .qv-lsave__t { display: inline; }
.ml-more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.ml-more:hover { text-decoration: underline; }
.ml-empty { display: flex; flex-direction: column; gap: 12px; }
.ml-rows + .ml-empty { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-light, var(--border-color)); }
.ml-empty__t { margin: 0; font-size: 14px; color: var(--text-secondary); }
.ml-empty__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ml-tpl { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 10px; border: 1px solid var(--border-color); border-radius: 999px; background: var(--bg-primary, transparent); color: var(--text-primary); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .15s, color .15s; }
.ml-tpl svg { color: var(--accent); }
.ml-tpl:hover { border-color: var(--accent-border); color: var(--accent); }
.ml-tpl[disabled] { opacity: .6; cursor: progress; }
.ml-tpl__n { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--text-muted) 14%, transparent); color: var(--text-muted); font-size: 11.5px; text-align: center; }
.ml-empty__hint { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12.5px; color: var(--text-muted); }
.ml-empty__hint svg { flex: none; margin-top: 1px; }
@media (max-width: 640px) {
  .mylists { padding: 14px 14px 16px; }
  .mylists.is-collapsed { padding-bottom: 14px; }
  .mylists__sub { display: none; }
  .mylists__hd { flex: 1 1 auto; }
  .ml-row { gap: 10px; min-height: 60px; }
  .ml-row__ic { width: 30px; height: 30px; }
  .ml-row--rec .ml-row__bar { display: none; }
  .ml-row__n { display: none; }
  .ml-row--smart .ml-row__n--m { display: inline; }
  .ml-row__bar { width: 48px; }
  .ml-chip { display: none; }
  .ml-row__peek { display: none; }
  .mylists .mylists__tog { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .ml-btn, .ml-tpl { transition: none; } }


/* home2 My lists: Recommended for you + Add more lists (js/dash-lists.js h2Body) */
.ml-sub { margin: 4px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.ml-rows + .ml-sub { margin-top: 16px; }
.ml-row--rec .ml-row__ic { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.ml-chip--rec { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
html[data-theme="dark"] .ml-chip--rec { color: var(--accent); }
.ml-empty__hint--h2 { margin: 10px 0 0; }
.ml-add { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-color); }
.ml-add__h { margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--text-primary); }
.ml-add__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ml-addc { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 10px; background: none; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s; }
.ml-addc:hover { border-color: var(--accent-border); }
.ml-addc:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ml-addc__ic { color: var(--accent); display: grid; }
.ml-addc__t { max-width: 100%; font-size: 13px; font-weight: 700; color: var(--text-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-addc__n { font-size: 12px; color: var(--text-muted); }
@media (max-width: 1024px) { .ml-add__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ml-add__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ml-sub { margin-top: 2px; } }
@media (prefers-reduced-motion: reduce) { .ml-addc { transition: none; } }


/* My lists rows, one layout (Oct 2026): grid icon | text | fixed action cluster [Practice][Timed][More]. */
.ml-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
.ml-acts { display: grid; grid-template-columns: 112px 34px 34px; gap: 6px; align-items: center; justify-self: end; }
.ml-practice { width: 112px; height: 34px; padding: 0 10px; }
.ml-ic { position: relative; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--border-color); border-radius: 8px; background: none; color: var(--text-secondary); cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.ml-ic:hover { color: var(--accent); border-color: var(--accent-border); }
.ml-ic:focus-visible, .ml-mi:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ml-ic--empty { border-color: transparent; pointer-events: none; }
.ml-more-w { position: relative; display: block; width: 34px; height: 34px; }
.ml-more-b[aria-expanded="true"] { color: var(--accent); border-color: var(--accent-border); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ml-menu { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; min-width: 200px; padding: 6px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-card); box-shadow: 0 12px 32px -12px rgba(15, 23, 42, .28); }
.ml-menu:not([hidden]) { display: flex; flex-direction: column; }
html[data-theme="dark"] .ml-menu { box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .7); }
.ml-mi { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 7px; background: none; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--text-primary); text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; }
.ml-mi:hover { background: color-mix(in srgb, var(--text-muted) 10%, transparent); }
.ml-mi svg { flex: none; color: var(--text-muted); }
.ml-mi.is-on, .ml-mi.is-on svg { color: var(--accent); }
.ml-mi--phone { display: none; }
.ml-mi-sep { height: 1px; margin: 4px 2px; background: var(--border-color); }
.ml-menu .ml-votes { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.ml-menu .ml-mi.lv__b { display: flex; width: 100%; height: auto; min-height: 36px; padding: 0 10px; border: 0; justify-content: flex-start; color: var(--text-primary); }
.ml-menu .ml-mi.lv__b.is-on { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ml-menu .qv-lsave-slot { padding: 6px 10px; }
.ml-menu .qv-lsave-done__t { position: static; width: auto; height: auto; clip: auto; }
.ml-scope--firm { display: none; }
.ml-other { margin-top: 6px; }
.ml-other__s { cursor: pointer; padding: 8px 0; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.ml-other__s:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ml-addc--firm { text-decoration: none; }
@media (max-width: 640px) {
  .ml-row { grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 10px; }
  .ml-acts { grid-template-columns: 96px 36px; }
  .ml-practice { width: 96px; height: 36px; }
  .ml-tslot { display: none; }
  .ml-more-w, .ml-more-b { width: 36px; height: 36px; }
  .ml-mi--phone { display: flex; }
  .ml-mi { min-height: 42px; }
}

/* Dashboard My lists footer link */
.ml-go { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; min-height: 40px; border: 1px solid var(--border-color); border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.ml-go:hover { border-color: var(--accent-border); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.ml-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ml-addc { text-decoration: none; }

/* Add more cards: the card opens the library; the three single lists also get an "Open page" icon */
.ml-addc { position: relative; }
.ml-addc:not(.ml-addc--firm) { padding: 0; align-items: stretch; }
.ml-addc__main { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 10px 12px; color: inherit; text-decoration: none; border-radius: 10px; }
.ml-addc__main:focus-visible, .ml-addc__open:focus-visible, .lib-c__open:focus-visible, .b2__dopen:focus-visible, .lv-back:focus-visible, .lv-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ml-addc__open, .lib-c__open { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: var(--text-muted); }
.ml-addc__open { position: absolute; top: 6px; right: 6px; }
.ml-addc__open:hover, .lib-c__open:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.lib-c__open { margin-left: auto; width: 34px; height: 34px; border: 1px solid var(--border-color); border-radius: 8px; }
.ml-btn--open { color: var(--text-secondary); }
.b2__dopen { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); text-decoration: none; }
.b2__dopen:hover { color: var(--accent); border-color: var(--accent-border); }
/* Add more lists: the corner adds a single list to My lists (check = already there); the save confirmation shows as a toast */
.ml-addc__add { border: 1px solid var(--border-color); background: transparent; cursor: pointer; font: inherit; }
.ml-addc__add:hover { border-color: var(--accent-border); }
.ml-addc__add.is-added { color: var(--accent); border-color: transparent; }
.ml-addc .qv-lsave-slot { display: none; }
.ml-addc__add[aria-busy="true"] { opacity: .5; cursor: progress; }

/* Public lists (Oct 2026): "Public" chip on a published row, Make public / Make private / Copy link in the More
   menu, the first-publish confirm (js/dash-lists.js pubItems, js/list-publish.js) */
.ml-pub { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); font-size: 11px; font-weight: 600; line-height: 16px; }
.ml-pub svg { flex: none; }
.ml-mi[disabled] { cursor: default; color: var(--text-muted); }
.ml-mi[disabled]:hover { background: none; }
.ml-mi--2 { min-height: 46px; padding-top: 5px; padding-bottom: 5px; }
.ml-mi__tt { display: flex; flex-direction: column; gap: 1px; }
.ml-mi__hint { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.ml-pubw { display: block; }
.ml-pubc { display: flex; flex-direction: column; gap: 10px; width: 236px; padding: 8px 8px 4px; white-space: normal; }
.ml-pubc__t { font-size: 13px; line-height: 1.45; color: var(--text-primary); }
.ml-pubc__b { display: flex; justify-content: flex-end; gap: 6px; }
.ml-pubc .ml-btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* Recommended rows: "Not interested" (x after More; js/dash-lists.js recHide). Rows next to them keep an empty
   4th slot so the Practice column stays aligned. */
.ml-acts--x { grid-template-columns: 112px 34px 34px 34px; }
.ml-rec-x { color: var(--text-muted); border-color: transparent; }
.ml-rec-x:hover { color: var(--text-primary); border-color: var(--border-color); }
.ml-row.is-leaving { height: 0 !important; min-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; transition: height .15s ease, padding .15s ease, opacity .15s ease; }
.qr-toast--undo { display: inline-flex; align-items: center; gap: 14px; padding-right: 10px; }
.qr-toast__undo { padding: 4px 10px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.qr-toast__undo:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.qr-toast__undo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) {
  .ml-acts--x { grid-template-columns: 96px 36px 28px; gap: 4px; }
  .ml-acts--x .ml-ic { width: 36px; height: 36px; }
  .ml-acts--x .ml-rec-x { width: 28px; }
  /* phone: rows beside the Recommended block drop the spacer so list names keep their room */
  .ml-acts--x > .ml-ic--empty:last-child { display: none; }
  .ml-acts--x:not(:has(.ml-rec-x)) { grid-template-columns: 96px 36px; gap: 6px; }
  .qr-toast--undo { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ml-row.is-leaving { transition: none; } }
