/* Gefei new-word radar. Every colour comes from the shared page tokens; this
   sheet adds layout only, so a brand or light/dark change is inherited. */

.gefei-shell {
  padding-top: 28px;
  padding-bottom: 64px;
  min-width: 0;
}

.gefei-hero {
  margin-bottom: 28px;
}

.gefei-hero .hero-title {
  overflow-wrap: anywhere;
}

.gefei-hero .hero-lead {
  max-width: 58rem;
}

.gefei-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0 24px;
  margin: 26px 0 0;
  padding: 0;
}

.gefei-stat {
  min-width: 0;
  padding: 12px 0 10px;
  border-top: 2px solid var(--primary);
}

.gefei-stat span {
  display: block;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.gefei-stat strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: var(--fs-xl);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.gefei-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  min-width: 0;
}

.gefei-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.gefei-section-head h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.gefei-section-head p {
  margin: 0;
  max-width: 54rem;
  font-size: var(--fs-sm);
}

.gefei-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.gefei-table-wrap .data-table {
  min-width: 980px;
}

.gefei-batch-table {
  min-width: 760px !important;
}

.gefei-top-table {
  min-width: 640px !important;
}

.gefei-table thead th,
.gefei-batch-table thead th,
.gefei-top-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}

.gefei-table tbody td {
  vertical-align: top;
}

.gefei-sort-link {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.gefei-sort-link:hover {
  color: var(--accent-strong);
}

.gefei-sort-link.is-active {
  color: var(--accent-strong);
  font-weight: 800;
}

.gefei-keyword-cell {
  min-width: 270px;
  max-width: 360px;
}

.gefei-kw-wrap {
  min-width: 0;
}

.gefei-kw-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.gefei-kw {
  min-width: 0;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.gefei-kw:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gefei-kw-line .kw-trend-link {
  flex: 0 0 auto;
}

.gefei-domain-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 5px;
  font-size: var(--fs-xs);
  line-height: 1.45;
}

.gefei-domain {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--foreground-secondary);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.gefei-domain:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.gefei-domain-none,
.gefei-muted {
  color: var(--muted);
}

.gefei-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}

.gefei-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--domain-pending);
}

.gefei-status.registered,
.gefei-status-dot.registered {
  color: var(--domain-registered);
}

.gefei-status-dot.registered {
  background: var(--domain-registered);
}

.gefei-status.available,
.gefei-status-dot.available {
  color: var(--domain-available);
}

.gefei-status-dot.available {
  background: var(--domain-available);
}

.gefei-status.pending,
.gefei-status-dot.pending {
  color: var(--domain-pending);
}

.gefei-status.unknown,
.gefei-status-dot.unknown {
  color: var(--foreground-secondary);
}

.gefei-status-dot.unknown {
  background: var(--foreground-secondary);
}

.gefei-domain-line time,
.gefei-checked {
  color: var(--foreground-secondary);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-variant-numeric: tabular-nums;
}

.gefei-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background-secondary);
  color: var(--foreground-secondary);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}

.gefei-badge.neutral {
  background: var(--background-secondary);
  color: var(--foreground-secondary);
}

.gefei-badge.worth {
  background: var(--domain-available-surface);
  border-color: var(--domain-available);
  color: var(--domain-available);
}

.gefei-badge.maybe {
  background: var(--background-secondary);
  border-color: var(--warning);
  color: var(--warning);
}

.gefei-badge.skip {
  background: var(--danger-surface);
  border-color: var(--danger);
  color: var(--danger);
}

.gefei-badge.unknown {
  background: var(--background-secondary);
  color: var(--muted);
}

.gefei-verdict {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 104px;
}

.gefei-suggestion {
  color: var(--foreground-secondary);
  font-size: var(--fs-xs);
}

.gefei-kind {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--fs-xs);
}

.gefei-heat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 96px;
}

.gefei-heat strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gefei-heat small {
  color: var(--foreground-secondary);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}

.gefei-heat-track {
  display: block;
  width: 64px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--background-tertiary);
}

.gefei-heat-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.gefei-dates {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--foreground-secondary);
  font-size: var(--fs-xs);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.gefei-dates b {
  color: var(--muted);
  font-weight: 700;
}

.gefei-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 180px;
}

.gefei-source {
  display: inline-flex;
  max-width: 100%;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background-secondary);
  color: var(--foreground-secondary);
  font-size: var(--fs-xs);
  overflow-wrap: anywhere;
}

.gefei-brief {
  min-width: 110px;
  max-width: 320px;
}

.gefei-brief summary {
  color: var(--accent-strong);
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.gefei-brief summary:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.gefei-brief-body {
  margin-top: 6px;
  color: var(--foreground-secondary);
  font-size: var(--fs-xs);
  line-height: 1.55;
}

.gefei-brief-body p {
  margin: 0 0 5px;
  font-size: inherit;
  color: inherit;
}

.gefei-brief-body ul {
  margin: 2px 0 5px;
  padding-left: 16px;
}

.gefei-brief-body li {
  margin: 2px 0;
}

.gefei-brief-meta {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.gefei-filters {
  margin-top: 26px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background-secondary);
}

.gefei-filter-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(4, minmax(130px, 1fr));
  gap: 10px 14px;
}

.gefei-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.gefei-label {
  color: var(--foreground-secondary);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.gefei-input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--control-border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: var(--fs-sm);
  font-family: inherit;
}

.gefei-input:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.gefei-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.gefei-filter-actions .btn {
  min-height: 40px;
  padding: 8px 16px;
}

.gefei-results-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  margin: 22px 0 10px;
  color: var(--foreground-secondary);
  font-size: var(--fs-sm);
}

.gefei-results-line strong {
  color: var(--text);
}

.gefei-results-line > span {
  color: var(--muted);
  font-size: var(--fs-xs);
}

.gefei-batch-id {
  color: var(--foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.gefei-batch-id:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.gefei-batch-stamp {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}

.gefei-breadcrumb {
  margin-bottom: 8px;
  font-size: var(--fs-sm);
}

.gefei-breadcrumb a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.gefei-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gefei-banner {
  margin: 18px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground-secondary);
  background: var(--background-secondary);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.gefei-banner.is-error {
  border-color: var(--secondary-accent);
  background: var(--secondary-subtle);
  color: var(--secondary-accent);
}

.gefei-banner.is-stale {
  border-color: var(--warning);
  color: var(--warning);
}

.gefei-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.gefei-pager .btn {
  min-height: 40px;
  padding: 8px 16px;
}

.gefei-pager-state {
  color: var(--foreground-secondary);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.gefei-empty {
  margin: 18px 0 0;
  padding: 28px 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: var(--fs-sm);
  text-align: center;
}

.gefei-attribution {
  margin: 32px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: var(--fs-xs);
}

.gefei-attribution a {
  color: var(--foreground-secondary);
  text-decoration: none;
}

.gefei-attribution a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.gefei-source-link {
  color: var(--foreground-secondary);
  font-size: var(--fs-xs);
  text-decoration: none;
  white-space: nowrap;
}

.gefei-source-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

@media (max-width: 980px) {
  .gefei-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .gefei-shell {
    padding-top: 16px;
  }

  .gefei-section-head {
    display: block;
  }

  .gefei-section-head p {
    margin-top: 4px;
  }

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

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

  .gefei-filter-actions .btn {
    flex: 1 1 140px;
  }

  .gefei-results-line {
    display: block;
  }

  .gefei-results-line > span {
    display: block;
    margin-top: 3px;
  }
}
