/* RCE 2026 — thème « ciel de nuit », mobile d'abord. */
:root {
  /* Thème sombre (par défaut) */
  --bg: #0b1020;
  --bg2: #121a33;
  --card: #18213f;
  --card2: #1f2a4f;
  --line: #2a3660;
  --text: #e8ecf8;
  --muted: #9aa6c8;
  --accent: #ffd34d;
  --accent-ink: #ffd34d;   /* accent utilisé comme couleur de texte / d'icône */
  --accent2: #7aa7ff;
  --warn: #ffb35c;
  --ok: #6fdc9a;
  --glow: #1b2552;
  --shadow: none;
  --toast-bg: #f3f5fb;
  --toast-fg: #121a33;
  --theme-color: #0b1020;
  --radius: 14px;
  --tabbar-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
/* Thème clair : réglage du système (mode automatique) ou choix explicite. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f5fb;
    --bg2: #ffffff;
    --card: #ffffff;
    --card2: #eef2fb;
    --line: #d6dcec;
    --text: #141a2e;
    --muted: #5a6685;
    --accent: #ffcd3c;
    --accent-ink: #976800;
    --accent2: #2f62d9;
    --warn: #b35400;
    --ok: #1d8a4f;
    --glow: #dbe5ff;
    --shadow: 0 1px 3px rgba(20, 26, 46, .10);
    --toast-bg: #141a2e;
    --toast-fg: #ffffff;
    --theme-color: #f3f5fb;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f5fb;
  --bg2: #ffffff;
  --card: #ffffff;
  --card2: #eef2fb;
  --line: #d6dcec;
  --text: #141a2e;
  --muted: #5a6685;
  --accent: #ffcd3c;
  --accent-ink: #976800;
  --accent2: #2f62d9;
  --warn: #b35400;
  --ok: #1d8a4f;
  --glow: #dbe5ff;
  --shadow: 0 1px 3px rgba(20, 26, 46, .10);
  --toast-bg: #141a2e;
  --toast-fg: #ffffff;
  --theme-color: #f3f5fb;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, var(--glow) 0%, transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
  min-height: 100vh;
}
body.has-sheet { overflow: hidden; }
a { color: var(--accent2); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; }

/* ---------- Barre du haut ---------- */
.appbar {
  display: flex; align-items: baseline; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 8px;
}
.brand { color: var(--text); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: .3px; }
.brand-logo { color: var(--accent-ink); }
.appbar-sub { flex: 1; min-width: 0; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-btn {
  align-self: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg2); font-size: 17px; line-height: 1;
}

main { max-width: 1100px; margin: 0 auto; padding: 0 12px; outline: none; }

/* ---------- Barre d'onglets du bas ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600;
}
.tabbar .ti { font-size: 20px; filter: grayscale(.6); opacity: .8; }
.tabbar a.is-active { color: var(--accent-ink); }
.tabbar a.is-active .ti { filter: none; opacity: 1; }

/* ---------- Barre d'outils ---------- */
.toolbar { padding: 6px 0 8px; display: grid; gap: 8px; }
.sticky {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(var(--bg) 85%, transparent);
  margin: 0 -12px; padding-left: 12px; padding-right: 12px;
}
.day-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.day-tab {
  position: relative; border: 1px solid var(--line); background: var(--bg2);
  border-radius: 12px; padding: 8px 4px; font-weight: 700;
}
.day-tab .day-num { font-size: 18px; }
.day-tab.is-active { background: var(--accent); color: #1b1500; border-color: var(--accent); }
.badge {
  position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--accent2); color: var(--bg2); font-size: 12px; line-height: 20px;
}
.search {
  width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--text); font-size: 16px;
}
.seg { display: flex; gap: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg-btn { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; border-radius: 9px; padding: 7px 4px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg-btn.is-active { background: var(--card2); color: var(--text); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--bg2); border-radius: 999px;
  padding: 6px 10px; font-size: 13px; white-space: nowrap;
}
.chip.is-active { border-color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 25%, var(--bg2)); }
.theme-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }

/* ---------- Liste et cartes ---------- */
.hint { color: var(--muted); font-size: 13px; margin: 6px 2px 10px; }
.warn { color: var(--warn); }
.ok { color: var(--ok); }
.small { font-size: 12px; color: var(--muted); }
.slot { font-size: 13px; color: var(--muted); margin: 14px 2px 6px; display: flex; align-items: center; gap: 8px; }
.slot span { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; color: var(--text); font-variant-numeric: tabular-nums; }
.slot::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.slot-cards { display: grid; gap: 8px; }
@media (min-width: 760px) { .slot-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .slot-cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; display: flex; gap: 8px; align-items: flex-start;
  background: var(--card); border-radius: var(--radius); padding: 10px 6px 10px 14px;
  border: 1px solid transparent; overflow: hidden; cursor: pointer; box-shadow: var(--shadow);
  transition: border-color .15s, background .15s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.card:hover { background: var(--card2); }
.card.lvl-1 { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.card.lvl-2 { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--card)); }
.card-body { flex: 1; min-width: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; color: var(--muted); align-items: center; }
.card-meta .time { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.room { padding: 1px 7px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); }
.room-amphi { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.card-title { font-size: 15px; font-weight: 700; margin: 4px 0 2px; line-height: 1.25; }
.speakers { margin: 0; color: var(--muted); font-size: 13px; }
.speakers.big { font-size: 15px; color: var(--text); }
.theme-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }

.star {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent;
  font-size: 24px; line-height: 1; color: var(--muted);
}
.star:active { transform: scale(.9); }
.star-1 { color: var(--accent-ink); }
.star-2 { color: var(--accent-ink); text-shadow: 0 0 12px rgba(255, 211, 77, .7); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 12px; background: var(--accent); color: #1b1500;
  padding: 10px 14px; font-weight: 700; text-decoration: none;
}
.btn-ghost { background: var(--bg2); color: var(--text); border: 1px solid var(--line); }
.btn:disabled { opacity: .45; cursor: default; }
.link-btn { border: 0; background: none; color: var(--muted); text-decoration: underline; padding: 6px 0; font-size: 13px; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty h2 { color: var(--text); margin-bottom: 6px; font-size: 18px; }
.empty-icon { font-size: 44px; margin-bottom: 8px; }

/* ---------- Planning ---------- */
.plan-actions { display: flex; gap: 8px; }
.plan-actions .seg { flex: 1; }
.timeline { position: relative; margin: 8px 0 20px 44px; }
.hline { position: absolute; left: -44px; right: 0; height: 0; border-top: 1px solid var(--line); }
.hline.half { border-top-style: dashed; opacity: .5; }
.hline span { position: absolute; top: -8px; left: 0; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lanes { position: absolute; inset: 0; }
.tile {
  position: absolute; display: flex; flex-direction: column; gap: 2px; text-align: left;
  border: 0; border-radius: 10px; padding: 5px 7px; overflow: hidden;
  background: var(--c); color: var(--fg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.tile.lvl-1 { background: color-mix(in srgb, var(--c) 30%, var(--card)); color: var(--text); outline: 2px dashed var(--c); outline-offset: -2px; }
.tile.lvl-2 { outline: 2px solid var(--accent); outline-offset: -2px; }
.tile.dim { opacity: .38; }
.tile-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; opacity: .9; font-variant-numeric: tabular-nums; }
.tile-title { font-size: 13px; font-weight: 700; line-height: 16px; display: -webkit-box; -webkit-line-clamp: var(--lines, 3); -webkit-box-orient: vertical; overflow: hidden; hyphens: auto; overflow-wrap: anywhere; }
.tile.narrow .tile-title { font-size: 12px; line-height: 14.5px; }
.tile-room { font-size: 11px; opacity: .9; margin-top: auto; }
.tile.tiny { flex-direction: row; align-items: center; gap: 6px; padding: 2px 7px; }
.tile.tiny .tile-top, .tile.tiny .tile-room { display: none; }
.tile.tiny .tile-title { -webkit-line-clamp: 1; font-size: 12px; line-height: 14px; }
.now-line { position: absolute; left: -44px; right: 0; border-top: 2px solid #ff5d73; z-index: 3; pointer-events: none; }
.now-line span { position: absolute; top: -9px; left: 0; background: #ff5d73; color: #fff; font-size: 11px; font-weight: 700; padding: 0 4px; border-radius: 4px; }

.grid-scroll { overflow-x: auto; margin: 0 -12px; padding: 0 12px 20px; }
.grid { display: flex; min-width: max-content; }
.gaxis { width: 44px; flex: none; position: sticky; left: -12px; z-index: 4; background: var(--bg); }
.gaxis-body { position: relative; }
.gaxis .hline { left: 0; right: auto; width: 44px; }
.gcol { width: 150px; flex: none; border-left: 1px solid var(--line); }
.gcol-head { height: 30px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--muted); position: sticky; top: 0; }
.gcol-body { position: relative; background: repeating-linear-gradient(to bottom, transparent 0 47px, color-mix(in srgb, var(--line) 60%, transparent) 47px 48px); }
@media (min-width: 900px) { .chips { flex-wrap: wrap; } .gcol { width: 170px; } }

/* ---------- Direct ---------- */
.live-clock { text-align: center; padding: 8px 0 4px; }
.clock { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.date { color: var(--muted); text-transform: capitalize; }
.sim { color: var(--warn); text-transform: none; }
.section-title { font-size: 15px; margin: 18px 2px 8px; }
.hero { text-align: center; padding: 24px 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0; }
.hero-big { font-size: 48px; font-weight: 800; color: var(--accent-ink); }
.small-hero { padding: 14px; }
.progress { height: 6px; background: var(--bg2); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress div { height: 100%; background: var(--accent); }
.move {
  display: flex; gap: 10px; align-items: center; margin: 0 0 8px; padding: 10px 12px;
  border-radius: var(--radius); background: color-mix(in srgb, var(--warn) 16%, var(--bg2)); border: 1px solid color-mix(in srgb, var(--warn) 50%, transparent);
}
.move-icon { font-size: 28px; }
.more { margin: 14px 0; }
.more summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 6px 2px; }
.more > .card { margin-bottom: 8px; }
.view-live > .card, .view-live .card { margin-bottom: 8px; }
.sim-box { margin: 26px 0 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--radius); }
.sim-box summary { cursor: pointer; color: var(--muted); }
.sim-row { display: flex; gap: 8px; margin: 8px 0; }
.sim-row input { flex: 1; min-width: 0; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font-size: 16px; }
.sim-presets { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Amis ---------- */
.panel { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.field { display: grid; gap: 6px; font-weight: 600; }
.field input { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 16px; }

/* ---------- Amis ---------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%; background: var(--av); color: #0b1020;
  font-weight: 800; font-size: 15px; border: 2px solid var(--bg2);
}
.avatar.sm { width: 22px; height: 22px; font-size: 11px; border-width: 1.5px; margin-right: -5px; }
.avatar.av-star { box-shadow: 0 0 0 2px var(--accent); }
.friends-row { display: flex; align-items: center; margin-top: 6px; min-width: 0; }
.friends-names { margin-left: 12px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more-av { margin-left: 8px; font-size: 11px; color: var(--muted); }
.join-form { display: grid; gap: 12px; }
.group-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin: 8px 0 12px; }
.group-head h2 { font-size: 18px; }
.group-actions { display: flex; gap: 6px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent-ink); letter-spacing: 1px; }
.status-row { display: flex; gap: 8px; }
.status-row input { flex: 1; min-width: 0; }
.status-panel .field input { font-weight: 400; }
.friend { background: var(--card); border-radius: var(--radius); margin-bottom: 8px; box-shadow: var(--shadow); }
.friend > summary { list-style: none; display: flex; gap: 10px; padding: 10px 12px; cursor: pointer; align-items: flex-start; }
.friend > summary::-webkit-details-marker { display: none; }
.friend-main { flex: 1; min-width: 0; }
.friend-name { font-weight: 700; }
.friend-loc { margin-top: 2px; }
.friend-sel { padding: 0 8px 8px; display: grid; gap: 6px; }
.friend-sel .card { background: var(--bg2); }
.friends-block { margin: 14px 0; }
.friends-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.friends-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.live-friends li { box-shadow: var(--shadow); background: var(--card); border-radius: 12px; padding: 8px 10px; cursor: pointer; }
.leave { margin-top: 26px; }
.device-panel { margin: 10px 0 14px; display: grid; gap: 8px; justify-items: start; }
.device-panel h3 { font-size: 15px; }
.qr { background: #fff; border-radius: 12px; padding: 8px; width: min(240px, 70vw); }
.qr svg { display: block; width: 100%; height: auto; }

/* ---------- Fiche (bottom sheet) ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 30; background: rgba(3, 6, 15, .6);
  display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease-out;
}
.sheet {
  width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg2); border-radius: 20px 20px 0 0; animation: up .2s ease-out;
  padding-bottom: calc(16px + var(--safe-b));
}
@media (min-width: 760px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 20px; }
}
.sheet-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #0b1020));
  color: var(--fg);
}
.sheet-icon { font-size: 30px; }
.sheet-theme { flex: 1; font-weight: 700; }
.sheet-close { border: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .25); color: #fff; font-size: 16px; }
.sheet-body { padding: 16px; }
.sheet-body h2 { font-size: 21px; line-height: 1.25; margin-bottom: 6px; }
.facts { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 4px; }
.level-btn { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 12px 8px; font-weight: 700; }
.level-btn.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, var(--bg)); color: var(--accent-ink); }
.level-btn.lvl2.is-active { background: var(--accent); color: #1b1500; }
.abstract { margin: 16px 0; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.abstract-title { font-size: 15px; margin: 2px 0 6px; }
.abstract p { margin: 0 0 8px; line-height: 1.5; }
.abstract p:last-child { margin-bottom: 0; }
.abstract-src { color: var(--muted); }

/* ---------- Palier 5 : suggestions, dernière minute ---------- */
/* Encart « Installer l'appli » */
#install { max-width: 1100px; margin: 0 auto; padding: 0 12px; }
.install-card { margin: 4px 0 8px; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px dashed var(--accent); }
.install-title { font-weight: 700; font-size: 14px; }
details.install-card > summary { cursor: pointer; padding: 2px 0; }
details.install-card[open] > summary { margin-bottom: 4px; }
.install-line { display: flex; align-items: center; gap: 10px; }
.install-line .install-title { flex: 1; }
.btn-sm { padding: 6px 12px; font-size: 14px; }
.install-steps { padding-left: 18px; margin: 6px 0; line-height: 1.45; }
.install-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ios-share { display: inline-block; font-size: 15px; }
.install-mini { display: block; margin: 2px 2px 8px; font-size: 13px; }

/* Bandeau « Nouvelle version de l'appli » */
#update { max-width: 1100px; margin: 0 auto; padding: 0 12px; }
.update-banner { display: block; width: 100%; margin: 4px 0 10px; padding: 12px; border: 0; border-radius: 14px; background: var(--accent); color: #1b1500; font-size: 15px; text-align: left; box-shadow: 0 2px 10px rgba(0,0,0,.15); cursor: pointer; }

/* Coller son lien personnel (Amis) */
.paste-panel { margin-top: 12px; }
.paste-panel summary { cursor: pointer; font-weight: 700; }
.paste-panel .steps { padding-left: 18px; margin: 8px 0; }
.paste-input { width: 100%; box-sizing: border-box; margin: 4px 0 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 16px; }
.paste-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Bandeau « Programme mis à jour » */
#notice { max-width: 1100px; margin: 0 auto; padding: 0 12px; }
.notice { margin: 4px 0 10px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.notice-title { font-weight: 800; margin: 0 0 8px; }
.notice-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.notice-list li { line-height: 1.35; }
.notice-list li[data-open] { cursor: pointer; }
.notice-kind { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: var(--card2); margin-right: 4px; }
.notice-kind.kind-annulée, .notice-kind.kind-reportée, .notice-kind.kind-supprimée { background: var(--danger, #d92d20); color: #fff; }

/* Séances annulées / reportées */
.badge-off { display: inline-block; background: var(--danger, #d92d20); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; line-height: 1.3; }
.card.is-off .card-title, .is-off-title { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .75; }
.card.is-off { border-color: var(--danger, #d92d20); }
.tile.is-off { opacity: .7; background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(0,0,0,.12) 8px 16px); }
.tile.is-off .tile-title { text-decoration: line-through; }
.tile .badge-off { margin-left: 4px; font-size: 9px; padding: 1px 4px; }
.off { color: var(--danger, #d92d20); font-weight: 600; }
.off-banner { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--danger, #d92d20) 14%, var(--card)); border: 1px solid var(--danger, #d92d20); font-weight: 600; }
.off-banner a { color: inherit; }
.reasons { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.reasons .warn { color: var(--warn); font-weight: 600; }
.slots { margin: 18px 0 8px; }
.slot-gap { margin-bottom: 14px; }
.slot-when { font-weight: 700; margin: 0 2px 6px; }
.slot-gap .card { margin-bottom: 8px; }
.news-old { margin-top: 18px !important; }
.news-old summary { font-weight: 600; font-size: 14px; color: var(--muted); }
.badge-new { display: inline-block; background: var(--warn); color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 6px; vertical-align: middle; text-transform: uppercase; letter-spacing: .04em; }
.news { margin: 10px 0 4px; border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 12px; background: var(--card); }
.news summary { cursor: pointer; padding: 10px 12px; font-weight: 700; }
.news-body { padding: 0 12px 10px; font-size: 14px; }
.news-body p { margin: 0 0 6px; line-height: 1.4; }
.news-h { font-weight: 700; margin-top: 10px !important; }
.sheet .card { margin-bottom: 8px; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); z-index: 40;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--toast-bg); color: var(--toast-fg); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: opacity .2s, transform .2s; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes up { from { transform: translateY(40px); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
