[hidden] { display: none !important; }
:root { color-scheme: dark; --bg:var(--lud-fond); --card:var(--lud-carte); --card2:var(--lud-surface-haute); --line:var(--lud-bordure); --fg:var(--lud-texte); --muted:var(--lud-texte-doux); --accent:var(--lud-ambre); --on-accent:var(--lud-action-texte); --sec:var(--lud-ambre-clair); --live:var(--lud-braise-clair); --ok:var(--lud-sauge); --sky:var(--lud-parchemin-doux); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.4 var(--lud-police-texte); }
header { display: flex; gap: .75rem; align-items: center; padding: .75rem 1rem; background: var(--card); flex-wrap: wrap; }
h1, h2, h3 { font-family: var(--lud-police-titre); font-weight: 700; }
h1 { font-size: 1.3rem; margin: 0; color: var(--lud-ambre); }
h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
:focus-visible { outline: var(--lud-focus-epaisseur) solid var(--lud-focus); outline-offset: 2px; }
.status { color: var(--muted); }
.status.ok { color: var(--ok); }
.version { margin-left: auto; color: var(--muted); font-size: .8rem; }
button, .btn { background: var(--card2); color: var(--fg); border: 1px solid var(--line); border-radius: var(--lud-rayon-bouton); padding: .4rem .8rem; font: inherit; cursor: pointer; text-decoration: none; display: inline-block; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.note { color: var(--muted); margin: .25rem 0 .75rem; }
.box { background: var(--card); border-radius: var(--lud-rayon-bouton); padding: 1rem; margin-bottom: 1rem; }
.code-box { font: 700 2rem/1.2 ui-monospace, monospace; letter-spacing: .25em; margin: .5rem 0 1rem; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; }
.live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.live-item { display: flex; gap: .75rem; background: var(--card); border-radius: var(--lud-rayon-bouton); padding: .5rem; }
.live-thumb { width: 160px; height: 90px; object-fit: cover; border-radius: 4px; background: var(--card2); flex: none; }
.live-meta { min-width: 0; }
.live-name { font-weight: 700; }
.live-line { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-viewers { color: var(--ok); font-size: .85rem; }
.screen { position: relative; background: #000; aspect-ratio: 16 / 9; max-height: 70vh; width: 100%; border-radius: var(--lud-rayon-bouton); overflow: hidden; }
.screen video { width: 100%; height: 100%; display: block; background: #000; }
.overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; background: rgba(0,0,0,.65); }
.overlay.error { color: var(--live); }
.player-bar { align-items: center; margin-top: .5rem; }
.open-form { margin-bottom: 1rem; }
.open-form input { flex: 1; min-width: 12rem; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: var(--lud-rayon-bouton); padding: .4rem .6rem; font: inherit; }
select { background: var(--card2); color: var(--fg); border: 1px solid var(--line); border-radius: var(--lud-rayon-bouton); padding: .35rem .5rem; font: inherit; }
.live-item { cursor: pointer; }
.live-item.open { outline: 2px solid var(--accent); }

/* ---- mise en page PC : liste | lecteur | chat ---- */
body { height: 100vh; display: flex; flex-direction: column; }
header .spacer { flex: 1; }
header .version { margin-left: 0; }
form.inline { display: inline; margin: 0; }
.layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; gap: 0; }
.layout.no-chat, .layout.idle { grid-template-columns: 300px minmax(0, 1fr); }
.layout.no-chat .chat, .layout.idle .chat { display: none; }
.layout.no-list { grid-template-columns: minmax(0, 1fr) 340px; }
.layout.no-list.no-chat, .layout.no-list.idle { grid-template-columns: minmax(0, 1fr); }
.layout.no-list .sidebar { display: none; }
#layout:fullscreen { background: var(--bg); }
.tile:fullscreen { background: #000; }
.sidebar { overflow-y: auto; padding: .75rem; border-right: 1px solid var(--card2); }
.stage { overflow-y: auto; padding: .75rem; min-width: 0; }
.chat { border-left: 1px solid var(--card2); min-height: 0; display: flex; }
.chat-body { flex: 1; min-width: 0; display: flex; }
.chat-body iframe { flex: 1; width: 100%; height: 100%; border: 0; background: #0e0e10; }
.chat-body .note { padding: 1rem; }
.empty { color: var(--muted); padding: 2rem 1rem; text-align: center; }
.screen { max-height: calc(100vh - 140px); }
.live-item { padding: .35rem; gap: .5rem; }
.live-thumb { width: 96px; height: 54px; }
.live-name { font-size: .9rem; }
.live-line { font-size: .8rem; }
.live-viewers { font-size: .75rem; }
.login-page { display: grid; place-items: center; height: 100vh; }
.login-box { width: min(360px, 90vw); }
.login-box label { display: block; margin: .5rem 0 .25rem; color: var(--muted); }
.login-box input { width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: var(--lud-rayon-bouton); padding: .5rem .6rem; font: inherit; margin-bottom: .75rem; }
.error { color: var(--live); }
code { background: var(--card2); padding: 0 .3rem; border-radius: 4px; }
/* ---- panel multistream ---- */
.stage:has(.multi:not([hidden])) { display: flex; flex-direction: column; overflow: hidden; }
.multi { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mbar { align-items: center; margin-bottom: .5rem; }
.mbar .spacer { flex: 1; }
.mbar .note { margin: 0; }
.seg { display: inline-flex; }
.seg button { border-radius: 0; }
.seg button:first-child { border-radius: var(--lud-rayon-bouton) 0 0 var(--lud-rayon-bouton); }
.seg button:last-child { border-radius: 0 var(--lud-rayon-bouton) var(--lud-rayon-bouton) 0; }
.seg button[aria-pressed="true"], .tile-bar button[aria-pressed="true"].tb-chat { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mgrid { flex: 1; min-height: 0; display: grid; gap: 6px; }
.mgrid[data-layout="side"] { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.mgrid[data-layout="quad"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); }
.mgrid[data-layout="stack"] { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); }
.tile { position: relative; background: #000; border-radius: var(--lud-rayon-bouton); overflow: hidden; min-height: 0; min-width: 0; outline: 2px solid transparent; outline-offset: -2px; }
.tile.chat-sel { outline-color: var(--accent); }
.tile video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.tile-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; padding: .25rem .4rem; background: linear-gradient(rgba(0,0,0,.8), transparent); }
.tile-bar .spacer { flex: 1; }
.tile-name { font-size: .85rem; text-shadow: 0 1px 2px #000; }
.tile-bar button, .tile-bar select { padding: .15rem .45rem; font-size: .85rem; }
.tile .overlay { z-index: 1; }
.tb-handle { cursor: grab; padding: 0 .2rem; color: var(--muted); user-select: none; }
.tb-vol { width: 70px; accent-color: var(--accent); }
.tile.dragging { opacity: .5; }
.tile.drop-target { outline-color: var(--ok); }
.tile-bar button:disabled { opacity: .35; cursor: default; }
.list-tools { margin-bottom: .5rem; align-items: center; }
.list-tools select { flex: 1; min-width: 0; }
.list-tools button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.live-item { position: relative; }
button.fav { position: absolute; top: .15rem; right: .15rem; padding: 0 .35rem; background: transparent; border: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.3; }
button.fav.on { color: var(--sec); }
.mtabs { display: none; }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
/* ---- en-tête, menu, accueil ---- */
header { background: var(--card); border-bottom: 1px solid var(--line); gap: .9rem; padding: .55rem 1rem; }
.nav { display: inline-flex; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.nav button { border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: .35rem 1rem; font-weight: 500; }
.nav button[aria-pressed="true"] { background: var(--card2); color: var(--fg); }
.icon-btn { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; border-radius: var(--lud-rayon-bouton); }
button.fav svg { display: block; }
.nights { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.nights:empty { display: none; }
.night { background: linear-gradient(160deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--lud-rayon-carte); padding: .8rem; display: flex; flex-direction: column; gap: .7rem; }
.night-stack { display: flex; }
.night-stack img, .night-stack .ph { width: 104px; height: 58px; object-fit: cover; border-radius: 9px; border: 2px solid var(--card); margin-right: -22px; background: var(--card2); display: block; }
.night-text b { display: block; font-size: 1.05rem; color: var(--sec); }
.night-text span { color: var(--muted); font-size: .85rem; }
.night-actions { display: flex; gap: .5rem; }
.live-card { transition: transform .12s ease, border-color .12s ease; }
.live-card:hover { transform: translateY(-2px); }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--lud-ambre); text-decoration: none; font-family: var(--lud-police-marque); font-weight: 600; font-size: 1.1rem; letter-spacing: .08em; }
.brand-logo { border-radius: 7px; display: block; }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 20; min-width: 240px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .35rem; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.menu-head { padding: .4rem .6rem; color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--card2); margin-bottom: .3rem; }
.menu-item { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-radius: var(--lud-rayon-bouton); padding: .5rem .6rem; color: var(--fg); font: inherit; text-decoration: none; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--card2); }
.menu-form { margin: 0; }
.menu-version { padding: .4rem .6rem 0; color: var(--muted); font-size: .75rem; border-top: 1px solid var(--card2); margin-top: .3rem; }
.live-title { white-space: normal; overflow-wrap: anywhere; }
.home { padding: .25rem; }
.stage { background: var(--bg); }
.home-tools { display: flex; gap: .5rem; margin-bottom: .6rem; }
.home-tools input { flex: 1; min-width: 0; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: var(--lud-rayon-bouton); padding: .45rem .7rem; font: inherit; }
.home-tools button[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.chip { border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; border-color: var(--sec); color: var(--sec); background: transparent; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.home-section { margin-bottom: 1.2rem; }
.home-section-head { display: flex; align-items: center; gap: .75rem; margin: .4rem 0 .6rem; }
.home-section-head h3 { margin: 0; font-size: 1rem; flex: 1; color: var(--sec); }
.live-card { position: relative; background: var(--card2); border-radius: var(--lud-rayon-bouton); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.45); }
.live-card:hover { border-color: var(--accent); }
.live-card.open { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 2px 10px rgba(0,0,0,.45); }
.card-main { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; border-radius: 0; }
.card-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--card2); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-viewers { position: absolute; left: .4rem; bottom: .4rem; background: rgba(0,0,0,.75); color: var(--ok); font-size: .75rem; padding: .1rem .45rem; border-radius: 999px; }
.card-body { padding: .5rem .65rem .65rem; }
.card-body { display: flex; gap: .6rem; align-items: flex-start; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; background: var(--card); border: 2px solid var(--accent); display: block; }
.avatar.ph { display: grid; place-items: center; font-weight: 700; color: var(--accent); }
.card-text { min-width: 0; display: block; }
.card-name { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-game { display: block; color: var(--sec); font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-game { color: var(--sec); }
.card-title { display: block; color: var(--muted); font-size: .78rem; margin-top: .15rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-card button.fav { top: .35rem; right: .35rem; background: rgba(0,0,0,.55); border-radius: 999px; }
.page-bilan { height: auto; min-height: 100vh; display: block; }
.bil-main { max-width: 1000px; margin: 0 auto; padding: 1rem; }
.verdict[data-level="ok"] { border-left: 4px solid var(--ok); }
.verdict[data-level="watch"], .verdict[data-level="provisional"] { border-left: 4px solid var(--sec); }
.verdict[data-level="bad"] { border-left: 4px solid var(--live); }
.verdict[data-level="unknown"] { border-left: 4px solid var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.stat { background: var(--card); border-radius: var(--lud-rayon-bouton); padding: .75rem; }
.stat-value { font-size: 1.4rem; font-weight: 700; }
.stat-label { color: var(--muted); font-size: .8rem; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--card2); white-space: nowrap; }
.table-wrap th { color: var(--muted); font-weight: 600; }
.row-bad td { color: var(--live); }
/* accueil ouvert pendant un flux : le flux (ou le multi) reste à droite, sans être coupé */

.audio-only::after { content: "🎧 Audio seul"; position: absolute; inset: 0; display: grid; place-items: center; background: var(--card); color: var(--accent); font-weight: 600; pointer-events: none; z-index: 0; }
.tile.audio-only::after { z-index: 1; }
.screen.audio-only::after { bottom: 50px; }
.screen .overlay { z-index: 1; }
.notice { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 30; background: var(--card2); border: 1px solid var(--sec); color: var(--fg); padding: .6rem 1rem; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.5); max-width: 90vw; }
.latency { color: var(--muted); font-size: .85rem; align-self: center; }
.tile-bar .tb-live { background: var(--sec); border-color: var(--sec); color: var(--lud-action-texte); }
body.browsing .layout { grid-template-columns: minmax(0, 1fr); }
body.browsing .sidebar, body.browsing .chat { display: none; }
body.browsing .stage, body.browsing .stage:has(.multi:not([hidden])) { display: flex; flex-direction: row; gap: .75rem; overflow: hidden; }
body.browsing #home { order: 0; flex: 1 1 0; min-width: 0; overflow-y: auto; padding-right: .5rem; }
body.browsing #player, body.browsing #multi { order: 1; flex: 0 0 clamp(340px, 32vw, 560px); min-width: 0; overflow-y: auto; }
body.browsing #multi { display: flex; }
body.browsing .mgrid[data-layout] { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: minmax(150px, 1fr); }
body.browsing .seg, body.browsing #btn-mfull, body.browsing #multi-empty { display: none; }
body.browsing .screen { max-height: none; }
@media (max-width: 900px) {
  body { height: 100dvh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
  header { padding: .4rem .6rem; gap: .4rem; }
  .page-bilan { display: block; height: auto; }
  #btn-list, #btn-chat, header .status { display: none; }
  #home { display: none; }
  header { flex-wrap: nowrap; gap: .5rem; }
  header button { padding: .3rem .5rem; white-space: nowrap; font-size: .85rem; }
  header h1 { font-size: 1rem; }
  header .spacer { display: block; flex: 1; }
  .brand span { font-size: 1rem; }
  button, .btn, select { min-height: var(--lud-cible-min); }
  .mtabs { display: flex; background: var(--card); border-bottom: 1px solid var(--card2); }
  .mtabs button { flex: 1; border: 0; border-radius: 0; background: transparent; border-bottom: 3px solid transparent; }
  .mtabs button[aria-pressed="true"] { border-bottom-color: var(--accent); font-weight: 700; }
  .layout, .layout.no-chat, .layout.no-list { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .stage { order: 1; flex: none; overflow: visible; padding: 0; }
  body.idle .mtabs, body.idle .sidebar { display: none !important; }
  body.idle .layout { flex: 1; }
  body.idle .stage { flex: 1; min-height: 0; overflow-y: auto; border-bottom: 0; padding: .6rem; }
  body.idle #home { display: block; }
  body.browsing .mtabs, body.browsing .sidebar, body.browsing .chat { display: none !important; }
  body.browsing .layout { flex: 1; }
  body.browsing #home { display: block; }
  body.browsing .stage, body.browsing .stage:has(.multi:not([hidden])) { flex: 1; min-height: 0; height: auto; display: flex; flex-direction: column; gap: .4rem; padding: .4rem; overflow: hidden; border-bottom: 0; }
  body.browsing #player, body.browsing #multi { order: 0; flex: none; overflow: visible; }
  body.browsing #multi { height: 34dvh; }
  body.browsing .screen { max-height: 28dvh; }
  body.browsing #home { order: 1; flex: 1 1 0; min-height: 0; overflow-y: auto; padding-right: 0; }
  body.browsing .mgrid[data-layout] { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); grid-template-columns: none; }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .nights { display: flex; overflow-x: auto; gap: .6rem; padding-bottom: .3rem; }
  .night { flex: none; width: 250px; }
  .card-title { -webkit-line-clamp: 2; }
  .brand span { display: none; }
  .mtabs { order: 0; }
  .sidebar, .chat { order: 2; flex: 1; min-height: 0; border: 0; }
  .sidebar { display: block !important; overflow-y: auto; }
  .chat { display: flex !important; }
  .layout[data-tab="list"] .chat, .layout[data-tab="chat"] .sidebar { display: none !important; }
  .screen { max-height: 45dvh; border-radius: 0; }
  .player-bar { padding: .4rem .6rem; }
  .stage { border-bottom: 1px solid var(--card2); }
  .stage:has(.multi:not([hidden])) { height: 58dvh; padding: .25rem; overflow: hidden; }
  .mbar { margin-bottom: .25rem; gap: .3rem; }
  .mbar button { padding: .2rem .5rem; min-height: 34px; font-size: .85rem; }
  .mbar .note, #btn-mfull { display: none; }
  .empty { padding: 1rem; }
  .tile-bar { padding: .15rem .25rem; gap: .2rem; }
  .tile-bar .tb-vol, .tile-bar select { display: none; }
  .tile-bar button { min-height: 32px; min-width: 32px; }
  .live-thumb { width: 112px; height: 63px; }
}
@media (max-width: 900px) and (orientation: landscape) {
  .layout, .layout.no-chat, .layout.no-list { flex-direction: row; }
  .stage { order: 0; flex: 1 1 60%; min-width: 0; overflow-y: auto; }
  .screen { max-height: calc(100dvh - 120px); }
  .stage:has(.multi:not([hidden])) { height: auto; }
  .sidebar, .chat { flex: 0 0 38%; }
}
/* page rapports */
.rap-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.bars { display: grid; gap: .3rem; }
.bar-row { display: grid; grid-template-columns: 4.5rem 1fr 3.5rem; align-items: center; gap: .5rem; font-size: .85rem; }
.bar-label { color: var(--muted); }
.bar-track { background: var(--card2); border-radius: 999px; height: .7rem; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bar-value { text-align: right; color: var(--sec); }

.steam-link, .btn-link { color: var(--fg); text-decoration: none; font-size: .8rem; }
.btn-link { display: inline-flex; align-items: center; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: var(--lud-rayon-bouton); background: var(--card2); }
.btn-link:hover, .steam-link:hover { border-color: var(--accent); color: var(--sec); }
.btn-link[hidden] { display: none !important; }
.live-card .card-steam { position: absolute; top: .35rem; left: .35rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(0,0,0,.6);
  border: 1px solid transparent; opacity: 0; transition: opacity .12s ease; }
.live-card:hover .card-steam, .live-card .card-steam:focus-visible { opacity: 1; }
@media (hover: none) { .live-card .card-steam { opacity: .85; } }

/* ---- événements récurrents */
.events:empty { display: none; }
.events { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.event.now { background: linear-gradient(160deg, var(--card2), var(--card)); border: 1px solid var(--sec); border-radius: var(--lud-rayon-carte); padding: .8rem; }
.event-tag { background: var(--sec); color: var(--on-accent); border-radius: 999px; padding: .05rem .55rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.event h3 small { color: var(--muted); font-weight: 400; }
.event-off, .event-later { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.event-later { margin-top: 0; }
.chip.off { opacity: .55; border-style: dashed; border-color: var(--muted); color: var(--muted); }
.chip.later { border-color: var(--accent); color: var(--accent); }
.events-dialog { background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: var(--lud-rayon-carte); padding: 1rem 1.2rem; width: min(640px, 94vw); max-height: 88vh; overflow: auto; }
.events-dialog::backdrop { background: rgba(0,0,0,.6); }
.ev-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ev-head h2 { margin: 0 auto 0 0; font-size: 1.1rem; }
.ev-list { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-direction: column; gap: .5rem; }
.ev-item { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; background: var(--card2); border: 1px solid var(--line); border-radius: var(--lud-rayon-bouton); padding: .6rem .8rem; }
.ev-item.off .ev-main { opacity: .55; }
.ev-main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.ev-main span { color: var(--muted); font-size: .85rem; }
.ev-who { overflow-wrap: anywhere; }
.ev-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.ev-form { display: flex; flex-direction: column; gap: .8rem; }
.ev-form h2 { margin: 0; font-size: 1.1rem; }
.ev-field { display: flex; flex-direction: column; gap: .25rem; }
.ev-field > span { font-size: .85rem; color: var(--muted); }
.ev-field small { color: var(--muted); font-size: .78rem; }
.ev-days { display: flex; gap: .35rem; flex-wrap: wrap; }
.ev-times { display: flex; gap: 1rem; }
.ev-check { display: flex; align-items: center; gap: .5rem; }
.ev-error { color: var(--live); margin: 0; min-height: 1.2em; }
.events-dialog input[type="text"], .events-dialog input[type="time"] { background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: var(--lud-rayon-bouton); padding: .45rem .6rem; font: inherit; }
.suggest-wrap { position: relative; display: flex; flex-direction: column; }
.suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; margin: .2rem 0 0; padding: .25rem; list-style: none; background: var(--card2); border: 1px solid var(--accent);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.55); max-height: 15rem; overflow: auto; }
.suggest[hidden] { display: none !important; }
.suggest li { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem .5rem; border-radius: var(--lud-rayon-bouton); cursor: pointer; }
.suggest li small { color: var(--muted); white-space: nowrap; }
.suggest li:hover, .suggest li.on { background: var(--accent); color: var(--on-accent); }
.suggest li:hover small, .suggest li.on small { color: var(--on-accent); }
.login-box { text-align: center; }
.login-box form { text-align: left; }
.login-box .brand-logo { margin: 0 auto var(--lud-s2); }
body { font-variant-numeric: lining-nums; }
