/* =====================================================================
   SimplePanel — thème « verre nocturne »
   Chargé après style.css : redéfinit l'apparence sans toucher à la mise en page.
   ===================================================================== */
:root {
  --bg: #070910;
  --bg-2: rgba(255, 255, 255, .035);
  --card: rgba(21, 26, 40, .72);
  --card-2: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --text: #eef1f8;
  --muted: #98a1b8;
  --faint: #616a82;
  --accent: #6d8cff;
  --accent-2: #a46bff;
  --accent-3: #36d1dc;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --radius: 18px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px -24px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(109, 140, 255, .35), 0 12px 40px -12px rgba(109, 140, 255, .45);
}

body {
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(109, 140, 255, .16), transparent 60%),
    radial-gradient(800px 500px at 95% 0%, rgba(164, 107, 255, .13), transparent 60%),
    radial-gradient(900px 700px at 60% 110%, rgba(54, 209, 220, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
h1, h2, h3, .big, .dg-players b, .g-val b { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; }
::selection { background: rgba(109, 140, 255, .35); }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }

/* ---------- boutons & champs ---------- */
button {
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); border-radius: 11px;
  transition: background .18s, border-color .18s, transform .12s, box-shadow .18s;
}
button:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .22); }
button:active { transform: translateY(1px); }
button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent;
  box-shadow: 0 8px 22px -10px rgba(124, 107, 255, .8);
}
button.primary:hover { filter: brightness(1.12); box-shadow: 0 10px 28px -10px rgba(124, 107, 255, .95); }
button.danger { color: var(--bad); border-color: rgba(251, 113, 133, .25); }
button.danger:hover { background: rgba(251, 113, 133, .12); border-color: rgba(251, 113, 133, .45); }
input, select, textarea { background: rgba(0, 0, 0, .25); border: 1px solid var(--line-2); border-radius: 11px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109, 140, 255, .18); }
select option { background: #151a28; }

/* ---------- barre latérale ---------- */
.side {
  background: linear-gradient(180deg, rgba(14, 17, 28, .85), rgba(10, 12, 20, .85));
  backdrop-filter: blur(18px); border-right: 1px solid var(--line);
}
.brand .logo {
  width: 36px; height: 36px; border-radius: 12px; font-size: 17px;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  box-shadow: 0 8px 24px -8px rgba(124, 107, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.brand { font-size: 17px; letter-spacing: -.01em; }
.nav a { padding: 10px 12px; border-radius: 12px; transition: background .15s, color .15s; }
.nav .ico {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 13px;
}
.nav a.active {
  background: linear-gradient(90deg, rgba(109, 140, 255, .16), rgba(164, 107, 255, .06));
  box-shadow: inset 0 0 0 1px rgba(109, 140, 255, .22);
}
.nav a.active .ico { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }
.conn .dot.ok { animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* ---------- cartes ---------- */
.card {
  background: linear-gradient(180deg, rgba(28, 34, 52, .78), rgba(18, 22, 34, .78));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); position: relative;
}
.card h2 { font-size: 11.5px; letter-spacing: .1em; color: var(--muted); }
.head h1 { font-size: 26px; letter-spacing: -.02em; }
.chip { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); backdrop-filter: blur(10px); padding: 6px 12px; }
.section-title {
  display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11.5px; letter-spacing: .12em; margin: 28px 2px 12px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.pill { background: rgba(255, 255, 255, .045); border: 1px solid var(--line); padding: 4px 11px 4px 9px; }
.pill.ok { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .25); color: #a7f3d0; }
.pill.bad { background: rgba(251, 113, 133, .1); border-color: rgba(251, 113, 133, .3); color: #fecdd3; }
.pill.warn { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .3); color: #fde68a; }
.ok .dot, .dot.ok { box-shadow: 0 0 10px rgba(52, 211, 153, .8); }
.bad .dot, .dot.bad { box-shadow: 0 0 10px rgba(251, 113, 133, .8); }
.bar { height: 8px; background: rgba(255, 255, 255, .06); }
.bar > i { background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px rgba(124, 107, 255, .6); }
.bar.warn > i { background: linear-gradient(90deg, #f59e0b, var(--warn)); } .bar.bad > i { background: linear-gradient(90deg, #f43f5e, var(--bad)); }

/* ---------- bandeau d'accueil ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 26px 28px; margin-bottom: 8px;
  background:
    radial-gradient(600px 220px at 0% 0%, rgba(109, 140, 255, .35), transparent 70%),
    radial-gradient(500px 240px at 100% 100%, rgba(164, 107, 255, .3), transparent 70%),
    linear-gradient(135deg, rgba(30, 36, 60, .9), rgba(16, 19, 32, .9));
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero > * { position: relative; z-index: 1; }
.hero-k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #b9c3ff; font-weight: 600; }
.hero h1 { margin: 6px 0 4px; font-size: 34px; letter-spacing: -.03em; font-weight: 700;
  background: linear-gradient(90deg, #fff, #c7d2ff 60%, #e2c8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: 13.5px; }
.hero-r { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hstat { background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; padding: 10px 14px; min-width: 120px; }
.hstat span { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.hstat b { display: block; font-size: 17px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.hstat.ok b { color: #6ee7b7; } .hstat.bad b { color: var(--bad); }

/* ---------- jauges circulaires ---------- */
.gauge-card { display: flex; align-items: center; gap: 18px; }
.gauge { position: relative; width: 108px; height: 108px; flex: none; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .g-bg { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 10; }
.gauge .g-fg { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 6px rgba(124, 107, 255, .55)); }
.g-val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.g-val b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.g-val small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.g-info { min-width: 0; flex: 1; }
.g-title { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-line { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 3px 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gauge-card { gap: 16px; padding: 18px 18px 18px 16px; }
@media (max-width: 1500px) { .gauge { width: 96px; height: 96px; } .g-val b { font-size: 23px; } }
.g-line b { color: var(--text); font-weight: 600; }
.wide-spark { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.wide-spark .big { font-size: 28px; }
.wide-spark .spark { height: 64px; margin: 0; }

/* ---------- cœurs ---------- */
.cores { gap: 12px; }
.core {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); border-radius: 14px; padding: 10px 11px; position: relative; overflow: hidden;
}
.core::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: var(--fill, 0%); pointer-events: none;
  background: linear-gradient(0deg, var(--cc, rgba(109, 140, 255, .25)), transparent); opacity: .35; transition: height .6s, background .6s;
}
.core > * { position: relative; }
.core .lbl { color: var(--muted); font-weight: 600; }
.thread .ghz { font-size: 17px; text-shadow: 0 0 14px currentColor; }
.tbar { height: 5px; background: rgba(255, 255, 255, .06); }
.legend .ramp { height: 7px; box-shadow: 0 0 12px rgba(124, 107, 255, .4); }

/* ---------- serveurs de jeu ---------- */
.games { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.t-minecraft { --g: #4ade80; --g2: #166534; } .t-zomboid { --g: #f87171; --g2: #7f1d1d; } .t-reforger { --g: #e9c46a; --g2: #6b4f12; }
.game.t-minecraft, .game.t-zomboid, .game.t-reforger { border-top: 1px solid var(--line); }
.dgame, .games .game { padding: 0; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.dgame:hover, .games .game:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--g, var(--accent)) 45%, transparent); box-shadow: 0 18px 50px -20px color-mix(in srgb, var(--g, var(--accent)) 60%, transparent); }
.dg-banner {
  position: relative; height: 92px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: flex-start;
  background:
    radial-gradient(260px 120px at 90% 10%, color-mix(in srgb, var(--g) 55%, transparent), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--g2) 85%, #000), rgba(15, 18, 28, .9));
  border-bottom: 1px solid var(--line);
}
.dg-banner::after {
  content: attr(data-glyph); position: absolute; right: 16px; bottom: -18px; font-size: 86px; line-height: 1; opacity: .16; font-weight: 800; color: var(--g);
}
.dg-banner .tag { color: var(--g); letter-spacing: .14em; text-shadow: 0 0 18px color-mix(in srgb, var(--g) 70%, transparent); }
.dg-banner h3 { margin: 6px 0 0; font-size: 19px; letter-spacing: -.01em; }
.dg-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.dg-players b { font-size: 38px; }
.dgame .bar > i { background: linear-gradient(90deg, color-mix(in srgb, var(--g) 70%, #fff), var(--g)); box-shadow: 0 0 14px color-mix(in srgb, var(--g) 70%, transparent); }
.games .game:not(.dgame) { padding: 18px; }
.ghead { padding: 22px 24px; border-radius: 22px; border: 1px solid var(--line); margin-bottom: 18px;
  background: radial-gradient(420px 160px at 95% 0%, color-mix(in srgb, var(--g, var(--accent)) 40%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--g2, #1e2440) 80%, #000), rgba(15, 18, 28, .92)); }
.ghead .tag { color: var(--g, var(--accent)); letter-spacing: .14em; font-size: 11.5px; font-weight: 700; }
.ghead h1 { font-size: 26px; letter-spacing: -.02em; }

/* ---------- services ---------- */
.srow { padding: 11px 6px; margin: 0 -6px; border-radius: 12px; border-top: 0; transition: background .15s; }
.srow:hover { background: rgba(255, 255, 255, .035); }
.srow + .srow { box-shadow: 0 -1px 0 var(--line); }
.srow .dot { width: 9px; height: 9px; }
.svc-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; font-size: 15px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); position: relative; }
.svc-ico .dot { position: absolute; right: -3px; bottom: -3px; border: 2px solid #121726; width: 11px; height: 11px; }
.row { border-top-color: var(--line); }

/* ---------- éditeur & divers ---------- */
.ed-layout { background: linear-gradient(180deg, rgba(28, 34, 52, .78), rgba(18, 22, 34, .78)); border-radius: 20px; box-shadow: var(--shadow); }
.ed-tabs { background: rgba(0, 0, 0, .18); }
.ed-tabs button { border-radius: 11px; }
.ed-tabs button.on { background: linear-gradient(90deg, color-mix(in srgb, var(--g, var(--accent)) 20%, transparent), transparent); box-shadow: inset 2px 0 0 var(--g, var(--accent)); }
.sum { background: linear-gradient(180deg, rgba(28, 34, 52, .7), rgba(18, 22, 34, .7)); border-radius: 16px; }
.sum b { font-size: 16px; }
.field.changed { background: rgba(251, 191, 36, .07); }
.switch span { background: rgba(255, 255, 255, .12); }
.switch input:checked + span { background: linear-gradient(135deg, #10b981, var(--ok)); box-shadow: 0 0 14px rgba(52, 211, 153, .45); }
.mod, details.mh, .check { background: rgba(255, 255, 255, .03); border-radius: 13px; }
.savebar { background: rgba(22, 27, 42, .9); border: 1px solid rgba(109, 140, 255, .35); box-shadow: var(--glow); border-radius: 16px; }
.modal { backdrop-filter: blur(6px); }
.modal .box { background: rgba(18, 22, 34, .96); border-radius: 20px; }
.toast { background: rgba(22, 27, 42, .95); backdrop-filter: blur(12px); border-radius: 13px; }

/* ---------- connexion ---------- */
.login { background:
    radial-gradient(700px 420px at 50% 0%, rgba(109, 140, 255, .28), transparent 65%),
    radial-gradient(600px 400px at 85% 100%, rgba(164, 107, 255, .2), transparent 65%), var(--bg); }
.login .box { background: linear-gradient(180deg, rgba(30, 36, 56, .85), rgba(18, 22, 34, .85)); border-radius: 24px; padding: 38px 32px; backdrop-filter: blur(20px); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); }
.login .logo { width: 60px; height: 60px; border-radius: 18px; background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent)); box-shadow: 0 14px 40px -10px rgba(124, 107, 255, .9); }
.login h1 { font-size: 24px; letter-spacing: -.02em; }
.login button { padding: 13px; border-radius: 13px; }

/* ---------- visuels propres à un serveur (logo + bannière) ---------- */
.dg-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dg-id h3, .dg-id h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-logo { width: 48px; height: 48px; border-radius: 50%; flex: none; object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 8px 22px rgba(0, 0, 0, .6); }
.gh-logo { width: 74px; height: 74px; border-radius: 50%; flex: none; object-fit: cover;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 12px 32px rgba(0, 0, 0, .65); }
.dg-banner.art, .ghead.art {
  background:
    linear-gradient(90deg, rgba(6, 9, 20, .92) 0%, rgba(6, 9, 20, .62) 45%, rgba(6, 9, 20, .25) 100%),
    var(--art) center 42% / cover no-repeat;
}
.dg-banner.art::after { display: none; }
.dg-banner.art .tag, .ghead.art .tag { color: #ffd76a; }
.dg-banner.art h3, .ghead.art h1 { text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.ghead.art { min-height: 150px; align-items: flex-end; }
.dash .dg-banner.art { height: 84px; }
.dash .dg-logo { width: 46px; height: 46px; }

/* =====================================================================
   Rail d'icônes (barre latérale fine)
   ===================================================================== */
.layout { grid-template-columns: 76px minmax(0, 1fr); }
.side { padding: 16px 12px; align-items: center; gap: 8px; z-index: 40; }   /* au-dessus du contenu : les infobulles débordent sur la page */
.side .brand { padding: 2px 0 14px; }
.side .nav { display: flex; flex-direction: column; gap: 6px; }
.side .nav a { padding: 6px; justify-content: center; position: relative; }
.side .nav .ico { width: 40px; height: 40px; border-radius: 13px; font-size: 16px; }
.side .lb { display: none; }
.side .nav a.active { background: none; box-shadow: none; }
.side .nav a.active .ico { box-shadow: 0 8px 22px -8px rgba(124, 107, 255, .9); }
.side .conn { padding: 8px; justify-content: center; position: relative; }
.side .conn .dot { width: 10px; height: 10px; }
.logout { width: 40px; height: 40px; border-radius: 13px; padding: 0; font-size: 16px; color: var(--muted); position: relative; }
.logout:hover { color: var(--bad); border-color: rgba(251, 113, 133, .4); }
[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); z-index: 50;
  white-space: nowrap; background: rgba(22, 27, 42, .97); border: 1px solid var(--line-2); color: var(--text);
  padding: 6px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 500; pointer-events: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.main { padding: 22px 26px 40px; }

/* =====================================================================
   Tableau de bord plein écran (16/9, sans défilement)
   ===================================================================== */
.main.full { height: 100vh; padding: 18px 20px; overflow: hidden; }
.dash {
  height: 100%; display: grid; gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "hero hero hero" "games perf svc" "games cores cores";
}
.dash > * { min-height: 0; min-width: 0; }
.dash .area { display: flex; flex-direction: column; min-height: 0; }
.dash .area-title { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600;
  margin: 0 2px 8px; display: flex; justify-content: space-between; align-items: center; }
.dash .area-title .hint { text-transform: none; letter-spacing: 0; color: var(--faint); font-weight: 400; }
.dash .scroll { overflow-y: auto; min-height: 0; flex: 1; padding-right: 2px; }

/* bandeau */
.dash .hero { grid-area: hero; margin: 0; padding: 14px 20px; border-radius: 18px; align-items: center; }
.dash .hero h1 { font-size: 24px; margin: 2px 0 1px; }
.dash .hero-k { font-size: 10.5px; }
.dash .hero-sub { font-size: 12.5px; }
.dash .hstat { padding: 8px 13px; min-width: 112px; border-radius: 12px; }
.dash .hstat b { font-size: 16px; }

/* jeux */
.dash .games-area { grid-area: games; }
.dash #d-games { display: flex; flex-direction: column; gap: 12px; }
.dash .dg-banner { height: 70px; padding: 12px 15px; }
.dash .dg-banner::after { font-size: 64px; bottom: -14px; }
.dash .dg-banner h3 { font-size: 16.5px; margin-top: 3px; }
.dash .dg-body { padding: 12px 15px 14px; gap: 8px; }
.dash .dg-players b { font-size: 32px; }
.dash .dgame:hover { transform: none; }

.dash .games-area .scroll { flex: 1 1 auto; }
.health { padding: 6px 14px; flex: none; }
.hrow { display: flex; gap: 12px; align-items: center; padding: 9px 0; }
.hrow + .hrow { border-top: 1px solid var(--line); }
.hico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 15px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--muted); }
.hico.ok { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .3); color: #6ee7b7; }
.hico.warn { background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .35); color: #fde68a; }
.hico.bad { background: rgba(251, 113, 133, .12); border-color: rgba(251, 113, 133, .35); color: #fecdd3; }
.hrow .ht { font-weight: 600; font-size: 13px; }
.hrow .hs { color: var(--muted); font-size: 11.5px; }

/* performances */
.dash .perf-area { grid-area: perf; display: grid; gap: 12px; grid-template-rows: minmax(0, 1.35fr) minmax(0, .65fr); }
.dash .gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; min-height: 0; }
.dash .gauge-card { flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 14px 12px; min-height: 0; }
.dash .gauge { width: auto; height: auto; aspect-ratio: 1; margin: 2px auto; flex: 1 1 0; max-width: 100%; max-height: 168px; min-height: 64px; }
.dash .g-val b { font-size: clamp(20px, 2.1vw, 32px); }
.dash .g-val small { font-size: 11.5px; }
.dash .g-title { text-align: center; margin: 0 0 2px; font-size: 10.5px; }
.dash .g-line { font-size: 12px; padding: 1.5px 0; }
.dash .g-line .pill { padding: 2px 8px; font-size: 11.5px; }
.dash .charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; min-height: 0; }
.dash .chart { display: flex; flex-direction: column; padding: 13px 15px; min-height: 0; }
.dash .chart h2 { margin: 0 0 6px; }
.dash .chart .spark { flex: 1 1 0; height: 0; min-height: 30px; margin: 0; }
.dash .chart .net-nums { display: flex; gap: 14px; align-items: baseline; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.dash .chart .net-nums .big { font-size: 20px; color: var(--text); font-weight: 700; }
.dash .chart .net-nums b { color: var(--text); }

/* services */
.dash .svc-area { grid-area: svc; }
.dash .svc-card { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.dash .sgroup + .sgroup { margin-top: 8px; }
.dash .sg-title { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; padding: 4px 4px 2px; }
.dash .sg-title b { color: #6ee7b7; font-weight: 600; letter-spacing: 0; }
.dash .sg-title b.bad { color: var(--bad); }
.dash .srow { padding: 6px 6px; gap: 10px; }
.dash .svc-ico { width: 28px; height: 28px; border-radius: 9px; font-size: 13px; }
.dash .svc-ico .dot { width: 9px; height: 9px; }
.dash .srow .sn > div:first-child { font-size: 13px; }
.dash .srow .ss { font-size: 11.5px; }
.dash .srow button { padding: 2px 8px; }

/* cœurs */
.dash .cores-card { grid-area: cores; padding: 12px 15px 14px; }
.dash .cores-card h2 { margin: 0 0 10px; }
.dash .cores { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 9px; }
.dash .core { padding: 7px 9px; border-radius: 12px; }
.dash .core .lbl { margin-bottom: 3px; font-size: 10.5px; }
.dash .thread { padding: 1px 0; }
.dash .thread .ghz { font-size: 15px; }
.dash .tbar { height: 4px; }

/* écrans de moins de 1000 px de haut : une ligne par service */
@media (max-height: 1000px) {
  .dash .srow { padding: 4px 6px; }
  .dash .srow .sn { display: flex; align-items: baseline; gap: 10px; }
  .dash .srow .sn > div:first-child { flex: none; max-width: 55%; }
  .dash .srow .ss { flex: 1; text-align: right; }
  .dash .svc-ico { width: 24px; height: 24px; font-size: 11.5px; border-radius: 8px; }
  .dash .sg-title { padding-top: 2px; }
  .dash .sgroup + .sgroup { margin-top: 4px; }
}
/* écrans peu hauts : on resserre encore */
@media (max-height: 820px) {
  .dash { gap: 10px; }
  .dash .hero { padding: 10px 16px; } .dash .hero h1 { font-size: 20px; } .dash .hero-sub { display: none; }
  .dash .hstat { padding: 6px 11px; } .dash .hstat b { font-size: 14px; }
  .dash .dg-banner { height: 58px; } .dash .dg-players b { font-size: 26px; }
  .dash .thread .ghz { font-size: 13.5px; }
}
/* écrans étroits ou téléphone : retour au défilement normal */
@media (max-width: 1100px), (max-height: 600px) {
  .main.full { height: auto; overflow: visible; }
  .dash { height: auto; grid-template-columns: 1fr; grid-template-areas: "hero" "games" "perf" "svc" "cores"; }
  .dash .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash .cores { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash .chart .spark { height: 70px; }
}

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .side { flex-direction: row; align-items: center; }
  .side .nav { flex-direction: row; }
  [data-tip]:hover::after { display: none; }
  .hero { padding: 20px; } .hero h1 { font-size: 26px; }
  .gauge { width: 88px; height: 88px; } .g-val b { font-size: 21px; }
  .wide-spark { grid-template-columns: 1fr; }
}
