/* The public Simulácia poplachu (public/test_alarm*.html): the form with the
 * SMS code under the phone field, the simulation screen (a replica of the
 * bento commander's console, .sim-*) and the demo confirm page, on top of the
 * new web's css/web.css (its colour tokens, .rce/.wrap/.nav/.btn). Mobile
 * first; light and dark come from the tokens. */

.rce .ta-main { max-width: 680px; padding-top: 28px; padding-bottom: 40px; }
.rce .ta-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.rce .ta-back:hover { color: var(--red-text); }

.ta-hero { margin-bottom: 22px; }
.ta-hero h1 { font-size: clamp(30px, 7vw, 44px); line-height: 1.08; margin: 12px 0 10px; }
.ta-lead { color: var(--muted); font-size: 17px; }
.ta-badge {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 17px;
  background: var(--blush); color: var(--red-text); font-weight: 700; font-size: 14px;
}

.ta-card {
  background: var(--soft); border-radius: 24px; padding: 22px 18px; margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 18px;
}
@media (min-width: 640px) { .ta-card { padding: 28px; } }
.ta-note { background: var(--warn-bg); color: var(--warn-ink); }

.ta-field { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ta-field legend, .ta-field > label, .ta-label, .ta-code label { font-weight: 800; font-size: 17px; padding: 0; margin-bottom: 2px; }
.ta-opt { font-weight: 600; font-size: 14px; color: var(--muted); }
.ta-hint { color: var(--muted); font-size: 15px; line-height: 1.45; }
.ta-hint .ic { width: 16px; height: 16px; vertical-align: -3px; }
.ta-hint a { color: var(--red-text); font-weight: 700; }
.ta-center { text-align: center; }

.rce .ta-form input[type=text], .rce .ta-form input[type=tel], .rce .ta-form select, .rce .ta-code input {
  width: 100%; height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg);
  color: var(--ink); font: 600 17px var(--f); padding: 0 14px; outline: none;
}
.rce .ta-form input:focus, .rce .ta-form select:focus, .rce .ta-code input:focus { border-color: var(--red-text); }

.ta-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .ta-kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ta-kind {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px;
  border-radius: 16px; background: var(--bg); border: 2px solid var(--line); cursor: pointer; min-height: 88px;
}
.ta-kind input { position: absolute; opacity: 0; pointer-events: none; }
.ta-kind:has(input:checked) { border-color: var(--kc, var(--red)); box-shadow: 0 0 0 1px var(--kc, var(--red)); }
.ta-kind:has(input:focus-visible) { outline: 3px solid var(--red-text); outline-offset: 2px; }
.ta-kind-ic { font-size: 26px; line-height: 1; }
.ta-kind-name { font-weight: 700; font-size: 15px; line-height: 1.25; }

.ta-suggest { position: relative; }
.ta-suggest-list {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--pop); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--pop-shadow);
  max-height: 280px; overflow-y: auto;
}
.ta-suggest-list li { padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 16px; }
.ta-suggest-list li:hover, .ta-suggest-list li[aria-selected="true"] { background: var(--soft); }

/* the phone with its code: the button beside the field appears once the
   number is one we may call; the six boxes open under it; a verified
   number is locked with a green check inside the field */
.ta-phone-row { display: flex; gap: 8px; align-items: stretch; }
.ta-phone-box { position: relative; flex: 1 1 auto; min-width: 0; }
.ta-phone-ok { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: none; color: var(--ok-dot); }
.ta-phone-ok .ic { width: 22px; height: 22px; }
#ta-phone-field.is-verified .ta-phone-ok { display: inline-flex; }
.rce #ta-phone-field.is-verified input[type=tel] { border-color: var(--ok-dot); padding-right: 44px; background: var(--ok-bg); color: var(--ok-ink); }
.rce .ta-send { height: 52px; border-radius: 14px; padding: 0 16px; flex: none; }
.rce .ta-send[hidden] { display: none; }
.rce .ta-send[disabled] { opacity: .6; cursor: progress; }
.rce .ta-btn-red { background: var(--red); color: #FFFFFF; }
.rce .ta-btn-red:hover { background: var(--red-hover); }
@media (max-width: 440px) {
  .ta-phone-row { flex-wrap: wrap; }
  .rce .ta-send { width: 100%; }
}
.ta-otp { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--bg); border: 1.5px solid var(--line); }
.ta-otp[hidden] { display: none; }
.ta-otp-text { font-size: 15px; color: var(--muted); }
.ta-otp-text b { color: var(--ink); }
.ta-otp-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 360px; }
.rce .ta-form .ta-otp-boxes input {
  height: 56px; padding: 0; text-align: center; font-size: 26px; font-weight: 800; border-radius: 12px;
  font-variant-numeric: tabular-nums; caret-color: var(--red-text);
}
.rce .ta-form .ta-otp-boxes input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent); }
.ta-otp.is-error .ta-otp-boxes input { border-color: var(--down-dot); animation: ta-shake .3s; }
.ta-otp.is-checking .ta-otp-boxes input { opacity: .6; }
@keyframes ta-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .ta-otp.is-error .ta-otp-boxes input { animation: none; } }
.ta-otp-err { color: var(--down-ink); font-weight: 700; font-size: 14px; }
.ta-otp-err[hidden] { display: none; }
.ta-otp-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.rce .ta-link { border: 0; background: none; padding: 0; color: var(--red-text); font: 700 14px var(--f); cursor: pointer; }
.rce .ta-link[disabled] { color: var(--muted); cursor: default; }
.ta-verified { display: inline-flex; align-items: center; gap: 8px; color: var(--ok-ink); font-weight: 700; font-size: 15px; }
.ta-verified[hidden] { display: none; }
.ta-verified .ic { width: 18px; height: 18px; }

/* the recording folds away: most visitors do not need it */
.ta-more > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.ta-more > summary::-webkit-details-marker { display: none; }
.ta-more > summary .ic { color: var(--muted); transition: transform .15s; }
.ta-more[open] > summary .ic { transform: rotate(180deg); }
.ta-rec { display: flex; flex-direction: column; gap: 10px; }
.ta-rec-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ta-rec-row[hidden], .ta-rec-note[hidden] { display: none; }
.ta-rec-row audio { width: 100%; max-width: 360px; height: 44px; }
.ta-rec.is-recording [data-rec-btn] { background: var(--red); color: #FFFFFF; }
.ta-time { font-variant-numeric: tabular-nums; }
.ta-lang-field select { max-width: 360px; }

.rce .ta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px;
  border-radius: 23px; border: 0; cursor: pointer; font: 700 16px var(--f); white-space: nowrap;
}
.rce .ta-btn-soft { background: var(--bg); color: var(--ink); border: 1.5px solid var(--line); }
.rce .ta-btn-soft:hover { color: var(--red-text); }

.ta-summary {
  border-radius: 16px; padding: 14px 16px; background: var(--blush); color: var(--ink);
  font-weight: 700; font-size: 16px; line-height: 1.45;
}
.ta-summary[hidden] { display: none; }
.ta-captcha { display: flex; justify-content: center; min-height: 0; }
.ta-captcha:empty { display: none; }
.rce .ta-submit { width: 100%; height: 56px; font-size: 18px; }
.rce .ta-submit[disabled] { opacity: .5; cursor: not-allowed; }
.rce .ta-submit.is-busy { cursor: progress; }

.ta-error { border-radius: 14px; padding: 12px 14px; background: var(--down-bg); color: var(--down-ink); font-weight: 700; font-size: 15px; }
.ta-error[hidden] { display: none; }

.ta-steps { display: grid; gap: 10px; margin-top: 8px; }
@media (min-width: 640px) { .ta-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ta-step { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; border: 1px solid var(--line); }
.ta-step span {
  flex: none; width: 30px; height: 30px; border-radius: 15px; background: var(--navy); color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.ta-step p { font-size: 15px; color: var(--muted); }

.ta-alarm { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: var(--bg); border-left: 6px solid var(--kc, var(--red)); }
.ta-alarm .ta-kind-ic { font-size: 34px; }
.ta-alarm-type { font-weight: 800; font-size: 20px; }
.ta-alarm-where { color: var(--muted); font-size: 16px; }

.ta-result { font-weight: 800; font-size: 18px; }
.ta-result:empty { display: none; }
.ta-result-yes { color: var(--ok-ink); }
.ta-result-no { color: var(--red-text); }

.ta-answer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rce .ta-yes, .rce .ta-no {
  height: 64px; border: 0; border-radius: 18px; font: 800 20px var(--f); color: #FFFFFF; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.rce .ta-yes { background: #15803D; }
.rce .ta-no { background: var(--red); }
.rce .ta-yes:hover { background: #166534; }
.rce .ta-no:hover { background: var(--red-hover); }

.ta-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.rce .ta-foot { padding-top: 8px; padding-bottom: 32px; max-width: 680px; }
.ta-foot p { color: var(--muted); font-size: 14px; }
.ta-foot a { color: var(--red-text); font-weight: 700; }

/* ---- the simulation: the bento console redrawn on the web's tokens ------- */

.rce.ta-simpage .ta-main { max-width: 760px; padding-top: 16px; }
@media (min-width: 1100px) { .rce.ta-simpage .ta-main { max-width: 1180px; } }
.ta-sim {
  --sim-ground: var(--soft); --sim-tile: var(--bg); --sim-tile-2: var(--soft); --sim-line: var(--line);
  --sim-info-bg: #E0EAFF; --sim-info-ink: #2D4FB3; --sim-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --sim-r: 24px; --sim-r2: 14px;
  display: flex; flex-direction: column; gap: 10px; padding: 12px; margin: 0 -8px; border-radius: 28px; background: var(--sim-ground);
}
@media (prefers-color-scheme: dark) {
  html:not([data-web-theme="light"]) .ta-sim {
    --sim-ground: #0B0F14; --sim-tile: #151B23; --sim-tile-2: #1C242E; --sim-line: #263040;
    --sim-info-bg: #172447; --sim-info-ink: #A4BCFD; --sim-shadow: 0 0 0 1px #1F2834;
  }
}
html[data-web-theme="dark"] .ta-sim {
  --sim-ground: #0B0F14; --sim-tile: #151B23; --sim-tile-2: #1C242E; --sim-line: #263040;
  --sim-info-bg: #172447; --sim-info-ink: #A4BCFD; --sim-shadow: 0 0 0 1px #1F2834;
}
@media (min-width: 640px) { .ta-sim { padding: 16px; margin: 0; } }
/* a computer: the header and the map on the left, people on the right - the
   two-column console of the app */
.sim-cols, .sim-left, .sim-right { display: contents; }
/* the two columns live in .sim-cols, so the sticky left one is held inside
   it and never slides over the after-section or the fine print below
   (2026-11-10: it covered the report buttons on a 1440 px screen) */
@media (min-width: 1100px) {
  .ta-sim { gap: 12px; }
  .sim-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px 16px; align-items: start; }
  .sim-left { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 84px; min-width: 0; }
  .sim-right { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .sim-map { height: max(360px, calc(100vh - 470px)) !important; }
}

.sim-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px; }
.sim-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 420px) { .sim-eyebrow { font-size: 11px; letter-spacing: .03em; gap: 6px; } .sim-clock { font-size: 14px; gap: 6px; } }
.sim-eyebrow .ic { width: 16px; height: 16px; }
.sim-tag { padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); letter-spacing: 0; text-transform: none; font-size: 12px; }
.sim-clock { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-variant-numeric: tabular-nums; }
.sim-clock b { font-weight: 800; }
.sim-live { width: 9px; height: 9px; border-radius: 50%; background: var(--red); position: relative; }
.sim-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; animation: rce-pulse 1.8s ease-out infinite; }
.sim-speed { padding: 2px 8px; border-radius: 999px; background: var(--sim-tile); color: var(--muted); font-size: 12px; font-weight: 800; box-shadow: var(--sim-shadow); }
.sim-speed[hidden] { display: none; }
.ta-sim.is-over .sim-live, .ta-sim.is-over .sim-live::after { animation: none; background: var(--muted); border-color: var(--muted); }

.sim-tile { background: var(--sim-tile); border-radius: var(--sim-r); box-shadow: var(--sim-shadow); }
.sim-head { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: var(--sim-r); }
.sim-title { font-size: 20px; font-weight: 800; line-height: 1.2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sim-count { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .24); }
.sim-sub { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.sim-sub .ic { width: 15px; height: 15px; }
.sim-sub--soft { opacity: .85; font-weight: 500; }
.sim-meta { font-size: 12px; opacity: .85; }
.sim-ended { align-self: flex-start; margin-top: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12px; font-weight: 700; }
.sim-ended[hidden] { display: none; }
.sim-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: var(--sim-r2); background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; font-weight: 600; }
.sim-note .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; }

.sim-maptile { position: relative; overflow: hidden; padding: 0; }
.sim-map { height: clamp(240px, 46vh, 420px); background: var(--sim-tile-2); }
.sim-chip { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 6px 10px; border-radius: 12px; background: var(--sim-tile); color: var(--ink); font-size: 12px; font-weight: 800; box-shadow: 0 12px 30px rgba(29, 41, 57, .18); }
.sim-chip[hidden] { display: none; }
.sim-mapbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
.rce .sim-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 14px;
  border: 1px solid var(--sim-line); background: var(--sim-tile); color: var(--ink); font: 700 14px var(--f); cursor: pointer;
}
.rce .sim-btn .ic { width: 16px; height: 16px; }
.rce .sim-btn--fire { background: #B42318; color: #FFFFFF; border-color: transparent; }
.rce .sim-btn[disabled] { opacity: .6; cursor: default; }

.sim-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--sim-tile-2); box-shadow: var(--sim-shadow); }
.rce .sim-seg button { height: 38px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: 600 14px var(--f); cursor: pointer; }
.rce .sim-seg button[aria-selected="true"] { background: var(--sim-tile); color: var(--ink); font-weight: 700; box-shadow: var(--sim-shadow); }
.sim-panel { display: flex; flex-direction: column; gap: 10px; }
.sim-panel[hidden] { display: none; }

.sim-list { display: flex; flex-direction: column; background: var(--sim-tile); border-radius: var(--sim-r); box-shadow: var(--sim-shadow); overflow: hidden; }
.sim-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; }
.sim-row + .sim-row { border-top: 1px solid var(--sim-line); }
.sim-row--counts { min-height: 0; padding-top: 10px; padding-bottom: 10px; gap: 6px; flex-wrap: wrap; }
.sim-row--you { background: color-mix(in srgb, var(--red) 7%, var(--sim-tile)); box-shadow: inset 4px 0 0 var(--red); }
.sim-row.is-new { animation: sim-flash 1.2s ease-out; }
@keyframes sim-flash { 0% { background: color-mix(in srgb, var(--ok-dot) 28%, var(--sim-tile)); } 100% { background: transparent; } }
.sim-row--you.is-new { animation: none; }
.sim-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex: none; }
.sim-row--you .sim-avatar { background: var(--red); }
.sim-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sim-row-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.sim-row-sub { font-size: 12px; color: var(--muted); }
.sim-qual { display: inline-block; height: 18px; line-height: 18px; font-size: 10px; padding: 0 6px; border-radius: 999px; background: var(--sim-info-bg); color: var(--sim-info-ink); font-weight: 700; vertical-align: middle; margin-left: 2px; }
.sim-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sim-pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--sim-tile-2); color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.sim-pill[hidden] { display: none; }
.sim-pill b { font-weight: 800; color: var(--ink); }
.sim-pill--ok { background: var(--ok-bg); color: var(--ok-ink); }
.sim-pill--ok b { color: inherit; }
.sim-pill--no { background: var(--down-bg); color: var(--down-ink); }
.sim-pill--no b { color: inherit; }
.sim-pill--warn { background: var(--warn-bg); color: var(--warn-ink); }
.sim-pill--info { background: var(--sim-info-bg); color: var(--sim-info-ink); }
.sim-pill--pulse { animation: sim-pulse 1.2s ease-in-out infinite; }
@keyframes sim-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .sim-pill--pulse, .sim-row.is-new, .sim-live::after { animation: none; } }
.sim-resp { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--sim-tile-2); color: var(--muted); flex: none; }
.sim-resp--ok { background: var(--ok-bg); color: var(--ok-ink); }
.sim-resp--no { background: var(--down-bg); color: var(--down-ink); }
.sim-resp--warn { background: var(--warn-bg); color: var(--warn-ink); }
.sim-ic { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--sim-tile-2); color: var(--muted); font-size: 10px; font-weight: 800; }
.sim-ic .ic { width: 18px; height: 18px; }
.sim-ic--water { background: #E0F2FE; color: #0369A1; }
.sim-ic--aed { background: #15803D; color: #FFFFFF; }
.sim-kbd { font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 700; color: var(--muted); flex: none; }
.sim-empty { padding: 16px; font-size: 14px; color: var(--muted); text-align: center; }
.sim-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: var(--sim-r2); background: var(--warn-bg); color: var(--warn-ink); font-size: 13px; font-weight: 700; }
.sim-warn[hidden] { display: none; }
.sim-warn .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; }

.sim-section { display: flex; align-items: center; padding: 6px 4px 0; }
.sim-section h2 { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.sim-section h2 .ic { width: 18px; height: 18px; color: var(--red-text); }
.sim-stack { display: flex; flex-direction: column; gap: 8px; }
.sim-vehicle { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--sim-tile); border-radius: var(--sim-r); box-shadow: var(--sim-shadow); }
.sim-vehicle-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sim-vehicle-head b { font-size: 15px; font-weight: 700; }
.sim-vehicle-head small { font-size: 12px; color: var(--muted); }
.sim-crew { display: flex; flex-wrap: wrap; gap: 6px; }
.sim-seat { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border-radius: 999px; background: var(--sim-tile-2); color: var(--muted); font-size: 12px; font-weight: 700; border: 1.5px dashed var(--sim-line); }
.sim-seat.is-in { border-style: solid; border-color: transparent; color: var(--ink); background: var(--ok-bg); }
.sim-seat .sim-avatar { width: 20px; height: 20px; font-size: 8px; }
.sim-vehicle-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.sim-vehicle-times span { display: flex; flex-direction: column; }
.sim-vehicle-times b { font-size: 13px; font-variant-numeric: tabular-nums; }
.sim-vehicle-times small { font-size: 11px; color: var(--muted); }

.sim-chipgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sim-chipbtn { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; border-radius: 16px; background: var(--sim-tile); box-shadow: var(--sim-shadow); font-size: 13px; font-weight: 700; }
.sim-chipbtn .ic { width: 18px; height: 18px; color: var(--red-text); flex: none; }

.sim-feed { list-style: none; margin: 0; padding: 12px 14px; background: var(--sim-tile); border-radius: var(--sim-r); box-shadow: var(--sim-shadow); display: flex; flex-direction: column; gap: 0; max-height: 320px; overflow-y: auto; }
.sim-feed:empty { display: none; }
.sim-feed li { display: grid; grid-template-columns: 52px 14px 1fr; gap: 8px; align-items: start; min-height: 32px; font-size: 14px; }
.sim-feed li .sim-kbd { color: var(--ink); font-size: 13px; }
.sim-feed li .sim-dot { display: flex; flex-direction: column; align-items: center; height: 100%; }
.sim-feed li .sim-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); margin-top: 4px; }
.sim-feed li:not(:last-child) .sim-dot::after { content: ""; flex: 1; width: 2px; background: var(--sim-line); margin-top: 2px; }
.sim-feed li.is-you .sim-dot::before { background: var(--ok-dot); }
.sim-feed li > span:last-child { padding-bottom: 8px; }
.sim-feed li .sim-who { color: var(--muted); }

.sim-after { display: flex; flex-direction: column; gap: 12px; padding: 20px 16px; border-radius: var(--sim-r); background: var(--sim-tile); box-shadow: var(--sim-shadow); align-items: flex-start; }
.sim-after[hidden] { display: none; }
.sim-after h2 { font-size: 24px; line-height: 1.1; }
/* .rce prefix: web.css's `.rce a { color: inherit }` outweighs a lone class */
.rce .sim-big { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 20px; background: var(--navy); color: #FFFFFF; }
.rce .sim-big:hover { filter: brightness(1.08); }
.rce .sim-big--ai { background: var(--red); }
.sim-big-n { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; flex: none; }
.sim-big-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sim-big-text b { font-size: 17px; line-height: 1.2; }
.sim-big-text span { font-size: 13px; opacity: .85; line-height: 1.3; }
.sim-big > .ic { color: rgba(255, 255, 255, .7); }
.sim-fine { font-size: 13px; padding: 0 4px; }

/* map markers, as the app draws them (theme.css .rc-map-*) */
.sim-m-incident { font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); }
.sim-m-station { width: 30px; height: 30px; border-radius: 8px; background: #1D2939; color: #FFF; display: grid; place-items: center; font-size: 9px; font-weight: 800; border: 2px solid #FFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.sim-m-member { display: grid; place-items: center; width: 30px; height: 30px; font-size: 11px; font-weight: 800; line-height: 1; color: #FFF; border-radius: 999px; background: #374151; border: 2px solid #FFF; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); transition: opacity .3s; }
.sim-m-member.is-commander { background: #D32F2F; }
.sim-m-member.is-you { outline: 2px solid #2563EB; outline-offset: 1px; background: #B42318; }
.sim-m-vehicle { display: grid; place-items: center; height: 26px; padding: 0 8px; border-radius: 8px; background: #B42318; color: #FFF; font-size: 11px; font-weight: 800; border: 2px solid #FFF; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); white-space: nowrap; }
.sim-m-water { display: grid; place-items: center; width: 26px; height: 26px; font-size: 15px; line-height: 1; border-radius: 999px; background: #FFF; border: 2px solid #2563EB; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.sim-m-water.is-broken { border-color: #DC2626; opacity: .75; }
.sim-m-aed { display: grid; place-items: center; width: 30px; height: 30px; font-size: 9px; font-weight: 800; color: #FFF; border-radius: 8px; background: #15803D; border: 2px solid #FFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.sim-map .maplibregl-ctrl-attrib { font-size: 10px; }

/* the visitor's own speed-up switch (2026-11-10) instead of the automatic badge */
.sim-fast { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px;
  border: 1.5px solid var(--line, rgba(127,127,127,.35)); background: var(--sim-tile); color: var(--muted);
  font: inherit; font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; box-shadow: var(--sim-shadow); }
.sim-fast .ic { width: 14px; height: 14px; }
.sim-fast.is-on { background: var(--red, #B3261E); border-color: transparent; color: #fff; }
/* a phone: the eyebrow's icon goes and the switch gets tighter, so the row
   with the clock and Zrýchliť fits 390 px without a sideways scroll */
@media (max-width: 420px) {
  .sim-top { gap: 6px; padding: 2px 0; }
  .sim-eyebrow > .ic { display: none; }
  .sim-fast { padding: 4px 8px; gap: 4px; }
}

/* the pokročilý report under the map (2026-11-10): locked with a countdown
   on the simulation's clock, open once the alarm has ended */
.rce .sim-report { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px;
  background: var(--sim-tile); color: var(--ink); box-shadow: var(--sim-shadow); border: 1.5px dashed var(--sim-line); }
.sim-report-ic { width: 36px; height: 36px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--sim-tile-2); color: var(--muted); }
.sim-report-ic .ic { width: 18px; height: 18px; }
.sim-report-ic [hidden] { display: none; }
.sim-report-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sim-report-text b { font-size: 15px; line-height: 1.25; }
.sim-report-text > span { font-size: 13px; color: var(--muted); line-height: 1.3; }
.sim-report-eta { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.rce .sim-report > .ic { color: var(--muted); flex: none; }
.rce .sim-report.is-locked { cursor: not-allowed; }
.rce .sim-report.is-nudge { animation: ta-shake .3s; }
@media (prefers-reduced-motion: reduce) { .rce .sim-report.is-nudge { animation: none; } }
.rce .sim-report.is-open { background: var(--red); color: #FFFFFF; border: 1.5px solid transparent; cursor: pointer; }
.rce .sim-report.is-open .sim-report-ic { background: rgba(255, 255, 255, .18); color: #FFFFFF; }
.rce .sim-report.is-open .sim-report-text > span, .rce .sim-report.is-open > .ic { color: rgba(255, 255, 255, .85); }
.rce .sim-report.is-open:hover { filter: brightness(1.08); }
