:root {
  --page-bg: #ecf2f8;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --text: #1f2d45;
  --muted: #6c7a92;
  --line: rgba(34, 60, 112, 0.10);
  --blue: #3f7bf5;
  --blue-dark: #2663d8;
  --green: #81e7a8;
  --shadow: 0 18px 38px rgba(22, 38, 70, 0.12);
  --shadow-soft: 0 10px 20px rgba(22, 38, 70, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(63, 123, 245, 0.13), transparent 32%),
    radial-gradient(circle at top right, rgba(129, 231, 168, 0.13), transparent 28%),
    var(--page-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  padding: 0;
}

a {
  color: inherit;
}

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  background: linear-gradient(180deg, #3e79f1 0%, #3771e6 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(36, 76, 156, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8df2c0, #67d5ff);
  color: #18416b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
}

.top-action {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
  gap: 18px;
  margin-top: 18px;
}

.hero,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero {
  padding: 18px;
  margin-top: 18px;
}

.hero-topline {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.hero-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8df2c0, #67d5ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #14406d;
  font-size: 24px;
  font-weight: 900;
  flex: 0 0 auto;
}

.hero-copy {
  flex: 1 1 auto;
}

.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
}

.subhead {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 760px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.cta-row.compact {
  margin-top: 4px;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn.primary {
  background: linear-gradient(135deg, #63a3ff, #5a7dff);
  color: #10243f;
}

.btn.secondary {
  background: linear-gradient(135deg, #c8ffd8, #93f0b1);
  color: #16311f;
}

.btn.ghost {
  background: #f1f5fb;
  border: 1px solid var(--line);
  color: var(--text);
}

.meta-line {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.ref-line {
  margin-top: 8px;
  font-size: 13px;
  color: #b7791f;
}

.loading-state,
.error-state {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.loading-state {
  background: #edf4ff;
  color: #36508b;
}

.error-state {
  background: #fff4f2;
  color: #a03b2b;
}

.timeline {
  display: grid;
  gap: 18px;
}

.feed-card,
.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feed-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.preview-media {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.10)),
    linear-gradient(135deg, #dbe7ff, #f5f8ff 40%, #d6ffe7 100%);
}

.promo-banner-wrap {
  padding: 14px;
  background: linear-gradient(180deg, #edf4ff 0%, #f9fbff 100%);
  border-bottom: 1px solid rgba(63, 123, 245, 0.10);
}

.promo-banner-wrap.compact {
  padding: 10px;
  background: linear-gradient(180deg, #edf4ff 0%, #f9fbff 100%);
  border-bottom: 0;
  border-radius: 16px;
  margin: 0 0 12px;
}

.promo-banner-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(63, 123, 245, 0.12);
  box-shadow: 0 12px 24px rgba(20, 35, 60, 0.12);
}

.preview-media img,
.preview-media video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: cover;
}

.preview-media .placeholder {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  text-align: center;
  color: #4f5e78;
  font-weight: 700;
}

.preview-body {
  padding: 16px;
}

.preview-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff5ff;
  color: #48608f;
  border: 1px solid rgba(63, 123, 245, 0.14);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.preview-title {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.12;
  color: var(--text);
}

.preview-subtitle {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.preview-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.stat {
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: 16px;
  padding: 12px;
}

.stat .value {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
}

.stat .label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.side {
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 16px;
}

.side-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.side-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  padding: 12px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid var(--line);
}

.list-item .topline {
  font-weight: 800;
  margin-bottom: 4px;
}

.list-item .bottomline {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .content-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    padding: 0 12px 18px;
  }

  .topbar-inner {
    padding: 0 12px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero {
    padding: 16px;
  }

  .hero-topline {
    gap: 12px;
  }

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

  .cta-row {
    gap: 10px;
  }

  .btn {
    width: 100%;
  }
}
