:root{
  --bg:#070b10;
  --line:rgba(255,255,255,.09);
  --muted:rgba(244,247,249,.45);
  --accent:#c6f432;
  --profile-h:168px;
  --hud-w:min(960px, calc(100vw - 290px));
}
*, *::before, *::after{ box-sizing:border-box; }
html,body{ height:100%; margin:0; }
body{
  background:var(--bg); color:#f4f7f9;
  font-family:'Inter',ui-sans-serif,system-ui,sans-serif;
  line-height:1.5;
  overflow:hidden; -webkit-font-smoothing:antialiased;
  overscroll-behavior:none;
}
h1,h2,h3,h4,p{ margin:0; }
a{ color:inherit; }
button,input,select,textarea{ font:inherit; color:inherit; }
img,svg,canvas{ display:block; }
.select-none, .toolbar, .ride-controls, .map-switch, .map-controls, .help-fab, .profile-head, .workout-panel{
  -webkit-user-select:none; user-select:none;
}
.tabular{ font-variant-numeric:tabular-nums; }

/* ---------- MAP ---------- */
#map{ position:fixed; inset:0; z-index:0; background:#0a0f15; }
.maplibregl-map{ font-family:'Inter',sans-serif; background:#0a0f15; }
.maplibregl-ctrl-top-right{ top:0 !important; right:0 !important; z-index:840; }
.maplibregl-ctrl-attrib{
  background:rgba(9,13,18,.52) !important; color:rgba(255,255,255,.68) !important;
  border-radius:0 0 0 6px !important;
  font-size:9px !important; line-height:1.35 !important;
  padding:2px 7px !important; margin:0 !important;
  white-space:nowrap;
}
.maplibregl-ctrl-attrib a{ color:rgba(255,255,255,.8) !important; }
.maplibregl-ctrl-attrib-button{ display:none !important; }
.app-logo{
  position:fixed; left:14px; top:14px; z-index:860;
  display:inline-flex; align-items:center;
  height:48px; padding:7px 14px 7px 9px;
  border-radius:15px;
  background:linear-gradient(180deg, rgba(15,19,26,.54), rgba(8,11,16,.46));
  border:1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  box-shadow:0 10px 28px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
  pointer-events:none;
}
.app-logo img{ height:31px; width:auto; display:block; }
body.map-tourist .app-logo{
  background:linear-gradient(180deg, rgba(11,15,21,.84), rgba(8,11,16,.78));
  border-color:rgba(255,255,255,.22);
}
.about-pill{
  position:fixed; left:14px; top:68px; z-index:860;
  display:inline-flex; align-items:center; gap:6px;
  height:30px; padding:0 11px 0 9px;
  border-radius:10px;
  background:linear-gradient(180deg, rgba(15,19,26,.54), rgba(8,11,16,.46));
  border:1px solid rgba(255,255,255,.15);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  box-shadow:0 8px 22px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.10);
  color:rgba(244,247,249,.82);
  font:600 11px/1 'Inter',sans-serif; letter-spacing:.01em;
  cursor:pointer;
  transition:background .18s, border-color .18s, color .18s, transform .12s;
}
.about-pill svg{ width:13px; height:13px; flex:0 0 auto; color:#c6f432; opacity:.85; transition:opacity .18s; }
.about-pill:hover{
  background:linear-gradient(180deg, rgba(22,28,38,.74), rgba(12,16,23,.68));
  border-color:rgba(198,244,50,.45);
  color:#fff;
}
.about-pill:hover svg{ opacity:1; }
.about-pill:active{ transform:translateY(1px); }
body.map-tourist .about-pill{
  background:linear-gradient(180deg, rgba(11,15,21,.84), rgba(8,11,16,.78));
  border-color:rgba(255,255,255,.22);
}
.mapy-logo{
  position:fixed; right:14px; top:24px; z-index:850;
  display:inline-flex; align-items:center; height:38px; padding:4px 7px;
  background:rgba(255,255,255,.80); border-radius:9px;
  border:1px solid rgba(255,255,255,.45);
}
.mapy-logo img{ height:28px; width:auto; display:block; }

/* ---------- HUD (JEDNA LIŠTA O 50% VÄČŠIA) ---------- */
#hud{
  position:fixed; top:14px; left:50%; transform:translateX(-50%);
  z-index:900; width:var(--hud-w);
  border-radius:24px; overflow:hidden;
  background:linear-gradient(180deg, rgba(15,19,26,.48), rgba(8,11,16,.40));
  border:1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  box-shadow:0 14px 36px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
}
.hud-bar{
  display:grid;
  grid-template-columns:1.05fr .95fr 1.15fr .95fr 1.2fr;
  align-items:center;
  padding:12px 16px;
}
.hud-cell{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:4px 12px; min-width:0;
  border-right:1px solid rgba(255,255,255,.10);
}
.hud-cell:last-child{ border-right:0; }
.hud-head{
  display:flex; align-items:center; gap:7px;
  margin-bottom:4px;
}
.hud-kicker{
  font-size:13px; line-height:1; letter-spacing:.16em; text-transform:uppercase;
  color:rgba(255,255,255,.65); font-weight:600; white-space:nowrap;
  text-shadow:0 1px 6px rgba(0,0,0,.45);
}
.hud-cell.power,
.hud-cell.wkg{ --pz-color:#cbd5e1; --pz-glow:rgba(203,213,225,.22); }
.hud-cell.power .hud-kicker,
.hud-cell.wkg .hud-kicker{ color:var(--pz-color); opacity:.9; transition:color .25s ease; }
.hud-cell.power[data-zone="1"], .hud-cell.wkg[data-zone="1"]{ --pz-color:#cbd5e1; --pz-glow:rgba(203,213,225,.22); }
.hud-cell.power[data-zone="2"], .hud-cell.wkg[data-zone="2"]{ --pz-color:#38bdf8; --pz-glow:rgba(56,189,248,.32); }
.hud-cell.power[data-zone="3"], .hud-cell.wkg[data-zone="3"]{ --pz-color:#34d399; --pz-glow:rgba(52,211,153,.32); }
.hud-cell.power[data-zone="4"], .hud-cell.wkg[data-zone="4"]{ --pz-color:#c6f432; --pz-glow:rgba(198,244,50,.32); }
.hud-cell.power[data-zone="5"], .hud-cell.wkg[data-zone="5"]{ --pz-color:#f59e0b; --pz-glow:rgba(245,158,11,.34); }
.hud-cell.power[data-zone="6"], .hud-cell.wkg[data-zone="6"]{ --pz-color:#ef4444; --pz-glow:rgba(239,68,68,.38); }
.power-zone-badge{
  padding:1px 5px; border-radius:5px;
  font-size:9px; font-weight:700; line-height:1.15; letter-spacing:.06em;
  color:var(--pz-color);
  background:rgba(255,255,255,.07);
  border:1px solid currentColor;
  transition:color .25s ease, border-color .25s ease;
}
.power-zone-badge[hidden]{ display:none; }
.hud-cell.power.no-zones .power-zone-bar{ display:none; }
.hud-cell.hr .hud-kicker{ color:rgba(248,113,113,.9); }
.hud-cell.time.is-countdown .hud-val,
.hud-cell.time.is-countdown .hud-kicker{ color:var(--accent); }
.hud-cell.time.is-countdown .hud-val{
  text-shadow:0 2px 12px rgba(0,0,0,.55), 0 0 22px rgba(198,244,50,.55);
}
.hud-cell.hr .hud-val{ color:#f87171; }
.hud-cell.wkg .hud-val{
  color:var(--pz-color, #cbd5e1);
  text-shadow:0 2px 12px rgba(0,0,0,.55), 0 0 18px var(--pz-glow, rgba(203,213,225,.22));
  transition:color .25s ease, text-shadow .25s ease;
}
.live-dot{
  width:9px; height:9px; flex:0 0 auto; border-radius:50%;
  background:rgba(255,255,255,.28); transition:background .3s;
}
.live-dot.on{
  background:var(--accent);
  box-shadow:0 0 0 4px rgba(198,244,50,.15), 0 0 12px rgba(198,244,50,.95);
}
@keyframes livePulse{ 0%,100%{opacity:1} 50%{opacity:.45} }

.metric-line{
  display:flex; align-items:baseline; justify-content:center; gap:5px;
}
.hud-val{
  font-family:'Barlow Condensed',sans-serif; font-size:40px; line-height:1;
  font-weight:600; letter-spacing:.02em; color:#fff; font-variant-numeric:tabular-nums;
  text-shadow:0 2px 12px rgba(0,0,0,.55);
}
.hud-val-power{
  font-family:'Barlow Condensed',sans-serif; font-size:48px; line-height:.95;
  font-weight:700; letter-spacing:.01em; color:var(--pz-color, #cbd5e1); font-variant-numeric:tabular-nums;
  text-shadow:0 2px 14px rgba(0,0,0,.6), 0 0 24px var(--pz-glow, rgba(203,213,225,.22));
  transition:color .25s ease, text-shadow .25s ease;
}
.power-zone-bar{
  display:grid; grid-template-columns:repeat(6, 1fr); gap:3px;
  width:92px; height:3px; margin-top:5px;
}
.pz-seg{
  border-radius:99px; opacity:.22; transition:opacity .25s ease, box-shadow .25s ease;
}
.pz-seg[data-zone="1"]{ background:#94a3b8; }
.pz-seg[data-zone="2"]{ background:#38bdf8; }
.pz-seg[data-zone="3"]{ background:#34d399; }
.pz-seg[data-zone="4"]{ background:#c6f432; }
.pz-seg[data-zone="5"]{ background:#f59e0b; }
.pz-seg[data-zone="6"]{ background:#ef4444; }
.hud-cell.power[data-zone="1"] .pz-seg[data-zone="1"],
.hud-cell.power[data-zone="2"] .pz-seg[data-zone="2"],
.hud-cell.power[data-zone="3"] .pz-seg[data-zone="3"],
.hud-cell.power[data-zone="4"] .pz-seg[data-zone="4"],
.hud-cell.power[data-zone="5"] .pz-seg[data-zone="5"],
.hud-cell.power[data-zone="6"] .pz-seg[data-zone="6"]{
  opacity:1; box-shadow:0 0 8px var(--pz-color);
}
.metric-unit{
  font-size:14px; font-weight:600; letter-spacing:.05em;
  color:rgba(255,255,255,.6); text-transform:uppercase;
  text-shadow:0 1px 6px rgba(0,0,0,.45);
}
.grade-group{ display:flex; align-items:center; gap:10px; }
.grade-bar{
  position:relative; width:48px; height:6px; border-radius:99px;
  background:rgba(255,255,255,.12); box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
.grade-bar::after{
  content:''; position:absolute; left:50%; top:-3px; bottom:-3px; width:1px;
  background:rgba(255,255,255,.3); transform:translateX(-.5px);
}
.grade-fill{
  position:absolute; top:0; bottom:0; left:50%; width:0; border-radius:99px;
  background:#34d399; transition:width .3s ease, left .3s ease, background .3s;
}
.grade-chip{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:86px; height:36px; padding:0 11px; border-radius:9px;
  border:1px solid rgba(52,211,153,.35); background:rgba(52,211,153,.14);
  color:#34d399; font-family:'Barlow Condensed',sans-serif;
  font-size:24px; font-weight:600; letter-spacing:.03em; white-space:nowrap;
  font-variant-numeric:tabular-nums; transition:color .3s,background .3s,border-color .3s;
  text-shadow:0 1px 8px rgba(0,0,0,.45);
}
.hud-cell.grade.is-mode .hud-head,
.hud-cell.grade.is-mode .grade-bar{ display:none; }
.hud-cell.grade.is-mode .grade-chip{ height:44px; min-width:96px; font-size:28px; }

/* ---------- TOOLBAR (VĽAVO DOLE: NÁPOVEDA + KONTO + ZARIADENIA) ---------- */
.toolbar{
  position:fixed; left:14px; bottom:calc(var(--profile-h) + 14px); z-index:950;
  display:flex; flex-direction:row; align-items:center; gap:8px;
}
.tool-btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:40px; padding:0 12px; border-radius:13px; cursor:pointer;
  background:rgba(11,15,21,.48); border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.88); font-size:10px; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase;
  text-shadow:0 1px 6px rgba(0,0,0,.45);
  box-shadow:0 6px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.1);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  transition:background .2s,border-color .2s,color .2s,transform .12s;
}
.tool-btn:hover{ background:rgba(22,28,36,.50); border-color:rgba(255,255,255,.26); color:#fff; }
.tool-btn:active{ transform:translateY(1px); }
.tool-btn:disabled{ opacity:.55; cursor:default; }
.tool-btn svg{ width:15px; height:15px; flex:0 0 auto; filter:drop-shadow(0 1px 4px rgba(0,0,0,.4)); }
.tool-btn-icon{
  width:40px; padding:0;
}
.tool-btn-icon svg{ width:17px; height:17px; }
.tool-btn.connected{
  border-color:rgba(198,244,50,.38); color:#e4ff9e;
  background:rgba(24,32,18,.42);
}
#btnTrainer.connected{
  border-color:rgba(45,212,191,.45); color:#5eead4;
  background:rgba(13,38,38,.48);
}
#btnTrainer.connected .device-dot.connected{
  background:#2dd4bf; box-shadow:0 0 9px rgba(45,212,191,.95);
}
#btnHr.connected{
  border-color:rgba(248,113,113,.45); color:#f87171;
  background:rgba(46,16,20,.48);
}
#btnHr.connected .device-dot.connected{
  background:#f87171; box-shadow:0 0 9px rgba(248,113,113,.95);
}

.tool-btn-weight{ gap:7px; }
.tool-value{
  display:inline-flex; align-items:baseline; gap:3px;
  font-family:'Barlow Condensed',sans-serif; font-size:16px; line-height:1;
  font-weight:600; color:#fff; letter-spacing:.02em; font-variant-numeric:tabular-nums;
}
.tool-unit{
  font-family:'Inter',sans-serif; font-size:8.5px; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.55);
}
.device-dot{
  position:absolute; top:6px; right:6px; width:6px; height:6px; border-radius:50%;
  background:rgba(255,255,255,.28); transition:background .25s, box-shadow .25s;
}
.device-dot.connecting{
  background:#fbbf24; box-shadow:0 0 9px rgba(251,191,36,.85); animation:livePulse 1s infinite;
}
.device-dot.connected{
  background:var(--accent); box-shadow:0 0 9px rgba(198,244,50,.95);
}
.tool-label{ display:inline; }

/* ---------- SPODNÉ OVLÁDANIE V STREDE (WORKOUT + UKONČIŤ) ---------- */
.ride-controls{
  position:fixed; left:50%; transform:translateX(-50%); bottom:calc(var(--profile-h) + 14px); z-index:950;
  display:flex; align-items:center; gap:8px;
}
.ride-controls .map-action-btn{
  height:40px; padding:0 14px; border-radius:13px;
  justify-content:center; min-width:0; white-space:nowrap;
}
.ride-controls .map-action-btn svg{ width:15px; height:15px; }
.ride-controls .map-pill-icon{
  width:40px; padding:0;
}
.ride-controls .map-pill-icon svg{ width:17px; height:17px; }

/* ---------- MAP SWITCH (VPRAVO DOLE: 3D + MAPA + ORIENTÁCIA) ---------- */
.map-controls{
  position:fixed; right:14px; bottom:calc(var(--profile-h) + 14px); z-index:950;
  display:flex; flex-direction:row; align-items:center; gap:8px;
}
.map-controls .map-pill{ flex:0 0 auto; justify-content:center; height:40px; border-radius:13px; }
.map-controls .map-pill-icon{ width:40px; padding:0; }
.map-controls .map-pill-icon svg{ width:17px; height:17px; }
.map-controls .map-pill-3d{ min-width:40px; padding:0 11px; font-size:11px; font-weight:700; letter-spacing:.06em; }
.map-pill.map-pill-blue{
  border-color:rgba(56,189,248,.40); color:#7dd3fc;
  background:rgba(12,32,46,.50);
}
.map-pill.map-pill-blue:hover{
  background:rgba(18,46,66,.66); border-color:rgba(56,189,248,.65); color:#bae6fd;
}
body.map-tourist .map-pill.map-pill-blue{ background:rgba(12,32,46,.82); }
body.map-tourist .map-pill.map-pill-blue:hover{ background:rgba(18,46,66,.92); }
.map-switch .map-btn{ flex:1 1 0; justify-content:center; }
.map-switch{
  position:relative;
  display:flex; align-items:center; gap:2px; height:40px; padding:4px;
  background:rgba(11,15,21,.48); border:1px solid rgba(255,255,255,.14);
  border-radius:13px;
  box-shadow:0 6px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.1);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
.map-switch-icons .map-btn-icon{
  flex:0 0 auto; width:32px; height:30px; padding:0;
}
.map-switch-icons .map-btn-icon svg{
  width:16px; height:16px;
}
.map-pill{
  display:inline-flex; align-items:center; gap:7px;
  height:36px; padding:0 13px; border-radius:12px; cursor:pointer;
  background:rgba(11,15,21,.48); border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.82); font-size:10px; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase;
  text-shadow:0 1px 6px rgba(0,0,0,.45);
  box-shadow:0 6px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.1);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  transition:background .2s, border-color .2s, color .2s, transform .12s;
}
.map-pill svg{ width:14px; height:14px; flex:0 0 auto; }
.map-pill:hover{ background:rgba(22,28,36,.50); border-color:rgba(255,255,255,.26); color:#fff; }
.map-pill:active{ transform:translateY(1px); }
.map-pill.active{
  background:rgba(198,244,50,.18); border-color:rgba(198,244,50,.42); color:#dcff79;
}
body.map-tourist .map-pill{ background:rgba(11,15,21,.76); }
body.map-tourist .map-pill:hover{ background:rgba(22,28,36,.88); }
body.map-tourist .map-pill.active{ background:rgba(40,56,18,.86); }
.map-pill.finish-btn{
  border-color:rgba(248,113,113,.28); color:#fca5a5;
}
.map-pill.finish-btn:hover{
  background:rgba(48,18,22,.55); border-color:rgba(248,113,113,.5); color:#fecaca;
}
body.map-tourist .map-pill.finish-btn{ background:rgba(42,16,20,.78); }
body.map-tourist .map-pill.finish-btn:hover{ background:rgba(58,20,25,.90); }
.map-btn{
  display:inline-flex; align-items:center; gap:6px;
  height:30px; padding:0 10px; border:0; border-radius:9px;
  background:transparent; color:rgba(255,255,255,.72); cursor:pointer;
  font-size:10px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  text-shadow:0 1px 6px rgba(0,0,0,.45);
  transition:background .2s, color .2s;
}
.map-btn svg{ width:13px; height:13px; flex:0 0 auto; }
.map-btn:hover{ color:#fff; }
.map-btn.active{ background:rgba(198,244,50,.18); color:#dcff79; }
.map-switch-sep{
  width:1px; height:18px; margin:0 3px;
  background:rgba(255,255,255,.16); flex:0 0 auto;
}

/* ---------- PROFILE ---------- */
.profile-panel{
  position:fixed; left:0; right:0; bottom:0; z-index:900;
  height:var(--profile-h); display:flex; flex-direction:column;
  padding:7px 20px 6px;
  background:linear-gradient(180deg, rgba(12,16,22,.56), rgba(7,10,14,.68));
  border-top:1px solid rgba(255,255,255,.15);
  border-radius:22px 22px 0 0;
  box-shadow:0 -10px 32px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
.profile-head{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:14px; min-height:26px; flex:0 0 auto; }
.profile-legend{ justify-self:start; display:flex; align-items:center; gap:10px; min-width:0; flex-wrap:nowrap; }
.legend-item{ display:inline-flex; align-items:center; gap:4px; font-size:9px; letter-spacing:.04em; color:rgba(255,255,255,.72); text-transform:uppercase; white-space:nowrap; text-shadow:0 1px 5px rgba(0,0,0,.45); }
.legend-pct{ color:rgba(255,255,255,.46); font-variant-numeric:tabular-nums; text-transform:none; letter-spacing:0; }
.legend-dot{ width:7px; height:7px; border-radius:2px; flex:0 0 auto; }
.route-block{ justify-self:center; display:flex; align-items:baseline; gap:10px; min-width:0; }
.route-dot{ width:7px; height:7px; align-self:center; border-radius:50%; background:var(--accent); box-shadow:0 0 10px rgba(198,244,50,.85); flex:0 0 auto; }
.route-name{ font-size:15px; font-weight:700; letter-spacing:.01em; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:34vw; text-shadow:0 1px 8px rgba(0,0,0,.55); }
.route-meta{ font-size:12.5px; font-weight:500; color:rgba(255,255,255,.7); white-space:nowrap; font-variant-numeric:tabular-nums; text-shadow:0 1px 6px rgba(0,0,0,.5); }
.profile-actions{
  justify-self:end; display:flex; align-items:center; gap:6px; flex:0 0 auto;
}
.profile-act-btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center; gap:5px;
  height:26px; padding:0 9px; border-radius:8px; cursor:pointer;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.18);
  color:rgba(255,255,255,.86); font-size:9.5px; font-weight:700;
  letter-spacing:.07em; text-transform:uppercase; white-space:nowrap;
  text-shadow:0 1px 5px rgba(0,0,0,.4);
  transition:background .2s, border-color .2s, color .2s, transform .12s;
}
.profile-act-btn:hover{
  background:rgba(255,255,255,.13); border-color:rgba(255,255,255,.34); color:#fff;
}
.profile-act-btn:active{ transform:translateY(1px); }
.profile-act-btn:disabled{ opacity:.55; cursor:default; }
.profile-act-btn svg{ width:12px; height:12px; flex:0 0 auto; }
.profile-act-accent{
  background:rgba(198,244,50,.14); border-color:rgba(198,244,50,.4); color:#dcff79;
}
.profile-act-accent:hover{
  background:rgba(198,244,50,.22); border-color:rgba(198,244,50,.6); color:#ecffaa;
}
.profile-chart-wrap{ position:relative; flex:1 1 auto; min-height:0; margin-top:2px; }
#profileChart{ width:100% !important; height:100% !important; cursor:crosshair; }
.profile-hover{
  position:absolute; top:4px; z-index:2; transform:translateX(-50%);
  padding:2px 7px; border-radius:6px; pointer-events:none;
  background:rgba(9,13,18,.82); border:1px solid rgba(255,255,255,.18);
  color:#fff; font-size:10px; font-weight:600; letter-spacing:.02em;
  font-variant-numeric:tabular-nums; white-space:nowrap;
  box-shadow:0 4px 14px rgba(0,0,0,.35);
}
.profile-hover[hidden]{ display:none; }
.profile-empty{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  gap:16px; padding-bottom:4px;
}
.profile-empty-copy{ display:flex; align-items:center; gap:10px; color:rgba(255,255,255,.65); font-size:11px; text-shadow:0 1px 6px rgba(0,0,0,.5); }
.profile-empty-copy svg{ width:26px; height:26px; opacity:.7; }
.btn-accent{
  position:relative;
  display:inline-flex; align-items:center; gap:7px; height:30px; padding:0 12px;
  border-radius:9px; cursor:pointer; border:1px solid rgba(198,244,50,.4);
  background:rgba(198,244,50,.14); color:#dcff79; font-size:10px; font-weight:700;
  letter-spacing:.09em; text-transform:uppercase; transition:background .2s,border-color .2s;
  text-shadow:0 1px 5px rgba(0,0,0,.4);
}
.btn-accent:hover{ background:rgba(198,244,50,.22); border-color:rgba(198,244,50,.6); }
.btn-accent svg{ width:13px; height:13px; }
.btn-accent-secondary{
  background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.22); color:rgba(255,255,255,.82);
}
.btn-accent-secondary:hover{ background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.38); }
.profile-empty-actions{ display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; }

/* ---------- WORKOUT ---------- */
.modal-card.workout-card{
  width:min(1000px, calc(100vw - 36px));
  max-height:min(82vh, 650px);
  display:flex; flex-direction:column;
  padding:20px 24px 16px;
  overflow:hidden;
}
.workout-card .modal-head{ flex:0 0 auto; padding-bottom:10px; }
.workout-card .modal-actions{ flex:0 0 auto; margin-top:14px; padding-top:12px; }
.workout-body{
  margin:14px 0 0; flex:1 1 auto; min-height:0;
  display:flex; flex-direction:column; overflow:hidden;
}
.workout-split{
  display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.15fr);
  gap:18px; flex:1 1 auto; min-height:0;
}
.workout-list-col{
  display:flex; flex-direction:column; min-height:0; min-width:0;
}
.workout-list{
  display:flex; flex-direction:column; gap:8px;
  flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain;
  padding-right:4px;
  scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.22) transparent;
}
.workout-list::-webkit-scrollbar{ width:6px; }
.workout-list::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.2); border-radius:99px; }
.workout-list::-webkit-scrollbar-track{ background:transparent; }

.workout-item{
  width:100%; text-align:left; cursor:pointer;
  padding:11px 13px; border-radius:13px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.035); color:#fff;
  transition:background .2s, border-color .2s, transform .12s;
}
.workout-item:hover{ background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.22); }
.workout-item:active{ transform:translateY(1px); }
.workout-item.active{
  background:linear-gradient(180deg, rgba(198,244,50,.14), rgba(198,244,50,.04));
  border-color:rgba(198,244,50,.42);
}
.workout-item-top{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.workout-item-name{ font-size:12.5px; font-weight:700; letter-spacing:.005em; }
.workout-item-time{
  font-family:'Barlow Condensed',sans-serif; font-size:16px; font-weight:600;
  color:#dcff79; font-variant-numeric:tabular-nums; flex:0 0 auto;
}
.workout-item-sub{ margin-top:2px; font-size:10.5px; line-height:1.45; color:rgba(255,255,255,.56); }
.workout-item-meta{
  margin-top:5px; font-size:9px; font-weight:600; letter-spacing:.06em;
  text-transform:uppercase; color:rgba(255,255,255,.42);
}

.workout-config-col{
  display:flex; flex-direction:column; align-items:center; gap:14px;
  min-height:0; min-width:0;
  padding:14px 16px; border-radius:15px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.10);
  overflow-y:auto; overscroll-behavior:contain;
}
.workout-block{
  width:100%; display:flex; flex-direction:column; align-items:center; gap:6px;
}
.workout-block-label{
  font-size:9px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:rgba(255,255,255,.52); text-align:center;
}
.ftp-stepper{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
}
.ftp-step-btn{
  width:40px; height:40px; border-radius:11px; cursor:pointer;
  border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.07);
  color:#fff; font-size:20px; font-weight:600; line-height:1;
  display:grid; place-items:center;
  transition:background .2s, border-color .2s, transform .12s;
}
.ftp-step-btn:hover{ background:rgba(255,255,255,.15); border-color:rgba(255,255,255,.3); }
.ftp-step-btn:active{ transform:translateY(1px); }
.ftp-step-input{
  width:104px; height:40px; padding:0 8px; border-radius:11px; text-align:center;
  border:1px solid rgba(255,255,255,.16); background:rgba(0,0,0,.28);
  color:#fff; font-family:'Barlow Condensed',sans-serif; font-size:24px; font-weight:700;
  font-variant-numeric:tabular-nums; outline:none;
  -moz-appearance:textfield;
  transition:border-color .2s, background .2s;
}
.ftp-step-input::-webkit-outer-spin-button,
.ftp-step-input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.ftp-step-input:focus{ border-color:rgba(198,244,50,.55); background:rgba(0,0,0,.38); }

.workout-mode-switch{
  width:min(240px, 100%);
  background:rgba(0,0,0,.24);
  box-shadow:none;
}
.workout-mode-switch .map-btn{ height:30px; font-size:10.5px; }
.workout-mode-switch .map-btn:disabled{ opacity:.42; cursor:not-allowed; }
.workout-hint{
  font-size:10px; line-height:1.4; color:rgba(255,255,255,.52); text-align:center;
}
.workout-hint.warn{ color:#fcd34d; }

.workout-route-controls{
  width:100%; max-width:380px;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.workout-route-select{
  flex:1 1 auto; min-width:0; height:36px; padding:0 11px; border-radius:10px;
  border:1px solid rgba(255,255,255,.16); background:rgba(0,0,0,.30);
  color:#fff; font-size:11.5px; font-weight:600; outline:none; cursor:pointer;
  text-overflow:ellipsis;
  transition:border-color .2s, background .2s;
}
.workout-route-select:focus{ border-color:rgba(198,244,50,.55); }
.workout-route-select option{ background:#0f141c; color:#fff; }
.workout-upload-btn{
  flex:0 0 auto; height:36px; padding:0 11px; border-radius:10px; cursor:pointer;
  display:inline-flex; align-items:center; gap:6px;
  border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.07);
  color:rgba(255,255,255,.9); font-size:10px; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; white-space:nowrap;
  transition:background .2s, border-color .2s, color .2s;
}
.workout-upload-btn svg{ width:13px; height:13px; flex:0 0 auto; }
.workout-upload-btn:hover{ background:rgba(255,255,255,.15); border-color:rgba(255,255,255,.32); color:#fff; }

.workout-preview{
  width:100%; margin-top:auto;
  display:flex; flex-direction:column; gap:5px;
}
.workout-preview svg{
  display:block; width:100%; height:92px; border-radius:10px;
  background:rgba(0,0,0,.24); border:1px solid rgba(255,255,255,.08);
}
.workout-preview-meta{
  display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  font-size:9.5px; color:rgba(255,255,255,.52); font-variant-numeric:tabular-nums;
}
@media (max-width:820px){
  .workout-body{ overflow-y:auto; }
  .workout-split{ grid-template-columns:1fr; flex:0 0 auto; }
  .workout-list{ max-height:220px; }
}

/* ---------- SAMOSTATNÉ OKNO POČAS WORKOUTU (HORE POD HUD LIŠTOU) ---------- */
.workout-panel{
  --wp-zone-color:#cbd5e1;
  position:fixed; top:132px; left:50%; transform:translateX(-50%); z-index:940;
  width:min(440px, calc(100vw - 32px));
  display:flex; flex-direction:column; gap:7px;
  padding:9px 12px 9px; border-radius:18px;
  background:linear-gradient(180deg, rgba(15,19,26,.48), rgba(8,11,16,.40));
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 14px 36px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
.workout-panel[hidden]{ display:none !important; }

.wp-top{
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px;
}
.wp-kicker{
  display:block; font-size:8px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:rgba(255,255,255,.5); line-height:1.1;
}
.wp-target-wrap{ display:flex; flex-direction:column; align-items:flex-start; gap:1px; }
.wp-target{
  font-family:'Barlow Condensed',sans-serif; font-size:28px; line-height:.95;
  font-weight:700; color:var(--wp-zone-color); font-variant-numeric:tabular-nums;
  text-shadow:0 2px 12px rgba(0,0,0,.55);
  transition:color .25s ease;
}
.wp-skip{
  display:inline-flex; align-items:center; justify-content:center; gap:5px;
  height:30px; padding:0 11px; border-radius:10px; cursor:pointer;
  border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.07);
  color:rgba(255,255,255,.9); font-size:10px; font-weight:700;
  letter-spacing:.07em; text-transform:uppercase; white-space:nowrap;
  transition:background .2s, border-color .2s, color .2s, transform .12s;
}
.wp-skip svg{ width:12px; height:12px; flex:0 0 auto; }
.wp-skip:hover{ background:rgba(255,255,255,.15); border-color:rgba(255,255,255,.32); color:#fff; }
.wp-skip:active{ transform:translateY(1px); }

.wp-remaining{ display:flex; flex-direction:column; align-items:flex-end; gap:1px; }
.wp-remaining b{
  font-family:'Barlow Condensed',sans-serif; font-size:24px; line-height:.95;
  font-weight:600; color:#fff; font-variant-numeric:tabular-nums;
  text-shadow:0 2px 10px rgba(0,0,0,.5);
}

.wp-graph-wrap{
  position:relative; height:60px; border-radius:10px; overflow:hidden;
  background:rgba(0,0,0,.16); border:1px solid rgba(255,255,255,.09);
}
.wp-graph{ width:100%; height:100%; }
.wp-graph svg{ display:block; width:100%; height:100%; }
.wp-done-shade{
  position:absolute; left:0; top:0; bottom:0; width:0%;
  background:rgba(5,9,14,.46); pointer-events:none;
  transition:width .25s linear;
}
.wp-playhead{
  position:absolute; top:0; bottom:0; left:0%; width:2px;
  transform:translateX(-1px);
  background:rgba(255,255,255,.92);
  box-shadow:0 0 8px rgba(255,255,255,.65);
  pointer-events:none;
  transition:left .25s linear;
}
.wp-play-dot{
  position:absolute; left:50%; top:50%;
  width:9px; height:9px; border-radius:50%;
  transform:translate(-50%, -50%);
  background:var(--wp-zone-color);
  border:2px solid #081017;
  box-shadow:0 0 0 1px rgba(255,255,255,.8), 0 0 10px var(--wp-zone-color);
  transition:top .25s linear, background .25s ease;
}

.wp-footer{ display:flex; flex-direction:column; gap:5px; }
.wp-interval-row{
  display:flex; align-items:center; gap:7px; min-width:0;
}
.wp-phase-label{
  flex:1 1 auto; min-width:0;
  font-size:11px; font-weight:600; color:rgba(255,255,255,.9);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  text-shadow:0 1px 5px rgba(0,0,0,.45);
}
.wp-phase-time{
  flex:0 0 auto; font-size:11px; font-weight:700;
  color:var(--wp-zone-color); font-variant-numeric:tabular-nums;
  transition:color .25s ease;
}

.wp-bar{
  height:5px; border-radius:99px;
  background:rgba(255,255,255,.11); overflow:hidden;
}
.wp-bar-fill{
  display:block; height:100%; width:0%; border-radius:99px;
  background:var(--wp-zone-color);
  box-shadow:0 0 10px var(--wp-zone-color);
  transition:width .25s linear, background .25s ease;
}
.workout-panel.is-paused .wp-bar-fill{ opacity:.42; }
.workout-panel.is-paused .wp-phase-label{ color:#fbbf24; }

/* ---------- NÁPOVEDA (TLAČIDLO + MODAL) ---------- */
.help-fab{
  position:relative; flex:0 0 auto;
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; padding:0; border-radius:13px; cursor:pointer;
  background:rgba(11,15,21,.48); border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.88);
  box-shadow:0 6px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.1);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  transition:background .2s,border-color .2s,color .2s,transform .12s;
}
.help-fab:hover{ background:rgba(22,28,36,.50); border-color:rgba(255,255,255,.26); color:#fff; }
.help-fab:active{ transform:translateY(1px); }
.help-fab svg{ width:17px; height:17px; flex:0 0 auto; filter:drop-shadow(0 1px 4px rgba(0,0,0,.4)); }
.help-card{
  width:min(700px, 100%);
  max-height:min(84vh, 780px);
  display:flex; flex-direction:column;
  padding-bottom:18px;
  overflow:hidden;
}
.help-card .modal-head{ flex:0 0 auto; }
.help-body{
  margin:14px -4px 0; padding:0 4px 4px;
  flex:1 1 auto; min-height:0;
  overflow-y:auto; overscroll-behavior:contain;
  display:flex; flex-direction:column; gap:10px;
  scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.22) transparent;
}
.help-body::-webkit-scrollbar{ width:7px; }
.help-body::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.2); border-radius:99px;
}
.help-body::-webkit-scrollbar-track{ background:transparent; }
.help-section{
  padding:12px 14px; border-radius:14px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
}
.help-section-head{ display:flex; align-items:center; gap:9px; margin-bottom:5px; }
.help-step{
  width:22px; height:22px; flex:0 0 auto; border-radius:50%;
  display:grid; place-items:center;
  background:rgba(198,244,50,.14); border:1px solid rgba(198,244,50,.32);
  color:#dcff79; font-family:'Barlow Condensed',sans-serif; font-size:12px; font-weight:700;
}
.help-section h3{
  margin:0; font-size:13px; font-weight:700; color:#fff; letter-spacing:.01em;
}
.help-section p{
  margin:0; font-size:11.5px; line-height:1.55; color:rgba(255,255,255,.74);
}
.help-section p + p{ margin-top:5px; }
.help-section strong{ color:#fff; font-weight:600; }
.help-list{
  margin:6px 0 0; padding-left:17px;
  font-size:11.5px; line-height:1.5; color:rgba(255,255,255,.74);
}
.help-list li + li{ margin-top:3px; }
.help-list li::marker{ color:rgba(198,244,50,.8); }
.help-key{
  display:inline-block; padding:1px 5px; border-radius:5px;
  background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.14);
  font-size:10px; font-weight:600; color:#fff;
}
.help-card .modal-actions{ margin-top:16px; flex:0 0 auto; }

/* ---------- O PROJEKTE (MODAL) ---------- */
.about-card{
  width:min(650px, 100%);
  max-height:min(88vh, 840px);
  display:flex; flex-direction:column;
  padding-bottom:18px;
  overflow:hidden;
}
.about-card .modal-head{ flex:0 0 auto; }
.about-title{ margin:5px 0 0; line-height:1; }
.about-head-logo{ height:26px; width:auto; display:block; }
.about-body{
  margin:14px -4px 0; padding:0 4px 4px;
  flex:1 1 auto; min-height:0;
  overflow-y:auto; overscroll-behavior:contain;
  display:flex; flex-direction:column; gap:12px;
  scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.22) transparent;
}
.about-body::-webkit-scrollbar{ width:7px; }
.about-body::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.2); border-radius:99px; }
.about-body::-webkit-scrollbar-track{ background:transparent; }
.about-hero{
  position:relative;
  border-radius:16px; overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.3);
  aspect-ratio:16 / 9;
  max-height:245px;
  flex:0 0 auto;
}
.about-hero img{
  width:100%; height:100%; display:block;
  object-fit:cover; object-position:center 28%;
}
.about-hero::after{
  content:''; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(0,0,0,0) 62%, rgba(7,11,16,.38) 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
}
.about-story{
  padding:13px 15px; border-radius:14px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  display:flex; flex-direction:column; gap:9px;
}
.about-story p{
  margin:0; font-size:12.5px; line-height:1.62; color:rgba(244,247,249,.82);
}
.about-story strong{ color:#fff; font-weight:600; }
.about-mail-link{
  color:#c6f432; font-weight:600; text-decoration:none;
  border-bottom:1px solid rgba(198,244,50,.32);
  transition:border-color .16s, color .16s;
}
.about-mail-link:hover{ color:#dcff79; border-bottom-color:#dcff79; }
.about-note{
  padding:10px 14px; border-radius:12px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.09);
  font-size:11.5px; line-height:1.55; color:rgba(244,247,249,.70);
}
.about-note strong{ color:#fff; font-weight:600; }
.about-support{
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:14px 16px; border-radius:16px;
  background:linear-gradient(135deg, rgba(198,244,50,.08), rgba(255,255,255,.025) 60%);
  border:1px solid rgba(198,244,50,.22);
}
.about-support-copy{
  flex:1 1 auto; min-width:0;
  display:flex; flex-direction:column; gap:7px;
}
.about-support-copy h3{
  margin:0; font-size:13.5px; font-weight:700; color:#fff; letter-spacing:.01em;
}
.about-support-copy p{
  margin:0; font-size:12px; line-height:1.58; color:rgba(244,247,249,.76);
}
.about-links{
  margin-top:4px;
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  font-size:11.5px;
}
.about-links-sep{ color:rgba(255,255,255,.28); }
.about-qr-box{
  flex:0 0 auto;
  width:152px; padding:10px 10px 8px;
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 26px rgba(0,0,0,.35);
}
.about-qr-box img{
  width:100%; height:auto; display:block;
}
.about-card .modal-actions{ margin-top:14px; flex:0 0 auto; }
@media (max-width:560px){
  .about-support{ flex-direction:column; align-items:flex-start; }
  .about-qr-box{ width:164px; align-self:center; }
}

/* ---------- KONTO (TLAČIDLO + MODAL) ---------- */
.account-btn.connected{
  border-color:rgba(198,244,50,.38); color:#e4ff9e;
  background:rgba(24,32,18,.42);
}
body.map-tourist .account-btn.connected{
  background:rgba(24,32,18,.80);
}
.account-card{
  width:min(620px, 100%);
  max-height:min(86vh, 780px);
  display:flex; flex-direction:column;
  padding-bottom:18px;
  overflow:hidden;
}
.account-card .modal-head{ flex:0 0 auto; }
.account-body{
  margin:14px -4px 0; padding:0 4px 4px;
  flex:1 1 auto; min-height:0;
  overflow-y:auto; overscroll-behavior:contain;
  display:flex; flex-direction:column; gap:12px;
  scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.22) transparent;
}
.account-body::-webkit-scrollbar{ width:7px; }
.account-body::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.2); border-radius:99px; }
.account-body::-webkit-scrollbar-track{ background:transparent; }
.account-panel{ display:flex; flex-direction:column; gap:12px; }
.account-panel[hidden], .account-setup[hidden], .account-empty[hidden], .account-error[hidden]{ display:none !important; }
.account-note{
  margin:0; font-size:11.5px; line-height:1.6; color:rgba(255,255,255,.72);
}
.account-consent{
  display:flex; align-items:flex-start; gap:10px; cursor:pointer;
  padding:11px 12px; border-radius:12px;
  background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.11);
  font-size:11.5px; line-height:1.5; color:rgba(255,255,255,.78);
  transition:border-color .18s, background .18s;
}
.account-consent:hover{
  background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.20);
}
.account-consent input[type="checkbox"]{
  flex:0 0 auto; width:16px; height:16px; margin:2px 0 0;
  accent-color:var(--accent); cursor:pointer;
}
.account-consent a{
  color:#dcff79; text-decoration:underline; text-underline-offset:2px;
}
.account-consent a:hover{ color:#fff; }
.account-consent.is-attention{
  border-color:rgba(251,191,36,.65);
  background:rgba(251,191,36,.08);
}
.account-footer-links{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding-top:10px; border-top:1px solid rgba(255,255,255,.08);
}
.account-privacy-link{
  font-size:11px; color:rgba(255,255,255,.55);
  text-decoration:underline; text-underline-offset:2px;
  transition:color .18s;
}
.account-privacy-link:hover{ color:#fff; }
.account-delete-btn{
  padding:5px 9px; border:1px solid rgba(248,113,113,.28); border-radius:8px;
  background:rgba(248,113,113,.08); color:#fca5a5; cursor:pointer;
  font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  transition:background .18s, border-color .18s, color .18s;
}
.account-delete-btn:hover{
  background:rgba(248,113,113,.20); border-color:rgba(248,113,113,.50); color:#fecaca;
}
.account-delete-btn:disabled{ opacity:.5; cursor:default; }
.group-privacy-note{
  margin:-4px 0 0; font-size:10.5px; line-height:1.5; color:rgba(255,255,255,.48);
}
.account-google{
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; height:46px; border-radius:12px; cursor:pointer;
  background:#fff; border:1px solid rgba(255,255,255,.85); color:#1f2430;
  font-size:12.5px; font-weight:600; letter-spacing:.01em;
  box-shadow:0 8px 22px rgba(0,0,0,.25);
  transition:background .2s, transform .12s;
}
.account-google:hover{ background:#eef2f7; }
.account-google:active{ transform:translateY(1px); }
.account-google:disabled{ opacity:.6; cursor:default; }
.account-google svg{ width:18px; height:18px; flex:0 0 auto; }
.account-user{
  display:flex; align-items:center; gap:11px;
  padding:12px 14px; border-radius:14px;
  background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.10);
}
.account-avatar{
  width:36px; height:36px; flex:0 0 auto; border-radius:50%;
  display:grid; place-items:center; text-transform:uppercase;
  background:rgba(198,244,50,.16); border:1px solid rgba(198,244,50,.36);
  color:#dcff79; font-size:15px; font-weight:700;
}
.account-user-info{ flex:1 1 auto; min-width:0; }
.account-email{
  font-size:12px; font-weight:600; color:#fff;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.account-user-sub{ margin-top:2px; font-size:10px; color:rgba(255,255,255,.5); }
.account-link{
  padding:6px 8px; border:0; border-radius:8px; background:none; cursor:pointer;
  color:rgba(255,255,255,.6); font-size:9.5px; font-weight:700;
  letter-spacing:.07em; text-transform:uppercase; white-space:nowrap;
  transition:background .2s, color .2s;
}
.account-link:hover{ color:#fff; background:rgba(255,255,255,.08); }
.account-link:disabled{ opacity:.5; cursor:default; }
.account-profile{
  display:flex; flex-direction:column; gap:10px;
  padding:13px 14px; border-radius:14px;
  background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.10);
}
.account-profile-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  font-size:9.5px; font-weight:700; letter-spacing:.15em; text-transform:uppercase;
  color:rgba(255,255,255,.55);
}
.account-profile-wkg{
  padding:2px 8px; border-radius:99px;
  background:rgba(56,189,248,.12); border:1px solid rgba(56,189,248,.28);
  color:#38bdf8; font-size:10px; letter-spacing:.04em; text-transform:none;
}
.account-profile-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
}
.profile-field{ display:flex; flex-direction:column; align-items:center; gap:6px; min-width:0; }
.profile-field label{
  font-size:9px; font-weight:700; letter-spacing:.13em;
  text-transform:uppercase; color:rgba(255,255,255,.52);
}
.profile-stepper{ width:100%; }
.profile-stepper .ftp-step-input{ flex:1 1 auto; width:auto; min-width:0; }
.account-save{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 14px; border-radius:14px;
  background:linear-gradient(180deg, rgba(198,244,50,.10), rgba(198,244,50,.03));
  border:1px solid rgba(198,244,50,.28);
}
.account-save-info{ min-width:0; flex:1 1 auto; }
.account-save-label{
  font-size:9px; font-weight:700; letter-spacing:.15em; text-transform:uppercase;
  color:rgba(198,244,50,.9);
}
.account-current{
  margin-top:3px; font-size:12px; font-weight:600; color:#fff;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.account-save .modal-btn{ flex:0 0 auto; height:36px; padding:0 13px; }
.account-save .modal-btn:disabled{ opacity:.5; cursor:default; }
.account-list-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:2px 2px 0; font-size:9.5px; font-weight:700;
  letter-spacing:.15em; text-transform:uppercase; color:rgba(255,255,255,.55);
}
.account-count{
  min-width:20px; padding:1px 6px; border-radius:99px; text-align:center;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.8); font-size:9.5px; letter-spacing:.02em;
}
.account-list{ display:flex; flex-direction:column; gap:7px; }
.account-item{
  display:flex; align-items:center; gap:9px;
  padding:10px 12px; border-radius:12px;
  background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.10);
  transition:background .2s, border-color .2s;
}
.account-item:hover{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.18); }
.account-item-main{ flex:1 1 auto; min-width:0; }
.account-item-name{
  font-size:12px; font-weight:600; color:#fff;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.account-item-meta{
  margin-top:2px; font-size:10px; color:rgba(255,255,255,.52);
  font-variant-numeric:tabular-nums;
}
.account-item-btn{
  height:30px; padding:0 10px; flex:0 0 auto; cursor:pointer;
  border-radius:8px; border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.07); color:rgba(255,255,255,.85);
  font-size:9px; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  transition:background .2s, color .2s;
}
.account-item-btn:hover{ background:rgba(255,255,255,.15); color:#fff; }
.account-item-btn:disabled{ opacity:.5; cursor:default; }
.account-item-download{
  width:30px; height:30px; flex:0 0 auto; border-radius:8px; cursor:pointer;
  border:1px solid rgba(198,244,50,.28); background:rgba(198,244,50,.10);
  color:#d9f99d; display:grid; place-items:center;
  transition:background .2s, color .2s, border-color .2s;
}
.account-item-download:hover{ background:rgba(198,244,50,.22); color:#fff; border-color:rgba(198,244,50,.45); }
.account-item-download:disabled{ opacity:.45; cursor:default; }
.account-item-download svg{ width:14px; height:14px; }
.account-item-edit{
  width:30px; height:30px; flex:0 0 auto; border-radius:8px; cursor:pointer;
  border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.07);
  color:rgba(255,255,255,.78); display:grid; place-items:center;
  transition:background .2s, color .2s, border-color .2s;
}
.account-item-edit:hover{ background:rgba(255,255,255,.16); color:#fff; border-color:rgba(255,255,255,.28); }
.account-item-edit svg{ width:14px; height:14px; }
.account-item-del{
  width:30px; height:30px; flex:0 0 auto; border-radius:8px; cursor:pointer;
  border:1px solid rgba(248,113,113,.22); background:rgba(248,113,113,.08);
  color:#f87171; font-size:16px; line-height:1; display:grid; place-items:center;
  transition:background .2s, color .2s;
}
.account-item-del:hover{ background:rgba(248,113,113,.20); color:#fecaca; }
.activity-summary{
  display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px;
}
.activity-summary[hidden]{ display:none !important; }
.activity-stat{
  padding:10px 12px; border-radius:12px;
  background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.10);
}
.activity-stat-label{
  font-size:8.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:rgba(255,255,255,.5);
}
.activity-stat-val{
  margin-top:3px; font-family:'Barlow Condensed',sans-serif;
  font-size:21px; line-height:1.05; font-weight:700; color:#fff;
  font-variant-numeric:tabular-nums;
}
.modal-card.activities-card{
  width:min(1040px, calc(100vw - 36px));
  min-height:min(476px, 78vh);
  max-height:min(78vh, 620px);
  padding:20px 24px 16px;
}
.activities-card .modal-head{ padding-bottom:10px; }
.activities-card .modal-actions{ margin-top:12px; padding-top:12px; }
.activities-body{
  margin:12px 0 0; flex:1 1 auto; min-height:0;
  display:flex; flex-direction:column; gap:10px;
  overflow:hidden;
}
.activities-card .activity-stat{ padding:7px 11px; }
.activities-card .activity-stat-val{ font-size:19px; margin-top:2px; }
.activities-split{
  display:grid; grid-template-columns:minmax(0, 1.15fr) minmax(0, 1fr);
  gap:14px; flex:1 1 auto; min-height:0;
}
.activities-list-col{
  display:flex; flex-direction:column; gap:8px; min-height:0; min-width:0;
}
.activities-list{
  flex:1 1 auto; min-height:0; max-height:266px;
  overflow-y:auto; overscroll-behavior:contain;
  padding-right:4px;
  scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.22) transparent;
}
.activities-list::-webkit-scrollbar{ width:6px; }
.activities-list::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.2); border-radius:99px; }
.activities-list::-webkit-scrollbar-track{ background:transparent; }

.account-item.is-selected{
  background:rgba(198,244,50,.08);
  border-color:rgba(198,244,50,.38);
}
.account-item.is-selected .account-item-btn{
  background:rgba(198,244,50,.18);
  border-color:rgba(198,244,50,.48);
  color:#dcff79;
}
.activity-row-top{
  display:flex; align-items:baseline; gap:8px; min-width:0;
}
.activity-item{ cursor:pointer; }
.activity-item:focus-visible{ outline:2px solid rgba(198,244,50,.55); outline-offset:1px; }
.activity-row-date{
  flex:0 0 auto; font-size:11.5px; font-weight:800;
  color:#fff; font-variant-numeric:tabular-nums;
}
.activity-row-top .account-item-name{
  font-size:11.5px; font-weight:500; color:rgba(255,255,255,.78);
  min-width:0; flex:1 1 auto;
}
.activity-row-metrics{
  margin-top:3px; display:flex; align-items:center; gap:10px;
  font-size:10.5px; font-weight:600; font-variant-numeric:tabular-nums;
}
.activity-metric-w{ color:#dcff79; }
.activity-metric-hr{ color:#f87171; }
.activity-metric-muted{ color:rgba(255,255,255,.42); }

.activities-detail-col{
  display:flex; flex-direction:column; min-height:296px; min-width:0;
  padding:14px; border-radius:14px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.10);
  overflow-y:auto; overscroll-behavior:contain;
  scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.22) transparent;
}
.activity-detail-empty{
  flex:1 1 auto; display:flex; flex-direction:column;
  align-items:center; justify-content:center; text-align:center;
  gap:8px; padding:24px 16px; color:rgba(255,255,255,.48);
}
.activity-detail-empty[hidden],
.activity-detail-content[hidden]{ display:none !important; }
.activity-detail-empty svg{ width:28px; height:28px; opacity:.55; color:var(--accent); }
.ad-empty-title{
  font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:rgba(255,255,255,.72);
}
.activity-detail-empty p{ font-size:11px; line-height:1.55; max-width:240px; }

.activity-detail-content{ display:flex; flex-direction:column; gap:12px; }
.ad-head{
  padding-bottom:10px; border-bottom:1px solid rgba(255,255,255,.10);
}
.ad-name{
  font-size:15px; font-weight:700; color:#fff; line-height:1.25;
  word-break:break-word;
}
.ad-date{
  margin-top:3px; font-size:10.5px; color:rgba(255,255,255,.52);
  font-variant-numeric:tabular-nums;
}
.ad-grid{
  display:grid; grid-template-columns:repeat(2, minmax(0, 1fr));
  grid-auto-rows:1fr; gap:8px;
}
.ad-box{
  padding:9px 11px; border-radius:10px;
  background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.09);
  display:flex; flex-direction:column; justify-content:center; gap:2px; min-width:0;
}
.ad-inline-sub{
  font-family:'Inter',sans-serif; font-size:11px; font-weight:600;
  color:rgba(255,255,255,.62); margin-left:3px;
}
.ad-box-split{
  flex-direction:row; align-items:center; justify-content:space-between; gap:10px;
}
.ad-split-col{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.ad-split-right{ align-items:flex-end; text-align:right; }
.ad-box-accent{
  background:linear-gradient(180deg, rgba(198,244,50,.08), rgba(198,244,50,.02));
  border-color:rgba(198,244,50,.22);
}
.ad-box-hr{
  background:linear-gradient(180deg, rgba(248,113,113,.08), rgba(248,113,113,.02));
  border-color:rgba(248,113,113,.22);
}
.ad-label{
  font-size:8px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color:rgba(255,255,255,.52);
}
.ad-val{
  font-family:'Barlow Condensed',sans-serif; font-size:21px; line-height:1.05;
  font-weight:700; color:#fff; font-variant-numeric:tabular-nums;
}
.ad-val small{
  font-family:'Inter',sans-serif; font-size:10.5px; font-weight:600;
  color:rgba(255,255,255,.58); margin-left:1px;
}
.ad-box-accent .ad-val{ color:#dcff79; }
.ad-box-hr .ad-val{ color:#fda4af; }
.ad-sub{
  font-size:10px; font-weight:600; color:rgba(255,255,255,.6);
  font-variant-numeric:tabular-nums;
}
@media (max-width:820px){
  .activities-body{ overflow-y:auto; }
  .activities-split{ grid-template-columns:1fr; flex:0 0 auto; }
  .activities-list{ max-height:240px; }
}
.account-empty{
  padding:20px 14px; border-radius:12px; text-align:center;
  border:1px dashed rgba(255,255,255,.14);
  color:rgba(255,255,255,.5); font-size:11.5px; line-height:1.55;
}
.account-error{
  padding:10px 12px; border-radius:10px; font-size:11px; line-height:1.5;
  background:rgba(248,113,113,.09); border:1px solid rgba(248,113,113,.26);
  color:#fecaca;
}
.account-setup{
  padding:14px 15px; border-radius:14px;
  background:rgba(251,191,36,.07); border:1px solid rgba(251,191,36,.28);
  display:flex; flex-direction:column; gap:8px;
}
.account-setup-title{ font-size:12px; font-weight:700; color:#fcd34d; }
.account-setup-text{ margin:0; font-size:11.5px; line-height:1.6; color:rgba(255,255,255,.75); }
.account-setup-row{ display:flex; flex-direction:column; gap:4px; margin-top:2px; }
.account-setup-row span{ font-size:9.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.5); }
.account-setup-text code{
  display:inline; padding:1px 5px; border-radius:5px;
  background:rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.12);
  color:#dcff79; font:10.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break:break-word;
}
.account-setup-row code{
  display:block; padding:8px 10px; border-radius:8px;
  background:rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.12);
  color:#dcff79; font:10.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break:break-all;
}
.account-setup-hint{ margin:0; font-size:10px; line-height:1.5; color:rgba(255,255,255,.45); }
.account-card .modal-actions{ margin-top:16px; flex:0 0 auto; }
.account-signout-btn{ margin-right:auto; }

/* ---------- FINISH / SUMMARY MODAL ---------- */
.modal-backdrop{
  position:fixed; inset:0; z-index:2000;
  display:flex; align-items:center; justify-content:center;
  padding:20px;
  background:rgba(4,7,11,.46);
  opacity:0; visibility:hidden; pointer-events:none;
  content-visibility:hidden;
  transition:opacity .22s ease, visibility 0s linear .22s;
}
.modal-backdrop.open{
  opacity:1; visibility:visible; pointer-events:auto;
  content-visibility:visible;
  -webkit-backdrop-filter:blur(12px) saturate(135%);
  backdrop-filter:blur(12px) saturate(135%);
  transition:opacity .22s ease, visibility 0s linear 0s;
}
/* Konto, Trasy a Jazdy sa môžu otvárať ponad iné okná – musia byť navrchu (pod #finishModal.stack). */
#accountModal, #routesModal, #activitiesModal{ z-index:2050; }
.modal-card{
  width:min(560px, 100%);
  border-radius:24px;
  padding:24px 26px 22px;
  background:linear-gradient(180deg, rgba(15,19,26,.82), rgba(8,11,16,.76));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 24px 64px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.14);
  transform:translateY(10px) scale(.98);
  transition:transform .22s ease;
}
.modal-backdrop.open .modal-card{
  transform:none;
}
.modal-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding-bottom:14px; border-bottom:1px solid rgba(255,255,255,.11);
}
.modal-badge{
  display:inline-flex; align-items:center; gap:7px;
  font-size:10px; font-weight:700; letter-spacing:.18em; text-transform:uppercase;
  color:var(--accent);
  text-shadow:0 1px 6px rgba(0,0,0,.45);
}
.modal-badge-dot{
  width:8px; height:8px; border-radius:50%; background:var(--accent);
  box-shadow:0 0 12px rgba(198,244,50,.9);
}
.modal-title{
  margin:4px 0 0; font-size:22px; font-weight:700; letter-spacing:-.01em; color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,.5);
}
.modal-route{
  margin-top:2px; font-size:12px; color:rgba(255,255,255,.6);
  text-shadow:0 1px 6px rgba(0,0,0,.45);
}
.modal-close{
  width:34px; height:34px; border-radius:10px; border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06); color:rgba(255,255,255,.78);
  cursor:pointer; font-size:18px; line-height:1;
  display:grid; place-items:center;
  transition:background .2s, color .2s;
}
.modal-close:hover{ background:rgba(255,255,255,.14); color:#fff; }

.stats-rows{
  display:flex; flex-direction:column; gap:10px;
  margin-top:18px;
}
.stats-row-2{
  display:grid; grid-template-columns:repeat(2, 1fr); gap:10px;
}
.stat-box{
  padding:14px 18px; border-radius:16px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.11);
  display:flex; flex-direction:column; justify-content:center; gap:4px;
  transition:border-color .2s, background .2s, transform .12s;
}
.stat-box:hover{
  border-color:rgba(255,255,255,.22);
  background:rgba(255,255,255,.07);
}
.stat-box.highlight{
  background:linear-gradient(180deg, rgba(198,244,50,.11), rgba(198,244,50,.03));
  border-color:rgba(198,244,50,.32);
}
.stat-box.hr-accent{
  background:linear-gradient(180deg, rgba(248,113,113,.11), rgba(248,113,113,.03));
  border-color:rgba(248,113,113,.3);
}
.stat-label{
  font-size:10px; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  color:rgba(255,255,255,.62);
  text-shadow:0 1px 5px rgba(0,0,0,.45);
}
.stat-box.highlight .stat-label{ color:rgba(198,244,50,.92); }
.stat-box.hr-accent .stat-label{ color:rgba(248,113,113,.94); }
.stat-val-line{
  display:flex; align-items:baseline; gap:6px; margin-top:3px;
}
.stat-val{
  font-family:'Barlow Condensed',sans-serif; font-size:38px; line-height:1;
  font-weight:700; color:#fff; font-variant-numeric:tabular-nums;
  text-shadow:0 2px 12px rgba(0,0,0,.45);
}
.stat-box.highlight .stat-val{
  color:var(--accent);
  text-shadow:0 2px 12px rgba(0,0,0,.45), 0 0 22px rgba(198,244,50,.3);
}
.stat-box.hr-accent .stat-val{
  color:#fda4af;
  text-shadow:0 2px 12px rgba(0,0,0,.45), 0 0 22px rgba(248,113,113,.3);
}
.stat-unit{
  font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  color:rgba(255,255,255,.58);
  text-shadow:0 1px 5px rgba(0,0,0,.45);
}
.stat-sub{
  font-size:11px; color:rgba(255,255,255,.65); font-variant-numeric:tabular-nums;
  text-shadow:0 1px 5px rgba(0,0,0,.45);
}

.modal-actions{
  display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap;
  margin-top:20px; padding-top:16px; border-top:1px solid rgba(255,255,255,.11);
}
.modal-actions [hidden]{ display:none !important; }
.modal-btn{
  height:40px; padding:0 16px; border-radius:11px; cursor:pointer;
  font-size:11px; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  display:inline-flex; align-items:center; gap:8px;
  transition:background .2s, border-color .2s, color .2s;
}
.modal-btn:disabled{ opacity:.55; cursor:default; }
.modal-btn-ghost{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.15);
  color:rgba(255,255,255,.88);
  text-shadow:0 1px 5px rgba(0,0,0,.45);
}
.modal-btn-ghost:hover{ background:rgba(255,255,255,.13); color:#fff; }
.modal-btn-primary{
  background:var(--accent); border:1px solid var(--accent);
  color:#081014;
}
.modal-btn-primary:hover{ background:#d4ff4d; }
.modal-btn-accent{
  background:rgba(198,244,50,.14); border:1px solid rgba(198,244,50,.45);
  color:#dcff79; text-shadow:0 1px 5px rgba(0,0,0,.4);
}
.modal-btn-accent:hover{ background:rgba(198,244,50,.24); border-color:rgba(198,244,50,.65); }
.modal-btn-accent:disabled{ opacity:.55; cursor:default; }
.modal-btn-danger{
  background:rgba(248,113,113,.12); border:1px solid rgba(248,113,113,.4); color:#fecaca;
}
.modal-btn-danger:hover{ background:rgba(248,113,113,.22); border-color:rgba(248,113,113,.6); }
.modal-btn-danger:disabled{ opacity:.55; cursor:default; }

/* Štatistika uloženej jazdy sa otvára nad oknom Konto */
#finishModal.stack{ z-index:2100; }

/* Dialógové okno (potvrdenie / premenovanie) sa vždy zobrazuje nad všetkými ostatnými modálmi */
#dialogModal{ z-index:2200; }
.modal-card.dialog-card{ width:min(440px, 100%); }
.dialog-card .modal-title{ font-size:20px; }
.dialog-body{ margin-top:16px; display:flex; flex-direction:column; gap:12px; }
.dialog-message{
  margin:0; font-size:13.5px; line-height:1.55; color:rgba(255,255,255,.84);
  white-space:pre-line;
  text-shadow:0 1px 5px rgba(0,0,0,.45);
}
.dialog-message[hidden]{ display:none; }
.dialog-input-wrap{ display:flex; flex-direction:column; gap:6px; }
.dialog-input-wrap[hidden]{ display:none; }
.dialog-input-label{
  font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color:rgba(255,255,255,.65);
}
.dialog-input{
  width:100%; height:42px; padding:0 13px; border-radius:11px;
  border:1px solid rgba(255,255,255,.16); background:rgba(0,0,0,.3);
  color:#fff; font-size:14px; font-weight:500; outline:none;
  transition:border-color .2s, background .2s, box-shadow .2s;
}
.dialog-input::placeholder{ color:rgba(255,255,255,.38); }
.dialog-input:focus{
  border-color:rgba(198,244,50,.55); background:rgba(0,0,0,.42);
  box-shadow:0 0 0 3px rgba(198,244,50,.12);
}
.dialog-card.is-danger .modal-badge{ color:#fca5a5; }
.dialog-card.is-danger .modal-badge-dot{
  background:#f87171;
  box-shadow:0 0 12px rgba(248,113,113,.85);
}

/* Rozloženie tlačidiel v okne Štatistika jazdy */
#finishModal .modal-card{ width:min(600px, 100%); }
.finish-stats-grid{ margin-top:16px; }
.finish-actions{
  flex-direction:column; align-items:stretch; justify-content:center; gap:10px;
}
.finish-actions-row{
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px;
  width:100%;
}
.finish-btn-left{ justify-self:start; }
.finish-btn-center{ justify-self:center; min-width:152px; justify-content:center; }
.finish-btn-right{ justify-self:end; }
.finish-actions-sub{
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%;
}
.finish-actions-sub .modal-btn{ min-width:152px; justify-content:center; }
.finish-actions .modal-btn{ padding:0 13px; font-size:10px; letter-spacing:.07em; }
@media (max-width:600px){
  .finish-actions-row{ grid-template-columns:1fr; }
  .finish-btn-left, .finish-btn-center, .finish-btn-right{ justify-self:stretch; justify-content:center; }
  .finish-actions-sub .modal-btn{ flex:1 1 auto; }
}

/* ---------- TOASTS ---------- */
#toasts{
  position:fixed; z-index:1000; left:18px; right:18px;
  bottom:calc(var(--profile-h) + 64px);
  display:flex; flex-direction:column; align-items:flex-start; gap:8px;
  pointer-events:none;
}
.toast{
  --tc:#38bdf8;
  pointer-events:auto; position:relative; display:flex; align-items:flex-start; gap:10px;
  max-width:430px; padding:10px 30px 10px 14px; border-radius:12px;
  background:rgba(9,13,18,.48); border:1px solid rgba(255,255,255,.15);
  box-shadow:0 10px 28px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.1);
  -webkit-backdrop-filter:blur(10px) saturate(135%); backdrop-filter:blur(10px) saturate(135%);
  font-size:11.5px; line-height:1.45; color:rgba(255,255,255,.94);
  text-shadow:0 1px 5px rgba(0,0,0,.5);
  opacity:0; transform:translateY(8px); transition:opacity .2s, transform .2s;
}
.toast::before{
  content:''; width:3px; align-self:stretch; border-radius:99px;
  background:var(--tc); box-shadow:0 0 10px var(--tc); flex:0 0 auto;
}
.toast.show{ opacity:1; transform:none; }
.toast.hide{ opacity:0; transform:translateY(6px); }
.toast-close{
  position:absolute; right:6px; top:5px; width:20px; height:20px; border:0;
  background:none; color:rgba(255,255,255,.5); cursor:pointer; font-size:15px;
  line-height:1; border-radius:5px;
}
.toast-close:hover{ color:#fff; background:rgba(255,255,255,.1); }

.debug-panel{
  position:fixed; left:14px; bottom:calc(var(--profile-h) + 78px); z-index:1400;
  max-width:min(430px, calc(100vw - 24px)); padding:8px 10px;
  background:rgba(4,8,12,.48); border:1px solid rgba(198,244,50,.22);
  border-radius:10px; color:rgba(214,245,120,.95);
  text-shadow:0 1px 4px rgba(0,0,0,.6);
  font:10px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  pointer-events:none;
}
.debug-panel[hidden]{ display:none; }
.debug-panel .debug-head{
  font:600 9px/1 Inter, sans-serif; letter-spacing:.16em; text-transform:uppercase;
  color:rgba(198,244,50,.7); margin-bottom:5px;
}
.debug-panel pre{ margin:0; font:inherit; white-space:pre-wrap; }

/* ---------- TURISTICKÁ MAPA – VYŠŠIE KRYTIE PRVKOV PRE ČITATEĽNOSŤ ---------- */
body.map-tourist .maplibregl-ctrl-attrib{
  background:rgba(9,13,18,.78) !important;
}
body.map-tourist .mapy-logo{
  background:rgba(255,255,255,.94);
}
body.map-tourist #hud{
  background:linear-gradient(180deg, rgba(15,19,26,.86), rgba(8,11,16,.78));
}
body.map-tourist .tool-btn{
  background:rgba(11,15,21,.76);
}
body.map-tourist .tool-btn:hover{
  background:rgba(22,28,36,.88);
}
body.map-tourist .tool-btn.connected{
  background:rgba(24,32,18,.80);
}
body.map-tourist #btnTrainer.connected{
  background:rgba(13,38,38,.82);
}
body.map-tourist #btnHr.connected{
  background:rgba(46,16,20,.82);
}
body.map-tourist .map-switch{
  background:rgba(11,15,21,.76);
}
body.map-tourist .profile-panel{
  background:linear-gradient(180deg, rgba(12,16,22,.84), rgba(7,10,14,.90));
}
body.map-tourist .modal-backdrop{
  background:rgba(4,7,11,.72);
}
body.map-tourist .modal-card{
  background:linear-gradient(180deg, rgba(15,19,26,.88), rgba(8,11,16,.82));
}
body.map-tourist .toast{
  background:rgba(9,13,18,.90);
}
body.map-tourist .debug-panel{
  background:rgba(4,8,12,.88);
}
body.map-tourist .help-fab{
  background:rgba(11,15,21,.76);
}
body.map-tourist .help-fab:hover{
  background:rgba(22,28,36,.88);
}
body.map-tourist .workout-panel{
  background:linear-gradient(180deg, rgba(15,19,26,.86), rgba(8,11,16,.78));
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:1380px){
  .profile-head{ display:flex; justify-content:center; }
  .profile-legend{ display:none; }
}
@media (max-width:1100px){
  .map-switch .map-label{ display:none; }
}
@media (max-width:980px){
  :root{ --profile-h:156px; }
  #hud{ top:60px; width:calc(100vw - 24px); }
  .workout-panel{ top:170px; left:50%; transform:translateX(-50%); width:min(420px, calc(100vw - 24px)); }
  .toolbar{ left:12px; bottom:calc(var(--profile-h) + 12px); gap:6px; }
  .ride-controls{ bottom:calc(var(--profile-h) + 12px); gap:6px; }
  .map-controls{ right:12px; bottom:calc(var(--profile-h) + 12px); gap:6px; }
  .help-fab{ width:38px; height:38px; }
  .tool-btn{ height:38px; padding:0 10px; }
  .tool-btn-icon{ width:38px; padding:0; }
  .tool-btn-weight{ width:auto; padding:0 10px; }
  .tool-btn-weight svg{ display:none; }
  .grade-bar{ display:none; }
  .mapy-logo{ top:22px; right:12px; height:38px; padding:4px 7px; }
  .mapy-logo img{ height:26px; }
  .maplibregl-ctrl-top-right{ top:0 !important; right:0 !important; }
  .route-name{ max-width:34vw; }
  .profile-legend{ display:none; }
  .profile-panel{ padding-left:12px; padding-right:12px; }
  #toasts{ left:12px; right:12px; }
  .workout-settings{ grid-template-columns:1fr; }
}
@media (max-width:780px){
  .profile-act-btn{ width:28px; padding:0; }
  .profile-act-label{ display:none; }
  .tool-label{ display:none !important; }
  .tool-btn{ width:38px; padding:0; }
}
@media (max-width:640px){
  :root{ --profile-h:146px; }
  .toolbar{ left:10px; bottom:calc(var(--profile-h) + 12px); gap:5px; }
  .ride-controls{ bottom:calc(var(--profile-h) + 12px); gap:5px; }
  .help-fab{ width:38px; height:38px; }
  #toasts{ bottom:calc(var(--profile-h) + 58px); }
  .map-controls{ right:10px; bottom:calc(var(--profile-h) + 12px); gap:5px; }
  .ride-controls .map-action-btn{ height:38px; padding:0 10px; }
  .ride-controls .map-pill-icon{ width:38px; padding:0; }
  .map-switch{ height:38px; }
  .map-controls .map-pill{ height:38px; padding:0 10px; }
  .map-controls .map-pill-icon{ width:38px; padding:0; }
  .map-btn{ height:28px; padding:0 8px; }
  .map-switch-icons .map-btn-icon{ width:30px; height:28px; padding:0; }
  .help-card{ max-height:calc(100vh - 24px); padding:18px 18px 15px; }
  .account-card{ max-height:calc(100vh - 24px); padding:18px 18px 15px; }
  .workout-card{ max-height:calc(100vh - 24px); padding:18px 18px 15px; }
  .workout-preview svg{ height:56px; }
  .account-current{ max-width:42vw; }
  .help-section{ padding:10px 12px; }
  .help-section p, .help-list{ font-size:11px; }
  .hud-bar{ padding:8px 6px; }
  .hud-cell{ padding:2px 4px; }
  .hud-kicker{ font-size:10px; }
  .hud-val{ font-size:28px; }
  .hud-val-power{ font-size:34px; }
  .power-zone-bar{ width:64px; height:2.5px; margin-top:4px; gap:2px; }
  .power-zone-badge{ font-size:8px; padding:1px 4px; }
  .metric-unit{ font-size:10px; }
  .grade-chip{ min-width:64px; font-size:18px; height:28px; padding:0 7px; }
  .hud-cell.grade.is-mode .grade-chip{ min-width:64px; font-size:20px; height:32px; }
  .grade-bar{ display:none; }
  .profile-panel{ padding:5px 10px 4px; }
  .profile-head{ gap:8px; }
  .route-name{ max-width:46vw; font-size:12.5px; }
  .route-meta{ font-size:10.5px; }
  .profile-empty-copy{ display:none; }
  .stats-row-2{ grid-template-columns:1fr; }
  .stat-val{ font-size:36px; }
  .workout-panel{ top:150px; left:50%; transform:translateX(-50%); width:calc(100vw - 20px); padding:8px 10px; }
  .wp-target{ font-size:24px; }
  .wp-remaining b{ font-size:21px; }
  .wp-graph-wrap{ height:54px; }
}
.profile-empty.hidden{ display:none !important; }

/* ---------- WORKOUT – KARTA HORE POD HUD, SKRYTÝ SPODNÝ PROFIL ---------- */
body.workout-active{ --profile-h:0px; }
body.workout-active #profilePanel{ display:none; }

/* ---------- ZAMKNUTÉ FUNKCIE PRE NEPRIHLÁSENÝCH ---------- */
.is-locked{ position:relative; opacity:.65; }
.is-locked:hover{ opacity:.85; }
.is-locked::after{
  content:"";
  position:absolute; top:-4px; right:-4px; width:15px; height:15px;
  border-radius:50%;
  background:rgba(11,15,21,.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dcff79' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center/9px 9px no-repeat;
  border:1px solid rgba(255,255,255,.28);
  box-shadow:0 2px 8px rgba(0,0,0,.45);
  pointer-events:none;
}
.hud-val.locked-value, .stat-val.locked-value{
  font-size:22px; line-height:1.1; letter-spacing:0; cursor:pointer;
}
.stat-sub.locked-value{ cursor:pointer; }
.hud-val.locked-value, .stat-val.locked-value, .stat-sub.locked-value{
  filter:grayscale(1); opacity:.7;
}
.locked-value + .metric-unit,
.locked-value + .stat-unit{ display:none; }

/* ---------- SPOLOČNÁ JAZDA – TOOLBAR + SKLENENÁ KARTIČKA POD LOGOM ---------- */
.tool-btn.group-active{
  border-color:rgba(0,229,255,.45);
  color:#a5f3fc;
  background:rgba(10,32,40,.48);
}
.device-dot.group-live{
  background:#00e5ff;
  box-shadow:0 0 9px rgba(0,229,255,.95);
}

.group-panel{
  position:fixed;
  right:calc(50vw + var(--hud-w) / 2 + 12px);
  left:auto;
  top:14px;
  z-index:850;
  width:clamp(176px, calc(50vw - var(--hud-w) / 2 - 24px), 214px);
  padding:10px 12px 11px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(15,19,26,.54), rgba(8,11,16,.46));
  border:1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  box-shadow:0 14px 36px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
  color:#f4f7f9;
}
.group-panel[hidden]{ display:none; }
body.map-tourist .group-panel{
  background:linear-gradient(180deg, rgba(11,15,21,.84), rgba(8,11,16,.78));
  border-color:rgba(255,255,255,.22);
}

.gp-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding-bottom:7px;
  margin-bottom:8px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.gp-room-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:10px;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:rgba(255,255,255,.65);
}
.gp-room-tag b{
  font-family:'Barlow Condensed',sans-serif;
  font-size:15px;
  letter-spacing:.08em;
  color:#a5f3fc;
}
.gp-live-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#00e5ff;
  box-shadow:0 0 8px rgba(0,229,255,.9);
  flex:0 0 auto;
}
.gp-open-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.82);
  cursor:pointer;
  transition:background .15s, border-color .15s, color .15s;
}
.gp-open-btn:hover{
  background:rgba(0,229,255,.16);
  border-color:rgba(0,229,255,.45);
  color:#fff;
}
.gp-open-btn svg{ width:13px; height:13px; }

.gp-waiting{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:rgba(255,255,255,.72);
  padding:2px 0;
}
.gp-waiting[hidden], .gp-peer[hidden]{ display:none; }

.gp-peer-top{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:9px;
}
.gp-peer-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#00e5ff;
  border:1.5px solid #081017;
  box-shadow:0 0 10px rgba(0,229,255,.85);
  flex:0 0 auto;
}
.gp-peer-dot-pulse{
  animation:livePulse 1.4s infinite;
}
.gp-peer-name{
  font-size:13.5px;
  font-weight:700;
  color:#fff;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0;
  flex:1 1 auto;
}
.gp-peer-gap{
  font-size:11px;
  font-weight:700;
  padding:2px 6px;
  border-radius:6px;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.88);
  white-space:nowrap;
  flex:0 0 auto;
}
.gp-peer-gap[hidden]{ display:none; }
.gp-peer-gap.is-ahead{
  background:rgba(245,158,11,.18);
  border-color:rgba(245,158,11,.42);
  color:#fde68a;
}
.gp-peer-gap.is-behind{
  background:rgba(198,244,50,.15);
  border-color:rgba(198,244,50,.38);
  color:#dcff79;
}

.gp-metrics{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.gp-metric{
  display:flex;
  flex-direction:column;
  padding:6px 8px;
  border-radius:10px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
}
.gp-metric-label{
  font-size:9.5px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(255,255,255,.55);
  margin-bottom:2px;
}
.gp-metric-hr .gp-metric-label{ color:rgba(248,113,113,.88); }
.gp-metric-wkg .gp-metric-label{ color:rgba(103,232,249,.9); }
.gp-metric-line{
  display:flex;
  align-items:baseline;
  gap:4px;
}
.gp-metric-val{
  font-family:'Barlow Condensed',sans-serif;
  font-size:24px;
  line-height:1;
  font-weight:700;
  color:#fff;
  letter-spacing:.01em;
}
.gp-metric-unit{
  font-size:10px;
  font-weight:600;
  color:rgba(255,255,255,.58);
}

/* ---------- SPOLOČNÁ JAZDA – MODAL ---------- */
.group-card{ width:min(480px, calc(100vw - 24px)); }
.group-badge-dot{
  background:#00e5ff !important;
  box-shadow:0 0 8px rgba(0,229,255,.85) !important;
}
.group-body{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:14px;
}
.group-body[hidden]{ display:none; }
.group-mode-switch{ width:100%; }
.group-mode-switch[hidden]{ display:none; }
.group-form{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.group-form-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:12px;
}
.group-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.group-field[hidden]{ display:none; }
.group-field label{
  font-size:11px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,.68);
}
.group-input{
  height:40px;
  padding:0 12px;
  border-radius:11px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  font-size:14px;
  font-weight:600;
  outline:none;
  transition:border-color .15s, background .15s;
}
.group-input:focus{
  border-color:rgba(0,229,255,.6);
  background:rgba(0,229,255,.07);
}
.group-code-input{
  font-family:'Barlow Condensed',sans-serif;
  font-size:22px;
  letter-spacing:.18em;
  text-transform:uppercase;
  text-align:center;
}
.group-hint{
  font-size:12px;
  line-height:1.45;
  color:rgba(255,255,255,.62);
}
.group-actions{
  margin-top:4px;
  justify-content:space-between;
}

.group-invite-box{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(0,229,255,.06);
  border:1px solid rgba(0,229,255,.24);
}
.group-invite-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.group-invite-label{
  font-size:10px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(165,243,252,.8);
}
.group-active-code{
  font-family:'Barlow Condensed',sans-serif;
  font-size:28px;
  line-height:1.05;
  font-weight:700;
  letter-spacing:.12em;
  color:#fff;
}
.group-invite-link-row{
  display:flex;
  gap:8px;
}
.group-url-input{
  flex:1 1 auto;
  min-width:0;
  height:36px;
  padding:0 10px;
  border-radius:10px;
  background:rgba(7,11,16,.65);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.86);
  font-size:12px;
  outline:none;
}
.group-copy-btn{
  flex:0 0 auto;
  min-width:148px;
  justify-content:center;
  height:36px;
  padding:0 12px !important;
  font-size:12px !important;
  white-space:nowrap;
}

.group-riders-box{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
}
.group-riders-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,.65);
  margin-bottom:2px;
}
.group-rider-row{
  display:flex;
  align-items:center;
  gap:9px;
  padding:6px 8px;
  border-radius:10px;
  background:rgba(255,255,255,.03);
}
.group-rider-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  flex:0 0 auto;
}
.group-rider-dot-self{
  background:#c6f432;
  box-shadow:0 0 8px rgba(198,244,50,.85);
}
.group-rider-dot-peer{
  background:#00e5ff;
  box-shadow:0 0 8px rgba(0,229,255,.85);
}
.group-rider-dot-waiting{
  background:rgba(255,255,255,.28);
}
.group-rider-name{
  flex:1 1 auto;
  min-width:0;
  font-size:13px;
  font-weight:600;
  color:#fff;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.group-rider-muted{
  color:rgba(255,255,255,.5);
  font-weight:500;
}
.group-rider-tag{
  font-size:10px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:2px 7px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.72);
}
.group-route-status{
  font-size:12px;
  color:rgba(255,255,255,.68);
  padding:8px 11px;
  border-radius:10px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}
.group-leave-btn{
  border-color:rgba(248,113,113,.35) !important;
  color:#fca5a5 !important;
}
.group-leave-btn:hover{
  background:rgba(239,68,68,.16) !important;
  border-color:rgba(248,113,113,.6) !important;
  color:#fecaca !important;
}

@media (max-width:1760px){
  .group-panel{
    top:106px;
    left:14px;
    right:auto;
    width:214px;
  }
}
@media (max-width:1320px){
  .group-panel{
    top:118px;
    left:14px;
    right:auto;
    width:214px;
  }
}
@media (max-width:980px){
  .group-panel{
    top:164px;
    left:12px;
    right:auto;
    width:200px;
    padding:8px 10px 9px;
  }
}
@media (max-width:640px){
  .group-panel{
    top:146px;
    left:10px;
    width:186px;
  }
  .group-form-grid{ grid-template-columns:1fr; }
  .group-invite-link-row{ flex-direction:column; }
}

/* ---------- ZÁMOK PRE MOBILY A TABLETY ---------- */
.mobile-lock{
  display:none;
}
.mobile-lock-logo{
  height:40px;
  width:auto;
  margin:0 auto 6px;
}
.mobile-lock-motto{
  font-size:13px;
  font-weight:500;
  color:rgba(244,247,249,.68);
  margin:0 0 16px;
}
html.is-mobile-locked,
html.is-mobile-locked body{
  overflow:auto;
  background:#070b10;
}
html.is-mobile-locked body > :not(#mobileLock){
  display:none !important;
}
html.is-mobile-locked #mobileLock{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 20px;
  overflow-y:auto;
  background:
    radial-gradient(640px 420px at 50% 0%, rgba(198,244,50,.11), transparent 68%),
    radial-gradient(520px 360px at 50% 100%, rgba(56,189,248,.08), transparent 70%),
    #070b10;
}
.mobile-lock-card{
  width:min(420px, 100%);
  border-radius:24px;
  padding:28px 24px 24px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  background:linear-gradient(180deg, rgba(15,19,26,.92), rgba(8,11,16,.88));
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 24px 64px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.14);
}
.mobile-lock-icon{
  width:60px;
  height:60px;
  margin-top:18px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:var(--accent);
  background:rgba(198,244,50,.10);
  border:1px solid rgba(198,244,50,.32);
  box-shadow:0 0 28px rgba(198,244,50,.16);
}
.mobile-lock-icon svg{
  width:30px;
  height:30px;
}
.mobile-lock-title{
  margin-top:16px;
  font-family:'Barlow Condensed','Inter',sans-serif;
  font-size:32px;
  font-weight:700;
  line-height:1.1;
  letter-spacing:.02em;
  color:#fff;
}
.mobile-lock-desc{
  margin-top:10px;
  font-size:14px;
  line-height:1.6;
  color:rgba(244,247,249,.76);
}
.mobile-lock-desc strong{
  color:#fff;
  font-weight:600;
}
.mobile-lock-pills{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}
.mobile-lock-pill{
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.04em;
  color:rgba(255,255,255,.9);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
}
.mobile-lock-btn{
  margin-top:22px;
  width:100%;
  justify-content:center;
  height:44px;
  font-size:12px;
}
.mobile-lock-hint{
  margin-top:10px;
  font-size:12px;
  color:rgba(244,247,249,.5);
}

/* ---------- RÝCHLY ODHAD FTP ---------- */
.account-profile-wkg.is-unset{
  color:rgba(244,247,249,.52);
  font-weight:500;
}
.ftp-est-wrap{
  margin-top:8px;
  display:flex;
  justify-content:center;
}
.ftp-est-toggle{
  background:none;
  border:0;
  padding:2px 6px;
  color:rgba(198,244,50,.88);
  font-size:11.5px;
  font-weight:600;
  cursor:pointer;
  text-align:center;
  transition:color .15s;
}
.ftp-est-toggle:hover{
  color:#e4ff9e;
  text-decoration:underline;
}
#ftpEstModal,
.ftp-est-backdrop{
  z-index:2150;
}
.ftp-est-card{
  width:min(440px, calc(100vw - 24px));
}
.ftp-est-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:14px;
}
.ftp-est-btn{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  padding:11px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  cursor:pointer;
  text-align:left;
  transition:background .15s, border-color .15s, transform .1s;
}
.ftp-est-btn:hover{
  background:rgba(198,244,50,.12);
  border-color:rgba(198,244,50,.48);
}
.ftp-est-btn:active{ transform:translateY(1px); }
.ftp-est-name{
  font-size:13px;
  font-weight:700;
  color:#fff;
  line-height:1.2;
}
.ftp-est-desc{
  font-size:11px;
  color:rgba(244,247,249,.55);
  line-height:1.3;
}
.ftp-est-sub{
  margin-top:2px;
  font-size:11.5px;
  color:rgba(244,247,249,.7);
  line-height:1.2;
}
.ftp-est-watts{
  color:var(--accent);
  font-weight:700;
}
