:root {
  --bg: #000000; /* black */
  --panel: #1a1a1a; /* dark grey (slightly lighter for contrast) */
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #22d3ee;
  --accent-2: #60a5fa;
  --home-top-card-height: 240px;
  --home-article-card-height: 390px;
}
@media (max-width: 960px) {
  :root {
    --home-top-card-height: 220px;
    --home-article-card-height: 364px;
  }
}
@media (max-width: 680px) {
  :root {
    --home-top-card-height: 200px;
    --home-article-card-height: 332px;
  }
}

/* Minimal bootstrap spinner support */
@keyframes spinner-border {
  to { transform: rotate(360deg); }
}
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: -0.125em;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border .75s linear infinite;
}
.spinner-border-sm {
  width: 1.25rem;
  height: 1.25rem;
  border-width: 0.2em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

html {
  min-height: 100%;
}

body.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 840px;
  margin: 0 auto;
  padding: 1rem;
}

.site-header, .site-footer {
  background: #0a0a0a; /* near black header/footer */
  border-bottom: 1px solid #1f2937;
}
.site-header {
  cursor: default;
  position: sticky;
  top: 0;
  z-index: 1300;
}
.site-header a,
.site-header button,
.site-header .menu-dropdown > .menu-link,
.site-header .auth-user {
  cursor: pointer;
}
.site-header input,
.site-header textarea {
  cursor: text;
}

.site-main {
  flex: 1 0 auto;
}
.site-footer {
  border-top: 1px solid #1f2937;
  border-bottom: none;
  cursor: default;
}
.site-footer a,
.site-footer button {
  cursor: pointer;
}
.site-footer .container {
  padding-top: .85rem;
  padding-bottom: 1rem;
}
.site-footer__content {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
  align-items: center;
}
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: .1rem;
}
.site-footer__sociallink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  line-height: 1;
  text-decoration: none;
}
.site-footer__sociallink:hover,
.site-footer__sociallink:focus-visible {
  color: var(--accent-2);
}
.site-footer__sociallink i {
  font-size: 1.2rem;
}
.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}
.site-footer__badge {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  cursor: default;
}
.site-footer__link {
  color: var(--accent-2);
}
.site-footer__iconlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .92rem;
  line-height: 1;
}
.site-footer__note {
  color: var(--muted);
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.site-footer__separator {
  color: #64748b;
}

.home-topic-strip {
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
}

.home-topic-strip__row {
  display: block;
  line-height: 1.65;
}

.home-topic-strip__row + .home-topic-strip__row {
  margin-top: 0.35rem;
}

.home-topic-strip__label {
  margin-right: 0.45rem;
  color: var(--text);
}

.home-topic-strip__items {
  color: var(--muted);
}

.home-topic-strip__entry {
  display: inline-block;
  white-space: nowrap;
}

.home-topic-strip__entry--wrappable {
  display: inline;
  white-space: normal;
}

.home-topic-strip__badge-lock {
  display: inline-block;
  white-space: nowrap;
}

.home-topic-strip__link {
  font-weight: 400;
  color: var(--text);
}

.home-topic-strip__empty {
  color: var(--muted);
}

.home-topic-strip__separator {
  color: var(--muted);
}

.home-topic-strip .percentile-badge {
  margin-right: 0.18rem;
}

.site-header h1 { margin: 0; font-size: 1.25rem; }
nav a { margin-right: 1rem; }

/* React dark mode additions */
.react-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: .75rem; }
.react-menu .menu-link {
  color: var(--text);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.react-menu .menu-link:hover,
.menu-dropdown__list .menu-link:hover {
  border-color: #1f2937;
  background: #0f0f0f;
  color: var(--text);
}
.react-menu .menu-link.active { color: #0b1220; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 700; border-color: transparent; }
.react-menu-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "nav auth";
  align-items: center;
  column-gap: 1rem;
  row-gap: .5rem;
}
.react-menu-primary {
  grid-area: nav;
  justify-self: start;
  min-width: 0;
}
.auth-status,
.auth-login-icon {
  grid-area: auth;
  justify-self: end;
}
.auth-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  font-size: .9rem;
  color: var(--muted);
  min-width: 0;
  position: relative;
}
.auth-status__media-note {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-transform: lowercase;
  text-align: right;
  padding-right: 1.7rem;
  flex: 0 0 auto;
}
.auth-status__media-note-gap {
  display: inline-block;
  width: 1.55rem;
  flex: 0 0 1.55rem;
}
.article-display__onesheet-media-note {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-transform: lowercase;
  text-align: right;
  flex: 0 0 auto;
  margin-left: auto;
}
.article-display__onesheet-media-note-gap {
  display: inline-block;
  width: 1.55rem;
  flex: 0 0 1.55rem;
}
.header-media-note-button {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}
.auth-status__media-note.header-media-note-button {
  padding-right: 1.7rem;
}
.article-display__onesheet-media-note.header-media-note-button {
  padding: 0;
}
.header-media-note-button:hover,
.header-media-note-button:focus-visible {
  color: var(--text);
}
.header-media-popover {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: grid;
  align-items: start;
  justify-items: end;
  padding: 5rem max(1rem, calc((100vw - 840px) / 2 + 1rem)) 1rem 1rem;
}
.header-media-popover__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.68);
  cursor: default;
}
.header-media-popover__panel {
  position: relative;
  width: min(calc((min(100vw, 840px) - 2rem) * .65), calc(100vw - 2rem));
  max-height: min(78vh, 720px);
  overflow-y: auto;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.64);
  padding: 1.15rem 1.25rem 1.25rem;
  color: var(--text);
}
.header-media-popover__close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: #0d0d0d;
  color: var(--text);
  cursor: pointer;
}
.header-media-popover__close:hover,
.header-media-popover__close:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}
.header-media-popover h2 {
  margin: 0 2.5rem .85rem 0;
  line-height: 1.15;
}
.header-media-popover__title {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.header-media-popover__brand {
  flex: 0 0 auto;
  font-size: 1.55rem;
  line-height: 1;
  white-space: nowrap;
}
.header-media-popover__body {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  color: #d1d5db;
}
.header-media-popover__body p,
.header-media-popover__status,
.header-media-popover__error {
  margin: 0;
  line-height: 1.6;
}
.header-media-popover__error {
  color: #fca5a5;
}
.header-media-popover__link {
  display: inline;
  margin: 0;
  font-weight: 600;
}
@media (max-width: 680px) {
  .header-media-popover {
    padding: 4.25rem 1rem 1rem;
  }
  .header-media-popover__panel {
    width: calc((100vw - 2rem) * 0.9);
  }
}
.database-token-link--ranking {
  display: inline-block;
  padding: 0.02em 0.42em;
  border-radius: 999px;
  background: rgba(34,197,94,0.2);
  border: 1px solid rgba(34,197,94,0.5);
  color: #4ade80;
  font-weight: 700;
  line-height: inherit;
  text-decoration: none;
  vertical-align: baseline;
  white-space: nowrap;
}
.database-token-link--ranking:hover,
.database-token-link--ranking:focus-visible {
  color: #86efac;
  text-decoration: none;
  border-color: rgba(134,239,172,0.72);
}
.header-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid #1f2937;
  border-radius: 999px;
  background: #0f0f0f;
  transition: width .2s ease, border-color .2s ease, background-color .2s ease;
}
.header-search-toggle.is-open {
  width: clamp(180px, 24vw, 260px);
  border-color: #1f2937;
  background: #0f0f0f;
  position: absolute;
  right: calc(88px + 1.3rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30000;
  box-shadow: 0 12px 24px rgba(0,0,0,0.45);
}
.header-search-toggle input {
  width: 0;
  min-width: 0;
  opacity: 0;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 0;
  outline: none;
  transition: width .2s ease, opacity .15s ease, padding .2s ease;
}
.header-search-toggle.is-open input {
  flex: 1 1 auto;
  width: 100%;
  opacity: 1;
  padding: 0 .35rem 0 .8rem;
}
.header-search-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
}
.auth-status .auth-user {
  order: 1;
  margin-right: 0 !important;
  white-space: nowrap;
}
.auth-status .menu-link {
  color: var(--text);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.react-menu-primary .menu-link__icon {
  display: none;
  font-size: 1rem;
  line-height: 1;
}
.react-menu-primary .menu-link__text {
  display: inline;
}
.auth-status .menu-link:hover {
  border-color: #1f2937;
  background: #0f0f0f;
  color: var(--text);
  text-decoration: none;
}
.auth-status .auth-logout-icon {
  order: 2;
}
.menu-dropdown__list {
  list-style: none;
  color: var(--text);
}
.menu-dropdown__list .menu-link {
  color: var(--text);
  display: block;
}
.menu-dropdown {
  position: relative;
  z-index: 10000;
}
.auth-login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  color: #fff;
}
.auth-login-icon svg,
.auth-login-icon img,
.auth-logout-icon svg,
.auth-logout-icon img {
  width: 100%;
  height: 100%;
}
.auth-login-icon:hover {
  transform: scale(1.05);
}
.auth-logout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #fff;
}
.auth-logout-icon:hover {
  transform: scale(1.05);
}
@media (max-width: 980px) {
  .react-menu-container {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "nav auth";
    row-gap: .4rem;
    align-items: center;
  }
  .auth-status {
    display: grid;
    grid-template-rows: auto auto;
    justify-items: end;
    align-items: center;
    row-gap: .2rem;
    min-width: 170px;
  }
  .auth-status .auth-user {
    position: static;
    margin-top: 0;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    order: 1;
  }
  .auth-status .auth-logout-icon {
    order: 0;
  }
}
@media (max-width: 740px) {
  .react-menu-primary .menu-link__text {
    display: none;
  }
  .react-menu-primary .menu-link__icon {
    display: inline-block;
    font-size: 2rem;
  }
  .react-menu-primary .menu-link--responsive-icon {
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
    border-color: #1f2937;
    background: #0f0f0f;
  }
}
@media (max-width: 760px) {
  .auth-status {
    min-width: 140px;
  }
  .header-search-toggle.is-open {
    width: min(200px, calc(100vw - 170px));
  }
  .auth-status .auth-user {
    max-width: 140px;
  }
}
@media (max-width: 620px) {
  #react-nav {
    min-width: 300px;
    overflow: visible;
  }
  .react-menu-container {
    min-width: 300px;
  }
  .auth-status__media-note {
    display: none;
  }
  .header-search-toggle.is-open {
    right: calc(88px + 1rem);
  }
}
.article-display.article-display--mini {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.home-top-card-fixed {
  height: var(--home-top-card-height);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.home-about-preview-card {
  justify-content: flex-start;
}
.home-about-preview-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.home-about-preview-text {
  flex: 1;
  min-height: 0;
  color: var(--muted);
  line-height: 1.34;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.home-articles-grid,
.home-top-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, 392px);
  justify-content: center;
  gap: 1rem;
}
@media (max-width: 860px) {
  .home-articles-grid,
  .home-top-row {
    grid-template-columns: minmax(0, 392px);
  }
}
@media (max-width: 460px) {
  .home-articles-grid,
  .home-top-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
.article-display.article-display--mini.home-article-card-fixed {
  height: var(--home-article-card-height);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.home-article-card-shell {
  overflow: hidden;
}
.card.home-stories-panel {
  margin: 0 0 1rem;
  padding: 0;
  overflow: hidden;
}
.home-stories-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem .7rem;
  border-bottom: 1px solid #26313a;
}
.home-stories-panel__eyebrow,
.stories-page__eyebrow {
  display: block;
  margin-bottom: .2rem;
  color: #67e8f9;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.home-stories-panel__all {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
}
.home-stories-panel__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-stories-panel__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 62px;
  gap: .75rem;
  padding: .55rem 1rem;
  border-bottom: 1px solid #202a31;
}
.home-stories-panel__item.has-coverage-chart {
  grid-template-columns: minmax(0, 1fr) 168px;
}
.home-stories-panel__item:last-child {
  border-bottom: 0;
}
.home-stories-panel__story {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .18rem;
  color: var(--text);
}
.home-stories-panel__title-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
}
.home-stories-panel__title {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.24;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-stories-panel__rank {
  min-width: 0;
  flex: 0 0 auto;
  justify-content: flex-start;
}
.home-stories-panel__meta {
  color: var(--muted);
  font-size: .72rem;
}
.story-bs-rank-badge-link {
  display: inline-flex;
  text-decoration: none;
}
.story-bs-rank-badge-link:hover {
  text-decoration: none;
}
.story-bs-rank-badge-link:hover .percentile-badge,
.story-bs-rank-badge-link:focus-visible .percentile-badge {
  filter: brightness(1.15);
}
.story-coverage-chart {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: .38rem .42rem .32rem;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #090d10;
}
.story-coverage-chart__heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  margin-bottom: .25rem;
  color: #94a3b8;
  font-size: .52rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.story-coverage-chart__heading strong {
  color: #cbd5e1;
  font-size: inherit;
}
.story-coverage-chart__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
}
.story-coverage-chart__column {
  display: grid;
  min-width: 0;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 4px;
}
.story-coverage-chart__count,
.story-coverage-chart__date {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: .52rem;
  line-height: 1;
  text-overflow: clip;
  white-space: nowrap;
}
.story-coverage-chart__count {
  color: #e2e8f0;
  font-weight: 800;
  text-align: right;
}
.story-coverage-chart__date {
  color: #94a3b8;
  text-align: left;
}
.story-coverage-chart__track {
  position: relative;
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  background: #111820;
}
.story-coverage-chart__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  min-height: 0;
  background: #22d3ee;
}

.stories-page {
  width: 100%;
}
.stories-page__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: .35rem 0 .9rem;
  border-bottom: 1px solid #26313a;
}
.stories-page__header h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}
.stories-page__header p {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .88rem;
}
.stories-page__day-control {
  display: grid;
  min-width: 210px;
  gap: .3rem;
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.stories-page__day-control select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #0f1418;
  color: var(--text);
  padding: .45rem .65rem;
  font: inherit;
  font-size: .82rem;
  text-transform: none;
}
.stories-page__state {
  padding: 3rem 1rem;
  border: 1px solid #26313a;
  color: var(--muted);
  text-align: center;
}
.stories-page__state--error {
  color: #fca5a5;
}
.stories-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
  border: 1px solid #26313a;
  border-radius: 8px;
  background: #101416;
}
.stories-summary > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .2rem;
  padding: .75rem 1rem;
  border-right: 1px solid #26313a;
}
.stories-summary > div:last-child {
  border-right: 0;
}
.stories-summary strong {
  color: #f8fafc;
  font: 800 1.35rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.stories-summary span {
  overflow: hidden;
  color: var(--muted);
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stories-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .95fr);
  align-items: start;
  gap: 1rem;
}
.stories-ranked,
.story-detail {
  border: 1px solid #26313a;
  border-radius: 8px;
  background: #0e1215;
  overflow: hidden;
}
.stories-ranked__heading {
  display: block;
  padding: .55rem .75rem;
  border-bottom: 1px solid #26313a;
  color: #94a3b8;
  font-size: .64rem;
  font-weight: 800;
  text-transform: uppercase;
}
.stories-ranked__row {
  display: grid;
  width: 100%;
  min-height: 102px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: .75rem;
  border: 0;
  border-bottom: 1px solid #202a31;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.stories-ranked__row.has-coverage-chart {
  grid-template-columns: 168px minmax(0, 1fr);
}
.stories-ranked__row:last-child {
  border-bottom: 0;
}
.stories-ranked__row:hover,
.stories-ranked__row:focus-visible {
  background: #151c20;
  filter: none;
}
.stories-ranked__row.is-selected {
  background: #142027;
  box-shadow: inset 3px 0 0 #22d3ee;
}
.stories-ranked__movement {
  display: inline-flex;
  align-items: center;
  gap: .1rem;
  font-size: .65rem;
}
.stories-ranked__movement.is-up {
  color: #86efac;
}
.stories-ranked__movement.is-down {
  color: #fda4af;
}
.stories-ranked__body {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: .28rem;
}
.stories-ranked__title {
  display: block;
  overflow-wrap: anywhere;
  font-size: .88rem;
  line-height: 1.28;
}
.stories-ranked__meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--muted);
  font-size: .68rem;
}
.story-detail {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 108px);
  padding: 1rem;
  overflow-y: auto;
}
.story-detail__title {
  margin: 0 0 .35rem;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
  line-height: 1.25;
}
.story-detail__meta {
  margin-bottom: .55rem;
  color: var(--muted);
  font-size: .68rem;
}
.story-detail__summary,
.story-detail__section p,
.story-detail__empty {
  margin: 0;
  color: #cbd5e1;
  font-size: .78rem;
  line-height: 1.48;
}
.story-detail__categories {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .7rem;
}
.story-detail__categories span {
  border: 1px solid #334155;
  border-radius: 4px;
  padding: .15rem .35rem;
  color: #bae6fd;
  font-size: .62rem;
}
.story-detail__scores {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid #26313a;
}
.story-score-bar__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .24rem;
  color: var(--muted);
  font-size: .68rem;
}
.story-score-bar__label strong {
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.story-score-bar__label a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.story-score-bar__track {
  height: 5px;
  background: #26313a;
  overflow: hidden;
}
.story-score-bar__fill {
  display: block;
  height: 100%;
}
.story-score-bar__fill--score {
  background: #22d3ee;
}
.story-score-bar__fill--importance {
  background: #fbbf24;
}
.story-score-bar__fill--coverage {
  background: #4ade80;
}
.story-detail__signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  margin-top: .8rem;
}
.story-detail__signals > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .15rem;
  padding: .45rem;
  border: 1px solid #26313a;
  background: #11181c;
}
.story-detail__signals strong {
  font: 800 .9rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.story-detail__signals span {
  overflow: hidden;
  color: var(--muted);
  font-size: .58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-detail__section,
.story-detail__coverage-insights {
  margin-top: 1rem;
  padding-top: .8rem;
  border-top: 1px solid #26313a;
}
.story-detail__section-title {
  margin-bottom: .55rem;
  color: #f8fafc;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.story-coverage-insight {
  padding: .62rem 0;
  border-bottom: 1px solid #202a31;
}
.story-coverage-insight:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.story-coverage-insight__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .38rem;
  color: #cbd5e1;
  font-size: .66rem;
  font-weight: 700;
}
.story-coverage-insight__heading strong {
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .64rem;
}
.story-coverage-insight__stack,
.story-coverage-insight__source-track {
  display: flex;
  width: 100%;
  height: 8px;
  overflow: hidden;
  background: #26313a;
}
.story-coverage-insight__segment,
.story-coverage-insight__source-track > span {
  display: block;
  height: 100%;
}
.story-coverage-insight__segment--articles,
.story-coverage-insight__legend i.is-articles,
.story-coverage-insight__segment--recent,
.story-coverage-insight__legend i.is-recent {
  background: #22d3ee;
}
.story-coverage-insight__segment--videos,
.story-coverage-insight__legend i.is-videos,
.story-coverage-insight__segment--middle,
.story-coverage-insight__legend i.is-middle {
  background: #fbbf24;
}
.story-coverage-insight__segment--other,
.story-coverage-insight__legend i.is-other,
.story-coverage-insight__segment--older,
.story-coverage-insight__legend i.is-older {
  background: #64748b;
}
.story-coverage-insight__legend {
  display: flex;
  flex-wrap: wrap;
  gap: .28rem .65rem;
  margin-top: .4rem;
  color: var(--muted);
  font-size: .57rem;
}
.story-coverage-insight__legend span {
  display: inline-flex;
  align-items: center;
  gap: .24rem;
}
.story-coverage-insight__legend i {
  display: block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
}
.story-coverage-insight__legend strong {
  color: #e2e8f0;
}
.story-coverage-insight__source-track > span {
  background: #4ade80;
}
.story-coverage-insight p {
  margin: .38rem 0 0;
  color: var(--muted);
  font-size: .58rem;
  line-height: 1.4;
}
.story-detail__coverage-list {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.story-detail__coverage-list li {
  display: grid;
  gap: .2rem;
}
.story-detail__coverage-link,
.story-detail__coverage-title {
  display: block;
  overflow-wrap: anywhere;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
}
.story-detail__coverage-link {
  color: var(--text);
  text-decoration: none;
}
.story-detail__coverage-link:hover,
.story-detail__coverage-link:focus-visible {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.story-detail__coverage-meta {
  display: flex;
  align-items: center;
  gap: .3rem;
  color: var(--muted);
  font-size: .62rem;
  line-height: 1.3;
}
@media (max-width: 760px) {
  .stories-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-detail {
    position: static;
    max-height: none;
  }
}
@media (max-width: 560px) {
  .home-stories-panel__item {
    grid-template-columns: minmax(0, 1fr);
    gap: .45rem;
    padding: .55rem .65rem;
  }
  .home-stories-panel__item.has-coverage-chart {
    grid-template-columns: minmax(0, 1fr) 124px;
  }
  .home-stories-panel__title {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .stories-page__header {
    align-items: stretch;
    flex-direction: column;
  }
  .stories-page__day-control {
    min-width: 0;
  }
  .stories-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stories-summary > div:nth-child(2) {
    border-right: 0;
  }
  .stories-summary > div:nth-child(-n+2) {
    border-bottom: 1px solid #26313a;
  }
  .stories-ranked__heading,
  .stories-ranked__row {
    gap: .45rem;
    padding-left: .5rem;
    padding-right: .5rem;
  }
  .stories-ranked__row.has-coverage-chart {
    grid-template-columns: 124px minmax(0, 1fr);
  }
  .story-coverage-chart {
    padding-right: .28rem;
    padding-left: .28rem;
  }
  .story-coverage-chart__heading {
    font-size: .45rem;
  }
  .story-coverage-chart__grid {
    gap: 2px;
  }
  .story-coverage-chart__column {
    grid-template-columns: 41px minmax(0, 1fr) 15px;
    gap: 3px;
  }
  .story-coverage-chart__count,
  .story-coverage-chart__date {
    font-size: .45rem;
  }
}
.mini-pattern-chart {
  margin-top: 0.2rem;
  padding: 0.35rem;
  border: 2px solid #374151;
  border-radius: 10px;
  background: #0a0a0a;
  width: 100%;
}
.mini-pattern-chart--link {
  display: block;
  text-decoration: none;
}
.mini-pattern-chart--compact {
  padding: 0.25rem;
  border-width: 1.5px;
  width: 100%;
}
.article-display--mini .mini-pattern-chart {
  margin-top: auto;
}
.mini-pattern-chart__grid {
  display: flex;
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-end;
  align-content: flex-end;
  gap: 1px;
  min-height: 45px;
  max-height: 45px;
  overflow: hidden;
}
.mini-pattern-chart--compact .mini-pattern-chart__grid {
  min-height: 22px;
  max-height: 22px;
}
.mini-pattern-chart__column {
  position: relative;
  flex: 0 0 4px;
  height: 40px;
  overflow: hidden;
  box-sizing: border-box;
}
.mini-pattern-chart--compact .mini-pattern-chart__column {
  flex: 0 0 2px;
  height: 20px;
}
.mini-pattern-chart__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 999px;
  opacity: 0.45;
}
.mini-pattern-chart__rail {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: #1f2937;
}
.mini-pattern-chart__dot {
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #0a0a0a;
  transform: translate(-50%, 50%);
  background: var(--accent-2);
}
.mini-pattern-chart--compact .mini-pattern-chart__dot {
  width: 6px;
  height: 6px;
}
.article-display--list {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.article-display--list-with-chart {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.article-display__chart {
  flex: 0 0 140px;
  max-width: 40%;
}
.article-display__chart--empty {
  visibility: hidden;
  pointer-events: none;
}
.article-display__chart .mini-pattern-chart {
  margin-top: 0;
  overflow: hidden;
}
.article-display--list-with-chart .mini-pattern-chart--compact .mini-pattern-chart__grid {
  min-height: 43px;
  max-height: 43px;
  flex-wrap: nowrap;
  gap: 0;
}
.article-display--list-with-chart .mini-pattern-chart--compact .mini-pattern-chart__column {
  height: 39px;
}
.article-display__body {
  flex: 1;
  width: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.article-display__list-title-row {
  width: 100%;
  max-width: 100%;
  line-height: 1.25;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
}
.article-display__list-title-slot {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.article-display__list-title-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
}
.article-display__list-title-text {
  display: block;
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-display__list-meta {
  display: flex;
  align-items: baseline;
  gap: .2rem .45rem;
  flex-wrap: wrap;
  min-width: 0;
  overflow: hidden;
}
.article-display__list-meta-group {
  min-width: 0;
}
.article-display__excerpt-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-top: .4rem;
}
.article-display__excerpt {
  flex: 1;
  min-height: 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.article-display__excerpt--mini {
  font-size: 1rem;
}
.article-display__excerpt-inline {
  color: var(--muted);
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.article-display__more-inline {
  font-weight: 600;
}
.article-display__tail-nowrap {
  white-space: nowrap;
}
.homepage-content-memo {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .32rem;
  min-height: 0;
  padding: .55rem .62rem;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, .24);
  border-radius: 9px;
  background: rgba(9, 18, 32, .72);
}
.homepage-content-memo__heading {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
  gap: .45rem;
}
.homepage-content-memo__eyebrow {
  color: #7dd3fc;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.homepage-content-memo__score {
  flex: 0 0 auto;
  color: #86efac;
  font-size: .74rem;
  white-space: nowrap;
}
.homepage-content-memo .homepage-content-memo__note {
  display: -webkit-box;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: #e5edf5;
  font-size: .92rem;
  line-height: 1.36;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.homepage-content-memo__selection,
.homepage-content-memo__ranking,
.homepage-content-memo__context {
  flex: 0 0 auto;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: #b8c4d4;
  font-size: .72rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.homepage-content-memo__selection strong,
.homepage-content-memo__ranking strong,
.homepage-content-memo__context strong {
  color: #dbeafe;
}
.homepage-content-memo__context a {
  color: #93c5fd;
}
.homepage-content-memo__manipulations {
  display: flex;
  flex: 0 0 auto;
  gap: .28rem;
  min-width: 0;
  overflow: hidden;
}
.homepage-content-memo__manipulation {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 46%;
  padding: .16rem .38rem;
  overflow: hidden;
  border: 1px solid rgba(248, 113, 113, .32);
  border-radius: 999px;
  background: rgba(127, 29, 29, .2);
  color: #fecaca;
  font-size: .68rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.homepage-content-memo--compact {
  flex: 0 1 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.homepage-content-memo__inline-score {
  color: #86efac;
}
.homepage-content-memo--compact .homepage-content-memo__note {
  flex: 0 1 auto;
  font-size: .84rem;
  line-height: 1.25;
  -webkit-line-clamp: 2;
}
.homepage-content-memo__list-slot {
  display: flex;
  align-items: center;
  align-self: stretch;
}
.homepage-content-memo__list-slot .homepage-content-memo--compact {
  width: 100%;
  max-height: 43px;
}
.article-display--homepage-memo h3 {
  flex: 0 0 auto;
  max-height: 2.5em;
  overflow: hidden;
}
@media (max-width: 680px) {
  .homepage-content-memo {
    gap: .25rem;
    padding: .42rem .5rem;
  }
  .homepage-content-memo .homepage-content-memo__note {
    font-size: .86rem;
    line-height: 1.3;
    -webkit-line-clamp: 3;
  }
  .homepage-content-memo__selection,
  .homepage-content-memo__ranking,
  .homepage-content-memo__context {
    font-size: .68rem;
  }
  .homepage-content-memo--compact .homepage-content-memo__note {
    -webkit-line-clamp: 2;
  }
}
.help-walkthrough-step {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1rem;
  background: rgba(15,23,42,0.35);
}
.help-walkthrough-step__body {
  color: #cbd5e1;
  line-height: 1.6;
}
.help-walkthrough-step__body--stacked {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.help-walkthrough-step__body::after {
  content: '';
  display: block;
  clear: both;
}
.help-walkthrough-step__image {
  float: right;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 .85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.32);
  background: #05070b;
  box-shadow: 0 18px 40px rgba(0,0,0,0.26);
}
.help-walkthrough-step--stacked .help-walkthrough-step__image {
  float: none;
  margin: 0;
}
.help-walkthrough-step--analyze {
  background:
    linear-gradient(180deg, rgba(15,23,42,0.52), rgba(9,12,18,0.62)),
    rgba(15,23,42,0.35);
}
.help-walkthrough-step__image--analyze {
  border-radius: 20px;
  border: 1px solid rgba(96,165,250,0.26);
  box-shadow:
    0 22px 48px rgba(0,0,0,0.34),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}
@media (max-width: 720px) {
  .help-walkthrough-step__image {
    float: none;
    margin: 0 0 .85rem 0;
    max-width: 100% !important;
  }
}
.article-display--onesheet {
  width: 100%;
}
.article-display__onesheet-stack {
  width: min(100%, 430px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.article-display__onesheet-card {
  padding: 1rem 1rem 1.05rem;
  border-radius: 18px;
}
.article-display__onesheet-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}
.article-display__onesheet-topline > div {
  flex-shrink: 0;
}
.article-display__onesheet-publication-row {
  margin-top: .65rem;
}
.article-display__onesheet-divider {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: .45rem 0;
}
.article-display__onesheet-headline {
  margin: 0;
  font-size: clamp(1.4rem, 4.9vw, 1.9rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.article-display__onesheet-meta {
  color: var(--muted);
  margin: .45rem 0 0;
  line-height: 1.5;
}
.article-display__onesheet-taxonomy {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
  display: grid;
  gap: .3rem;
}
.article-display__onesheet-patterns {
  gap: .55rem;
}
.article-display__onesheet-pattern-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .72rem .85rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: #0d0d0d;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.25;
}
.article-display__onesheet-pattern-dot {
  width: .7rem;
  height: .7rem;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}
.article-display__onesheet-heatmap {
  margin: 0 0 .8rem;
}
.article-display__onesheet-chip-card {
  color: var(--muted);
  font-size: .92rem;
}
.article-display__onesheet-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
}
.article-display__onesheet-controls-group {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
}
.article-display__onesheet-slider-group {
  font-size: .9rem;
}
.article-display__onesheet-toggle-group {
  gap: .75rem;
}
.article-display__onesheet-wordcount {
  margin-left: auto;
  font-size: .95rem;
  font-weight: 600;
}
.article-display__onesheet-content {
  width: 100%;
}
.article-display__onesheet-content-card {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 1rem;
  background: #0b0b0b;
  border-radius: 18px;
  border: 1px solid #1f1f1f;
}
@media (max-width: 680px) {
  .article-display__onesheet-stack,
  .article-display__onesheet-content-card {
    width: min(100%, 100%);
  }
  .article-display__onesheet-headline {
    font-size: clamp(1.2rem, 6.2vw, 1.6rem);
  }
  .article-display__onesheet-topline {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-display__onesheet-header-row {
    flex-direction: row;
    align-items: center;
  }
  .article-display__onesheet-controls {
    align-items: flex-start;
  }
  .article-display__onesheet-wordcount {
    margin-left: 0;
    width: 100%;
  }
}
.auth-login-icon:hover {
  transform: scale(1.05);
}

.react-shell .page h2 { margin-top: 0; }
.react-shell .page p { color: var(--muted); }

.site-main > .container:has(.admin-app-frame) {
  max-width: 1800px;
}
.admin-app-frame {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  width: min(100%, 1760px);
  margin: 0 auto;
  padding: 0 1rem;
}
.admin-app-frame.is-admin-nav-collapsed {
  grid-template-columns: 60px minmax(0, 1fr);
}
.admin-app-sidebar {
  position: sticky;
  top: calc(var(--admin-sticky-header-offset, 76px) + .5rem);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .46) rgba(8, 11, 15, .78);
  background: #080b0f;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: .75rem;
}
.admin-app-sidebar::-webkit-scrollbar {
  width: 10px;
}
.admin-app-sidebar::-webkit-scrollbar-track {
  background: rgba(8, 11, 15, .78);
  border-radius: 999px;
  margin: .5rem 0;
}
.admin-app-sidebar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, .42);
  border: 2px solid #080b0f;
  border-radius: 999px;
}
.admin-app-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(203, 213, 225, .62);
}
.admin-app-sidebar::-webkit-scrollbar-corner {
  background: transparent;
}
.admin-app-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 36px;
  margin-bottom: .7rem;
  padding: 0 .2rem;
}
.admin-app-sidebar__title {
  color: #f8fafc;
  font-size: .92rem;
  font-weight: 700;
}
.admin-app-sidebar__collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  color: #e5e7eb;
  background: #111827;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 6px;
}
.admin-app-sidebar__collapse:hover {
  filter: brightness(1.08);
}
.admin-app-frame.is-admin-nav-collapsed .admin-app-sidebar {
  padding: .65rem 0 .65rem .5rem;
}
.admin-app-frame.is-admin-nav-collapsed .admin-app-sidebar::-webkit-scrollbar {
  width: 8px;
}
.admin-app-frame.is-admin-nav-collapsed .admin-app-sidebar__header {
  justify-content: center;
  padding: 0;
}
.admin-app-frame.is-admin-nav-collapsed .admin-app-sidebar__title,
.admin-app-frame.is-admin-nav-collapsed .admin-app-sidebar .admin-app-nav__section-title,
.admin-app-frame.is-admin-nav-collapsed .admin-app-sidebar .admin-app-nav__link span {
  display: none;
}
.admin-app-content {
  min-width: 0;
}
.admin-app-content .page {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.admin-app-nav {
  display: grid;
  gap: .9rem;
}
.admin-app-nav__section {
  display: grid;
  gap: .35rem;
}
.admin-app-nav__section-title {
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 0 .45rem;
}
.admin-app-nav__links {
  display: grid;
  gap: .15rem;
}
.admin-app-nav__link {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 36px;
  color: #cbd5e1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: .45rem .55rem;
}
.admin-app-frame.is-admin-nav-collapsed .admin-app-sidebar .admin-app-nav__link {
  justify-content: center;
  width: 32px;
  min-height: 40px;
  padding: .55rem 0;
}
.admin-app-nav__link:hover {
  color: #fff;
  background: #0f172a;
  border-color: rgba(148, 163, 184, .22);
  text-decoration: none;
}
.admin-app-nav__link.is-active {
  color: #e0f2fe;
  background: rgba(14, 165, 233, .18);
  border-color: rgba(56, 189, 248, .38);
}
.admin-app-nav__link i {
  width: 1.1rem;
  text-align: center;
  color: #7dd3fc;
}
.admin-app-frame.is-admin-nav-collapsed .admin-app-sidebar .admin-app-nav__link i {
  width: auto;
  flex: 0 0 auto;
  font-size: 1.08rem;
}
.admin-app-mobile-toolbar {
  display: none;
}
.admin-app-mobile-nav {
  display: none;
}
.admin-app-drawer-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .75rem;
  background: #0f172a;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 6px;
}
.admin-app-drawer-layer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30000;
}
.admin-app-drawer-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  background: rgba(0, 0, 0, .58);
  padding: 0;
}
.admin-app-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(320px, calc(100vw - 48px));
  overflow-y: auto;
  background: #080b0f;
  border-right: 1px solid #1f2937;
  padding: 1rem;
  box-shadow: 20px 0 50px rgba(0, 0, 0, .35);
}
.admin-app-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .85rem;
}
.admin-app-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: #111827;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 6px;
}
@media (max-width: 1100px) {
  .site-main > .container:has(.admin-app-frame) {
    padding-left: 0;
    padding-right: 0;
  }
  .admin-app-frame {
    display: block;
    width: 100%;
    padding: 0 1rem;
  }
  .admin-app-sidebar {
    display: none;
  }
  .admin-app-mobile-toolbar {
    position: sticky;
    top: calc(var(--admin-sticky-header-offset, 76px) + .5rem);
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
    margin: 0 0 .85rem;
    padding: .35rem;
    background: rgba(8, 11, 15, .94);
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    backdrop-filter: blur(14px);
  }
  .admin-app-drawer-layer {
    display: block;
  }
  .admin-app-drawer-toggle {
    display: inline-flex;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    margin: 0;
    padding: 0;
    font-size: 1.18rem;
  }
  .admin-app-drawer-toggle span {
    display: none;
  }
  .admin-app-mobile-nav {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .46) transparent;
  }
  .admin-app-mobile-nav::-webkit-scrollbar {
    height: 5px;
  }
  .admin-app-mobile-nav::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .42);
    border-radius: 999px;
  }
  .admin-app-mobile-nav .admin-app-nav--compact {
    display: flex;
    align-items: stretch;
    gap: .3rem;
    width: max-content;
    min-width: 100%;
  }
  .admin-app-mobile-nav .admin-app-nav__section {
    display: flex;
    align-items: center;
    gap: 0;
  }
  .admin-app-mobile-nav .admin-app-nav__section + .admin-app-nav__section {
    border-left: 1px solid rgba(148, 163, 184, .2);
    padding-left: .3rem;
  }
  .admin-app-mobile-nav .admin-app-nav__section-title,
  .admin-app-mobile-nav .admin-app-nav__link span {
    display: none;
  }
  .admin-app-mobile-nav .admin-app-nav__links {
    display: flex;
    align-items: center;
    gap: .2rem;
  }
  .admin-app-mobile-nav .admin-app-nav__link {
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    margin-right: 0;
    padding: 0;
  }
  .admin-app-mobile-nav .admin-app-nav__link i {
    width: auto;
    flex: 0 0 auto;
    font-size: 1.05rem;
  }
}
@media (max-width: 620px) {
  .admin-app-frame {
    padding: 0 .75rem;
  }
  .admin-app-drawer {
    width: min(300px, calc(100vw - 32px));
  }
}

.admin-dashboard {
  display: grid;
  gap: 1rem;
  padding-top: 0;
  padding-bottom: 2rem;
}
.admin-dashboard__hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: hidden;
  padding: 1.4rem 1.5rem;
  background:
    radial-gradient(circle at 85% -20%, rgba(56, 189, 248, .22), transparent 44%),
    radial-gradient(circle at 8% 120%, rgba(45, 212, 191, .13), transparent 42%),
    linear-gradient(145deg, #101824, #090d14 65%);
  border: 1px solid rgba(125, 211, 252, .2);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
}
.admin-dashboard__hero::after {
  content: '';
  position: absolute;
  top: -58px;
  right: -42px;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, rgba(125, 211, 252, .14), transparent 68%);
  border: 1px solid rgba(125, 211, 252, .09);
  border-radius: 42px;
  transform: rotate(24deg);
  pointer-events: none;
}
.admin-dashboard__hero-copy,
.admin-dashboard__controls {
  position: relative;
  z-index: 1;
}
.admin-dashboard__health {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 28px;
  padding: .25rem .6rem;
  color: #bae6fd;
  background: rgba(14, 116, 144, .16);
  border: 1px solid rgba(56, 189, 248, .24);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.admin-dashboard__health-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .1);
}
.admin-dashboard__health--healthy {
  color: #bbf7d0;
  background: rgba(22, 101, 52, .16);
  border-color: rgba(74, 222, 128, .25);
}
.admin-dashboard__health--healthy .admin-dashboard__health-dot {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .1);
}
.admin-dashboard__health--warning {
  color: #fde68a;
  background: rgba(146, 64, 14, .17);
  border-color: rgba(251, 191, 36, .28);
}
.admin-dashboard__health--warning .admin-dashboard__health-dot {
  background: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, .1);
}
.admin-dashboard__health--danger {
  color: #fecaca;
  background: rgba(153, 27, 27, .18);
  border-color: rgba(248, 113, 113, .3);
}
.admin-dashboard__health--danger .admin-dashboard__health-dot {
  background: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, .1);
}
.admin-dashboard__controls {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: .65rem;
  flex-wrap: wrap;
}
.admin-dashboard__updated {
  align-self: center;
  color: #8393a7;
  font-size: .78rem;
  white-space: nowrap;
}
.admin-dashboard__refresh-select {
  display: grid;
  gap: .28rem;
  margin: 0;
  color: #94a3b8;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.admin-dashboard__refresh-select select {
  height: 36px;
  min-width: 78px;
  margin: 0;
  padding: 0 .55rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, .88);
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 7px;
}
.admin-dashboard__refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 36px;
  color: #082f49;
  background: linear-gradient(135deg, #7dd3fc, #2dd4bf);
  box-shadow: 0 8px 22px rgba(45, 212, 191, .13);
}
.admin-dashboard__refresh-button:disabled {
  cursor: wait;
  opacity: .64;
}
.admin-dashboard__refresh-button .is-spinning {
  animation: admin-dashboard-spin .8s linear infinite;
}
@keyframes admin-dashboard-spin {
  to { transform: rotate(360deg); }
}
.admin-dashboard__source-warning {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .75rem .9rem;
  color: #fde68a;
  background: rgba(120, 53, 15, .18);
  border: 1px solid rgba(251, 191, 36, .25);
  border-radius: 9px;
  font-size: .86rem;
}
.admin-dashboard__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}
.admin-dashboard-metric {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: .8rem;
  min-height: 128px;
  margin-right: 0;
  padding: 1rem;
  color: #dbe7f3;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(17, 24, 39, .98), rgba(8, 12, 18, .98));
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.admin-dashboard-metric:hover,
.admin-dashboard-metric:focus-visible {
  color: #f8fafc;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(18, 31, 48, .98), rgba(9, 15, 23, .98));
  border-color: rgba(125, 211, 252, .36);
  transform: translateY(-2px);
}
.admin-dashboard-metric__icon,
.admin-dashboard-destination__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #7dd3fc;
  background: rgba(14, 165, 233, .1);
  border: 1px solid rgba(56, 189, 248, .18);
  border-radius: 10px;
  font-size: 1.08rem;
}
.admin-dashboard-metric--warning .admin-dashboard-metric__icon {
  color: #fbbf24;
  background: rgba(146, 64, 14, .13);
  border-color: rgba(251, 191, 36, .2);
}
.admin-dashboard-metric__copy {
  display: grid;
  align-content: start;
  min-width: 0;
}
.admin-dashboard-metric__label {
  color: #9aaac0;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.admin-dashboard-metric__value-row {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  margin-top: .16rem;
}
.admin-dashboard-metric__value-row strong {
  color: #f8fafc;
  font-size: 1.72rem;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.admin-dashboard-metric__value-row > span {
  color: #8ea0b4;
  font-size: .75rem;
}
.admin-dashboard-metric__indicators {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .42rem;
}
.admin-dashboard-metric__indicator {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  min-height: 24px;
  padding: .18rem .4rem;
  color: #cbd5e1;
  background: rgba(51, 65, 85, .28);
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 999px;
  font-size: .65rem;
  line-height: 1;
  white-space: nowrap;
}
.admin-dashboard-metric__indicator strong {
  color: #f8fafc;
  font-size: .69rem;
}
.admin-dashboard-metric__indicator--human {
  color: #bbf7d0;
  background: rgba(22, 101, 52, .14);
  border-color: rgba(74, 222, 128, .22);
}
.admin-dashboard-metric__indicator--bot {
  color: #c4b5fd;
  background: rgba(91, 33, 182, .14);
  border-color: rgba(167, 139, 250, .22);
}
.admin-dashboard-metric__detail {
  overflow: hidden;
  margin-top: .38rem;
  color: #8495a9;
  font-size: .76rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-dashboard-metric__arrow {
  color: #526176;
  font-size: .82rem;
}
.admin-dashboard__insights-grid {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.45fr);
  align-items: stretch;
  gap: 1rem;
}
.admin-dashboard__insights-grid > * {
  min-width: 0;
}
.admin-dashboard-cost {
  min-width: 0;
  padding-bottom: 1rem;
}
.admin-dashboard-cost__primary {
  display: grid;
  gap: .2rem;
  min-width: 0;
  padding: 1rem 1rem .8rem;
  color: #f8fafc;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.admin-dashboard-cost__primary > span,
.admin-dashboard-cost__primary > small {
  color: #8495a9;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.4;
}
.admin-dashboard-cost__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  min-width: 0;
  margin: 0 1rem;
}
.admin-dashboard-cost__stats > * {
  display: grid;
  gap: .18rem;
  min-width: 0;
  padding: .58rem .62rem;
  background: rgba(15, 23, 42, .56);
  border: 1px solid rgba(148, 163, 184, .11);
  border-radius: 8px;
}
.admin-dashboard-cost__stats span,
.admin-dashboard-cost__stats small {
  overflow: hidden;
  color: #718198;
  font-size: .66rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-dashboard-cost__stats strong {
  overflow: hidden;
  color: #e8eef6;
  font-size: .86rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-dashboard-cost__hosting {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: .58rem;
  min-width: 0;
  margin: .8rem 1rem 0;
  padding: .65rem;
  background: rgba(14, 116, 144, .1);
  border: 1px solid rgba(56, 189, 248, .16);
  border-radius: 8px;
}
.admin-dashboard-cost__hosting.is-unavailable {
  background: rgba(51, 65, 85, .22);
  border-color: rgba(148, 163, 184, .12);
}
.admin-dashboard-cost__hosting-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #7dd3fc;
  background: rgba(14, 116, 144, .18);
  border-radius: 8px;
}
.admin-dashboard-cost__hosting-copy {
  display: grid;
  gap: .12rem;
  min-width: 0;
}
.admin-dashboard-cost__hosting-copy strong {
  color: #e8eef6;
  font-size: .75rem;
}
.admin-dashboard-cost__hosting-copy > span,
.admin-dashboard-cost__hosting-copy small {
  color: #91a3b8;
  font-size: .67rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.admin-dashboard-cost__hosting-copy small {
  color: #718198;
}
.admin-dashboard-cost__hosting > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #7dd3fc;
  border-radius: 7px;
}
.admin-dashboard-cost__hosting > a:hover,
.admin-dashboard-cost__hosting > a:focus-visible {
  color: #e0f2fe;
  background: rgba(14, 116, 144, .2);
  text-decoration: none;
}
.admin-dashboard-cost__provider-section {
  min-width: 0;
  padding: .8rem 1rem 0;
}
.admin-dashboard-cost__provider-section > span {
  color: #718198;
  font-size: .66rem;
  font-weight: 650;
  letter-spacing: .02em;
}
.admin-dashboard-cost__provider-section .admin-dashboard-cost__providers {
  padding: .42rem 0 0;
}
.admin-dashboard-cost__providers {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  min-width: 0;
  padding: .8rem 1rem 0;
}
.admin-dashboard-cost__providers > * {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  padding: .18rem .45rem;
  color: #b8c5d5;
  background: rgba(30, 41, 59, .42);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 999px;
  font-size: .68rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.admin-dashboard-cost__providers strong {
  overflow: hidden;
  color: #e8eef6;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-dashboard-cost__warning {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  min-width: 0;
  margin: .8rem 1rem 0;
  padding: .55rem .65rem;
  color: #fde68a;
  text-decoration: none;
  background: rgba(120, 53, 15, .16);
  border: 1px solid rgba(251, 191, 36, .2);
  border-radius: 8px;
  font-size: .72rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.admin-dashboard-cost__warning:hover,
.admin-dashboard-cost__warning:focus-visible {
  color: #fef3c7;
  text-decoration: none;
  background: rgba(146, 64, 14, .22);
  border-color: rgba(251, 191, 36, .32);
}
.admin-dashboard-cost__warning > i {
  flex: 0 0 auto;
  margin-top: .08rem;
}
.admin-dashboard-cost__warning > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-dashboard-cost__warning > i:last-child {
  margin-left: auto;
}
.admin-dashboard-automation-list {
  display: grid;
  min-width: 0;
}
.admin-dashboard-automation {
  display: grid;
  gap: .48rem;
  min-width: 0;
  padding: .82rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, .09);
}
.admin-dashboard-automation:last-child {
  border-bottom: 0;
}
.admin-dashboard-automation__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .7rem;
  min-width: 0;
}
.admin-dashboard-automation__topline > *:not(.admin-dashboard-automation__status) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-dashboard-automation__topline strong {
  display: inline-flex;
  align-items: flex-start;
  gap: .38rem;
  color: #e8eef6;
  font-size: .84rem;
  line-height: 1.35;
}
.admin-dashboard-automation__topline strong > i {
  flex: 0 0 auto;
  margin-top: .08rem;
  color: #7dd3fc;
}
.admin-dashboard-automation__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  flex: 0 0 auto;
  max-width: 48%;
  min-height: 24px;
  padding: .18rem .5rem;
  color: #cbd5e1;
  background: rgba(51, 65, 85, .28);
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}
.admin-dashboard-automation__status--healthy {
  color: #bbf7d0;
  background: rgba(22, 101, 52, .14);
  border-color: rgba(74, 222, 128, .22);
}
.admin-dashboard-automation__status--notable {
  color: #fde68a;
  background: rgba(146, 64, 14, .14);
  border-color: rgba(251, 191, 36, .22);
}
.admin-dashboard-automation__status--critical {
  color: #fecaca;
  background: rgba(153, 27, 27, .17);
  border-color: rgba(248, 113, 113, .25);
}
.admin-dashboard-automation__status--unknown {
  color: #cbd5e1;
  background: rgba(51, 65, 85, .28);
  border-color: rgba(148, 163, 184, .16);
}
.admin-dashboard-automation__summary {
  min-width: 0;
  margin: 0;
  color: #9aaac0;
  font-size: .76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.admin-dashboard-automation__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .28rem .7rem;
  min-width: 0;
  color: #64748b;
  font-size: .67rem;
  line-height: 1.35;
}
.admin-dashboard-automation__meta > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-dashboard-automation__findings {
  display: grid;
  gap: .35rem;
  min-width: 0;
  margin: .08rem 0 0;
  padding: 0;
  list-style: none;
}
.admin-dashboard-automation__finding {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .4rem;
  min-width: 0;
  padding: .48rem .58rem;
  color: #c9d4e2;
  background: rgba(30, 41, 59, .35);
  border: 1px solid rgba(148, 163, 184, .1);
  border-left: 3px solid #fbbf24;
  border-radius: 7px;
  font-size: .7rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
  white-space: normal;
}
.admin-dashboard-automation__finding > i {
  margin-top: .12rem;
}
.admin-dashboard-automation__finding > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-dashboard-automation__finding[data-severity="critical"],
.admin-dashboard-automation__finding--critical {
  color: #fecaca;
  background: rgba(127, 29, 29, .12);
  border-color: rgba(248, 113, 113, .16);
  border-left-color: #f87171;
}
.admin-dashboard-automation__finding[data-severity="notable"],
.admin-dashboard-automation__finding--notable {
  color: #fde68a;
  background: rgba(120, 53, 15, .12);
  border-color: rgba(251, 191, 36, .15);
  border-left-color: #fbbf24;
}
.admin-dashboard__activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.admin-dashboard-panel {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  background: #0b1017;
  border-color: rgba(148, 163, 184, .15);
}
.admin-dashboard-panel__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: .9rem 1rem;
  background: linear-gradient(180deg, rgba(30, 41, 59, .34), rgba(15, 23, 42, .05));
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}
.admin-dashboard-panel__heading h3,
.admin-dashboard__section-heading h3 {
  margin: .12rem 0 0;
  color: #f1f5f9;
  font-size: 1rem;
}
.admin-dashboard-panel__eyebrow,
.admin-dashboard__section-heading > div > span {
  color: #64748b;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.admin-dashboard-panel__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 25px;
  padding: .2rem .45rem;
  color: #bae6fd;
  background: rgba(14, 116, 144, .13);
  border: 1px solid rgba(56, 189, 248, .2);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 750;
}
.admin-dashboard-panel__count--warning {
  color: #fde68a;
  background: rgba(146, 64, 14, .14);
  border-color: rgba(251, 191, 36, .22);
}
.admin-dashboard-panel__count--danger {
  color: #fecaca;
  background: rgba(153, 27, 27, .17);
  border-color: rgba(248, 113, 113, .25);
}
.admin-dashboard-panel__count--healthy {
  color: #bbf7d0;
  background: rgba(22, 101, 52, .14);
  border-color: rgba(74, 222, 128, .22);
}
.admin-dashboard-feed {
  display: grid;
}
.admin-dashboard-feed__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  min-height: 66px;
  margin-right: 0;
  padding: .7rem 1rem;
  color: #dbe7f3;
  text-decoration: none;
  border-bottom: 1px solid rgba(148, 163, 184, .09);
}
.admin-dashboard-feed__item:last-child {
  border-bottom: 0;
}
.admin-dashboard-feed__item:hover,
.admin-dashboard-feed__item:focus-visible {
  color: #f8fafc;
  background: rgba(30, 41, 59, .35);
  text-decoration: none;
}
.admin-dashboard-feed__item > .bi-chevron-right {
  color: #475569;
  font-size: .72rem;
}
.admin-dashboard-feed__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #93c5fd;
  background: rgba(30, 64, 175, .12);
  border-radius: 9px;
}
.admin-dashboard-feed__icon--healthy {
  color: #86efac;
  background: rgba(22, 101, 52, .14);
}
.admin-dashboard-feed__icon--warning {
  color: #fcd34d;
  background: rgba(146, 64, 14, .15);
}
.admin-dashboard-feed__icon--danger {
  color: #fca5a5;
  background: rgba(153, 27, 27, .16);
}
.admin-dashboard-feed__copy {
  display: grid;
  min-width: 0;
  gap: .2rem;
}
.admin-dashboard-feed__copy strong {
  overflow: hidden;
  color: #e8eef6;
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-dashboard-feed__copy > span:not(.admin-dashboard-feed__title-row) {
  overflow: hidden;
  color: #78899e;
  font-size: .73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-dashboard-feed__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  min-width: 0;
}
.admin-dashboard-feed__title-row time {
  flex: 0 0 auto;
  color: #617187;
  font-size: .67rem;
}
.admin-dashboard__empty-state {
  display: grid;
  justify-items: center;
  gap: .32rem;
  min-height: 198px;
  align-content: center;
  padding: 1.5rem;
  text-align: center;
}
.admin-dashboard__empty-state > i {
  margin-bottom: .25rem;
  color: #4ade80;
  font-size: 1.7rem;
}
.admin-dashboard__empty-state strong {
  color: #dbe7f3;
  font-size: .88rem;
}
.admin-dashboard__empty-state span {
  color: #718198;
  font-size: .76rem;
}
.admin-dashboard__empty-state--neutral > i {
  color: #7dd3fc;
}
.admin-dashboard__destinations {
  padding: 1.15rem;
  background: linear-gradient(150deg, rgba(15, 23, 42, .72), rgba(8, 12, 18, .92));
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 13px;
}
.admin-dashboard__section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.admin-dashboard__section-heading p {
  margin: 0;
  color: #74869b;
  font-size: .78rem;
}
.admin-dashboard__destination-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.admin-dashboard__destination-group {
  min-width: 0;
}
.admin-dashboard__destination-group h4 {
  margin: 0 0 .45rem;
  padding-left: .15rem;
  color: #91a2b7;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-dashboard__destination-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
}
.admin-dashboard-destination {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  min-height: 68px;
  margin-right: 0;
  padding: .65rem;
  color: #dbe7f3;
  text-decoration: none;
  background: rgba(15, 23, 42, .5);
  border: 1px solid rgba(148, 163, 184, .11);
  border-radius: 9px;
  transition: background .15s ease, border-color .15s ease;
}
.admin-dashboard-destination:hover,
.admin-dashboard-destination:focus-visible {
  color: #f8fafc;
  text-decoration: none;
  background: rgba(30, 41, 59, .62);
  border-color: rgba(125, 211, 252, .28);
}
.admin-dashboard-destination__icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  font-size: .96rem;
}
.admin-dashboard-destination > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: .14rem;
}
.admin-dashboard-destination strong,
.admin-dashboard-destination small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-dashboard-destination strong {
  color: #dbe7f3;
  font-size: .79rem;
}
.admin-dashboard-destination small {
  color: #718198;
  font-size: .67rem;
}
.admin-dashboard-destination > .bi-arrow-right {
  color: #475569;
  font-size: .72rem;
}
@media (max-width: 1280px) {
  .admin-dashboard__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-dashboard__destination-links {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .admin-dashboard__hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-dashboard__controls {
    justify-content: flex-start;
    width: 100%;
  }
  .admin-dashboard__insights-grid,
  .admin-dashboard__activity-grid,
  .admin-dashboard__destination-groups {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .admin-dashboard__hero {
    padding: 1.1rem;
  }
  .admin-dashboard__updated {
    width: 100%;
  }
  .admin-dashboard__metrics {
    grid-template-columns: 1fr;
  }
  .admin-dashboard-metric {
    min-height: 118px;
  }
  .admin-dashboard-cost__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-dashboard-automation__topline {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-dashboard-automation__status {
    max-width: 100%;
  }
  .admin-dashboard__section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-dashboard-feed__title-row time {
    display: none;
  }
}

.card {
  background: var(--panel);
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: 0px 10px 30px rgba(0,0,0,0.25);
}

label { display: block; margin: 1rem 0 .25rem; color: var(--muted); }
input {
  background: #0f0f0f;
  border: 1px solid #1f2937;
  color: var(--text);
  padding: .5rem .75rem;
  border-radius: 6px;
  margin-right: .5rem;
}
button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #0b1220;
  padding: .5rem .75rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
button:hover { filter: brightness(1.05); }

/* Removed temporary debug outlines */

/* TEMP: word-item attribute spans should fill container width */
.word-item { display: inline-block; }
.word-item .attributes-markers { display: block; width: 100%; }
.word-item .attributes-markers .attr {
  display: block;
  width: 100%;
  height: 0;
  line-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--accent-2);
}

/* Highlight style and interactions */
.highlighted {
  background: #ffff33; /* neon yellow */
  color: #000;
}
.word-item { cursor: pointer; }
.word-item .word-text {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.word-item.word-on .word-text {
  background: #ffff33;
  color: #000;
}
.word-item.word-item--editable,
.word-item.word-item--editable .word-text {
  cursor: text;
}

.article-word-heatmap {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 14px;
  overflow: hidden;
  margin: 0 0 .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #05080c;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.45);
}

.article-word-heatmap--sticky {
  position: sticky;
  top: 12px;
  z-index: 8;
}

.article-word-heatmap__segment {
  flex: 1 1 0;
  min-width: 1px;
  height: 100%;
  cursor: pointer;
}

.article-word-heatmap__segment:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: -2px;
}

/* Selection highlight for article words */
.word-item::selection { background: #ffff33; color: #000; }
.word-item *::selection { background: #ffff33; color: #000; }

.article-side-panel {
  position: fixed;
  top: 70px;
  bottom: 20px;
  width: min(320px, 85vw);
  background: #060606;
  border: 1px solid #1f2937;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65);
  transform: translateX(110%);
  transition: transform 0.35s ease;
  z-index: 1200;
  pointer-events: none;
}
.article-side-panel.open {
  pointer-events: auto;
}
.article-side-panel--left {
  left: 0;
  border-radius: 0 12px 12px 0;
  transform: translateX(-100%);
}
.article-side-panel--left.open {
  transform: translateX(0);
}
.article-side-panel--right {
  right: 0;
  border-radius: 12px 0 0 12px;
}
.article-side-panel--right.open {
  transform: translateX(0);
}
.article-side-panel__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
  overflow-y: auto;
}
.article-side-panel__inner::-webkit-scrollbar {
  width: 10px;
}
.article-side-panel__inner::-webkit-scrollbar-track {
  background: #050505;
}
.article-side-panel__inner::-webkit-scrollbar-thumb {
  background: #2b2b2b;
  border-radius: 999px;
}
.article-side-panel__inner::-webkit-scrollbar-thumb:hover {
  background: #3d3d3d;
}
.article-side-panel__inner {
  scrollbar-width: thin;
  scrollbar-color: #2b2b2b #050505;
}
.article-side-panel__sticky-controls {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -0.15rem -1rem 0;
  padding: 0.15rem 1rem 0.85rem;
  background: #060606;
  box-shadow: 0 14px 18px rgba(6, 6, 6, 0.98);
  isolation: isolate;
}
.article-side-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}
.article-panel-controls button {
  min-width: 170px;
}
.mouse-indicator {
  font-size: .9rem;
  color: var(--muted);
}
.mouse-indicator strong {
  color: var(--text);
}

.pattern-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.pattern-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid #1f2937;
  background: #0d0d0d;
  color: var(--text);
  border-radius: 8px;
  padding: .6rem .8rem;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pattern-item .pattern-label {
  font-weight: 600;
}
.pattern-item .pattern-pin {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid currentColor;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.panel-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.panel-close:hover {
  color: var(--text);
}
.panel-tab {
  position: fixed;
  top: 120px;
  background: #0d0d0d;
  color: var(--text);
  border: 1px solid #1f1f1f;
  border-radius: 8px 0 0 8px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  z-index: 1150;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  background-image: radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 50%);
  transition: left 0.35s ease, right 0.35s ease, border-color 0.2s ease, color 0.2s ease, background-image 0.2s ease;
}
.panel-tab--right {
  right: 0;
}
.panel-tab-stack {
  position: fixed;
  z-index: 1150;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.panel-tab-stack--left {
  top: 120px;
  left: 0;
}
.panel-tab-stack .panel-tab {
  position: static;
  top: auto;
  left: auto;
  right: auto;
}
.panel-tab--stacked {
  border-radius: 0 8px 8px 0;
}
.panel-tab:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background-image: radial-gradient(circle at top, rgba(255,255,255,0.15), transparent 50%);
}
.mobile-panel-tab-bar {
  display: none;
}

.speakers-panel {
  gap: .9rem;
  background:
    radial-gradient(circle at 0 0, rgba(34, 211, 238, .08), transparent 34%),
    #080b10;
}

.speakers-panel__eyebrow {
  display: block;
  margin-bottom: .28rem;
  color: #7dd3fc;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.speakers-panel__intro h2 {
  margin: 0 0 .4rem;
  font-size: 1.25rem;
  letter-spacing: -.025em;
}

.speakers-panel__intro p,
.speakers-panel__message,
.speakers-panel__footnote {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}
.speakers-panel__message--error {
  color: #ff8a80;
}

.speakers-panel__overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .35rem;
}

.speakers-panel__overview > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: .55rem .48rem;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 9px;
  background: rgba(15, 23, 42, .58);
}

.speakers-panel__overview strong {
  color: #eaf6ff;
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
}

.speakers-panel__overview small {
  overflow: hidden;
  color: var(--muted);
  font-size: .58rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.speakers-panel__picker {
  display: flex;
  gap: .4rem;
  margin-inline: -.1rem;
  padding: .1rem .1rem .35rem;
  overflow-x: auto;
  scrollbar-color: rgba(125, 211, 252, .4) transparent;
  scrollbar-width: thin;
}

.speakers-panel__picker button {
  display: flex;
  min-width: 155px;
  flex: 0 0 auto;
  flex-direction: column;
  gap: .12rem;
  padding: .55rem .6rem;
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 10px;
  background: rgba(15, 23, 42, .52);
  color: #dce7f5;
  text-align: left;
}

.speakers-panel__picker button:hover,
.speakers-panel__picker button:focus-visible {
  border-color: rgba(125, 211, 252, .56);
  outline: none;
}

.speakers-panel__picker button.is-active {
  border-color: rgba(125, 211, 252, .7);
  background: linear-gradient(135deg, rgba(14, 116, 144, .24), rgba(15, 23, 42, .62));
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .08);
}

.speakers-panel__picker button > span {
  overflow: hidden;
  font-size: .76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.speakers-panel__picker button small {
  overflow: hidden;
  color: var(--muted);
  font-size: .58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.speaker-evidence,
.speaker-signature {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: .7rem;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 11px;
  background: rgba(4, 10, 18, .72);
}

.speaker-evidence__header {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  align-items: baseline;
}

.speaker-evidence__header strong { font-size: .76rem; }
.speaker-evidence__header span { color: var(--muted); font-size: .58rem; text-align: right; }

.speaker-evidence__rail {
  position: relative;
  height: 32px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 7px;
  background:
    repeating-linear-gradient(90deg, rgba(148, 163, 184, .08) 0 1px, transparent 1px 10%),
    rgba(15, 23, 42, .72);
}

.speaker-evidence__segment {
  position: absolute;
  bottom: 4px;
  height: var(--speaker-segment-height, 8px);
  min-width: 2px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  opacity: .82;
  transition: height 140ms ease, filter 140ms ease, opacity 140ms ease;
}

.speaker-evidence__segment:hover,
.speaker-evidence__segment:focus-visible {
  z-index: 2;
  filter: brightness(1.35);
  opacity: 1;
  outline: 1px solid #fff;
  outline-offset: 1px;
}

.speaker-evidence__segment--selected { background: linear-gradient(180deg, #7dd3fc, #0891b2); }
.speaker-evidence__segment--writer { background: linear-gradient(180deg, #cbd5e1, #64748b); }
.speaker-evidence__segment--other { background: linear-gradient(180deg, #c084fc, #7e22ce); }

.speaker-evidence__legend {
  display: flex;
  gap: .35rem .7rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .56rem;
}

.speaker-evidence__legend span {
  display: inline-flex;
  gap: .28rem;
  align-items: center;
}

.speaker-evidence__legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.speaker-evidence__legend .is-selected { background: #22d3ee; }
.speaker-evidence__legend .is-writer { background: #94a3b8; }
.speaker-evidence__legend .is-other { background: #c084fc; }

.speaker-signature__header {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: flex-start;
}

.speaker-signature__header > div { min-width: 0; }
.speaker-signature__header > div > span {
  display: block;
  color: var(--muted);
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.speaker-signature__header h3 {
  margin: .12rem 0 0;
  font-size: .94rem;
  overflow-wrap: anywhere;
}

.speaker-signature__header > strong {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  color: #7dd3fc;
  font-size: 1rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.speaker-signature__header > strong small {
  color: var(--muted);
  font-size: .5rem;
  font-weight: 500;
}

.speaker-signature__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .28rem;
}

.speaker-signature__metrics span {
  display: flex;
  flex-direction: column;
  padding: .42rem;
  border-radius: 7px;
  background: rgba(148, 163, 184, .06);
  color: var(--muted);
  font-size: .52rem;
  line-height: 1.25;
}

.speaker-signature__metrics strong { color: #e2e8f0; font-size: .7rem; }

.speaker-signature__legend {
  display: flex;
  gap: .65rem;
  align-items: center;
  color: var(--muted);
  font-size: .57rem;
}

.speaker-signature__legend span { display: inline-flex; gap: .28rem; align-items: center; }
.speaker-signature__legend i { display: inline-block; width: 8px; height: 8px; }
.speaker-signature__legend .is-writer { border: 2px solid #cbd5e1; border-radius: 50%; }
.speaker-signature__legend .is-speaker { transform: rotate(45deg); border: 1px solid #fff; background: #22d3ee; }
.speaker-signature__legend small { margin-left: auto; }

.speaker-signature__rows {
  display: flex;
  flex-direction: column;
  gap: .72rem;
}

.speaker-signature__row {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.speaker-signature__row-label {
  display: flex;
  justify-content: space-between;
  gap: .45rem;
  align-items: baseline;
  font-size: .64rem;
}

.speaker-signature__row-label span { min-width: 0; overflow-wrap: anywhere; }
.speaker-signature__row-label strong { flex: 0 0 auto; font-size: .58rem; font-variant-numeric: tabular-nums; }
.speaker-signature__row-label strong.is-more { color: #fb7185; }
.speaker-signature__row-label strong.is-less { color: #34d399; }

.speaker-signature__track {
  position: relative;
  width: 100%;
  height: 16px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(148, 163, 184, .12) 0 1px, transparent 1px 25%),
    rgba(148, 163, 184, .05);
}

.speaker-signature__track > i {
  position: absolute;
  top: 6px;
  height: 4px;
  min-width: 2px;
  border-radius: 999px;
  opacity: .86;
}

.speaker-signature__track > i.is-more { background: #fb7185; box-shadow: 0 0 8px rgba(251, 113, 133, .42); }
.speaker-signature__track > i.is-less { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, .4); }

.speaker-signature__track > b {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
}

.speaker-signature__track > b.is-writer {
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #080b10;
}

.speaker-signature__track > b.is-speaker {
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid #fff;
  background: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, .52);
}

.speaker-signature__values {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  color: var(--muted);
  font-size: .53rem;
  font-variant-numeric: tabular-nums;
}

.speaker-signature__values span:last-child { color: #cceffd; text-align: right; }

.word-item.speaker-evidence-target {
  border-radius: 3px;
  background: rgba(34, 211, 238, .24);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, .28), 0 0 14px rgba(34, 211, 238, .3);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.article-side-panel select {
  background: #0d0d0d;
  border: 1px solid #1f2937;
  color: var(--text);
  padding: .5rem .75rem;
  border-radius: 6px;
}
.article-side-panel select:focus {
  outline: 2px solid var(--accent);
}

@media (max-width: 680px), (max-width: 1024px) and (orientation: portrait) {
  .article-page,
  .search-results-page {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  }
  .article-page--mobile-panel-open::after,
  .search-results-page--mobile-panel-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 1090;
    pointer-events: none;
  }
  .article-video-lead-media {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 1rem !important;
    position: relative !important;
    top: auto !important;
    border-radius: 12px !important;
  }
  .article-side-panel,
  .article-side-panel--left,
  .article-side-panel--right {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(72vh, 620px);
    border-radius: 14px 14px 0 0;
    border-right: 0;
    border-bottom: 0;
    transform: translateY(106%);
    z-index: 1200;
  }
  .article-side-panel.open,
  .article-side-panel--left.open,
  .article-side-panel--right.open {
    transform: translateY(0);
  }
  .article-side-panel__inner {
    padding: .9rem 1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
  }
  .article-side-panel__inner::before {
    content: "";
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    align-self: center;
    flex: 0 0 auto;
  }
  .panel-tab-stack,
  .panel-tab {
    display: none;
  }
  .mobile-panel-tab-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1250;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: .45rem .55rem calc(.45rem + env(safe-area-inset-bottom, 0px));
    background: rgba(6, 6, 6, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.48);
  }
  .mobile-panel-tab-bar--v1 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mobile-panel-tab {
    min-width: 0;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    font: inherit;
    line-height: normal;
    padding: .25rem .2rem;
    font-size: .78rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
  }
  .mobile-panel-tab.active {
    color: var(--text);
    border-color: rgba(156, 163, 175, 0.72);
    background: transparent;
    font-weight: 700;
  }
  .mobile-panel-tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
}

.comparative-heatmap-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: 100%;
}
.comparative-heatmap-card {
  display: grid;
  grid-template-rows: 6.25rem 1.25rem minmax(320px, 62vh);
  gap: .45rem;
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.comparative-heatmap-card--current {
  box-shadow: none;
}
.comparative-heatmap-card__label {
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
  padding: 0 .2rem;
}
.comparative-heatmap-card__label-button {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: .2rem 0;
  min-height: 0;
  height: 100%;
  color: inherit;
  cursor: pointer;
}
.comparative-heatmap-card__label-button:hover .comparative-heatmap-card__label,
.comparative-heatmap-card__label-button:focus-visible .comparative-heatmap-card__label {
  color: #93c5fd;
}
.comparative-heatmap-card__label-button:focus-visible {
  outline: 2px solid rgba(147,197,253,0.7);
  outline-offset: 2px;
}
.comparative-heatmap-card--current .comparative-heatmap-card__label {
  color: #93c5fd;
}
.comparative-heatmap-card__meta {
  min-height: 1.2rem;
  font-size: .66rem;
  color: var(--muted);
  text-align: center;
  padding: 0 .2rem;
}
.comparative-heatmap-strip {
  display: flex;
  flex-direction: column;
  gap: 1px;
  height: 100%;
  min-height: 0;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: #05080c;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.45);
}
.comparative-heatmap-strip__segment {
  flex: 1 1 0;
  min-height: 1px;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  cursor: pointer;
  background-image: none;
  box-shadow: none;
}
.comparative-heatmap-strip__segment:hover {
  filter: brightness(1.12);
}
.comparative-heatmap-strip__segment:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: -2px;
  position: relative;
  z-index: 1;
}
.comparative-heatmap-card__state {
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  padding: .8rem .45rem;
  border-radius: 16px;
  border: 1px dashed rgba(148,163,184,0.24);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
  text-align: center;
}
.comparative-heatmap-tooltip {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  box-sizing: border-box;
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: .9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.25);
  background: rgba(8, 12, 18, 0.96);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(12px);
}
.comparative-heatmap-tooltip__eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #93c5fd;
}
.comparative-heatmap-tooltip__snippet {
  margin: .45rem 0 0 0;
  color: var(--text);
  font-size: .86rem;
  line-height: 1.45;
}
.comparative-heatmap-tooltip__sections {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: .8rem;
}
.comparative-heatmap-tooltip__section {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.comparative-heatmap-tooltip__section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  color: var(--text);
  font-size: .8rem;
  font-weight: 700;
}
.comparative-heatmap-tooltip__section-header span:last-child {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
}
.comparative-heatmap-tooltip__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.comparative-heatmap-tooltip__chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 1.85rem;
  padding: .26rem .55rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: .74rem;
  line-height: 1.2;
}
.comparative-heatmap-tooltip__chip-dot {
  width: .52rem;
  height: .52rem;
  border-radius: 999px;
  flex: 0 0 auto;
}
.comparative-heatmap-tooltip__more,
.comparative-heatmap-tooltip__empty {
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.35;
}
.homepage-rankings-help-trigger {
  font: inherit;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.16);
  cursor: help;
}
.homepage-rankings-help-trigger:hover,
.homepage-rankings-help-trigger:focus-visible {
  filter: brightness(1.06);
}
.homepage-rankings-help-trigger:focus-visible {
  outline: 2px solid rgba(147,197,253,0.8);
  outline-offset: 2px;
}
.homepage-rankings-help-popup {
  position: fixed;
  z-index: 40000;
  width: min(420px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  padding: 1rem 1rem .95rem;
  border-radius: 14px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(7,10,17,0.96);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.homepage-rankings-help-popup__title {
  margin: 0;
  font-size: 1.05rem;
  color: #f8fafc;
}
.homepage-rankings-help-popup__section {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.homepage-rankings-help-popup__label {
  color: #e5edf5;
  font-size: .88rem;
  font-weight: 700;
}
.homepage-rankings-help-popup__text {
  margin: 0;
  color: #dbe4ee;
  font-size: .88rem;
  line-height: 1.55;
}
.homepage-rankings-help-popup__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  align-self: flex-start;
  margin-top: .1rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  text-decoration: none;
  color: #06110b;
  background: #4ade80;
  font-weight: 600;
}
.homepage-rankings-help-popup__link:hover,
.homepage-rankings-help-popup__link:focus-visible {
  filter: brightness(1.03);
}
@media (max-width: 520px) {
  .comparative-heatmap-grid {
    gap: 0;
  }
  .comparative-heatmap-strip,
  .comparative-heatmap-card__state {
    min-height: 260px;
  }
}

.compute-cost {
  --compute-cost-ink: #f8fafc;
  --compute-cost-muted: #94a3b8;
  --compute-cost-line: rgba(148, 163, 184, .17);
  --compute-cost-panel: rgba(7, 13, 24, .88);
  --compute-cost-ai: #f59e0b;
  --compute-cost-hosting: #22d3ee;
  --compute-cost-positive: #34d399;
  color: var(--compute-cost-ink);
}

.compute-cost-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  border: 1px solid rgba(34, 211, 238, .2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 78% 25%, rgba(34, 211, 238, .2), transparent 28%),
    radial-gradient(circle at 12% 110%, rgba(245, 158, 11, .16), transparent 34%),
    linear-gradient(125deg, #111827 0%, #07111d 52%, #061c22 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.compute-cost-hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 32px 32px;
  content: '';
  mask-image: linear-gradient(90deg, transparent, #000 36%, #000);
}

.compute-cost-hero > * {
  position: relative;
  z-index: 1;
}

.compute-cost-hero h1 {
  margin: .2rem 0 .45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.35rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .95;
}

.compute-cost-hero p {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  font-size: clamp(.94rem, 1.7vw, 1.08rem);
}

.compute-cost-eyebrow {
  color: #67e8f9;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.compute-cost-hero__status {
  align-self: center;
  min-width: 210px;
  padding: .9rem 1rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(2, 6, 23, .45);
  backdrop-filter: blur(10px);
}

.compute-cost-hero__status span,
.compute-cost-hero__status strong {
  display: block;
}

.compute-cost-hero__status span {
  color: var(--compute-cost-muted);
  font-size: .76rem;
}

.compute-cost-hero__status strong {
  margin-top: .3rem;
  color: #ecfeff;
  font-size: 1rem;
}

.compute-cost-tabs {
  display: flex;
  gap: .35rem;
  margin-top: 1rem;
  padding: .35rem;
  overflow-x: auto;
  border: 1px solid var(--compute-cost-line);
  border-radius: 14px;
  background: #070b12;
}

.compute-cost-tabs button {
  flex: 1 0 auto;
  min-width: 132px;
  padding: .72rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--compute-cost-muted);
  font-weight: 700;
}

.compute-cost-tabs button:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, .04);
}

.compute-cost-tabs button.is-active {
  border-color: rgba(34, 211, 238, .28);
  color: #ecfeff;
  background: linear-gradient(135deg, rgba(8, 145, 178, .22), rgba(245, 158, 11, .08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.compute-cost-controls {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: .8rem;
  border: 1px solid var(--compute-cost-line);
  border-radius: 14px;
  background: rgba(7, 11, 18, .8);
}

.compute-cost-date-fields,
.compute-cost-presets {
  display: flex;
  gap: .55rem;
  align-items: end;
  flex-wrap: wrap;
}

.compute-cost-date-fields label {
  display: grid;
  gap: .25rem;
  color: var(--compute-cost-muted);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.compute-cost-date-fields input {
  min-width: 145px;
  padding: .48rem .58rem;
  border-color: rgba(148, 163, 184, .22);
  background: #0f172a;
  color: #e2e8f0;
}

.compute-cost-presets button {
  padding: .5rem .7rem;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 999px;
  background: #111827;
  color: #cbd5e1;
  font-size: .8rem;
}

.compute-cost-presets button:hover,
.compute-cost-presets button.compute-cost-refresh {
  border-color: rgba(34, 211, 238, .35);
  color: #cffafe;
}

.compute-cost-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1rem;
}

.compute-cost-metric {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid var(--compute-cost-line);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(5, 10, 18, .96));
}

.compute-cost-metric::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 3px;
  background: #64748b;
  content: '';
}

.compute-cost-metric--primary::before { background: linear-gradient(90deg, var(--compute-cost-ai), var(--compute-cost-hosting)); }
.compute-cost-metric--ai::before { background: var(--compute-cost-ai); }
.compute-cost-metric--hosting::before { background: var(--compute-cost-hosting); }

.compute-cost-metric > span,
.compute-cost-metric > strong,
.compute-cost-metric > small {
  display: block;
}

.compute-cost-metric > span {
  color: var(--compute-cost-muted);
  font-size: .78rem;
  font-weight: 700;
}

.compute-cost-metric > strong {
  margin-top: .55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -.035em;
}

.compute-cost-metric > small {
  margin-top: .45rem;
  color: #64748b;
  font-size: .72rem;
}

.compute-cost-source {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin-top: .8rem;
  padding: .72rem .85rem;
  border: 1px solid rgba(245, 158, 11, .25);
  border-radius: 12px;
  background: rgba(120, 53, 15, .12);
  color: #fde68a;
}

.compute-cost-source.is-detailed {
  border-color: rgba(52, 211, 153, .25);
  background: rgba(6, 78, 59, .14);
  color: #a7f3d0;
}

.compute-cost-source strong,
.compute-cost-source span { display: block; }
.compute-cost-source span { margin-top: .14rem; color: #cbd5e1; font-size: .79rem; }

.compute-cost-visual-grid,
.compute-cost-table-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
  gap: .8rem;
  margin-top: .8rem;
}

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

.compute-cost-panel {
  min-width: 0;
  margin-top: .8rem;
  overflow: hidden;
  border: 1px solid var(--compute-cost-line);
  border-radius: 16px;
  background: var(--compute-cost-panel);
}

.compute-cost-visual-grid > .compute-cost-panel,
.compute-cost-table-grid > .compute-cost-panel { margin-top: 0; }

.compute-cost-panel__heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1rem .75rem;
}

.compute-cost-panel__heading h3 {
  margin: .15rem 0 0;
  font-size: 1rem;
}

.compute-cost-panel__heading > span {
  color: var(--compute-cost-muted);
  font-size: .76rem;
}

.compute-cost-panel__legend {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
}

.compute-cost-panel__legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--compute-cost-hosting);
}

.compute-cost-bars {
  display: flex;
  gap: clamp(3px, .55vw, 8px);
  min-width: calc(var(--compute-cost-days) * 27px);
  height: 260px;
  padding: 1.6rem 1rem .7rem;
  overflow-x: auto;
  border-top: 1px solid rgba(148, 163, 184, .09);
  background: linear-gradient(rgba(148, 163, 184, .055) 1px, transparent 1px);
  background-size: 100% 25%;
}

.compute-cost-bar {
  display: grid;
  grid-template-rows: 1.2rem minmax(0, 1fr) 1.1rem;
  flex: 1 0 18px;
  gap: .25rem;
  min-width: 18px;
  text-align: center;
}

.compute-cost-bar__value {
  overflow: hidden;
  color: transparent;
  font-size: .62rem;
  text-overflow: ellipsis;
}

.compute-cost-bar:hover .compute-cost-bar__value { color: #a5f3fc; }

.compute-cost-bar__track {
  display: flex;
  align-items: flex-end;
  min-height: 0;
  overflow: hidden;
  border-radius: 6px 6px 2px 2px;
  background: rgba(15, 23, 42, .55);
}

.compute-cost-bar__track > span {
  width: 100%;
  min-height: 0;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #67e8f9, #0891b2 68%, #155e75);
  box-shadow: 0 0 18px rgba(34, 211, 238, .2);
}

.compute-cost-bar time {
  color: #64748b;
  font-size: .61rem;
  white-space: nowrap;
}

.compute-cost-mix__body {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(150px, 1fr);
  gap: 1rem;
  align-items: center;
  padding: .3rem 1rem 1rem;
}

.compute-cost-donut {
  position: relative;
  display: grid;
  width: min(100%, 180px);
  aspect-ratio: 1;
  place-items: center;
  margin: auto;
  border-radius: 50%;
  background: conic-gradient(var(--compute-cost-ai) 0 var(--ai-share), var(--compute-cost-hosting) var(--ai-share) 100%);
  box-shadow: 0 0 34px rgba(34, 211, 238, .11);
}

.compute-cost-donut::after {
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid var(--compute-cost-line);
  border-radius: 50%;
  background: #07101b;
  content: '';
}

.compute-cost-donut > span {
  position: relative;
  z-index: 1;
  text-align: center;
}

.compute-cost-donut strong,
.compute-cost-donut small { display: block; }
.compute-cost-donut strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.compute-cost-donut small { margin-top: .15rem; color: var(--compute-cost-muted); font-size: .65rem; }

.compute-cost-mix dl,
.compute-cost-provider-grid dl { margin: 0; }
.compute-cost-mix dl > div { padding: .55rem 0; border-bottom: 1px solid var(--compute-cost-line); }
.compute-cost-mix dt { color: var(--compute-cost-muted); font-size: .72rem; }
.compute-cost-mix dd { margin: .15rem 0 0; font-weight: 800; }
.compute-cost-mix dt i { display: inline-block; width: 7px; height: 7px; margin-right: .4rem; border-radius: 50%; }
.compute-cost-mix dt i.is-ai { background: var(--compute-cost-ai); }
.compute-cost-mix dt i.is-hosting { background: var(--compute-cost-hosting); }

.compute-cost-footnote {
  margin: 0;
  padding: 0 1rem 1rem;
  color: #64748b;
  font-size: .7rem;
}

.compute-cost-provider-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  padding: 0 1rem 1rem;
}

.compute-cost-provider-grid article {
  padding: .8rem;
  border: 1px solid var(--compute-cost-line);
  border-radius: 11px;
  background: rgba(15, 23, 42, .55);
}

.compute-cost-provider-grid article > div {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  align-items: center;
}

.compute-cost-provider-grid article > div span {
  color: #fca5a5;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.compute-cost-provider-grid article > div span.is-live { color: #6ee7b7; }
.compute-cost-provider-grid dl > div { margin-top: .55rem; }
.compute-cost-provider-grid dt { color: #64748b; font-size: .68rem; }
.compute-cost-provider-grid dd { margin: .1rem 0 0; font-size: .82rem; }

.compute-cost-table-wrap { max-height: 440px; overflow: auto; border-top: 1px solid rgba(148, 163, 184, .09); }
.compute-cost-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.compute-cost-table th,
.compute-cost-table td { padding: .62rem .75rem; border-bottom: 1px solid rgba(148, 163, 184, .09); text-align: right; }
.compute-cost-table th:first-child,
.compute-cost-table td:first-child { text-align: left; }
.compute-cost-table thead th { position: sticky; top: 0; z-index: 1; background: #0b1421; color: var(--compute-cost-muted); font-size: .68rem; text-transform: uppercase; }
.compute-cost-table tbody tr:hover { background: rgba(34, 211, 238, .035); }

.compute-cost-empty { padding: 1rem; color: var(--compute-cost-muted); text-align: left; }
.compute-cost-loading,
.compute-cost-error { margin-top: 1rem; padding: 1rem; border: 1px solid var(--compute-cost-line); border-radius: 12px; background: rgba(7, 11, 18, .8); color: var(--compute-cost-muted); }
.compute-cost-loading { display: flex; gap: .55rem; align-items: center; }
.compute-cost-error { border-color: rgba(248, 113, 113, .35); color: #fecaca; }
.compute-cost__ai-panel { width: 100%; }

@media (max-width: 1050px) {
  .compute-cost-metrics,
  .compute-cost-provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compute-cost-visual-grid,
  .compute-cost-table-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .compute-cost-hero { display: grid; }
  .compute-cost-hero__status { width: 100%; }
  .compute-cost-controls { display: grid; }
  .compute-cost-date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compute-cost-date-fields input { width: 100%; min-width: 0; }
  .compute-cost-tabs button { min-width: 112px; }
}

@media (max-width: 520px) {
  .compute-cost-metrics,
  .compute-cost-provider-grid { grid-template-columns: minmax(0, 1fr); }
  .compute-cost-metric { min-height: 112px; }
  .compute-cost-mix__body { grid-template-columns: minmax(0, 1fr); }
  .compute-cost-donut { width: 155px; }
  .compute-cost-date-fields { grid-template-columns: minmax(0, 1fr); }
  .compute-cost-presets button { flex: 1 1 auto; }
}

.campaign-mail-page {
  min-width: 0;
}

.campaign-mail-summary {
  display: grid;
  grid-template-columns: repeat(7, minmax(94px, 1fr)) minmax(220px, 1.5fr);
  margin-bottom: 1rem;
  border-top: 1px solid #263241;
  border-bottom: 1px solid #263241;
  background: #090d12;
}

.campaign-mail-summary__item,
.campaign-mail-summary__meta {
  min-width: 0;
  padding: .8rem 1rem;
  border-right: 1px solid #263241;
}

.campaign-mail-summary__item span,
.campaign-mail-summary__meta span {
  display: block;
  color: #91a0b4;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.campaign-mail-summary__item strong {
  display: block;
  margin-top: .2rem;
  color: #f8fafc;
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}

.campaign-mail-summary__item.is-waiting strong { color: #7dd3fc; }
.campaign-mail-summary__item.is-approval strong { color: #c4b5fd; }
.campaign-mail-summary__item.is-replied strong { color: #86efac; }
.campaign-mail-summary__item.is-human strong { color: #fcd34d; }
.campaign-mail-summary__item.is-unread strong { color: #fda4af; }
.campaign-mail-summary__item.is-archived strong { color: #cbd5e1; }

.campaign-mail-summary__meta {
  border-right: 0;
  text-align: right;
}

.campaign-mail-summary__meta strong {
  display: block;
  margin-top: .35rem;
  color: #cbd5e1;
  font-size: .82rem;
  font-weight: 500;
}

.campaign-mail-view-tabs {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #334155;
}

.campaign-mail-view-tabs button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: .5rem;
  padding: .55rem .1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #94a3b8;
  font-size: .88rem;
  font-weight: 700;
}

.campaign-mail-view-tabs button:hover,
.campaign-mail-view-tabs button:focus-visible {
  color: #f8fafc;
}

.campaign-mail-view-tabs button.is-active {
  border-bottom-color: #38bdf8;
  color: #e0f2fe;
}

.campaign-mail-view-tabs button strong {
  min-width: 24px;
  padding: .12rem .4rem;
  border-radius: 999px;
  background: #312e81;
  color: #ddd6fe;
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.campaign-mail-approvals {
  display: grid;
  gap: .85rem;
}

.campaign-mail-approval {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #070b10;
}

.campaign-mail-approval__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid #263241;
  background: #0d131b;
}

.campaign-mail-approval__header h2 {
  margin: .35rem 0 0;
  color: #f8fafc;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.campaign-mail-approval__links,
.campaign-mail-row-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .45rem;
}

.campaign-mail-approval__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid #263241;
}

.campaign-mail-approval__facts > div {
  min-width: 0;
  padding: .7rem 1rem;
  border-right: 1px solid #263241;
}

.campaign-mail-approval__facts > div:last-child {
  border-right: 0;
}

.campaign-mail-approval__facts dt,
.campaign-mail-approval__body > span {
  margin-bottom: .25rem;
  color: #8291a5;
  font-size: .68rem;
  font-weight: 750;
  text-transform: uppercase;
}

.campaign-mail-approval__facts dd {
  margin: 0;
  color: #dbe5f1;
  font-size: .82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.campaign-mail-approval__facts dd strong,
.campaign-mail-approval__facts dd small {
  display: block;
}

.campaign-mail-approval__facts dd small {
  margin-top: .15rem;
  color: #8391a3;
}

.campaign-mail-approval__body {
  display: grid;
  gap: .25rem;
  padding: .85rem 1rem;
}

.campaign-mail-source-preview {
  padding: .8rem 1rem;
  border-bottom: 1px solid #263241;
  background: #05090d;
}

.campaign-mail-source-preview > span {
  color: #8291a5;
  font-size: .68rem;
  font-weight: 750;
  text-transform: uppercase;
}

.campaign-mail-source-preview p {
  margin: .35rem 0 0;
  color: #cbd5e1;
  font-size: .85rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.campaign-mail-approval__body textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid #3a485b;
  border-radius: 5px;
  outline: 0;
  background: #030609;
  color: #e5e7eb;
  font: inherit;
  font-size: .9rem;
  line-height: 1.55;
}

.campaign-mail-approval__body textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, .14);
}

.campaign-mail-approval__body textarea:disabled {
  color: #8491a2;
  opacity: .72;
}

.campaign-mail-approval__warning,
.campaign-mail-approval__error {
  margin: 0 1rem .75rem;
  padding: .65rem .75rem;
  border-left: 3px solid #f59e0b;
  background: #241909;
  color: #fde68a;
  font-size: .82rem;
}

.campaign-mail-approval__error {
  border-left-color: #fb7185;
  background: #2a1017;
  color: #fecdd3;
}

.campaign-mail-approval__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .75rem 1rem;
  border-top: 1px solid #263241;
  background: #0a0f15;
}

.campaign-mail-approval__actions > span {
  color: #7f8da0;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.campaign-mail-send {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .5rem .85rem;
  border: 1px solid #0e7490;
  border-radius: 5px;
  background: #155e75;
  color: #ecfeff;
  font-size: .82rem;
  font-weight: 750;
}

.campaign-mail-send:hover,
.campaign-mail-send:focus-visible {
  border-color: #38bdf8;
  background: #0e7490;
}

.campaign-mail-send:disabled {
  border-color: #334155;
  background: #1f2937;
  color: #748095;
  cursor: not-allowed;
}

.campaign-mail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .7rem;
  margin-bottom: .85rem;
  min-width: 0;
}

.campaign-mail-classification-filter {
  display: grid;
  flex: 1 0 100%;
  gap: .25rem;
  min-width: 0;
}

.campaign-mail-classification-filter > span {
  color: #8fa0b5;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.campaign-mail-status-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #334155;
  border-radius: 6px;
}

.campaign-mail-status-tabs button {
  min-height: 38px;
  padding: .45rem .75rem;
  border: 0;
  border-right: 1px solid #334155;
  border-radius: 0;
  background: #0b1118;
  color: #aab6c6;
  font-size: .84rem;
  font-weight: 650;
  white-space: nowrap;
}

.campaign-mail-status-tabs button:last-child {
  border-right: 0;
}

.campaign-mail-status-tabs button:hover,
.campaign-mail-status-tabs button:focus-visible {
  background: #15202b;
  color: #f8fafc;
}

.campaign-mail-status-tabs button.is-active {
  background: #164e63;
  color: #ecfeff;
}

.campaign-mail-search {
  display: flex;
  flex: 1 1 250px;
  align-items: center;
  gap: .5rem;
  min-width: 180px;
  height: 40px;
  padding: 0 .75rem;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #080c11;
  color: #94a3b8;
}

.campaign-mail-search:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, .16);
}

.campaign-mail-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f8fafc;
}

.campaign-mail-select {
  display: grid;
  flex: 0 1 180px;
  gap: .2rem;
  min-width: 145px;
}

.campaign-mail-select > span {
  color: #8fa0b5;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.campaign-mail-select select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #080c11;
  color: #e2e8f0;
}

.campaign-mail-error {
  margin-bottom: .85rem;
  padding: .75rem .9rem;
  border-left: 3px solid #fb7185;
  background: #2a1017;
  color: #fecdd3;
}

.campaign-mail-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-top: 1px solid #273242;
  border-bottom: 1px solid #273242;
  background: #05080c;
}

.campaign-mail-table-scrollers {
  position: relative;
  min-width: 0;
}

.campaign-mail-table-scrollbar {
  margin-bottom: .35rem;
}

.campaign-mail-table {
  width: 100%;
  min-width: 1826px;
  border-collapse: collapse;
  table-layout: fixed;
}

.campaign-mail-table th,
.campaign-mail-table td {
  padding: .7rem .75rem;
  border-right: 1px solid #1f2937;
  border-bottom: 1px solid #1f2937;
  color: #cbd5e1;
  font-size: .84rem;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.campaign-mail-table th:last-child,
.campaign-mail-table td:last-child {
  border-right: 0;
  text-align: center;
}

.campaign-mail-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0;
  background: #0d131b;
}

.campaign-mail-table thead th > button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  padding: .65rem .75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #dbe5f1;
  font-size: .75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.campaign-mail-runs-table {
  min-width: 1780px;
}

.campaign-mail-runs-table thead th {
  padding: .65rem .75rem;
  color: #dbe5f1;
  font-size: .75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.campaign-mail-table thead th > button:hover,
.campaign-mail-table thead th > button:focus-visible {
  background: #17212c;
  color: #fff;
}

.campaign-mail-table tbody tr:hover {
  background: #0c1219;
}

.campaign-mail-table tbody tr.is-unread {
  background: #0d1720;
}

.campaign-mail-table td > strong,
.campaign-mail-table td > small {
  display: block;
}

.campaign-mail-table td > small {
  margin-top: .2rem;
  color: #7f8da0;
}

.campaign-mail-status,
.campaign-mail-router-state {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
}

.campaign-mail-status::before,
.campaign-mail-router-state::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #94a3b8;
  content: '';
}

.campaign-mail-status.is-replied { color: #86efac; }
.campaign-mail-status.is-replied::before { background: #22c55e; }
.campaign-mail-status.is-complete { color: #86efac; }
.campaign-mail-status.is-complete::before { background: #22c55e; }
.campaign-mail-status.is-waiting { color: #7dd3fc; }
.campaign-mail-status.is-waiting::before { background: #38bdf8; }
.campaign-mail-status.is-unprocessed { color: #7dd3fc; }
.campaign-mail-status.is-unprocessed::before { background: #38bdf8; }
.campaign-mail-status.is-pending-approval { color: #c4b5fd; }
.campaign-mail-status.is-pending-approval::before { background: #8b5cf6; }
.campaign-mail-status.is-human { color: #fde68a; }
.campaign-mail-status.is-human::before { background: #f59e0b; }
.campaign-mail-status.is-needs-human { color: #fde68a; }
.campaign-mail-status.is-needs-human::before { background: #f59e0b; }
.campaign-mail-status.is-no-reply { color: #cbd5e1; }
.campaign-mail-status.is-no-reply::before { background: #64748b; }
.campaign-mail-status.is-no-reply-needed { color: #cbd5e1; }
.campaign-mail-status.is-no-reply-needed::before { background: #64748b; }
.campaign-mail-status.is-archived { color: #cbd5e1; }
.campaign-mail-status.is-archived::before { background: #64748b; }
.campaign-mail-status.is-sending { color: #67e8f9; }
.campaign-mail-status.is-sending::before { background: #06b6d4; }
.campaign-mail-status.is-failed,
.campaign-mail-status.is-error,
.campaign-mail-status.is-partial { color: #fda4af; }
.campaign-mail-status.is-failed::before,
.campaign-mail-status.is-error::before,
.campaign-mail-status.is-partial::before { background: #fb7185; }
.campaign-mail-router-state.is-processed { color: #a7f3d0; }
.campaign-mail-router-state.is-processed::before { background: #10b981; }
.campaign-mail-router-state.is-pending { color: #fda4af; }
.campaign-mail-router-state.is-pending::before { background: #fb7185; }

.campaign-mail-persona {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.campaign-mail-persona > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #3b4c60;
  border-radius: 50%;
  background: #16202a;
  color: #dbeafe;
  font-size: .75rem;
  font-weight: 800;
}

.campaign-mail-persona > span:last-child,
.campaign-mail-persona strong,
.campaign-mail-persona small {
  display: block;
  min-width: 0;
}

.campaign-mail-persona small {
  margin-top: .15rem;
  color: #8190a3;
  font-size: .72rem;
}

.campaign-mail-subject {
  color: #f1f5f9 !important;
  font-weight: 650;
}

.campaign-mail-open {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #36536a;
  border-radius: 6px;
  background: transparent;
  color: #7dd3fc;
  text-decoration: none;
}

.campaign-mail-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, .78);
}

.campaign-mail-dialog {
  width: min(920px, 100%);
  max-height: min(860px, calc(100vh - 2.5rem));
  overflow: auto;
  border: 1px solid #3b4c60;
  border-radius: 7px;
  background: #070b10;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.campaign-mail-dialog > header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid #263241;
  background: #0d131b;
}

.campaign-mail-dialog > header span {
  color: #7dd3fc;
  font-size: .72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.campaign-mail-dialog > header h2 {
  margin: .25rem 0 0;
  color: #f8fafc;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.campaign-mail-dialog > header button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #3b4c60;
  border-radius: 5px;
  background: transparent;
  color: #cbd5e1;
}

.campaign-mail-dialog__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid #263241;
}

.campaign-mail-dialog__facts > div {
  min-width: 0;
  padding: .75rem 1rem;
  border-right: 1px solid #263241;
}

.campaign-mail-dialog__facts > div:last-child { border-right: 0; }
.campaign-mail-dialog__facts dt {
  margin-bottom: .25rem;
  color: #8291a5;
  font-size: .68rem;
  font-weight: 750;
  text-transform: uppercase;
}
.campaign-mail-dialog__facts dd {
  margin: 0;
  color: #dbe5f1;
  font-size: .82rem;
  overflow-wrap: anywhere;
}
.campaign-mail-dialog__facts small { display: block; margin-top: .15rem; color: #8391a3; }

.campaign-mail-dialog__body {
  padding: 1rem;
  border-bottom: 1px solid #263241;
  background: #030609;
}

.campaign-mail-dialog__body pre {
  margin: 0;
  color: #e2e8f0;
  font: inherit;
  font-size: .88rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.campaign-mail-dialog__attachments,
.campaign-mail-dialog__events {
  padding: .9rem 1rem;
  border-bottom: 1px solid #263241;
}

.campaign-mail-dialog__attachments h3,
.campaign-mail-dialog__events h3 {
  margin: 0 0 .6rem;
  color: #f8fafc;
  font-size: .82rem;
}

.campaign-mail-dialog__attachments > div,
.campaign-mail-dialog__events > div {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 2fr) minmax(120px, 1fr);
  gap: .75rem;
  padding: .5rem 0;
  border-top: 1px solid #1f2937;
  color: #cbd5e1;
  font-size: .78rem;
}

.campaign-mail-dialog__attachments > div { grid-template-columns: minmax(180px, 1fr) minmax(200px, 2fr); }
.campaign-mail-dialog__attachments a {
  color: #7dd3fc;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.campaign-mail-dialog__attachments a:hover,
.campaign-mail-dialog__attachments a:focus-visible { text-decoration: underline; }
.campaign-mail-dialog__events time,
.campaign-mail-dialog__events span,
.campaign-mail-dialog__attachments span { color: #8391a3; }

.campaign-mail-open:hover,
.campaign-mail-open:focus-visible {
  border-color: #38bdf8;
  background: #123044;
  color: #e0f2fe;
}

.campaign-mail-empty {
  padding: 2.25rem 1rem;
  color: #94a3b8;
  text-align: center;
}

@media (max-width: 1180px) {
  .campaign-mail-summary {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .campaign-mail-summary__meta {
    text-align: left;
  }

  .campaign-mail-toolbar {
    flex-wrap: wrap;
  }

  .campaign-mail-search {
    order: 3;
    flex-basis: 100%;
  }

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

  .campaign-mail-approval__facts > div:nth-child(2) {
    border-right: 0;
  }

  .campaign-mail-approval__facts > div:nth-child(-n + 2) {
    border-bottom: 1px solid #263241;
  }
}

@media (max-width: 640px) {
  .campaign-mail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campaign-mail-summary__item,
  .campaign-mail-summary__meta {
    border-bottom: 1px solid #263241;
  }

  .campaign-mail-summary__meta {
    grid-column: 1 / -1;
  }

  .campaign-mail-status-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .campaign-mail-status-tabs button {
    flex: 1 0 auto;
  }

  .campaign-mail-select {
    flex: 1 1 140px;
  }

  .campaign-mail-view-tabs {
    gap: .85rem;
    overflow-x: auto;
  }

  .campaign-mail-view-tabs button {
    flex: 0 0 auto;
  }

  .campaign-mail-approval__facts {
    grid-template-columns: 1fr;
  }

  .campaign-mail-approval__facts > div,
  .campaign-mail-approval__facts > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #263241;
  }

  .campaign-mail-approval__facts > div:last-child {
    border-bottom: 0;
  }

  .campaign-mail-approval__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .campaign-mail-dialog-backdrop {
    padding: .5rem;
  }

  .campaign-mail-dialog {
    max-height: calc(100vh - 1rem);
  }

  .campaign-mail-dialog__facts {
    grid-template-columns: 1fr;
  }

  .campaign-mail-dialog__facts > div,
  .campaign-mail-dialog__facts > div:last-child {
    border-right: 0;
    border-bottom: 1px solid #263241;
  }

  .campaign-mail-dialog__events > div,
  .campaign-mail-dialog__attachments > div {
    grid-template-columns: 1fr;
    gap: .2rem;
  }

  .campaign-mail-send {
    width: 100%;
  }
}

.stats-panel h4 {
  margin: 0 0 .5rem 0;
  color: var(--text);
}
.stats-row {
  margin-bottom: .75rem;
  position: relative;
  z-index: 0;
  overflow: visible;
}
.stats-row:hover,
.stats-row:focus-within {
  z-index: 12;
}
.stats-row__header {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--text);
}
.stats-row__bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #101010;
  border: 1px solid #1f1f1f;
  overflow: hidden;
  margin-top: .25rem;
  position: relative;
}
.stats-row__bar-text {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  text-align: right;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.stats-row__stacked {
  margin-top: 0;
  height: 14px;
}
.stats-row__segment {
  margin-top: 0;
}
.stats-row__segment + .stats-row__segment {
  margin-top: 0;
}
.stats-row__segment + .stats-row__segment {
  margin-top: 0;
}
.stats-row__fill {
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease;
}
.stats-row__fill--primary {
  position: relative;
  z-index: 2;
}
.stats-row__fill--secondary {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.35;
  z-index: 1;
}
.stats-row__fill--tertiary {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.2;
  z-index: 0;
}
.stats-row__popup {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  width: min(280px, calc(100vw - 3rem));
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(180deg, rgba(17,17,17,0.98), rgba(8,8,8,0.98));
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  visibility: hidden;
}
.stats-row__popup::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: rgba(12,12,12,0.98);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-left: 1px solid rgba(255,255,255,0.12);
  transform: rotate(45deg);
}
.stats-row:hover .stats-row__popup,
.stats-row:focus-within .stats-row__popup {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.stats-row__popup-title {
  margin-bottom: 0.55rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}
.stats-row__popup-items {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.stats-row__popup-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
}
.stats-row__popup-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--stats-popup-color, var(--accent));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
.stats-row__popup-swatch--outline {
  border-radius: 3px;
  background: transparent;
  border: 2px solid var(--stats-popup-color, var(--accent));
  box-sizing: border-box;
}
.stats-row__popup-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.stats-row__popup-item-label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}
.stats-row__popup-item-name {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.stats-row__popup-item-value {
  color: var(--accent-2);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}
.stats-row__popup-note {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}
.stats-meta {
  color: var(--muted);
  font-size: .85rem;
}
.articles-filter-bar input,
.articles-filter-bar select {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid #1f2937;
  color: var(--text);
  padding: .5rem .75rem;
  border-radius: 6px;
}
.articles-filter-bar select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
.articles-filter-bar input:focus,
.articles-filter-bar select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.articles-pagination {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.articles-pagination button {
  border: 1px solid #1f2937;
  background: #0b0b0b;
  color: var(--text);
  padding: .4rem .9rem;
  border-radius: 6px;
  cursor: pointer;
}
.articles-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.articles-pagination span {
  color: var(--muted);
}
.articles-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.articles-footer__count {
  color: var(--muted);
}
.entity-summary-profile {
  margin: -.35rem 0 1rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(96,165,250,.22);
  border-radius: 10px;
  background: rgba(15,23,42,.58);
}
.entity-summary-profile__eyebrow {
  margin-bottom: .4rem;
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.entity-summary-profile__facts {
  display: flex;
  align-items: center;
  gap: .55rem 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .88rem;
}
.search-results-primary {
  min-width: 0;
}
.search-results-primary__empty {
  margin: 0;
  padding: .85rem 0;
}
.search-entity-panel__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}
.search-entity-panel__header h2 {
  margin: 0;
  font-size: 1.15rem;
}
.search-entity-panel__header > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .75rem;
  white-space: nowrap;
}
.search-entity-panel__error {
  padding: .75rem;
  border: 1px solid rgba(248,113,113,.3);
  border-radius: 8px;
  color: #fca5a5;
  font-size: .82rem;
  line-height: 1.45;
}
.search-entity-panel__error div {
  margin-top: .2rem;
  color: var(--muted);
}
.search-results-mobile-panel-tab-bar {
  grid-template-columns: minmax(0, 1fr);
}
.search-entity-results {
  margin: 0;
  padding: 0;
  list-style: none;
}
.search-entity-result {
  padding: .68rem .8rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.search-entity-result:first-child {
  border-top: 0;
}
.search-entity-result__content {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  min-width: 0;
}
.search-entity-result__content > i {
  flex: 0 0 auto;
  margin-top: .08rem;
  color: #7dd3fc;
  font-size: .95rem;
}
.search-entity-result__text {
  min-width: 0;
}
.search-entity-result__name {
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.search-entity-result__name > a {
  color: #e5e7eb;
  font-size: .88rem;
  font-weight: 700;
}
.search-entity-result__details {
  margin-top: .15rem;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.35;
}
.percentile-badge--tappable {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.percentile-badge-popover-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
}
.percentile-badge-popover__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  padding: 0;
}
.percentile-badge-popover {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(34rem, calc(100vw - 1.5rem));
  background: rgba(8, 8, 8, 0.97);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.percentile-badge-popover__close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  padding: .25rem;
}
.percentile-badge-popover__body {
  white-space: pre-line;
  text-align: left;
  font-size: .95rem;
  line-height: 1.55;
  max-height: min(40vh, 24rem);
  overflow-y: auto;
  padding: 1rem 2.5rem 1.1rem 1rem;
}
.word-item--has-tooltip {
  position: relative;
}

.word-item--has-tooltip::after {
  content: attr(data-tooltip);
  position: fixed;
  left: 40px;
  right: 40px;
  bottom: 0;
  transform: none;
  background: rgba(8, 8, 8, 0.95);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0;
  white-space: pre-line;
  max-width: 800px;
  text-align: left;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  max-height: 40vh;
  overflow-y: auto;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
  z-index: 2147483647;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.45);
  left: 50%;
  transform: translateX(-50%);
  padding-right: 2rem;
  padding-left: 2rem;
}

.word-item--has-tooltip:hover::after {
  opacity: 1;
  pointer-events: auto;
}

/* content page status spinner */
.status-spinner{display:inline-block;width:14px;height:14px;border:2px solid #777;border-top-color:transparent;border-radius:50%;vertical-align:middle}
.status-spinner.is-active{border-color:#4caf50;border-top-color:transparent;animation:status-spin .8s linear infinite}
@keyframes status-spin{to{transform:rotate(360deg)}}

.content-date-filter {
  display: grid;
  gap: .8rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.content-report-section {
  margin-bottom: 1rem;
  padding: 0;
  overflow: hidden;
}

.content-report-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b1220;
}

.content-report-section__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.content-report-section__subtitle {
  margin-top: .18rem;
  color: var(--muted);
  font-size: .84rem;
}

.content-report-section__actions {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex: 0 0 auto;
}

.content-report-icon-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: #111827;
  color: #e5e7eb;
  cursor: pointer;
}

.content-report-icon-button:disabled {
  cursor: default;
  opacity: .45;
}

.content-report-section__body {
  padding: 1rem;
}

.content-report-section__meta {
  color: var(--muted);
  font-size: .85rem;
  margin-top: .7rem;
}

.content-report-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: .45rem;
  margin-top: .75rem;
}

.content-report-metric {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: .45rem .55rem;
  background: #111827;
}

.content-report-metric__label {
  color: var(--muted);
  font-size: .72rem;
}

.content-report-metric__value {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: .12rem;
}

.content-report-date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
}

.content-report-date-field {
  display: block;
  color: #d1d5db;
  font-size: .86rem;
}

.content-report-date-field input {
  width: 100%;
  margin-top: .25rem;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #e5e7eb;
  padding: .4rem .55rem;
}

.content-report-quick-ranges {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .75rem;
  margin-bottom: .9rem;
}

.content-report-pill-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #111;
  color: #d1d5db;
  border-radius: 999px;
  padding: .35rem .65rem;
  cursor: pointer;
}

.content-report-pill-button--active {
  background: #1f2937;
  border-color: rgba(96, 165, 250, 0.7);
  color: #bfdbfe;
}

.content-report-pill-button:disabled {
  cursor: default;
  opacity: .48;
}

.content-status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  color: #d1d5db;
  font-size: .9rem;
  margin-bottom: .75rem;
}

.content-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .9rem;
  align-items: center;
  margin-bottom: .75rem;
  color: #d1d5db;
  font-size: .85rem;
}

.content-status-legend__item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.content-status-legend__swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.content-status-chart-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: #101114;
  padding: .75rem;
}

.content-status-chart {
  display: block;
  width: 100%;
  height: 270px;
}

.content-status-chart__axis {
  stroke: rgba(229, 231, 235, 0.55);
  stroke-width: 1;
}

.content-status-chart__grid {
  stroke: rgba(229, 231, 235, 0.18);
  stroke-width: 1;
}

.content-status-chart__tick,
.content-status-chart__date {
  fill: #9ca3af;
  font-size: 12px;
}

.content-status-chart__bar-rail {
  fill: rgba(255, 255, 255, 0.045);
}

.content-status-chart-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: #101114;
}

.content-table-scroll {
  overflow-x: auto;
  margin-top: .25rem;
}

.content-table-scrollbar {
  overflow-x: auto;
  overflow-y: hidden;
  height: 16px;
  margin-top: .5rem;
}

.content-table-scrollbar__inner {
  height: 1px;
}

.campaign-table-scroll,
.campaign-table-scrollbar {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-color: #64748b #0a0d12;
  scrollbar-width: auto;
}

.campaign-table-scrollbar {
  height: 22px;
  overflow-y: hidden;
}

.campaign-table-scrollbar--top {
  position: sticky;
  top: 78px;
  z-index: 20;
  background: #0a0d12;
  border: 1px solid #263244;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .36);
}

.campaign-table-scrollbar__inner {
  height: 1px;
}

.campaign-opportunity-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid #263244;
  border-bottom: 1px solid #263244;
  list-style: none;
}

.campaign-opportunity-path li {
  display: flex;
  gap: .45rem;
  align-items: center;
  min-height: 42px;
  padding: .45rem .65rem;
  border-right: 1px solid #263244;
  color: #94a3b8;
  font-size: .78rem;
}

.campaign-opportunity-path li:last-child {
  border-right: 0;
}

.campaign-opportunity-path li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid #475569;
  border-radius: 50%;
  flex: 0 0 auto;
  font-size: .7rem;
}

.campaign-opportunity-path li.is-complete {
  color: #bbf7d0;
}

.campaign-opportunity-path li.is-complete > span {
  border-color: #22c55e;
  background: #14532d;
  color: #f0fdf4;
}

.campaign-opportunity-fields--more-data {
  margin: .8rem 0 0;
  padding-top: .75rem;
  border-top: 1px solid #263244;
}

.campaign-platform-workspace {
  min-width: 0;
  display: grid;
  gap: .75rem;
}

.campaign-platform-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid #263244;
  border-radius: 6px;
  overflow: hidden;
  background: #0a0d12;
}

.campaign-platform-list {
  max-height: 430px;
  overflow-y: auto;
  border-bottom: 1px solid #263244;
  background: #0c1118;
}

.campaign-platform-group + .campaign-platform-group {
  border-top: 1px solid #334155;
}

.campaign-platform-group__header {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 56px;
  background: #131a23;
  box-shadow: 0 1px 0 #263244;
}

.campaign-platform-group__toggle {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem .8rem;
  border: 0;
  background: transparent;
  color: #f3f4f6;
  text-align: left;
  cursor: pointer;
}

.campaign-platform-group__toggle:hover {
  background: #18212c;
}

.campaign-platform-group__toggle:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: -2px;
}

.campaign-platform-group__toggle.is-current {
  box-shadow: inset 3px 0 0 #38bdf8;
}

.campaign-platform-group__toggle > i {
  margin-left: auto;
  color: #94a3b8;
  flex: 0 0 auto;
}

.campaign-platform-group__identity {
  min-width: 0;
  display: grid;
  gap: .12rem;
}

.campaign-platform-group__identity strong {
  color: #f3f4f6;
  font-size: .9rem;
  line-height: 1.25;
}

.campaign-platform-group__identity > span {
  color: #94a3b8;
  font-size: .74rem;
}

.campaign-platform-expansion-actions {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.campaign-platform-expansion-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .45rem .65rem;
  border: 1px solid #334155;
  border-radius: 5px;
  background: #0c1118;
  color: #cbd5e1;
  font-weight: 700;
}

.campaign-platform-expansion-actions button:hover:not(:disabled) {
  border-color: #64748b;
  color: #f3f4f6;
}

.campaign-platform-expansion-actions button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.campaign-platform-logo {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  border: 1px solid color-mix(in srgb, var(--campaign-platform-color) 55%, #334155);
  border-radius: 6px;
  background: #0a0d12;
  color: var(--campaign-platform-color);
  font-size: 1.08rem;
}

.campaign-platform-logo.is-compact {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  font-size: .95rem;
}

.campaign-platform-logo__text {
  color: inherit;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
}

.campaign-platform-identity {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  color: #e5e7eb;
  line-height: 1.25;
}

.campaign-platform-identity > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.campaign-platform-identity.is-compact {
  gap: .4rem;
  font-size: .82rem;
}

.campaign-account-identity {
  min-width: 0;
  display: inline-flex;
  align-items: flex-start;
  gap: .55rem;
  color: #e5e7eb;
}

.campaign-account-identity.is-missing {
  color: #fbbf24;
}

.campaign-account-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  border: 1px solid #475569;
  border-radius: 50%;
  background: #17202b;
  color: #bae6fd;
  font-size: .76rem;
  font-weight: 800;
}

.campaign-account-identity.is-compact .campaign-account-avatar {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  font-size: .68rem;
}

.campaign-account-identity__copy {
  min-width: 0;
  display: grid;
  gap: .15rem;
}

.campaign-account-identity__name {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: .42rem;
  flex-wrap: wrap;
}

.campaign-account-identity__name > strong {
  color: #f3f4f6;
  line-height: 1.25;
}

.campaign-account-identity__copy > span:not(.campaign-platform-identity):not(.campaign-account-identity__name) {
  color: #94a3b8;
  font-size: .76rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.campaign-platform-group__targets {
  background: #0c1118;
}

.campaign-platform-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  margin-left: 1.45rem;
  border-left: 1px solid #334155;
  border-bottom: 1px solid #1f2937;
}

.campaign-platform-list-item.is-active {
  background: #16202b;
  box-shadow: inset 3px 0 0 #38bdf8;
}

.campaign-platform-list-item > button {
  min-width: 0;
  display: grid;
  gap: .3rem;
  padding: .72rem .85rem;
  border: 0;
  background: transparent;
  color: #e5e7eb;
  text-align: left;
}

.campaign-platform-list-item > button:hover {
  background: rgba(255, 255, 255, .03);
}

.campaign-platform-list-item > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7dd3fc;
}

.campaign-platform-list-item > a:hover {
  color: #bae6fd;
  text-decoration: none;
}

.campaign-platform-list-item__meta {
  color: #94a3b8;
  font-size: .78rem;
}

.campaign-platform-detail {
  min-width: 0;
}

.campaign-platform-detail__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: #10161e;
}

.campaign-platform-detail__header h4 {
  margin: .15rem 0 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

.campaign-platform-detail__identity {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: .7rem;
}

.campaign-platform-detail__identity > div {
  min-width: 0;
}

.campaign-platform-detail__platform {
  color: #7dd3fc;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.campaign-platform-open {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  min-height: 36px;
  padding: .45rem .65rem;
  border: 1px solid #334155;
  border-radius: 5px;
  color: #bae6fd;
  flex: 0 0 auto;
  font-weight: 700;
}

.campaign-platform-open:hover {
  border-color: #64748b;
  color: #e0f2fe;
  text-decoration: none;
}

.campaign-platform-section {
  padding: .95rem 1rem;
  border-top: 1px solid #263244;
}

.campaign-platform-section h5 {
  margin: 0 0 .75rem;
  font-size: .9rem;
}

.campaign-platform-account-list {
  display: grid;
  gap: .55rem;
}

.campaign-platform-account {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid #263244;
}

.campaign-platform-account:last-child {
  border-bottom: 0;
}

.campaign-platform-account__tier {
  flex: 0 0 auto;
  padding: .2rem .42rem;
  border: 1px solid #475569;
  border-radius: 4px;
  color: #cbd5e1;
  font-size: .7rem;
  font-weight: 700;
}

.campaign-platform-account-empty {
  color: #fbbf24;
}

.campaign-run-filters {
  display: flex;
  align-items: end;
  gap: .7rem;
  flex-wrap: wrap;
  padding: .75rem;
  border: 1px solid #263244;
  border-radius: 6px;
  background: #0c1118;
}

.campaign-run-filters label {
  min-width: 170px;
  display: grid;
  gap: .3rem;
  margin: 0;
}

.campaign-run-filters label > span {
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.campaign-run-filters select {
  min-height: 38px;
  border: 1px solid #475569;
  border-radius: 4px;
  background: #0a0d12;
  color: #f8fafc;
  color-scheme: dark;
  padding: .48rem 2rem .48rem .65rem;
  font: inherit;
  opacity: 1;
}

.campaign-run-filters select:hover {
  border-color: #64748b;
}

.campaign-run-filters select:focus {
  border-color: #38bdf8;
  outline: 2px solid rgba(56, 189, 248, .24);
  outline-offset: 1px;
}

.campaign-run-filters select:disabled {
  background: #111827;
  color: #94a3b8;
  cursor: wait;
  opacity: 1;
}

.campaign-run-filters select option {
  background: #0a0d12;
  color: #f8fafc;
}

.campaign-run-filters__result {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 .25rem;
  color: #cbd5e1;
  font-size: .85rem;
}

.campaign-run-filters__error {
  width: 100%;
  color: #fca5a5;
  font-size: .85rem;
}

.campaign-platform-copy {
  display: grid;
  gap: .8rem;
  margin: 0;
}

.campaign-platform-copy dt {
  margin-bottom: .2rem;
  color: #94a3b8;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.campaign-platform-copy dd {
  margin: 0;
  color: #e5e7eb;
  line-height: 1.5;
}

.campaign-table-scroll::-webkit-scrollbar,
.campaign-table-scrollbar::-webkit-scrollbar {
  height: 14px;
}

.campaign-table-scroll::-webkit-scrollbar-track,
.campaign-table-scrollbar::-webkit-scrollbar-track {
  background: #0a0d12;
  border: 1px solid #1f2937;
  border-radius: 6px;
}

.campaign-table-scroll::-webkit-scrollbar-thumb,
.campaign-table-scrollbar::-webkit-scrollbar-thumb {
  min-width: 52px;
  background: #64748b;
  border: 3px solid #0a0d12;
  border-radius: 6px;
}

.campaign-table-scroll::-webkit-scrollbar-thumb:hover,
.campaign-table-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.campaign-table-scroll::-webkit-scrollbar-corner,
.campaign-table-scrollbar::-webkit-scrollbar-corner {
  background: #0a0d12;
}

.campaign-opportunity-location-link,
.campaign-opportunity-location-missing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 1rem;
}

.campaign-opportunity-location-link {
  color: #7dd3fc;
}

.campaign-opportunity-location-link--posting {
  color: #86efac;
}

.campaign-opportunity-location-link:hover {
  color: #bae6fd;
  text-decoration: none;
}

.campaign-opportunity-location-link--posting:hover {
  color: #bbf7d0;
}

.campaign-opportunity-location-missing {
  color: #fbbf24;
}

.campaign-proposed-content {
  color: #e5e7eb;
}

.campaign-proposed-content summary {
  cursor: pointer;
  line-height: 1.45;
}

.campaign-proposed-content__full {
  margin-top: .55rem;
  padding-top: .55rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #f3f4f6;
  line-height: 1.5;
  white-space: pre-wrap;
}

.campaign-opportunity-workspace {
  min-width: 0;
  display: grid;
  gap: .75rem;
}

.campaign-workspace-note {
  min-width: 0;
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding: .7rem .8rem;
  border-left: 3px solid #38bdf8;
  background: #10161e;
  color: #cbd5e1;
  line-height: 1.45;
}

.campaign-workspace-note > i {
  margin-top: .12rem;
  color: #7dd3fc;
  flex: 0 0 auto;
}

.campaign-workspace-note strong {
  color: #f3f4f6;
}

.campaign-opportunity-toolbar {
  display: flex;
  align-items: end;
  gap: .65rem;
  flex-wrap: wrap;
}

.campaign-opportunity-search,
.campaign-opportunity-control {
  display: grid;
  gap: .3rem;
  color: #9ca3af;
  font-size: .78rem;
  font-weight: 700;
}

.campaign-opportunity-search {
  position: relative;
  min-width: min(100%, 290px);
  flex: 1 1 290px;
}

.campaign-opportunity-search i {
  position: absolute;
  left: .7rem;
  bottom: .56rem;
  color: #94a3b8;
}

.campaign-opportunity-search input,
.campaign-opportunity-control select {
  min-height: 38px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #0c1118;
  color: #f3f4f6;
}

.campaign-opportunity-search input {
  width: 100%;
  padding: .48rem .65rem .48rem 2rem;
}

.campaign-opportunity-control select {
  min-width: 150px;
  padding: .45rem 1.8rem .45rem .6rem;
}

.campaign-opportunity-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid #263244;
  border-radius: 6px;
  overflow: hidden;
  background: #0a0d12;
}

.campaign-opportunity-list {
  min-width: 0;
  max-height: 230px;
  overflow-y: auto;
  border-bottom: 1px solid #263244;
  background: #0c1118;
}

.campaign-opportunity-list-item {
  width: 100%;
  display: grid;
  gap: .45rem;
  padding: .78rem .85rem;
  border: 0;
  border-bottom: 1px solid #1f2937;
  background: transparent;
  color: #e5e7eb;
  text-align: left;
  cursor: pointer;
}

.campaign-opportunity-list-item:hover {
  background: #141a22;
}

.campaign-opportunity-list-item.is-active {
  background: #16202b;
  box-shadow: inset 3px 0 0 #38bdf8;
}

.campaign-opportunity-list-item__title {
  font-weight: 700;
  line-height: 1.35;
}

.campaign-opportunity-list-item__meta {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: .78rem;
}

.campaign-opportunity-list-item__meta > span + span::before {
  content: "/";
  margin-right: .55rem;
  color: #475569;
}

.campaign-opportunity-detail {
  min-width: 0;
  background: #0a0d12;
}

.campaign-opportunity-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #10161e;
}

.campaign-opportunity-detail__header h4 {
  margin: .15rem 0 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.campaign-opportunity-detail__eyebrow {
  color: #7dd3fc;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.campaign-opportunity-detail__status {
  display: grid;
  gap: .2rem;
  color: #cbd5e1;
  font-size: .82rem;
  text-align: right;
  flex: 0 0 auto;
}

.campaign-opportunity-section {
  min-width: 0;
  padding: .95rem 1rem;
  border-top: 1px solid #263244;
}

.campaign-opportunity-section h5 {
  margin: 0 0 .75rem;
  color: #f3f4f6;
  font-size: .9rem;
}

.campaign-opportunity-section--review-links {
  background: #0d131b;
}

.campaign-opportunity-review-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.campaign-opportunity-review-link {
  min-width: 0;
  min-height: 78px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  padding: .7rem .75rem;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #0a0d12;
  color: #e5e7eb;
}

.campaign-opportunity-review-link:hover {
  border-color: #64748b;
  color: #f8fafc;
  text-decoration: none;
}

.campaign-opportunity-review-link.is-primary {
  grid-column: 1 / -1;
  min-height: 88px;
  border-color: #0ea5e9;
  background: #0c1b27;
  box-shadow: inset 3px 0 0 #38bdf8;
}

.campaign-opportunity-review-link.is-primary:hover {
  border-color: #7dd3fc;
}

.campaign-opportunity-review-link.is-missing {
  border-style: dashed;
  color: #94a3b8;
}

.campaign-opportunity-review-link__icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #17202b;
  color: #7dd3fc;
  font-size: 1rem;
}

.campaign-opportunity-review-link.is-primary .campaign-opportunity-review-link__icon {
  background: #075985;
  color: #f0f9ff;
}

.campaign-opportunity-review-link__copy {
  min-width: 0;
  display: grid;
  gap: .12rem;
}

.campaign-opportunity-review-link__copy > span {
  color: #94a3b8;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.campaign-opportunity-review-link__copy strong {
  color: inherit;
  line-height: 1.3;
}

.campaign-opportunity-review-link__copy small {
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-opportunity-review-link__open {
  color: #7dd3fc;
}

.campaign-opportunity-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .7rem 1rem;
  margin: 0 0 .85rem;
}

.campaign-opportunity-fields > div {
  min-width: 0;
}

.campaign-opportunity-fields dt {
  margin-bottom: .22rem;
  color: #94a3b8;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.campaign-opportunity-fields dd {
  margin: 0;
  color: #e5e7eb;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.campaign-opportunity-fields a,
.campaign-score-comparison-table a {
  color: #7dd3fc;
}

.campaign-score-comparison-scroll,
.campaign-score-comparison-scrollbar {
  min-width: 0;
  overflow-x: auto;
  scrollbar-color: #64748b #0a0d12;
}

.campaign-score-comparison-scrollbar {
  position: sticky;
  top: 78px;
  z-index: 10;
  height: 17px;
  overflow-y: hidden;
  border-top: 1px solid #263244;
  background: #0a0d12;
}

.campaign-score-comparison-scroll {
  border-top: 1px solid #263244;
  border-bottom: 1px solid #263244;
}

.campaign-score-comparison-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  table-layout: fixed;
}

.campaign-score-comparison-table th,
.campaign-score-comparison-table td {
  padding: .55rem .5rem;
  border-bottom: 1px solid #1f2937;
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

.campaign-score-comparison-table th {
  color: #94a3b8;
  background: #10161e;
  font-size: .72rem;
  text-transform: uppercase;
}

.campaign-score-comparison-table th:first-child,
.campaign-score-comparison-table td:first-child {
  width: 260px;
}

.campaign-score-comparison-table th:nth-child(2),
.campaign-score-comparison-table td:nth-child(2),
.campaign-score-comparison-table th:nth-child(3),
.campaign-score-comparison-table td:nth-child(3),
.campaign-score-comparison-table th:nth-child(4),
.campaign-score-comparison-table td:nth-child(4),
.campaign-score-comparison-table th:nth-child(7),
.campaign-score-comparison-table td:nth-child(7) {
  width: 90px;
}

.campaign-score-comparison-table th:nth-child(5),
.campaign-score-comparison-table td:nth-child(5) {
  width: 130px;
}

.campaign-score-comparison-table th:nth-child(6),
.campaign-score-comparison-table td:nth-child(6) {
  width: 140px;
}

.campaign-score-comparison-table th:last-child,
.campaign-score-comparison-table td:last-child {
  width: 72px;
  text-align: center;
}

.campaign-opportunity-post {
  min-height: 110px;
  padding: .8rem;
  border-left: 3px solid #38bdf8;
  background: #10161e;
  color: #f3f4f6;
  line-height: 1.52;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.campaign-creative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: .8rem;
}

.campaign-creative-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #0c1118;
}

.campaign-creative-item > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem .8rem;
  background: #141a22;
}

.campaign-creative-item > header > div:first-child {
  min-width: 0;
  display: grid;
  gap: .2rem;
}

.campaign-creative-item > header strong {
  color: #f3f4f6;
  line-height: 1.35;
}

.campaign-creative-item > header span {
  color: #94a3b8;
  font-size: .78rem;
}

.campaign-creative-item__platform {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}

.campaign-creative-item__platform > span:last-child::before {
  content: "/";
  margin-right: .45rem;
  color: #475569;
}

.campaign-creative-item__status {
  flex: 0 0 auto;
  display: grid;
  gap: .18rem;
  text-align: right;
}

.campaign-creative-media {
  height: clamp(220px, 32vw, 420px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid #263244;
  border-bottom: 1px solid #263244;
  background: #05070a;
}

.campaign-creative-media img,
.campaign-creative-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.campaign-creative-media.is-missing {
  height: 160px;
  color: #fbbf24;
}

.campaign-creative-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .6rem;
  margin: 0;
  padding: .7rem .8rem;
}

.campaign-creative-fields dt,
.campaign-creative-copy > strong {
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.campaign-creative-fields dd {
  margin: .2rem 0 0;
  color: #e5e7eb;
  overflow-wrap: anywhere;
}

.campaign-creative-fields a {
  color: #7dd3fc;
}

.campaign-creative-copy {
  display: grid;
  gap: .35rem;
  padding: .7rem .8rem;
  border-top: 1px solid #1f2937;
}

.campaign-creative-copy > div {
  color: #e5e7eb;
  line-height: 1.48;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.campaign-opportunity-post.is-missing,
.campaign-opportunity-missing,
.campaign-opportunity-readiness {
  color: #fbbf24;
}

.campaign-opportunity-workflow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.campaign-opportunity-readiness {
  margin-bottom: .75rem;
  line-height: 1.4;
}

.campaign-opportunity-readiness.is-ready {
  color: #86efac;
}

.campaign-opportunity-fields--workflow {
  margin-bottom: 0;
}

.campaign-opportunity-approve {
  min-width: 128px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .6rem .85rem;
  border: 1px solid #22c55e;
  border-radius: 6px;
  background: #166534;
  color: #f0fdf4;
  font-weight: 800;
}

.campaign-opportunity-approve:disabled {
  border-color: #374151;
  background: #1f2937;
  color: #9ca3af;
  cursor: not-allowed;
}

.campaign-opportunity-action-error {
  margin-top: .65rem;
  color: #fca5a5;
}

.campaign-opportunity-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px solid #263244;
  border-radius: 6px;
  color: #94a3b8;
  background: #0c1118;
  text-align: center;
}

@media (max-width: 900px) {
  .campaign-platform-list {
    max-height: 280px;
  }

  .campaign-opportunity-list {
    max-height: 260px;
  }

  .campaign-opportunity-workflow {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .campaign-opportunity-approve {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .campaign-run-filters label,
  .campaign-run-filters select {
    width: 100%;
  }

  .campaign-run-filters label {
    min-width: 0;
  }

  .campaign-platform-account {
    display: grid;
  }

  .campaign-platform-account__tier {
    justify-self: start;
  }

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

  .campaign-opportunity-path li {
    border-bottom: 1px solid #263244;
  }

  .campaign-opportunity-path li:nth-child(2n) {
    border-right: 0;
  }

  .campaign-opportunity-path li:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .campaign-platform-detail__header {
    display: grid;
  }

  .campaign-opportunity-review-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .campaign-opportunity-review-link.is-primary {
    grid-column: auto;
  }

  .campaign-platform-open {
    width: 100%;
    justify-content: center;
  }

  .campaign-platform-expansion-actions {
    width: 100%;
  }

  .campaign-platform-expansion-actions button {
    flex: 1 1 0;
  }

  .campaign-opportunity-control,
  .campaign-opportunity-control select {
    width: 100%;
  }

  .campaign-opportunity-detail__header {
    display: grid;
  }

  .campaign-opportunity-detail__status {
    text-align: left;
  }

  .campaign-opportunity-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

.content-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  white-space: nowrap;
}

.content-table th,
.content-table td {
  padding: .45rem .5rem;
  border-bottom: 1px solid #111;
  vertical-align: middle;
}

.content-table thead th {
  border-bottom-color: #222;
  background: #0b1220;
}

.content-table__select {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  text-align: center;
  background: #0b1220;
  box-shadow: 1px 0 0 #222;
}

.content-table tbody .content-table__select {
  background: #020617;
}

.content-table__url {
  position: sticky;
  left: 32px;
  z-index: 2;
  width: 24ch;
  min-width: 24ch;
  max-width: 24ch;
  background: #0b1220;
  box-shadow: 1px 0 0 #222;
}

.content-table tbody .content-table__url {
  background: #020617;
}

.content-table__url-link {
  display: block;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color: #6cf;
}

.content-table__processing {
  min-width: 92px;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}

.content-table__processing.is-running {
  color: #93c5fd;
}

.content-table__error {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.traffic-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
}

.traffic-date-range {
  display: grid;
  grid-column: span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  min-width: 0;
}

@media (max-width: 520px) {
  .traffic-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .traffic-date-range {
    grid-column: auto;
  }
}
