:root{--brand-blue:#23297a;--ink:#151a42;--muted:#535c70;--line:#dde1e9;--blue-wash:#f5f6fa;--pink:#f19abe;--yellow:#fee600;--bg:#fff;--fs:16px;color-scheme:light}
html[data-font="large"]{--fs:19px}
html[data-contrast="high"]{--ink:#000;--muted:#222;--line:#000;--brand-blue:#0b1060}
html[data-motion="reduce"] *{transition:none!important;animation:none!important}
*{box-sizing:border-box}
body{margin:0;font:var(--fs)/1.6 system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;color:var(--ink);background:var(--blue-wash)}
:lang(zh-Hant) body,body:lang(zh-Hant){font-family:system-ui,-apple-system,"Segoe UI","PingFang TC","Microsoft JhengHei","Noto Sans TC",sans-serif}
a{color:var(--brand-blue)}
header.top{background:var(--bg);border-bottom:1px solid var(--line)}
.wrap{max-width:1080px;margin:0 auto;padding:0 16px}
.bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;min-height:56px}
.brand{font-weight:700;color:var(--brand-blue);text-decoration:none}
nav.main a{margin-right:14px;text-decoration:none}
nav.main a[aria-current="page"]{font-weight:700;border-bottom:2px solid var(--pink)}
.spacer{flex:1}
.small{font-size:.85em;color:var(--muted)}
.langs a{margin-left:8px}
.a11y button{font:inherit;font-size:.85em;background:none;border:1px solid var(--line);border-radius:6px;padding:2px 8px;margin-left:4px;cursor:pointer;color:var(--ink)}
.a11y button[aria-pressed="true"]{background:var(--yellow)}
main{padding:24px 0 48px}
.card{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:20px 24px;margin-bottom:20px}
h1{font-size:1.5em;margin:0 0 12px;color:var(--brand-blue)}h2{font-size:1.15em;margin:0 0 10px}
table{width:100%;border-collapse:collapse;font-size:.95em}th,td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:top}th{color:var(--muted);font-weight:600}
.table-wrap{overflow-x:auto}
button.primary,a.button{font:inherit;background:var(--brand-blue);color:#fff;border:0;border-radius:8px;padding:9px 18px;cursor:pointer;text-decoration:none;display:inline-block}
button.secondary{font:inherit;background:var(--bg);color:var(--brand-blue);border:1px solid var(--brand-blue);border-radius:8px;padding:7px 14px;cursor:pointer}
button.danger{font:inherit;background:var(--bg);color:#9b1c1c;border:1px solid #9b1c1c;border-radius:8px;padding:7px 14px;cursor:pointer}
button:focus,a:focus,input:focus,select:focus{outline:3px solid var(--pink);outline-offset:2px}
input,select{font:inherit;padding:8px 10px;border:1px solid var(--line);border-radius:8px;min-width:200px;max-width:100%}
label{display:block;font-weight:600;margin:10px 0 4px}
.notice{background:#fff8d6;border:1px solid #fee600;border-left:6px solid #fee600;border-radius:8px;padding:12px 16px;margin:12px 0}.notice strong{display:block;margin-bottom:4px}
.flash{background:#eef7ee;border:1px solid #b7dfb7;border-radius:8px;padding:10px 14px;margin-bottom:16px}
.badge{display:inline-block;padding:1px 8px;border-radius:999px;font-size:.8em;border:1px solid var(--line);background:var(--blue-wash)}
.badge.ok{background:#eef7ee;border-color:#b7dfb7}.badge.bad{background:#fdecec;border-color:#f3b4b4}
code{background:var(--blue-wash);padding:1px 6px;border-radius:4px;word-break:break-all}
dl{display:grid;grid-template-columns:max-content 1fr;gap:6px 18px;margin:0}dt{color:var(--muted)}dd{margin:0}
footer{color:var(--muted);font-size:.85em;padding:16px 0;border-top:1px solid var(--line)}
form.inline{display:inline}
@media (max-width:640px){.bar{min-height:auto;padding:10px 0}nav.main{order:3;width:100%}dl{grid-template-columns:1fr}dt{margin-top:6px}}
