
:root { --bg: #fbfaf7; --fg: #1d1c1a; --muted: #5d5a54; --line: #ddd8cf; --accent: #2f5d50; --warn: #8a3b12; }
@media (prefers-color-scheme: dark) { :root { --bg: #171614; --fg: #ecebe8; --muted: #a6a29a; --line: #36332f; --accent: #8cc5b2; --warn: #f0a37a; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
header, nav, main, footer { max-width: 52rem; margin: 0 auto; padding: 0.75rem 1rem; }
header { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; }
.family { color: var(--muted); }
.signout { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 1rem; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1 { font-size: 1.6rem; line-height: 1.25; }
ul.list { list-style: none; padding: 0; }
ul.list li { border-top: 1px solid var(--line); padding: 0.75rem 0; }
.meta { color: var(--muted); font-size: 0.9rem; }
.badge { font-size: 0.8rem; border: 1px solid var(--line); border-radius: 999px; padding: 0 0.5rem; }
.notice { border-left: 4px solid var(--accent); padding: 0.5rem 1rem; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.error { border-left-color: var(--warn); }
form.stack { display: grid; gap: 0.6rem; max-width: 32rem; }
input, textarea, select, button { font: inherit; padding: 0.5rem 0.7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
button { background: var(--accent); color: var(--bg); border: 0; cursor: pointer; min-height: 2.75rem; }
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
form.inline { display: inline; }
img.original { max-width: 100%; height: auto; border: 1px solid var(--line); }
.qr svg { display: block; width: 12rem; max-width: 100%; height: auto; margin: 0.5rem 0; background: #fff; }
pre.text { white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); padding: 1rem; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; border-top: 1px solid var(--line); padding: 0.4rem; vertical-align: top; }
code, .meta, td { overflow-wrap: anywhere; }
footer { color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); margin-top: 2rem; }
/* Phones: each table row becomes a stacked card, so wide tables never scroll sideways. */
@media (max-width: 40rem) {
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { border-top: 1px solid var(--line); padding: 0.4rem 0; }
  td { border-top: 0; padding: 0.1rem 0; }
}
