/* durail — retro SNCF UI.
   No Tailwind, no JS framework. Pixel-display headings, hard offset shadows,
   saturated SNCF palette (rouge SNCF + orange TGV + violet) on cream. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Silkscreen:wght@400;700&display=swap");

/* ============================================================
   Design tokens — single retro theme (no dark mode)
   ============================================================ */
:root {
  /* Surfaces — warm cream paper */
  --bg:         #f4ead2;
  --bg-card:    #fffdf5;
  --bg-muted:   #ece0c2;
  --bg-hover:   #ffe7cf;

  /* Ink — everything bordered in solid near-black violet */
  --border:        #1b1a2a;
  --border-strong: #1b1a2a;
  --fg:        #1b1a2a;
  --fg-muted:  #6b5e6f;
  --fg-subtle: #9c8f9c;

  /* SNCF rouge as primary action */
  --primary:       #d6002a;
  --primary-fg:    #fff7ec;
  --primary-hover: #ad0021;

  /* Orange TGV (livrée Sud-Est) as accent */
  --accent:      #f26b1d;
  --accent-fg:   #1b1a2a;
  --accent-hover:#d8550f;
  --accent-soft: #fbe0c9;

  /* Violet SNCF as link / secondary */
  --link:      #6a2cb0;
  --link-hover:#481d7a;

  /* Cyan rétro — 3e couleur d'accent */
  --info:      #0c8fb5;
  --info-soft: #c9eef6;

  /* Jaune ticket — touches vives */
  --pop:       #f5b400;
  --pop-soft:  #fdeeb8;

  --success:   #1f9d55;
  --success-soft: #cdeed8;
  --warn:      #c06a00;
  --warn-soft: #fbe2b0;
  --danger:    #d6002a;
  --danger-soft: #fbcfd6;

  /* Square pixel corners */
  --radius-sm: 0;
  --radius:    0;
  --radius-lg: 0;

  /* Hard, blur-less offset shadows */
  --shadow-sm: 2px 2px 0 0 var(--border);
  --shadow:    4px 4px 0 0 var(--border);
  --shadow-lg: 6px 6px 0 0 var(--border);

  --font:         "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Silkscreen", "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ============================================================
   Reset + base
   ============================================================ */
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--font);
  font-size: 14px; line-height: 1.55;
}
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
code, pre { font-family: var(--font-mono); font-size: 12.5px; }
code {
  background: var(--bg-muted); padding: 1px 6px;
  border: 1.5px solid var(--border); font-size: 12px;
}
hr { border: 0; border-top: 2px solid var(--border); margin: 24px 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.35; margin: 0; font-weight: 400;
  text-transform: uppercase;
}
h1 { font-size: 18px; margin: 0 0 14px; letter-spacing: 0.01em; color: var(--primary); }
h2 { font-size: 13px; margin: 0 0 14px; color: var(--link); }
h3 { font-size: 10px; color: var(--accent-hover); letter-spacing: 0.04em; margin: 0 0 8px; }

p { margin: 0 0 12px; }

.muted { color: var(--fg-muted); }
.small { font-size: 12.5px; }
.subtle { color: var(--fg-subtle); }

/* ============================================================
   Layout
   ============================================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

header {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  border-top: 4px solid var(--primary);
  border-bottom: 3px solid var(--border);
}
header .container {
  display: flex; align-items: center; gap: 12px;
  height: 58px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px; color: var(--fg);
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; text-decoration: none;
}
.brand:hover { color: var(--primary); }
nav { margin-left: auto; display: flex; gap: 8px; align-items: center; }

main { padding: 28px 0 64px; }

footer {
  border-top: 3px solid var(--border);
  padding: 20px 0; color: var(--fg-muted);
  font-size: 12px; margin-top: 64px;
}

/* ============================================================
   Banners
   ============================================================ */
.banner {
  padding: 11px 18px; font-size: 13px; font-weight: 600;
  border-bottom: 3px solid var(--border);
  display: flex; align-items: center; gap: 8px; justify-content: center;
}
.banner.err  { background: var(--danger-soft); color: var(--danger); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.ok   { background: var(--success-soft); color: var(--success); }
.banner a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   Buttons — pixel face with press-into-the-page interaction
   ============================================================ */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--bg-card); color: var(--fg);
  border: 2px solid var(--border);
  padding: 7px 14px; height: 36px;
  box-shadow: var(--shadow-sm);
  cursor: pointer; font-family: var(--font-display); font-weight: 400;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.02em;
  transition: transform 0.06s, box-shadow 0.06s, background 0.12s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--bg-hover); text-decoration: none; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 0 var(--border); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.btn.primary { background: var(--primary); color: var(--primary-fg); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.accent { background: var(--accent); color: var(--accent-fg); }
.btn.accent:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--bg-hover); border-color: var(--border); box-shadow: var(--shadow-sm); transform: none; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: var(--primary-fg); }
.btn.lg { height: 44px; padding: 0 22px; font-size: 13px; }
.btn.sm { height: 31px; padding: 0 12px; font-size: 10px; }
.btn.icon { padding: 0; width: 36px; }

/* ============================================================
   Inputs — kept in Inter for readability
   ============================================================ */
input[type=text], input[type=email], input[type=password],
input[type=number], input[type=date], input[type=time], select, textarea {
  display: block; width: 100%;
  background: var(--bg-card); color: var(--fg);
  border: 2px solid var(--border);
  padding: 8px 12px;
  font: inherit; font-size: 13.5px; height: 38px;
  transition: box-shadow 0.12s, background 0.12s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
label.field {
  display: block; margin-bottom: 14px;
  font-size: 13px; font-weight: 600;
}
label.field > input, label.field > select { margin-top: 6px; }

.checkbox-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border: 2px solid var(--border);
  background: var(--bg-card);
  font-size: 13px; cursor: pointer; font-weight: 500;
  transition: background 0.12s, box-shadow 0.12s;
}
.checkbox-row:hover { background: var(--bg-hover); box-shadow: var(--shadow-sm); }
.checkbox-row input { margin: 0; transform: scale(1.2); accent-color: var(--primary); }

/* ============================================================
   Card
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}
.card.compact { padding: 14px 16px; }
.card-header { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.card-header h2, .card-header h3 { margin: 0; }
.card-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.section { margin-bottom: 32px; }
.section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 0 0 16px;
}

/* ============================================================
   Badges — rectangular pixel chips
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  font-family: var(--font); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  border: 1.5px solid var(--border);
  background: var(--pop-soft); color: var(--fg);
  white-space: nowrap;
}
.badge.success { background: var(--success); color: #fff; }
.badge.warn    { background: var(--pop);     color: var(--fg); }
.badge.danger  { background: var(--danger);  color: #fff; }
.badge.accent  { background: var(--accent);  color: var(--fg); }
.badge.info    { background: var(--info);    color: #fff; }

.dot { width: 9px; height: 9px; display: inline-block; border: 1.5px solid var(--border); }
.dot.green { background: var(--success); }
.dot.amber { background: var(--warn); }
.dot.gray  { background: var(--fg-subtle); }

/* ============================================================
   Tables — body kept in Inter, headers pixelated
   ============================================================ */
table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
thead th {
  text-align: left; padding: 10px 14px;
  font-family: var(--font); font-weight: 700;
  color: var(--fg); background: var(--accent-soft);
  border-bottom: 2px solid var(--border);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
}
tbody td {
  padding: 12px 14px; border-bottom: 1.5px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-hover); }
.table-card { overflow: hidden; padding: 0; }
.table-card thead th:first-child, .table-card tbody td:first-child { padding-left: 20px; }
.table-card thead th:last-child,  .table-card tbody td:last-child  { padding-right: 20px; }

.trains tr.bookable { background: var(--success-soft); }
.trains tr.bookable:hover td { background: var(--success-soft); filter: brightness(0.96); }
.trains tr.complet td { color: var(--fg-muted); }
.runs tr.fail td:last-child { color: var(--danger); font-weight: 600; }

/* Scrollable table with sticky header */
.table-card.scroll-y { max-height: 460px; overflow-y: auto; }
.table-card.scroll-y thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--accent-soft);
}

/* Runs filter toolbar */
.runs-toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 12px;
}
.runs-toolbar input[type="search"],
.runs-toolbar select {
  padding: 6px 10px; font-size: 13px; height: 34px;
  background: var(--bg-card); color: inherit;
  border: 2px solid var(--border);
}
.runs-toolbar input[type="search"] { flex: 1; min-width: 160px; }
.runs-toolbar #runs-count { margin-left: auto; }

/* Session slots strip */
ul.plain.slots { display: flex; flex-direction: column; gap: 0; }
ul.plain.slots li {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1.5px solid var(--border);
}
ul.plain.slots li:last-child { border-bottom: none; }

/* Bookable sightings (forensic evidence) */
.sightings { display: flex; flex-direction: column; gap: 0; padding: 0; }
.sighting { padding: 14px 18px; border-bottom: 2px solid var(--border); }
.sighting:last-child { border-bottom: none; }
.sighting-head {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 14px;
}
.sighting-head .sighting-time { margin-left: auto; }
.sighting-body {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-top: 8px;
}
.sighting-body details { width: 100%; margin-top: 6px; }
.sighting-body summary { cursor: pointer; user-select: none; }
.more-sightings > summary {
  cursor: pointer; user-select: none;
  padding: 12px 18px; font-size: 13px; font-weight: 600;
  color: var(--link); border-top: 2px solid var(--border);
}
.more-sightings > summary:hover { background: var(--bg-hover); }
.more-sightings[open] > summary { border-bottom: 2px solid var(--border); }
pre.rawjson {
  margin: 8px 0 0; padding: 12px;
  background: var(--bg-muted); border: 2px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; line-height: 1.5;
  max-height: 380px; overflow: auto; white-space: pre;
}

/* ============================================================
   Grid of cards (dashboard)
   ============================================================ */
.cards-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.watch-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-top: 6px solid var(--accent);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  transition: transform 0.06s, box-shadow 0.06s;
  text-decoration: none; color: inherit;
}
.watch-card:nth-child(3n+2) { border-top-color: var(--info); }
.watch-card:nth-child(3n+3) { border-top-color: var(--link); }
.watch-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.watch-card .top { display: flex; gap: 8px; align-items: center; }
.watch-card h3.title {
  font-family: var(--font-display); font-size: 11px; color: var(--fg);
  text-transform: uppercase; letter-spacing: 0;
  font-weight: 400; flex: 1; min-width: 0;
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.watch-card .route { font-size: 13px; color: var(--fg-muted); font-weight: 500; }
.watch-card .meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--fg-muted);
}
.watch-card .actions {
  display: flex; gap: 6px; margin-top: 4px;
  border-top: 2px solid var(--border); padding-top: 12px;
}
.watch-card .actions form { display: inline; }

.empty-state {
  text-align: center; padding: 48px 20px;
  border: 3px dashed var(--border);
  background: var(--bg-card);
  color: var(--fg-muted);
}
.empty-state .icon { font-size: 32px; margin-bottom: 12px; }

/* ============================================================
   Form / new watch
   ============================================================ */
.watch-form { max-width: 720px; }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form-row.tight { gap: 10px; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.form-row.four  { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 700px) {
  .form-row, .form-row.three, .form-row.four { grid-template-columns: 1fr; }
}

/* ============================================================
   Autocomplete
   ============================================================ */
.ac-wrap { position: relative; }
.autocomplete-results { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; }
.ac-list {
  list-style: none; margin: 4px 0 0; padding: 0;
  background: var(--bg-card); border: 2px solid var(--border);
  box-shadow: var(--shadow);
  max-height: 320px; overflow-y: auto;
}
.ac-row {
  padding: 9px 12px; cursor: pointer;
  font-size: 13px; border-bottom: 1.5px solid var(--border);
  transition: background 0.1s;
}
.ac-row:last-child { border-bottom: none; }
.ac-row:hover { background: var(--bg-hover); }
.ac-row strong { font-weight: 700; }
.ac-empty { padding: 12px; color: var(--fg-muted); font-size: 13px; }
.kind {
  display: inline-block;
  font-family: var(--font); font-size: 10px; font-weight: 700;
  padding: 2px 7px; border: 1.5px solid var(--border);
  background: var(--info-soft); color: var(--fg);
  text-transform: uppercase; letter-spacing: 0.03em;
  margin-left: 6px; vertical-align: middle;
}
.picked { font-size: 12px; color: var(--success); margin-top: 4px; font-weight: 600; }

/* ============================================================
   Login
   ============================================================ */
.login-shell { max-width: 380px; margin: 12vh auto 0; }
.login-shell .card { padding: 28px; }

/* ============================================================
   Responsive nav
   ============================================================ */
@media (max-width: 640px) {
  header .container { gap: 6px; height: 54px; }
  nav { gap: 4px; }
  nav .btn { padding: 0 8px; height: 32px; font-size: 13px; gap: 0; }
  nav .hide-mobile { display: none; }
  /* Emojis seuls sur mobile : la nav rentre dans l'écran sans déborder. */
  nav .nav-label { display: none; }
  h1 { font-size: 14px; }
}

/* ============================================================
   Misc
   ============================================================ */
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 24px; }
.actions-row form { display: inline; }

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1.5px solid var(--border);
}
ul.plain li:last-child { border-bottom: none; }

/* ============================================================
   Aperçu rame (compo SNCF) — habillage rétro pixel, lisible
   ============================================================ */
.train-preview {
  background: var(--bg-card);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 10px 12px 8px;
  margin: 4px 0 10px;
  overflow-x: auto;             /* la rame est longue → scroll horizontal */
  -webkit-overflow-scrolling: touch;
}
.train-preview img {
  display: block;
  /* Grande hauteur fixe → la rame s'affiche en grand (pictos vélo,
     n° voitures lisibles) et déborde : on scrolle horizontalement.
     Pas de width:100% qui écraserait le dessin sur écran large. */
  height: clamp(150px, 26vh, 280px);
  width: auto;
  max-width: none;
  /* upscale en plus proche voisin → bords francs "pixel", sans flou */
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  /* léger habillage rétro mais on garde les pictos (vélo) bien visibles */
  filter: grayscale(1) contrast(1.12);
}
.train-preview figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ============================================================
   Option posée — bandeau de confirmation (pause auto)
   ============================================================ */
.option-posted-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--success-soft);
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin: 14px 0 18px;
  position: relative;
}
.option-posted-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent 0 14px,
    rgba(31, 157, 85, 0.12) 14px 16px
  );
  pointer-events: none;
}
.option-posted-banner .opb-stamp {
  font-size: 32px; line-height: 1;
  padding: 6px 10px;
  background: var(--success); color: #fff;
  border: 2px solid var(--border);
  transform: rotate(-6deg);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.option-posted-banner .opb-body { flex: 1; position: relative; }
.option-posted-banner h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--success);
}
.option-posted-banner p { margin: 0 0 8px; font-size: 13px; }
.option-posted-banner .opb-list {
  list-style: none; padding: 0; margin: 0;
  font-size: 12px;
}
.option-posted-banner .opb-list li {
  padding: 4px 0; border-top: 1.5px dashed rgba(27, 26, 42, 0.3);
}
.option-posted-banner .opb-list li:first-child { border-top: none; }

/* ============================================================
   Searching banner — petite locomotive qui roule (easter egg)
   ============================================================ */
.searching-banner {
  position: relative;
  background: linear-gradient(to bottom, #d6efff 0%, #d6efff 60%, #f4ead2 60%);
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
  padding: 0;
  margin: 14px 0 18px;
  overflow: hidden;
}
.searching-banner .searching-sky {
  position: relative;
  height: 38px;
  font-size: 22px;
}
.searching-banner .cloud {
  position: absolute; top: 4px;
  color: #fff;
  text-shadow: 1px 1px 0 var(--border);
  animation: durail-cloud 22s linear infinite;
}
.searching-banner .cloud-1 { left: -10%; animation-duration: 26s; }
.searching-banner .cloud-2 { left: -40%; animation-duration: 34s; top: 12px; font-size: 18px; }
.searching-banner .sun {
  position: absolute; top: 2px; right: 14px;
  font-size: 26px;
  animation: durail-sun-pulse 4s ease-in-out infinite;
}
@keyframes durail-cloud {
  0%   { transform: translateX(0); }
  100% { transform: translateX(140vw); }
}
@keyframes durail-sun-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.12) rotate(20deg); }
}

.searching-banner .searching-scene {
  position: relative;
  height: 68px;
  overflow: hidden;
}
.searching-banner .searching-track {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  height: 6px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--border) 0 14px,
      transparent 14px 22px
    ),
    linear-gradient(to bottom,
      transparent 0 2px,
      var(--border) 2px 3px,
      transparent 3px 4px,
      var(--border) 4px 5px,
      transparent 5px 6px);
}
.searching-banner .searching-loco {
  position: absolute;
  bottom: 14px;
  left: -120px;
  font-size: 32px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -4px;
  animation: durail-loco-run 7s linear infinite;
  filter: drop-shadow(2px 2px 0 var(--border));
}
.searching-banner .loco-art {
  display: inline-block;
  animation: durail-loco-bounce 0.35s ease-in-out infinite alternate;
}
.searching-banner .loco-art:nth-child(2) { animation-delay: 0.08s; }
.searching-banner .loco-art:nth-child(3) { animation-delay: 0.16s; }

.searching-banner .smoke {
  position: absolute;
  top: -6px;
  left: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--border);
  opacity: 0;
  animation: durail-smoke 1.4s ease-out infinite;
}
.searching-banner .smoke-2 { animation-delay: 0.45s; left: 4px; }
.searching-banner .smoke-3 { animation-delay: 0.9s;  left: 12px; }

.searching-banner .searching-signal {
  position: absolute;
  right: 16px; bottom: 14px;
  font-size: 22px;
  animation: durail-signal 1.6s steps(2, end) infinite;
  filter: drop-shadow(1.5px 1.5px 0 var(--border));
}

@keyframes durail-loco-run {
  0%   { left: -120px; }
  100% { left: 110%; }
}
@keyframes durail-loco-bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-2px); }
}
@keyframes durail-smoke {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.6); }
  20%  { opacity: 0.9; }
  100% { opacity: 0; transform: translate(-14px, -22px) scale(1.4); }
}
@keyframes durail-signal {
  0%, 49%   { filter: drop-shadow(1.5px 1.5px 0 var(--border)) hue-rotate(0deg); }
  50%, 100% { filter: drop-shadow(1.5px 1.5px 0 var(--border)) hue-rotate(120deg); }
}

.searching-banner .searching-text {
  background: var(--bg-card);
  border-top: 2px solid var(--border);
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--font-mono);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.searching-banner .blink {
  color: var(--primary);
  animation: durail-blink 1s steps(2, end) infinite;
}
@keyframes durail-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0.15; }
}

@media (prefers-reduced-motion: reduce) {
  .searching-banner .searching-loco,
  .searching-banner .loco-art,
  .searching-banner .cloud,
  .searching-banner .smoke,
  .searching-banner .sun,
  .searching-banner .searching-signal,
  .searching-banner .blink { animation: none; }
  .searching-banner .searching-loco { left: 18px; }
  .searching-banner .smoke { display: none; }
}
