@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/source-sans-3-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/source-sans-3-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/source-sans-3-latin-700-normal.woff2) format("woff2")}
/* Layout: one column for phones on the platform — line switch with status badges, report form, my stations + line map, then the feed. Based on "RER B en direct". */
:root {
  --bg: #f3f6fa; --surface: #ffffff; --fg: #14202e; --muted: #5a6879; --line: #d6dee8; --rail: #9db8d9;
  --accent: #2f6fb8; --accent-ink: #ffffff;
  --wait: #a88a2a; --wait-bg: #fbf6e3;
  --full: #7a3fb0; --full-bg: #f1e7fb;
  --info: #6f87a3; --info-bg: #f1f4f8;
  --slow: #d0600e; --slow-bg: #fdecdc;
  --other: #c0362c; --other-bg: #fde7e4;
  --ok: #2a7a3d; --ok-bg: #e2f3e6;
  --stop: #8b1e3f; --stop-bg: #f8e3ea;
  --red: #c0362c; --amber: #d68a00; --green: #2a8a45; --like: #b4500c; /* like button orange, 5:1 on white */
  --official: #0f5c8c; --official-bg: #e3f0f8;
  /* One font for the whole app (Yifu 2026-10-29); the display/mono names stay as aliases. */
  --f-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: var(--f-body); --f-mono: var(--f-body);
  /* Type scale: every font size in this file is one of these five. */
  --fs-xs: 12px; --fs-s: 14px; --fs-m: 16px; --fs-l: 20px; --fs-xl: 28px;
  /* RATP line colours */
  --rer-a: #e3051c; --rer-b: #2f6aa6; /* RATP hues, B darkened for white text ≥ 4.5:1 */
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0e1520; --surface: #172131; --fg: #e6edf6; --muted: #98a6b8; --line: #2a3850; --rail: #3d5a82;
  --accent: #6aa5ec; --accent-ink: #0b1420;
  --wait: #dccb8a; --wait-bg: #302b18; --full: #c79bf2; --full-bg: #2f2040;
  --info: #a9bbd0; --info-bg: #222a34; --slow: #ff9a52; --slow-bg: #3e2412;
  --other: #ff8378; --other-bg: #43201d; --ok: #7fd394; --ok-bg: #173521; --stop: #f08aa8; --stop-bg: #3a1622;
  --red: #ff6b5e; --amber: #f0b14a; --green: #6fd38a; --like: #ff9a52; --official: #7cc4ef; --official-bg: #14304a; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0e1520; --surface: #172131; --fg: #e6edf6; --muted: #98a6b8; --line: #2a3850; --rail: #3d5a82;
  --accent: #6aa5ec; --accent-ink: #0b1420;
  --wait: #dccb8a; --wait-bg: #302b18; --full: #c79bf2; --full-bg: #2f2040;
  --info: #a9bbd0; --info-bg: #222a34; --slow: #ff9a52; --slow-bg: #3e2412;
  --other: #ff8378; --other-bg: #43201d; --ok: #7fd394; --ok-bg: #173521; --stop: #f08aa8; --stop-bg: #3a1622;
  --red: #ff6b5e; --amber: #f0b14a; --green: #6fd38a; --like: #ff9a52; --official: #7cc4ef; --official-bg: #14304a; color-scheme: dark; }

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
/* A grid track is "auto" by default and grows to its widest child's min-content (a <select> is as wide as its
   longest station name): pin every form column to the available width so the Signaler card never overflows. */
.card, label.f, .wrap { grid-template-columns: minmax(0, 1fr); }
select { min-width: 0; text-overflow: ellipsis; }
body { background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: var(--fs-m); line-height: 1.45; }
.wrap { max-width: 720px; margin: 0 auto; padding-top: 16px; padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); /* room for the fixed Signaler button */
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid; gap: 18px; }
button { font-family: inherit; }
button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

header { display: grid; gap: 12px; position: relative; }
.top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hgroup { flex: 1; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 56px; height: 56px; border-radius: 12px; flex: none; } /* the QAZ logo is the brand; the name explains it */
h1 { font: 600 var(--fs-m)/1.2 var(--f-body); margin: 0; }
.sub { color: var(--muted); font-size: var(--fs-xs); margin: 2px 0 0; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; color: var(--muted); font: 600 var(--fs-xs) var(--f-body); padding: 6px 10px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.lines { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.roundel { position: relative; min-height: 46px; padding: 4px 14px; border-radius: 10px; border: 2px solid var(--accent); background: var(--surface); color: var(--accent);
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; font: 700 var(--fs-l)/1.05 var(--f-display); letter-spacing: .02em; cursor: pointer; flex: 1 1 0; min-width: 0; max-width: 210px; text-align: left; }
.roundel { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
.roundel .last { font: 400 var(--fs-xs)/1.2 var(--f-body); letter-spacing: 0; margin-left: auto; white-space: nowrap; } /* time of the latest news, right-aligned on the same line */
/* Line colours as solid fill + white text (RER A red, Yifu 2026-10-29); colour only, no copy of the official roundel.
   The selected line is shown by a thick ring, not by a colour change. */
.roundel[data-line="A"] { --ln: var(--rer-a); } .roundel[data-line="B"] { --ln: var(--rer-b); }
.roundel, .roundel[aria-pressed="true"] { background: var(--ln); border-color: var(--ln); color: #fff; }
.roundel[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--fg); }
.badge { position: absolute; top: -3px; right: -3px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--bg); }
.b-red { background: var(--red); } .b-amber { background: var(--amber); } .b-green { background: var(--green); } .b-unknown { background: var(--muted); }
.lines-hint { font-size: var(--fs-xs); color: var(--muted); flex-basis: 100%; }
.helped { font: 600 var(--fs-xs) var(--f-body); color: var(--accent); background: var(--bg); border: 1px solid var(--accent); border-radius: 999px; padding: 3px 10px; }

.pop { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(10, 20, 40, .18); display: grid; gap: 10px; }
.pop h3 { margin: 0; font: 700 var(--fs-l) var(--f-display); display: flex; align-items: center; gap: 8px; }
.pop-row { display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: start; font-size: var(--fs-s); }
.pop-row .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; }
.pop-row b { display: block; }
.pop-row span { color: var(--muted); font-size: var(--fs-s); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-row > div { min-width: 0; } .pop-row small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.pop-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 999px; padding: 6px 14px; font: 600 var(--fs-s) var(--f-body); cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

h2 { font-family: var(--f-display); font-size: var(--fs-l); margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 14px; min-width: 0; }

.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--bg); color: var(--muted); font: 600 var(--fs-s) var(--f-body); padding: 10px 8px; cursor: pointer; text-align: center; min-width: 0; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.seg-label { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }

.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 8px; }
@media (max-width: 520px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.type { border: 2px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 10px; padding: 11px 10px;
  font: 600 var(--fs-s) var(--f-body); text-align: left; cursor: pointer; display: flex; align-items: center; gap: 10px; min-width: 0; line-height: 1.2; }
.type .dot, .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.type[aria-pressed="true"] { border-color: currentColor; }
.type[data-t="wait"][aria-pressed="true"] { color: var(--wait); background: var(--wait-bg); }
.type[data-t="full"][aria-pressed="true"] { color: var(--full); background: var(--full-bg); }
.type[data-t="info"][aria-pressed="true"] { color: var(--info); background: var(--info-bg); }
.type[data-t="slow"][aria-pressed="true"] { color: var(--slow); background: var(--slow-bg); }
.type[data-t="other"][aria-pressed="true"] { color: var(--other); background: var(--other-bg); }
.type[data-t="ok"][aria-pressed="true"] { color: var(--ok); background: var(--ok-bg); }
.type[data-t="stop"][aria-pressed="true"] { color: var(--stop); background: var(--stop-bg); }
.d-stop { background: var(--stop); } .c-stop { color: var(--stop); background: var(--stop-bg); } .st.hot.t-stop .pin { border-color: var(--stop); }
.safety { margin: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--stop); background: var(--stop-bg); color: var(--fg); font-size: var(--fs-s); line-height: 1.4; }
.between-hint { margin: -4px 0 0; font: 600 var(--fs-s) var(--f-body); color: var(--accent); }
.gap-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 2px 0 2px 40px; font: 600 var(--fs-xs) var(--f-body); color: var(--stop); }
.gap-row::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(var(--stop) 0 4px, var(--rail) 4px 8px); }
.d-wait { background: var(--wait); } .d-full { background: var(--full); } .d-info { background: var(--info); }
.d-slow { background: var(--slow); } .d-other { background: var(--other); } .d-ok { background: var(--ok); }
.chip { font: 600 var(--fs-xs) var(--f-mono); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.c-wait { color: var(--wait); background: var(--wait-bg); } .c-full { color: var(--full); background: var(--full-bg); }
.c-info { color: var(--info); background: var(--info-bg); } .c-slow { color: var(--slow); background: var(--slow-bg); }
.c-other { color: var(--other); background: var(--other-bg); } .c-ok { color: var(--ok); background: var(--ok-bg); }
.c-off { color: var(--official); background: var(--official-bg); }
.chip .sh { display: none; }
/* Official incident on the map: same size as rider chips, body font instead of mono, small OFFICIEL at the top right */
.chip.c-off { position: relative; font: 600 var(--fs-xs) var(--f-body); color: var(--official); background: var(--official-bg); box-shadow: inset 0 0 0 1px var(--official); }
.chip.c-off sup { position: absolute; top: -7px; right: 6px; font: 700 8px var(--f-mono); /* tiny tag on a chip: the one size outside the scale */ letter-spacing: .04em; line-height: 1; padding: 1px 3px; border-radius: 3px; background: var(--official); color: #fff; }
@media (max-width: 480px) { .strip .chip .lg { display: none; } .strip .chip .sh { display: inline; } .st { font-size: var(--fs-s); gap: 8px; } .st .nm { overflow-wrap: anywhere; } }

label.f { display: grid; gap: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; min-width: 0; }
select, input[type=text] { font: var(--fs-m) var(--f-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px; width: 100%; box-sizing: border-box; text-transform: none; letter-spacing: 0; }
.station-row { display: flex; gap: 8px; align-items: end; min-width: 0; }
.station-row > .f { flex: 1 1 0; min-width: 0; display: grid; gap: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.fav-btn { border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 8px; font-size: var(--fs-l); line-height: 1; width: 44px; height: 44px; cursor: pointer; flex: none; }
.fav-btn[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 460px) { .row2 { grid-template-columns: 1fr; } }
.count { font: 500 var(--fs-xs) var(--f-mono); color: var(--muted); text-align: right; text-transform: none; }
.count.over { color: var(--red); }
fieldset.who { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; min-width: 0; }
fieldset.who legend { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 0; margin-bottom: 4px; }
.seg.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hint { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.pseudo-row { display: flex; gap: 8px; min-width: 0; }
.pseudo-row input { flex: 1; min-width: 0; }
.consents { display: grid; gap: 8px; }
.consents .hint { padding-left: 30px; } /* lines up with the checkbox text (20px box + 10px gap) */
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-s); line-height: 1.25; color: var(--fg); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.captcha { font-size: var(--fs-xs); color: var(--muted); max-width: 100%; min-width: 0; min-height: min-content; overflow: visible; }
.captcha:empty { display: none; }
.submit { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 14px; font: 700 var(--fs-m) var(--f-body); cursor: pointer; }
.status { font-size: var(--fs-s); min-height: 1.2em; margin: 0; }
.status.err { color: var(--red); } .status.good { color: var(--ok); }

/* My stations */
.favs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: var(--fs-s); color: var(--muted); }
.fav-chip { border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 999px; padding: 4px 10px; font: 600 var(--fs-s) var(--f-body); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.fav-chip .n { font: 600 var(--fs-xs) var(--f-mono); color: var(--muted); }
.fav-chip.hot .n { color: var(--red); }
.off-mark { font: 700 var(--fs-xs) var(--f-mono); letter-spacing: .04em; color: var(--official); background: var(--official-bg); border: 1px solid var(--official); border-radius: 4px; padding: 0 4px; }

/* Line map */
.map-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; list-style: none; }
.map-head::-webkit-details-marker { display: none; }
.caret { width: 0; height: 0; border-left: 7px solid var(--accent); border-top: 6px solid transparent; border-bottom: 6px solid transparent; transition: transform .15s; flex: none; }
#map-box[open] .caret { transform: rotate(90deg); }
.map-sum { margin-left: auto; font: 600 var(--fs-xs) var(--f-mono); color: var(--muted); }
.map-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: var(--fs-s); color: var(--muted); }
.strip { margin-top: 8px; }
.seg-name { font: 600 var(--fs-xs) var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 8px 0 2px 40px; position: relative; display: flex; gap: 8px; align-items: center; }
.seg-name::before, .st::before, .more::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 6px; background: var(--rail); }
.strip > :first-child::before { top: 50%; } .strip > :last-child::before { bottom: 50%; }
.seg-name button { border: 0; background: transparent; color: var(--accent); font: 600 var(--fs-xs) var(--f-body); cursor: pointer; text-transform: none; letter-spacing: 0; padding: 2px 4px; }
.st { position: relative; display: flex; align-items: center; gap: 12px; padding: 5px 4px 5px 0; border: 0; background: transparent;
  color: var(--fg); font: var(--fs-s) var(--f-body); text-align: left; cursor: pointer; width: 100%; border-radius: 8px; min-width: 0; }
.st .pin { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--surface);
  border: 4px solid var(--accent); margin-left: 9px; flex: none; box-sizing: border-box; }
.st.hot .pin { border-color: var(--red); }
.st.hot.t-wait .pin { border-color: var(--wait); } .st.hot.t-full .pin { border-color: var(--full); } .st.hot.t-info .pin { border-color: var(--info); }
.st.hot.t-slow .pin { border-color: var(--slow); } .st.hot.t-other .pin { border-color: var(--other); } .st.hot.t-ok .pin { border-color: var(--ok); }
.st.hot .pin { width: 22px; height: 22px; margin-left: 6px; border-width: 5px; }
.st { flex-wrap: wrap; row-gap: 2px; }
.st .nm { flex: 1 1 auto; min-width: 7em; overflow-wrap: anywhere; }
.st .chips { margin-left: auto; max-width: calc(100% - 40px); }
.c-more { color: var(--muted); background: var(--bg); }
.rep-note, .rep-meta, .rep-st, .fav-chip, .off-text { overflow-wrap: anywhere; }
.st.fav .nm { font-weight: 800; }
.st[aria-pressed="true"] { background: var(--bg); outline: 2px solid var(--accent); }
.st .chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.more { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; cursor: pointer; padding: 6px 0 6px 40px; color: var(--accent); font: 600 var(--fs-s) var(--f-body); text-align: left; }
.more::before { background: repeating-linear-gradient(var(--rail) 0 6px, transparent 6px 10px); }
.more .n { font: 600 var(--fs-xs) var(--f-mono); color: var(--red); }

/* Feed */
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-pill { font-size: var(--fs-s); border: 1px solid var(--accent); background: var(--surface); color: var(--accent); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rep { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 5px; min-width: 0; }
.rep-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rep-st { font: 700 var(--fs-l)/1.2 var(--f-body); }
.rep.flash { outline: 3px solid var(--accent); outline-offset: 2px; animation: flash 2.4s ease-out 1; }
@keyframes flash { 0% { background: var(--official-bg); } 100% { background: var(--surface); } }
.unv-row { display: flex; align-items: center; gap: 8px; }
.unv { font: 400 var(--fs-xs) var(--f-body); color: var(--muted); }
.rep-meta.by { overflow-wrap: anywhere; } /* "par <pseudo>" on its own line under the direction (batch C7) */
.rep-time { margin-left: auto; font: 500 var(--fs-xs) var(--f-body); color: var(--muted); background: var(--bg); border-radius: 8px; padding: 3px 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep-meta { font-size: var(--fs-s); color: var(--muted); } .rep-meta b { color: var(--fg); font-weight: 700; }
.rep-meta .dir { color: var(--fg); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.times { font: 500 var(--fs-xs) var(--f-mono); color: var(--muted); display: flex; gap: 4px 12px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.times b { color: var(--fg); font-weight: 600; }
.life { display: grid; gap: 4px; }
.life-main { font: 500 var(--fs-xs) var(--f-body); color: var(--muted); }
.life-sub { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.life-bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.life-bar span { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.gone-life .life-main { color: var(--muted); }
.rep-note { overflow-wrap: anywhere; }
.extras { border-left: 3px solid var(--line); padding: 2px 0 2px 10px; display: grid; gap: 4px; font-size: var(--fs-s); }
.extras-h { font: 600 var(--fs-xs) var(--f-body); color: var(--muted); }
.extras ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; overflow-wrap: anywhere; }
.extras b { font-weight: 600; } .extras summary { cursor: pointer; color: var(--accent); font: 600 var(--fs-xs) var(--f-body); }
.votes { display: flex; gap: 8px; align-items: center; margin-top: 6px; min-width: 0; }
/* Like (Dealabs-style): one flat thumb button; once pressed it stays filled and cannot be undone */
.like { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px 0 8px; border-radius: 999px; border: 1.5px solid var(--like); background: var(--surface); color: var(--like); font: 700 var(--fs-xs) var(--f-body); font-variant-numeric: tabular-nums; cursor: pointer; }
.like svg { width: 13px; height: 13px; }
.like::after { content: ""; position: absolute; inset: -9px -4px; } /* smaller pill (batch C8), same 44 px touch area */
.like.done { background: var(--like); border-color: var(--like); color: var(--surface); }
.like:disabled:not(.done) { opacity: .4; cursor: not-allowed; }
.like-txt { font: 500 var(--fs-xs)/1.25 var(--f-body); color: var(--muted); min-width: 0; display: grid; } /* "en 15 min" over "dernier hh:mm" (batch C9) */
.vote { border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 8px 14px; font: 600 var(--fs-s) var(--f-body); cursor: pointer; }
.vote[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.vote-end { margin-left: auto; white-space: nowrap; flex: none; }
.links { display: flex; gap: 14px; flex-wrap: wrap; }
.links button { border: 0; background: transparent; color: var(--muted); font: var(--fs-xs) var(--f-body); text-decoration: underline; cursor: pointer; padding: 0; }
.official { border-color: var(--official); background: var(--official-bg); }
.off-where { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font: 600 var(--fs-xs) var(--f-body); color: var(--official); }
.line-alert { border: 2px solid var(--official); background: var(--official-bg); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.line-alert .src { font: 700 var(--fs-xs) var(--f-mono); color: var(--official); letter-spacing: .04em; text-transform: uppercase; }
.line-alert .all { font: 700 var(--fs-m) var(--f-body); }
/* Official incident on a section: a bar on the right links its stations, labelled once with OFFICIEL + a short summary */
.st.off-sec { padding-right: 14px; }
.st.off-sec::after { content: ""; position: absolute; right: 3px; top: -4px; bottom: -4px; width: 4px; border-radius: 2px; background: var(--official); }
.st.off-first::after { top: 50%; } .st.off-last::after { bottom: 50%; }
.st.off-first.off-last::after { display: none; }
.st.off-sec .c-off::after { content: ""; position: absolute; top: 50%; right: -9px; width: 9px; height: 1px; background: var(--official); } /* thin link from the label to the bar */
.off-sum { font: 600 var(--fs-xs) var(--f-body); color: var(--official); }
.official .src { font: 700 var(--fs-xs) var(--f-mono); color: var(--official); letter-spacing: .04em; text-transform: uppercase; }
.xcard { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); display: grid; gap: 6px; }
.x-top { display: flex; gap: 10px; align-items: center; }
.x-av { width: 40px; height: 40px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font: 700 var(--fs-m) var(--f-display); color: var(--muted); flex: none; }
.x-name { font-weight: 700; line-height: 1.1; } .x-handle { color: var(--muted); font-size: var(--fs-s); }
.x-logo { margin-left: auto; font: 700 var(--fs-l) var(--f-body); }
.x-foot { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); }
.x-foot a { color: var(--accent); }
.ex-tag { font: 600 var(--fs-xs) var(--f-mono); color: var(--muted); border: 1px dashed var(--line); border-radius: 4px; padding: 0 4px; }
.empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 4px; }
.empty b { color: var(--fg); font-weight: 700; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
details.expired > summary { cursor: pointer; color: var(--muted); font: 600 var(--fs-s) var(--f-body); padding: 8px 2px; }
.rep.gone { opacity: .6; filter: grayscale(1); }
.rep.gone .rep-st { text-decoration: line-through; }
.why { font: 600 var(--fs-xs) var(--f-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; }

footer { color: var(--muted); font-size: var(--fs-xs); display: grid; gap: 6px; }
footer .links button { font-size: var(--fs-xs); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); top: calc(12px + env(safe-area-inset-top, 0px)); /* top: never over card buttons */ z-index: 30;
  background: var(--fg); color: var(--bg); border-radius: 12px; padding: 10px 16px; font-size: var(--fs-s); width: max-content; max-width: min(calc(100vw - 32px), 520px); box-sizing: border-box; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  white-space: pre-line; touch-action: none; cursor: grab; transition: opacity .2s; }
.toast b { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .caret { transition: none; } }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; }
.stack { display: grid; gap: 8px; } .stack-12 { display: grid; gap: 12px; }
.note-head { display: flex; justify-content: space-between; gap: 8px; }
.wrap { padding-top: 16px; }
.source { border: 2px solid var(--red); background: var(--other-bg); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.source.loading { border-color: var(--line); background: var(--surface); color: var(--muted); }
.source.stale { border-color: var(--amber); background: var(--wait-bg); }
.source .btn { justify-self: start; }
.banner { border: 1px solid var(--amber); background: var(--wait-bg); border-radius: 12px; padding: 10px 14px; font-size: var(--fs-s); }
.x-av { overflow: hidden; } .x-av img { width: 100%; height: 100%; object-fit: cover; }
.x-logo img { width: 18px; height: 18px; display: block; }
:root[data-theme="dark"] .x-logo img, .dark-x .x-logo img { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .x-logo img { filter: invert(1); } }
.xcard a { color: var(--accent); }
.dot-muted { background: var(--muted); }
footer a { color: var(--muted); font-size: var(--fs-xs); }
footer .links button { border: 0; background: transparent; color: var(--muted); font: var(--fs-xs) var(--f-body); text-decoration: underline; cursor: pointer; padding: 0; }
.settings { display: grid; gap: 10px; margin-top: 12px; }
dialog { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--fg); max-width: min(480px, calc(100vw - 32px)); padding: 16px; }
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog .dlg { display: grid; gap: 12px; }
dialog h3 { margin: 0; font: 700 var(--fs-l) var(--f-display); }
dialog .reasons { display: grid; gap: 6px; }
.legal-text { line-height: 1.55; } .legal-text h1 { font-size: var(--fs-xl); } .legal-text h2 { font-size: var(--fs-l); text-transform: none; letter-spacing: 0; margin-top: 8px; }
.legal-text mark { background: var(--wait-bg); color: var(--red); }
.legal a { color: var(--accent); }

/* Official cards: publisher + incident type (same chip size as rider reports), compact body text. */
.official .src { font: 700 var(--fs-xs) var(--f-body); color: var(--official); letter-spacing: .02em; text-transform: none; }
.off-body { font-size: var(--fs-s); line-height: 1.3; }
.chip.c-type-off { background: var(--official-bg); color: var(--official); border: 1px solid var(--official); }
.rep-top .chip { font: 700 var(--fs-s) var(--f-body); padding: 3px 9px; } /* incident type: same size for riders and officials */
/* One incident told by IDFM and the official X account, framed like a mail thread (batch C3): the latest message
   on top, then "▸ N messages précédents"; unfolded, the earlier ones are indented and linked by a thin line. */
.og { list-style: none; display: grid; gap: 8px; background: var(--official-bg); border-left: 4px solid var(--official); border-radius: 12px; padding: 10px; }
.og-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.og > .og-list > li { background: var(--surface); }
.og details > summary { cursor: pointer; list-style: none; font: 600 var(--fs-s) var(--f-body); color: var(--official); padding: 2px 4px; }
.og details > summary::-webkit-details-marker { display: none; }
.og details > summary::before { content: "▸ "; } .og details[open] > summary::before { content: "▾ "; }
.og .og-old { margin: 8px 0 0 14px; padding-left: 12px; border-left: 2px solid var(--rail); }
.x-ended { background: var(--bg); border-style: dashed; } /* incident over: earlier X posts look faded, text keeps AA contrast */
.x-ended .x-text { color: var(--muted); }

/* Status line under the line buttons (replaces the popup). */
.line-status { --ln: var(--rer-b); position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -2px 0 0;
  padding: 8px 12px; border: 2px solid var(--ln); border-radius: 10px; background: var(--surface); font: 600 var(--fs-s) var(--f-body); }
.line-status[data-line="A"] { --ln: var(--rer-a); }
.ls-txt { display: flex; gap: .3em; min-width: 0; flex: 1 1 auto; white-space: nowrap; }
.ls-part { flex: none; }
.ls-src { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* notch under the selected line button, like an open "sommaire" */
.line-status::before { content: ""; position: absolute; top: -9px; left: calc(var(--notch, 25%) - 8px); width: 14px; height: 14px;
  background: var(--surface); border-left: 2px solid var(--ln); border-top: 2px solid var(--ln); transform: rotate(45deg); }
/* Signaler: fixed button + bottom sheet */
.fab { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 14px 28px; font: 700 var(--fs-m) var(--f-body);
  box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer; }
.sheet { position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.sheet form { position: relative; grid-auto-rows: max-content; max-height: 92vh; overflow-y: auto; width: 100%; max-width: 720px; margin: 0 auto; border-radius: 16px 16px 0 0;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-x { border: 0; background: transparent; color: var(--muted); font-size: var(--fs-l); width: 44px; height: 44px; cursor: pointer; }
body.sheet-open { overflow: hidden; }
.send-why { margin: 0; font-size: var(--fs-s); color: var(--other); }
.submit:disabled { opacity: .55; cursor: not-allowed; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.dir-main, .dir-sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-main { font-weight: 700; } .dir-sub { font-size: var(--fs-xs); font-weight: 400; }

/* Official time: "10:42 · il y a 5 min", bold, official blue (Yifu 2026-10-29) */
.rep-time.off-time { font-weight: 700; color: var(--official); background: var(--surface); box-shadow: inset 0 0 0 1px var(--official); }
/* Earlier messages of an incident, under "Messages précédents": muted text on the page background */
.og-old > li { background: var(--bg); border-color: var(--line); }
.og-old > li .off-body, .og-old > li .x-text { color: var(--muted); }
/* « Autres messages »: quiet or ended incidents, faded like the earlier messages of a group. */
#more-off .og { background: var(--bg); border-left-color: var(--line); }
#more-off li li, #more-off > li { background: var(--bg); border-color: var(--line); }
#more-off .off-body, #more-off .x-text { color: var(--muted); }
#more-box > ul + ul:not([hidden]) { margin-top: 8px; }
#more-off:empty, #expired:empty { display: none; }
#banners:empty, #line-alerts:empty, #source[hidden] { display: none; } /* no empty grid rows above the feed */
.est-note { font: 400 var(--fs-xs) var(--f-body); color: var(--muted); margin-top: -2px; } /* LLM-picked stations: not official */
.chip.c-off.est { box-shadow: none; border: 1px dashed var(--muted); color: var(--muted); }
.chip.c-off.est sup { background: var(--muted); }

/* Station picker (batch C2): replaces the form content while open, inside the same sheet. */
.st-btn { display: flex; justify-content: space-between; gap: 8px; align-items: center; width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--fg); font: var(--fs-m) var(--f-body); padding: 0 12px; cursor: pointer; text-align: left; }
#station-name { min-width: 0; overflow-wrap: anywhere; padding: 8px 0; }
form.picking > :not(#picker) { display: none; }
.picker { display: grid; gap: 8px; }
.picker-head { display: flex; align-items: center; gap: 4px; margin-left: -8px; }
.picker-head h3 { margin: 0; font: 700 var(--fs-m) var(--f-body); }
#picker-q { font: var(--fs-m) var(--f-body); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--bg); color: var(--fg); }
.pk-h { font: 700 var(--fs-s) var(--f-body); color: var(--fg); background: var(--line); border-left: 4px solid var(--accent); border-radius: 4px;
  text-transform: uppercase; letter-spacing: .04em; margin-top: 12px; padding: 7px 9px; overflow-wrap: anywhere; }
.picker-list ul { list-style: none; margin: 0; padding: 0; }
.picker-list li { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.pk-st { flex: 1; min-height: 40px; border: 0; background: none; color: var(--fg); font: 15px var(--f-body); text-align: left; padding: 0 4px; cursor: pointer; } /* 15 px rows, ~40 px high (spec) */
.pk-st[aria-current="true"] { font-weight: 700; color: var(--accent); }
.pk-fav { width: 44px; height: 40px; border: 0; background: none; color: var(--muted); font-size: var(--fs-l); cursor: pointer; flex: none; }
.pk-fav[aria-pressed="true"] { color: var(--wait); } /* ≥ 3:1 for an icon */
.off-scope { font: 600 var(--fs-s) var(--f-body); color: var(--official); }
.map-sum { overflow-wrap: anywhere; min-width: 0; }
