.subsite-panel {
  margin-top: 28px;
  scroll-margin-top: 20px;
}

.setup-page {
  display: none;
}

.setup-page .setup-card {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.rule-form-grid label.mode-field {
  display: block;
  margin: 0;
}

.rule-form-grid label.mode-field > span {
  display: block;
  margin: 0 0 6px;
  color: rgba(245,247,251,0.52);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rule-form-grid label.mode-field input,
.rule-form-grid label.mode-field select {
  margin-top: 0;
}

.mode-field {
  transition: opacity .18s ease, filter .18s ease;
}

.mode-field.field-disabled {
  opacity: .38;
  filter: grayscale(.7);
}

.mode-field.field-disabled input,
.mode-field.field-disabled select {
  cursor: not-allowed;
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.07);
}

.rule-summary {
  align-items: flex-start;
  padding: 14px;
}

.rule-summary > div {
  width: 100%;
}

.rule-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rule-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: rgba(245,247,251,0.68);
  font-size: 0.72rem;
  font-weight: 700;
}

.rule-active .rule-chip {
  background: rgba(52,245,166,0.18);
  color: #34f5a6;
}

.rule-inactive .rule-chip {
  background: rgba(255,255,255,0.08);
  color: rgba(245,247,251,0.48);
}

.rule-summary small {
  display: block;
  margin-top: 6px;
  color: rgba(245,247,251,0.42);
}

@media (max-width: 980px) {
  .topbar-actions .ghost-button {
    padding: 8px 10px;
  }
}