:root {
  --bg: #090819;
  --bg-deep: #050511;
  --sidebar: rgba(13, 12, 36, 0.97);
  --panel: rgba(27, 23, 66, 0.82);
  --panel-strong: #211c55;
  --panel-soft: rgba(42, 35, 94, 0.58);
  --line: rgba(154, 131, 255, 0.2);
  --line-strong: rgba(154, 131, 255, 0.42);
  --text: #f6f5ff;
  --muted: #a8a3c8;
  --muted-strong: #c4bfdf;
  --purple: #8c73ff;
  --purple-bright: #ab8cff;
  --cyan: #59dce9;
  --pink: #ff628f;
  --orange: #ff9d68;
  --lime: #bbef7a;
  --danger: #ff6b7e;
  --success: #65e2a8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --panel-shadow: 0 16px 45px rgba(4, 3, 18, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% -10%, rgba(110, 78, 255, 0.2), transparent 34rem),
    radial-gradient(circle at 45% 42%, rgba(56, 79, 171, 0.1), transparent 32rem),
    linear-gradient(145deg, var(--bg-deep) 0%, #0b0a21 46%, #0d0c27 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(130, 110, 218, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 110, 218, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 0.74rem 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #6651d8);
  box-shadow: 0 8px 20px rgba(108, 81, 216, 0.24);
  font-weight: 760;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover {
  box-shadow: 0 12px 26px rgba(108, 81, 216, 0.34);
  transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(89, 220, 233, 0.42);
  outline-offset: 2px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2,
strong,
.metric-value {
  font-variant-numeric: tabular-nums;
}

/* Authentication */

.login-page {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: linear-gradient(145deg, #060515, #0f0e2d);
}

.login-page::before {
  background-image:
    linear-gradient(rgba(153, 128, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 128, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000, transparent 65%);
}

.login-shell {
  width: min(100%, 360px);
}

.login-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(20, 17, 52, 0.94);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--purple-bright), #5c46ce);
  box-shadow: 0 10px 30px rgba(116, 84, 231, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.brand-mark-small {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 0.82rem;
}

.eyebrow {
  margin: 1.5rem 0 0.45rem;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.login-card h1 {
  margin-bottom: 1.5rem;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.login-intro,
.heading-copy,
.card-note {
  color: var(--muted);
  line-height: 1.58;
}

.form-error,
.filter-error {
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(255, 107, 126, 0.3);
  border-left: 3px solid var(--danger);
  border-radius: 8px;
  color: #ffc0c9;
  background: rgba(139, 32, 55, 0.2);
  font-weight: 650;
}

.form-error {
  margin: 1.25rem 0 0;
}

.login-form {
  display: grid;
  gap: 0.58rem;
}

.login-form label,
.filter-field label,
.chart-metric-control {
  color: var(--muted-strong);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-form input,
.filter-field input,
.filter-field select,
.chart-metric-control select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.74rem 0.82rem;
  color: var(--text);
  background: rgba(7, 7, 27, 0.62);
  color-scheme: dark;
  transition: border-color 160ms ease, background 160ms ease;
}

.login-form input:hover,
.filter-field input:hover,
.filter-field select:hover,
.chart-metric-control select:hover {
  border-color: var(--line-strong);
  background: rgba(9, 9, 34, 0.82);
}

.login-form input {
  margin-bottom: 0.55rem;
}

.login-form button {
  min-height: 46px;
  margin-top: 0.55rem;
}

/* Sidebar */

.topbar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: 232px;
  flex-direction: column;
  padding: 1.45rem 1.15rem;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(22, 18, 59, 0.98), rgba(9, 8, 27, 0.98)),
    var(--sidebar);
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.3rem 0.35rem;
  color: var(--text);
  text-decoration: none;
}

.brand > span:last-child {
  display: grid;
  gap: 0.08rem;
}

.brand strong {
  font-size: 0.91rem;
  letter-spacing: 0.015em;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 0.38rem;
  margin-top: 3rem;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.78rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.81rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.side-nav a span {
  color: #726aa3;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.side-nav a:hover,
.side-nav a.is-active {
  border-color: rgba(139, 112, 255, 0.22);
  color: #fff;
  background: linear-gradient(90deg, rgba(126, 94, 245, 0.24), rgba(126, 94, 245, 0.05));
}

.side-nav a.is-active::after {
  width: 5px;
  height: 5px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  content: "";
}

.sidebar-footer {
  display: grid;
  gap: 0.85rem;
  margin-top: auto;
}

.live-status,
.workspace-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 700;
}

.live-status {
  padding: 0.75rem 0.78rem;
  border: 1px solid rgba(101, 226, 168, 0.16);
  border-radius: 9px;
  background: rgba(31, 113, 80, 0.1);
}

.live-status > span,
.workspace-chip > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(101, 226, 168, 0.8);
}

.secondary-button {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.secondary-button:hover {
  border-color: var(--line-strong);
  color: #fff;
  background: rgba(139, 112, 255, 0.1);
  box-shadow: none;
}

/* Main workspace */

.dashboard-shell {
  width: auto;
  max-width: 1780px;
  min-height: 100vh;
  margin-left: 232px;
  padding: 2.35rem clamp(1.5rem, 3.3vw, 3.8rem) 5rem;
}

.overview-heading,
.section-heading,
.account-banner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.overview-heading .eyebrow,
.section-heading .eyebrow,
.coverage-panel .eyebrow {
  margin-top: 0;
}

.overview-heading h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.heading-copy {
  margin-bottom: 0;
}

.workspace-chip {
  flex: 0 0 auto;
  padding: 0.68rem 0.85rem;
  border: 1px solid rgba(101, 226, 168, 0.18);
  border-radius: 999px;
  background: rgba(41, 120, 87, 0.1);
}

/* Filter command bar */

.filter-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) repeat(5, minmax(108px, 1fr)) auto;
  gap: 0.7rem;
  align-items: end;
  margin-top: 1.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(32, 27, 76, 0.9), rgba(18, 16, 48, 0.88));
  box-shadow: var(--panel-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.filter-field {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.filter-field input:disabled {
  color: #6d6887;
  background: rgba(4, 4, 15, 0.42);
  cursor: not-allowed;
}

.apply-button {
  min-height: 44px;
  background: linear-gradient(135deg, var(--purple-bright), #6e54e5);
}

.filter-error {
  margin: 0.8rem 0 0;
}

/* Account and freshness */

.account-banner {
  position: relative;
  overflow: hidden;
  align-items: center;
  margin-top: 1.15rem;
  padding: 1.4rem 1.55rem;
  border: 1px solid rgba(148, 118, 255, 0.38);
  border-radius: 14px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 98, 143, 0.18), transparent 19rem),
    linear-gradient(110deg, rgba(80, 57, 169, 0.76), rgba(32, 25, 84, 0.92) 58%, rgba(23, 20, 62, 0.92));
  box-shadow: 0 16px 45px rgba(7, 5, 28, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.account-banner::after {
  position: absolute;
  top: -70px;
  right: 8%;
  width: 170px;
  height: 170px;
  border: 26px solid rgba(89, 220, 233, 0.08);
  border-radius: 50%;
  content: "";
}

.account-banner h2 {
  position: relative;
  z-index: 1;
  margin: 0.42rem 0 0;
  font-size: 1.72rem;
  letter-spacing: -0.04em;
}

.platform-badge {
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.banner-context {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.28rem;
  text-align: right;
}

.banner-context strong {
  font-size: 0.92rem;
}

.banner-context span {
  color: var(--muted-strong);
  font-size: 0.77rem;
}

.freshness-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.freshness-strip > div {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1.05rem 0.95rem 1.22rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(23, 20, 59, 0.68);
}

.freshness-strip > div::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--cyan);
  content: "";
  opacity: 0.75;
}

.freshness-strip > div:nth-child(2)::before {
  background: var(--orange);
}

.freshness-strip > div:nth-child(3)::before {
  background: var(--purple-bright);
}

.freshness-strip span,
.card-label,
.coverage-counts dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.freshness-strip strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sections and metrics */

.section-heading {
  margin-top: 3rem;
}

.section-heading-compact {
  margin-top: 0;
}

.section-heading h2,
.coverage-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  letter-spacing: -0.042em;
}

.section-heading > p {
  width: min(100%, 470px);
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: right;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.metric-card {
  position: relative;
  min-height: 158px;
  overflow: hidden;
  padding: 1.3rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(35, 29, 81, 0.88), rgba(21, 18, 56, 0.88));
  box-shadow: var(--panel-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 180ms ease, border-color 180ms ease;
}

.metric-card:hover {
  border-color: rgba(154, 131, 255, 0.36);
  transform: translateY(-2px);
}

.metric-card::before {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-bright);
  box-shadow: 0 0 16px rgba(171, 140, 255, 0.82);
  content: "";
}

.metric-card:nth-child(2)::before {
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(89, 220, 233, 0.82);
}

.metric-card:nth-child(3)::before {
  background: var(--pink);
  box-shadow: 0 0 16px rgba(255, 98, 143, 0.78);
}

.metric-card:nth-child(4)::before {
  background: var(--orange);
  box-shadow: 0 0 16px rgba(255, 157, 104, 0.78);
}

.metric-card:nth-child(5)::before {
  background: var(--lime);
  box-shadow: 0 0 16px rgba(187, 239, 122, 0.68);
}

.metric-card-primary {
  border-color: rgba(89, 220, 233, 0.28);
  background:
    radial-gradient(circle at 90% 10%, rgba(89, 220, 233, 0.13), transparent 9rem),
    linear-gradient(145deg, rgba(33, 49, 100, 0.92), rgba(24, 22, 64, 0.9));
}

.metric-card-money {
  border-color: rgba(255, 157, 104, 0.3);
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 157, 104, 0.14), transparent 10rem),
    linear-gradient(145deg, rgba(61, 37, 82, 0.92), rgba(24, 20, 60, 0.9));
}

.metric-card-money::before {
  background: var(--orange);
  box-shadow: 0 0 16px rgba(255, 157, 104, 0.78);
}

.card-label {
  margin-bottom: 1.25rem;
}

.metric-value {
  margin-bottom: 0.55rem;
  font-size: clamp(2rem, 3.2vw, 2.65rem);
  font-weight: 860;
  line-height: 1;
  letter-spacing: -0.045em;
}

.card-note {
  margin-bottom: 0;
  font-size: 0.76rem;
}

.coverage-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(410px, 0.8fr);
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  margin-top: 0.85rem;
  padding: 1.55rem;
  border: 1px solid rgba(140, 115, 255, 0.28);
  border-radius: 13px;
  background:
    radial-gradient(circle at 10% 110%, rgba(89, 220, 233, 0.12), transparent 22rem),
    linear-gradient(125deg, rgba(45, 35, 102, 0.82), rgba(23, 19, 63, 0.88));
  box-shadow: var(--panel-shadow);
}

.coverage-copy > p:last-child {
  max-width: 620px;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.coverage-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 0;
}

.coverage-counts div {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 6, 26, 0.28);
}

.coverage-counts dd {
  margin: 0.5rem 0 0;
  font-size: 1.55rem;
  font-weight: 850;
}

/* Analysis cards */

.analysis-section {
  scroll-margin-top: 2rem;
  margin-top: 3.25rem;
}

.chart-metric-control {
  display: grid;
  min-width: 210px;
  gap: 0.42rem;
}

.chart-metric-control select {
  letter-spacing: normal;
  text-transform: none;
}

.chart-card,
.table-card,
.editorial-coverage,
.pattern-panel {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(31, 26, 74, 0.84), rgba(18, 16, 49, 0.88));
  box-shadow: var(--panel-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.chart-card {
  position: relative;
  min-height: 425px;
  padding: 1.35rem 1.35rem 3.7rem;
}

.chart-card canvas {
  width: 100% !important;
  height: 340px !important;
  filter: drop-shadow(0 8px 18px rgba(104, 78, 224, 0.08));
}

.chart-note {
  position: absolute;
  right: 1.35rem;
  bottom: 0.95rem;
  left: 1.35rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.45;
}

/* Tables */

.table-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(139, 112, 255, 0.5) rgba(7, 6, 25, 0.35);
}

.table-card,
.pattern-panel {
  overflow: hidden;
}

.performance-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.performance-table th,
.performance-table td {
  padding: 0.92rem 0.95rem;
  border-bottom: 1px solid rgba(154, 131, 255, 0.11);
  text-align: right;
  vertical-align: top;
  white-space: nowrap;
}

.performance-table th:first-child,
.performance-table td:first-child {
  text-align: left;
}

.performance-table thead th {
  color: var(--muted);
  background: rgba(9, 8, 31, 0.5);
  font-size: 0.62rem;
  font-weight: 830;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.performance-table tbody th {
  color: var(--muted-strong);
}

.performance-table tbody tr:last-child > * {
  border-bottom: 0;
}

.performance-table tbody tr {
  transition: background 140ms ease;
}

.performance-table tbody tr:hover {
  background: rgba(113, 85, 225, 0.09);
}

.format-badge,
.maturity-badge,
.taxonomy-tags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 790;
  line-height: 1;
  white-space: nowrap;
}

.format-badge {
  padding: 0.43rem 0.62rem;
  border-color: rgba(89, 220, 233, 0.22);
  color: #9af0f6;
  background: rgba(38, 142, 154, 0.13);
}

.format-image {
  border-color: rgba(255, 157, 104, 0.22);
  color: #ffc19d;
  background: rgba(171, 82, 39, 0.14);
}

.format-video {
  border-color: rgba(255, 98, 143, 0.22);
  color: #ff9bb7;
  background: rgba(161, 43, 80, 0.14);
}

.format-other {
  border-color: var(--line);
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.035);
}

/* Editorial */

.editorial-coverage {
  display: grid;
  grid-template-columns: auto minmax(190px, 0.5fr) minmax(300px, 1fr);
  gap: 1.4rem;
  align-items: center;
  padding: 1.15rem 1.3rem;
}

.editorial-coverage > div {
  display: grid;
  gap: 0.25rem;
}

.editorial-coverage span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editorial-coverage strong {
  font-size: 1.48rem;
}

.editorial-coverage progress {
  width: 100%;
  height: 0.68rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 6, 26, 0.55);
}

.editorial-coverage progress::-webkit-progress-bar {
  background: rgba(7, 6, 26, 0.55);
}

.editorial-coverage progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  box-shadow: 0 0 16px rgba(89, 220, 233, 0.32);
}

.editorial-coverage progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}

.editorial-coverage > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.pattern-tabs {
  display: flex;
  gap: 0.48rem;
  overflow-x: auto;
  margin-top: 1rem;
  padding-bottom: 0.2rem;
}

.pattern-tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  padding: 0.62rem 0.88rem;
  color: var(--muted);
  background: rgba(26, 22, 63, 0.7);
  box-shadow: none;
  font-size: 0.74rem;
}

.pattern-tab:hover,
.pattern-tab.is-active {
  border-color: rgba(89, 220, 233, 0.32);
  color: #fff;
  background: linear-gradient(135deg, rgba(116, 87, 224, 0.72), rgba(57, 97, 162, 0.62));
  box-shadow: 0 7px 18px rgba(68, 53, 164, 0.2);
}

.pattern-panel[hidden] {
  display: none;
}

.panel-empty,
.empty-state {
  margin: 1rem 0 0;
  padding: 1.4rem;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(24, 20, 59, 0.48);
  line-height: 1.5;
}

.pattern-panel .panel-empty {
  margin: 0;
  border: 0;
  background: transparent;
}

/* Top posts */

.top-posts-table {
  min-width: 1280px;
}

.top-posts-table .post-date {
  color: var(--muted);
  font-size: 0.73rem;
}

.top-posts-table .post-copy {
  width: 380px;
  min-width: 380px;
  text-align: left;
  white-space: normal;
}

.post-copy > a {
  color: #a9edf2;
  font-weight: 720;
  line-height: 1.48;
  text-decoration-color: rgba(89, 220, 233, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.post-copy > a:hover {
  color: #d6fbfd;
}

.taxonomy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 0.62rem;
}

.taxonomy-tags span {
  padding: 0.33rem 0.48rem;
  border-color: rgba(154, 131, 255, 0.13);
  color: #aaa4cf;
  background: rgba(117, 91, 207, 0.09);
}

.maturity-badge {
  padding: 0.4rem 0.58rem;
  border-color: rgba(101, 226, 168, 0.2);
  color: #93efc1;
  background: rgba(37, 132, 92, 0.12);
}

.maturity-waiting {
  border-color: rgba(255, 157, 104, 0.22);
  color: #ffc19d;
  background: rgba(171, 82, 39, 0.12);
}

.maturity-historical_gap {
  border-color: rgba(255, 107, 126, 0.2);
  color: #ffabb7;
  background: rgba(155, 44, 67, 0.12);
}

.empty-state {
  margin-top: 2rem;
  text-align: center;
}

/* Responsive layouts */

@media (max-width: 1180px) {
  .filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .apply-button {
    width: 100%;
  }

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

  .coverage-panel {
    grid-template-columns: 1fr;
  }

  .editorial-coverage {
    grid-template-columns: auto minmax(190px, 0.65fr);
  }

  .editorial-coverage > p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .topbar {
    position: sticky;
    inset: 0;
    display: flex;
    width: 100%;
    min-height: auto;
    flex-flow: row wrap;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem 0.65rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    margin-right: auto;
  }

  .side-nav {
    order: 3;
    display: flex;
    width: 100%;
    gap: 0.35rem;
    overflow-x: auto;
    margin-top: 0;
    padding-bottom: 0.1rem;
  }

  .side-nav a {
    flex: 0 0 auto;
    padding: 0.55rem 0.7rem;
  }

  .side-nav a.is-active::after,
  .live-status {
    display: none;
  }

  .sidebar-footer {
    display: block;
    margin-top: 0;
  }

  .sidebar-footer .secondary-button {
    width: auto;
    padding: 0.58rem 0.75rem;
  }

  .dashboard-shell {
    margin-left: 0;
    padding-top: 1.8rem;
  }
}

@media (max-width: 680px) {
  .dashboard-shell {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .overview-heading,
  .section-heading,
  .account-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 0.9rem;
  }

  .workspace-chip {
    align-self: flex-start;
  }

  .filter-panel,
  .metric-grid,
  .freshness-strip,
  .editorial-coverage {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    gap: 0.65rem;
  }

  .banner-context,
  .section-heading > p {
    width: 100%;
    text-align: left;
  }

  .coverage-panel {
    gap: 1.25rem;
  }

  .coverage-counts {
    grid-template-columns: repeat(3, 1fr);
  }

  .coverage-counts div {
    padding: 0.75rem 0.55rem;
  }

  .coverage-counts dd {
    font-size: 1.3rem;
  }

  .chart-metric-control {
    width: 100%;
  }

  .chart-card {
    min-height: 385px;
    padding: 1rem 1rem 4.5rem;
  }

  .chart-card canvas {
    height: 300px !important;
  }

  .editorial-coverage > p {
    grid-column: auto;
  }

  .performance-table th,
  .performance-table td {
    padding: 0.78rem;
  }
}

@media (max-width: 430px) {
  .brand small,
  .side-nav a span {
    display: none;
  }

  .side-nav a {
    font-size: 0.72rem;
  }

  .overview-heading h1 {
    font-size: 2rem;
  }

  .metric-value {
    font-size: 2.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
