:root {
  --bg: #f5f1ea;
  --panel: rgba(255, 251, 246, 0.92);
  --ink: #172028;
  --muted: #61707a;
  --line: rgba(23, 32, 40, 0.12);
  --accent: #0b6e69;
  --accent-strong: #164e63;
  --watch: #9a6700;
  --alert: #9f2d15;
  --shadow: 0 24px 56px rgba(23, 32, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(11, 110, 105, 0.14), transparent 22%),
    radial-gradient(circle at 82% 10%, rgba(159, 45, 21, 0.08), transparent 20%),
    linear-gradient(180deg, #f7f3ec 0%, #f0ebe4 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 28px rgba(11, 110, 105, 0.24);
}

.shell {
  width: min(1440px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.topbar,
.hero,
.panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
}

.nav-links a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  margin-top: 18px;
  padding: 28px;
  align-items: stretch;
}

.eyebrow,
.mini-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--accent);
}

h1,
h2,
p,
strong {
  margin: 0;
}

h1,
h2 {
  font-family: "Iowan Old Style", Georgia, serif;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h2 {
  font-size: 1.8rem;
}

.lede,
.support-copy,
.status-copy {
  color: var(--muted);
  line-height: 1.6;
}

.lede {
  max-width: 60ch;
  margin-top: 16px;
}

.hero-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(11, 110, 105, 0.06), rgba(255, 255, 255, 0.3));
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.metric-grid,
.content-grid {
  display: grid;
  gap: 16px;
}

.metric-grid {
  grid-template-columns: repeat(6, minmax(140px, 1fr));
}

.content-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.85fr);
  align-items: start;
}

.metric-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
}

.metric-card-watch {
  background: rgba(154, 103, 0, 0.08);
}

.metric-card-alert {
  background: rgba(159, 45, 21, 0.08);
}

.table-shell {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
}

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

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

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tbody tr:first-child td {
  border-top: 1px solid var(--line);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.pill-stable {
  background: var(--accent);
}

.pill-watch {
  background: var(--watch);
}

.pill-urgent {
  background: var(--alert);
}

.action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-links a {
  color: var(--accent);
  font-weight: 700;
}

.status-copy {
  max-width: 44ch;
}

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

.chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.empty-state {
  color: var(--muted);
  padding: 10px 0 4px;
}

@media (max-width: 1280px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 18px, 100%);
    padding-top: 12px;
  }

  .topbar,
  .hero,
  .panel {
    border-radius: 22px;
    padding: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

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

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-links a {
    min-width: 0;
    text-align: center;
  }

  .table-shell {
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  table {
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  tbody {
    display: grid;
    gap: 12px;
  }

  tr {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.82);
  }

  td {
    position: relative;
    min-height: 44px;
    padding: 10px 12px 10px 44%;
    border-top: 0;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    top: 10px;
    width: calc(44% - 24px);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  td.empty-state {
    padding-left: 12px;
  }

  td.empty-state::before {
    display: none;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }
}
