@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Source+Serif+4:wght@500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg: #07131d;
  --bg-soft: #0d1d2b;
  --surface: rgba(10, 24, 36, 0.78);
  --surface-strong: rgba(12, 28, 42, 0.92);
  --surface-light: rgba(255, 255, 255, 0.05);
  --surface-accent: rgba(24, 208, 194, 0.1);
  --line: rgba(173, 197, 209, 0.16);
  --line-strong: rgba(173, 197, 209, 0.28);
  --text: #ebf4f8;
  --muted: #99afbc;
  --accent: #18d0c2;
  --accent-deep: #0a6f72;
  --accent-warm: #f2b74c;
  --accent-alert: #ff7a59;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(24, 208, 194, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(242, 183, 76, 0.12), transparent 28%),
    linear-gradient(180deg, #07121b 0%, #081724 48%, #08111a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(6, 16, 25, 0.76);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #08211e;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(24, 208, 194, 0.25);
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  display: block;
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.top-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.top-nav a:hover,
.top-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

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

.account-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.account-status-pill:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.account-status-pill.is-ready {
  color: var(--text);
  border-color: rgba(24, 208, 194, 0.28);
  background: rgba(24, 208, 194, 0.1);
}

.account-status-pill.is-warning {
  color: #ffd7cc;
  border-color: rgba(255, 122, 89, 0.32);
  background: rgba(255, 122, 89, 0.1);
}

.view-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.mode-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mode-btn:hover,
.mode-btn.is-active {
  background: rgba(24, 208, 194, 0.12);
  color: var(--text);
}

.lang-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-btn:hover,
.lang-btn.is-active {
  background: var(--accent);
  color: #042625;
  border-color: transparent;
  font-weight: 700;
}

main {
  padding: 30px 0 72px;
}

.hero,
.panel,
.story-card,
.compact-card,
.signal-card,
.insight-card,
.provider-card,
.article-hero,
.article-block,
.radar-card,
.promise-card,
.tip-card,
.empty-state {
  background: linear-gradient(180deg, rgba(12, 28, 42, 0.92), rgba(9, 21, 33, 0.86));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel {
  padding: 22px;
}

.topic-panel,
.topic-builder {
  padding: 24px 26px;
}

.topic-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.topic-panel-head h3 {
  margin: 10px 0 10px;
  font-size: 1.3rem;
}

.topic-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topic-stack {
  display: grid;
  gap: 18px;
}

.topic-source-list {
  margin: 18px 0 22px;
}

.topic-suggestion-row {
  margin-top: 14px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: var(--radius-xl);
}

.hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -80px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 208, 194, 0.2), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 26px;
  align-items: stretch;
}

.home-hero .hero-grid {
  align-items: flex-start;
}

.home-hero {
  padding: 28px;
}

.home-hero h1 {
  font-size: clamp(2.25rem, 4vw, 3.45rem);
  max-width: 13ch;
}

.home-hero .lead {
  max-width: 50ch;
}

.hero-note-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(24, 208, 194, 0.22);
  background: rgba(24, 208, 194, 0.08);
  color: #90ede4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(24, 208, 194, 0.14);
}

.hero h1,
.article-title {
  margin: 18px 0 16px;
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  max-width: 12ch;
}

.article-title {
  font-size: clamp(1.95rem, 3.4vw, 3.15rem);
  max-width: 16ch;
  text-wrap: balance;
}

.lead,
.hero-subtitle,
.section-note,
.panel-text,
.article-body p,
.story-deck,
.story-insight p,
.story-points li,
.tip-card p,
.promise-card p,
.radar-card p,
.empty-state p {
  color: #c8d7df;
  line-height: 1.72;
}

.story-deck,
.featured-panel .lead,
.article-hero .lead,
.watch-story-card .panel-text,
.video-launch-card .panel-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-deck {
  -webkit-line-clamp: 3;
}

.compact-card .story-deck,
.signal-card .story-deck,
.watch-story-card .panel-text,
.video-launch-card .panel-text {
  -webkit-line-clamp: 2;
}

.featured-panel .lead,
.article-hero .lead {
  max-width: 60ch;
  -webkit-line-clamp: 3;
}

.hero-actions,
.control-actions,
.chip-row,
.tag-row,
.story-footer,
.section-head,
.search-toolbar,
.article-meta,
.detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #7be6d4);
  color: #032d2b;
  box-shadow: 0 16px 34px rgba(24, 208, 194, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.section {
  margin-top: 22px;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.1;
}

.section-note {
  max-width: 58ch;
}

.scan-rail,
.monitor-grid,
.pro-home-grid,
.mini-journal-grid {
  display: grid;
  gap: 18px;
}

.scan-rail {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scan-card {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(173, 197, 209, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.scan-value {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  font-weight: 800;
}

.scan-note {
  margin: 10px 0 0;
  color: #c8d7df;
  line-height: 1.64;
}

.home-route-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.service-lane-card {
  padding: 20px 22px;
}

.service-lane-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.service-lane-card h3 {
  margin: 14px 0 10px;
  font-size: 1.16rem;
  line-height: 1.34;
}

.service-peek {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(173, 197, 209, 0.12);
}

.service-peek strong {
  display: block;
  margin-top: 8px;
  line-height: 1.4;
}

.service-peek p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.56;
}

.company-desk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.company-desk-card {
  padding: 20px 22px;
}

.company-desk-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.company-desk-head h3 {
  margin: 10px 0 8px;
  font-size: 1.2rem;
}

.company-desk-story {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(173, 197, 209, 0.12);
}

.company-desk-story strong {
  line-height: 1.42;
}

.company-desk-story p,
.media-empty-note {
  margin: 0;
  color: #c8d7df;
  line-height: 1.64;
}

.company-mini-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.company-mini-link {
  padding-top: 10px;
  border-top: 1px solid rgba(173, 197, 209, 0.12);
  color: var(--muted);
  line-height: 1.45;
  transition: color 0.2s ease;
}

.company-mini-link:hover {
  color: var(--text);
}

.desk-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.desk-switch-group {
  margin-top: 26px;
}

.desk-company-switches,
.desk-filter-switches {
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
}

.desk-switch,
.desk-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.desk-switch.is-muted {
  opacity: 0.68;
}

.desk-filter-group {
  margin-top: 16px;
}

.desk-filter-note {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.desk-chip-count {
  display: inline-flex;
  min-width: 28px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

.desk-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.desk-side-panel {
  display: grid;
  gap: 16px;
}

.desk-summary-rail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.desk-summary-rail .scan-card {
  padding: 14px 16px;
}

.desk-archive-stack {
  display: grid;
  gap: 18px;
}

.desk-month {
  padding: 20px 22px;
}

.desk-month-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.desk-month-head h3 {
  margin: 10px 0 0;
  font-size: 1.14rem;
}

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

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

.monitor-card {
  padding: 20px 22px;
}

.monitor-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.monitor-card-head h3 {
  margin: 10px 0 10px;
  font-size: 1.24rem;
}

.compact-stack {
  display: grid;
  gap: 12px;
}

.pro-home-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: start;
}

.pro-home-column {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px 22px;
}

.pro-divider {
  height: 1px;
  background: rgba(173, 197, 209, 0.12);
  margin: 4px 0;
}

.mini-journal-grid .journal-card {
  padding: 18px;
  box-shadow: none;
}

.mini-journal-grid .journal-card h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
}

.stats-grid,
.story-grid,
.radar-grid,
.promise-grid,
.tips-grid,
.journal-grid,
.related-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.radar-grid,
.promise-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

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

.stat-card,
.story-card,
.compact-card,
.signal-card,
.insight-card,
.radar-card,
.promise-card,
.tip-card,
.article-block,
.empty-state {
  padding: 22px;
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 208, 194, 0.16), transparent 70%);
}

.stat-label,
.meta-label,
.story-insight span,
.metric-note,
.mini-label {
  display: inline-block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-value {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
}

.stat-copy {
  margin-top: 12px;
  color: #d7e6ee;
}

.story-card,
.compact-card,
.signal-card,
.insight-card,
.provider-card,
.journal-card,
.promise-card,
.tip-card,
.radar-card {
  position: relative;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.story-card:hover,
.compact-card:hover,
.signal-card:hover,
.insight-card:hover,
.provider-card:hover,
.journal-card:hover,
.promise-card:hover,
.tip-card:hover,
.radar-card:hover {
  transform: translateY(-6px);
  border-color: rgba(24, 208, 194, 0.32);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
}

.story-meta,
.article-badges,
.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.clickable-card {
  cursor: pointer;
}

.pro-only {
  display: none;
}

.badge,
.chip,
.tag,
.ghost-badge,
.save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge {
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.badge-frontier {
  background: rgba(24, 208, 194, 0.12);
  color: #94f2e8;
}

.badge-breakout {
  background: rgba(242, 183, 76, 0.12);
  color: #ffd48c;
}

.badge-watch {
  background: rgba(255, 122, 89, 0.12);
  color: #ffc0af;
}

.badge-live {
  background: rgba(24, 208, 194, 0.16);
  color: #94f2e8;
  border-color: rgba(24, 208, 194, 0.16);
}

.ghost-badge {
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.save-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.save-btn:hover,
.save-btn.is-saved {
  background: rgba(242, 183, 76, 0.16);
  border-color: rgba(242, 183, 76, 0.26);
  color: #ffe0aa;
}

.story-card h3,
.compact-card h3,
.signal-card h3,
.insight-card h3,
.journal-card h3,
.radar-card h3 {
  margin: 18px 0 12px;
  font-size: 1.4rem;
  line-height: 1.25;
}

.compact-card h3 {
  font-size: 1.18rem;
}

.story-points,
.signal-notes,
.summary-list,
.detail-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.story-points li,
.signal-notes li,
.summary-list li,
.detail-list li {
  position: relative;
  padding-left: 18px;
}

.story-points li::before,
.signal-notes li::before,
.summary-list li::before,
.detail-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
}

.story-source,
.story-links,
.summary-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.story-source {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.story-source strong {
  color: #d7e6ee;
  font-weight: 600;
}

.story-summary {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(24, 208, 194, 0.16);
  background: rgba(24, 208, 194, 0.06);
}

.story-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.story-brief-grid.is-compact {
  grid-template-columns: 1fr;
}

.story-brief-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(173, 197, 209, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.story-brief-item p {
  margin: 8px 0 0;
  color: #d4e5ec;
  line-height: 1.62;
}

.story-pro-meta {
  display: none;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(173, 197, 209, 0.12);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.story-pro-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.story-pro-meta.is-static {
  margin-top: 14px;
}

.signal-metric {
  margin: 18px 0;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(173, 197, 209, 0.12);
}

.signal-metric span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.signal-metric strong {
  display: block;
  line-height: 1.4;
  font-size: 1rem;
}

.story-summary span,
.summary-headline .meta-label {
  display: inline-block;
  margin-bottom: 8px;
}

.story-summary p,
.summary-box p {
  margin: 0;
  color: #d4e5ec;
  line-height: 1.72;
}

.journal-publisher {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.story-insight {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.story-insight p {
  margin: 10px 0 0;
}

.story-footer {
  justify-content: space-between;
  margin-top: 22px;
}

.story-points-tight {
  margin-top: 14px;
  gap: 10px;
}

.story-links {
  justify-content: flex-end;
}

.story-link,
.text-link {
  color: #9df1ea;
  font-weight: 700;
}

.tag-row {
  gap: 8px;
}

.tag,
.chip {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #d7e6ee;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
}

.chip:hover,
.chip.is-active {
  background: rgba(24, 208, 194, 0.12);
  border-color: rgba(24, 208, 194, 0.26);
  color: #9ef2e9;
}

.feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.control-panel,
.search-panel,
.article-panel {
  padding: 24px;
}

.control-panel {
  margin-top: 24px;
}

.control-group + .control-group {
  margin-top: 18px;
}

.control-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 16px 18px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: rgba(24, 208, 194, 0.38);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 5px rgba(24, 208, 194, 0.08);
}

.search-input::placeholder {
  color: #7e93a2;
}

.featured-panel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.featured-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.featured-panel h2 {
  margin: 14px 0 12px;
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  line-height: 1.05;
}

.featured-panel .lead {
  margin: 0;
}

.featured-stack {
  display: grid;
  gap: 12px;
}

.featured-stack .panel {
  padding: 18px;
}

.mini-value {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.results-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.compact-summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.compact-summary-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(173, 197, 209, 0.12);
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 8px;
  align-content: start;
}

.compact-summary-card strong {
  font-size: 1.14rem;
  line-height: 1.12;
}

.compact-summary-card .panel-text {
  margin: 0;
  font-size: 0.92rem;
}

.search-summary-card h3 {
  margin: 10px 0 0;
  font-size: 1.06rem;
  line-height: 1.42;
}

.service-shortcuts {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(173, 197, 209, 0.12);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 12px;
}

.service-shortcuts .story-links {
  justify-content: flex-start;
}

.service-shortcuts .story-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.search-hero {
  margin-bottom: 24px;
}

.search-command {
  margin-top: 24px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(24, 208, 194, 0.18);
  background: linear-gradient(180deg, rgba(9, 23, 35, 0.9), rgba(8, 19, 30, 0.82));
}

.search-command .search-input {
  padding: 18px 20px;
  font-size: 1.05rem;
}

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.72fr);
  gap: 22px;
}

.article-hero {
  padding: 30px;
}

.detail-breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-quick-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 0;
}

.detail-decision-panel {
  padding: 22px 24px;
}

.detail-decision-lead {
  margin: 6px 0 0;
}

.detail-decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.decision-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(173, 197, 209, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.decision-card.is-muted {
  opacity: 0.82;
}

.decision-card h3 {
  margin: 0;
  font-size: 1rem;
}

.decision-card p {
  margin: 10px 0 0;
  color: #c8d7df;
  line-height: 1.58;
}

.decision-card-action {
  margin-top: 16px;
}

.article-meta {
  margin-top: 20px;
  color: var(--muted);
}

.article-pro-strip {
  display: none;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(173, 197, 209, 0.12);
}

.article-pro-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(173, 197, 209, 0.12);
  color: var(--muted);
  font-size: 0.82rem;
}

.article-body {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.summary-stack {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.summary-box {
  border-color: rgba(173, 197, 209, 0.18);
}

.summary-box-ai {
  border-color: rgba(24, 208, 194, 0.18);
  background: linear-gradient(180deg, rgba(12, 28, 42, 0.96), rgba(6, 26, 31, 0.9));
}

.article-body p {
  margin: 0;
}

.article-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.article-block h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.detail-actions {
  margin-top: 24px;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-fast-grid,
.quick-read-grid,
.video-link-grid,
.video-launch-grid {
  display: grid;
  gap: 18px;
}

.article-fast-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.quick-read-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.quick-read-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(173, 197, 209, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.quick-read-item p {
  margin: 10px 0 0;
  color: #d4e5ec;
  line-height: 1.66;
}

.quick-read-notes {
  margin-top: 18px;
}

.media-desk-card .panel-text {
  margin: 12px 0 0;
}

.media-actions {
  margin-top: 18px;
}

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

.video-link-card,
.video-launch-card {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(173, 197, 209, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.video-link-card h3,
.video-launch-card h3 {
  margin: 16px 0 10px;
  font-size: 1.08rem;
  line-height: 1.34;
}

.video-link-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.video-link-pill {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(173, 197, 209, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.video-link-pill span {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-link-pill strong {
  line-height: 1.4;
}

.body-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(173, 197, 209, 0.12);
}

.body-toggle-btn {
  min-width: 190px;
}

.section-head-split {
  align-items: stretch;
}

.pro-desk-card {
  width: min(360px, 100%);
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(173, 197, 209, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

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

.pro-desk-metric {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(173, 197, 209, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.pro-desk-metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.pro-desk-metric span {
  color: var(--muted);
  font-size: 0.78rem;
}

.pro-source-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.briefing-hero {
  margin-bottom: 26px;
}

.briefing-grid {
  display: grid;
  gap: 22px;
}

.briefing-block {
  padding: 24px;
}

.provider-card {
  padding: 22px;
}

.journal-card {
  padding: 22px;
}

.provider-card h3 {
  margin: 14px 0 10px;
  font-size: 1.24rem;
}

.provider-form {
  display: grid;
  gap: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.select-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  appearance: none;
}

.select-input:focus {
  border-color: rgba(24, 208, 194, 0.38);
  box-shadow: 0 0 0 5px rgba(24, 208, 194, 0.08);
}

.summary-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

body[data-ui-mode="light"] {
  color: #122432;
  background:
    radial-gradient(circle at top left, rgba(24, 208, 194, 0.08), transparent 30%),
    linear-gradient(180deg, #f6fbfd 0%, #eef4f8 100%);
}

body[data-ui-mode="light"]::before {
  opacity: 0.05;
}

body[data-ui-mode="light"] .site-header {
  background: rgba(247, 251, 253, 0.88);
  border-bottom-color: rgba(18, 36, 50, 0.08);
}

body[data-ui-mode="light"] .hero,
body[data-ui-mode="light"] .panel,
body[data-ui-mode="light"] .story-card,
body[data-ui-mode="light"] .compact-card,
body[data-ui-mode="light"] .signal-card,
body[data-ui-mode="light"] .insight-card,
body[data-ui-mode="light"] .provider-card,
body[data-ui-mode="light"] .journal-card,
body[data-ui-mode="light"] .article-hero,
body[data-ui-mode="light"] .article-block,
body[data-ui-mode="light"] .radar-card,
body[data-ui-mode="light"] .promise-card,
body[data-ui-mode="light"] .tip-card,
body[data-ui-mode="light"] .empty-state {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.96));
  border-color: rgba(18, 36, 50, 0.08);
  box-shadow: 0 20px 60px rgba(16, 37, 52, 0.08);
}

body[data-ui-mode="light"] .lead,
body[data-ui-mode="light"] .section-note,
body[data-ui-mode="light"] .panel-text,
body[data-ui-mode="light"] .article-body p,
body[data-ui-mode="light"] .story-deck,
body[data-ui-mode="light"] .story-insight p,
body[data-ui-mode="light"] .story-points li,
body[data-ui-mode="light"] .tip-card p,
body[data-ui-mode="light"] .promise-card p,
body[data-ui-mode="light"] .radar-card p,
body[data-ui-mode="light"] .empty-state p,
body[data-ui-mode="light"] .story-summary p,
body[data-ui-mode="light"] .summary-box p,
body[data-ui-mode="light"] .story-link,
body[data-ui-mode="light"] .text-link {
  color: #243745;
}

body[data-ui-mode="light"] .top-nav a,
body[data-ui-mode="light"] .lang-btn,
body[data-ui-mode="light"] .mode-btn,
body[data-ui-mode="light"] .account-status-pill,
body[data-ui-mode="light"] .ghost-badge,
body[data-ui-mode="light"] .footer-copy,
body[data-ui-mode="light"] .journal-publisher,
body[data-ui-mode="light"] .results-meta,
body[data-ui-mode="light"] .story-source,
body[data-ui-mode="light"] .summary-status {
  color: #4f6777;
}

body[data-ui-mode="light"] .search-input,
body[data-ui-mode="light"] .select-input {
  background: rgba(244, 248, 250, 0.9);
  border-color: rgba(18, 36, 50, 0.12);
  color: #102533;
}

body[data-ui-mode="light"] .scan-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(18, 36, 50, 0.08);
  box-shadow: 0 20px 50px rgba(16, 37, 52, 0.05);
}

body[data-ui-mode="light"] .scan-note {
  color: #3e5463;
}

body[data-ui-mode="light"] .save-btn {
  background: rgba(244, 248, 250, 0.9);
  border-color: rgba(18, 36, 50, 0.12);
  color: #4f6777;
}

body[data-ui-mode="light"] .save-btn.is-saved,
body[data-ui-mode="light"] .save-btn:hover {
  color: #8a5d14;
}

body[data-ui-mode="light"] .quick-read-item,
body[data-ui-mode="light"] .video-link-card,
body[data-ui-mode="light"] .video-launch-card,
body[data-ui-mode="light"] .video-link-pill {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(18, 36, 50, 0.08);
}

body[data-ui-mode="light"] .desk-chip-count,
body[data-ui-mode="pro"] .desk-chip-count {
  background: rgba(18, 36, 50, 0.08);
}

body[data-ui-mode="pro"] {
  color: #0f1f2c;
  background: #f6f3ea;
  font-family: 'IBM Plex Sans', 'Noto Sans SC', sans-serif;
}

body[data-ui-mode="pro"]::before {
  display: none;
}

body[data-ui-mode="pro"] .site-header {
  background: rgba(246, 243, 234, 0.96);
  border-bottom: 1px solid rgba(15, 31, 44, 0.12);
  backdrop-filter: none;
}

body[data-ui-mode="pro"] .brand-mark {
  border-radius: 10px;
  box-shadow: none;
}

body[data-ui-mode="pro"] .hero,
body[data-ui-mode="pro"] .panel,
body[data-ui-mode="pro"] .story-card,
body[data-ui-mode="pro"] .compact-card,
body[data-ui-mode="pro"] .signal-card,
body[data-ui-mode="pro"] .insight-card,
body[data-ui-mode="pro"] .provider-card,
body[data-ui-mode="pro"] .journal-card,
body[data-ui-mode="pro"] .article-hero,
body[data-ui-mode="pro"] .article-block,
body[data-ui-mode="pro"] .radar-card,
body[data-ui-mode="pro"] .promise-card,
body[data-ui-mode="pro"] .tip-card,
body[data-ui-mode="pro"] .empty-state {
  background: #fffdf8;
  border-color: rgba(15, 31, 44, 0.12);
  box-shadow: none;
  border-radius: 14px;
}

body[data-ui-mode="pro"] .hero::after {
  display: none;
}

body[data-ui-mode="pro"] .hero h1,
body[data-ui-mode="pro"] .article-title,
body[data-ui-mode="pro"] .featured-panel h2,
body[data-ui-mode="pro"] .story-card h3,
body[data-ui-mode="pro"] .compact-card h3,
body[data-ui-mode="pro"] .signal-card h3,
body[data-ui-mode="pro"] .journal-card h3 {
  font-family: 'Source Serif 4', 'Noto Sans SC', serif;
  line-height: 1.08;
}

body[data-ui-mode="pro"] .page-shell {
  width: min(1360px, calc(100% - 36px));
}

body[data-ui-mode="pro"] .hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  max-width: 16ch;
}

body[data-ui-mode="pro"] .article-title {
  font-size: clamp(1.72rem, 2.5vw, 2.55rem);
  max-width: 18ch;
}

body[data-ui-mode="pro"] .featured-panel h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
}

body[data-ui-mode="pro"] .eyebrow,
body[data-ui-mode="pro"] .badge-live {
  background: rgba(15, 31, 44, 0.06);
  color: #0f1f2c;
  border-color: rgba(15, 31, 44, 0.12);
  box-shadow: none;
}

body[data-ui-mode="pro"] .lead,
body[data-ui-mode="pro"] .section-note,
body[data-ui-mode="pro"] .panel-text,
body[data-ui-mode="pro"] .article-body p,
body[data-ui-mode="pro"] .story-deck,
body[data-ui-mode="pro"] .story-insight p,
body[data-ui-mode="pro"] .story-points li,
body[data-ui-mode="pro"] .tip-card p,
body[data-ui-mode="pro"] .promise-card p,
body[data-ui-mode="pro"] .radar-card p,
body[data-ui-mode="pro"] .empty-state p,
body[data-ui-mode="pro"] .story-summary p,
body[data-ui-mode="pro"] .summary-box p,
body[data-ui-mode="pro"] .story-link,
body[data-ui-mode="pro"] .text-link {
  color: #263847;
}

body[data-ui-mode="pro"] .top-nav a,
body[data-ui-mode="pro"] .lang-btn,
body[data-ui-mode="pro"] .mode-btn,
body[data-ui-mode="pro"] .account-status-pill,
body[data-ui-mode="pro"] .ghost-badge,
body[data-ui-mode="pro"] .footer-copy,
body[data-ui-mode="pro"] .journal-publisher,
body[data-ui-mode="pro"] .results-meta,
body[data-ui-mode="pro"] .story-source,
body[data-ui-mode="pro"] .summary-status {
  color: #5f7180;
}

body[data-ui-mode="pro"] .search-input,
body[data-ui-mode="pro"] .select-input,
body[data-ui-mode="pro"] .search-command {
  background: #fffdf8;
  border-color: rgba(15, 31, 44, 0.14);
  color: #122432;
}

body[data-ui-mode="light"] .account-status-pill,
body[data-ui-mode="pro"] .account-status-pill {
  background: rgba(255, 250, 242, 0.88);
  border-color: rgba(18, 36, 50, 0.12);
}

body[data-ui-mode="light"] .account-status-pill.is-ready,
body[data-ui-mode="pro"] .account-status-pill.is-ready {
  color: #0d4f56;
  border-color: rgba(24, 208, 194, 0.3);
  background: rgba(24, 208, 194, 0.14);
}

body[data-ui-mode="light"] .account-status-pill.is-warning,
body[data-ui-mode="pro"] .account-status-pill.is-warning {
  color: #8a4028;
  border-color: rgba(255, 122, 89, 0.28);
  background: rgba(255, 122, 89, 0.12);
}

body[data-ui-mode="light"] .watch-note,
body[data-ui-mode="pro"] .watch-note {
  background: rgba(255, 250, 242, 0.92);
  border-color: rgba(18, 36, 50, 0.08);
}

body[data-ui-mode="light"] .watch-note p,
body[data-ui-mode="pro"] .watch-note p {
  color: #334956;
}

body[data-ui-mode="pro"] .section-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 31, 44, 0.1);
  margin-bottom: 16px;
}

body[data-ui-mode="pro"] .save-btn {
  background: #fffdf8;
  border-color: rgba(15, 31, 44, 0.14);
  color: #5f7180;
}

body[data-ui-mode="pro"] .story-card,
body[data-ui-mode="pro"] .compact-card,
body[data-ui-mode="pro"] .signal-card,
body[data-ui-mode="pro"] .article-block,
body[data-ui-mode="pro"] .insight-card,
body[data-ui-mode="pro"] .panel {
  padding: 18px;
}

body[data-ui-mode="pro"] .scan-card,
body[data-ui-mode="pro"] .mini-journal-grid .journal-card,
body[data-ui-mode="pro"] .quick-read-item,
body[data-ui-mode="pro"] .video-link-card,
body[data-ui-mode="pro"] .video-launch-card,
body[data-ui-mode="pro"] .video-link-pill {
  background: rgba(15, 31, 44, 0.03);
  border-color: rgba(15, 31, 44, 0.12);
}

body[data-ui-mode="pro"] .scan-note {
  color: #405564;
}

body[data-ui-mode="pro"] .story-grid.feed-grid,
body[data-ui-mode="pro"] .signal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-ui-mode="pro"] .story-deck,
body[data-ui-mode="pro"] .story-summary p,
body[data-ui-mode="pro"] .story-points li,
body[data-ui-mode="pro"] .signal-notes li {
  font-size: 0.95rem;
  line-height: 1.6;
}

body[data-ui-mode="pro"] .story-pro-meta,
body[data-ui-mode="pro"] .article-pro-strip.pro-only {
  display: flex;
}

body[data-ui-mode="pro"] .pro-only {
  display: block;
}

body[data-ui-mode="pro"] .story-pro-meta,
body[data-ui-mode="pro"] .article-pro-strip span,
body[data-ui-mode="pro"] .signal-metric,
body[data-ui-mode="pro"] .pro-desk-card,
body[data-ui-mode="pro"] .pro-desk-metric {
  border-color: rgba(15, 31, 44, 0.12);
}

body[data-ui-mode="pro"] .signal-metric,
body[data-ui-mode="pro"] .article-pro-strip span,
body[data-ui-mode="pro"] .pro-desk-card,
body[data-ui-mode="pro"] .pro-desk-metric {
  background: rgba(15, 31, 44, 0.03);
}

body[data-ui-mode="pro"] .signal-card:hover,
body[data-ui-mode="pro"] .story-card:hover,
body[data-ui-mode="pro"] .compact-card:hover,
body[data-ui-mode="pro"] .insight-card:hover,
body[data-ui-mode="pro"] .provider-card:hover,
body[data-ui-mode="pro"] .journal-card:hover,
body[data-ui-mode="pro"] .promise-card:hover,
body[data-ui-mode="pro"] .tip-card:hover,
body[data-ui-mode="pro"] .radar-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.empty-state {
  text-align: left;
  padding: 28px;
}

.empty-state h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.live-status {
  margin: 0 0 24px;
  padding: 24px 28px;
}

.live-status-compact {
  padding: 18px 20px;
}

.live-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.live-status-head h3 {
  margin: 8px 0 10px;
  font-size: 1.15rem;
}

.live-status-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.live-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.live-status-cell {
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-status-cell span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.live-status-cell strong {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
}

.live-status-note {
  margin: 16px 0 0;
}

.live-status-strip,
.watch-story-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.live-status-summary h3 {
  margin: 8px 0 0;
  font-size: 1rem;
}

.live-status-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.live-status-compact .live-status-note {
  margin-top: 12px;
  font-size: 0.92rem;
}

.refresh-btn.is-loading,
.refresh-btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

body[data-ui-mode="light"] .live-status-cell,
body[data-ui-mode="light"] .topic-panel,
body[data-ui-mode="light"] .topic-builder,
body[data-ui-mode="pro"] .topic-panel,
body[data-ui-mode="pro"] .topic-builder,
body[data-ui-mode="pro"] .live-status-cell {
  background: rgba(255, 250, 242, 0.9);
  border-color: rgba(15, 31, 44, 0.08);
}

body[data-ui-mode="light"] .live-status-head h3,
body[data-ui-mode="light"] .topic-panel-head h3,
body[data-ui-mode="pro"] .live-status-head h3,
body[data-ui-mode="pro"] .topic-panel-head h3,
body[data-ui-mode="light"] .live-status-cell strong,
body[data-ui-mode="pro"] .live-status-cell strong {
  color: #122432;
}

body[data-ui-mode="light"] .live-status-cell span,
body[data-ui-mode="pro"] .live-status-cell span {
  color: #5f7180;
}

.auth-grid,
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.watch-story-card {
  padding: 22px;
}

.watch-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.watch-note {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(173, 197, 209, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.watch-note p {
  margin: 8px 0 0;
  color: #d4e5ec;
  line-height: 1.58;
}

.watch-highlight-list {
  margin-top: 18px;
}

.account-grid .account-scope-card {
  grid-column: 1 / -1;
}

.auth-card,
.account-status-card,
.briefing-settings-card,
.account-scope-card,
.account-offline,
.account-flash {
  padding: 24px 26px;
}

.auth-card h2,
.account-status-card h2,
.briefing-settings-card h2,
.account-scope-card h2,
.account-offline h2 {
  margin: 10px 0 12px;
  font-size: 1.35rem;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.checkbox-line input {
  width: 18px;
  height: 18px;
}

.account-user-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin: 18px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.account-user-block strong {
  display: block;
  font-size: 1.05rem;
}

.account-user-block p {
  margin: 8px 0 0;
  color: var(--muted);
}

.account-pref-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.account-offline,
.account-flash {
  margin-top: 18px;
}

.account-flash p,
.account-offline p {
  margin: 0;
}

.account-flash.is-error {
  border-color: rgba(255, 122, 89, 0.4);
  background: linear-gradient(180deg, rgba(63, 22, 19, 0.95), rgba(31, 13, 12, 0.88));
}

.account-flash.is-success {
  border-color: rgba(24, 208, 194, 0.34);
  background: linear-gradient(180deg, rgba(12, 42, 37, 0.92), rgba(9, 25, 24, 0.88));
}

body[data-ui-mode="light"] .account-user-block,
body[data-ui-mode="pro"] .account-user-block {
  background: rgba(255, 250, 242, 0.86);
  border-color: rgba(18, 36, 50, 0.08);
}

body[data-ui-mode="light"] .account-flash.is-success,
body[data-ui-mode="pro"] .account-flash.is-success {
  background: linear-gradient(180deg, rgba(236, 249, 246, 0.98), rgba(248, 252, 251, 0.94));
}

body[data-ui-mode="light"] .account-flash.is-error,
body[data-ui-mode="pro"] .account-flash.is-error {
  background: linear-gradient(180deg, rgba(255, 241, 236, 0.98), rgba(255, 249, 246, 0.94));
}

.site-footer {
  padding: 0 0 36px;
}

.footer-inner {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-copy {
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.page-fade {
  animation: rise 0.65s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@media (max-width: 1100px) {
  .hero-grid,
  .feed-layout,
  .article-wrap,
  .article-fast-grid,
  .desk-hero-grid {
    grid-template-columns: 1fr;
  }

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

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

  .monitor-grid,
  .pro-home-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .story-grid,
  .story-grid.feed-grid,
  .signal-grid,
  .watch-grid,
  .video-link-grid,
  .video-launch-grid,
  .detail-decision-grid,
  .home-service-grid,
  .company-desk-grid,
  .radar-grid,
  .auth-grid,
  .account-grid,
  .promise-grid,
  .tips-grid,
  .journal-grid,
  .related-grid,
  .provider-grid,
  .live-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  .header-inner {
    gap: 12px;
    padding: 14px 0;
  }

  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .top-nav a {
    flex: 0 0 auto;
  }

  .header-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  .view-toggle {
    width: auto;
    max-width: 100%;
    overflow-x: auto;
  }

  .account-status-pill {
    width: auto;
    min-height: 38px;
    padding: 8px 12px;
  }

  .mode-btn {
    white-space: nowrap;
  }

  .lang-btn {
    width: auto;
    min-width: 74px;
  }

  .brand-copy small {
    white-space: normal;
  }

  .stats-grid,
  .story-grid,
  .story-grid.feed-grid,
  .signal-grid,
  .watch-grid,
  .video-link-grid,
  .video-launch-grid,
  .company-desk-grid,
  .radar-grid,
  .auth-grid,
  .account-grid,
  .promise-grid,
  .tips-grid,
  .journal-grid,
  .related-grid,
  .provider-grid,
  .field-grid,
  .quick-read-grid,
  .live-status-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .article-hero,
  .control-panel,
  .search-panel,
  .article-panel {
    padding: 24px;
  }

  .detail-decision-panel {
    padding: 20px;
  }

  .detail-quick-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .detail-quick-nav .chip {
    flex: 0 0 auto;
  }

  .hero h1,
  .article-title {
    max-width: none;
  }

  .section-head-split {
    flex-direction: column;
  }

  .pro-desk-card {
    width: 100%;
  }

  .live-status-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .desk-summary-rail,
  .desk-archive-grid {
    grid-template-columns: 1fr;
  }

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

  .story-brief-grid {
    grid-template-columns: 1fr;
  }

  .service-shortcuts .story-links,
  .topic-panel-actions {
    justify-content: flex-start;
  }

  .desk-filter-note {
    font-size: 0.92rem;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 20px);
  }

  .top-nav a {
    padding: 8px 10px;
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .brand-copy small {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  main {
    padding: 22px 0 56px;
  }

  .hero,
  .article-hero,
  .stat-card,
  .story-card,
  .compact-card,
  .signal-card,
  .monitor-card,
  .radar-card,
  .promise-card,
  .tip-card,
  .article-block,
  .empty-state,
  .pro-home-column,
  .control-panel,
  .search-panel,
  .article-panel {
    padding: 20px;
  }

  .home-hero {
    padding: 22px;
  }

  .detail-decision-panel {
    padding: 18px;
  }

  .hero-actions,
  .control-actions,
  .search-toolbar,
  .story-footer,
  .story-links,
  .top-nav,
  .detail-quick-nav {
    width: 100%;
  }

  .button,
  .account-status-pill {
    width: 100%;
  }

  .account-status-pill {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

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

  .header-actions .account-status-pill,
  .header-actions .lang-btn,
  .header-actions .mode-btn {
    width: auto;
  }

  .top-nav a {
    width: auto;
    text-align: left;
  }

  .view-toggle {
    width: auto;
    display: flex;
    gap: 6px;
    max-width: 100%;
  }

  .mode-btn {
    width: auto;
    flex: 0 0 auto;
    padding: 9px 11px;
  }

  .scan-rail {
    grid-template-columns: 1fr;
  }

  .hero-note-row,
  .monitor-card-head,
  .live-status-strip,
  .body-toggle-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: clamp(1.95rem, 8.8vw, 2.55rem);
    line-height: 1.04;
  }

  .featured-panel h2,
  .article-title {
    font-size: clamp(1.32rem, 6.2vw, 1.78rem);
    line-height: 1.12;
  }

  .search-hero h1 {
    font-size: clamp(1.72rem, 7.8vw, 2.12rem);
    line-height: 1.08;
  }

  .search-command,
  .live-status-compact {
    padding: 18px;
  }

  .service-lane-card {
    padding: 18px;
  }

  .compact-summary-row {
    grid-template-columns: 1fr;
  }

  .compact-summary-card,
  .service-shortcuts {
    padding: 16px;
  }

  .lead,
  .hero-subtitle,
  .section-note,
  .panel-text {
    line-height: 1.62;
  }

  .article-hero .lead,
  .featured-panel .lead {
    font-size: 0.98rem;
  }

  .article-badges,
  .article-meta,
  .detail-breadcrumb {
    gap: 8px;
  }

  .article-meta {
    font-size: 0.94rem;
  }

  .detail-breadcrumb {
    font-size: 0.84rem;
  }

  .detail-actions,
  .media-actions {
    align-items: stretch;
  }

  .desk-hero-actions {
    align-items: stretch;
  }

  .desk-month,
  .desk-side-panel,
  .company-desk-card {
    padding: 18px;
  }

  .desk-switch-group,
  .desk-filter-group {
    margin-top: 18px;
  }

  .desk-filter-note {
    font-size: 0.9rem;
  }

  .detail-actions .button,
  .media-actions .button,
  .desk-hero-actions .button {
    width: 100%;
  }

  .quick-read-item,
  .decision-card,
  .watch-note,
  .video-link-card,
  .video-launch-card {
    padding: 18px;
  }

  .watch-note-grid {
    grid-template-columns: 1fr;
  }

  .live-status-inline {
    width: 100%;
  }

  .body-toggle-btn {
    min-width: 0;
  }

  .detail-decision-grid {
    gap: 12px;
  }

  .decision-card p {
    font-size: 0.94rem;
  }
}
