/* ============================================
   MY LISTS PAGE (lists.html) — LeetCode-style list rail + detail.
   ============================================ */
.lp {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 60px;
  align-items: start;
}

/* ---- Left rail ---- */
.lp-rail {
  position: sticky;
  top: 88px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 10px;
}
.lp-rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 10px;
}
.lp-rail__title { font-size: var(--text-sm); font-weight: var(--font-bold); color: var(--text-bright); letter-spacing: -0.01em; }
.lp-rail__new {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  background: transparent; color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s;
}
.lp-rail__new:hover { background: var(--bg-main); color: var(--accent); }
.lp-rail__new svg { width: 17px; height: 17px; }
.lp-rail__lists { display: flex; flex-direction: column; gap: 2px; }
.lp-rail__item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 10px; border: none; background: transparent;
  border-radius: 10px; cursor: pointer; text-align: left;
  color: var(--text-secondary); font-size: var(--text-sm); font-family: var(--font-sans);
  transition: background 0.15s, color 0.15s;
}
.lp-rail__item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.lp-rail__item.is-active { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: var(--font-semibold); }
.lp-rail__icon { display: flex; flex-shrink: 0; }
.lp-rail__icon svg { width: 16px; height: 16px; }
.lp-rail__item--fav .lp-rail__icon { color: #f5a623; }
.lp-rail__name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-rail__count {
  font-size: var(--text-xs); color: var(--text-muted);
  background: var(--bg-main); padding: 1px 8px; border-radius: 999px; flex-shrink: 0;
}
.lp-rail__item.is-active .lp-rail__count { background: color-mix(in srgb, var(--accent) 18%, var(--bg-main)); color: var(--accent); }
.lp-newlist { display: flex; gap: 6px; padding: 0 6px 8px; }
.lp-newlist input {
  flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--accent); border-radius: 8px;
  background: var(--bg-main); color: var(--text-primary); font-size: var(--text-sm); font-family: var(--font-sans);
}
.lp-newlist input:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }

/* ---- Detail panel ---- */
.lp-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.lp-detail {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 22px 22px 8px;
}
.lp-detail__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.lp-detail__icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: var(--bg-main); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
}
.lp-detail__icon svg { width: 24px; height: 24px; }
.lp-detail__icon--fav { background: color-mix(in srgb, #f5a623 16%, var(--bg-main)); color: #f5a623; }
.lp-detail__heading { flex: 1; min-width: 0; }
.lp-detail__name {
  font-size: var(--text-xl); font-weight: var(--font-bold); color: var(--text-bright);
  letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp-detail__sub { font-size: var(--text-sm); color: var(--text-muted); margin-top: 3px; }
.lp-detail__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lp-practice { display: inline-flex; align-items: center; gap: 7px; }
.lp-practice__ic { display: inline-flex; }
.lp-practice__ic svg { width: 13px; height: 13px; }
.lp-practice[disabled] { opacity: 0.45; cursor: not-allowed; }
.lp-icon-btn {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border-color);
  background: var(--bg-card); color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lp-icon-btn:hover { color: var(--text-primary); border-color: var(--text-secondary); }
.lp-icon-btn svg { width: 16px; height: 16px; }
.lp-icon-btn--danger:hover { color: #ef4444; border-color: color-mix(in srgb, #ef4444 40%, var(--border-color)); }
.lp-rename-input {
  font-size: var(--text-xl); font-weight: var(--font-bold); font-family: var(--font-sans);
  color: var(--text-bright); background: var(--bg-main); border: 1px solid var(--accent);
  border-radius: 8px; padding: 2px 10px; width: 100%; max-width: 360px;
}
.lp-rename-input:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }

/* ---- Progress ---- */
.lp-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.lp-progress__bar { flex: 1; height: 8px; border-radius: 999px; background: var(--bg-main); overflow: hidden; }
.lp-progress__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #22c55e)); transition: width 0.3s; }
.lp-progress__label { font-size: var(--text-xs); color: var(--text-muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* ---- Toolbar (search + difficulty filter) ---- */
.lp-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.lp-search {
  flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lp-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.lp-search svg { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }
.lp-search input {
  flex: 1; min-width: 0; padding: 9px 0; background: transparent; border: none;
  color: var(--text-primary); font-size: var(--text-sm); font-family: var(--font-sans);
}
.lp-search input:focus { outline: none; }
.lp-diff-filter { display: flex; gap: 4px; }
.lp-diff {
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border-color);
  background: var(--bg-card); color: var(--text-secondary); font-size: var(--text-xs);
  font-weight: var(--font-medium); cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lp-diff:hover { color: var(--text-primary); }
.lp-diff.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- Problem table ---- */
.lp-table { display: flex; flex-direction: column; }
.lp-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 8px; border-bottom: 1px solid var(--border-color);
  text-decoration: none; color: var(--text-primary); transition: background 0.12s;
}
.lp-row:last-child { border-bottom: none; }
.lp-row:hover { background: var(--bg-card-hover); }
.lp-row__num { width: 22px; text-align: right; font-size: var(--text-xs); color: var(--text-muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.lp-row__status {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border-color); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.lp-row__status svg { width: 11px; height: 11px; }
.lp-row__status--solved { background: #22c55e; border-color: #22c55e; }
.lp-row__status--attempted { border-color: #f59e0b; border-style: dashed; }
.lp-row__title { flex: 1; min-width: 0; font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-row:hover .lp-row__title { color: var(--accent); }
.lp-row__diff { flex-shrink: 0; text-transform: capitalize; }
.lp-row__remove {
  width: 28px; height: 28px; border-radius: 7px; border: none; background: transparent;
  color: var(--text-muted); cursor: pointer; flex-shrink: 0; opacity: 0;
  display: flex; align-items: center; justify-content: center; transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.lp-row:hover .lp-row__remove { opacity: 1; }
.lp-row__remove:hover { background: color-mix(in srgb, #ef4444 12%, transparent); color: #ef4444; }
.lp-row__remove svg { width: 15px; height: 15px; }
.lp-noresults { padding: 28px; text-align: center; color: var(--text-muted); font-size: var(--text-sm); }

/* ---- Starter templates (shown until the user has a custom list) ---- */
.lp-starters {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 18px;
}
.lp-starters__head { margin-bottom: 12px; }
.lp-starters__title { display: block; font-size: var(--text-sm); font-weight: var(--font-bold); color: var(--text-bright); letter-spacing: -0.01em; }
.lp-starters__sub { display: block; font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.lp-starters__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lp-starter {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 12px; border: 1px solid var(--border-color); border-radius: 12px;
  background: var(--bg-main); cursor: pointer; font-family: var(--font-sans);
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}
.lp-starter:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border-color));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.lp-starter:active { transform: scale(0.98); }
.lp-starter__icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-card));
  color: var(--accent); display: flex; align-items: center; justify-content: center;
}
.lp-starter__icon svg { width: 16px; height: 16px; }
.lp-starter__body { flex: 1; min-width: 0; }
.lp-starter__name { display: block; font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--text-primary); }
.lp-starter__desc { display: block; font-size: var(--text-xs); color: var(--text-muted); margin-top: 1px; line-height: 1.35; }
.lp-starter__count {
  font-size: var(--text-xs); color: var(--text-muted);
  background: var(--bg-card); border: 1px solid var(--border-color);
  padding: 1px 8px; border-radius: 999px; flex-shrink: 0;
}
.lp-starter__plus { color: var(--accent); display: flex; flex-shrink: 0; }
.lp-starter__plus svg { width: 15px; height: 15px; }
@media (max-width: 820px) {
  .lp-starters__grid { grid-template-columns: 1fr; }
  .lp-starter { min-height: 56px; }
}

/* ---- Empty / signed-out states ---- */
.lp-empty, .lp-signedout { text-align: center; padding: 44px 20px 50px; }
.lp-empty__icon {
  width: 60px; height: 60px; border-radius: 16px; background: var(--bg-main); color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.lp-empty__icon svg { width: 28px; height: 28px; }
.lp-empty__title { font-size: var(--text-base); font-weight: var(--font-semibold); color: var(--text-primary); }
.lp-empty__sub { font-size: var(--text-sm); color: var(--text-muted); margin: 6px auto 18px; max-width: 360px; line-height: 1.5; }

/* ---- Mobile: stack the rail above the detail ---- */
@media (max-width: 820px) {
  .lp { grid-template-columns: 1fr; gap: 16px; padding: 16px 14px 50px; }
  .lp-rail { position: static; }
  .lp-rail__lists { flex-direction: row; flex-wrap: wrap; }
  .lp-rail__item { width: auto; }
  .lp-detail { padding: 18px 16px 6px; }
  .lp-detail__name { font-size: var(--text-lg); }
  /* The head row doesn't fit at phone width: let it wrap so the heading keeps
     the full line (icon + name + sub) and the actions drop to their own row. */
  .lp-detail__head { flex-wrap: wrap; row-gap: 10px; margin-bottom: 12px; }
  .lp-detail__icon { width: 44px; height: 44px; border-radius: 12px; }
  .lp-detail__icon svg { width: 20px; height: 20px; }
  .lp-detail__heading { flex: 1 1 0; min-width: 0; }
  .lp-detail__sub { white-space: nowrap; }
  .lp-detail__actions { flex: 1 1 100%; justify-content: flex-start; }
  .lp-practice { flex: 1; justify-content: center; min-height: 44px; }
  .lp-icon-btn { width: 44px; height: 44px; }
  /* Full readable titles on phones: wrap to two lines instead of hard ellipsis. */
  .lp-row__title {
    white-space: normal;
    font-size: 14px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .lp-row { min-height: 52px; gap: 10px; }
  /* Judge fixes (Duolingo bar): the action must be visible and tappable on touch. */
  .lp-starters { order: -1; }                          /* starters lead the empty state */
  .lp-row__num { display: none; }                      /* reclaim width for the title */
  .lp-row__remove { opacity: 1; width: 40px; height: 40px; }  /* no hover-reveal on touch */
  .lp-row__diff { font-size: 10px; padding: 2px 8px; }
  .lp-diff { min-height: 40px; padding: 8px 14px; }    /* filter chips: real touch targets */
  .lp-search input { padding: 12px 0; font-size: 16px; }  /* ~44px tall; 16px stops iOS focus auto-zoom */
  .lp-rail__new { width: 44px; height: 44px; }         /* create affordance: full touch size */
  .lp-rail__new svg { width: 20px; height: 20px; }
  .lp-rail__item { min-height: 44px; padding: 10px 12px; }
}

/* Collapsed starters (after the first list exists) */
.lp-starters--collapsed { padding: 0; overflow: hidden; }
.lp-starters__summary {
  display: flex; align-items: baseline; gap: 10px; cursor: pointer;
  padding: 14px 18px; list-style: none; user-select: none; min-height: 44px; box-sizing: border-box;
}
.lp-starters__summary::-webkit-details-marker { display: none; }
.lp-starters__summary::after { content: '\203A'; margin-left: auto; color: var(--text-muted); transform: rotate(90deg); transition: transform 0.15s; }
.lp-starters--collapsed[open] .lp-starters__summary::after { transform: rotate(-90deg); }
.lp-starters--collapsed .lp-starters__grid { padding: 0 14px 14px; }
.lp-starters__summary:hover { background: var(--bg-card-hover); }

/* Inline delete confirm (replaces native window.confirm) */
.lp-confirm__label { font-size: var(--text-sm); color: var(--text-primary); font-weight: var(--font-medium); margin-right: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-confirm__btn { min-height: 40px; }
.lp-confirm__btn--danger { background: #ef4444; border: 1px solid #ef4444; color: #fff; border-radius: var(--radius-md); padding: 0 16px; cursor: pointer; font-weight: var(--font-semibold); font-size: var(--text-sm); }
.lp-confirm__btn--danger:hover { background: #dc2626; }

/* Creation-moment celebration: the new list's detail card glows in. */
@keyframes lp-card-pop {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); transform: scale(0.985); }
  45%  { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); transform: scale(1.004); }
  100% { box-shadow: 0 0 0 0 transparent; transform: scale(1); }
}
.lp-detail--new { animation: lp-card-pop 0.8s ease-out; }

/* Oct 2026: My lists | Browse lists tabs, hub, library and the standalone list page (js/lists-lib.js); lists.html only */
/* ===== lists.html (everyone): tabs, hub (Recommended for you, Add more lists) and the Browse lists library ===== */
.lp-tabs, .ml-hub, .lib { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.lp-tabs { display: flex; gap: 4px; padding-top: 22px; border-bottom: 0; }
.lp-tabs { position: relative; }
.lp-tabs::after { content: ''; position: absolute; left: 24px; right: 24px; bottom: 0; height: 1px; background: var(--border-color); }
.lp-tab { position: relative; padding: 9px 12px 10px; font-size: 14px; font-weight: 600; color: var(--text-secondary); text-decoration: none; }
.lp-tab:hover { color: var(--text-primary); }
.lp-tab.is-on { color: var(--text-bright); }
.lp-tab.is-on::after { content: ''; position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); }
.lp-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
.ml-hub { padding-top: 18px; }
.ml-hub .ml-rows { padding: 2px 16px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-card); }
.ml-hub--add { padding-top: 0; padding-bottom: 48px; }
.ml-hub--add .ml-add { margin-top: 0; padding-top: 0; border-top: 0; }
.lp-tabs + .ml-hub + .lp, .lp-tabs + .lp { padding-top: 20px; }
.lib { padding-top: 22px; padding-bottom: 60px; }
.lib__h { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: var(--text-bright); letter-spacing: -0.01em; }
.lib__sub { margin: 0 0 16px; font-size: 14px; color: var(--text-secondary); }
.lib-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.lib-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-chip { height: 32px; padding: 0 12px; border: 1px solid var(--border-color); border-radius: 999px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-secondary); cursor: pointer; }
.lib-chip:hover { color: var(--text-primary); border-color: var(--text-muted); }
.lib-chip[aria-pressed="true"] { color: var(--accent); border-color: var(--accent-border); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.lib-chip:focus-visible, .lib-search input:focus-visible, .lib-sort select:focus-visible, .lib-c__t:focus-visible, .lib-c__save:focus-visible, .lib-c__saved:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lib-tools { display: flex; align-items: center; gap: 10px; }
.lib-search input { width: 220px; height: 34px; padding: 0 12px; box-sizing: border-box; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); color: var(--text-primary); font: inherit; font-size: 13.5px; }
.lib-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.lib-sort select { height: 34px; padding: 0 8px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); color: var(--text-primary); font: inherit; font-size: 13.5px; }
.lib-count { margin: 0 0 10px; font-size: 12.5px; color: var(--text-muted); }
.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lib-c { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-card); }
.lib-c.is-pinned { border-color: var(--accent-border); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.lib-c__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.lib-c__type { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.lib-c__top .lv__b { width: 26px; height: 26px; }
.lib-c__t { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--text-bright); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.lib-c__t:hover { color: var(--accent); }
.lib-c__d { margin: 0; font-size: 13px; line-height: 1.4; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; min-height: 18px; }
.lib-c__m { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.lib-c__n { font-weight: 600; color: var(--text-secondary); }
.lib-c__p { display: inline-flex; align-items: center; gap: 6px; }
.lib-c__p .ml-row__bar { width: 52px; }
.lib-c__acts { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.lib-c__go { height: 34px; }
.lib-c__save, .lib-c__saved { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; box-sizing: border-box; border: 1px solid var(--border-color); border-radius: 8px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-primary); text-decoration: none; cursor: pointer; }
.lib-c__save:hover { border-color: var(--accent-border); color: var(--accent); }
.lib-c__saved { color: var(--accent-green, #16a34a); border-color: transparent; }
.lib-c .qv-lsave-slot { min-width: 0; }
.lib-c .qv-lsave-done__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lib-more { margin: 16px auto 0; display: flex; }
.lib-empty { padding: 24px 0; color: var(--text-muted); }
@media (max-width: 1024px) { .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .lp-tabs, .ml-hub, .lib { padding-left: 14px; padding-right: 14px; }
  .lp-tabs::after { left: 14px; right: 14px; }
  .lp-tabs { padding-top: 12px; }
  .ml-hub .ml-rows { padding: 2px 12px; }
  .lib-grid { grid-template-columns: minmax(0, 1fr); }
  .lib-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .lib-chips::-webkit-scrollbar { display: none; }
  .lib-chip { flex: none; }
  .lib-tools { width: 100%; }
  .lib-search { flex: 1 1 auto; }
  .lib-search input { width: 100%; }
}
@media (max-width: 520px) { .brz-cx__acts .ml-btn--timed span { display: none; } .brz-cx__acts .ml-btn--timed { width: 36px; padding: 0; } }

/* ===== Standalone list page: lists.html?view=<key> (js/dash-lists.js viewHtml) ===== */
.lv-page { max-width: 900px; margin: 0 auto; padding: 22px 24px 60px; box-sizing: border-box; }
.lv-back { display: inline-block; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.lv-back:hover { text-decoration: underline; }
.lv-head { padding: 18px 20px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-card); }
.lv-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.lv-title { margin: 4px 0 6px; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; color: var(--text-bright); }
.lv-desc { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); }
.lv-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.lv-meta .ml-row__bar { width: 120px; }
.lv-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.lv-acts .ml-btn { height: 36px; }
.lv-acts .ml-btn--go { min-width: 112px; }
.lv-acts .ml-more-w { width: 36px; height: 36px; }
.lv-acts .ml-more-b { width: 36px; height: 36px; }
.lv-saved { color: var(--accent-green, #16a34a); border-color: transparent; }
.lv-list { list-style: none; margin: 14px 0 0; padding: 0; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-card); overflow: hidden; }
.lv-list li + li { border-top: 1px solid var(--border-color); }
.lv-row { display: grid; grid-template-columns: 26px 20px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 10px 16px; color: inherit; text-decoration: none; }
.lv-row:hover { background: color-mix(in srgb, var(--text-muted) 7%, transparent); }
.lv-row__n { font: 600 12px/1 'JetBrains Mono', ui-monospace, monospace; color: var(--text-muted); text-align: right; }
.lv-row__st { display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid var(--border-color); border-radius: 50%; color: #fff; }
.lv-row__st.is-done { border-color: transparent; background: var(--accent-green, #22c55e); }
.lv-row__t { display: flex; flex-direction: column; min-width: 0; }
.lv-row__tt { font-size: 14px; font-weight: 600; color: var(--text-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-row.is-done .lv-row__tt { color: var(--text-secondary); }
.lv-row__m { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-row .fy-prob__diff { font-size: 11px; }
.lv-sim { min-height: 1px; }
.lv-missing { padding: 30px 20px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-card); }
@media (max-width: 640px) {
  .lv-page { padding: 14px 14px 50px; }
  .lv-head { padding: 14px; }
  .lv-title { font-size: 22px; }
  .lv-row { grid-template-columns: 22px 18px minmax(0, 1fr); padding: 10px 12px; column-gap: 10px; }
  .lv-row .fy-prob__diff { display: none; }
  .lv-acts .ml-btn--timed span, .lv-acts .ml-btn--save .qv-lsave__t { display: none; }
  .lv-acts .ml-btn--timed, .lv-acts .ml-btn--save { width: 36px; padding: 0; }
}
/* difficulty chips on lists.html (explore.css / dash-v2.css are not loaded there) */
.lv-row .fy-prob__diff { flex: none; padding: 2px 9px; border-radius: 999px; font-weight: 700; text-transform: capitalize; }
.lv-row .fy-d-easy { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.lv-row .fy-d-medium { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }
.lv-row .fy-d-hard { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
html[data-theme="dark"] .lv-row .fy-d-easy { background: rgba(16,185,129,.12); color: #34d399; border-color: rgba(52,211,153,.3); }
html[data-theme="dark"] .lv-row .fy-d-medium { background: rgba(245,158,11,.12); color: #fbbf24; border-color: rgba(251,191,36,.3); }
html[data-theme="dark"] .lv-row .fy-d-hard { background: rgba(239,68,68,.12); color: #f87171; border-color: rgba(248,113,113,.3); }

/* Public lists (Oct 2026): Share button (Make public / Make private / Copy link) beside rename and delete, a
   "Public" chip in the list's sub line and a small globe in the rail (js/lists-page.js shareHtml) */
.lp-share-w { width: auto; height: auto; }
.lp-share.is-pub { color: var(--accent); }
.lp-detail__sub .ml-pub { margin-right: 8px; vertical-align: 1px; }
.lp-rail__pub { flex: none; display: inline-flex; color: var(--text-muted); }
.lp-rail__pub svg { width: 13px; height: 13px; }
.lp-rail__item.is-active .lp-rail__pub { color: var(--accent); }
