:root { color-scheme: light; --ink:#17233b; --blue:#0b3d91; --line:#a9bfdc; }
* { box-sizing:border-box; }
body { margin:0; background:#f7fbff; color:var(--ink); font:1rem/1.75 Meiryo,"Hiragino Kaku Gothic ProN",sans-serif; }
.shell { width:min(820px,calc(100% - 2rem)); margin:1rem auto 2rem; }
header { border:1px solid var(--line); padding:1.2rem; background:linear-gradient(#fff,#eaf2ff); }
h1 { font-size:clamp(1.5rem,5vw,2rem); line-height:1.4; margin:.4rem 0; }
h2 { font-size:1.2rem; margin:0 0 .6rem; }
h3 { font-size:1.15rem; margin:.25rem 0; }
a { color:#0645ad; text-underline-offset:.2em; }
nav,.actions,.pagination { display:flex; flex-wrap:wrap; gap:.7rem; align-items:center; margin:1rem 0; }
main { margin-top:1rem; }
.panel,.report { background:#fff; border:1px dotted var(--line); padding:1rem; margin:1rem 0; }
.muted,small { color:#526078; font-size:.9rem; }
.badge { display:inline-block; padding:.1rem .5rem; background:#eaf2ff; color:#0b3d91; border-radius:.25rem; font-size:.9rem; }
.meta { display:flex; flex-wrap:wrap; gap:.25rem 1rem; margin:.5rem 0; font-size:.9rem; }
.notice { padding:.8rem 1rem; border-left:4px solid #9a6500; background:#fff5d9; }
.success { border-left-color:#247440; background:#eaf8ee; }
.errors { border:2px solid #a32631; background:#fff1f2; padding:1rem; }
label { display:block; font-weight:bold; margin:1.1rem 0 .25rem; }
.required { color:#8a1d26; font-size:.85rem; }
input,select,textarea,button { font:inherit; }
input:not([type=checkbox]),select,textarea { width:100%; padding:.65rem; border:1px solid #71839d; border-radius:.2rem; background:#fff; color:var(--ink); }
textarea { resize:vertical; min-height:7rem; }
.diagnostic { min-height:13rem; font-family:monospace; }
button,.button { display:inline-block; min-height:44px; padding:.55rem 1rem; border:1px solid #0b3d91; border-radius:.2rem; background:#0b3d91; color:#fff; text-decoration:none; cursor:pointer; }
.secondary { color:#0b3d91; background:#fff; }
.danger { background:#982c37; border-color:#982c37; }
button:disabled { cursor:default; color:#526078; background:#e8edf4; border-color:#a9bfdc; }
:focus-visible { outline:3px solid #b36b00; outline-offset:3px; }
.trap { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.filter { display:grid; gap:.6rem; grid-template-columns:1fr 1fr auto; align-items:end; }
.filter label { margin:0; }
.body-text,pre,h1,h3,.meta,dd { overflow-wrap:anywhere; }
.body-text { white-space:pre-wrap; }
pre { white-space:pre-wrap; font-size:.9rem; padding:.8rem; background:#f1f4f8; max-height:32rem; overflow:auto; }
dl { margin:0; }
dt { font-weight:bold; margin-top:.7rem; }
dd { margin:0; }
footer { margin-top:2rem; padding:1rem 0; border-top:1px solid var(--line); font-size:.85rem; color:#526078; }
.inline-form { margin:.5rem 0; }
.inline-form select { margin-bottom:.5rem; }
.check-label { display:flex; gap:.6rem; align-items:flex-start; font-weight:normal; }
.check-label input { margin-top:.5rem; min-width:20px; min-height:20px; }
@media(max-width:560px) { .shell { width:calc(100% - 1rem); margin-top:.5rem; } header,.panel,.report { padding:.9rem; } .filter { grid-template-columns:1fr; } .filter button { width:100%; } }
