  * {
    box-sizing: border-box;
  }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
  }
  .brand-block {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    min-width: 0;
    flex-shrink: 0;
    grid-area: brand;
  }
  /* Iter12 masthead — brand | search | actions */
  header {
    display: grid;
    grid-template-columns: auto minmax(12rem, 1fr) auto;
    grid-template-areas: "brand search actions";
    align-items: center;
    row-gap: 0.75rem;
    column-gap: 1.25rem;
    position: relative;
    z-index: 40;
  }
  .masthead-search {
    grid-area: search;
    position: relative;
    flex: none;
    min-width: 0;
    max-width: 28rem;
    width: 100%;
    margin: 0 auto;
    justify-self: center;
  }
  .search-suggest {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    margin: 0;
    padding: 0.25rem 0;
    background: var(--card);
    border: 1px solid var(--card-border);
    max-height: 16rem;
    overflow: auto;
  }
  .search-suggest[hidden] { display: none; }
  .search-suggest button {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
  }
  .search-suggest button[aria-selected="true"],
  .search-suggest button:hover {
    background: rgba(232, 238, 245, 0.06);
  }
  .search-suggest-kind {
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex: none;
  }
  .spell-note {
    margin: 0 0 0.9rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.45;
  }
  .spell-note[hidden] { display: none; }
  .spell-note button {
    background: none;
    border: none;
    padding: 0;
    color: var(--text);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
  }
  .search-suggest mark {
    background: transparent;
    color: inherit;
    font-weight: 650;
  }
  .empty-actions {
    margin-top: 0.85rem;
  }
  .empty-actions[hidden] { display: none; }
  .empty-dym {
    margin: 0 0 0.65rem;
  }
  .empty-dym[hidden] { display: none; }
  .empty-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
  }
  .empty-action-row button,
  .empty-action-row a {
    background: none;
    border: none;
    padding: 0;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
  }
  .masthead-search input[type="search"] {
    width: 100%;
  }
  .menu-toggle {
    grid-area: actions;
    justify-self: end;
  }
  .header-actions {
    grid-area: actions;
    display: flex;
    gap: 0.85rem;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex-shrink: 0;
  }
  header nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }
  .nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
  }
  .nav-item > a,
  .nav-item > button {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    cursor: pointer;
  }
  .nav-item > button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }
  .nav-item > a:hover,
  .nav-item > button:hover {
    color: var(--text);
  }
  .browse-caret {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    transition: transform 0.2s ease;
  }
  .nav-item.is-open .browse-caret {
    transform: rotate(180deg);
  }
  .nav-browse-panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    width: min(340px, calc(100vw - 2.4rem));
    border: 1px solid var(--card-border);
    border-radius: var(--radius-control, 2px);
    background: var(--card);
    box-shadow: none;
    z-index: 35;
    overflow: visible;
    display: none;
  }
  .nav-item.is-open .nav-browse-panel {
    display: block;
  }
  .masthead-search input[type="search"],
  .filter-dropdown-trigger {
    min-height: 38px;
    border-radius: 0;
    padding: 0.4rem 0;
    font-size: 1rem;
  }
  .masthead-search input[type="search"] {
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(232, 238, 245, 0.55);
    color: var(--text);
    width: 100%;
    border-radius: 0;
    padding: 0.4rem 0.1rem 0.45rem;
    font-family: var(--font-ui);
    font-size: 0.98rem;
    font-weight: 400;
    letter-spacing: 0.005em;
  }
  .masthead-search input[type="search"]::placeholder {
    color: rgba(232, 238, 245, 0.4);
    font-weight: 400;
  }
  .masthead-search input[type="search"]:focus {
    background: transparent;
    border-color: rgba(232, 238, 245, 0.9);
    border-bottom-color: rgba(232, 238, 245, 0.9);
    outline: none;
  }
  .filter-dropdown {
    position: relative;
  }
  .filter-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    width: auto;
    min-width: 7.5rem;
    text-align: left;
    cursor: pointer;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(232, 238, 245, 0.72);
    color: var(--text);
    padding: 0.35rem 0 0.45rem;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
  }
  .filter-dropdown-trigger:hover {
    color: var(--accent-strong);
    border-bottom-color: rgba(232, 238, 245, 0.95);
  }
  .filter-dropdown-trigger[aria-expanded="true"] {
    color: var(--text);
    border-bottom-color: var(--accent);
  }
  .filter-dropdown-trigger:disabled {
    opacity: 0.5;
    pointer-events: none;
  }
  .filter-dropdown-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 1 auto;
  }
  .filter-caret {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2.75;
    fill: none;
    opacity: 1;
    transition: transform 0.2s ease;
  }
  .filter-dropdown-trigger[aria-expanded="true"] .filter-caret {
    transform: rotate(180deg);
  }
  .filter-dropdown-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: max(100%, 17rem);
    min-width: 17rem;
    max-width: min(22rem, calc(100vw - 2rem));
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-control, 2px);
    z-index: 200;
    padding: 0.3rem 0;
    box-shadow: none;
  }
  /* Genre sits toward the right of the search row — open leftward so it stays on-screen */
  .filter-dropdown[data-filter-dropdown="genre"] .filter-dropdown-panel {
    left: auto;
    right: 0;
  }
  .filter-dropdown-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0.8rem;
    font-size: 0.8rem;
    line-height: 1.25;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: background 0.1s ease, color 0.1s ease;
    user-select: none;
    white-space: nowrap;
  }
  .filter-dropdown-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text);
  }
  .filter-dropdown-item.is-checked {
    color: var(--text);
  }
  .filter-dropdown-item input[type="checkbox"] {
    accent-color: var(--accent-text, #8eb8d0);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    cursor: pointer;
    pointer-events: none;
  }
  .filter-dropdown-clear {
    display: block;
    width: 100%;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-top: 1px solid var(--card-border);
    cursor: pointer;
    text-align: left;
    transition: color 0.1s ease;
    margin-top: 0.2rem;
  }
  .filter-dropdown-clear:hover {
    color: var(--text);
  }
  .header-search-form button {
    padding: 0.5rem 0.8rem;
    font-size: 0.76rem;
    border-radius: 999px;
  }

  .auth-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
  }
  .menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--surface-strong);
    color: var(--text);
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .menu-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }
  header nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
  }
  header nav a:hover {
    color: var(--text);
  }
  /* My Library nav link (only when signed in — [hidden] handled in shared theme CSS) */
  #my-library-link:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.38rem 0.8rem 0.38rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    white-space: nowrap;
  }
  #my-library-link:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
  }
  #my-library-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    flex-shrink: 0;
    opacity: 0.85;
  }
  main {
    padding: 0 clamp(1.8rem, 4.8vw, 6rem) 3.6rem;
  }
  .hero {
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: clamp(0.7rem, 1.4vw, 1rem);
    background: var(--card);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    box-shadow: none;
    align-items: stretch;
  }
  .hero[hidden] {
    display: none;
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
  }
  .creator-bio {
    max-width: 68rem;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: pre-line;
    padding: 0.1rem 0 0.2rem 0.9rem;
    border-left: 2px solid rgba(var(--accent-rgb), 0.45);
  }
  .creator-bio[hidden] {
    display: none;
  }
  .creator-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 0.35rem;
  }
  .creator-actions[hidden] {
    display: none !important;
  }
  .creator-action-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 650;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
  .creator-action-btn:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.09);
  }
  .creator-action-btn:disabled {
    opacity: 0.55;
    cursor: wait;
  }
  .creator-action-btn[aria-pressed="true"] {
    border-color: rgba(var(--accent-rgb), 0.45);
    background: rgba(var(--accent-rgb), 0.16);
    color: var(--text);
  }
  .creator-action-btn--primary {
    border-color: transparent;
    background: var(--accent);
    color: var(--accent-contrast);
  }
  .creator-action-btn--primary:hover {
    background: var(--accent-strong);
  }
  .creator-ratings {
    margin-top: 0.5rem;
    display: grid;
    gap: 0.55rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
  }
  .creator-ratings[hidden] { display: none; }
  .creator-ratings-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
  }
  .creator-ratings-role {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    font-weight: 700;
  }
  .creator-ratings-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
  }
  .creator-ratings-axes { display: grid; gap: 0.4rem; }
  .axis-row {
    display: grid;
    grid-template-columns: 4.25rem 1fr auto 3.25rem;
    align-items: center;
    gap: 0.6rem;
  }
  .axis-row .axis-name {
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
  }
  .axis-row .axis-bar {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }
  .axis-row .axis-fill {
    height: 100%;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.85);
  }
  .axis-row .axis-score {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text);
    text-align: right;
  }
  .axis-row .axis-count {
    font-size: 0.66rem;
    color: var(--text-muted);
    text-align: right;
  }
  label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  input[type="search"],
  input[type="email"],
  input[type="password"],
  select {
    background: var(--surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    font-size: 0.86rem;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-height: 36px;
  }
  input[type="search"]::placeholder {
    color: rgba(224, 224, 224, 0.6);
  }
  select {
    appearance: none;
    padding-right: 3rem;
    background-image: linear-gradient(45deg, transparent 50%, rgba(224, 224, 224, 0.85) 50%),
      linear-gradient(135deg, rgba(224, 224, 224, 0.85) 50%, transparent 50%),
      linear-gradient(90deg, var(--surface-strong), var(--surface-strong));
    background-position: calc(100% - 22px) 50%, calc(100% - 14px) 50%, center;
    background-size: 8px 8px, 8px 8px, 100% 100%;
    background-repeat: no-repeat;
  }
  select::-ms-expand {
    display: none;
  }
  select option {
    background-color: var(--bg);
    color: var(--text);
  }
  select:focus,
  input[type="search"]:focus {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
  }

  button {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }
  button[data-reset] {
    background: transparent;
    border: none;
    border-color: transparent;
    color: var(--text-muted);
    padding: 0.2rem 0;
    font-size: 0.76rem;
    font-weight: 500;
    border-radius: 0;
    min-height: 0;
  }
  button[data-reset]:hover {
    color: var(--text);
  }
  #clerk-user-button {
    display: flex;
    align-items: center;
  }

  @media (max-width: 980px) {
    .creator-bio {
      max-width: none;
    }
  }
  .grid {
    margin-top: 1.85rem;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2.85rem 2.1rem;
    justify-content: center;
  }
  @media (max-width: 720px) {
    .grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1.35rem 0.85rem;
      justify-content: stretch;
      max-width: none;
    }
    .card h3,
    .rec-card-title {
      font-size: 0.88rem;
    }
    .card .card-issue,
    .rec-card-series {
      font-size: 0.72rem;
    }
  }
  /* Modular columns with fixed max width — sparse results stay centered */
  @media (min-width: 900px) {
    .grid {
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 2.1rem 1.65rem;
      max-width: 1180px;
      justify-content: stretch;
    }
    .grid.has-query {
      grid-template-columns: repeat(7, minmax(0, 1fr));
      max-width: 1180px;
      gap: 2.1rem 1.65rem;
    }
  }
  @media (min-width: 1280px) {
    .grid {
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 2.25rem 1.85rem;
      max-width: 1420px;
    }
    .grid.has-query {
      grid-template-columns: repeat(7, minmax(0, 1fr));
      max-width: 1420px;
    }
  }
  .card.is-feature {
    grid-column: span 1;
  }
  @media (min-width: 900px) {
    .grid .card.is-feature:first-child {
      grid-column: span 1;
    }
    .grid .card.is-feature:first-child h3 {
      font-size: inherit;
    }
    .grid .card.is-feature:first-child .card-content {
      padding-top: 0.85rem;
      border-top: none;
      margin-top: 0.15rem;
    }
  }
  .grid.is-sparse {
    min-height: 36vh;
    align-content: start;
  }
  .grid.is-sparse::after {
    content: "";
    grid-column: 1 / -1;
    margin-top: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(232, 238, 245, 0.28), transparent 85%);
  }
  .card:hover {
    transform: none;
  }
  .card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: var(--surface-strong);
    display: block;
    border-radius: var(--radius-cover);
  }
  .card-content {
    padding: 0.85rem 0.05rem 0;
    margin-top: 0.15rem;
    border-top: none;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
  }
  .card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
    letter-spacing: -0.01em;
    font-variation-settings: "SOFT" 42, "WONK" 0.55, "opsz" 36;
  }
  .card .card-issue {
    margin: 0;
    color: rgba(232, 238, 245, 0.48);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.35;
  }
  .card .card-issue .card-no {
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .grid.has-query .card.is-title-match .card-issue .card-no {
    font-size: 1.05rem;
  }
  .card .meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card .date,
  .date-row {
    display: none;
  }
  .badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .badge {
    font-size: 0.7rem;
    border-radius: 10px;
    padding: 0.18rem 0.72rem;
    background: var(--surface-strong);
    color: var(--text);
  }
  .badge.accent {
    background: var(--surface-strong);
    color: var(--text);
  }
  /* Card status indicator */
  .card-status {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    padding: 0.22rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(12, 16, 22, 0.88);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 5;
  }
  .card-status.is-read {
    background: rgba(12, 16, 22, 0.88);
    color: var(--text);
  }
  .card-status.is-toread {
    background: rgba(var(--accent-rgb), 0.2);
    color: var(--accent-text);
  }
  .card-status.is-new {
    background: rgba(12, 16, 22, 0.88);
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.6rem;
  }
  .card.is-new-release {
    border-color: transparent;
    box-shadow: none;
  }
  .card.is-new-release:hover {
    border-color: transparent;
    box-shadow: none;
  }
  .card-status[hidden] { display: none; }
  /* Quick rate action bar — desktop hover only; never intercept mobile taps */
  .card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 0.8rem;
    background: rgba(22, 28, 38, 0.96);
    display: none;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10;
    pointer-events: none;
  }
  /* Touch / coarse pointers: keep actions off so a tap navigates to detail */
  @media (hover: hover) and (pointer: fine) {
    .card-actions {
      display: flex;
    }
    .card:hover .card-actions,
    .card:focus-within .card-actions,
    .rec-card:hover .card-actions,
    .rec-card:focus-within .card-actions {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }
  }
  .card-actions[hidden] { display: none !important; }
  .quick-btn {
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    background: var(--surface-strong);
    color: var(--text);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    white-space: nowrap;
  }
  .quick-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
  }
  .quick-btn.is-active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--text);
  }
  .quick-actions-row {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
  }
  /* Ratings hidden by default, shown when card actions has is-expanded */
  .quick-ratings {
    display: none;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--card-border);
  }
  .card-actions.is-expanded .quick-ratings {
    display: grid;
  }
  /* The expanded rating panel covers the card's title and date. At 0.96 alpha
     that white-on-dark text still reads through and collides with the Story and
     Vibe star rows, so the expanded state is fully opaque. */
  .card-actions.is-expanded {
    background: rgb(22, 28, 38);
  }
  .card-actions.is-expanded .quick-actions-row {
    display: none;
  }
  .quick-submit-row {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    gap: 0.4rem;
  }
  .quick-submit-btn {
    padding: 0.4rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--surface-strong);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  .quick-submit-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
  }
  .quick-back-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--surface-strong);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  .quick-back-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
  }
  /* Jakob's Law: Star hover preview - fill on hover before click */
  .quick-stars:hover .quick-star:not(.is-filled) {
    color: rgba(255, 255, 255, 0.65);
  }
  .quick-stars .quick-star:hover ~ .quick-star:not(.is-filled) {
    color: rgba(255, 255, 255, 0.5);
  }
  .quick-stars .quick-star:hover,
  .quick-stars .quick-star:hover ~ .quick-star:has(~ .quick-star:hover) {
    color: rgba(255, 255, 255, 0.7);
  }
  .quick-rating-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 0.3rem;
    align-items: center;
  }
  .quick-rating-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }
  .quick-stars {
    display: flex;
    gap: 0.15rem;
    align-items: center;
  }
  .quick-star {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.1s ease, color 0.1s ease;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
  }
  .quick-star:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.08);
  }
  .quick-star:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.24);
    outline-offset: 2px;
  }
  .quick-star.is-filled {
    color: var(--text);
  }
  .quick-star.is-half svg {
    clip-path: inset(0 50% 0 0);
  }
  .quick-star svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
  }
  .quick-ratings.is-disabled {
    opacity: 0.35;
    pointer-events: none;
  }
  /* Recommendations strip */
  .recs-section {
    margin-bottom: 1rem;
  }
  .recs-section[hidden] { display: none; }
  .continue-section {
    margin-bottom: 1rem;
  }
  .continue-section[hidden] { display: none; }
  .continue-new-badge {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    background: var(--accent);
    color: var(--accent-text, #111);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    z-index: 1;
  }
  .continue-card-reason {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    line-height: 1.35;
  }
  .recs-header-title-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 1 auto;
    min-width: 0;
  }
  .recs-collapse-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
  }
  .recs-collapse-toggle:hover {
    border-color: rgba(255, 255, 255, 0.28);
  }
  .recs-collapse-toggle:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.45);
    outline-offset: 2px;
  }
  .recs-section[data-collapsed="true"] .recs-body,
  .recs-section[data-collapsed="true"] .axis-filter-bar,
  .recs-section[data-collapsed="true"] .recs-header-actions,
  .recs-section[data-collapsed="true"] .recs-subtitle {
    display: none !important;
  }
  .recs-section[data-collapsed="true"] .recs-header {
    margin-bottom: 0;
  }
  .recs-header {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
  }
  .recs-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    flex: 0 0 auto;
  }
  .recs-header span {
    font-size: 0.82rem;
    color: var(--text-muted);
  }
  .recs-header a {
    margin-left: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .recs-header a:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.28);
  }
  .recs-header .axis-filter-bar {
    flex: 0 0 auto;
  }
  .recs-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-left: auto;
    min-width: 0;
  }
  .recs-header-actions > a {
    flex-shrink: 0;
  }
  .recs-header-divider {
    width: 1px;
    height: 1rem;
    background: var(--card-border);
    flex-shrink: 0;
    opacity: 0.9;
  }
  /* Pill + switch: reads as one control, matches accent pills */
  .recs-starter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.2rem 0.55rem 0.2rem 0.4rem;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: var(--surface-strong);
    color: var(--text-muted);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  }
  .recs-starter-pill:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.14);
  }
  .recs-starter-pill:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.45);
    outline-offset: 2px;
  }
  .recs-starter-pill[aria-pressed="true"] {
    background: rgba(var(--accent-rgb), 0.14);
    border-color: rgba(var(--accent-rgb), 0.38);
    color: var(--accent-text);
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.12);
  }
  .recs-starter-pill__track {
    width: 30px;
    height: 17px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease;
  }
  .recs-starter-pill__track::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    background: rgba(232, 238, 245, 0.45);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
  }
  .recs-starter-pill[aria-pressed="true"] .recs-starter-pill__track {
    background: rgba(var(--accent-rgb), 0.35);
  }
  .recs-starter-pill[aria-pressed="true"] .recs-starter-pill__track::after {
    transform: translateX(13px);
    background: var(--accent);
  }
  .recs-starter-pill__label {
    white-space: nowrap;
    padding-right: 0.1rem;
  }
  .recs-starter-pill__label[data-pill-label="short"] {
    display: none;
  }
  /*
   * Continue reading / Picks / Something new share one rail. Cover width tracks
   * On the table (.grid column count, gap, max-width, and catalog-section pad)
   * so the three issue covers read as the same object on the table.
   */
  .recs-strip {
    --rail-gap: 0.85rem;
    --rail-pad: clamp(1rem, 3vw, 2.25rem);
    --rail-cols: 2;
    --rail-max: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: var(--rail-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.55rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  }
  @media (min-width: 721px) and (max-width: 899px) {
    .recs-strip {
      --rail-gap: 2.1rem;
      --rail-min: 220px;
    }
    .rec-card {
      --rail-inner: calc(100% - 2 * var(--rail-pad));
      --rail-n: max(1, round(down, calc((var(--rail-inner) + var(--rail-gap)) / (var(--rail-min) + var(--rail-gap))), 1));
      flex-basis: calc((var(--rail-inner) - (var(--rail-n) - 1) * var(--rail-gap)) / var(--rail-n));
      width: calc((var(--rail-inner) - (var(--rail-n) - 1) * var(--rail-gap)) / var(--rail-n));
    }
  }
  @media (min-width: 900px) {
    .recs-strip {
      --rail-gap: 1.65rem;
      --rail-cols: 7;
      --rail-max: 1180px;
    }
  }
  @media (min-width: 1280px) {
    .recs-strip {
      --rail-gap: 1.85rem;
      --rail-max: 1420px;
    }
  }
  .recs-strip::-webkit-scrollbar {
    height: 6px;
  }
  .recs-strip::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
  }
  .recs-section .recs-empty {
    flex: 0 0 auto;
    min-width: min(100%, 320px);
  }
  .rec-card {
    position: relative;
    flex: 0 0 calc((min(var(--rail-max), 100% - 2 * var(--rail-pad)) - (var(--rail-cols) - 1) * var(--rail-gap)) / var(--rail-cols));
    width: calc((min(var(--rail-max), 100% - 2 * var(--rail-pad)) - (var(--rail-cols) - 1) * var(--rail-gap)) / var(--rail-cols));
    max-width: none;
    scroll-snap-align: start;
    border-radius: 0;
    overflow: visible;
    border: none;
    background: transparent;
    text-decoration: none;
    display: block;
  }
  .rec-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
  }
  .rec-card-cover {
    position: relative;
  }
  .rec-card-cover .card-actions {
    flex-wrap: wrap;
  }
  .rec-card:hover {
    transform: none;
  }
  .rec-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: var(--surface-strong);
    display: block;
    border-radius: var(--radius-cover);
  }
  .rec-card-body {
    padding: 0.85rem 0.05rem 0;
    margin-top: 0.15rem;
  }
  .rec-card-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
    letter-spacing: -0.01em;
    font-variation-settings: "SOFT" 42, "WONK" 0.55, "opsz" 36;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .rec-card-series {
    margin: 0.22rem 0 0;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: rgba(232, 238, 245, 0.48);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .rec-score {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    background: rgba(22, 28, 38, 0.88);
    color: var(--accent-text);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
  }
  .rec-new-arc {
    color: var(--accent-text);
  }
  .rec-dismiss {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(22, 28, 38, 0.88);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
  }
  .rec-card:hover .rec-dismiss,
  .rec-dismiss:focus-visible {
    display: flex;
  }
  .rec-dismiss:hover {
    color: #ffb5b5;
    border-color: rgba(255, 120, 120, 0.45);
  }
  .recs-empty {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 1rem 0;
  }
  .catalog-section {
    margin-top: 0.5rem;
    padding: 1.25rem clamp(1rem, 3vw, 2.25rem) 3rem;
    margin-left: 0;
    margin-right: 0;
    border-top: none;
    /* table-plane comes from sharedThemeCss */
    border-radius: 0;
  }
  .catalog-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin: 0 0 0.85rem;
  }
  .catalog-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.85rem 1.5rem;
    flex-wrap: wrap;
    margin: 0;
    width: 100%;
  }
  .catalog-title-stack {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
  }
  .catalog-kicker {
    display: none !important;
  }
  .catalog-header.is-query {
    font-size: clamp(1.85rem, 3.6vw, 2.55rem);
    letter-spacing: -0.04em;
    max-width: none;
  }
  .catalog-lede {
    margin: 0;
    max-width: 28rem;
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-muted);
    letter-spacing: 0.005em;
  }
  .catalog-lede[hidden] {
    display: none;
  }
  .catalog-tools {
    display: flex;
    align-items: baseline;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0.15rem 0 0.65rem;
    border-bottom: none;
    justify-content: flex-start;
    font-family: var(--font-ui);
    font-size: 0.92rem;
    color: rgba(232, 238, 245, 0.55);
  }
  .catalog-tools::before {
    content: none;
  }
  .catalog-filters {
    display: flex;
    align-items: center;
    gap: 1rem 1.25rem;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: auto;
    padding-right: 0;
    border-right: none;
  }
  .catalog-filters .filter-dropdown + .filter-dropdown::before,
  .catalog-mode-toggle::before {
    content: none;
  }
  .catalog-mode-toggle {
    display: inline-flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
    margin-left: 0;
  }
  .catalog-header-row .catalog-mode-toggle {
    flex-shrink: 0;
  }
  .catalog-header {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.6vw, 2.55rem);
    font-weight: 550;
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1.02;
    font-variation-settings: "SOFT" 50, "WONK" 0.9, "opsz" 96;
  }
  .catalog-count {
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--text-muted);
    margin-left: auto;
  }
  .catalog-count[hidden] {
    display: none;
  }
  .catalog-mode-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.2rem 0;
    border-radius: 0;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
  }
  .catalog-mode-btn:hover {
    color: var(--text);
  }
  .catalog-mode-btn.is-active {
    color: var(--text);
    background: transparent;
    border-bottom-color: var(--accent);
  }
  .catalog-mode-btn[hidden] {
    display: none;
  }

  .catalog-neighbor-label {
    grid-column: 1 / -1;
    margin: 1.65rem 0 0.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(232, 238, 245, 0.16);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(232, 238, 245, 0.45);
  }

  .discover-section {
    margin-bottom: 2.2rem;
  }
  .discover-section[hidden] { display: none; }
  .discover-title {
    margin: 0 0 1.1rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
  }
  .discover-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem 1.6rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    margin-inline: -0.15rem;
    padding-inline: 0.15rem;
    scrollbar-width: none;
  }
  .discover-row::-webkit-scrollbar {
    display: none;
    height: 0;
  }
  .concept-tile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    flex: 0 0 168px;
    width: 168px;
    max-width: 168px;
    scroll-snap-align: start;
    color: inherit;
  }
  .concept-cover {
    display: block;
    aspect-ratio: 2 / 3;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-cover);
    background: var(--surface-strong);
  }
  .concept-cover--blank {
    background: var(--surface-strong);
  }
  .concept-tile-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
  }
  .concept-tile-kind {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .concept-tile-name {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
  }
  .concept-tile-blurb {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .concept-tile-count {
    margin-top: auto;
    padding-top: 0.25rem;
    font-size: 0.74rem;
    color: var(--text-muted);
  }

  /* Axis filter pills */
  .axis-filter-bar {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0;
  }
  .axis-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    background: none;
    color: var(--text-muted);
    transition: all 0.15s;
  }
  .axis-pill:hover { color: var(--text); }
  .axis-pill[data-active="overall"] { background: rgba(var(--accent-rgb), 0.12); color: var(--accent-text); border-color: rgba(var(--accent-rgb), 0.3); }
  .axis-pill[data-active="art"]     { background: var(--axis-art-dim);    color: var(--axis-art);    border-color: rgba(200,144,106,0.3); }
  .axis-pill[data-active="story"]   { background: var(--axis-story-dim);  color: var(--axis-story);  border-color: rgba(106,158,200,0.3); }
  .axis-pill[data-active="pacing"]  { background: var(--axis-pacing-dim); color: var(--axis-pacing); border-color: rgba(106,200,160,0.3); }
  .axis-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* Recs section sub-strips (one per axis, shown/hidden by filter) */
  .axis-strip-section { display: none; }
  .axis-strip-section.is-visible { display: block; }
  .axis-strip-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
  }

  /* Match tag on grid cards */
  .card-match-tag {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(10, 14, 20, 0.88);
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(255,255,255,0.07);
    pointer-events: none;
  }
  .card-match-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .card-match-reason {
    font-size: 0.62rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 0.25rem;
  }
  .card-match-reason-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* Browse panel */
  .browse-panel {
    width: 100%;
    border: none;
    border-radius: 0;
    background: var(--card);
    overflow: visible;
  }
  .browse-panel-header {
    padding: 0.8rem 1rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--card-border);
  }
  .browse-category {
    border-bottom: 1px solid var(--card-border);
  }
  .browse-category:last-child {
    border-bottom: none;
  }
  .browse-category-btn {
    width: 100%;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0.78rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
  }
  .browse-category-btn:hover {
    background: rgba(255, 255, 255, 0.04);
  }
  .browse-category-btn svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 2.5;
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }
  .browse-category.is-open .browse-category-btn svg {
    transform: rotate(180deg);
  }
  .browse-category-list {
    display: none;
    max-height: 220px;
    overflow-y: auto;
    padding: 0.2rem 0 0.4rem;
  }
  .browse-category-list::-webkit-scrollbar {
    width: 4px;
  }
  .browse-category-list::-webkit-scrollbar-track {
    background: transparent;
  }
  .browse-category-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }
  .browse-category.is-open .browse-category-list {
    display: block;
  }
  .browse-item {
    display: block;
    padding: 0.42rem 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
  }
  .browse-item:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
  }
  .browse-loading {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  .empty-state {
    grid-column: 1 / -1;
    text-align: left;
    padding: 2.5rem 0.25rem;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(232, 238, 245, 0.1);
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 1.05rem;
    box-shadow: none;
  }
  .load-more {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
  }
  @media (max-width: 720px) {
    .recs-starter-pill__label[data-pill-label="full"] {
      display: none;
    }
    .recs-starter-pill__label[data-pill-label="short"] {
      display: inline;
    }
    header {
      grid-template-columns: 1fr auto;
      grid-template-areas:
        "brand actions"
        "search search";
      row-gap: 0.7rem;
      position: relative;
    }
    .menu-toggle {
      display: inline-flex;
      flex: 0 0 auto;
    }
    .masthead-search {
      max-width: none;
      width: 100%;
      margin: 0;
    }
    .header-actions {
      display: none;
      position: absolute;
      top: calc(100% + 0.75rem);
      left: clamp(1.25rem, 4vw, 3.5rem);
      right: clamp(1.25rem, 4vw, 3.5rem);
      padding: 1rem;
      border: 1px solid var(--card-border);
      border-radius: 12px;
      background: var(--card);
      flex-direction: column;
      gap: 0.9rem;
      align-items: stretch;
      z-index: 20;
      grid-area: unset;
    }
    .header-actions.is-open {
      display: flex;
    }
    header nav {
      flex-direction: column;
      gap: 0.85rem;
      align-items: stretch;
    }
    .nav-item {
      display: block;
    }
    .nav-browse-panel {
      position: static;
      width: 100%;
      margin-top: 0.55rem;
      border-radius: 14px;
      border: 1px solid var(--card-border);
    }
    .browse-panel {
      border-radius: 14px;
    }
    .auth-actions {
      justify-content: flex-start;
      flex-wrap: nowrap;
    }
    .catalog-filters {
      margin-left: 0;
      width: 100%;
      padding-right: 0;
      border-right: none;
      padding-bottom: 0.35rem;
      border-bottom: 1px solid rgba(232, 238, 245, 0.12);
    }
    .filter-dropdown-panel {
      width: 100%;
      min-width: 0;
      max-width: 100%;
    }
    .filter-dropdown[data-filter-dropdown="genre"] .filter-dropdown-panel {
      left: 0;
      right: 0;
    }
    header nav a {
      margin: 0;
      display: block;
    }
    .recs-header {
      align-items: flex-start;
    }
    .recs-header-title-row {
      justify-content: space-between;
      width: 100%;
      flex: 1 1 100%;
    }
    .catalog-header-row {
      align-items: flex-start;
    }
    .catalog-tools {
      flex-direction: column;
      align-items: stretch;
      gap: 0.85rem;
    }
    .catalog-filters {
      margin-right: 0;
      width: 100%;
    }
    .catalog-mode-toggle {
      margin-left: 0;
      width: 100%;
      justify-content: stretch;
      order: -1;
    }
    .catalog-mode-btn {
      flex: 1 1 0;
      text-align: center;
    }
    .catalog-count {
      align-self: flex-end;
    }
  }
  .new-week {
    padding: 1.25rem clamp(1.5rem, 4vw, 3rem) 0.25rem;
    display: grid;
    gap: 0.75rem;
  }
  .new-week h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
  }
  .new-week-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
  }
  .new-week-head h2 { margin: 0; font-size: 1.05rem; }
  .new-week-list {
    list-style: none;
    display: flex;
    gap: 0.75rem 1.25rem;
    overflow-x: auto;
    margin: 0;
    padding: 0 0 0.5rem;
  }
  .new-week-list a { color: inherit; white-space: nowrap; }
