:root {
  /* Palette taken from the Scoutlio mascot: safari sand, leather brown, olive, scarf yellow, lens blue */
  --bg: #fbf6ea; --card: #fffdf8; --text: #33261a; --muted: #7a6650; --border: #ecdfc4;
  --accent: #8a5528; --accent-2: #a2672f; --olive: #6f7a35; --sun: #f6c21c; --sand: #f3d9a4; --sky: #bfe6f7;
  --ok: #4f7a1f; --err: #b3261e; --warn: #9a6b00; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1d1712; --card: #271f18; --text: #f3e9d8; --muted: #bba78c; --border: #3d3127;
    --accent: #e0a464; --accent-2: #f0b97c; --olive: #a9b35e; --sun: #f6c21c; --sand: #4a3a28; --sky: #2b4752;
    --ok: #9bc45a; --err: #f08a80; --warn: #f2c14e; color-scheme: dark; }
  .btn { color: #1d1712 !important; }
  .diff div[style*="dcfce7"] { background: #12351f !important; color: #86efac !important; }
  .diff div[style*="fee2e2"] { background: #3b1515 !important; color: #fca5a5 !important; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 1px 5px; border-radius: 4px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.gap { gap: 8px; flex-wrap: wrap; }
.top { background: var(--card); border-bottom: 3px solid var(--sand); }
.top .wrap { height: 64px; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 21px; color: var(--accent); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; }
nav { display: flex; align-items: center; gap: 16px; }
nav a { color: var(--text); text-decoration: none; }
main { padding: 24px 16px 48px; }
.foot { display: flex; gap: 16px; color: var(--muted); font-size: 14px; padding-bottom: 32px; }
.foot a { color: var(--muted); }
.card { background: var(--card); border: 2px solid var(--border); border-radius: 18px; padding: 20px 22px; margin-bottom: 18px; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 12px; font-weight: 800; }
h2, .h2 { font-size: 20px; margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 999px; box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 60%, #000); padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-2); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 60%, #000); }
.btn-sm { padding: 6px 12px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--accent) !important; border: 2px solid var(--border); box-shadow: none; }
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.btn-full { width: 100%; }
.btn-danger { background: var(--err); box-shadow: none; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
button.link.danger, .danger button { color: var(--err); }
form.inline { display: inline; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
input, select { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; font: inherit; font-weight: 400; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.mform { display: grid; grid-template-columns: 2fr 1fr 1fr 140px auto; gap: 12px; align-items: end; }
.mform label { margin: 0; }
.mform .flash { grid-column: 1 / -1; }
.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; border: 1px solid var(--border); background: var(--card); }
.flash-ok { border-color: var(--ok); color: var(--ok); }
.flash-error { border-color: var(--err); color: var(--err); }
.flash-warn { border-color: var(--warn); color: var(--warn); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--border); color: var(--muted); }
.badge-ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.badge-err { background: color-mix(in srgb, var(--err) 15%, transparent); color: var(--err); }
.badge-off { background: var(--border); }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--border); }
td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.mname { font-weight: 600; text-decoration: none; }
.trunc { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth { max-width: 420px; margin: 32px auto; }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: center; padding: 32px 0 24px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.02em; font-weight: 800; }
.hero .lead { margin: 0 0 24px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--sand), color-mix(in srgb, var(--sand) 40%, transparent) 70%); }
.hero-art img { position: relative; width: min(100%, 420px); height: auto; animation: peek 6s ease-in-out infinite; transform-origin: 60% 90%; }
@keyframes peek { 0%, 100% { transform: rotate(0deg); } 45% { transform: rotate(-3deg) translateY(-4px); } 55% { transform: rotate(-3deg) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }
.bubble { position: absolute; top: 4%; left: 0; background: var(--card); border: 2px solid #33261a; border-radius: 16px; padding: 6px 12px; font-weight: 800; font-size: 15px; color: #33261a; background: #fff; transform: rotate(-4deg); }
.mascot-note { display: flex; align-items: center; gap: 16px; }
.mascot-note img { width: 96px; height: auto; flex: none; }
.auth-mascot { display: block; width: 110px; margin: -70px auto 8px; }
.auth { margin-top: 80px !important; }
.accent { color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.num { width: 36px; height: 36px; border-radius: 50%; background: var(--sun); color: #33261a; border: 2px solid #33261a; display: grid; place-items: center; font-weight: 700; margin-bottom: 8px; }
.steps h3 { margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.usecases { text-align: center; padding: 24px 0; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { background: var(--card); border: 2px solid var(--border); border-radius: 999px; padding: 6px 14px; }
.chips li::before { content: "◉ "; color: var(--olive); }
.free { display: flex; align-items: center; gap: 24px; text-align: left; background: linear-gradient(120deg, var(--card), color-mix(in srgb, var(--sun) 18%, var(--card))); }
.free img { width: 150px; height: auto; flex: none; }
.grid2 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.diff { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; white-space: pre-wrap; word-break: break-word; border: 1px solid var(--border); border-radius: 8px; padding: 10px; max-height: 600px; overflow: auto; }
.snap { white-space: pre-wrap; word-break: break-word; font-size: 13px; max-height: 600px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.plus { color: var(--ok); font-weight: 700; }
.minus { color: var(--err); font-weight: 700; }
.hist { padding-left: 20px; margin: 0; font-size: 14px; }
.hist li { margin-bottom: 4px; }
.hist li.sel a { font-weight: 700; }
.prose { max-width: 720px; }
@media (max-width: 800px) {
  .mform, .steps, .grid2, .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 240px; }
  .bubble { top: -6px; font-size: 13px; }
  .free { flex-direction: column; text-align: center; }
  .trunc { max-width: 240px; }
  nav { gap: 10px; font-size: 15px; }
}
