/* Compléments du panel réel (style.css = feuille de l'aperçu, inchangée). */
body::before { display: none; }
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 100; }
.boot img { animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* Connexion */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--bg); }
.login-art { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; color: #fff; min-height: 260px; }
.login-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.login-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(20deg, rgba(14,10,14,.92) 10%, rgba(20,14,18,.35) 70%); }
.login-art .gridov { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(219,53,53,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(134,214,41,.07) 1px, transparent 1px); background-size: 40px 40px; }
.login-art-in { padding: clamp(28px, 6vw, 64px); max-width: 620px; }
.login-art .tag { display: inline-flex; padding: 5px 13px; border-radius: var(--r-pill); background: rgba(219,53,53,.16); border: 1px solid rgba(219,53,53,.45); font-family: var(--f-display); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #ff8c8c; }
.login-art h1 { margin: 16px 0 10px; font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.login-art h1 b { color: var(--red); font-weight: 500; }
.login-art p { margin: 0; color: rgba(255,255,255,.72); max-width: 440px; }
.login-side { display: grid; place-items: center; padding: 32px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); }
.login-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; }
.login-card > img { width: 56px; height: 56px; }
.login-card h2 { margin: 4px 0 0; font-family: var(--f-display); font-weight: 500; font-size: 26px; letter-spacing: -.02em; color: var(--ink); }
.login-card p { margin: 0; font-size: 13px; }
.btn.big { padding: 12px 22px; font-size: 14.5px; font-weight: 600; }
.form-error { margin: 0; padding: 10px 14px; border-radius: var(--r-md); background: var(--red-soft); color: var(--red); font-size: 13px; }
@media (max-width: 860px) { .login { grid-template-columns: minmax(0, 1fr); } .login-art { min-height: 300px; } }

/* États */
.empty { display: grid; place-items: center; gap: 8px; text-align: center; padding: 28px 16px; color: var(--muted); font-size: 13px; border: 1px dashed var(--line); border-radius: var(--r-md); }
.empty .i { width: 22px; height: 22px; }
.skel { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: var(--r-md); }
@keyframes sk { to { background-position: -200% 0; } }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12.5px; color: var(--muted); pointer-events: none; text-align: center; padding: 0 20px; }
.err { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--red-soft); color: var(--red); font-size: 13px; }

/* Têtes de joueur */
.phead { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--surface-3); color: var(--body); font-family: var(--f-display); font-weight: 600; font-size: 12px; image-rendering: pixelated; }
.phead img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.phead.lg { width: 56px; height: 56px; border-radius: 12px; font-size: 20px; }
.phead.sm { width: 24px; height: 24px; border-radius: 6px; font-size: 10px; }
.glass .heads .phead { width: 28px; height: 28px; border: 2px solid rgba(20,16,20,.9); margin-left: -6px; }
.glass .heads .phead:first-child { margin-left: 0; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pcard { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; text-align: left; min-width: 0; transition: border-color .2s; }
.pcard:hover { border-color: var(--red); }
.pcard b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard > div { min-width: 0; }

/* Carte BlueMap */
.bluemap { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #1b2433; height: min(72vh, 720px); min-height: 420px; }
.bluemap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bluemap .map-ui.tl { right: auto; }
.mapsel { appearance: none; -webkit-appearance: none; }
.minimap-frame { position: relative; height: 230px; border-radius: var(--r-md); overflow: hidden; background: #1b2433; }
.minimap-frame iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.minimap-frame a { position: absolute; inset: 0; }

/* Divers */
.term .lv-WARN { color: #eaa62a; } .term .lv-ERROR, .term .lv-FATAL { color: #ff6b6b; } .term .lv-INFO { color: #86d629; }
.term .ln.chat { color: #f2f1ef; }
.restore-log { margin: 0; max-height: 160px; overflow: auto; background: var(--surface-2); border-radius: var(--r-md); padding: 10px 12px; font-family: var(--f-mono); font-size: 11.5px; line-height: 1.55; }
.step.failed .st { border-color: var(--red); background: var(--red); }
.step.failed .st::after { content: "✕"; color: #fff; font-size: 10px; font-weight: 700; }
.step.skipped { opacity: .55; }
.pw-once { font-family: var(--f-mono); font-size: 15px; color: var(--red); letter-spacing: .02em; }
.tag-line { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.uptime i.none { background: var(--surface-3); opacity: .7; }
.kpi .val small.unit { font-size: 14px; }
.foot-note { font-size: 12px; color: var(--muted); }
.hide { display: none !important; }
@media (max-width: 720px) { .pgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

[hidden] { display: none !important; }
img { max-width: 100%; }
