:root {
  --bg: #f6f4ef; --card: #fff; --ink: #2b2a27; --muted: #77736a; --line: #e4e0d6;
  --accent: #2f5d50; --accent-ink: #fff; --red: #b3261e; --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px;
  font-family: -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
a { color: var(--accent); }
.top { background: var(--accent); padding: 12px 16px; }
.brand { color: var(--accent-ink); text-decoration: none; font-weight: 700; letter-spacing: .04em; }
.tabs { display: flex; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; }
.tabs a { flex: 1; text-align: center; padding: 11px 4px; text-decoration: none; color: var(--muted); font-size: 14px; border-bottom: 3px solid transparent; }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
main { max-width: 640px; margin: 0 auto; padding: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 12px; }
h1 { font-size: 20px; margin: 0 0 8px; }
h2 { font-size: 16px; margin: 0 0 8px; color: var(--accent); }
h2.sec { margin: 16px 4px 8px; }
h3 { font-size: 15px; margin: 0 0 8px; }
p { margin: 0 0 8px; }
.big { font-size: 34px; font-weight: 700; margin: 0 0 8px; }
.num { font-variant-numeric: tabular-nums; }
.neg { color: var(--red); }
.warn { color: var(--red); font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.r { text-align: right; white-space: nowrap; }
.wl { list-style: none; margin: 0; padding: 0; }
.wl li { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
.t { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
.t th { text-align: left; color: var(--muted); font-weight: 600; padding: 4px 6px 4px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.t th.r { text-align: right; }
.t td { padding: 7px 6px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.t td.r { text-align: right; }
.t tfoot td { font-weight: 700; border-bottom: 0; }
.st { font-size: 12px; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.st-paid { background: #e6f0ec; color: var(--accent); border-color: #c7dcd3; }
.st-cancelled { color: var(--muted); }
.dl { display: grid; grid-template-columns: 5.5em 1fr; gap: 4px 8px; margin: 0; }
.dl dt { color: var(--muted); font-size: 13px; } .dl dd { margin: 0; }
form { margin: 0; }
form.inline { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.f { display: block; margin-bottom: 10px; }
.f span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
input, select { width: 100%; font: inherit; padding: 9px 10px; border: 1px solid #cfcabd; border-radius: 8px; background: #fff; color: var(--ink); }
form.inline select, form.inline input { width: auto; }
button, .btn { font: inherit; display: inline-block; padding: 10px 18px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; }
button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button.danger { background: var(--red); }
.small-btn { padding: 5px 10px; font-size: 13px; }
details { margin-top: 6px; }
summary { cursor: pointer; color: var(--accent); font-size: 14px; }
details form { margin-top: 10px; }
.plist, .llist, .menu { list-style: none; margin: 0; padding: 0; }
.person, .lrow { padding: 10px 0; border-top: 1px solid var(--line); }
.person:first-child, .lrow:first-child { border-top: 0; }
.l1 { display: flex; justify-content: space-between; font-weight: 600; }
.menu li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.prose h2 { margin-top: 14px; }
.foot { text-align: center; padding: 16px; font-size: 13px; }
