﻿@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
  }

  body {
    padding-inline: 0 !important;
  }

  .content-shell,
  .workspace,
  .feed,
  .quick-filters,
  .style-view-row,
  .hours-theme-row {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
  }

  .view-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .view-inline .theme-mobile-btn {
    display: inline-flex !important;
  }
}
:root {
  --bg: #081019;
  --shell: #0c1a2f;
  --topbar-a: #0f2f56;
  --bg-mid: #0b1220;
  --topbar-b: #0f2144;
  --panel: #10223d;
  --line: #2b4266;
  --text: #e8f2ff;
  --muted: #9ab2d6;
  --accent: #33b0ff;
  --accent-2: #76dbff;
}

body[data-theme="sunset"] {
  --bg: #1a0f0d;
  --shell: #2b1713;
  --topbar-a: #5b2415;
  --bg-mid: #1f1311;
  --topbar-b: #3a1a16;
  --panel: #301d18;
  --line: #6a3a2b;
  --text: #ffece4;
  --muted: #e0b7a5;
  --accent: #ff8f4a;
  --accent-2: #ffc27f;
}

body[data-theme="mint"] {
  --bg: #071411;
  --shell: #0e2720;
  --topbar-a: #124236;
  --bg-mid: #0d1c18;
  --topbar-b: #113029;
  --panel: #15372e;
  --line: #2a5f50;
  --text: #e7fff7;
  --muted: #9dd3c3;
  --accent: #4ee4b1;
  --accent-2: #92ffd8;
}

body[data-theme="mono"] {
  --bg: #111214;
  --shell: #1a1b1f;
  --topbar-a: #272a31;
  --bg-mid: #15171b;
  --topbar-b: #20232a;
  --panel: #23262e;
  --line: #3b404b;
  --text: #f1f3f6;
  --muted: #b2b8c2;
  --accent: #9aa4b7;
  --accent-2: #d3dae6;
}

body[data-theme="dark"] {
  --bg: #06080d;
  --shell: #0b0f17;
  --topbar-a: #0d121c;
  --bg-mid: #090d15;
  --topbar-b: #0a0e16;
  --panel: #101725;
  --line: #1f2b40;
  --text: #f3f7ff;
  --muted: #96a8c6;
  --accent: #3a8bff;
  --accent-2: #6db4ff;
}
body[data-theme="white"] {
  --bg: #eef3fb;
  --shell: #f8fbff;
  --topbar-a: #ffffff;
  --bg-mid: #dde8f6;
  --topbar-b: #edf3fb;
  --panel: #ffffff;
  --line: #c9d8ea;
  --text: #101418;
  --muted: #475467;
  --accent: #1e63d6;
  --accent-2: #2f80ff;
}

body[data-theme="white"] .topbar,
body[data-theme="white"] .content-shell,
body[data-theme="white"] .headline-rail-panel,
body[data-theme="white"] .card,
body[data-theme="white"] .stat {
  background: #ffffff;
  border-color: #b7c9e5;
}

body[data-theme="white"] .card h2,
body[data-theme="white"] .headline-item,
body[data-theme="white"] .stat strong {
  color: #0b0f14;
}

body[data-theme="white"] .card p,
body[data-theme="white"] footer,
body[data-theme="white"] .stat span {
  color: #3d4d62;
}

body[data-theme="white"] .chip {
  background: #f3f7ff;
  border-color: #9fb9e2;
  color: #142236;
}

body[data-theme="white"] .chip.active {
  background: #1e63d6;
  border-color: #1e63d6;
  color: #ffffff;
}
.view-chip {
  width: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 7px 0;
}

.view-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  opacity: 0.95;
}

.view-grid {
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 6px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 10px 0 / 6px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 0 10px / 6px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 10px 10px / 6px 6px no-repeat;
}

.view-list {
  background:
    linear-gradient(currentColor, currentColor) 0 1px / 16px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 0 6px / 16px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 0 11px / 16px 3px no-repeat;
}

body[data-theme="white"] .pill.category {
  background: #edf4ff;
  border-color: #8eb0e5;
  color: #164082;
}

body[data-theme="white"] .pill.style {
  background: #e7f8f0;
  border-color: #8dd8b4;
  color: #0f5f3d;
}

body[data-theme="white"] .pill.model {
  background: #eef0ff;
  border-color: #c4c9f8;
  color: #3a4287;
}

body[data-theme="white"] .rail-head,
body[data-theme="white"] .links a {
  color: #1e63d6;
}

body[data-theme="white"] .headline-item:hover {
  background: #edf4ff;
}
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 14px;
  background: linear-gradient(155deg, var(--bg), var(--bg-mid) 50%, var(--bg));
  color: var(--text);
  font-family: "Heebo", sans-serif;
}

.mesh {
  position: fixed;
  inset: -20%;
  background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 22%, transparent) 0, transparent 36%), radial-gradient(circle at 80% 30%, color-mix(in srgb, var(--accent-2) 20%, transparent) 0, transparent 30%);
  filter: blur(50px);
  z-index: -1;
}

.topbar {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 74px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--topbar-a) 96%, white), color-mix(in srgb, var(--topbar-b) 96%, white));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 18px;
  padding: 10px 14px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 12%, transparent);
}

.hero-banner {
  position: relative;
  margin-top: 10px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  background: linear-gradient(130deg, color-mix(in srgb, var(--topbar-a) 92%, black), color-mix(in srgb, var(--topbar-b) 92%, black));
  min-height: 220px;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 16%, transparent);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 16%, transparent), color-mix(in srgb, var(--bg) 72%, transparent) 68%, color-mix(in srgb, var(--bg) 88%, black));
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-height: 220px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: 16px 18px 18px;
}

.hero-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 42%, transparent);
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.3vw, 1.55rem);
  font-weight: 900;
  text-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.hero-copy p {
  margin: 0;
  max-width: min(900px, 92%);
  font-size: 0.96rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--text) 90%, #ffffff);
  text-shadow: 0 3px 12px rgba(0,0,0,0.4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brand-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
}

.theme-menu {
  position: relative;
  z-index: 2;
}

.theme-menu-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 160ms ease, transform 160ms ease;
}

.theme-menu-btn:hover {
  opacity: 1;
  transform: scale(1.05);
}

.palette-glyph {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(#2f80ff 0 24%, #ff6a3d 24% 48%, #39c9a6 48% 72%, #8894aa 72% 100%);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bg) 75%, white), 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.theme-popover {
  position: absolute;
  top: 42px;
  left: 0;
  z-index: 12;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 12px;
  padding: 8px;
  backdrop-filter: blur(8px);
}

.theme-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.theme-chip {
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--topbar-b) 75%, black);
  color: var(--text);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.theme-chip.active {
  background: linear-gradient(130deg, color-mix(in srgb, var(--accent) 32%, transparent), color-mix(in srgb, var(--accent-2) 28%, transparent));
  border-color: var(--accent-2);
}
.theme-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid color-mix(in srgb, var(--text) 35%, transparent);
}

.icon-ocean { background: linear-gradient(145deg, #33b0ff, #0e5fe0); }
.icon-sunset { background: linear-gradient(145deg, #ff8f4a, #ff4e5d); }
.icon-mint { background: linear-gradient(145deg, #4ee4b1, #1cbe8d); }
.icon-mono { background: linear-gradient(145deg, #9aa4b7, #4e5665); }
.icon-dark { background: linear-gradient(145deg, #0f131c, #2b3a56); }
.icon-white { background: linear-gradient(145deg, #ffffff, #d6e4f5); }

.stats {
  display: flex;
  gap: 8px;
}

.stat {
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--topbar-b) 85%, black);
  padding: 8px 10px;
  min-width: 145px;
}

.stat span {
  color: var(--muted);
  font-size: 0.75rem;
}

.stat strong {
  display: block;
  margin-top: 2px;
  font-size: 0.87rem;
}

.content-shell {
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--shell) 88%, transparent);
  border: 1px solid var(--line);
}

.quick-filters {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.hours-theme-row {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
  justify-content: space-between;
}

.hours-row {
  flex: 1;
  direction: rtl;
  justify-content: flex-end;
}

.theme-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.theme-inline .theme-chip {
  width: 34px;
  height: 34px;
}

.theme-mobile-btn {
  display: none;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--panel) 72%, black);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.style-view-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.style-view-row #styleRow {
  flex: 1;
}

.view-inline {
  display: inline-flex;
  gap: 8px;
  flex: 0 0 auto;
  margin-inline-start: 8px;
}



#categoryRow,
#styleRow,
#hoursRow {
  justify-content: flex-end;
}

.breaking-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #4f0a0a, #8d1111);
  border: 1px solid #ff6b6b66;
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 8px 22px #6b000033;
}

.breaking-badge {
  background: #ff1f1f;
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
  box-shadow: 0 0 0 1px #ffffff33 inset;
}

.breaking-marquee {
  overflow: hidden;
  white-space: nowrap;
}

.breaking-track {
  display: inline-flex;
  width: max-content;
  animation: none;
  will-change: transform;
}

.breaking-line {
  display: inline-block;
  color: #fff0f0;
  font-weight: 700;
  font-size: 0.9rem;
  padding-inline-end: 48px;
}

@keyframes breaking-marquee {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}



.sports-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #0d274f, #13408a);
  border: 1px solid #64a4ff66;
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 8px 22px #00356b33;
}

.sports-badge {
  background: #1f67ff;
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
  box-shadow: 0 0 0 1px #ffffff33 inset;
}

.sports-marquee {
  overflow: hidden;
  white-space: nowrap;
}

.sports-track {
  display: inline-flex;
  width: max-content;
  animation: sports-marquee 180s linear infinite;
  will-change: transform;
}

.sports-strip:hover .sports-track {
  animation-play-state: paused;
}

.sports-line {
  display: inline-block;
  color: #e7f0ff;
  font-weight: 700;
  font-size: 0.88rem;
  padding-inline-end: 52px;
}

@keyframes sports-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

body[data-theme="white"] .sports-strip {
  background: linear-gradient(90deg, #1b4d9f, #2566c4);
  border-color: #2f74d6;
}

body[data-theme="white"] .breaking-strip {
  background: linear-gradient(90deg, #8f1010, #c81d1d);
  border-color: #c81d1d;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.filter-row::-webkit-scrollbar { height: 6px; }
.filter-row::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 99px;
}

.chip {
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  background: color-mix(in srgb, var(--panel) 72%, black);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.86rem;
  white-space: nowrap;
  cursor: pointer;
}

.chip.active {
  background: linear-gradient(130deg, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--accent-2) 30%, transparent));
  border-color: var(--accent-2);
}
.view-chip {
  width: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 7px 0;
}

.view-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  opacity: 0.95;
}

.view-grid {
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 6px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 10px 0 / 6px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 0 10px / 6px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 10px 10px / 6px 6px no-repeat;
}

.view-list {
  background:
    linear-gradient(currentColor, currentColor) 0 1px / 16px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 0 6px / 16px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 0 11px / 16px 3px no-repeat;
}

.workspace {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 12px;
  direction: ltr;
  align-items: start;
}

.sidebar-stack,
.headline-rail-panel,
.security-panel,
.feed {
  direction: rtl;
}

.sidebar-stack {
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
  min-height: 0;
  align-self: start;
}

.headline-rail-panel,
.security-panel {
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rail-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.9rem;
}

.security-head {
  color: #ff6b6b;
}

.sports-side-panel {
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, #4a2e73 8%), color-mix(in srgb, var(--panel) 94%, #2e1f4d 6%));
  border-color: color-mix(in srgb, #b79cff 45%, var(--line));
}

.sports-side-head {
  color: #ceb8ff;
}

.sports-side-panel .dot {
  background: #c7b3ff;
}

.sports-side-panel .security-item:hover {
  background: color-mix(in srgb, #8f6bff 16%, transparent);
}

body[data-theme="white"] .sports-side-panel {
  background: linear-gradient(180deg, #eff5ff, #e7f0ff);
  border-color: #9ec2ff;
}

.headline-rail {
  height: 420px;
  min-height: 420px;
  overflow: hidden;
}

.security-rail {
  height: 420px;
  overflow: hidden;
}

.headline-list,
.security-list {
  display: grid;
}

.headline-item,
.security-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 20%, var(--line));
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
}

.headline-item:hover,
.security-item:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.security-item.is-empty {
  color: var(--muted);
}

.security-time {
  color: #ff8b8b;
  font-weight: 800;
  min-width: 44px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-2);
  margin-top: 6px;
  flex: 0 0 auto;
}

.feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.feed.list-view {
  display: block;
}

.feed.list-view .card {
  margin-bottom: 8px;
  border-radius: 12px;
  padding: 8px 10px;
}

.feed.list-view .card:last-child {
  margin-bottom: 0;
}

.feed.list-view .list-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: start;
}

.feed.list-view .list-media img,
.feed.list-view .list-media .no-image {
  width: 72px;
  height: 72px;
  border-radius: 10px;
}

.feed.list-view .list-media img {
  object-fit: cover;
  margin-top: 0;
}

.feed.list-view .list-media .no-image {
  margin-top: 0;
  padding: 8px 6px;
  font-size: 0.7rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.feed.list-view .list-main .meta {
  margin-bottom: 4px;
}

.feed.list-view .card h2 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.feed.list-view .card p {
  min-height: 0;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.feed.list-view .card footer {
  margin-top: 4px;
}

.feed.list-view .card .links {
  margin-top: 6px;
}

.card {
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
}

.meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.pill {
  border-radius: 999px;
  font-size: 0.74rem;
  padding: 3px 9px;
  border: 1px solid transparent;
}

.pill.category {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent-2);
}

.pill.style {
  background: #22c55e22;
  border-color: #22c55e66;
  color: #8ef3b3;
}

.pill.model {
  background: #a78bfa22;
  border-color: #a78bfa66;
  color: #e0d5ff;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.35;
}

.card p {
  margin: 0;
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
  font-size: 0.95rem;
  min-height: 58px;
}

.card img {
  margin-top: 10px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
}

.no-image {
  margin-top: 10px;
  border: 1px dashed color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 10px;
  padding: 12px;
  color: var(--muted);
}

footer {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
}

.links {
  margin-top: 8px;
  display: flex;
  gap: 12px;
}

.links a {
  color: var(--accent-2);
  text-decoration: underline;
}

@media (max-width: 1200px) {
  body {
    padding: 0;
  }

  .topbar,
  .hero-banner,
  .content-shell {
    width: calc(100% - 14px);
    margin-inline: auto;
  }

  .topbar {
    margin-top: 6px;
  }

  .hero-banner {
    margin-top: 8px;
    border-radius: 14px;
  }

  .content-shell {
    margin: 8px auto 0;
    border-radius: 12px;
    padding: 10px 8px;
    border-left: 0;
    border-right: 0;
  }

  .quick-filters {
    gap: 8px;
    justify-items: center;
  }

  .hours-theme-row {
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
  }

  .theme-mobile-btn {
    display: inline-flex;
  }

  .theme-inline {
    display: none;
  }

  .theme-inline.open {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
    border-radius: 12px;
    background: color-mix(in srgb, var(--panel) 88%, transparent);
  }

  .style-view-row {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .view-inline {
    justify-content: center;
    margin-inline-start: 0;
  }

  .hours-row {
    flex: 1 1 100%;
    direction: rtl;
  }

  .filter-row {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  #categoryRow,
  #styleRow,
  #hoursRow {
    justify-content: flex-start;
  }

  .workspace {
    grid-template-columns: 1fr;
    direction: rtl;
  }

  .sidebar-stack {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .content-shell {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    padding: 8px 4px 12px;
    border-left: 0;
    border-right: 0;
  }

  .hero-banner {
    margin-top: 6px;
    border-radius: 10px;
    width: calc(100% - 8px);
    min-width: 0;
    margin-inline: auto;
  }

  .hero-banner,
  .hero-copy {
    min-height: 180px;
  }

  .hero-image {
    object-fit: cover;
    object-position: center 62%;
  }

  .hero-copy {
    align-content: center;
    justify-items: center;
    text-align: center;
    padding: 14px;
  }

  .hero-copy h2 {
    font-size: 1.08rem;
  }

  .hero-copy p {
    font-size: 0.88rem;
    color: #8fd8ff;
    background: rgba(8, 20, 36, 0.45);
    border: 1px solid rgba(143, 216, 255, 0.35);
    border-radius: 999px;
    padding: 4px 10px;
    -webkit-line-clamp: 2;
  }

  .quick-filters {
    gap: 6px;
  }

  .quick-filters,
  .workspace,
  .feed {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  .style-view-row {
    align-items: stretch;
  }

  .view-inline {
    width: 100%;
    justify-content: center;
    margin-inline-start: 0;
  }

  .view-inline .theme-mobile-btn {
    display: inline-flex !important;
    flex: 0 0 auto;
    margin-inline-end: 4px;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-2) 38%, transparent);
  }

  .theme-inline.open {
    width: 100%;
  }

  .feed {
    order: 1;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 8px;
  }

  .card {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
    padding: 10px;
  }

  .card h2,
  .card p,
  footer,
  .links {
    justify-content: center;
    text-align: center;
  }

  .sidebar-stack {
    display: none;
  }
}





































.sports-item .sports-line-item {
  direction: rtl;
  unicode-bidi: plaintext;
  display: inline-block;
  text-align: right;
}


.sports-line-item bdi {
  unicode-bidi: isolate;
}







.mobile-running-block {
  margin: 8px 0;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  overflow: hidden;
}

.mobile-running-head {
  padding: 8px 10px;
  text-align: center;
  font-weight: 800;
  color: var(--accent-2);
  border-bottom: 1px solid var(--line);
}

.mobile-running-rail {
  max-height: 220px;
  overflow: hidden;
}

.mobile-running-list {
  display: grid;
  animation: mobile-running-scroll 18s linear infinite;
}

.mobile-running-rail:hover .mobile-running-list {
  animation-play-state: paused;
}

.mobile-running-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 24%, var(--line));
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
}

@keyframes mobile-running-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}




.compact-panels-inline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  justify-items: stretch;
}

.compact-panels-inline .mobile-running-block {
  width: 100%;
  margin: 0;
}

.compact-panels-inline .mobile-running-block:first-child {
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, #173766 8%), color-mix(in srgb, var(--panel) 94%, #0b1f3a 6%));
  border-color: color-mix(in srgb, #63b6ff 45%, var(--line));
}

.compact-panels-inline .mobile-running-block:first-child .mobile-running-head {
  color: #8fcbff;
}

.mobile-sports-block {
  border-color: color-mix(in srgb, #b79cff 45%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, #4a2e73 8%), color-mix(in srgb, var(--panel) 94%, #2e1f4d 6%));
}

.mobile-sports-head {
  color: #ceb8ff;
}

@media (max-width: 760px) {
  .compact-panels-inline {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1201px) {
  .hours-theme-row,
  .style-view-row,
  .filter-row {
    justify-content: center;
  }

  .hours-theme-row,
  .style-view-row {
    flex-wrap: wrap;
  }

  .hours-row,
  .style-view-row #styleRow {
    flex: 0 1 auto;
  }
}















/* Mobile centering hard-fix (phones only) */
@media (max-width: 760px) {
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .hero-banner,
  .content-shell {
    width: calc(100% - 8px) !important;
    max-width: calc(100% - 8px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-banner {
    margin-top: 6px !important;
    border-radius: 10px !important;
  }

  .content-shell {
    margin-top: 0 !important;
    padding: 8px 6px 12px !important;
    border-radius: 12px !important;
  }

  .quick-filters,
  .workspace,
  .feed {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .feed {
    grid-template-columns: 1fr !important;
    justify-items: stretch !important;
  }

  .card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.chat-widget {
  position: fixed;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.chat-widget.pos-br {
  right: 14px;
  bottom: 14px;
}

.chat-widget.pos-bl {
  left: 14px;
  bottom: 14px;
  align-items: flex-start;
}

.chat-widget.pos-tr {
  right: 14px;
  top: 14px;
}

.chat-widget.pos-tl {
  left: 14px;
  top: 14px;
  align-items: flex-start;
}

.chat-toggle {
  min-width: 128px;
  border: 1px solid rgba(95, 165, 255, 0.65);
  background: linear-gradient(180deg, #0c2f61 0%, #071938 100%);
  color: #e8f2ff;
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(2, 8, 23, 0.45);
}

.chat-panel {
  width: min(340px, calc(100vw - 24px));
  height: min(460px, 62vh);
  border: 1px solid rgba(95, 165, 255, 0.35);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(7, 22, 46, 0.96), rgba(4, 12, 28, 0.96));
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-widget.is-collapsed .chat-panel {
  display: none;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(95, 165, 255, 0.2);
  color: #e6f0ff;
}

.chat-head-actions {
  display: flex;
  gap: 6px;
}

.chat-mini-btn {
  border: 1px solid rgba(95, 165, 255, 0.4);
  background: rgba(12, 36, 74, 0.8);
  color: #d9ebff;
  border-radius: 8px;
  width: 28px;
  height: 26px;
  cursor: pointer;
}

.chat-meta {
  font-size: 12px;
  color: #9fc2ff;
  padding: 8px 12px 2px;
}

.chat-identity {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
}

.chat-name-input {
  flex: 1;
  border: 1px solid rgba(95, 165, 255, 0.3);
  background: rgba(4, 12, 26, 0.7);
  color: #eaf3ff;
  border-radius: 10px;
  padding: 8px 10px;
}

.chat-name-save {
  border: 1px solid rgba(95, 165, 255, 0.45);
  background: rgba(12, 36, 74, 0.85);
  color: #dff0ff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.chat-corners {
  display: flex;
  gap: 6px;
  padding: 0 12px 8px;
}

.chat-corner-btn {
  border: 1px solid rgba(95, 165, 255, 0.35);
  background: rgba(12, 31, 58, 0.7);
  color: #cae4ff;
  border-radius: 8px;
  width: 28px;
  height: 26px;
  cursor: pointer;
}

.chat-corner-btn.active {
  border-color: rgba(120, 215, 170, 0.8);
  color: #e5fff4;
  background: rgba(16, 72, 53, 0.7);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-row {
  border: 1px solid rgba(95, 165, 255, 0.22);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(8, 20, 44, 0.55);
}

.chat-user {
  font-size: 12px;
  color: #9ad0ff;
  margin-bottom: 3px;
  font-weight: 700;
}

.chat-text {
  color: #f3f8ff;
  line-height: 1.45;
  word-break: break-word;
}

.chat-time {
  margin-top: 5px;
  font-size: 11px;
  color: #8fb2ea;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(95, 165, 255, 0.2);
}

.chat-input {
  flex: 1;
  border: 1px solid rgba(95, 165, 255, 0.3);
  background: rgba(4, 12, 26, 0.7);
  color: #eaf3ff;
  border-radius: 10px;
  padding: 9px 10px;
}

.chat-send {
  border: 1px solid rgba(101, 209, 163, 0.65);
  background: linear-gradient(180deg, #167154 0%, #0d513c 100%);
  color: #eafff6;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 760px) {
  .chat-widget.pos-br,
  .chat-widget.pos-tr {
    right: 8px;
  }

  .chat-widget.pos-bl,
  .chat-widget.pos-tl {
    left: 8px;
  }

  .chat-widget.pos-br,
  .chat-widget.pos-bl {
    bottom: 8px;
  }

  .chat-widget.pos-tr,
  .chat-widget.pos-tl {
    top: 8px;
  }

  .chat-panel {
    width: min(340px, calc(100vw - 16px));
  }
}


/* Chat enhancements */
.chat-users {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 12px 8px;
  border-bottom: 1px solid rgba(95, 165, 255, 0.15);
}

.chat-user-chip {
  border: 1px solid rgba(95, 165, 255, 0.38);
  background: rgba(8, 22, 42, 0.55);
  color: #cfe4ff;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.chat-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-color-input {
  width: 34px;
  height: 28px;
  border: 1px solid rgba(95, 165, 255, 0.45);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.chat-emoji-toggle {
  border: 1px solid rgba(95, 165, 255, 0.45);
  background: rgba(10, 31, 61, 0.8);
  color: #e1efff;
  border-radius: 8px;
  width: 34px;
  height: 28px;
  cursor: pointer;
}

.chat-emoji-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid rgba(95, 165, 255, 0.24);
  background: rgba(6, 16, 35, 0.8);
  border-radius: 10px;
  padding: 8px;
  max-height: 108px;
  overflow-y: auto;
}

.chat-emoji-btn {
  border: 1px solid rgba(95, 165, 255, 0.28);
  background: rgba(13, 33, 64, 0.7);
  color: #ecf5ff;
  border-radius: 8px;
  width: 30px;
  height: 28px;
  line-height: 1;
  cursor: pointer;
}

.chat-compose {
  display: flex;
  gap: 8px;
}

:root {
  --a11y-font-scale: 1;
}

body {
  font-size: calc(16px * var(--a11y-font-scale));
}

body.a11y-contrast {
  filter: contrast(1.22) saturate(1.06);
}

body.a11y-grayscale {
  filter: grayscale(100%);
}

body.a11y-links a {
  text-decoration: underline !important;
  text-underline-offset: 2px;
  font-weight: 700;
}

body.a11y-readable,
body.a11y-readable * {
  font-family: Arial, "Heebo", sans-serif !important;
}

.accessibility-widget {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 3100;
}

.a11y-fab {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--topbar-a) 90%, #00142e), color-mix(in srgb, var(--topbar-b) 90%, #000f24));
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.a11y-panel {
  width: min(320px, calc(100vw - 24px));
  margin-bottom: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.a11y-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.a11y-head strong {
  justify-self: center;
  font-size: 1.08rem;
}

.a11y-close {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}

.a11y-actions {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.a11y-toggle {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--topbar-b) 80%, black);
  color: var(--text);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.a11y-dot {
  width: 20px;
  height: 20px;
  border: 2px solid var(--muted);
  border-radius: 999px;
}

.a11y-toggle.active {
  border-color: var(--accent-2);
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}

.a11y-toggle.active .a11y-dot {
  border-color: var(--accent-2);
  background: var(--accent-2);
}

.a11y-font-size {
  margin: 2px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.a11y-size-label {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.a11y-size-row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 8px;
  align-items: center;
}

.a11y-size-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 40px;
  background: color-mix(in srgb, var(--topbar-b) 78%, black);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.a11y-size-value {
  text-align: center;
  font-weight: 800;
}

.a11y-reset {
  margin: 0 10px 12px;
  width: calc(100% - 20px);
  border: 1px solid #ff8a8a66;
  border-radius: 12px;
  background: #3a0f14;
  color: #ff9a9a;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 760px) {
  .accessibility-widget {
    left: 8px;
    bottom: 8px;
  }

  .a11y-panel {
    width: min(320px, calc(100vw - 16px));
  }
}

body.a11y-contrast.a11y-grayscale {
  filter: grayscale(100%) contrast(1.22) saturate(1.06);
}


/* Chat layout polish */
.chat-panel {
  height: min(540px, 70vh);
}

.chat-identity {
  display: grid;
  grid-template-columns: 1fr 42px auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.chat-name-input {
  min-width: 0;
}

.chat-name-save {
  white-space: nowrap;
}

.chat-users {
  max-height: 56px;
  overflow-y: auto;
}

.chat-meta {
  margin: 8px 12px 6px;
  padding: 10px 12px;
  border: 1px solid rgba(95, 165, 255, 0.28);
  border-radius: 12px;
  background: rgba(7, 25, 52, 0.68);
  color: #c6deff;
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.chat-messages {
  flex: 1 1 auto;
  min-height: 220px;
  margin: 0 10px;
  border: 1px solid rgba(95, 165, 255, 0.14);
  border-radius: 12px;
  background: rgba(5, 16, 34, 0.45);
}

.chat-form {
  padding: 8px 10px 10px;
  gap: 8px;
}

.chat-emoji-panel {
  order: 1;
}

.chat-compose {
  order: 2;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 8px;
}

.chat-emoji-toggle {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.chat-input {
  min-width: 0;
  height: 36px;
}

.chat-send {
  height: 36px;
  padding: 0 14px;
}

@media (max-width: 760px) {
  .chat-panel {
    height: min(560px, 74vh);
  }

  .chat-identity {
    grid-template-columns: 1fr 40px auto;
  }
}

/* Accessibility fixed anchor + no layout width shifts */
.accessibility-widget {
  left: 14px !important;
  bottom: 14px !important;
  right: auto !important;
  top: auto !important;
  width: 48px;
  min-width: 48px;
  pointer-events: none;
}

.accessibility-widget .a11y-fab,
.accessibility-widget .a11y-panel {
  pointer-events: auto;
}

.a11y-fab {
  position: relative;
  z-index: 2;
}

.a11y-panel {
  position: absolute;
  left: 0;
  bottom: 58px;
  margin: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden !important;
}

/* Keep text scaling without changing layout width */
body {
  font-size: 16px;
}

:where(.hero-copy p, .card p, .card h2, .chip, .headline-item, .security-item, .chat-text, .chat-user, .chat-time, .links a, .a11y-toggle span, .a11y-size-label, .a11y-size-value) {
  font-size: calc(1em * var(--a11y-font-scale));
}

@media (max-width: 760px) {
  .accessibility-widget {
    left: 8px !important;
    bottom: 8px !important;
  }

  .a11y-panel {
    left: 0;
    bottom: 56px;
    width: min(320px, calc(100vw - 16px));
  }
}

/* Accessibility stability for floating widgets */
body.a11y-readable .a11y-fab,
body.a11y-readable .chat-toggle,
body.a11y-readable .chat-mini-btn,
body.a11y-readable .chat-corner-btn {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
}

body.a11y-contrast .chat-widget,
body.a11y-grayscale .chat-widget,
body.a11y-readable .chat-widget,
body.a11y-contrast .accessibility-widget,
body.a11y-grayscale .accessibility-widget,
body.a11y-readable .accessibility-widget {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Chat send row full width without smile icon */
.chat-compose {
  grid-template-columns: 1fr auto !important;
}

/* Restore emoji picker in send row */
.chat-compose {
  grid-template-columns: 1fr 34px auto !important;
}

.chat-emoji-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 0.95rem;
}

.chat-emoji-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 118px;
  overflow-y: auto;
}

/* Accessibility: keep layout and floating widgets stable */
body.a11y-contrast,
body.a11y-grayscale,
body.a11y-contrast.a11y-grayscale {
  filter: none !important;
}

body.a11y-contrast {
  --line: #6ea9ff;
  --accent: #56b7ff;
  --accent-2: #9fdfff;
}

body.a11y-grayscale {
  --accent: #9da7b8;
  --accent-2: #c8ced8;
  --topbar-a: #2b3440;
  --topbar-b: #202833;
}

body.a11y-grayscale img,
body.a11y-grayscale .theme-icon,
body.a11y-grayscale .palette-glyph {
  filter: grayscale(100%);
}

body.a11y-contrast .chat-widget,
body.a11y-grayscale .chat-widget,
body.a11y-contrast .accessibility-widget,
body.a11y-grayscale .accessibility-widget {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Chat UX fix: send row fixed at bottom + emoji popup menu */
.chat-panel > .chat-users { order: 1; }
.chat-panel > .chat-form { order: 2; }
.chat-panel > .chat-messages { order: 3; }
.chat-panel > .chat-meta { order: 4; }

.chat-panel > .chat-form {
  position: relative;
  border-top: 0;
  border-bottom: 1px solid rgba(95, 165, 255, 0.2);
}

.chat-panel > .chat-form .chat-compose {
  grid-template-columns: 1fr 34px auto !important;
}

.chat-panel > .chat-form .chat-emoji-panel[hidden] {
  display: none !important;
}

.chat-panel > .chat-form .chat-emoji-panel {
  position: absolute;
  inset-inline-end: 52px;
  top: -6px;
  transform: translateY(-100%);
  width: 230px;
  max-height: 140px;
  overflow-y: auto;
  z-index: 35;
  box-shadow: 0 14px 28px rgba(2, 10, 24, 0.55);
}


/* Final chat behavior: compose row fixed at bottom, emoji popup above it */
.chat-panel > .chat-users { order: 1 !important; }
.chat-panel > .chat-messages { order: 2 !important; }
.chat-panel > .chat-meta { order: 3 !important; }
.chat-panel > .chat-form { order: 4 !important; }

.chat-panel > .chat-form {
  position: sticky !important;
  bottom: 0 !important;
  border-top: 1px solid rgba(95, 165, 255, 0.2) !important;
  border-bottom: 0 !important;
  background: linear-gradient(180deg, rgba(7, 22, 46, 0.96), rgba(4, 12, 28, 0.96)) !important;
  z-index: 22 !important;
}

.chat-panel > .chat-form .chat-emoji-panel {
  position: absolute !important;
  inset-inline-end: 52px;
  bottom: calc(100% + 6px) !important;
  top: auto !important;
  transform: none !important;
  width: 230px;
  max-height: 140px;
  overflow-y: auto;
  z-index: 35;
}

.chat-panel > .chat-form .chat-emoji-panel[hidden] {
  display: none !important;
}

/* Connected users: horizontal scroll only, no wrap */
.chat-users {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap;
  gap: 6px;
}

.chat-user-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Chat layout stability + themed scrollbar */
:root {
  --chat-scroll-thumb: #4ea1ff;
  --chat-scroll-track: rgba(13, 33, 64, 0.35);
}

body[data-theme="ocean"] { --chat-scroll-thumb: #4ea1ff; }
body[data-theme="sunset"] { --chat-scroll-thumb: #ff7a59; }
body[data-theme="mint"] { --chat-scroll-thumb: #37c9a3; }
body[data-theme="mono"] { --chat-scroll-thumb: #8ea0b8; }
body[data-theme="dark"] { --chat-scroll-thumb: #7ea8ff; }
body[data-theme="white"] { --chat-scroll-thumb: #2d7bff; --chat-scroll-track: rgba(120, 145, 180, 0.24); }

.chat-panel {
  min-height: 0;
}

.chat-users,
.chat-meta,
.chat-form {
  flex-shrink: 0;
}

.chat-messages {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--chat-scroll-thumb) var(--chat-scroll-track);
}

.chat-messages::-webkit-scrollbar {
  width: 7px;
}

.chat-messages::-webkit-scrollbar-track {
  background: var(--chat-scroll-track);
  border-radius: 999px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, color-mix(in srgb, var(--chat-scroll-thumb) 78%, #ffffff 22%), var(--chat-scroll-thumb));
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--chat-scroll-thumb) 64%, #ffffff 36%), var(--chat-scroll-thumb));
}

/* Final filters alignment: mobile + tablet only (keep desktop untouched) */
@media (max-width: 1200px) {
  .quick-filters {
    width: 100% !important;
    display: grid !important;
    gap: 8px !important;
    justify-items: stretch !important;
  }

  .hours-theme-row,
  .style-view-row,
  #hoursRow,
  #categoryRow,
  #styleRow,
  #viewRow,
  .view-inline,
  #themeRow,
  #themeRow.open {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    scrollbar-color: color-mix(in srgb, var(--accent) 68%, #ffffff 20%) color-mix(in srgb, var(--panel) 72%, transparent) !important;
    padding-bottom: 4px !important;
  }

  #hoursRow .chip,
  #categoryRow .chip,
  #styleRow .chip,
  #viewRow .chip,
  #viewRow .theme-mobile-btn,
  #themeRow .theme-chip,
  .view-inline .chip,
  .view-inline .theme-mobile-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .hours-theme-row::-webkit-scrollbar,
  .style-view-row::-webkit-scrollbar,
  #hoursRow::-webkit-scrollbar,
  #categoryRow::-webkit-scrollbar,
  #styleRow::-webkit-scrollbar,
  #viewRow::-webkit-scrollbar,
  #themeRow::-webkit-scrollbar,
  #themeRow.open::-webkit-scrollbar,
  .view-inline::-webkit-scrollbar {
    height: 6px;
  }

  .hours-theme-row::-webkit-scrollbar-track,
  .style-view-row::-webkit-scrollbar-track,
  #hoursRow::-webkit-scrollbar-track,
  #categoryRow::-webkit-scrollbar-track,
  #styleRow::-webkit-scrollbar-track,
  #viewRow::-webkit-scrollbar-track,
  #themeRow::-webkit-scrollbar-track,
  #themeRow.open::-webkit-scrollbar-track,
  .view-inline::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--panel) 76%, transparent);
    border-radius: 999px;
  }

  .hours-theme-row::-webkit-scrollbar-thumb,
  .style-view-row::-webkit-scrollbar-thumb,
  #hoursRow::-webkit-scrollbar-thumb,
  #categoryRow::-webkit-scrollbar-thumb,
  #styleRow::-webkit-scrollbar-thumb,
  #viewRow::-webkit-scrollbar-thumb,
  #themeRow::-webkit-scrollbar-thumb,
  #themeRow.open::-webkit-scrollbar-thumb,
  .view-inline::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 60%, #ffffff 14%), color-mix(in srgb, var(--accent) 75%, transparent));
    border-radius: 999px;
  }
}

/* Mobile/tablet theme row behavior: hidden by default, open from row 4 button */
@media (max-width: 1200px) {
  #themeRow {
    display: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
  }

  #themeRow.open {
    display: flex !important;
  }

  #themeRow .theme-chip {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  #themeRow::-webkit-scrollbar,
  #themeRow.open::-webkit-scrollbar {
    height: 6px;
  }

  #themeRow::-webkit-scrollbar-track,
  #themeRow.open::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--panel) 76%, transparent);
    border-radius: 999px;
  }

  #themeRow::-webkit-scrollbar-thumb,
  #themeRow.open::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 60%, #ffffff 14%), color-mix(in srgb, var(--accent) 75%, transparent));
    border-radius: 999px;
  }

  #viewRow .theme-mobile-btn,
  .view-inline .theme-mobile-btn {
    display: inline-flex !important;
    flex: 0 0 auto !important;
  }
}

/* Mobile/tablet: category row starts from right (RTL) so 'הכל' appears first */
@media (max-width: 1200px) {
  #categoryRow {
    direction: rtl !important;
    justify-content: flex-start !important;
  }
}
