/* =========================================================
   ROGUE//Z — Thème « Noir tactique » (refonte complète)
   Chargé en dernier : remplace l'apparence de tout le dashboard.
   ========================================================= */
:root{
 --x-bg:#0b0a10;--x-bg2:#14131c;--x-panel:rgba(20,19,28,.72);--x-surface:rgba(255,255,255,.035);--x-surface2:rgba(255,255,255,.065);--x-surface3:rgba(255,255,255,.1);
 --x-line:rgba(255,255,255,.075);--x-line2:rgba(255,255,255,.14);--x-text:#f4f2ee;--x-soft:#c9ced6;--x-muted:#9c99ab;--x-dim:#5c6370;
 --x-red:#ff6b2c;--x-orange:#ff6b2c;--x-amber:#ffc93d;--x-cyan:#3dd9ff;--x-green:#3dd9ff;--x-violet:#9d7bff;
 --x-grad:linear-gradient(135deg,#ff6b2c 0%,#ff6b2c 100%);
 --x-r:14px;--x-r2:20px;--x-r3:26px;
 --x-shadow:0 20px 50px -24px rgba(0,0,0,.9);
 --x-font:"Segoe UI Variable Text","Segoe UI",Inter,system-ui,-apple-system,sans-serif;
 --x-display:RogueDisplay,Anton,Impact,sans-serif;
}
.ac-red{--a:#ff6b2c}.ac-cyan{--a:#3dd9ff}.ac-amber{--a:#ffc93d}.ac-violet{--a:#9d7bff}.ac-green{--a:#3dd9ff}.ac-orange{--a:#ff6b2c}

/* ---------- Base ---------- */
html body{background:var(--x-bg);color:var(--x-text);font-family:var(--x-font);font-size:14.5px;line-height:1.55;-webkit-font-smoothing:antialiased}
html body::before{content:'';position:fixed;inset:0;z-index:-2;pointer-events:none;background:
 radial-gradient(900px 600px at 100% -10%,rgba(255,107,44,.16),transparent 60%),
 radial-gradient(700px 500px at -10% 110%,rgba(157,123,255,.12),transparent 60%),
 radial-gradient(600px 400px at 60% 120%,rgba(61,217,255,.07),transparent 60%),var(--x-bg)}
html body::after{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.5;background-image:radial-gradient(rgba(255,255,255,.07) 1px,transparent 1px);background-size:26px 26px;-webkit-mask-image:linear-gradient(180deg,#000,transparent 70%);mask-image:linear-gradient(180deg,#000,transparent 70%)}
html body ::selection{background:rgba(255,107,44,.35);color:#fff}
html body *{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent}
html body p{color:var(--x-muted)}
html body h1,html body h2,html body h3{color:#fff;letter-spacing:-.02em}
html body a{transition:color .15s}
html body .eyebrow{color:var(--x-muted);letter-spacing:.18em;font-size:10.5px;font-weight:800}
html body :focus-visible{outline:2px solid var(--x-orange);outline-offset:3px}

/* ---------- Boutons ---------- */
html body button,html body .primary,html body .secondary,html body .danger{border-radius:12px;font-weight:700;letter-spacing:.01em;transition:transform .15s,box-shadow .2s,background .2s,border-color .2s,filter .2s}
html body .primary,html body #shell .primary,html body #shell button.primary,html body a.primary{background:var(--x-grad);color:#fff;border:0;box-shadow:0 10px 26px -12px rgba(255,107,44,.9),inset 0 1px 0 rgba(255,255,255,.25);border-radius:12px}
html body .primary:hover,html body #shell .primary:hover{filter:brightness(1.1);transform:translateY(-1px);background:var(--x-grad)}
html body .secondary,html body #shell .secondary,html body a.secondary{background:var(--x-surface2);color:var(--x-text);border:1px solid var(--x-line2);border-radius:12px}
html body .secondary:hover,html body #shell .secondary:hover{background:var(--x-surface3);border-color:rgba(255,255,255,.24)}
html body .danger,html body #shell .danger{background:rgba(255,107,44,.12);color:#ff8fb3;border:1px solid rgba(255,107,44,.4)}
html body .danger:hover{background:rgba(255,107,44,.22)}
html body .text-button{background:none;color:var(--x-muted);padding:6px 0}
html body .text-button:hover{color:#fff}
html body .icon-button{background:var(--x-surface2);border:1px solid var(--x-line2);border-radius:12px;color:#fff}

/* ---------- Barre latérale flottante ---------- */
html body #shell #sidebar,html body aside#sidebar{position:fixed;top:14px;bottom:14px;left:14px;width:268px;padding:18px 14px 14px;border-radius:var(--x-r3);background:var(--x-panel);border:1px solid var(--x-line);backdrop-filter:blur(22px) saturate(1.3);-webkit-backdrop-filter:blur(22px) saturate(1.3);box-shadow:var(--x-shadow);display:flex;flex-direction:column;overflow:hidden;z-index:30}
html body #shell #sidebar::before{content:'';position:absolute;inset:0 0 auto 0;height:140px;background:radial-gradient(260px 120px at 30% 0,rgba(255,107,44,.22),transparent 70%);pointer-events:none}
html body #shell .brand{position:relative;display:flex;align-items:center;gap:12px;font-family:var(--x-display);font-size:25px;letter-spacing:.5px;color:#fff;padding:2px 6px}
html body #shell .brand span span,html body #shell .brand>span>span{color:var(--x-red)}
html body #shell .sidebar-logo{width:44px;height:44px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px rgba(255,107,44,.55),0 0 24px rgba(255,107,44,.45)}
html body #shell .sidebar-sub{position:relative;margin:8px 6px 16px;font-size:9.5px;font-weight:800;letter-spacing:.22em;color:var(--x-dim)}
html body #shell .rz-search-open,html body .rz-search-open{position:relative;display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;margin:0 0 12px;border-radius:12px;background:rgba(0,0,0,.35);border:1px solid var(--x-line);color:var(--x-muted);font-size:12.5px;font-weight:600}
html body .rz-search-open:hover{border-color:var(--x-line2);color:#fff}
html body .rz-search-open kbd{margin-left:auto;background:var(--x-surface2);border:1px solid var(--x-line);color:var(--x-soft);padding:1px 7px;border-radius:6px;font:inherit;font-size:11px}
html body #shell #nav{flex:1;min-height:0;overflow-y:auto;padding:0 2px 10px;margin:0 -2px}
html body #shell #nav .nav-section{margin:0 0 4px}
html body #shell #nav{scrollbar-color:rgba(255,255,255,.16) transparent}
html body #shell #nav .nav-group-label{color:color-mix(in srgb,var(--a) 70%,#fff)}
html body #shell .rzx-group-toggle{display:flex;align-items:center;gap:9px;width:100%;padding:9px 8px;margin:0;background:none;border:0;border-radius:10px;color:var(--x-muted);text-align:left;font-weight:700}
html body #shell .rzx-group-toggle:hover{background:var(--x-surface);color:#fff}
html body #shell .rzx-group-dot{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;font-size:12px;color:var(--a);background:color-mix(in srgb,var(--a) 14%,transparent)}
html body #shell .rzx-group .nav-group-label,html body #shell .nav-section .nav-group-label{flex:1;padding:0;margin:0;font-size:10px;font-weight:800;letter-spacing:.09em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;color:inherit}
html body #shell .rzx-group-count{font-size:10px;font-weight:800;color:var(--x-dim);background:var(--x-surface);border-radius:999px;padding:1px 7px}
html body #shell .rzx-chev{font-size:13px;color:var(--x-dim);transition:transform .2s}
html body #shell .rzx-group.is-closed .rzx-chev{transform:rotate(-90deg)}
html body #shell .rzx-group-links{display:grid;gap:2px;padding:2px 0 8px 10px;margin-left:10px;border-left:1px solid var(--x-line)}
html body #shell .rzx-group.is-closed .rzx-group-links{display:none}
html body #shell #nav a{position:relative;display:flex;align-items:center;gap:10px;min-height:38px;margin:0;padding:8px 10px;border:0;border-radius:11px;color:var(--x-soft);font-size:13px;font-weight:600;background:none;box-shadow:none}
html body #shell #nav a:hover{background:var(--x-surface2);color:#fff}
html body #shell #nav .nav-icon{width:20px;font-size:15px;text-align:center;color:var(--x-dim);transition:color .15s}
html body #shell #nav a:hover .nav-icon{color:var(--a,#fff)}
html body #shell #nav .nav-name{font-size:13px;line-height:1.35}
html body #shell #nav a.active,html body #shell #nav a[aria-current=page],html body #shell .nav-section:nth-child(n) a.active{background:linear-gradient(90deg,color-mix(in srgb,var(--a,#ff6b2c) 22%,transparent),color-mix(in srgb,var(--a,#ff6b2c) 4%,transparent));color:#fff;border:0;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--a,#ff6b2c) 30%,transparent)}
html body #shell #nav a.active::before{content:'';position:absolute;left:-11px;top:9px;bottom:9px;width:3px;border-radius:3px;background:var(--a,#ff6b2c);box-shadow:0 0 12px var(--a,#ff6b2c)}
html body #shell #nav a.active .nav-icon{color:var(--a,#ff6b2c)}
html body #shell .nav-lock{margin-left:auto;font-size:8.5px;font-weight:800;letter-spacing:.08em;padding:2px 6px;border-radius:999px;border:0;background:rgba(255,201,61,.15);color:var(--x-amber)}
html body #shell .sidebar-bottom{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-top:10px;padding:12px;border-radius:14px;border:1px solid var(--x-line);border-top:1px solid var(--x-line);background:rgba(0,0,0,.28);color:var(--x-soft);font-size:12px;font-weight:600}
html body #shell .status-dot{width:8px;height:8px;margin:0;background:var(--x-green);box-shadow:0 0 0 3px rgba(61,217,255,.18),0 0 12px var(--x-green)}
html body #shell .sidebar-bottom button#logout{margin:0 0 0 auto;padding:6px 10px;border-radius:9px;font-size:11.5px;color:var(--x-muted);background:var(--x-surface);border:1px solid var(--x-line)}
html body #shell .sidebar-bottom button#logout:hover{color:#fff;border-color:rgba(255,107,44,.5)}

/* ---------- Zone principale & barre du haut ---------- */
html body #shell>main{margin-left:296px;background:transparent;min-height:100vh}
html body #shell>main>header,html body main>header{position:sticky;top:14px;z-index:20;margin:14px 14px 0 0;min-height:68px;height:auto;padding:12px 14px 12px 20px;border:1px solid var(--x-line);border-radius:var(--x-r2);background:rgba(14,16,22,.7);backdrop-filter:blur(20px) saturate(1.3);-webkit-backdrop-filter:blur(20px) saturate(1.3);box-shadow:var(--x-shadow);display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
html body #shell>main>header::before{content:'';position:absolute;left:-2px;right:-2px;top:-16px;height:15px;background:var(--x-bg);pointer-events:none}
html body #shell #guild{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.16em;color:var(--x-muted);max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
html body #shell .persona{display:inline-block;margin:0 0 0 8px;padding:2px 8px;border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.14em;background:rgba(255,107,44,.14);color:#ffab85;border:1px solid rgba(255,107,44,.3);vertical-align:middle}
html body #shell #breadcrumb{display:block;margin-top:2px;font-family:var(--x-display);font-size:22px;font-weight:400;letter-spacing:.4px;text-transform:uppercase;color:#fff;line-height:1.15}
html body #shell .header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html body #shell #server-selector,html body #shell .header-actions select{min-height:40px;padding:8px 34px 8px 14px;border-radius:12px;background:rgba(0,0,0,.35);border:1px solid var(--x-line2);color:#fff;font-size:12.5px;font-weight:600}
html body #shell #updated{font-size:11px;color:var(--x-dim);padding:0 4px}
html body #shell #refresh{min-height:40px;padding:8px 14px;font-size:12.5px}
html body #shell #language-selector button{border-radius:10px;background:var(--x-surface);border:1px solid var(--x-line);color:var(--x-soft);min-height:40px}
html body #shell #content{max-width:1560px;padding:26px 14px 26px 0;margin:0 auto}
html body #shell #content.rzx-enter{animation:rzx-page .35s ease both}
@keyframes rzx-page{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
html body #shell .main-footer{color:var(--x-dim);font-size:11px;padding:10px 14px 24px 0}

/* ---------- En-tête de page ---------- */
html body #shell .page-head{position:relative;padding:4px 0 18px;margin-bottom:24px;border-bottom:1px solid var(--x-line)}
html body #shell .page-head::after{content:'';position:absolute;left:0;bottom:-1px;width:90px;height:2px;border-radius:2px;background:var(--x-grad);box-shadow:0 0 14px rgba(255,107,44,.6)}
html body #shell .page-head h1{font-family:var(--x-display);font-weight:400;font-size:clamp(30px,3vw,44px);line-height:1.05;text-transform:uppercase;letter-spacing:.5px;color:#fff}
html body #shell .page-head p{margin-top:10px;color:var(--x-muted);font-size:14.5px;line-height:1.65;max-width:760px}

/* ---------- Cartes & surfaces ---------- */
html body #shell .card,html body .card{position:relative;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.02));border:1px solid var(--x-line);border-radius:var(--x-r2);padding:22px;margin-bottom:20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.04),var(--x-shadow);backdrop-filter:blur(10px)}
html body #shell .card-heading{gap:12px}
html body #shell .card-heading h2,html body #shell .card h2{font-size:17px;font-weight:750;color:#fff}
html body #shell .card h3{color:#fff;font-size:15px}
html body #shell .settings-section>h2{border-bottom:1px solid var(--x-line);padding-bottom:12px}
html body #shell .grid-two{gap:20px}

/* Métriques */
html body #shell .metrics{gap:14px;margin:0 0 22px}
html body #shell .metric,html body #shell .metric:nth-child(n){position:relative;overflow:hidden;background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.015));border:1px solid var(--x-line);border-top:1px solid var(--x-line);border-radius:var(--x-r2);padding:18px 18px 16px}
html body #shell .metric::after{content:'';position:absolute;right:-40px;top:-40px;width:120px;height:120px;border-radius:50%;background:var(--m,#ff6b2c);opacity:.14;filter:blur(30px);pointer-events:none}
html body #shell .metric:nth-child(4n+1){--m:#3dd9ff}html body #shell .metric:nth-child(4n+2){--m:#9d7bff}html body #shell .metric:nth-child(4n+3){--m:#ffc93d}html body #shell .metric:nth-child(4n+4){--m:#3dd9ff}
html body #shell .metric>span{font-size:12px;font-weight:650;color:var(--x-muted)}
html body #shell .metric strong,html body #shell .metric:nth-child(n) strong{font-family:var(--x-font);font-weight:800;font-size:clamp(22px,2.2vw,30px);letter-spacing:-.03em;color:#fff;margin:6px 0 2px}
html body #shell .metric small{color:var(--x-dim)}

/* Anciennes tuiles (autres pages) */
html body #shell .home-tile,html body #shell .home-tile:nth-child(n),html body #shell .quick{border:1px solid var(--x-line);border-left:1px solid var(--x-line);border-radius:16px;background:var(--x-surface);padding:14px;transition:.2s}
html body #shell .home-tile:hover,html body #shell .quick:hover{filter:none;transform:translateY(-2px);background:var(--x-surface2);border-color:rgba(255,107,44,.45)}
html body #shell .home-icon{background:rgba(255,107,44,.12);color:#ff8a7a;border-radius:11px}
html body #shell .home-tile b{color:#fff;font-size:13px}html body #shell .home-tile small{color:var(--x-muted);font-size:11.5px}

/* Héros secondaires (Mon compte) */
html body #shell .dashboard-hero{border-radius:var(--x-r3);border:1px solid var(--x-line);background:#14131c}
html body #shell .dashboard-hero:after{background:linear-gradient(90deg,rgba(11,10,16,.95),rgba(11,10,16,.6) 55%,rgba(11,10,16,.1))}
html body #shell .dashboard-banner{opacity:.8}
html body #shell .dashboard-hero h2{font-family:var(--x-display);font-weight:400;text-transform:uppercase;font-size:36px;letter-spacing:.5px}

/* ---------- Formulaires ---------- */
html body #shell .field label,html body #shell .field-label,html body #shell .form-grid>label{color:var(--x-soft);font-size:12.5px;font-weight:700}
html body #shell .field small,html body #shell form label>small{color:var(--x-dim)}
html body #shell .field input:not([type=checkbox]):not([type=radio]),html body #shell .field select,html body #shell .field textarea,html body #shell .search,html body #shell textarea,html body #shell form label>input:not([type=checkbox]):not([type=range]):not([type=radio]),html body #shell form label>select,html body #shell form label>textarea,html body #shell .toolbar select,html body #shell input[type=search],html body #shell input[type=text],html body #shell input[type=number],html body #shell input[type=password],html body dialog input:not([type=checkbox]):not([type=radio]):not([type=range]),html body dialog select,html body dialog textarea{background:rgba(0,0,0,.38);border:1px solid var(--x-line2);border-radius:12px;color:#fff;min-height:42px;padding:10px 13px;transition:border-color .15s,box-shadow .15s,background .15s}
html body #shell input:hover:not(:focus),html body #shell select:hover:not(:focus),html body #shell textarea:hover:not(:focus){border-color:rgba(255,255,255,.24)}
html body #shell input:focus,html body #shell select:focus,html body #shell textarea:focus,html body dialog input:focus,html body dialog select:focus,html body dialog textarea:focus{outline:none;border-color:var(--x-orange);box-shadow:0 0 0 4px rgba(255,107,44,.18);background:rgba(0,0,0,.5)}
html body #shell select option{background:#14131c;color:#fff}
html body #shell .with-unit>span{color:var(--x-muted);font-weight:650}
html body #shell .toggle-field{background:var(--x-surface);border:1px solid var(--x-line);border-radius:14px}
html body #shell .toggle-field:hover{border-color:var(--x-line2)}
html body .switch,html body #shell .switch{appearance:none;width:46px;height:26px;border-radius:99px;background:rgba(255,255,255,.12);border:1px solid var(--x-line2);transition:background .2s,border-color .2s}
html body .switch:after{top:3px;left:3px;width:18px;height:18px;background:#cfd4dc;box-shadow:0 2px 6px rgba(0,0,0,.5);transition:left .2s,background .2s}
html body .switch:checked,html body #shell .switch:checked{background:var(--x-grad);border-color:transparent;box-shadow:0 0 16px rgba(255,90,60,.45)}
html body .switch:checked:after{left:23px;background:#fff}
html body #shell input[type=checkbox]:not(.switch),html body #shell input[type=radio]{accent-color:var(--x-red)}
html body #shell input[type=range]{accent-color:var(--x-orange)}
html body #shell .form-group-title{color:var(--x-orange);border-color:var(--x-line)}
html body #shell .save-bar,html body #shell .ds-save-bar{background:rgba(14,16,22,.85);border:1px solid var(--x-line2);border-radius:18px;backdrop-filter:blur(16px);box-shadow:var(--x-shadow)}
html body #shell .save-bar .dirty{color:var(--x-amber)}

/* ---------- Tableaux ---------- */
html body #shell .table-wrap{border:1px solid var(--x-line);border-radius:16px;background:rgba(0,0,0,.18);overflow:auto}
html body #shell table{border-collapse:separate;border-spacing:0}
html body #shell th{background:rgba(255,255,255,.035);color:var(--x-muted);font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;border-bottom:1px solid var(--x-line);padding:13px 14px}
html body #shell td{border-bottom:1px solid rgba(255,255,255,.05);color:var(--x-soft);padding:14px}
html body #shell tbody tr{transition:background .15s}
html body #shell tbody tr:hover td{background:rgba(255,255,255,.035)}
html body #shell tbody tr:last-child td{border-bottom:0}
html body #shell td:first-child{color:#fff}
html body #shell td small{color:var(--x-dim)}
html body #shell .negative{color:#ff7b7b}

/* ---------- Badges, notes, onglets ---------- */
html body #shell .badge,html body .badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:11.5px;font-weight:750;background:rgba(61,217,255,.12);color:#6ff2c3;border:1px solid rgba(61,217,255,.3)}
html body #shell .badge::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 8px currentColor}
html body #shell .badge.warn{background:rgba(255,201,61,.12);color:#ffd27a;border-color:rgba(255,201,61,.32)}
html body #shell .badge.off{background:rgba(255,255,255,.06);color:var(--x-muted);border-color:var(--x-line2)}
html body #shell .note,html body .note{position:relative;background:linear-gradient(90deg,rgba(255,201,61,.1),rgba(255,201,61,.03));border:1px solid rgba(255,201,61,.22);border-left:3px solid var(--x-amber);border-radius:14px;color:#f1d9a6;padding:13px 16px 13px 18px}
html body #shell .section-tabs{gap:6px;padding:5px;border-radius:14px;background:rgba(0,0,0,.3);border:1px solid var(--x-line);display:inline-flex;flex-wrap:wrap}
html body #shell .section-tabs a{border:0;border-radius:10px;padding:8px 14px;color:var(--x-muted);font-weight:700;font-size:12.5px}
html body #shell .section-tabs a:hover{color:#fff;background:var(--x-surface)}
html body #shell .section-tabs a.active{background:var(--x-grad);color:#fff;box-shadow:0 6px 18px -8px rgba(255,107,44,.9)}
html body #shell .settings-shortcuts a{border:1px solid var(--x-line);border-radius:999px;background:var(--x-surface);color:var(--x-soft)}
html body #shell .settings-shortcuts a:hover{border-color:rgba(255,107,44,.5);color:#fff}
html body #shell .empty{color:var(--x-muted);border:1px dashed var(--x-line2);border-radius:16px;background:var(--x-surface)}
html body #shell .subtle{color:var(--x-muted)}
html body #shell .audit-item{background:var(--x-surface);border:1px solid var(--x-line);border-radius:14px}
html body #shell .audit-item:hover{border-color:var(--x-line2)}
html body #shell details summary{color:var(--x-orange);font-weight:700}
html body #shell pre{background:rgba(0,0,0,.45);border:1px solid var(--x-line);border-radius:12px}
html body #shell hr{border:0;border-top:1px solid var(--x-line)}
html body #shell code{background:rgba(255,255,255,.07);padding:1px 6px;border-radius:6px}
html body #shell progress{accent-color:var(--x-red)}

/* Modules spécifiques (factions, boutique, quêtes, battlepass, carte, réglages) */
html body #shell .faction-metrics,html body #shell .faction-bio,html body #shell .faction-flag,html body #shell .faction-rename,html body #shell .faction-invite,html body #shell .shop-form-group,html body #shell .faction-edit-panel,html body #shell .task-operation,html body #shell .discord-setting-row,html body #shell .shop-item,html body #shell .quest-card,html body #shell .bp-level,html body #shell .quest-period,html body #shell .raid-weekdays label,html body #shell .weekday-picks label,html body #shell .map-player,html body #shell .image-preview,html body #shell .brand-preview{background:var(--x-surface);border:1px solid var(--x-line);border-radius:16px}
html body #shell .shop-item:hover,html body #shell .quest-card:hover,html body #shell .map-player:hover{border-color:var(--x-line2)}
html body #shell .shop-item strong{color:var(--x-green)}
html body #shell .bp-level section{background:rgba(0,0,0,.22);border-radius:12px}
html body #shell .quest-rewards strong{color:var(--x-amber)}
html body #shell #map-canvas,html body #shell .faction-mini-map{border-radius:16px;background:#080a0e;border:1px solid var(--x-line)}
html body #shell .ds-row select,html body #shell .ds-combo-input,html body .rz-select-field{background:rgba(0,0,0,.38);border-color:var(--x-line2);border-radius:12px}
html body .ds-combo-list,html body .rz-select-list,html body .community-picker-menu{background:#14131c;border:1px solid var(--x-line2);border-radius:14px;box-shadow:var(--x-shadow)}
html body .ds-combo-list button:hover,html body .ds-combo-list button.active,html body .rz-select-list>button:hover,html body .rz-select-list>button.is-active,html body .community-picker-menu button:hover{background:rgba(255,107,44,.16)}
html body .ds-combo-list button[aria-selected=true],html body .rz-select-list>button[aria-selected="true"]{background:rgba(255,107,44,.22)}
html body .ds-role-chip,html body .rz-select-chip{background:rgba(255,107,44,.14);border:1px solid rgba(255,107,44,.3);border-radius:999px}
html body .map-hover{background:rgba(14,16,22,.94);border:1px solid var(--x-line2);border-radius:16px;backdrop-filter:blur(14px)}
html body #shell .community-module:hover,html body #shell .community-module.selected{background:rgba(255,107,44,.08)}
html body #shell .factions-app{background:linear-gradient(135deg,rgba(157,123,255,.12),rgba(255,107,44,.06));border-radius:var(--x-r2)}
html body .plan-option.is-selected{border-color:var(--x-red);background:rgba(255,107,44,.12)}

/* ---------- Éléments stylés en ligne par le JS (langue, mise en route) ---------- */
html body #language-selector{gap:6px!important}
html body #language-selector button{display:inline-flex!important;align-items:center;gap:6px;min-height:40px;padding:8px 12px!important;border-radius:12px!important;background:var(--x-surface2)!important;border:1px solid var(--x-line2)!important;color:var(--x-text)!important;font-size:12.5px;font-weight:700;transition:background .15s,border-color .15s}
html body #language-selector button:hover{background:var(--x-surface3)!important;border-color:rgba(255,255,255,.26)!important}
html body #language-selector button[aria-pressed=true]{background:rgba(255,107,44,.16)!important;border-color:rgba(255,107,44,.5)!important;color:#fff!important}
html body #language-selector svg{border-radius:3px}
html body dialog[style]{background:rgba(20,19,28,.97)!important;border:1px solid var(--x-line2)!important;border-radius:var(--x-r3)!important;color:var(--x-text)!important}
html body #onboarding-layer{background:rgba(3,4,6,.82)!important;backdrop-filter:blur(8px)}
html body #onboarding-layer .card{background:rgba(20,19,28,.96)}
html body #onboarding-banner{border-radius:16px}

/* ---------- Listes déroulantes avec recherche (remplacent tous les <select>) ---------- */
html body .rz-select-field{min-height:42px;border:1px solid var(--x-line2);border-radius:12px;background:rgba(0,0,0,.38);transition:border-color .15s,box-shadow .15s}
html body .rz-select-field:hover{border-color:rgba(255,255,255,.24)}
html body .rz-select-field:focus-within{border-color:var(--x-orange);box-shadow:0 0 0 4px rgba(255,107,44,.18)}
html body #shell .rz-select input.rz-select-input,html body .rz-select input.rz-select-input{min-height:40px;border-radius:0;padding:9px 13px;color:#fff}
html body .rz-select-input::placeholder{color:var(--x-muted)}
html body .rz-select button.rz-select-arrow{color:var(--x-muted);background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
html body .rz-select button.rz-select-arrow:hover{color:#fff;transform:none}
html body .rz-select-list{padding:6px;color:var(--x-text);font-size:13.5px}
html body .rz-select-list>button{border-radius:10px;background:transparent;border:0;box-shadow:none;color:var(--x-soft)}
html body .rz-select-list>button:hover,html body .rz-select-list>button.is-active{color:#fff}
html body .rz-select-list>button[aria-selected="true"]{color:#fff}
html body .rz-select-group{color:var(--x-dim);letter-spacing:.12em}
html body .rz-select-chip{color:#ffd6cf}
html body #shell .header-actions>.rz-select{width:260px}
html body #shell .header-actions .rz-select-field{min-height:40px}

/* ---------- Onglets en boutons (Battlepass, Quêtes, Tâches, Réglages) ---------- */
html body #shell .section-tabs>button,html body #shell .ds-tabs>button{min-height:36px;padding:8px 14px;border:0;border-radius:10px;background:transparent;color:var(--x-muted);font-size:12.5px;font-weight:700;box-shadow:none}
html body #shell .section-tabs>button:hover,html body #shell .ds-tabs>button:hover{background:var(--x-surface2);color:#fff;transform:none}
html body #shell .section-tabs>button.active,html body #shell .section-tabs>button.primary,html body #shell .section-tabs>button[aria-pressed=true],html body #shell .section-tabs>button[aria-selected=true],html body #shell .ds-tabs>button.active,html body #shell .ds-tabs>button.primary,html body #shell .ds-tabs>button[aria-pressed=true],html body #shell .ds-tabs>button[aria-selected=true]{background:var(--x-grad);color:#fff;box-shadow:0 6px 18px -8px rgba(255,107,44,.9)}
html body #shell .ds-tabs{display:inline-flex;flex-wrap:wrap;gap:6px;padding:5px;border-radius:14px;background:rgba(0,0,0,.3);border:1px solid var(--x-line)}

/* ---------- Volets dépliables ---------- */
html body #shell details:not(.rule-help){border-radius:14px}
html body #shell .card details:not(.rule-help),html body #shell details.world-layer-panel,html body #shell .map-side details{margin-top:12px;padding:0 14px;border:1px solid var(--x-line);background:rgba(0,0,0,.2)}
html body #shell details>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:12px 0;cursor:pointer;color:#fff;font-weight:700;font-size:13px}
html body #shell details>summary::-webkit-details-marker{display:none}
html body #shell details>summary::before{content:'›';display:grid;place-items:center;flex:none;width:22px;height:22px;border-radius:7px;background:rgba(255,107,44,.14);color:var(--x-orange);font-size:15px;transition:transform .2s}
html body #shell details[open]>summary::before{transform:rotate(90deg)}
html body #shell details[open]>summary{border-bottom:1px solid var(--x-line);margin-bottom:12px}
html body #shell details.card{padding:0 18px}
html body #shell td details{padding:0 10px;margin:0}

/* ---------- Statistiques serveur ---------- */
html body #shell .analytics-metric strong{color:#fff;font-weight:800;letter-spacing:-.03em}
html body #shell .analytics-metric span,html body #shell .analytics-metric small,html body #shell .analytics-note,html body #shell .analytics-empty{color:var(--x-muted)}
html body #shell .analytics-chart{color:var(--x-muted)}

/* ---------- Divers ---------- */
html body #shell #faction-detail-map{background:#080a0e;border:1px solid var(--x-line);border-radius:16px}
html body #shell .faction-glass{border-radius:var(--x-r2)}
html body #shell input[type=checkbox]:not(.switch),html body #shell input[type=radio]{background:none!important;min-height:0!important;padding:0!important;border-radius:4px;width:16px;height:16px}
html body #shell input[type=date],html body #shell input[type=datetime-local],html body #shell input[type=time]{color-scheme:dark}
html body #shell input[type=file]{color:var(--x-muted)}
html body #shell input[type=file]::file-selector-button{margin-right:10px;padding:8px 12px;border-radius:10px;border:1px solid var(--x-line2);background:var(--x-surface2);color:#fff;font-weight:700;cursor:pointer}
html body #shell .ds-table-head{color:var(--x-muted);border-color:var(--x-line)}
html body #shell .ds-row{border-color:var(--x-line)}
html body #shell .ds-service-grid>div{background:var(--x-surface);border:1px solid var(--x-line);border-radius:14px}
html body #shell .ds-service-grid small{color:var(--x-muted)}
html body #shell .welcome-tools,html body #shell .welcome-section,html body #shell .studio-templates,html body #shell .studio-row{border-color:var(--x-line);border-radius:14px}
html body #shell .community-module{border-radius:12px}
html body #shell .community-module.selected{box-shadow:inset 3px 0 0 var(--x-orange)}

/* ---------- Aide contextuelle ---------- */
html body #shell .rule-help-button{width:18px;height:18px;min-width:18px;border-radius:50%;border:1px solid var(--x-line2);background:var(--x-surface2);color:var(--x-soft);font-size:10px}
html body #shell .rule-help-button:hover,html body #shell .rule-help-button[aria-expanded=true]{background:var(--x-grad);border-color:transparent;color:#fff;outline:none}
html body .rule-help-text{background:rgba(20,19,28,.97)!important;border:1px solid var(--x-line2)!important;color:var(--x-text)!important;border-radius:14px!important;box-shadow:0 20px 50px rgba(0,0,0,.7)!important;backdrop-filter:blur(14px)}

/* ---------- Dialogues, recherche, toasts ---------- */
html body dialog{background:rgba(20,19,28,.96);color:var(--x-text);border:1px solid var(--x-line2);border-radius:var(--x-r3);box-shadow:0 40px 100px -20px rgba(0,0,0,.95);backdrop-filter:blur(20px)}
html body dialog::backdrop{background:rgba(3,4,6,.72);backdrop-filter:blur(6px)}
html body dialog[open]{animation:rzx-pop .22s ease both}
@keyframes rzx-pop{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
html body #rz-search-dialog{background:rgba(20,19,28,.97);border:1px solid var(--x-line2);border-radius:var(--x-r3);padding:22px;width:min(620px,94vw)}
html body #rz-search-dialog h2{font-family:var(--x-display);font-weight:400;text-transform:uppercase;letter-spacing:.5px;font-size:26px}
html body #rz-search-dialog label{color:var(--x-muted)}
html body #rz-search-input{background:rgba(0,0,0,.45);border:1px solid var(--x-line2);border-radius:14px;padding:14px 16px;font-size:15px}
html body #rz-search-input:focus{outline:none;border-color:var(--x-orange);box-shadow:0 0 0 4px rgba(255,107,44,.18)}
html body #rz-search-dialog .rz-search-result{border:0;border-radius:12px;margin:2px 0;color:var(--x-text)}
html body #rz-search-dialog .rz-search-result:hover,html body #rz-search-dialog .rz-search-result:focus-visible{background:linear-gradient(90deg,rgba(255,107,44,.18),rgba(255,107,44,.05))}
html body #rz-search-dialog .rz-search-result small,html body #rz-search-count{color:var(--x-muted)}
html body #toast{background:rgba(20,19,28,.95);color:var(--x-text);border:1px solid var(--x-line2);border-left:4px solid var(--x-green);border-radius:16px;backdrop-filter:blur(16px);box-shadow:0 20px 50px -10px rgba(0,0,0,.85);animation:rzx-toast .3s ease both}
html body #toast.error{border-left-color:var(--x-red);background:rgba(30,12,14,.95)}
@keyframes rzx-toast{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
html body .skip-content{border-radius:12px}

/* ---------- Page de connexion ---------- */
html body .login{position:relative;min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(110deg,rgba(11,10,16,.96) 0%,rgba(11,10,16,.75) 45%,rgba(11,10,16,.35) 100%),url('/site/banner.png') 65% center/cover!important}
html body .login::after{content:'';position:absolute;inset:0;background:radial-gradient(600px 400px at 20% 50%,rgba(255,107,44,.18),transparent 70%);pointer-events:none}
html body .login-card{position:relative;z-index:1;width:100%;max-width:470px;padding:38px 34px;border-radius:28px!important;border:1px solid var(--x-line2)!important;background:rgba(16,15,23,.72)!important;backdrop-filter:blur(22px) saturate(1.3);box-shadow:0 40px 100px -30px rgba(0,0,0,.95);text-align:left}
html body .login-card .brand{justify-content:flex-start;font-family:var(--x-display);font-size:40px;color:#fff;margin-bottom:6px}
html body .login-card .brand span{color:var(--x-red)}
html body .login-card .eyebrow{display:inline-block;padding:4px 10px;border-radius:999px;background:rgba(255,107,44,.14);border:1px solid rgba(255,107,44,.3);color:#ffab85;letter-spacing:.16em}
html body .login-card h1{font-family:var(--x-display);font-weight:400;text-transform:uppercase;font-size:clamp(38px,6vw,54px);line-height:1;letter-spacing:.5px;margin:18px 0 14px;color:#fff}
html body .login-card>p{color:var(--x-soft);font-size:14.5px;margin-bottom:18px}
html body .login-card .primary,html body .login-card .secondary{display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;margin:10px 0 0;padding:14px 18px;border-radius:14px;font-size:15px;font-weight:750}
html body .login-card .secondary{background:var(--x-surface2);border:1px solid var(--x-line2)}
html body .login-card .primary,html body .login-card #oauth-login{display:flex;background:var(--x-grad);color:#fff;border:0;box-shadow:0 14px 34px -14px rgba(255,107,44,.95),inset 0 1px 0 rgba(255,255,255,.25);margin-top:6px}
html body .login-card #oauth-admin-login{display:flex}
@media(min-width:900px){html body .login{justify-items:start;padding-left:max(24px,7vw)}}
html body .login-card a[href="/site"]{color:var(--x-orange);font-weight:700}
html body .login-card footer{margin-top:22px;color:var(--x-dim);letter-spacing:.2em}
html body #retry{margin-top:6px}

/* =========================================================
   ACCUEIL
   ========================================================= */
.rzh{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;animation:rzx-page .45s ease both}
.rzh h1,.rzh h2{margin:0}
.rzh .rzh-kicker{display:inline-flex;align-items:center;gap:7px;font-size:10.5px;font-weight:800;letter-spacing:.2em;color:var(--x-muted)}
.rzh-dot{width:7px;height:7px;border-radius:50%;background:var(--x-red);box-shadow:0 0 10px var(--x-red);animation:rzx-blink 1.4s infinite}
@keyframes rzx-blink{50%{opacity:.3}}

/* Héros */
.rzh-hero{position:relative;overflow:hidden;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:28px;min-height:330px;padding:36px 40px;border-radius:var(--x-r3);border:1px solid var(--x-line2);background:#090b0f;box-shadow:var(--x-shadow)}
.rzh-hero-art{position:absolute;inset:0;z-index:-1}
.rzh-hero-art img{width:100%;height:100%;object-fit:cover;object-position:62% 30%;animation:rzx-drift 22s ease-in-out infinite alternate}
.rzh-hero-art::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,10,16,.97) 0%,rgba(11,10,16,.85) 38%,rgba(11,10,16,.45) 70%,rgba(11,10,16,.65) 100%),linear-gradient(0deg,rgba(11,10,16,.85),transparent 50%)}
.rzh-hero::before{content:'';position:absolute;inset:-1px;z-index:-1;border-radius:inherit;background:radial-gradient(500px 260px at 90% 50%,rgba(255,107,44,.18),transparent 70%);pointer-events:none}
@keyframes rzx-drift{from{transform:scale(1.05)}to{transform:scale(1.14) translateX(-2%)}}
.rzh-hero-content{display:grid;gap:10px;max-width:640px}
.rzh-role{display:inline-flex;align-items:center;gap:10px;width:max-content;max-width:100%;padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid var(--x-line2);font-size:10.5px;font-weight:800;letter-spacing:.16em;color:var(--x-soft);backdrop-filter:blur(8px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rzh-role i{width:4px;height:4px;border-radius:50%;background:var(--x-red)}
.rzh-greet{margin:6px 0 0;color:var(--x-soft);font-size:16px}
.rzh-greet b{color:#fff}
.rzh-hero h1{font-family:var(--x-display);font-weight:400;font-size:clamp(38px,5.4vw,70px);line-height:.95;letter-spacing:.5px;text-transform:uppercase;color:#fff;background:linear-gradient(180deg,#fff 30%,#ffb8a8);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 6px 24px rgba(0,0,0,.6))}
.rzh-tagline{margin:0;color:var(--x-soft);font-size:15px;max-width:520px}
.rzh-ctas{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.rzh-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:14px;font-weight:750;font-size:14px;border:1px solid transparent;cursor:pointer;transition:transform .15s,background .2s,box-shadow .2s}
.rzh-btn.primary{background:var(--x-grad);color:#fff;box-shadow:0 12px 30px -12px rgba(255,107,44,.95),inset 0 1px 0 rgba(255,255,255,.25)}
.rzh-btn.ghost{background:rgba(255,255,255,.07);color:#fff;border-color:var(--x-line2);backdrop-filter:blur(10px)}
.rzh-btn.ghost:hover{background:rgba(255,255,255,.13)}
.rzh-btn:hover{transform:translateY(-2px)}
.rzh-btn kbd{font:inherit;font-size:11px;padding:0 6px;border-radius:6px;background:rgba(255,255,255,.1)}
.rzh-servers{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px}
.rzh-servers>span{font-size:10.5px;font-weight:800;letter-spacing:.16em;color:var(--x-dim);text-transform:uppercase;margin-right:4px}
.rzh-server{padding:6px 13px;border-radius:999px;font-size:12.5px;font-weight:700;background:rgba(0,0,0,.4);color:var(--x-soft);border:1px solid var(--x-line2)}
.rzh-server:hover{color:#fff;border-color:rgba(255,255,255,.3)}
.rzh-server.active{background:#fff;color:#14131c;border-color:#fff}

/* Orbe de statut */
.rzh-orb{position:relative;width:210px;height:210px;flex:none;display:grid;place-items:center}
.rzh-orb-ring{position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,var(--a),transparent 30%,var(--a) 55%,transparent 80%,var(--a));-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));animation:rzx-spin 9s linear infinite;opacity:.9}
.rzh-orb::before{content:'';position:absolute;inset:16px;border-radius:50%;border:1px dashed color-mix(in srgb,var(--a) 40%,transparent);animation:rzx-spin 30s linear infinite reverse}
.rzh-orb-sweep{position:absolute;inset:16px;border-radius:50%;background:conic-gradient(from 0deg,color-mix(in srgb,var(--a) 45%,transparent),transparent 25%);animation:rzx-spin 3.2s linear infinite}
.rzh-orb-core{position:relative;display:grid;justify-items:center;gap:0;width:150px;height:150px;border-radius:50%;place-content:center;background:radial-gradient(circle at 50% 35%,rgba(255,255,255,.08),rgba(11,10,16,.92) 70%);border:1px solid color-mix(in srgb,var(--a) 45%,transparent);box-shadow:0 0 50px -10px var(--a),inset 0 0 30px rgba(0,0,0,.6);backdrop-filter:blur(8px)}
.rzh-orb-core small{font-size:10px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--x-muted)}
.rzh-orb-core b{font-size:44px;font-weight:800;line-height:1.05;letter-spacing:-.04em;color:#fff;font-variant-numeric:tabular-nums}
.rzh-orb-core em{font-style:normal;font-size:12px;font-weight:700;color:var(--a)}
@keyframes rzx-spin{to{transform:rotate(360deg)}}

/* KPI */
.rzh-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.rzh-kpis.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.rzh-kpi{position:relative;overflow:hidden;display:grid;gap:2px;padding:18px;border-radius:var(--x-r2);background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.015));border:1px solid var(--x-line);transition:transform .2s,border-color .2s,box-shadow .2s}
.rzh-kpi::after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,var(--a),transparent);opacity:.8}
.rzh-kpi::before{content:'';position:absolute;right:-50px;top:-50px;width:140px;height:140px;border-radius:50%;background:var(--a);opacity:.12;filter:blur(34px)}
.rzh-kpi:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--a) 50%,transparent);box-shadow:0 18px 40px -22px var(--a)}
.rzh-kpi-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.rzh-kpi-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;font-size:18px;color:var(--a);background:color-mix(in srgb,var(--a) 14%,transparent);border:1px solid color-mix(in srgb,var(--a) 30%,transparent)}
.rzh-kpi-arrow{color:var(--x-dim);transition:.2s}.rzh-kpi:hover .rzh-kpi-arrow{color:var(--a);transform:translate(2px,-2px)}
.rzh-kpi small{font-size:12.5px;font-weight:650;color:var(--x-muted)}
.rzh-kpi b{font-size:clamp(22px,2.2vw,30px);font-weight:800;letter-spacing:-.03em;color:#fff;white-space:nowrap;font-variant-numeric:tabular-nums}
.rzh-kpi em{font-style:normal;font-size:12px;color:var(--x-dim)}

/* Disposition */
.rzh-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:22px;align-items:start}
.rzh-main,.rzh-side{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;min-width:0}
.rzh-panel,.rzh-hero,.rzh-kpis,.rzh-bento{min-width:0}
.rzh-panel{background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.02));border:1px solid var(--x-line);border-radius:var(--x-r2);padding:20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.rzh-panel.flat{background:none;border:0;padding:0;box-shadow:none}
.rzh-panel-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:14px}
.rzh-panel-head h2{margin-top:3px;font-size:19px;font-weight:800;letter-spacing:-.02em;color:#fff}
.rzh-link{font-size:12.5px;font-weight:750;color:var(--x-orange);white-space:nowrap}.rzh-link:hover{color:#fff}
.rzh-muted{margin:-6px 0 12px;font-size:12.5px;color:var(--x-muted)}

/* Bento */
.rzh-bento{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:136px;grid-auto-flow:dense;gap:12px}
.rzh-tile{position:relative;overflow:hidden;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;padding:16px;border-radius:20px;background:radial-gradient(120% 120% at 0% 0%,color-mix(in srgb,var(--a) 22%,transparent),rgba(255,255,255,.02) 60%);border:1px solid var(--x-line);transition:transform .25s,box-shadow .25s,border-color .25s}
.rzh-tile.xl{grid-column:span 2;grid-row:span 2}.rzh-tile.tall{grid-row:span 2}.rzh-tile.wide{grid-column:span 2}
.rzh-tile img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;transition:transform .7s ease,filter .3s;filter:saturate(.85) brightness(.9)}
.rzh-tile img.pos-left{object-position:0% 50%}
.rzh-tile-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(11,10,16,.95) 0%,rgba(11,10,16,.4) 55%,rgba(11,10,16,.05) 100%)}
.rzh-tile:not(.has-img) .rzh-tile-shade{display:none}
.rzh-tile:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--a) 60%,transparent);box-shadow:0 22px 44px -22px var(--a)}
.rzh-tile:hover img{transform:scale(1.08);filter:saturate(1.05) brightness(1)}
.rzh-tile-icon{position:absolute;top:14px;left:14px;display:grid;place-items:center;width:40px;height:40px;border-radius:13px;font-size:17px;color:#fff;background:linear-gradient(135deg,var(--a),color-mix(in srgb,var(--a) 50%,#000));box-shadow:0 8px 20px -6px var(--a)}
.rzh-tile-text{display:grid;gap:2px}
.rzh-tile-text b{font-size:16px;font-weight:800;color:#fff;line-height:1.2}
.rzh-tile.xl .rzh-tile-text b{font-family:var(--x-display);font-weight:400;font-size:34px;letter-spacing:.5px;text-transform:uppercase}
.rzh-tile-text small{font-size:12.5px;color:var(--x-soft)}
.rzh-tile-go{position:absolute;top:16px;right:16px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;backdrop-filter:blur(6px);opacity:0;transform:translateX(-6px);transition:.25s}
.rzh-tile:hover .rzh-tile-go{opacity:1;transform:none}
.rzh-lock{position:absolute;top:16px;right:16px;padding:3px 9px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.1em;background:var(--x-amber);color:#1a1205}
.rzh-lock.small{position:static;margin-left:auto}

/* Explorateur */
.rzh-search{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:12px;background:rgba(0,0,0,.35);border:1px solid var(--x-line2);color:var(--x-soft);font-weight:650;font-size:12.5px}
.rzh-search:hover{color:#fff}
.rzh-search kbd{font:inherit;font-size:11px;padding:0 6px;border-radius:6px;background:rgba(255,255,255,.08)}
.rzh-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.rzh-tab{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border-radius:999px;background:transparent;color:var(--x-muted);border:1px solid var(--x-line);font-weight:700;font-size:12.5px}
.rzh-tab span{color:var(--a)}
.rzh-tab:hover{color:#fff;border-color:var(--x-line2)}
.rzh-tab.active{background:color-mix(in srgb,var(--a) 16%,transparent);border-color:color-mix(in srgb,var(--a) 50%,transparent);color:#fff}
.rzh-tabpanel{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;animation:rzx-page .3s ease both}
.rzh-tabpanel[hidden]{display:none}
.rzh-chip{display:flex;align-items:center;gap:12px;padding:12px;border-radius:15px;background:var(--x-surface);border:1px solid var(--x-line);transition:.2s}
.rzh-chip:hover{border-color:color-mix(in srgb,var(--a) 55%,transparent);background:color-mix(in srgb,var(--a) 9%,transparent);transform:translateY(-1px)}
.rzh-chip-icon{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;color:var(--a);background:color-mix(in srgb,var(--a) 14%,transparent)}
.rzh-chip b{display:block;font-size:13.5px;color:#fff}.rzh-chip small{display:block;font-size:12px;color:var(--x-muted)}
.rzh-chip-go{margin-left:auto;color:var(--x-dim);transition:.2s}.rzh-chip:hover .rzh-chip-go{color:var(--a);transform:translate(2px,-2px)}

/* Colonne latérale */
.rzh-filter{width:100%;margin-bottom:10px;padding:9px 12px;border-radius:12px;background:rgba(0,0,0,.35);border:1px solid var(--x-line2);color:#fff}
.rzh-people{list-style:none;margin:0;padding:0;display:grid;gap:2px;max-height:340px;overflow:auto}
.rzh-people li{display:flex;align-items:center;gap:11px;padding:7px 8px;border-radius:12px;transition:background .15s}
.rzh-people li:hover{background:var(--x-surface2)}
.rzh-people li[hidden]{display:none}
.rzh-avatar{position:relative;flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:13px;font-weight:800;font-size:13px;color:#fff}
.hu-0{background:linear-gradient(135deg,#ff5a5a,#9b1d2c)}.hu-1{background:linear-gradient(135deg,#ff9a3d,#a6461a)}.hu-2{background:linear-gradient(135deg,#ffc93d,#9a6a12)}.hu-3{background:linear-gradient(135deg,#3dd9ff,#127a5a)}.hu-4{background:linear-gradient(135deg,#3dd9ff,#1a5f8f)}.hu-5{background:linear-gradient(135deg,#7b8cff,#36338f)}.hu-6{background:linear-gradient(135deg,#c17bff,#6a2a9a)}.hu-7{background:linear-gradient(135deg,#ff6fb5,#8f1f5c)}
.rzh-avatar i{position:absolute;right:-2px;bottom:-2px;width:12px;height:12px;border-radius:50%;background:var(--x-green);border:2px solid #10131a;box-shadow:0 0 8px var(--x-green)}
.rzh-avatar i.warn{background:var(--x-amber);box-shadow:none}
.rzh-person{display:grid;min-width:0}.rzh-person b{font-size:13.5px;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rzh-person small{font-size:12px;color:var(--x-muted)}
.rzh-empty{display:grid;justify-items:center;gap:4px;padding:24px 10px;text-align:center;border-radius:16px;background:var(--x-surface);border:1px dashed var(--x-line2)}
.rzh-empty span{font-size:26px;opacity:.7}.rzh-empty b{color:#fff}.rzh-empty small{color:var(--x-muted);font-size:12.5px}
.rzh-empty code{background:rgba(255,255,255,.08);padding:1px 6px;border-radius:6px}
.rzh-rank{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.rzh-rank li{display:flex;align-items:center;gap:10px}
.rzh-pos{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:8px;font-weight:800;font-size:12px;color:var(--x-muted);background:var(--x-surface)}
.rzh-rank li:first-child .rzh-pos{background:linear-gradient(135deg,#ffd166,#c98a12);color:#1a1205}
.rzh-rank li:nth-child(2) .rzh-pos{background:linear-gradient(135deg,#e6ebf2,#8b95a5);color:#111}
.rzh-rank li:nth-child(3) .rzh-pos{background:linear-gradient(135deg,#f0a36b,#8a4a1f);color:#1a0d05}
.rzh-flag{flex:none;width:36px;height:36px;border-radius:10px;object-fit:cover;display:grid;place-items:center;background:var(--x-surface2);color:var(--x-muted);border:1px solid var(--x-line)}
.rzh-rank-body{flex:1;min-width:0;display:grid;gap:6px}.rzh-rank-body b{font-size:13.5px;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rzh-bar{height:6px;border-radius:9px;background:rgba(255,255,255,.07);overflow:hidden}
.rzh-bar i{display:block;height:100%;width:0;border-radius:inherit;background:var(--x-grad);box-shadow:0 0 10px rgba(255,90,60,.6);transition:width 1s cubic-bezier(.2,.8,.2,1)}
.rzh-rank-val{text-align:right;font-weight:800;font-size:13px;color:#fff;white-space:nowrap}.rzh-rank-val small{display:block;font-weight:600;font-size:11px;color:var(--x-muted)}
.rzh-timeline{list-style:none;margin:0;padding:0;display:grid}
.rzh-timeline li{position:relative;display:flex;gap:12px;padding:0 0 15px}
.rzh-timeline li:last-child{padding-bottom:0}
.rzh-timeline li>i{position:relative;flex:none;width:10px;height:10px;margin-top:5px;border-radius:50%;background:var(--x-orange);box-shadow:0 0 0 4px rgba(255,107,44,.15)}
.rzh-timeline li:not(:last-child)>i::after{content:'';position:absolute;left:4px;top:14px;width:2px;height:calc(100% + 20px);background:linear-gradient(var(--x-line2),transparent)}
.rzh-timeline b{display:block;font-size:13.5px;color:#fff}.rzh-timeline small{font-size:12px;color:var(--x-muted)}

/* =========================================================
   Responsive
   ========================================================= */
@media(max-width:1280px){.rzh-layout{grid-template-columns:minmax(0,1fr)}.rzh-side{grid-template-columns:repeat(auto-fit,minmax(290px,1fr))}}
@media(max-width:1100px){
 html body #shell #sidebar{width:240px}html body #shell>main{margin-left:268px}
 .rzh-hero{grid-template-columns:minmax(0,1fr)}.rzh-orb{display:none}
 .rzh-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 html body #shell #sidebar{top:10px;bottom:10px;left:10px;width:min(300px,calc(100vw - 40px));transform:translateX(calc(-100% - 20px));transition:transform .25s ease}
 html body #shell #sidebar.open{transform:none}
 html body #shell>main{margin-left:0}
 html body #shell>main>header{position:relative;top:0;margin:8px 8px 0;padding:10px 12px;border-radius:18px}
 html body #shell>main>header::before{display:none}
 html body #shell #breadcrumb{font-size:19px}
 html body #shell #content{padding:18px 10px}
 html body #shell .main-footer{padding:10px}
 html body #shell .page-head h1{font-size:30px}
 html body #rz-menu-close{background:var(--x-surface2);border:1px solid var(--x-line2);border-radius:10px;color:#fff}
 .rzh-hero{padding:24px 20px;min-height:0;border-radius:22px}
 .rzh-hero h1{font-size:40px}
 .rzh-bento{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:120px}
 .rzh-tile.xl{grid-column:span 2}.rzh-tile.tall{grid-row:span 1}
 .rzh-kpis,.rzh-kpis.three{grid-template-columns:1fr 1fr;gap:10px}
 .rzh-kpi{padding:14px}.rzh-kpi b{font-size:22px}
 .rzh-btn{flex:1 1 auto;justify-content:center}
 html body .login-card{padding:28px 22px}
}
@media(prefers-reduced-motion:reduce){html body *,html body *::before,html body *::after{animation:none!important;transition:none!important}}

/* =========================================================
   MOBILE — optimisation téléphone
   ========================================================= */
#rzx-bottom,#rzx-scrim{display:none}
@media(max-width:760px){
 html body{font-size:14px}
 html.rzx-locked,html.rzx-locked body{overflow:hidden}
 /* Barre d'onglets en bas, façon application */
 html body #rzx-bottom{position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:40;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:6px;border-radius:22px;background:rgba(14,16,22,.86);border:1px solid var(--x-line2);backdrop-filter:blur(22px) saturate(1.4);-webkit-backdrop-filter:blur(22px) saturate(1.4);box-shadow:0 18px 40px -12px rgba(0,0,0,.95)}
 html body #rzx-bottom a,html body #rzx-bottom button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:52px;padding:4px 2px;border:0;border-radius:16px;background:none;color:var(--x-muted);font-weight:700;box-shadow:none;-webkit-tap-highlight-color:transparent}
 html body #rzx-bottom span{font-size:19px;line-height:1}
 html body #rzx-bottom b{font-size:10.5px;font-weight:750;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
 html body #rzx-bottom .active{color:#fff;background:linear-gradient(180deg,rgba(255,107,44,.24),rgba(255,107,44,.1))}
 html body #rzx-bottom .active span{color:var(--x-orange);filter:drop-shadow(0 0 8px rgba(255,107,44,.7))}
 html body #rzx-bottom a:active,html body #rzx-bottom button:active{transform:scale(.94)}
 html body #rzx-scrim{display:block;position:fixed;inset:0;z-index:48;background:rgba(3,4,6,.6);backdrop-filter:blur(4px);animation:rzx-page .2s ease both}
 html body #rzx-scrim[hidden]{display:none}
 /* Menu latéral : tiroir plein hauteur */
 html body #shell #sidebar{top:8px;bottom:8px;left:8px;width:min(310px,calc(100vw - 56px));border-radius:24px;background:rgba(16,15,23,.97);z-index:50}
 html body #shell #nav a{min-height:44px;font-size:14px}
 html body #shell .rzx-group-toggle{min-height:42px}
 /* En-tête compact */
 html body #shell>main>header{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px 12px;margin:8px 8px 0;padding:10px 12px;border-radius:18px}
 html body #shell #menu{display:grid;place-items:center;width:42px;height:42px;padding:0;border-radius:13px;font-size:18px}
 html body #shell #guild{max-width:52vw;font-size:9px}
 html body #shell .persona{font-size:8px;padding:1px 6px}
 html body #shell #breadcrumb{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html body #shell .header-actions{grid-column:1/-1;display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -2px;padding:0 2px}
 html body #shell .header-actions::-webkit-scrollbar{display:none}
 html body #shell .header-actions>.rz-select,html body #shell .header-actions>select{flex:1 0 170px;width:auto;max-width:none}
 html body #shell #updated{display:none}
 html body #shell #refresh{flex:none;min-height:40px;padding:8px 12px}
 html body #language-selector{flex:none;flex-wrap:nowrap!important}
 html body #language-selector button{min-height:40px;padding:6px 10px!important;white-space:nowrap}
 /* Contenu */
 html body #shell #content{padding:16px 10px calc(96px + env(safe-area-inset-bottom))}
 html body #shell .main-footer{display:none}
 html body #shell .page-head{padding-bottom:14px;margin-bottom:18px}
 html body #shell .page-head h1{font-size:28px}
 html body #shell .page-head p{font-size:13.5px;margin-top:6px}
 html body #shell .page-actions{display:flex;gap:8px;width:100%;max-width:100%}
 html body #shell .page-actions>*{flex:1 1 140px;justify-content:center;min-height:44px}
 html body #shell .card{padding:16px 14px;border-radius:18px;margin-bottom:14px}
 html body #shell .card-heading{flex-wrap:wrap}
 html body #shell .metrics{grid-template-columns:1fr 1fr;gap:10px}
 html body #shell .metric{padding:14px 13px}
 html body #shell .metric strong{font-size:22px}
 html body #shell .grid-two,html body #shell .form-grid{grid-template-columns:1fr;gap:14px}
 /* Formulaires : cibles tactiles et pas de zoom iOS */
 html body #shell input:not([type=checkbox]):not([type=radio]):not([type=range]),html body #shell select,html body #shell textarea,html body dialog input:not([type=checkbox]):not([type=radio]):not([type=range]),html body dialog textarea,html body .rz-select input.rz-select-input{font-size:16px!important;min-height:46px}
 html body #shell button:not(.rule-help-button):not(.rz-select-arrow):not(.rzx-group-toggle),html body #shell a.primary,html body #shell a.secondary{min-height:44px}
 html body #shell .rule-help-button{min-height:0;width:22px;height:22px}
 html body #shell td button{min-height:38px}
 html body #shell .toggle-field{padding:12px 13px}
 html body #shell .save-bar,html body #shell .ds-save-bar{position:static;box-shadow:none;flex-wrap:wrap;gap:10px;padding:12px 14px}
 html body #shell .save-bar:has(.dirty),html body #shell .ds-save-bar:has(button:enabled){position:sticky;bottom:calc(84px + env(safe-area-inset-bottom));z-index:12;flex-wrap:wrap;gap:10px;padding:12px 14px;box-shadow:0 14px 34px -10px rgba(0,0,0,.95)}
 html body #shell .save-bar button,html body #shell .ds-save-bar button{width:100%}
 html body #shell .toolbar{flex-direction:column;align-items:stretch;gap:10px}
 html body #shell .toolbar>*{width:100%;max-width:none;flex:none}
 /* Onglets : défilement horizontal au lieu de 3 lignes */
 html body #shell .section-tabs,html body #shell .ds-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;max-width:100%;-webkit-overflow-scrolling:touch}
 html body #shell .section-tabs::-webkit-scrollbar,html body #shell .ds-tabs::-webkit-scrollbar{display:none}
 html body #shell .section-tabs>*,html body #shell .ds-tabs>*{flex:none;white-space:nowrap}
 /* Tableaux : défilement horizontal avec indice visuel */
 html body #shell .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;background:linear-gradient(90deg,rgba(0,0,0,.18) 30%,rgba(0,0,0,0)),linear-gradient(270deg,rgba(255,255,255,.08),rgba(0,0,0,0) 24px) right/24px 100% no-repeat}
 html body #shell table{font-size:12.5px}
 html body #shell th,html body #shell td{padding:11px 10px}
 /* Dialogues en panneau qui monte du bas */
 html body dialog{width:100%!important;max-width:100%!important;margin:auto 0 0!important;border-radius:26px 26px 0 0!important;padding:22px 16px calc(22px + env(safe-area-inset-bottom))!important;max-height:88dvh}
 html body dialog[open]{animation:rzx-sheet .28s cubic-bezier(.2,.8,.2,1) both}
 html body .dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
 html body #toast{left:10px;right:10px;bottom:calc(92px + env(safe-area-inset-bottom));max-width:none}
 html body .rule-help-text{left:10px!important;right:10px;width:auto!important}
 /* Carte */
 html body #shell #map-canvas{height:62vh}
 html body #shell .map-toolbar{gap:8px}
 /* Accueil */
 .rzh{gap:16px}
 .rzh-hero{padding:20px 18px 18px;border-radius:22px}
 .rzh-hero h1{font-size:clamp(30px,9.5vw,42px);overflow-wrap:anywhere}
 .rzh-greet{font-size:14.5px;margin-top:2px}
 .rzh-tagline{font-size:13.5px}
 .rzh-role{font-size:9.5px}
 .rzh-ctas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .rzh-ctas .rzh-btn{justify-content:center;text-align:center;white-space:normal;line-height:1.2}
 .rzh-ctas .rzh-btn{min-height:46px;padding:10px 12px;font-size:13px}
 .rzh-ctas .rzh-btn.primary{grid-column:1/-1}
 .rzh-ctas .rzh-btn kbd{display:none}
 .rzh-servers{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
 .rzh-servers::-webkit-scrollbar{display:none}
 .rzh-server{flex:none}
 .rzh-hero{grid-template-columns:minmax(0,1fr)}
 .rzh-orb{display:flex;position:absolute;top:16px;right:16px;width:74px;height:74px}
 .rzh-orb::before,.rzh-orb-sweep{display:none}
 .rzh-orb-core{width:62px;height:62px}
 .rzh-orb-core small,.rzh-orb-core em{display:none}
 .rzh-orb-core b{font-size:22px}
 .rzh-orb.ac-amber .rzh-orb-core b{font-size:14px;letter-spacing:-.02em}
 .rzh-hero-content{min-width:0;grid-template-columns:minmax(0,1fr)}
 .rzh-greet,.rzh-role{margin-right:76px}
 .rzh-role{max-width:calc(100% - 76px)}
 .rzh-kpis,.rzh-kpis.three{grid-template-columns:1fr 1fr;gap:10px}
 .rzh-kpis.three .rzh-kpi:last-child{grid-column:1/-1}
 .rzh-kpi{padding:13px;border-radius:18px}
 .rzh-kpi-top{margin-bottom:6px}.rzh-kpi-icon{width:34px;height:34px;font-size:15px}
 .rzh-kpi b{font-size:21px}.rzh-kpi small{font-size:11.5px}.rzh-kpi em{font-size:11px}
 .rzh-panel{padding:16px 14px;border-radius:18px}
 .rzh-panel-head h2{font-size:17px}
 .rzh-bento{grid-template-columns:1fr 1fr;grid-auto-rows:112px;gap:10px}
 .rzh-tile{padding:12px;border-radius:18px}
 .rzh-tile.xl{grid-column:span 2;grid-row:span 2}.rzh-tile.tall{grid-row:span 1}.rzh-tile.wide{grid-column:span 2}
 .rzh-tile.xl .rzh-tile-text b{font-size:28px}
 .rzh-tile-text b{font-size:14px}.rzh-tile-text small{font-size:11.5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .rzh-tile-icon{top:10px;left:10px;width:34px;height:34px;font-size:15px}
 .rzh-tile-go{display:none}
 .rzh-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -14px 12px;padding:0 14px}
 .rzh-tabs::-webkit-scrollbar{display:none}
 .rzh-tab{flex:none}
 .rzh-tabpanel{grid-template-columns:minmax(0,1fr)}
 .rzh-explorer .rzh-panel-head{align-items:center}
 .rzh-search kbd{display:none}
 .rzh-side{grid-template-columns:minmax(0,1fr)}
 .rzh-people{max-height:300px}
 /* Connexion */
 html body .login{padding:16px;align-items:end;background-position:30% center!important}
 html body .login-card{padding:26px 20px calc(24px + env(safe-area-inset-bottom));border-radius:26px!important}
 html body .login-card h1{font-size:40px}
}
@media(max-width:340px){
 html body #rzx-bottom b{font-size:9.5px}
 .rzh-kpis,.rzh-kpis.three{grid-template-columns:1fr}
 .rzh-kpis.three .rzh-kpi:last-child{grid-column:auto}
 html body #shell .metrics{grid-template-columns:1fr}
}
@keyframes rzx-sheet{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
