/* MyGTA6Map v7 — module dashboard. Classes locales préfixées .mgd-* ; composants globaux u-* fournis par /assets/ultimate.css. */
.mgd-grid{align-items:start}
.mgd-grid>.u-panel{min-width:0}
.mgd-toolrow{display:flex;justify-content:flex-end;margin:0 0 14px}
.mgd-tools{display:flex;gap:8px;flex-wrap:wrap}
.mgd-headslot{margin:0 0 16px}
.mgd-mut{color:var(--mut,#A7A1BD);font-size:14px;margin:4px 0}
.mgd-note{color:var(--mut,#A7A1BD);font-size:13px;line-height:1.5;margin:12px 0 0}
.mgd-note a,.mgd-more{color:var(--violet-2,#B396FF)}
.mgd-sub{font-size:12px;font-weight:700;letter-spacing:.02em;color:var(--mut,#A7A1BD);margin:14px 0 6px}
.mgd-more{display:inline-block;margin-top:10px;font-weight:700;font-size:14px}
.mgd-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* en-tête joueur / démo */
.mgd-me{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.mgd-me-txt{flex:1 1 180px;min-width:0}
.mgd-me-name{color:var(--txt,#EEEAF7);font-family:var(--f-d,Anton,Impact,sans-serif);font-weight:800;font-size:26px;line-height:1.1;margin:0;overflow-wrap:anywhere;font-size-adjust:cap-height .8}
.mgd-me-sub{margin:2px 0 0;color:var(--mut,#A7A1BD);font-size:14px}
.mgd-me-act{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mgd-av{--c:#9466FF;flex:0 0 auto;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;overflow:hidden;font:800 18px/1 var(--f-d,Anton,Impact,sans-serif);color:#0C0A16;background:var(--c);box-shadow:0 0 0 2px var(--abyss,#04030A),0 0 0 4px var(--c);font-size-adjust:cap-height .8}
.mgd-av img{width:100%;height:100%;object-fit:cover}
.mgd-av--lg{width:64px;height:64px;font-size:24px}
.mgd-guest{display:flex;gap:16px;align-items:center;flex-wrap:wrap;border-color:var(--line-3,rgba(205,196,255,.28));background:linear-gradient(120deg,rgba(148,102,255,.14),rgba(37,227,218,.06) 60%,transparent),var(--night,#0C0A16)}
.mgd-guest-txt{flex:1 1 300px}
.mgd-guest-txt p{margin:6px 0 0;color:var(--mut,#A7A1BD);line-height:1.55}
.mgd-guest-act{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.mgd-sync{white-space:nowrap}
.mgd-sync--err{color:var(--danger,#FF5C6C)}
/* mode édition */
.mgd-edit{margin-left:auto;display:inline-flex;gap:2px}
.mgd-edit .u-btn{min-width:36px;padding:0 8px}
.mgd-rot-up{transform:rotate(-90deg)}
.mgd-rot-down{transform:rotate(90deg)}
.mgd-hidden{margin:0 0 16px}
.mgd-chips{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0}
/* reprendre */
.mgd-resume{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:14px;border-radius:12px;background:linear-gradient(110deg,rgba(148,102,255,.18),rgba(148,102,255,.04));border:1px solid var(--line-2,rgba(205,196,255,.16))}
.mgd-resume-t{font-family:var(--f-d,Anton,Impact,sans-serif);font-weight:800;font-size:22px;line-height:1.15;margin:0;overflow-wrap:anywhere;font-size-adjust:cap-height .8}
/* progression */
.mgd-prog{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.mgd-prog-bars{flex:1 1 220px;min-width:0}
.mgd-bar{margin:8px 0}
.mgd-bar-l{display:flex;justify-content:space-between;gap:8px;font-size:14px;margin-bottom:5px}
.mgd-bar-l b{font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}
.mgd-cats{margin-top:12px;border-top:1px solid var(--line,rgba(205,196,255,.09));padding-top:8px}
.mgd-cats summary{cursor:pointer;font-weight:700;font-size:14px;padding:6px 0}
/* trophées */
.mgd-tro-bar{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-bottom:6px}
.mgd-spoil{display:inline-flex;gap:8px;align-items:center;font-size:13px;color:var(--mut,#A7A1BD);cursor:pointer}
.mgd-tro{list-style:none;margin:6px 0 0;padding:0;max-height:430px;overflow:auto;overscroll-behavior:contain;border-top:1px solid var(--line,rgba(205,196,255,.09))}
.mgd-tro-i{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:start;padding:10px 4px;border-bottom:1px solid var(--line,rgba(205,196,255,.09))}
.mgd-tro-i label{cursor:pointer;min-width:0}
.mgd-tro-n{display:block;font-weight:700;overflow-wrap:anywhere}
.mgd-tro-d{display:block;font-size:13px;color:var(--mut,#A7A1BD);margin-top:2px}
.mgd-tro-i.is-on .mgd-tro-n{color:var(--ok,#4BE39A)}
.mgd-grade{align-self:center}
/* mini-carte */
.mgd-mini{position:relative;display:block;border-radius:12px;overflow:hidden;border:1px solid var(--line-2,rgba(205,196,255,.16));aspect-ratio:4/3;background:#0C0A16}
.mgd-mini img{width:100%;height:100%;object-fit:cover;display:block;opacity:.9}
.mgd-mini:focus-visible{outline:2px solid var(--cyan,#25E3DA);outline-offset:2px}
.mgd-dot{position:absolute;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;border:2px solid #04030A;display:inline-block}
.mgd-dot--pin{background:var(--txt,#EEEAF7)}
.mgd-dot--found{background:var(--cyan,#25E3DA)}
.mgd-dot--fav{background:var(--gold,#F2B84B)}
.mgd-dot.is-apx{border-style:dashed;opacity:.8}
.mgd-legend{display:flex;flex-wrap:wrap;gap:4px 14px;list-style:none;margin:10px 0;padding:0;font-size:13px;color:var(--mut,#A7A1BD)}
.mgd-legend li{display:inline-flex;align-items:center;gap:6px}
.mgd-legend .mgd-dot{position:static;margin:0}
/* badges */
.mgd-badges{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:10px;list-style:none;margin:0;padding:0;text-align:center;font-size:12px;color:var(--mut,#A7A1BD)}
.mgd-badges li{display:grid;justify-items:center;gap:6px}
.mgd-unread{font-weight:800}
/* profil */
.mgd-pf-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:22px;align-items:start}
.mgd-form{display:grid;gap:14px}
.mgd-field{display:grid;gap:6px;margin:0;border:0;padding:0;min-width:0}
.mgd-field legend,.mgd-field>label,.mgd-lab{font-weight:700;font-size:14px;padding:0}
.mgd-field select,.mgd-field textarea{width:100%;max-width:100%;box-sizing:border-box;background:var(--haze,#211C3A);color:var(--txt,#EEEAF7);border:1px solid var(--line-2,rgba(205,196,255,.16));border-radius:var(--r-ctl,10px);padding:10px 12px;font:inherit}
.mgd-field textarea{resize:vertical;min-height:84px}
.mgd-field select:focus-visible,.mgd-field textarea:focus-visible{outline:2px solid var(--cyan,#25E3DA);outline-offset:1px}
.mgd-radio{display:inline-flex;align-items:center;gap:8px;margin:2px 14px 2px 0;font-size:14px;cursor:pointer}
.mgd-styles .mgd-radio{min-width:130px}
.mgd-colors{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.mgd-colors .mgd-lab{flex-basis:100%}
.mgd-swatch{--c:#9466FF;position:relative;width:30px;height:30px;border-radius:50%;background:var(--c);cursor:pointer;box-shadow:0 0 0 2px var(--abyss,#04030A)}
.mgd-swatch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.mgd-swatch:has(input:checked){box-shadow:0 0 0 2px var(--abyss,#04030A),0 0 0 4px var(--txt,#EEEAF7)}
.mgd-swatch:has(input:focus-visible){outline:2px solid var(--cyan,#25E3DA);outline-offset:4px}
.mgd-actions{display:flex;gap:10px;flex-wrap:wrap}
.mgd-share{display:flex;gap:8px;flex-wrap:wrap}
.mgd-preview{position:sticky;top:90px}
.mgd-card{border:1px solid var(--line-2,rgba(205,196,255,.16));border-radius:var(--r-panel,16px);padding:16px;background:linear-gradient(160deg,rgba(148,102,255,.12),transparent 55%),var(--dusk,#15122A)}
.mgd-card-top{display:flex;gap:14px;align-items:center;margin-bottom:10px}
.mgd-card .u-kv{margin:10px 0}
.mgd-bio{margin:8px 0;line-height:1.55;white-space:pre-line;overflow-wrap:anywhere}
.mgd-profile{margin:0 0 18px}.mgd-ucard{margin:18px 0}
.mgd-toast{position:fixed;left:50%;bottom:calc(var(--bbar,64px) + env(safe-area-inset-bottom) + 16px);transform:translateX(-50%);z-index:130;background:var(--dusk,#15122A);color:var(--txt,#EEEAF7);border:1px solid var(--line-3,rgba(205,196,255,.28));border-radius:12px;padding:10px 14px;font-weight:700}
@media (max-width:900px){.mgd-pf-grid{grid-template-columns:1fr}.mgd-preview{position:static}}
@media (max-width:759px){.mgd-me-name{font-size:22px}.mgd-resume-t{font-size:19px}.mgd-tro{max-height:360px}}
@media (prefers-reduced-motion:reduce){.mgd-grid *{transition:none!important;animation:none!important}}
/* la page compte v6 (main.cm-page) met tous les input à 100 % : on rétablit cases et boutons radio du module */
.mgd .mgd-radio input[type=radio]{width:18px;height:18px;min-height:0;padding:0;margin:0;flex:none;accent-color:var(--violet,#9466FF)}
.mgd input.u-check{width:22px;height:22px;min-height:0;padding:0}
.mgd .mgd-swatch input{width:100%;height:100%;min-height:0;padding:0}

/*v83-guest*/.mgd-guest{padding:8px 12px!important;gap:10px!important;background:none!important;border-style:dashed!important}.mgd-guest h2{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.mgd-guest-txt{flex:1 1 220px}.mgd-guest-txt p{margin:0!important;font-size:.88rem}

/* v8.9 lot carte : crédit visible sur l’aperçu de la carte HD */
.mgd-cr{position:absolute;right:6px;bottom:6px;padding:2px 6px;border-radius:6px;background:rgba(7,5,12,.72);color:#e9e5dc;font:600 10px/1.3 Inter,system-ui,sans-serif;pointer-events:none}
