.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 42px;
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(10, 15, 30, 0.72);
  box-shadow: 0 24px 44px rgba(3, 7, 18, 0.18);
  backdrop-filter: blur(14px);
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 38%),
    radial-gradient(circle at 16% 18%, rgba(96, 165, 250, 0.08), transparent 26%);
  pointer-events: none;
}

.page-header-copy {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.page-header-actions,
.page-meta,
.card-meta,
.card-actions,
.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-header-actions > form,
.site-row-actions > form,
.client-card-actions > form,
.card-actions > form,
.card-meta > form {
  display: inline-flex;
}

button[disabled],
.primary-btn[disabled],
.ghost-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 22%, rgba(124, 92, 255, 0.16), transparent 30%),
    radial-gradient(circle at 20% 16%, rgba(96, 165, 250, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(10, 15, 30, 0.76);
  box-shadow: 0 26px 48px rgba(3, 7, 18, 0.22);
  backdrop-filter: blur(14px);
}

.dashboard-hero::before,
.run-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 42%);
  pointer-events: none;
}

.dashboard-hero-copy {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.dashboard-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.error-page-shell {
  display: grid;
  gap: 28px;
}

.error-hero {
  align-items: stretch;
  flex-wrap: wrap;
}

.error-hero-copy {
  max-width: 720px;
  min-width: 0;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.error-code-card {
  flex: 0 0 220px;
  min-width: 220px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: 24px 26px;
  border: 1px solid rgba(124, 92, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(124, 92, 255, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(8, 12, 24, 0.72);
  box-shadow: var(--shadow-soft);
}

.error-code-label,
.error-code-note {
  color: var(--muted);
}

.error-code-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.error-code-value {
  font-size: clamp(72px, 10vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

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

.error-grid > * {
  grid-column: span 12;
}

.error-help-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.error-help-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.error-help-item strong {
  font-size: 16px;
}

.error-help-item span {
  color: var(--muted);
}

.dashboard-summary-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 84% 18%, rgba(124, 92, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(10, 15, 30, 0.88), rgba(7, 12, 24, 0.96));
  box-shadow: 0 26px 44px rgba(5, 10, 24, 0.18);
  backdrop-filter: blur(14px);
}

.summary-stat {
  display: grid;
  gap: 9px;
  padding: 18px 20px 17px;
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.016);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.summary-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  right: -8px;
  width: 1px;
  height: calc(100% - 28px);
  background: rgba(255, 255, 255, 0.06);
}

.summary-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.9), rgba(96, 165, 250, 0.3));
  opacity: 0.75;
}

.summary-stat:nth-child(2)::before {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.88), rgba(108, 99, 255, 0.22));
}

.summary-stat:nth-child(3)::before {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.8), rgba(52, 211, 153, 0.18));
}

.summary-stat:nth-child(4)::before {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.8), rgba(167, 139, 250, 0.18));
}

.summary-stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-stat-value {
  font-size: clamp(30px, 4vw, 36px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  text-shadow: 0 8px 20px rgba(5, 10, 24, 0.14);
  font-variant-numeric: tabular-nums lining-nums;
}

.summary-stat-sub {
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.58;
}

.dashboard-main-grid {
  align-items: start;
}

.dashboard-column {
  display: grid;
  gap: 0;
  align-content: start;
  min-height: 0;
}

.dashboard-section-panel {
  display: grid;
  gap: 22px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(10, 15, 30, 0.9), rgba(7, 12, 24, 0.98));
  box-shadow: 0 28px 44px rgba(5, 10, 24, 0.2);
}

.dashboard-section-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 38%);
  pointer-events: none;
}

.dashboard-section-panel-scroll {
  min-height: 0;
}

.dashboard-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-section-head .panel-header-copy {
  gap: 12px;
}

.activity-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -4px;
}

.activity-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.014)),
    rgba(255, 255, 255, 0.012);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition:
    transform 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}

.activity-filter-chip:hover {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: rgba(108, 99, 255, 0.18);
  background: rgba(108, 99, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(108, 99, 255, 0.06);
}

.activity-filter-chip.is-active {
  color: #ede9fe;
  border-color: rgba(108, 99, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(108, 99, 255, 0.2), rgba(108, 99, 255, 0.08));
  box-shadow:
    inset 0 0 0 1px rgba(108, 99, 255, 0.08),
    0 10px 18px rgba(76, 57, 170, 0.12);
}

.activity-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: currentColor;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.dashboard-grid,
.metrics-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.content-grid.two-column {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.content-grid.two-column > .panel,
.content-grid.two-column > [class*="grid-span-"] {
  align-self: start;
}

.content-grid.two-column > .panel {
  min-height: 0;
  height: auto;
}

.dashboard-grid > *,
.content-grid.two-column > *,
.metrics-grid > *,
.stats-grid > * {
  min-width: 0;
}

.metrics-grid,
.stats-grid {
  margin-bottom: 32px;
}

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

.metrics-grid > * ,
.stats-grid > * {
  grid-column: span 3;
}

.metrics-grid-three > * {
  grid-column: span 4;
}

.grid-span-12 {
  grid-column: span 12;
}

.grid-span-8 {
  grid-column: span 8;
}

.grid-span-6 {
  grid-column: span 6;
}

.grid-span-4 {
  grid-column: span 4;
}

.grid-span-3 {
  grid-column: span 3;
}

.metric-value {
  display: block;
  margin: 10px 0 4px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-subtitle {
  font-size: 14px;
}

.single-column-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-detail-header {
  width: min(1100px, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
}

.site-detail-flow {
  gap: 28px;
  padding-top: 2px;
}

.site-detail-top {
  display: grid;
  gap: 18px;
}

.site-detail-flow > section[id] {
  scroll-margin-top: 168px;
}

.site-detail-integrations {
  gap: 16px;
  align-items: stretch;
}

.site-detail-integrations .integration-card {
  min-height: 100%;
}

.section-nav {
  position: sticky;
  top: 82px;
  z-index: 8;
  display: grid;
  gap: 10px;
  padding: 12px;
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(12, 18, 34, 0.94));
  box-shadow: 0 16px 34px rgba(5, 10, 24, 0.14);
  backdrop-filter: blur(14px);
  transition:
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.section-nav.is-stuck {
  border-color: rgba(108, 99, 255, 0.12);
  box-shadow: 0 20px 40px rgba(5, 10, 24, 0.2);
  background:
    linear-gradient(180deg, rgba(15, 21, 38, 0.96), rgba(11, 16, 31, 0.98));
}

.section-nav-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 4px;
}

.section-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.section-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.section-nav-link::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.22;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    background-color 0.16s ease;
}

.section-nav-link:hover {
  color: #ffffff;
  border-color: rgba(108, 99, 255, 0.2);
  background: rgba(108, 99, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(108, 99, 255, 0.08);
  transform: translateY(-1px);
}

.section-nav-link:hover::before {
  opacity: 0.5;
  transform: scale(1.08);
}

.section-nav-link.is-active,
.section-nav-link[aria-current="true"] {
  color: #ddd6fe;
  border-color: rgba(108, 99, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(108, 99, 255, 0.18), rgba(108, 99, 255, 0.08));
  box-shadow:
    inset 0 0 0 1px rgba(108, 99, 255, 0.1),
    0 8px 18px rgba(108, 99, 255, 0.1);
}

.section-nav-link.is-active::before,
.section-nav-link[aria-current="true"]::before {
  opacity: 1;
  background: #8b5cf6;
}

.site-detail-panel {
  width: 100%;
  padding: 26px;
  gap: 20px;
}

.site-detail-panel .panel-header {
  margin-bottom: 0;
}

.site-run-panel .stack-form {
  gap: 0;
}

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

.site-run-panel .run-module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.site-run-panel {
  padding: 28px;
  border-color: rgba(108, 99, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(108, 99, 255, 0.06), rgba(108, 99, 255, 0.02)),
    rgba(13, 19, 37, 0.94);
  box-shadow: 0 20px 38px rgba(4, 9, 22, 0.18);
}

.run-setup-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.028);
}

.run-setup-intro-copy {
  display: grid;
  gap: 8px;
  max-width: 640px;
}

.run-setup-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.run-setup-pill-row .tag {
  border-color: rgba(124, 92, 255, 0.16);
  background: rgba(124, 92, 255, 0.08);
  color: #ddd6fe;
}

.run-steps {
  display: grid;
  gap: 22px;
}

.run-step-card {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.018);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 28px rgba(5, 10, 24, 0.12);
  overflow: hidden;
}

.run-step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0), rgba(124, 92, 255, 0.28), rgba(96, 165, 250, 0.18), rgba(124, 92, 255, 0));
  pointer-events: none;
}

.run-step-card-range {
  border-color: rgba(148, 163, 184, 0.14);
}

.run-step-card-modules {
  border-color: rgba(124, 92, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.06), rgba(255, 255, 255, 0.012) 34%),
    rgba(255, 255, 255, 0.018);
}

.run-step-card-cta {
  align-items: start;
  background:
    linear-gradient(180deg, rgba(108, 99, 255, 0.12), rgba(108, 99, 255, 0.03)),
    rgba(255, 255, 255, 0.022);
  border-color: rgba(124, 92, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 18px 34px rgba(39, 27, 91, 0.16);
}

.run-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.run-step-copy {
  display: grid;
  gap: 6px;
  flex: 1 1 auto;
}

.run-step-copy .page-note {
  max-width: 640px;
}

.site-run-panel .field-wrap {
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.014)),
    rgba(255, 255, 255, 0.015);
}

.site-run-panel .field-label {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-run-panel .field-wrap input {
  min-height: 48px;
}

.date-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0 2px;
}

.date-preset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  transition:
    transform 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}

.date-preset-btn:hover {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: rgba(108, 99, 255, 0.22);
  background: rgba(108, 99, 255, 0.08);
}

.date-preset-btn.is-active {
  color: #ede9fe;
  border-color: rgba(108, 99, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(108, 99, 255, 0.22), rgba(108, 99, 255, 0.1));
  box-shadow:
    inset 0 0 0 1px rgba(108, 99, 255, 0.08),
    0 10px 22px rgba(32, 23, 73, 0.14);
}

.run-step-copy h3 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.run-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(108, 99, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(108, 99, 255, 0.18), rgba(108, 99, 255, 0.09)),
    rgba(15, 23, 42, 0.42);
  color: #ddd6fe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.run-step-requirement {
  border-color: rgba(124, 92, 255, 0.18);
  background: rgba(124, 92, 255, 0.08);
  color: #ddd6fe;
}

.run-step-footnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.run-step-footnote .tag,
.run-step-cta-meta .tag {
  min-height: 28px;
  padding-inline: 10px;
  font-size: 11px;
}

.run-step-cta-meta {
  gap: 10px;
}

.run-step-cta-meta .tag {
  border-color: rgba(124, 92, 255, 0.14);
  background: rgba(124, 92, 255, 0.07);
  color: #ddd6fe;
}

.setup-warning-list {
  display: grid;
  gap: 10px;
}

.setup-warning-item {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.018);
}

.setup-warning-item strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.setup-warning-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.setup-warning-item.tone-pending {
  border-color: rgba(245, 158, 11, 0.16);
  background: rgba(45, 26, 5, 0.26);
}

.setup-warning-item.tone-inactive {
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(30, 41, 59, 0.28);
}

.setup-warning-item.tone-info {
  border-color: rgba(108, 99, 255, 0.14);
  background: rgba(108, 99, 255, 0.08);
}

.run-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(124, 92, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 14px 28px rgba(19, 14, 47, 0.12);
}

.run-step-actions-copy {
  display: grid;
  gap: 6px;
  max-width: 520px;
}

.run-step-actions-copy strong {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.25;
}

.run-step-actions .form-actions {
  margin-top: 0;
  flex: 0 0 auto;
}

.site-run-panel .form-actions .primary-btn {
  min-width: 196px;
  min-height: 50px;
  font-size: 15px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 30px rgba(76, 57, 170, 0.28);
}

.site-run-panel .run-module-selector {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.site-runs-panel .run-list {
  gap: 14px;
}

.site-ai-panel .prompt-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.site-ai-panel .prompt-card {
  min-height: 100%;
}

.site-ai-meta {
  align-items: center;
}

.ai-page-shell {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 26px;
}

.ai-page-header,
.ai-secondary-section {
  width: min(1100px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.ai-page-header {
  margin-bottom: 0;
}

.ai-kpi-row {
  margin-bottom: 0;
}

.ai-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 26px;
  align-items: start;
}

.ai-main-panel,
.ai-summary-panel,
.ai-new-prompt-section,
.ai-history-section {
  gap: 22px;
}

.ai-main-panel .panel-header,
.ai-summary-panel .panel-header,
.ai-new-prompt-section .panel-header,
.ai-history-section .panel-header {
  margin-bottom: 0;
}

.ai-summary-panel {
  position: sticky;
  top: 110px;
  align-self: start;
}

.ai-summary-stack {
  display: grid;
  gap: 16px;
}

.ai-summary-list {
  gap: 10px;
}

.ai-summary-list div {
  padding: 12px 14px;
}

.ai-summary-list dt {
  font-size: 11px;
}

.ai-prompt-list {
  gap: 14px;
}

.ai-prompt-card {
  gap: 15px;
  padding: 20px;
}

.ai-prompt-meta {
  gap: 10px;
}

.ai-new-prompt-section {
  margin-top: 0;
}

.ai-history-list {
  gap: 14px;
}

.ai-secondary-section {
  width: min(1100px, 100%);
  margin: 24px auto 0;
  gap: 22px;
}

.ai-results-section,
.ai-log-section,
.ai-observations-section {
  position: relative;
  overflow: hidden;
}

.ai-results-section .panel-header,
.ai-log-section .panel-header,
.ai-observations-section .panel-header {
  margin-bottom: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-results-grid,
.ai-observation-list {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.ai-result-card,
.ai-observation-card {
  gap: 14px;
  padding: 22px;
}

.ai-result-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.012)),
    rgba(15, 23, 42, 0.84);
}

.ai-result-head,
.ai-observation-card .item-top {
  margin-bottom: 0;
}

.ai-result-score {
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--muted-strong);
}

.ai-result-flags,
.ai-observation-meta,
.ai-observation-links {
  align-items: center;
  gap: 8px;
}

.ai-result-summary,
.ai-observation-note,
.ai-observation-excerpt {
  color: var(--muted-strong);
  line-height: 1.68;
}

.ai-observation-note + .ai-observation-excerpt {
  margin-top: -4px;
}

.ai-citation-list,
.ai-observation-links {
  padding-top: 2px;
}

.ai-log-box {
  max-height: 420px;
  padding: 20px 22px;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(108, 99, 255, 0.04);
}

.clients-shell {
  width: min(1020px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 30px;
}

.client-access-header {
  margin-bottom: 0;
}

.client-access-header .page-header-copy {
  max-width: 760px;
}

.client-summary-bar {
  margin-bottom: 0;
}

.client-summary-bar .summary-stat {
  gap: 4px;
  padding: 16px 18px;
}

.client-summary-bar .summary-stat-value {
  font-size: 28px;
}

.clients-directory {
  gap: 28px;
  padding: 28px;
  border-radius: 22px;
}

.clients-directory-header {
  margin-bottom: 0;
  align-items: center;
}

.clients-directory-header .page-note {
  max-width: 560px;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 420px));
  justify-content: center;
  gap: 22px;
  align-items: start;
}

.client-access-card {
  display: grid;
  gap: 18px;
  min-height: 100%;
  padding: 24px 24px 22px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.012)),
    rgba(13, 19, 37, 0.88);
  box-shadow: 0 22px 38px rgba(5, 10, 24, 0.16);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.client-access-card:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 99, 255, 0.2);
  box-shadow: 0 24px 40px rgba(5, 10, 24, 0.18);
}

.client-access-card-top,
.client-sites-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.client-access-identity {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.client-access-card .item-title {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.client-access-email,
.client-site-url {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.client-access-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.85fr));
  gap: 10px;
}

.client-access-meta-item {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 84px;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.024);
}

.client-access-meta-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-access-meta-value {
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.client-sites-block {
  display: grid;
  gap: 14px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.client-site-list {
  display: grid;
  gap: 10px;
}

.client-site-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.018);
}

.client-site-copy {
  display: grid;
  gap: 6px;
}

.client-site-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.client-site-name {
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.client-site-flags,
.client-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.client-card-actions {
  justify-content: flex-start;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.client-card-actions form {
  margin: 0;
}

.client-card-actions .ghost-btn.small {
  min-height: 36px;
  padding: 8px 13px;
}

.client-toggle-btn.is-danger {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.08);
  color: #fecaca;
}

.client-toggle-btn.is-danger:hover {
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.12);
  color: #ffffff;
}

.client-empty-inline {
  padding: 14px 16px;
  border-style: solid;
  background: rgba(255, 255, 255, 0.015);
}

.client-directory-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px;
}

.client-directory-empty-copy {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.site-row-list,
.activity-stream {
  display: grid;
  gap: 14px;
}

.dashboard-scroll-region,
.site-row-list,
.activity-stream,
.dashboard-section-panel-activity {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.38) transparent;
}

.dashboard-scroll-region::-webkit-scrollbar,
.site-row-list::-webkit-scrollbar,
.activity-stream::-webkit-scrollbar,
.dashboard-section-panel-activity::-webkit-scrollbar {
  width: 10px;
}

.dashboard-scroll-region::-webkit-scrollbar-track,
.site-row-list::-webkit-scrollbar-track,
.activity-stream::-webkit-scrollbar-track,
.dashboard-section-panel-activity::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-scroll-region::-webkit-scrollbar-thumb,
.site-row-list::-webkit-scrollbar-thumb,
.activity-stream::-webkit-scrollbar-thumb,
.dashboard-section-panel-activity::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.34);
  background-clip: padding-box;
}

.dashboard-scroll-region::-webkit-scrollbar-thumb:hover,
.site-row-list::-webkit-scrollbar-thumb:hover,
.activity-stream::-webkit-scrollbar-thumb:hover,
.dashboard-section-panel-activity::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 139, 250, 0.42);
  background-clip: padding-box;
}

.site-row-card {
  display: grid;
  gap: 18px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.012)),
    rgba(10, 15, 30, 0.84);
  box-shadow: 0 18px 34px rgba(5, 10, 24, 0.14);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.site-row-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.24);
  box-shadow: 0 22px 36px rgba(5, 10, 24, 0.2);
}

.site-row-head,
.site-row-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.site-row-copy {
  display: grid;
  gap: 13px;
  min-width: 0;
}

.site-row-title {
  color: var(--text);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.site-row-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.site-row-url {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.site-row-url:hover {
  color: #c9d2ff;
}

.site-row-meta,
.activity-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.site-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.site-module-card {
  display: grid;
  gap: 11px;
  min-height: 96px;
  padding: 17px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.015);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.site-module-detail {
  line-height: 1.58;
}

.site-module-card-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-module-name {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-module-state {
  font-size: 12px;
  color: var(--muted);
}

.site-module-detail {
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.site-module-card.state-ready {
  border-color: rgba(16, 185, 129, 0.18);
  background: rgba(2, 44, 34, 0.35);
}

.site-module-card.state-ready .site-module-state {
  color: #34d399;
}

.site-module-card.state-pending {
  border-color: rgba(245, 158, 11, 0.16);
  background: rgba(45, 26, 5, 0.3);
}

.site-module-card.state-pending .site-module-state {
  color: #fbbf24;
}

.site-module-card.state-inactive {
  background: rgba(31, 41, 55, 0.68);
}

.site-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 13px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  box-shadow: 0 10px 20px rgba(5, 10, 24, 0.14);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.site-action-btn-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

.site-action-btn-primary {
  border-color: rgba(124, 92, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.22), rgba(124, 92, 255, 0.14)),
    rgba(124, 92, 255, 0.1);
  color: #f5f3ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 24px rgba(76, 57, 170, 0.2);
}

.site-action-btn-secondary {
  color: #cbd5e1;
}

.site-action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 92, 255, 0.2);
  box-shadow: 0 14px 28px rgba(5, 10, 24, 0.2);
  background: rgba(255, 255, 255, 0.055);
}

.site-action-btn-primary:hover {
  border-color: rgba(124, 92, 255, 0.4);
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.3), rgba(124, 92, 255, 0.18)),
    rgba(124, 92, 255, 0.14);
  color: #ffffff;
}

.site-action-btn-secondary:hover {
  background: rgba(124, 92, 255, 0.08);
  color: #ffffff;
}

.row-primary-link,
.row-action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.16s ease, transform 0.16s ease;
}

.row-primary-link {
  color: #d8d4ff;
}

.row-primary-link:hover,
.row-action-link:hover {
  transform: translateY(-1px);
}

.row-action-link {
  color: var(--muted);
}

.row-primary-link:hover,
.row-action-link:hover {
  color: #ffffff;
}

.site-row-progress {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.site-row-progress-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.activity-item-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.012)),
    rgba(10, 15, 30, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.activity-item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.22);
  background: rgba(14, 21, 40, 0.94);
  box-shadow: 0 18px 30px rgba(5, 10, 24, 0.16);
  outline: 1px solid rgba(124, 92, 255, 0.04);
}

.empty-state {
  display: grid;
  gap: 6px;
}

.empty-state strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
}

.empty-state span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.activity-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.activity-item-time {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.status.with-indicator {
  gap: 8px;
}

.status.with-indicator::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.92;
}

.status.running.with-indicator::before {
  animation: dashboardPulse 1.8s ease-in-out infinite;
}

@keyframes dashboardPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

.site-list,
.run-list,
.artifact-list,
.prompt-list {
  display: grid;
  gap: 16px;
}

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

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

.card-grid-two > .empty-state,
.card-grid-three > .empty-state {
  grid-column: 1 / -1;
}

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

.integration-grid > * {
  grid-column: span 4;
}

.integration-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.integration-grid.compact > * {
  grid-column: auto;
}

.integration-card {
  justify-content: space-between;
  padding: 22px;
  border-radius: 18px;
}

.integration-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.integration-name {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.integration-title {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.integration-detail {
  font-size: 14px;
  line-height: 1.6;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: 8px 0 4px;
  margin-bottom: 32px;
}

.landing-copy {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.preview-card {
  display: grid;
  gap: 16px;
}

.preview-item {
  display: grid;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.preview-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.preview-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-section {
  margin-bottom: 32px;
}

.section-head {
  display: grid;
  gap: 8px;
  max-width: 640px;
  margin-bottom: 20px;
}

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

.feature-card {
  justify-content: space-between;
}

.feature-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.feature-card p {
  margin-top: 10px;
  color: var(--muted-strong);
  line-height: 1.6;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.contact-copy {
  display: grid;
  gap: 12px;
}

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

.contact-item {
  padding: 18px;
  background: rgba(255, 255, 255, 0.01);
}

.contact-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-wrap {
  min-height: calc(100vh - 148px);
  display: grid;
  place-items: center;
  padding: 28px 0 20px;
}

.auth-layout {
  width: min(940px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.auth-intro,
.auth-form-card {
  display: grid;
  gap: 20px;
}

.auth-intro {
  align-content: center;
  max-width: 380px;
}

.auth-form-card-single {
  width: min(520px, 100%);
}

.auth-form {
  display: grid;
  gap: 18px;
}

.card-actions form {
  margin: 0;
}

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

.run-module-selector,
.run-progress-card {
  display: grid;
  gap: 16px;
}

.run-module-selector {
  padding: 18px;
  border: 1px solid rgba(108, 99, 255, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(108, 99, 255, 0.08), rgba(108, 99, 255, 0.03)),
    rgba(9, 14, 28, 0.56);
}

.run-module-selector-head,
.run-progress-top,
.run-module-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.run-module-grid {
  display: grid;
  gap: 12px;
}

.module-option {
  display: grid;
  gap: 8px;
}

.module-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.module-option-surface {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.014)),
    rgba(255, 255, 255, 0.016);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.module-option:hover .module-option-surface {
  border-color: rgba(108, 99, 255, 0.24);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 24px rgba(5, 10, 24, 0.14);
}

.module-checkbox:focus-visible + .module-option-surface {
  outline: 2px solid rgba(108, 99, 255, 0.82);
  outline-offset: 2px;
}

.module-checkbox:checked + .module-option-surface {
  border-color: rgba(108, 99, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(108, 99, 255, 0.16), rgba(108, 99, 255, 0.06)),
    rgba(14, 19, 38, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 28px rgba(5, 10, 24, 0.22);
}

.module-option.has-error .module-option-surface {
  border-color: rgba(244, 63, 94, 0.28);
}

.module-option-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.module-option-copy {
  display: grid;
  gap: 6px;
}

.module-option-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.module-option-description,
.module-option-help,
.module-option-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.module-option-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.module-option.is-core .module-option-surface {
  border-color: rgba(124, 92, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.08), rgba(255, 255, 255, 0.014)),
    rgba(255, 255, 255, 0.018);
}

.module-option.is-ready:not(.is-core) .module-option-surface {
  border-color: rgba(16, 185, 129, 0.12);
}

.module-option.is-pending .module-option-surface {
  border-color: rgba(148, 163, 184, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.012);
}

.module-option.is-pending .module-option-title,
.module-option.is-pending .module-option-description,
.module-option.is-pending .module-option-note {
  color: rgba(152, 163, 184, 0.88);
}

.module-option-indicator {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid #334155;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 4px transparent;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.module-checkbox:checked + .module-option-surface .module-option-indicator {
  border-color: rgba(108, 99, 255, 0.62);
  background: rgba(108, 99, 255, 0.92);
  box-shadow: inset 0 0 0 4px rgba(9, 14, 28, 0.9);
}

.module-option .status-badge {
  min-height: 28px;
  padding-inline: 10px;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.module-option .status-badge.is-core {
  background: rgba(124, 92, 255, 0.12);
  color: #e6e0ff;
  border-color: rgba(124, 92, 255, 0.22);
}

.run-progress-card {
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(108, 99, 255, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(108, 99, 255, 0.08), rgba(108, 99, 255, 0.02)),
    rgba(9, 14, 28, 0.54);
}

.run-progress-card.is-active {
  border-color: rgba(108, 99, 255, 0.28);
}

.run-progress-card.status-cancelled {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(71, 85, 105, 0.08), rgba(71, 85, 105, 0.02)),
    rgba(9, 14, 28, 0.54);
}

.run-progress-card.status-failed {
  border-color: rgba(244, 63, 94, 0.18);
  background:
    linear-gradient(180deg, rgba(244, 63, 94, 0.08), rgba(244, 63, 94, 0.02)),
    rgba(9, 14, 28, 0.54);
}

.run-progress-copy {
  display: grid;
  gap: 6px;
}

.run-progress-copy strong,
.run-progress-stat strong {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
}

.run-progress-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.run-progress-stat {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.run-progress-bar,
.run-progress-preview {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.run-progress-bar {
  height: 10px;
}

.run-progress-preview {
  height: 6px;
  margin-top: 4px;
}

.run-progress-bar span,
.run-progress-preview span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6c63ff 0%, #8b5cf6 45%, #a78bfa 100%);
  background-size: 180% 100%;
  box-shadow: 0 0 18px rgba(108, 99, 255, 0.22);
  transition: width 0.28s ease;
}

.run-progress-card.status-cancelled .run-progress-bar span {
  background: linear-gradient(90deg, #64748b 0%, #94a3b8 100%);
  box-shadow: none;
  animation: none;
}

.run-progress-card.status-failed .run-progress-bar span {
  background: linear-gradient(90deg, #fb7185 0%, #ef4444 100%);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.16);
  animation: none;
}

.run-progress-card.is-active .run-progress-bar span,
.site-row-progress .run-progress-preview span,
.activity-item-card .run-progress-preview span {
  animation: progressGlow 2.4s ease-in-out infinite;
}

.run-progress-preview.thin {
  height: 4px;
}

@keyframes progressGlow {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow: 0 0 14px rgba(108, 99, 255, 0.16);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.22);
  }
}

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

.module-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.module-pill.is-selected {
  border-color: rgba(108, 99, 255, 0.22);
  background: rgba(108, 99, 255, 0.12);
  color: #d9d5ff;
}

.run-detail-page {
  --container: 1280px;
}

.run-detail-shell {
  display: grid;
  gap: 30px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.run-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 8px;
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 20%, rgba(124, 92, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(10, 15, 30, 0.74);
  box-shadow: 0 24px 44px rgba(3, 7, 18, 0.18);
  backdrop-filter: blur(14px);
}

.run-detail-hero-copy {
  display: grid;
  gap: 13px;
  min-width: 0;
  max-width: 760px;
}

.run-detail-hero-actions {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.run-detail-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.run-detail-meta-chips {
  gap: 10px;
}

.run-detail-nav {
  position: sticky;
  top: 84px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    rgba(10, 15, 30, 0.88);
  box-shadow: 0 18px 32px rgba(5, 10, 24, 0.16);
  backdrop-filter: blur(14px);
}

.run-detail-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.run-detail-nav-link:hover,
.run-detail-nav-link:focus-visible {
  color: #ffffff;
  border-color: rgba(124, 92, 255, 0.2);
  background: rgba(124, 92, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.08);
  transform: translateY(-1px);
}

.run-detail-nav-link.is-active,
.run-detail-nav-link[aria-current="true"] {
  color: #ddd6fe;
  border-color: rgba(124, 92, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.18), rgba(124, 92, 255, 0.08));
  box-shadow:
    inset 0 0 0 1px rgba(124, 92, 255, 0.1),
    0 8px 18px rgba(124, 92, 255, 0.1);
}

.run-detail-top-grid,
.run-detail-metrics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.run-detail-panel {
  padding: 28px;
}

.run-detail-status-panel,
.run-detail-artifacts-panel {
  min-height: 100%;
}

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

.run-detail-meta-list div,
.run-detail-metrics-list div {
  min-height: 76px;
  align-content: center;
}

.run-detail-meta-list dd,
.run-detail-metrics-list dd {
  line-height: 1.55;
}

.detail-value-path {
  color: var(--muted-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.run-detail-artifacts-body {
  display: grid;
  gap: 18px;
  min-height: 100%;
}

.artifact-cta-stack {
  display: grid;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.artifact-scroll-list {
  max-height: 500px;
  overflow-y: auto;
  align-content: start;
  padding-right: 8px;
  margin-right: -4px;
  scrollbar-gutter: stable;
}

.artifact-scroll-list .artifact-link {
  min-height: 46px;
  justify-content: flex-start;
  padding: 12px 14px;
}

.artifact-link-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-detail-log-panel {
  padding-bottom: 22px;
}

.run-detail-log-box {
  max-height: 480px;
  min-height: 260px;
  padding: 20px 22px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(7, 10, 20, 0.94), rgba(10, 14, 28, 0.98));
  border-color: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  line-height: 1.75;
}

.run-detail-snapshot-list {
  gap: 14px;
}

.run-detail-snapshot-card {
  padding: 18px;
  min-height: 0;
}

.run-detail-shell > section[id] {
  scroll-margin-top: 154px;
}

@media (min-width: 769px) {
  .dashboard-main-grid {
    --dashboard-panel-offset: 320px;
    align-items: stretch;
  }

  .dashboard-main-grid > .dashboard-column {
    min-height: 0;
  }

  .dashboard-main-grid > .dashboard-column > .dashboard-section-panel-scroll {
    height: calc(100vh - var(--dashboard-panel-offset));
    max-height: calc(100vh - var(--dashboard-panel-offset));
  }

  .dashboard-section-panel-sites {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .dashboard-section-panel-sites .site-row-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 8px;
    margin-right: -4px;
    align-content: start;
    scrollbar-gutter: stable;
  }

  .dashboard-section-panel-activity {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 14px;
    scrollbar-gutter: stable;
  }

  .dashboard-section-panel-activity .activity-stream {
    align-content: start;
  }

  .dashboard-section-head-sticky {
    position: sticky;
    top: -22px;
    z-index: 3;
    margin: -22px -14px 0 -22px;
    padding: 22px 14px 18px 22px;
    background:
      linear-gradient(
        180deg,
        rgba(17, 24, 39, 0.98) 0%,
        rgba(15, 22, 40, 0.96) 76%,
        rgba(15, 22, 40, 0.86) 100%
      );
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
  }

  .run-detail-artifacts-panel .panel-header {
    position: sticky;
    top: -26px;
    z-index: 2;
    margin: -26px -26px 0;
    padding: 26px 26px 18px;
    background:
      linear-gradient(
        180deg,
        rgba(17, 24, 39, 0.98) 0%,
        rgba(15, 22, 40, 0.96) 76%,
        rgba(15, 22, 40, 0.88) 100%
      );
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
  }
}

@media (max-width: 768px) {
  .dashboard-grid,
  .content-grid.two-column,
  .page-header,
  .landing-hero,
  .auth-layout,
  .contact-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .grid-span-12,
  .grid-span-8,
  .grid-span-6,
  .grid-span-4,
  .grid-span-3 {
    grid-column: span 1;
  }

  .metrics-grid,
  .metrics-grid-three,
  .stats-grid,
  .feature-grid,
  .integration-grid,
  .integration-grid.compact,
  .contact-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .card-grid-two,
  .card-grid-three {
    grid-template-columns: 1fr;
  }

  .integration-grid > *,
  .integration-grid.compact > * {
    grid-column: span 1;
  }

  .single-column-layout {
    gap: 20px;
  }

  .ai-page-shell {
    gap: 20px;
  }

  .ai-page-grid {
    grid-template-columns: 1fr;
  }

  .ai-results-grid,
  .ai-observation-list {
    grid-template-columns: 1fr;
  }

  .ai-summary-panel {
    position: static;
  }

  .site-detail-header {
    margin-bottom: 6px;
  }

  .site-detail-top {
    gap: 14px;
  }

  .site-detail-flow > section[id] {
    scroll-margin-top: 146px;
  }

  .section-nav {
    top: 72px;
    gap: 8px;
    padding: 10px;
    scrollbar-width: none;
  }

  .section-nav::-webkit-scrollbar {
    display: none;
  }

  .section-nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    margin-bottom: -2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .section-nav-links::-webkit-scrollbar {
    display: none;
  }

  .section-nav-link {
    flex: 0 0 auto;
  }

  .activity-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    margin-bottom: -2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .activity-filter-row::-webkit-scrollbar {
    display: none;
  }

  .site-detail-panel {
    padding: 22px 18px;
  }

  .site-run-panel {
    padding: 22px 18px;
  }

  .run-setup-intro,
  .run-step-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .run-setup-pill-row {
    justify-content: flex-start;
  }

  .site-run-panel .form-grid,
  .site-run-panel .run-module-grid,
  .site-ai-panel .prompt-list {
    grid-template-columns: 1fr;
  }

  .run-step-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .date-preset-row {
    gap: 8px;
  }

  .page-header {
    gap: 16px;
    margin-bottom: 24px;
  }

  .dashboard-hero,
  .dashboard-section-head,
  .site-row-head,
  .site-row-footer,
  .site-row-actions,
  .client-access-card-top,
  .client-sites-head,
  .client-site-title-row,
  .clients-directory-header,
  .client-directory-empty {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .dashboard-section-panel-scroll,
  .dashboard-main-grid > .dashboard-column > .dashboard-section-panel-scroll {
    height: auto;
    max-height: none;
  }

  .site-row-list,
  .activity-stream,
  .dashboard-section-panel-activity {
    overflow: visible;
    margin-right: 0;
    padding-right: 0;
  }

  .summary-stat {
    padding: 16px 14px;
  }

  .summary-stat:not(:last-child)::after {
    display: none;
  }

  .site-module-grid {
    grid-template-columns: 1fr;
  }

  .clients-shell {
    gap: 24px;
  }

  .clients-directory {
    padding: 22px 18px;
  }

  .client-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .client-access-meta-grid {
    grid-template-columns: 1fr;
  }

  .site-row-actions {
    justify-content: flex-start;
  }

  .metric-value {
    font-size: 24px;
  }

  .run-module-selector-head,
  .run-progress-top,
  .run-module-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .run-progress-stat {
    justify-items: start;
    text-align: left;
  }

  .run-detail-shell {
    gap: 22px;
  }

  .run-detail-hero,
  .run-detail-hero-actions {
    display: grid;
    justify-items: start;
    gap: 16px;
  }

  .run-detail-action-row {
    justify-content: flex-start;
  }

  .run-detail-nav {
    top: 72px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .run-detail-nav::-webkit-scrollbar {
    display: none;
  }

  .run-detail-nav-link {
    flex: 0 0 auto;
  }

  .run-detail-top-grid,
  .run-detail-metrics-grid,
  .run-detail-meta-list {
    grid-template-columns: 1fr;
  }

  .run-detail-panel {
    padding: 22px 18px;
  }

  .artifact-scroll-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
    margin-right: 0;
  }

  .run-detail-log-box {
    min-height: 180px;
    max-height: 360px;
    padding: 16px;
  }

  .error-code-card {
    min-width: 0;
  }
}
