: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;
}

* {
  box-sizing: border-box;
}

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: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  padding: 24px 0 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;
}

h1 {
  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;
  gap: 8px;
}

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

.ghost-btn,
.primary-btn,
.chip-btn,
.filter,
.view-btn,
.action-btn,
.action-link {
  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 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;
}

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

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

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

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

.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);
}

.ad-slot {
  margin-top: 12px;
  border: 1px dashed rgba(26, 54, 86, 0.28);
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(
      -45deg,
      rgba(27, 56, 87, 0.035),
      rgba(27, 56, 87, 0.035) 8px,
      rgba(27, 56, 87, 0.012) 8px,
      rgba(27, 56, 87, 0.012) 16px
    ),
    rgba(255, 255, 255, 0.66);
  padding: 12px;
  text-align: center;
  color: #5d6f86;
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
}

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

.ad-slot.pending {
  border-color: rgba(26, 54, 86, 0.28);
}

.ad-slot.ready {
  border-color: rgba(10, 143, 122, 0.45);
  background: repeating-linear-gradient(
      -45deg,
      rgba(10, 143, 122, 0.035),
      rgba(10, 143, 122, 0.035) 8px,
      rgba(10, 143, 122, 0.014) 8px,
      rgba(10, 143, 122, 0.014) 16px
    ),
    rgba(255, 255, 255, 0.72);
}

.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;
}

.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;
}

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

@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 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;
}

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

  .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-end;
  }

  .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;
  }
}
