/* Aucune couleur, police, arrondi ou ombre en dur ici : tout vient de design/tokens.css */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--ff);
  line-height: 1.55;
  min-height: 100vh;
}
.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 40% at 80% -10%, var(--line-strong), transparent 70%);
}
#app { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 24px 16px 80px; }
h1, h2, h3 { font-family: var(--ff-disp); letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 600; }
h2 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--grey); margin: 0 0 12px; }
a { color: var(--lume); }

.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--ff-disp); font-weight: 600; margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.tab { background: none; border: 1px solid transparent; color: var(--grey); padding: 8px 16px; border-radius: var(--radius-pill); font: inherit; cursor: pointer; }
.tab:hover { color: var(--white); }
.tab.on { color: var(--white); border-color: var(--line-strong); background: var(--panel); }
.badge { background: var(--lume); color: var(--on-accent); border-radius: var(--radius-pill); padding: 0 8px; font-size: .75rem; margin-left: 6px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 24px; }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.stat { font-family: var(--ff-disp); font-size: 2rem; font-weight: 600; color: var(--lume); }
.label { color: var(--grey); font-size: .85rem; }
.bar { height: 6px; background: var(--line); border-radius: var(--radius-pill); overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; background: var(--lume); }
.bar.warn > i { background: var(--warn); }
.bar.full > i { background: var(--danger); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--white); padding: 10px 20px; border-radius: var(--radius-pill);
  font: inherit; font-weight: 500; cursor: pointer; transition: box-shadow .3s var(--ease), background .3s;
}
.btn:hover { border-color: var(--lume); background: var(--line); }
.btn.primary { background: var(--lume); color: var(--on-accent); border-color: var(--lume); }
.btn.primary:hover { box-shadow: var(--shadow-btn); }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

input, textarea, select {
  width: 100%; background: var(--black-2); color: var(--white); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 11px 14px; font: inherit; margin-bottom: 12px;
}
input:focus, textarea:focus { outline: none; border-color: var(--lume); }
textarea { min-height: 140px; resize: vertical; }

.pill { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); font-size: .78rem; color: var(--grey); }
.pill.ok { color: var(--ok); } .pill.warn { color: var(--warn); }
.list > .card { margin-bottom: 14px; }
.meta { color: var(--grey-dim); font-size: .8rem; margin-bottom: 8px; }
pre.body { white-space: pre-wrap; font-family: var(--ff); color: var(--white); margin: 0 0 12px; }
.note { border-left: 2px solid var(--line-strong); padding-left: 12px; margin: 10px 0; color: var(--grey); white-space: pre-wrap; }
.alert { border: 1px solid var(--warn); color: var(--warn); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.narrow { max-width: 420px; margin: 8vh auto 0; }
.foot { position: fixed; bottom: 10px; left: 0; right: 0; text-align: center; font-size: .75rem; color: var(--grey-dim); z-index: 1; pointer-events: none; }
.err { color: var(--danger); min-height: 1.4em; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); color: var(--grey); }
