/*
  Shared workbench for new dashboard pages. First consumer is Blocked
  phishing domains; wrap a page in .eo-ui so Infusion / Skeleton stay
  untouched. z_ prefix loads this after Skeleton so input rules win.
*/
.eo-ui {
  --eo-ink: #1c2430;
  --eo-muted: #5c6778;
  --eo-line: #d5dce6;
  --eo-wash: #eef1f4;
  --eo-surface: #ffffff;
  --eo-go: #215c3d;
  --eo-go-hover: #184832;
  --eo-stop: #8a2424;
  --eo-stop-hover: #6e1c1c;
  --eo-ok-bg: #e7f2eb;
  --eo-ok-ink: #184832;
  --eo-err-bg: #f8eaea;
  --eo-err-ink: #6e1c1c;
  --eo-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --eo-sans: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  box-sizing: border-box;
  max-width: 1040px;
  margin: 4px 0 36px;
  padding: 4px 2px 0;
  color: var(--eo-ink);
  font-family: var(--eo-sans);
}

.eo-ui *,
.eo-ui *::before,
.eo-ui *::after {
  box-sizing: border-box;
}

.eo-intro {
  margin: 0 0 28px;
}

.eo-eyebrow {
  margin: 0 0 6px;
  color: var(--eo-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.eo-title {
  margin: 0 0 10px;
  color: var(--eo-ink);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.eo-lede {
  margin: 0;
  max-width: 62ch;
  color: var(--eo-muted);
  font-size: 15px;
  line-height: 1.5;
}

.eo-work {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.eo-panel {
  padding: 22px 22px 20px;
  background: var(--eo-surface);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(28, 36, 48, 0.06), 0 8px 24px rgba(28, 36, 48, 0.04);
}

.eo-section-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 650;
}

.eo-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.eo-section-head .eo-section-title {
  margin: 0;
}

.eo-hint {
  margin: 0;
  color: var(--eo-muted);
  font-size: 13px;
}

.eo-fields {
  display: grid;
  gap: 16px;
}

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

.eo-label {
  color: var(--eo-ink);
  font-size: 13px;
  font-weight: 600;
}

.eo-field-hint {
  margin: 0;
  color: var(--eo-muted);
  font-size: 12px;
  line-height: 1.4;
}

.eo-ui input.eo-input,
.eo-ui .eo-input {
  width: 100% !important;
  min-height: 44px;
  margin: 0;
  padding: 0 12px !important;
  color: var(--eo-ink);
  font-family: var(--eo-sans);
  font-size: 14px;
  line-height: 1.3;
  background: var(--eo-surface);
  border: 1px solid var(--eo-line) !important;
  border-radius: 8px;
  box-shadow: none;
}

.eo-ui input.eo-input--mono,
.eo-ui .eo-input--mono {
  font-family: var(--eo-mono);
}

.eo-ui input.eo-input::placeholder {
  color: #8a93a0;
  font-family: var(--eo-sans);
}

.eo-ui input.eo-input:focus {
  outline: 2px solid var(--eo-go);
  outline-offset: 2px;
  border-color: var(--eo-go) !important;
}

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

.eo-actions-spacer {
  flex: 1 1 12px;
}

.eo-ui .eo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 112px;
  margin: 0;
  padding: 0 16px;
  font-family: var(--eo-sans);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
}

.eo-ui .eo-btn:focus {
  outline: 2px solid var(--eo-go);
  outline-offset: 2px;
}

.eo-ui .eo-btn--go {
  color: #fff !important;
  background: var(--eo-go);
  border: 1px solid var(--eo-go);
}

.eo-ui .eo-btn--go:hover {
  background: var(--eo-go-hover);
  border-color: var(--eo-go-hover);
}

.eo-ui .eo-btn--stop {
  color: var(--eo-stop) !important;
  background: var(--eo-surface);
  border: 1px solid var(--eo-stop);
}

.eo-ui .eo-btn--stop:hover {
  color: #fff !important;
  background: var(--eo-stop);
}

.eo-ui .eo-btn--quiet {
  color: var(--eo-ink) !important;
  background: var(--eo-wash);
  border: 1px solid var(--eo-line);
}

.eo-ui .eo-btn--quiet:hover {
  background: #e4e8ed;
}

.eo-banner {
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  border-radius: 8px;
}

.eo-banner--ok {
  color: var(--eo-ok-ink);
  background: var(--eo-ok-bg);
}

.eo-banner--error {
  color: var(--eo-err-ink);
  background: var(--eo-err-bg);
}

.eo-ui .eo-grid {
  --ag-font-family: var(--eo-sans);
  --ag-header-background-color: transparent;
  --ag-border-color: #e7ebf0;
  --ag-row-border-color: #e7ebf0;
  --ag-header-foreground-color: var(--eo-ink);
}

.eo-ui .eo-cell-mono {
  font-family: var(--eo-mono);
  font-size: 14px;
}

.eo-ui .eo-cell-muted {
  font-family: var(--eo-sans);
  font-size: 13px;
  color: var(--eo-muted);
}

.eo-ui .eo-row-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 72px;
  margin: 0;
  padding: 0 10px;
  font-family: var(--eo-sans);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  border-radius: 6px;
  cursor: pointer;
}

.eo-ui .eo-row-btn--quiet {
  color: var(--eo-ink);
  background: var(--eo-wash);
  border: 1px solid var(--eo-line);
}

.eo-ui .eo-row-btn--stop {
  color: var(--eo-stop);
  background: var(--eo-surface);
  border: 1px solid var(--eo-stop);
}

@media (max-width: 640px) {
  .eo-title {
    font-size: 22px;
  }

  .eo-panel {
    padding: 18px 16px;
  }

  .eo-ui .eo-btn {
    flex: 1 1 auto;
  }

  .eo-actions-spacer {
    display: none;
  }
}
