:root { --fg:#111; --bg:#fff; --mut:#666; --line:#d4d4d4; --soft:#f3f3f3; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; font-family: -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; color:var(--fg); background:var(--bg); line-height:1.65; font-size:16px; }
body.has-nav { padding-bottom: 72px; }
header.top { display:flex; justify-content:space-between; align-items:center; padding:10px 16px; border-bottom:2px solid var(--fg); }
.brand { font-weight:700; color:var(--fg); text-decoration:none; }
.top-right { display:flex; gap:14px; align-items:center; font-size:14px; }
main { max-width:640px; margin:0 auto; padding:16px; }
h1 { font-size:1.35rem; margin:.2em 0 .8em; }
h2 { font-size:1.1rem; margin:1.4em 0 .5em; border-bottom:1px solid var(--line); padding-bottom:4px; }
h3 { font-size:1rem; margin:1em 0 .3em; }
a { color:var(--fg); }
.muted { color:var(--mut); font-size:.9rem; }
.big { font-size:1.2rem; font-weight:700; margin:.2em 0; }
.pre { white-space:pre-wrap; word-break:break-word; }
.ellipsis { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.card { border:1px solid var(--line); padding:12px 14px; margin:12px 0; }
.card h2, .card h3 { margin-top:0; border:0; }
.warn { border:3px solid var(--fg); background:var(--soft); padding:12px 14px; margin:0 0 16px; font-size:1.02rem; }
.notice { border:1px solid var(--fg); padding:8px 12px; margin-bottom:12px; background:var(--soft); }
.error { border:2px solid var(--fg); padding:8px 12px; margin:8px 0; font-weight:700; }
.stack { display:flex; flex-direction:column; gap:14px; margin:12px 0; }
label { display:flex; flex-direction:column; gap:4px; font-weight:600; }
label.check { flex-direction:row; align-items:flex-start; gap:8px; font-weight:400; }
fieldset { border:1px solid var(--line); padding:8px 12px; margin:0; }
legend { font-weight:700; padding:0 4px; }
input, select, textarea, button { font:inherit; }
input[type=text], input[type=email], input[type=date], input[type=number], input:not([type]), select, textarea { width:100%; padding:10px; border:1px solid var(--fg); border-radius:0; background:#fff; color:var(--fg); }
input[type=radio], input[type=checkbox] { width:20px; height:20px; margin-top:3px; accent-color:#000; }
button, .btn { display:inline-block; padding:10px 16px; border:1px solid var(--fg); background:#fff; color:var(--fg); cursor:pointer; text-decoration:none; border-radius:0; min-height:44px; }
button.primary { background:var(--fg); color:#fff; font-weight:700; }
button.danger { background:#fff; color:#000; border:2px solid #000; font-weight:700; }
button.small { min-height:32px; padding:4px 10px; font-size:.85rem; }
button.link { border:0; background:none; padding:0; min-height:0; text-decoration:underline; font-size:14px; }
form.inline { display:inline; margin:0; }
.list { list-style:none; padding:0; margin:0; }
.list > li { padding:10px 0; border-bottom:1px solid var(--line); }
.list li.off { color:var(--mut); }
.list li.past { color:var(--mut); }
.list ul { margin:4px 0 0 1.2em; }
.right { float:right; }
.tag { display:inline-block; border:1px solid var(--fg); padding:0 6px; margin-left:6px; font-size:.75rem; line-height:1.5; }
.tag.off { color:var(--mut); border-color:var(--mut); }
.row { display:flex; justify-content:space-between; }
.st { font-weight:700; }
.st.present { border-bottom:2px solid #000; }
.st.absent { text-decoration:line-through; }
.st.none { color:var(--mut); font-weight:400; }
.kv { display:grid; grid-template-columns: auto 1fr; gap:4px 12px; margin:0; }
.kv dt { color:var(--mut); } .kv dd { margin:0; font-weight:600; }
.rank { list-style:none; padding:0; margin:0; }
.rank li { display:flex; gap:10px; padding:8px 6px; border-bottom:1px solid var(--line); }
.rank li.me { background:var(--soft); font-weight:700; }
.rank .no { width:3em; font-weight:700; }
.rank .pt { margin-left:auto; font-variant-numeric: tabular-nums; }
.tabs { display:flex; margin:8px 0; border:1px solid var(--fg); }
.tabs a { flex:1; text-align:center; padding:8px; text-decoration:none; }
.tabs a.on { background:var(--fg); color:#fff; font-weight:700; }
.scroll { overflow-x:auto; }
table { border-collapse:collapse; width:100%; font-size:.9rem; }
th, td { border:1px solid var(--line); padding:6px 8px; text-align:left; vertical-align:top; }
th { background:var(--soft); white-space:nowrap; }
td.ok { font-weight:700; } td.ng { color:var(--mut); }
table.att td:not(:first-child), table.att th:not(:first-child) { text-align:center; }
table.log td { font-size:.8rem; word-break:break-all; }
.bulk button { min-height:36px; padding:4px 10px; font-size:.85rem; }
nav.bottom { position:fixed; left:0; right:0; bottom:0; display:flex; background:#fff; border-top:2px solid var(--fg); padding-bottom:env(safe-area-inset-bottom); }
nav.bottom a { flex:1; text-align:center; padding:14px 2px; text-decoration:none; font-size:.8rem; font-weight:600; }
nav.bottom a.on { background:var(--fg); color:#fff; }
