:root {
  color-scheme: dark;
  --page: #0e1116;
  --panel: #171b22;
  --panel-soft: #1f2530;
  --line: #2b3340;
  --text: #f2f5f8;
  --muted: #98a4b3;
  --accent: #78d3b8;
  --accent-strong: #2fb98f;
  --gold: #f0c56a;
  --red: #ef7d7d;
  --blue: #80b9ff;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(120, 211, 184, 0.12), transparent 32rem),
    linear-gradient(145deg, #0e1116 0%, #121720 45%, #0b0e13 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dashboard {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.lede {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.today-panel,
.panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(23, 27, 34, 0.88);
  box-shadow: var(--shadow);
}

.today-panel {
  display: flex;
  min-height: 174px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;
  padding: 20px;
}

.today-panel span,
.today-panel small {
  color: var(--muted);
}

.today-panel strong {
  font-size: 2.1rem;
  line-height: 1;
}

.time-banner {
  display: none;
  margin-bottom: 16px;
  border: 1px solid rgba(240, 197, 106, 0.4);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(31, 37, 48, 0.92);
  box-shadow: var(--shadow);
}

.time-banner.active {
  display: block;
}

.flight-ticker,
.flight-ticker-main,
.flight-ticker-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-banner p {
  margin: 0;
}

.flight-ticker {
  justify-content: space-between;
  min-height: 38px;
}

.flight-ticker-main,
.flight-ticker-meta {
  min-width: 0;
  flex-wrap: wrap;
}

.flight-label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.flight-route {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 850;
}

.flight-price {
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.price-up {
  color: var(--red);
  white-space: nowrap;
}

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

.stale-text {
  color: var(--gold);
}

.briefing-grid,
.lower-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.briefing-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

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

.panel {
  border-radius: 8px;
  padding: 22px;
}

.section-heading {
  display: flex;
  min-height: 44px;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 1.15rem;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(120, 211, 184, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--accent);
  background: rgba(120, 211, 184, 0.08);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.briefing-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: briefing;
}

.briefing-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.briefing-item::before {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
  content: counter(briefing);
  counter-increment: briefing;
  font-weight: 900;
}

.item-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
}

.item-summary {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  min-height: 24px;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
}

.stale-tag {
  border-color: rgba(240, 197, 106, 0.42);
  color: var(--gold);
  background: rgba(240, 197, 106, 0.08);
}

.stacked-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  border-left: 3px solid var(--accent-strong);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--panel-soft);
}

.mini-card.sports {
  border-left-color: var(--gold);
}

.mini-card.cyber {
  border-left-color: var(--red);
}

.mini-card.news {
  border-left-color: var(--blue);
}

.mini-card h3 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.35;
}

.mini-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.mini-card .meta-line {
  color: #c2cad5;
  font-size: 0.8rem;
  font-weight: 700;
}

.mini-card .source-line {
  color: var(--muted);
  font-size: 0.74rem;
}

.source-line a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.source-line a:hover {
  text-decoration: underline;
}

.compact .mini-card {
  min-height: 112px;
}

.newsletter-panel {
  margin-bottom: 24px;
}

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

.newsletter-card {
  min-height: 172px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel-soft);
}

.newsletter-card.important {
  border-color: rgba(240, 197, 106, 0.55);
  box-shadow: inset 3px 0 0 var(--gold);
}

.newsletter-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.newsletter-card .newsletter-source {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.newsletter-card .newsletter-source:hover {
  color: var(--accent);
  text-decoration: underline;
}

.newsletter-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.newsletter-card a {
  color: var(--text);
  text-decoration-color: rgba(120, 211, 184, 0.55);
  text-underline-offset: 3px;
}

.newsletter-card a:hover {
  color: var(--accent);
}

@media (max-width: 880px) {
  .hero,
  .briefing-grid,
  .lower-grid,
  .newsletter-grid {
    grid-template-columns: 1fr;
  }

  .flight-ticker {
    align-items: flex-start;
    flex-direction: column;
  }

  .flight-ticker-meta {
    justify-content: flex-start;
  }

  .today-panel {
    min-height: 130px;
  }
}

@media (max-width: 540px) {
  .dashboard {
    width: min(100% - 20px, 1180px);
    padding: 20px 0;
  }

  .panel,
  .today-panel {
    padding: 16px;
  }

  .briefing-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .briefing-item::before {
    width: 34px;
    height: 34px;
  }
}
