.header-page .decoder-heading > div:first-child {
  max-width: 780px;
}

.header-page #header-text {
  min-height: 360px;
}

.header-workbench {
  align-items: start;
}

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

.auth-result-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d9dde5;
  border-left-width: 4px;
  border-radius: 6px;
  background: #fff;
}

.auth-result-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-result-card strong,
.auth-result-card span {
  overflow-wrap: anywhere;
}

.auth-result-card span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-result-card p {
  margin: 8px 0 0;
  color: #5c6472;
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.auth-state-pass {
  border-left-color: #17824b;
}

.auth-state-fail {
  border-left-color: #c83e49;
}

.auth-state-warning {
  border-left-color: #c27a08;
}

.auth-state-unknown {
  border-left-color: #7b8494;
}

.header-status-pass {
  color: #0d6d3c;
  background: #e8f7ee;
}

.header-status-fail {
  color: #a82634;
  background: #fff0f1;
}

.header-status-warning {
  color: #875106;
  background: #fff5dd;
}

.header-status-unknown {
  color: #535d6d;
  background: #eef1f5;
}

.identity-map {
  margin: 20px 0;
  padding-top: 18px;
  border-top: 1px solid #e1e4ea;
}

.identity-map h4 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #4d5665;
}

.identity-map dl {
  margin: 0;
}

.identity-map dl > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #eceef2;
}

.identity-map dt {
  color: #5e6674;
  font-size: 0.84rem;
}

.identity-map dd {
  min-width: 0;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.route-map {
  margin: 20px 0;
  padding-top: 18px;
  border-top: 1px solid #e1e4ea;
}

.route-map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.route-map h4 {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #4d5665;
}

.route-map-heading span {
  color: #5e6674;
  font-size: 0.78rem;
  font-weight: 700;
}

.route-summary,
.route-boundary {
  color: #5e6674;
  font-size: 0.82rem;
  line-height: 1.5;
}

.route-summary {
  margin: 9px 0 12px;
}

.route-boundary {
  margin: 12px 0 0;
}

.route-hops {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-hops li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e2e5ea;
  border-radius: 6px;
  background: #f8fafb;
}

.route-hops strong,
.route-hops p,
.route-hops span {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.route-hops strong {
  font-size: 0.78rem;
}

.route-hops p {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.route-hops span {
  color: #6b7280;
  font-size: 0.72rem;
}

.header-help {
  border-bottom: 1px solid #dfe3e8;
}

.header-help-grid a {
  display: inline-block;
  margin-top: 8px;
  color: #176b63;
  font-size: 0.84rem;
  font-weight: 750;
}

.header-warnings {
  display: grid;
  gap: 7px;
  margin: 18px 0;
  padding: 14px 16px 14px 34px;
  border: 1px solid #ead6ab;
  border-radius: 6px;
  color: #63480f;
  background: #fffaf0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.header-page .result-links {
  flex-wrap: wrap;
}

.header-scan-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) auto;
}

.header-scan-row button {
  grid-column: auto;
}

@media (max-width: 760px) {
  .auth-result-grid {
    grid-template-columns: 1fr;
  }

  .identity-map dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .route-hops li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .header-scan-row {
    grid-template-columns: 1fr;
  }

  .header-scan-row button {
    grid-column: 1;
  }

  .header-page #header-text {
    min-height: 300px;
  }
}
