:root {
  --bg: #e3e8f0;
  --card-bg: #e9eef5;
  --text: #0e2233;
  --muted: #6f7f90;
  --border: #cad3de;
  --topbar-bg: #d5dce7;
  --brand: #4a6176;
  --nav: #335c87;
  --nav-active: #123b63;
  --date: #233f5b;
  --card-title-grad-start: #08283f;
  --card-title-grad-end: #09314f;
  --switch-bg: #0f0f0f;
  --switch-text: #f5f5f5;
  --chip-bg: #ffffff;
  --chip-text: #32597f;
  --chip-border: #c6d1de;
  --chip-active-bg: #0f2f4b;
  --chip-active-text: #f3f8ff;
}

body[data-theme="dark"] {
  --bg: #141414;
  --card-bg: #111111;
  --text: #e7e7e7;
  --muted: #a3a3a3;
  --border: #2a2a2a;
  --topbar-bg: #0f0f0f;
  --brand: #e5e5e5;
  --nav: #bdbdbd;
  --nav-active: #ffffff;
  --date: #c4c4c4;
  --card-title-grad-start: #121212;
  --card-title-grad-end: #1a1a1a;
  --switch-bg: #171717;
  --switch-text: #e5e5e5;
  --chip-bg: #1b1b1b;
  --chip-text: #c9c9c9;
  --chip-border: #2f2f2f;
  --chip-active-bg: #2a2a2a;
  --chip-active-text: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.topbar-left {
  justify-self: start;
}

.topbar-center {
  justify-self: center;
}

.topbar-right {
  justify-self: end;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand);
  text-decoration: none;
  display: inline-block;
}

.brand:hover {
  color: var(--nav-active);
}

.theme-nav {
  display: flex;
  align-items: center;
}

.theme-nav a {
  color: var(--chip-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  background: var(--chip-bg);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.theme-nav a:first-child {
  margin-left: 0;
}

.theme-nav a.active {
  color: var(--chip-active-text);
  background: var(--chip-active-bg);
  border-color: var(--chip-active-bg);
}

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

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--switch-bg);
  color: var(--switch-text);
  font-size: 16px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.tool-btn {
  border: 1px solid var(--border);
  background: var(--switch-bg);
  color: var(--switch-text);
  font-size: 13px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

.view-switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.view-switch__checkbox {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.view-switch__track {
  width: 58px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.view-switch__icon {
  position: absolute;
  top: 8px;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.view-switch__icon--source {
  left: 10px;
  width: 10px;
  height: 10px;
  border: 2px solid #a5a5a5;
  border-top: 0;
  border-radius: 2px;
}

.view-switch__icon--list {
  right: 9px;
  width: 11px;
  height: 10px;
  border-radius: 2px;
  background:
    linear-gradient(#a5a5a5, #a5a5a5) 0 1px / 11px 2px no-repeat,
    linear-gradient(#a5a5a5, #a5a5a5) 0 5px / 11px 2px no-repeat,
    linear-gradient(#a5a5a5, #a5a5a5) 0 9px / 11px 2px no-repeat;
}

.view-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3f3f3 0%, #dddddd 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.view-switch__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3a3a;
}

.view-switch__checkbox:checked + .view-switch__track {
  background: linear-gradient(180deg, #1f4234 0%, #17372c 100%);
  border-color: #2a5b48;
  box-shadow: inset 0 1px 2px rgba(200, 255, 230, 0.14);
}

.view-switch__checkbox:checked + .view-switch__track .view-switch__thumb {
  transform: translateX(28px);
  background: linear-gradient(180deg, #def8ea 0%, #c7ecd9 100%);
  box-shadow: 0 2px 6px rgba(20, 70, 52, 0.45);
}

.view-switch__checkbox:checked + .view-switch__track .view-switch__thumb::before {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #275a45;
}

.view-switch__checkbox:checked + .view-switch__track .view-switch__icon--source {
  opacity: 0.35;
}

.view-switch__checkbox:checked + .view-switch__track .view-switch__icon--list {
  opacity: 0.95;
}

.view-switch__checkbox:not(:checked) + .view-switch__track .view-switch__icon--source {
  opacity: 0.95;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.theme-switch__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-switch__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #2196f3;
  transition: 0.4s;
  z-index: 0;
  overflow: hidden;
}

.theme-switch__slider--round {
  border-radius: 34px;
}

.theme-switch__sun-moon {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: yellow;
  transition: 0.4s;
}

.theme-switch__input:checked + .theme-switch__slider {
  background-color: #000;
}

.theme-switch__input:focus + .theme-switch__slider {
  box-shadow: 0 0 1px #2196f3;
}

.theme-switch__input:checked + .theme-switch__slider .theme-switch__sun-moon {
  transform: translateX(26px);
  background-color: white;
  animation: rotate-center 0.6s ease-in-out both;
}

.theme-switch__moon-dot {
  opacity: 0;
  transition: 0.4s;
  fill: gray;
}

.theme-switch__input:checked + .theme-switch__slider .theme-switch__sun-moon .theme-switch__moon-dot {
  opacity: 1;
}

.theme-switch__slider--round {
  border-radius: 34px;
}

.theme-switch__slider--round .theme-switch__sun-moon {
  border-radius: 50%;
}

.theme-switch__moon-dot--1 {
  left: 10px;
  top: 3px;
  position: absolute;
  width: 6px;
  height: 6px;
  z-index: 4;
}

.theme-switch__moon-dot--2 {
  left: 2px;
  top: 10px;
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 4;
}

.theme-switch__moon-dot--3 {
  left: 16px;
  top: 18px;
  position: absolute;
  width: 3px;
  height: 3px;
  z-index: 4;
}

.theme-switch__light-ray--1 {
  left: -8px;
  top: -8px;
  position: absolute;
  width: 43px;
  height: 43px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

.theme-switch__light-ray--2 {
  left: -50%;
  top: -50%;
  position: absolute;
  width: 55px;
  height: 55px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

.theme-switch__light-ray--3 {
  left: -18px;
  top: -18px;
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

.theme-switch__cloud--light {
  position: absolute;
  fill: #eee;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
}

.theme-switch__cloud--dark {
  position: absolute;
  fill: #ccc;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-delay: 1s;
}

.theme-switch__cloud--1 {
  left: 30px;
  top: 15px;
  width: 40px;
}

.theme-switch__cloud--2 {
  left: 44px;
  top: 10px;
  width: 20px;
}

.theme-switch__cloud--3 {
  left: 18px;
  top: 24px;
  width: 30px;
}

.theme-switch__cloud--4 {
  left: 36px;
  top: 18px;
  width: 40px;
}

.theme-switch__cloud--5 {
  left: 48px;
  top: 14px;
  width: 20px;
}

.theme-switch__cloud--6 {
  left: 22px;
  top: 26px;
  width: 30px;
}

.theme-switch__stars {
  transform: translateY(-32px);
  opacity: 0;
  transition: 0.4s;
}

.theme-switch__star {
  fill: white;
  position: absolute;
  transition: 0.4s;
  animation-name: star-twinkle;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

.theme-switch__input:checked + .theme-switch__slider .theme-switch__stars {
  transform: translateY(0);
  opacity: 1;
}

.theme-switch__star--1 {
  width: 20px;
  top: 2px;
  left: 3px;
  animation-delay: 0.3s;
}

.theme-switch__star--2 {
  width: 6px;
  top: 16px;
  left: 3px;
}

.theme-switch__star--3 {
  width: 12px;
  top: 20px;
  left: 10px;
  animation-delay: 0.6s;
}

.theme-switch__star--4 {
  width: 18px;
  top: 0px;
  left: 18px;
  animation-delay: 1.3s;
}

.theme-switch--home {
  margin: 0;
}

.theme-switch--topbar {
  margin-left: 2px;
}

.theme-switch__input:focus-visible + .theme-switch__slider {
  outline: 2px solid #4ea7ff;
  outline-offset: 2px;
}

@keyframes cloud-move {
  0% {
    transform: translateX(0px);
  }

  40% {
    transform: translateX(4px);
  }

  80% {
    transform: translateX(-4px);
  }

  100% {
    transform: translateX(0px);
  }
}

@keyframes star-twinkle {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.2);
  }

  80% {
    transform: scale(0.8);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes rotate-center {
  0% {
    transform: translateX(26px) rotate(0);
  }

  100% {
    transform: translateX(26px) rotate(360deg);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-main {
  display: block;
}

.theme-hero {
  padding: 18px 22px 0;
}

.theme-hero__inner {
  position: relative;
  overflow: hidden;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(88, 167, 255, 0.14), transparent 38%),
    linear-gradient(135deg, rgba(11, 30, 52, 0.08), transparent 58%),
    var(--card-bg);
}

.theme-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
}

.theme-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.theme-breadcrumbs a:hover {
  text-decoration: underline;
}

.theme-breadcrumbs__sep {
  opacity: 0.6;
}

.theme-breadcrumbs__current {
  color: var(--text);
  font-weight: 600;
}

.theme-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.theme-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.theme-hero__lead {
  max-width: 860px;
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}

.theme-hero__support {
  max-width: 880px;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.theme-hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
}

.theme-hero__updated,
.theme-hero__related {
  font-size: 12px;
  color: var(--muted);
}

.theme-hero__related a {
  color: var(--text);
}

.theme-hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.theme-hero__highlights li,
.theme-hero__links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(88, 167, 255, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.theme-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.theme-hero__links a {
  background: transparent;
}

.theme-section-intro {
  padding: 18px 22px 0;
}

.theme-section-intro__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.theme-section-intro h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.theme-section-intro p:last-child {
  max-width: 920px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 20px;
  padding: 22px;
}

.list-layout {
  display: none;
  padding: 22px;
}

.crypto-cards-wrap {
  padding: 16px 22px 0;
  display: grid;
  gap: 12px;
}

.crypto-cards {
  display: grid;
  gap: 12px;
}

.crypto-cards--quotes {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

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

.crypto-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.crypto-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(88, 167, 255, 0.45), rgba(88, 167, 255, 0));
}

.crypto-card--quote {
  background:
    radial-gradient(circle at top right, rgba(66, 153, 225, 0.12), transparent 42%),
    var(--card-bg);
}

.crypto-card--metric {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.crypto-metric-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.crypto-metric-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  background: rgba(88, 167, 255, 0.12);
  color: #4f8ed8;
  border: 1px solid rgba(88, 167, 255, 0.18);
}

.crypto-metric-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.crypto-card--tone-up::before {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.5), rgba(34, 197, 94, 0));
}

.crypto-card--tone-down::before {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.5), rgba(239, 68, 68, 0));
}

.crypto-symbol {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.crypto-price {
  margin: 4px 0 2px;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
}

.crypto-change {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.crypto-change.up {
  color: #22c55e;
}

.crypto-change.down {
  color: #ef4444;
}

.crypto-metric-label {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crypto-metric-value {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  color: var(--text);
}

.crypto-card--metric-dominance .crypto-metric-icon,
.crypto-card--metric-market-cap .crypto-metric-icon {
  background: rgba(88, 167, 255, 0.12);
  color: #4f8ed8;
  border-color: rgba(88, 167, 255, 0.18);
}

.crypto-card--metric-sentiment .crypto-metric-icon {
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
  border-color: rgba(249, 115, 22, 0.18);
}

.crypto-card--metric-eth-btc .crypto-metric-icon {
  background: rgba(148, 163, 184, 0.16);
  color: #64748b;
  border-color: rgba(148, 163, 184, 0.2);
}

.crypto-events-wrap {
  padding: 14px 22px 0;
}

.crypto-events-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.crypto-events-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.crypto-events-sub {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.crypto-events-list {
  display: grid;
  gap: 10px;
}

.crypto-events-empty {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}

.crypto-events-empty__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.crypto-events-empty__body {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.crypto-event {
  position: relative;
}

.crypto-event::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.5);
}

.crypto-event[data-impact="HIGH"]::before {
  background: rgba(249, 115, 22, 0.85);
}

.crypto-event[data-impact="MED"]::before {
  background: rgba(14, 165, 233, 0.85);
}

.crypto-event-link {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px 12px 18px;
}

.crypto-event-when {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.crypto-event-day {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.crypto-event-time {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  color: var(--text);
}

.crypto-event-main {
  min-width: 0;
}

.crypto-event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.crypto-event-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crypto-event-badge--region {
  background: rgba(88, 167, 255, 0.14);
  color: #2f6bad;
}

.crypto-event-badge--source {
  background: rgba(148, 163, 184, 0.14);
  color: var(--muted);
}

.crypto-event-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text);
}

.crypto-event-impact {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a3412;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 999px;
  padding: 7px 9px;
}

.crypto-event[data-impact="MED"] .crypto-event-impact {
  color: #0c4a6e;
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.16);
}

body[data-view="source"] .source-layout {
  display: grid;
}

body[data-view="source"] .list-layout {
  display: none;
}

body[data-view="list"] .source-layout {
  display: none;
}

body[data-view="list"] .list-layout {
  display: block;
}

.feed-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px 14px;
  content-visibility: auto;
  contain-intrinsic-size: 480px;
}

.feed-card h2 {
  margin: 0 -14px 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--card-title-grad-start), var(--card-title-grad-end));
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px;
}

.feed-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed-card li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 6px;
  margin: 2px 0;
  align-items: start;
  min-width: 0;
}

.feed-card .news-empty {
  display: block;
  grid-template-columns: none;
  margin: 6px 0 2px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.mixed-card {
  max-width: 1200px;
  margin: 0 auto;
}

.mixed-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed-card li.mixed-item {
  display: grid;
  grid-template-columns: 54px 180px minmax(0, 1fr);
  gap: 8px;
  margin: 3px 0;
  align-items: start;
}

.mixed-source {
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mixed-item .date {
  grid-column: 1;
}

.mixed-item .mixed-source {
  grid-column: 2;
}

.mixed-item .news-link {
  grid-column: 3;
  min-width: 0;
}

.date {
  font-size: 13px;
  color: var(--date);
}

.date.older {
  color: var(--muted);
}

.news-link {
  display: inline;
  justify-self: start;
  width: auto;
  max-width: none;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 300;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-link:hover {
  text-decoration: underline;
}

.news-link.today {
  font-weight: 600;
}

.news-link.older,
.news-link.read {
  color: var(--muted);
}

@media (max-width: 1100px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  body.has-topbar {
    padding-top: var(--mobile-topbar-height);
  }

  :root {
    --mobile-topbar-height: 58px;
  }

  body.menu-overlay-open {
    overflow: hidden;
  }

  .layout {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 14px;
    padding-right: 14px;
  }

  .source-layout,
  .list-layout,
  .feed-card,
  .feed-card ul,
  .feed-card li,
  .feed-card li > * {
    min-width: 0;
    max-width: 100%;
  }

  .crypto-cards-wrap {
    padding: 12px 14px 0;
  }

  .crypto-events-wrap {
    padding: 12px 14px 0;
  }

  .theme-hero {
    padding: 12px 14px 0;
  }

  .theme-hero__inner {
    padding: 16px;
    border-radius: 16px;
  }

  .theme-hero h1 {
    font-size: 28px;
    line-height: 1.08;
  }

  .theme-hero__lead {
    font-size: 14px;
    line-height: 1.5;
  }

  .theme-hero__support {
    font-size: 13px;
    line-height: 1.5;
  }

  .theme-hero__meta {
    margin-top: 12px;
    align-items: flex-start;
  }

  .theme-hero__updated,
  .theme-hero__related {
    font-size: 11px;
  }

  .theme-hero__highlights {
    gap: 6px;
    margin-top: 12px;
  }

  .theme-hero__highlights li,
  .theme-hero__links a {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .theme-hero__links {
    margin-top: 12px;
  }

  .theme-section-intro {
    padding: 14px 14px 0;
  }

  .theme-section-intro h2 {
    font-size: 20px;
  }

  .theme-section-intro p:last-child {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
  }

  .crypto-events-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .crypto-cards--quotes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .crypto-cards--metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .crypto-card {
    padding: 10px;
    border-radius: 12px;
  }

  .crypto-price {
    font-size: 18px;
  }

  .crypto-change {
    font-size: 11px;
  }

  .crypto-card--metric {
    min-height: 82px;
  }

  .crypto-metric-head {
    gap: 6px;
    align-items: flex-start;
  }

  .crypto-metric-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    border-radius: 7px;
  }

  .crypto-metric-icon svg {
    width: 12px;
    height: 12px;
  }

  .crypto-metric-label {
    font-size: 9px;
    line-height: 1.1;
  }

  .crypto-metric-value {
    margin-top: 6px;
    font-size: 16px;
  }

  .crypto-event-link {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 11px 12px 11px 16px;
  }

  .crypto-events-empty {
    padding: 14px 16px;
  }

  .crypto-events-empty__title {
    font-size: 13px;
  }

  .crypto-events-empty__body {
    font-size: 12px;
  }

  .crypto-event-time {
    font-size: 16px;
  }

  .crypto-event-day {
    font-size: 9px;
  }

  .crypto-event-title {
    font-size: 13px;
  }

  .crypto-event-impact {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(0);
    transition: transform 0.22s ease;
    will-change: transform;
    z-index: 1003;
    min-height: var(--mobile-topbar-height);
  }

  .topbar.topbar-hidden {
    transform: translateY(calc(-1 * var(--mobile-topbar-height) - 2px));
  }

  body.menu-overlay-open .topbar {
    transform: translateY(0);
  }

  .topbar-left {
    grid-column: 1;
    justify-self: start;
  }

  .topbar-right {
    grid-column: 2 / 4;
    justify-self: stretch;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .tools {
    margin: 0 auto;
    gap: 8px;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    position: relative;
    z-index: 1002;
  }

  .topbar-center {
    display: none;
    position: fixed;
    top: var(--mobile-topbar-height);
    left: 0;
    width: 100vw;
    height: calc(100dvh - var(--mobile-topbar-height));
    min-height: calc(100vh - var(--mobile-topbar-height));
    z-index: 1001;
    background: rgba(8, 10, 14, 0.92);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    overflow-y: auto;
  }

  body.menu-overlay-open .topbar-center {
    display: grid;
    place-items: center;
  }

  .theme-nav {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 20px;
  }

  .theme-nav a {
    margin-left: 0;
    justify-content: center;
    font-size: 16px;
    padding: 12px 14px;
  }

  .mixed-item {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .mixed-source {
    grid-column: 2;
    margin-top: -2px;
  }

  .mixed-item .news-link {
    grid-column: 2;
  }

  body[data-view="list"] .list-layout {
    padding: 8px 10px 14px;
  }

  body[data-view="list"] .mixed-card {
    max-width: none;
    margin: 0;
    padding: 0 10px 10px;
  }

  body[data-view="list"] .mixed-card h2 {
    margin: 0 -10px 8px;
    padding: 12px 12px;
  }

  body[data-view="list"] .mixed-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 2px 8px;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }

  body[data-view="list"] .mixed-item:last-child {
    border-bottom: 0;
  }

  body[data-view="list"] .mixed-item .date {
    font-size: 12px;
    line-height: 1.2;
    padding-top: 1px;
  }

  body[data-view="list"] .mixed-item .mixed-source {
    margin-top: 0;
    font-size: 12px;
    line-height: 1.2;
  }

  body[data-view="list"] .mixed-item .news-link {
    display: block;
    width: 100%;
    margin-top: 2px;
    line-height: 1.22;
  }
}

.site-footer {
  margin: 6px 22px 24px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.site-footer p {
  margin: 2px 0;
}

.home-vercel {
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: center;
  padding: 24px 18px;
}

.home-vercel-inner {
  width: min(880px, 100%);
  text-align: center;
}

.home-topline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.home-brand {
  display: inline-flex;
  margin-bottom: 0;
  text-decoration: none;
}

.home-site-logo {
  display: block;
  width: clamp(92px, 12vw, 132px);
  height: auto;
  margin: 0 auto 16px;
  border-radius: 16px;
}

.home-vercel h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.1;
}

.home-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
}

.theme-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  transition: transform 0.12s ease, border-color 0.12s ease;
  position: relative;
}

.theme-card:hover {
  border-color: var(--chip-active-bg);
  transform: translateY(-1px);
}

.theme-status {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.theme-dot-offline {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.theme-card-offline {
  opacity: 0.86;
}

.theme-name {
  font-weight: 600;
  font-size: 16px;
}

.theme-link {
  font-size: 12px;
  color: var(--muted);
}

body.home-page[data-theme="dark"] {
  background: #0a0a0a;
  color: #f5f5f5;
}

body.home-page[data-theme="dark"] .home-brand {
  color: #f5f5f5;
}

body.home-page[data-theme="dark"] .home-subtitle {
  color: #a3a3a3;
}

body.home-page[data-theme="dark"] .theme-card {
  background: #111111;
  border-color: #2a2a2a;
  color: #f5f5f5;
}

body.home-page[data-theme="dark"] .theme-card:hover {
  border-color: #3b3b3b;
}

body.home-page[data-theme="dark"] .theme-link {
  color: #9a9a9a;
}

body.home-page[data-theme="dark"] .site-footer {
  border-top-color: #2a2a2a;
  color: #8a8a8a;
}
