
:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --paper: #fffdf8;
  --ink: #1d1a16;
  --muted: #6d655c;
  --line: #e3dcd0;
  --yes: #1f6b45;
  --no: #8a8176;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 "Iowan Old Style", "Songti SC", "Source Han Serif SC", serif;
}
a { color: inherit; }
.top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.brand { font-weight: 650; text-decoration: none; letter-spacing: 0.04em; }
.note { color: var(--muted); font-size: 13px; }
main { padding: 28px; max-width: 1180px; margin: 0 auto; }
h1 { font-size: 32px; line-height: 1.25; margin: 0 0 8px; }
.lead, .structure, .empty { color: var(--muted); }
#filter {
  width: min(420px, 100%);
  margin: 18px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font: inherit;
}
.list { display: grid; gap: 8px; }
.card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
}
.card:hover { border-color: #c8bfb2; }
.badge { flex: none; font-size: 12px; letter-spacing: 0.04em; }
.badge.yes { color: var(--yes); }
.badge.no { color: var(--no); }
.back { margin: 0 0 12px; }
.back a { color: var(--muted); }
.detail { max-width: 1400px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.section-head h2 { margin: 0 0 8px; font-size: 15px; letter-spacing: 0.08em; }
.section-head a { font-size: 14px; }
.sheet, .report, .empty {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.sheet {
  margin: 0;
  padding: 16px;
  max-height: 78vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font: 14px/1.65 "Songti SC", "Iowan Old Style", serif;
}
.report { width: 100%; height: 78vh; border: 1px solid var(--line); }
.empty { padding: 24px; }
@media (max-width: 860px) {
  main { padding: 18px; }
  .split { grid-template-columns: 1fr; }
  .sheet, .report { max-height: 70vh; height: 70vh; }
  .top { padding: 14px 18px; }
}
