:root {
  color: #132159;
  background: #eff6fe;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: #eff6fe;
  color: #132159;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

button,
a,
input,
summary {
  outline-offset: 3px;
}

:focus-visible {
  outline: 3px solid #0042ec;
}

.shell-header {
  border-top: 4px solid #0042ec;
  border-bottom: 1px solid #c8d7ed;
  background: #ffffff;
}

.shell-header__inner,
.workspace,
.shell-footer {
  width: min(100% - 40px, 1080px);
  margin-inline: auto;
}

.shell-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.brand {
  color: #132159;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.brand span,
.local-label,
.eyebrow,
.summary__label {
  color: #40517f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workspace {
  padding-block: 56px 72px;
}

.intro {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #0042ec;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 710px;
  margin: 18px 0 0;
  color: #40517f;
  font-size: 1.05rem;
}

.check-form {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(230px, 0.8fr) auto;
  align-items: end;
  gap: 14px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid #b8cae5;
  background: #ffffff;
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.9rem;
  font-weight: 700;
}

.field label span {
  color: #56678e;
  font-size: 0.78rem;
  font-weight: 500;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #8297bd;
  border-radius: 4px;
  background: #ffffff;
  color: #132159;
}

.field input::placeholder {
  color: #65769b;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  border-radius: 4px;
  font-weight: 750;
  cursor: pointer;
}

.primary-button {
  padding: 11px 20px;
  border: 1px solid #0042ec;
  background: #0042ec;
  color: #ffffff;
}

.secondary-button {
  padding: 8px 14px;
  border: 1px solid #8297bd;
  background: #ffffff;
  color: #132159;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.live-status,
.error-message {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-weight: 650;
}

.error-message {
  padding: 10px 12px;
  border-left: 4px solid #b42318;
  background: #fff1f0;
  color: #8b1a12;
}

.report {
  margin-top: 34px;
  border: 1px solid #b8cae5;
  background: #ffffff;
}

.summary,
.record-section,
.plain-section,
.technical-sections {
  padding: 24px;
}

.summary {
  border-left: 5px solid #40517f;
  background: #f7f9fd;
}

.summary[data-level="healthy"] {
  border-left-color: #087b73;
  background: #edfaf8;
}

.summary[data-level="warning"] {
  border-left-color: #b54708;
  background: #fff6ed;
}

.summary[data-level="error"] {
  border-left-color: #b42318;
  background: #fff1f0;
}

.summary h2,
.plain-section h3,
.record-section h3 {
  margin: 0;
}

.summary > p:not(.summary__label) {
  margin-bottom: 0;
}

.domain-line {
  color: #40517f;
}

.record-section,
.plain-section,
.technical-sections {
  border-top: 1px solid #d9e3f1;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

pre {
  max-width: 100%;
  margin: 16px 0 0;
  padding: 18px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 4px;
  background: #132159;
  color: #ffffff;
  font: 0.94rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.result-list,
.detail-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.result-item,
.detail-item {
  min-width: 0;
  padding: 13px 0 0;
  border-top: 1px solid #d9e3f1;
  overflow-wrap: anywhere;
}

.result-item:first-child,
.detail-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.result-item h4,
.result-item p,
.detail-item p {
  margin: 4px 0;
}

.issue-code,
.technical-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.issue-code {
  color: #40517f;
  font-size: 0.82rem;
}

.ip-result {
  border-left: 4px solid #0042ec;
}

.key-values {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: 7px 16px;
  margin: 14px 0 0;
}

.key-values dt {
  color: #40517f;
  font-weight: 650;
}

.key-values dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

details {
  border-top: 1px solid #d9e3f1;
}

details:first-child {
  border-top: 0;
}

summary {
  padding: 15px 0;
  font-weight: 750;
  cursor: pointer;
}

.detail-content {
  min-width: 0;
  padding: 0 0 18px;
  overflow-wrap: anywhere;
}

.empty-message {
  margin: 8px 0 0;
  color: #56678e;
}

.shell-footer {
  padding-block: 24px 40px;
  border-top: 1px solid #c8d7ed;
  color: #40517f;
  font-size: 0.9rem;
}

[data-embed] [data-shell] {
  display: none;
}

[data-embed] .workspace {
  width: min(100% - 24px, 1080px);
  padding-block: 20px 28px;
}

@media (max-width: 720px) {
  .shell-header__inner,
  .workspace,
  .shell-footer {
    width: min(100% - 24px, 1080px);
  }

  .shell-header__inner,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .check-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .summary,
  .record-section,
  .plain-section,
  .technical-sections {
    padding: 18px;
  }

  .key-values {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .key-values dd + dt {
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
