:root {
  --forest:#173f32; --forest-dark:#102c24; --leaf:#306c50;
  --gold:#efc36d; --ink:#20372c; --muted:#617168;
  --paper:#f3f6f0; --line:#dce5d9;
}
* {box-sizing:border-box}
body.dg-theme {
  margin:0; padding:0; max-width:none;
  background:var(--paper); color:var(--ink);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.55;
}
.dg-theme a {color:var(--leaf); text-underline-offset:3px}
.dg-theme a:hover {color:var(--forest-dark)}
.dg-theme a:focus-visible,.dg-theme button:focus-visible,
.dg-theme input:focus-visible,.dg-theme select:focus-visible,
.dg-theme textarea:focus-visible {
  outline:3px solid #b7791f; outline-offset:3px;
}
.dg-header {background:var(--forest-dark); color:white}
.dg-header-inner {
  max-width:1160px; margin:auto; padding:18px 24px;
  display:flex; align-items:center; justify-content:space-between;
  gap:18px; flex-wrap:wrap;
}
.dg-theme .dg-brand {
  display:flex; gap:12px; align-items:center;
  color:white; text-decoration:none; line-height:1.15;
}
.dg-brand strong {display:block;font-size:1.15rem;letter-spacing:.04em}
.dg-brand small {display:block;color:#c7d9c8;font-size:.78rem;margin-top:4px}
.dg-brand-mark {
  width:42px;height:42px;border:2px solid var(--gold);border-radius:50%;
  display:grid;place-items:center;flex-shrink:0;
}
.dg-brand-mark::before {
  content:"";width:27px;height:11px;border:3px solid var(--gold);
  border-radius:50%;transform:rotate(-20deg);
}
.dg-nav {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dg-theme .dg-nav a {
  color:#f5f8ef;text-decoration:none;padding:9px 12px;
  border-radius:9px;font-weight:600;font-size:.9rem;
}
.dg-theme .dg-nav a:hover {background:#ffffff15}
.dg-theme .dg-nav .dg-nav-button {background:var(--gold);color:var(--forest-dark)}
.dg-main {max-width:1160px;margin:auto;padding:28px 24px 48px}
.dg-main > header {display:none}
.dg-inner .dg-main > nav {display:none}
.dg-main h1 {font-size:clamp(1.8rem,4vw,2.6rem);line-height:1.15;color:var(--forest)}
.dg-main h2 {color:var(--forest);line-height:1.25}
.dg-main > .notice {
  margin:0 0 22px;padding:10px 14px;border-radius:10px;
  background:#e5eddf;color:#3b573f;font-size:.9rem;
}
.dg-hero {
  display:grid;grid-template-columns:1.35fr 1fr;gap:24px;
  align-items:center;padding:32px;border-radius:22px;
  background:linear-gradient(125deg,#173f32,#285a42);
  color:#f7faef;box-shadow:0 12px 30px #173f3215;
}
.dg-hero h1 {color:white;font-size:clamp(2rem,4vw,3.25rem);margin:8px 0 16px}
.dg-hero p {color:#dce9d7;max-width:55ch}
.dg-eyebrow {text-transform:uppercase;letter-spacing:.16em;font-size:.72rem;font-weight:750}
.dg-hero .dg-eyebrow {color:var(--gold)}
.dg-hero code {
  display:block;background:#0b291f;padding:12px 14px;
  color:#f6dfa6;border-radius:10px;font-size:.9rem;
  overflow-wrap:anywhere;white-space:normal;
}
.dg-hero img {display:block;width:100%;height:auto}
.dg-theme .dg-hero-link {
  display:inline-block;margin-top:16px;color:var(--forest-dark);
  background:var(--gold);padding:10px 15px;border-radius:9px;
  text-decoration:none;font-weight:700;
}
.dg-metrics {display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0 30px}
.dg-metric {background:white;border:1px solid var(--line);border-radius:14px;padding:18px 20px}
.dg-metric strong {display:block;font-size:2rem;line-height:1.2;color:var(--forest)}
.dg-metric span {font-size:.85rem;color:var(--muted)}
.dg-home .dg-main > nav {display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.dg-home .dg-main > nav a {
  background:white;border:1px solid var(--line);border-radius:999px;
  padding:7px 13px;text-decoration:none;font-size:.9rem;
}
.dg-home .dg-main > section {
  background:white;border:1px solid var(--line);border-radius:16px;
  padding:18px 20px;margin:22px 0;
}
.dg-home .dg-main > section h2 {margin:0 0 14px}
.dg-main .scroll {overflow-x:auto;border-radius:12px}
.dg-main table {
  width:100%;border-collapse:collapse;background:white;
  margin:12px 0;box-shadow:none;border-radius:0;
}
.dg-main th,.dg-main td {
  padding:13px 14px;border:0;border-bottom:1px solid #e7ece4;
  text-align:left;vertical-align:top;
}
.dg-main th {
  background:#edf2e8;color:#41543d;font-size:.75rem;
  letter-spacing:.05em;text-transform:uppercase;
}
.dg-main tr:nth-child(even) {background:#f8faf6}
.dg-main td:first-child {font-weight:600}
.dg-main input:not([type=hidden]):not([type=checkbox]),
.dg-main select,.dg-main textarea {
  font:inherit;width:100%;padding:11px 12px;background:white;
  color:var(--ink);border:1px solid #bacab5;border-radius:9px;
}
.dg-main label {display:block;margin:14px 0}
.dg-main input[type=checkbox] {accent-color:var(--forest);width:18px;height:18px}
.dg-main button {
  font:inherit;font-weight:650;min-height:42px;padding:10px 16px;
  border:0;border-radius:9px;background:var(--forest);color:white;cursor:pointer;
}
.dg-main button:hover {background:var(--leaf)}
.dg-main form[action$="/delete"] button,
.dg-main form[action$="/reject"] button {background:#943d35}
.dg-main > form {
  max-width:600px;padding:24px;background:white;
  border:1px solid var(--line);border-radius:16px;
}
.dg-main .error {padding:12px 16px;border-radius:10px;background:#fdece7;color:#8e3026}
.dg-footer {border-top:1px solid var(--line);background:#eaf0e5}
.dg-footer-inner {max-width:1160px;margin:auto;padding:24px;color:var(--muted);font-size:.85rem}
.dg-footer p {margin:6px 0}
@media(max-width:720px) {
  .dg-header-inner {padding:16px}
  .dg-main {padding:20px 16px 36px}
  .dg-hero {grid-template-columns:1fr;padding:24px}
  .dg-hero img {display:none}
  .dg-metric {padding:14px 10px}
  .dg-metric strong {font-size:1.6rem}
  .dg-nav {gap:2px}
  .dg-theme .dg-nav a {padding:8px}
  .dg-main th,.dg-main td {padding:10px}
}
@media(prefers-reduced-motion:reduce) {
  * {scroll-behavior:auto!important;transition:none!important}
}
