:root { --bleu: #2f6fdf; --vert: #1a9c6b; --rouge: #c0392b; --orange: #e0a100; --gris: #6b7280; --fond: #f6f7f9; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color: #1f2933; background: var(--fond); }
header { display: flex; align-items: center; gap: 1.5rem; padding: .6rem 1.5rem; background: #fff; border-bottom: 1px solid #e5e7eb; flex-wrap: wrap; }
header .brand { font-weight: 700; font-size: 1.15rem; color: var(--bleu); text-decoration: none; }
header nav { display: flex; gap: 1rem; flex-wrap: wrap; flex: 1; }
header nav a { color: #1f2933; text-decoration: none; }
header nav a:hover { color: var(--bleu); }
main { max-width: 1150px; margin: 1.5rem auto; padding: 0 1.5rem; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; } h2 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.kpi { font-size: 1.8rem; font-weight: 700; } .kpi small { font-size: .85rem; font-weight: 400; color: var(--gris); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid #eef0f3; vertical-align: top; }
th { font-weight: 600; color: var(--gris); font-size: .85rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.banner { padding: .55rem 1.5rem; font-weight: 500; }
.banner.test { background: #fff4d6; color: #7a5a00; } .banner.bad { background: #fde2e1; color: #8e1d14; }
.pill { display: inline-block; padding: .1rem .55rem; border-radius: 99px; font-size: .8rem; font-weight: 600; }
.ok { color: var(--vert); } .warn { color: var(--orange); } .bad { color: var(--rouge); } .muted { color: var(--gris); }
.pill.ok { background: #dcf5ea; } .pill.warn { background: #fff4d6; } .pill.bad { background: #fde2e1; } .pill.muted { background: #eef0f3; }
.pill.test { background: #fff4d6; color: #7a5a00; } .pill.live { background: #dcf5ea; color: var(--vert); }
form.inline { display: inline; margin: 0; }
label { display: block; font-weight: 600; font-size: .85rem; margin: .7rem 0 .2rem; }
label .hint { font-weight: 400; color: var(--gris); }
input[type=text], input[type=password], input[type=number], input[type=time], input[type=email], input[type=date], select, textarea {
  width: 100%; padding: .45rem .55rem; border: 1px solid #cfd4dc; border-radius: 6px; font: inherit; background: #fff; }
textarea { min-height: 4.2rem; resize: vertical; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 1.2rem; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; margin: .4rem 0; }
.check input { width: auto; }
button, .button { display: inline-block; padding: .5rem 1rem; border-radius: 6px; border: 0; background: var(--bleu); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
button.danger { background: var(--rouge); } button.secondary, .button.secondary { background: #e5e7eb; color: #1f2933; }
button.link { background: none; color: var(--gris); padding: 0; font-weight: 400; }
.errors { background: #fde2e1; color: #8e1d14; padding: .6rem 1rem; border-radius: 6px; }
.success { background: #dcf5ea; color: #0f5c3f; padding: .6rem 1rem; border-radius: 6px; }
.actions { display: flex; gap: .6rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
fieldset { border: 1px solid #e5e7eb; border-radius: 8px; padding: .4rem 1.1rem 1rem; margin: 0 0 1rem; background: #fff; }
legend { font-weight: 700; padding: 0 .4rem; }
.chart { width: 100%; height: auto; font-size: 11px; fill: var(--gris); }
.filters { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; margin-bottom: 1rem; }
.filters label { margin: 0 0 .2rem; } .filters > div { min-width: 150px; }
code { background: #eef0f3; padding: .05rem .3rem; border-radius: 4px; }
.login { max-width: 380px; margin: 4rem auto; }
