/* ═══════════════════════════════════════════════════════════════════
   GLIDESLOPE LISTS — Threads-style multi-column feed viewer
   Follows glideslope.css / stylesheet.css design tokens
═══════════════════════════════════════════════════════════════════ */

/* ── Page Layout ── */
.gs-lists-page {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  min-height: calc(100vh - 200px);
}

/* ── Sidebar (desktop) / Top Bar (mobile) ── */
.gs-lists-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 2px solid #0f172a;
  background: #fff;
  position: sticky;
  top: 37px;
  z-index: 998;
}
.gs-lists-topbar__left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.gs-lists-topbar__title {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: #111;
}
.gs-lists-topbar__count {
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9ca3af;
  text-transform: uppercase;
}
.gs-lists-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Desktop: convert topbar into a thin left sidebar ── */
@media (min-width: 769px) {
  .gs-lists-page {
    display: flex;
    align-items: flex-start;
  }
  .gs-lists-topbar {
    position: sticky;
    top: 37px;
    align-self: flex-start;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 56px;
    min-height: calc(100vh - 37px);
    padding: 16px 0;
    border-bottom: none;
    border-right: 1px solid var(--color-border, #e0e0e0);
    background: #fafafa;
    gap: 0;
    z-index: 998;
    flex-shrink: 0;
  }
  .gs-lists-topbar__left {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
  }
  .gs-lists-topbar__title {
    font-size: 0.6rem;
    font-family: 'Courier New', monospace;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
  }
  .gs-lists-topbar__count {
    font-size: 0.58rem;
  }
  .gs-lists-topbar__right {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
  }

  /* View toggle stacks vertically */
  .gs-lists-view-toggle {
    flex-direction: column;
    background: transparent;
    padding: 0;
    gap: 4px;
    margin-bottom: 4px;
  }
  .gs-lists-view-btn {
    width: 34px;
    height: 30px;
    border-radius: 6px;
  }
  .gs-lists-view-btn.active {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
  }

  /* New List becomes icon-only on desktop sidebar */
  .gs-lists-new-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    margin-top: 4px;
  }
  .gs-lists-new-btn svg { flex-shrink: 0; }
  /* Hide the text label in sidebar */
  .gs-lists-new-btn__label { display: none; }

  /* Focus button sizing */
  .gs-lists-focus-btn {
    width: 34px;
    height: 34px;
  }

  /* Columns fill remaining width */
  .gs-lists-columns {
    flex: 1;
    min-width: 0;
  }
}

/* ── View Toggle (base) ── */
.gs-lists-view-toggle {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}
.gs-lists-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border: none;
  background: transparent;
  color: #9ca3af;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.gs-lists-view-btn:hover { color: #374151; }
.gs-lists-view-btn.active {
  background: #fff;
  color: #111;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ── New List Button ── */
.gs-lists-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.gs-lists-new-btn:hover { background: #1e293b; }
.gs-lists-new-btn:active { transform: scale(0.97); }
.gs-lists-new-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}
.gs-lists-new-btn--large {
  padding: 12px 65px;
  font-size: 0.9rem;
}

/* ── Columns Container ── */
.gs-lists-columns {
  display: flex;
  gap: 0;
  padding: 0;
  min-height: calc(100vh - 200px);
  width: 100%;
}
.gs-lists-columns[data-cols="1"] {
  max-width: 920px;
  margin: 0 auto;
}
.gs-lists-columns[data-cols="1"] .gs-list-column {
  flex: 1;
}
.gs-lists-columns[data-cols="1"] .gs-list-column__feed {
  max-height: none;
  overflow: visible;
}
.gs-lists-columns[data-cols="2"] .gs-list-column,
.gs-lists-columns[data-cols="3"] .gs-list-column {
  flex: 1;
  min-width: 0;
}

/* ── Individual Column ── */
.gs-list-column {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border, #e0e0e0);
  background: #fff;
}
.gs-list-column:last-child { border-right: none; }

.gs-list-column__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid var(--color-border, #e0e0e0);
  position: sticky;
  top: 0;
  z-index: 10;
}
.gs-list-column__header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.gs-list-column__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.gs-list-column__name {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gs-list-column__header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.gs-list-column__query {
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #9ca3af;
  text-transform: uppercase;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gs-list-column__edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #9ca3af;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s;
}
.gs-list-column__edit-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

/* ── Feed Area ── */
.gs-list-column__feed {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
/* Multi-column: constrain height for independent scroll */
.gs-lists-columns[data-cols="2"] .gs-list-column__feed,
.gs-lists-columns[data-cols="3"] .gs-list-column__feed {
  max-height: calc(100vh - 160px);
}
.gs-list-column__feed::-webkit-scrollbar { width: 4px; }
.gs-list-column__feed::-webkit-scrollbar-track { background: transparent; }
.gs-list-column__feed::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

/* Loading spinner */
.gs-list-column__loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}
.gs-list-column__spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #e5e7eb;
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: gs-list-spin 0.6s linear infinite;
}
@keyframes gs-list-spin { to { transform: rotate(360deg); } }

.gs-list-column__empty {
  text-align: center;
  padding: 48px 16px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ═══════════════════════════════════════════════════════════════════
   ARTICLE CARDS — Social-media-style feed items
═══════════════════════════════════════════════════════════════════ */
.gs-list-card {
  padding: 16px;
  margin: 0 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  transition: background 0.12s, box-shadow 0.12s;
}
.gs-list-card:hover {
  background: #fafbfc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.gs-list-card:last-child { margin-bottom: 0; }

/* ── Card Header (avatar + source + date) ── */
.gs-list-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.gs-list-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  color: #fff;
}
.gs-list-card__avatar--pulse {
  background: #0f172a !important;
  color: #22c55e !important;
}
.gs-list-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gs-list-card__source {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gs-list-card__date {
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #9ca3af;
}

/* Pulse badge */
.gs-list-card__pulse-badge {
  display: inline-block;
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}
.gs-list-card__pulse-badge.bullish { background: rgba(34,197,94,0.1); color: #15803d; }
.gs-list-card__pulse-badge.bearish { background: rgba(220,38,38,0.1); color: #dc2626; }
.gs-list-card__pulse-badge.neutral { background: rgba(156,163,175,0.12); color: #6b7280; }

/* ── Card Title ── */
.gs-list-card__title {
  display: block;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.12s;
}
.gs-list-card__title:hover {
  color: #374151;
  text-decoration: none;
}

/* ── Card Description ── */
.gs-list-card__desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #6b7280;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Card Image ── */
.gs-list-card__img-wrap {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid #f0f0f0;
}
.gs-list-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.2s;
}
.gs-list-card__img-wrap:hover .gs-list-card__img {
  transform: scale(1.02);
}

/* ── YouTube Embed ── */
.gs-list-card__video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  border: 1px solid #f0f0f0;
}
.gs-list-card__video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Sentiment Strip ── */
.gs-list-card__sentiment {
  margin-bottom: 10px;
}
.gs-list-card__sentiment-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.gs-list-card__sentiment-strip {
  position: relative;
  height: 4px;
  background: linear-gradient(to right,
    var(--sentiment-strong-bearish, #B71C1C),
    var(--sentiment-bearish, #C62828),
    var(--sentiment-pessimistic, #EF5350),
    var(--sentiment-neutral, #616161),
    var(--sentiment-optimistic, #66BB6A),
    var(--sentiment-bullish, #2E7D32),
    var(--sentiment-strong-bullish, #1B5E20)
  );
  border-radius: 2px;
}
.gs-list-card__sentiment-marker {
  position: absolute;
  top: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transform: translateX(-50%);
}

/* ── Card Actions ── */
.gs-list-card__actions {
  display: flex;
  gap: 8px;
}
.gs-list-card__action {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  transition: all 0.12s;
}
.gs-list-card__action:hover {
  background: #f3f4f6;
  text-decoration: none;
  border-color: #d1d5db;
}
.gs-list-card__action--secondary {
  color: #6b7280;
}
.gs-list-card__action--pulse {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
.gs-list-card__action--pulse:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff;
}

/* ── Bookmark button ── */
.gs-list-card__action--bookmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  margin-left: auto;
  color: #9ca3af;
  border-color: #e5e7eb;
  background: transparent;
  cursor: pointer;
}
.gs-list-card__action--bookmark:hover {
  color: #374151;
  border-color: #d1d5db;
  background: #f3f4f6;
}
.gs-list-card__action--bookmarked {
  color: #0f172a;
  background: #f0f4ff;
  border-color: #0f172a;
}
.gs-list-card__action--bookmarked:hover {
  background: #e8edf5;
}

/* ── Pulse card accent ── */
.gs-list-card--pulse {
  border-left: 3px solid #0f172a;
  background: #fafbfc;
}
.gs-list-card--pulse:hover {
  background: #f5f6f8;
}

/* ═══════════════════════════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════════════════════════ */
.gs-lists-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.gs-lists-empty__icon {
  margin-bottom: 20px;
  opacity: 0.6;
}
.gs-lists-empty h3 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
}
.gs-lists-empty p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 24px;
}
.gs-lists-empty__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}
.gs-lists-empty__chip {
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
}
.gs-lists-empty__chip:hover {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

/* ═══════════════════════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════════════════════ */
.gs-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.35);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.gs-modal-overlay.active { display: flex; }

.gs-modal {
  background: #fff;
  border-radius: 12px;
  width: 460px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  animation: gs-modal-in 0.2s ease;
}
@keyframes gs-modal-in {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.gs-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.gs-modal__header h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #111;
}
.gs-modal__close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.12s;
}
.gs-modal__close:hover { background: #f3f4f6; color: #374151; }

.gs-modal__body {
  padding: 20px;
}
.gs-modal__label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.gs-modal__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  color: #111;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  margin-bottom: 16px;
}
.gs-modal__input:focus { border-color: #0f172a; }
.gs-modal__input::placeholder { color: #9ca3af; }

.gs-modal__hint {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  color: #9ca3af;
  margin: -10px 0 16px;
  line-height: 1.4;
}
.gs-modal__hint code {
  font-family: 'Courier New', monospace;
  background: #f3f4f6;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #374151;
}

/* Color picker */
.gs-modal__colors {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.gs-modal__color-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.12s;
  position: relative;
}
.gs-modal__color-btn:hover { transform: scale(1.1); }
.gs-modal__color-btn.active {
  border-color: #111;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111;
}

/* Toggle switch */
.gs-modal__toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.gs-modal__switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.gs-modal__switch input { opacity: 0; width: 0; height: 0; }
.gs-modal__switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #d1d5db;
  border-radius: 22px;
  transition: background 0.2s;
}
.gs-modal__switch-slider:before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.gs-modal__switch input:checked + .gs-modal__switch-slider { background: #0f172a; }
.gs-modal__switch input:checked + .gs-modal__switch-slider:before { transform: translateX(18px); }

/* Footer */
.gs-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid #e5e7eb;
  background: #fafbfc;
  border-radius: 0 0 12px 12px;
}
.gs-modal__btn {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
  display: inline-flex;
  align-items: center;
}
.gs-modal__btn--primary {
  background: #0f172a;
  color: #fff;
}
.gs-modal__btn--primary:hover { background: #1e293b; }
.gs-modal__btn--primary:disabled { background: #94a3b8; cursor: not-allowed; }
.gs-modal__btn--secondary {
  background: transparent;
  color: #6b7280;
}
.gs-modal__btn--secondary:hover { background: #f3f4f6; }
.gs-modal__btn--danger {
  background: transparent;
  color: #dc2626;
  margin-right: auto;
}
.gs-modal__btn--danger:hover { background: rgba(220,38,38,0.06); }

/* ── Focus Mode Button ── */
.gs-lists-focus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e5e7eb;
  background: transparent;
  color: #9ca3af;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.gs-lists-focus-btn:hover { color: #374151; border-color: #d1d5db; background: #f9fafb; }
.gs-lists-focus-btn.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

/* ═══════════════════════════════════════════════════════════════════
   FOCUS MODE — hides site chrome, maximizes feed real estate
═══════════════════════════════════════════════════════════════════ */
body.gs-lists-focused .main-header,
body.gs-lists-focused .pulse-headline-strip,
body.gs-lists-focused nav.main-nav,
body.gs-lists-focused .gs3-ticker,
body.gs-lists-focused .gs-mobile-bar,
body.gs-lists-focused .gs-bottom-nav,
body.gs-lists-focused .keywords-widget-tickertape,
body.gs-lists-focused #gsAnalystWidget,
body.gs-lists-focused #note-widget-trigger,
body.gs-lists-focused #note-widget-panel {
  display: none !important;
}
body.gs-lists-focused {
  padding-top: 0 !important;
}
body.gs-lists-focused .gs-lists-topbar {
  top: 0;
}
@media (min-width: 769px) {
  body.gs-lists-focused .gs-lists-topbar {
    min-height: 100vh;
    border-top: 3px solid #0f172a;
  }
}
@media (max-width: 768px) {
  body.gs-lists-focused .gs-lists-topbar {
    border-top: 3px solid #0f172a;
    padding: 8px 16px;
  }
}
body.gs-lists-focused .gs-lists-topbar__title {
  font-size: 1rem;
}
body.gs-lists-focused .gs-lists-columns[data-cols="2"] .gs-list-column__feed,
body.gs-lists-focused .gs-lists-columns[data-cols="3"] .gs-list-column__feed {
  max-height: calc(100vh - 60px);
}
body.gs-lists-focused .gs-list-column__header {
  padding: 8px 12px;
}
body.gs-lists-focused .gs-list-column__name {
  font-size: 0.82rem;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Sticky topbar: sits below fixed breaking ticker ── */
  .gs-lists-topbar {
    position: sticky;
    top: 35px;
    z-index: 998;
    padding: 10px 12px;
  }
  .gs-lists-topbar__title { font-size: 1.1rem; }

  /* ── Horizontal tab strip for switching between lists ── */
  .gs-lists-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #fff;
    border-bottom: 2px solid #0f172a;
    position: sticky;
    top: 88px;
    z-index: 997;
    padding: 0;
  }
  .gs-lists-tabs::-webkit-scrollbar { display: none; }

  .gs-lists-tab {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
  }
  .gs-lists-tab:hover { color: #374151; }
  .gs-lists-tab.active {
    color: #111;
    border-bottom-color: #0f172a;
    font-weight: 700;
  }
  .gs-lists-tab__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* Show only the active list column on mobile */
  .gs-lists-columns {
    flex-direction: column !important;
  }
  .gs-lists-columns[data-cols="2"],
  .gs-lists-columns[data-cols="3"] {
    max-width: 100%;
  }
  .gs-list-column {
    border-right: none;
    display: none; /* hidden by default on mobile */
  }
  .gs-list-column.gs-list-column--active {
    display: flex; /* only show the selected tab */
  }
  .gs-list-column__feed {
    max-height: none !important;
    overflow: visible !important;
  }

  /* Hide multi-column toggle & focus on mobile */
  .gs-lists-view-toggle { display: none; }
  .gs-lists-focus-btn { display: none; }

  .gs-lists-page { padding-bottom: 56px; /* bottom nav space */ }
}

/* Tabs hidden on desktop */
@media (min-width: 769px) {
  .gs-lists-tabs { display: none; }
}

@media (min-width: 769px) and (max-width: 1100px) {
  /* On tablet, cap at 2 columns */
  .gs-lists-columns[data-cols="3"] .gs-list-column {
    flex: 1 1 50%;
  }
  .gs-lists-columns[data-cols="3"] .gs-list-column:nth-child(3) {
    flex-basis: 100%;
    border-right: none;
    border-top: 1px solid var(--color-border, #e0e0e0);
  }
}

/* ── Keyboard hint (mobile / non-sidebar only) ── */
@media (hover: hover) and (max-width: 768px) {
  .gs-lists-new-btn::after {
    content: 'N';
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    font-weight: 800;
    background: rgba(255,255,255,0.2);
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 6px;
    letter-spacing: 0.06em;
  }
  .gs-lists-new-btn:disabled::after { display: none; }
}
