/* ==========================================================================
   Organiser dashboard (/dashboard)
   ========================================================================== */

/* ---- Login ---------------------------------------------------------------- */

.login {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 24px;
}
.login__card {
  display: grid;
  justify-items: start;
  gap: 14px;
  width: min(100%, 400px);
  padding: 32px 28px;
  border-radius: 24px;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(47, 107, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #0d1d58, #060f30);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 120px -30px rgba(47, 107, 255, 0.55);
}
.login__card .field { width: 100%; }
.login__mark { --u: 3.5px; margin-bottom: 6px; filter: drop-shadow(0 0 16px rgba(47, 107, 255, 0.6)); }
.login__title { font-size: 2rem; letter-spacing: -0.04em; }

/* ---- Shell ---------------------------------------------------------------- */

.dash { position: relative; z-index: 1; }
.dash-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px 18px;
  flex-wrap: wrap;
  padding: 14px clamp(16px, 3vw, 32px);
  background: rgba(2, 7, 22, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.dash-top__title {
  font-family: var(--font-pixel);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--q-blue-300);
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
}
.dash-select { margin-left: auto; }
.dash-select select {
  height: 38px;
  padding: 0 34px 0 12px;
  font: 500 0.875rem var(--font-sans);
  color: var(--text);
  background: rgba(20, 42, 118, 0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' shape-rendering='crispEdges'%3E%3Cpath fill='%238db4ff' d='M0 0h2v2H0zM2 2h2v2H2zM4 4h2v2H4zM6 2h2v2H6zM8 0h2v2H8z'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  appearance: none;
}
.dash-select select[hidden] { display: none; }
.dash-select:has(select[hidden]) + .dash-live { margin-left: auto; }
.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--q-blue-200);
}
.dash-live.is-off { color: var(--text-dim); }
.dash-live.is-off .live-dot { background: var(--text-dim); box-shadow: none; }
.dash-live.is-off .live-dot::after { display: none; }

.dash-main {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(18px, 3vw, 32px) clamp(16px, 3vw, 32px) 60px;
}

/* ---- Quest header ----------------------------------------------------------- */

.dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0 6px;
}
.dash-hero__info { display: grid; gap: 10px; }
.dash-hero__title { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); letter-spacing: -0.045em; }
.dash-code {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.dash-code b {
  --n: 2px;
  padding: 7px 10px 6px;
  font-family: var(--font-pixel);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--q-white);
  background: var(--q-navy-900);
  box-shadow: inset 0 0 0 2px var(--q-blue-400);
}
.dash-code__copy {
  font: 600 0.8125rem var(--font-sans);
  color: var(--q-blue-300);
  background: none;
  border: 0;
  cursor: pointer;
}
.dash-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}
.status-badge::before { content: ""; width: 7px; height: 7px; background: var(--text-dim); }
.status-badge--lobby::before { background: var(--q-blue-300); animation: blink 1.4s steps(1) infinite; }
.status-badge--live { color: var(--q-white); background: rgba(47, 107, 255, 0.25); border-color: var(--q-blue-400); }
.status-badge--live::before { background: var(--q-white); box-shadow: 0 0 8px #fff; animation: blink 1s steps(1) infinite; }

/* ---- KPIs ------------------------------------------------------------------ */

.kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.kpi {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 42, 118, 0.4), rgba(8, 20, 58, 0.45));
  border: 1px solid var(--line);
}
.kpi__label {
  font-family: var(--font-pixel);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.kpi__value {
  display: inline-block;
  justify-self: start;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  transform-origin: left center;
}
.kpi__sub { font-size: 0.75rem; color: var(--text-muted); }
.kpi--accent { border-color: rgba(92, 143, 255, 0.45); background: linear-gradient(180deg, rgba(47, 107, 255, 0.28), rgba(8, 20, 58, 0.45)); }

/* ---- Grid & cards ------------------------------------------------------------ */

.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.dash-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 42, 118, 0.32), rgba(8, 20, 58, 0.4));
  border: 1px solid var(--line);
}
.dash-card--score { grid-column: span 7; }
.dash-card--map { grid-column: span 5; }
.dash-card--review { grid-column: span 7; }
.dash-card--feed { grid-column: span 5; }
.dash-card--stops { grid-column: span 12; }
.dash-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
}
.dash-card__head h2 { font-size: 1.125rem; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; }
.dash-card__hint { font-size: 0.8125rem; color: var(--text-dim); }
.count:not(:empty) {
  --n: 2px;
  padding: 4px 7px;
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  font-weight: 400;
  color: var(--q-white);
  background: var(--q-blue-500);
}
.dash-empty { padding: 18px 4px 8px; font-size: 0.875rem; color: var(--text-dim); }
.dash-empty[hidden] { display: none; }

/* ---- Scoreboard ------------------------------------------------------------ */

.table-wrap { overflow-x: auto; margin: 0 -6px; }
.score-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 0.875rem; }
.score-table th {
  padding: 0 10px 4px;
  font-family: var(--font-pixel);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text-dim);
  white-space: nowrap;
}
.score-table td {
  padding: 10px;
  background: rgba(4, 12, 38, 0.55);
  white-space: nowrap;
  transition: background-color 200ms;
}
.score-table td:first-child { border-radius: 12px 0 0 12px; }
.score-table td:last-child { border-radius: 0 12px 12px 0; color: var(--text-muted); }
.score-table tr { cursor: pointer; }
.score-table tbody tr:hover td { background: rgba(47, 107, 255, 0.16); }
.score-table tbody tr:focus-visible { outline: 2px solid var(--q-blue-300); outline-offset: 1px; }
.score-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rank-badge {
  --n: 2px;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-family: var(--font-pixel);
  font-size: 0.6875rem;
  color: var(--q-blue-200);
  background: rgba(47, 107, 255, 0.14);
  clip-path: polygon(0 var(--n), var(--n) var(--n), var(--n) 0, calc(100% - var(--n)) 0, calc(100% - var(--n)) var(--n), 100% var(--n), 100% calc(100% - var(--n)), calc(100% - var(--n)) calc(100% - var(--n)), calc(100% - var(--n)) 100%, var(--n) 100%, var(--n) calc(100% - var(--n)), 0 calc(100% - var(--n)));
}
.rank-badge--1 { color: var(--q-navy-900); background: var(--q-white); }
.rank-badge--2 { color: var(--q-white); background: var(--q-blue-400); }
.rank-badge--3 { color: var(--q-white); background: var(--q-blue-600); }
.team-cell { display: grid; gap: 2px; }
.team-cell b { font-size: 0.9375rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.team-cell > span { font-size: 0.75rem; color: var(--text-dim); }
.team-cell__online { color: var(--q-blue-300); }
.points { font-family: var(--font-pixel); font-weight: 400; font-size: 0.875rem; color: var(--q-white); }

.where { display: grid; gap: 6px; min-width: 120px; }
.where--waiting { grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; }
.where--waiting .where__label { color: var(--q-blue-200); }
.where__start { padding-inline: 16px; }
.where__label { font-size: 0.75rem; color: var(--text-muted); }
.route-cells { display: flex; gap: 3px; }
.route-cells i { width: 14px; height: 8px; background: rgba(141, 180, 255, 0.14); }
.route-cells .is-correct { background: var(--q-blue-400); }
.route-cells .is-incorrect { background: rgba(141, 180, 255, 0.34); background-image: linear-gradient(135deg, transparent 45%, rgba(2, 7, 22, 0.9) 45% 55%, transparent 55%); }
.route-cells .is-pending { background: repeating-linear-gradient(90deg, var(--q-blue-300) 0 2px, transparent 2px 4px); }
.route-cells .is-now { background: var(--q-white); box-shadow: 0 0 8px rgba(255, 255, 255, 0.7); animation: blink 1.2s steps(1) infinite; }

/* ---- Map ------------------------------------------------------------------ */

.map {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--q-navy-950);
  box-shadow: inset 0 0 0 1px var(--line);
}
.map--off { display: grid; place-items: center; font-size: 0.875rem; color: var(--text-dim); }
.map .leaflet-tile-pane { filter: invert(1) hue-rotate(200deg) brightness(0.85) saturate(0.55) contrast(0.9); }
.map .leaflet-container { background: var(--q-navy-950); font: inherit; }
.map .leaflet-control-attribution { background: rgba(2, 7, 22, 0.7); color: var(--text-dim); font-size: 10px; }
.map .leaflet-control-attribution a { color: var(--q-blue-300); }
.map .leaflet-bar a { background: var(--q-navy-850); color: var(--text); border-color: var(--line); }
.map .leaflet-tooltip { background: var(--q-navy-850); color: var(--text); border: 1px solid var(--line-strong); box-shadow: none; font-size: 12px; }
.map .leaflet-tooltip-top::before { border-top-color: var(--q-navy-850); }

.map-team { position: relative; }
.map-team__pin {
  position: absolute;
  left: -9px;
  top: -9px;
  width: 18px;
  height: 18px;
  background: var(--q-blue-500);
  box-shadow: inset 0 0 0 3px var(--q-white), 0 0 16px rgba(92, 143, 255, 0.9);
}
.map-team__pin::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid var(--q-blue-300);
  animation: live-ring 2s var(--ease-out) infinite;
}
.map-team__label {
  position: absolute;
  left: 14px;
  top: -12px;
  padding: 3px 7px;
  font: 600 11px var(--font-sans);
  white-space: nowrap;
  color: var(--q-navy-900);
  background: var(--q-white);
}
.map-team.is-stale .map-team__pin { background: var(--text-dim); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.6); }
.map-team.is-stale .map-team__pin::after { display: none; }
.map-team.is-stale .map-team__label { background: rgba(220, 232, 255, 0.6); }
.map-team.is-finished .map-team__pin { background: var(--q-white); }
.map-stop span {
  position: absolute;
  left: -11px;
  top: -11px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--q-white);
  background: var(--q-navy-800);
  box-shadow: inset 0 0 0 2px var(--q-blue-300);
}

/* Route editor (route-editor.js): the map card goes full width while drawing. */
.dash-card--map.is-editing { grid-column: span 12; }
.dash-card--map.is-editing .map { height: 560px; cursor: crosshair; }
.route-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(47, 107, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(92, 143, 255, 0.4);
}
.route-bar[hidden] { display: none; }
.route-bar__pick { display: inline-flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--text-muted); }
.route-bar__pick select {
  padding: 7px 10px;
  font: 500 0.875rem var(--font-sans);
  color: var(--text);
  background: var(--q-navy-850);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.route-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.route-bar__actions .btn:disabled { opacity: 0.45; cursor: default; }
.route-bar__tip { flex-basis: 100%; font-size: 0.8125rem; color: var(--text-dim); }
.route-pt { position: relative; }
.route-pt::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  background: var(--q-white);
  box-shadow: 0 0 0 2px var(--q-blue-500);
  cursor: grab;
}
.route-pt--start::before { background: var(--q-blue-300); }
.route-pt--end::before { display: none; }
.route-pt--end span {
  position: absolute;
  left: -13px;
  top: -13px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--q-navy-900);
  background: var(--q-white);
  box-shadow: 0 0 0 2px var(--q-blue-500), 0 0 14px rgba(185, 209, 255, 0.8);
  cursor: grab;
}

/* ---- Review -------------------------------------------------------------- */

.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.review-list:empty { display: none; }
.review-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(4, 12, 38, 0.6);
  border: 1px solid var(--line-strong);
  transition: opacity 200ms;
}
.review-card.is-deciding { opacity: 0.5; pointer-events: none; }
.review-card__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 0.8125rem; }
.review-card__head span { color: var(--text-muted); }
.review-card__head time { margin-left: auto; color: var(--text-dim); font-size: 0.75rem; }
.review-card__prompt { font-size: 0.8125rem; color: var(--text-dim); }
.review-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.answer-view { display: grid; gap: 6px; }
.answer-view__quote {
  padding: 10px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-left: 3px solid var(--q-blue-400);
  background: rgba(47, 107, 255, 0.1);
  overflow-wrap: anywhere;
}
.answer-view__note { font-size: 0.75rem; color: var(--text-dim); }
.answer-view__zoom { padding: 0; border: 0; background: none; cursor: zoom-in; }
.answer-view__media {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
}
video.answer-view__media { object-fit: contain; }

/* ---- Feed ---------------------------------------------------------------- */

.feed {
  display: grid;
  max-height: 420px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}
.feed:empty { display: none; }
.feed__item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  padding: 9px 6px;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--line);
}
.feed__item time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }
.feed__item--finish span,
.feed__item--status span { color: var(--q-white); font-weight: 600; }
.feed__item--join span { color: var(--q-blue-200); }

/* ---- Per stop -------------------------------------------------------------- */

.stop-stats { display: grid; gap: 8px; }
.stop-stat {
  display: grid;
  grid-template-columns: 34px minmax(0, 1.4fr) minmax(120px, 1fr) 90px;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(4, 12, 38, 0.5);
}
.stop-stat__no {
  --n: 2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-family: var(--font-pixel);
  font-size: 0.6875rem;
  color: var(--q-white);
  background: var(--q-blue-500);
}
.stop-stat__info { display: grid; gap: 2px; min-width: 0; }
.stop-stat__info b { font-size: 0.9375rem; }
.stop-stat__info span { font-size: 0.75rem; color: var(--q-blue-300); }
.stop-stat__info p { font-size: 0.8125rem; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop-stat__bar { display: flex; gap: 2px; height: 10px; background: rgba(141, 180, 255, 0.1); }
.stop-stat__bar i { flex-basis: 0; }
.stop-stat__bar .is-correct { background: var(--q-blue-400); }
.stop-stat__bar .is-incorrect { background: rgba(141, 180, 255, 0.34); }
.stop-stat__bar .is-pending { background: repeating-linear-gradient(90deg, var(--q-blue-300) 0 2px, transparent 2px 4px); }
.stop-stat__bar .is-open { background: transparent; }
.stop-stat__nums { display: grid; justify-items: end; gap: 2px; }
.stop-stat__nums b { font-family: var(--font-pixel); font-weight: 400; font-size: 0.875rem; }
.stop-stat__nums span { font-size: 0.75rem; color: var(--text-dim); }

/* ---- Drawer ------------------------------------------------------------------ */

.drawer {
  width: min(560px, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  color: var(--text);
  background: linear-gradient(180deg, #0b1a50, #050d2b);
  border: 0;
  border-left: 1px solid var(--line-strong);
  box-shadow: -40px 0 120px -20px rgba(2, 7, 22, 0.9);
}
.drawer::backdrop { background: rgba(2, 7, 22, 0.6); backdrop-filter: blur(4px); }
.drawer__inner { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.drawer__title { font-size: 1.75rem; letter-spacing: -0.035em; margin-top: 6px; }
.drawer__body { overflow-y: auto; padding: 8px 24px 32px; }
.drawer__section { display: grid; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.drawer__section:last-child { border-bottom: 0; }
.drawer__section h3 {
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.drawer__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.drawer__facts div { display: grid; gap: 4px; }
.drawer__facts span { font-size: 0.75rem; color: var(--text-dim); }
.drawer__facts b { font-size: 0.875rem; font-weight: 600; }
.drawer__delete { justify-self: start; }

.drawer-answer {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(4, 12, 38, 0.55);
  border: 1px solid var(--line);
}
.drawer-answer.is-correct { border-color: rgba(92, 143, 255, 0.55); }
.drawer-answer.is-pending { border-style: dashed; border-color: var(--line-strong); }
.drawer-answer.is-empty { opacity: 0.55; }
.drawer-answer__head { display: flex; gap: 12px; align-items: flex-start; }
.drawer-answer__head > div { display: grid; gap: 2px; min-width: 0; }
.drawer-answer__head b { font-size: 0.9375rem; }
.drawer-answer__head span:not(.drawer-answer__no) { font-size: 0.75rem; color: var(--text-dim); }
.drawer-answer__no {
  --n: 2px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  color: var(--q-blue-200);
  background: rgba(47, 107, 255, 0.18);
}
.drawer-answer__none { font-size: 0.8125rem; color: var(--text-dim); }
.drawer-answer__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.75rem; color: var(--text-dim); }
.verdicts { display: flex; align-items: center; gap: 6px; }
.verdict {
  padding: 6px 12px;
  font: 600 0.75rem var(--font-sans);
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
}
.verdict:hover { color: var(--q-white); border-color: var(--q-blue-400); }
.verdict.is-active[data-status="correct"] { color: var(--q-white); background: var(--q-blue-500); border-color: var(--q-blue-500); }
.verdict.is-active[data-status="incorrect"] { color: var(--q-white); background: rgba(141, 180, 255, 0.25); }
.verdict-pending { font-family: var(--font-pixel); font-size: 0.5625rem; text-transform: uppercase; color: var(--q-blue-300); }

/* ---- Photo viewer ------------------------------------------------------------ */

.viewer {
  max-width: 92vw;
  max-height: 92dvh;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-out;
}
.viewer::backdrop { background: rgba(2, 7, 22, 0.9); }
.viewer img { max-width: 92vw; max-height: 92dvh; border-radius: 12px; }

/* ---- Responsive ------------------------------------------------------------ */

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-card--score,
  .dash-card--map,
  .dash-card--review,
  .dash-card--feed { grid-column: span 12; }
}

@media (max-width: 640px) {
  .dash-top__title { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi--accent { grid-column: span 2; }
  .map { height: 300px; }
  .stop-stat { grid-template-columns: 30px minmax(0, 1fr) 70px; }
  .stop-stat__bar { grid-column: 2 / -1; grid-row: 2; }
  .drawer__facts { grid-template-columns: 1fr 1fr; }
}

.drawer__actions { display: flex; flex-wrap: wrap; gap: 10px; }
