:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #030406;
  color: #f7f9ff;
  --panel: rgba(9, 13, 18, 0.88);
  --panel-strong: #0d1117;
  --line: rgba(255, 255, 255, 0.13);
  --muted: #9aa6b5;
  --pink: #ff2e79;
  --orange: #ff7a18;
  --yellow: #ffd400;
  --green: #83e52c;
  --cyan: #16d8ff;
  --blue: #4387ff;
  --purple: #8c48ff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.is-hidden {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(3, 4, 6, 0.96), rgba(3, 4, 6, 1)),
    repeating-linear-gradient(120deg, rgba(22, 216, 255, 0.08) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(60deg, rgba(255, 46, 121, 0.06) 0 1px, transparent 1px 74px);
}

body::after {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  height: 180px;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(100deg, transparent 0 8%, var(--pink) 8% 11%, var(--orange) 11% 18%, var(--yellow) 18% 27%, var(--green) 27% 42%, var(--cyan) 42% 58%, var(--blue) 58% 74%, var(--purple) 74% 86%, transparent 86%),
    repeating-linear-gradient(168deg, transparent 0 18px, rgba(255, 255, 255, 0.2) 18px 19px, transparent 19px 34px);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  opacity: 0.45;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.narrow {
  width: min(760px, calc(100vw - 32px));
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.topbar .brand-lockup {
  position: relative;
  z-index: 4;
  flex: 0 1 390px;
  width: min(360px, 100%);
  max-width: 360px;
  margin-bottom: 0;
  padding: 4px 0;
  cursor: pointer;
}

.topbar .brand-logo {
  width: 100%;
  max-width: 100%;
}

.shell.narrow .topbar {
  align-items: flex-start;
  flex-direction: column;
}

.shell.narrow .topbar .brand-lockup {
  max-width: 100%;
}

.shell.narrow .top-actions {
  width: 100%;
  justify-content: flex-start;
}

.command-deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 26px 0 18px;
}

.brand-stack {
  min-width: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-bottom: 26px;
  color: inherit;
}

.brand-lockup.compact {
  margin-bottom: 20px;
}

.brand-logo {
  display: block;
  width: min(560px, 74vw);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(22, 216, 255, 0.24));
}

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

h1 {
  max-width: 940px;
  margin-bottom: 14px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.15;
}

.tagline {
  margin: 18px 0 0;
  color: #ffffff;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 760;
}

.tagline::first-letter {
  color: var(--yellow);
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.muted,
p {
  color: var(--muted);
}

.spectrum-rule {
  width: min(380px, 70vw);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--green), var(--cyan), var(--blue), var(--purple));
  box-shadow: 0 0 22px rgba(22, 216, 255, 0.35);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.metric,
.panel,
.ops-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.metric {
  min-height: 92px;
  padding: 16px;
  border-top: 2px solid var(--cyan);
}

.metric:nth-child(2) {
  border-top-color: var(--yellow);
}

.metric:nth-child(3) {
  border-top-color: var(--pink);
}

.metric:nth-child(4) {
  border-top-color: var(--green);
}

.metric:nth-child(5) {
  border-top-color: var(--blue);
}

.metric:nth-child(6) {
  border-top-color: var(--orange);
}

.metric-link {
  color: #f7f9ff;
}

.health-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.monitor-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.metric > span,
.metric-label,
.panel-heading span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.help-tip {
  position: relative;
  z-index: 4;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 211, 0, 0.75);
  border-radius: 999px;
  background: rgba(255, 211, 0, 0.08);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  cursor: help;
}

.help-tip::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(280px, 72vw);
  padding: 10px 12px;
  border: 1px solid rgba(255, 211, 0, 0.45);
  border-radius: 8px;
  background: rgba(10, 12, 18, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  color: #f7f9ff;
  content: attr(data-help);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  text-transform: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: normal;
}

.help-tip::before {
  content: "?";
}

.help-tip:hover,
.help-tip:focus-visible {
  border-color: var(--yellow);
  background: rgba(255, 211, 0, 0.16);
  outline: none;
}

.help-tip:hover::after,
.help-tip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.metric strong {
  display: block;
  margin-top: 12px;
  overflow-wrap: anywhere;
  font-size: 20px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 22px;
}

.panel-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.split-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.deploy-panel {
  margin: 0 0 22px;
}

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

.deploy-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.deploy-grid .deploy-grid-wide {
  grid-column: 1 / -1;
}

.deploy-grid dt {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.deploy-grid dd {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 17px;
  font-weight: 850;
}

.deploy-grid a {
  color: var(--cyan);
}

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

.city-wizard-form {
  gap: 14px 16px;
}

.quick-research-panel {
  margin-bottom: 18px;
  border-top-color: var(--cyan);
}

.corpus-upload-panel {
  margin-top: 18px;
  border-top-color: var(--cyan);
}

.corpus-upload-form {
  align-items: end;
}

.corpus-file-field {
  display: grid;
  gap: 8px;
}

.corpus-file-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.corpus-file-input {
  min-height: 58px;
  padding: 9px;
}

.corpus-file-input::file-selector-button {
  margin-right: 14px;
  border: 1px solid rgba(30, 213, 255, 0.52);
  border-radius: 6px;
  padding: 10px 14px;
  background: rgba(30, 213, 255, 0.1);
  color: var(--cyan);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.corpus-upload-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.corpus-upload-actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.corpus-upload-actions button {
  min-width: 190px;
}

.upload-portal-shell {
  width: min(1080px, calc(100vw - 32px));
}

.research-start-shell {
  width: min(920px, calc(100vw - 32px));
}

.research-start-hero {
  margin-bottom: 18px;
}

.research-start-hero p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.upload-portal-hero {
  margin-bottom: 18px;
}

.upload-portal-hero p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.upload-dataset-list,
.upload-activity-list {
  display: grid;
  gap: 14px;
}

.upload-dataset-card {
  border-top-color: var(--cyan);
}

.upload-activity-panel {
  margin-top: 18px;
  border-top-color: var(--yellow);
}

.upload-activity-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.035);
}

.upload-activity-row > div:first-child,
.upload-result-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.upload-activity-row > div:first-child {
  display: grid;
  gap: 4px;
}

.upload-activity-row span,
.upload-result-counts {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.upload-empty-state {
  text-align: center;
}

.quick-research-form {
  display: grid;
  gap: 14px;
}

.quick-research-form textarea {
  min-height: 118px;
  resize: vertical;
}

.quick-research-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.quick-research-actions span {
  max-width: 720px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.quick-research-actions button {
  min-width: 164px;
  flex: 0 0 auto;
}

.advanced-intake {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.advanced-intake summary {
  width: fit-content;
  cursor: pointer;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.advanced-intake[open] summary {
  margin-bottom: 18px;
}

.wizard-band {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
}

.wizard-band:first-of-type {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.wizard-band span {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border: 1px solid rgba(22, 216, 255, 0.42);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
}

.wizard-band strong {
  color: #ffffff;
  font-size: 16px;
}

.wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: #eaf0ff;
  font-size: 14px;
  font-weight: 720;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 11px 12px;
  font: inherit;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(22, 216, 255, 0.16);
}

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--cyan) 50%) calc(100% - 18px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--cyan) 50%, transparent 50%) calc(100% - 13px) 50% / 7px 7px no-repeat,
    rgba(255, 255, 255, 0.055);
}

textarea {
  resize: vertical;
}

.check {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow));
  color: #050608;
  padding: 11px 17px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(255, 212, 0, 0.18);
}

button:hover {
  filter: brightness(1.08);
}

.ghost-link:hover,
.ghost-action:hover,
.table-action:hover {
  border-color: rgba(255, 212, 0, 0.58);
  color: var(--yellow);
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.6);
  opacity: 0.58;
}

.primary-action {
  white-space: nowrap;
}

.ghost-action {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f7f9ff;
  box-shadow: none;
}

.top-actions {
  display: flex;
  position: relative;
  z-index: 3;
  flex: 1 1 460px;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  min-width: 0;
}

.ghost-link,
.user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.06);
}

.ghost-link.active,
.ghost-link[aria-current="page"] {
  border-color: rgba(255, 212, 0, 0.68);
  background: rgba(255, 212, 0, 0.1);
  color: var(--yellow);
  box-shadow: 0 0 18px rgba(255, 212, 0, 0.12);
}

.user-chip {
  max-width: min(320px, 100%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.table-action {
  min-height: 34px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #f7f9ff;
  box-shadow: none;
  white-space: nowrap;
}

.table-action.danger {
  border-color: rgba(255, 46, 121, 0.34);
  color: #ffb5cf;
}

.refdoc-download-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(22, 216, 255, 0.42);
  border-radius: 6px;
  text-decoration: none;
}

.actions {
  display: flex;
  justify-content: flex-end;
}

.single-column {
  grid-template-columns: 1fr;
}

.dashboard-hero,
.community-hero {
  align-items: center;
}

.page-loading-overlay {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 9999;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 46, 121, 0.16), transparent 32%),
    radial-gradient(circle at 66% 48%, rgba(22, 216, 255, 0.15), transparent 34%),
    rgba(3, 6, 10, 0.84);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 140ms ease;
}

.is-page-loading .page-loading-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.simpl-loading-widget {
  display: grid;
  gap: 14px;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 20px 24px;
  background:
    linear-gradient(135deg, rgba(255, 46, 121, 0.12), transparent 48%),
    linear-gradient(315deg, rgba(22, 216, 255, 0.12), transparent 50%),
    rgba(9, 13, 18, 0.92);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 50px rgba(0, 0, 0, 0.42);
}

.simpl-loading-mark {
  display: grid;
  position: relative;
  place-items: center;
  width: 82px;
  aspect-ratio: 1;
}

.simpl-loading-mark::before {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--yellow);
  border-right-color: var(--cyan);
  border-radius: 50%;
  content: "";
  animation: simpl-loader-spin 900ms linear infinite;
}

.simpl-loading-mark img {
  width: 46px;
  height: 46px;
  animation: simpl-loader-spin 1.35s linear infinite reverse;
}

.simpl-loading-mark.small {
  flex: 0 0 auto;
  width: 46px;
}

.simpl-loading-mark.small img {
  width: 28px;
  height: 28px;
}

.simpl-loading-text {
  color: #ffffff;
  font-size: 17px;
}

@media (prefers-reduced-motion: reduce) {
  .simpl-loading-mark::before,
  .simpl-loading-mark img {
    animation: none;
  }
}

.activity-banner {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: min(100%, 560px);
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.045);
}

.activity-banner.active {
  border-color: rgba(22, 216, 255, 0.42);
  background: rgba(22, 216, 255, 0.08);
}

.activity-banner.idle {
  border-color: rgba(255, 255, 255, 0.12);
}

.activity-banner strong,
.activity-banner small {
  display: block;
}

.activity-banner strong {
  font-size: 15px;
}

.activity-banner small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.activity-orbit {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  aspect-ratio: 1;
  border: 2px solid rgba(22, 216, 255, 0.24);
  border-top-color: var(--cyan);
  border-radius: 50%;
}

.activity-banner.active .activity-orbit {
  animation: orbit-spin 1.1s linear infinite;
}

.activity-orbit span {
  width: 11px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(131, 229, 44, 0.7);
}

.activity-banner.idle .activity-orbit span {
  background: var(--muted);
  box-shadow: none;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
}

.users-grid {
  grid-template-columns: minmax(320px, 0.82fr) minmax(620px, 1.18fr);
}

.notice,
.inline-status {
  margin-bottom: 16px;
  border: 1px solid rgba(22, 216, 255, 0.24);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(22, 216, 255, 0.09);
  color: #dff8ff;
  font-weight: 760;
}

.inline-status {
  margin: -4px 0 16px;
}

.notice.success,
.inline-status.success {
  border-color: rgba(131, 229, 44, 0.36);
  background: rgba(131, 229, 44, 0.1);
  color: #e7ffd6;
}

.notice.error,
.inline-status.error {
  border-color: rgba(255, 46, 121, 0.38);
  background: rgba(255, 46, 121, 0.11);
  color: #ffd7e4;
}

.community-list,
.source-list {
  display: grid;
  gap: 10px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.project-card {
  display: grid;
  position: relative;
  gap: 18px;
  min-height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 46, 121, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(22, 216, 255, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.035);
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
}

.project-card:hover {
  border-color: rgba(255, 212, 0, 0.58);
  color: var(--yellow);
  box-shadow: 0 0 28px rgba(255, 212, 0, 0.1);
}

.project-card-head,
.project-card-foot {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.project-card-head div {
  min-width: 0;
}

.project-card-head span,
.project-card-foot span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.project-card-head strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.project-card:hover .project-card-head strong,
.project-card:hover .project-card-foot strong {
  color: var(--yellow);
}

.project-card-head em {
  flex: 0 0 auto;
  border: 1px solid rgba(22, 216, 255, 0.34);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(22, 216, 255, 0.08);
  color: var(--cyan);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.project-card-head em.running {
  border-color: rgba(131, 229, 44, 0.42);
  background: rgba(131, 229, 44, 0.1);
  color: var(--green);
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.project-stats div {
  display: grid;
  gap: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 9px;
}

.project-stats dt,
.project-stats dd {
  font-size: 12px;
}

.project-stats dd {
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.project-card-foot {
  align-items: center;
  margin-top: auto;
}

.project-card-foot strong,
.project-card-action {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(22, 216, 255, 0.34);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(22, 216, 255, 0.08);
  color: var(--cyan);
  white-space: nowrap;
}

.project-card:hover .project-card-action {
  border-color: rgba(255, 212, 0, 0.58);
  background: rgba(255, 212, 0, 0.1);
  color: var(--yellow);
}

.community-card,
.source-row {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(255, 212, 0, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.035);
  color: #ffffff;
}

.community-card:hover,
.source-row:hover {
  border-color: rgba(22, 216, 255, 0.5);
}

.community-card span,
.source-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-card strong,
.source-row strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.source-row strong {
  font-size: 13px;
  line-height: 1.35;
}

.compact-list-panel {
  display: grid;
  gap: 14px;
}

.community-section-placeholder {
  display: block;
  min-width: 0;
}

.dashboard-grid > .community-section-placeholder {
  min-width: 0;
}

.section-loader-card {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 118px;
  border: 1px solid rgba(22, 216, 255, 0.24);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 46, 121, 0.08), transparent 46%),
    linear-gradient(315deg, rgba(22, 216, 255, 0.09), transparent 50%),
    rgba(255, 255, 255, 0.035);
}

.section-loader-card strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
}

.section-loader-card p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.compact-list-panel .panel-heading {
  margin-bottom: 0;
}

.compact-preview-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.compact-preview-list .source-row {
  min-height: 76px;
}

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

.filter-field {
  display: flex;
  flex: 1 1 280px;
  gap: 10px;
  align-items: center;
  min-width: min(100%, 280px);
}

.filter-field span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-field input {
  min-height: 42px;
}

.filter-count {
  min-height: 28px;
  color: var(--yellow);
  font-size: 13px;
  white-space: nowrap;
}

.filter-empty {
  margin: 0;
  border: 1px solid rgba(255, 212, 0, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 212, 0, 0.055);
}

.details-disclosure {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.details-disclosure summary {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--cyan);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.details-disclosure summary::-webkit-details-marker {
  display: none;
}

.details-disclosure summary::after {
  margin-left: auto;
  color: var(--muted);
  content: "+";
  font-size: 20px;
  line-height: 1;
}

.details-disclosure[open] summary::after {
  content: "-";
}

.details-disclosure summary:hover {
  color: var(--yellow);
}

.details-list {
  padding: 0 14px 14px;
}

.compact-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
  margin: 2px 0 0;
}

.compact-stats dt,
.compact-stats dd {
  font-size: 12px;
}

.compact-stats dd {
  color: #ffffff;
  font-weight: 900;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  align-items: center;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 0.55fr);
  gap: 28px;
  align-items: center;
}

.login-brand {
  display: flex;
  align-items: center;
}

.login-brand .brand-logo {
  width: min(540px, 80vw);
}

.login-panel h1 {
  margin-bottom: 0;
  font-size: clamp(42px, 6vw, 68px);
}

.ops-panel {
  display: grid;
  gap: 20px;
  padding: 22px;
}

.magenta {
  color: var(--pink);
}

.orange {
  color: var(--orange);
}

.yellow {
  color: var(--yellow);
}

.green {
  color: var(--green);
}

.cyan {
  color: var(--cyan);
}

.blue {
  color: var(--blue);
}

table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap {
  overflow-x: auto;
}

.compact-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.compact-table {
  min-width: 720px;
}

.compact-table th,
.compact-table td {
  padding: 10px 12px;
  vertical-align: top;
}

.compact-table td:first-child {
  max-width: 440px;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-weight: 760;
}

.accounts-panel {
  overflow: hidden;
}

.user-account-list {
  display: grid;
  gap: 12px;
}

.user-account-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.user-account-card.pending,
.user-account-card.expired {
  border-color: rgba(255, 212, 0, 0.34);
  background: rgba(255, 212, 0, 0.045);
}

.user-account-card.inactive {
  opacity: 0.78;
}

.user-account-head,
.user-account-actions,
.user-account-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.user-account-head strong {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 16px;
  font-weight: 850;
}

.self-chip {
  display: inline-flex;
  margin-left: 8px;
  border: 1px solid rgba(22, 216, 255, 0.42);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-edit-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.6fr) minmax(130px, 0.5fr) auto;
  gap: 10px;
  align-items: end;
}

.user-edit-form button {
  min-height: 42px;
}

.user-account-meta {
  justify-content: flex-start;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.user-account-actions {
  justify-content: flex-end;
}

.user-account-actions form {
  margin: 0;
}

.dataset-assignment-field {
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(22, 216, 255, 0.25);
  border-radius: 8px;
  padding: 13px;
  background: rgba(22, 216, 255, 0.045);
}

.dataset-assignment-field[hidden] {
  display: none;
}

.dataset-assignment-field legend {
  padding: 0 6px;
  color: #ffffff;
  font-weight: 850;
}

.dataset-assignment-field p {
  margin: 0 0 10px;
}

.dataset-assignment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.dataset-assignment-option {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  padding: 9px 10px;
  background: rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

.dataset-assignment-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.dataset-assignment-option span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
}

.users-table {
  min-width: 620px;
  table-layout: fixed;
}

.users-table th:nth-child(1) {
  width: 28%;
}

.users-table th:nth-child(2) {
  width: 16%;
}

.users-table th:nth-child(3),
.users-table th:nth-child(4) {
  width: 11%;
}

.users-table th:nth-child(5) {
  width: 16%;
}

.users-table th:nth-child(6) {
  width: 18%;
}

.users-table td {
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.users-table .email-cell {
  color: #ffffff;
  font-weight: 760;
}

.users-table .action-cell {
  min-width: 118px;
  text-align: right;
}

.users-table .action-cell form {
  display: flex;
  justify-content: flex-end;
}

th,
td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

a {
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
}

.refresh-chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #f7f9ff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.refresh-chip,
.status-pill.active {
  border-color: rgba(22, 216, 255, 0.55);
  background: rgba(22, 216, 255, 0.12);
  color: var(--cyan);
}

.status-pill.active::before {
  display: inline-block;
  width: 7px;
  aspect-ratio: 1;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(131, 229, 44, 0.8);
  content: "";
  animation: live-dot 1.5s ease-in-out infinite;
}

.status-pill.waiting {
  border-color: rgba(255, 212, 0, 0.55);
  background: rgba(255, 212, 0, 0.11);
  color: var(--yellow);
}

.status-pill.pending,
.status-pill.expired {
  border-color: rgba(255, 212, 0, 0.55);
  background: rgba(255, 212, 0, 0.11);
  color: var(--yellow);
}

.status-pill.inactive {
  border-color: rgba(156, 166, 182, 0.42);
  background: rgba(156, 166, 182, 0.08);
  color: #c8d2e0;
}

.status-pill.attention {
  border-color: rgba(255, 46, 121, 0.55);
  background: rgba(255, 46, 121, 0.12);
  color: #ffb5cf;
}

.status-pill.complete {
  border-color: rgba(131, 229, 44, 0.48);
  background: rgba(131, 229, 44, 0.1);
  color: var(--green);
}

.active-row {
  background: linear-gradient(90deg, rgba(22, 216, 255, 0.06), transparent 62%);
}

.health-table td:first-child {
  min-width: 190px;
}

.health-table td:first-child span,
.health-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.stat-stack {
  min-width: 150px;
}

.stat-stack strong,
.stat-stack span {
  display: block;
}

.stat-stack strong {
  color: #ffffff;
}

.stat-stack span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.monitor-shell {
  width: min(1440px, calc(100vw - 32px));
}

.monitor-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.monitor-runs-panel,
.monitor-events-panel {
  min-width: 0;
}

.monitor-run-list,
.monitor-event-list {
  display: grid;
  gap: 12px;
}

.monitor-run-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.monitor-run-card.active {
  border-left-color: var(--green);
  background: linear-gradient(110deg, rgba(22, 216, 255, 0.09), rgba(255, 255, 255, 0.035) 64%);
}

.monitor-run-head,
.monitor-run-foot,
.monitor-job-summary {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.monitor-run-head span,
.monitor-job-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.monitor-run-head strong,
.monitor-job-summary strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 22px;
}

.monitor-run-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.monitor-run-stats div {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.monitor-run-stats dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.monitor-run-stats dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 17px;
  font-weight: 850;
}

.monitor-run-foot {
  align-items: center;
}

.monitor-run-foot span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.monitor-job-summary {
  margin-bottom: 14px;
  border: 1px solid rgba(22, 216, 255, 0.24);
  border-radius: 8px;
  padding: 12px;
  background: rgba(22, 216, 255, 0.06);
}

.monitor-event-list {
  max-height: 780px;
  overflow: auto;
  padding-right: 3px;
}

.automation-health-panel {
  margin: 22px 0;
  border-top: 3px solid var(--cyan);
}

.automation-health-panel[data-state="trusted"] {
  border-top-color: var(--green);
}

.automation-health-panel[data-state="needs_work"] {
  border-top-color: var(--yellow);
}

.automation-health-panel[data-state="blocked"] {
  border-top-color: var(--pink);
}

.automation-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.automation-health-grid > div {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 14px 0 4px;
}

.automation-health-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.automation-health-grid dd {
  margin: 6px 0 0;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.automation-incident-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.automation-incident,
.automation-clear {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.035);
}

.automation-incident.critical {
  border-color: rgba(255, 46, 121, 0.5);
}

.automation-incident.warning {
  border-color: rgba(255, 212, 0, 0.45);
}

.automation-incident strong,
.automation-clear strong {
  color: var(--yellow);
  font-size: 11px;
}

.automation-incident.critical strong {
  color: #ffb5cf;
}

.automation-incident span,
.automation-clear span {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-weight: 800;
}

.automation-incident small {
  color: var(--muted);
  font-size: 11px;
}

.automation-clear {
  grid-template-columns: auto minmax(0, 1fr);
  border-color: rgba(131, 229, 44, 0.35);
}

.automation-clear strong {
  color: var(--green);
}

.mission-panel {
  margin: 22px 0;
  overflow: hidden;
  border-top: 3px solid var(--cyan);
}

.mission-panel[data-state="trusted"] {
  border-top-color: var(--green);
}

.mission-panel[data-state="improving"] {
  border-top-color: var(--cyan);
}

.mission-panel[data-state="needs_work"] {
  border-top-color: var(--yellow);
}

.mission-panel[data-state="blocked"] {
  border-top-color: var(--pink);
}

.mission-heading {
  align-items: flex-start;
}

.mission-heading p {
  max-width: 780px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.mission-overall {
  display: grid;
  flex: 0 0 auto;
  gap: 7px;
  justify-items: end;
}

.mission-overall small,
.mission-section-heading small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mission-state-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.mission-state-pill.trusted {
  border-color: rgba(131, 229, 44, 0.55);
  background: rgba(131, 229, 44, 0.12);
  color: var(--green);
}

.mission-state-pill.improving {
  border-color: rgba(22, 216, 255, 0.55);
  background: rgba(22, 216, 255, 0.12);
  color: var(--cyan);
}

.mission-state-pill.needs_work {
  border-color: rgba(255, 212, 0, 0.55);
  background: rgba(255, 212, 0, 0.12);
  color: var(--yellow);
}

.mission-state-pill.blocked {
  border-color: rgba(255, 46, 121, 0.58);
  background: rgba(255, 46, 121, 0.13);
  color: #ffb5cf;
}

.mission-error {
  margin: 14px 0;
}

.mission-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 24px;
}

.mission-summary-grid > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 2px solid var(--cyan);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.mission-summary-grid > div:nth-child(1) {
  border-top-color: var(--green);
}

.mission-summary-grid > div:nth-child(2) {
  border-top-color: var(--cyan);
}

.mission-summary-grid > div:nth-child(3) {
  border-top-color: var(--yellow);
}

.mission-summary-grid > div:nth-child(4) {
  border-top-color: var(--pink);
}

.mission-summary-grid > div:nth-child(5) {
  border-top-color: var(--blue);
}

.mission-summary-grid > div:nth-child(6) {
  border-top-color: var(--purple);
}

.mission-summary-grid > div:nth-child(7) {
  border-top-color: var(--green);
}

.mission-summary-grid > div:nth-child(8) {
  border-top-color: var(--pink);
}

.mission-summary-grid span {
  display: block;
  min-height: 30px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mission-summary-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 28px;
}

.mission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  border-top: 1px solid var(--line);
}

.mission-datasets,
.mission-queue {
  min-width: 0;
  padding-top: 22px;
}

.mission-datasets {
  padding-right: 22px;
}

.mission-queue {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.mission-section-heading {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mission-section-heading span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mission-section-heading h3 {
  margin: 0;
  font-size: 22px;
}

.mission-dataset-list,
.mission-queue-list {
  display: grid;
  gap: 10px;
}

.mission-dataset-row {
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.028);
}

.mission-dataset-row.trusted {
  border-left-color: var(--green);
}

.mission-dataset-row.improving {
  border-left-color: var(--cyan);
}

.mission-dataset-row.blocked {
  border-left-color: var(--pink);
}

.mission-dataset-head,
.mission-dataset-foot {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.mission-dataset-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mission-dataset-head h4 {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 20px;
}

.mission-score {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.mission-score > strong {
  min-width: 38px;
  font-size: 24px;
  text-align: right;
}

.mission-dataset-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.mission-dataset-metrics div {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.mission-dataset-metrics dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mission-dataset-metrics dd {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 900;
}

.mission-signal {
  margin: 0;
  border-left: 2px solid var(--yellow);
  padding-left: 10px;
  color: #dfe7f2;
  font-size: 13px;
  line-height: 1.45;
}

.mission-signal strong {
  display: block;
  margin-bottom: 3px;
  color: #ffffff;
}

.mission-signal.failed {
  border-left-color: var(--pink);
}

.mission-signal.working {
  border-left-color: var(--cyan);
}

.mission-signal.passed {
  border-left-color: var(--green);
}

.mission-dataset-foot {
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.mission-dataset-foot span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.mission-dataset-foot b {
  display: block;
  color: #ffffff;
}

.mission-dataset-foot a {
  flex: 0 0 auto;
}

.mission-action-row {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0 13px 12px;
  color: inherit;
  text-decoration: none;
}

.mission-action-row.system {
  border-left: 2px solid var(--cyan);
}

.mission-action-row.human {
  border-left: 2px solid var(--pink);
}

.mission-action-row:hover,
.mission-action-row:focus-visible {
  background: rgba(22, 216, 255, 0.055);
}

.mission-action-row > span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mission-action-row.human > span {
  color: #ff9fc1;
}

.mission-action-row strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.mission-action-row b {
  color: #ffffff;
  font-size: 13px;
}

.mission-action-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.mission-empty {
  border-left: 2px solid var(--green);
  padding: 12px;
}

.mission-empty strong,
.mission-empty span {
  display: block;
}

.mission-empty span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.readiness-panel,
.schedule-panel,
.structured-panel,
.affiliate-panel,
.coverage-panel {
  margin: 22px 0;
}

.readiness-grid,
.structured-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 0;
}

.affiliate-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0 0;
}

.affiliate-list {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.affiliate-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, auto) auto;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.affiliate-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.affiliate-evidence {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  font-size: 12px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.schedule-grid div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.schedule-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-grid strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.agent-map-panel {
  border-top-color: rgba(22, 216, 255, 0.72);
}

.agent-scope-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.agent-scope-grid div,
.agent-query-callout {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(22, 216, 255, 0.045);
}

.agent-scope-grid span,
.agent-query-callout span,
.agent-map-table span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-scope-grid code,
.agent-query-callout code,
.agent-map-table code {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  overflow-wrap: anywhere;
  white-space: normal;
}

.agent-query-callout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.agent-query-callout strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.agent-map-table {
  min-width: 920px;
}

.agent-map-table td:nth-child(2) {
  color: #ffffff;
  font-weight: 900;
}

.agent-map-table p {
  margin: 0;
  color: #ffffff;
}

.compact-form {
  align-items: end;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(22, 216, 255, 0.45);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(22, 216, 255, 0.09);
  color: var(--cyan);
  font-size: 13px;
  white-space: nowrap;
}

.coverage-summary,
.coverage-counts,
.evidence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coverage-summary {
  margin-bottom: 16px;
}

.coverage-summary span,
.coverage-counts span {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.coverage-bulk-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 12px 0 16px;
  padding: 13px 14px;
  border: 1px solid rgba(22, 216, 255, 0.24);
  border-radius: 8px;
  background: rgba(22, 216, 255, 0.045);
}

.coverage-bulk-actions p,
.coverage-bulk-actions form {
  margin: 0;
}

.coverage-bulk-actions p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.coverage-bulk-actions button {
  min-height: 40px;
  white-space: nowrap;
}

.coverage-bulk-button-row,
.generated-guide-actions,
.auto-verify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.coverage-bulk-button-row {
  min-width: 0;
}

.coverage-bulk-button-row form {
  flex: 0 0 auto;
}

.coverage-workflow {
  margin: 12px 0 18px;
  border-top: 1px solid rgba(22, 216, 255, 0.28);
  border-bottom: 1px solid rgba(22, 216, 255, 0.2);
  padding: 14px 0;
}

.coverage-workflow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.coverage-workflow-steps li {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.coverage-workflow-steps li span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 11px;
}

.coverage-workflow-steps li.active {
  color: var(--cyan);
}

.coverage-workflow-steps li.active span {
  border-color: var(--cyan);
  background: rgba(22, 216, 255, 0.1);
}

.coverage-workflow-steps li.complete {
  color: var(--green);
}

.coverage-workflow-steps li.complete span {
  border-color: var(--green);
  background: rgba(131, 229, 44, 0.08);
}

.coverage-workflow-action {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
}

.coverage-workflow-action > div {
  flex: 1 1 420px;
}

.coverage-workflow-action strong {
  display: block;
  margin-bottom: 4px;
}

.coverage-workflow-action p,
.coverage-workflow-action form {
  margin: 0;
}

.coverage-workflow-action p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.auto-verify-form {
  justify-content: flex-start;
  margin-bottom: 16px;
}

.auto-verify-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.coverage-intel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.freshness-pill {
  flex: 0 1 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.freshness-pill.current {
  border-color: rgba(131, 229, 44, 0.38);
  background: rgba(131, 229, 44, 0.08);
  color: var(--green);
}

.freshness-pill.stale,
.freshness-pill.unknown {
  border-color: rgba(255, 212, 0, 0.48);
  background: rgba(255, 212, 0, 0.09);
  color: var(--yellow);
}

.freshness-pill.missing {
  border-color: rgba(255, 46, 121, 0.44);
  background: rgba(255, 46, 121, 0.08);
  color: #ffb5cf;
}

.coverage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.coverage-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.coverage-card.found {
  border-left-color: var(--green);
}

.coverage-card.partial,
.coverage-card.lookup {
  border-left-color: var(--yellow);
}

.coverage-card.archive {
  border-left-color: var(--purple);
}

.coverage-card.missing {
  border-left-color: var(--pink);
}

.coverage-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.coverage-card-head strong {
  display: block;
  font-size: 17px;
}

.coverage-card-head p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.35;
}

.coverage-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.055);
  color: #f7f9ff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.coverage-pill.found {
  border-color: rgba(131, 229, 44, 0.5);
  background: rgba(131, 229, 44, 0.1);
  color: var(--green);
}

.coverage-pill.partial,
.coverage-pill.lookup {
  border-color: rgba(255, 212, 0, 0.52);
  background: rgba(255, 212, 0, 0.1);
  color: var(--yellow);
}

.coverage-pill.archive {
  border-color: rgba(140, 72, 255, 0.52);
  background: rgba(140, 72, 255, 0.1);
  color: #c8b3ff;
}

.coverage-pill.missing {
  border-color: rgba(255, 46, 121, 0.52);
  background: rgba(255, 46, 121, 0.1);
  color: #ffb5cf;
}

.coverage-pill.running,
.coverage-pill.improved {
  border-color: rgba(22, 216, 255, 0.52);
  background: rgba(22, 216, 255, 0.1);
  color: var(--cyan);
}

.coverage-pill.success {
  border-color: rgba(131, 229, 44, 0.5);
  background: rgba(131, 229, 44, 0.1);
  color: var(--green);
}

.coverage-pill.empty,
.coverage-pill.neutral {
  border-color: rgba(255, 212, 0, 0.52);
  background: rgba(255, 212, 0, 0.1);
  color: var(--yellow);
}

.coverage-pill.attention,
.coverage-pill.unchanged {
  border-color: rgba(255, 212, 0, 0.52);
  background: rgba(255, 212, 0, 0.1);
  color: var(--yellow);
}

.run-outcome-cell {
  min-width: 220px;
}

.run-target-cell {
  min-width: 190px;
  max-width: 260px;
  color: var(--cyan);
  font-weight: 850;
  line-height: 1.3;
}

.run-outcome-cell small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  max-width: 340px;
}

.run-summary-card {
  display: grid;
  gap: 5px;
  margin: 18px 0 22px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 212, 0, 0.32);
  border-radius: 8px;
  background: rgba(255, 212, 0, 0.08);
}

.run-summary-card.success {
  border-color: rgba(131, 229, 44, 0.36);
  background: rgba(131, 229, 44, 0.08);
}

.run-summary-card.active {
  border-color: rgba(22, 216, 255, 0.36);
  background: rgba(22, 216, 255, 0.08);
}

.run-summary-card.attention {
  border-color: rgba(255, 46, 121, 0.42);
  background: rgba(255, 46, 121, 0.1);
}

.run-summary-card strong {
  color: #ffffff;
  font-size: 20px;
}

.run-summary-card span,
.run-summary-card small {
  color: var(--muted);
  line-height: 1.35;
}

.relationship-job-status {
  margin: 0 0 24px;
  padding: 18px 0 20px;
  border-top: 1px solid rgba(22, 216, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.relationship-job-status h2 {
  margin: 3px 0 0;
  font-size: 24px;
}

.relationship-job-status p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.relationship-job-status .ghost-link {
  display: inline-flex;
  margin-top: 16px;
}

.coverage-attempt {
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 212, 0, 0.3);
  border-radius: 8px;
  background: rgba(255, 212, 0, 0.07);
}

.coverage-attempt.success {
  border-color: rgba(131, 229, 44, 0.32);
  background: rgba(131, 229, 44, 0.07);
}

.coverage-attempt.active {
  border-color: rgba(22, 216, 255, 0.34);
  background: rgba(22, 216, 255, 0.07);
}

.coverage-attempt.attention {
  border-color: rgba(255, 46, 121, 0.38);
  background: rgba(255, 46, 121, 0.08);
}

.coverage-attempt div {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.coverage-attempt span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.coverage-attempt strong {
  color: #ffffff;
  font-size: 13px;
  text-align: right;
}

.coverage-attempt p,
.coverage-attempt small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.coverage-attempt a {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.coverage-action-row {
  display: grid;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}

.coverage-action-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.coverage-action-row form {
  margin: 0;
}

.coverage-guide-state {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.coverage-guide-state .compact-link {
  min-height: 30px;
}

.coverage-action-row button {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}

.coverage-pill.good,
.coverage-pill.strong {
  border-color: rgba(131, 229, 44, 0.5);
  background: rgba(131, 229, 44, 0.1);
  color: var(--green);
}

.coverage-pill.needs-review,
.coverage-pill.thin {
  border-color: rgba(255, 212, 0, 0.52);
  background: rgba(255, 212, 0, 0.1);
  color: var(--yellow);
}

.targeted-summary-panel {
  display: grid;
  gap: 16px;
  margin: 22px 0;
  border-top: 2px solid var(--cyan);
}

.targeted-summary-panel h2 {
  margin: 4px 0 0;
  font-size: 32px;
}

.targeted-run-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.targeted-run-grid > div {
  min-height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.targeted-run-grid span,
.term-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.targeted-run-grid strong {
  display: block;
  margin-top: 8px;
  color: #f7f9ff;
  font-size: 18px;
}

.targeted-run-grid p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.35;
}

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

.term-row span {
  border: 1px solid rgba(22, 216, 255, 0.28);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(22, 216, 255, 0.07);
  color: var(--cyan);
  letter-spacing: 0;
  text-transform: none;
}

.next-step {
  margin: 0;
  border-left: 3px solid var(--yellow);
  padding-left: 12px;
  color: #f7f9ff;
}

.warning-note {
  margin: 0;
  color: var(--yellow);
}

.evidence-list {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.evidence-list a {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.structured-browser {
  margin-top: 22px;
}

.structured-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.structured-tabs a {
  display: grid;
  gap: 7px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--cyan);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.035);
  color: #f7f9ff;
}

.structured-tabs a:nth-child(2) {
  border-top-color: var(--yellow);
}

.structured-tabs a:nth-child(3) {
  border-top-color: var(--pink);
}

.structured-tabs a:nth-child(4) {
  border-top-color: var(--green);
}

.structured-tabs a.active {
  border-color: rgba(22, 216, 255, 0.55);
  background: rgba(22, 216, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(22, 216, 255, 0.2);
}

.structured-tabs span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.structured-tabs strong {
  font-size: 20px;
}

.structured-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.34fr) auto auto;
  gap: 12px;
  align-items: end;
  margin: 6px 0 20px;
}

.structured-search label {
  min-width: 0;
}

.structured-search button {
  min-width: 118px;
}

.generated-guide-actions {
  justify-content: space-between;
}

.generated-guide-actions .structured-search {
  flex: 1 1 620px;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  margin-bottom: 16px;
}

.structured-results {
  display: grid;
  gap: 10px;
}

.structured-record {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--cyan);
  border-radius: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.032);
}

.structured-record:nth-child(4n + 2) {
  border-left-color: var(--yellow);
}

.structured-record:nth-child(4n + 3) {
  border-left-color: var(--pink);
}

.structured-record:nth-child(4n + 4) {
  border-left-color: var(--green);
}

.structured-record-main,
.record-badges,
.source-actions,
.pagination-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.record-badges {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.record-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.structured-record h3 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 22px;
}

.structured-consolidation-note {
  margin: -4px 0 16px;
  border-left: 2px solid var(--cyan);
  padding: 8px 11px;
  color: #d9e2ef;
  font-size: 13px;
  line-height: 1.45;
}

.contact-sources {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 9px;
}

.contact-sources summary {
  cursor: pointer;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
}

.contact-source-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.contact-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.025);
}

.contact-source-row strong,
.contact-source-row p {
  overflow-wrap: anywhere;
}

.contact-source-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.record-subtitle,
.record-value,
.evidence-snippet {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.record-subtitle {
  color: #d9e2ef;
  font-weight: 800;
}

.record-value {
  color: var(--muted);
}

.evidence-snippet {
  border-left: 2px solid rgba(255, 212, 0, 0.75);
  padding: 10px 12px;
  background: rgba(255, 212, 0, 0.055);
  color: #eef3fb;
  font-size: 14px;
}

.generated-guide-card {
  border-left-color: var(--purple);
}

.guide-review-intro {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.guide-repair-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 8px 0 18px;
  border: 1px solid rgba(22, 216, 255, 0.5);
  border-radius: 8px;
  padding: 18px;
  background: rgba(22, 216, 255, 0.075);
}

.guide-repair-banner div {
  display: grid;
  gap: 5px;
}

.guide-repair-banner span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-repair-banner h3,
.guide-repair-banner p {
  margin: 0;
}

.guide-repair-banner h3 {
  font-size: 22px;
}

.guide-repair-banner p {
  max-width: 760px;
  color: #d7e1ee;
  line-height: 1.45;
}

.guide-repair-banner form {
  margin: 0;
}

.guide-status-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 20px;
}

.guide-status-tabs a {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  text-decoration: none;
}

.guide-status-tabs a:hover,
.guide-status-tabs a:focus-visible,
.guide-status-tabs a.active {
  border-color: rgba(22, 216, 255, 0.65);
  background: rgba(22, 216, 255, 0.09);
  color: #fff;
  outline: none;
}

.guide-status-tabs strong {
  color: var(--cyan);
  font-size: 18px;
}

.guide-file-name {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.guide-next-step {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.guide-next-step span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-next-step strong {
  line-height: 1.4;
}

.guide-next-step.aligned {
  border-color: rgba(131, 229, 44, 0.38);
}

.guide-next-step.insufficient,
.guide-next-step.unknown {
  border-color: rgba(255, 212, 0, 0.38);
}

.guide-next-step.mismatch {
  border-color: rgba(255, 46, 121, 0.45);
}

.guide-decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.guide-decision-actions form {
  margin: 0;
}

.primary-repair-action {
  border-color: rgba(22, 216, 255, 0.72);
  background: linear-gradient(90deg, rgba(22, 216, 255, 0.2), rgba(131, 229, 44, 0.18));
  color: #fff;
}

.approve-action {
  border-color: rgba(131, 229, 44, 0.65);
  background: rgba(131, 229, 44, 0.14);
  color: #e9ffd4;
}

.research-action {
  border-color: rgba(22, 216, 255, 0.65);
  background: rgba(22, 216, 255, 0.12);
  color: #dffbff;
}

.remove-action {
  border-color: rgba(255, 46, 121, 0.55);
  background: rgba(255, 46, 121, 0.08);
  color: #ffd3e2;
}

.guide-evidence-details {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.guide-evidence-details summary {
  cursor: pointer;
  color: var(--cyan);
  font-weight: 850;
}

.guide-evidence-details[open] summary {
  margin-bottom: 12px;
}

.guide-audit-note {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.45;
}

.guide-evidence-details .coverage-counts,
.guide-evidence-details .source-actions,
.guide-evidence-details .evidence-list {
  margin-top: 10px;
}

.evidence-fit-pill {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.evidence-fit-pill.aligned {
  border-color: rgba(131, 229, 44, 0.5);
  background: rgba(131, 229, 44, 0.1);
  color: var(--green);
}

.evidence-fit-pill.insufficient,
.evidence-fit-pill.unknown {
  border-color: rgba(255, 212, 0, 0.5);
  background: rgba(255, 212, 0, 0.08);
  color: var(--yellow);
}

.evidence-fit-pill.mismatch {
  border-color: rgba(255, 46, 121, 0.55);
  background: rgba(255, 46, 121, 0.1);
  color: #ffb5cf;
}

.evidence-fit-detail {
  margin: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.22);
  padding-left: 10px;
  color: var(--muted);
  font-size: 13px;
}

.evidence-fit-detail.aligned {
  border-left-color: var(--green);
}

.evidence-fit-detail.insufficient,
.evidence-fit-detail.unknown {
  border-left-color: var(--yellow);
}

.evidence-fit-detail.mismatch {
  border-left-color: var(--pink);
  color: #ffcada;
}

.generated-evidence-list {
  justify-content: flex-start;
}

.source-actions {
  justify-content: flex-start;
  padding-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.source-actions span,
.source-actions a,
.confidence-pill,
.review-pill {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.045);
  overflow-wrap: anywhere;
}

.confidence-pill,
.review-pill {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
}

.confidence-pill {
  border-color: rgba(131, 229, 44, 0.52);
  background: rgba(131, 229, 44, 0.1);
  color: var(--green);
}

.review-pill.unreviewed {
  border-color: rgba(156, 166, 182, 0.42);
  color: #c8d2e0;
}

.review-pill.verified {
  border-color: rgba(131, 229, 44, 0.52);
  background: rgba(131, 229, 44, 0.1);
  color: var(--green);
}

.review-pill.needs_review {
  border-color: rgba(255, 212, 0, 0.52);
  background: rgba(255, 212, 0, 0.1);
  color: var(--yellow);
}

.review-pill.duplicate {
  border-color: rgba(140, 72, 255, 0.55);
  background: rgba(140, 72, 255, 0.1);
  color: #c8b3ff;
}

.review-pill.outdated {
  border-color: rgba(255, 46, 121, 0.55);
  background: rgba(255, 46, 121, 0.1);
  color: #ffb5cf;
}

.review-pill.completed {
  border-color: rgba(131, 229, 44, 0.52);
  background: rgba(131, 229, 44, 0.1);
  color: var(--green);
}

.review-pill.queued,
.review-pill.running {
  border-color: rgba(22, 216, 255, 0.52);
  background: rgba(22, 216, 255, 0.1);
  color: var(--cyan);
}

.review-pill.pending,
.review-pill.candidate {
  border-color: rgba(255, 212, 0, 0.52);
  background: rgba(255, 212, 0, 0.1);
  color: var(--yellow);
}

.review-pill.failed,
.review-pill.rejected {
  border-color: rgba(255, 46, 121, 0.55);
  background: rgba(255, 46, 121, 0.1);
  color: #ffb5cf;
}

.review-summary {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.035);
}

.review-summary p {
  margin: 0;
}

.review-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.review-form {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.review-form label {
  min-width: 0;
}

.review-note-field textarea {
  min-height: 58px;
}

.pagination-row {
  justify-content: center;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 850;
}

.review-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.review-filter-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.62fr) minmax(150px, 0.42fr) minmax(170px, 0.44fr) minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.review-filter-grid label {
  min-width: 0;
}

.coverage-scout,
.review-queue-panel {
  margin-top: 22px;
}

.manual-crawl-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(22, 216, 255, 0.22);
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 14px;
  background: rgba(22, 216, 255, 0.045);
}

.manual-crawl-form {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(220px, 0.5fr) auto;
  gap: 12px;
  align-items: end;
}

.manual-crawl-form label {
  min-width: 0;
}

.coverage-map-heading {
  margin-top: 18px;
}

.manual-coverage-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.coverage-gap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gap-guide-bulk-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(22, 216, 255, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(22, 216, 255, 0.045);
}

.gap-guide-select-all,
.gap-guide-select {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.gap-guide-select-all input,
.gap-guide-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.gap-guide-select-all label,
.gap-guide-select label {
  min-width: 0;
  cursor: pointer;
}

.gap-guide-select-all span,
.gap-guide-select-all strong,
.gap-guide-select span {
  display: block;
  overflow-wrap: anywhere;
}

.gap-guide-select-all span,
.gap-guide-select span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gap-guide-select-all strong {
  margin-top: 2px;
  color: #fff;
  font-size: 15px;
}

.gap-guide-select {
  margin-bottom: 10px;
}

.evidence-guide-bulk-action {
  min-height: 38px;
  white-space: nowrap;
}

.priority-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.055);
  color: #f7f9ff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.priority-pill.high {
  border-color: rgba(255, 46, 121, 0.55);
  background: rgba(255, 46, 121, 0.12);
  color: #ffb5cf;
}

.priority-pill.medium,
.priority-pill.review {
  border-color: rgba(255, 212, 0, 0.52);
  background: rgba(255, 212, 0, 0.1);
  color: var(--yellow);
}

.priority-pill.watch,
.priority-pill.archive {
  border-color: rgba(22, 216, 255, 0.45);
  background: rgba(22, 216, 255, 0.09);
  color: var(--cyan);
}

.scout-action {
  margin: 0;
  color: #eaf0ff;
  font-weight: 760;
}

.gap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.gap-actions form {
  margin: 0;
}

.gap-crawl-action {
  min-height: 34px;
}

.compact-link {
  width: fit-content;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.bulk-review-bar {
  display: grid;
  grid-template-columns: minmax(180px, 0.3fr) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(22, 216, 255, 0.08), transparent 54%),
    rgba(255, 255, 255, 0.028);
}

.bulk-note-field {
  min-width: 0;
}

.review-record-list {
  display: grid;
  gap: 10px;
}

.review-record {
  grid-template-columns: minmax(160px, 0.22fr) minmax(0, 1fr);
  align-items: start;
}

.review-record > :not(.queue-select) {
  grid-column: 2;
}

.queue-select {
  display: grid;
  grid-row: 1 / span 7;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 12px;
}

.queue-select input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--cyan);
}

.queue-select label {
  display: block;
  min-width: 0;
}

.queue-select span,
.queue-select strong {
  display: block;
  overflow-wrap: anywhere;
}

.queue-select span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.queue-select strong {
  margin-top: 4px;
  color: #ffffff;
  font-size: 14px;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes simpl-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes live-dot {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

.back {
  display: inline-block;
  margin-bottom: 18px;
}

.dataset-context-nav {
  display: flex;
  position: sticky;
  z-index: 12;
  top: 0;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  border-top: 1px solid rgba(22, 216, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 0;
  background: rgba(3, 6, 9, 0.94);
  backdrop-filter: blur(14px);
}

.dataset-context-back {
  display: inline-grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 52px;
  max-width: min(100%, 460px);
  border: 1px solid rgba(22, 216, 255, 0.42);
  border-radius: 6px;
  padding: 7px 13px 7px 8px;
  background: rgba(22, 216, 255, 0.08);
  color: #f7f9ff;
  text-decoration: none;
}

.dataset-context-back:hover,
.dataset-context-back:focus-visible {
  border-color: rgba(255, 212, 0, 0.68);
  color: var(--yellow);
  outline: none;
}

.dataset-context-back > span:last-child {
  display: grid;
  min-width: 0;
}

.dataset-context-back small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dataset-context-back strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dataset-context-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--cyan);
  font-size: 24px;
  line-height: 1;
}

.dataset-context-current {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.generated-guide-empty {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
}

.generated-guide-empty div {
  display: grid;
  gap: 4px;
}

.generated-guide-empty p {
  margin: 0;
  color: var(--muted);
}

.job-shell {
  width: min(1180px, calc(100vw - 32px));
}

.job-status {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 11px;
  border: 1px solid rgba(22, 216, 255, 0.5);
  border-radius: 999px;
  background: rgba(22, 216, 255, 0.1);
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.stop-build-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin: 0 0 18px;
}

.stop-build-form span {
  color: var(--muted);
  font-size: 13px;
}

.run-notice {
  margin: 0 0 18px;
  border-left: 3px solid var(--yellow);
  padding: 10px 12px;
  background: rgba(255, 212, 0, 0.08);
  color: #ffffff;
  font-weight: 800;
}

dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 11px 18px;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.section-heading {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-row {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.035);
  overflow-wrap: anywhere;
}

.event-row.warning {
  border-color: rgba(255, 212, 0, 0.42);
}

.event-row.error {
  border-color: rgba(255, 47, 117, 0.48);
}

.event-row-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 13px;
}

.event-row strong {
  color: var(--text);
  overflow-wrap: anywhere;
  font-size: 15px;
}

.event-row time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.event-row p {
  margin: 0;
  color: #f7f9ff;
  line-height: 1.42;
}

.event-url {
  display: block;
  max-width: 100%;
  color: var(--cyan);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.event-row code {
  display: block;
  max-height: 180px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(0, 0, 0, 0.2);
  white-space: pre-wrap;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.agent-connections-panel {
  padding: 0;
  border-top-color: rgba(255, 212, 0, 0.72);
  overflow: hidden;
}

.agent-connections-panel > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
}

.agent-connections-panel > summary::-webkit-details-marker {
  display: none;
}

.agent-connections-panel > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.agent-connections-panel > summary small,
.agent-connections-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.agent-connections-panel > summary > span:first-child strong {
  font-size: 20px;
}

.agent-connections-panel > summary .score-badge {
  margin-left: auto;
}

.agent-connections-panel > summary::after {
  color: var(--muted);
  content: "+";
  font-size: 22px;
  font-weight: 900;
}

.agent-connections-panel[open] > summary::after {
  content: "-";
}

.agent-connections-body {
  border-top: 1px solid var(--line);
  padding: 20px 24px 24px;
}

.credential-context {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.agent-connections-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.agent-connections-summary > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.agent-connections-summary strong {
  overflow-wrap: anywhere;
}

.score-badge.live,
.score-badge.published,
.score-badge.ready {
  border-color: rgba(131, 229, 44, 0.48);
  background: rgba(131, 229, 44, 0.1);
  color: var(--green);
}

@media (max-width: 920px) {
  .command-deck,
  .workspace-grid,
  .status-grid,
  .schedule-grid,
  .readiness-grid,
  .targeted-run-grid,
  .structured-tabs,
  .coverage-bulk-actions,
  .coverage-list,
  .monitor-layout,
  .mission-layout,
  .monitor-metrics,
  .deploy-grid,
  .manual-crawl-form,
  .manual-coverage-list,
  .coverage-gap-list,
  .review-filter-grid,
  .review-metrics,
  .agent-scope-grid,
  .agent-query-callout,
  .affiliate-summary,
  .affiliate-row,
  .login-layout,
  .agent-connections-summary {
    grid-template-columns: 1fr;
  }

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

  .mission-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mission-datasets {
    padding-right: 0;
  }

  .mission-queue {
    margin-top: 22px;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-left: 0;
  }

  .primary-action,
  .command-deck form {
    width: 100%;
  }

  .coverage-bulk-button-row,
  .generated-guide-actions {
    justify-content: flex-start;
  }

}

@media (max-width: 1100px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar .brand-lockup {
    flex-basis: 100%;
    max-width: 360px;
  }

  .topbar .brand-logo {
    width: 100%;
  }

  .top-actions {
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .users-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .quick-research-actions {
    display: grid;
  }

  .corpus-upload-actions {
    display: grid;
  }

  .upload-activity-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dataset-assignment-grid {
    grid-template-columns: 1fr;
  }

  .quick-research-actions button {
    width: 100%;
  }

  .corpus-upload-actions button {
    width: 100%;
  }

  .shell {
    width: min(100% - 24px, 1180px);
    padding-top: 20px;
  }

  .brand-logo {
    width: 100%;
    max-width: 350px;
  }

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

  .dataset-context-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .dataset-context-back,
  .generated-guide-empty .ghost-link {
    width: 100%;
    max-width: none;
  }

  .dataset-context-current {
    padding-left: 2px;
  }

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

  .guide-repair-banner {
    grid-template-columns: 1fr;
  }

  .guide-repair-banner form,
  .guide-repair-banner button {
    width: 100%;
  }

  .guide-decision-actions,
  .guide-decision-actions form,
  .guide-decision-actions button {
    width: 100%;
  }

  h1 {
    font-size: 42px;
  }

  .form-grid,
  .user-edit-form,
  .review-form,
  .structured-search,
  .gap-guide-bulk-bar,
  .bulk-review-bar,
  .review-record {
    grid-template-columns: 1fr;
  }

  .generated-guide-actions .structured-search {
    grid-template-columns: 1fr;
  }

  .review-record > :not(.queue-select) {
    grid-column: auto;
  }

  .queue-select {
    grid-row: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 0;
    padding-bottom: 10px;
  }

  .wide {
    grid-column: auto;
  }

  .panel,
  .ops-panel {
    padding: 16px;
  }

  .compact-stats,
  .project-stats,
  dl {
    grid-template-columns: 1fr;
  }

  .project-card-head,
  .project-card-foot,
  .mission-heading,
  .mission-dataset-head,
  .mission-dataset-foot,
  .monitor-run-head,
  .monitor-run-foot,
  .monitor-job-summary {
    flex-direction: column;
  }

  .mission-overall {
    justify-items: start;
  }

  .mission-summary-grid,
  .mission-dataset-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .automation-incident,
  .automation-clear {
    grid-template-columns: 1fr;
  }

  .mission-score {
    width: 100%;
    justify-content: space-between;
  }

  .monitor-run-stats {
    grid-template-columns: 1fr;
  }

  .monitor-event-list {
    max-height: none;
  }
}
