:root {
  color-scheme: light;
  --bg: #f3f6f8;
  --surface: #ffffff;
  --ink: #17212b;
  --muted: #65717d;
  --line: #d9e1e8;
  --blue: #075fa8;
  --blue-dark: #034b86;
  --green: #1f7a4d;
  --amber: #9b5b00;
  --red: #a63a3a;
  --shadow: 0 1px 2px rgba(20, 32, 44, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  font-size: 17px;
  line-height: 1.25;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.summary {
  max-width: 780px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.refresh-button {
  min-height: 38px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.refresh-button:hover {
  background: var(--blue-dark);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 16px;
}

.metric-label,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 7px;
  font-size: 24px;
  line-height: 1;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  padding: 16px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: #2e3b46;
  font-size: 14px;
  line-height: 1.45;
}

.endpoint-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.endpoint-list div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.endpoint-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.method {
  display: inline-block;
  min-width: 44px;
  margin-right: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

code {
  color: #1f2b36;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
}

.endpoint-list p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 13px;
}

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

th {
  color: #384653;
  font-weight: 700;
  background: #f8fafb;
}

.empty {
  color: var(--muted);
  text-align: center;
}

.status {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eaf2fb;
  color: var(--blue-dark);
  font-weight: 700;
}

.status.completed {
  background: #e8f4ed;
  color: var(--green);
}

.status.failed {
  background: #f9eaea;
  color: var(--red);
}

.status.running {
  background: #fff3dd;
  color: var(--amber);
}

@media (max-width: 820px) {
  .shell {
    width: min(100vw - 20px, 1180px);
    padding: 18px 0;
  }

  .topbar,
  .panel-header {
    flex-direction: column;
  }

  .status-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .refresh-button {
    width: 100%;
  }
}
