html, body { background: #0c0b0b; overflow-x: hidden; }

.atlas-stage {
  --bg: #0c0b0b;
  --surface: #1f1b18;
  --surface2: #2a2622;
  --text: #f1efe8;
  --muted: #a8a49b;
  --accent: #7750ef;
  --accent2: #6840d8;
  --accent-light: #d0c5ff;
  --on-accent: #ffffff;
  --radius: 14px;
  --read: 640px;

  /* Pełna szerokość okna — tło wychodzi poza kolumnę treści (full-bleed),
     więc na desktopie nie prześwituje biel motywu po bokach. */
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  background: var(--bg);
  color: var(--text);
  font-family: var(--atlas-font);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}

.atlas {
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(clamp(16px, 4vw, 28px) + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 32px) 48px;
  color: var(--text);
  box-sizing: border-box;
}
.atlas * { box-sizing: border-box; }

.atlas-loading, .atlas-error, .atlas-empty {
  padding: 48px 8px; text-align: center; color: var(--muted);
}
.atlas-error { color: #ff8a8a; }

.atlas-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
}
.atlas-head h1 { flex: 1; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; margin: 0; }
.atlas-back {
  flex: 0 0 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; line-height: 1; color: var(--text); text-decoration: none;
  background: var(--surface); border-radius: 10px;
}
.atlas-back--empty { background: transparent; }

/* Ekrany czytane: węższa kolumna, wyrównana do lewej krawędzi nagłówka */
.atlas-sub { color: var(--muted); font-size: 14px; margin: 18px 0 10px; max-width: var(--read); }
.atlas-list, .atlas-pills, .atlas-ex { max-width: var(--read); }

/* Siatka kart — responsywna bez breakpointów */
.atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: clamp(10px, 1.5vw, 16px);
}
.atlas-card {
  display: flex; flex-direction: column; background: var(--surface);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text);
  transition: transform .12s ease, background .12s ease;
}
.atlas-card.is-locked { opacity: 0.5; }
.atlas-card-thumb {
  position: relative; aspect-ratio: 4 / 3; background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
}
.atlas-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.atlas-card-thumb--empty { width: 100%; height: 100%; }
.atlas-lock { position: absolute; top: 8px; right: 8px; font-size: 16px; }
.atlas-card-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.atlas-stage a { text-decoration: none !important; }
.atlas-card-name { font-weight: 600; font-size: 15px; color: var(--text); }
.atlas-card-count { color: var(--muted); font-size: 13px; }

/* Listy / wiersze */
.atlas-list { display: flex; flex-direction: column; gap: 8px; }
.atlas-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--surface); border-radius: 12px; text-decoration: none; color: var(--text);
  font-weight: 500; transition: background .12s ease, color .12s ease;
}
.atlas-row:link, .atlas-row:visited { color: var(--text); }
.atlas-row > span:nth-child(2), .atlas-row > span:first-child:not(.atlas-row-thumb) { flex: 1; }
.atlas-row--ex span:nth-child(2) { flex: 1; }
.atlas-chev { color: var(--muted); font-size: 20px; }
.atlas-row-thumb {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px; overflow: hidden;
  background: var(--surface2); display: block;
}
.atlas-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.atlas-row-thumb--empty { display: block; width: 44px; height: 44px; border-radius: 8px; background: var(--surface2); }

/* Pigułki pozycji */
.atlas-pills { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.atlas-pill {
  padding: 8px 16px; border-radius: 999px; background: var(--surface);
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
  transition: background .12s ease, color .12s ease;
}
.atlas-pill.is-on { background: var(--accent); color: var(--on-accent); }

/* Ćwiczenie */
.atlas-ex-media { border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; background: var(--surface2); }
.atlas-ex-media img { width: 100%; display: block; }
.atlas-ex-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; }
.atlas-ex-tag {
  display: inline-flex; align-items: center;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 999px;
  padding: 4px 11px;
  line-height: 1.4;
}
.atlas-ex-sep { opacity: .4; margin: 0 6px; }
.atlas-ex-tag--pos {
  color: #b9a6f0;
  background: rgba(119, 80, 239, .10);
  border-color: rgba(119, 80, 239, .22);
}
.atlas-ex h2 { font-size: 16px; margin: 0 0 8px; }
.atlas-ex-desc { line-height: 1.6; color: #ded9d0; }
.atlas-ex-desc p { margin: 0 0 10px; }
.atlas-ex-desc ul, .atlas-ex-desc ol { margin: 8px 0 8px 20px; padding: 0; }
.atlas-ex-desc li { margin: 8px 0; }
.atlas-ex-extra {
  margin-top: 14px; padding: 12px 14px; background: var(--surface); border-radius: 12px;
  color: var(--text); line-height: 1.6;
}
.atlas-ex-extra p { margin: 0 0 8px; }
.atlas-ex-extra p:last-child { margin-bottom: 0; }
.atlas-ex-extra ul, .atlas-ex-extra ol { margin: 6px 0 6px 20px; padding: 0; }
.atlas-ex-extra li { margin: 8px 0; }
.atlas-ex-extra strong, .atlas-ex-extra b { color: var(--text); font-weight: 700; }

/* ── Ustawienie: ilustrowane kroki ── */
.atlas-ex-steps-h { margin-top: 26px; }
.atlas-ex-steps {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.atlas-step {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border-radius: 12px; padding: 12px;
}
.atlas-step-media { flex: 0 0 140px; max-width: 140px; cursor: zoom-in; }
.atlas-step-media img { width: 100%; border-radius: 10px; display: block; transition: opacity .15s ease; }
.atlas-step-media:hover img { opacity: .85; }
.atlas-step-text { flex: 1; display: flex; gap: 10px; align-items: flex-start; }
.atlas-step-num {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; line-height: 1;
}
.atlas-step-opis { flex: 1; line-height: 1.5; color: #ded9d0; white-space: pre-line; }
@media (max-width: 560px) {
  /* Jak na desktopie: małe zdjęcie obok tekstu (powiększa się po kliknięciu). */
  .atlas-step-media { flex: 0 0 96px; max-width: 96px; }
}

/* Desktop: układ jak na telefonie (jedno pod drugim), ale treść na pełną szerokość
   — tak jak przycisk wideo. Obrazek zostaje w rozsądnym rozmiarze, nie rozdmuchany. */
@media (min-width: 860px) {
  .atlas-ex { max-width: none; }
  .atlas-ex-media { max-width: 460px; margin: 0 auto 16px; }
}
.atlas-btn {
  display: block; text-align: center; margin-top: 22px; padding: 14px;
  background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700;
  border: 0; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: inherit;
  transition: background .12s ease;
}
.atlas-btn:active { background: var(--accent2); }

/* Przyklejony pasek z przyciskiem wideo — zawsze na dole, ale nad paskiem iPhone'a.
   Gradient maskuje treść przewijaną pod spodem; gest/kliknięcia obok przycisku
   przechodzą do treści dzięki pointer-events. */
.atlas-video-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding-top: 28px;
  background: linear-gradient(to top, var(--bg) 62%, rgba(12, 11, 11, 0));
  pointer-events: none;
}
.atlas-video-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  /* odstęp od samego dołu + bezpieczna strefa iPhone (home indicator) */
  padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
}
.atlas-video-bar .atlas-btn {
  pointer-events: auto;
  width: 100%;
  margin-top: 0;
}

/* Lightbox z osadzonym playerem Vimeo — prawie pełny ekran, ponad menu aplikacji */
.atlas-video-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: #000;
  -webkit-tap-highlight-color: transparent;
}
.atlas-video-frame { position: absolute; inset: 0 0 env(safe-area-inset-bottom, 0px) 0; }
.atlas-video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.atlas-video-load {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: #000; transition: opacity .3s ease;
}
.atlas-video-load.is-hidden { opacity: 0; pointer-events: none; }
.atlas-video-load-badge {
  position: relative; width: 116px; height: 116px;
  display: flex; align-items: center; justify-content: center;
}
.atlas-video-load-logo { width: 80px; height: 80px; border-radius: 18px; display: block; }
.atlas-video-load-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(208, 197, 255, .18);
  border-top-color: #7750ef;
  animation: atlas-spin .9s linear infinite;
}
@keyframes atlas-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .atlas-video-load-ring { animation-duration: 2.4s; } }

/* Ocena aplikacji (1–5) */
.atlas-rate-modal{position:fixed;inset:0;z-index:10001;display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.55);padding:20px;-webkit-tap-highlight-color:transparent;}
.atlas-rate-card{position:relative;width:100%;max-width:420px;background:#fff;border-radius:20px;
  padding:30px 26px 26px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.4);color:#1d2327;}
.atlas-rate-x{position:absolute;top:12px;right:14px;border:0;background:none;font-size:26px;line-height:1;
  color:#9aa0a6;cursor:pointer;padding:4px;}
.atlas-rate-title{margin:0 0 10px;font-size:24px;font-weight:800;color:#16181d;}
.atlas-rate-q{margin:0 0 22px;font-size:15px;color:#4a4f57;line-height:1.5;}
.atlas-rate-scale{display:flex;gap:8px;justify-content:center;margin-bottom:8px;}
.atlas-rate-n{flex:1;max-width:60px;aspect-ratio:1;border:1px solid #e3e5e8;background:#f4f5f7;border-radius:12px;
  font-size:20px;font-weight:700;color:#3a3f47;cursor:pointer;transition:background .12s,border-color .12s,color .12s;}
.atlas-rate-n:hover{background:#ece9fb;}
.atlas-rate-n.is-sel{background:#7750ef;border-color:#7750ef;color:#fff;}
.atlas-rate-legend{display:flex;justify-content:space-between;font-size:12px;color:#8a8f98;margin:0 2px 24px;}
.atlas-rate-go{width:100%;padding:15px;border:0;border-radius:14px;background:#16181d;color:#fff;
  font-size:16px;font-weight:700;cursor:pointer;transition:opacity .15s;}
.atlas-rate-go:disabled{opacity:.4;cursor:default;}
.atlas-rate-go:not(:disabled):hover{opacity:.9;}
.atlas-video-close {
  position: absolute; z-index: 2;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: 10px;
  width: 42px; height: 42px;
  border: 0; border-radius: 50%;
  background: rgba(168, 76, 72, .85); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.atlas-video-close:hover { background: rgba(168, 76, 72, 1); }

/* Lightbox obrazka kroku */
.atlas-img-modal {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(8, 7, 7, .9);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  animation: atlasImgIn .15s ease;
}
@keyframes atlasImgIn { from { opacity: 0; } to { opacity: 1; } }
.atlas-img-frame {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  max-width: 94vw; max-height: 90vh;
}
.atlas-img-frame img {
  display: block;
  max-width: 94vw; max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
.atlas-img-close {
  position: absolute; z-index: 2;
  top: -14px; right: -14px;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: #fff; color: #111;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
@media (max-width: 560px) {
  .atlas-img-close { top: 4px; right: 4px; }
}

/* Lekkie komunikaty (toast) — dół ekranu, ciemny styl, wjazd od dołu */
.atlas-toast {
  position: fixed; z-index: 10002;
  left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 160%);
  width: calc(100% - 32px); max-width: 420px;
  box-sizing: border-box;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  background: #1f1b18; color: #f1efe8;
  border: 1px solid #2a2622; border-left: 3px solid #7750ef;
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .5);
  font-size: 14px; line-height: 1.45;
  opacity: 0;
  transition: transform .34s cubic-bezier(.22, 1, .36, 1), opacity .34s ease;
}
.atlas-toast--in { transform: translate(-50%, 0); opacity: 1; }
.atlas-toast-msg { flex: 1; }
.atlas-toast-x {
  flex: none; background: none; border: 0; cursor: pointer;
  color: #a8a49b; font-size: 18px; line-height: 1; padding: 0 2px;
}
.atlas-toast-x:hover { color: #f1efe8; }

.atlas-screensaver {
  position: fixed; z-index: 9500;
  background: #0c0b0b; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  opacity: 0; transition: opacity .45s ease;
}
.atlas-screensaver.is-on { opacity: 1; }
.atlas-ss-figure {
  height: 100%; display: flex; align-items: flex-end; justify-content: center;
  transform-origin: 50% 100%;
  animation: atlas-ss-sway 7s ease-in-out infinite alternate;
  will-change: transform;
}
.atlas-screensaver img {
  height: 100%; width: auto; display: block;
  transform-origin: 50% 100%;
  animation: atlas-ss-breath 3.8s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes atlas-ss-sway {
  from { transform: rotate(-0.6deg); }
  to   { transform: rotate(0.6deg); }
}
@keyframes atlas-ss-breath {
  from { transform: scaleY(1); }
  to   { transform: scaleY(1.007); }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-ss-figure, .atlas-screensaver img { animation: none; }
}

.atlas-video-frame--offline { display: flex; align-items: center; justify-content: center; padding: 32px; }
.atlas-video-offline { max-width: 360px; text-align: center; }
.atlas-video-offline strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 10px; }
.atlas-video-offline p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Wybór sylwetki (bramka) + podstrona „Moje preferencje" */
.atlas-choose { max-width: var(--read); margin: 0 auto; padding: 48px 16px; text-align: center; }
.atlas-choose-title { font-size: 24px; font-weight: 700; margin: 0 0 10px; color: var(--text); }
.atlas-choose-text { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 28px; }
.atlas-choose-note { color: var(--muted); font-size: 14px; margin: 28px 0 8px; }
.atlas-choose-steps {
  list-style: decimal; text-align: left;
  max-width: 340px; margin: 0 auto; padding-left: 22px;
  color: var(--muted); font-size: 14px; line-height: 1.75;
}
.atlas-choose-steps strong { color: var(--text); font-weight: 600; }
.atlas-choose-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--surface2); vertical-align: -6px; margin: 0 1px;
}
.atlas-choose-burger svg { width: 13px; height: 13px; color: var(--text); }
.atlas-choose-opts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.atlas-choose-opts .atlas-choose-opt {
  flex: 1 1 150px; min-height: 60px; padding: 18px; margin: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--surface); color: var(--text);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px;
  font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.atlas-choose-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.atlas-choose-opt:hover { background: var(--surface2); }
.atlas-choose-opt.is-on,
.atlas-choose-opt:has(input:checked) { border-color: var(--accent); background: rgba(119, 80, 239, .14); color: #fff; }
.atlas-choose-opt:disabled { opacity: .5; cursor: default; }
.atlas-prefs-save { margin-top: 16px; }
.atlas-prefs-saved { color: #8fd19e; font-size: 14px; margin: 0 0 16px; }
.atlas-prefs-back { display: block; text-align: right; margin-top: 22px; color: var(--muted); font-size: 14px; }
.atlas-prefs-back:hover { color: var(--text); }
/* miejsce pod ostatnią treścią, żeby pasek jej nie zasłaniał */
.atlas-ex--sticky {
  padding-bottom: calc(134px + env(safe-area-inset-bottom, 0px));
}

/* Stany hover tylko dla wskaźnika (desktop/tablet z myszą), nie dla dotyku */
@media (hover: hover) {
  .atlas-card:hover { transform: translateY(-2px); background: var(--surface2); }
  .atlas-row:hover { background: var(--surface2); color: var(--accent-light); }
  .atlas-pill:hover { color: var(--text); }
  .atlas-pill.is-on:hover { color: var(--on-accent); }
  .atlas-btn:hover { background: var(--accent2); }
  .atlas-back:hover { background: var(--surface2); }
}

/* Logowanie */
.atlas-login { display: flex; align-items: center; justify-content: center; min-height: 90vh; min-height: 90dvh; }
.atlas-login-card { width: 100%; max-width: 380px; text-align: center; }
.atlas-login-brand { margin-bottom: 18px; }
.atlas-logo {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 16px;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; color: var(--accent);
}
.atlas-login-logo-img { display: block; width: 64px; height: 64px; object-fit: contain; margin: 0 auto 14px; }
.atlas-login-title { font-size: 26px; font-weight: 700; margin: 0; line-height: 1.2; }
.atlas-login-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-family: var(--atlas-font-small); }

.atlas-login-hero { position: relative; margin: 6px 0 0; border-radius: 16px; overflow: hidden; }
.atlas-login-hero img { display: block; width: 100%; height: auto; }
.atlas-login-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none;
}
.atlas-login-hero + .atlas-login-form { position: relative; z-index: 1; margin-top: -120px; }

.atlas-login-form h2 { font-size: 15px; font-weight: 600; text-align: left; color: var(--muted); margin: 0 0 12px; }
.atlas-login label { display: block; text-align: left; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.atlas-login input {
  width: 100%; margin-top: 6px; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--surface2); background: var(--surface); color: var(--text); font-size: 16px;
}
.atlas-login button {
  width: 100%; margin-top: 8px; padding: 14px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px; cursor: pointer;
}
.atlas-lost { display: inline-block; margin-top: 18px; color: var(--muted); font-size: 14px; }

.atlas-login-error {
  text-align: left;
  margin: 0 0 14px; padding: 11px 13px;
  background: rgba(176, 64, 64, .14);
  border: 1px solid rgba(176, 64, 64, .42);
  border-radius: 10px;
  color: #f3b9b4; font-size: 14px; line-height: 1.4;
}
.atlas-login-remember {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 6px; color: var(--muted); font-size: 14px; cursor: pointer;
}
.atlas-login-remember input {
  width: 18px; height: 18px; margin: 0; flex: none;
  accent-color: var(--accent);
}
.atlas-login-remember span { user-select: none; }

/* Delikatny odnośnik do zakupu — dla przypadkowego gościa, nienachalnie */
.atlas-login-buy {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--surface2);
  text-align: center;
}
.atlas-login-buy a {
  color: var(--muted); font-size: 14px; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.atlas-login-buy a:hover { color: var(--accent-light); border-bottom-color: var(--accent-light); }

/* Tekst o cookies + link do polityki, pod formularzem logowania */
.atlas-login-legal {
  margin: 22px auto 0;
  max-width: 340px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.atlas-login-legal a { color: var(--accent); text-decoration: underline; }

/* Małe napisy — Basier Square */
.atlas-card-count, .atlas-sub, .atlas-pill, .atlas-ex-meta { font-family: var(--atlas-font-small); }

/* Ekrany odzyskiwania hasła (spójne z logowaniem) */
.atlas-auth { text-align: left; }
.atlas-auth-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: rgba(119, 80, 239, .15);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--accent);
}
.atlas-auth-icon svg { width: 30px; height: 30px; }
.atlas-auth-text { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 6px 0 22px; font-family: var(--atlas-font-small); }
.atlas-auth-form input { margin: 0 0 12px; }
.atlas-auth-error { color: #ff7a7a; font-size: 13px; margin: 0 0 12px; }
.atlas-btn-primary {
  display: block; width: 100%; box-sizing: border-box; margin-top: 8px; padding: 14px;
  border-radius: 12px; background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 15px; text-align: center; text-decoration: none;
}
.atlas-auth .atlas-lost { display: block; text-align: center; margin-top: 20px; }

/* Mapa ciała (ekran startowy) */
.atlas-bodymap { max-width: 640px; margin: 36px auto 0; }
.atlas-bodymap-svg { width: 100%; height: auto; display: block; }

/* kropki-hotspoty: zielona = dostępne (klikalne + fala), szara = zablokowane */
.atlas-bodymap-svg .bm-dot { transform-box: fill-box; transform-origin: center; transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), fill .15s ease; }
.atlas-bodymap-svg .bm-on { cursor: pointer; }
.atlas-bodymap-svg .bm-on .bm-dot { fill: #57cc57; }
.atlas-bodymap-svg .bm-on:hover .bm-dot,
.atlas-bodymap-svg .bm-on:focus .bm-dot,
.atlas-bodymap-svg .bm-on:active .bm-dot { fill: #74e074; }
@media (hover: hover) {
  .atlas-bodymap-svg .bm-on:hover .bm-dot,
  .atlas-bodymap-svg .bm-on:focus .bm-dot,
  .atlas-bodymap-svg .bm-on:hover .bm-pulse,
  .atlas-bodymap-svg .bm-on:focus .bm-pulse { transform: scale(2.6); }
}
.atlas-bodymap-svg .bm-locked { cursor: not-allowed; }
.atlas-bodymap-svg .bm-locked .bm-dot { fill: #4a4a4d; stroke: rgba(255, 255, 255, .20); stroke-width: 1.5; }

/* pulsujące fale wokół kropki — animowane natywnie (SMIL) */
.atlas-bodymap-svg .bm-pulse { pointer-events: none; transition: transform .28s cubic-bezier(.34, 1.56, .64, 1); }
.atlas-bodymap-svg .bm-label-line {
  fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: 1.4;
  vector-effect: non-scaling-stroke; pointer-events: none;
}
.atlas-bodymap-svg .bm-label-text {
  fill: var(--text); font-family: var(--atlas-font-small);
  font-size: 22px; font-weight: 500; pointer-events: none;
}
.atlas-bodymap-svg .bm-pulse-ring { stroke: #57cc57; stroke-width: 3; }
.atlas-bm-toggle { display: flex; gap: 6px; background: var(--surface); border-radius: 12px; padding: 4px; max-width: 360px; margin: 40px auto 16px; }

.atlas-pwa-hint {
  position: relative; display: flex; align-items: center; gap: 18px;
  max-width: 560px; margin: 28px auto 0;
  background: var(--surface); border: 1px solid var(--surface2);
  border-radius: 16px; padding: 18px 20px;
}
.atlas-pwa-hint-qr {
  flex: 0 0 auto; width: 128px; height: 128px; display: block;
  background: #fff; border-radius: 10px; padding: 8px; box-sizing: border-box;
}
.atlas-pwa-hint-body { min-width: 0; }
.atlas-pwa-hint-title { margin: 0 0 6px; font-weight: 700; font-size: 17px; color: var(--text); }
.atlas-pwa-hint-text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.atlas-pwa-hint-close {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 50%; background: var(--surface2); color: var(--muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent; transition: color .15s ease;
}
.atlas-pwa-hint-close:hover { color: var(--text); }
.atlas-pwa-hint-close svg { width: 13px; height: 13px; }
@media (display-mode: standalone) { .atlas-pwa-hint { display: none; } }
@media (max-width: 859px) { .atlas-pwa-hint { display: none; } }
.atlas-bm-seg { flex: 1; padding: 9px; border: 0; background: transparent; border-radius: 9px; color: var(--muted); font-size: 14px; font-family: var(--atlas-font); cursor: pointer; }
.atlas-bm-seg.is-on { background: var(--accent); color: var(--on-accent); }

/* Wyszukiwarka ćwiczeń (nad przełącznikiem przód/tył) */
.atlas-search { position: relative; max-width: 360px; margin: 0 auto 22px; }
.atlas-search .atlas-search-input {
  width: 100%; box-sizing: border-box; padding: 12px 44px 12px 16px; border-radius: 12px;
  border: 1px solid var(--surface2); background: var(--surface); color: var(--text);
  font-size: 16px; font-family: var(--atlas-font);
}
.atlas-search-input::placeholder { color: var(--muted); }
.atlas-search-input:focus { outline: none; border-color: var(--accent); }
.atlas-search-clear {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  background: var(--surface2); color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.atlas-search-clear svg { width: 13px; height: 13px; }
.atlas-search-clear:hover { color: var(--text); }
.atlas-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
  background: var(--surface); border: 1px solid var(--surface2); border-radius: 12px;
  max-height: 56vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.atlas-search-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-bottom: 1px solid var(--surface2); text-decoration: none; color: var(--text);
}
.atlas-search-row:last-child { border-bottom: 0; }
.atlas-search-main { flex: 1; min-width: 0; }
.atlas-search-name { display: block; font-weight: 500; line-height: 1.3; }
.atlas-search-grp { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.atlas-search-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.atlas-search-crumb {
  flex: 0 1 auto; min-width: 0;
  font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.atlas-search-crumb-sep { margin: 0 4px; opacity: .55; }
.atlas-search-poz {
  flex: none; white-space: nowrap;
  font-size: 11px; font-weight: 600; line-height: 1;
  color: var(--accent-light);
  background: rgba(119, 80, 239, .16);
  border: 1px solid rgba(119, 80, 239, .35);
  border-radius: 999px; padding: 3px 8px;
}
/* Każda pozycja swój kolor — szybciej skanować wyniki wzrokiem. */
.atlas-search-poz--skrocony {
  color: #f0c27a; background: rgba(224, 162, 72, .16); border-color: rgba(224, 162, 72, .42);
}
.atlas-search-poz--rozciagniety {
  color: #7fd1dd; background: rgba(79, 182, 196, .16); border-color: rgba(79, 182, 196, .42);
}
.atlas-search-poz--srodek {
  color: #e7a3b4; background: rgba(214, 120, 150, .16); border-color: rgba(214, 120, 150, .42);
}
.atlas-search-poz--srodkowy {
  color: var(--accent-light); background: rgba(119, 80, 239, .16); border-color: rgba(119, 80, 239, .4);
}
.atlas-search-row .atlas-chev { color: var(--muted); }
.atlas-search-row--locked { cursor: default; }
.atlas-search-row--locked .atlas-search-name { color: var(--muted); }
.atlas-search-lock { flex: 0 0 auto; color: var(--muted); display: flex; }
.atlas-search-lock svg { width: 18px; height: 18px; }
.atlas-search-empty { padding: 14px; color: var(--muted); font-size: 14px; text-align: center; }
@media (hover: hover) {
  .atlas-search-row:not(.atlas-search-row--locked):hover { background: var(--surface2); }
  .atlas-search-row:not(.atlas-search-row--locked):hover .atlas-search-name { color: var(--accent-light); }
}

/* Pastylka „Twój dostęp" pod figurą — co użytkownik realnie wykupił */
.atlas-access { max-width: 360px; margin: 16px auto 0; text-align: center; }
.atlas-access-label {
  display: block; color: var(--muted); font-size: 12px;
  font-family: var(--atlas-font-small); letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 9px;
}
.atlas-access-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.atlas-access-pill {
  background: rgba(87, 204, 87, .14); color: #9ee89e;
  border: 1px solid rgba(87, 204, 87, .40); border-radius: 999px;
  padding: 5px 12px; font-size: 13px;
}
.atlas-access-badge.is-full {
  display: inline-block; background: rgba(87, 204, 87, .16); color: #9ee89e;
  border: 1px solid rgba(87, 204, 87, .45); border-radius: 999px;
  padding: 7px 16px; font-weight: 600; font-size: 14px;
}
.atlas-access-empty { color: var(--muted); font-size: 13.5px; }
