:root { --bg: #f4f1ea; --ink: #1c1915; --muted: #5e584e; --accent: #0f6e56; --card: #fff; --line: #e3dbd0; }
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.05rem/1.55 "Iowan Old Style", Palatino, "Palatino Linotype", "Hiragino Mincho ProN", "Songti TC", serif; }
a { color: var(--accent); }
a[href], button:not([disabled]) { cursor: pointer; }
.wrap { width: min(40rem, calc(100% - 2rem)); margin-inline: auto; }
header, footer { padding-block: 1.25rem; }
header { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: inherit; font-weight: 700; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }
nav a[aria-current="page"] { font-weight: 700; }
main { padding-block: 2rem 3rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.75rem; overflow-wrap: anywhere; }
h2 { font-size: 1.1rem; margin: 0 0 0.25rem; overflow-wrap: anywhere; }
.guide h2 { margin-top: 1.25rem; }
.guide ul { padding-left: 1.2rem; margin: 0.5rem 0 0; }
.guide { overflow-wrap: anywhere; max-width: 100%; }
.lead, .cookie { color: var(--muted); }
.points { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.75rem; }
.points li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem; }
footer { border-top: 1px solid var(--line); }
p { overflow-wrap: anywhere; }
label { display: block; font-size: 0.95rem; margin-bottom: 0.25rem; }
input[type="text"], input:not([type]) { width: 100%; font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.7rem; }
.notice { min-height: 1.5rem; margin: 0 0 0.75rem; color: var(--accent); }
.actions { margin-top: 1rem; }
.btn, button[type="submit"] {
  min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center;
  padding: 0.4rem 1rem; border-radius: 10px; font: inherit; line-height: 1.2; text-decoration: none;
}
button[type="submit"] { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
fieldset { border: 0; margin: 0.5rem 0 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 0.4rem; }
.tiles { display: flex; gap: 0.5rem; overflow-x: auto; touch-action: pan-y; max-width: 100%; }
.tile {
  cursor: pointer;
  position: relative; flex: 1 0 6.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; min-height: 4.5rem; padding: 0.55rem 0.4rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; text-align: center;
}
.tile input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tile:has(input:disabled) { cursor: default; }
input[type="checkbox"], input[type="radio"] { cursor: pointer; }
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) { cursor: pointer; }
label:has(> input:disabled) { cursor: default; }
.tile .specimen { font-weight: 700; }
.tile .name { font-size: 0.9rem; color: var(--muted); }
.tile:has(input:checked) { border-color: var(--accent); background: #e7f4ef; }
.tile:has(input:checked) .name { color: var(--ink); }
.replies { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.5rem; }
.replies li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.9rem; display: flex; justify-content: space-between; gap: 0.75rem; }
.cta { margin-top: 1rem; }
.delete-note { color: var(--muted); }
button[type="submit"].danger { background: transparent; color: #a3341f; border-color: #a3341f; }
