/* Farby berie plánovač zo značky (brand/tokens.css). Vlastné odtiene už nemá. */
:root {
  color-scheme: light;
  /* Jeden vzhľad s appkou (27. 9. 2026): papier stránky ako pod jazdou, polia vnútri kariet biele. */
  --page: var(--bikeso-ocean-paper); --paper: var(--bikeso-surface); --white: var(--bikeso-surface);
  --ink: var(--bikeso-ink); --muted: var(--bikeso-ink-soft);
  --line: var(--bikeso-hair);
  --ocean: var(--bikeso-ocean); --ocean-dark: var(--bikeso-ocean-dark);
  --soft: var(--bikeso-ocean-tint); --target: var(--bikeso-target);
  --slate: #486080; --amber: var(--bikeso-amber);
  --amber-fill: var(--bikeso-amber-fill); --amber-soft: var(--bikeso-amber-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-synthesis: none;
  /* Písmo (26. 9. 2026): stupne kopírujú textové štýly iOS, ktoré má domovská obrazovka
     appky — body 17, subheadline 15, title3 20, title2 22, title1 28, largeTitle 34.
     Najmenšie písmo plánovača je subheadline; nič v ňom nesmie byť menšie (Petr:
     v okne appky sa text nedal prečítať ani s okuliarmi). Rozdiel k 1rem je v pixeloch
     zámerne: Dynamic Type zväčšuje malý text viac než nadpisy (body 17 → 23 pri xxxL,
     largeTitle 34 → 40), takže pevný prídavok sedí lepšie než násobok. */
  font-size: 17px;
  --zaklad: 1rem;
  --pismo-min: calc(var(--zaklad) - 2px);
  --pismo-text: var(--zaklad);
  --pismo-titul-3: calc(var(--zaklad) + 3px);
  --pismo-titul-2: calc(var(--zaklad) + 5px);
  --pismo-titul-1: calc(var(--zaklad) + 11px);
  --pismo-velky: calc(var(--zaklad) + 17px);
}
/* Prepínač „Aa“ (Petr 26. 9. 2026): jazdec so slabším zrakom si karty s textom zväčší
   priamo v plánovači, bez nastavenia telefónu. 1,35 = body 23 : 17, teda stupeň xxxL
   iOS. Fotka s vetou má pevné pixely a nerastie — zväčšuje sa text, nie obrázok. */
html.vacsi-text { --zaklad: 1.35rem; }
/* iPhone a iPad (Safari aj okno appky): 1rem je systémové „body“ podľa nastavenia
   Väčší text — to isté, čo .body na domovskej obrazovke appky. Na Macu by
   -apple-system-body dalo 13 px, preto len tam, kde WebKit pozná -webkit-touch-callout
   (iba iOS). Ostatné prehliadače ostávajú na 17 px. */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  :root { font: -apple-system-body; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); font-size: var(--pismo-text); line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button, input, select, summary, a { touch-action: manipulation; }
a { color: inherit; } h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.3em; height: 1.3em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon.small { width: 1em; height: 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid #51b0d3; outline-offset: 4px; }
.topbar { height: 112px; padding: 0 max(32px, calc((100vw - 1360px) / 2)); display: flex; align-items: center; gap: 35px; border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--ocean); text-decoration: none; font-size: var(--pismo-text); font-weight: 800; letter-spacing: .06em; line-height: 1; }
.brand-mark { display: block; width: auto; height: 58px; }
.engine-badge { font-size: var(--pismo-min); padding: 7px 12px; border: 1px solid #bbd3de; border-radius: 20px; color: #285667; font-weight: 600; }
.engine-badge::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #5da5c1; margin-right: 7px; vertical-align: 1px; }
.engine-badge.error { color: #904e44; }
.page { max-width: 1360px; padding: 35px 0; margin: auto; }
.eyebrow, .step-kicker { font-size: var(--pismo-min); letter-spacing: .1em; font-weight: 600; color: var(--ocean); margin-bottom: 10px; }
.app-shell { display: grid; grid-template-columns: 22em minmax(0, 1fr); gap: 26px; align-items: start; }
.planner-panel { background: var(--white); border: 1.5px solid var(--ocean); border-radius: 18px; padding: 25px 27px 19px; }
.planner-mode-switch { display: grid; grid-template-columns: repeat(auto-fit, minmax(9em, 1fr)); gap: 7px; margin-bottom: 27px; }
.planner-mode-switch button { min-height: 66px; padding: 10px 9px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); text-align: left; }
.planner-mode-switch strong, .planner-mode-switch span { display: block; overflow-wrap: anywhere; }
.planner-mode-switch strong { font-size: var(--pismo-text); line-height: 1.25; }
.planner-mode-switch span { color: var(--muted); font-size: var(--pismo-min); line-height: 1.35; margin-top: 4px; }
.planner-mode-switch button[aria-pressed="true"] { color: var(--ink); border: 2.5px solid var(--ocean); padding: 9px 8px; background: var(--soft); }
.steps { display: flex; align-items: center; gap: 7px; margin-bottom: 32px; container-type: inline-size; }
.steps button { display: flex; align-items: center; gap: 7px; background: transparent; border: 0; color: #566c75; padding: 3px 0; font-size: var(--pismo-min); min-height: 36px; border-radius: 5px; }
.steps button > span { display: grid; place-items: center; font-size: var(--pismo-min); width: 1.6em; height: 1.6em; border-radius: 50%; background: #eaf3f7; border: 1px solid #c5dde8; }
.steps button[aria-current="step"] { color: var(--ocean-dark); font-weight: 650; }
.steps button[aria-current="step"] > span { background: var(--ocean); border-color: var(--ocean); color: white; }
.steps button.completed > span { background: #d8f0fa; color: var(--ocean); }
.step-line { flex: 1; height: 1px; background: var(--line); }
/* Prepínač „Aa“: pevných 44 px, aby sa nemenil s tým, čo prepína. Zapnutý je plný oceán. */
.velkost-textu { flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid #bbd3de; border-radius: 50%; background: var(--white); color: var(--ocean-dark); font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.velkost-textu[aria-pressed="true"] { background: var(--ocean); border-color: var(--ocean); color: white; }
.panel-tools { display: flex; justify-content: flex-end; margin: -4px -4px 10px 0; }
.workspace-tools { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
/* Tri názvy krokov sa pri väčšom písme do panela nezmestia (od xL na iPhone). Vtedy
   nesie názov len aktuálny krok, ostatné len číslo — text ostáva v strome prístupnosti. */
@container (max-width: 16.5em) {
  .steps button:not([aria-current="step"]) { font-size: 0; gap: 0; }
  .steps button:not([aria-current="step"]) > span { font-size: var(--pismo-min); }
}
.form-step h2 { font-size: var(--pismo-titul-1); font-weight: 700; line-height: 1.2; }
.step-description { color: var(--muted); font-size: var(--pismo-text); line-height: 1.65; margin: 12px 0 23px; }
.location-button { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--paper); }
.location-button > .icon { color: #4d91ac; }
.location-button strong { font-size: var(--pismo-text); display: block; font-weight: 650; }
.location-button small { font-size: var(--pismo-min); display: block; color: var(--muted); margin-bottom: 1px; }
.text-link { color: var(--ocean-dark); margin-left: auto; font-size: var(--pismo-text); font-weight: 700; }
.duration-field { padding: 0; margin: 23px 0 16px; border: 0; min-width: 0; }
.duration-field > legend { color: #33525e; font-size: var(--pismo-text); font-weight: 650; margin-bottom: 10px; }
.duration-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.6em, 1fr)); gap: 7px; }
.duration-options button { border: 1.5px solid var(--line); border-radius: 14px; background: transparent; padding: 12px 3px; min-height: 61px; }
.duration-options strong { display: block; font-size: var(--pismo-text); font-weight: 650; overflow-wrap: anywhere; }
.duration-options small { display: block; font-size: var(--pismo-min); margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.duration-options button[aria-pressed="true"] { background: var(--soft); border: 2.5px solid var(--ocean); padding: 11px 2px; color: var(--ink); }
.two-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(7em, 1fr)); gap: 12px; }
label { font-size: var(--pismo-text); color: #33525e; font-weight: 650; display: block; }
input[type="time"], input[type="number"], input[type="text"], input[type="search"], select { min-width: 0; width: 100%; min-height: 46px; padding: 10px 11px; margin-top: 6px; border: 1px solid #bbd3de; border-radius: 9px; background: var(--white); font-size: var(--pismo-text); }
.time-fields input { font-size: var(--pismo-text); font-variant-numeric: tabular-nums; }
details summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; }
summary::-webkit-details-marker { display: none; }
summary > .icon:last-child { margin-left: auto; color: #86a5b2; transition: transform .2s; }
details[open] summary > .icon:last-child { transform: rotate(180deg); }
.stops-field { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.stops-field > legend { color: #33525e; font-size: var(--pismo-text); font-weight: 700; margin-bottom: 9px; }
.segmented-control { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: #e5f1f7; }
.segmented-control.tri { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Kopce (bod 9): tri voľby vedľa seba sa na telefóne nezmestia celými slovami („Neva-dia“),
   preto sa pod sebou. Rovnaký vzhľad ako „Zastávky“. */
.hills-field { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.hills-field > legend { color: #33525e; font-size: var(--pismo-text); font-weight: 700; margin-bottom: 9px; }
@media (max-width: 560px) { .segmented-control.tri { grid-template-columns: minmax(0, 1fr); } }
.segmented-control label { position: relative; cursor: pointer; }
.segmented-control input { position: absolute; opacity: 0; }
/* overflow-wrap: anywhere je poistka (29. 9. 2026, Petr): keď sa dvojica slov aj s pevnou
   medzerou nezmestí na jeden riadok (úzky iPhone, väčší text), nech sa vycentrovane zalomí,
   nikdy nech sa neorezáva potichu za hranou karty. */
.segmented-control span { display: grid; place-items: center; box-sizing: border-box; height: 100%; min-height: 42px; padding: 7px 10px; border-radius: 8px; color: #476571; font-size: var(--pismo-text); font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.segmented-control input:checked + span { color: #00455b; background: white; box-shadow: 0 1px 5px #00354822; }
.segmented-control input:focus-visible + span { outline: 3px solid #51b0d3; outline-offset: 2px; }
.stop-settings { padding-top: 12px; }
.stop-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5em, 1fr)); gap: 8px; margin-bottom: 12px; }
.stop-facts p { padding: 10px 11px; border: 1px solid #d5e4eb; border-radius: 10px; background: var(--paper); }
.stop-facts span { display: block; color: var(--muted); font-size: var(--pismo-min); font-weight: 550; }
.stop-facts strong { display: block; margin-top: 3px; color: #325969; font-size: var(--pismo-text); line-height: 1.35; }
.calculation { font-size: var(--pismo-text); color: var(--muted); padding: 10px 0 4px; }
.calculation strong { font-weight: 550; color: #3d758c; }
.calculation.invalid { color: #97493f; }
.choice-stack { display: grid; gap: 11px; border: 0; padding: 0; margin: 0; min-width: 0; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice > span { display: flex; align-items: center; gap: 12px; min-height: 88px; border: 1.5px solid var(--line); border-radius: 14px; padding: 15px 13px; transition: background .15s, border-color .15s; }
.choice > span > .icon { width: 1.5em; height: 1.5em; color: #75a3b6; }
.choice strong { font-size: var(--pismo-text); font-weight: 700; color: var(--ink); display: block; }
.choice small { display: block; font-size: var(--pismo-min); margin-top: 4px; line-height: 1.5; color: var(--muted); }
.choice i { margin-left: auto; width: 13px; height: 13px; border: 1px solid #bad3de; border-radius: 50%; flex-shrink: 0; }
.choice input:checked + span { background: var(--soft); border: 2.5px solid var(--ocean); padding: 14px 12px; }
.choice input:checked + span > .icon { color: var(--ocean); }
.choice input:checked + span i { background: var(--ocean); box-shadow: inset 0 0 0 3px var(--white); border-color: var(--ocean); }
.choice input:focus-visible + span { outline: 3px solid #51b0d3; outline-offset: 3px; }
.assistant-note { display: flex; gap: 12px; margin-top: 28px; padding: 16px 0; color: #30677c; font-size: var(--pismo-text); line-height: 1.65; }
.assistant-note .icon { margin-top: 2px; }
.bike-choices { gap: 8px; }.bike-choices .choice > span { min-height: 66px; padding: 11px 12px; }
.bike-choices .choice > span > .icon { width: 1.25em; height: 1.25em; }
.switch-row { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.switch-row strong { display: block; font-size: var(--pismo-text); font-weight: 700; color: var(--ink); }
.switch-row small { display: block; font-size: var(--pismo-min); margin-top: 3px; color: var(--muted); }
.switch-row input { appearance: none; border: 0; position: relative; width: 35px; height: 22px; background: #cddfe6; border-radius: 14px; cursor: pointer; flex-shrink: 0; }
.switch-row input::before { content: ""; width: 16px; height: 16px; border-radius: 50%; position: absolute; top: 3px; left: 3px; background: white; box-shadow: 0 1px 3px #0002; transition: transform .15s; }
.switch-row input:checked { background: var(--ocean); }.switch-row input:checked::before { transform: translateX(13px); }
.context-fields { margin-top: 18px; }
.contract { color: #2a6277; margin-top: 18px; font-size: var(--pismo-text); line-height: 1.65; }
.plan-action { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.primary-action { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--ocean); border-radius: 18px; color: white; background: var(--ocean); min-height: 58px; padding: 12px 16px; font-size: var(--pismo-text); font-weight: 700; transition: background .15s; }
.primary-action:hover:not(:disabled) { background: var(--ocean-dark); }.plan-action .primary-action { flex: 1; }
/* Výpočet trvá pár sekúnd; tlačidlo počas neho ostáva plnofarebné a živé, nie vyblednuté
   ako pri bežnom zákaze (Petr 29. 9. 2026: „Hľadám tvoj okruh…“ pôsobilo ako porucha).
   Server neposiela skutočný priebeh (jedno synchrónne volanie), takže sa neukazuje
   vymyslené percento (I2-duch pravidla „nevymýšľať čísla“) — iba jedna pravdivá veta
   a nedourčitý pohyb. */
.primary-action.is-busy:disabled { opacity: 1; cursor: wait; }
.primary-action .busy-dots { display: none; }
.primary-action.is-busy .busy-dots { display: inline-flex; align-items: center; gap: .3em; margin-right: auto; }
.primary-action .busy-dots i { width: .32em; height: .32em; border-radius: 50%; background: currentColor; opacity: .35; animation: bikeso-busy-dot 1.1s ease-in-out infinite; }
.primary-action .busy-dots i:nth-child(2) { animation-delay: .15s; }
.primary-action .busy-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bikeso-busy-dot { 0%, 80%, 100% { opacity: .35; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .primary-action.is-busy::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
    background-size: 55% 100%; background-repeat: no-repeat;
    animation: bikeso-busy-band 1.3s ease-in-out infinite;
  }
}
@keyframes bikeso-busy-band { 0% { background-position: -60% 0; } 100% { background-position: 160% 0; } }
.back-button, .text-button { background: transparent; border: 0; color: var(--ocean); padding: 10px 0; font-size: var(--pismo-text); border-radius: 4px; }
.mode-note { color: #4b646e; font-size: var(--pismo-min); text-align: center; margin-top: 13px; line-height: 1.6; }
.workspace { min-width: 0; }.inspiration { position: relative; height: 470px; border-radius: 18px; overflow: hidden; background: #36697d; }
.inspiration img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; display: block; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #00263468 0%, #00354635 40%, transparent 80%); }
.hero-copy { position: absolute; left: 40px; top: 45px; bottom: 45px; display: flex; flex-direction: column; align-items: flex-start; color: #fffdf3; }
.hero-label { font-size: 15px; letter-spacing: .15em; display: flex; align-items: center; gap: 9px; opacity: .94; }
.hero-label .icon { width: 1em; height: 1em; }
.hero-copy h2 { font-weight: 700; letter-spacing: -1.5px; font-size: clamp(48px, 5vw, 74px); line-height: 1.02; margin: auto 0 20px; }
.hero-copy p { font-size: 17px; line-height: 1.9; color: #ffffffe8; }
.image-note { position: absolute; bottom: 15px; right: 17px; background: #11273050; color: #fffdf3d9; padding: 3px 7px; border-radius: 4px; font-size: 15px; }
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 29px 22px 15px; }
.welcome h3 { font-weight: 700; font-size: var(--pismo-titul-1); line-height: 1.15; margin: 12px 0; }
.welcome > div > p:last-child { font-size: var(--pismo-text); color: var(--muted); line-height: 1.85; }
.welcome .eyebrow { font-size: var(--pismo-min); }
.welcome-route { flex: 0 1 230px; text-align: center; }.welcome-route svg { width: 100%; display: block; }.welcome-route span { font-size: var(--pismo-min); color: #7999a7; }
.workspace-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 20px; }.workspace-heading h2 { font-weight: 700; font-size: var(--pismo-titul-1); line-height: 1.2; }
.workspace-heading .text-button { white-space: nowrap; }
.route-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.route-card { display: flex; flex-direction: column; min-height: 154px; text-align: left; padding: 14px 15px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); }
.route-card[aria-pressed="true"] { border: 2.5px solid var(--ocean); padding: 13px 14px; background: var(--soft); }
.route-card strong { display: block; font-size: var(--pismo-text); font-weight: 550; margin: 5px 0; }
.route-description { display: block; color: #40616e; font-size: var(--pismo-min); line-height: 1.45; }
.route-mini-chart { display: block; width: 100%; height: 3.75em; margin: 0.65em 0 0.35em; border-bottom: 1px solid var(--line); }
.route-mini-chart svg { display: block; width: 100%; height: 100%; }
.route-mini-area { fill: var(--ocean); fill-opacity: .10; }
.route-mini-line { fill: none; stroke: var(--ocean); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.route-mini-unavailable { display: block; margin: 0.65em 0 0.35em; color: var(--muted); font-size: var(--pismo-min); }
.route-meta { display: block; margin-top: auto; padding-top: 10px; font-size: var(--pismo-min); color: var(--muted); }
.weather-route-meta { overflow-wrap: anywhere; }
.map-frame { position: relative; background: #e6f0f5; border: 1.5px solid var(--ocean); border-radius: 18px; overflow: hidden; }
#route-map { display: block; width: 100%; height: 410px; background: #dbf0f9; }
#manual-route-map { display: block; width: 100%; height: 590px; background: #dbf0f9; }
#manual-route-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; color: #0d3e4f; }
#manual-route-map .leaflet-control-attribution { font-size: var(--pismo-min); color: #0d3544; background: #ffffffed; }
.manual-area .workspace-heading p { color: var(--muted); font-size: var(--pismo-min); margin-top: 5px; }
.manual-planner h2 { font-size: var(--pismo-titul-1); font-weight: 700; line-height: 1.2; }
.manual-address-form { display: grid; gap: 9px; }
.manual-address-form .secondary-action { width: 100%; }
.manual-tools { display: flex; flex-wrap: wrap; gap: 8px 15px; margin: 12px 0 5px; }
.manual-points { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.manual-points li { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); font-size: var(--pismo-text); }
.manual-points li > span:first-child { display: grid; place-items: center; width: 1.6em; height: 1.6em; flex: 0 0 auto; border-radius: 50%; background: var(--ocean); color: white; font-size: var(--pismo-min); font-weight: 750; }
.manual-points li strong { font-size: var(--pismo-text); }
.manual-points li button { margin-left: auto; border: 0; background: transparent; color: #773e36; padding: 7px; font-weight: 700; }

.route-profile-card { margin-top: 16px; padding: 22px 24px 18px; border: 1.5px solid var(--ocean); border-radius: 18px; background: var(--white); }
.profile-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 15px; }
.profile-heading h3 { font-size: var(--pismo-titul-2); font-weight: 700; }
.profile-heading > span { color: var(--muted); font-size: var(--pismo-min); white-space: nowrap; }
.profile-heading > span strong { color: var(--ink); font-size: var(--pismo-titul-3); font-weight: 650; }
.elevation-chart { position: relative; height: 190px; padding-bottom: 16px; border-bottom: 1px solid #d2e2e9; }
.elevation-chart svg { display: block; width: 100%; height: 174px; overflow: visible; }
.elevation-area { fill: var(--ocean); fill-opacity: .10; }
.elevation-line { fill: none; stroke: var(--ocean); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.elevation-start, .elevation-end { position: absolute; bottom: -1px; color: #4b6570; font-size: var(--pismo-min); font-variant-numeric: tabular-nums; }
.elevation-start { left: 0; }.elevation-end { right: 0; }
.elevation-time { position: absolute; top: 0; transform: translateX(-50%); padding: 0 0.35em; border-radius: 0.4em; background: var(--paper); color: var(--ink); font-size: var(--pismo-min); font-variant-numeric: tabular-nums; pointer-events: none; }
.hills { margin-top: 1.25em; }
.hills h4 { margin: 0 0 0.5em; font-size: var(--pismo-text); }
.hill-list { list-style: none; display: grid; gap: 0.45em; margin: 0; padding: 0; }
.hill-list li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.3em 1em; padding: 0.55em 0.75em; border-radius: 0.6em; background: var(--soft); font-size: var(--pismo-min); }
.hill-list li span { font-variant-numeric: tabular-nums; }
.hills-empty, .hills-unavailable { color: var(--muted); font-size: var(--pismo-min); }
.hill-list li .hill-section { flex-basis: 100%; color: var(--muted); }
.hills-method { margin: 0.6em 0 0; color: var(--muted); font-size: var(--pismo-min); }
.profile-unavailable { display: flex; flex-direction: column; justify-content: center; min-height: 142px; padding: 20px; border: 1px dashed #bbd3de; border-radius: 10px; color: var(--muted); }
.profile-unavailable strong { color: var(--ink); font-size: var(--pismo-text); }.profile-unavailable span { font-size: var(--pismo-min); margin-top: 5px; }
.route-strips { display: grid; gap: 11px; margin-top: 19px; }
.route-strip { display: grid; grid-template-columns: calc(4.5 * var(--pismo-text)) minmax(0, 1fr); align-items: center; gap: 10px; }
.route-strip > span { color: #385662; font-size: var(--pismo-min); font-weight: 700; }
.route-strip > div { display: flex; height: 17px; overflow: hidden; border-radius: 5px; background: #c0cbd1; }
.route-strip > div > span { min-width: 2px; }
.strip-paved { background: #687c96; }.strip-gravel { background: #b28b5d; }.strip-rough { background: #6f5134; }
/* Autá rovnako ako v appke (Petr 25. 9. 2026: „auta červené, nech je to všade rovnaké“):
   s autami #B42318 bez šrafovania (značka, --bikeso-target), bez áut #CFDCE2 a neznáme
   #52606D (PortraitStyle.surfaceBar a .secondary v appke). Audit farieb pred zmenou:
   bez áut #CFDCE2 a neznámy povrch #c0cacf sa zlievajú (ΔE 6, hranica 20), preto majú
   neznáme autá vlastnú triedu. #52606D sa zas nesmie dať neznámemu povrchu — zlial by
   sa so spevneným (ΔE 13). */
.strip-car-free { background: #CFDCE2; }.strip-unknown { background: #c0cacf; }
.strip-traffic-unknown { background: #52606D; }
.strip-cars { background-color: var(--bikeso-target, #B42318); }
.confidence-stredná { opacity: .7; }.confidence-nízka { opacity: .48; }
.profile-legend { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 13px 0 0 calc(4.5 * var(--pismo-text) + 10px); color: var(--muted); font-size: var(--pismo-min); }
.profile-legend i { display: inline-block; width: .8em; height: .6em; margin-right: 5px; border-radius: 2px; vertical-align: -1px; }
/* Výhľad na jazdu: tie isté vety, aké za jazdy povie hlas. Čítajú sa ako text, nie ako
   legenda — preto odsadenie zarovnané s profilom a nie pod pásmi. */
.route-outlook { margin: 15px 0 0 calc(4.5 * var(--pismo-text) + 10px); padding: 0; list-style: none; color: var(--ink); font-size: var(--pismo-text); line-height: 1.6; }
.route-outlook li { position: relative; padding-left: 15px; }
.route-outlook li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--ocean); }
.profile-source { margin: 13px 0 0 calc(4.5 * var(--pismo-text) + 10px); color: #4b6570; font-size: var(--pismo-min); }
#route-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; color: #0d3e4f; }
#route-map .leaflet-control-attribution { font-size: var(--pismo-min); color: #0d3544; background: #ffffffed; }
#route-map .leaflet-control-scale { font-size: var(--pismo-min); }
.results-panel { margin-top: 16px; }.route-result { background: var(--white); border: 1.5px solid var(--ocean); border-radius: 18px; padding: 23px 26px; }
.result-title { font-size: var(--pismo-titul-1); font-weight: 700; }
.result-description { margin-top: 6px; color: #40616e; font-size: var(--pismo-text); line-height: 1.5; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(7em, 1fr)); gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); margin-bottom: 19px; }
.metric strong { display: block; font-size: var(--pismo-titul-2); letter-spacing: -.8px; font-weight: 500; line-height: 1.2; white-space: nowrap; }.metric span { color: var(--muted); font-size: var(--pismo-min); display: block; margin-top: 7px; }
.result-insight { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; }.result-insight > .icon { color: #ad8d4f; width: 1.1em; height: 1.1em; margin-top: 1px; }
.result-insight strong { font-weight: 570; font-size: var(--pismo-text); }.result-insight p { font-size: var(--pismo-min); color: var(--muted); line-height: 1.65; margin-top: 3px; }
.data-note, .time-note, .export-note { color: var(--muted); font-size: var(--pismo-min); line-height: 1.65; margin-top: 12px; }
.result-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; }.result-actions .primary-action { margin-left: auto; min-height: 44px; }
.secondary-action { display: flex; justify-content: center; align-items: center; gap: 8px; border: 1.5px solid var(--ocean); background: var(--white); color: var(--ocean); font-weight: 600; border-radius: 18px; padding: 10px 14px; min-height: 44px; font-size: var(--pismo-text); }
.stale-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; background: var(--soft); color: var(--ink); border: 1.5px solid var(--ocean); padding: 10px 12px; border-radius: 18px; font-size: var(--pismo-text); }.stale-note button { border: 0; background: transparent; color: var(--ocean); font-weight: 600; text-decoration: underline; padding: 5px; }
.empty-state { background: var(--white); border: 1.5px solid var(--ocean); border-radius: 18px; padding: 24px; }.empty-state h3 { font-weight: 700; font-size: var(--pismo-titul-2); margin-bottom: 10px; }.empty-state p { color: var(--muted); font-size: var(--pismo-text); }
dialog { background: var(--white); color: var(--ink); border: 1.5px solid var(--ocean); border-radius: 18px; box-shadow: 0 18px 90px #00304030; }
dialog::backdrop { background: #00304066; backdrop-filter: blur(3px); }
.planned-share-dialog { width: min(520px, calc(100vw - 32px)); max-width: none; padding: 24px; }
.planned-share-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.planned-share-heading h2 { font-size: var(--pismo-titul-1); font-weight: 700; }
.planned-share-message { overflow-wrap: anywhere; margin-top: 18px; color: var(--ink); line-height: 1.5; }
.planned-share-dialog progress { width: 100%; height: 10px; margin-top: 12px; accent-color: var(--ocean); }
.planned-share-privacy, .planned-share-fallback { margin-top: 12px; color: var(--muted); font-size: var(--pismo-min); line-height: 1.55; }
.planned-share-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.planned-share-actions .primary-action { margin-left: auto; }
#base-dialog { width: min(1180px, calc(100vw - 40px)); max-width: none; height: min(900px, calc(100dvh - 40px)); max-height: none; padding: 0; overflow: hidden; }
#base-form { height: 100%; display: grid; grid-template-rows: auto auto auto minmax(150px, 1fr) auto; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px 12px; }
.dialog-heading h2 { font-size: var(--pismo-titul-1); font-weight: 700; }
.dialog-heading .eyebrow { margin-bottom: 4px; }
.close-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: calc(var(--zaklad) + 10px); flex: 0 0 auto; }
.place-search-row { position: relative; display: flex; align-items: end; gap: 12px; padding: 0 24px 12px; }
.place-search-row label { flex: 1; font-size: var(--pismo-text); }
.location-from-device { min-height: 49px; padding: 10px 18px; border: 1px solid #90c4d9; border-radius: 9px; background: #e7f6fd; color: #004b64; font-size: var(--pismo-text); font-weight: 700; }
.location-from-device:hover { background: #d2effb; }
.place-suggestions { position: absolute; top: calc(100% - 8px); left: 24px; right: 24px; z-index: 1100; margin: 0; padding: 4px; box-shadow: 0 8px 24px rgba(13, 53, 68, .18); list-style: none; border: 1px solid #90c4d9; border-radius: 9px; background: #fff; max-height: 220px; overflow-y: auto; }
.place-suggestions button { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 0; border-radius: 6px; background: none; color: #00455b; font: inherit; font-size: var(--pismo-text); text-align: left; cursor: pointer; }
.place-suggestions button:hover, .place-suggestions button[aria-selected="true"] { background: #e7f6fd; }
.place-kind { color: #33525e; font-size: var(--pismo-min); font-weight: 400; }
.place-map-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 24px 12px; }
.map-layer-switch { display: flex; padding: 3px; border-radius: 10px; background: #e5f1f7; }
.map-layer-switch button { min-height: 36px; border: 0; border-radius: 7px; padding: 6px 13px; background: transparent; font-size: var(--pismo-text); font-weight: 650; overflow-wrap: anywhere; }
.map-layer-switch button[aria-pressed="true"] { background: white; box-shadow: 0 1px 5px #00354822; color: #004b64; }
#map-status { font-size: var(--pismo-min); color: #345967; margin-left: auto; }
#place-map { width: 100%; min-height: 150px; background: #dbf0f9; border-top: 1px solid #c4e1ed; border-bottom: 1px solid #c4e1ed; }
#place-map .maplibregl-canvas { outline-offset: -4px; }
#place-map .maplibregl-ctrl button { width: 44px; height: 44px; }
#place-map .maplibregl-ctrl-attrib { font-size: var(--pismo-min); color: #0d3544; }
#place-map .maplibregl-ctrl-attrib button { width: 24px; height: 24px; }
#place-map .maplibregl-ctrl-scale { font-size: var(--pismo-min); background: #ffffffed; }
#place-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; color: #0d3e4f; }
#place-map .leaflet-control-attribution { font-size: var(--pismo-min); color: #0d3544; background: #ffffffed; }
#place-map .leaflet-control-scale { font-size: var(--pismo-min); }
#place-map .place-marker-icon { border: 0; background: transparent; }
.place-dot { width: 22px; height: 22px; border: 4px solid white; border-radius: 50%; box-shadow: 0 1px 6px #0d212888; pointer-events: none; }
.place-dot-current { background: #ce3f31; z-index: 2; }
.place-dot-selected { background: #006a8b; width: 19px; height: 19px; z-index: 1; }
.place-map-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; }
.place-map-footer .primary-action { flex: 0 0 auto; width: auto; min-width: 13em; margin: 0; }
.place-feedback p { margin: 0; line-height: 1.45; }
.place-selection { color: #00455b; font-size: var(--pismo-text); font-weight: 700; }
#location-status { font-size: var(--pismo-min); color: #514d43; margin-top: 3px; }
.map-privacy { font-size: var(--pismo-min); color: #47636f; margin-top: 4px !important; }
@media (max-width: 600px) {
  #base-dialog { width: 100vw; height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  .dialog-heading { padding: 12px 14px 8px; }
  .place-search-row { flex-wrap: wrap; gap: 8px; padding: 0 14px 8px; }
  .place-search-row label { flex-basis: 100%; }
  .location-from-device { min-height: 40px; padding: 7px 12px; width: 100%; }
  .place-suggestions { left: 14px; right: 14px; max-height: 160px; }
  .place-map-toolbar { padding: 0 14px 8px; gap: 6px; }
  .map-layer-switch button { padding: 6px 9px; }
  #map-status { max-width: 40%; }
  .place-map-footer { padding: 10px 14px max(12px, env(safe-area-inset-bottom)); flex-direction: column; gap: 8px; align-items: stretch; }
  .place-map-footer .primary-action { width: 100%; min-height: 46px; }
}
@media (max-width: 1424px) { .page { margin: 0 32px; }.topbar { padding: 0 32px; } }
@media (max-width: 1100px) {
  .page { margin: 0 24px; }.app-shell { grid-template-columns: 20em minmax(0, 1fr); gap: 20px; }.planner-panel { padding: 23px; }
  .hero-copy { left: 28px; }.hero-copy h2 { font-size: 57px; }.welcome { padding: 26px 4px; }.welcome-route { flex-basis: 150px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }.route-card { padding: 11px; }
}
@media (max-width: 760px) {
  .topbar { height: 84px; padding: 0 21px; gap: 12px; }.brand { gap: 5px; }.brand-mark { width: auto; height: 44px; }.engine-badge { padding: 4px 8px; }.engine-badge::before { display: none; }
  .page { margin: 0; padding: 24px 18px; }
  .app-shell { display: flex; flex-direction: column; gap: 22px; }.planner-panel { width: 100%; padding: 22px 22px 16px; border-radius: 18px; order: 2; }.workspace { width: 100%; display: contents; }.app-shell.manual-mode .planner-panel { order: 1; }.manual-area { width: 100%; order: 2; }
  .inspiration { height: 245px; width: 100%; border-radius: 18px; order: 1; }.inspiration img { object-position: 65% 50%; }.hero-copy { top: 24px; left: 24px; bottom: 25px; }.hero-copy h2 { font-size: 44px; letter-spacing: -1.3px; margin: auto 0 10px; }.hero-label { gap: 7px; }.hero-copy p { line-height: 1.65; }.image-note { bottom: 11px; right: 11px; }.welcome { display: none; }
  .steps { margin-bottom: 26px; }.steps button { min-height: 38px; }.step-description { margin-bottom: 21px; }
  .duration-options button { padding: 12px 2px; }
  input[type="time"], input[type="number"], input[type="text"], select { min-height: 44px; }
  .choice > span { padding: 15px 12px; }.bike-choices .choice > span { min-height: 72px; }
  .primary-action { min-height: 49px; }.plan-action { gap: 14px; }
  #result-area { width: 100%; order: 3; }.app-shell.has-results .planner-panel { display: none; }.app-shell.has-results #result-area { order: 1; }.app-shell.editing .planner-panel { display: block; }.app-shell.editing #result-area { display: none; }
  .workspace-heading { margin: 0 3px 17px; gap: 10px; align-items: flex-end; flex-wrap: wrap; }.workspace-tools { margin-left: auto; }
  .route-list { display: flex; overflow-x: auto; gap: 9px; padding: 2px 0 7px; scroll-snap-type: x mandatory; scrollbar-width: thin; }.route-card { flex: 0 0 min(15em, 78vw); min-height: 155px; scroll-snap-align: start; padding: 13px 14px; }
  #route-map, #manual-route-map { height: 390px; }
  .planner-mode-switch { margin-bottom: 23px; }.planner-mode-switch button { min-height: 72px; }
  .route-profile-card { padding: 19px 16px 16px; }.profile-heading { align-items: flex-start; }.profile-heading > span { white-space: normal; text-align: right; }.elevation-chart { height: 160px; }.elevation-chart svg { height: 144px; }
  .route-strip { grid-template-columns: calc(4 * var(--pismo-text)) minmax(0, 1fr); }.profile-legend, .profile-source, .route-outlook { margin-left: 0; }.profile-legend { gap: 7px 12px; }
  .route-result { padding: 21px 19px; }.result-actions { flex-direction: column-reverse; align-items: stretch; }.result-actions .primary-action { margin-left: 0; }.result-actions button { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Readability baseline: this planner is meant to be used outside, not inspected. */
.hero-label { font-weight: 700; }.hero-copy p { font-weight: 500; line-height: 1.65; }
.welcome-route span { color: #3a6474; }
.back-button, .text-button { font-weight: 700; }
.route-card strong { font-weight: 700; }
.result-insight strong { font-weight: 700; }.secondary-action { font-weight: 650; }
.place-search-note { margin: 2px 0 0; color: var(--muted); }

/* Forecast follows the route summary and elevation profile. */
.route-weather { margin-top: 22px; padding: 20px; border: 1.5px solid var(--ocean); border-radius: 18px; background: var(--white); }
.weather-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.weather-heading h3 { font-size: var(--pismo-titul-2); line-height: 1.25; }
.weather-heading > p, .weather-stops > p, .weather-offset, .weather-disclaimer, .weather-status span, .weather-sources li span { color: var(--muted); font-size: var(--pismo-min); }
.section-kicker { margin-bottom: 5px; color: var(--ocean-dark); font-size: var(--pismo-min); font-weight: 700; letter-spacing: .08em; }
.weather-controls { display: grid; grid-template-columns: minmax(12em, 1fr) auto minmax(9em, .7fr); align-items: end; gap: 12px; margin-top: 17px; }
.weather-controls label, .weather-stop label { display: grid; gap: 5px; font-size: var(--pismo-min); font-weight: 650; }
.weather-controls input, .weather-stop input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 8px 10px; }
.weather-offset { align-self: center; max-width: 11em; }
.weather-unplaced { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--amber-soft); color: var(--ink); }
.weather-unplaced input { width: 1.25em; height: 1.25em; flex: 0 0 auto; margin: .15em 0 0; accent-color: var(--ocean); }
.weather-stops { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.weather-stops h4 { font-size: var(--pismo-text); }
.weather-stops > p { margin: 3px 0 11px; }
.weather-stop { display: grid; grid-template-columns: minmax(8em, 1.4fr) minmax(7em, .8fr) minmax(7em, .8fr) auto; align-items: end; gap: 10px; min-width: 0; margin: 0 0 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.weather-stop legend { padding: 0 5px; color: var(--muted); font-size: var(--pismo-min); }
.weather-stop .text-button { padding: 8px 4px; font-size: var(--pismo-min); }
.weather-add-stop { min-height: 44px; }
.weather-timing-summary { margin-top: 13px; font-weight: 650; }
.weather-notice, .weather-loading, .weather-error, .weather-idle, .weather-unknown { margin-top: 10px; padding: 10px 12px; border-radius: 11px; background: var(--soft); }
.weather-notice:empty { display: none; }
.weather-warning { background: var(--amber-soft); }
.weather-error { background: var(--amber-soft); }
.weather-report { margin-top: 15px; }
.weather-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.weather-status span { align-self: end; }
.weather-summary-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.weather-summary-card { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.weather-summary-card h4 { font-size: var(--pismo-min); color: var(--muted); }
.weather-summary-card p { margin-top: 4px; overflow-wrap: anywhere; font-weight: 650; }
.weather-timeline, .weather-sources { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.weather-timeline summary, .weather-sources summary { font-weight: 700; }
.weather-timeline ol, .weather-sources ul { display: grid; gap: 8px; list-style: none; margin: 10px 0 0; padding: 0; }
.weather-point { display: grid; grid-template-columns: minmax(6em, .35fr) minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px; border-radius: 12px; background: var(--paper); }
.weather-map-point { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border: 0; background: transparent; color: var(--ocean-dark); font-weight: 700; text-align: left; padding: 0; }
.weather-map-point span + span { font-size: var(--pismo-min); text-decoration: underline; }
.weather-point-data { min-width: 0; }
.weather-point-data strong { display: block; overflow-wrap: anywhere; }
.weather-point-data p { margin-top: 3px; overflow-wrap: anywhere; }
.weather-sources li { display: grid; gap: 3px; padding: 8px 10px; background: var(--paper); border-radius: 10px; }
.weather-disclaimer { margin-top: 13px; }
@media (max-width: 760px) {
  .route-weather { padding: 17px 15px; }
  .weather-heading { display: block; }
  .weather-heading > p { margin-top: 4px; }
  .weather-controls { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .weather-offset { max-width: none; }
  .weather-stop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weather-stop label:first-of-type { grid-column: 1 / -1; }
  .weather-stop .text-button { grid-column: 1 / -1; justify-self: start; }
  .weather-summary-cards { grid-template-columns: minmax(0, 1fr); }
  .weather-point { grid-template-columns: minmax(5.5em, .4fr) minmax(0, 1fr); gap: 7px; padding: 9px; }
}
@media (max-width: 480px) {
  .weather-point { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .weather-map-point { flex-direction: row; align-items: baseline; justify-content: space-between; width: 100%; gap: 12px; }
}
@media (max-width: 760px) {
  .engine-badge { padding: 6px 9px; }
  input[type="time"], input[type="number"], input[type="text"], input[type="search"], select { min-height: 46px; }.primary-action { min-height: 52px; }
  dialog { padding: 21px; }
  .planned-share-dialog { width: calc(100vw - 24px); padding: 20px; }
  .planned-share-actions { flex-direction: column; }
  .planned-share-actions .primary-action { margin-left: 0; }
  #planned-share-native { order: -2; }
  #planned-share-other { order: -1; }
}

/* --- Rozcestník zámerov -------------------------------------------------
   Úvod je jedna karta: otázka, tri voľby a obrázok. Rovnaké tri voľby a rovnaké
   slová ako na domovskej obrazovke appky. Hlavička je tu skrytá a značka v texte
   tiež — nesie ju samotný obrázok, takže druhá kópia vedľa otázky bola navyše. */
/* --- Moje jazdy ---------------------------------------------------------
   Knižnica vyzerá ako rozcestník, lebo robí to isté: ponúka jazdu na výber.
   Nemá vlastný tvar, ktorý by sa musel učiť zvlášť. */
.library-panel h2 { font-size: var(--pismo-titul-1); font-weight: 700; margin: 0; }
.library-panel h2:focus-visible { outline: 2px solid var(--ocean); outline-offset: 4px; }
.library-lede { color: var(--muted); font-size: var(--pismo-text); line-height: 1.6; margin: 9px 0 18px; }
.library-list { display: grid; gap: 10px; }
.ride-item { flex-wrap: wrap; }
.ride-item .library-item-rename { flex: 0 0 auto; font-size: var(--pismo-min); min-height: 2.8em; padding: .7em; }
.ride-item .ride-name-form { width: 100%; min-width: 0; margin-top: 0; padding: 1em; }
.ride-item [hidden] { display: none; }
.ride-item .library-item-open span { min-width: 0; }
.ride-item .library-item-open strong, .stored-title .result-title { overflow-wrap: anywhere; }
.miesto-odkazy { display: flex; flex-wrap: wrap; gap: .6em 1em; margin-top: .6em; }
.miesto-odkazy a { font-size: var(--pismo-text); }
@media (max-width: 760px) {
  .ride-item .library-item-open { flex-basis: 100%; padding-right: 1em; }
  .ride-item .library-item-rename { margin-left: 1em; }
}
.library-item { display: flex; align-items: center; gap: 15px; width: 100%; text-align: left; min-height: 74px; padding: 14px 18px; border: 1.5px solid var(--ocean); border-radius: 18px; background: var(--paper); transition: border-color .15s, background .15s; }
.library-item > .icon { width: 1.55em; height: 1.55em; color: var(--ocean); flex: 0 0 auto; }
.library-item > span { flex: 1 1 auto; min-width: 0; }
.library-item strong { display: block; font-size: var(--pismo-text); font-weight: 650; line-height: 1.3; }
.library-item small { display: block; font-size: var(--pismo-min); color: var(--muted); margin-top: 3px; line-height: 1.45; }
.library-item:hover, .library-item:focus-visible { border-color: var(--ocean); background: var(--soft); }
.library-note, .library-empty { color: var(--muted); font-size: var(--pismo-min); line-height: 1.6; margin: 16px 0 0; }

.profile-setup-row { display: flex; gap: 8px; }
.profile-setup-row input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; font-size: var(--pismo-text); background: var(--paper); }
.profile-setup-row input:focus-visible { outline: 2px solid var(--ocean); outline-offset: 1px; }
.profile-setup-row .primary-action { flex: 0 0 auto; min-height: 44px; padding: 0 18px; }
.profile-setup-status { min-height: 1.3em; font-size: var(--pismo-min); color: var(--target); margin: 8px 0 0; }
.profile-active-row { display: flex; align-items: center; gap: 8px; font-size: var(--pismo-text); color: var(--muted); margin: 0 0 14px; }
.profile-active-row strong { color: var(--ink); font-weight: 650; }
.profile-active-row .text-button { margin-left: auto; padding: 4px 0; }
.profile-paired { font-size: var(--pismo-text); color: var(--ink); margin: 0 0 2px; }
#profile-pair.text-button { padding: 2px 0 10px; }
#profile-pair { width: 100%; margin-bottom: 6px; }
.pairing-panel { margin-top: 14px; padding: 16px 18px; border: 1px dashed var(--ocean); border-radius: 14px; background: var(--soft); text-align: center; }
.pairing-code { font-size: var(--pismo-velky); font-weight: 800; letter-spacing: .18em; color: var(--ocean); margin: 8px 0; font-variant-numeric: tabular-nums; }
.pairing-status { font-size: var(--pismo-min); color: var(--muted); min-height: 1.3em; margin: 0; }
.saved-rides { margin-top: 22px; }
.saved-rides h3, .library-sample-heading { font-size: var(--pismo-min); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.saved-rides:first-child h3 { margin-top: 0; }
.library-item.ride-item { display: flex; align-items: stretch; padding: 0; gap: 0; }
.library-item-open { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 15px; flex: 1 1 auto; min-width: 0; padding: 14px 0 14px 18px; cursor: pointer; }
.library-item-open:focus-visible { outline: 2px solid var(--ocean); outline-offset: -2px; border-radius: 18px 0 0 18px; }
.library-item-delete { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.library-item-delete:hover { color: var(--target); background: #fbe9e7; }

.intro { display: grid; place-items: center; min-height: calc(100svh - 70px); padding: 24px 0; }
.intro-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 44px #102a4314; }
.intro-copy { padding: 44px 46px 38px; display: flex; flex-direction: column; justify-content: center; }
.intro-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.intro-copy h1 { font-size: clamp(var(--pismo-velky), 3.4vw, calc(var(--pismo-velky) + 8px)); font-weight: 700; line-height: 1.15; margin-top: 0; }
.intro-lede { color: var(--muted); font-size: var(--pismo-text); line-height: 1.6; margin-top: 10px; }
.intro-choices { display: grid; gap: 10px; margin-top: 28px; }
.intro-choice { display: flex; align-items: center; gap: 15px; width: 100%; text-align: left; min-height: 74px; padding: 14px 18px; border: 1.5px solid var(--ocean); border-radius: 18px; background: var(--paper); transition: border-color .15s, background .15s; }
.intro-choice > .icon { width: 1.55em; height: 1.55em; color: var(--ocean); flex: 0 0 auto; }
.intro-choice strong { display: block; font-size: var(--pismo-text); font-weight: 650; line-height: 1.3; }
.intro-choice small { display: block; font-size: var(--pismo-min); color: var(--muted); margin-top: 3px; line-height: 1.45; }
.intro-choice > span:not(.intro-soon) { flex: 1 1 auto; min-width: 0; }
.intro-go { color: var(--ocean); flex: 0 0 auto; }
.intro-choice:not(:disabled):hover, .intro-choice:not(:disabled):focus-visible { border-color: var(--ocean); background: var(--soft); }
.intro-choice:disabled { opacity: 1; color: var(--muted); background: transparent; border-style: dashed; }
.intro-choice:disabled > .icon { color: #8fa3b0; }
.intro-soon { flex: 0 0 auto; font-size: var(--pismo-min); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--amber); background: var(--amber-soft); border-radius: 20px; padding: 5px 10px; }
.intro-note { font-size: var(--pismo-min); line-height: 1.6; color: var(--muted); margin-top: 16px; }

/* Uvodna scena podla navrhu 3 (docs/proposals/BIKESO_VETA_NA_CESTE_2026-09-21).
   Fotka, box so znackou, ciara aj veta su v jednom SVG, takze drzia spolu pri kazdej sirke. */
.intro-figure { position: relative; margin: 0; align-self: center; aspect-ratio: 1672 / 941; overflow: hidden; border-radius: 0; }
.intro-scene { display: block; width: 100%; height: auto; }
.intro-scene-mobil { display: none; }
.logo-ground { fill: var(--bikeso-ocean); }
.route { fill: none; stroke: var(--bikeso-ocean); stroke-linecap: butt; stroke-linejoin: round; }
.sentence { font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            fill: #fff; font-weight: 500; letter-spacing: -.8px; }
.sentence textPath { dominant-baseline: central; }
.wordmark { fill: #fff; text-anchor: middle; font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            font-weight: 800; letter-spacing: .06em; }
.position { fill: var(--bikeso-target); }

/* Závoj pod textom: bez neho sa svetlý text stráca na slnečnej lúke v dolnej časti fotky. */

@media (max-width: 900px) {
  .intro { min-height: 0; padding: 16px 0 28px; }
  .intro-card { grid-template-columns: minmax(0, 1fr); }
  .intro-copy { padding: 28px 22px 24px; order: 2; }
  .intro-figure { order: 1; aspect-ratio: 1052 / 941; min-height: 0; }
  .intro-scene-desktop { display: none; }
  .intro-scene-mobil { display: block; }
  .intro-choice { min-height: 68px; }
}

/* Prelet trasy. Celá plocha je scéna; ovládanie leží na nej, lebo na telefóne je
   obrazovka to jediné, čo je. Panel je dole, kam dočiahne palec. */
body.flyover-otvoreny { overflow: hidden; }
/* Ovládacie prvky Leafletu (mierka, licencia) majú vyšší z-index než scéna preletu
   a na telefóne cez ňu presvitali (okno appky, 24. 9. 2026). */
body.flyover-otvoreny .leaflet-control-container { visibility: hidden; }
/* Prelet je zvislý stĺpec: scéna hore, panel s profilom a ovládaním dole ako
   normálny blok, nie ako priehľadný pás cez spodok scény (Petrova výhrada
   22. 9. 2026: "teraz je prelet v pozadí"). Hlavička a tlačidlo zavrieť zostávajú
   prekryté na scéne — sú to len ovládacie prvky, nie obsah, ktorý treba oddeliť. */
.flyover { position: fixed; inset: 0; z-index: 900; background: #0E1B22;
  display: flex; flex-direction: column; }
/* Nad preletom sa stránka nepribližuje ani dvojťukom, ani dvoma prstami (tlačidlo Prehrať by
   ušlo z obrazovky, 2. 10. 2026); zvislý posun ostáva (rozbalený riadok zdrojov). Mapa má
   vlastné gestá (MapLibre), profil `touch-action: none`. */
.flyover { touch-action: pan-y; }
.flyover-obraz { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
/* Scéna WebGL kreslí s presahom 18 % za okraj a je neviditeľná; na obrazovku ide
   iba jej kópia na plátne, a to len keď má MapLibre všetky dlaždice. */
.flyover-scena { position: absolute; inset: -18%; opacity: 0; pointer-events: none; }
.flyover-platno { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flyover-scena canvas { outline: none; }
/* Zdroj podkladu, terénu a mapy: drobný, ale stále viditeľný (Esri, CC BY 4.0, ODbL),
   cez spodok scény. Ťuknutie ukáže plné znenia na tmavom podklade. */
.flyover-zdroj {
  position: absolute; left: 8px; right: 8px; bottom: 6px; margin: 0;
  color: rgba(251, 251, 249, .88); font-size: var(--pismo-min); line-height: 1.3;
  text-shadow: 0 0 3px rgba(0, 0, 0, .9); cursor: pointer;
  overflow-wrap: anywhere; white-space: pre-line;
  -webkit-tap-highlight-color: transparent;
}
/* Zbalený zdroj je vždy jeden riadok (29. 9. 2026): skracuje sa obsah, nie písmo.
   Zvyšok zdroja (`-dalej`) sa zmenšuje prvý a končí trojbodkou; povinné mená
   (`-pevne`: Powered by Esri, © OpenStreetMap) až keď už nič iné nezostane.
   Značka „i“ hovorí, že ťuknutie ukáže plné znenia (ako „Právne“ v Mapách). */
.flyover-zdroj[aria-expanded="false"] {
  display: flex; align-items: center; white-space: nowrap; overflow: hidden;
  overflow-wrap: normal;
}
.flyover-zdroj-pevne, .flyover-zdroj-dalej {
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.flyover-zdroj-pevne { flex: 0 1 auto; }
.flyover-zdroj-dalej { flex: 0 100000 auto; }
.flyover-zdroj-dalej::before { content: "·"; margin: 0 .3em; }
.flyover-zdroj-i {
  flex: none; display: inline-grid; place-items: center;
  /* 1,05 em a medzera 0,3 em: pri 21 px (Petrov telefón) sa „ⓘ Powered by Esri ·
     © OpenStreetMap“ zmestí na 359 px celé (merané 29. 9. 2026: 357 px). */
  width: 1.05em; height: 1.05em; margin-right: .3em; box-sizing: border-box;
  border: .09em solid currentColor; border-radius: 50%;
  font-weight: 700; font-style: normal; line-height: 1;
  box-shadow: 0 0 3px rgba(0, 0, 0, .6);
}
.flyover-zdroj.na-kresbe { color: #1B2A33; text-shadow: 0 0 3px rgba(251, 251, 249, .95); }
.flyover-zdroj.na-kresbe .flyover-zdroj-i { box-shadow: 0 0 3px rgba(251, 251, 249, .95); }
.flyover-zdroj[aria-expanded="true"], .flyover-zdroj.na-kresbe[aria-expanded="true"] {
  color: rgba(251, 251, 249, .95); text-shadow: none;
  padding: 8px 10px; border-radius: 8px; background: rgba(14, 27, 34, .82);
  max-height: calc(100% - 70px); overflow-y: auto; line-height: 1.45;
  z-index: 4; /* nad značkou jazdca (3); zložený riadok ostáva pod ňou */
}
.flyover-zdroj[hidden] { display: none; }
.flyover-zavri {
  position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 10px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(14, 27, 34, .62); color: #FBFBF9; font-size: calc(var(--zaklad) + 10px); line-height: 1;
  cursor: pointer;
}
.flyover-panel {
  position: static; flex: 0 0 auto;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  background: #0E1B22; border-top: 1px solid rgba(251, 251, 249, .1);
  display: flex; flex-direction: column; gap: 8px;
}
.flyover-profil { height: 74px; position: relative; }
/* Profil je ovládač polohy (ťah po ňom posúva prelet): stránka sa pod prstom nesmie
   posúvať ani približovať a ťuk nesmie blikať sivým zvýraznením. */
.flyover-profil {
  touch-action: none; cursor: pointer; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.flyover-profil:focus { outline: none; }
.flyover-profil:focus-visible { outline: 2px solid #7CC7E0; outline-offset: 2px; border-radius: 6px; }
.flyover-profil svg { width: 100%; height: 100%; display: block; }
/* Bodka je mimo SVG zámerne — vysvetlené vo flyover.js pri vykresliProfil().
   Rozmery sú PositionMarker.compactDiameter/compactRing z appky (menšia verzia
   tej istej značky pre profil a pás, nie znova vymyslené). */
.flyover-profil-bodka {
  position: absolute; left: 0; top: 0; width: 12px; height: 12px;
  margin: -6px 0 0 -6px; border-radius: 50%; background: #B42318;
  border: 2px solid #fff; box-sizing: content-box; pointer-events: none;
  will-change: transform; z-index: 2;
}
.flyover-profil-bodka[hidden] { display: none; }
.flyover-ovladanie { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.flyover-hlavne {
  flex: 1 1 auto;
  border: 0; border-radius: var(--bikeso-radius, 14px); padding: 12px 18px;
  background: var(--bikeso-ocean, #006A88); color: #fff; font: inherit;
  font-weight: 600; min-width: 116px; cursor: pointer;
}
.flyover-rychlost { display: flex; gap: 4px; }
.flyover-rychlost button {
  border: 1px solid rgba(251, 251, 249, .35); background: transparent; color: #FBFBF9;
  border-radius: 10px; padding: 9px 10px; font: inherit; font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.flyover-rychlost button[aria-pressed="true"] { background: rgba(124, 199, 224, .25); border-color: #7CC7E0; }
.flyover-poznamka {
  margin: 0; color: #B9CBD3; font-size: var(--pismo-min); line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 900px) {
  .flyover-panel { padding-inline: 24px; }
  .flyover-profil { height: 96px; }
}

/* Značka polohy v prelete: DOM prvok posúvaný cez map.project(), presne poloha
   z navigácie (`PositionMapMark`, `RouteMapLayers.rider`, Petr 26. a 27. 9. 2026):
   biela výplň 18 bodov, červený lem 3, pod ňou červená aura 36, ktorá za 1,25 s
   narastie z 0,72 na 1,45 a rozplynie sa z krytia 0,45. Aura tepe v CSS. */
.flyover-jazdec {
  /* Nádoba 24 × 24 (18 bodov kresby + 2 × 3 lem), stred na −12 (merané: 4,25 px).
     Aura je `::before`, bodka `::after`, aby aura ležala pod bodkou. */
  position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -12px 0 0 -12px;
  pointer-events: none; z-index: 3; will-change: transform;
}
.flyover-jazdec[hidden] { display: none; }
.flyover-jazdec::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 36px; height: 36px;
  margin: -18px 0 0 -18px; border-radius: 50%; background: #B42318; opacity: .45;
  animation: flyover-aura 1.25s ease-out infinite;
}
.flyover-jazdec::after {
  content: ''; position: absolute; left: 0; top: 0; width: 18px; height: 18px;
  border-radius: 50%; background: #FFFFFF; border: 3px solid #B42318;
}
@keyframes flyover-aura {
  from { transform: scale(.72); opacity: .45; }
  to   { transform: scale(1.45); opacity: 0; }
}

/* Čakanie pred preletom (Petr 29. 9. 2026: „zachovajme rovnakú, alebo podobnú logiku ako
   pri prelete po jazde“) — vzhľad čakacej obrazovky videa (`prelet-video.html`): papier
   #EDF4F7, karta s oceánovým lemom a rohom 18 bodov, celá trasa svetlosivá, bodka z navigácie
   ju za sebou kreslí červenou, v pozadí obraz scény za matným sklom. Leží nad celým preletom
   (aj nad profilom a tlačidlami), iba krížik na zavretie je nad ňou (`flyover-cakanie.js`). */
.flyover-cakanie { position: absolute; inset: 0; z-index: 2; background: #EDF4F7; overflow: hidden;
  transition: opacity .35s ease; }
.flyover-cakanie.konci { opacity: 0; pointer-events: none; }
.flyover-zavri { z-index: 3; }
/* Scéna je vlastná vrstva: značka jazdca v nej má z-index 3 a bez izolácie by presvitala
   cez kartu čakania (videné v Chrome 29. 9. 2026). */
.flyover-obraz { isolation: isolate; }
.flyover-cakanie-nahlad { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%;
  object-fit: cover; transform: translate(-50%, -50%) scale(1.08); filter: blur(22px); }
.flyover-cakanie-zavoj { position: absolute; inset: 0; background: #EDF4F7; opacity: .67; }
.flyover-cakanie-karta { position: absolute; left: 16px; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom));
  max-width: 30rem; margin: 0 auto; box-sizing: border-box; padding: 18px 16px 12px;
  background: #EDF4F7; border: 1.5px solid #006A88; border-radius: 18px; color: #102A43; text-align: center; }
.flyover-cakanie-nadpis { margin: 0; font-size: var(--pismo-titul-2); font-weight: 700; line-height: 1.25; }
.flyover-cakanie-cas { margin: 3px 0 10px; color: #52606D; font-variant-numeric: tabular-nums; }
.flyover-cakanie-priprava { margin: -3px auto 8px; max-width: 18rem; }
.flyover-cakanie-pruh { position: relative; height: 6px; border-radius: 3px; background: #D5DEE4; overflow: hidden; }
.flyover-cakanie-pruh-plna { position: absolute; inset: 0 auto 0 0; width: 0; background: #006A88;
  border-radius: 3px; transition: width .5s ease-out; }
/* Svetlý pás beží stále, aj keď krok nemá merateľný priebeh — obrazovka nikdy nestojí.
   Posun cez `transform`, aby ho prehliadač hýbal aj vtedy, keď hlavné vlákno počíta trasu letu. */
.flyover-cakanie-pruh::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 35%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.8), rgba(255,255,255,0));
  transform: translateX(-100%); animation: flyover-cakanie-pas 1.4s linear infinite; }
@keyframes flyover-cakanie-pas { to { transform: translateX(290%); } }
.flyover-cakanie-krok { margin: 6px 0 0; color: #52606D; font-size: var(--pismo-min); font-variant-numeric: tabular-nums; }
.flyover-cakanie-plocha { position: relative; height: 12rem; }
.flyover-cakanie-mapa { position: absolute; inset: 0; border-radius: 12px; background: center / cover no-repeat;
  opacity: 0; transition: opacity .35s ease; }
.flyover-cakanie-mapa.ma-mapu { opacity: 1; box-shadow: inset 0 0 0 1px rgba(16, 42, 67, .12); }
.flyover-cakanie-mapa::after { content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(237, 244, 247, .28); }
.flyover-cakanie-trasa { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.flyover-cakanie-lem { fill: none; stroke: #FFFFFF; stroke-linecap: round; stroke-linejoin: round; }
.flyover-cakanie-cela { fill: none; stroke: #CBD3D9; stroke-linecap: round; stroke-linejoin: round; }
.flyover-cakanie-hotova { fill: none; stroke: #B42318; stroke-linecap: round; stroke-linejoin: round; }
.flyover-cakanie-aura { fill: #B42318; transform-box: fill-box; transform-origin: center;
  animation: flyover-cakanie-aura 1.25s ease-out infinite; }
.flyover-cakanie-bodka { fill: #FFFFFF; stroke: #B42318; }
@keyframes flyover-cakanie-aura { from { transform: scale(.72); opacity: .45; } to { transform: scale(1.45); opacity: 0; } }
.flyover-cakanie-zrus[hidden] { display: none; }
/* Zhrnutie na konci preletu (2. 10. 2026): karta B z videa cez obraz, panel ostáva dostupný. */
.flyover-zhrnutie { position: absolute; inset: 0; z-index: 2; background: #EDF4F7; overflow: hidden;
  opacity: 0; transition: opacity .4s ease; cursor: pointer; }
.flyover-zhrnutie.ukazane { opacity: 1; }
.flyover-zhrnutie-karta { top: calc(64px + env(safe-area-inset-top)); bottom: auto; transform: translateY(14px);
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
  transition: transform .45s ease; text-align: center; }
/* Petr 2. 10. 2026: mapa má byť hlavná časť karty — dostane všetku výšku, ktorá ostane. */
.flyover-zhrnutie-karta .flyover-zhrnutie-plocha { flex: 1 1 auto; height: auto; min-height: 0; }
.flyover-zhrnutie-nazov { font-size: calc(var(--zaklad) + 2px); line-height: 1.2; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: none; }
.flyover-zhrnutie-riadok { margin: 0; flex: none; display: flex; flex-wrap: wrap; justify-content: center;
  align-items: baseline; column-gap: 12px; row-gap: 0; }
.flyover-zhrnutie.ukazane .flyover-zhrnutie-karta { transform: none; }
.flyover-zhrnutie-znacka { display: block; height: 22px; margin: 0 auto 8px; }
.flyover-zhrnutie-den { color: #52606D; font-size: var(--pismo-min); }
.flyover-zhrnutie-km { color: #102A43; white-space: nowrap; }
.flyover-zhrnutie-km b { font-size: 1.8em; line-height: 1; font-weight: 700; }
.flyover-zhrnutie-cisla { display: flex; gap: 8px; flex: none; }
.flyover-zhrnutie-cislo { flex: 1 1 0; min-width: 0; padding: 6px 4px; border: 2px solid #006A88; border-radius: 12px;
  background: #FFFFFF; display: flex; flex-direction: column; gap: 2px; }
/* Popis sa radšej zalomí, než by klesol pod `--pismo-min` (vzhlad.md); hodnotu zmenší `vojdi`
   (flyover-cakanie.js) najviac po `--pismo-min`, nie tri bodky. */
.flyover-zhrnutie-popis { display: block; color: #4A6076; font-size: var(--pismo-min); font-weight: 600; line-height: 1.15;
  overflow-wrap: break-word; hyphens: auto; }
.flyover-zhrnutie-hodnota { display: block; color: #102A43; font-weight: 700; font-size: 1.2em; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; }
/* Značka jazdca leží nad obrazom (z-index 3) — pod kartou zhrnutia ju nevidno. */
.flyover-obraz.so-zhrnutim .flyover-jazdec { visibility: hidden; }
.flyover-zhrnutie-hodnota small { font-size: .55em; margin-left: 2px; color: #52606D; }
.flyover-zhrnutie-zdroj { margin: 0; flex: none; color: #52606D; font-size: var(--pismo-min); line-height: 1.3; }
/* Snímka scény nad celou jazdou má trasu v sebe — obrázok bez zosvetlenia a trasa na papieri preč. */
.flyover-cakanie-mapa.snimka { transition: opacity .35s ease; }
.flyover-cakanie-mapa.snimka::after { display: none; }
.flyover-cakanie-trasa.skryta { visibility: hidden; }
.flyover-zhrnutie-karta.tesna { gap: 6px; }
.flyover-zhrnutie-karta.tesna .flyover-zhrnutie-nazov { -webkit-line-clamp: 1; }
.flyover-zhrnutie-karta.tesna .flyover-zhrnutie-km b { font-size: 1.5em; }
.flyover-zhrnutie-karta.tesna .flyover-zhrnutie-cislo { padding: 4px; }
.flyover-zhrnutie-karta.tesna .flyover-zhrnutie-hodnota { font-size: 1.05em; }
@media (prefers-reduced-motion: reduce) {
  .flyover-zhrnutie, .flyover-zhrnutie-karta { transition: none; }
}
.flyover-cakanie-zrus { margin-top: 6px; border: 0; background: transparent; color: #006A88; padding: 10px 12px;
  font: inherit; font-size: var(--pismo-text); font-weight: 600; cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  .flyover-cakanie-pruh::after { animation: none; display: none; }
  .flyover-cakanie-aura { animation: none; opacity: .25; }
}

/* Skúšobný prepínač ostrosti satelitu vedľa „Spusti prelet" (23. 9. 2026). */
.flyover-ostrost { display: inline-flex; align-items: center; gap: 8px; font-size: var(--pismo-text);
  color: var(--bikeso-ink-soft, #4A6076); cursor: pointer; min-height: 44px; }
.flyover-ostrost input { width: 18px; height: 18px; accent-color: var(--bikeso-ocean, #006A88); margin: 0; }

/* Uložená jazda (24. 9. 2026): čísla pod názvom, stúpanie ako jedna položka, graf na klepnutie. */
.stored-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.stored-title .text-button { font-size: var(--pismo-text); font-weight: 650; }
.ride-facts { margin-top: 6px; font-size: var(--pismo-text); font-weight: 650; color: var(--ink); }
.ride-choices { margin-top: 3px; font-size: var(--pismo-min); line-height: 1.5; color: var(--muted); }
.climb-toggle { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 12px 14px; border: 1.5px solid var(--ocean); border-radius: 18px; background: var(--white); text-align: left; font-size: var(--pismo-text); }
.climb-toggle strong { margin-left: auto; font-weight: 700; }
.climb-toggle .icon { width: 1em; height: 1em; color: var(--ocean); transition: transform .15s; }
.climb-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.climb-unknown { color: var(--muted); }
#stored-profile { margin-top: 10px; }
.ride-name-form { margin-top: 12px; }
.ride-name-form label { display: block; font-size: var(--pismo-text); font-weight: 650; }
.ride-name-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.ride-name-actions .text-button { font-size: var(--pismo-text); }
.ride-name-error { color: var(--muted); font-size: var(--pismo-min); margin-top: 6px; }
.ride-name-error:empty { display: none; }
/* Hlas jazdy (Petr 5. 10. 2026): dva riadky s hodnotou pri uložení jazdy a v jej detaile —
   úroveň Sprievodcu a „Čo ma čaká na trase“ pre túto jazdu. Písmo iba tokenmi. */
.ride-voice { min-width: 0; margin: 14px 0 0; padding: 0; border: 0; }
.ride-voice legend { padding: 0; font-size: var(--pismo-text); font-weight: 650; }
.ride-voice .ride-voice-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .3rem 1rem; min-height: 3.1rem; padding: .4rem 0; border-top: 1px solid var(--line);
  font-size: var(--pismo-text); font-weight: 400; }
.ride-voice .ride-voice-row:first-of-type { border-top: 0; }
.ride-voice .ride-voice-row span { flex: 1 1 auto; min-width: 0; }
/* Na úzkej obrazovke sa výber zalomí pod názov na celú šírku — „Podľa Nastavení · zapnuté“
   sa vedľa názvu nezmestí a orezaná hodnota by nič nepovedala. */
.ride-voice .ride-voice-row select { flex: 1 1 14.5em; width: auto; max-width: 100%; margin-top: 0;
  color: var(--ocean-dark); font-weight: 650; }
.ride-voice-note, .ride-voice-status { margin-top: 6px; color: var(--muted); font-size: var(--pismo-min); }
.ride-voice-status:empty { display: none; }
.ride-voice-card { margin-top: 14px; }

/* Okno appky (24. 9. 2026). Rozcestník aj návrat naň je v appke domovská obrazovka
   a „Domov" v lište appky, preto značka v hlavičke nikam nevedie a hlavička sa ukáže
   iba vtedy, keď má čo povedať (výpočet nedostupný alebo ukážka). Sťahovanie súborov
   appka nevie a nepotrebuje: uložená jazda ide rovno do navigácie. */
.v-appke .topbar .brand { display: none; }
.v-appke .topbar:has(.engine-badge[hidden]) { display: none; }
.v-appke .topbar { height: auto; padding-top: 10px; padding-bottom: 10px; }
.v-appke .export-button, .v-appke #stored-export-tcx, .v-appke #manual-export-gpx, .v-appke #manual-export-tcx, .v-appke #manual-export-bike { display: none; }

/* iPhone (Safari aj okno appky): pole času má vlastnú šírku, ktorá ignoruje `width`,
   a „Späť do" pretieklo cez okraj karty (simulátor 24. 9. 2026). Bez natívneho
   vzhľadu sa pole správa ako ostatné. */
input[type="time"] { -webkit-appearance: none; appearance: none; display: block; }
input[type="time"]::-webkit-date-and-time-value { text-align: left; }

/* Cieľ a miesta „Cez“ (26. 9. 2026). Rovnaké prvky ako štart a zastávky — nový vzhľad
   by jazdcovi naznačil, že ide o inú vec. */
.shape-field { margin: 16px 0 10px; padding: 0; border: 0; min-width: 0; }
.shape-field > legend { color: #33525e; font-size: var(--pismo-text); font-weight: 700; margin-bottom: 9px; }
.via-field { margin: 12px 0 0; }
.via-legend { margin: 0; color: #33525e; font-size: var(--pismo-text); font-weight: 700; }
.via-legend small { display: block; color: var(--muted); font-size: var(--pismo-min); font-weight: 500; margin-top: 2px; }
.via-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.via-list:empty { display: none; }
.via-list li { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 14px; padding: 4px 6px 4px 12px; background: var(--paper); }
.via-list .via-number { flex: none; display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: #e5f1f7; color: #00455b; font-size: var(--pismo-min); font-weight: 700; }
.via-list .via-name { flex: 1; min-width: 0; text-align: left; color: var(--ink); font-size: var(--pismo-text); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.via-list .text-button { padding: 10px 8px; min-height: 44px; }
.via-add { padding: 10px 0; min-height: 44px; text-align: left; }

/* Konto (prístup testerov v18, 28. 9. 2026): jedna karta na papieri, jedna plná akcia. */
.konto-stranka { background: var(--page); }
.konto { max-width: 30rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.konto-znacka { margin: .5rem 0 1.5rem; }
.konto-karta { background: var(--paper); border: 1.5px solid var(--ocean); border-radius: 18px; padding: 1.25rem; }
.konto-karta h1 { font-size: var(--pismo-titul-1); line-height: 1.2; margin: 0 0 1rem; }
.konto-karta h2 { font-size: var(--pismo-titul-3); margin: 1.5rem 0 .5rem; }
.konto-karta label { margin-top: .9rem; }
.konto-karta input[type="email"], .konto-karta input[type="password"], .konto-karta input[type="text"] {
  width: 100%; min-height: 46px; padding: 10px 11px; margin-top: 6px; border: 1px solid #bbd3de;
  border-radius: 9px; background: var(--white); font-size: var(--pismo-text); box-sizing: border-box; }
.konto-karta input[readonly] { color: var(--muted); background: var(--page); }
.konto-poznamka { color: var(--muted); font-size: var(--pismo-min); line-height: 1.5; margin: .6rem 0 0; }
.konto-hlavne, .konto-druhe { display: block; width: 100%; min-height: 48px; margin-top: 1.1rem; border-radius: 12px;
  font-size: var(--pismo-text); font-weight: 700; text-align: center; text-decoration: none; line-height: 48px; padding: 0 1rem; box-sizing: border-box; }
.konto-hlavne { background: var(--ocean); color: var(--white); border: 0; }
.konto-druhe { background: transparent; color: var(--ocean-dark); border: 1.5px solid var(--ocean); }
.konto-zariadenia { list-style: none; padding: 0; margin: 0; }
.konto-zariadenia li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: var(--pismo-min); }
.konto-zmazat { margin-top: 1.5rem; }
.konto-zmazat summary { color: var(--muted); font-size: var(--pismo-min); }
.konto-pas { margin-top: 1.5rem; }
.konto-odkazy { display: flex; flex-direction: column; align-items: stretch; margin-top: .6rem; }
.konto-odkazy .text-button, #zalozenie > .text-button, #zabudnute > .text-button,
#zalozenie-form .text-button, #zabudnute-form .text-button { display: block; margin-top: .4rem; min-height: 44px; text-align: left; }
.konto-poucenie { margin-top: 1rem; font-size: var(--pismo-min); line-height: 1.5; }
.konto-poucenie summary { color: var(--ocean-dark); font-weight: 700; min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.konto-poucenie p { margin: .5rem 0; }
.konto-suhlas { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--pismo-min); line-height: 1.5; }
.konto-suhlas input { margin-top: .25rem; width: 1.2rem; height: 1.2rem; flex: none; }
.konto-karta input[name="kod"], .nast-overenie input[name="kod"] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
.nast-overenie { margin: .5rem 0 1rem; padding: .8rem 1rem; border-radius: 12px; background: var(--soft); }
.nast-overenie input[name="kod"] { width: 100%; min-height: 44px; margin-top: 6px; box-sizing: border-box; }
.konto-hlasenie { margin-top: 1rem; padding: .75rem 1rem; border-radius: 12px; border: 1.5px solid var(--ocean); background: var(--paper); font-size: var(--pismo-text); }

/* Nastavenia a konto na webe (Petr 29. 9. 2026): tie isté voľby ako Nastavenia v telefóne,
   na monitore v mriežke kariet s bočným menu. Karta ako v appke (roh 18, oceánový lem). */
.nast { max-width: 78rem; margin: 0 auto; padding: 1.5rem 1.25rem 5rem; }
.nast-hlavicka { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.4rem 1.6rem;
  border-radius: var(--bikeso-radius-lg); background: linear-gradient(120deg, var(--paper) 0%, var(--soft) 100%);
  border: 1px solid var(--line); margin-bottom: 1.75rem; }
.nast-titul { flex: 1 1 22rem; min-width: 0; }
.nast-titul h1 { font-size: var(--pismo-velky); line-height: 1.1; letter-spacing: -.01em; }
.nast-titul p { color: var(--muted); font-size: var(--pismo-min); margin-top: .35rem; max-width: 42rem; }
.nast-stav { display: inline-flex; align-items: center; gap: .5em; padding: .45em .9em; border-radius: 999px;
  font-size: var(--pismo-min); font-weight: 600; background: var(--paper); border: 1px solid var(--line); color: var(--ocean-dark); white-space: nowrap; }
.nast-stav::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--ocean); }
.nast-stav[data-stav="uklada"] { color: var(--amber); background: var(--amber-soft); border-color: var(--amber-fill); }
.nast-stav[data-stav="uklada"]::before { background: var(--amber-fill); animation: nast-pulz 1s ease-in-out infinite; }
.nast-stav[data-stav="chyba"] { color: var(--target); border-color: var(--target); }
.nast-stav[data-stav="chyba"]::before { background: var(--target); }
@keyframes nast-pulz { 50% { opacity: .3; } }

.nast-telo { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.nast-menu { position: sticky; top: 1.25rem; display: flex; flex-direction: column; gap: .15rem; }
.nast-menu-skupina { font-size: var(--pismo-min); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 1.1rem 0 .35rem .75rem; }
.nast-menu-skupina:first-child { margin-top: 0; }
.nast-menu a { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: 12px;
  color: var(--ink); text-decoration: none; font-size: var(--pismo-min); font-weight: 600; transition: background .15s, color .15s; }
.nast-menu a .icon { color: var(--ocean); }
.nast-menu a:hover { background: var(--paper); }
.nast-menu a.je-aktivny { background: var(--paper); color: var(--ocean-dark); box-shadow: inset 3px 0 0 var(--ocean); }

.nast-suhrn { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.3rem 1.5rem; border-radius: 18px;
  background: linear-gradient(125deg, var(--bikeso-ocean-dark), var(--ocean)); color: var(--white); }
.nast-suhrn-ikona { width: 2.2em; height: 2.2em; flex: 0 0 auto; opacity: .9; }
.nast-suhrn-nadpis { font-size: var(--pismo-min); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.nast-suhrn-riadok { font-size: var(--pismo-titul-2); font-weight: 700; line-height: 1.3; margin-top: .2rem; }
.nast-suhrn-telefon { font-size: var(--pismo-min); opacity: .9; margin-top: .45rem; }

.nast-skupina { font-size: var(--pismo-titul-2); margin: 2.2rem 0 .9rem; scroll-margin-top: 1rem; }
.nast-mriezka { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.1rem; }
.nast-karta { background: var(--paper); border: 1.5px solid var(--ocean); border-radius: 18px; padding: 1.2rem 1.35rem 1.35rem;
  display: flex; flex-direction: column; gap: .15rem; scroll-margin-top: 1.25rem; transition: box-shadow .2s; }
.nast-karta:hover { box-shadow: 0 6px 22px rgba(16, 42, 67, .08); }
.nast-siroka { grid-column: 1 / -1; }
.nast-karta h3 { display: flex; align-items: center; gap: .7rem; font-size: var(--pismo-titul-3); margin-bottom: .55rem; }
.nast-karta h4 { font-size: var(--pismo-text); margin: 1rem 0 .2rem; }
.nast-ikona { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 12px; background: var(--soft); color: var(--ocean); flex: 0 0 auto; }
.nast-ikona .icon { width: 1.25em; height: 1.25em; }
.nast-opis { color: var(--muted); font-size: var(--pismo-min); line-height: 1.5; margin-top: .55rem; }
.nast-email { margin-top: -.35rem; }

.nast-prepinac { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0;
  border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 600; margin: 0; }
.nast-prepinac.je-vypnuty { color: var(--muted); cursor: not-allowed; }
.nast-prepinac input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; position: relative; width: 3.05em; height: 1.85em; margin: 0;
  border-radius: 999px; background: var(--bikeso-hair); cursor: inherit; transition: background .2s; }
.nast-prepinac input::after { content: ""; position: absolute; top: .18em; left: .18em; width: 1.49em; height: 1.49em; border-radius: 50%;
  background: var(--white); box-shadow: 0 1px 3px rgba(16, 42, 67, .3); transition: transform .2s; }
.nast-prepinac input:checked { background: var(--ocean); }
.nast-prepinac input:checked::after { transform: translateX(1.2em); }
.nast-prepinac input:disabled { opacity: .5; }

.nast-segment { display: flex; padding: .25rem; gap: .25rem; border-radius: 14px; background: var(--soft); }
.nast-segment label { flex: 1; margin: 0; }
.nast-segment input { position: absolute; opacity: 0; pointer-events: none; }
.nast-segment span { display: block; text-align: center; padding: .6rem .4rem; border-radius: 11px; font-size: var(--pismo-min);
  font-weight: 600; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; overflow-wrap: anywhere; }
.nast-segment input:checked + span { background: var(--paper); color: var(--ocean-dark); box-shadow: 0 1px 4px rgba(16, 42, 67, .15); }
.nast-segment input:focus-visible + span { outline: 3px solid #51b0d3; outline-offset: 2px; }

.nast-karta form label { display: block; margin-top: .75rem; font-size: var(--pismo-min); font-weight: 600; }
.nast-karta form input[type="password"], .nast-karta form input[type="text"] { display: block; width: 100%; margin-top: .3rem; min-height: 46px; padding: 0 .8rem;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); font-size: var(--pismo-text); }
.nast-karta form input[type="password"]:focus, .nast-karta form input[type="text"]:focus { border-color: var(--ocean); outline: none; }
.nast-karta form label.nast-zaskrtnutie { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.bicykel-akcie { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .75rem; flex-shrink: 1; }
.bicykel-akcie select { width: auto; margin-top: 0; }
.bicykel-akcie .nast-zaskrtnutie { display: flex; align-items: center; gap: .35rem; font-weight: 400; }
.nast-druhe { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 1rem; padding: 0 1.2em;
  border-radius: 12px; border: 1.5px solid var(--ocean); background: transparent; color: var(--ocean-dark); font-weight: 700;
  font-size: var(--pismo-text); text-decoration: none; align-self: flex-start; }
.nast-druhe:hover { background: var(--soft); }
.nast-nebezpecne { border-color: var(--target); color: var(--target); }
.nast-nebezpecne:hover { background: #fbeceb; }
.nast-riadok-akcii { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.nast-riadok-akcii .nast-druhe { margin-top: 0; }
.nast .konto-zariadenia li { padding: .7rem 0; }

/* Schválené zadanie: prehľad hodnôt, jediný otvorený výberový panel. */
.guided-heading { font-size: var(--pismo-titul-2); margin: 0 0 .7rem; }
.guided-rows { display: grid; gap: .45rem; margin-bottom: 1rem; }
.guided-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; min-height: 3.1rem;
  padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: .75rem; background: var(--paper);
  color: var(--ink); text-align: left; font-size: var(--pismo-text); }
.guided-row strong { color: var(--ocean-dark); text-align: right; font-weight: 650; }
.guided-row:focus-visible, .point-handle:focus-visible, .elevation-scrub:focus-visible { outline: .18rem solid var(--ocean); outline-offset: .15rem; }
#guided-planner:not(.panel-open) .form-step, #guided-planner:not(.panel-open) #next-step { display: none; }
#guided-planner.panel-open #plan-button { display: none; }
#guided-planner.panel-open .form-step:not([hidden]) { margin: 1rem 0; padding: 1rem; border: 1.5px solid var(--ocean); border-radius: 1rem; background: var(--paper); }
#guided-planner.panel-open .form-step .step-description { margin-bottom: 1rem; }
.route-list { grid-template-columns: minmax(0, 1fr); gap: .45rem; }
.route-card, .route-card[aria-pressed="true"] { min-height: 0; padding: .65rem .85rem; }
.route-card strong { margin: 0; }
.route-meta { padding-top: .2rem; margin: 0; }
.elevation-climb { fill: var(--ocean); fill-opacity: .13; }
.elevation-cursor { stroke: var(--ocean-dark); stroke-width: 3; }
.elevation-scrub { position: absolute; inset: 0 0 1rem; width: 100%; height: calc(100% - 1rem); opacity: .02; cursor: crosshair; }
.point-handle { touch-action: none; cursor: grab; border: 0; background: transparent; color: var(--ocean-dark); min-width: 2.3rem; min-height: 2.3rem; font-size: var(--pismo-text); }
.manual-points li > .point-handle + span { display: grid; place-items: center; width: 1.6em; height: 1.6em; flex: 0 0 auto; border-radius: 50%; background: var(--ocean); color: white; font-size: var(--pismo-min); font-weight: 750; }
.manual-points li .point-handle { margin-left: 0; }
.manual-pending-label { font-size: var(--pismo-min); color: var(--ocean-dark); }
.nast-vybrana-skupina { font-size: var(--pismo-titul-2); margin: 0 0 .75rem; }
.s-nastaveniami:not(.krok-za-krokom) .nast-sekcia:not(.group-visible) { display: none; }
.s-nastaveniami:not(.krok-za-krokom) .nast-suhrn { display: none; }
.s-nastaveniami:not(.krok-za-krokom) .nast-mriezka { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; }
.s-nastaveniami:not(.krok-za-krokom) .nast-skupina { font-size: var(--pismo-min); text-transform: uppercase; letter-spacing: .06em; margin: 1.1rem 0 .4rem; }
.nast-karta { padding: 0; overflow: hidden; }
.nast-detail summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.4rem; padding: .65rem .9rem; cursor: pointer; font-size: var(--pismo-text); }
.nast-detail summary::marker { color: var(--ocean); }
.nast-detail-nazov { font-weight: 700; }
.nast-detail-hodnota { color: var(--ocean-dark); font-size: var(--pismo-min); text-align: right; overflow-wrap: anywhere; }
.nast-detail-obsah { padding: .2rem 1rem 1rem; border-top: 1px solid var(--line); }
.nast-detail-obsah > h3 { display: none; }
.konto-zariadenia-detail { margin: .8rem 0; }
.konto-zariadenia-detail summary { font-weight: 650; cursor: pointer; }
.nast-sekcia .nast-opis { font-size: var(--pismo-min); }
.krok-za-krokom .nast-vybrana-skupina { display: none; }
@media (max-width: 900px) {
  .nast-menu { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .nast-menu a { white-space: normal; min-height: 3rem; }
  .nast-detail summary { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .nast-detail-hodnota { text-align: left; }
}
.result-actions { flex-wrap: wrap; }
.result-actions #save-ride { order: 2; flex: 1 1 100%; margin-left: 0; }
@media (max-width: 760px) {
  .route-list { display: grid; overflow: visible; }
  .route-card { flex: auto; }
  .result-actions { flex-direction: row; }
  .result-actions #save-ride { order: 2; }
}

.s-nastaveniami .konto-hlasenia { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); width: min(32rem, calc(100% - 2rem));
  max-width: none; padding: 0; margin: 0; z-index: 20; }
.s-nastaveniami .konto-hlasenie { margin: 0; box-shadow: 0 10px 30px rgba(16, 42, 67, .2); }

/* Sekcie Nastavení v poradí krokov (návrh SPRIEVODCA_NASTAVENIA §5, 29. 9. 2026). Voľba, ktorá
   sa nastavuje iba v telefóne, je oznam s dôvodom — tlmený podklad, bez prepínača. */
.nast-sekcia { scroll-margin-top: 1rem; }
.nast-oznam { background: var(--soft); }
.nast-oznam:hover { box-shadow: none; }
.nast-oznam .nast-ikona { background: var(--paper); }
.nast-oznam .nast-opis { color: var(--ink); }
.konto-jazyk { margin-bottom: 1.1rem; }

/* Prvé prihlásenie: „Nastaviť / Preskočiť“ (návrh §3). */
.s-vitanim .nast-hlavicka, .s-vitanim .nast-telo { display: none; }
.kzk-vitaj { display: grid; place-items: center; min-height: 60vh; padding: 1rem 0; }
.kzk-vitaj-karta { width: min(100%, 30rem); box-sizing: border-box; text-align: center; background: var(--paper);
  border: 1.5px solid var(--ocean); border-radius: 18px; padding: 2rem 1.5rem 1.5rem; }
.kzk-vitaj-znak { width: 2.6rem; height: auto; }
.kzk-vitaj-karta h1 { font-size: var(--pismo-titul-1); line-height: 1.2; margin: .8rem 0 .6rem; }
.kzk-vitaj-karta p { color: var(--muted); font-size: var(--pismo-text); line-height: 1.5; margin: 0 0 .6rem; }
.kzk-vitaj-karta .konto-hlavne { margin-top: 1.4rem; }
.kzk-preskocit { display: block; width: 100%; margin-top: .4rem; font-weight: 600; }

/* Nastaviť krok za krokom (návrh §1, vzor kalkulačky renty): tie isté karty, po jednej
   sekcii, hore pás postupu, dole Späť · Ukončiť · Ďalej. */
.kzk-spustit { margin-top: 0; gap: .55em; }
.kzk-spustit .icon { color: var(--ocean); }
.krok-za-krokom .nast-menu, .krok-za-krokom .kzk-spustit, .krok-za-krokom .nast-titul p { display: none; }
.krok-za-krokom .nast-telo { grid-template-columns: minmax(0, 1fr); max-width: 52rem; margin: 0 auto; }
.krok-za-krokom .nast-obsah { display: flex; flex-direction: column; }
.krok-za-krokom .nast-sekcia:not(.je-krok) { display: none; }
.krok-za-krokom .nast-suhrn { display: none; order: 2; margin-top: 1.1rem; }
.krok-za-krokom.kzk-s-nasledkom .nast-suhrn { display: flex; }
.krok-za-krokom .nast-sekcia { order: 1; }
.krok-za-krokom .nast-skupina { margin-top: 1.1rem; }
.krok-za-krokom .kzk-tlacidla { order: 3; }
.krok-za-krokom .kzk-koniec { order: 1; }
.kzk-pas { order: 0; padding: 1.1rem 1.3rem; border-radius: 18px; background: var(--paper); border: 1.5px solid var(--line); }
.kzk-pocet { font-size: var(--pismo-min); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ocean-dark); margin: 0; }
.kzk-postup { height: .5rem; margin-top: .6rem; border-radius: 999px; background: var(--soft); overflow: hidden; }
.kzk-postup span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ocean); transition: width .25s ease; }
.kzk-veta { font-size: var(--pismo-titul-3); font-weight: 600; line-height: 1.35; margin: .8rem 0 0; }
.kzk-tlacidla { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.kzk-medzera { flex: 1 1 auto; }
.kzk-tlacidla .konto-hlavne { width: auto; min-width: 9rem; margin-top: 0; }
.kzk-koniec { display: grid; place-items: center; padding: 1.5rem 0; }
.kzk-koniec-karta { width: min(100%, 32rem); box-sizing: border-box; text-align: center; background: var(--paper);
  border: 1.5px solid var(--ocean); border-radius: 18px; padding: 2rem 1.5rem 1.5rem; }
.kzk-koniec-karta h2 { font-size: var(--pismo-titul-1); line-height: 1.2; margin: 0 0 .5rem; outline: none; }
.kzk-koniec-karta > p { font-size: var(--pismo-text); margin: 0 0 .4rem; }
.kzk-koniec-karta .text-button { display: block; width: 100%; margin-top: .4rem; }
@media (prefers-reduced-motion: reduce) { .kzk-postup span { transition: none; } }

@media (max-width: 900px) {
  .nast { padding: 1rem 1rem 5rem; }
  .nast-hlavicka { padding: 1.1rem 1.2rem; gap: 1rem; }
  .nast-titul { flex-basis: 100%; }
  .nast-stav { margin-left: auto; }
  .nast-suhrn { padding: 1.1rem 1.2rem; }
  .nast-suhrn-ikona { display: none; }
  .nast-telo { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .nast-menu { position: sticky; top: 0; z-index: 5; flex-direction: row; overflow-x: auto; gap: .4rem; padding: .6rem 0;
    margin: 0 -1rem; padding-inline: 1rem; background: var(--page); scrollbar-width: none; }
  .nast-menu-skupina { display: none; }
  .nast-menu a { flex: 0 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
  .nast-menu a.je-aktivny { box-shadow: none; border-color: var(--ocean); }
  .nast-karta, .nast-skupina, .nast-sekcia { scroll-margin-top: 4.5rem; }
  .kzk-spustit { order: 3; flex: 1 1 100%; }
  .kzk-tlacidla { gap: .6rem; }
  .kzk-tlacidla .konto-hlavne { min-width: 0; flex: 1 1 8rem; }
}
@media (max-width: 560px) {
  .intro-heading-row { flex-wrap: wrap; }
}

/* Mapa „Kde som jazdil“ (29. 9. 2026) — Moje jazdy na webe aj okno appky.
   Oceánová výplň znamená „tu som jazdil“, červená sa nepoužíva (pravidlo značky). */
.ksj-karta { display: grid; gap: 10px; margin: 0 0 22px; }
.ksj-karta h3 { margin: 0; }
.ksj-suhrn { margin: 0 0 12px; font-size: var(--pismo-titul-3); font-weight: 650; color: var(--ink); }
.ksj-poznamka, .ksj-detail, .ksj-pocet { margin: 0; font-size: var(--pismo-text); color: var(--muted); line-height: 1.45; }
.ksj-detail { min-height: 2.9em; margin: 12px 0 18px; }
.ksj-detail strong { color: var(--ink); font-weight: 650; }
.ksj-mapa { height: 22rem; border: 1.5px solid var(--ocean); border-radius: 18px; overflow: hidden; background: var(--bikeso-paper); }
.ksj-mapa .maplibregl-ctrl-attrib { font-size: var(--pismo-min); }
.ksj-zoznam { display: grid; gap: 18px; }
.ksj-krajina h3 { margin: 0 0 4px; font-size: var(--pismo-titul-3); color: var(--ink); }
.ksj-kraj { margin-top: 10px; border: 1.5px solid var(--ocean); border-radius: 18px; background: var(--paper); }
.ksj-kraj summary { display: flex; gap: 12px; padding: 14px 18px; cursor: pointer; font-size: var(--pismo-text); color: var(--ink); }
.ksj-kraj-meno { flex: 1 1 auto; font-weight: 650; }
.ksj-kraj-pocet { color: var(--muted); font-variant-numeric: tabular-nums; }
.ksj-obce { list-style: none; margin: 0; padding: 0 10px 10px; display: grid; gap: 2px; }
.ksj-obec { display: flex; gap: 12px; width: 100%; padding: 10px 8px; border: 0; border-radius: 10px; background: none; text-align: left; font: inherit; font-size: var(--pismo-text); color: var(--ink); cursor: pointer; }
.ksj-obec span { flex: 1 1 auto; }
.ksj-obec small { font-size: var(--pismo-min); color: var(--muted); }
.ksj-obec:hover, .ksj-obec:focus-visible { background: var(--soft); }
.ksj-zdroj { margin: 18px 0 0; font-size: var(--pismo-min); color: var(--muted); }
.ksj-dovolenky-odkaz { display: inline-block; margin-top: 10px; text-decoration: none; }
/* Míňané miesta a rozhodnutia o miestach (29. 9. 2026). Vysvetlenie je vždy pod tlačidlom. */
.ksj-minane { display: grid; gap: 10px; margin: 0 0 22px; }
.ksj-minane h3 { margin: 8px 0 0; font-size: var(--pismo-titul-3); color: var(--ink); }
.ksj-miesta { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ksj-miesto { display: grid; gap: 6px; padding: 14px 16px; border: 1.5px solid var(--ocean); border-radius: 18px; background: var(--paper); }
.ksj-miesto-riadok { margin: 0; font-size: var(--pismo-text); color: var(--ink); line-height: 1.4; }
.ksj-volba { justify-self: start; padding: 0.55em 1em; border: 1.5px solid var(--ocean); border-radius: 12px; background: var(--paper); color: var(--ocean); font: inherit; font-size: var(--pismo-text); font-weight: 650; cursor: pointer; }
.ksj-vysvetlenie { margin: 0 0 6px; font-size: var(--pismo-min); color: var(--muted); line-height: 1.4; }
.ksj-rozhodnutie-stav { margin: 0; font-size: var(--pismo-text); color: var(--ink); }
.ksj-odkaz { justify-self: start; padding: 0; border: 0; background: none; color: var(--ocean); font: inherit; font-size: var(--pismo-text); font-weight: 650; cursor: pointer; }

/* Želanie „cez nové obce“ (29. 9. 2026) — pod voľbou skupiny a batožiny. */
.nove-obce-volba { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 14px 18px; border: 1.5px solid var(--ocean); border-radius: 18px; background: var(--paper); cursor: pointer; }
.nove-obce-volba[hidden] { display: none; }
.nove-obce-volba input { width: 1.2em; height: 1.2em; margin-top: .15em; accent-color: var(--ocean); flex: 0 0 auto; }
.nove-obce-volba strong { display: block; font-size: var(--pismo-text); color: var(--ink); font-weight: 650; }
.nove-obce-volba small { display: block; font-size: var(--pismo-min); color: var(--muted); margin-top: 3px; line-height: 1.45; }
/* Navigácia plánovača (navigacia.js, 29. 9. 2026): celé menu pod jednou ikonkou vpravo
   hore na každej šírke (Petr: „ako to mám na webe hechtberger.com“). Panel sa vysunie
   sprava cez celú výšku, za ním stmavený závoj; klik naň, krížik aj Escape ho zavrú.
   Predtým boli sekcie a meno jazdca rozložené v hlavičke a hamburger iba pod 900 px. */
.nav-shell { display: flex; align-items: center; margin-left: auto; }
.nav-hamburger { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; flex: 0 0 auto;
  width: 48px; height: 48px; padding: 0; border: 1px solid #bbd3de; border-radius: 14px; background: var(--white); cursor: pointer; }
.nav-hamburger:hover, .nav-hamburger[aria-expanded="true"] { border-color: var(--ocean); background: var(--soft); }
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--ocean-dark); border-radius: 1px; }
.nav-zavoj { position: fixed; inset: 0; z-index: 1200; background: rgba(16, 42, 67, .38); animation: nav-zavoj .2s ease-out; }
.nav-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1201; width: min(360px, 88vw); box-sizing: border-box;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 24px);
  background: var(--white); box-shadow: -18px 0 40px rgba(16, 42, 67, .22); animation: nav-vysun .22s ease-out; }
@keyframes nav-vysun { from { transform: translateX(100%); } }
@keyframes nav-zavoj { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nav-panel, .nav-zavoj { animation: none; } }
html.nav-otvorene { overflow: hidden; }
.nav-panel-hlava { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 0 10px 14px; }
.nav-panel-kto { display: flex; flex-direction: column; min-width: 0; margin: 0; color: var(--ink); font-size: var(--pismo-titul-3); font-weight: 800; line-height: 1.25; }
.nav-panel-kto small { color: var(--muted); font-size: var(--pismo-min); font-weight: 700; }
.nav-panel-kto strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-panel-zavri { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 14px; background: transparent; color: var(--ocean-dark); font-size: 30px; line-height: 1; cursor: pointer; }
.nav-panel-zavri:hover { background: var(--soft); }
.nav-skupina { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.nav-odkaz, .nav-polozka { display: flex; align-items: center; min-height: 52px; padding: 0 14px; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink); text-decoration: none; font: inherit; font-size: var(--pismo-text); font-weight: 700;
  text-align: left; cursor: pointer; }
.nav-odkaz:hover, .nav-polozka:hover { background: var(--soft); }
.nav-odkaz[aria-current="page"] { background: var(--soft); color: var(--ocean-dark); box-shadow: inset 3px 0 0 var(--ocean); }
.nav-odhlasit { color: var(--ocean-dark); }
.nav-prihlasit { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px;
  background: var(--ocean); color: var(--white); text-decoration: none; font-size: var(--pismo-text); font-weight: 800; }
.nav-prihlasit:hover { background: var(--ocean-dark); }
/* Väčší text v menu: skutočný prepínač, rovnaký vzhľad ako v Nastaveniach
   (.nast-prepinac input — oceánová dráha a biele koliesko pri zapnutí), iba v riadku menu. */
.nav-vacsi-text.nast-prepinac { min-height: 52px; padding: 0 14px; margin: 0; border: 0; border-radius: 12px;
  font-size: var(--pismo-text); font-weight: 700; cursor: pointer; }
.nav-vacsi-text.nast-prepinac:hover { background: var(--soft); }
/* Okno appky (24. 9. 2026, viď .v-appke nižšie): appka má vlastné natívne Nastavenia,
   navigacia.js sa tam vôbec nekreslí — táto poistka je pre prípad, že by predsa. */
.v-appke .nav-shell, .v-appke .nav-panel, .v-appke .nav-zavoj { display: none !important; }
/* Sprievodca (etapa 2, 29. 9. 2026): karta pred jazdou a zoznam „Po ceste“. */
.guide-card { margin-top: 14px; }
.guide-line { font-size: var(--pismo-text); font-weight: 600; }
.guide-list { margin-top: 10px; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.guide-place strong { display: block; font-size: var(--pismo-text); }
.guide-place small { display: block; color: var(--muted); font-size: var(--pismo-min); }
.guide-place p, .guide-place ul { font-size: var(--pismo-min); line-height: 1.55; margin-top: 3px; }
.guide-place ul { padding-left: 1.1em; }
.guide-note { margin-top: 10px; font-size: var(--pismo-min); color: var(--muted); }
.detour-place .detour-cost { font-size: var(--pismo-text); font-weight: 600; }
.detour-place .secondary-action { margin-top: 8px; }
/* Miesto pri trase (míňané miesta, 29. 9. 2026): ponuka zastávky pri okruhu. */
.ponuka-akcie { display: grid; gap: 8px; justify-items: start; margin-top: 10px; }
.ponuka-akcie .data-note { margin: 0; }

/* Dovolenky (K2, 29. 9. 2026): stránka „Dovolenky“ na webe plánovača — bez fotiek, bez
   knižky. Karty v štýle `.konto-karta`/`.ksj-kraj`, mapa v štýle `.ksj-mapa`. */
.dov { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.dov-neprihlaseny { max-width: 30rem; margin: 3rem auto; text-align: center; }
.dov-neprihlaseny p { margin: .75rem 0 1.25rem; color: var(--muted); font-size: var(--pismo-text); }
.dov-tlacidlo-odkaz { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.dov-hlavicka h1 { font-size: var(--pismo-titul-1); font-weight: 700; line-height: 1.2; }
.dov-uvod { margin-top: .5rem; color: var(--muted); font-size: var(--pismo-text); line-height: 1.55; }
.dov-cakanie { margin: 1.5rem 0; color: var(--muted); font-size: var(--pismo-text); }
.dov-chyba { margin: 1rem 0; padding: .75rem 1rem; border: 1.5px solid var(--ocean); border-radius: 12px;
  background: var(--soft); color: var(--ink); font-size: var(--pismo-text); }
.dov-chyba[hidden], .dov-cakanie[hidden] { display: none; }
.dov-zoznam-obal { display: grid; gap: 1.5rem; margin-top: 1.25rem; }
#dov-navrhy, #dov-kapitoly { display: grid; gap: .9rem; }
.dov-prazdno { color: var(--muted); font-size: var(--pismo-text); padding: .5rem 0; }
.dov-karta { display: block; width: 100%; text-align: left; background: var(--paper);
  border: 1.5px solid var(--ocean); border-radius: 18px; padding: 1rem 1.25rem; font: inherit; }
.dov-karta h2 { font-size: var(--pismo-titul-3); font-weight: 700; color: var(--ink); }
.dov-meta, .dov-suhrn { margin-top: .35rem; color: var(--muted); font-size: var(--pismo-text); }
.dov-kapitola { cursor: pointer; transition: border-color .15s, background .15s; }
.dov-kapitola:hover, .dov-kapitola:focus-visible { border-color: var(--ocean); background: var(--soft); }
.dov-akcie { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .9rem; }
.dov-akcia-hlavna { min-height: 44px; padding: 0 1.3em; border-radius: 999px; }
.dov-nebezpecne { color: var(--target); }
.dov-zalozit-tlacidlo { justify-self: start; width: max-content; }

.dov-detail-hlavicka { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; }
.dov-detail-nadpis { font-size: var(--pismo-titul-1); font-weight: 700; line-height: 1.25; }
.dov-detail-nadpis[hidden] { display: none; }
.dov-poznamka { margin-top: .4rem; color: var(--muted); font-size: var(--pismo-min); line-height: 1.5; }
.dov-fakt { margin-top: .5rem; font-size: var(--pismo-text); font-weight: 600; color: var(--ink); }
.dov-mapa { margin-top: 1rem; height: 20rem; border: 1.5px solid var(--ocean); border-radius: 18px;
  overflow: hidden; background: var(--bikeso-paper); }
.dov-mapa .maplibregl-ctrl-attrib { font-size: var(--pismo-min); }
.dov-podnadpis { margin-top: 1.4rem; font-size: var(--pismo-titul-3); font-weight: 700; }
.dov-dni { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: 2px; }
.dov-den { display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .6rem .2rem; border-bottom: 1px solid var(--line); font-size: var(--pismo-text); }
.dov-den:last-child { border-bottom: 0; }
.dov-premenovat { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; width: 100%; }
.dov-premenovat input[type="text"] { flex: 1 1 14rem; min-height: 44px; padding: 0 .8rem; border: 1px solid #bbd3de;
  border-radius: 9px; background: var(--white); font-size: var(--pismo-text); }

.dov-vyber-obal { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: flex-end;
  justify-content: center; background: rgba(16, 42, 67, .38); }
.dov-vyber-karta { position: relative; width: 100%; max-width: 32rem; max-height: 85vh; overflow-y: auto;
  box-sizing: border-box; padding: 1.4rem 1.25rem calc(env(safe-area-inset-bottom) + 1.25rem);
  background: var(--white); border-radius: 18px 18px 0 0; box-shadow: 0 -18px 40px rgba(16, 42, 67, .22); }
.dov-vyber-zavri { position: absolute; top: .7rem; right: .7rem; width: 40px; height: 40px; border: 0;
  border-radius: 12px; background: transparent; color: var(--ocean-dark); font-size: 26px; line-height: 1; }
.dov-vyber-zavri:hover { background: var(--soft); }
.dov-vyber-karta h2 { font-size: var(--pismo-titul-2); font-weight: 700; padding-right: 2.5rem; }
.dov-vyber-zoznam { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 2px; max-height: 40vh; overflow-y: auto; }
.dov-vyber-zoznam label { display: flex; align-items: center; gap: .7rem; min-height: 44px; padding: .3rem .2rem;
  font-size: var(--pismo-text); }
.dov-vyber-zoznam input[type="checkbox"] { width: 1.2em; height: 1.2em; accent-color: var(--ocean); flex: 0 0 auto; }
.dov-vyber-akcie { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .5rem; }
.dov-pole { flex: 1 1 14rem; font-size: var(--pismo-min); font-weight: 600; color: var(--muted); }
.dov-pole[hidden] { display: none; }
.dov-pole input[type="text"] { display: block; width: 100%; margin-top: .3rem; min-height: 44px; padding: 0 .8rem;
  border: 1px solid #bbd3de; border-radius: 9px; background: var(--white); font-size: var(--pismo-text); color: var(--ink); }
.dov-vyber-potvrdit { min-height: 46px; padding: 0 1.4em; border-radius: 999px; }

/* Poradie výsledku pre všetky šírky: nadpis, voľby, mapa, profil, podrobnosti. Panel `.result-panel`
   je rámik iba na širokom okne; inde sa jeho deti radia priamo v #result-area. */
#result-area:not([hidden]) { display: flex; flex-direction: column; }
.result-panel { display: contents; }
#result-area .workspace-heading { order: 1; }
#result-area .stale-note { order: 2; }
#result-area #route-options { order: 3; }
#result-area .result-compact-head { order: 4; }
#result-area #map-frame { order: 5; }
#result-area #route-profile { order: 6; }
#result-area #results { order: 7; }
/* Výber trasy: meno a dĺžka vľavo, čas jazdy vpravo (návrh plánovača, 24. 10. 2026). */
.route-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .9rem; align-items: center; position: relative; }
.route-card strong, .route-card .route-meta { grid-column: 1; }
.route-time { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-size: var(--pismo-titul-3); font-weight: 750; line-height: 1.1; white-space: nowrap; color: var(--ink); }
.route-time small { display: block; margin-top: .2em; font-size: var(--pismo-min); font-weight: 500; color: var(--muted); }
.route-card[aria-pressed="true"] .route-time { color: var(--ocean); }
/* Profil s osou: písmo v grafe je token, graf sa kreslí v pixeloch skutočnej šírky. */
/* Výška v em písma grafu: pri „Aa“ graf narastie, prekreslí sa a popisy sa nezrazia. */
.elevation-axis { height: 14.5em; padding: 0; border: 0; font-size: var(--pismo-min); }
.elevation-axis svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.elevation-axis text { font-size: var(--pismo-min); font-variant-numeric: tabular-nums; }
.elevation-axis-label { fill: var(--muted); }
.elevation-axis-total { fill: var(--ink); font-weight: 650; }
.elevation-grid { stroke: var(--line); stroke-width: 1; }
.elevation-axis .elevation-line { fill: none; stroke: var(--ocean-dark); stroke-width: 2; }
.elevation-axis .elevation-climb { fill: var(--ocean); fill-opacity: .08; }
.elevation-hill-label { fill: var(--ink); font-weight: 650; }
.elevation-hill-leader { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; opacity: .5; }
.elevation-start-mark { fill: var(--white); stroke: var(--target); stroke-width: 4; }
.elevation-axis .elevation-scrub { inset: 0 auto 0 0; width: 100%; height: 100%; }
/* Čas pri prste nad osou km, aby nezakryl popisy stúpaní nad grafom. */
.elevation-axis .elevation-time { top: auto; bottom: 2em; }
/* Sklon iba odtieňmi oceánovej (Petr 24. 10. 2026): sýtosť rastie so sklonom, nad 10 % tmavá oceánová. */
/* Prvý riadok je náhrada pre prehliadač bez color-mix (tón oceánovej zo značky). */
.sklon-1 { fill: var(--soft); background: var(--soft); }
.sklon-1 { fill: color-mix(in srgb, var(--ocean) 18%, var(--white)); background: color-mix(in srgb, var(--ocean) 18%, var(--white)); }
.sklon-2 { fill: color-mix(in srgb, var(--ocean) 45%, var(--white)); background: color-mix(in srgb, var(--ocean) 45%, var(--white)); }
.sklon-3 { fill: color-mix(in srgb, var(--ocean) 80%, var(--white)); background: color-mix(in srgb, var(--ocean) 80%, var(--white)); }
.sklon-4 { fill: var(--ocean-dark); background: var(--ocean-dark); }
.sklon-legenda { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-left: auto; color: var(--muted); font-size: var(--pismo-min); }
.sklon-legenda > span { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.sklon-legenda i { display: block; width: 1.1em; height: .7em; border-radius: .2em; }
.profile-heading { flex-wrap: wrap; align-items: center; column-gap: 1.4rem; row-gap: .3rem; }

/* Výsledok na širokom okne (návrh plánovača, Petr 24. 10. 2026): mapa Freemap na celú plochu pod
   lištou, voľby v sklenenom paneli vľavo, profil v sklenenom paneli dole. Výšku lišty, profilu
   a šírku panelu dopĺňa app.js (`rozlozVysledok`), aby mapa vedela, kam trasu položiť. */
@media (min-width: 761px) {
  .app-shell.has-results:not(.editing):not(.library-mode) > .planner-panel { display: none; }
  .app-shell.has-results:not(.editing):not(.library-mode) > .workspace { grid-column: 1 / -1; }
}
/* Nízke široké okno (telefón na šírku) by panel s voľbami stlačilo pod profil: výsledok tam
   ostáva pod sebou ako na mobile. Rovnakú hranicu má `SIROKY_VYSLEDOK` v app.js. */
@media (min-width: 761px) and (min-height: 600px) {
  body:has(.app-shell.has-results:not(.editing):not(.library-mode):not([hidden])) .topbar { height: 3.75rem; }
  body:has(.app-shell.has-results:not(.editing):not(.library-mode):not([hidden])) .brand-mark { height: 2.25rem; }
  .app-shell.has-results:not(.editing):not(.library-mode) #result-area:not([hidden]) { position: fixed; z-index: 1; top: var(--lista, 3.75rem); left: 0; right: 0; bottom: 0;
    display: block; background: var(--page); }
  .app-shell.has-results:not(.editing):not(.library-mode) #map-frame { position: absolute; inset: 0; z-index: 0; border: 0; border-radius: 0; }
  .app-shell.has-results:not(.editing):not(.library-mode) #route-map { height: 100%; }
  .app-shell.has-results:not(.editing):not(.library-mode) .result-panel, .app-shell.has-results:not(.editing):not(.library-mode) #route-profile:not(:empty) {
    position: absolute; z-index: 2; box-sizing: border-box; background: rgb(255 255 255 / .94);
    -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); border-radius: var(--bikeso-radius-lg);
    box-shadow: 0 10px 34px rgb(16 42 67 / .2), 0 0 0 1px rgb(16 42 67 / .06); }
  .app-shell.has-results:not(.editing):not(.library-mode) .result-panel { left: 20px; top: 20px; width: min(26rem, calc(100% - 40px));
    max-height: calc(100% - 40px - var(--profil-vyska, 0px)); overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column; gap: .6rem; padding: .9rem 1.05rem 1.05rem; }
  .app-shell.has-results:not(.editing):not(.library-mode) .result-panel > * { margin: 0; flex: 0 0 auto; }
  .app-shell.has-results:not(.editing):not(.library-mode) #result-area .workspace-heading { margin: 0; flex-wrap: nowrap; }
  .app-shell.has-results:not(.editing):not(.library-mode) #route-options { display: block; margin: 0; border-radius: var(--bikeso-radius); overflow: hidden;
    background: var(--white); box-shadow: 0 0 0 1px var(--line); }
  .app-shell.has-results:not(.editing):not(.library-mode) .route-card, .app-shell.has-results:not(.editing):not(.library-mode) .route-card[aria-pressed="true"] { width: 100%; min-height: 0; padding: .6rem 1rem;
    border: 0; border-radius: 0; background: transparent; }
  .app-shell.has-results:not(.editing):not(.library-mode) .route-card + .route-card { box-shadow: inset 0 1px 0 var(--line); }
  .app-shell.has-results:not(.editing):not(.library-mode) .route-card[aria-pressed="true"] { background: var(--soft); }
  .app-shell.has-results:not(.editing):not(.library-mode) .route-card[aria-pressed="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ocean); }
  .app-shell.has-results:not(.editing):not(.library-mode) .route-card strong { font-size: var(--pismo-text); font-weight: 650; line-height: 1.25; }
  .app-shell.has-results:not(.editing):not(.library-mode) #result-area .result-compact-head { margin: 0; padding: 0 .25rem; align-items: flex-start; }
  /* Podrobnosti a tlačidlá sú priamo v paneli: inak by sa lepiace tlačidlá nemohli vytiahnuť
     nad začiatok svojho článku, keď je pod okrajom panelu. */
  .app-shell.has-results:not(.editing):not(.library-mode) #results, .app-shell.has-results:not(.editing):not(.library-mode) #results .compact-result { display: contents; }
  .app-shell.has-results:not(.editing):not(.library-mode) #results > *, .app-shell.has-results:not(.editing):not(.library-mode) #results .compact-result > * { order: 7; margin: 0; }
  /* Spusti prelet a Uložiť jazdu ostávajú na spodku panelu aj vtedy, keď sa panel posúva. */
  .app-shell.has-results:not(.editing):not(.library-mode) .compact-result .result-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem;
    position: sticky; z-index: 1; bottom: -1.05rem; margin: 0 0 -1.05rem; padding: .4rem 0 1.05rem;
    background: rgb(255 255 255 / .97); }
  .app-shell.has-results:not(.editing):not(.library-mode) .compact-result .save-status:empty { display: none; }
  .app-shell.has-results:not(.editing):not(.library-mode) .compact-result .result-actions > :only-child { grid-column: 1 / -1; }
  .app-shell.has-results:not(.editing):not(.library-mode) .compact-result .result-actions .primary-action { margin: 0; justify-content: center; min-height: 3rem; }
  .app-shell.has-results:not(.editing):not(.library-mode) .compact-result .result-actions .secondary-action { min-height: 3rem; }
  .app-shell.has-results:not(.editing):not(.library-mode) #route-profile:not(:empty) { left: 20px; right: 20px; bottom: 20px; }
  .app-shell.has-results:not(.editing):not(.library-mode) #route-profile .route-profile-card { margin: 0; padding: .8rem 1.4rem .5rem; border: 0; background: transparent; }
  .app-shell.has-results:not(.editing):not(.library-mode) #route-profile .profile-heading { margin-bottom: .2rem; }
  .app-shell.has-results:not(.editing):not(.library-mode) #route-profile .elevation-axis { height: 12.8em; }
  .app-shell.has-results:not(.editing):not(.library-mode) #route-profile .profile-heading h3 { font-size: var(--pismo-titul-2); }
  .app-shell.has-results:not(.editing):not(.library-mode) #route-map .leaflet-bottom { bottom: var(--profil-vyska, 0px); }
  .app-shell.has-results:not(.editing):not(.library-mode) #route-map .leaflet-bottom.leaflet-left { left: var(--panel-sirka, 0px); }
}
@media (min-width: 761px) and (min-height: 600px) and (max-height: 960px) {
  .app-shell.has-results:not(.editing):not(.library-mode) #route-profile .elevation-axis { height: 11em; }
}
@media (max-width: 900px) {
  .nast-menu { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .nast-menu a { white-space: normal; min-height: 3rem; }
}
.manual-points .point-target { border-color: var(--ocean); background: var(--soft); }
.manual-points .point-moving { opacity: .7; }
.ride-history { margin-top: 1.2rem; display: grid; gap: 1rem; }
.ride-history h3, .ride-history h4 { margin: 0 0 .4rem; }
.manual-actions .manual-extra { display: contents; }
.manual-actions .stored-title { flex: 1 1 100%; }
.manual-actions #manual-save-ride { order: 10; flex: 1 1 100%; margin-left: 0; }
.profile-detail, .route-more { margin-top: .9rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.profile-detail summary, .route-more summary { cursor: pointer; color: var(--ocean-dark); font-weight: 700; font-size: var(--pismo-text); }
.profile-detail[open] > summary, .route-more[open] > summary { margin-bottom: .8rem; }
.compact-result { padding: .75rem 1rem; }
.result-compact-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.result-compact-head { margin-bottom: .5rem; padding: .1rem .2rem; }
.result-compact-head .result-description { margin: 0; font-size: var(--pismo-min); line-height: 1.35; }
.result-compact-head .text-button { flex: 0 0 auto; font-size: var(--pismo-min); }
.compact-result .route-more { margin-top: .35rem; padding-top: .35rem; }
.result-extra-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.compact-result .result-actions { margin-top: .5rem; gap: .4rem; }
.compact-result .result-actions #save-ride { min-height: 3rem; }
@media (max-width: 760px) {
  body:has(.app-shell.has-results:not(.library-mode)) .topbar { height: 3.75rem; }
  body:has(.app-shell.has-results:not(.library-mode)) .brand-mark { height: 2.25rem; }
  body:has(.app-shell.has-results:not(.library-mode)) .page { padding-top: .7rem; }
  .app-shell.has-results:not(.library-mode) #result-area .workspace-heading { margin-bottom: .5rem; flex-wrap: nowrap; }
  .app-shell.has-results:not(.library-mode) #result-area .workspace-heading h2 { font-size: 1.45rem; }
  .app-shell.has-results:not(.library-mode) #result-area .workspace-heading .text-button { font-size: var(--pismo-min); }
  .app-shell.has-results #route-map { height: 13.75rem; }
  .app-shell.has-results #route-options { gap: .3rem; margin-bottom: .5rem; }
  .app-shell.has-results .route-card, .app-shell.has-results .route-card[aria-pressed="true"] { padding: .3rem .65rem; }
  .app-shell.has-results .route-card strong { font-size: var(--pismo-min); }
  .app-shell.has-results .route-meta { font-size: var(--pismo-min); line-height: 1.2; }
  .app-shell.has-results #route-profile .route-profile-card { margin-top: .5rem; padding: .7rem .8rem; }
  .app-shell.has-results #route-profile .profile-heading { margin-bottom: .35rem; }
  .app-shell.has-results #route-profile .profile-heading h3 { font-size: var(--pismo-titul-3); }
  .app-shell.has-results #route-profile .elevation-chart { height: 11.5em; }
  .app-shell.has-results #route-profile .elevation-chart svg { height: 100%; }
  /* Mobil: mapa hneď pod nadpisom, voľby a profil pod ňou (návrh plánovača, 24. 10. 2026). */
  .app-shell.has-results:not(.library-mode) #result-area #map-frame { order: 3; }
  .app-shell.has-results:not(.library-mode) #result-area #route-options { order: 4; margin-top: .6rem; }
  .app-shell.has-results:not(.library-mode) #result-area .result-compact-head { order: 5; }
  .app-shell.has-results #route-profile .profile-detail { margin-top: .35rem; padding-top: .35rem; }
  .app-shell.has-results .compact-result { margin-top: .5rem; }
  .compact-result .result-actions:has(#save-ride) { position: fixed; z-index: 600; bottom: 0; left: 0; right: 0;
    display: flex; flex-direction: row; align-items: center; flex-wrap: nowrap; gap: .5rem; margin: 0;
    padding: .5rem 1rem max(.5rem, env(safe-area-inset-bottom)); background: var(--paper);
    border-top: 1px solid var(--line); box-shadow: 0 -.2rem 1rem #092f3b20; }
  .compact-result .result-actions:has(#save-ride) #flyover-start { flex: 0 1 auto; padding-inline: .6rem; }
  .compact-result .result-actions #save-ride { flex: 1 1 auto; min-width: 0; order: 2; }
  .app-shell.has-results:not(.library-mode) { padding-bottom: 4.5rem; }
}
@media (max-width: 360px) {
  .app-shell.has-results:not(.library-mode) #result-area .workspace-heading { flex-wrap: wrap; }
}
