:root {
  --bg: #f7f5f0; --surface: #ffffff; --ink: #1d1b16; --muted: #625d52; --line: #e3ded2;
  --accent: #0b6e4f; --accent-ink: #ffffff; --warn: #a14a00; --chip: #eef3ef; --field-line: #8a8478;
  --radius: 12px; --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14130f; --surface: #1e1c17; --ink: #f1ede4; --muted: #a8a193; --line: #34302a;
          --accent: #4fc79a; --accent-ink: #0d1a14; --warn: #f0a35c; --chip: #1f2b25; --field-line: #8b8576; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 20px 16px 64px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
header.top .brand { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-weight: 700; text-decoration: none; color: var(--ink); font-size: 18px; }
h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.15; margin: 8px 0 8px; }
h2 { font-size: 20px; margin: 32px 0 12px; }
p.lead { color: var(--muted); font-size: 18px; margin: 0 0 16px; max-width: 60ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.card a.go { display: inline-block; }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--chip); color: var(--ink); margin: 0 4px 4px 0; }
.pill.live { background: var(--accent); color: var(--accent-ink); }
.pill.warn { color: var(--warn); }
button, .btn { font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 8px 12px; cursor: pointer; min-height: 44px; min-width: 44px; }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input, textarea, select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--field-line); border-radius: 8px; padding: 8px 10px; width: 100%; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 0 1 auto; min-width: 0; }
.row > select { width: auto; }
.row > .grow { flex: 1 1 200px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
footer { margin-top: 48px; color: var(--muted); font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* MARKED LAYER catalog-mobile-20261026: disclosure rows are standalone touch controls. */
summary { min-height: 44px; min-width: 44px; padding-block: 8px; font-size: 1rem; line-height: 1.5; cursor: pointer; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), textarea, select { min-height: 44px; min-width: 44px; }
