:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #607080;
  --line: #d9e0e7;
  --accent: #0d766e;
  --accent-dark: #095f59;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 32px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  margin-right: auto;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  display: grid;
  align-items: end;
  min-height: 430px;
  padding: 48px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(13, 118, 110, 0.92), rgba(15, 23, 42, 0.72)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.hero h1 {
  margin: 0;
  font-size: 58px;
}

.lede {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #bff4ec;
}

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

h1,
h2 {
  margin: 0 0 12px;
}

.panel,
.card,
.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.narrow {
  max-width: 420px;
  margin: 48px auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  display: block;
  text-decoration: none;
}

.card p,
.muted {
  color: var(--muted);
}

.stack,
.grid-form {
  display: grid;
  gap: 16px;
}

.grid-form {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

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

button:hover,
.button:hover {
  background: var(--accent-dark);
}

.ghost {
  background: transparent;
  color: var(--accent);
}

.small {
  min-width: 48px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
  white-space: nowrap;
}

.error {
  color: var(--danger);
  font-weight: 700;
}

table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

th {
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f7f4;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.actions,
.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-form input {
  flex: 1 1 160px;
  min-width: 0;
}

.inline-form .small {
  flex: 0 0 auto;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check input {
  width: auto;
  min-height: auto;
}

code {
  word-break: break-all;
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 360px;
    padding: 28px;
  }

  .hero h1 {
    font-size: 42px;
  }

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

  table {
    display: block;
    overflow-x: auto;
  }
}
