@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")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/jetbrains-mono-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/jetbrains-mono-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;
  --official: #0f5c8c; --official-bg: #e3f0f8;
  --f-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@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; --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; --official: #7cc4ef; --official-bg: #14304a; color-scheme: dark; }

[hidden] { display: none !important; }
body { background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 16px; line-height: 1.45; }
.wrap { max-width: 720px; margin: 0 auto; padding-block: 16px 96px;
  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; }
h1 { font-family: var(--f-display); font-size: 32px; line-height: 1; margin: 0; letter-spacing: .01em; }
.sub { color: var(--muted); font-size: 14px; 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 13px 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 22px/1.05 var(--f-display); letter-spacing: .02em; cursor: pointer; flex: 1 1 0; min-width: 0; max-width: 210px; text-align: left; }
.roundel .last { font: 600 11px/1.25 var(--f-body); letter-spacing: 0; opacity: .85; margin-top: 2px; white-space: pre-line; }
.roundel[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.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: 13px; color: var(--muted); flex-basis: 100%; }
.helped { font: 600 13px 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 20px 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: 15px; }
.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: 14px; }
.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 14px 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: 22px; 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 14px 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: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }

.types { display: grid; grid-template-columns: repeat(3, minmax(0, 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 15px 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: 14px; line-height: 1.4; }
.between-hint { margin: -4px 0 0; font: 600 14px 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 12px 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 12px 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 12px 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); 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: 14px; gap: 8px; } .st .nm { overflow-wrap: anywhere; } }

label.f { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; min-width: 0; }
select, input[type=text] { font: 16px 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 label { flex: 1; }
.fav-btn { border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 8px; font-size: 20px; 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 12px 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: 13px; 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: 13px; 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: 14px; color: var(--fg); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.captcha { font-size: 13px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; }
.submit { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 14px; font: 700 17px var(--f-body); cursor: pointer; }
.status { font-size: 14px; 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: 14px; color: var(--muted); }
.fav-chip { border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 999px; padding: 4px 10px; font: 600 14px var(--f-body); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.fav-chip .n { font: 600 12px var(--f-mono); color: var(--muted); }
.fav-chip.hot .n { color: var(--red); }
.off-mark { font: 700 10px 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 13px var(--f-mono); color: var(--muted); }
.map-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: 14px; color: var(--muted); }
.strip { margin-top: 8px; }
.seg-name { font: 600 12px 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 12px 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: 15px 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 14px var(--f-body); text-align: left; }
.more::before { background: repeating-linear-gradient(var(--rail) 0 6px, transparent 6px 10px); }
.more .n { font: 600 12px 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: 14px; 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 19px/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: 600 11px var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.rep-time { margin-left: auto; font: 500 13px 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: 14px; 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 12px 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 13px var(--f-body); color: var(--muted); }
.life-sub { font-size: 13px; 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: 14px; }
.extras-h { font: 600 12px 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 13px var(--f-body); }
.votes { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
/* Like (Dealabs-style): one flat thumb button; once pressed it stays filled and cannot be undone */
.like { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px 0 10px; border-radius: 999px; border: 1.5px solid var(--red); background: var(--surface); color: var(--red); font: 700 13px var(--f-body); font-variant-numeric: tabular-nums; cursor: pointer; }
.like svg { width: 14px; height: 14px; }
.like.done { background: var(--red); color: #fff; cursor: default; }
.like:disabled:not(.done) { opacity: .4; cursor: not-allowed; }
.like-txt { font: 500 12px var(--f-body); color: var(--muted); }
.vote { border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 8px 14px; font: 600 14px var(--f-body); cursor: pointer; }
.vote[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.vote-end { margin-left: auto; }
.links { display: flex; gap: 14px; flex-wrap: wrap; }
.links button { border: 0; background: transparent; color: var(--muted); font: 13px 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 13px var(--f-body); color: var(--official); }
.ai-tag { justify-self: start; font: 600 11px var(--f-mono); color: var(--muted); border: 1px dashed var(--line); border-radius: 4px; padding: 0 4px; }
.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 12px var(--f-mono); color: var(--official); letter-spacing: .04em; text-transform: uppercase; }
.line-alert .all { font: 700 17px 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 11px var(--f-body); color: var(--official); }
.official .src { font: 700 12px 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 16px var(--f-display); color: var(--muted); flex: none; }
.x-name { font-weight: 700; line-height: 1.1; } .x-handle { color: var(--muted); font-size: 14px; }
.x-logo { margin-left: auto; font: 700 18px var(--f-body); }
.x-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.x-foot a { color: var(--accent); }
.ex-tag { font: 600 11px 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; }
details.expired > summary { cursor: pointer; color: var(--muted); font: 600 14px var(--f-body); padding: 8px 2px; }
.rep.gone { opacity: .6; filter: grayscale(1); }
.rep.gone .rep-st { text-decoration: line-through; }
.why { font: 600 12px var(--f-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; }

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

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(64px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  background: var(--fg); color: var(--bg); border-radius: 12px; padding: 10px 16px; font-size: 15px; 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-block: 16px 48px; }
.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: 14px; }
.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: 13px; }
footer .links button { border: 0; background: transparent; color: var(--muted); font: 13px 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 20px var(--f-display); }
dialog .reasons { display: grid; gap: 6px; }
.legal-text { line-height: 1.55; } .legal-text h1 { font-size: 28px; } .legal-text h2 { font-size: 18px; text-transform: none; letter-spacing: 0; margin-top: 8px; }
.legal-text mark { background: var(--wait-bg); color: var(--red); }
.legal a { color: var(--accent); }
