:root { color-scheme: light; font: 16px/1.5 system-ui, sans-serif; color: #252a30; background: #f4f6f8; }
* { box-sizing: border-box; }
body { margin: 0; }
.topbar { min-height: 58px; padding: 10px max(20px, calc((100% - 1080px)/2)); display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid #dce1e6; }
.brand { color: #244f72; font-size: 1.3rem; font-weight: 750; text-decoration: none; }
.button-link { display: inline-flex; min-height: 40px; padding: 8px 14px; align-items: center; color: #fff; background: #285f88; border: 1px solid #285f88; border-radius: 7px; text-decoration: none; }
.button-link:hover { background: #1f4e71; }
.identity { display: flex; align-items: center; gap: 12px; color: #535d66; }
main, footer { width: min(1080px, calc(100% - 32px)); margin: 28px auto; }
footer { padding-bottom: 24px; }
h1 { margin: 0 0 20px; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.15; }
h2 { margin: 0 0 8px; font-size: 1.25rem; }
h3 { margin: 18px 0 8px; font-size: 1.05rem; }
p { margin: 6px 0 12px; color: #58636e; }
.eyebrow { margin: 0 0 5px; color: #657785; font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.panel { margin: 16px 0; padding: 20px; background: #fff; border: 1px solid #dce1e6; border-radius: 12px; box-shadow: 0 2px 7px #192b3a0a; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { min-height: 40px; padding: 8px 14px; color: #fff; background: #285f88; border: 1px solid #285f88; border-radius: 7px; cursor: pointer; }
button:hover { background: #1f4e71; }
button:disabled { opacity: .55; cursor: wait; }
button.secondary { color: #315d7c; background: #fff; border-color: #b9c6d0; }
button.danger { color: #9e3434; background: #fff; border-color: #d7aaaa; }
input, select { min-height: 40px; width: 100%; padding: 7px 10px; color: #252a30; background: #fff; border: 1px solid #b9c4cd; border-radius: 6px; }
label { display: grid; gap: 5px; color: #343e47; font-weight: 600; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
label.check input, .checks input { width: 18px; min-height: 18px; height: 18px; margin: 0; }
form { margin-top: 16px; }
.inline-form, .search-form, .actions { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.inline-form > label { min-width: min(280px, 100%); }
.search-form .grow { flex: 1 1 320px; }
.actions label { min-width: 200px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-head p { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 12px; margin-top: 16px; }
.card, .item { min-width: 0; padding: 14px; border: 1px solid #dce1e6; border-radius: 9px; background: #fbfcfd; }
.card h3, .item strong { margin: 0; color: #283943; }
.card .meta, .meta { color: #66727c; font-size: .9rem; }
.card .actions { margin-top: 12px; }
.stack { display: grid; gap: 8px; margin-top: 12px; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.item p { margin: 0; }
.item-body { min-width: 0; }
.item-body .meta { overflow-wrap: anywhere; }
fieldset { margin: 14px 0; padding: 12px; border: 1px solid #cbd4db; border-radius: 8px; }
legend { padding: 0 5px; font-weight: 650; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 8px 14px; }
.checks label { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.field-help { margin: 0 0 10px; font-size: .92rem; }
.notice { padding: 10px 12px; border-radius: 7px; }
.error { color: #822525; background: #fff0f0; border: 1px solid #e5baba; }
.success { color: #235a38; background: #edf8f0; border: 1px solid #b8d9c1; }
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 16px 0; }
.result { overflow: hidden; border: 1px solid #dce1e6; border-radius: 9px; color: inherit; text-decoration: none; background: #fbfcfd; }
.result img { display: block; width: 100%; height: 150px; object-fit: cover; background: #e9edf0; }
.result span { display: block; padding: 9px; }
.result small { display: block; color: #65717b; }
.usage-panel summary { cursor: pointer; }
.usage-panel summary h2 { display: inline; }
pre { overflow: auto; max-height: 360px; padding: 12px; background: #f4f6f8; border-radius: 7px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 600px) { .panel { padding: 15px; } .topbar { padding-inline: 16px; } .section-head { align-items: flex-start; } .item { align-items: flex-start; flex-direction: column; } }
