/* Institutional calm (§10.7): plain, quiet, phone-shaped. Colour only when
   it means something. */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, "Segoe UI", sans-serif;
       color: #1a2330; background: #f4f5f7; }
header { background: #1f3a5f; color: #fff; padding: 0.7rem 1rem;
         display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; }
.brand { font-weight: 600; letter-spacing: 0.02em; }
nav a { color: #cfd9e6; text-decoration: none; margin-right: 1rem; }
nav a:hover { color: #fff; }
main { max-width: 720px; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.35rem; } h2 { font-size: 1.05rem; margin-top: 1.6rem; }
.muted { color: #66707d; font-size: 0.9rem; }
.flash { background: #fff7df; border: 1px solid #e6d28f; padding: 0.6rem 0.9rem;
         border-radius: 6px; margin-bottom: 1rem; }
.card { background: #fff; border: 1px solid #dde2e8; border-radius: 8px;
        padding: 1rem 1.2rem; }
.card.narrow { max-width: 360px; }
label { display: block; margin: 0.7rem 0; font-size: 0.92rem; }
input, select, textarea { display: block; width: 100%; margin-top: 0.25rem;
        padding: 0.55rem; border: 1px solid #c3ccd6; border-radius: 6px;
        font: inherit; }
button { margin-top: 1rem; background: #1f3a5f; color: #fff; border: 0;
         padding: 0.65rem 1.4rem; border-radius: 6px; font: inherit; cursor: pointer; }
button:hover { background: #2a4d7d; }
table { width: 100%; border-collapse: collapse; background: #fff;
        border: 1px solid #dde2e8; border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 0.55rem 0.8rem; border-bottom: 1px solid #eef1f4;
         font-size: 0.92rem; }
th { background: #f8fafc; font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
         gap: 0.7rem; margin: 1rem 0; }
.tile { background: #fff; border: 1px solid #dde2e8; border-radius: 8px;
        padding: 0.8rem; font-size: 0.85rem; color: #66707d; }
.tile .num { font-size: 1.6rem; font-weight: 600; color: #1a2330; }
.tile.warn { border-color: #d9822b; }
.tile.warn .num { color: #d9822b; }
code { background: #eef1f4; padding: 0.1rem 0.35rem; border-radius: 4px;
       font-size: 0.8rem; }
.card.slim { margin: 0.5rem 0 1rem; }
button.small { margin-top: 0.4rem; padding: 0.35rem 0.9rem; font-size: 0.85rem; }
tr.inactive td { color: #9aa3ad; }
.flag { background: #fdecec; color: #b3261e; border: 1px solid #e7b6b2;
        padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.78rem; }
.filter-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap;
              margin-bottom: 1rem; }
.filter-row input, .filter-row select { width: auto; display: inline-block; margin: 0; }
a.btn { background: #1f3a5f; color: #fff; padding: 0.45rem 0.9rem;
        border-radius: 6px; text-decoration: none; font-size: 0.9rem; margin-left: auto; }
details { margin: 0.8rem 0; }
details summary { cursor: pointer; padding: 0.5rem 0; }
label.inline { display: inline-block; margin-right: 1rem; }
label.inline input { display: inline; width: auto; }
a.tile { text-decoration: none; color: inherit; }

/* Stage 4H §D.6, as ruled by RULING_Stage_4H_CSP_2026-08-27.md §A.1.2: the six
   inline style="display:inline" attributes on paired action forms moved here,
   so `style-src 'self'` needs no 'unsafe-inline' exception. Behaviour and
   appearance are identical — this is a relocation, not a restyle. */
form.inline { display: inline; }
