:root {
  color-scheme: light;
  --ink: #182022;
  --muted: #596568;
  --line: #d6dfdc;
  --paper: #fbfcf9;
  --panel: #ffffff;
  --green: #1f6b55;
  --green-dark: #164b3d;
  --gold: #f3b33d;
  --blue: #2d5d88;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(31, 107, 85, 0.12), rgba(243, 179, 61, 0.08) 42%, transparent 72%),
    var(--paper);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--blue);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.topbar,
.panel,
.summary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 48px rgba(24, 32, 34, 0.08);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border-radius: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  flex: 0 0 auto;
}

.eyebrow,
.label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
.metric {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(1.55rem, 4vw, 2.7rem);
  line-height: 1.05;
}

h2 {
  font-size: 1.1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  background: #eef8f2;
  font-weight: 700;
  white-space: nowrap;
}

.status.error {
  color: #7a2e23;
  background: #fff0ed;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.summary > div {
  padding: 20px;
  background: var(--panel);
}

.metric {
  margin-top: 4px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.panel {
  margin-top: 18px;
  padding: 22px;
  border-radius: 8px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-header.compact {
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.details {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
  margin: 22px 0 0;
}

.details div {
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

pre {
  margin: 18px 0 0;
  padding: 18px;
  overflow-x: auto;
  border-radius: 8px;
  color: #edf7f2;
  background: #13211e;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td:last-child {
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 16px;
  }

  .topbar,
  .panel-header,
  .details {
    display: block;
  }

  .status,
  .button {
    margin-top: 16px;
    width: 100%;
  }

  .summary {
    grid-template-columns: 1fr;
  }

  .details div + div {
    margin-top: 14px;
  }
}
