:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #1c2b45;
  background: #eef2f7;
  font-size: 16px;
  --accent: #254dda;
  --muted: #596a80;
  --line: #d7dfeb;
  --paper: #fff;
  --safe: #156962;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  min-height: 76px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5vw;
  gap: 16px;
}
.brand {
  font-family: Bahnschrift, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}
.brand span {
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.header-actions,
.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
main {
  max-width: 1280px;
  padding: 40px 28px;
  margin: auto;
}
.heading {
  margin-bottom: 24px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
h1 {
  font-family: Bahnschrift, "Segoe UI", sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
}
h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
p {
  line-height: 1.55;
  margin: 8px 0 16px;
  color: var(--muted);
}
button,
input,
textarea {
  font: inherit;
}
button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 10px 16px;
  cursor: pointer;
  color: inherit;
  font-weight: 600;
}
button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #819bf5;
  outline-offset: 3px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 20px 0 8px;
}
input,
textarea {
  width: 100%;
  border: 1px solid #aebdd0;
  border-radius: 6px;
  background: var(--paper);
  padding: 12px;
  color: inherit;
}
textarea {
  min-height: 340px;
  resize: vertical;
  font:
    14px/1.7 Consolas,
    monospace;
  tab-size: 2;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
}
.login {
  max-width: 540px;
}
.login button {
  margin-top: 18px;
}
.muted {
  font-size: 13px;
  color: var(--muted);
}
.active-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  font-size: 13px;
  color: var(--muted);
}
.active-strip button {
  margin-left: auto;
  font-size: 13px;
}
.badge {
  color: var(--safe);
  background: #deefeb;
  border: 1px solid #b9dcd4;
  padding: 7px 12px;
  border-radius: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}
.format {
  font:
    12px Consolas,
    monospace;
  color: var(--muted);
  padding-top: 4px;
}
.publish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 28px;
}
.boundary {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 13px;
}
.boundary strong {
  color: var(--safe);
}
.boundary p {
  margin-bottom: 0;
}
.history p {
  font-size: 14px;
}
.history ol {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  max-height: 620px;
  overflow: auto;
}
.history li {
  border-left: 2px solid var(--line);
  padding: 0 0 24px 16px;
}
.history li:first-child {
  border-color: var(--safe);
}
.history button {
  text-align: left;
  width: 100%;
  font-size: 14px;
}
.history small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.revision {
  margin-top: 24px;
}
.revision pre {
  background: #eef2f7;
  padding: 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    14px/1.7 Consolas,
    monospace;
}
.revision form {
  max-width: 650px;
}
.revision form button {
  margin-top: 16px;
}
.provider-toolbar,
.save-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.provider-toolbar > div,
.save-panel > div {
  flex: 1;
}
.provider-toolbar label,
.save-panel label {
  margin-top: 0;
}
.provider-list {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 16px;
}
.provider-grid label {
  margin-top: 14px;
}
.provider-card h2 {
  overflow-wrap: anywhere;
}
button.danger {
  color: #952c42;
  border-color: #e3abb7;
}
.provider-help,
.provider-history {
  margin-top: 20px;
}
.provider-help li {
  color: var(--muted);
  line-height: 1.55;
  margin: 7px 0;
}
.provider-history ol {
  max-height: 360px;
}
.provider-history strong {
  display: block;
  font-size: 14px;
}
#status:empty {
  display: none;
}
#status {
  padding: 14px 18px;
  background: #e2ebff;
  color: #203f92;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
#status.error {
  background: #fbe6e9;
  color: #952c42;
}
footer {
  max-width: 1280px;
  margin: auto;
  padding: 12px 28px 32px;
  color: var(--muted);
  font-size: 12px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  .columns {
    grid-template-columns: 1fr;
  }
  .active-strip {
    flex-wrap: wrap;
  }
  .active-strip button {
    margin-left: 0;
  }
  .history ol {
    max-height: 300px;
  }
  main {
    padding: 28px 16px;
  }
  .panel {
    padding: 20px;
  }
  .brand span {
    display: none;
  }
  .publish-row {
    flex-wrap: wrap;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .provider-grid {
    grid-template-columns: 1fr;
  }
  .provider-toolbar,
  .save-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  textarea {
    min-height: 300px;
  }
}
