:root {
  --nasa-mm-bg0: #050507;
  --nasa-mm-bg1: #120007;
  --nasa-mm-bg2: #24000f;
  --nasa-mm-bg3: #3a0018;
  --nasa-mm-accent0: #ff1a3d;
  --nasa-mm-accent1: #b3001b;
  --nasa-mm-accent2: #ff4d4d;
  --nasa-mm-text: rgba(255, 255, 255, 0.92);
  --nasa-mm-muted: rgba(255, 255, 255, 0.72);
  --nasa-mm-card: rgba(0, 0, 0, 0.62);
  --nasa-mm-border: rgba(255, 255, 255, 0.12);
  --nasa-mm-shadow: 0 18px 70px rgba(0, 0, 0, 0.45);
}

html[data-direct-theme='light'] {
  --nasa-mm-bg0: #fff8f5;
  --nasa-mm-bg1: #fff1f2;
  --nasa-mm-bg2: #fef7ed;
  --nasa-mm-bg3: #f8fafc;
  --nasa-mm-accent0: #ef4444;
  --nasa-mm-accent1: #b91c1c;
  --nasa-mm-accent2: #f87171;
  --nasa-mm-text: rgba(15, 23, 42, 0.96);
  --nasa-mm-muted: rgba(51, 65, 85, 0.82);
  --nasa-mm-card: rgba(255, 255, 255, 0.88);
  --nasa-mm-border: rgba(148, 163, 184, 0.34);
  --nasa-mm-shadow: 0 18px 52px rgba(15, 23, 42, 0.12);
}

body.nasa-filter-drawer-open {
  overflow: hidden;
}

.nasa-shell {
  width: 100%;
  min-height: 100vh;
  padding: 24px 18px 64px;
  font-family: "Courier Prime", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--nasa-mm-text);
  background:
    radial-gradient(1100px 780px at 15% 8%, rgba(255, 26, 61, 0.22), transparent 60%),
    radial-gradient(900px 680px at 85% 28%, rgba(179, 0, 27, 0.24), transparent 55%),
    radial-gradient(760px 520px at 55% 95%, rgba(255, 77, 77, 0.16), transparent 55%),
    linear-gradient(135deg, var(--nasa-mm-bg0), var(--nasa-mm-bg1) 35%, var(--nasa-mm-bg2) 70%, var(--nasa-mm-bg3));
}

html[data-direct-theme='light'] .nasa-shell {
  background:
    radial-gradient(1100px 780px at 15% 8%, rgba(239, 68, 68, 0.12), transparent 60%),
    radial-gradient(900px 680px at 85% 28%, rgba(251, 146, 60, 0.1), transparent 55%),
    radial-gradient(760px 520px at 55% 95%, rgba(248, 113, 113, 0.1), transparent 55%),
    linear-gradient(135deg, var(--nasa-mm-bg0), var(--nasa-mm-bg1) 35%, var(--nasa-mm-bg2) 70%, var(--nasa-mm-bg3));
}

.nasa-shell button,
.nasa-shell input,
.nasa-shell select,
.nasa-shell textarea {
  font: inherit;
}

.nasa-page,
.nasa-detail-page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.nasa-page {
  position: relative;
}

.africa-page {
  max-width: 1320px;
}

.nasa-hero,
.nasa-filters,
.nasa-card,
.nasa-detail-card,
.nasa-detail-image-wrap,
.nasa-empty-state,
.nasa-pagination {
  border: 1px solid var(--nasa-mm-border);
  border-radius: 18px;
  background: var(--nasa-mm-card);
  box-shadow: var(--nasa-mm-shadow);
  backdrop-filter: blur(10px);
}

html[data-direct-theme='light'] .nasa-hero,
html[data-direct-theme='light'] .nasa-filters,
html[data-direct-theme='light'] .nasa-card,
html[data-direct-theme='light'] .nasa-detail-card,
html[data-direct-theme='light'] .nasa-detail-image-wrap,
html[data-direct-theme='light'] .nasa-empty-state,
html[data-direct-theme='light'] .nasa-pagination {
  background: rgba(255, 255, 255, 0.985);
  backdrop-filter: none;
}

html[data-direct-theme='light'] .nasa-card,
html[data-direct-theme='light'] .nasa-detail-card {
  border-color: rgba(203, 213, 225, 0.5);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

html[data-direct-theme='light'] .nasa-featured-card {
  border-color: rgba(203, 213, 225, 0.5);
  background:
    radial-gradient(circle at top right, rgba(248, 113, 113, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.97));
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  backdrop-filter: none;
}

.nasa-filter-drawer-toggle {
  position: relative;
  flex: 0 0 auto;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 26, 61, 0.22), rgba(179, 0, 27, 0.18));
  color: #fff;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.nasa-filter-drawer-toggle:hover {
  background: linear-gradient(180deg, rgba(255, 77, 77, 0.28), rgba(179, 0, 27, 0.24));
}

html[data-direct-theme='light'] .nasa-filter-drawer-toggle {
  border-color: rgba(239, 68, 68, 0.24);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.14), rgba(255, 255, 255, 0.92));
  color: #991b1b;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

html[data-direct-theme='light'] .nasa-filter-toggle-icon {
  color: rgba(153, 27, 27, 0.92);
}

html[data-direct-theme='light'] .nasa-filter-drawer-toggle:hover {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.2), rgba(255, 255, 255, 0.96));
}

.nasa-filter-toggle-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.95);
}

.nasa-filter-toggle-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.nasa-filter-toggle-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff4d4f;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

.nasa-screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nasa-filter-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(1, 2, 7, 0.62);
  backdrop-filter: blur(3px);
}

.nasa-filter-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1210;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(420px, calc(100vw - 12px));
  max-width: calc(100vw - 12px);
  height: 100vh;
  padding: 22px 18px 20px;
  box-sizing: border-box;
  border-right: 1px solid var(--nasa-mm-border);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(20, 0, 8, 0.96));
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.45);
  transform: translateX(calc(-100% - 20px));
  transition: transform 0.22s ease;
  overflow-x: hidden;
  overflow-y: auto;
}

.nasa-filter-drawer.is-open {
  transform: translateX(0);
}

.nasa-filter-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.nasa-kicker-panel {
  margin-bottom: 8px;
}

.nasa-filter-drawer-title {
  margin: 0;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.05;
}

.nasa-filter-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.nasa-filter-drawer-close:hover {
  background: rgba(255, 26, 61, 0.16);
}

.nasa-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.8fr);
  gap: 18px;
  padding: 12px 20px;
  margin-bottom: 12px;
  background:
    radial-gradient(circle at top right, rgba(255, 26, 61, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.38));
  color: var(--nasa-mm-text);
}

.nasa-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nasa-brand-logo {
  display: block;
  width: 92px;
  height: auto;
  flex: 0 0 auto;
}

.nasa-brand-link {
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  text-decoration: none;
}

.nasa-brand-link:focus-visible {
  outline: 2px solid rgba(255, 77, 79, 0.9);
  outline-offset: 4px;
}

.nasa-brand-copy {
  min-width: 0;
}

.nasa-header-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.88);
  color: #fff;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nasa-header-live-badge:hover,
.nasa-header-live-badge:focus-visible {
  color: #fff;
  background: rgba(153, 27, 27, 0.94);
}

.nasa-header-live-badge.is-upcoming {
  background: rgba(120, 53, 15, 0.92);
  border-color: rgba(253, 186, 116, 0.38);
}

.nasa-header-live-badge.is-upcoming:hover,
.nasa-header-live-badge.is-upcoming:focus-visible {
  background: rgba(146, 64, 14, 0.96);
}

.nasa-header-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fca5a5;
  box-shadow: 0 0 0 4px rgba(252, 165, 165, 0.16);
}

.nasa-header-live-badge.is-upcoming .nasa-header-live-dot {
  background: #fdba74;
  box-shadow: 0 0 0 4px rgba(253, 186, 116, 0.16);
}

.nasa-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 26, 61, 0.22), rgba(179, 0, 27, 0.14));
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nasa-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.nasa-intro {
  margin: 0;
  max-width: 60ch;
  color: var(--nasa-mm-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.nasa-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: center;
}

.nasa-hero-stat {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nasa-hero-inline-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
}

.nasa-hero-inline-stat strong {
  color: #fff;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.nasa-hero-label,
.nasa-hero-value {
  display: block;
  color: var(--nasa-mm-muted);
  font-size: 0.76rem;
}

.nasa-hero-stat strong {
  display: block;
  margin: 2px 0;
  color: #fff;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.nasa-filters {
  padding: 18px;
  margin-bottom: 18px;
}

.nasa-filter-drawer .nasa-filters {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.nasa-active-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 16px;
  align-items: center;
  position: sticky;
  top: calc(var(--direct-feed-sticky-offset, 0px) + 2px);
  z-index: 940;
  margin: 0 0 4px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(242, 183, 5, 0.14);
  background: linear-gradient(180deg, rgba(9, 15, 28, 0.94), rgba(6, 10, 20, 0.9));
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nasa-artemis-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 26, 61, 0.06));
  box-shadow: var(--nasa-mm-shadow);
}

.nasa-artemis-banner-copy-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.nasa-artemis-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nasa-artemis-banner-label {
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.nasa-artemis-banner-label:hover {
  color: #ff9aa5;
}

.nasa-artemis-banner-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
}

.nasa-artemis-banner-toggle:hover {
  background: rgba(255, 26, 61, 0.18);
}

.nasa-artemis-banner-toggle span {
  transition: transform 0.18s ease;
}

.nasa-artemis-banner-anchor {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nasa-artemis-banner-metrics {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nasa-artemis-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.nasa-artemis-metric strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}

.nasa-artemis-metric em {
  color: rgba(255, 255, 255, 0.66);
  font-style: normal;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.nasa-artemis-banner.is-collapsed {
  padding-top: 8px;
  padding-bottom: 8px;
}

.nasa-artemis-banner.is-collapsed .nasa-artemis-banner-metrics {
  display: none;
}

.nasa-artemis-banner.is-collapsed .nasa-artemis-banner-toggle span {
  transform: rotate(-90deg);
}

.nasa-active-filters-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 12px;
}

.nasa-active-results-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.nasa-active-results-count {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: rgba(255, 248, 232, 0.92);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nasa-active-per-page-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.nasa-active-per-page-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nasa-active-per-page-select {
  min-height: 28px;
  padding: 0 26px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.22);
  background: rgba(7, 7, 7, 0.78);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
}

.nasa-active-filters::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.nasa-active-filters > * {
  position: relative;
  z-index: 1;
}

html[data-direct-theme='light'] .nasa-active-filters {
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.92));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

html[data-direct-theme='light'] .nasa-active-results-count,
html[data-direct-theme='light'] .nasa-active-filters-label,
html[data-direct-theme='light'] .nasa-active-filters-clear {
  color: #0f172a;
}

html[data-direct-theme='light'] .nasa-active-filters-empty {
  color: #475569;
}

html[data-direct-theme='light'] .nasa-active-per-page-select {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(148, 163, 184, 0.34);
  color: #0f172a;
}

body.direct-download-modal-open {
  overflow: hidden;
}

.direct-download-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.direct-download-modal-backdrop[hidden] {
  display: none !important;
}

.direct-download-modal {
  width: min(100%, 460px);
  border-radius: 22px;
  background: rgba(8, 15, 28, 0.98);
  border: 1px solid rgba(242, 183, 5, 0.18);
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.42);
  overflow: hidden;
}

.direct-download-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.direct-download-modal-title {
  margin: 4px 0 0;
  color: #fff8e8;
  font-size: 1.1rem;
}

.direct-download-modal-subtitle {
  margin: 6px 0 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.82rem;
  line-height: 1.4;
}

.direct-download-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #fff8e8;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.direct-download-modal-body {
  padding: 16px 18px 18px;
}

.direct-download-modal-loading,
.direct-download-modal-error {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.88);
  font-size: 0.9rem;
}

.direct-download-modal-error {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.24);
  background: rgba(127, 29, 29, 0.24);
}

.direct-download-modal-options {
  display: grid;
  gap: 10px;
}

.direct-download-option.nasa-download-control {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  height: auto;
  padding: 12px 14px;
  border-radius: 18px;
  justify-content: flex-start;
  gap: 12px;
  text-decoration: none;
}

.direct-download-option-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.direct-download-option .nasa-download-icon {
  flex: 0 0 auto;
}

.direct-download-option-label-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.direct-download-option-label {
  color: #fff8e8;
  font-size: 0.9rem;
  font-weight: 700;
}

.direct-download-option-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.42);
  color: #fca5a5;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.direct-download-option-meta,
.direct-download-option-note {
  color: rgba(226, 232, 240, 0.74);
  font-size: 0.75rem;
  line-height: 1.3;
}

.direct-download-option-note {
  flex: 0 0 auto;
  text-align: right;
}

html[data-direct-theme='light'] .direct-download-modal {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(203, 213, 225, 0.78);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
}

html[data-direct-theme='light'] .direct-download-modal-header {
  border-bottom-color: rgba(226, 232, 240, 0.9);
}

html[data-direct-theme='light'] .direct-download-modal-title {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-download-modal-subtitle,
html[data-direct-theme='light'] .direct-download-option-meta,
html[data-direct-theme='light'] .direct-download-option-note {
  color: #475569;
}

html[data-direct-theme='light'] .direct-download-modal-close {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.34);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-download-modal-loading {
  background: rgba(248, 250, 252, 0.94);
  border-color: rgba(226, 232, 240, 0.92);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-download-option-label {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-download-option-badge {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.22);
  color: #b91c1c;
}

@media (max-width: 640px) {
  .direct-download-modal-backdrop {
    padding: 12px;
  }

  .direct-download-modal {
    width: 100%;
    border-radius: 18px;
  }

  .direct-download-option {
    min-height: 52px;
    padding: 10px 12px;
  }

  .direct-download-option-note {
    display: none;
  }
}

.nasa-active-filters-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: 8px;
}

.nasa-active-filters-tools .direct-view-toggle {
  flex: 0 0 auto;
}

.nasa-active-filters-tools .direct-upload-toggle,
.nasa-active-filters-tools .direct-listen-toggle,
.nasa-active-filters-tools .direct-dub-toggle,
.nasa-active-filters-tools .direct-cms-toggle {
  min-height: 34px;
}

.direct-upload-toggle,
.direct-listen-toggle,
.direct-dub-toggle,
.direct-cms-toggle,
.direct-edit-toggle,
.direct-hide-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 248, 232, 0.84);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.direct-upload-toggle:hover,
.direct-upload-toggle:focus-visible,
.direct-listen-toggle:hover,
.direct-listen-toggle:focus-visible,
.direct-dub-toggle:hover,
.direct-dub-toggle:focus-visible,
.direct-cms-toggle:hover,
.direct-cms-toggle:focus-visible,
.direct-edit-toggle:hover,
.direct-edit-toggle:focus-visible,
.direct-hide-toggle:hover,
.direct-hide-toggle:focus-visible {
  background: rgba(255, 209, 102, 0.12);
  color: #fff;
  outline: none;
}

.direct-upload-toggle-icon,
.direct-listen-toggle-icon,
.direct-dub-toggle-icon,
.direct-cms-toggle-icon,
.direct-edit-toggle-icon,
.direct-hide-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.direct-upload-toggle-icon svg,
.direct-listen-toggle-icon svg,
.direct-dub-toggle-icon svg,
.direct-cms-toggle-icon svg,
.direct-edit-toggle-icon svg,
.direct-hide-toggle-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

html[data-direct-theme='light'] .direct-upload-toggle,
html[data-direct-theme='light'] .direct-listen-toggle,
html[data-direct-theme='light'] .direct-dub-toggle,
html[data-direct-theme='light'] .direct-cms-toggle,
html[data-direct-theme='light'] .direct-edit-toggle,
html[data-direct-theme='light'] .direct-hide-toggle {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(30, 41, 59, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-direct-theme='light'] .direct-upload-toggle:hover,
html[data-direct-theme='light'] .direct-upload-toggle:focus-visible,
html[data-direct-theme='light'] .direct-listen-toggle:hover,
html[data-direct-theme='light'] .direct-listen-toggle:focus-visible,
html[data-direct-theme='light'] .direct-dub-toggle:hover,
html[data-direct-theme='light'] .direct-dub-toggle:focus-visible,
html[data-direct-theme='light'] .direct-cms-toggle:hover,
html[data-direct-theme='light'] .direct-cms-toggle:focus-visible,
html[data-direct-theme='light'] .direct-edit-toggle:hover,
html[data-direct-theme='light'] .direct-edit-toggle:focus-visible,
html[data-direct-theme='light'] .direct-hide-toggle:hover,
html[data-direct-theme='light'] .direct-hide-toggle:focus-visible {
  background: rgba(239, 68, 68, 0.08);
  color: #111827;
}

.direct-hide-toggle-form {
  display: inline-flex;
}

html[data-direct-theme='light'] .nasa-active-results-count {
  color: rgba(30, 41, 59, 0.82);
}

html[data-direct-theme='light'] .nasa-active-per-page-label {
  color: rgba(30, 41, 59, 0.72);
}

html[data-direct-theme='light'] .nasa-active-per-page-select {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
}

.nasa-active-filters-search-wrap {
  flex: 0 1 460px;
  min-width: min(100%, 460px);
}

.nasa-active-search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.nasa-active-inline-filter-label {
  flex: 0 1 200px;
  min-width: 160px;
}

.nasa-active-inline-filter-select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 30px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.22);
  background: rgba(7, 7, 7, 0.94);
  color: #fff;
  font: inherit;
  font-size: 0.74rem;
}

html[data-direct-theme='light'] .nasa-active-inline-filter-select,
html[data-direct-theme='light'] .nasa-active-search-input {
  border-color: rgba(148, 163, 184, 0.36);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

.nasa-active-search-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.nasa-active-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.88rem;
  line-height: 1;
  pointer-events: none;
}

html[data-direct-theme='light'] .nasa-active-search-icon {
  color: rgba(71, 85, 105, 0.62);
}

.nasa-active-search-input {
  width: 100%;
  min-height: 36px;
  padding: 0 12px 0 32px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.28);
  background: rgba(7, 7, 7, 0.94);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
}

.nasa-active-search-input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

html[data-direct-theme='light'] .nasa-active-search-input::placeholder {
  color: rgba(71, 85, 105, 0.7);
}

.nasa-active-inline-filter-select:focus,
.nasa-active-search-input:focus {
  outline: none;
  border-color: rgba(31, 138, 67, 0.56);
  box-shadow: 0 0 0 3px rgba(31, 138, 67, 0.12);
}

.nasa-active-search-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(214, 40, 40, 0.42);
  background: rgba(214, 40, 40, 0.18);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

html[data-direct-theme='light'] .nasa-active-search-button {
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.1);
}

.nasa-active-search-button:hover,
.nasa-active-search-button:focus-visible {
  background: rgba(31, 138, 67, 0.22);
  border-color: rgba(31, 138, 67, 0.48);
}

.nasa-active-filters-label {
  color: var(--nasa-mm-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nasa-chip-active {
  border-color: #f87171;
  background: #f87171;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.18);
}

.nasa-chip-active:hover {
  border-color: #ef4444;
  background: #ef4444;
  color: #ffffff;
}

.nasa-chip-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.nasa-active-filters-clear {
  flex: 0 0 auto;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.nasa-active-filters-clear:hover {
  color: #ffd4d9;
}

.nasa-active-filters-row .nasa-chip {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.nasa-active-filters-row .nasa-chip-dismiss {
  width: 0.88rem;
  height: 0.88rem;
  margin-left: 5px;
  font-size: 0.72rem;
}

.nasa-active-filters-empty {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.nasa-active-filters-idle {
  padding-right: 4px;
}

.nasa-filter-topic-tags {
  display: grid;
  gap: 8px;
}

.nasa-filter-topic-tags-label {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 248, 232, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-direct-theme='light'] .nasa-filter-topic-tags-label {
  color: rgba(30, 41, 59, 0.72);
}

.nasa-filter-form {
  display: grid;
  gap: 14px;
}

.nasa-filter-drawer .nasa-filter-form {
  min-height: 100%;
  align-content: start;
}

.nasa-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.nasa-filter-grid > * {
  min-width: 0;
}

.nasa-filter-drawer .nasa-filter-grid {
  grid-template-columns: 1fr;
}

.nasa-filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.nasa-filter-field input,
.nasa-filter-field select,
.nasa-filter-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.nasa-filter-field-compact {
  max-width: 140px;
}

.nasa-filter-drawer .nasa-filter-field-compact {
  max-width: none;
}

.nasa-filter-label {
  display: block;
  width: 100%;
  color: var(--nasa-mm-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.nasa-select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
}

.nasa-select option {
  color: #fff;
  background: #1a0b10;
}

.nasa-select:focus,
.nasa-button:focus,
.nasa-chip:focus,
.nasa-inline-link:focus,
.nasa-card-title a:focus,
.nasa-back-link:focus {
  outline: 2px solid rgba(255, 77, 77, 0.9);
  outline-offset: 2px;
}

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

.nasa-filter-drawer .nasa-filter-chip-row {
  max-height: min(28vh, 240px);
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
}

.nasa-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.nasa-chip:hover,
.nasa-chip.is-active {
  border-color: rgba(255, 77, 77, 0.28);
  background: linear-gradient(180deg, rgba(255, 26, 61, 0.22), rgba(179, 0, 27, 0.14));
  color: #fff;
}

.nasa-filter-actions,
.nasa-card-actions,
.nasa-detail-actions,
.nasa-pagination-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.nasa-filter-drawer .nasa-filter-actions {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding-top: 14px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  background: inherit;
  z-index: 2;
}

.nasa-filter-dirty-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 214, 102, 0.96);
  font-size: 0.92rem;
  font-weight: 700;
}

.nasa-filter-dirty-indicator-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: rgba(255, 214, 102, 0.18);
  color: rgba(255, 214, 102, 1);
  font-size: 0.82rem;
  line-height: 1;
  flex: 0 0 auto;
}

.nasa-button-primary.is-dirty {
  box-shadow: 0 0 0 1px rgba(255, 214, 102, 0.34), 0 0 24px rgba(255, 214, 102, 0.16);
}

@media (max-width: 1100px) {
  .direct-download-breakdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .direct-download-analytics-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .direct-download-breakdown-modal {
    padding: 10px;
  }

  .direct-download-breakdown-dialog {
    width: min(100vw - 20px, 100%);
  }

  .direct-download-analytics-filter-actions {
    align-items: stretch;
    margin-left: 0;
    justify-content: flex-start;
  }

  .direct-download-analytics-filter-actions .nasa-button {
    flex: 1 1 auto;
  }

  .direct-download-analytics-filter-main {
    display: grid;
    grid-template-columns: 1fr;
  }

  .direct-download-analytics-filter-main label {
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
  }

  .direct-download-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .direct-download-breakdown-toolbar-head {
    justify-content: stretch;
  }

  .direct-download-breakdown-export {
    width: 100%;
  }

  .direct-download-breakdown-range-form {
    grid-template-columns: 1fr;
  }

  .direct-download-breakdown-range-actions {
    align-items: stretch;
  }

  .direct-download-breakdown-range-actions .nasa-button {
    flex: 1 1 auto;
  }

  .direct-download-breakdown-block-wide {
    grid-column: auto;
  }

  .nasa-filter-dirty-indicator {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid rgba(255, 214, 102, 0.28);
    border-radius: 12px;
    background: rgba(255, 214, 102, 0.12);
    text-align: center;
    font-size: 0.95rem;
  }

  .nasa-filter-actions .nasa-button-primary.is-dirty {
    width: 100%;
  }
}

.direct-dub-controls {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.direct-dub-status {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 700;
}

.direct-dub-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.direct-dub-result.hidden {
  display: none;
}

.direct-dub-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.direct-dub-toggle {
  min-height: 40px;
  border-color: rgba(220, 38, 38, 0.42);
  background: rgba(127, 29, 29, 0.18);
  color: #ef4444;
}

.direct-dub-toggle:hover,
.direct-dub-toggle:focus-visible {
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(239, 68, 68, 0.58);
  color: #f87171;
}

html[data-direct-theme='light'] .direct-dub-toggle {
  border-color: rgba(220, 38, 38, 0.28);
  background: rgba(254, 226, 226, 0.92);
  color: #dc2626;
}

html[data-direct-theme='light'] .direct-dub-toggle:hover,
html[data-direct-theme='light'] .direct-dub-toggle:focus-visible {
  background: rgba(254, 202, 202, 0.92);
  border-color: rgba(220, 38, 38, 0.42);
  color: #b91c1c;
}

.direct-dub-select {
  min-height: 40px;
}

.direct-dub-add-button,
.direct-dub-start-button {
  min-height: 40px;
}

@media (max-width: 720px) {
  .direct-dub-controls {
    width: 100%;
    align-items: stretch;
  }

  .direct-dub-label {
    width: 100%;
  }

  .direct-dub-select,
  .direct-dub-add-button,
  .direct-dub-start-button {
    width: 100%;
  }

  .direct-dub-controls .md-dropdown {
    width: 100%;
  }

  .direct-dub-result {
    width: 100%;
  }
}

.nasa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.nasa-button:hover {
  transform: translateY(-1px);
}

.nasa-button-primary {
  border-color: rgba(255, 77, 77, 0.28);
  background: linear-gradient(180deg, var(--nasa-mm-accent0), var(--nasa-mm-accent1));
  color: #fff;
  box-shadow: 0 12px 28px rgba(179, 0, 27, 0.3);
}

.nasa-button-primary:hover {
  background: linear-gradient(180deg, var(--nasa-mm-accent2), var(--nasa-mm-accent1));
}

.nasa-button-secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

html[data-direct-theme='light'] .nasa-button-secondary {
  border-color: rgba(148, 163, 184, 0.36);
  background: rgba(255, 255, 255, 0.84);
  color: #0f172a;
}

.nasa-button-secondary:hover,
.nasa-button-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

html[data-direct-theme='light'] .nasa-button-secondary:hover,
html[data-direct-theme='light'] .nasa-button-ghost:hover {
  background: rgba(255, 255, 255, 0.96);
}

.nasa-button-ghost,
.nasa-button-disabled {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--nasa-mm-muted);
}

html[data-direct-theme='light'] .nasa-button-ghost,
html[data-direct-theme='light'] .nasa-button-disabled {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.76);
}

.nasa-button-disabled {
  cursor: default;
}

.nasa-stream {
  display: grid;
  gap: 16px;
}

.nasa-stream-list {
  display: grid;
  gap: 16px;
}

.nasa-featured-card {
  overflow: hidden;
  border: 1px solid var(--nasa-mm-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 26, 61, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.58));
  box-shadow: var(--nasa-mm-shadow);
  backdrop-filter: blur(10px);
}

.nasa-featured-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.nasa-featured-inner.has-image {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 360px);
  column-gap: 16px;
  row-gap: 12px;
}

.nasa-featured-inner.has-image .nasa-featured-copy {
  --direct-featured-copy-pad-left: 22px;
  --direct-featured-copy-pad-right: 18px;
  --direct-featured-copy-pad-bottom: 22px;
  padding: 22px 18px 22px 22px;
}

.nasa-featured-copy {
  --direct-featured-copy-pad-left: 26px;
  --direct-featured-copy-pad-right: 26px;
  --direct-featured-copy-pad-bottom: 26px;
  padding: 26px;
  min-width: 0;
}

.nasa-featured-kicker-row {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}


.direct-card-media-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}

.direct-card-media-overlay-featured {
  top: 16px;
  left: 16px;
  gap: 10px;
}

.direct-card-media-overlay-detail {
  top: 16px;
  left: 16px;
  gap: 10px;
}

.direct-card-media-overlay > * {
  pointer-events: auto;
}

.direct-network-logo-badge-overlay {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 30px;
  padding: 4px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.22);
}

.direct-network-logo-badge-overlay .direct-network-logo-image {
  max-width: 34px;
  max-height: 18px;
  margin: 0 auto;
}

.direct-network-logo-badge-overlay-featured {
  min-width: 54px;
  min-height: 34px;
  padding: 5px 8px;
  border-radius: 12px;
}

.direct-network-logo-badge-overlay-detail {
  min-width: 54px;
  min-height: 34px;
  padding: 5px 8px;
  border-radius: 12px;
}

.direct-network-logo-badge-overlay-featured .direct-network-logo-image {
  max-width: 40px;
  max-height: 22px;
}

.direct-network-logo-badge-overlay-detail .direct-network-logo-image {
  max-width: 40px;
  max-height: 22px;
}

.nasa-translation-control-card-popover {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 0;
}

.nasa-translation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.nasa-translation-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(2, 6, 23, 0.82);
  color: #fff;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.26);
}

.direct-card-media-overlay-featured .nasa-translation-trigger {
  width: 34px;
  height: 34px;
}

.nasa-translation-trigger:hover,
.nasa-translation-trigger:focus-visible,
.nasa-translation-control-card-popover.is-open .nasa-translation-trigger {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.nasa-translation-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 12;
  min-width: 148px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(8, 15, 28, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.34);
}

.nasa-translation-popover[hidden] {
  display: none !important;
}

.nasa-translation-label-popover {
  display: block;
  min-height: auto;
  padding: 0;
  background: transparent;
  border: 0;
}

.nasa-translation-control-card-popover .nasa-translation-select {
  width: 100%;
  min-width: 132px;
  opacity: 1;
  pointer-events: auto;
}

html[data-direct-theme='light'] .direct-network-logo-badge-overlay {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(148, 163, 184, 0.3);
}

html[data-direct-theme='light'] .nasa-translation-trigger {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(148, 163, 184, 0.34);
  color: #0f172a;
}

html[data-direct-theme='light'] .nasa-translation-trigger:hover,
html[data-direct-theme='light'] .nasa-translation-trigger:focus-visible,
html[data-direct-theme='light'] .nasa-translation-control-card-popover.is-open .nasa-translation-trigger {
  background: #fff;
  border-color: rgba(239, 68, 68, 0.28);
}

html[data-direct-theme='light'] .nasa-translation-popover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(148, 163, 184, 0.28);
}

.nasa-featured-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 26, 61, 0.22), rgba(179, 0, 27, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nasa-card-meta-row-compact {
  margin-bottom: 0;
}

.nasa-featured-card .nasa-badge,
.nasa-featured-card .nasa-topic {
  background: rgba(255, 255, 255, 0.1);
  color: #e5eef9;
}

.nasa-featured-card .nasa-badge-source.is-apod,
.nasa-featured-card .nasa-badge-source.is-image-of-the-day,
.nasa-featured-card .nasa-badge-source.is-epic,
.nasa-featured-card .nasa-badge-source.is-epic-natural,
.nasa-featured-card .nasa-badge-source.is-epic-enhanced {
  background: rgba(196, 181, 253, 0.2);
  color: #ddd6fe;
}

.nasa-featured-card .nasa-badge-source.is-artemis {
  background: rgba(134, 239, 172, 0.16);
  color: #bbf7d0;
}

.nasa-featured-card .nasa-badge-source.is-space-station {
  background: rgba(125, 211, 252, 0.16);
  color: #bae6fd;
}

.nasa-featured-card .nasa-badge-source.is-donki {
  background: rgba(252, 165, 165, 0.16);
  color: #fecaca;
}

.nasa-featured-card .nasa-badge-source.is-jpl-news {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
}

.nasa-featured-card .nasa-badge-source.is-kennedy {
  background: rgba(45, 212, 191, 0.16);
  color: #99f6e4;
}

.nasa-featured-card .nasa-badge-source.is-mars-rover,
.nasa-featured-card .nasa-badge-source.is-mars-rover-curiosity,
.nasa-featured-card .nasa-badge-source.is-mars-rover-perseverance,
.nasa-featured-card .nasa-badge-source.is-mars-rover-unknown {
  background: rgba(253, 186, 116, 0.16);
  color: #fdba74;
}

.nasa-featured-card .nasa-badge-source.is-neows {
  background: rgba(252, 211, 77, 0.16);
  color: #fde68a;
}

.nasa-featured-card .nasa-badge-source.is-news-releases,
.nasa-featured-card .nasa-badge-source.is-recently-published-content {
  background: rgba(226, 232, 240, 0.12);
  color: #e2e8f0;
}

.nasa-featured-card .nasa-badge-source.is-nasa-image-library,
.nasa-featured-card .nasa-badge-source.is-nasa-image-library-artemis,
.nasa-featured-card .nasa-badge-source.is-nasa-image-library-mars {
  background: rgba(147, 197, 253, 0.16);
  color: #bfdbfe;
}

.nasa-featured-title {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3.7vw, 2.75rem);
  line-height: 1.07;
  letter-spacing: -0.045em;
}

.nasa-featured-title a {
  color: #fff;
  text-decoration: none;
}

.nasa-featured-title a:hover {
  color: #ffd4d9;
}

html[data-direct-theme='light'] .nasa-featured-title a {
  color: #111827;
}

html[data-direct-theme='light'] .nasa-featured-title a:hover {
  color: #b91c1c;
}

.nasa-featured-submeta {
  color: var(--nasa-mm-muted);
}

.nasa-featured-submeta span + span::before {
  color: rgba(255, 255, 255, 0.32);
}

.nasa-featured-summary {
  margin: 0 0 18px;
  color: #dbe7f3;
  font-size: 1.02rem;
  line-height: 1.72;
}

html[data-direct-theme='light'] .nasa-featured-summary {
  color: #111827;
}

.nasa-translation-control {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
}

.nasa-card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.nasa-card-topic-row {
  margin: 8px 0 12px;
}

.nasa-card-topic-row-featured {
  margin: 10px 0 14px;
}

.nasa-card-action-row {
  margin-top: 8px;
  padding-top: 2px;
  justify-content: flex-start;
  gap: 8px;
}

.nasa-card-action-row-featured {
  margin-top: 10px;
}

.nasa-card-action-row .nasa-listen-control-card-inline,
.nasa-card-action-row .nasa-translation-control-card-inline .nasa-translation-label,
.nasa-card-action-row .nasa-embed-control-card-inline,
.nasa-card-action-row .nasa-share-control-card-inline,
.nasa-card-action-row .nasa-download-control-card-inline,
.nasa-card-action-row .nasa-embed-control,
.nasa-card-action-row .nasa-share-control,
.nasa-card-action-row .nasa-download-control {
  min-height: 26px;
  min-width: 32px;
  width: 32px;
}

html[data-direct-theme='light'] .nasa-card-action-row .nasa-embed-control-card-inline,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-share-control-card-inline,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-download-control-card-inline,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-embed-control,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-share-control,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-download-control,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-embed-control-card-inline,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-share-control-card-inline,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-download-control-card-inline,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-embed-control,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-share-control,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-download-control {
  border-color: rgba(71, 85, 105, 0.28);
  background: rgba(30, 41, 59, 0.9);
  color: #f8fafc;
}

html[data-direct-theme='light'] .nasa-card-action-row .nasa-embed-control-card-inline:hover,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-share-control-card-inline:hover,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-download-control-card-inline:hover,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-embed-control:hover,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-share-control:hover,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-download-control:hover,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-embed-control-card-inline:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-share-control-card-inline:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-download-control-card-inline:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-embed-control:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-share-control:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-download-control:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-embed-control-card-inline:hover,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-share-control-card-inline:hover,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-download-control-card-inline:hover,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-embed-control:hover,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-share-control:hover,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-download-control:hover,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-embed-control-card-inline:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-share-control-card-inline:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-download-control-card-inline:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-embed-control:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-share-control:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-download-control:focus-visible {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
}

.nasa-card-action-row .nasa-listen-control-card-inline {
  min-width: 32px;
}

.nasa-card-action-row .nasa-listen-control-card-inline:hover,
.nasa-card-action-row .nasa-listen-control-card-inline:focus-visible,
.nasa-card-action-row .nasa-listen-control-card-inline.is-loading,
.nasa-card-action-row .nasa-listen-control-card-inline.is-playing {
  min-width: 82px;
}

.nasa-card-action-row .nasa-translation-control-card-inline .nasa-translation-label {
  width: 32px;
  min-width: 32px;
}

.nasa-card-action-row .nasa-translation-control-card-inline:hover .nasa-translation-label,
.nasa-card-action-row .nasa-translation-control-card-inline:focus-within .nasa-translation-label {
  min-width: 104px;
}

.nasa-card-title-row .nasa-card-title,
.nasa-card-title-row .nasa-featured-title {
  flex: 1 1 auto;
  min-width: 0;
}

.nasa-card-title-row .nasa-translation-control {
  flex: 0 0 auto;
  margin-top: 3px;
}

.nasa-card-title-row .nasa-listen-control {
  flex: 0 0 auto;
  margin-top: 3px;
}

.nasa-card-title-row .nasa-share-control {
  flex: 0 0 auto;
  margin-top: 3px;
}

.nasa-card-title-row .nasa-embed-control {
  flex: 0 0 auto;
  margin-top: 3px;
}

.nasa-card-title-row .nasa-download-control {
  flex: 0 0 auto;
  margin-top: 3px;
}

.nasa-listen-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 0.74rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.nasa-listen-control:hover,
.nasa-listen-control:focus-visible {
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(248, 113, 113, 0.5);
}

.nasa-listen-control.is-loading,
.nasa-listen-control.is-playing {
  background: rgba(220, 38, 38, 0.22);
  border-color: rgba(248, 113, 113, 0.65);
}

.nasa-listen-control:disabled {
  opacity: 0.72;
  cursor: wait;
}

.nasa-listen-control-card-inline {
  min-width: 34px;
  width: 34px;
  padding: 0 7px;
  overflow: hidden;
}

.nasa-listen-control-card-inline .nasa-listen-text {
  width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.16s ease, width 0.18s ease;
}

.nasa-listen-control-card-inline:hover,
.nasa-listen-control-card-inline:focus-visible,
.nasa-listen-control-card-inline.is-loading,
.nasa-listen-control-card-inline.is-playing {
  width: auto;
  min-width: 88px;
  justify-content: flex-start;
}

.nasa-listen-control-card-inline:hover .nasa-listen-text,
.nasa-listen-control-card-inline:focus-visible .nasa-listen-text,
.nasa-listen-control-card-inline.is-loading .nasa-listen-text,
.nasa-listen-control-card-inline.is-playing .nasa-listen-text {
  width: auto;
  opacity: 1;
}

.nasa-listen-control-detail {
  min-height: 34px;
  padding: 0 12px;
}

.nasa-embed-control-detail,
.nasa-share-control-detail,
.nasa-download-control-detail {
  min-height: 34px;
  min-width: 38px;
  width: 38px;
}

.nasa-embed-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 34px;
  width: 34px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  cursor: pointer;
}

.nasa-embed-control:hover,
.nasa-embed-control:focus-visible {
  background: rgba(255, 166, 0, 0.18);
  border-color: rgba(255, 209, 102, 0.55);
  color: #fff;
}

.nasa-embed-control.is-copied {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(134, 239, 172, 0.58);
  color: #f0fdf4;
}

.nasa-embed-icon {
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nasa-download-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 34px;
  width: 34px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nasa-share-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 34px;
  width: 34px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  cursor: pointer;
}

.nasa-share-control:hover,
.nasa-share-control:focus-visible {
  background: rgba(255, 166, 0, 0.18);
  border-color: rgba(255, 209, 102, 0.55);
  color: #fff;
}

.nasa-share-control.is-copied {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(134, 239, 172, 0.58);
  color: #f0fdf4;
}

.nasa-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.98rem;
  height: 0.98rem;
  line-height: 1;
}

.nasa-share-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (hover: hover) {
  .nasa-embed-control[data-tooltip],
  .nasa-share-control[data-tooltip],
  .nasa-download-control[data-tooltip] {
    position: relative;
  }

  .nasa-embed-control[data-tooltip]::after,
  .nasa-share-control[data-tooltip]::after,
  .nasa-download-control[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    padding: 6px 9px;
    border-radius: 10px;
    background: rgba(11, 11, 11, 0.96);
    border: 1px solid rgba(255, 209, 102, 0.32);
    color: #fff;
    font-size: 0.7rem;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 20;
  }

  .nasa-embed-control[data-tooltip]:hover::after,
  .nasa-embed-control[data-tooltip]:focus-visible::after,
  .nasa-share-control[data-tooltip]:hover::after,
  .nasa-share-control[data-tooltip]:focus-visible::after,
  .nasa-download-control[data-tooltip]:hover::after,
  .nasa-download-control[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.nasa-download-control:hover,
.nasa-download-control:focus-visible {
  background: rgba(255, 166, 0, 0.18);
  border-color: rgba(255, 209, 102, 0.55);
  color: #fff;
}

.nasa-download-control-media {
  background: rgba(185, 28, 28, 0.88);
  border-color: rgba(248, 113, 113, 0.48);
  color: #fff5f5;
}

.nasa-download-control-media:hover,
.nasa-download-control-media:focus-visible {
  background: rgba(153, 27, 27, 0.96);
  border-color: rgba(252, 165, 165, 0.58);
  color: #fff;
}

.nasa-download-control.is-loading {
  background: rgba(255, 209, 102, 0.14);
  border-color: rgba(255, 209, 102, 0.4);
  color: #fff7dd;
  cursor: wait;
}

.nasa-download-control.is-ready {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(134, 239, 172, 0.58);
  color: #f0fdf4;
}

.nasa-download-control.is-error {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fff1f2;
}

html[data-direct-theme='light'] .nasa-download-control.is-loading {
  background: rgba(254, 240, 138, 0.78);
  border-color: rgba(217, 119, 6, 0.34);
  color: #111827;
}

html[data-direct-theme='light'] .nasa-download-control.is-ready {
  background: rgba(187, 247, 208, 0.92);
  border-color: rgba(34, 197, 94, 0.32);
  color: #14532d;
}

html[data-direct-theme='light'] .nasa-download-control.is-error {
  background: rgba(254, 226, 226, 0.94);
  border-color: rgba(239, 68, 68, 0.28);
  color: #7f1d1d;
}

html[data-direct-theme='light'] .nasa-download-control-media {
  background: rgba(185, 28, 28, 0.92);
  border-color: rgba(153, 27, 27, 0.42);
  color: #fff;
}

html[data-direct-theme='light'] .nasa-card-action-row .nasa-download-control-media,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-download-control-media {
  background: rgba(185, 28, 28, 0.92);
  border-color: rgba(153, 27, 27, 0.42);
  color: #fff;
}

html[data-direct-theme='light'] .nasa-download-control-media:hover,
html[data-direct-theme='light'] .nasa-download-control-media:focus-visible {
  background: rgba(127, 29, 29, 0.96);
  border-color: rgba(153, 27, 27, 0.56);
  color: #fff;
}

html[data-direct-theme='light'] .nasa-card-action-row .nasa-download-control-media:hover,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-download-control-media:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-download-control-media:hover,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-download-control-media:focus-visible {
  background: rgba(127, 29, 29, 0.96);
  border-color: rgba(153, 27, 27, 0.56);
  color: #fff;
}

.nasa-download-icon {
  font-size: 0.94rem;
  line-height: 1;
}

.nasa-translation-control-card-inline .nasa-translation-label {
  min-height: 28px;
  width: 34px;
  padding: 0 7px;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  justify-content: center;
  overflow: hidden;
  transition: width 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nasa-translation-control-card-inline .nasa-translation-select {
  font-size: 0.74rem;
  width: 0;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.nasa-translation-control-card-inline:hover .nasa-translation-label,
.nasa-translation-control-card-inline:focus-within .nasa-translation-label {
  width: auto;
  min-width: 112px;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.nasa-translation-control-card-inline:hover .nasa-translation-select,
.nasa-translation-control-card-inline:focus-within .nasa-translation-select {
  width: auto;
  opacity: 1;
  pointer-events: auto;
}

.nasa-card-meta-row .nasa-translation-control-card-inline .nasa-translation-label,
.nasa-card-action-row .nasa-translation-control-card-inline .nasa-translation-label,
.nasa-card-action-row-featured .nasa-translation-control-card-inline .nasa-translation-label {
  width: auto;
  min-width: 112px;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.nasa-card-meta-row .nasa-translation-control-card-inline .nasa-translation-select,
.nasa-card-action-row .nasa-translation-control-card-inline .nasa-translation-select,
.nasa-card-action-row-featured .nasa-translation-control-card-inline .nasa-translation-select {
  width: auto;
  opacity: 1;
  pointer-events: auto;
}

.nasa-translation-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.84);
}

.direct-floating-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2600;
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.96);
  border: 1px solid rgba(242, 183, 5, 0.22);
  color: #fff8e8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translate(-50%, calc(-100% - 10px));
  transition: opacity 0.12s ease;
}

html[data-direct-theme='light'] .direct-floating-tooltip {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(148, 163, 184, 0.36);
  color: #0f172a;
}

.nasa-card-meta-row .nasa-translation-label[data-tooltip],
.nasa-card-action-row .nasa-translation-label[data-tooltip],
.nasa-card-action-row-featured .nasa-translation-label[data-tooltip],
.nasa-detail-translation-row .nasa-translation-label[data-tooltip],
.direct-headline-listen-modal-body .nasa-filter-field[data-tooltip] {
  position: relative;
}

.nasa-card-meta-row .nasa-translation-label[data-tooltip]::after,
.nasa-card-action-row .nasa-translation-label[data-tooltip]::after,
.nasa-card-action-row-featured .nasa-translation-label[data-tooltip]::after,
.nasa-detail-translation-row .nasa-translation-label[data-tooltip]::after,
.direct-headline-listen-modal-body .nasa-filter-field[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.94);
  border: 1px solid rgba(242, 183, 5, 0.22);
  color: #fff8e8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 25;
}

.nasa-card-meta-row .nasa-translation-control:hover .nasa-translation-label[data-tooltip]::after,
.nasa-card-meta-row .nasa-translation-control:focus-within .nasa-translation-label[data-tooltip]::after,
.nasa-card-action-row .nasa-translation-control:hover .nasa-translation-label[data-tooltip]::after,
.nasa-card-action-row .nasa-translation-control:focus-within .nasa-translation-label[data-tooltip]::after,
.nasa-card-action-row-featured .nasa-translation-control:hover .nasa-translation-label[data-tooltip]::after,
.nasa-card-action-row-featured .nasa-translation-control:focus-within .nasa-translation-label[data-tooltip]::after,
.nasa-detail-translation-row .nasa-translation-control:hover .nasa-translation-label[data-tooltip]::after,
.nasa-detail-translation-row .nasa-translation-control:focus-within .nasa-translation-label[data-tooltip]::after,
.direct-headline-listen-modal-body .nasa-filter-field[data-tooltip]:hover::after,
.direct-headline-listen-modal-body .nasa-filter-field[data-tooltip]:focus-within::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

html[data-direct-theme='light'] .nasa-card-meta-row .nasa-translation-label[data-tooltip]::after,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-translation-label[data-tooltip]::after,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-translation-label[data-tooltip]::after,
html[data-direct-theme='light'] .nasa-detail-translation-row .nasa-translation-label[data-tooltip]::after,
html[data-direct-theme='light'] .direct-headline-listen-modal-body .nasa-filter-field[data-tooltip]::after {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(148, 163, 184, 0.36);
  color: #0f172a;
}

html[data-direct-theme='light'] .nasa-translation-label {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.76);
  color: rgba(15, 23, 42, 0.92);
}

.nasa-translation-select {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
}

html[data-direct-theme='light'] .nasa-translation-select {
  color: #0f172a;
}

.nasa-translation-select option {
  color: #111827;
}

.nasa-detail-translation-row {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin: 0 0 10px;
}

.nasa-translation-control-detail-popover .nasa-translation-popover {
  top: calc(100% + 8px);
  bottom: auto;
}

.nasa-audio-bar {
  position: sticky;
  bottom: 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(960px, calc(100% - 24px));
  margin: 18px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(248, 113, 113, 0.26);
  border-radius: 18px;
  background: rgba(8, 8, 10, 0.92);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.nasa-audio-bar.is-inline {
  position: relative;
  bottom: auto;
  z-index: 5;
  width: 100%;
  margin: 0 0 14px;
}

.nasa-audio-bar[hidden] {
  display: none !important;
}

.nasa-audio-bar-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nasa-audio-bar-status {
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nasa-audio-bar-title {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nasa-audio-bar-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nasa-audio-bar-time {
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.nasa-audio-bar-progress {
  flex: 1 1 auto;
  min-width: 120px;
  accent-color: #ef4444;
  cursor: pointer;
}

.nasa-audio-bar-toggle,
.nasa-audio-bar-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.nasa-audio-bar-link {
  color: #fca5a5;
  font-size: 0.78rem;
  text-decoration: none;
  white-space: nowrap;
}

.nasa-audio-bar-next {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}

.nasa-audio-bar-auto {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}

.nasa-audio-bar-auto.is-active {
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(248, 113, 113, 0.5);
}

.nasa-audio-bar-next:hover,
.nasa-audio-bar-next:focus-visible,
.nasa-audio-bar-auto:hover,
.nasa-audio-bar-auto:focus-visible {
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(248, 113, 113, 0.5);
}

.nasa-audio-bar-link:hover,
.nasa-audio-bar-link:focus-visible {
  color: #fff;
}

.nasa-featured-image-link {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  background: #0b1220;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.nasa-featured-media {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100%;
  background: #020617;
  aspect-ratio: 16 / 9;
  overflow: visible;
}

.direct-audio-card-media {
  position: relative;
  height: 100%;
  min-height: 100%;
  background: #020617;
  overflow: hidden;
}

.direct-audio-poster-link {
  display: block;
  width: 100%;
  height: 100%;
}

.direct-audio-poster-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.direct-audio-poster-fallback {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at top right, rgba(214, 40, 40, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.94));
}

.direct-audio-controls {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  row-gap: 8px;
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  width: auto;
  max-width: calc(100% - 20px);
  box-sizing: border-box;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(12px);
}

.direct-audio-controls audio {
  display: none;
}

.direct-audio-control-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(214, 40, 40, 0.98), rgba(185, 28, 28, 0.92));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(127, 29, 29, 0.35);
}

.direct-audio-control-button:hover,
.direct-audio-control-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(127, 29, 29, 0.4);
}

.direct-audio-control-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.direct-audio-time {
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(248, 250, 252, 0.9);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.direct-audio-scrubber {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  margin: 0;
  accent-color: #d62828;
}

.direct-audio-scrubber::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.36);
}

.direct-audio-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.32);
}

.direct-audio-scrubber::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.36);
}

.direct-audio-scrubber::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.32);
}

.nasa-featured-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nasa-featured-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #020617;
}

.nasa-card {
  overflow: hidden;
}

.nasa-card[data-translate-card],
.nasa-featured-card[data-translate-card] {
  position: relative;
}

.nasa-card.is-narrating,
.nasa-featured-card.is-narrating {
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.45), 0 18px 42px rgba(127, 29, 29, 0.24);
}

.direct-translate-progress-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(2px);
}

.direct-translate-progress-overlay-detail {
  position: fixed;
  inset: 0;
  z-index: 1200;
  padding: 24px;
  background: rgba(2, 6, 23, 0.42);
}

.direct-translate-progress-overlay-detail .direct-translate-progress-card {
  width: min(260px, calc(100% - 32px));
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.34);
}

.direct-translate-progress-overlay[hidden] {
  display: none !important;
}

.direct-translate-progress-card {
  width: min(220px, calc(100% - 24px));
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.28);
}

.direct-translate-progress-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
}

.direct-translate-progress-bar {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.28);
}

.direct-translate-progress-bar-fill {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.92), rgba(220, 38, 38, 1));
  animation: direct-translate-progress 1.1s ease-in-out infinite;
}

@keyframes direct-translate-progress {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(320%);
  }
}

html[data-direct-theme='light'] .direct-translate-progress-overlay {
  background: rgba(255, 255, 255, 0.38);
}

html[data-direct-theme='light'] .direct-translate-progress-overlay-detail {
  background: rgba(255, 255, 255, 0.48);
}

html[data-direct-theme='light'] .direct-translate-progress-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(148, 163, 184, 0.36);
}

html[data-direct-theme='light'] .direct-translate-progress-label {
  color: #0f172a;
}

.nasa-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.nasa-card-body.has-image {
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  column-gap: 16px;
  row-gap: 12px;
}

.nasa-card-body.has-image .nasa-card-copy {
  --direct-card-copy-pad-left: 18px;
  --direct-card-copy-pad-right: 16px;
  --direct-card-copy-pad-bottom: 18px;
  padding: 18px 16px 18px 18px;
}

.nasa-card-copy {
  --direct-card-copy-pad-left: 22px;
  --direct-card-copy-pad-right: 22px;
  --direct-card-copy-pad-bottom: 20px;
  padding: 22px 22px 20px;
  min-width: 0;
}

.nasa-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}


.nasa-badge,
.nasa-topic {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nasa-badge-link {
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.nasa-badge-link:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.nasa-badge-link.is-active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 2px rgba(255, 77, 77, 0.22);
  filter: saturate(1.08);
}

html[data-direct-theme='light'] .nasa-badge-link.is-active {
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28), 0 0 0 2px rgba(239, 68, 68, 0.22);
}

.nasa-badge-link:focus {
  outline: 2px solid rgba(255, 77, 77, 0.9);
  outline-offset: 2px;
}

.nasa-badge {
  background: linear-gradient(180deg, rgba(255, 26, 61, 0.22), rgba(179, 0, 27, 0.14));
  color: #fff;
}

html[data-direct-theme='light'] .nasa-badge {
  background: linear-gradient(180deg, rgba(252, 165, 165, 0.34), rgba(254, 226, 226, 0.94));
  color: #111827;
  border: 1px solid rgba(239, 68, 68, 0.34);
}

.nasa-badge-source {
  color: #fff;
}

html[data-direct-theme='light'] .nasa-badge-source,
html[data-direct-theme='light'] .nasa-topic,
html[data-direct-theme='light'] .nasa-featured-card .nasa-badge,
html[data-direct-theme='light'] .nasa-featured-card .nasa-topic,
html[data-direct-theme='light'] .nasa-detail-header .nasa-badge,
html[data-direct-theme='light'] .nasa-detail-header .nasa-topic,
html[data-direct-theme='light'] .nasa-featured-card .nasa-badge-source,
html[data-direct-theme='light'] .nasa-detail-header .nasa-badge-source {
  color: #111827;
}

.nasa-badge-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.68rem;
  line-height: 1;
  flex: 0 0 auto;
}

html[data-direct-theme='light'] .nasa-badge-glyph {
  background: rgba(239, 68, 68, 0.28);
  color: #991b1b;
}

.nasa-badge-source.is-apod,
.nasa-badge-source.is-image-of-the-day,
.nasa-badge-source.is-epic,
.nasa-badge-source.is-epic-natural,
.nasa-badge-source.is-epic-enhanced {
  background: rgba(196, 181, 253, 0.14);
  color: #f5f3ff;
}

.nasa-badge-source.is-artemis {
  background: rgba(134, 239, 172, 0.14);
  color: #dcfce7;
}

.nasa-badge-source.is-space-station {
  background: rgba(125, 211, 252, 0.14);
  color: #e0f2fe;
}

.nasa-badge-source.is-donki {
  background: rgba(252, 165, 165, 0.14);
  color: #fee2e2;
}

.nasa-badge-source.is-jpl-news {
  background: rgba(96, 165, 250, 0.14);
  color: #dbeafe;
}

.nasa-badge-source.is-kennedy {
  background: rgba(45, 212, 191, 0.14);
  color: #ccfbf1;
}

.nasa-badge-source.is-mars-rover,
.nasa-badge-source.is-mars-rover-curiosity,
.nasa-badge-source.is-mars-rover-perseverance,
.nasa-badge-source.is-mars-rover-unknown {
  background: rgba(253, 186, 116, 0.14);
  color: #ffedd5;
}

.nasa-badge-source.is-neows {
  background: rgba(252, 211, 77, 0.14);
  color: #fef3c7;
}

.nasa-badge-source.is-news-releases,
.nasa-badge-source.is-recently-published-content {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
}

.nasa-badge-source.is-nasa-image-library,
.nasa-badge-source.is-nasa-image-library-artemis,
.nasa-badge-source.is-nasa-image-library-mars {
  background: rgba(147, 197, 253, 0.14);
  color: #dbeafe;
}

.nasa-topic {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

html[data-direct-theme='light'] .nasa-topic {
  background: rgba(203, 213, 225, 0.78);
  color: #334155;
  border: 1px solid rgba(148, 163, 184, 0.34);
}

.nasa-card-title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

html[data-direct-theme='light'] .nasa-card-title,
html[data-direct-theme='light'] .nasa-detail-title {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -0.015em;
}

.nasa-card-title a,
.nasa-back-link,
.nasa-inline-link {
  color: #fff;
  text-decoration: none;
}

html[data-direct-theme='light'] .nasa-card-title a,
html[data-direct-theme='light'] .nasa-back-link,
html[data-direct-theme='light'] .nasa-inline-link {
  color: #0f172a;
}

.nasa-card-title a:hover,
.nasa-inline-link:hover,
.nasa-back-link:hover {
  color: #ffd4d9;
}

html[data-direct-theme='light'] .nasa-card-title a:hover,
html[data-direct-theme='light'] .nasa-inline-link:hover,
html[data-direct-theme='light'] .nasa-back-link:hover {
  color: #b91c1c;
}

.nasa-card-submeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 12px;
  color: var(--nasa-mm-muted);
  font-size: 0.9rem;
}

.nasa-card-submeta span {
  position: relative;
  min-width: 0;
  overflow-wrap: anywhere;
}

.nasa-card-submeta span + span::before {
  content: "•";
  margin-right: 16px;
  color: rgba(255, 255, 255, 0.3);
}

.nasa-bundle-submeta-control-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nasa-card-submeta .nasa-bundle-submeta-control-wrap::before {
  display: none;
}

.nasa-bundle-submeta-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.nasa-bundle-submeta-control:hover {
  color: #fff;
}

.nasa-card-helper {
  margin: -4px 0 14px;
  color: #ffb4be;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.nasa-card-helper-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 180, 190, 0.35);
}

.nasa-card-helper-link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.nasa-featured-helper {
  font-size: 0.92rem;
}

.nasa-card-summary,
.nasa-detail-copy p {
  margin: 0 0 16px;
  color: var(--nasa-mm-text);
  font-size: 1rem;
  line-height: 1.68;
}

html[data-direct-theme='light'] .nasa-card-summary,
html[data-direct-theme='light'] .nasa-detail-copy p {
  color: rgba(30, 41, 59, 0.94);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.74;
}

.nasa-card-summary,
.nasa-featured-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nasa-card-summary {
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.nasa-featured-summary {
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

.nasa-inline-link {
  font-weight: 700;
}

.nasa-card-image-link {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100%;
  background: rgba(0, 0, 0, 0.4);
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.nasa-card-media {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 100%;
  background: #020617;
  aspect-ratio: 16 / 9;
  overflow: visible;
}

.direct-audio-detail-wrap {
  background: #020617;
}

.direct-audio-video-player {
  width: 100%;
  height: 100%;
  background: transparent;
}

.direct-audio-video-player::-webkit-media-controls-panel {
  background: transparent !important;
}

.direct-audio-video-player::-webkit-media-controls-enclosure {
  background: transparent !important;
}

.direct-audio-video-player::-webkit-media-controls-play-button,
.direct-audio-video-player::-webkit-media-controls-mute-button,
.direct-audio-video-player::-webkit-media-controls-volume-slider,
.direct-audio-video-player::-webkit-media-controls-volume-slider-container,
.direct-audio-video-player::-webkit-media-controls-overlay-play-button {
  filter: brightness(0) invert(1);
}

.direct-audio-video-player::-webkit-media-controls-timeline,
.direct-audio-video-player::-webkit-media-controls-current-time-display,
.direct-audio-video-player::-webkit-media-controls-time-remaining-display {
  display: none !important;
}

.direct-audio-card-media .direct-audio-video-player::-webkit-media-controls-timeline,
.direct-audio-featured-media .direct-audio-video-player::-webkit-media-controls-timeline {
  display: flex !important;
}

.direct-audio-card-media .direct-audio-video-player::-webkit-media-controls-current-time-display,
.direct-audio-card-media .direct-audio-video-player::-webkit-media-controls-time-remaining-display,
.direct-audio-featured-media .direct-audio-video-player::-webkit-media-controls-current-time-display,
.direct-audio-featured-media .direct-audio-video-player::-webkit-media-controls-time-remaining-display {
  display: flex !important;
}

.direct-audio-detail-wrap .direct-audio-video-player::-webkit-media-controls-timeline,
.direct-audio-detail-wrap .direct-audio-video-player::-webkit-media-controls-current-time-display,
.direct-audio-detail-wrap .direct-audio-video-player::-webkit-media-controls-time-remaining-display {
  display: flex !important;
}

.direct-audio-duration-label {
  position: absolute;
  left: 12px;
  bottom: 44px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.direct-video-duration-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.direct-video-duration-label.is-hidden-playing {
  opacity: 0;
  transform: translateY(4px);
}


.direct-playback-debug-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(248, 113, 113, 0.42);
  color: #fecaca;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.direct-playback-debug-badge[data-mode='mp4'],
.direct-playback-debug-badge[data-mode='mp4-fallback'] {
  border-color: rgba(253, 224, 71, 0.42);
  color: #fde68a;
}

html[data-direct-theme='light'] .direct-playback-debug-badge {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(239, 68, 68, 0.24);
  color: #b91c1c;
}

html[data-direct-theme='light'] .direct-playback-debug-badge[data-mode='mp4'],
html[data-direct-theme='light'] .direct-playback-debug-badge[data-mode='mp4-fallback'] {
  border-color: rgba(202, 138, 4, 0.24);
  color: #a16207;
}

.direct-video-duration-inline {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.24);
  color: #fecaca;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

html[data-direct-theme='light'] .direct-video-duration-inline {
  background: rgba(127, 29, 29, 0.08);
  border-color: rgba(127, 29, 29, 0.16);
  color: #7f1d1d;
}

.direct-source-audio-badge {
  top: 50px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.95), rgba(29, 78, 216, 0.88));
  border-color: rgba(191, 219, 254, 0.34);
  color: #eff6ff;
  text-decoration: none;
  cursor: pointer;
}

.direct-source-audio-badge:hover,
.direct-source-audio-badge:focus-visible,
.direct-source-audio-badge.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.22), 0 10px 22px rgba(30, 64, 175, 0.22);
}

.nasa-sequence-viewer {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.nasa-bundle-viewer {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #020617;
}

.nasa-bundle-stage {
  position: relative;
}

.nasa-sequence-media-link,
.nasa-bundle-media-link {
  display: block;
}

.nasa-bundle-media-link.is-hidden {
  display: none;
}

.nasa-media-credit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  max-width: min(72%, 280px);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.66);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.7rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: max-width 0.18s ease, background 0.18s ease, opacity 160ms ease, transform 160ms ease;
}

.nasa-media-credit.is-hidden-playing {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.nasa-card-media .nasa-media-credit,
.nasa-featured-media .nasa-media-credit,
.nasa-card-image-link .nasa-media-credit,
.nasa-featured-image-link .nasa-media-credit,
.nasa-detail-image-wrap .nasa-media-credit,
.direct-audio-detail-wrap .nasa-media-credit,
.nasa-detail-video-wrap .nasa-media-credit {
  display: none !important;
}

.nasa-media-credit-featured,
.nasa-media-credit-detail {
  font-size: 0.74rem;
}

.nasa-media-credit:hover,
.nasa-media-credit:focus-visible,
.nasa-card:hover .nasa-media-credit,
.nasa-featured-card:hover .nasa-media-credit,
.nasa-detail-image-wrap:hover .nasa-media-credit,
.nasa-bundle-viewer:hover .nasa-media-credit {
  max-width: calc(100% - 20px);
  background: rgba(0, 0, 0, 0.82);
}

@media (hover: none) {
  .nasa-media-credit {
    max-width: calc(100% - 20px);
  }

  .nasa-listen-control-card-inline {
    width: auto;
    min-width: 84px;
    justify-content: flex-start;
  }

  .nasa-listen-control-card-inline .nasa-listen-text {
    width: auto;
    opacity: 1;
  }

  .nasa-translation-control-card-inline .nasa-translation-label {
    width: auto;
    min-width: 112px;
    justify-content: flex-start;
  }

  .nasa-translation-control-card-inline .nasa-translation-select {
    width: auto;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  .nasa-audio-bar {
    bottom: 10px;
    width: calc(100% - 16px);
    gap: 10px;
    padding: 9px 10px;
  }

  .nasa-audio-bar.is-inline {
    bottom: auto;
    width: 100%;
    margin: 0 0 12px;
  }

  .nasa-audio-bar-progress {
    min-width: 84px;
  }

  .nasa-audio-bar-link {
    display: none;
  }

  .nasa-audio-bar-next {
    padding: 0 10px;
  }

  .nasa-audio-bar-auto {
    padding: 0 10px;
  }
}

.nasa-sequence-viewer-card,
.nasa-sequence-viewer-featured,
.nasa-bundle-viewer-card,
.nasa-bundle-viewer-featured {
  min-height: 100%;
}

.nasa-sequence-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.nasa-bundle-image,
.nasa-bundle-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.nasa-bundle-image.is-hidden,
.nasa-bundle-video.is-hidden {
  display: none;
}

.nasa-bundle-link {
  text-decoration: none;
}

.nasa-bundle-footer {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.nasa-sequence-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.44);
  color: #fff;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}

.nasa-sequence-control:hover {
  background: rgba(255, 26, 61, 0.34);
}

.nasa-sequence-control.is-prev {
  left: 12px;
}

.nasa-sequence-control.is-next {
  right: 12px;
}

.nasa-sequence-footer {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.58));
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.nasa-sequence-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nasa-sequence-count,
.nasa-sequence-meta {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nasa-sequence-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 26, 61, 0.24), rgba(179, 0, 27, 0.18));
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.nasa-sequence-toggle:hover {
  background: linear-gradient(180deg, rgba(255, 77, 77, 0.28), rgba(179, 0, 27, 0.22));
}

.nasa-sequence-caption {
  padding: 12px 14px 14px;
  background: rgba(2, 6, 23, 0.98);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nasa-sequence-viewer-featured .nasa-sequence-caption,
.nasa-sequence-viewer-detail .nasa-sequence-caption {
  font-size: 0.92rem;
}

.nasa-media-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.28);
  pointer-events: none;
}

.nasa-media-badge[hidden] {
  display: none !important;
}

.nasa-media-badge::before {
  content: "▶";
  margin-right: 6px;
  font-size: 0.72rem;
  line-height: 1;
  color: #93c5fd;
}

.nasa-media-badge-bundle::before {
  content: none;
}

.nasa-media-badge-featured {
  top: 16px;
  right: 16px;
}

.nasa-media-badge.nasa-badge-link {
  pointer-events: auto;
  text-decoration: none;
}

.nasa-media-badge-secondary {
  top: 50px;
  right: 12px;
}

.nasa-media-badge-featured.nasa-media-badge-secondary {
  top: 54px;
  right: 16px;
}

.nasa-media-badge-live {
  background: rgba(127, 29, 29, 0.9);
  border-color: rgba(252, 165, 165, 0.45);
  color: #fff;
}

.nasa-media-badge-live::before {
  content: "●";
  margin-right: 7px;
  font-size: 0.66rem;
  color: #fca5a5;
}

.nasa-media-badge-upcoming {
  background: rgba(120, 53, 15, 0.92);
  border-color: rgba(253, 186, 116, 0.42);
  color: #fff7ed;
}

.nasa-media-badge-upcoming::before {
  content: "◌";
  margin-right: 7px;
  font-size: 0.72rem;
  color: #fdba74;
}

.direct-item-type-badge-audio::before {
  content: "🔊";
  color: #bfdbfe;
}

.direct-item-type-badge-article::before {
  content: "¶";
  color: #f8fafc;
}

.nasa-card-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}

.nasa-card-embed,
.nasa-detail-embed {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #020617;
}

.nasa-card-embed-wrap,
.nasa-featured-embed-wrap,
.nasa-detail-video-wrap {
  position: relative;
  isolation: isolate;
}

.nasa-card-video {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #020617;
  border-radius: 18px;
}

.nasa-featured-video {
  border-radius: 24px;
}

.nasa-empty-state {
  padding: 38px 24px;
  text-align: center;
}

.nasa-empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 26, 61, 0.22), rgba(179, 0, 27, 0.14));
  color: #fff;
  font-size: 1.5rem;
}

.nasa-empty-state h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.45rem;
}

.nasa-empty-state p {
  max-width: 42ch;
  margin: 0 auto 18px;
  color: var(--nasa-mm-muted);
  line-height: 1.6;
}

.nasa-pagination {
  margin-top: 18px;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.4));
}

.nasa-pagination-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nasa-pagination-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--nasa-mm-muted);
  font-size: 0.92rem;
}

.nasa-pagination-summary strong {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.nasa-pagination-kicker,
.nasa-pagination-count {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nasa-detail-page {
  display: grid;
  gap: 16px;
}

.nasa-detail-page[data-translate-card] {
  position: relative;
}

.nasa-back-link {
  width: fit-content;
  color: var(--nasa-mm-muted);
  font-weight: 700;
}

.nasa-detail-header,
.nasa-detail-card {
  padding: 28px;
}

.direct-related-variants {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.035);
}

html[data-direct-theme='light'] .direct-related-variants {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.9);
}

.direct-related-variants-header {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-direct-theme='light'] .direct-related-variants-header {
  color: rgba(127, 29, 29, 0.86);
}

.direct-related-variants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.direct-related-variant-chip {
  min-height: 38px;
  align-items: center;
  gap: 8px;
}

.direct-related-variant-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  line-height: 1;
  font-size: 0.95rem;
  flex: 0 0 auto;
}

.direct-related-variant-chip-article {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.18), rgba(30, 64, 175, 0.12));
}

.direct-related-variant-chip-video {
  border-color: rgba(248, 113, 113, 0.32);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.2), rgba(153, 27, 27, 0.12));
}

.direct-related-variant-chip-photo,
.direct-related-variant-chip-image {
  border-color: rgba(52, 211, 153, 0.28);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.18), rgba(6, 95, 70, 0.12));
}

.direct-related-variant-chip-audio {
  border-color: rgba(250, 204, 21, 0.3);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.18), rgba(146, 64, 14, 0.12));
}

.direct-related-variant-chip.is-active {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.18);
}

.direct-clip-badge {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.22), rgba(153, 27, 27, 0.14));
  border-color: rgba(248, 113, 113, 0.32);
  color: #fff;
}

.nasa-detail-header {
  display: grid;
  gap: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.58));
  border: 1px solid var(--nasa-mm-border);
  box-shadow: var(--nasa-mm-shadow);
  backdrop-filter: blur(10px);
}

html[data-direct-theme='light'] .nasa-detail-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  backdrop-filter: none;
}

.nasa-detail-brand-row {
  margin-bottom: 14px;
}

.nasa-detail-title-row {
  margin-bottom: 0;
}

.nasa-detail-topic-row {
  margin: 10px 0 14px;
}

.nasa-detail-meta-row {
  margin-bottom: 0;
}

.nasa-detail-brand-logo {
  width: min(156px, 34vw);
}

.nasa-detail-header .nasa-badge,
.nasa-detail-header .nasa-topic {
  background: rgba(255, 255, 255, 0.1);
  color: #e5eef9;
}

html[data-direct-theme='light'] .nasa-detail-header .nasa-badge,
html[data-direct-theme='light'] .nasa-detail-header .nasa-topic {
  color: #334155;
}

html[data-direct-theme='light'] .nasa-detail-translation-row .nasa-embed-control,
html[data-direct-theme='light'] .nasa-detail-translation-row .nasa-share-control,
html[data-direct-theme='light'] .nasa-detail-translation-row .nasa-download-control:not(.nasa-download-control-media) {
  background: rgba(241, 245, 249, 0.98);
  border-color: rgba(148, 163, 184, 0.42);
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.18);
}

html[data-direct-theme='light'] .nasa-detail-translation-row .nasa-embed-control:hover,
html[data-direct-theme='light'] .nasa-detail-translation-row .nasa-embed-control:focus-visible,
html[data-direct-theme='light'] .nasa-detail-translation-row .nasa-share-control:hover,
html[data-direct-theme='light'] .nasa-detail-translation-row .nasa-share-control:focus-visible,
html[data-direct-theme='light'] .nasa-detail-translation-row .nasa-download-control:not(.nasa-download-control-media):hover,
html[data-direct-theme='light'] .nasa-detail-translation-row .nasa-download-control:not(.nasa-download-control-media):focus-visible {
  background: rgba(226, 232, 240, 0.98);
  border-color: rgba(100, 116, 139, 0.55);
  color: #020617;
}

.nasa-detail-header .nasa-badge-source.is-apod,
.nasa-detail-header .nasa-badge-source.is-image-of-the-day,
.nasa-detail-header .nasa-badge-source.is-epic,
.nasa-detail-header .nasa-badge-source.is-epic-natural,
.nasa-detail-header .nasa-badge-source.is-epic-enhanced {
  background: rgba(196, 181, 253, 0.2);
  color: #ddd6fe;
}

.nasa-detail-header .nasa-badge-source.is-artemis {
  background: rgba(134, 239, 172, 0.16);
  color: #bbf7d0;
}

.nasa-detail-header .nasa-badge-source.is-space-station {
  background: rgba(125, 211, 252, 0.16);
  color: #bae6fd;
}

.nasa-detail-header .nasa-badge-source.is-donki {
  background: rgba(252, 165, 165, 0.16);
  color: #fecaca;
}

.nasa-detail-header .nasa-badge-source.is-jpl-news {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
}

.nasa-detail-header .nasa-badge-source.is-kennedy {
  background: rgba(45, 212, 191, 0.16);
  color: #99f6e4;
}

.nasa-detail-header .nasa-badge-source.is-mars-rover,
.nasa-detail-header .nasa-badge-source.is-mars-rover-curiosity,
.nasa-detail-header .nasa-badge-source.is-mars-rover-perseverance,
.nasa-detail-header .nasa-badge-source.is-mars-rover-unknown {
  background: rgba(253, 186, 116, 0.16);
  color: #fdba74;
}

.nasa-detail-header .nasa-badge-source.is-neows {
  background: rgba(252, 211, 77, 0.16);
  color: #fde68a;
}

.nasa-detail-header .nasa-badge-source.is-news-releases,
.nasa-detail-header .nasa-badge-source.is-recently-published-content {
  background: rgba(226, 232, 240, 0.12);
  color: #e2e8f0;
}

.nasa-detail-header .nasa-badge-source.is-nasa-image-library,
.nasa-detail-header .nasa-badge-source.is-nasa-image-library-artemis,
.nasa-detail-header .nasa-badge-source.is-nasa-image-library-mars {
  background: rgba(147, 197, 253, 0.16);
  color: #bfdbfe;
}

.nasa-detail-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

html[data-direct-theme='light'] .nasa-detail-title {
  color: #0f172a;
}

.nasa-detail-submeta {
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--nasa-mm-muted);
}

.nasa-detail-action-row {
  margin-top: 14px;
  padding-top: 2px;
}

.nasa-detail-submeta span + span::before {
  color: rgba(255,255,255,0.32);
}

.nasa-detail-image-wrap {
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
}

.nasa-detail-video-wrap {
  position: relative;
  background: #020617;
}

.nasa-detail-image {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}

.nasa-detail-video {
  display: block;
  width: 100%;
  max-height: min(72vh, 760px);
  background: #020617;
}

.nasa-detail-downloads {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nasa-detail-downloads-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nasa-detail-download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nasa-detail-download-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
}

.nasa-detail-download-link:hover {
  background: rgba(255, 26, 61, 0.16);
}

.nasa-media-badge-detail {
  top: 16px;
  left: auto;
  right: 16px;
}

.nasa-media-badge-detail.nasa-media-badge-secondary {
  top: 54px;
  right: 16px;
}

.site-footer-nasa {
  margin: 32px auto 24px;
  padding: 12px 18px;
  max-width: 1100px;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.site-footer-nasa a {
  color: #ff6b7d;
  font-weight: 700;
  text-decoration: none;
}

.site-footer-nasa a + a {
  margin-left: 14px;
}

.site-footer-nasa a:hover {
  color: #ff8a97;
  text-decoration: underline;
}

.nasa-featured-card .nasa-badge-glyph,
.nasa-detail-header .nasa-badge-glyph {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 900px) {
  .nasa-hero {
    grid-template-columns: 1fr;
  }

  .nasa-brand-row {
    align-items: flex-start;
  }

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

  .nasa-featured-inner.has-image {
    grid-template-columns: 1fr;
  }

  .nasa-featured-image-link {
    order: -1;
    max-height: 300px;
  }

  .nasa-card-body.has-image {
    grid-template-columns: 1fr;
  }

  .nasa-card-image-link {
    order: -1;
    max-height: 260px;
  }

  .nasa-filter-drawer-toggle {
    width: 44px;
    height: 44px;
  }

  .direct-feed-results.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nasa-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .nasa-active-filters {
    align-items: flex-start;
    gap: 8px;
    top: calc(var(--direct-feed-sticky-offset, 0px) + 1px);
    margin-bottom: 4px;
    padding: 10px 12px;
  }

  .nasa-active-filters-search-wrap {
    flex-basis: 100%;
    min-width: 100%;
  }

  .nasa-card-title-row {
    flex-wrap: wrap;
  }

  .nasa-card-title-row .nasa-listen-control,
  .nasa-card-title-row .nasa-translation-control,
  .nasa-card-title-row .nasa-embed-control,
  .nasa-card-title-row .nasa-share-control,
  .nasa-card-title-row .nasa-download-control {
    margin-top: -2px;
  }

  .nasa-artemis-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nasa-artemis-banner-copy-wrap {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .nasa-active-filters {
    gap: 8px 10px;
    padding: 9px 10px;
    border-radius: 15px;
  }

  .nasa-active-results-meta {
    width: 100%;
    justify-content: space-between;
  }

  .nasa-active-results-count {
    font-size: 0.8rem;
  }

  .nasa-active-filters-search-wrap {
    flex: 1 1 180px;
    min-width: 0;
  }

  .nasa-active-inline-filter-label {
    flex-basis: 160px;
    min-width: 140px;
  }

  .nasa-active-search-form {
    gap: 4px;
  }

  .nasa-active-inline-filter-select {
    width: 100%;
    min-height: 34px;
    font-size: 0.7rem;
  }

  .nasa-active-search-input,
  .nasa-active-search-button {
    min-height: 34px;
  }

  .nasa-active-search-input {
    padding-left: 30px;
    padding-right: 10px;
    font-size: 0.84rem;
  }

  .nasa-active-search-button {
    padding: 0 9px;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }

  .africa-hero {
    padding: 12px;
  }

  .africa-mode-row {
    display: grid;
    gap: 10px;
  }

  .africa-brand-row {
    gap: 8px;
  }

  .africa-brand-logo {
    width: min(92px, 30vw);
  }

  .africa-mode-nav {
    display: flex;
    width: 100%;
    margin-top: 0;
    padding: 3px;
    overflow: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .direct-site-header-nav-scroller {
    overflow-x: auto;
    overflow-y: visible;
  }

  .africa-mode-actions {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .africa-mode-nav::-webkit-scrollbar,
  .direct-site-header-nav-scroller::-webkit-scrollbar {
    display: none;
  }

  .africa-mode-link {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .nasa-active-search-input,
  .nasa-active-search-button {
    min-height: 34px;
  }

  .nasa-active-search-button {
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .nasa-shell {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 42px;
  }

  .africa-hero {
    padding-top: 0;
  }

  .direct-site-header-layout {
    gap: 8px;
  }

  .direct-site-header-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 10px 12px;
  }

  .direct-site-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: 10px;
  }

  .direct-site-hero .nasa-hero-copy {
    width: 100%;
  }

  .direct-site-brand-block {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      'logo copy'
      'nav nav';
    align-items: flex-start;
    gap: 8px 10px;
  }

  .direct-site-logo-shell {
    grid-area: logo;
    padding-top: 0;
  }

  .direct-site-logo-link {
    min-height: 0;
    padding: 0;
  }

  .direct-site-logo-image {
    max-height: 34px;
  }

  .direct-site-brand-copy {
    display: none;
  }

  .direct-site-brand-kicker-row,
  .direct-site-brand-summary-row {
    width: 100%;
    align-items: flex-start;
  }

  .direct-site-brand-summary {
    max-width: none;
    font-size: 0.8rem;
    flex-basis: 100%;
  }

  .direct-site-header-row {
    grid-area: nav;
    margin-top: 2px;
  }

  .direct-site-header-tools {
    width: auto;
    max-width: none;
    align-self: start;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
  }

  .direct-site-header-tools .direct-view-toggle {
    width: auto;
  }

  .direct-site-header-context {
    width: 100%;
  }

  .direct-site-account .login-avatar-label {
    display: none;
  }

  .direct-site-join-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .direct-site-nav-menu {
    left: 0;
    right: auto;
    min-width: 180px;
    max-width: min(88vw, 240px);
  }

  .africa-brand-row {
    gap: 6px;
  }

  .africa-brand-logo {
    width: min(72px, 23vw);
  }

  .nasa-hero {
    padding: 12px;
  }

  .nasa-brand-row {
    gap: 10px;
  }

  .nasa-brand-logo {
    width: min(150px, 48vw);
  }

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

  .nasa-hero,
  .nasa-card-copy,
  .nasa-detail-header,
  .nasa-detail-card,
  .nasa-empty-state,
  .nasa-pagination {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nasa-title,
  .nasa-detail-title {
    letter-spacing: -0.03em;
  }

  .nasa-detail-brand-logo {
    width: min(138px, 44vw);
  }

  .nasa-card-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .direct-site-header-main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 16px;
  }

  .direct-site-header-tools {
    order: 1;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .direct-site-brand-block {
    order: 2;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: 'logo copy';
    align-items: center;
    gap: 6px 8px;
  }

  .direct-site-logo-image {
    max-height: 26px;
  }

  .direct-site-brand-copy {
    display: grid !important;
    align-self: center;
    gap: 1px;
    min-width: 0;
  }

  .direct-site-brand-kicker-row {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .direct-site-brand-kicker {
    font-size: 0.52rem;
    letter-spacing: 0.06em;
    white-space: normal;
    overflow: hidden;
    text-overflow: unset;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.15;
  }

  .direct-site-brand-kicker-full {
    display: none;
  }

  .direct-site-brand-kicker-short {
    display: inline;
  }

  .direct-site-brand-kicker-accent {
    margin-left: 4px;
    white-space: nowrap;
  }

  .direct-site-brand-summary-row,
  .direct-site-header-row {
    display: none !important;
  }

  .africa-mode-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    padding: 3px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    min-width: 0;
  }

  .direct-site-header-nav-scroller {
    overflow: visible;
  }

  .direct-site-nav-quickfilter,
  .direct-site-nav-button,
  .direct-site-header-nav > .africa-mode-link {
    flex: 0 0 auto;
  }

  .direct-theme-toggle,
  .direct-site-notifications .notification-bell,
  .direct-site-account .avatar-trigger,
  .direct-site-account .login-avatar-trigger,
  .direct-site-brand-language.direct-site-brand-language-tools .nasa-translation-label {
    min-height: 30px;
    height: 30px;
  }

  .direct-site-notifications .notification-bell,
  .direct-site-account .avatar-trigger,
  .direct-site-brand-language.direct-site-brand-language-tools .nasa-translation-label {
    width: 30px;
  }

  .direct-theme-toggle-button {
    width: 28px;
    height: 28px;
  }

  .direct-site-notifications .notification-bell .notification-bell-icon {
    width: 18px;
    height: 18px;
  }

  .direct-site-account .avatar-dropdown .avatar {
    width: 28px;
    height: 28px;
  }

  .direct-site-account .login-avatar-circle {
    width: 26px;
    height: 26px;
  }

  .direct-site-brand-language.direct-site-brand-language-tools .nasa-translation-label > span[aria-hidden='true'] {
    font-size: 1.1rem;
  }

  .direct-site-nav-filter-toggle.nasa-filter-drawer-toggle {
    width: 30px;
    height: 30px;
    min-height: 30px;
  }

  .direct-site-nav-filter-toggle .nasa-filter-toggle-icon,
  .direct-site-nav-filter-toggle .nasa-filter-toggle-icon svg {
    width: 18px;
    height: 18px;
  }

  .direct-site-nav-filter-toggle .nasa-filter-toggle-count {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 0.6rem;
    line-height: 16px;
  }

  .direct-site-nav-button,
  .direct-site-nav-summary,
  .africa-mode-link {
    min-height: 26px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .direct-site-nav-menu {
    top: calc(100% + 8px);
  }
}

body.host-africa {
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.24), transparent 34%),
    radial-gradient(circle at top right, rgba(234, 179, 8, 0.18), transparent 28%),
    linear-gradient(180deg, #030303 0%, #0a0a0a 48%, #050505 100%);
}

.africa-shell {
  --africa-red: #d62828;
  --africa-gold: #f2b705;
  --africa-green: #1f8a43;
  --africa-ink: #050505;
}

body.host-direct,
body.host-focal.host-direct {
  padding-top: 0 !important;
}

.africa-hero {
  padding-top: 0;
}

.direct-site-hero {
  position: sticky;
  top: 0;
  z-index: 950;
  display: block;
  width: 100vw;
  max-width: none;
  margin-top: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-top: 0;
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
  padding-bottom: 3px;
  border-radius: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.direct-site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 3, 3, 0.96) 0%, rgba(5, 5, 5, 0.92) 72%, rgba(5, 5, 5, 0.82) 100%);
  border-bottom: 1px solid rgba(242, 183, 5, 0.14);
  border-radius: inherit;
  pointer-events: none;
}

html[data-direct-theme='light'] .direct-site-hero::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 251, 249, 0.94) 72%, rgba(255, 248, 245, 0.88) 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.direct-site-hero > * {
  position: relative;
  z-index: 1;
}

.direct-site-hero .nasa-hero-copy {
  display: block;
  width: min(1320px, 100%);
  margin: 0 auto;
  min-width: 0;
}

body.host-direct .nasa-page.africa-page {
  padding-top: 0;
}

.africa-brand-row {
  align-items: center;
}

.africa-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.africa-mode-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.direct-site-header-layout {
  display: grid;
  gap: 6px;
  width: 100%;
}

.direct-site-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 7px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(14, 23, 42, 0.94), rgba(10, 15, 28, 0.9));
  border: 1px solid rgba(242, 183, 5, 0.16);
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.28);
}

.direct-site-brand-block {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.direct-site-logo-shell {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex: 0 0 auto;
  padding-top: 1px;
}

.direct-site-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.direct-site-logo-image {
  display: block;
  height: auto;
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

.direct-site-brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 320px;
}

@media (max-width: 900px) {
  .direct-site-brand-block {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: 'logo copy';
    align-items: center;
  }

  .direct-site-brand-copy {
    display: grid !important;
    align-self: center;
    gap: 2px;
  }

  .direct-site-brand-summary-row {
    display: none;
  }

  .direct-site-header-row {
    display: none;
  }
}

.direct-site-brand-kicker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.direct-site-brand-kicker,
.direct-site-brand-summary {
  margin: 0;
}

.direct-site-brand-kicker {
  color: #fbbf24;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.direct-site-brand-kicker-full {
  display: inline;
}

.direct-site-brand-kicker-short {
  display: none;
}

.direct-site-brand-kicker-accent {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.24);
  color: #dbeafe;
  font-size: 0.64rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.14em;
  vertical-align: middle;
}

.direct-site-brand-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .direct-site-brand-summary-row {
    display: none !important;
  }
}

.direct-site-brand-summary {
  max-width: 48ch;
  color: rgba(248, 250, 252, 0.74);
  font-size: 0.84rem;
  line-height: 1.35;
  flex: 1 1 320px;
}

.direct-site-brand-language {
  margin-top: 0;
  flex: 0 0 auto;
}

.direct-site-brand-language-tools {
  order: 1;
}

.direct-theme-toggle {
  order: 0;
}

.direct-site-notifications {
  order: 3;
}

.direct-site-account {
  order: 4;
}

.direct-site-brand-language-tools .nasa-translation-label {
  min-height: 28px;
  min-width: 132px;
  padding: 0 9px;
}

.direct-site-brand-language-tools .nasa-translation-control {
  display: inline-flex;
  align-items: center;
}

.direct-site-brand-language-tools .nasa-translation-select {
  min-width: 88px;
}

.direct-site-brand-language .nasa-translation-label {
  min-height: 30px;
  width: auto;
  min-width: 156px;
  padding: 0 10px;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  border-color: rgba(242, 183, 5, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 248, 232, 0.9);
}

.direct-site-brand-language .nasa-translation-select {
  width: auto;
  min-width: 104px;
  opacity: 1;
  pointer-events: auto;
  color: #fff;
}

.direct-site-brand-language:hover .nasa-translation-label,
.direct-site-brand-language:focus-within .nasa-translation-label {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(242, 183, 5, 0.28);
}

.direct-site-brand-language .nasa-translation-select option {
  color: #111827;
}

.direct-site-brand-language.direct-site-brand-language-tools .nasa-translation-label {
  position: relative;
  min-height: 32px;
  height: 32px;
  width: 32px;
  min-width: 32px;
  padding: 0;
  justify-content: center;
  gap: 0;
  overflow: hidden;
}

.direct-site-brand-language.direct-site-brand-language-tools .nasa-translation-label > span[aria-hidden='true'] {
  font-size: 1.25rem;
  line-height: 1;
  pointer-events: none;
}

.direct-site-brand-language.direct-site-brand-language-tools .nasa-translation-select {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 100%;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.direct-site-header-row {
  width: 100%;
  justify-content: flex-start;
  margin-top: 0;
}

.direct-site-header-nav-scroller {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.direct-site-header-nav {
  overflow: visible;
  justify-content: flex-start;
}

.africa-mode-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(8, 15, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.africa-mode-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
  padding: 4px;
  border-radius: 16px;
  background: rgba(8, 15, 28, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 100%;
}

.direct-site-header-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 0 auto;
  max-width: min(100%, 460px);
}

.direct-site-notifications {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.direct-site-notifications .notification-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.direct-site-notifications .notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(153, 27, 27, 0.92);
  background: rgba(185, 28, 28, 0.2);
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.3);
  cursor: pointer;
}

.direct-site-notifications .notification-bell:hover,
.direct-site-notifications .notification-bell:focus-visible {
  background: rgba(153, 27, 27, 0.3);
  border-color: #7f1d1d;
  outline: none;
}

.direct-site-notifications .notification-bell .notification-bell-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
}

.direct-site-notifications .notification-bell .notification-bell-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.direct-site-notifications .notification-bell .badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(127, 29, 29, 0.32);
}

.direct-site-notifications .modal-notifications {
  right: 0;
  top: calc(100% + 10px);
  min-width: 320px;
  max-width: min(92vw, 380px);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(8, 15, 28, 0.98);
  border: 1px solid rgba(242, 183, 5, 0.18);
  box-shadow: 0 20px 42px rgba(2, 6, 23, 0.34);
}

.direct-site-notifications .modal-notifications .modal-header {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.direct-site-notifications .modal-notifications .modal-header h4 {
  margin: 0;
  color: #fff;
  font-size: 0.92rem;
}

.direct-site-notifications .modal-notifications .modal-body {
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding: 10px 12px 12px;
}

.direct-site-notifications .modal-notifications .notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.direct-site-notifications .modal-notifications li {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.direct-site-notifications .modal-notifications li.unread {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(242, 183, 5, 0.22);
}

.direct-site-notifications .modal-notifications .notification-message {
  color: rgba(248, 250, 252, 0.94);
  font-size: 0.84rem;
  line-height: 1.5;
}

.direct-site-notifications .modal-notifications .timestamp,
.direct-site-notifications .modal-notifications .empty {
  color: rgba(226, 232, 240, 0.72);
}

html[data-direct-theme='light'] .direct-site-notifications .notification-bell {
  background: rgba(185, 28, 28, 0.14);
  border-color: rgba(153, 27, 27, 0.92);
  box-shadow: 0 14px 30px rgba(127, 29, 29, 0.22);
}

html[data-direct-theme='light'] .direct-site-notifications .notification-bell:hover,
html[data-direct-theme='light'] .direct-site-notifications .notification-bell:focus-visible {
  background: rgba(153, 27, 27, 0.22);
  border-color: #7f1d1d;
}

html[data-direct-theme='light'] .direct-site-notifications .notification-bell .notification-bell-icon {
  color: #dc2626;
}

html[data-direct-theme='light'] .direct-site-notifications .modal-notifications {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(203, 213, 225, 0.78);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16);
}

html[data-direct-theme='light'] .direct-site-notifications .modal-notifications .modal-header {
  border-bottom-color: rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.9);
}

html[data-direct-theme='light'] .direct-site-notifications .modal-notifications .modal-header h4,
html[data-direct-theme='light'] .direct-site-notifications .modal-notifications .notification-message {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-site-notifications .modal-notifications li {
  background: rgba(248, 250, 252, 0.92);
  border-color: rgba(226, 232, 240, 0.9);
}

html[data-direct-theme='light'] .direct-site-notifications .modal-notifications li.unread {
  background: rgba(254, 240, 138, 0.5);
  border-color: rgba(245, 158, 11, 0.22);
}

html[data-direct-theme='light'] .direct-site-notifications .modal-notifications .timestamp,
html[data-direct-theme='light'] .direct-site-notifications .modal-notifications .empty {
  color: #475569;
}

.direct-site-header-tools .direct-view-toggle {
  flex: 0 0 auto;
}

.direct-site-header-context {
  display: flex;
  width: 100%;
}

.direct-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 30px;
  padding: 1px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff8e8;
}

.direct-theme-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 248, 232, 0.72);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.direct-theme-toggle-button:hover,
.direct-theme-toggle-button:focus-visible {
  background: rgba(255, 209, 102, 0.12);
  color: #fff;
}

.direct-theme-toggle-button:focus-visible {
  outline: 2px solid rgba(255, 77, 77, 0.7);
  outline-offset: 2px;
}

.direct-theme-toggle-button.is-active {
  background: linear-gradient(180deg, rgba(255, 176, 32, 0.3), rgba(202, 138, 4, 0.2));
  color: #fffdf3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.direct-theme-toggle-icon {
  font-size: 0.84rem;
  line-height: 1;
}

.direct-site-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0;
  flex: 0 0 auto;
}

.direct-site-join-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(214, 40, 40, 0.52);
  border-radius: 999px;
  background: linear-gradient(135deg, #d62828 0%, #b91c1c 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.22);
}

.direct-site-join-button:hover,
.direct-site-join-button:focus-visible {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: rgba(239, 68, 68, 0.72);
}

.direct-site-account .avatar-dropdown,
.direct-site-account .login-dropdown {
  margin-left: 0;
}

.direct-site-account .avatar-trigger,
.direct-site-account .login-avatar-trigger {
  min-height: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(242, 183, 5, 0.28);
  color: #fff8e8;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
}

.direct-site-account .avatar-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  position: relative;
  overflow: visible;
}

.direct-site-account .avatar-dropdown {
  position: relative;
  overflow: visible;
}

.direct-site-account .avatar-hover-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 2000;
}

.direct-site-account .avatar-dropdown:hover .avatar-hover-tooltip,
.direct-site-account .avatar-trigger:focus-visible + .avatar-hover-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.direct-site-account .avatar-dropdown .avatar {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(242, 183, 5, 0.52);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.direct-site-account .login-avatar-trigger {
  gap: 6px;
  padding: 1px 10px 1px 3px;
}

.direct-site-account .login-avatar-circle {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #d62828 0%, #ef4444 100%);
}

.direct-site-account .login-avatar-circle svg {
  width: 13px;
  height: 13px;
}

.direct-site-account .login-avatar-label {
  color: #fff8e8;
  line-height: 1;
}

html[data-direct-theme='light'] .direct-site-logo-link,
html[data-direct-theme='light'] .direct-site-header-main,
html[data-direct-theme='light'] .africa-mode-nav,
html[data-direct-theme='light'] .africa-mode-actions,
html[data-direct-theme='light'] .direct-theme-toggle,
html[data-direct-theme='light'] .direct-site-account .avatar-trigger,
html[data-direct-theme='light'] .direct-site-account .login-avatar-trigger {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(148, 163, 184, 0.34);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-site-account .avatar-trigger,
html[data-direct-theme='light'] .direct-site-account .login-avatar-trigger {
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.16);
}

html[data-direct-theme='light'] .direct-site-account .avatar-dropdown .avatar {
  border-color: rgba(185, 28, 28, 0.34);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}

html[data-direct-theme='light'] .direct-site-account .avatar-hover-tooltip {
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  box-shadow: 0 14px 30px rgba(148, 163, 184, 0.24);
}

html[data-direct-theme='light'] .direct-site-header-main {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 16px 36px rgba(148, 163, 184, 0.16);
}

html[data-direct-theme='light'] .direct-site-brand-kicker {
  color: #b91c1c;
}

html[data-direct-theme='light'] .direct-site-brand-kicker-accent {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

html[data-direct-theme='light'] .direct-site-brand-summary {
  color: rgba(15, 23, 42, 0.72);
}

html[data-direct-theme='light'] .direct-site-brand-language .nasa-translation-label {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.92);
}

html[data-direct-theme='light'] .direct-site-brand-language .nasa-translation-select {
  color: #111827;
}

html[data-direct-theme='light'] .direct-theme-toggle-button {
  color: rgba(15, 23, 42, 0.72);
}

html[data-direct-theme='light'] .direct-theme-toggle-button:hover,
html[data-direct-theme='light'] .direct-theme-toggle-button:focus-visible {
  background: rgba(239, 68, 68, 0.08);
  color: #111827;
}

html[data-direct-theme='light'] .direct-theme-toggle-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #1f2937 0%, #0f172a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-direct-theme='light'] .direct-site-account .login-avatar-label,
html[data-direct-theme='light'] .direct-site-account .avatar-trigger {
  color: #0f172a;
}

.direct-site-account .dropdown-menu,
.direct-site-account .login-menu {
  margin-top: 6px;
}

.direct-site-account .dropdown-menu a,
.direct-site-account .login-menu a,
.direct-site-account .avatar-menu-profile strong,
.direct-site-account .avatar-menu-profile span {
  color: #111827;
}

.africa-mode-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255, 248, 232, 0.82);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.direct-site-nav-button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  gap: 6px;
  white-space: nowrap;
}

.direct-site-nav-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.direct-site-nav-button .nasa-listen-icon {
  font-size: 0.88rem;
  line-height: 1;
}

.direct-site-nav-filter-toggle.nasa-filter-drawer-toggle {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  border-color: rgba(242, 183, 5, 0.18);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  flex: 0 0 auto;
}

.direct-site-nav-filter-toggle.nasa-filter-drawer-toggle:hover,
.direct-site-nav-filter-toggle.nasa-filter-drawer-toggle:focus-visible {
  background: rgba(255, 209, 102, 0.12);
}

.direct-site-nav-filter-toggle .nasa-filter-toggle-icon {
  width: 20px;
  height: 20px;
}

.direct-site-nav-filter-toggle .nasa-filter-toggle-icon svg {
  width: 20px;
  height: 20px;
}

.direct-site-nav-filter-toggle .nasa-filter-toggle-count {
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.68rem;
}

html[data-direct-theme='light'] .direct-site-nav-filter-toggle.nasa-filter-drawer-toggle {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(30, 41, 59, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-direct-theme='light'] .direct-site-nav-filter-toggle.nasa-filter-drawer-toggle:hover,
html[data-direct-theme='light'] .direct-site-nav-filter-toggle.nasa-filter-drawer-toggle:focus-visible {
  background: rgba(239, 68, 68, 0.08);
  color: #111827;
}

.direct-site-nav-button-label {
  line-height: 1;
}

.direct-site-nav-quickfilter {
  position: relative;
  flex: 0 0 auto;
}

.direct-site-nav-quickfilter > summary {
  list-style: none;
  cursor: pointer;
}

.direct-site-nav-quickfilter > summary::-webkit-details-marker {
  display: none;
}

.direct-site-nav-summary {
  gap: 4px;
}

.direct-site-nav-caret {
  display: inline-block;
  font-size: 0.66rem;
  line-height: 1;
  opacity: 0.78;
  transition: transform 180ms ease, opacity 180ms ease;
}

.direct-site-nav-quickfilter[open] .direct-site-nav-summary,
.direct-site-nav-quickfilter.is-active .direct-site-nav-summary {
  color: #fffdf3;
  background: linear-gradient(180deg, rgba(255, 176, 32, 0.3), rgba(202, 138, 4, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.direct-site-nav-quickfilter[open] .direct-site-nav-caret,
.direct-site-nav-quickfilter.is-active .direct-site-nav-caret {
  opacity: 1;
  transform: rotate(180deg);
}

.direct-site-nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  min-width: 168px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(8, 15, 28, 0.98);
  border: 1px solid rgba(242, 183, 5, 0.18);
  box-shadow: 0 20px 42px rgba(2, 6, 23, 0.34);
}

.direct-site-nav-menu.is-floating {
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
  z-index: 2100;
}

.direct-site-nav-menu-link {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  color: rgba(255, 248, 232, 0.86);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.direct-site-nav-menu-link:hover,
.direct-site-nav-menu-link:focus-visible {
  color: #fff;
  background: rgba(255, 209, 102, 0.12);
  outline: none;
}

.direct-site-nav-menu-link.is-active {
  color: #fffdf3;
  background: linear-gradient(180deg, rgba(255, 176, 32, 0.22), rgba(202, 138, 4, 0.14));
}

.direct-site-nav-live-link {
  color: #f87171;
}

.direct-site-nav-live-link:hover,
.direct-site-nav-live-link:focus-visible {
  color: #fff5f5;
  background: rgba(239, 68, 68, 0.16);
}

.direct-site-nav-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.55);
  animation: direct-live-pulse 1.8s ease-out infinite;
}

@keyframes direct-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.55);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(248, 113, 113, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0);
  }
}

html[data-direct-theme='light'] .africa-mode-link {
  color: rgba(30, 41, 59, 0.86);
}

.africa-mode-link:hover,
.africa-mode-link:focus-visible {
  color: #fff;
  background: rgba(255, 209, 102, 0.12);
}

.africa-mode-link.is-active {
  color: #fffdf3;
  background: linear-gradient(180deg, rgba(255, 176, 32, 0.3), rgba(202, 138, 4, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-direct-theme='light'] .africa-mode-link:hover,
html[data-direct-theme='light'] .africa-mode-link:focus-visible {
  background: rgba(239, 68, 68, 0.08);
  color: #111827;
}

html[data-direct-theme='light'] .direct-site-nav-live-link {
  color: #dc2626;
}

html[data-direct-theme='light'] .direct-site-nav-quickfilter[open] .direct-site-nav-summary,
html[data-direct-theme='light'] .direct-site-nav-quickfilter.is-active .direct-site-nav-summary {
  color: #7f1d1d;
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.96), rgba(254, 242, 242, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

html[data-direct-theme='light'] .direct-site-nav-menu {
  background: rgba(255, 255, 255, 0.985);
  border-color: rgba(203, 213, 225, 0.5);
  box-shadow: 0 16px 32px rgba(148, 163, 184, 0.18);
}

html[data-direct-theme='light'] .direct-site-nav-menu-link {
  color: rgba(15, 23, 42, 0.9);
}

html[data-direct-theme='light'] .direct-site-nav-menu-link:hover,
html[data-direct-theme='light'] .direct-site-nav-menu-link:focus-visible {
  background: rgba(239, 68, 68, 0.08);
  color: #111827;
}

html[data-direct-theme='light'] .direct-site-nav-menu-link.is-active {
  color: #7f1d1d;
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.78), rgba(254, 242, 242, 0.9));
}

html[data-direct-theme='light'] .direct-site-nav-live-link:hover,
html[data-direct-theme='light'] .direct-site-nav-live-link:focus-visible {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.12);
}

html[data-direct-theme='light'] .africa-mode-link.is-active {
  color: #7f1d1d;
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.96), rgba(254, 242, 242, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.africa-mode-nav::-webkit-scrollbar,
.direct-site-header-nav-scroller::-webkit-scrollbar,
.africa-mode-actions::-webkit-scrollbar {
  display: none;
}

.africa-mode-translate-control {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  align-self: center;
}

.africa-mode-listen-control {
  min-width: 88px;
  min-height: 30px;
  width: auto;
  align-self: center;
  box-sizing: border-box;
  justify-content: flex-start;
  padding-top: 0;
  padding-bottom: 0;
  background: rgba(214, 40, 40, 0.9);
  border-color: rgba(214, 40, 40, 0.95);
  color: #fff8f8;
}

.africa-mode-listen-control:hover,
.africa-mode-listen-control:focus-visible,
.africa-mode-listen-control.is-loading,
.africa-mode-listen-control.is-playing {
  background: #d62828;
  border-color: #ef4444;
  color: #fff;
}

.africa-mode-listen-control .nasa-listen-text {
  width: auto;
  opacity: 1;
}

.africa-mode-actions .africa-mode-translate-control .nasa-translation-label {
  min-height: 30px;
  width: auto;
  min-width: 112px;
  padding: 0 10px;
  padding-top: 0;
  padding-bottom: 0;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  border-color: rgba(242, 183, 5, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 248, 232, 0.82);
}

html[data-direct-theme='light'] .africa-mode-actions .africa-mode-translate-control .nasa-translation-label {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(15, 23, 42, 0.9);
}

.africa-mode-actions .africa-mode-translate-control .nasa-translation-select {
  width: auto;
  min-width: 78px;
  opacity: 1;
  pointer-events: auto;
}

.africa-mode-actions .africa-mode-translate-control:hover .nasa-translation-label,
.africa-mode-actions .africa-mode-translate-control:focus-within .nasa-translation-label {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(242, 183, 5, 0.28);
}

.africa-mode-actions .africa-mode-translate-control .nasa-translation-select {
  color: #fff;
}

html[data-direct-theme='light'] .africa-mode-actions .africa-mode-translate-control .nasa-translation-select {
  color: #111827;
}

.africa-mode-actions .africa-mode-translate-control .nasa-translation-select option {
  color: #111827;
}

.direct-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 30px;
  padding: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(242, 183, 5, 0.16);
}

html[data-direct-theme='light'] .direct-view-toggle {
  background: rgba(226, 232, 240, 0.96);
  border-color: rgba(148, 163, 184, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.direct-view-toggle-button {
  appearance: none;
  border: 0;
  min-height: 28px;
  min-width: 28px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 248, 232, 0.82);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

html[data-direct-theme='light'] .direct-view-toggle-button {
  color: #334155;
}

.direct-view-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.direct-view-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  line-height: 1;
}

.direct-view-toggle-icon svg {
  display: block;
  width: 12px;
  height: 12px;
}

.direct-view-toggle-button:hover,
.direct-view-toggle-button:focus-visible {
  color: #fff;
  background: rgba(255, 209, 102, 0.12);
}

html[data-direct-theme='light'] .direct-view-toggle-button:hover,
html[data-direct-theme='light'] .direct-view-toggle-button:focus-visible {
  color: #111827;
  background: rgba(239, 68, 68, 0.08);
}

.direct-view-toggle-button.is-active {
  color: #fffdf3;
  background: linear-gradient(180deg, rgba(255, 176, 32, 0.3), rgba(202, 138, 4, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-direct-theme='light'] .direct-view-toggle-button.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.96), rgba(15, 23, 42, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.direct-feed-results.is-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
  align-items: start;
}

@media (max-width: 1180px) {
  .direct-feed-results.is-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
  }
}

@media (max-width: 900px) {
  .direct-feed-results.is-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  }

  .nasa-active-filters-tools .direct-view-toggle {
    display: none;
  }
}

.direct-feed-results.is-grid .nasa-card,
.direct-feed-results.is-grid .nasa-featured-card {
  min-width: 0;
  height: 100%;
}

.direct-feed-results.is-grid .nasa-card-body.has-image,
.direct-feed-results.is-grid .nasa-featured-inner.has-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    'media'
    'copy';
  column-gap: 0;
  row-gap: 12px;
}

.direct-feed-results.is-grid .nasa-card-media,
.direct-feed-results.is-grid .nasa-featured-media,
.direct-feed-results.is-grid .nasa-card-embed-wrap,
.direct-feed-results.is-grid .nasa-featured-embed-wrap,
.direct-feed-results.is-grid .direct-audio-card-media,
.direct-feed-results.is-grid .direct-audio-featured-media {
  grid-area: media;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  align-self: start;
  overflow: hidden;
}

.direct-feed-results.is-grid .nasa-card-image-link,
.direct-feed-results.is-grid .nasa-featured-image-link {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: 220px;
}

.direct-feed-results.is-grid .nasa-card-copy,
.direct-feed-results.is-grid .nasa-featured-copy {
  grid-area: copy;
  width: 100%;
  min-width: 0;
  padding: 18px;
  position: relative;
  z-index: 1;
}

.direct-feed-results.is-grid .nasa-featured-kicker-row {
  gap: 8px;
  margin-bottom: 10px;
}

.direct-feed-results.is-grid .nasa-card-title,
.direct-feed-results.is-grid .nasa-featured-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 1.02rem;
  line-height: 1.22;
}

.direct-feed-results.is-grid .nasa-card-summary,
.direct-feed-results.is-grid .nasa-featured-summary {
  display: none;
}

.direct-feed-results.is-grid .nasa-card-action-row,
.direct-feed-results.is-grid .nasa-card-action-row-featured {
  flex-wrap: wrap;
  gap: 8px;
}

.direct-feed-results.is-grid .nasa-card-video,
.direct-feed-results.is-grid .nasa-featured-video,
.direct-feed-results.is-grid .nasa-card-embed,
.direct-feed-results.is-grid .direct-audio-video-player {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
}

.direct-feed-results.is-grid .direct-audio-card-media,
.direct-feed-results.is-grid .direct-audio-featured-media {
  min-height: 248px;
}

.direct-feed-results.is-grid .direct-audio-controls {
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 8px 10px;
  gap: 8px;
}

.direct-feed-results.is-grid .nasa-media-credit {
  font-size: 0.72rem;
}

.africa-brand-logo {
  width: 92px;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28));
}

.africa-title {
  color: #fff;
  font-size: clamp(1.45rem, 2.65vw, 2.05rem);
  letter-spacing: 0.02em;
}

.africa-title em {
  color: #f2b705;
}

.nasa-shell.africa-shell .nasa-filter-drawer,
.nasa-shell.africa-shell .nasa-detail-card,
.nasa-shell.africa-shell .nasa-card,
.nasa-shell.africa-shell .nasa-featured-card,
.nasa-shell.africa-shell .nasa-empty-state,
.nasa-shell.africa-shell .nasa-audio-bar {
  border-color: rgba(242, 183, 5, 0.22);
  background: rgba(7, 7, 7, 0.94);
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-filter-drawer,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-detail-card,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-card,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-empty-state,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar {
  border-color: rgba(203, 213, 225, 0.5);
  background: rgba(255, 255, 255, 0.985);
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-featured-card {
  border-color: rgba(203, 213, 225, 0.5);
  background:
    radial-gradient(circle at top right, rgba(248, 113, 113, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.97));
}

.nasa-shell.africa-shell .nasa-badge,
.nasa-shell.africa-shell .nasa-chip,
.nasa-shell.africa-shell .nasa-media-badge,
.nasa-shell.africa-shell .nasa-button-primary,
.nasa-shell.africa-shell .nasa-filter-toggle-count,
.nasa-shell.africa-shell .nasa-chip-active {
  background: rgba(214, 40, 40, 0.18);
  border-color: rgba(214, 40, 40, 0.42);
  color: #fff;
}

.nasa-shell.africa-shell .nasa-button-primary:hover,
.nasa-shell.africa-shell .nasa-button-primary:focus-visible,
.nasa-shell.africa-shell .nasa-chip:hover,
.nasa-shell.africa-shell .nasa-chip:focus-visible,
.nasa-shell.africa-shell .nasa-badge-link:hover,
.nasa-shell.africa-shell .nasa-badge-link:focus-visible {
  background: rgba(31, 138, 67, 0.22);
  border-color: rgba(31, 138, 67, 0.48);
}

html[data-direct-theme='light'] .nasa-detail-actions .nasa-button-primary {
  background: linear-gradient(180deg, rgba(214, 40, 40, 0.96), rgba(185, 28, 28, 0.94));
  border-color: rgba(153, 27, 27, 0.78);
  color: #fff;
  box-shadow: 0 12px 28px rgba(153, 27, 27, 0.22);
}

html[data-direct-theme='light'] .nasa-detail-actions .nasa-button-primary:hover,
html[data-direct-theme='light'] .nasa-detail-actions .nasa-button-primary:focus-visible {
  background: linear-gradient(180deg, rgba(220, 38, 38, 1), rgba(185, 28, 28, 1));
  border-color: rgba(127, 29, 29, 0.86);
  color: #fff;
}

.nasa-shell.africa-shell .nasa-active-search-input {
  border-color: rgba(242, 183, 5, 0.22);
  background: rgba(7, 7, 7, 0.94);
  color: #fff;
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-active-inline-filter-select,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-active-search-input {
  border-color: rgba(203, 213, 225, 0.5);
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-status {
  color: rgba(17, 24, 39, 0.68);
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-title {
  color: #111827;
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-time {
  color: rgba(31, 41, 55, 0.84);
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-toggle,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-close,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-next,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-auto {
  border-color: rgba(203, 213, 225, 0.75);
  background: rgba(248, 250, 252, 0.96);
  color: #111827;
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-auto.is-active,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-next:hover,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-next:focus-visible,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-auto:hover,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-auto:focus-visible,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-toggle:hover,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-toggle:focus-visible,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-close:hover,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-close:focus-visible {
  border-color: rgba(214, 40, 40, 0.44);
  background: rgba(254, 226, 226, 0.95);
  color: #7f1d1d;
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-link {
  color: #991b1b;
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-link:hover,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar-link:focus-visible {
  color: #111827;
}

.nasa-shell.africa-shell .nasa-topic {
  background: rgba(242, 183, 5, 0.12);
  border-color: rgba(242, 183, 5, 0.3);
  color: #fff0b3;
}

.nasa-shell.africa-shell .nasa-active-filters-clear,
.nasa-shell.africa-shell .nasa-back-link,
.nasa-shell.africa-shell .nasa-detail-download-link,
.nasa-shell.africa-shell .nasa-audio-bar-link {
  color: #f2b705;
}

.nasa-shell.africa-shell .nasa-active-filters-clear:hover,
.nasa-shell.africa-shell .nasa-back-link:hover,
.nasa-shell.africa-shell .nasa-detail-download-link:hover,
.nasa-shell.africa-shell .nasa-audio-bar-link:hover {
  color: #fff;
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-chip,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-chip-active,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-chip:hover,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-chip.is-active {
  color: #111827;
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-chip-dismiss {
  color: #111827;
  background: rgba(255, 255, 255, 0.42);
}

.nasa-shell.africa-shell .nasa-card.is-narrating,
.nasa-shell.africa-shell .nasa-featured-card.is-narrating {
  box-shadow: 0 0 0 1px rgba(242, 183, 5, 0.4), 0 0 0 6px rgba(214, 40, 40, 0.08);
}

.africa-mode-button {
  font: inherit;
  cursor: pointer;
  background: #d62828;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.africa-mode-button[disabled] {
  opacity: 0.52;
  cursor: not-allowed;
}

.direct-clips-watch-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(242, 183, 5, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
}


.direct-clips-watch-playing {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(242, 183, 5, 0.24);
  border-radius: 999px;
  background: rgba(242, 183, 5, 0.1);
  color: #fff0b3;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.direct-clips-watch-counter {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.direct-clips-watch-stop {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(248, 113, 113, 0.32);
  border-radius: 999px;
  background: rgba(214, 40, 40, 0.18);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.direct-clips-watch-stop[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.direct-clips-watch-stop:hover,
.direct-clips-watch-stop:focus-visible {
  background: rgba(214, 40, 40, 0.28);
  border-color: rgba(248, 113, 113, 0.48);
}
.direct-clips-watch-status.is-success {
  border-color: rgba(52, 211, 153, 0.35);
  color: #d1fae5;
}

.direct-clips-watch-status.is-error {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.nasa-shell.africa-shell .nasa-card.is-watch-dubbing,
.nasa-shell.africa-shell .nasa-featured-card.is-watch-dubbing {
  box-shadow: 0 0 0 1px rgba(242, 183, 5, 0.4), 0 0 0 6px rgba(214, 40, 40, 0.08);
}

.direct-headline-language-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(242, 183, 5, 0.22);
  border-radius: 999px;
  background: rgba(242, 183, 5, 0.10);
  color: #fff0b3;
  font-size: 0.92rem;
  font-weight: 700;
}

.direct-headline-language-note-icon {
  flex: 0 0 auto;
}

.direct-headline-language-note-clear {
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.direct-headline-language-note-clear:hover,
.direct-headline-language-note-clear:focus-visible {
  color: #fca5a5;
}

.direct-headline-listen-modal-backdrop[hidden] {
  display: none !important;
}

.direct-clip-dub-modal-backdrop[hidden] {
  display: none !important;
}

.direct-clip-dub-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}

.direct-clips-dub-modal-subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.direct-clips-dub-modal-body {
  display: grid;
  gap: 16px;
}

.direct-clips-dub-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.direct-dubbed-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.direct-dubbed-filter-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.direct-dubbed-filter-select {
  width: min(280px, 100%);
}

.direct-headline-listen-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}

.direct-marti-live-modal-backdrop[hidden] {
  display: none !important;
}

.direct-marti-live-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(10px);
  overflow-y: auto;
}

.direct-marti-live-modal {
  position: relative;
  z-index: 2401;
  display: grid;
  gap: 16px;
  width: min(980px, 100%);
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 40px);
  padding: 18px;
  border: 1px solid rgba(239, 68, 68, 0.26);
  border-radius: 22px;
  background: rgba(7, 7, 7, 0.97);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  margin: auto;
  overflow: auto;
}

.direct-marti-live-player-wrap {
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.direct-marti-live-player {
  display: block;
  width: 100%;
  max-height: min(74vh, 760px);
  background: #000;
}

body.direct-marti-live-open {
  overflow: hidden;
}

.direct-marti-live-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.direct-marti-live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.direct-headline-listen-modal {
  display: grid;
  gap: 16px;
  width: min(560px, 100%);
  padding: 18px;
  border: 1px solid rgba(242, 183, 5, 0.22);
  border-radius: 22px;
  background: rgba(7, 7, 7, 0.97);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.36);
}

.direct-clips-player-modal {
  width: min(980px, 100%);
}

.direct-clips-player-header-actions {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.direct-network-logo-badge-player {
  position: static;
  min-height: 42px;
  max-width: 100px;
  padding: 6px 10px;
}

.direct-network-logo-badge-player .direct-network-logo-image {
  max-height: 32px;
}

.direct-clips-player-subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.direct-clips-player-wrap {
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.direct-clips-player-video {
  display: block;
  width: 100%;
  max-height: min(72vh, 760px);
  background: #000;
}

.direct-headline-listen-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.direct-headline-listen-title {
  margin: 4px 0 0;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.2;
}

.direct-headline-listen-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}

.direct-headline-listen-modal-body {
  display: grid;
  gap: 10px;
}

.direct-headline-listen-label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 700;
}

.direct-headline-listen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.direct-headline-listen-select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #fff;
  color: #111;
  font: inherit;
}

.direct-headline-listen-select option {
  color: #111;
  background: #fff;
}

.direct-headline-listen-close:hover,
.direct-headline-listen-close:focus-visible {
  background: rgba(214, 40, 40, 0.18);
  border-color: rgba(214, 40, 40, 0.42);
}

@media (max-width: 640px) {
  .direct-dubbed-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .direct-dubbed-filter-select {
    width: 100%;
  }

  .direct-dubbed-filter-bar .nasa-button {
    width: 100%;
  }

  .direct-clips-watch-status {
    align-items: stretch;
    flex-direction: column;
  }

  .direct-clips-watch-counter {
    width: 100%;
    text-align: center;
  }

  .direct-clips-watch-playing {
    width: 100%;
    text-align: center;
  }

  .direct-clips-watch-stop {
    width: 100%;
  }

  .direct-headline-listen-modal-backdrop {
    padding: 12px;
  }

  .direct-headline-listen-modal {
    padding: 16px;
  }

  .direct-clips-player-video {
    max-height: 56vh;
  }

  .direct-clips-player-header-actions {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .direct-headline-listen-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .direct-headline-listen-row .nasa-button {
    width: 100%;
  }
}

.nasa-shell.africa-shell .nasa-badge-source.is-allafrica-latest,
.nasa-shell.africa-shell .nasa-badge-source.is-allafrica-africa,
.nasa-shell.africa-shell .nasa-badge-source.is-allafrica-business {
  background: rgba(31, 138, 67, 0.18);
  border-color: rgba(31, 138, 67, 0.48);
}

.nasa-shell.africa-shell .nasa-badge-source.is-africanews,
.nasa-shell.africa-shell .nasa-badge-source.is-africanews-news,
.nasa-shell.africa-shell .nasa-badge-source.is-bbc-africa,
.nasa-shell.africa-shell .nasa-badge-source.is-france24-africa {
  background: rgba(214, 40, 40, 0.18);
  border-color: rgba(214, 40, 40, 0.48);
}

.nasa-shell.africa-shell .nasa-badge-source.is-reliefweb-reports,
.nasa-shell.africa-shell .nasa-badge-source.is-guardian-search,
.nasa-shell.africa-shell .nasa-badge-source.is-globalvoices-full,
.nasa-shell.africa-shell .nasa-badge-source.is-globalvoices-ssa,
.nasa-shell.africa-shell .nasa-badge-source.is-globalvoices-south-africa {
  background: rgba(242, 183, 5, 0.14);
  border-color: rgba(242, 183, 5, 0.42);
  color: #fff8d6;
}

.nasa-shell.africa-shell .nasa-badge-source.is-voa-africa,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-africa-54,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-africa-news-tonight,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-daybreak-africa,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-straight-talk-africa,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-south-sudan-in-focus,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-documentaries,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-highlights,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-startup-africa,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-african-beat {
  background: rgba(214, 40, 40, 0.22);
  border-color: rgba(242, 183, 5, 0.55);
  color: #fff6cf;
  box-shadow: 0 0 0 1px rgba(214, 40, 40, 0.12);
}

.nasa-shell.africa-shell .nasa-badge-source.is-voa-africa-54,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-straight-talk-africa,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-documentaries,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-highlights,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-startup-africa {
  background: linear-gradient(135deg, rgba(214, 40, 40, 0.24), rgba(31, 138, 67, 0.18));
  border-color: rgba(242, 183, 5, 0.62);
}

.nasa-shell.africa-shell .nasa-badge-source.is-cgtn-video,
.nasa-shell.africa-shell .nasa-badge-source.is-cgtn-live,
.nasa-shell.africa-shell .nasa-badge-source.is-cgtn-documentary,
.nasa-shell.africa-shell .nasa-badge-source.is-cgtn-china-africa-talk {
  background: rgba(242, 183, 5, 0.18);
  border-color: rgba(242, 183, 5, 0.55);
  color: #fff9dc;
  box-shadow: 0 0 0 1px rgba(242, 183, 5, 0.08);
}

.nasa-shell.africa-shell .nasa-badge-source.is-dw-africalink,
.nasa-shell.africa-shell .nasa-badge-source.is-dw-african-roots {
  background: rgba(31, 138, 67, 0.2);
  border-color: rgba(31, 138, 67, 0.55);
  color: #edfff1;
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-badge,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-topic,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-badge-source {
  color: #111827;
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-media-badge {
  color: #f8fafc;
}

.africa-card-micro-label {
  margin: 2px 0 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 244, 209, 0.72);
}

.africa-card-micro-label-featured {
  margin-top: 4px;
}

.africa-card-micro-label.is-tv {
  color: #ffd879;
}

.africa-card-micro-label.is-audio {
  color: #94efac;
}

.africa-card-micro-label.is-video {
  color: #ffe3e3;
}

.africa-card-micro-label.is-gallery {
  color: #ffe19a;
}

.site-footer-africa {
  margin: 24px auto 20px;
  padding: 12px 18px;
  max-width: 1100px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.site-footer-africa a {
  color: #f2b705;
  font-weight: 700;
  text-decoration: none;
  margin-right: 14px;
}

.site-footer-africa a:last-child {
  margin-right: 0;
}

.site-footer-africa a:hover,
.site-footer-africa a:focus-visible {
  color: #ffffff;
}

.direct-feeds-page {
  padding-bottom: 40px;
}

.direct-feeds-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 20px 0 24px;
}

.direct-network-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.direct-network-logo-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.direct-network-logo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.direct-network-logo-card-head h3 {
  margin: 0;
  color: #fff7dd;
  font-size: 1rem;
}

.direct-network-logo-card-head p {
  margin: 6px 0 0;
  color: rgba(255, 244, 209, 0.68);
  font-size: 13px;
}

.direct-network-control-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  font-size: 0.78rem;
  color: rgba(255, 244, 209, 0.78);
}

.direct-network-control-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #fff7dd;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.direct-network-control-badge.is-enabled {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(21, 128, 61, 0.26);
}

.direct-network-control-badge.is-disabled {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(153, 27, 27, 0.22);
}

html[data-direct-theme='light'] .direct-network-logo-card {
  border-color: rgba(203, 213, 225, 0.8);
  background: rgba(255, 255, 255, 0.92);
}

html[data-direct-theme='light'] .direct-site-logo-card {
  border-color: rgba(248, 113, 113, 0.36);
}

html[data-direct-theme='light'] .direct-network-logo-card-head h3 {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-network-logo-card-head p {
  color: rgba(71, 85, 105, 0.84);
}

html[data-direct-theme='light'] .direct-network-control-meta {
  color: rgba(51, 65, 85, 0.84);
}

html[data-direct-theme='light'] .direct-network-control-badge {
  border-color: rgba(203, 213, 225, 0.9);
  background: rgba(248, 250, 252, 0.98);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-network-control-badge.is-enabled {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(220, 252, 231, 0.98);
  color: #166534;
}

html[data-direct-theme='light'] .direct-network-control-badge.is-disabled {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(254, 226, 226, 0.98);
  color: #991b1b;
}

.direct-network-logo-preview-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.direct-network-logo-preview {
  display: block;
  max-width: 96px;
  max-height: 38px;
  width: auto;
  height: auto;
}

.direct-network-logo-form,
.direct-network-logo-delete {
  display: grid;
  gap: 12px;
}

.direct-network-logo-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  max-width: 88px;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.direct-network-logo-badge.is-featured {
  top: 22px;
  right: 22px;
  min-height: 46px;
  max-width: 110px;
}

.direct-network-logo-image {
  display: block;
  max-width: 100%;
  max-height: 32px;
  width: auto;
  height: auto;
}

.direct-network-logo-badge-inline {
  position: static;
  flex: 0 0 auto;
  min-width: 54px;
  min-height: 30px;
  max-width: 54px;
  padding: 3px 6px;
  border-radius: 10px;
  box-shadow: none;
  margin-right: -2px;
}

.direct-network-logo-badge-inline .direct-network-logo-image {
  max-height: 32px;
  margin: 0 auto;
}

.direct-card-media-overlay .direct-network-logo-badge-overlay {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: auto;
  max-width: none;
}

.direct-card-media-overlay .direct-network-logo-badge-overlay-featured {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: auto;
  max-width: none;
}

.nasa-detail-header .nasa-card-meta-row {
  gap: 6px;
  align-items: center;
}

.nasa-detail-header .direct-network-logo-badge-inline {
  min-width: 50px;
  max-width: 50px;
  min-height: 28px;
  padding: 2px 4px;
  border-radius: 8px;
  margin-right: -3px;
}




.direct-feed-admin-card {
  margin-bottom: 22px;
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(242, 183, 5, 0.18);
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.94), rgba(7, 13, 26, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.direct-feed-exclusions-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.direct-feed-exclusions-modal-backdrop[hidden] {
  display: none;
}

.direct-feed-exclusions-modal {
  width: min(460px, 100%);
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.48);
}

.direct-feed-exclusions-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.direct-feed-exclusions-modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.direct-feed-exclusions-modal-sub {
  margin: 6px 0 0;
  color: rgba(191, 219, 254, 0.92);
  font-size: 0.9rem;
}

.direct-feed-exclusions-close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.direct-feed-exclusions-form {
  display: grid;
  gap: 16px;
}

.direct-feed-exclusions-section {
  display: grid;
  gap: 10px;
}

.direct-feed-exclusions-label,
.direct-feed-exclusions-text-label {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.direct-feed-exclusions-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.direct-feed-exclusions-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.direct-feed-exclusions-form textarea {
  width: 100%;
  min-height: 110px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  resize: vertical;
}

.direct-feed-exclusions-help {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.84rem;
  line-height: 1.45;
}

.direct-feed-exclusions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

html[data-direct-theme='light'] .direct-feed-exclusions-modal-backdrop {
  background: rgba(226, 232, 240, 0.72);
}

html[data-direct-theme='light'] .direct-feed-exclusions-modal {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border-color: rgba(203, 213, 225, 0.8);
  box-shadow: 0 24px 64px rgba(148, 163, 184, 0.18);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-feed-exclusions-modal-head h2 {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-feed-exclusions-modal-sub {
  color: rgba(71, 85, 105, 0.88);
}

html[data-direct-theme='light'] .direct-feed-exclusions-close {
  color: rgba(15, 23, 42, 0.82);
}

html[data-direct-theme='light'] .direct-feed-exclusions-label,
html[data-direct-theme='light'] .direct-feed-exclusions-text-label {
  color: rgba(15, 23, 42, 0.9);
}

html[data-direct-theme='light'] .direct-feed-exclusions-check {
  background: rgba(241, 245, 249, 0.95);
  border-color: rgba(203, 213, 225, 0.88);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-feed-exclusions-form textarea {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(203, 213, 225, 0.88);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-feed-exclusions-form textarea::placeholder {
  color: rgba(100, 116, 139, 0.82);
}

html[data-direct-theme='light'] .direct-feed-exclusions-help {
  color: rgba(71, 85, 105, 0.82);
}

@media (max-width: 640px) {
  .direct-feed-exclusions-modal {
    padding: 18px;
  }

  .direct-feed-exclusions-type-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .direct-feed-exclusions-actions .nasa-button {
    width: 100%;
  }
}

.direct-feed-admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.direct-feed-admin-card.is-collapsible > .direct-feed-admin-card-head {
  margin-bottom: 0;
  cursor: pointer;
}

.direct-feed-admin-card-head:focus-visible {
  outline: 2px solid rgba(242, 183, 5, 0.82);
  outline-offset: 4px;
  border-radius: 14px;
}

.direct-feed-admin-card-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 247, 221, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.direct-feed-admin-card.is-collapsible > .direct-feed-admin-card-head:hover .direct-feed-admin-card-toggle,
.direct-feed-admin-card.is-collapsible > .direct-feed-admin-card-head:focus-visible .direct-feed-admin-card-toggle {
  background: rgba(242, 183, 5, 0.14);
  border-color: rgba(242, 183, 5, 0.38);
}

.direct-feed-admin-card.is-collapsible:not(.is-collapsed) > .direct-feed-admin-card-head .direct-feed-admin-card-toggle {
  transform: rotate(180deg);
}

.direct-feed-admin-card-panel[hidden] {
  display: none;
}

.direct-feed-admin-card-panel {
  margin-top: 16px;
}

.direct-feed-admin-card-head h2 {
  margin: 4px 0 0;
  color: #fff7dd;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

html[data-direct-theme='light'] .direct-feed-admin-card-head:focus-visible {
  outline-color: rgba(185, 28, 28, 0.65);
}

html[data-direct-theme='light'] .direct-feed-admin-card-toggle {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.88);
  color: #8a1c1c;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.14);
}

html[data-direct-theme='light'] .direct-feed-admin-card.is-collapsible > .direct-feed-admin-card-head:hover .direct-feed-admin-card-toggle,
html[data-direct-theme='light'] .direct-feed-admin-card.is-collapsible > .direct-feed-admin-card-head:focus-visible .direct-feed-admin-card-toggle {
  background: rgba(254, 226, 226, 0.92);
  border-color: rgba(220, 38, 38, 0.28);
}

.direct-feed-admin-help,
.direct-feed-group-note {
  margin: 6px 0 0;
  color: rgba(255, 244, 209, 0.68);
  font-size: 13px;
}

html[data-direct-theme='light'] .direct-feed-admin-card {
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
  box-shadow: 0 16px 34px rgba(148, 163, 184, 0.16);
}

html[data-direct-theme='light'] .direct-feed-admin-card-head h2 {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-feed-admin-help,
html[data-direct-theme='light'] .direct-feed-group-note {
  color: rgba(15, 23, 42, 0.68);
}

.direct-feeds-summary-card,
.direct-feed-group,
.direct-feed-card {
  border: 1px solid rgba(242, 183, 5, 0.18);
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.94), rgba(7, 13, 26, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.direct-feeds-summary-card {
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.direct-feeds-summary-card strong {
  font-size: 28px;
  line-height: 1.1;
  color: #fff7dd;
}

.direct-feeds-summary-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 244, 209, 0.68);
}

html[data-direct-theme='light'] .direct-feeds-summary-card {
  border-color: rgba(203, 213, 225, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
  box-shadow: 0 18px 42px rgba(148, 163, 184, 0.12);
}

html[data-direct-theme='light'] .direct-feeds-summary-card strong {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-feeds-summary-label {
  color: rgba(51, 65, 85, 0.76);
}

html[data-direct-theme='light'] .direct-feed-group,
html[data-direct-theme='light'] .direct-feed-card {
  border-color: rgba(203, 213, 225, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
  box-shadow: 0 18px 42px rgba(148, 163, 184, 0.12);
}

.direct-feed-groups {
  display: grid;
  gap: 20px;
}

.direct-feed-group {
  border-radius: 22px;
  padding: 20px;
}

.direct-feed-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.direct-feed-group.is-collapsible > .direct-feed-group-header {
  margin-bottom: 0;
  cursor: pointer;
}

.direct-feed-group.is-collapsible > .direct-feed-group-header::after {
  content: '⌄';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 247, 221, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.direct-feed-group-header:focus-visible {
  outline: 2px solid rgba(242, 183, 5, 0.82);
  outline-offset: 4px;
  border-radius: 14px;
}

.direct-feed-group-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 247, 221, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.direct-feed-group.is-collapsible > .direct-feed-group-header:hover .direct-feed-group-toggle,
.direct-feed-group.is-collapsible > .direct-feed-group-header:focus-visible .direct-feed-group-toggle {
  background: rgba(242, 183, 5, 0.14);
  border-color: rgba(242, 183, 5, 0.38);
}

.direct-feed-group.is-collapsible > .direct-feed-group-header:hover::after,
.direct-feed-group.is-collapsible > .direct-feed-group-header:focus-visible::after {
  background: rgba(242, 183, 5, 0.14);
  border-color: rgba(242, 183, 5, 0.38);
}

.direct-feed-group.is-collapsible:not(.is-collapsed) > .direct-feed-group-header .direct-feed-group-toggle {
  transform: rotate(180deg);
}

.direct-feed-group.is-collapsible:not(.is-collapsed) > .direct-feed-group-header::after {
  transform: rotate(180deg);
}

.direct-feed-group-panel[hidden] {
  display: none;
}

.direct-feed-group-panel {
  margin-top: 16px;
}

.direct-feed-group-header h2 {
  margin: 4px 0 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  color: #fff7dd;
}

html[data-direct-theme='light'] .direct-feed-group-header h2 {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-feed-group-header:focus-visible {
  outline-color: rgba(185, 28, 28, 0.65);
}

html[data-direct-theme='light'] .direct-feed-group-toggle {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.88);
  color: #8a1c1c;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.14);
}

html[data-direct-theme='light'] .direct-feed-group.is-collapsible > .direct-feed-group-header::after {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.88);
  color: #8a1c1c;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.14);
}

html[data-direct-theme='light'] .direct-feed-group.is-collapsible > .direct-feed-group-header:hover .direct-feed-group-toggle,
html[data-direct-theme='light'] .direct-feed-group.is-collapsible > .direct-feed-group-header:focus-visible .direct-feed-group-toggle {
  background: rgba(254, 226, 226, 0.92);
  border-color: rgba(220, 38, 38, 0.28);
}

html[data-direct-theme='light'] .direct-feed-group.is-collapsible > .direct-feed-group-header:hover::after,
html[data-direct-theme='light'] .direct-feed-group.is-collapsible > .direct-feed-group-header:focus-visible::after {
  background: rgba(254, 226, 226, 0.92);
  border-color: rgba(220, 38, 38, 0.28);
}

.direct-feed-group-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 244, 209, 0.72);
  font-size: 13px;
}

.direct-feed-group-stats span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

html[data-direct-theme='light'] .direct-feed-group-stats {
  color: rgba(15, 23, 42, 0.72);
}

html[data-direct-theme='light'] .direct-feed-group-stats span {
  border-color: rgba(203, 213, 225, 0.8);
  background: rgba(248, 250, 252, 0.98);
  color: #0f172a;
}

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

.direct-feed-editor-form {
  display: grid;
  gap: 14px;
}

.direct-ui-translation-filter-form {
  margin-bottom: 16px;
}

.direct-ui-translation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.direct-ui-translation-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(242, 183, 5, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.direct-ui-translation-card-head h3 {
  margin: 0;
  color: #fff7dd;
  font-size: 1rem;
}

.direct-ui-translation-card-head p {
  margin: 6px 0 0;
  color: rgba(255, 244, 209, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.direct-ui-translation-form,
.direct-ui-translation-delete {
  display: grid;
  gap: 12px;
}

.direct-feed-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.direct-feed-field {
  display: grid;
  gap: 6px;
}

.direct-feed-field span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 244, 209, 0.56);
}

.direct-feed-field-label-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.direct-feed-field-note {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 244, 209, 0.84);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.direct-feed-field-note[data-state-kind='override'] {
  border-color: rgba(242, 183, 5, 0.28);
  background: rgba(242, 183, 5, 0.12);
  color: #fff0b8;
}

.direct-feed-field-note[data-state-kind='default'] {
  border-color: rgba(96, 165, 250, 0.26);
  background: rgba(59, 130, 246, 0.14);
  color: #dbeafe;
}

.direct-feed-field-note[data-state-kind='inferred'] {
  border-color: rgba(52, 211, 153, 0.24);
  background: rgba(16, 185, 129, 0.14);
  color: #d1fae5;
}

.direct-feed-field-note[data-state-kind='empty'] {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(226, 232, 240, 0.82);
}

.direct-feed-field input,
.direct-feed-field select {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(242, 183, 5, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: #fff7dd;
  padding: 0 12px;
}

.direct-feed-field select option,
.direct-download-analytics-filters select option,
.direct-preferences-select option {
  background: #142031;
  color: #fff7dd;
}

html[data-direct-theme='light'] .direct-feed-field span {
  color: rgba(71, 85, 105, 0.9);
}

html[data-direct-theme='light'] .direct-feed-field-note {
  border-color: rgba(203, 213, 225, 0.92);
  background: rgba(241, 245, 249, 0.94);
  color: #334155;
}

html[data-direct-theme='light'] .direct-feed-field-note[data-state-kind='override'] {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

html[data-direct-theme='light'] .direct-feed-field-note[data-state-kind='default'] {
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(219, 234, 254, 0.92);
  color: #1d4ed8;
}

html[data-direct-theme='light'] .direct-feed-field-note[data-state-kind='inferred'] {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(209, 250, 229, 0.92);
  color: #047857;
}

html[data-direct-theme='light'] .direct-feed-field-note[data-state-kind='empty'] {
  border-color: rgba(203, 213, 225, 0.92);
  background: rgba(241, 245, 249, 0.94);
  color: #64748b;
}

html[data-direct-theme='light'] .direct-feed-field input,
html[data-direct-theme='light'] .direct-feed-field select {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-feed-field select option,
html[data-direct-theme='light'] .direct-download-analytics-filters select option,
html[data-direct-theme='light'] .direct-preferences-select option {
  background: #ffffff;
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-feed-field input::placeholder {
  color: rgba(100, 116, 139, 0.76);
}

.direct-feed-field textarea {
  width: 100%;
  min-height: 120px;
  border-radius: 12px;
  border: 1px solid rgba(242, 183, 5, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: #fff7dd;
  padding: 12px;
  resize: vertical;
}

.direct-feed-field textarea::placeholder {
  color: rgba(255, 244, 209, 0.38);
}

.direct-upload-card {
  margin-top: 8px;
}

.direct-upload-form-grid {
  align-items: start;
}

.direct-upload-field-wide {
  grid-column: 1 / -1;
}

.direct-upload-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.direct-upload-help-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(242, 183, 5, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.direct-upload-help-card strong {
  color: #fff7dd;
}

.direct-upload-help-card p {
  margin: 0;
  color: rgba(255, 244, 209, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

html[data-direct-theme='light'] .direct-feed-field textarea {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-ui-translation-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(148, 163, 184, 0.26);
}

html[data-direct-theme='light'] .direct-ui-translation-card-head h3 {
  color: #111827;
}

html[data-direct-theme='light'] .direct-ui-translation-card-head p {
  color: rgba(15, 23, 42, 0.68);
}

html[data-direct-theme='light'] .direct-feed-field textarea::placeholder {
  color: rgba(100, 116, 139, 0.76);
}

html[data-direct-theme='light'] .direct-upload-help-card {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.88);
}

html[data-direct-theme='light'] .direct-upload-help-card strong {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-upload-help-card p {
  color: rgba(51, 65, 85, 0.84);
}

@media (max-width: 900px) {
  .direct-upload-help-grid {
    grid-template-columns: 1fr;
  }
}

.direct-feed-field input::placeholder {
  color: rgba(255, 244, 209, 0.38);
}

.direct-date-wrapper {
  position: relative;
}

.direct-date-wrapper input[data-direct-date-input] {
  padding-right: 48px;
  cursor: pointer;
}

.direct-date-trigger {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(242, 183, 5, 0.14);
  color: #fff7dd;
  cursor: pointer;
}

.direct-date-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: min(320px, calc(100vw - 32px));
  border-radius: 18px;
  border: 1px solid rgba(242, 183, 5, 0.24);
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.98), rgba(7, 13, 26, 1));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
  padding: 14px;
}

.direct-date-popup-head,
.direct-date-popup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.direct-date-popup-head {
  margin-bottom: 10px;
}

.direct-date-title {
  flex: 1;
  text-align: center;
  color: #fff7dd;
  font-weight: 700;
}

.direct-date-nav,
.direct-date-action {
  border: 1px solid rgba(242, 183, 5, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #fff7dd;
  border-radius: 10px;
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
}

.direct-date-weekdays,
.direct-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.direct-date-weekdays {
  margin-bottom: 8px;
}

.direct-date-weekdays span {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 244, 209, 0.56);
}

.direct-date-cell {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff7dd;
  cursor: pointer;
}

.direct-date-cell.is-empty {
  background: transparent;
  cursor: default;
}

.direct-date-cell.is-today {
  border-color: rgba(242, 183, 5, 0.4);
}

.direct-date-cell.is-selected {
  background: #f2b705;
  color: #0a1120;
  font-weight: 700;
}

.direct-date-cell.is-focused,
.direct-date-cell:focus-visible {
  outline: 2px solid rgba(255, 247, 221, 0.92);
  outline-offset: 1px;
}

.direct-date-popup-actions {
  margin-top: 12px;
}

.direct-feed-field-wide {
  grid-column: 1 / -1;
}

.direct-feed-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.direct-feed-feedback {
  min-height: 20px;
  margin: 0;
  color: rgba(255, 244, 209, 0.72);
  font-size: 13px;
}

.direct-feed-feedback.is-good {
  color: #b7f5c7;
}

.direct-feed-feedback.is-bad {
  color: #ffb4b4;
}

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

.direct-feed-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.direct-feed-card-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.direct-feed-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #fff7dd;
}

.direct-feed-source-key {
  margin: 6px 0 0;
  word-break: break-word;
  color: rgba(255, 244, 209, 0.58);
  font-size: 12px;
}

.direct-feed-tag-row,
.direct-feed-aggregation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.direct-feed-tag-row {
  margin-top: 8px;
}

.direct-feed-tag,
.direct-feed-aggregation-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 248, 230, 0.92);
  font-size: 12px;
}

.direct-feed-aggregation-chip {
  text-decoration: none;
}

.direct-feed-aggregation-chip.is-active {
  background: rgba(242, 183, 5, 0.16);
  border-color: rgba(242, 183, 5, 0.45);
  color: #fff7dd;
}

html[data-direct-theme='light'] .direct-feed-tag,
html[data-direct-theme='light'] .direct-feed-aggregation-chip {
  border-color: rgba(203, 213, 225, 0.84);
  background: rgba(248, 250, 252, 0.98);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-feed-aggregation-chip.is-active {
  border-color: rgba(185, 28, 28, 0.24);
  background: rgba(254, 242, 242, 0.98);
  color: #7f1d1d;
}

.direct-feed-aggregations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.direct-feed-aggregation-block {
  display: grid;
  gap: 10px;
}

.direct-feed-aggregation-block h3 {
  margin: 0;
  color: #fff7dd;
  font-size: 1rem;
}

.direct-parser-filter-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 6px;
}

.direct-parser-filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.direct-parser-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 248, 230, 0.92);
  font-size: 12px;
}

.direct-parser-filter-picks {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.direct-parser-filter-pick-block {
  display: grid;
  gap: 10px;
}

.direct-parser-filter-pick-block h3 {
  margin: 0;
  color: #fff7dd;
  font-size: 1rem;
}

.direct-parser-filter-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.direct-parser-filter-pick {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(242, 183, 5, 0.18);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.direct-parser-filter-pick strong {
  color: #fff7dd;
  font-size: 0.95rem;
}

.direct-parser-filter-pick span {
  color: rgba(255, 244, 209, 0.7);
  font-size: 0.82rem;
}

.direct-parser-filter-pick:hover,
.direct-parser-filter-pick:focus-visible,
.direct-parser-filter-pick.is-active {
  border-color: rgba(242, 183, 5, 0.38);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.direct-feed-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.direct-feed-status.is-configured {
  background: rgba(31, 138, 67, 0.16);
  color: #b7f5c7;
  border: 1px solid rgba(31, 138, 67, 0.36);
}

.direct-feed-status.is-discovered {
  background: rgba(242, 183, 5, 0.12);
  color: #ffe7a0;
  border: 1px solid rgba(242, 183, 5, 0.36);
}

.direct-feed-meta {
  display: grid;
  gap: 12px;
  margin: 0;
}

.direct-feed-meta div {
  display: grid;
  gap: 4px;
}

.direct-feed-meta dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 244, 209, 0.56);
}

.direct-feed-meta dd {
  margin: 0;
  color: rgba(255, 248, 230, 0.92);
  word-break: break-word;
}

.direct-feed-url {
  color: #f2b705;
  text-decoration: none;
}

.direct-feed-url:hover,
.direct-feed-url:focus-visible {
  color: #fff7dd;
}

.direct-feed-empty {
  color: rgba(255, 244, 209, 0.56);
}

html[data-direct-theme='light'] .direct-feed-card-head h3,
html[data-direct-theme='light'] .direct-feed-aggregation-block h3 {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-parser-filter-chip {
  border-color: rgba(203, 213, 225, 0.84);
  background: rgba(248, 250, 252, 0.98);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-parser-filter-pick-block h3 {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-parser-filter-pick {
  border-color: rgba(203, 213, 225, 0.72);
  background: rgba(255, 255, 255, 0.94);
}

html[data-direct-theme='light'] .direct-parser-filter-pick strong {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-parser-filter-pick span {
  color: rgba(51, 65, 85, 0.72);
}

html[data-direct-theme='light'] .direct-parser-filter-pick:hover,
html[data-direct-theme='light'] .direct-parser-filter-pick:focus-visible,
html[data-direct-theme='light'] .direct-parser-filter-pick.is-active {
  border-color: rgba(203, 213, 225, 0.9);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.14);
}

html[data-direct-theme='light'] .direct-feed-source-key {
  color: rgba(51, 65, 85, 0.7);
}

html[data-direct-theme='light'] .direct-feed-meta dt {
  color: rgba(71, 85, 105, 0.78);
}

html[data-direct-theme='light'] .direct-feed-meta dd {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-feed-url {
  color: #b91c1c;
}

html[data-direct-theme='light'] .direct-feed-url:hover,
html[data-direct-theme='light'] .direct-feed-url:focus-visible {
  color: #7f1d1d;
}

html[data-direct-theme='light'] .direct-feed-empty {
  color: rgba(71, 85, 105, 0.78);
}

.direct-download-analytics-card {
  display: grid;
  gap: 16px;
}

.direct-download-analytics-filters {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(242, 183, 5, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.direct-download-analytics-filter-main {
  display: flex;
  align-items: end;
  gap: 12px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.direct-download-analytics-filters label {
  display: grid;
  gap: 6px;
}

.direct-download-analytics-filter-main label {
  min-width: 150px;
  max-width: 180px;
  flex: 0 1 180px;
}

.direct-download-analytics-filters label span {
  color: rgba(255, 244, 209, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.direct-analytics-filter-toggle {
  align-self: end;
  min-height: 40px;
}

.direct-download-analytics-filters input,
.direct-download-analytics-filters select {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.48);
  color: #fff7dd;
}

.direct-download-analytics-filter-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
  justify-content: flex-end;
}

.direct-download-analytics-action {
  min-height: 34px;
  width: 34px;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.direct-download-analytics-action svg {
  width: 18px;
  height: 18px;
}

.direct-download-analytics-action-export {
  border-color: rgba(34, 197, 94, 0.36);
  background: rgba(34, 197, 94, 0.18);
  color: #dcfce7;
}

.direct-download-analytics-action-export:hover,
.direct-download-analytics-action-export:focus-visible {
  border-color: rgba(34, 197, 94, 0.56);
  background: rgba(34, 197, 94, 0.28);
  color: #f0fdf4;
}

.direct-download-analytics-filter-actions .nasa-button,
.direct-download-analytics-filter-actions .direct-download-analytics-action {
  min-height: 40px;
}

.direct-download-analytics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

@media (min-width: 1200px) {
  .direct-download-analytics-summary {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 10px;
  }

  .direct-download-analytics-summary-card {
    padding: 12px 10px;
    min-height: 0;
  }

  .direct-download-analytics-summary-card .direct-feeds-summary-label {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
  }

  .direct-download-analytics-summary-card strong[data-analytics-card-value] {
    font-size: 1.45rem;
    line-height: 1.05;
  }
}

.direct-download-analytics-audience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.direct-download-analytics-audience-toggle {
  display: inline-flex;
  align-items: center;
  align-self: end;
  justify-self: start;
  gap: 4px;
  min-height: 34px;
  width: max-content;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.18);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.direct-download-analytics-audience-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 34px;
  padding: 0 9px;
  border-radius: 999px;
  color: rgba(255, 244, 209, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.direct-download-analytics-audience-option svg {
  width: 15px;
  height: 15px;
}

.direct-download-analytics-audience-option:hover,
.direct-download-analytics-audience-option:focus-visible {
  color: #fff7dd;
}

.direct-download-analytics-audience-option:focus-visible {
  outline: 2px solid rgba(242, 183, 5, 0.45);
  outline-offset: 2px;
}

.direct-download-analytics-audience-option.is-active {
  background: linear-gradient(135deg, rgba(242, 183, 5, 0.22), rgba(239, 68, 68, 0.22));
  color: #fff7dd;
  box-shadow: 0 0 0 1px rgba(242, 183, 5, 0.18);
}

.direct-download-analytics-summary-card {
  margin: 0;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.direct-download-analytics-summary-card:hover,
.direct-download-analytics-summary-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(242, 183, 5, 0.34);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.direct-download-analytics-summary-card.is-active {
  border-color: rgba(242, 183, 5, 0.4);
  background: rgba(242, 183, 5, 0.1);
  box-shadow: inset 0 0 0 1px rgba(242, 183, 5, 0.16);
}

.direct-download-analytics-summary-card.is-static:hover,
.direct-download-analytics-summary-card.is-static:focus-visible {
  transform: none;
  box-shadow: none;
  border-color: rgba(242, 183, 5, 0.16);
  background: inherit;
}

.direct-download-breakdown-trigger {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.direct-download-breakdown-modal {
  padding: 18px;
}

.direct-download-breakdown-dialog {
  width: min(1440px, calc(100vw - 36px));
  max-width: none;
}

.direct-download-breakdown-shell {
  display: grid;
  gap: 18px;
}

.direct-download-breakdown-summary {
  display: grid;
  gap: 12px;
}

.direct-download-breakdown-toolbar {
  display: grid;
  gap: 12px;
}

.direct-download-breakdown-toolbar-head {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.direct-download-breakdown-export {
  min-height: 40px;
}

.direct-download-breakdown-range-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  align-items: end;
  gap: 12px;
}

.direct-download-breakdown-range-form label {
  display: grid;
  gap: 6px;
}

.direct-download-breakdown-range-form label span {
  color: rgba(255, 244, 209, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.direct-download-breakdown-range-form input {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.48);
  color: #fff7dd;
}

.direct-download-breakdown-range-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.direct-download-breakdown-range-actions .nasa-button {
  min-height: 40px;
}

.direct-download-breakdown-total-card {
  margin: 0;
}

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

.direct-download-breakdown-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(242, 183, 5, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.direct-download-breakdown-block-wide {
  grid-column: 1 / -1;
}

.direct-download-breakdown-block h3 {
  margin: 0;
  color: #fff7dd;
  font-size: 1rem;
}

.direct-download-breakdown-list {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.direct-download-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.direct-download-breakdown-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.direct-download-breakdown-row strong {
  color: #fff7dd;
}

.direct-download-breakdown-user-row {
  align-items: flex-start;
}

.direct-download-breakdown-user-row p {
  margin: 4px 0 0;
  color: rgba(255, 244, 209, 0.68);
  font-size: 0.84rem;
}

.direct-download-analytics-breakdown {
  display: grid;
  gap: 10px;
}

.direct-download-analytics-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.035);
}

.direct-download-analytics-breakdown-row strong {
  color: #fff7dd;
}

.direct-download-analytics-breakdown-row-discovery {
  border-color: rgba(56, 189, 248, 0.28);
}

.direct-download-analytics-breakdown-row-playback {
  border-color: rgba(129, 140, 248, 0.28);
}

.direct-download-analytics-breakdown-row-translation {
  border-color: rgba(34, 197, 94, 0.28);
}

.direct-download-analytics-breakdown-row-download {
  border-color: rgba(245, 158, 11, 0.28);
}

.direct-download-analytics-breakdown-row-share {
  border-color: rgba(244, 114, 182, 0.28);
}

.direct-download-analytics-breakdown-row-admin,
.direct-download-analytics-breakdown-row-failure {
  border-color: rgba(248, 113, 113, 0.28);
}

.direct-download-analytics-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.direct-download-analytics-chip {
  margin: 0;
}

.direct-download-analytics-mini-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.22);
  background: rgba(242, 183, 5, 0.08);
  color: #fbe8b0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.direct-download-analytics-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.direct-download-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.direct-download-analytics-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(242, 183, 5, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.direct-download-analytics-block-wide {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.direct-download-analytics-block h3 {
  margin: 0;
  color: #fff7dd;
  font-size: 1rem;
}

.direct-download-analytics-list {
  display: grid;
  gap: 10px;
}

.direct-download-analytics-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.direct-download-analytics-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.direct-download-analytics-row strong {
  color: #fff7dd;
}

.direct-download-analytics-row p {
  margin: 4px 0 0;
  color: rgba(255, 244, 209, 0.68);
  font-size: 0.84rem;
  line-height: 1.45;
}

.direct-download-analytics-row-meta {
  display: grid;
  gap: 4px;
  min-width: 118px;
  text-align: right;
}

.direct-download-analytics-stat-row {
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.direct-download-analytics-stat-row:first-child {
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.direct-download-analytics-rank {
  flex: 0 0 auto;
  min-width: 44px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.24);
  background: rgba(242, 183, 5, 0.12);
  color: #fff0b3;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}

.direct-download-analytics-stat-body {
  flex: 1 1 auto;
  min-width: 0;
}

.direct-download-analytics-bar {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.direct-download-analytics-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(242, 183, 5, 0.82), rgba(239, 68, 68, 0.82));
}

.direct-download-analytics-stat-meta {
  min-width: 138px;
}

.direct-download-analytics-stat-meta strong {
  font-size: 1.4rem;
  line-height: 1;
}

.direct-download-analytics-card.is-loading .direct-download-analytics-summary {
  opacity: 0.68;
  transition: opacity 160ms ease;
}

.direct-download-analytics-user-row {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  cursor: pointer;
  text-align: left;
}

.direct-download-analytics-item-row,
.direct-download-analytics-tag-row {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  cursor: pointer;
  text-align: left;
}

.direct-download-analytics-user-label {
  padding: 0;
  color: #fff7dd;
  font-weight: 700;
}

.direct-download-analytics-item-label {
  display: block;
  color: #fff7dd;
  font-weight: 700;
}

.direct-download-analytics-user-row:hover .direct-download-analytics-user-label,
.direct-download-analytics-user-row:focus-visible .direct-download-analytics-user-label,
.direct-download-analytics-item-row:hover .direct-download-analytics-item-label,
.direct-download-analytics-item-row:focus-visible .direct-download-analytics-item-label,
.direct-download-analytics-tag-row:hover strong,
.direct-download-analytics-tag-row:focus-visible strong {
  color: #f2b705;
}

.direct-download-analytics-user-row:focus-visible,
.direct-download-analytics-item-row:focus-visible,
.direct-download-analytics-tag-row:focus-visible {
  outline: 2px solid rgba(242, 183, 5, 0.45);
  outline-offset: 2px;
}

.direct-download-analytics-stat-row.is-active {
  border-color: rgba(242, 183, 5, 0.45);
  background: rgba(242, 183, 5, 0.08);
  box-shadow: 0 0 0 1px rgba(242, 183, 5, 0.12);
}

.direct-feed-tag.is-hidden {
  display: none;
}

.direct-download-analytics-row-meta span {
  color: rgba(255, 244, 209, 0.62);
  font-size: 0.8rem;
  line-height: 1.35;
}

html[data-direct-theme='light'] .direct-download-analytics-block {
  border-color: rgba(203, 213, 225, 0.62);
  background: rgba(248, 250, 252, 0.96);
}

html[data-direct-theme='light'] .direct-download-analytics-filters {
  border-color: rgba(203, 213, 225, 0.62);
  background: rgba(248, 250, 252, 0.96);
}

html[data-direct-theme='light'] .direct-download-analytics-filters label span {
  color: rgba(15, 23, 42, 0.68);
}

html[data-direct-theme='light'] .direct-download-analytics-filters input,
html[data-direct-theme='light'] .direct-download-analytics-filters select {
  border-color: rgba(203, 213, 225, 0.82);
  background: #ffffff;
  color: #111827;
}

html[data-direct-theme='light'] .direct-download-analytics-block h3,
html[data-direct-theme='light'] .direct-download-analytics-row strong {
  color: #111827;
}

html[data-direct-theme='light'] .direct-download-analytics-row {
  border-top-color: rgba(203, 213, 225, 0.8);
}

html[data-direct-theme='light'] .direct-download-analytics-action-export {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

html[data-direct-theme='light'] .direct-download-analytics-action-export:hover,
html[data-direct-theme='light'] .direct-download-analytics-action-export:focus-visible {
  border-color: rgba(22, 163, 74, 0.42);
  background: rgba(34, 197, 94, 0.2);
  color: #14532d;
}

html[data-direct-theme='light'] .direct-download-analytics-stat-row {
  border-color: rgba(203, 213, 225, 0.8);
  background: rgba(255, 255, 255, 0.88);
}

html[data-direct-theme='light'] .direct-download-analytics-rank {
  border-color: rgba(217, 119, 6, 0.22);
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

html[data-direct-theme='light'] .direct-download-analytics-bar {
  background: rgba(203, 213, 225, 0.72);
}

html[data-direct-theme='light'] .direct-download-analytics-user-label {
  color: #111827;
}

html[data-direct-theme='light'] .direct-download-analytics-item-label,
html[data-direct-theme='light'] .direct-download-analytics-tag-row strong {
  color: #111827;
}

html[data-direct-theme='light'] .direct-download-analytics-user-row:hover .direct-download-analytics-user-label,
html[data-direct-theme='light'] .direct-download-analytics-user-row:focus-visible .direct-download-analytics-user-label,
html[data-direct-theme='light'] .direct-download-analytics-item-row:hover .direct-download-analytics-item-label,
html[data-direct-theme='light'] .direct-download-analytics-item-row:focus-visible .direct-download-analytics-item-label,
html[data-direct-theme='light'] .direct-download-analytics-tag-row:hover strong,
html[data-direct-theme='light'] .direct-download-analytics-tag-row:focus-visible strong {
  color: #92400e;
}

html[data-direct-theme='light'] .direct-download-analytics-stat-row.is-active {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(254, 243, 199, 0.56);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12);
}

html[data-direct-theme='light'] .direct-download-analytics-row p,
html[data-direct-theme='light'] .direct-download-analytics-row-meta span {
  color: rgba(15, 23, 42, 0.72);
}

html[data-direct-theme='light'] .direct-download-analytics-breakdown-row {
  border-color: rgba(203, 213, 225, 0.8);
  background: rgba(255, 255, 255, 0.88);
}

html[data-direct-theme='light'] .direct-download-analytics-summary-card:hover,
html[data-direct-theme='light'] .direct-download-analytics-summary-card:focus-visible {
  border-color: rgba(217, 119, 6, 0.32);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.16);
}

html[data-direct-theme='light'] .direct-download-analytics-summary-card.is-active {
  border-color: rgba(217, 119, 6, 0.34);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.18);
}

html[data-direct-theme='light'] .direct-download-analytics-audience-toggle {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-direct-theme='light'] .direct-download-analytics-audience-option {
  color: rgba(30, 41, 59, 0.72);
}

html[data-direct-theme='light'] .direct-download-analytics-audience-option:hover,
html[data-direct-theme='light'] .direct-download-analytics-audience-option:focus-visible {
  color: #111827;
}

html[data-direct-theme='light'] .direct-download-analytics-audience-option.is-active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(242, 183, 5, 0.14));
  color: #111827;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.12);
}

html[data-direct-theme='light'] .direct-download-analytics-mini-tag {
  border-color: rgba(217, 119, 6, 0.18);
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

html[data-direct-theme='light'] .direct-download-breakdown-block {
  border-color: rgba(203, 213, 225, 0.62);
  background: rgba(248, 250, 252, 0.96);
}

html[data-direct-theme='light'] .direct-download-breakdown-range-form label span {
  color: rgba(15, 23, 42, 0.68);
}

html[data-direct-theme='light'] .direct-download-breakdown-range-form input {
  border-color: rgba(203, 213, 225, 0.82);
  background: #ffffff;
  color: #111827;
}

html[data-direct-theme='light'] .direct-download-breakdown-block h3,
html[data-direct-theme='light'] .direct-download-breakdown-row strong {
  color: #111827;
}

html[data-direct-theme='light'] .direct-download-breakdown-row {
  border-top-color: rgba(203, 213, 225, 0.8);
}

html[data-direct-theme='light'] .direct-download-breakdown-user-row p {
  color: rgba(15, 23, 42, 0.72);
}

html[data-direct-theme='light'] .direct-download-analytics-breakdown-row strong {
  color: #111827;
}

html[data-direct-theme='light'] .direct-download-analytics-mini-tag {
  border-color: rgba(217, 119, 6, 0.24);
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

.direct-feed-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.direct-feed-actions-inline {
  margin-top: 10px;
  margin-bottom: 14px;
}

.direct-feed-link-action {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  font: inherit;
  line-height: 1;
  vertical-align: middle;
}

html[data-direct-theme='light'] .direct-feed-link-action {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
}

html[data-direct-theme='light'] .direct-feed-link-action:hover,
html[data-direct-theme='light'] .direct-feed-link-action:focus-visible {
  border-color: rgba(217, 119, 6, 0.34);
  background: rgba(255, 247, 237, 0.98);
  color: #9a3412;
}

button.direct-feed-link-action {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  padding: 0;
}

html[data-direct-theme='light'] button.direct-feed-link-action {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
}

.direct-feed-link-action svg {
  display: block;
}

.direct-feed-actions + .direct-feed-feedback {
  margin-top: 10px;
}

@media (max-width: 720px) {
  .direct-feed-admin-card,
  .direct-feed-group {
    padding: 16px;
  }

  .direct-download-analytics-audience-toggle {
    justify-self: start;
  }

  .direct-feed-admin-card-head,
  .direct-feed-group-header,
  .direct-feed-card-head {
    flex-direction: column;
  }

  .direct-download-analytics-row {
    flex-direction: column;
  }

  .direct-download-analytics-row-meta {
    min-width: 0;
    text-align: left;
  }

  .direct-feed-form-grid {
    grid-template-columns: 1fr;
  }

  .direct-network-logo-card-head {
    align-items: flex-start;
    flex-direction: column;
  }


  .direct-network-logo-badge,
  .direct-network-logo-badge.is-featured {
    top: 18px;
    right: 18px;
    max-width: 88px;
  }


  .direct-feed-field-wide {
    grid-column: auto;
  }
}


@media (max-width: 640px) {
  .direct-feed-results.is-grid {
    grid-template-columns: 1fr;
  }

  .direct-view-toggle {
    width: 100%;
    justify-content: center;
  }

  .direct-view-toggle-button {
    flex: 0 0 auto;
    justify-content: center;
    min-width: 36px;
  }
}


.direct-feed-group-stats {
  align-items: center;
}

.direct-feed-group-visibility-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.direct-feed-group-visibility-option {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 244, 209, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.direct-feed-group-visibility-option:hover,
.direct-feed-group-visibility-option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff7dd;
}

.direct-feed-group-visibility-option.is-active {
  background: linear-gradient(180deg, rgba(214, 40, 40, 0.96), rgba(185, 28, 28, 0.92));
  color: #fff;
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.22);
}

html[data-direct-theme='light'] .direct-feed-group-visibility-toggle {
  border-color: rgba(203, 213, 225, 0.84);
  background: rgba(255, 255, 255, 0.96);
}

html[data-direct-theme='light'] .direct-feed-group-visibility-option {
  color: rgba(15, 23, 42, 0.78);
}

html[data-direct-theme='light'] .direct-feed-group-visibility-option:hover,
html[data-direct-theme='light'] .direct-feed-group-visibility-option:focus-visible {
  background: rgba(248, 250, 252, 0.98);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-feed-group-visibility-option.is-active {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.94), rgba(220, 38, 38, 0.9));
  color: #fff;
  box-shadow: 0 10px 24px rgba(248, 113, 113, 0.18);
}

.direct-feed-card[hidden] {
  display: none !important;
}

.direct-site-logo-card {
  border-color: rgba(214, 40, 40, 0.28);
}

.direct-site-logo-preview-wrap {
  min-width: 88px;
}

.direct-site-logo-preview {
  max-height: 40px;
  object-fit: contain;
}

.direct-auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2200;
  padding: 24px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html[data-direct-theme='light'] .direct-auth-modal {
  background: rgba(226, 232, 240, 0.64);
}

.direct-auth-dialog {
  position: relative;
  width: min(100%, 640px);
  max-width: none;
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  background:
    radial-gradient(circle at top left, rgba(214, 40, 40, 0.22), transparent 34%),
    radial-gradient(circle at top right, rgba(242, 183, 5, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.98) 0%, rgba(12, 12, 12, 0.98) 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  color: #fff8e8;
}

html[data-direct-theme='light'] .direct-auth-dialog {
  border-color: rgba(148, 163, 184, 0.24);
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

.direct-auth-dialog-compact {
  width: min(100%, 520px);
}

.direct-profile-modal {
  z-index: 2300;
}

.direct-profile-dialog {
  width: min(1240px, calc(100vw - 48px));
  max-width: 1240px;
  max-height: min(88vh, 980px);
}

.direct-profile-shell {
  display: grid;
  gap: 24px;
  padding: 30px 32px;
}

.direct-profile-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-right: 44px;
}

.direct-profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(242, 183, 5, 0.34);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.direct-profile-header-copy {
  display: grid;
  gap: 8px;
}

.direct-profile-user-meta {
  display: grid;
  gap: 2px;
}

.direct-profile-user-meta strong {
  color: #fff8e8;
  font-size: 1rem;
}

.direct-profile-user-meta span {
  color: rgba(255, 248, 232, 0.72);
  font-size: 0.92rem;
  word-break: break-word;
}

.direct-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.direct-profile-card-avatar {
  order: -1;
}

.direct-profile-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(242, 183, 5, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  align-content: start;
}

.direct-profile-card-emphasis {
  background:
    radial-gradient(circle at top left, rgba(214, 40, 40, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.direct-profile-card-wide {
  grid-column: 1 / -1;
}

.direct-profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.direct-profile-card-head h3 {
  margin: 0;
  color: #fff8e8;
  font-size: 1rem;
}

.direct-profile-link {
  color: rgba(242, 183, 5, 0.92);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.direct-profile-link:hover {
  color: #fff8e8;
}

.direct-profile-membership-pill,
.direct-profile-readout {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(242, 183, 5, 0.12);
}

.direct-profile-membership-pill span,
.direct-profile-stat span,
.direct-profile-field > span,
.direct-profile-help {
  color: rgba(255, 248, 232, 0.72);
  font-size: 0.9rem;
}

.direct-profile-membership-pill strong,
.direct-profile-readout,
.direct-profile-stat strong {
  color: #fff8e8;
}

.direct-profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.direct-profile-stats-grid-usage {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.direct-profile-stat {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.direct-profile-stack {
  display: grid;
  gap: 12px;
}

.direct-profile-inline-form {
  margin: 0;
}

.direct-profile-field {
  display: grid;
  gap: 8px;
}

.direct-profile-field-wide {
  grid-column: 1 / -1;
}

.direct-profile-field input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
  color: #fff8e8;
  min-width: 0;
}

.direct-profile-field input::placeholder {
  color: rgba(255, 248, 232, 0.42);
}

.direct-profile-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.direct-profile-actions-row-end {
  justify-content: flex-end;
}

.direct-profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.direct-profile-button:hover {
  transform: translateY(-1px);
}

.direct-profile-button-primary {
  background: #b91c1c;
  color: #fff;
}

.direct-profile-button-primary:hover,
.direct-profile-button-primary:focus-visible {
  background: #991b1b;
  color: #fff;
}

.direct-profile-button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(242, 183, 5, 0.18);
  color: #fff8e8;
}

.direct-profile-button-secondary:hover,
.direct-profile-button-secondary:focus-visible,
.direct-profile-button-ghost:hover,
.direct-profile-button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff8e8;
}

.direct-profile-button-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 248, 232, 0.82);
}

.direct-profile-empty-state {
  display: grid;
  gap: 14px;
}

html[data-direct-theme='light'] .direct-profile-avatar {
  border-color: rgba(185, 28, 28, 0.26);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

html[data-direct-theme='light'] .direct-profile-user-meta strong,
html[data-direct-theme='light'] .direct-profile-card-head h3,
html[data-direct-theme='light'] .direct-profile-membership-pill strong,
html[data-direct-theme='light'] .direct-profile-readout,
html[data-direct-theme='light'] .direct-profile-stat strong,
html[data-direct-theme='light'] .direct-profile-field input {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-profile-user-meta span,
html[data-direct-theme='light'] .direct-profile-membership-pill span,
html[data-direct-theme='light'] .direct-profile-stat span,
html[data-direct-theme='light'] .direct-profile-field > span,
html[data-direct-theme='light'] .direct-profile-help {
  color: rgba(51, 65, 85, 0.88);
}

html[data-direct-theme='light'] .direct-profile-card {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

html[data-direct-theme='light'] .direct-profile-card-emphasis {
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

html[data-direct-theme='light'] .direct-profile-link {
  color: #b91c1c;
}

html[data-direct-theme='light'] .direct-profile-link:hover {
  color: #7f1d1d;
}

html[data-direct-theme='light'] .direct-profile-membership-pill,
html[data-direct-theme='light'] .direct-profile-readout {
  background: rgba(248, 250, 252, 0.96);
  border-color: rgba(148, 163, 184, 0.24);
}

html[data-direct-theme='light'] .direct-profile-stat {
  background: rgba(248, 250, 252, 0.92);
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-direct-theme='light'] .direct-profile-field input {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.98);
}

html[data-direct-theme='light'] .direct-profile-field input::placeholder {
  color: rgba(100, 116, 139, 0.76);
}

html[data-direct-theme='light'] .direct-profile-button-secondary {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(148, 163, 184, 0.28);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-profile-button-secondary:hover,
html[data-direct-theme='light'] .direct-profile-button-secondary:focus-visible,
html[data-direct-theme='light'] .direct-profile-button-ghost:hover,
html[data-direct-theme='light'] .direct-profile-button-ghost:focus-visible {
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-profile-button-ghost {
  border-color: rgba(148, 163, 184, 0.28);
  color: #334155;
}

@media (max-width: 1100px) {
  .direct-profile-dialog {
    width: min(1080px, calc(100vw - 36px));
  }

  .direct-profile-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}

@media (max-width: 900px) {
  .direct-profile-grid,
  .direct-profile-stats-grid-usage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .direct-profile-dialog {
    width: min(100%, 100vw - 18px);
  }

  .direct-profile-shell {
    padding: 20px;
  }

  .direct-profile-header {
    grid-template-columns: 1fr;
    padding-right: 32px;
  }

  .direct-profile-avatar {
    width: 92px;
    height: 92px;
  }

  .direct-profile-stats-grid {
    grid-template-columns: 1fr;
  }

  .direct-profile-actions-row,
  .direct-profile-actions-row-end {
    justify-content: stretch;
  }

  .direct-profile-button {
    width: 100%;
  }
}

.direct-auth-shell {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.direct-auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff8e8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

html[data-direct-theme='light'] .direct-auth-close {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
}

.direct-auth-branding {
  display: grid;
  gap: 10px;
  padding-right: 44px;
}

.direct-auth-logo {
  max-width: 180px;
  max-height: 52px;
  width: auto;
  height: auto;
}

.direct-auth-kicker {
  color: rgba(242, 183, 5, 0.88);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

html[data-direct-theme='light'] .direct-auth-kicker {
  color: rgba(185, 28, 28, 0.82);
}

.direct-auth-title {
  margin: 0;
  color: #fff8e8;
  font-size: 2rem;
  line-height: 1.05;
}

html[data-direct-theme='light'] .direct-auth-title {
  color: #0f172a;
}

.direct-auth-subtitle {
  margin: 0;
  color: rgba(255, 248, 232, 0.72);
  font-size: 0.98rem;
  line-height: 1.55;
}

html[data-direct-theme='light'] .direct-auth-subtitle,
html[data-direct-theme='light'] .direct-auth-field > span,
html[data-direct-theme='light'] .direct-auth-links a {
  color: rgba(51, 65, 85, 0.88);
}

.direct-auth-flashes {
  display: grid;
  gap: 10px;
}

.direct-auth-flash {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.direct-auth-flash.error,
.direct-auth-flash.danger {
  background: rgba(220, 38, 38, 0.16);
  color: #fecaca;
  border: 1px solid rgba(220, 38, 38, 0.24);
}

.direct-auth-flash.success {
  background: rgba(22, 163, 74, 0.14);
  color: #dcfce7;
  border: 1px solid rgba(22, 163, 74, 0.22);
}

.direct-auth-body {
  margin: 0;
}

.direct-auth-form {
  display: grid;
  gap: 10px;
}

#directResetStatus {
  color: #fca5a5;
  font-weight: 700;
}

html[data-direct-theme='light'] #directResetStatus {
  color: #b91c1c;
}

.direct-auth-field {
  display: grid;
  gap: 5px;
}

.direct-auth-field > span {
  color: rgba(255, 248, 232, 0.84);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.direct-auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(242, 183, 5, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff8e8;
  font-size: 0.98rem;
}

html[data-direct-theme='light'] .direct-auth-field input {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
}

.direct-auth-field input::placeholder {
  color: rgba(255, 248, 232, 0.36);
}

html[data-direct-theme='light'] .direct-auth-field input::placeholder {
  color: rgba(100, 116, 139, 0.76);
}

.direct-auth-field input:focus {
  outline: none;
  border-color: rgba(242, 183, 5, 0.48);
  box-shadow: 0 0 0 4px rgba(242, 183, 5, 0.12);
}

.direct-auth-field-password {
  position: relative;
}

.direct-auth-field-password input {
  padding-right: 48px;
}

.direct-auth-password-toggle {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: rgba(248, 250, 252, 0.96);
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.direct-auth-password-toggle:hover,
.direct-auth-password-toggle:focus-visible {
  outline: none;
  background: rgba(30, 41, 59, 0.96);
  color: #fff;
  border-color: rgba(248, 250, 252, 0.28);
}

html[data-direct-theme='light'] .direct-auth-password-toggle {
  background: rgba(255, 255, 255, 0.96);
  color: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.4);
}

.direct-auth-password-toggle svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.direct-auth-submit,
.direct-auth-oauth {
  min-height: 50px;
  border-radius: 14px;
  font-size: 0.96rem;
  font-weight: 800;
}

.direct-auth-submit {
  border: 1px solid rgba(214, 40, 40, 0.52);
  background: linear-gradient(135deg, #d62828 0%, #b91c1c 100%);
  color: #fff;
  cursor: pointer;
}

.direct-reset-shell {
  width: min(100%, 720px);
  margin: 2.5rem auto 4rem;
  padding: 0 1rem;
}

.direct-reset-card {
  background: rgba(12, 17, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.36);
  padding: clamp(1.5rem, 2vw, 2.25rem);
}

.direct-reset-card h1 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.9rem, 3vw, 2.35rem);
}

.direct-reset-copy {
  margin: 0.85rem 0 1.5rem;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.7;
}

.direct-reset-flashes {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.direct-reset-form {
  display: grid;
  gap: 0.95rem;
}

html[data-direct-theme='light'] .direct-reset-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.10);
}

html[data-direct-theme='light'] .direct-reset-card h1 {
  color: #111827;
}

html[data-direct-theme='light'] .direct-reset-copy {
  color: #4b5563;
}

.direct-auth-oauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(242, 183, 5, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: #fff8e8;
  text-decoration: none;
}

html[data-direct-theme='light'] .direct-auth-oauth {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.84);
  color: #0f172a;
}

.direct-auth-oauth-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 800;
}

.direct-auth-divider {
  position: relative;
  text-align: center;
  color: rgba(255, 248, 232, 0.44);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 2px 0;
}

.direct-auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(242, 183, 5, 0.12);
}

.direct-auth-divider span {
  position: relative;
  padding: 0 12px;
  background: rgba(10, 10, 10, 0.98);
}

.direct-auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.direct-auth-links-centered {
  justify-content: center;
}

.direct-auth-links a {
  color: rgba(242, 183, 5, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.direct-auth-recaptcha {
  overflow-x: auto;
}

@media (max-width: 720px) {
  .direct-auth-modal {
    padding: 14px;
  }

  .direct-auth-dialog,
  .direct-auth-dialog-compact {
    width: 100%;
    border-radius: 20px;
  }

  .direct-auth-shell {
    padding: 22px 18px 18px;
  }

  .direct-auth-title {
    font-size: 1.6rem;
  }

  .direct-auth-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

.direct-detail-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.direct-detail-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1360px, 100%);
  height: min(92vh, 960px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(242, 183, 5, 0.18);
  background:
    radial-gradient(circle at top left, rgba(214, 40, 40, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(242, 183, 5, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.99) 0%, rgba(12, 12, 12, 0.99) 100%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
}

.direct-detail-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(242, 183, 5, 0.14);
}

.direct-detail-modal-heading {
  min-width: 0;
}

.direct-detail-modal-title {
  margin: 4px 0 0;
  color: #fff8e8;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.direct-detail-modal-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.direct-detail-modal-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff8e8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.direct-detail-modal-nav {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff8e8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.direct-detail-modal-nav[disabled] {
  opacity: 0.4;
  cursor: default;
}

.direct-detail-modal-body {
  min-height: 0;
  background: #050505;
}

.direct-detail-modal-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050505;
}

body.direct-detail-modal-open {
  overflow: hidden;
}

.direct-feed-workspace {
  min-width: 0;
}

.direct-feed-primary {
  min-width: 0;
}

.nasa-card.is-detail-active,
.nasa-featured-card.is-detail-active {
  border-color: rgba(242, 183, 5, 0.5);
  box-shadow:
    0 0 0 1px rgba(242, 183, 5, 0.22),
    0 20px 44px rgba(0, 0, 0, 0.28);
}

html[data-direct-theme='light'] .nasa-card.is-detail-active,
html[data-direct-theme='light'] .nasa-featured-card.is-detail-active {
  border-color: rgba(245, 158, 11, 0.56);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.2),
    0 20px 40px rgba(15, 23, 42, 0.14);
}

@media (min-width: 1181px) {
  body.direct-detail-shelf-open {
    --direct-detail-shelf-width: clamp(500px, 40vw, 720px);
    overflow: hidden;
  }

  body.direct-detail-modal-open:not(.direct-detail-shelf-open) {
    overflow: hidden;
  }

  body.direct-detail-shelf-open .direct-feed-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(460px, var(--direct-detail-shelf-width));
    gap: 22px;
    align-items: start;
    padding-top: var(--direct-detail-workspace-inset, 10px);
    height: calc(var(--direct-detail-workspace-height, calc(100vh - 180px)) - var(--direct-detail-workspace-inset, 10px));
    min-height: 560px;
    overflow: hidden;
  }

  body.direct-detail-shelf-open .direct-feed-primary {
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    scrollbar-gutter: stable;
  }

  body.direct-detail-shelf-open .nasa-stream {
    min-height: 0;
  }

  body.direct-detail-shelf-open .nasa-pagination {
    margin-top: 16px;
  }

  body.direct-detail-shelf-open .direct-detail-modal-backdrop[data-presentation='shelf'] {
    position: sticky;
    top: 0;
    inset: auto;
    z-index: 30;
    display: block;
    align-self: start;
    min-width: 0;
    height: 100%;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: auto;
  }

  body.direct-detail-shelf-open .direct-detail-modal-backdrop[data-presentation='shelf'] .direct-detail-modal {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 24px;
    pointer-events: auto;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  }

  body.direct-detail-shelf-open .direct-detail-modal-backdrop[data-presentation='shelf'] .direct-detail-modal-header {
    padding: 16px 18px;
  }
}

body.direct-embedded .direct-site-hero,
body.direct-embedded .nasa-back-link {
  display: none;
}

body.direct-embedded .nasa-shell.africa-shell,
body.direct-embedded .nasa-page.africa-page {
  padding-top: 0 !important;
}

body.direct-embedded .nasa-detail-page {
  margin-top: 0;
  border-radius: 0;
  box-shadow: none;
}

body.direct-embedded .nasa-detail-header,
body.direct-embedded .nasa-detail-card {
  padding: 18px;
}

body.direct-embedded .nasa-detail-image {
  max-height: min(26vh, 220px);
}

body.direct-embedded .nasa-detail-video {
  max-height: min(30vh, 260px);
}

@media (max-width: 900px) {
  .direct-detail-modal-backdrop {
    padding: 12px;
  }

  .direct-detail-modal {
    width: 100%;
    height: 94vh;
    border-radius: 18px;
  }

  .direct-detail-modal-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .direct-detail-modal-actions {
    width: 100%;
    justify-content: space-between;
  }
}

.direct-detail-modal-backdrop[hidden] {
  display: none !important;
}

.direct-photo-gallery-backdrop[hidden] {
  display: none !important;
}

.direct-photo-gallery-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html[data-direct-theme='light'] .direct-photo-gallery-backdrop {
  background: rgba(226, 232, 240, 0.72);
}

.direct-photo-gallery-modal {
  width: min(1280px, 100%);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(242, 183, 5, 0.18);
  background:
    radial-gradient(circle at top left, rgba(214, 40, 40, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(242, 183, 5, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.99) 0%, rgba(12, 12, 12, 0.99) 100%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
}

html[data-direct-theme='light'] .direct-photo-gallery-modal {
  border-color: rgba(203, 213, 225, 0.5);
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(248, 250, 252, 0.985) 100%);
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.18);
}

.direct-photo-gallery-header,
.direct-photo-gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.direct-photo-gallery-header {
  border-bottom: 1px solid rgba(242, 183, 5, 0.14);
}

html[data-direct-theme='light'] .direct-photo-gallery-header {
  border-bottom-color: rgba(203, 213, 225, 0.5);
}

.direct-photo-gallery-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  border-top: 1px solid rgba(242, 183, 5, 0.14);
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

html[data-direct-theme='light'] .direct-photo-gallery-footer {
  border-top-color: rgba(203, 213, 225, 0.5);
}

.direct-photo-gallery-title {
  margin: 4px 0 0;
  color: #fff8e8;
  font-size: 1.28rem;
  font-weight: 800;
}

html[data-direct-theme='light'] .direct-photo-gallery-title {
  color: #111827;
}

.direct-photo-gallery-subtitle {
  margin: 6px 0 0;
  color: rgba(255, 248, 232, 0.72);
  font-size: 0.92rem;
}

html[data-direct-theme='light'] .direct-photo-gallery-subtitle {
  color: rgba(51, 65, 85, 0.82);
}

.direct-photo-gallery-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.direct-photo-gallery-close,
.direct-photo-gallery-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 183, 5, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #fff8e8;
  cursor: pointer;
}

html[data-direct-theme='light'] .direct-photo-gallery-close,
html[data-direct-theme='light'] .direct-photo-gallery-nav {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

html[data-direct-theme='light'] .direct-photo-gallery-close:hover,
html[data-direct-theme='light'] .direct-photo-gallery-close:focus-visible,
html[data-direct-theme='light'] .direct-photo-gallery-nav:hover,
html[data-direct-theme='light'] .direct-photo-gallery-nav:focus-visible {
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(254, 242, 242, 0.96);
}

.direct-photo-gallery-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
}

.direct-photo-gallery-stage {
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.direct-photo-gallery-nav {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
}

.direct-photo-gallery-figure {
  margin: 0;
  min-height: 0;
  min-width: 0;
  display: grid;
  gap: 14px;
}

.direct-photo-gallery-image {
  display: block;
  width: 100%;
  max-height: 66vh;
  min-height: 320px;
  object-fit: contain;
  border-radius: 18px;
  background: #050505;
}

html[data-direct-theme='light'] .direct-photo-gallery-image {
  background: rgba(241, 245, 249, 0.96);
}

.direct-photo-gallery-caption {
  display: none !important;
  gap: 6px;
  color: #fff8e8;
}

html[data-direct-theme='light'] .direct-photo-gallery-caption {
  color: #111827;
}

.direct-photo-gallery-caption-title {
  font-size: 1rem;
  line-height: 1.35;
}

.direct-photo-gallery-caption-meta {
  color: rgba(255, 248, 232, 0.7);
  font-size: 0.9rem;
}

html[data-direct-theme='light'] .direct-photo-gallery-caption-meta {
  color: rgba(51, 65, 85, 0.8);
}

body.direct-photo-gallery-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .direct-photo-gallery-backdrop {
    padding: 12px;
  }

  .direct-photo-gallery-modal {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px;
  }

  .direct-photo-gallery-header,
  .direct-photo-gallery-footer {
    padding: 14px 16px;
  }

  .direct-photo-gallery-stage {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }

  .direct-photo-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
  }

  .direct-photo-gallery-stage {
    position: relative;
  }

  .direct-photo-gallery-nav-prev {
    left: 22px;
  }

  .direct-photo-gallery-nav-next {
    right: 22px;
  }

  .direct-photo-gallery-image {
    min-height: 240px;
    max-height: 58vh;
  }
}

.direct-photo-gallery-thumbnails {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.direct-photo-gallery-thumbnail {
  flex: 0 0 auto;
  width: 72px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.74;
  transition: opacity 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

html[data-direct-theme='light'] .direct-photo-gallery-thumbnail {
  background: rgba(226, 232, 240, 0.9);
  opacity: 0.84;
}

.direct-photo-gallery-thumbnail:hover,
.direct-photo-gallery-thumbnail:focus-visible,
.direct-photo-gallery-thumbnail.is-active {
  opacity: 1;
  border-color: rgba(242, 183, 5, 0.82);
  transform: translateY(-1px);
}

html[data-direct-theme='light'] .direct-photo-gallery-thumbnail:hover,
html[data-direct-theme='light'] .direct-photo-gallery-thumbnail:focus-visible,
html[data-direct-theme='light'] .direct-photo-gallery-thumbnail.is-active {
  border-color: rgba(239, 68, 68, 0.52);
}

.direct-photo-gallery-thumbnail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .direct-photo-gallery-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .direct-photo-gallery-thumbnails {
    width: 100%;
    max-width: 100%;
  }
}

.direct-card-watch-button,
.direct-card-original-button {
  min-height: 28px;
  padding-top: 0;
  padding-bottom: 0;
  white-space: nowrap;
}

.direct-card-dub-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.direct-card-convert-button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
}

.direct-card-convert-button.is-processing {
  opacity: 0.84;
}

.direct-card-convert-button.is-success {
  background: rgba(54, 179, 126, 0.2);
  border-color: rgba(54, 179, 126, 0.4);
  color: #d2f6e5;
}

.direct-card-convert-button.is-error {
  background: rgba(193, 18, 31, 0.2);
  border-color: rgba(193, 18, 31, 0.4);
  color: #ffd5d9;
}

html[data-direct-theme='light'] .direct-card-convert-button.is-success {
  background: rgba(54, 179, 126, 0.14);
  border-color: rgba(54, 179, 126, 0.28);
  color: #166534;
}

html[data-direct-theme='light'] .direct-card-convert-button.is-error {
  background: rgba(193, 18, 31, 0.12);
  border-color: rgba(193, 18, 31, 0.26);
  color: #991b1b;
}

.direct-card-dub-variant-select {
  min-width: 118px;
  max-width: 168px;
  min-height: 32px;
  padding: 0 28px 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.66rem;
}

html[data-direct-theme='light'] .direct-card-dub-variant-select {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.84);
  color: #0f172a;
}

.direct-card-dub-variant-select:hover,
.direct-card-dub-variant-select:focus {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

html[data-direct-theme='light'] .direct-card-dub-variant-select:hover,
html[data-direct-theme='light'] .direct-card-dub-variant-select:focus {
  background: rgba(255, 255, 255, 0.96);
}

.direct-card-dub-variant-select option {
  background: #fff;
  color: #111;
  font-size: 0.66rem;
}

.direct-card-watch-button {
  background: #c1121f;
  border-color: #c1121f;
  color: #fff;
}

.direct-card-watch-button:hover,
.direct-card-watch-button:focus-visible {
  background: #a30f1a;
  border-color: #a30f1a;
  color: #fff;
}

html[data-direct-theme='light'] .direct-card-watch-button {
  background: #c1121f;
  border-color: #c1121f;
  color: #fff;
}

html[data-direct-theme='light'] .direct-card-watch-button:hover,
html[data-direct-theme='light'] .direct-card-watch-button:focus-visible {
  background: #a30f1a;
  border-color: #a30f1a;
  color: #fff;
}

.direct-feed-results.is-grid .direct-card-watch-button,
.direct-feed-results.is-grid .direct-card-original-button,
.direct-feed-results.is-grid .direct-card-convert-button {
  width: auto;
  flex: 0 1 auto;
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.72rem;
  line-height: 1;
  justify-content: center;
}

.direct-feed-results.is-grid .direct-card-dub-actions {
  display: flex;
  width: 100%;
  flex: 1 0 100%;
  flex-basis: 100%;
  order: 99;
  margin-top: 6px;
  align-items: center;
  justify-content: flex-start;
}

.direct-feed-results.is-grid .direct-card-dub-variant-select {
  flex: 0 1 150px;
  max-width: 100%;
}

.direct-card-dub-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.direct-card-dub-status[hidden] {
  display: none !important;
}

.direct-card-dub-status.is-active {
  background: rgba(255, 184, 77, 0.16);
  border-color: rgba(255, 184, 77, 0.32);
  color: #ffe0a8;
}

.direct-card-dub-status.is-success {
  background: rgba(54, 179, 126, 0.16);
  border-color: rgba(54, 179, 126, 0.34);
  color: #bdf3d7;
}

.direct-card-dub-status.is-error {
  background: rgba(255, 107, 107, 0.16);
  border-color: rgba(255, 107, 107, 0.34);
  color: #ffd1d1;
}

html[data-direct-theme='light'] .direct-card-dub-status {
  background: rgba(226, 232, 240, 0.9);
  border-color: rgba(148, 163, 184, 0.36);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-card-dub-status.is-active {
  background: rgba(254, 240, 138, 0.92);
  border-color: rgba(245, 158, 11, 0.4);
  color: #78350f;
}

html[data-direct-theme='light'] .direct-card-dub-status.is-success {
  background: rgba(187, 247, 208, 0.92);
  border-color: rgba(34, 197, 94, 0.32);
  color: #14532d;
}

html[data-direct-theme='light'] .direct-card-dub-status.is-error {
  background: rgba(254, 226, 226, 0.94);
  border-color: rgba(239, 68, 68, 0.28);
  color: #7f1d1d;
}

.direct-card-watch-button.is-loading {
  opacity: 0.88;
}

.direct-card-original-button {
  min-width: 0;
}

.direct-feed-results.is-grid .direct-card-dub-status {
  width: 100%;
  justify-content: center;
}


.nasa-detail-video-wrap .plyr {
  border-radius: 18px;
  overflow: hidden;
}

.nasa-detail-video-wrap .plyr--video {
  background: #000;
}

.nasa-detail-video-wrap .plyr__control--overlaid {
  background: rgba(220, 38, 38, 0.92);
}

.nasa-detail-video-wrap .plyr__control--overlaid:hover,
.nasa-detail-video-wrap .plyr__control--overlaid:focus-visible {
  background: rgba(185, 28, 28, 0.96);
}


.nasa-card-media .plyr,
.nasa-featured-media .plyr,
.nasa-detail-video-wrap .plyr {
  width: 100%;
  height: 100%;
}

.nasa-card-media .plyr__video-wrapper,
.nasa-featured-media .plyr__video-wrapper,
.nasa-detail-video-wrap .plyr__video-wrapper {
  height: 100%;
}

.nasa-card-media .plyr,
.nasa-featured-media .plyr {
  border-radius: inherit;
  overflow: hidden;
}

.nasa-card-media .plyr__control--overlaid,
.nasa-featured-media .plyr__control--overlaid {
  background: rgba(220, 38, 38, 0.92);
}

.nasa-card-media .plyr__control--overlaid:hover,
.nasa-card-media .plyr__control--overlaid:focus-visible,
.nasa-featured-media .plyr__control--overlaid:hover,
.nasa-featured-media .plyr__control--overlaid:focus-visible {
  background: rgba(185, 28, 28, 0.96);
}


.nasa-card-media .plyr__poster,
.nasa-featured-media .plyr__poster,
.nasa-detail-video-wrap .plyr__poster {
  background-size: cover;
  background-position: center;
}

.nasa-card-media .plyr--stopped .plyr__poster,
.nasa-featured-media .plyr--stopped .plyr__poster,
.nasa-detail-video-wrap .plyr--stopped .plyr__poster {
  opacity: 1;
}

.direct-preferences-dialog {
  max-width: 720px;
}

.direct-preferences-shell {
  display: grid;
  gap: 18px;
}

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

.direct-preferences-grid-compact {
  max-width: 520px;
}

.direct-preferences-select {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  padding: 0 14px;
  font: inherit;
}

.direct-preferences-help {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}

.direct-preferences-actions {
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

html[data-direct-theme='light'] .direct-preferences-select {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.45);
}

html[data-direct-theme='light'] .direct-preferences-help {
  color: #64748b;
}

@media (max-width: 640px) {
  .direct-preferences-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .direct-preferences-actions {
    justify-content: stretch;
  }
}

.direct-preferences-group {
  display: grid;
  gap: 10px;
}

.direct-preferences-choice-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  padding-right: 4px;
  overflow: auto;
}

.direct-preferences-choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.54);
  color: #f8fafc;
  cursor: pointer;
}

.direct-preferences-choice input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #dc2626;
}

.direct-preferences-choice span {
  font-size: 0.95rem;
  line-height: 1.35;
}

html[data-direct-theme='light'] .direct-preferences-choice {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.32);
}

.direct-save-search-form {
  display: inline-flex;
  align-items: center;
}

.direct-save-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.34);
  background: rgba(127, 29, 29, 0.16);
  color: #f87171;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.direct-save-search-toggle:hover,
.direct-save-search-toggle:focus-visible {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(248, 113, 113, 0.6);
  color: #fca5a5;
  transform: translateY(-1px);
}

.direct-save-search-toggle-icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
}

.direct-save-search-toggle-icon svg {
  width: 100%;
  height: 100%;
}

.direct-save-search-toggle.is-saved {
  background: rgba(220, 38, 38, 0.92);
  border-color: rgba(252, 165, 165, 0.72);
  color: #fff1f2;
}

.direct-save-search-toggle.is-saved .direct-save-search-toggle-icon svg path {
  fill: currentColor;
  stroke: currentColor;
}


html[data-direct-theme='light'] .direct-save-search-toggle {
  background: rgba(254, 242, 242, 0.92);
  border-color: rgba(248, 113, 113, 0.45);
  color: #dc2626;
}

html[data-direct-theme='light'] .direct-save-search-toggle:hover,
html[data-direct-theme='light'] .direct-save-search-toggle:focus-visible {
  background: rgba(254, 226, 226, 0.98);
  color: #b91c1c;
}

html[data-direct-theme='light'] .direct-save-search-toggle.is-saved {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff1f2;
}


.direct-saved-searches-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(244, 114, 182, 0.34);
  background: rgba(131, 24, 67, 0.16);
  color: #f9a8d4;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.direct-saved-searches-toggle:hover,
.direct-saved-searches-toggle:focus-visible {
  background: rgba(157, 23, 77, 0.24);
  border-color: rgba(244, 114, 182, 0.62);
  color: #fbcfe8;
  transform: translateY(-1px);
}

.direct-saved-searches-toggle-icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
}

.direct-saved-searches-toggle-icon svg {
  width: 100%;
  height: 100%;
}

.direct-saved-searches-toggle-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f472b6;
  color: #1f1020;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.direct-saved-searches-dialog {
  max-width: 540px;
}

.direct-saved-searches-list {
  display: grid;
  gap: 10px;
}

.direct-saved-search-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(244, 114, 182, 0.18);
  background: rgba(15, 23, 42, 0.48);
  color: #f8fafc;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.direct-saved-search-entry:hover,
.direct-saved-search-entry:focus-within {
  transform: translateY(-1px);
  border-color: rgba(244, 114, 182, 0.42);
  background: rgba(30, 41, 59, 0.72);
}

.direct-saved-search-entry-link {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.direct-saved-search-entry-label {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.direct-saved-search-entry-meta {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-direct-theme='light'] .direct-saved-searches-toggle {
  background: rgba(253, 242, 248, 0.94);
  border-color: rgba(244, 114, 182, 0.4);
  color: #be185d;
}

html[data-direct-theme='light'] .direct-saved-searches-toggle:hover,
html[data-direct-theme='light'] .direct-saved-searches-toggle:focus-visible {
  background: rgba(252, 231, 243, 0.98);
  color: #9d174d;
}

html[data-direct-theme='light'] .direct-saved-search-entry {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(244, 114, 182, 0.22);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-saved-search-entry:hover,
html[data-direct-theme='light'] .direct-saved-search-entry:focus-visible {
  background: rgba(253, 242, 248, 0.95);
  border-color: rgba(244, 114, 182, 0.42);
}

html[data-direct-theme='light'] .direct-saved-search-entry-meta {
  color: #64748b;
}


body[data-direct-authenticated='false'] .direct-saved-searches-toggle,
body[data-direct-authenticated='false'] .direct-save-search-form {
  display: none !important;
}


.direct-saved-search-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.12);
  color: #fca5a5;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.direct-saved-search-delete:hover,
.direct-saved-search-delete:focus-visible {
  background: rgba(220, 38, 38, 0.22);
  border-color: rgba(248, 113, 113, 0.54);
  color: #ffe4e6;
  transform: translateY(-1px);
}

.direct-saved-search-delete:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

html[data-direct-theme='light'] .direct-saved-search-delete {
  background: rgba(254, 242, 242, 0.96);
  border-color: rgba(248, 113, 113, 0.36);
  color: #dc2626;
}

html[data-direct-theme='light'] .direct-saved-search-delete:hover,
html[data-direct-theme='light'] .direct-saved-search-delete:focus-visible {
  background: rgba(254, 226, 226, 0.98);
  border-color: rgba(239, 68, 68, 0.52);
  color: #b91c1c;
}


.direct-saved-search-entry.is-default {
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.16) inset;
}

.direct-saved-search-entry-link {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.direct-saved-search-entry-label-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.direct-saved-search-default-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.16);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #fde68a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.direct-saved-search-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.direct-saved-search-default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.3);
  background: rgba(120, 53, 15, 0.14);
  color: #fcd34d;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.direct-saved-search-default:hover,
.direct-saved-search-default:focus-visible {
  background: rgba(202, 138, 4, 0.22);
  border-color: rgba(250, 204, 21, 0.54);
  color: #fef3c7;
  transform: translateY(-1px);
}

.direct-saved-search-default[aria-pressed='true'] {
  background: rgba(250, 204, 21, 0.92);
  border-color: rgba(253, 224, 71, 0.9);
  color: #422006;
}

.direct-saved-search-default:disabled,
.direct-saved-search-delete:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

html[data-direct-theme='light'] .direct-saved-search-entry.is-default {
  border-color: rgba(234, 179, 8, 0.56);
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.12) inset;
}

html[data-direct-theme='light'] .direct-saved-search-default-badge {
  background: rgba(254, 249, 195, 0.95);
  border-color: rgba(234, 179, 8, 0.4);
  color: #854d0e;
}

html[data-direct-theme='light'] .direct-saved-search-default {
  background: rgba(255, 251, 235, 0.96);
  border-color: rgba(234, 179, 8, 0.38);
  color: #b45309;
}

html[data-direct-theme='light'] .direct-saved-search-default:hover,
html[data-direct-theme='light'] .direct-saved-search-default:focus-visible {
  background: rgba(254, 243, 199, 0.98);
  border-color: rgba(217, 119, 6, 0.46);
  color: #92400e;
}

html[data-direct-theme='light'] .direct-saved-search-default[aria-pressed='true'] {
  background: #facc15;
  border-color: #eab308;
  color: #422006;
}


.direct-email-share-dialog {
  max-width: 680px;
}

.direct-email-share-preview-wrap {
  margin-bottom: 18px;
}

.direct-email-share-preview-label {
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(241, 100, 30, 0.94);
}

.direct-email-share-preview {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.direct-email-share-image-shell {
  min-width: 0;
}

.direct-email-share-image {
  width: 100%;
  height: 100%;
  min-height: 164px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.4);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.direct-email-share-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.direct-email-share-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.direct-email-share-item-type,
.direct-email-share-preview-chip {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.direct-email-share-item-type {
  background: rgba(241, 100, 30, 0.18);
  border: 1px solid rgba(241, 100, 30, 0.28);
  color: #ffd5c2;
}

.direct-email-share-preview-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(226, 232, 240, 0.88);
}

.direct-email-share-item-title {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.32;
  font-weight: 800;
  color: #f8fafc;
}

.direct-email-share-item-summary {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.direct-email-share-cta-row {
  margin-top: 16px;
}

.direct-email-share-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f1641e;
  color: #fff7ed;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 20px rgba(241, 100, 30, 0.22);
}

.direct-email-share-form textarea {
  min-height: 110px;
  resize: vertical;
  border-radius: 18px;
}

.direct-email-share-form .direct-auth-flashes {
  margin-top: 4px;
  margin-bottom: 2px;
}

html[data-direct-theme='light'] .direct-email-share-preview {
  border-color: rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

html[data-direct-theme='light'] .direct-email-share-preview-chip {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.62);
}

html[data-direct-theme='light'] .direct-email-share-item-type {
  background: rgba(241, 100, 30, 0.12);
  border-color: rgba(241, 100, 30, 0.22);
  color: #c2410c;
}

html[data-direct-theme='light'] .direct-email-share-item-title {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-email-share-item-summary {
  color: rgba(15, 23, 42, 0.72);
}
@media (max-width: 640px) {
  .direct-email-share-preview {
    grid-template-columns: 1fr;
  }

  .direct-email-share-image {
    max-width: 220px;
  }
}

.direct-auth-legal {
  margin-top: 0.25rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
}

.direct-auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  color: rgba(226, 232, 240, 0.94);
  font-size: 0.92rem;
  line-height: 1.5;
}

.direct-auth-checkbox input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.direct-auth-legal-link {
  margin-left: 0.35rem;
  color: #f97316;
  font-weight: 700;
  text-decoration: none;
}

.direct-auth-legal-link:hover {
  text-decoration: underline;
}

.direct-auth-terms-preview {
  margin-top: 0.85rem;
}

.direct-auth-terms-preview summary {
  cursor: pointer;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 700;
}

.direct-auth-terms-preview-frame {
  margin-top: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.72);
}

.direct-auth-terms-preview-frame iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  background: #fff;
}

html[data-direct-theme='light'] .direct-auth-legal {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(248, 250, 252, 0.98);
}

html[data-direct-theme='light'] .direct-auth-checkbox {
  color: #334155;
}

html[data-direct-theme='light'] .direct-auth-terms-preview summary {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-auth-terms-preview-frame {
  background: #fff;
}


.direct-admin-workspace {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.direct-admin-sidebar {
  position: sticky;
  top: calc(var(--direct-header-offset, 0px) + 20px);
  display: grid;
  gap: 16px;
}

.direct-admin-sidebar-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(242, 183, 5, 0.16);
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.92), rgba(7, 13, 26, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.direct-admin-sidebar-card h2 {
  margin: 2px 0 10px;
  font-size: 1.2rem;
  color: #fff7dd;
}

.direct-admin-sidebar-nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.direct-admin-sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 248, 230, 0.92);
  text-decoration: none;
  font-weight: 700;
}

.direct-admin-sidebar-nav a:hover,
.direct-admin-sidebar-nav a:focus-visible {
  border-color: rgba(242, 183, 5, 0.42);
  background: rgba(242, 183, 5, 0.12);
  color: #fff7dd;
}

.direct-admin-sidebar-nav a::after {
  content: '→';
  opacity: 0.72;
}

.direct-admin-sidebar-stats {
  display: grid;
  gap: 10px;
}

.direct-admin-sidebar-stats article {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.direct-admin-sidebar-stats span {
  color: rgba(255, 244, 209, 0.62);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.direct-admin-sidebar-stats strong {
  color: #fff7dd;
  font-size: 1.3rem;
}

.direct-admin-sidebar-filters {
  display: grid;
  gap: 10px;
}

.direct-admin-sidebar-chip-row {
  gap: 8px;
}

.direct-admin-sidebar-filter-empty {
  margin: 0;
}

.direct-admin-main {
  min-width: 0;
}

.direct-admin-main-full {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.direct-cms-attention {
  display: grid;
  gap: 18px;
  margin: 0 0 22px;
}

.direct-cms-attention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.direct-cms-attention-card,
.direct-cms-attention-empty {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.5);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.direct-cms-attention-card {
  text-decoration: none;
  color: #fff7dd;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.direct-cms-attention-card:hover,
.direct-cms-attention-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.direct-cms-attention-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 248, 230, 0.72);
}

.direct-cms-attention-card strong,
.direct-cms-attention-empty strong {
  font-size: 1.9rem;
  line-height: 1;
  color: #fffdf5;
}

.direct-cms-attention-card p,
.direct-cms-attention-empty p {
  margin: 0;
  color: rgba(255, 248, 230, 0.82);
  line-height: 1.5;
}

.direct-cms-attention-card.is-stale {
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.86), rgba(41, 20, 6, 0.96));
}

.direct-cms-attention-card.is-metadata {
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.86), rgba(8, 47, 73, 0.96));
}

.direct-cms-attention-card.is-logos {
  background: linear-gradient(180deg, rgba(153, 27, 27, 0.86), rgba(41, 9, 9, 0.96));
}

.direct-cms-attention-card.is-users {
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.86), rgba(15, 23, 42, 0.96));
}

.direct-cms-attention-card.is-suspended {
  background: linear-gradient(180deg, rgba(107, 33, 168, 0.86), rgba(46, 16, 72, 0.96));
}

.direct-cms-attention-empty {
  background: rgba(15, 23, 42, 0.36);
}

.direct-cms-landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.direct-cms-landing-card {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  text-decoration: none;
  color: #fff7dd;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.direct-cms-landing-card:hover,
.direct-cms-landing-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2);
}

.direct-cms-landing-card-kicker {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 248, 230, 0.72);
}

.direct-cms-landing-card strong {
  font-size: 1.5rem;
  line-height: 1.1;
  color: #fffdf5;
}

.direct-cms-landing-card p {
  margin: 0;
  color: rgba(255, 248, 230, 0.82);
  line-height: 1.55;
}

.direct-cms-landing-card.is-analytics {
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.92), rgba(15, 23, 42, 0.98));
}

.direct-cms-landing-card.is-parsers {
  background: linear-gradient(180deg, rgba(146, 64, 14, 0.92), rgba(41, 20, 6, 0.98));
}

.direct-cms-landing-card.is-users {
  background: linear-gradient(180deg, rgba(6, 95, 70, 0.92), rgba(6, 24, 24, 0.98));
}

.direct-cms-landing-card.is-logos {
  background: linear-gradient(180deg, rgba(153, 27, 27, 0.92), rgba(41, 9, 9, 0.98));
}

.direct-cms-landing-card.is-labels {
  background: linear-gradient(180deg, rgba(91, 33, 182, 0.92), rgba(30, 10, 56, 0.98));
}

.direct-cms-subnav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.direct-cms-subnav-card {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  text-decoration: none;
  color: #fff7dd;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.direct-cms-subnav-card:hover,
.direct-cms-subnav-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.direct-cms-subnav-kicker {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(255, 248, 230, 0.72);
}

.direct-cms-subnav-card strong {
  font-size: 1.02rem;
  line-height: 1.2;
  color: #fffdf5;
}

.direct-cms-subnav-card.is-active {
  border-color: rgba(255, 244, 209, 0.64);
  box-shadow: 0 0 0 1px rgba(255, 244, 209, 0.18), 0 18px 38px rgba(0, 0, 0, 0.2);
}

.direct-cms-subnav-card.is-analytics {
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.82), rgba(15, 23, 42, 0.96));
}

.direct-cms-subnav-card.is-parsers {
  background: linear-gradient(180deg, rgba(146, 64, 14, 0.82), rgba(41, 20, 6, 0.96));
}

.direct-cms-subnav-card.is-users {
  background: linear-gradient(180deg, rgba(6, 95, 70, 0.82), rgba(6, 24, 24, 0.96));
}

.direct-cms-subnav-card.is-logos {
  background: linear-gradient(180deg, rgba(153, 27, 27, 0.82), rgba(41, 9, 9, 0.96));
}

.direct-cms-subnav-card.is-labels {
  background: linear-gradient(180deg, rgba(91, 33, 182, 0.82), rgba(30, 10, 56, 0.96));
}

.direct-analytics-page .direct-admin-workspace {
  display: block;
}

.direct-analytics-page .direct-analytics-main {
  width: 100%;
}

#direct-analytics,
#direct-logos,
#direct-ui-labels,
#direct-filters,
#direct-add-feed,
#direct-feed-groups {
  scroll-margin-top: calc(var(--direct-header-offset, 0px) + 90px);
}

html[data-direct-theme='light'] .direct-admin-sidebar-card {
  border-color: rgba(203, 213, 225, 0.9);
  background: rgba(255, 255, 255, 0.96);
}

html[data-direct-theme='light'] .direct-admin-sidebar-card h2 {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-admin-sidebar-nav a {
  border-color: rgba(203, 213, 225, 0.9);
  background: rgba(248, 250, 252, 0.98);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-admin-sidebar-stats article {
  border-color: rgba(203, 213, 225, 0.9);
  background: rgba(248, 250, 252, 0.98);
}

html[data-direct-theme='light'] .direct-admin-sidebar-stats span {
  color: rgba(15, 23, 42, 0.62);
}

html[data-direct-theme='light'] .direct-admin-sidebar-stats strong {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-cms-landing-card {
  box-shadow: 0 18px 42px rgba(148, 163, 184, 0.14);
}

html[data-direct-theme='light'] .direct-cms-attention-card,
html[data-direct-theme='light'] .direct-cms-attention-empty {
  box-shadow: 0 16px 34px rgba(148, 163, 184, 0.14);
}

html[data-direct-theme='light'] .direct-cms-attention-card:hover,
html[data-direct-theme='light'] .direct-cms-attention-card:focus-visible {
  box-shadow: 0 20px 40px rgba(148, 163, 184, 0.18);
}

html[data-direct-theme='light'] .direct-cms-attention-label {
  color: rgba(255, 255, 255, 0.78);
}

html[data-direct-theme='light'] .direct-cms-attention-card strong,
html[data-direct-theme='light'] .direct-cms-attention-card p,
html[data-direct-theme='light'] .direct-cms-attention-empty strong,
html[data-direct-theme='light'] .direct-cms-attention-empty p {
  color: #fffdf5;
}

html[data-direct-theme='light'] .direct-cms-landing-card-kicker {
  color: rgba(255, 255, 255, 0.72);
}

html[data-direct-theme='light'] .direct-cms-landing-card strong,
html[data-direct-theme='light'] .direct-cms-landing-card p {
  color: #fffdf5;
}

html[data-direct-theme='light'] .direct-cms-subnav-card {
  box-shadow: 0 14px 32px rgba(148, 163, 184, 0.14);
}

html[data-direct-theme='light'] .direct-cms-subnav-card:hover,
html[data-direct-theme='light'] .direct-cms-subnav-card:focus-visible {
  box-shadow: 0 18px 38px rgba(148, 163, 184, 0.18);
}

html[data-direct-theme='light'] .direct-cms-subnav-kicker {
  color: rgba(255, 255, 255, 0.74);
}

html[data-direct-theme='light'] .direct-cms-subnav-card strong {
  color: #fffdf5;
}

@media (max-width: 1120px) {
  .direct-admin-workspace {
    grid-template-columns: 1fr;
  }

  .direct-admin-sidebar {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 720px) {
  .direct-admin-sidebar {
    grid-template-columns: 1fr;
  }
}

.direct-users-card {
  display: grid;
  gap: 18px;
}

.direct-users-summary-meta {
  color: rgba(255, 244, 209, 0.64);
  font-size: 0.8rem;
  line-height: 1.4;
}

.direct-users-summary-card-action {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.direct-parser-summary-card-action {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.direct-users-summary-card-action:hover,
.direct-users-summary-card-action:focus-visible {
  border-color: rgba(242, 183, 5, 0.38);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.direct-parser-summary-card-action:hover,
.direct-parser-summary-card-action:focus-visible {
  border-color: rgba(242, 183, 5, 0.38);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.direct-users-head-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.direct-users-head-actions .direct-feed-admin-help {
  margin: 0;
}

.direct-users-export-button {
  flex: 0 0 auto;
}

.direct-users-create-panel {
  border-radius: 18px;
  border: 1px solid rgba(242, 183, 5, 0.16);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
}

.direct-users-create-panel summary {
  cursor: pointer;
  color: #fff7dd;
  font-weight: 700;
}

.direct-users-create-form {
  margin-top: 14px;
}

.direct-users-filter-grid {
  align-items: end;
}

.direct-users-list {
  display: grid;
  gap: 14px;
}

.direct-users-list-header,
.direct-users-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 1fr) minmax(170px, 0.72fr);
  align-items: center;
  gap: 16px;
}

.direct-users-list-header {
  padding: 0 18px;
}

.direct-users-sort-link {
  color: rgba(255, 244, 209, 0.68);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.direct-users-sort-link.is-active,
.direct-users-sort-link:hover,
.direct-users-sort-link:focus-visible {
  color: #fff7dd;
}

.direct-users-row {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(242, 183, 5, 0.16);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.direct-users-row:hover,
.direct-users-row:focus-visible {
  border-color: rgba(242, 183, 5, 0.38);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.direct-users-cell {
  min-width: 0;
}

.direct-users-name-cell strong {
  display: block;
  color: #fff7dd;
  font-size: 1rem;
}

.direct-users-row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.direct-users-email-cell,
.direct-users-login-cell {
  color: rgba(255, 244, 209, 0.8);
  overflow-wrap: anywhere;
}

.direct-users-inline-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.direct-users-delete-button {
  border-color: rgba(248, 113, 113, 0.32);
  color: #fecaca;
}

.direct-users-delete-button:hover,
.direct-users-delete-button:focus-visible {
  border-color: rgba(248, 113, 113, 0.48);
  background: rgba(127, 29, 29, 0.18);
}

.direct-user-detail-dialog {
  width: min(920px, calc(100vw - 32px));
  max-width: none;
  outline: none;
}

.direct-feed-edit-dialog {
  width: min(1040px, calc(100vw - 24px));
}

.direct-user-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 16px;
}

.direct-user-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.direct-user-detail-meta div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.direct-user-detail-meta span {
  color: rgba(255, 244, 209, 0.58);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.direct-user-detail-meta strong {
  color: #fff7dd;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.direct-user-detail-activity-card strong {
  font-size: 1.08rem;
}

.direct-user-detail-activity-card small {
  color: rgba(255, 244, 209, 0.66);
  font-size: 0.78rem;
  line-height: 1.4;
}

.direct-user-detail-actions {
  display: grid;
  gap: 12px;
  align-content: start;
}

html[data-direct-theme='light'] .direct-users-summary-meta {
  color: rgba(15, 23, 42, 0.64);
}

html[data-direct-theme='light'] .direct-users-summary-card-action:hover,
html[data-direct-theme='light'] .direct-users-summary-card-action:focus-visible {
  border-color: rgba(203, 213, 225, 0.84);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.16);
}

html[data-direct-theme='light'] .direct-parser-summary-card-action:hover,
html[data-direct-theme='light'] .direct-parser-summary-card-action:focus-visible {
  border-color: rgba(203, 213, 225, 0.84);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.16);
}

html[data-direct-theme='light'] .direct-users-head-actions .direct-feed-admin-help {
  color: rgba(15, 23, 42, 0.68);
}

html[data-direct-theme='light'] .direct-users-create-panel,
html[data-direct-theme='light'] .direct-users-row {
  border-color: rgba(203, 213, 225, 0.72);
  background: rgba(255, 255, 255, 0.92);
}

html[data-direct-theme='light'] .direct-users-sort-link {
  color: rgba(51, 65, 85, 0.76);
}

html[data-direct-theme='light'] .direct-users-sort-link.is-active,
html[data-direct-theme='light'] .direct-users-sort-link:hover,
html[data-direct-theme='light'] .direct-users-sort-link:focus-visible,
html[data-direct-theme='light'] .direct-users-name-cell strong {
  color: #111827;
}

html[data-direct-theme='light'] .direct-users-email-cell,
html[data-direct-theme='light'] .direct-users-login-cell {
  color: rgba(15, 23, 42, 0.78);
}

html[data-direct-theme='light'] .direct-users-create-panel summary,
html[data-direct-theme='light'] .direct-users-row:hover,
html[data-direct-theme='light'] .direct-users-row:focus-visible {
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.16);
}

html[data-direct-theme='light'] .direct-user-detail-meta div {
  border-color: rgba(203, 213, 225, 0.72);
  background: rgba(248, 250, 252, 0.92);
}

html[data-direct-theme='light'] .direct-user-detail-meta span {
  color: rgba(71, 85, 105, 0.8);
}

html[data-direct-theme='light'] .direct-users-create-panel summary,
html[data-direct-theme='light'] .direct-user-detail-meta strong {
  color: #111827;
}

html[data-direct-theme='light'] .direct-user-detail-activity-card small {
  color: rgba(51, 65, 85, 0.72);
}

html[data-direct-theme='light'] .direct-users-inline-form {
  border-color: rgba(203, 213, 225, 0.72);
  background: rgba(248, 250, 252, 0.92);
}

html[data-direct-theme='light'] .direct-users-delete-button {
  border-color: rgba(239, 68, 68, 0.28);
  color: #991b1b;
}

html[data-direct-theme='light'] .direct-users-delete-button:hover,
html[data-direct-theme='light'] .direct-users-delete-button:focus-visible {
  background: rgba(254, 226, 226, 0.88);
}

@media (max-width: 900px) {
  .direct-users-list-header,
  .direct-users-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .direct-users-list-header {
    display: none;
  }

  .direct-user-detail-grid,
  .direct-user-detail-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .direct-users-head-actions {
    align-items: flex-start;
  }
}
