:root {
  color-scheme: dark;
  --bg: #090611;
  --bg-raised: #110a1c;
  --surface: #171021;
  --surface-2: #1d142a;
  --surface-3: #241832;
  --ink: #fcf8ff;
  --ink-soft: rgba(252, 248, 255, 0.82);
  --ink-muted: rgba(252, 248, 255, 0.58);
  --ink-faint: rgba(252, 248, 255, 0.42);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --violet: #a78bfa;
  --violet-strong: #8b5cf6;
  --rose: #f472b6;
  --gold: #f8c86b;
  --danger: #fb7185;
  --radius-xs: 5px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.22);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(42, 24, 66, 0.7) 0%, rgba(9, 6, 17, 0) 280px),
    linear-gradient(180deg, #0d0818 0%, #090611 52%, #07050d 100%);
  color: var(--ink);
}

body {
  min-width: 320px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.app-shell {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 12px calc(112px + var(--safe-bottom));
}

.content,
.feed-view,
.profile-view,
.detail-view,
.detail-article {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.topbar {
  padding: 0 0 14px;
}

.topbar-shell,
.feed-filter-panel,
.news-card,
.profile-panel,
.profile-section,
.stat-card,
.detail-toolbar,
.detail-panel,
.timeline-item,
.source-item,
.empty-state,
.bottom-nav {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)) padding-box,
    linear-gradient(180deg, var(--surface-2), var(--surface)) border-box;
  box-shadow: var(--shadow-soft);
}

.topbar-shell {
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(244, 114, 182, 0.08) 38%, rgba(17, 10, 28, 0.95) 74%),
    linear-gradient(180deg, #211632, #140d20);
}

.topbar-shell::after,
.news-card::after,
.detail-panel::after,
.profile-panel::after,
.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topbar-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(167, 139, 250, 0.32), rgba(244, 114, 182, 0.18));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}

.topbar-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand-line,
.topbar-kicker,
.page-subtitle,
.feed-description,
.detail-meta-label,
.timeline-time,
.source-host,
.stat-note,
.muted-text,
.news-card-preview,
.timeline-text,
.detail-copy,
.source-link,
.filter-panel-kicker,
.filter-panel-note,
.media-link-kicker {
  color: var(--ink-muted);
}

.brand-line,
.topbar-kicker {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.brand-line {
  color: rgba(248, 200, 107, 0.86);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-kicker {
  color: rgba(221, 207, 255, 0.92);
}

.topbar h1 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.page-subtitle {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  max-width: 34rem;
  font-size: 13px;
  line-height: 1.55;
}

.topbar-tools {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-width: 0;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  background: rgba(9, 6, 17, 0.42);
}

.toolbar-button,
.status-pill,
.back-button,
.filter-reset-button,
.source-open,
.filter-chip,
.nav-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink-soft);
}

.toolbar-button,
.back-button,
.filter-reset-button,
.source-open,
.filter-chip,
.nav-button,
.news-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.toolbar-button {
  position: relative;
  width: 40px;
  flex: 0 0 40px;
  padding: 0;
}

.toolbar-button:hover,
.back-button:hover,
.filter-reset-button:hover,
.source-open:hover,
.filter-chip:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.toolbar-button.is-active,
.filter-chip.is-selected,
.nav-button.is-active {
  border-color: rgba(167, 139, 250, 0.42);
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.22), rgba(244, 114, 182, 0.1)),
    rgba(255, 255, 255, 0.055);
  color: var(--ink);
}

.toolbar-button[data-count]:not([data-count=""])::after {
  content: attr(data-count);
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--rose));
  color: #150a20;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(167, 139, 250, 0.28);
}

.toolbar-icon,
.toolbar-icon svg,
.nav-icon,
.nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.status-pill {
  max-width: 130px;
  min-height: 34px;
  padding: 0 10px;
  flex: 0 1 auto;
}

#status-pill-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--ink-faint);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.035);
}

.status-pill[data-state="online"] .status-dot {
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.16);
}

.status-pill[data-state="busy"] .status-dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(248, 200, 107, 0.14);
}

.status-pill[data-state="error"] .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.14);
}

.feed-description {
  margin: 0;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1.6;
}

.feed-filter-panel,
.profile-panel,
.profile-section,
.detail-toolbar,
.detail-panel,
.timeline-item,
.source-item,
.empty-state,
.stat-card {
  padding: 16px;
}

.feed-filter-panel {
  display: grid;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.09), rgba(248, 200, 107, 0.04)),
    var(--surface);
}

.filter-panel-head,
.profile-section-head,
.detail-section-head,
.timeline-head,
.source-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.filter-panel-head,
.profile-section-head,
.detail-section-head,
.timeline-head {
  flex-wrap: wrap;
}

.filter-panel-copy {
  flex: 1 1 230px;
  min-width: 0;
}

.filter-panel-kicker {
  margin: 0 0 4px;
  color: rgba(248, 200, 107, 0.86);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-panel-title,
.detail-section-title,
.profile-section-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.filter-panel-note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.filter-reset-button {
  padding: 0 12px;
}

.filter-chip-row,
.media-strip {
  scrollbar-width: none;
}

.filter-chip-row::-webkit-scrollbar,
.media-strip::-webkit-scrollbar {
  display: none;
}

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

.filter-chip {
  min-height: 38px;
  padding: 0 13px;
  white-space: nowrap;
}

.news-list,
.timeline-list,
.detail-source-list,
.profile-stats {
  display: grid;
  gap: 14px;
}

.news-card {
  padding: 0;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #20152e, #150e20);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.news-card:hover {
  border-color: rgba(167, 139, 250, 0.24);
  box-shadow: var(--shadow);
}

.news-card:active {
  transform: translateY(1px) scale(0.995);
}

.news-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.26), rgba(244, 114, 182, 0.1)),
    #130d1f;
}

.news-card-media img,
.news-card-media video,
.detail-media img,
.detail-media video,
.fallback-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 6, 17, 0.16), rgba(9, 6, 17, 0) 36%),
    linear-gradient(0deg, rgba(9, 6, 17, 0.78), rgba(9, 6, 17, 0) 58%);
}

.news-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.news-card-overlay-row,
.meta-row,
.source-preview-row,
.chip-row,
.detail-kicker,
.fallback-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.overlay-chip,
.overlay-date-chip,
.chip,
.meta-pill,
.source-badge,
.timeline-marker,
.fallback-tags span {
  min-height: 30px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.overlay-chip,
.overlay-date-chip {
  padding: 0 10px;
  background: rgba(12, 7, 19, 0.58);
  color: var(--ink);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

.overlay-date-chip {
  align-self: flex-end;
  color: rgba(252, 248, 255, 0.9);
}

.news-card-body {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.news-card-title {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 790;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.news-card-preview {
  margin: 0;
  font-size: 14px;
  line-height: 1.64;
  overflow-wrap: anywhere;
}

.news-card-footer {
  display: grid;
  gap: 10px;
}

.chip,
.meta-pill,
.source-badge,
.fallback-tags span {
  min-height: 32px;
  padding: 0 11px;
}

.accent-pill,
.source-primary {
  border-color: rgba(167, 139, 250, 0.28);
  background: rgba(167, 139, 250, 0.14);
  color: #efe8ff;
}

.custom-chip {
  border-color: rgba(244, 114, 182, 0.24);
  background: rgba(244, 114, 182, 0.11);
  color: #ffe2f1;
}

.source-badge {
  max-width: min(100%, 220px);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-panel {
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.14), rgba(244, 114, 182, 0.06)),
    linear-gradient(180deg, #20152e, #150e20);
}

.profile-hero {
  display: grid;
  gap: 16px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.34), rgba(244, 114, 182, 0.18));
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.profile-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-copy strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.profile-copy span,
.muted-text,
.detail-copy,
.timeline-text,
.source-link,
.timeline-time,
.source-host,
.stat-label,
.stat-note,
.detail-meta-label,
.detail-meta-value {
  font-size: 14px;
  line-height: 1.58;
}

.profile-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(112px, auto);
}

.stat-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    #191124;
}

.stat-card--topics {
  grid-row: span 2;
}

.stat-card--filters {
  grid-column: span 2;
}

.stat-card-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.stat-value {
  color: var(--ink);
  font-size: 30px;
  font-weight: 820;
  line-height: 1;
  overflow-wrap: anywhere;
}

.stat-label {
  color: var(--ink-soft);
  font-weight: 650;
}

.stat-note {
  margin: 0;
}

.stat-icon {
  align-self: end;
  justify-self: end;
  width: 52px;
  height: 52px;
  color: rgba(167, 139, 250, 0.24);
}

.stat-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.detail-toolbar {
  display: grid;
  gap: 12px;
}

.back-button {
  width: fit-content;
  max-width: 100%;
  justify-content: flex-start;
  padding: 0 14px 0 9px;
}

.back-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.08);
}

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

.detail-meta-card {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.detail-meta-label,
.detail-meta-value {
  margin: 0;
}

.detail-meta-value {
  color: var(--ink-soft);
  font-weight: 650;
}

.detail-panel {
  display: grid;
  gap: 14px;
}

.detail-hero {
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(244, 114, 182, 0.05)),
    linear-gradient(180deg, #20152e, #150e20);
}

.detail-title {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 820;
  line-height: 1.24;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.detail-body,
.timeline-body {
  display: grid;
  gap: 10px;
}

.detail-copy,
.timeline-text {
  margin: 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.detail-copy {
  line-height: 1.74;
}

.timeline-item {
  display: grid;
  gap: 12px;
  background: #171020;
}

.timeline-marker {
  padding: 0 10px;
  border-color: rgba(248, 200, 107, 0.24);
  background: rgba(248, 200, 107, 0.1);
  color: #ffe5a8;
}

.timeline-title,
.source-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.media-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.media-card {
  min-width: min(84vw, 360px);
  max-width: min(84vw, 360px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #120c1c;
  scroll-snap-align: start;
}

.compact-strip .media-card {
  min-width: min(76vw, 280px);
  max-width: min(76vw, 280px);
}

.detail-media,
.fallback-media {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.media-link-card {
  width: 100%;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(244, 114, 182, 0.1)),
    #130d1f;
  text-decoration: none;
}

.media-link-inner {
  display: grid;
  gap: 10px;
  text-align: center;
}

.media-link-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.fallback-media {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.4), rgba(244, 114, 182, 0.16)),
    #130d1f;
}

.fallback-media img {
  position: absolute;
  inset: 0;
  opacity: 0.92;
}

.fallback-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 6, 17, 0.05), rgba(9, 6, 17, 0.82)),
    linear-gradient(90deg, rgba(9, 6, 17, 0.25), rgba(9, 6, 17, 0));
}

.fallback-copy {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.fallback-kicker {
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.fallback-tags span {
  min-height: 28px;
  padding: 0 10px;
  background: rgba(9, 6, 17, 0.54);
  color: var(--ink);
  font-size: 12px;
}

.is-compact .fallback-copy {
  gap: 8px;
  padding: 16px;
}

.source-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  background: #171020;
}

.source-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.source-topline {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.source-host {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-open {
  padding: 0 14px;
  text-decoration: none;
  white-space: nowrap;
}

.source-link {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(167, 139, 250, 0.38);
  text-underline-offset: 3px;
}

.empty-state {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.58;
}

.error-state {
  color: rgba(255, 209, 224, 0.96);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(12px + var(--safe-bottom));
  z-index: 20;
  width: min(calc(100% - 24px), 390px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    rgba(18, 11, 29, 0.94);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-button {
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 7px 10px;
}

.nav-button.is-active .nav-icon {
  transform: translateY(-2px);
}

.nav-icon {
  transition: transform 0.18s ease;
}

.nav-button:active {
  transform: scale(0.985);
}

.nav-button span:last-child {
  font-size: 13px;
  line-height: 1.2;
}

.skeleton {
  position: relative;
  overflow: hidden;
  min-height: 96px;
}

.skeleton.large {
  min-height: 240px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 48%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

body[data-view="detail"] .page-subtitle {
  max-width: 30rem;
}

@media (min-width: 700px) {
  .app-shell {
    padding-inline: 18px;
  }

  .topbar-shell,
  .feed-filter-panel,
  .profile-panel,
  .profile-section,
  .detail-toolbar,
  .detail-panel,
  .timeline-item,
  .source-item,
  .stat-card {
    padding: 18px;
  }

  .topbar h1 {
    font-size: 30px;
  }

  .news-card--lead {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: 310px;
  }

  .news-card--lead .news-card-media {
    height: 100%;
    min-height: 310px;
    aspect-ratio: auto;
  }

  .news-card--lead .news-card-body {
    align-content: center;
    padding: 22px;
  }

  .news-card--lead .news-card-title {
    font-size: 25px;
  }

  .detail-title {
    font-size: 28px;
  }

  .detail-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .detail-meta-card {
    justify-self: end;
    text-align: right;
  }

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

  .media-card {
    min-width: min(54vw, 420px);
    max-width: min(54vw, 420px);
  }
}

@media (max-width: 640px) {
  .topbar-tools {
    max-width: 190px;
  }

  .status-pill {
    max-width: 78px;
    padding-inline: 9px;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .stat-card--topics,
  .stat-card--filters {
    grid-row: auto;
    grid-column: auto;
  }

  .stat-card {
    min-height: 104px;
  }

  .source-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .source-open {
    justify-self: start;
  }
}

@media (max-width: 430px) {
  .app-shell {
    padding-inline: 10px;
  }

  .topbar-shell {
    padding: 12px;
  }

  .topbar-brand {
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .topbar h1 {
    font-size: 23px;
  }

  .page-subtitle {
    font-size: 12.5px;
  }

  .topbar-tools {
    gap: 6px;
    padding: 4px;
  }

  .toolbar-button {
    width: 38px;
    min-height: 38px;
    flex-basis: 38px;
  }

  .status-pill {
    min-height: 30px;
    max-width: 32px;
    padding-inline: 10px;
  }

  #status-pill-label {
    display: none;
  }

  .news-card-title,
  .detail-title {
    font-size: 20px;
  }

  .news-card-body,
  .profile-panel,
  .profile-section,
  .detail-toolbar,
  .detail-panel,
  .timeline-item,
  .source-item,
  .empty-state,
  .stat-card {
    padding: 14px;
  }
}
