:root {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --app-display-font: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --app-ink: #0b1f2a;
  --app-muted: #5b6b7c;
  --app-accent: #0f766e;
  --app-accent-2: #d97706;
  --app-surface: #ffffff;
  --app-surface-soft: #f8fafc;
  --app-border: #dbe2ea;
  --app-border-strong: #cbd5f5;
  --app-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --app-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
  --app-radius: 18px;
  --app-radius-sm: 12px;
  line-height: 1.6;
  color: var(--app-ink);
  background-color: #f3f6fb;
}

body {
  margin: 0;
  color: var(--app-ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(15, 118, 110, 0.08), transparent 40%),
    radial-gradient(circle at 88% 4%, rgba(217, 119, 6, 0.08), transparent 38%),
    linear-gradient(160deg, #f5f7fb 0%, #eef2f7 45%, #f8fafc 100%);
}

h1,
h2,
h3 {
  font-family: var(--app-display-font);
  letter-spacing: -0.02em;
  color: var(--app-ink);
}

h1 {
  font-weight: 700;
}

h2 {
  font-weight: 600;
}

h4 {
  color: #0b2a5f;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--app-accent);
  text-decoration: none;
}

a:hover {
  color: #0c5f58;
  text-decoration: underline;
}

main {
  padding-bottom: 40px;
}

section {
  margin: 32px 0;
}

.section-gap {
  margin: 32px 0;
}

.home-section {
  padding: 32px 0;
}

@media (min-width: 992px) {
  .home-section {
    padding: 48px 0;
  }
}

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

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.page-header h1,
.page-header h2 {
  margin: 0;
}

.page-header .btn {
  white-space: nowrap;
}

.settings-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--app-shadow);
  overflow: hidden;
}

.settings-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(15, 118, 110, 0.08), transparent 48%),
    radial-gradient(circle at 90% 0%, rgba(217, 119, 6, 0.06), transparent 42%);
  opacity: 0.6;
  pointer-events: none;
}

.settings-card > :not(.modal) {
  position: relative;
}

.trend-console.settings-card::before {
  display: none;
}

.development-summary {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #0f172a;
  white-space: pre-line;
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

@media (max-width: 992px) {
  .mobile-only {
    display: block !important;
  }

  .desktop-only {
    display: none !important;
  }

  .settings-card {
    padding: 18px;
    border-radius: 16px;
  }

  .take-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .take-toolbar .btn {
    width: 100%;
  }

  .take-form textarea {
    min-height: 220px;
    font-size: 1rem;
  }

  .dev-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px 14px 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    position: relative;
  }

  .dev-card-hot {
    background: #ffe5e5;
    border-color: #f5bcbc;
  }

  .dev-card-muted {
    background: #f8f9fb;
  }

  .dev-title {
    font-weight: 600;
    font-size: 1.02rem;
    color: #0b2350;
  }

  .dev-score {
    color: #64748b;
    margin-left: 6px;
    font-size: 0.88rem;
  }

  .dev-subtitle {
    margin-top: 4px;
  }

  .dev-section {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #eef2f7;
  }

  .dev-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .dev-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #475569;
  }

  .dev-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
  }

  .mobile-details {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 10px;
    background: #fff;
  }

  .mobile-details summary {
    font-weight: 600;
    cursor: pointer;
    color: #0b2350;
  }

  .page-header {
    align-items: flex-start;
  }

  .page-header .btn {
    width: 100%;
  }
}

.development-summary strong {
  color: #0b2350;
  font-weight: 700;
}

.settings-header h2 {
  margin: 0 0 6px;
}

.settings-header p {
  margin: 0 0 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-grid-tight {
  margin-bottom: 8px;
}

.form-grid-spaced {
  margin-top: 12px;
}

.field-required {
  color: #b42318;
  font-weight: 600;
  font-size: 0.85rem;
}

.field-optional {
  color: #64748b;
  font-weight: 500;
  font-size: 0.85rem;
}

.form-field label {
  font-weight: 700;
  color: var(--app-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  background: var(--app-surface-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control,
.form-select,
textarea {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: var(--app-surface-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
  outline: none;
  background: #ffffff;
}

.form-field.new-option-field label {
  color: #b45309;
}

.form-field.new-option-field select {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fff7ed 0%, #fffdf7 100%);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.field-help {
  font-size: 12px;
  color: #6b7280;
  margin-top: -2px;
}

.toggle-list {
  display: grid;
  gap: 12px;
  margin: 8px 0 16px;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.9rem;
}

.toggle-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 32px;
  margin-top: 16px;
}

.server-time {
  line-height: 1.1;
}

.server-time-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  font-weight: 600;
}

.server-time-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--app-ink);
}

.btn {
  border-radius: var(--app-radius-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
}

.btn-primary {
  background: var(--app-accent);
  border-color: var(--app-accent);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.2);
}

.btn-primary:hover {
  background: #0c5f58;
  border-color: #0c5f58;
}

.btn-outline-secondary {
  color: var(--app-ink);
  border-color: var(--app-border-strong);
  background: rgba(255, 255, 255, 0.8);
}

.btn-outline-secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: var(--app-ink);
}

.btn-outline-primary {
  color: var(--app-accent);
  border-color: rgba(15, 118, 110, 0.4);
  background: rgba(255, 255, 255, 0.9);
}

.btn-outline-primary:hover {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.6);
  color: var(--app-accent);
}

.btn-outline-danger {
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.4);
  background: rgba(255, 255, 255, 0.9);
}

.btn-outline-danger:hover {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.6);
  color: #b91c1c;
}

.btn-outline-success {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.4);
  background: rgba(255, 255, 255, 0.9);
}

.btn-outline-success:hover {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.6);
  color: #0f766e;
}

.table {
  border-collapse: separate;
  border-spacing: 0 12px;
}

.table > :not(caption) > * > * {
  background: transparent;
}

.table thead th {
  border-bottom: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--app-muted);
  padding: 6px 12px;
}

.table tbody tr {
  background: #ffffff;
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow-soft);
}

.table tbody td {
  border-top: none;
  padding: 14px 12px;
  vertical-align: top;
}

.table tbody tr td:first-child {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.table tbody tr td:last-child {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.badge {
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
}

.badge.bg-light {
  background: #f1f5f9 !important;
  color: var(--app-muted) !important;
  border: 1px solid var(--app-border);
}

.dropdown-menu {
  border-radius: 14px;
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow-soft);
  padding: 8px;
}

.dropdown-item {
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
}

.dropdown-item:hover {
  background: rgba(15, 118, 110, 0.1);
  color: var(--app-ink);
}

.nav-link {
  font-weight: 600;
  color: var(--app-muted);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--app-ink);
}

.auth-card form p {
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-card label {
  font-weight: 700;
  color: var(--app-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.danger-zone {
  border-color: #fecaca;
  background: #fff7f7;
}

.danger-zone .settings-header h2 {
  color: #b42318;
}

.danger-form {
  border-top: 1px solid #fee2e2;
  padding-top: 16px;
  margin-top: 16px;
}

.danger-actions {
  margin-top: 16px;
}

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

.flash {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-weight: 600;
}

.flash.info {
  background: #e0f2fe;
  color: #0f172a;
  border: 1px solid #bae6fd;
}

.flash.success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.flash.warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.flash.error,
.flash.danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecdd3;
}

.topbar {
  /* Ensure dropdown menus render above main content. */
  position: relative;
  z-index: 1030;
  border-bottom: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}

.brand {
  font-weight: 700;
  color: var(--app-ink);
  letter-spacing: -0.01em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--app-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 32px 0;
  margin-top: 32px;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f172a;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.footer-links a {
  color: #1f2937;
}

.muted {
  color: #6b7280;
}

.flex-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.space-between {
  justify-content: space-between;
  align-items: center;
}

.trend-console {
  --trend-ink: var(--app-ink);
  --trend-muted: var(--app-muted);
  --trend-accent: var(--app-accent);
  --trend-accent-2: var(--app-accent-2);
  --trend-surface: var(--app-surface);
  position: relative;
  overflow: hidden;
  border: 1px solid #dbe2ea;
  background: #f8fafc;
}

.trend-console::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(15, 118, 110, 0.12), transparent 48%),
    radial-gradient(circle at 84% 6%, rgba(217, 119, 6, 0.12), transparent 44%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0));
  pointer-events: none;
}

.trend-console::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.03),
    rgba(15, 23, 42, 0.03) 1px,
    transparent 1px,
    transparent 12px
  );
  opacity: 0.55;
  pointer-events: none;
}

.trend-console > * {
  position: relative;
  z-index: 1;
}

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

.trend-console__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--trend-muted);
}

.trend-console__title {
  margin: 6px 0 4px;
  font-size: 1.6rem;
  color: var(--trend-ink);
}

.trend-console__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--trend-muted);
  font-size: 0.88rem;
}

.trend-meta-sep {
  color: #cbd5f5;
}

.trend-console__status {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
  min-width: 220px;
}

.trend-status {
  font-weight: 600;
  color: var(--trend-ink);
  font-size: 0.95rem;
}

.trend-status-sub {
  font-size: 0.8rem;
  color: var(--trend-muted);
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-weight: 600;
  font-size: 0.78rem;
}

.trend-badge--soft {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.trend-console__tabs,
.trend-console__subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.trend-tab,
.trend-subtab {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--trend-muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.trend-tab--active {
  background: var(--trend-accent);
  border-color: var(--trend-accent);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.2);
}

.trend-subtab--active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.trend-console__clusters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 16px;
}

.trend-cluster {
  background: rgba(15, 23, 42, 0.08);
  border: 1px dashed rgba(15, 23, 42, 0.2);
  color: var(--trend-ink);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
}

.trend-cluster.is-clickable {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.trend-cluster.is-clickable:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.12);
}

.trend-cluster.is-active {
  border-style: solid;
  border-color: rgba(15, 118, 110, 0.5);
  background: rgba(15, 118, 110, 0.14);
}

.trend-cluster--placeholder {
  color: var(--trend-muted);
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(248, 250, 252, 0.8);
}

.trend-console__body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
}

.trend-list {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
}

.trend-list__header {
  display: grid;
  grid-template-columns: 60px 1fr 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--trend-muted);
  margin-bottom: 10px;
}

.trend-row {
  display: grid;
  grid-template-columns: 52px 1fr 100px;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  animation: trendFade 0.5s ease both;
}

.trend-row.is-clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.trend-row.is-clickable:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.12);
}

.trend-row.is-active {
  border-color: var(--app-accent);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.18);
}

.trend-row + .trend-row {
  margin-top: 12px;
}

.trend-row--placeholder {
  opacity: 0.74;
}

.trend-row__rank {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 4px;
}

.trend-row__label {
  font-weight: 700;
  color: var(--trend-ink);
  font-size: 1rem;
}

.trend-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.trend-chip {
  background: #eef2f7;
  border: 1px solid #e2e8f0;
  color: #1f2937;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}

.trend-metric {
  font-size: 0.78rem;
  color: var(--trend-muted);
  font-weight: 600;
}

.trend-row__excerpt {
  color: #374151;
  font-size: 0.86rem;
  line-height: 1.5;
}

.trend-row__score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.trend-score {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--trend-ink);
}

.trend-delta {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trend-delta--up {
  color: #0f766e;
}

.trend-delta--flat {
  color: #64748b;
}

.trend-delta--down {
  color: #b91c1c;
}

.trend-sparkline {
  width: 90px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(15, 118, 110, 0.15) 0%,
    rgba(15, 118, 110, 0.65) 50%,
    rgba(15, 118, 110, 0.15) 100%
  );
  position: relative;
  overflow: hidden;
}

.trend-sparkline::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-top: 2px solid rgba(15, 118, 110, 0.9);
  border-right: 2px solid rgba(15, 118, 110, 0.9);
  transform: skewX(-20deg);
}

.trend-sparkline--placeholder {
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.2) 0%,
    rgba(148, 163, 184, 0.6) 50%,
    rgba(148, 163, 184, 0.2) 100%
  );
}

.trend-detail {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.trend-detail__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--trend-muted);
}

.trend-detail__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--trend-ink);
}

.trend-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.trend-metric-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
}

.trend-metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--trend-muted);
  font-weight: 700;
}

.trend-metric-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--trend-ink);
  margin-top: 4px;
}

.trend-metric-sub {
  font-size: 0.78rem;
  color: var(--trend-muted);
}

.trend-detail__posts {
  display: grid;
  gap: 10px;
}

.trend-post {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
}

.trend-post__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--trend-muted);
  margin-bottom: 6px;
}

.trend-post__badge {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.trend-post__text {
  font-size: 0.86rem;
  color: #374151;
  line-height: 1.5;
}

.trend-detail__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

@keyframes trendFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .trend-console__body {
    grid-template-columns: 1fr;
  }

  .trend-list__header {
    grid-template-columns: 44px 1fr 70px;
  }

  .trend-row {
    grid-template-columns: 44px 1fr;
  }

  .trend-row__score {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    grid-column: 2 / -1;
  }

  .trend-sparkline {
    width: 70px;
  }
}

.trends-widget {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  padding: 14px;
  box-shadow: var(--app-shadow-soft);
}

.trends-widget__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.trends-widget__title {
  font-weight: 600;
  color: #0b2350;
}

.trends-widget__frame {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
}

.trends-widget__frame--tall {
  height: 520px;
}

@media (max-width: 992px) {
  .trends-widget__frame {
    height: 520px;
  }

  .trends-widget__frame--tall {
    height: 640px;
  }
}
