:root {
  --bg: #ecf1f7;
  --bg-deep: #dce7f3;
  --ink: #0f1b2d;
  --ink-soft: #4f627a;
  --card: rgba(255, 255, 255, 0.78);
  --card-strong: #ffffff;
  --line: rgba(59, 84, 112, 0.22);
  --line-strong: rgba(36, 61, 88, 0.35);
  --brand: #007f96;
  --brand-2: #0496c7;
  --hot: #ec6f10;
  --mint: #0a8f7a;
  --shadow: 0 16px 48px rgba(19, 40, 67, 0.12);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-sm: 10px;
  --page-max: 1680px;
  --page-gutter: clamp(14px, 4vw, 48px);
  --sidebar-width: clamp(280px, 27vw, 420px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0f16;
  --bg-deep: #060a10;
  --ink: rgba(245, 250, 255, 0.94);
  --ink-soft: rgba(180, 200, 220, 0.78);
  --card: rgba(18, 28, 42, 0.65);
  --card-strong: rgba(16, 26, 40, 0.88);
  --line: rgba(100, 140, 180, 0.15);
  --line-strong: rgba(100, 140, 180, 0.28);
  --brand: #3dd6e8;
  --brand-2: #6be4f4;
  --hot: #ff9d4d;
  --mint: #4ecdc4;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] body {
  background: radial-gradient(ellipse at 20% 0%, rgba(61, 214, 232, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 5%, rgba(255, 157, 77, 0.06) 0%, transparent 45%),
    linear-gradient(165deg, #0c1018 0%, #0a1220 50%, #080e18 100%);
}

html[data-theme="dark"] .grid-mask {
  background-image: linear-gradient(rgba(100, 160, 220, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 160, 220, 0.04) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 8%, black 15%, transparent 85%);
}

html[data-theme="dark"] .glow-a {
  background: rgba(61, 214, 232, 0.18);
}

html[data-theme="dark"] .glow-b {
  background: rgba(255, 157, 77, 0.12);
}

html[data-theme="dark"] .brand-mark {
  background: rgba(16, 28, 44, 0.8);
  border-color: rgba(100, 160, 220, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Dark mode buttons - glassmorphism style */
html[data-theme="dark"] .ghost-btn,
html[data-theme="dark"] .chip-btn,
html[data-theme="dark"] .filter,
html[data-theme="dark"] .view-btn,
html[data-theme="dark"] .action-btn,
html[data-theme="dark"] .action-link {
  background: rgba(30, 50, 75, 0.5);
  border-color: rgba(100, 160, 220, 0.18);
  color: rgba(200, 220, 240, 0.9);
  backdrop-filter: blur(8px);
}

html[data-theme="dark"] .ghost-btn:hover,
html[data-theme="dark"] .chip-btn:hover,
html[data-theme="dark"] .filter:hover,
html[data-theme="dark"] .view-btn:hover,
html[data-theme="dark"] .action-btn:hover,
html[data-theme="dark"] .action-link:hover {
  background: rgba(40, 65, 95, 0.6);
  border-color: rgba(100, 160, 220, 0.3);
}

html[data-theme="dark"] .primary-btn {
  background: linear-gradient(135deg, #1a8a9a 0%, #2cb5c5 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(44, 181, 197, 0.25);
}

html[data-theme="dark"] .filter.active,
html[data-theme="dark"] .view-btn.active {
  background: linear-gradient(135deg, #1a5a7a 0%, #2080a0 100%);
  border-color: rgba(61, 214, 232, 0.3);
  color: #ffffff;
}

html[data-theme="dark"] .chip-btn.active {
  background: rgba(61, 214, 232, 0.15);
  border-color: rgba(61, 214, 232, 0.35);
  color: #6be4f4;
}

html[data-theme="dark"] .nav-dropdown-menu {
  border-color: rgba(100, 160, 220, 0.15);
  background: rgba(16, 28, 44, 0.95);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}

html[data-theme="dark"] .nav-dropdown-menu a {
  border-color: rgba(100, 160, 220, 0.1);
  background: rgba(25, 40, 60, 0.6);
  color: rgba(220, 235, 250, 0.9);
}

html[data-theme="dark"] .nav-dropdown-menu a:hover {
  background: rgba(35, 55, 80, 0.7);
  border-color: rgba(100, 160, 220, 0.2);
}

html[data-theme="dark"] .nav-dropdown-sep {
  background: rgba(100, 160, 220, 0.1);
}

html[data-theme="dark"] .search-box input {
  background: rgba(18, 32, 50, 0.8);
  border-color: rgba(100, 160, 220, 0.15);
  color: rgba(230, 240, 250, 0.95);
}

html[data-theme="dark"] .search-box input::placeholder {
  color: rgba(150, 180, 210, 0.5);
}

html[data-theme="dark"] .privacy-dialog,
html[data-theme="dark"] .privacy-panel {
  border-color: rgba(100, 160, 220, 0.15);
  background: rgba(14, 24, 38, 0.95);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .privacy-row,
html[data-theme="dark"] .privacy-close-btn {
  background: rgba(22, 36, 55, 0.7);
  border-color: rgba(100, 160, 220, 0.12);
  color: rgba(220, 235, 250, 0.88);
}

html[data-theme="dark"] .mini-vote-card {
  background: rgba(22, 36, 55, 0.65);
  border-color: rgba(100, 160, 220, 0.15);
}

html[data-theme="dark"] .mini-vote-card strong {
  color: rgba(160, 190, 220, 0.85);
}

html[data-theme="dark"] .mini-vote-card span {
  color: rgba(210, 225, 240, 0.9);
}

html[data-theme="dark"] .mini-vote-card em {
  color: rgba(140, 170, 200, 0.7);
}

html[data-theme="dark"] .topic-meta {
  color: rgba(160, 190, 220, 0.75);
}

html[data-theme="dark"] .topic-why {
  color: rgba(200, 220, 240, 0.85);
}

html[data-theme="dark"] .score-badge {
  background: rgba(61, 214, 232, 0.12);
  color: rgba(130, 230, 245, 0.95);
}

html[data-theme="dark"] .category-badge {
  background: rgba(100, 160, 255, 0.1);
  color: rgba(160, 200, 255, 0.9);
}

html[data-theme="dark"] #nowSignalScore {
  background: rgba(255, 157, 77, 0.12);
  color: rgba(255, 190, 130, 0.95);
}

html[data-theme="dark"] #nowSignalSource {
  background: rgba(78, 205, 196, 0.12);
  color: rgba(130, 230, 220, 0.95);
}

html[data-theme="dark"] .eyebrow {
  color: rgba(100, 180, 200, 0.8);
}

html[data-theme="dark"] .signal-label {
  color: rgba(120, 180, 200, 0.75);
}

html[data-theme="dark"] .metrics h2 {
  color: rgba(140, 180, 210, 0.8);
}

html[data-theme="dark"] .search-box span {
  color: rgba(130, 170, 200, 0.7);
}

html[data-theme="dark"] .privacy-head p {
  color: rgba(150, 180, 210, 0.75);
}

html[data-theme="dark"] .privacy-status {
  color: rgba(140, 175, 205, 0.7);
}



* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  min-height: 100vh;
  background: linear-gradient(160deg, #f4f8fd 0%, #e9f1fb 48%, #e4eef9 100%);
  position: relative;
  overflow-x: hidden;
}

.grid-mask {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(21, 51, 78, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 51, 78, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 16%, black 16%, transparent 90%);
}

.glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(56px);
  z-index: -1;
  opacity: 0.45;
}

.glow-a {
  width: 380px;
  height: 380px;
  background: rgba(4, 150, 199, 0.35);
  top: -120px;
  right: -90px;
}

.glow-b {
  width: 420px;
  height: 420px;
  background: rgba(236, 111, 16, 0.22);
  bottom: -130px;
  left: -120px;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.site-header {
  padding-block: 24px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(36, 61, 88, 0.2);
  box-shadow: 0 12px 24px rgba(8, 29, 52, 0.12);
  backdrop-filter: blur(8px);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 19px;
  border: 1.5px solid rgba(10, 167, 182, 0.34);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transform: scale(0.9);
}

.brand-mark::before {
  animation: brandPulse 2.35s ease-out infinite;
}

.brand-mark::after {
  animation: brandPulse 2.35s ease-out infinite 0.85s;
}

.brand-icon-img {
  width: 46px;
  height: 46px;
  display: block;
  border-radius: 14px;
  animation: iconFloat 2.9s ease-in-out infinite;
}

.brand-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.header-actions .ghost-btn,
.header-actions .primary-btn,
.header-actions .nav-dropdown-btn {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-btn {
  gap: 6px;
}

.nav-caret {
  font-size: 0.82em;
  opacity: 0.72;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(36, 61, 88, 0.22);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 60px rgba(8, 29, 52, 0.18);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 6px;
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 30;
}

.nav-dropdown-menu[hidden] {
  display: none !important;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(36, 61, 88, 0.14);
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.74);
  color: #16314e;
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.nav-dropdown-menu a:hover {
  border-color: rgba(36, 61, 88, 0.26);
  transform: translateY(-1px);
}

.nav-dropdown-sep {
  height: 1px;
  background: rgba(36, 61, 88, 0.16);
  margin: 4px 0;
  border-radius: 999px;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

button {
  font-family: "Sora", sans-serif;
}

.ghost-btn,
.primary-btn,
.chip-btn,
.filter,
.view-btn,
.action-btn,
.action-link {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.2s ease, background 0.2s ease;
}

.ghost-btn,
.primary-btn {
  padding: 8px 12px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.primary-btn {
  color: #f7fdff;
  border-color: transparent;
  background: linear-gradient(130deg, #0e243e, #115f84);
}

.ghost-btn:hover,
.primary-btn:hover,
.chip-btn:hover,
.filter:hover,
.view-btn:hover,
.action-btn:hover,
.action-link:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
}

.hero-panel > div,
.signal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-panel > div {
  padding: 20px 20px 18px;
}

.eyebrow {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: #2d5878;
  text-transform: uppercase;
}

.hero-panel h1,
.hero-panel h2 {
  margin: 9px 0 0;
  font-family: "Sora", sans-serif;
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-size: clamp(1.32rem, 3.4vw, 2rem);
  max-width: 19ch;
}

.hero-copy {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 58ch;
}

.hero-tools {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  padding: 7px 11px;
}

.chip-btn.active {
  background: rgba(0, 127, 150, 0.12);
  border-color: rgba(0, 127, 150, 0.4);
  color: #005b6c;
}

.signal-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.signal-label {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: #49718f;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.signal-card h3 {
  margin: 10px 0 0;
  font-family: "Sora", sans-serif;
  line-height: 1.25;
  font-size: 1.06rem;
}

.signal-meta {
  margin-top: 11px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.signal-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.76rem;
  font-family: "Sora", sans-serif;
}

#nowSignalScore {
  background: rgba(236, 111, 16, 0.12);
  color: #a3480a;
}

#nowSignalSource {
  background: rgba(10, 143, 122, 0.13);
  color: #09614f;
}

.signal-foot {
  margin: 14px 0 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.signal-vote-mini {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.mini-vote-card {
  width: 100%;
  border: 1px solid rgba(36, 61, 88, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  padding: 8px 9px;
  text-align: left;
  cursor: pointer;
}

.mini-vote-card strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #274764;
}

.mini-vote-card span {
  display: block;
  margin-top: 5px;
  font-size: 0.83rem;
  color: #2e4b67;
  line-height: 1.3;
}

.mini-vote-card em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.75rem;
  color: #5a738d;
}

.metrics {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics article {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

.metrics h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5e738e;
}

.metrics p {
  margin: 8px 0 0;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.main-grid {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  align-items: start;
  grid-template-columns: minmax(0, var(--sidebar-width)) minmax(0, 1fr);
  grid-template-areas:
    "controls list"
    "ads list";
}

.main-grid .controls {
  grid-area: controls;
  margin-top: 0;
}

.main-grid .list-wrap {
  grid-area: list;
  margin-top: 0;
}

.main-grid .ad-rail {
  grid-area: ads;
  display: grid;
  gap: 12px;
  align-content: start;
  align-self: start;
}

.main-grid .ad-rail .ad-slot,
.main-grid .ad-rail .privacy-panel {
  margin-top: 0;
}

.controls {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow);
}

.main-grid .ad-rail,
.main-grid .ad-rail .ad-slot,
.main-grid .ad-rail .privacy-panel,
.main-grid .list-wrap,
.controls,
.metrics article {
  width: 100%;
}

.controls-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filters,
.view-switch {
  display: flex;
  gap: 8px;
}

.filters {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 4px;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter,
.view-btn {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 7px 10px;
}

.filter {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (min-width: 941px) {
  .controls-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 10px;
    row-gap: 8px;
  }

  .filters {
    flex-wrap: wrap;
    overflow: visible;
    padding: 2px 0 0;
    min-width: 0;
  }

  .view-switch {
    justify-self: end;
    align-self: start;
    flex-shrink: 0;
  }
}

.filter.active,
.view-btn.active {
  background: linear-gradient(120deg, #132744, #1d4a73);
  color: #f3fbff;
  border-color: transparent;
}

.search-box {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.search-box span {
  font-family: "Sora", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5f768f;
}

.search-box input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 1rem;
}

.search-box input:focus {
  outline: none;
  border-color: rgba(0, 127, 150, 0.6);
  box-shadow: 0 0 0 4px rgba(0, 127, 150, 0.12);
}

.seo-hubs {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-seo-fallback {
  margin-top: 16px;
}

.seo-home-links {
  margin-top: 10px;
}

.ad-slot {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 12px;
}

.ad-slot-embed {
  margin-top: 0;
  min-height: 90px;
}

.ad-top .ad-slot-embed {
  min-height: 120px;
}

.ad-slot.pending {
  border-color: rgba(36, 61, 88, 0.22);
}

.ad-slot.ready {
  border-color: rgba(10, 143, 122, 0.32);
}

.privacy-panel {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 12px;
}

.privacy-head h4 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.privacy-head p {
  margin: 6px 0 0;
  color: #5d738d;
  font-size: 0.88rem;
}

.privacy-grid {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.privacy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  padding: 9px 10px;
  font-size: 0.88rem;
  color: #23405e;
}

.privacy-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0b7894;
}

.privacy-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.privacy-status {
  margin: 0;
  font-size: 0.83rem;
  color: #546d88;
}

.privacy-modal {
  position: fixed;
  right: 14px;
  bottom: 14px;
  left: auto;
  top: auto;
  z-index: 60;
  display: none;
  pointer-events: none;
}

.privacy-modal.open {
  display: block;
  pointer-events: auto;
}

.privacy-backdrop {
  display: none;
}

.privacy-dialog {
  position: relative;
  width: min(390px, calc(100vw - 22px));
  margin: 0;
  border: 1px solid rgba(31, 55, 79, 0.28);
  border-radius: 16px;
  background: rgba(246, 251, 255, 0.96);
  box-shadow: 0 18px 46px rgba(8, 28, 51, 0.24);
  padding: 14px;
}

.privacy-dialog h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
}

.privacy-modal-copy {
  margin: 8px 0 0;
  color: #425b76;
  line-height: 1.48;
  font-size: 0.92rem;
}

.privacy-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.88);
  color: #1f3f5d;
  font-family: "Sora", sans-serif;
  font-size: 0.75rem;
  padding: 5px 8px;
  cursor: pointer;
}

.privacy-close-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.privacy-modal-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.privacy-customize {
  margin-top: 10px;
}

.privacy-customize-note {
  margin: 0 0 8px;
  color: #48637f;
  font-size: 0.88rem;
}

.list-wrap {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 12px;
  box-shadow: var(--shadow);
}

.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.list-head h4 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

#listHint {
  margin: 0;
  font-size: 0.82rem;
  color: #57708a;
}

.topic-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.topic-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--card-strong);
  position: relative;
  transform: translateY(12px);
  opacity: 0;
  animation: cardIn 0.45s ease forwards;
}

.topic-item.saved {
  border-color: rgba(236, 111, 16, 0.45);
  box-shadow: 0 0 0 2px rgba(236, 111, 16, 0.12);
}

.topic-item.flash {
  animation: flashPulse 0.8s ease;
}

.topic-item.surprise-focus {
  border-color: rgba(4, 150, 199, 0.62);
  box-shadow: 0 0 0 2px rgba(4, 150, 199, 0.2), 0 12px 28px rgba(9, 52, 78, 0.16);
}

.topic-item.surprise-focus::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  border: 1px solid rgba(4, 150, 199, 0.5);
  pointer-events: none;
  animation: surpriseHalo 1.8s ease-in-out infinite;
}

.topic-item.surprise-focus .rank {
  animation: surpriseRankPulse 1.2s ease-in-out infinite;
}

.topic-top {
  display: flex;
  gap: 11px;
}

.rank {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
  color: #f5fdff;
  background: linear-gradient(140deg, #ec6f10, #ff9e2d);
  flex: 0 0 auto;
}

.topic-main {
  min-width: 0;
  flex: 1;
}

.topic-main h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.topic-meta {
  margin-top: 6px;
  color: #5d738d;
  display: flex;
  gap: 8px;
  font-size: 0.81rem;
  align-items: center;
  flex-wrap: wrap;
}

.score-badge {
  background: rgba(0, 127, 150, 0.11);
  color: #026176;
  border-radius: 999px;
  padding: 2px 8px;
  font-family: "Sora", sans-serif;
}

.category-badge {
  background: rgba(14, 78, 130, 0.1);
  color: rgba(15, 55, 92, 0.92);
  border-radius: 999px;
  padding: 2px 8px;
  font-family: "Sora", sans-serif;
}

.topic-why {
  margin: 8px 0 0;
  color: #334b63;
  font-size: 0.93rem;
  line-height: 1.45;
}

.topic-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-link,
.action-btn {
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  padding: 6px 9px;
}

.vote-btn {
  min-width: 102px;
}

.vote-btn.pending {
  opacity: 0.78;
}

.vote-up.active {
  background: rgba(10, 143, 122, 0.12);
  border-color: rgba(10, 143, 122, 0.42);
  color: #0c6d5b;
}

.vote-down.active {
  background: rgba(236, 111, 16, 0.11);
  border-color: rgba(236, 111, 16, 0.45);
  color: #a84e12;
}

.action-btn.save-btn.active {
  background: rgba(236, 111, 16, 0.11);
  border-color: rgba(236, 111, 16, 0.45);
  color: #a84e12;
}

.topic-list.compact .topic-item {
  padding: 10px;
}

.topic-list.compact .topic-why {
  display: none;
}

.topic-list.compact .topic-actions {
  margin-top: 8px;
}

.empty {
  text-align: center;
  margin: 22px 0 10px;
  color: #5b728c;
  font-family: "Sora", sans-serif;
}

.site-footer {
  margin: 18px auto 30px;
  font-size: 0.83rem;
  color: #5c748f;
}

.footer-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #6d8198;
  font-size: 0.78rem;
}

.footer-links a {
  color: #335d86;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links span {
  opacity: 0.55;
}

.vote-delay-note {
  margin-top: 4px;
  color: #6d8198;
  font-size: 0.78rem;
}

.footer-legal {
  margin-top: 8px;
  color: #7f8fa3;
  font-size: 0.76rem;
}

@keyframes cardIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes flashPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(4, 150, 199, 0.34);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(4, 150, 199, 0);
  }
}

@keyframes surpriseHalo {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.01);
  }
}

@keyframes surpriseRankPulse {
  0%,
  100% {
    transform: scale(1);
    filter: saturate(1);
  }
  50% {
    transform: scale(1.08);
    filter: saturate(1.15);
  }
}

@keyframes brandPulse {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }
  25% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-1.5px);
  }
}

.ad-preview-main {
  margin-top: 8px;
  display: grid;
  gap: 12px;
}

.ad-preview-hero {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 16px;
}

.ad-preview-hero h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.16rem, 3vw, 1.56rem);
}

.ad-preview-hero p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.ad-preview-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
}

.ad-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 12px;
  box-shadow: var(--shadow);
}

.ad-panel h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.94rem;
}

.ad-panel p {
  margin: 6px 0 0;
  color: #4f647d;
  font-size: 0.88rem;
}

.ad-box {
  margin-top: 10px;
  border: 1px dashed rgba(26, 54, 86, 0.3);
  border-radius: 12px;
  min-height: 96px;
  background: repeating-linear-gradient(
      -45deg,
      rgba(26, 54, 86, 0.04),
      rgba(26, 54, 86, 0.04) 8px,
      rgba(26, 54, 86, 0.012) 8px,
      rgba(26, 54, 86, 0.012) 16px
    ),
    rgba(255, 255, 255, 0.64);
  display: grid;
  place-items: center;
  text-align: center;
  color: #4f6279;
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 8px;
}

.ad-box.tall {
  min-height: 256px;
}

.ad-box.native {
  min-height: 180px;
}

.mock-feed {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 12px;
}

.mock-item {
  border: 1px solid rgba(45, 70, 96, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  margin-top: 8px;
}

.mock-item h4 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.9rem;
}

.mock-item p {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: #4f647d;
}

.mobile-sticky-preview {
  position: sticky;
  bottom: 8px;
  z-index: 10;
  border: 1px dashed rgba(26, 54, 86, 0.34);
  background: rgba(249, 253, 255, 0.95);
  backdrop-filter: blur(7px);
  border-radius: 14px;
  padding: 10px;
}

.mobile-sticky-preview .ad-box {
  margin-top: 0;
  min-height: 72px;
}

.week-main {
  margin-top: 8px;
}

.week-overview,
.card-panel {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.week-overview {
  padding: 16px;
}

.week-overview h1,
.week-overview h2 {
  margin: 8px 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.16rem, 2.7vw, 1.56rem);
}

.week-layout {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(240px, 0.4fr) minmax(0, 1.6fr);
  gap: 12px;
}

.card-panel {
  padding: 12px;
}

.week-days h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.92rem;
}

.panel-hint {
  margin: 6px 0 0;
  color: #5c738d;
  font-size: 0.84rem;
}

.week-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.week-day-btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  border-radius: 12px;
  padding: 9px 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.16s ease, background 0.2s ease;
}

.week-day-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.week-day-btn.active {
  border-color: rgba(0, 127, 150, 0.42);
  background: rgba(0, 127, 150, 0.08);
}

.week-day-btn strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 0.83rem;
  color: #16314e;
}

.week-day-btn span {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  color: #5b738c;
}

.seo-link-list {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}

.seo-link-list li {
  color: #37526d;
  font-size: 0.88rem;
  line-height: 1.35;
}

.seo-link-list a {
  color: #045a74;
  text-decoration: none;
}

.seo-link-list a:hover {
  text-decoration: underline;
}

@media (max-width: 940px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .main-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "controls"
      "list"
      "ads";
  }

  .main-grid .controls,
  .main-grid .list-wrap,
  .main-grid .ad-rail {
    grid-column: 1;
  }

  .controls-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .view-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .view-btn {
    width: 100%;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-preview-grid {
    grid-template-columns: 1fr;
  }

  .week-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .controls-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .view-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .view-btn {
    width: 100%;
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .search-box input {
    width: 100%;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .privacy-modal {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .privacy-dialog {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark::before,
  .brand-mark::after,
  .brand-icon-img {
    animation: none;
  }

  .topic-item.surprise-focus::after,
  .topic-item.surprise-focus .rank {
    animation: none;
  }
}
