:root {
  --ink: #162520;
  --muted: #66736e;
  --line: #dbe4df;
  --paper: #fff;
  --wash: #f1f5f2;
  --green: #176b45;
  --green-dark: #0d4f32;
  --lime: #c9e766;
  --amber: #a95f08;
  --red: #a73535;
  --blue: #22678c;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--wash);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 24px;
  background:
    radial-gradient(circle at 90% 0, #e2efd3 0, transparent 30rem), var(--wash);
}
button,
input,
select {
  font: inherit;
}
.topbar {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 20px;
}
.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #fff;
  font-weight: 850;
  letter-spacing: -0.04em;
  background: var(--green);
  border-radius: 4px 18px 18px;
}
h1 {
  margin: 2px 0 0;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.035em;
}
h2,
h3,
h4 {
  margin-top: 0;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(24px, 4vw, 36px);
}
h3 {
  margin-bottom: 6px;
  font-size: 20px;
}
h4 {
  margin: 22px 0 9px;
}
p {
  line-height: 1.55;
}
code {
  color: #315147;
  font:
    12px/1.4 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  overflow-wrap: anywhere;
}
.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
}
.muted {
  color: var(--muted);
}
.shell {
  max-width: 1180px;
  min-height: 300px;
  margin: 0 auto;
}
.panel {
  padding: 24px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(30, 55, 45, 0.06);
}
.standalone,
.install {
  max-width: 760px;
  margin: 60px auto;
}
.loading,
.empty {
  padding: 34px 16px;
  color: var(--muted);
  text-align: center;
}
.tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  margin-bottom: 16px;
  overflow-x: auto;
  background: #dfe7e2;
  border-radius: 12px;
}
.tab {
  flex: 1 0 auto;
  padding: 11px 14px;
  color: #42544d;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 9px;
}
.tab.active {
  color: var(--green-dark);
  background: #fff;
  box-shadow: 0 2px 7px rgba(20, 55, 40, 0.08);
}
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(125deg, var(--green-dark), #1b7650);
  border: 0;
  overflow: hidden;
}
.hero h2 {
  margin: 4px 0 8px;
}
.hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: #d8ebe1;
}
.hero .eyebrow {
  color: var(--lime);
}
.health-orbit {
  display: grid;
  flex: 0 0 86px;
  height: 86px;
  margin-left: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  box-shadow: inset 0 0 0 9px rgba(255, 255, 255, 0.08);
}
.health-orbit span {
  font-weight: 900;
}
.health-orbit.active {
  color: var(--green-dark);
  background: var(--lime);
  border-color: var(--lime);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: -4px 0 16px;
}
.metrics > div,
.facts > div {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.metrics span,
.facts span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}
.section-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-head p {
  margin: 0;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 16px;
}
.btn {
  min-height: 42px;
  padding: 0 17px;
  color: #fff;
  font-weight: 760;
  cursor: pointer;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 9px;
  text-decoration: none;
}
.btn:hover {
  background: var(--green-dark);
}
.btn:disabled {
  cursor: default;
  filter: grayscale(0.5);
  opacity: 0.55;
}
.btn-secondary {
  color: var(--green-dark);
  background: #e8f0eb;
  border-color: #d4e1d9;
}
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: #bccac2;
}
.btn-danger {
  background: var(--red);
  border-color: var(--red);
}
.btn-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.danger-zone {
  border-left: 4px solid #e1a848;
}
.switch {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  font-weight: 700;
}
.switch input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}
.message {
  padding: 12px 14px;
  margin-top: 14px;
  border: 1px solid;
  border-radius: 10px;
}
.message.success {
  color: #145c3d;
  background: #eef9f2;
  border-color: #a7d6b9;
}
.message.info {
  color: var(--blue);
  background: #eff7fb;
  border-color: #b8d8e8;
}
.message.error {
  color: var(--red);
  background: #fff2f1;
  border-color: #efc1bd;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
select,
.conflict input {
  min-width: 180px;
  height: 40px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9c7bf;
  border-radius: 7px;
}
.status {
  display: inline-flex;
  padding: 4px 8px;
  color: #42524c;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  background: #e8eeea;
  border-radius: 999px;
}
.status-acked,
.status-succeeded {
  color: #11603c;
  background: #ddf5e6;
}
.status-quarantined,
.status-failed,
.level-error {
  color: #8c2929;
  background: #fbe2df;
}
.status-processing,
.status-running,
.level-info {
  color: #225f7c;
  background: #dff0f8;
}
.status-retry,
.status-ack_pending,
.level-warn {
  color: #8a5009;
  background: #fff0d3;
}
.link-button {
  padding: 0;
  color: var(--green);
  font-weight: 750;
  cursor: pointer;
  background: none;
  border: 0;
  text-decoration: underline;
}
.drawer {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  width: min(500px, 94vw);
  height: 100vh;
  padding: 28px;
  overflow-y: auto;
  background: #fff;
  box-shadow: -12px 0 35px rgba(20, 40, 32, 0.2);
}
.drawer-close {
  float: right;
  width: 36px;
  height: 36px;
  font-size: 25px;
  cursor: pointer;
  background: #edf2ef;
  border: 0;
  border-radius: 50%;
}
dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 9px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
}
.conflict {
  padding: 16px;
  margin-top: 20px;
  background: #fff7e8;
  border: 1px solid #edcf99;
  border-radius: 10px;
}
.conflict label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
}
.log-row {
  display: grid;
  grid-template-columns: 145px 70px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.log-row .status {
  justify-self: start;
}
.log-row time {
  color: var(--muted);
  font-size: 12px;
}
.log-row p {
  margin: 3px 0;
}
.revision {
  padding: 0;
  margin: 10px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.revision summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  cursor: pointer;
}
.revision-body {
  padding: 0 16px 18px;
  border-top: 1px solid var(--line);
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.progress {
  height: 10px;
  margin: 20px 0 10px;
  overflow: hidden;
  background: #e2e9e5;
  border-radius: 99px;
}
.progress div {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--lime));
  transition: width 0.2s;
}
.install details {
  margin-top: 16px;
}
.install pre {
  max-height: 280px;
  padding: 14px;
  overflow: auto;
  white-space: pre-wrap;
  background: #13241e;
  color: #d8e9df;
  border-radius: 9px;
}
.success-text {
  color: var(--green);
}
.error-text {
  color: var(--red);
}
@media (max-width: 760px) {
  body {
    padding: 14px;
  }
  .panel {
    padding: 17px;
  }
  .hero,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .health-orbit {
    margin: 10px 0 0;
  }
  .metrics,
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .log-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
@media (max-width: 440px) {
  .metrics,
  .facts {
    grid-template-columns: 1fr;
  }
  .topbar {
    align-items: flex-start;
  }
}
