:root {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #182e29;
  background: #f5f6f0;
  font-synthesis: none;
  font-weight: 400;
  --green: #184f40;
  --muted: #596b62;
  --line: #dce2d8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #ab7900;
  outline-offset: 4px;
}
button,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
  border-radius: 9px;
  min-height: 46px;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.button:hover {
  filter: brightness(1.12);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  color: var(--green);
  background: white;
  border-color: #b7c5b8;
}
.danger {
  color: #a1252b;
  background: white;
  border-color: #d7adb0;
}
.text-button {
  background: none;
  color: var(--green);
  border-color: transparent;
  padding: 0.3rem;
  min-height: 36px;
  font-size: 0.9rem;
}
input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #a9b8aa;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  background: #fff;
  color: inherit;
}
label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
}
textarea {
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}
[aria-invalid='true'] {
  border-color: #a1252b;
}
/* An input's help, and why its setting was refused, close below it. */
.field-help,
.field-error {
  margin: -0.5rem 0 0;
}
.field-error {
  color: #86272b;
  font-size: 0.85rem;
}
fieldset {
  display: grid;
  gap: 0.6rem;
  border: 0;
  padding: 0;
  margin: 0;
}
legend {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
/* A checkbox or radio button beside its label, its help below the label. */
.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.6rem;
  align-items: start;
}
.choice input {
  width: auto;
  min-height: 0;
  margin: 0.2rem 0 0;
}
.choice label {
  font-weight: 500;
}
.choice .field-help {
  grid-column: 2;
  margin: 0;
}
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 9px;
  background: #f1f3ec;
  line-height: 1.5;
}
pre code {
  overflow-wrap: normal;
}
/* A copy button, after the status saying whether it copied. */
.copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
/* A value with a copy button beside it. */
.row.code-line {
  flex-wrap: nowrap;
  padding: 0.3rem 0 0.3rem 0.7rem;
  border-radius: 8px;
  background: #f1f3ec;
}
.code-line code {
  flex: 1;
  min-width: 0;
}
/* A record's facts: each name beside its value. */
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.2rem;
  margin: 0 0 1rem;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
form,
.stack {
  display: grid;
  gap: 1rem;
}
.row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
  letter-spacing: -0.055em;
  line-height: 1.08;
  font-weight: 600;
  margin: 0.6rem 0 1rem;
}
h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 0;
}
p {
  line-height: 1.6;
  margin: 0.6rem 0;
  color: var(--muted);
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
}
.notice {
  border-radius: 9px;
  background: #edf2e8;
  border: 1px solid #d5e0cb;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}
.error {
  border-color: #e5b8b8;
  color: #86272b;
  background: #fff1f0;
}
.muted,
.help {
  font-size: 0.88rem;
  color: var(--muted);
}
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #718074;
  font-size: 0.8rem;
  margin: 0.3rem 0;
}
.divider:before,
.divider:after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #182e29;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: var(--green);
  color: white;
  border-radius: 8px;
  font-size: 20px;
}
.shell {
  max-width: 1080px;
  margin: auto;
  padding: 2rem 1.3rem;
}
.auth-shell {
  max-width: 460px;
  margin: clamp(2rem, 9vh, 6rem) auto 3rem;
}
.auth-shell footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.full {
  width: 100%;
}
.badge {
  font-size: 0.75rem;
  border-radius: 20px;
  padding: 0.3rem 0.65rem;
  color: var(--green);
  background: #e9f0e4;
}
.badge.warning {
  color: #7a4b00;
  background: #fbefd5;
}
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list > li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.list > li:last-child {
  border: 0;
}
.settings {
  max-width: 760px;
  margin: 3rem auto;
}
.settings-header {
  margin-bottom: 2rem;
}
.settings .card {
  margin: 1rem 0;
}
.tabs {
  display: flex;
  gap: 0.25rem;
  margin: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tabs a {
  padding: 0.6rem 0.8rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  gap: 1.2rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.site-nav a[aria-current] {
  color: var(--green);
}
.tabs a[aria-current='page'] {
  border-bottom-color: var(--green);
  color: var(--green);
  font-weight: 600;
}
.empty {
  padding: 1rem 0;
}
small {
  font-size: 0.78rem;
  color: var(--muted);
}
/* The admin dashboard. */
.dashboard {
  gap: 1.2rem;
}
.narrow {
  max-width: 560px;
}
.search input {
  flex: 1;
  min-width: 14rem;
  width: auto;
}
.small {
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  font-size: 0.88rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th,
td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-weight: 600;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.badge.disabled {
  color: #86272b;
  background: #fff1f0;
}
.details {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
@media (max-width: 520px) {
  .shell {
    padding: 1.3rem 1rem;
  }
  .card {
    padding: 1.1rem;
  }
  .auth-shell {
    margin-top: 2rem;
  }
  .row.actions > * {
    flex: 1;
  }
  .settings {
    margin-top: 2rem;
  }
}
/* Author display rules would otherwise show what a page or its script hides. */
[hidden] {
  display: none !important;
}
