:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-strong: #f0f4ef;
  --text: #19211d;
  --muted: #66736d;
  --line: #dbe2dc;
  --green: #087f5b;
  --green-soft: #dff5eb;
  --amber: #b45309;
  --amber-soft: #fff2d6;
  --red: #b4233c;
  --red-soft: #ffe4e8;
  --blue: #315c8c;
  --blue-soft: #e4eef9;
  --shadow: 0 10px 30px rgba(18, 26, 21, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(8, 127, 91, 0.3);
  outline-offset: 2px;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(100%, 360px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.1;
}

h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.toolbar p,
.meta,
.empty,
.eyebrow {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 0;
}

.login-form input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--text);
}

.login-form input:first-of-type {
  border-radius: 8px 8px 0 0;
}

.login-form button {
  border-radius: 0 0 8px 8px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar h1 {
  margin-bottom: 0;
  font-size: 24px;
}

.eyebrow {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ghost-button {
  padding: 0 16px;
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.dashboard {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 24px 22px 48px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.status-strip article {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.status-strip span,
.panel-heading span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-strip strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 22px;
}

.toolbar,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toolbar {
  margin-bottom: 12px;
}

.toolbar button {
  width: 118px;
  flex: 0 0 auto;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item-title {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 800;
}

.meta {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.5;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pill.good {
  background: var(--green-soft);
  color: var(--green);
}

.pill.warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.pill.bad {
  background: var(--red-soft);
  color: var(--red);
}

.pill.info {
  background: var(--blue-soft);
  color: var(--blue);
}

.table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  background: var(--surface-strong);
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--surface-strong);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.empty {
  margin: 12px 0 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

@media (max-width: 900px) {
  .status-strip,
  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar,
  .toolbar,
  .item-head {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard {
    padding: 18px 16px 36px;
  }

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

  .toolbar button,
  .ghost-button {
    width: 100%;
  }

  .login-panel {
    width: min(100%, 360px);
  }
}
