:root{
  --bg:#0b1220;
  --card:#101a33;
  --text:#e8eeff;
  --muted:#a9b6df;
  --border:rgba(255,255,255,.08);
  --primary:#5aa2ff;
  --danger:#ff5a7a;
  --ok:#38d996;
  --warn:#ffcf5a;
}

*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;color:var(--text)}
.bg{background:radial-gradient(1200px 800px at 30% 20%, #1a2b55 0%, var(--bg) 55%, #070b15 100%);min-height:100vh}
.container{max-width:1100px;margin:0 auto;padding:24px}
.card{background:rgba(16,26,51,.85);border:1px solid var(--border);border-radius:16px;padding:18px 18px;backdrop-filter: blur(10px)}
h1{font-size:20px;margin:0 0 10px}
h2{font-size:16px;margin:20px 0 10px}
p{margin:6px 0}
.muted{color:var(--muted);font-size:13px}
.form{display:grid;gap:10px;max-width:520px}
label{font-size:13px;color:var(--muted)}
input[type="file"],input{background:rgba(0,0,0,.25);border:1px solid var(--border);border-radius:10px;color:var(--text);padding:10px}
.row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.btn{border:1px solid var(--border);padding:10px 12px;border-radius:10px;background:rgba(0,0,0,.25);color:var(--text);cursor:pointer;font-weight:600}
.btn.primary{background:linear-gradient(135deg, rgba(90,162,255,.25), rgba(90,162,255,.08));border-color:rgba(90,162,255,.35)}
.btn.danger{background:linear-gradient(135deg, rgba(255,90,122,.25), rgba(255,90,122,.08));border-color:rgba(255,90,122,.35)}
.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:99px;border:1px solid var(--border);font-size:12px}
.badge.ok{color:var(--ok);border-color:rgba(56,217,150,.35)}
.badge.warn{color:var(--warn);border-color:rgba(255,207,90,.35)}
.badge.no{color:var(--danger);border-color:rgba(255,90,122,.35)}
.table{width:100%;border-collapse:collapse;margin-top:10px}
.table th,.table td{border-top:1px solid var(--border);padding:10px;vertical-align:top;font-size:13px}
.table th{color:var(--muted);text-align:left;font-weight:700}
.kv{display:grid;grid-template-columns:210px 1fr;gap:8px;margin:10px 0}
code{background:rgba(0,0,0,.35);padding:2px 6px;border-radius:6px}
.alert{padding:10px;border-radius:12px;border:1px solid var(--border);margin:10px 0;font-size:13px}
.alert.error{border-color:rgba(255,90,122,.35);color:#ffd3dc}
.alert.ok{border-color:rgba(56,217,150,.35);color:#c7ffe8}
.small{font-size:12px;color:var(--muted)}
.table-wrap{
  width:100%;
  overflow-x:auto;
  border:1px solid var(--border);
  border-radius:16px;
  background:rgba(0,0,0,.12);
}

.table-wide{
  min-width: 980px; /* force un layout stable */
}

.table th, .table td{
  white-space: normal;
  word-break: break-word;
}

.table td:nth-child(2){
  max-width: 360px; /* Nom filtre */
}

.table td:nth-child(3){
  max-width: 320px; /* Conditions */
}

.table td:nth-child(5){
  max-width: 340px; /* Warnings */
}

code{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: inline-block;
  vertical-align: bottom;
}
.badge{
  white-space: nowrap;
}
.table th:first-child,
.table td:first-child{
  width: 110px;
  white-space: nowrap;
}
code{
  vertical-align: middle;
}
.table td{
  line-height: 1.35;
}
code{
  line-height: 1.1;
}
.kvline{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
