:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #f3f4f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

header,
main {
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 18px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 7vw, 2.7rem);
}

h2 {
  font-size: 1.15rem;
}

.eyebrow {
  margin-bottom: 5px;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.card {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(17 24 39 / 6%);
}

.hidden {
  display: none !important;
}

.disabled {
  opacity: 0.58;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

input,
textarea,
button {
  width: 100%;
  border-radius: 11px;
  font: inherit;
}

input,
textarea {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
}

button {
  min-height: 46px;
  padding: 10px 16px;
  border: 0;
  background: #2563eb;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

button.secondary {
  background: #111827;
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

button.text-button {
  width: auto;
  min-height: 36px;
  padding: 6px 10px;
  background: transparent;
  color: #2563eb;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status.neutral {
  background: #e5e7eb;
}

.status.ok {
  color: #166534;
  background: #dcfce7;
}

.status.working {
  color: #92400e;
  background: #fef3c7;
}

.status.error {
  color: #991b1b;
  background: #fee2e2;
}

.section-heading,
.job-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.job {
  padding: 15px 0;
  border-top: 1px solid #e5e7eb;
  overflow-wrap: anywhere;
}

.job:first-child {
  border-top: 0;
}

.hint {
  color: #64748b;
  font-size: 0.88rem;
}

.warning {
  padding: 10px;
  border-radius: 8px;
  color: #854d0e;
  background: #fef9c3;
  font-size: 0.82rem;
  font-weight: 750;
}

details {
  margin-top: 16px;
}

pre {
  max-height: 260px;
  padding: 12px;
  overflow: auto;
  border-radius: 9px;
  background: #111827;
  color: #e5e7eb;
  white-space: pre-wrap;
}

dl {
  margin-bottom: 0;
}

dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #e5e7eb;
}

dt {
  font-weight: 750;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

#message {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 10;
  max-width: 720px;
  margin-inline: auto;
  padding: 13px 16px;
  border-radius: 11px;
  color: #fff;
  background: #111827;
  box-shadow: 0 12px 30px rgb(0 0 0 / 20%);
}

#message:empty {
  display: none;
}

#message.success {
  background: #166534;
}

#message.error {
  background: #991b1b;
}

@media (max-width: 520px) {
  .actions {
    grid-template-columns: 1fr;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
