/* The one stylesheet. Plain, system fonts, no external files. */
:root { --fg: #1d1d1f; --muted: #6b6b70; --line: #d9d9de; --bg: #fafafa; --card: #fff; --yes: #1f6f3f; --no: #9b2c2c; --accent: #2457a6; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header { display: flex; gap: 1.2rem; align-items: center; padding: .6rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--card); }
header .home { font-weight: 600; color: var(--fg); }
header form { margin-left: auto; }
main { padding: 1rem 1.2rem 3rem; max-width: 1400px; }
h1 { font-size: 1.4rem; margin: .2rem 0 1rem; }
h2 { font-size: 1.1rem; margin: 1.6rem 0 .5rem; }
table { border-collapse: collapse; width: 100%; background: var(--card); }
th, td { text-align: left; padding: .35rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }
td.yes { color: var(--yes); font-weight: 600; }
td.no { color: var(--no); font-weight: 600; }
code, pre, .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
pre { background: var(--card); border: 1px solid var(--line); padding: .6rem; overflow-x: auto; white-space: pre-wrap; }
.muted { color: var(--muted); }
.error { border: 1px solid var(--no); color: var(--no); background: #fff5f5; padding: .6rem; margin-bottom: 1rem; }
.notice { border: 1px solid var(--line); background: var(--card); padding: .6rem; margin-bottom: 1rem; }
form.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-bottom: 1rem; }
form.filters label, form.stack label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: .15rem; }
form.filters input[name=q] { width: 18rem; }
form.stack { display: grid; gap: .7rem; max-width: 40rem; }
input, select, textarea, button { font: inherit; padding: .3rem .4rem; }
button { cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.card { background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; color: var(--fg); }
.card:hover { border-color: var(--accent); text-decoration: none; }
.card .thumb { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #eee; color: var(--muted); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.card .meta { padding: .4rem .5rem; font-size: 13px; }
.card .meta .title { font-weight: 600; }
.record { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 1.5rem; }
.record img.preview { width: 100%; background: #eee; border: 1px solid var(--line); }
.pager { margin-top: 1rem; display: flex; gap: 1rem; }
@media (max-width: 800px) { .record { grid-template-columns: 1fr; } }
