:root {
  color-scheme: light;
  --ink: #182c2b;
  --muted: #4c6260;
  --paper: #f5f5ef;
  --white: #fff;
  --line: #cbd5cf;
  --accent: #185648;
  --wash: #e6eee7;
  font: 16px/1.55 "DM Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0 0 .65rem; }
h1, h2, h3 { line-height: 1.13; }
h1 { font-size: clamp(2.45rem, 6vw, 4.7rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -.035em; }
h3 { font-size: 1.18rem; }
p { max-width: 65ch; }
small, .muted { color: var(--muted); }
main, .wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
header.bar { border-bottom: 1px solid var(--line); }
header.bar .wrap { min-height: 4.2rem; display: flex; align-items: center; justify-content: space-between; gap: .65rem 1.5rem; flex-wrap: wrap; padding-block: .6rem; }
header a:first-child { font-weight: 700; }
main { padding-block: clamp(1.7rem, 5vw, 4rem); }
footer { border-top: 1px solid var(--line); padding: 1.3rem 0; color: var(--muted); }
.intro { margin-bottom: 2rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.panel { padding: clamp(1rem, 3vw, 1.6rem); background: var(--white); border: 1px solid var(--line); border-radius: .95rem; min-width: 0; }
.category { color: var(--accent); font-weight: 700; font-size: .9rem; }
.button, button { display: inline-flex; align-items: center; gap: .4rem; width: fit-content; border: 1px solid var(--accent); background: var(--accent); color: white; border-radius: .45rem; padding: .56rem .9rem; cursor: pointer; font: inherit; line-height: 1.4; text-decoration: none; font-weight: 650; }
.secondary { color: var(--accent); background: var(--white); }
button:hover, .button:hover { filter: brightness(.91); }
:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #9b510d; outline-offset: 3px; }
label { display: grid; gap: .28rem; font-weight: 650; }
input, select, textarea { width: 100%; padding: .5rem; border: 1px solid #82948e; border-radius: .35rem; color: inherit; background: white; font: inherit; }
textarea { resize: vertical; }
form { display: grid; gap: .8rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.status { color: var(--muted); margin: .65rem 0 0; }
.status:empty { margin: 0; }
code, pre { font-family: "IBM Plex Mono", ui-monospace, monospace; }
pre { background: #142825; color: #f0f7ef; padding: 1.15rem; overflow: auto; border-radius: .6rem; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { background: var(--wash); }
.stack { display: grid; gap: 1rem; }
@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  th, td { padding: .55rem; }
}
[hidden] { display: none !important; }
