html.is-list-shell,
html.is-list-shell body {
  height: 100dvh;
  overflow: hidden;
}

html.is-list-shell body.site-ads-on { padding-bottom: 0; }

html.is-list-shell .app-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.list-app-page {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.list-app-page .breadcrumbs {
  width: min(calc(100% - 36px), var(--container));
  margin-inline: auto;
}

.list-app {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  background: var(--bg);
}

.list-dossier {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 0 16px 6px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.list-subject-mark {
  width: 56px;
  height: 70px;
  color: var(--ink);
}

.list-subject-mark.is-card {
  width: 56px;
  height: 70px;
}

.list-dossier-copy h1 {
  margin: 0 0 4px;
  font-size: 1.55rem;
  line-height: 1.15;
}

.list-dossier-lead {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.list-dossier-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  color: var(--quiet);
  font-size: 0.8125rem;
}

.list-dossier-meta span + span::before { content: "·"; margin: 0 12px; }

.list-dossier.has-thumb { grid-template-columns: 128px minmax(0, 1fr); align-items: center; }
.list-dossier-thumb {
  width: 128px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  object-fit: cover;
}

.lx-about { display: flex; flex-direction: column; }
.lx-about-inner {
  flex: 1 0 auto;
  width: min(calc(100% - 48px), 48rem);
  margin-inline: auto;
  padding: 28px 0 44px;
}
.lx-about h2 { margin: 0 0 12px; font-size: 1.35rem; }
.lx-about-copy section { padding: 22px 0; border-top: 1px solid var(--line); }
.lx-about-copy section:first-child { border-top: 0; padding-top: 0; }
.lx-about-copy h2 { margin: 28px 0 8px; font-size: 1.2rem; }
.lx-about-copy h2:first-child { margin-top: 0; }
.lx-about-copy p { margin: 0 0 10px; color: var(--muted); line-height: 1.6; }

.lx-board {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.lx-switch-bar {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: stretch;
  min-width: 0;
  background: var(--surface);
  box-shadow: inset 0 -2px var(--blue);
}

.lx-switch {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.lx-switch::-webkit-scrollbar { display: none; }

.lx-switch a,
.lx-selected-toggle {
  min-height: 44px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.lx-switch a[aria-current="page"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--blue) 14%, var(--surface));
  box-shadow: inset 0 -2px var(--blue);
}

.lx-selected-toggle { display: none; }
.lx-selected-toggle:not([hidden]) { display: inline-flex; }

.lx-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.75rem;
  margin-left: auto;
  border: 0;
  background: var(--bg-deep);
  color: var(--ink);
  cursor: pointer;
  box-shadow: inset 1px 0 var(--line), inset 0 -2px var(--blue);
}

.lx-compact svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.is-list-compact .lx-compact svg { transform: rotate(180deg); }

.lx-compact[aria-pressed="true"],
html.is-list-compact .lx-compact {
  background: var(--blue);
  color: white;
}

.lx-stage {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.lx-panel { display: none; }
.lx-panel.is-active {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.lx-workspace {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  min-height: 0;
  min-width: 0;
}

.lx-filters {
  display: grid;
  align-content: start;
  align-self: stretch;
  gap: 12px;
  flex: 0 0 300px;
  width: 300px;
  height: auto;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 24px;
  background: var(--surface);
  box-shadow: inset -1px 0 var(--line);
}

.lx-scrim,
.lx-filters-toggle,
.lx-filter-head button { display: none; }

.lx-filter-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.lx-filter-head h2 { margin: 0; font-size: 1rem; }
.lx-filter-head small { color: var(--quiet); font-weight: 700; }
.lx-filter-head button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.6rem;
  cursor: pointer;
}

.lx-main {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 12px 16px 16px;
}

.comparison-table-shell,
.lx-tier-board,
.lx-roulette-stage,
.lx-scroll,
.lx-fill {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.lx-scroll { display: flex; flex-direction: column; }
.lx-scroll > .lx-tier-board,
.lx-scroll > .lx-roulette-stage { flex: 1 0 auto; overflow: visible; }
.lx-scroll > .lx-panel-end { margin-top: 16px; }
.lx-panel-end { flex: 0 0 auto; border-top: 1px solid var(--line); background: var(--bg); }

.lx-control, .lx-range { display: grid; gap: 6px; }
.lx-range { grid-template-columns: 1fr 1fr; }
.lx-range > span { grid-column: 1 / -1; color: var(--quiet); font-size: 0.78rem; font-weight: 800; }
.lx-control > span { color: var(--quiet); font-size: 0.78rem; font-weight: 800; }
.lx-control input,
.lx-control select,
.lx-range input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  color: var(--ink);
  font: inherit;
}

.lx-clear,
.lx-roulette-actions button,
.lx-roulette-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.lx-roulette-actions .button-primary {
  border-color: transparent;
  background: var(--blue);
  color: white;
}

.lx-check { display: flex; gap: 8px; align-items: center; min-height: 44px; color: var(--muted); font-weight: 700; }
.lx-note, .lx-hint, .lx-status { margin: 0; color: var(--muted); }
.lx-toolbar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 10px; flex: 0 0 auto; }
.lx-toolbar h2, .lx-toolbar h3 { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--muted); }
.lx-toolbar p { margin: 0 0 0 auto; color: var(--quiet); font-size: 0.82rem; }
.lx-main:has(.comparison-table.is-compact) .lx-hint { display: none; }
.comparison-table.is-compact { min-width: 100%; }
.comparison-table.is-compact tbody th { min-width: 9.5rem; }
.comparison-table.is-compact th,
.comparison-table.is-compact td { padding: 10px 12px; }
.comparison-table thead .lx-sort { display: flex; width: 100%; min-height: 0; gap: 6px; justify-content: space-between; text-align: inherit; }
.lx-sort::after { content: ""; position: absolute; inset: 0; }
.lx-sort:focus-visible { outline: 0; }
.lx-sort:focus-visible::after { outline: 2px solid var(--blue-bright); outline-offset: -2px; }
.lx-sort:hover,
.comparison-table th[aria-sort] .lx-sort { color: var(--ink); }
.lx-sort-icon { flex: none; width: 8px; height: 13px; fill: currentColor; }
.lx-sort-icon path { opacity: 0.32; }
.comparison-table th[aria-sort="ascending"] .lx-sort-icon .is-up,
.comparison-table th[aria-sort="descending"] .lx-sort-icon .is-down { opacity: 1; fill: var(--blue-bright); }
.list-item-copy strong.is-code { font-weight: 800; letter-spacing: 0.04em; }
.lx-pick { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.lx-pick input { width: 18px; height: 18px; accent-color: var(--blue); }
.lx-missing { color: var(--quiet); }

.comparison-table tbody tr.is-hit th,
.comparison-table tbody tr.is-hit td { background: color-mix(in srgb, var(--blue) 16%, var(--surface)); }

.lx-tier-board { display: grid; gap: 10px; align-content: start; }
.lx-tier-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.lx-tier-badge {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  text-align: center;
}
.lx-tier-badge strong { font-size: 1.8rem; }
.lx-tier-badge span, .lx-tier-badge small { color: var(--muted); font-size: 0.75rem; }
.lx-tier-row.is-s .lx-tier-badge { background: rgb(250 204 21 / 0.18); }
.lx-tier-row.is-a .lx-tier-badge { background: rgb(52 211 153 / 0.16); }
.lx-tier-row.is-b .lx-tier-badge { background: rgb(56 189 248 / 0.16); }
.lx-tier-row.is-c .lx-tier-badge { background: rgb(148 163 184 / 0.16); }
.lx-tier-items { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.lx-tier-card {
  flex: 0 0 148px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  text-decoration: none;
  color: inherit;
}
.lx-tier-card strong { font-size: 0.92rem; line-height: 1.3; }
.lx-tier-card small, .lx-tier-rank { color: var(--quiet); font-size: 0.75rem; font-weight: 800; }
.lx-tier-media { display: grid; place-items: center; min-height: 72px; }
.lx-tier-media img, .lx-tier-media .list-item-thumb { width: 64px; height: 64px; }
.list-item-thumb.is-initial { font-size: 0.68rem; letter-spacing: 0; }

.lx-roulette-stage { display: grid; justify-items: center; align-content: start; gap: 14px; }
.lx-wheel-wrap { position: relative; width: min(100%, 420px); }
.lx-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  z-index: 1;
  width: 0;
  height: 0;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  border-top: 18px solid var(--ink);
  transform: translateX(-50%);
}
.lx-wheel { width: 100%; height: auto; }
.lx-roulette-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lx-winner {
  width: min(100%, 520px);
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}
.lx-winner h3 { margin: 0; font-size: 1.6rem; }
.lx-winner img, .lx-winner .list-item-thumb { width: 72px; height: 72px; object-fit: cover; }

.lx-quiz, .lx-picked { display: grid; gap: 14px; align-content: start; padding: 4px 2px 24px; }
.lx-quiz-scope { display: grid; gap: 12px; }
.lx-options { display: grid; gap: 8px; }
.lx-options label, .lx-picked-grid a, .lx-result-grid article {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.lx-picked-grid, .lx-result-grid { display: grid; gap: 8px; }
.lx-result-grid article { display: grid; align-items: start; }
.lx-result-grid p { margin: 0; color: var(--muted); }
.lx-related { padding: 28px 0 0; border-top: 1px solid var(--line); }
.lx-about .lx-related h2 { margin: 0 0 14px; font-size: 1.2rem; }
.lx-related .dx-grid.is-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lx-related .dx-card h3 { font-size: 0.98rem; }
.lx-empty { padding: 18px 0; color: var(--muted); }

.list-editorial { padding-top: 28px; }

.site-footer {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 6px 16px;
}

.footer-compact a,
.footer-compact button,
.footer-compact span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--quiet);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.footer-compact a + a::before,
.footer-compact a + button::before,
.footer-compact button + a::before,
.footer-compact a + span::before,
.footer-compact button + span::before,
.footer-compact span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--quiet);
}

.footer-compact a:hover,
.footer-compact button:hover { color: var(--ink); }

@media (max-width: 620px) {
  .footer-compact { gap: 0 16px; }
  .footer-compact a + a::before,
  .footer-compact a + button::before,
  .footer-compact button + a::before,
  .footer-compact a + span::before,
  .footer-compact button + span::before,
  .footer-compact span + span::before { content: none; }
}

html.is-list-compact .topbar,
html.is-list-compact .breadcrumbs,
html.is-list-compact .list-dossier,
html.is-list-compact footer,
html.is-list-compact .list-editorial,
html.is-list-compact .lx-related,
html.is-list-compact .affiliate-disclosure,
html.is-list-compact .cookie-topbar { display: none; }

html.is-list-compact .lx-switch-bar { top: 0; }
html.is-list-compact .lx-workspace,
html.is-list-compact .lx-fill { height: auto; flex: 1 1 auto; min-height: 0; }

.comparison-table tfoot td {
  padding: 0;
  border: 0;
  background: var(--bg);
}

.table-end { padding: 8px 12px 12px; }

.list-item-thumb.is-file {
  width: 36px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 0;
  color: var(--ink);
}

.list-item-thumb.is-file text {
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
}

.list-item-thumb.is-code {
  background: var(--bg-deep);
  color: var(--ink);
}

.list-item-thumb.is-stack { padding: 0 3px; font-size: 0.62rem; line-height: 1.15; letter-spacing: 0; text-align: center; }

body.lx-filters-lock { overflow: hidden; }

@media (max-width: 900px) {
  .list-dossier { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 0 16px 4px; }
  .list-subject-mark { width: 48px; height: 60px; }
  .list-dossier-copy h1 { font-size: 1.2rem; }
  .list-dossier.has-thumb { grid-template-columns: 80px minmax(0, 1fr); }
  .list-dossier-thumb { width: 80px; height: 45px; }
  .lx-about-inner { width: min(calc(100% - 24px), 48rem); padding-top: 20px; }
  .lx-related .dx-grid.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-switch-bar { top: 0; }
  .lx-workspace {
    display: flex;
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }
  .lx-filters {
    position: fixed;
    z-index: 50;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(18rem, 84vw);
    transform: translateX(-105%);
    box-shadow: 8px 0 24px rgb(0 0 0 / 0.28);
  }
  .lx-workspace.is-filters-open .lx-filters { transform: none; }
  .lx-scrim {
    position: fixed;
    inset: 0;
    z-index: 45;
    border: 0;
    background: rgb(0 0 0 / 0.48);
    cursor: pointer;
  }
  .lx-workspace.is-filters-open .lx-scrim { display: block; }
  .lx-filters-toggle {
    display: inline-flex;
    align-self: center;
    align-items: center;
    min-height: 40px;
    margin-bottom: 10px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-deep);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  .lx-filter-head button { display: inline-flex; }
  .lx-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 12px;
    height: 100%;
  }
  .lx-main > * { grid-column: 1 / -1; }
  .lx-main > .lx-toolbar { grid-column: 1; grid-row: 1; }
  .lx-main > .lx-filters-toggle { grid-column: 2; grid-row: 1; }
  .lx-toolbar p { margin-left: 0; }
}

@media (max-width: 720px) {
  .lx-pick { min-width: 24px; }
  .comparison-table .list-item-head { gap: 8px; }
}
