/* Panneau d'administration de Big Street — sombre, sobre, Poppins (comme l'accueil du jeu) */
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-display: swap; src: url(../fonts/poppins-800.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #0d1118; --surface: #151b26; --surface2: #1b2331; --surface3: #232d3e; --line: #263042; --line2: #33405a;
  --text: #e8ecf3; --text2: #b3bdcc; --muted: #8290a6;
  --accent: #3987e5; --accent-ink: #ffffff; --accent-soft: rgba(57, 135, 229, .16);
  --good: #0ca30c; --warn: #fab219; --serious: #ec835a; --bad: #d03b3b; --bad-soft: rgba(208, 59, 59, .16);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767;
  --radius: 12px; --side: 232px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: #33405a transparent; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.good { color: #4cc94c; } .bad { color: #f07a7a; } .warn { color: var(--warn); }
.hide { display: none !important; }
.boot { padding: 48px; color: var(--muted); text-align: center; }
.ico { font-family: var(--emoji); }

/* ---- Structure */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; font-weight: 800; font-size: 16px; letter-spacing: .2px; }
.brand .dot { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #3987e5, #9085e9); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; }
.brand small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .8px; text-transform: uppercase; }
.nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.nav h6 { margin: 14px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text2); font-weight: 600; text-decoration: none; }
.nav a:hover { background: var(--surface2); color: var(--text); }
.nav a.on { background: var(--accent-soft); color: #cfe2fb; }
.nav a .ico { width: 20px; text-align: center; font-size: 15px; }
.nav a .pill { margin-left: auto; }
.side-foot { padding: 12px 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.side-foot .who { flex: 1; min-width: 0; }
.side-foot .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .who span { font-size: 11.5px; color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: rgba(13, 17, 24, .88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top h1 { font-size: 18px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .burger { display: none; }
.page { padding: 20px 24px 60px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.demo-banner { background: #3b2c05; color: #ffd978; border-bottom: 1px solid #6b5210; padding: 6px 24px; font-size: 12.5px; font-weight: 600; }
.scrim { display: none; }

/* ---- Éléments de base */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 13px; border-radius: 9px; border: 1px solid var(--line2); background: var(--surface2); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface3); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #4a94ee; }
.btn.danger { background: var(--bad-soft); border-color: #7a2c2c; color: #ffb4b4; }
.btn.danger:hover { background: rgba(208, 59, 59, .28); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface2); }
.btn.small { padding: 4px 9px; font-size: 12.5px; border-radius: 7px; }
.btn.icon { padding: 6px 9px; }
.input, select.input, textarea.input { width: 100%; padding: 8px 11px; border-radius: 9px; border: 1px solid var(--line2); background: #0f141d; color: var(--text); }
.input::placeholder { color: #5f6c82; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { resize: vertical; min-height: 74px; }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--text2); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; min-width: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .input { width: auto; min-width: 150px; }
.filters .search { flex: 1 1 220px; min-width: 180px; }
.seg { display: inline-flex; background: #0f141d; border: 1px solid var(--line2); border-radius: 9px; padding: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 11px; border-radius: 7px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface3); color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--surface3); color: var(--text2); white-space: nowrap; }
.pill.blue { background: var(--accent-soft); color: #9cc6f7; }
.pill.green { background: rgba(12, 163, 12, .18); color: #6ddb6d; }
.pill.red { background: var(--bad-soft); color: #ff9c9c; }
.pill.amber { background: rgba(250, 178, 25, .16); color: #ffd067; }
.pill.violet { background: rgba(144, 133, 233, .18); color: #bdb5ff; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.rar { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.rar i { width: 9px; height: 9px; border-radius: 3px; background: var(--rc, #7b8798); display: inline-block; }

/* ---- Cartes et grilles */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.card > header { display: flex; align-items: center; gap: 10px; padding: 13px 16px 0; flex-wrap: wrap; }
.card > header h3 { font-size: 14px; font-weight: 700; flex: 1; min-width: 0; }
.card > header .sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.card > .body { padding: 14px 16px 16px; }
.card > .body.flush { padding: 8px 0 0; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; min-width: 0; }
.tile .k { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tile .v { font-size: 24px; font-weight: 700; line-height: 1.25; margin-top: 3px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .d { font-size: 12px; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.kv { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 6px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.empty { padding: 26px 16px; text-align: center; color: var(--muted); }
.err { padding: 14px 16px; border-radius: 10px; background: var(--bad-soft); border: 1px solid #7a2c2c; color: #ffb9b9; }
.loading { padding: 26px; text-align: center; color: var(--muted); }
.na { color: #5f6c82; }

/* ---- Tableaux */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; background: var(--surface); }
.tbl th.sortable { cursor: pointer; }
.tbl th.sortable:hover { color: var(--text); }
.tbl th .arr { display: inline-block; width: 12px; color: var(--accent); }
.tbl td { padding: 9px 12px; border-bottom: 1px solid #1f2836; vertical-align: middle; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td.nowrap { white-space: nowrap; }
.tbl td.where { max-width: 300px; color: var(--text2); font-size: 12.5px; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: var(--surface2); }
.tbl-foot { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.tbl-foot .sp { flex: 1; }
.cellmain { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cellmain .em { font-family: var(--emoji); font-size: 20px; width: 32px; height: 32px; border-radius: 8px; background: var(--surface2); display: grid; place-items: center; flex: none; border: 1px solid var(--line); }
.cellmain b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cellmain small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface3); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; color: #cfe2fb; }

/* ---- Graphiques */
.chart { position: relative; width: 100%; }
.chart canvas { display: block; width: 100%; }
.chart-tip { position: absolute; pointer-events: none; background: #0a0e15; border: 1px solid var(--line2); border-radius: 8px; padding: 6px 9px; font-size: 12px; line-height: 1.45; white-space: nowrap; z-index: 5; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.chart-tip b { font-variant-numeric: tabular-nums; }
.chart-tip .sw, .legend .sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text2); margin-top: 8px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 34%) minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; font-size: 13px; }
.hbar .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text2); }
.hbar .track { height: 10px; border-radius: 0 4px 4px 0; background: transparent; position: relative; }
.hbar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--s1); min-width: 2px; }
.hbar .val { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; white-space: nowrap; }
.stack { display: flex; height: 14px; gap: 2px; border-radius: 4px; overflow: hidden; }
.stack span { min-width: 2px; }

/* ---- Inventaire (grille comme en jeu) */
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 7px; }
.inv.fixed { grid-template-columns: repeat(5, 62px); }
.slot { position: relative; aspect-ratio: 1; border-radius: 10px; background: #111826; border: 2px solid #26324a; display: grid; place-items: center; font-family: var(--emoji); font-size: 26px; cursor: default; min-width: 0; }
.slot.has { cursor: pointer; border-color: var(--rc, #33405a); background: linear-gradient(180deg, color-mix(in srgb, var(--rc, #33405a) 16%, #111826), #111826 70%); }
.slot.has:hover { filter: brightness(1.25); }
.slot .q { position: absolute; right: 4px; bottom: 1px; font: 700 11.5px var(--font); color: #fff; text-shadow: 0 1px 2px #000; }
.slot .tag { position: absolute; left: 0; right: 0; top: 2px; text-align: center; font: 700 8px var(--font); letter-spacing: .6px; color: var(--muted); text-transform: uppercase; }
.slot .wear { position: absolute; left: 4px; right: 4px; bottom: 3px; height: 3px; border-radius: 2px; background: #000a; overflow: hidden; }
.slot .wear i { display: block; height: 100%; background: #6ddb6d; }
.gauge { height: 8px; border-radius: 4px; background: #0f141d; overflow: hidden; }
.gauge i { display: block; height: 100%; border-radius: 4px; background: var(--s1); }
.statline { display: grid; grid-template-columns: 110px minmax(0, 1fr) 52px; gap: 10px; align-items: center; font-size: 13px; padding: 3px 0; }
.statline .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---- Onglets */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: transparent; padding: 9px 13px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }

/* ---- Fenêtres, confirmations, messages */
.modal-back { position: fixed; inset: 0; background: rgba(4, 7, 12, .66); z-index: 100; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.modal.wide { width: min(860px, 100%); }
.modal > header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.modal > header h3 { flex: 1; font-size: 15px; font-weight: 700; }
.modal > .body { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.modal > footer { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.result { padding: 10px 12px; border-radius: 9px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow: auto; }
.result.ok { background: rgba(12, 163, 12, .14); border: 1px solid #1e5d1e; color: #a5eba5; }
.result.ko { background: var(--bad-soft); border: 1px solid #7a2c2c; color: #ffb9b9; }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: #0a0e15; border: 1px solid var(--line2); border-left: 4px solid var(--accent); border-radius: 9px; padding: 10px 13px; font-size: 13px; box-shadow: 0 10px 26px rgba(0, 0, 0, .5); overflow-wrap: anywhere; }
.toast.ok { border-left-color: var(--good); } .toast.ko { border-left-color: var(--bad); }

/* ---- Connexion */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 500px at 50% -10%, #17233a, var(--bg)); }
.login form { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.login h1 { font-size: 20px; font-weight: 800; }
.login p { color: var(--muted); font-size: 13px; }

/* ---- Fiche joueur */
.hero { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero .avatar { width: 56px; height: 56px; font-size: 22px; }
.hero h2 { font-size: 20px; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions { display: flex; flex-wrap: wrap; gap: 7px; }
.chars { display: flex; gap: 8px; flex-wrap: wrap; }
.charbtn { text-align: left; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface2); cursor: pointer; min-width: 150px; }
.charbtn.on { border-color: var(--accent); background: var(--accent-soft); }
.charbtn b { display: block; } .charbtn small { color: var(--muted); font-size: 12px; }
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.skin { border-radius: 10px; padding: 9px 11px; background: var(--surface2); border: 1px solid var(--line); border-left: 4px solid var(--rc, #33405a); min-width: 0; }
.skin b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skin small { color: var(--muted); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skin img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #0f141d; margin-bottom: 7px; }

/* ---- Support */
.support { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 14px; min-height: 0; }
.tickets { display: flex; flex-direction: column; max-height: calc(100vh - 190px); overflow-y: auto; }
.ticket { padding: 11px 14px; border-bottom: 1px solid #1f2836; cursor: pointer; }
.ticket:hover { background: var(--surface2); }
.ticket.on { background: var(--accent-soft); }
.ticket .t1 { display: flex; gap: 8px; align-items: center; }
.ticket .t1 b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket .t2 { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.thread { display: flex; flex-direction: column; height: calc(100vh - 190px); min-height: 380px; }
.msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.msg { max-width: min(78%, 620px); padding: 8px 12px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .meta { font-size: 11px; color: var(--muted); margin-bottom: 2px; font-weight: 600; }
.msg.admin { align-self: flex-end; background: var(--accent-soft); border-color: #234d80; }
.msg.ai { align-self: flex-end; background: rgba(144, 133, 233, .12); border-color: #3d3880; }
.msg.sys { align-self: center; background: transparent; border-style: dashed; color: var(--muted); font-size: 12.5px; max-width: 90%; }
.msg img { display: block; max-width: 100%; max-height: 260px; border-radius: 8px; margin-top: 6px; }
.reply { border-top: 1px solid var(--line); padding: 10px 12px; display: flex; gap: 8px; align-items: flex-end; }
.reply textarea { min-height: 42px; max-height: 160px; }

/* ---- Journaux */
.logs { font: 500 12.5px/1.55 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; max-height: calc(100vh - 230px); min-height: 300px; overflow: auto; padding: 6px 0; }
.logline { display: grid; grid-template-columns: 150px 86px minmax(0, 1fr); gap: 10px; padding: 2px 14px; border-left: 3px solid transparent; }
.logs.plain .logline { grid-template-columns: minmax(0, 1fr); }
.logs.plain .logline .t { display: none; }
.logline:hover { background: var(--surface2); }
.logline .t { color: var(--muted); white-space: nowrap; }
.logline .m { white-space: pre-wrap; overflow-wrap: anywhere; }
.logline.error { border-left-color: var(--bad); } .logline.error .m { color: #ffb0b0; }
.logline.warn { border-left-color: var(--warn); } .logline.warn .m { color: #ffe1a0; }
.logline mark { background: #6b5210; color: #fff; border-radius: 2px; }

/* ---- Carte */
.mapbox { position: relative; height: calc(100vh - 150px); min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0a0e17; }
.mapbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.mapbox canvas.drag { cursor: grabbing; }
.map-ctl { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.map-ctl .btn { width: 38px; height: 38px; padding: 0; font-size: 17px; background: rgba(21, 27, 38, .92); }
.map-info { position: absolute; left: 12px; bottom: 12px; z-index: 3; background: rgba(10, 14, 21, .88); border: 1px solid var(--line2); border-radius: 9px; padding: 6px 10px; font-size: 12px; font-variant-numeric: tabular-nums; }
.map-panel { position: absolute; left: 12px; top: 12px; z-index: 3; width: min(270px, calc(100% - 70px)); background: rgba(21, 27, 38, .94); border: 1px solid var(--line2); border-radius: 11px; padding: 10px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100% - 70px); }
.map-panel .list { overflow-y: auto; display: flex; flex-direction: column; }
.map-panel .list button { text-align: left; border: 0; background: transparent; padding: 5px 7px; border-radius: 7px; cursor: pointer; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: none; }
.map-panel .list button:hover { background: var(--surface3); }
.map-panel label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text2); cursor: pointer; }

/* ---- Téléphone et tablette */
@media (max-width: 1100px) {
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g21 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(270px, 84vw); transform: translateX(-102%); transition: transform .18s; }
  .shell.menu .side { transform: none; box-shadow: 20px 0 50px rgba(0, 0, 0, .6); }
  .shell.menu .scrim { display: block; position: fixed; inset: 0; background: rgba(4, 7, 12, .6); z-index: 25; }
  .top { padding: 10px 14px; } .top .burger { display: inline-flex; }
  .page { padding: 14px 12px 60px; gap: 14px; }
  .demo-banner { padding: 6px 14px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .tile .v { font-size: 20px; }
  .support { grid-template-columns: minmax(0, 1fr); }
  .support.open .tickets-card { display: none; }
  .support:not(.open) .thread-card { display: none; }
  .tickets { max-height: none; }
  .thread { height: calc(100vh - 150px); }
  .logline { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 5px 12px; border-bottom: 1px solid #1f2836; }
  .mapbox { height: calc(100vh - 130px); }
  .modal-back { padding: 0; place-items: end center; }
  .modal, .modal.wide { width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; }
  .filters .input { min-width: 0; flex: 1 1 130px; }
  .tbl td, .tbl th { padding: 8px 10px; }
  .only-wide { display: none !important; }
}
@media (min-width: 861px) { .only-narrow { display: none !important; } }
/* Identifiants des objets (22/11) */
code.oid { font: 600 12px/1.4 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: var(--surface3); color: var(--text); padding: 1px 6px; border-radius: 6px; white-space: nowrap; user-select: all; }
.oid-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.oid-search .input { flex: 1 1 260px; max-width: 420px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
/* Page « Objets » (22/11) : suivi des objets */
.n-admin { color: #ff8a8a; font-weight: 700; }
.tile.tile-red { border-color: rgba(208, 59, 59, .55); background: linear-gradient(0deg, var(--bad-soft), var(--bad-soft)), var(--surface); }
.tile.tile-red .v { color: #ff9c9c; }
.tile .d a { color: inherit; text-decoration: underline; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); cursor: pointer; user-select: none; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); white-space: nowrap; }
.chk input { accent-color: var(--accent); margin: 0; }
.chk.chk-red { color: #ff9c9c; } .chk.chk-red input { accent-color: var(--bad); }
.obj-head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.obj-head .em { font-family: var(--emoji); font-size: 40px; width: 72px; height: 72px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.obj-head .grow { flex: 1 1 260px; min-width: 0; }
.obj-head h2 { margin: 0 0 4px; font-size: 20px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.obj-cols { display: grid; gap: 14px 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
