:root {
  --page-width: 1280px;
  --content-width: 1280px;
  --form-width: 720px;
  --brand-purple-950: #324235;
  --brand-purple-800: #4c6250;
  --brand-purple-600: #6f8a72;
  --brand-purple-700: #58705b;
  --brand-purple-800-solid: #445646;
  --brand-magenta-500: #a8b79f;
  --brand-gradient: linear-gradient(90deg, var(--brand-purple-600), var(--brand-magenta-500));
  --brand-surface: linear-gradient(120deg, rgba(111, 138, 114, 0.08), rgba(168, 183, 159, 0.05));
  --text-color: #253127;
  --muted-color: #5f6b76;
  --subtle-color: #5f6b61;
  --line-color: #d7d2c5;
  --surface-color: #ffffff;
  --surface-muted: #f5f4ef;
  --surface-strong: #ece9e0;
  --accent-color: var(--brand-purple-600);
  --accent-hover: var(--brand-purple-700);
  --danger-color: #a85c52;
  --danger-surface: #fbefec;
  --success-color: #5e7f63;
  --success-surface: #edf4ed;
  --success-strong: #5e7f63;
  --warning-color: #b89a52;
  --warning-surface: #faf5e8;
  --warning-strong: #b89a52;
  --disabled-color: #8b968d;
  --disabled-surface: #f0eee8;
  --disabled-line: #ddd8ce;
  --info-color: #7a8780;
  --info-surface: #eef2ef;
}

/* Base page */

body {
  margin: 0;
  background: var(--surface-muted);
  color: var(--text-color);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  z-index: 20;
  padding: 8px 10px;
  border: 1px solid var(--line-color);
  background: #fff;
  color: var(--text-color);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.page {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 12px 24px 48px;
}

/* Navigation */

.site-header {
  background: var(--surface-muted);
  border-bottom: 0;
}

.site-header nav {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
}

.site-header a {
  color: var(--text-color);
  text-decoration: none;
}

.nav-primary,
.nav-links,
.nav-auth {
  display: flex;
  align-items: center;
}

.nav-primary {
  min-width: 0;
}

.nav-links {
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li {
  display: flex;
}

.nav-auth {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.nav-auth a,
.toolbar-link,
.home-actions a,
.overview-item a {
  color: var(--text-color);
  text-decoration: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 4px;
  color: var(--muted-color);
  font-weight: 500;
}

.nav-links a:hover,
.nav-auth a:hover {
  color: var(--text-color);
}

.nav-links a.is-active {
  background: rgba(111, 138, 114, 0.12);
  color: var(--brand-purple-800);
}

.nav-user {
  color: var(--subtle-color);
  font-size: 14px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-purple-600);
  outline-offset: 2px;
}

.inline-link,
.table-row-link,
.inline-button,
.breadcrumbs a,
.log-json-button {
  color: var(--accent-color);
}

.inline-link:hover,
.table-row-link:hover,
.inline-button:hover,
.breadcrumbs a:hover,
.log-json-button:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.app-command-band {
  position: relative;
  min-height: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(168, 183, 159, 0.22), transparent 34%),
    linear-gradient(100deg, var(--brand-purple-950) 0%, var(--brand-purple-800) 56%, #6f8a72 100%);
}

.app-command-band::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.app-command-band__topology {
  position: absolute;
  right: 7%;
  bottom: 2px;
  width: 180px;
  height: 12px;
  opacity: 0.03;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1.5px, transparent 2px) 0 8px / 80px 16px repeat-x,
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) 10px 8px / 180px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) 120px 8px / 1px 18px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) 120px 25px / 72px 1px no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1.5px, transparent 2px) 112px 23px / 80px 16px no-repeat;
}

/* Shared page sections */

.page-title {
  max-width: var(--content-width);
  margin: 0 0 20px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
}

.home-intro,
.admin-intro,
.form-card,
.login-card {
  max-width: var(--content-width);
}

.page-hero {
  max-width: var(--content-width);
  position: relative;
  margin: 0 0 6px;
  padding: 0 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.page-hero h1::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--brand-gradient);
}

.page-hero p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted-color);
  line-height: 1.55;
}

.home-intro p,
.admin-copy,
.section-copy {
  margin: 0 0 14px;
  color: var(--muted-color);
}

.home-actions,
.section-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.home-actions {
  margin-top: 24px;
}

.admin-intro {
  margin-bottom: 36px;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 100%;
}

.dashboard-list-panel {
  padding: 0;
}

.dashboard-list-surface {
  border-top: 0;
}

/* Forms */

.login-card,
.form-card {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.login-card {
  max-width: 420px;
  margin: 48px auto 0;
  padding: 22px 24px 24px;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  background: var(--surface-color);
}

.login-form,
.simple-form {
  padding-top: 6px;
}

.form-shell .simple-form {
  max-width: var(--form-width);
}

.compact-form-shell .simple-form {
  max-width: none;
}

.detail-form,
.sensitive-form {
  max-width: 720px;
}

.detail-form input:not([type="hidden"]),
.detail-form select {
  width: 100%;
}

.inline-actions,
.copy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.copy-row input {
  flex: 1 1 320px;
}

.primary-button {
  min-width: 180px;
}

.secondary-button {
  margin-top: 0;
  border-color: var(--line-color);
  background: var(--surface-color);
  color: var(--text-color);
}

.nav-action-button,
.table-action-button {
  min-height: 32px;
  margin-top: 0;
  padding: 6px 12px;
}

.table-action-button.destructive-button {
  border-color: var(--danger-color);
  background: var(--danger-color);
  color: #fff;
}

.busy-indicator {
  margin-left: 12px;
  color: var(--subtle-color);
  font-size: 14px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--line-color);
}

.fact-grid div {
  min-width: 0;
}

.fact-grid dt {
  color: var(--subtle-color);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fact-grid dd {
  margin: 6px 0 0;
  font-size: 18px;
}

.status-dots {
  margin-left: 2px;
  color: var(--subtle-color);
}

.status-dots span {
  opacity: 0.3;
}

.status-dots span.is-active {
  opacity: 1;
}

.sensitive-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-color);
}

.form-error {
  max-width: 720px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #e1c2bc;
  background: var(--danger-surface);
  color: var(--danger-color);
}

/* Login form */

.wild-login-card {
  max-width: 1020px;
  margin-top: 40px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #425345;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(168, 183, 159, 0.24), transparent 30%),
    radial-gradient(circle at bottom right, rgba(111, 138, 114, 0.22), transparent 34%),
    #263228;
  box-shadow: 0 28px 80px rgba(37, 49, 39, 0.24);
}

.wild-login-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 0.95fr);
  min-height: 640px;
}

.wild-login-hero {
  position: relative;
  overflow: hidden;
  color: #fff4ff;
}

.login-artwork {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #324235;
}

.login-artwork__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  display: block;
}

.login-artwork::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(37, 49, 39, 0.46) 0%,
      rgba(37, 49, 39, 0.14) 52%,
      rgba(37, 49, 39, 0.02) 100%
    ),
    linear-gradient(
      0deg,
      rgba(37, 49, 39, 0.58) 0%,
      rgba(37, 49, 39, 0.08) 45%,
      rgba(37, 49, 39, 0.12) 100%
    );
}

.login-artwork__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 52px);
  pointer-events: none;
}

.login-illustration-copy {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.login-product-name {
  width: max-content;
  color: #ffffff;
  font-size: clamp(20px, 2.15vw, 32px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.login-illustration-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 520px;
  margin-top: auto;
  color: #ffffff;
}

.login-illustration-message h1 {
  margin: 0;
  font-size: clamp(27px, 2.95vw, 39px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.login-accent-line {
  width: 46px;
  height: 3px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6f8a72, #a8b79f);
}

.login-illustration-message p {
  margin: 0;
  max-width: 332px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 1.55vw, 20px);
  line-height: 1.68;
  text-wrap: pretty;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.wild-login-panel {
  padding: 36px 34px 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

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

.login-form-content {
  width: 100%;
  max-width: 456px;
  margin: 0 auto;
  padding-top: 68px;
  padding-bottom: 24px;
}

.login-header {
  margin-bottom: 22px;
}

.login-eyebrow {
  margin: 0 0 6px;
  color: var(--brand-purple-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.login-header .resource-title {
  margin: 0 0 8px;
}

.login-header .section-copy {
  max-width: 32ch;
  margin-bottom: 12px;
  color: var(--muted-color);
}

.wild-login-form-title {
  font-size: 33px;
  line-height: 1.04;
}

.login-form .field:first-of-type,
.login-form .field:first-of-type label {
  margin-top: 0;
}

.login-form .field {
  margin-top: 17px;
}

.login-form input:not([type="hidden"]),
.login-form .form-actions button {
  width: 100%;
  box-sizing: border-box;
}

.login-form input:not([type="hidden"]) {
  min-height: 46px;
  padding-inline: 12px;
}

.login-form .form-actions {
  margin-top: 22px;
}

.login-form .form-actions button {
  display: block;
  height: 44px;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.login-note {
  margin: 13px 0 0;
  color: var(--subtle-color);
  font-size: 13px;
}

.login-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  color: var(--subtle-color);
  font-size: 13px;
}

.login-separator::before,
.login-separator::after {
  content: "";
  flex: 1 1 auto;
  border-top: 1px solid var(--line-color);
}

.login-provider-button {
  display: flex;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}

.wild-login-panel .success,
.wild-login-panel .error {
  margin-top: 0;
  margin-bottom: 18px;
}

.wild-login-panel .login-form input:not([type="hidden"]) {
  border-radius: 14px;
  border-color: #c8d1c2;
  background: linear-gradient(180deg, #ffffff, #f7faf5);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.wild-login-panel .login-form input:not([type="hidden"]):focus {
  border-color: var(--brand-purple-600);
  box-shadow: 0 0 0 4px rgba(111, 138, 114, 0.16);
}

.wild-login-panel .login-form .form-actions button,
.wild-login-panel .login-provider-button {
  min-height: 48px;
  border-radius: 14px;
  border-color: var(--brand-purple-700);
  background: linear-gradient(135deg, var(--brand-purple-700), var(--brand-purple-600) 58%, #8ea084);
  box-shadow: 0 14px 28px rgba(88, 112, 91, 0.24);
}

.wild-login-panel .login-provider-button {
  color: #fff;
}

.wild-login-panel .login-separator {
  color: var(--muted-color);
}

.wild-login-panel .login-separator::before,
.wild-login-panel .login-separator::after {
  border-top-color: #d8ddd3;
}

/* Section toolbars */

.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  max-width: 100%;
}

.section-copy {
  max-width: 580px;
}

.nowrap-copy {
  max-width: none;
  white-space: nowrap;
}

.section-count {
  margin: 0;
  color: var(--subtle-color);
  font-size: 14px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--brand-purple-600);
  border-radius: 6px;
  background: var(--brand-purple-600);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.button-link:hover {
  border-color: var(--brand-purple-700);
  background: var(--brand-purple-700);
  text-decoration: none;
}

.button-link:active {
  border-color: var(--brand-purple-800-solid);
  background: var(--brand-purple-800-solid);
}

.button-link:focus-visible {
  outline: 3px solid rgba(111, 138, 114, 0.2);
}

.button-link-secondary {
  border-color: var(--line-color);
  background: var(--surface-color);
  color: #24324a;
}

.button-link-secondary:hover {
  border-color: #c5ccd6;
  background: #f8fafc;
  color: #24324a;
  text-decoration: none;
}

.button-link-danger {
  border-color: var(--danger-color);
  background: var(--danger-color);
  color: #fff;
}

.button-link-danger:hover {
  border-color: #b91c1c;
  background: #b91c1c;
}

.button-link-warning {
  border-color: var(--warning-strong);
  background: var(--warning-strong);
  color: #fff;
}

.button-link-warning:hover {
  border-color: #b86304;
  background: #b86304;
}

.destructive-button {
  border-color: var(--danger-color);
  background: var(--danger-color);
  color: #fff;
}

.warning-button {
  border-color: var(--warning-strong);
  background: var(--warning-strong);
  color: #fff;
}

.success-button {
  border-color: var(--success-strong);
  background: var(--success-strong);
  color: #fff;
}

.admin-list-surface {
  max-width: 100%;
  border-top: 1px solid var(--line-color);
}

.table-panel,
.content-panel,
.empty-state-card,
.form-shell,
.danger-panel {
  max-width: var(--content-width);
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line-color);
  border-radius: 6px;
  background: var(--surface-color);
}

.table-panel {
  padding: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--line-color);
  text-align: left;
  vertical-align: top;
}

.admin-table thead th {
  border-top: 0;
  color: var(--subtle-color);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-table .row-badge {
  margin-left: 0;
  vertical-align: top;
}

.systems-list-table th:nth-child(2),
.systems-list-table td:nth-child(2) {
  text-align: center;
}

.admin-table tbody tr:first-child td {
  border-top: 1px solid var(--line-color);
}

.table-row-link {
  color: var(--accent-color);
}

.table-supporting-text {
  margin: 6px 0 0;
  color: var(--muted-color);
  font-size: 14px;
}

.table-actions {
  white-space: nowrap;
}

.table-actions .inline-form {
  margin-left: 12px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-color);
}

.admin-row-title {
  margin: 0;
  font-size: 18px;
}

.admin-row-copy {
  margin: 4px 0 0;
  color: var(--subtle-color);
  font-size: 14px;
}

.row-badge,
.job-status {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--line-color);
  border-radius: 999px;
  color: var(--subtle-color);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}

.status-active {
  color: var(--brand-purple-700);
  border-color: rgba(111, 138, 114, 0.28);
  background: rgba(111, 138, 114, 0.12);
}

.status-inactive {
  color: var(--subtle-color);
  background: var(--surface-strong);
}

.status-ready {
  color: var(--success-color);
  border-color: rgba(34, 160, 107, 0.28);
  background: var(--success-surface);
}

.status-pending {
  color: var(--warning-color);
  border-color: rgba(217, 119, 6, 0.28);
  background: var(--warning-surface);
}

.status-neutral {
  color: var(--subtle-color);
  border-color: var(--line-color);
  background: var(--surface-color);
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.inline-form {
  display: inline-block;
}

.inline-button {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--accent-color);
  font: inherit;
  line-height: inherit;
  font-weight: 600;
  cursor: pointer;
}

.destructive-button {
  border-color: var(--danger-color);
  background: var(--danger-color);
  color: #fff;
}

.empty-state {
  margin: 0;
  padding: 18px 0;
  color: var(--subtle-color);
}

.technical-check-runs-empty-state {
  padding-left: 12px;
}

.dashboard-section {
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-color);
}

.dashboard-section:first-child {
  padding-top: 12px;
}

.dashboard-section:last-child {
  padding-bottom: 12px;
  border-bottom: 0;
}

.dashboard-section:hover,
.dashboard-section:focus-visible {
  background: rgba(111, 138, 114, 0.06);
}

.dashboard-section__marker {
  align-self: stretch;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(111, 138, 114, 0.24), rgba(168, 183, 159, 0.2));
}

.dashboard-section:hover .dashboard-section__marker,
.dashboard-section:focus-visible .dashboard-section__marker {
  background: linear-gradient(180deg, var(--brand-purple-600), var(--brand-magenta-500));
}

.dashboard-section__content h2 {
  margin: 0;
  font-size: 18px;
}

.dashboard-section__content p {
  margin: 4px 0 0;
  color: var(--subtle-color);
  font-size: 14px;
}

.dashboard-section__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.dashboard-section__actions .row-badge {
  margin-left: 0;
}

.dashboard-section__action {
  color: var(--brand-purple-800);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
}

.dashboard-documentation-panel {
  margin-bottom: 18px;
}

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

.dashboard-summary-grid div {
  padding: 14px 16px;
  border: 1px solid var(--line-color);
  background: var(--surface-color);
  border-radius: 6px;
}

.dashboard-summary-grid dt {
  margin: 0 0 4px;
  color: var(--subtle-color);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-summary-grid dd {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--subtle-color);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--accent-color);
  text-decoration: none;
}

.breadcrumbs-separator {
  color: var(--line-color);
}

.hierarchy-hero,
.hierarchy-header,
.panel-heading,
.danger-panel,
.content-grid,
.form-shell {
  max-width: var(--content-width);
}

.hierarchy-hero,
.hierarchy-header,
.danger-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
}

.hierarchy-hero,
.hierarchy-header {
  margin-bottom: 24px;
}

.eyebrow,
.summary-card-label,
.config-preview-source,
.config-preview-label {
  margin: 0 0 8px;
  color: var(--subtle-color);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resource-title {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.resource-status {
  margin: 10px 0 0;
  color: var(--brand-purple-800);
  font-weight: 600;
}

.hierarchy-facts {
  margin: 0 0 20px;
}

.hierarchy-facts p {
  margin: 6px 0 0;
  color: var(--muted-color);
  font-size: 13px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: var(--content-width);
  margin-bottom: 28px;
}

.summary-card {
  padding: 18px;
  border: 1px solid var(--line-color);
  background: #fff;
}

.summary-card-value {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.summary-card-detail {
  margin: 10px 0 0;
  color: var(--muted-color);
  font-size: 14px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 24px;
  margin-bottom: 28px;
}

.content-primary,
.content-sidebar {
  min-width: 0;
}

.compact-list {
  margin-top: 8px;
}

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

.hierarchy-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line-color);
  background: var(--surface-color);
}

.compact-card {
  padding: 16px;
}

.hierarchy-card-copy h2,
.hierarchy-card-copy h4 {
  margin: 0;
  font-size: 22px;
}

.hierarchy-card-copy h4 {
  font-size: 18px;
}

.hierarchy-card-copy a {
  color: var(--text-color);
  text-decoration: none;
}

.hierarchy-card-kicker,
.hierarchy-card-meta,
.hierarchy-card-description {
  margin: 8px 0 0;
}

.hierarchy-card-kicker {
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 600;
}

.hierarchy-card-meta,
.hierarchy-card-description {
  color: var(--muted-color);
  font-size: 14px;
}

.hierarchy-card-actions {
  display: flex;
  align-items: start;
}

.config-section {
  margin-top: 18px;
}

.compact-form-shell {
  padding: 10px 12px;
}

.compact-form .field + .field,
.compact-form .config-section + .config-section {
  margin-top: 14px;
}

.config-section:first-child {
  margin-top: 0;
}

.config-section-header h3,
.panel-heading h3,
.empty-state-card h2,
.empty-state-card h3,
.danger-panel h3 {
  margin: 0;
  font-size: 22px;
}

.config-section-header {
  margin-bottom: 10px;
}

.config-field-list {
  display: grid;
  gap: 10px;
}

.config-field {
  padding: 10px 12px;
  border: 1px solid var(--line-color);
  background: var(--surface-color);
}

.config-field-copy label {
  margin-top: 0;
}

.inheritance-chooser {
  margin-top: 14px;
}

.choice-row {
  display: flex;
  align-items: start;
  gap: 10px;
  margin-top: 10px;
  font-weight: 400;
}

.choice-row input {
  width: auto;
  height: auto;
  margin: 3px 0 0;
}

.inheritance-note {
  margin: 10px 0 14px;
  color: var(--subtle-color);
  font-size: 14px;
}

.toolbar-link-secondary {
  color: var(--text-color);
}

.compact-empty-state {
  margin-bottom: 0;
  padding: 18px;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.summary-list div {
  padding-top: 10px;
  border-top: 1px solid var(--line-color);
}

.summary-list dt {
  color: var(--subtle-color);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-list dd {
  margin: 4px 0 0;
  font-size: 16px;
}

.summary-list p {
  margin: 6px 0 0;
  color: var(--muted-color);
  font-size: 13px;
}

.entity-log-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  padding: 16px;
}

.entity-log-summary div {
  padding-top: 12px;
}

.entity-log-summary div:nth-child(-n+2) {
  padding-top: 0;
  border-top: 0;
}

.entity-log-json {
  padding: 16px;
}

.entity-log-json summary {
  cursor: pointer;
  font-weight: 600;
}

.entity-log-json h2 {
  margin: 16px 0 8px;
  font-size: 16px;
}

.entity-log-json pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid var(--line-color);
  border-radius: 4px;
  background: var(--surface-subtle);
}

.entity-log-filters {
  padding: 16px;
}

.entity-log-filter-grid {
  gap: 12px 24px;
}

.entity-log-filter-field {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.entity-log-filter-field label {
  margin: 0;
}

.entity-log-filter-field input,
.entity-log-filter-field select {
  margin: 0;
}

.entity-log-filter-actions {
  margin-top: 16px;
  padding-left: 132px;
}

.config-preview {
  display: grid;
  gap: 8px;
}

.config-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line-color);
}

.config-preview-detail {
  margin: 4px 0 0;
  color: var(--muted-color);
  font-size: 13px;
}

.config-preview-value {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

.config-preview-source {
  margin: 6px 0 0;
  text-align: right;
}

.hierarchy-config-list,
.hierarchy-config-preview {
  margin-top: 2px;
}

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

.field-grid > .field {
  margin-top: 0;
}

.server-ssh-row {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(160px, 260px);
  gap: 18px;
  align-items: start;
  margin-top: 16px;
}

.server-ssh-cell {
  display: grid;
  gap: 6px;
}

.server-ssh-cell label {
  margin-bottom: 0;
}

.checkbox-card {
  padding: 14px 16px;
  border: 1px solid var(--line-color);
  background: var(--surface-color);
}

.role-description {
  margin: 6px 0 0;
}

/* Jobs page */

.jobs-table-wrap {
  max-width: 100%;
  margin-top: 10px;
  overflow-x: auto;
}

.jobs-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.jobs-table th,
.jobs-table td {
  padding: 16px 0;
  border-top: 1px solid var(--line-color);
  text-align: left;
  vertical-align: top;
}

.jobs-table th {
  color: var(--subtle-color);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jobs-table th:not(:first-child),
.jobs-table td:not(:first-child) {
  padding-left: 20px;
}

.job-description {
  margin-top: 8px;
  line-height: 1.45;
  color: var(--muted-color);
  font-size: 14px;
}

.job-error {
  margin-top: 6px;
  color: var(--danger-color);
  font-size: 13px;
}

.jobs-table strong {
  display: inline-block;
  line-height: 1.35;
  margin-bottom: 2px;
}

.job-status.running {
  color: var(--brand-purple-700);
  border-color: rgba(111, 138, 114, 0.28);
  background: rgba(111, 138, 114, 0.12);
}

.jobs-page-table .job-status {
  margin-left: 0;
  vertical-align: baseline;
}

.job-action-form {
  display: block;
  margin: 0;
}

.job-run-button {
  min-height: 32px;
  margin-top: 0;
  padding: 6px 12px;
  border-color: var(--brand-purple-600);
  background: var(--brand-gradient);
  color: #fff;
}

.jobs-page-table th:first-child,
.jobs-page-table td:first-child {
  padding-left: 16px;
  padding-right: 28px;
}

.jobs-page-table th:nth-child(2),
.jobs-page-table td:nth-child(2),
.jobs-page-table th:nth-child(3),
.jobs-page-table td:nth-child(3),
.jobs-page-table th:nth-child(4),
.jobs-page-table td:nth-child(4),
.jobs-page-table th:nth-child(5),
.jobs-page-table td:nth-child(5),
.jobs-page-table th:nth-child(6),
.jobs-page-table td:nth-child(6) {
  white-space: nowrap;
}

.jobs-page-table th:last-child,
.jobs-page-table td:last-child {
  padding-left: 10px;
  padding-right: 16px;
  text-align: left;
}

.jobs-page-table td:nth-child(5),
.jobs-page-table td:nth-child(6) {
  vertical-align: top;
}

.technical-check-runs-table th:first-child,
.technical-check-runs-table td:first-child {
  padding-left: 16px;
  padding-right: 22px;
  min-width: 220px;
}

.technical-check-runs-table th:nth-child(2),
.technical-check-runs-table td:nth-child(2) {
  padding-left: 22px;
}

.technical-check-runs-table th:nth-child(3),
.technical-check-runs-table td:nth-child(3) {
  padding-left: 22px;
}

/* Backup control page */

.backup-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.technical-control-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.technical-control-hero__main {
  min-width: 0;
}

.technical-control-hero__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.technical-control-hero__title-row .resource-title {
  margin: 0;
}

.technical-control-hero__meta,
.technical-control-hero__summary {
  margin: 6px 0 0;
  color: var(--muted-color);
}

.technical-control-hero__summary {
  color: var(--text-color);
  font-weight: 600;
}

.technical-control-hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.technical-control-section-heading {
  margin-bottom: 14px;
}

.technical-check-list {
  display: grid;
  gap: 6px;
}

.technical-check-card {
  padding: 8px 0;
  border-top: 1px solid var(--line-color);
}

.technical-check-card:first-child {
  padding-top: 0;
  border-top: 0;
}

.technical-check-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.technical-check-card__heading {
  min-width: 0;
}

.technical-check-card__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.technical-check-card__description {
  margin: 2px 0 0;
  max-width: 720px;
  color: var(--muted-color);
  font-size: 14px;
}

.technical-check-card__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.technical-check-card__meta {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted-color);
}

.technical-check-card__meta p {
  margin: 2px 0 0;
}

.technical-check-card__result {
  color: var(--text-color);
  font-weight: 600;
}

.technical-check-card__error {
  color: var(--danger-color);
}

.technical-check-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.technical-check-edit-button {
  min-height: 32px;
  padding: 6px 12px;
}

.technical-check-card__actions .job-run-button {
  border-color: var(--brand-purple-600);
  background: var(--brand-purple-600);
  color: #fff;
}

.technical-check-card__actions .job-run-button:hover {
  border-color: var(--brand-purple-700);
  background: var(--brand-purple-700);
}

.destructive-link-button {
  color: var(--danger-color);
}

.destructive-link-button:hover {
  color: #b91c1c;
  text-decoration: underline;
}

.technical-check-card__actions .inline-button {
  font-size: 13px;
}

.technical-check-runs-panel {
  padding-top: 0;
}

.technical-check-runs-disclosure {
  display: block;
}

.technical-check-runs-summary {
  list-style: none;
  cursor: pointer;
  margin: 0;
}

.technical-check-runs-summary::-webkit-details-marker {
  display: none;
}

.technical-check-runs-summary .metrics-header {
  min-width: 0;
  padding-left: 12px;
}

.technical-check-runs-summary .metric-summary {
  margin-top: 4px;
}

.technical-check-runs-toggle::before {
  content: "Show";
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  margin-right: 12px;
}

.technical-check-runs-disclosure[open] .technical-check-runs-toggle::before {
  content: "Hide";
}

.technical-check-runs-disclosure .jobs-table-wrap {
  margin-top: 8px;
}

.status-pass {
  color: var(--success-color);
  background: var(--success-surface);
}

.status-fail,
.status-error {
  color: var(--danger-color);
  background: var(--danger-surface);
}

.backup-checks-table td,
.backup-checks-table th {
  white-space: nowrap;
}

.backup-checks-table td:last-child,
.backup-checks-table th:last-child {
  white-space: normal;
  min-width: 280px;
}

/* Elasticsearch page */

.elastic-action-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 100%;
  margin-top: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
}

.elastic-action-form {
  flex: 0 0 auto;
}

.compact-status-heading {
  margin: 16px 0 8px;
  font-size: 16px;
}

.content-panel .compact-status-heading:first-of-type {
  margin-top: 0;
}

.compact-summary-list {
  gap: 8px;
}

.compact-summary-list div {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding-top: 8px;
}

.compact-summary-list dt {
  margin: 0;
}

.compact-summary-list dd {
  margin: 0;
  font-size: 15px;
}

.token-reveal {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line-color);
  border-radius: 6px;
  background: var(--surface-muted);
}

.token-reveal code {
  display: block;
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.status-green {
  color: var(--success-color);
  background: var(--success-surface);
}

.status-yellow {
  color: var(--warning-color);
  background: var(--warning-surface);
}

.status-red {
  color: var(--danger-color);
  background: var(--danger-surface);
}

.status-unknown {
  color: var(--subtle-color);
  background: var(--surface-strong);
}

/* Logs page */

.search-bar form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}

.search-bar .field {
  flex: 1 1 220px;
  margin-top: 0;
}

.logs-query-field {
  flex: 2 1 320px;
}

.search-bar .compact-field {
  flex: 0 1 120px;
}

.search-bar .field input,
.search-bar .field select {
  width: 100%;
  box-sizing: border-box;
}

.compact-field,
.compact-field label,
.simple-form .field:first-of-type,
.simple-form .field:first-of-type label {
  margin-top: 0;
}

.compact-field label {
  margin-bottom: 4px;
}

.search-bar button {
  margin-top: 0;
  flex: 0 0 auto;
  height: 44px;
  padding-top: 0;
  padding-bottom: 0;
}

.logs-results {
  max-width: 100%;
  margin-top: 22px;
  overflow-x: auto;
}

.log-list {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

.log-entry {
  display: table-row;
}

.log-meta {
  display: table-cell;
  margin: 0;
  padding: 6px 20px 6px 0;
  border-top: 1px solid var(--line-color);
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1.25;
}

.log-meta-field,
.log-inline-actions summary {
  margin: 0;
  color: var(--subtle-color);
  font-size: 14px;
}

.log-meta-field {
  display: inline-block;
  margin-right: 6px;
}

.log-meta-field:last-child {
  margin-right: 0;
}

.log-body {
  display: table-cell;
  width: 100%;
  margin: 0;
  padding: 6px 16px 6px 0;
  border-top: 1px solid var(--line-color);
  vertical-align: middle;
  min-width: 28ch;
  line-height: 1.25;
}

.log-inline-actions {
  display: table-cell;
  padding: 6px 0;
  border-top: 1px solid var(--line-color);
  vertical-align: middle;
  white-space: nowrap;
}

.log-json-button {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--subtle-color);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
}

.log-json-button:hover {
  color: var(--accent-hover);
}

.log-json-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: none;
  max-height: none;
}

.log-json-dialog::backdrop {
  background: rgba(20, 24, 20, 0.42);
}

.log-json-dialog-card {
  width: min(1080px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--line-color);
  border-radius: 16px;
  background: #fbfbf8;
  box-shadow: 0 28px 64px rgba(20, 24, 20, 0.16);
  overflow: hidden;
}

.log-json-dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--line-color);
  background: linear-gradient(180deg, #f6f7f3 0%, #fbfbf8 100%);
}

.log-json-dialog-copy {
  min-width: 0;
}

.log-json-dialog-kicker,
.log-json-dialog-meta {
  margin: 0;
  color: var(--subtle-color);
}

.log-json-dialog-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.log-json-dialog-title {
  margin: 4px 0 6px;
  font-size: 24px;
  line-height: 1.15;
}

.log-json-dialog-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

.log-json-dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.log-json-close {
  padding: 8px 12px;
  border: 1px solid var(--line-color);
  border-radius: 999px;
  background: #fff;
  color: var(--text-color);
  cursor: pointer;
  font: inherit;
}

.log-json-close:hover {
  background: #f4f5f0;
}

.log-json {
  max-height: calc(100vh - 180px);
  margin: 0;
  padding: 18px 20px 20px;
  overflow: auto;
  background: #f2f4ef;
  color: #223126;
  line-height: 1.55;
  white-space: pre;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.pagination {
  max-width: 100%;
  margin-top: 24px;
}

.pagination form {
  display: inline-block;
  margin-right: 12px;
}

/* Shared form controls */

.field {
  margin-top: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-color);
  font-size: 13px;
  font-weight: 600;
}

fieldset {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--text-color);
  font-size: 13px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line-color);
  border-radius: 6px;
  background: #fff;
  color: var(--text-color);
  font: inherit;
  box-sizing: border-box;
}

input,
select {
  min-height: 40px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 2px solid rgba(111, 138, 114, 0.28);
  outline-offset: 1px;
}

input {
  width: 300px;
}

.simple-form input:not([type="hidden"]) {
  width: 100%;
  box-sizing: border-box;
}

.input-error {
  border-color: var(--danger-color);
}

.field-error,
.field-note {
  margin: 6px 0 0;
  color: var(--subtle-color);
  font-size: 13px;
}

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

.compact-facts div {
  padding: 12px 14px;
  border: 1px solid var(--line-color);
  border-radius: 6px;
  background: var(--surface-color);
}

.compact-facts dt {
  margin: 0 0 4px;
  color: var(--subtle-color);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compact-facts dd {
  margin: 0;
  font-weight: 600;
}

.caution-note {
  margin: 16px 0 14px;
  padding: 12px 14px;
  border: 1px solid #f2d2b4;
  border-radius: 6px;
  background: #fff7ef;
}

.caution-note p {
  margin: 0;
  color: var(--text-color);
}

.field-error {
  color: var(--danger-color);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin: 0;
}

.checkbox-stack {
  display: grid;
  gap: 2px;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
}

.detail-list li + li {
  margin-top: 8px;
}

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

/* Shared buttons and messages */

button {
  display: inline-block;
  min-height: 40px;
  margin-top: 20px;
  padding: 8px 14px;
  border: 1px solid var(--brand-purple-600);
  border-radius: 6px;
  background: var(--brand-purple-600);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  border-color: var(--brand-purple-700);
  background: var(--brand-purple-700);
}

button:active {
  border-color: var(--brand-purple-800-solid);
  background: var(--brand-purple-800-solid);
}

button:disabled,
button[disabled],
.button-link[aria-disabled="true"] {
  border-color: var(--disabled-line);
  background: var(--disabled-surface);
  color: var(--disabled-color);
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
}

.form-actions {
  margin-top: 24px;
}

button:focus-visible,
.button-link:focus-visible {
  outline: 3px solid rgba(123, 31, 162, 0.2);
  outline-offset: 2px;
}

.secondary-button:hover {
  border-color: #c5ccd6;
  background: #f7f8fa;
  color: #24324a;
}

.secondary-button:active {
  border-color: #b7c0cb;
  background: #eef1f4;
  color: #24324a;
}

.success-button:hover {
  border-color: #1b8b5b;
  background: #1b8b5b;
}

.success-button:active {
  border-color: #17764d;
  background: #17764d;
}

.warning-button:hover {
  border-color: #b86304;
  background: #b86304;
}

.warning-button:active {
  border-color: #9d5404;
  background: #9d5404;
}

.destructive-button:hover {
  border-color: #b91c1c;
  background: #b91c1c;
}

.destructive-button:active {
  border-color: #991b1b;
  background: #991b1b;
}

.success,
.error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-color);
  border-radius: 6px;
  background: var(--surface-color);
}

.logs-results .success,
.logs-results .error {
  max-width: 100%;
}

.success {
  color: var(--success-color);
  background: var(--success-surface);
  border-color: rgba(34, 160, 107, 0.28);
}

.error {
  border-color: #f3c7bf;
  background: var(--danger-surface);
  color: var(--danger-color);
}

code {
  color: var(--text-color);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

/* Responsive layout */

@media (max-width: 820px) {
  .page {
    padding: 16px 16px 32px;
  }

  .wild-login-layout {
    grid-template-columns: 1fr;
  }

  .login-artwork {
    min-height: 320px;
  }

  .login-artwork__overlay {
    padding: 24px;
  }

  .login-product-name {
    font-size: clamp(18px, 5.8vw, 24px);
  }

  .login-illustration-message h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .login-illustration-message {
    max-width: 480px;
  }

  .login-illustration-message p {
    max-width: 360px;
  }

  .site-header nav,
  .nav-primary,
  .nav-links,
  .section-toolbar,
  .hierarchy-hero,
  .hierarchy-header,
  .danger-panel,
  .elastic-action-card,
  .section-toolbar-actions,
  .home-actions,
  .backup-summary,
  .technical-control-hero,
  .technical-check-card__header,
  .technical-check-card__toolbar,
  .technical-check-card__actions {
    flex-direction: column;
    align-items: start;
  }

  .site-header nav {
    padding: 12px 16px;
  }

  .app-command-band {
    min-height: 14px;
  }

  .app-command-band__topology {
    display: none;
  }

  .nav-links li,
  .nav-links a {
    width: 100%;
  }

  .page-hero {
    margin-top: 0;
    padding: 16px 0 8px;
  }

  .admin-overview {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .summary-grid,
  .content-grid,
  .field-grid,
  .server-ssh-row,
  .compact-facts {
    grid-template-columns: 1fr;
  }

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

  .search-bar form {
    grid-template-columns: 1fr;
  }

  .admin-row,
  .dashboard-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dashboard-summary-grid {
    grid-template-columns: 1fr;
  }

  .hierarchy-card,
  .config-preview-row {
    grid-template-columns: 1fr;
  }

  .config-preview-value,
  .config-preview-source {
    text-align: left;
  }

  .entity-log-filter-field {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .entity-log-filter-actions {
    padding-left: 0;
  }

  .jobs-table th:not(:first-child),
  .jobs-table td:not(:first-child) {
    padding-left: 10px;
  }

  .technical-check-card__toolbar {
    width: 100%;
  }

  .technical-check-card__actions {
    justify-content: start;
  }

  .log-json {
    width: min(92vw, 680px);
  }

  .wild-login-card {
    margin-top: 24px;
    border-radius: 20px;
  }

  .wild-login-hero,
  .wild-login-panel {
    padding: 24px 22px;
  }

  .wild-login-hero {
    padding: 0;
  }

  .login-form-column {
    display: block;
  }

  .login-form-content {
    padding-top: 0;
    padding-bottom: 0;
  }

  .wild-login-form-title {
    font-size: 28px;
  }
}
