/* TALKO — wygląd „Business Creative Premium” z Mano (24.11.2026).
 * Mobile-first, max 520 px; na komputerze wyśrodkowana „karta telefonu”.
 * Czcionki marki: Poppins (nagłówki, przyciski) + Lato (tekst). Paleta Mano:
 * granat #0A2458, błękit #1E4E8C, turkus #00C2C7, fiolet #8A4FF7, mgła #E6F2FF, brzoskwinia #FFC786. */

:root {
  --navy: #0A2458; --navy-2: #1E4E8C; --blue: #1E4E8C;
  --teal: #00C2C7; --teal-d: #008E93; --teal-t: #E0F8F9;
  --violet: #8A4FF7; --violet-t: #F1EAFF;
  --peach: #FFC786; --peach-d: #E59A45; --peach-t: #FFF3E3;
  --gold: #F5B040; --gold-d: #C9851C;
  --coral: #FF7A59;
  --ok: #13A97B; --ok-d: #0B7D5A; --ok-t: #E3F7EF;
  --no: #E5484D; --no-d: #B4282D; --no-t: #FDECEC;
  --soft: #E59A45; --soft-t: #FFF3E3;
  --bg: #F3F6FC; --bg-2: #EAF0FA; --card: #FFFFFF; --line: #E1E8F3; --line-d: #C9D4E6;
  --text: #0A2458; --text-2: #34476E; --muted: #6B7B98;
  --primary: #0A2458; --primary-2: #1E4E8C; --on-primary: #FFFFFF; --primary-d: #061538;
  --shadow-sm: 0 1px 2px rgba(10, 36, 88, .06);
  --shadow: 0 1px 2px rgba(10, 36, 88, .05), 0 10px 30px -12px rgba(10, 36, 88, .18);
  --shadow-lg: 0 24px 60px -20px rgba(10, 36, 88, .35);
  --grad: linear-gradient(120deg, #00C2C7 0%, #1E4E8C 55%, #8A4FF7 100%);
  --r: 18px; --r-sm: 12px;
  --u: var(--teal); --u-shade: var(--teal-d); --u-tint: var(--teal-t);
  --font: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --head: 'Poppins', 'Lato', system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06152F; --bg-2: #0A1F45; --card: #0E2550; --line: #1B3767; --line-d: #284B85;
    --text: #EAF1FF; --text-2: #C3D2EE; --muted: #8FA4C9;
    --teal-t: #0B3446; --ok-t: #0C3A31; --no-t: #3C1A26; --soft-t: #3A2A16; --peach-t: #3A2A16; --violet-t: #261C4F;
    --primary: #00C2C7; --primary-2: #3FD6D9; --on-primary: #04203F; --primary-d: #00898D;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .55);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  min-height: 100dvh; overscroll-behavior-y: none;
}
@media (min-width: 560px) {
  body { background: radial-gradient(900px 500px at 15% -5%, rgba(0, 194, 199, .16), transparent 60%), radial-gradient(900px 500px at 90% 10%, rgba(138, 79, 247, .12), transparent 60%), var(--bg); }
}
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
b, strong { font-weight: 700; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-family: var(--head); font-weight: 600; letter-spacing: -.015em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.ic { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em; }

#app { max-width: 520px; margin: 0 auto; min-height: 100dvh; position: relative; }
.screen { min-height: 100dvh; display: flex; flex-direction: column; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------------- przyciski: płaskie, z lekką głębią ---------------- */

.btn {
  --c: var(--primary); --c2: var(--primary-2); --cd: var(--primary-d); --t: var(--on-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 13px 20px; min-height: 52px; width: 100%;
  font-family: var(--head); font-weight: 600; font-size: 15.5px; letter-spacing: .005em;
  background: linear-gradient(180deg, var(--c2), var(--c)); color: var(--t);
  box-shadow: 0 3px 0 var(--cd), 0 8px 18px -10px var(--c);
  transition: transform .08s, box-shadow .08s, filter .15s; user-select: none;
}
.btn .ic { width: 20px; height: 20px; }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 var(--cd); }
.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn:disabled { --c: var(--line); --c2: var(--line); --cd: var(--line-d); --t: var(--muted); cursor: default; box-shadow: 0 3px 0 var(--cd); }
.btn-lg { min-height: 56px; font-size: 16px; }
.btn-ok { --c: var(--ok); --c2: #1CC08E; --cd: var(--ok-d); --t: #fff; }
.btn-no { --c: var(--no); --c2: #F05A5F; --cd: var(--no-d); --t: #fff; }
.btn-soft { --c: #D9862F; --c2: var(--soft); --cd: #A8641C; --t: #fff; }
.btn-danger { --c: var(--no); --c2: #F05A5F; --cd: var(--no-d); --t: #fff; }
.btn-unit { --c: var(--u-shade); --c2: var(--u); --cd: color-mix(in srgb, var(--u-shade) 75%, #000); --t: #fff; }
.btn-gold { --c: #F2A93B; --c2: var(--peach); --cd: #C9851C; --t: #3A2300; }
.btn-ghost { background: var(--card); color: var(--text); box-shadow: 0 0 0 1.5px var(--line-d) inset, 0 3px 0 var(--line); }
.btn-ghost:active:not(:disabled) { box-shadow: 0 0 0 1.5px var(--line-d) inset, 0 0 0 var(--line); }
.btn-small { width: auto; min-height: 40px; padding: 8px 12px; }
.icon-btn { background: none; border: 0; color: var(--muted); padding: 8px; line-height: 1; border-radius: 12px; display: grid; place-items: center; }
.icon-btn .ic { width: 24px; height: 24px; }
.icon-btn:active { background: var(--bg-2); }
.link { background: none; border: 0; color: var(--navy-2); font-weight: 700; padding: 6px; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .link { color: #6FE3E6; } }

/* ---------------- Mano ---------------- */

.mano { display: block; position: relative; height: var(--s); flex: none; line-height: 0; transform-origin: 50% 100%; }
.mano-body { display: inline-block; vertical-align: top; position: relative; height: 100%; transform-origin: 50% 100%; animation: manoBreath 4.2s ease-in-out infinite; }
.mano img { height: 100%; width: auto; display: block; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 6px 10px rgba(10, 36, 88, .14)); }
@keyframes manoBreath { 0%, 100% { transform: none; } 50% { transform: translateY(-1.5px) scale(1.012, 1.018); } }
.mano--sukces .mano-body, .mano--radosc .mano-body { animation: manoHop 1.6s cubic-bezier(.3, 1.6, .5, 1) infinite; }
@keyframes manoHop { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-7px) rotate(-1.5deg); } }
.mano--prezentacja .mano-body, .mano--zaproszenie .mano-body { animation: manoSway 3.6s ease-in-out infinite; }
@keyframes manoSway { 0%, 100% { transform: none; } 50% { transform: rotate(1.6deg) translateY(-1px); } }
.mano--pomysl .mano-body { animation: manoIdea 2.8s ease-in-out infinite; }
@keyframes manoIdea { 0%, 100% { transform: none; } 20% { transform: translateY(-4px); } 35% { transform: none; } }
/* powieki: rysowane nad oczami, opadają przy mrugnięciu */
.mano-lid { position: absolute; display: block; border-radius: 50% 50% 46% 46%; background: var(--lid); box-shadow: 0 0 1px 1px var(--lid); transform: scaleY(0); transform-origin: 50% 0;
  transition: transform .07s ease-in; pointer-events: none; }
.mano-lid::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 16%; height: 34%; border-bottom: 1.7px solid #0A2458; border-radius: 0 0 50% 50% / 0 0 100% 100%; opacity: 0; transition: opacity .05s; }
.mano.blink .mano-lid { transform: scaleY(1.08); }
.mano.blink .mano-lid::after { opacity: .85; }
/* ruchy „na żywo” — nakładane na całą postać na chwilę */
.mano.fx-nod { animation: fxNod .9s ease-in-out; }
@keyframes fxNod { 25% { transform: rotate(-2.5deg) translateY(1px); } 55% { transform: rotate(1.5deg); } }
.mano.fx-tilt { animation: fxTilt 1.3s ease-in-out; }
@keyframes fxTilt { 35%, 65% { transform: rotate(3deg) translateX(2px); } }
.mano.fx-bob { animation: fxBob .8s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fxBob { 40% { transform: translateY(-6px) scale(1.02); } }
.mano.fx-lean { animation: fxLean 1.4s ease-in-out; }
@keyframes fxLean { 30%, 70% { transform: rotate(-3deg) translateX(-2px); } }
.mano.fx-joy { animation: fxJoy .9s cubic-bezier(.3, 1.7, .5, 1); }
@keyframes fxJoy { 30% { transform: translateY(-12px) scale(1.06) rotate(-3deg); } 60% { transform: translateY(0) scale(.98); } }
.mano.fx-shake { animation: fxShake .6s ease-in-out; }
@keyframes fxShake { 20% { transform: rotate(-3deg); } 45% { transform: rotate(3deg); } 70% { transform: rotate(-2deg); } }
.mano.mano-in { animation: manoIn .55s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes manoIn { from { transform: translateY(14px) scale(.82); opacity: 0; } }
.mano.swap .mano-body { animation: manoSwap .45s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes manoSwap { from { transform: translateY(6px) scale(.94); opacity: .3; } }
/* iskry przy sukcesie */
.mano-spark { position: absolute; left: 50%; top: 30%; width: 7px; height: 7px; border-radius: 2px; pointer-events: none; z-index: 2;
  background: var(--c, #FFC786); animation: spark .9s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes spark { from { transform: translate(-50%, -50%) rotate(0) scale(1); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(200deg) scale(.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mano, .mano-body, .mano.swap .mano-body { animation: none !important; } }
.mano-anim { width: var(--s); }
.mano-sprite { display: block; width: 100%; height: 100%; background-size: 1200% 100%; background-repeat: no-repeat; background-position: 0 0;
  filter: drop-shadow(0 8px 14px rgba(10, 36, 88, .18)); }
.mano-anim .mano-body { display: block; width: 100%; }
.bubble { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow-sm); }
.bubble-tiko { font-weight: 400; color: var(--text); }
.bubble-tiko strong { font-family: var(--head); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.kicker { display: flex; align-items: center; gap: 6px; font-family: var(--head); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-d); margin-bottom: 3px; }
.kicker .ic { width: 15px; height: 15px; }
@media (prefers-color-scheme: dark) { .kicker { color: #5FE3E6; } }
.tiko-says { display: flex; align-items: flex-end; gap: 4px; margin-bottom: 18px; }
.tiko-says .mano { margin-left: -6px; }
.tiko-says .bubble { flex: 1; margin-bottom: 20px; }
.tiko-says .bubble::before {
  content: ''; position: absolute; left: -7px; bottom: 18px; width: 12px; height: 12px; background: var(--card);
  border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg);
}

/* ---------------- ekran powitalny: noc marki z zorzą ---------------- */

.welcome {
  align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; color: #EAF1FF;
  padding: calc(26px + var(--safe-t)) 22px calc(24px + var(--safe-b));
  background: radial-gradient(120% 70% at 50% 0%, #143470 0%, #0A2458 45%, #051330 100%);
}
.welcome-sky { position: absolute; inset: 0; pointer-events: none; }
.aur { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; animation: aur 14s ease-in-out infinite alternate; }
.aur.a1 { width: 340px; height: 220px; left: -90px; top: 70px; background: #00C2C7; }
.aur.a2 { width: 300px; height: 240px; right: -110px; top: 180px; background: #8A4FF7; animation-delay: -5s; }
.aur.a3 { width: 260px; height: 160px; left: 30%; bottom: -60px; background: #1E4E8C; opacity: .7; animation-delay: -9s; }
@keyframes aur { to { transform: translate(40px, -30px) scale(1.15); } }
.welcome-brand { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 8px; }
.welcome-brand span { font-family: var(--head); font-size: 10px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: rgba(234, 241, 255, .6); }
.welcome-hero { position: relative; display: grid; place-items: center; margin-top: 4px; }
.hero-halo { position: absolute; width: 230px; height: 230px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -46%);
  background: conic-gradient(from 200deg, #00C2C7, #1E4E8C, #8A4FF7, #00C2C7); filter: blur(2px); opacity: .9;
  -webkit-mask: radial-gradient(closest-side, transparent 86%, #000 87%, #000 100%); mask: radial-gradient(closest-side, transparent 86%, #000 87%, #000 100%);
  animation: spin 18s linear infinite; }
.hero-halo::after { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 194, 199, .25), transparent); }
@keyframes spin { to { transform: translate(-50%, -46%) rotate(360deg); } }
.welcome-hero .mano { position: relative; z-index: 1; }
.welcome .speech {
  position: relative; z-index: 1; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 12px 16px;
  max-width: 320px; margin-top: 6px; color: #EAF1FF; font-size: 15px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.welcome .speech::before { content: ''; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; background: #183A72; border-left: 1px solid rgba(255, 255, 255, .16); border-top: 1px solid rgba(255, 255, 255, .16); transform: translateX(-50%) rotate(45deg); }
.welcome .speech b { color: #6FE3E6; }
.wordmark {
  position: relative; font-family: var(--head); font-size: 54px; font-weight: 700; letter-spacing: .06em; margin-top: 18px; line-height: 1;
  background: linear-gradient(100deg, #6FE3E6 0%, #FFFFFF 45%, #C4A6FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { position: relative; font-family: var(--head); font-size: 15px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #9FB6E0; margin: 8px 0 2px; }
.sub-tagline { position: relative; margin: 0 0 24px; color: #C3D2EE; font-size: 16px; }
.welcome-actions { position: relative; display: grid; gap: 12px; width: 100%; max-width: 360px; }
.btn-glow { --c: #00A7B0; --c2: #22D3D8; --cd: #00777E; --t: #04203F; box-shadow: 0 3px 0 var(--cd), 0 10px 30px -8px rgba(0, 194, 199, .7); }
.btn-line { background: rgba(255, 255, 255, .06); color: #EAF1FF; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .28) inset; }
.welcome-fine { position: relative; margin: 20px 0 0; font-size: 11px; font-weight: 700; color: #8FA4C9; letter-spacing: .06em; text-transform: uppercase; display: flex; gap: 9px; align-items: center; justify-content: center; white-space: nowrap; }
.welcome-fine i { width: 4px; height: 4px; border-radius: 50%; background: #00C2C7; }

/* ---------------- onboarding / lekcja: wspólny układ ---------------- */

.lesson-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 12px 8px; position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 5; }
.bar { flex: 1; height: 12px; background: var(--bg-2); border-radius: 99px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bar-fill { height: 100%; background: var(--grad); border-radius: 99px; transition: width .5s cubic-bezier(.3, 1.3, .5, 1); position: relative; min-width: 12px; }
.lesson .bar-fill { background: linear-gradient(90deg, var(--u), color-mix(in srgb, var(--u) 55%, #8A4FF7)); }
.bar-fill i { position: absolute; left: 6px; right: 6px; top: 3px; height: 3px; border-radius: 9px; background: rgba(255, 255, 255, .4); }
.combo { display: inline-flex; align-items: center; gap: 3px; font-family: var(--head); font-weight: 600; color: var(--coral); font-size: 14px; white-space: nowrap; }
.combo .ic { width: 18px; height: 18px; }
.combo.pop { animation: pop .4s ease; }
@keyframes pop { 40% { transform: scale(1.3); } }

.lesson-body, .onboard-body { flex: 1; padding: 12px 18px 24px; overflow-y: auto; }
.lesson-foot { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 14px 18px calc(16px + var(--safe-b)); z-index: 5; transition: background .2s; }
.lesson-foot.foot-hidden { display: none; }
.foot-row { display: flex; gap: 12px; }
.lesson-foot.is-ok { background: var(--ok-t); border-color: transparent; }
.lesson-foot.is-no { background: var(--no-t); border-color: transparent; }
.lesson-foot.is-soft { background: var(--soft-t); border-color: transparent; }

.fb { position: relative; margin-bottom: 14px; padding-right: 64px; animation: slideUp .28s ease; }
@keyframes slideUp { from { transform: translateY(14px); opacity: 0; } }
.fb-mano { position: absolute; right: -4px; bottom: -6px; }
.fb-head { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 20px; }
.fb-head strong { font-weight: 600; }
.fb-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.fb-ic .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.is-ok .fb-head { color: var(--ok-d); } .is-ok .fb-ic { background: var(--ok); }
.is-no .fb-head { color: var(--no-d); } .is-no .fb-ic { background: var(--no); }
.is-soft .fb-head { color: #A8641C; } .is-soft .fb-ic { background: var(--soft); }
@media (prefers-color-scheme: dark) { .is-ok .fb-head { color: #4FD9A8; } .is-no .fb-head { color: #FF8C91; } .is-soft .fb-head { color: #FFC786; } }
.fb-correct { margin-top: 8px; font-weight: 700; }
.fb-correct span { display: block; font-family: var(--head); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.fb-why { margin: 6px 0 0; color: var(--text-2); }

.prompt { font-size: 21px; margin: 6px 0 18px; }
.prompt-sm { font-size: 18px; margin-top: 18px; }
.gone { display: none !important; }
.retry-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #A8641C; background: var(--soft-t); padding: 5px 12px; border-radius: 99px; margin-bottom: 10px; }
.retry-chip .ic { width: 15px; height: 15px; }
.step.enter { animation: stepIn .32s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } }

/* opcje */
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 2px 0 var(--line); font-weight: 700; color: var(--text); transition: transform .08s, border-color .15s, background .15s;
}
.opt:hover { border-color: var(--line-d); }
.opt:active { transform: translateY(2px); box-shadow: 0 0 0 var(--line); }
.opt-key { flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--bg-2); display: grid; place-items: center; font-family: var(--head); font-size: 13px; color: var(--muted); font-weight: 600; }
.opt-emo { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-t); color: var(--teal-d); }
.opt-emo .ic { width: 22px; height: 22px; }
@media (prefers-color-scheme: dark) { .opt-emo { color: #5FE3E6; } }
.opt-txt { flex: 1; }
.opt.sel { border-color: var(--teal); background: var(--teal-t); box-shadow: 0 2px 0 var(--teal); }
.opt.sel .opt-key { background: var(--teal); color: #fff; }
.lesson .opt.sel { border-color: var(--u); background: var(--u-tint); box-shadow: 0 2px 0 var(--u); }
.lesson .opt.sel .opt-key { background: var(--u); color: #fff; }
@media (prefers-color-scheme: dark) { .lesson .opt.sel { background: color-mix(in srgb, var(--u) 16%, var(--card)); } .opt.sel { background: color-mix(in srgb, var(--teal) 14%, var(--card)); } }
.opts.locked .opt { pointer-events: none; }
.opt.right { border-color: var(--ok) !important; background: var(--ok-t) !important; box-shadow: 0 2px 0 var(--ok) !important; }
.opt.wrong { border-color: var(--no) !important; background: var(--no-t) !important; box-shadow: 0 2px 0 var(--no) !important; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.opt.right .opt-key { background: var(--ok) !important; color: #fff !important; }
.opt.wrong .opt-key { background: var(--no) !important; color: #fff !important; }

.lvl-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; }
.lvl-bars i { width: 5px; border-radius: 2px; background: color-mix(in srgb, currentColor 25%, transparent); }
.lvl-bars i:nth-child(1) { height: 7px; } .lvl-bars i:nth-child(2) { height: 11px; } .lvl-bars i:nth-child(3) { height: 15px; } .lvl-bars i:nth-child(4) { height: 20px; }
.lvl-bars i.on { background: currentColor; }

.opts-styles { grid-template-columns: repeat(3, 1fr); }
.opts-styles .opt { flex-direction: column; text-align: center; gap: 6px; padding: 14px 6px; font-size: 14.5px; }
.opts-styles .opt-key { display: none; }
.st-ic { display: block; }
.sty { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 0%, transparent); }
.opts-styles .sty { width: 18px; height: 18px; }
.sty-ulegly { background: #E59A45; } .sty-asertywny { background: #13A97B; } .sty-agresywny { background: #E5484D; }
.sty-manip { background: #8A4FF7; } .sty-unik { background: #8FA4C9; } .sty-inny { background: var(--line-d); }
.opts-tf { grid-template-columns: 1fr 1fr; }
.opts-tf .opt { justify-content: center; font-size: 17px; padding: 18px 10px; }
.opts-tf .opt .ic { width: 22px; height: 22px; vertical-align: -5px; margin-right: 4px; }
.opts-tf .opt-key { display: none; }

.quote { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--u); border-radius: 14px; padding: 16px 18px; font-family: var(--head); font-size: 18px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.quote-situation { font-family: var(--font); font-size: 16px; font-weight: 400; letter-spacing: 0; }

/* karta wiedzy */
.learn-card { font-size: 16.5px; box-shadow: var(--shadow); }
.learn-card p { margin: 0; }
.ex { display: grid; gap: 8px; margin-top: 16px; }
.ex-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 15px; }
.ex-ic { width: 24px; height: 24px; border-radius: 50%; color: #fff; display: grid; place-items: center; flex: none; margin-top: 0; }
.ex-ic .ic { width: 14px; height: 14px; stroke-width: 2.8; }
.ex-bad { background: var(--no-t); } .ex-bad .ex-ic { background: var(--no); }
.ex-good { background: var(--ok-t); } .ex-good .ex-ic { background: var(--ok); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }

/* scenka */
.setting { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: 5px 12px; border-radius: 99px; margin-bottom: 14px; }
.setting .ic { width: 15px; height: 15px; color: var(--u); }
.chat { display: grid; gap: 12px; }
.msg { display: flex; gap: 10px; align-items: flex-end; }
.msg-me { justify-content: flex-end; }
.ava { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; flex: none; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--line); }
.msg-body { max-width: 82%; }
.who { font-family: var(--head); font-size: 13px; font-weight: 600; margin: 0 0 4px 4px; }
.who span { font-family: var(--font); font-weight: 400; color: var(--muted); }
.bubble-them { border-bottom-left-radius: 6px; font-weight: 700; font-size: 16.5px; animation: bubbleIn .3s ease; }
.bubble-me { max-width: 85%; border: 0; color: #fff; background: linear-gradient(160deg, var(--u), var(--u-shade)); border-bottom-right-radius: 6px; font-weight: 700; animation: bubbleIn .3s ease; }
.bubble-me.no { background: linear-gradient(160deg, #3D5584, #283C66); }
@keyframes bubbleIn { from { transform: scale(.88); opacity: 0; } }
.style-tag { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--head); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.style-tag .sty { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); width: 10px; height: 10px; }
.typing .txt { display: none; }
.dots { display: none; gap: 4px; padding: 4px 2px; }
.typing .dots { display: inline-flex; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .5; } }
.opts-reply .opt { border-radius: 18px 18px 6px 18px; }

/* układanie zdań */
.tiko-mini { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.tiko-mini .bubble { padding: 9px 13px; font-size: 14.5px; }
.build-line {
  min-height: 112px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; padding: 12px 0;
  background-image: linear-gradient(var(--line) 1.5px, transparent 1.5px); background-size: 100% 56px; background-position: 0 50px;
  margin-bottom: 22px; border-radius: 6px;
}
.build-line.ok { box-shadow: 0 0 0 2px var(--ok); padding: 12px 8px; }
.build-line.no { box-shadow: 0 0 0 2px var(--no); padding: 12px 8px; }
.build-bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tile-slot { display: inline-block; min-width: 40px; min-height: 44px; border-radius: 12px; background: var(--bg-2); }
.tile {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 14px; font-weight: 700; font-size: 15.5px;
  box-shadow: 0 2px 0 var(--line); animation: bubbleIn .18s ease;
}
.tile-slot .tile { display: block; }
.locked .tile { pointer-events: none; }

/* pary */
.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.col { display: grid; gap: 10px; align-content: start; }
.mt {
  min-height: 64px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px; font-weight: 700; font-size: 14px;
  box-shadow: 0 2px 0 var(--line); transition: all .15s;
}
.mt.sel { border-color: var(--u); background: var(--u-tint); box-shadow: 0 2px 0 var(--u); }
@media (prefers-color-scheme: dark) { .mt.sel { background: color-mix(in srgb, var(--u) 16%, var(--card)); } }
.mt.done { border-color: var(--ok); background: var(--ok-t); opacity: .55; box-shadow: none; pointer-events: none; }
.mt.bad { border-color: var(--no); background: var(--no-t); animation: shake .35s; }

/* ćwiczenie własne */
.practice-input { width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: 16px; padding: 14px; resize: vertical; min-height: 96px; outline: none; }
.practice-input:focus { border-color: var(--u); box-shadow: 0 0 0 4px color-mix(in srgb, var(--u) 18%, transparent); }
.practice-model { margin-top: 16px; background: var(--ok-t); border-radius: 16px; padding: 16px; animation: slideUp .25s ease; }
.practice-model p { margin: 4px 0 0; font-weight: 700; font-size: 16.5px; }
.tips { margin: 10px 0 0; padding-left: 20px; color: var(--text-2); }

/* ---------------- ekrany z zakładkami ---------------- */

.app { padding-bottom: calc(82px + var(--safe-b)); }
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; gap: 6px; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--safe-t)) 12px 10px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line);
}
.chips-r { display: flex; gap: 4px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--card); border: 1px solid var(--line); padding: 6px 10px; border-radius: 99px; font-family: var(--head); font-weight: 600; font-size: 14.5px; min-height: 36px; box-shadow: var(--shadow-sm); }
.chip .ic { width: 18px; height: 18px; }
.chip:active { transform: scale(.96); }
.chip-course { padding-left: 6px; }
.cc-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; }
.cc-ic .ic { width: 15px; height: 15px; }
.chip-course span:last-child { font-size: 14px; }
.chip-streak { color: var(--muted); }
.chip-streak.lit { color: #E8590C; }
.chip-streak.lit .ic { fill: #FF9F43; stroke: #E8590C; }
.chip-xp .ic { color: var(--violet); fill: color-mix(in srgb, var(--violet) 25%, transparent); }
.chip-xp small { color: var(--muted); font-weight: 500; font-size: 12px; }
.chip-sync { padding: 6px 8px; }
.sync { position: relative; color: var(--muted); line-height: 0; }
.sync .ic { width: 20px; height: 20px; }
.sync b { position: absolute; right: -5px; bottom: -4px; font-size: 9px; line-height: 1; width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font); font-weight: 900; box-shadow: 0 0 0 2px var(--card); }
.sync-ok b { background: var(--ok); } .sync-wait b { background: var(--soft); } .sync-guest b { background: var(--coral); }

.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; z-index: 10;
  display: flex; gap: 4px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 6px 10px calc(8px + var(--safe-b));
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; border-radius: 14px; padding: 6px 0 4px; font-family: var(--head); font-size: 11.5px; font-weight: 500; color: var(--muted); position: relative; }
.tab-ic { position: relative; height: 28px; width: 48px; display: grid; place-items: center; border-radius: 99px; transition: background .2s; }
.tab-ic .ic { width: 22px; height: 22px; }
.tab.on { color: var(--text); font-weight: 600; }
.tab.on .tab-ic { background: var(--teal-t); color: var(--teal-d); }
@media (prefers-color-scheme: dark) { .tab.on .tab-ic { color: #5FE3E6; } }
.tab-av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--head); font-size: 10px; font-weight: 600; }
.tab-av .ic, .av-ic .ic { width: 14px; height: 14px; }
.tab-ic em { position: absolute; top: -3px; right: 2px; font-style: normal; font-size: 10px; font-weight: 900; font-family: var(--font); background: var(--coral); color: #fff; border-radius: 99px; padding: 1px 6px; box-shadow: 0 0 0 2px var(--card); }

/* awatary: monogram na gradientach marki */
.av-c1 { background: linear-gradient(135deg, #00C2C7, #1E4E8C); } .av-c2 { background: linear-gradient(135deg, #1E4E8C, #0A2458); }
.av-c3 { background: linear-gradient(135deg, #8A4FF7, #1E4E8C); } .av-c4 { background: linear-gradient(135deg, #FFC786, #E07A3F); }
.av-c5 { background: linear-gradient(135deg, #13A97B, #0A6D7F); } .av-c6 { background: linear-gradient(135deg, #FF7A59, #8A4FF7); }
.av-c7 { background: linear-gradient(135deg, #5FE3E6, #8A4FF7); } .av-c8 { background: linear-gradient(135deg, #34476E, #0A2458); }

/* ---------------- ścieżka ---------------- */

.path-wrap { padding: 14px 14px 30px; }
.hello {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 12px 14px 12px 6px; position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.hello::before { content: ''; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 194, 199, .16), transparent); pointer-events: none; }
.hello-mano { flex: none; align-self: flex-end; margin-bottom: -13px; }
.hello-txt { flex: 1; min-width: 0; }
.hello-txt small { display: block; font-family: var(--head); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-d); }
@media (prefers-color-scheme: dark) { .hello-txt small { color: #5FE3E6; } }
.hello-txt b { display: block; font-family: var(--head); font-weight: 600; font-size: 15.5px; line-height: 1.3; margin: 2px 0 3px; letter-spacing: -.01em; }
.hello-txt span { color: var(--muted); font-size: 13px; }
.ring { position: relative; width: 54px; height: 54px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5.5; }
.ring-bg { stroke: var(--bg-2); }
.ring-fg { stroke: var(--violet); stroke-linecap: round; transition: stroke-dashoffset .8s; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); font-weight: 600; font-size: 12.5px; }

.mission-strip, .upsell-strip { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border-radius: 16px; padding: 11px 14px; margin-bottom: 12px; border: 1px solid; box-shadow: var(--shadow-sm); }
.strip-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.strip-ic .ic { width: 22px; height: 22px; }
.mission-strip { background: var(--peach-t); border-color: color-mix(in srgb, var(--peach) 60%, var(--line)); }
.mission-strip .strip-ic { background: var(--peach); color: #6B3B00; }
.upsell-strip { background: linear-gradient(110deg, var(--violet-t), var(--teal-t)); border-color: color-mix(in srgb, var(--violet) 25%, var(--line)); }
.upsell-strip .strip-ic { background: var(--grad); color: #fff; }
.mission-strip div, .upsell-strip div { flex: 1; min-width: 0; }
.mission-strip small, .upsell-strip small { display: block; color: var(--muted); font-size: 12.5px; }
.mission-strip b, .upsell-strip b { display: block; font-family: var(--head); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mission-strip em { font-style: normal; font-weight: 900; font-size: 13px; color: #A8641C; white-space: nowrap; }
.upsell-strip em { color: var(--violet); line-height: 0; }
@media (prefers-color-scheme: dark) { .mission-strip em { color: #FFC786; } .upsell-strip em { color: #C4A6FF; } }

.unit { margin-bottom: 10px; }
.unit-head {
  position: sticky; top: calc(58px + var(--safe-t)); z-index: 4; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  color: #fff; border-radius: 18px; padding: 14px 14px 18px;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--u) 75%, transparent) 0%, transparent 60%), linear-gradient(135deg, #0F2D66, #0A2458);
  box-shadow: 0 10px 26px -14px var(--u-shade), 0 0 0 1px rgba(255, 255, 255, .05) inset;
}
.uh-num { font-family: var(--head); font-size: 30px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.4px color-mix(in srgb, var(--u) 70%, #fff); letter-spacing: -.02em; padding-left: 2px; }
.uh-txt { min-width: 0; }
.uh-txt small { display: flex; gap: 8px; align-items: center; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px; color: color-mix(in srgb, var(--u) 45%, #fff); }
.uh-txt small span { letter-spacing: .04em; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #fff; }
.unit-head h2 { font-size: 18px; margin: 3px 0 1px; }
.unit-head p { margin: 0; font-size: 13.5px; color: rgba(234, 241, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unit-guide { width: 42px; height: 42px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; }
.unit-guide .ic { width: 20px; height: 20px; }
.uh-bar { position: absolute; left: 14px; right: 14px; bottom: 8px; height: 3px; border-radius: 9px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.uh-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--u), #fff); }

.path { position: relative; display: flex; flex-direction: column; align-items: center; padding: 38px 0 30px; gap: 30px; }
.node-row.is-cur { margin: 14px 0 4px; }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.trail path { fill: none; stroke-linecap: round; }
.trail-ahead { stroke: var(--line-d); stroke-width: 5; stroke-dasharray: .1 13; }
.trail-walked { stroke: var(--u); stroke-width: 6; }
.trail-glow { stroke: var(--u); stroke-width: 16; opacity: .14; }
.node-row { position: relative; transform: translateX(var(--x)); display: flex; flex-direction: column; align-items: center; z-index: 1; }
.node {
  position: relative; width: 66px; height: 62px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff;
  font-family: var(--head); font-size: 22px; font-weight: 600;
  background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--u) 60%, #fff) 0%, var(--u) 55%);
  box-shadow: 0 6px 0 var(--u-shade), 0 14px 22px -12px var(--u-shade); transition: transform .1s, box-shadow .1s;
}
.node span { display: grid; place-items: center; line-height: 1; }
.node .ic { width: 28px; height: 28px; stroke-width: 2.4; }
.node:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--u-shade); }
.node.locked { background: var(--bg-2); color: var(--line-d); box-shadow: 0 6px 0 var(--line), inset 0 0 0 1.5px var(--line); }
.node.locked .ic { width: 22px; height: 22px; stroke-width: 2; color: var(--muted); opacity: .7; }
.node.open { background: var(--card); color: var(--u); box-shadow: 0 0 0 3px var(--u) inset, 0 6px 0 var(--u-shade); }
.node.gold { background: radial-gradient(circle at 35% 28%, #FFE6BF 0%, #FFC786 40%, #F0A23A 100%); color: #7A4300; box-shadow: 0 6px 0 #C9851C, 0 14px 22px -12px #C9851C; }
.node.pro { background: var(--card); color: #C9851C; box-shadow: 0 0 0 2.5px var(--peach) inset, 0 6px 0 color-mix(in srgb, var(--peach) 70%, #000 8%); }
.node.pro .ic { color: #C9851C; opacity: 1; }
.node.current { width: 78px; height: 74px; animation: none; }
.node.current .ic { width: 30px; height: 30px; margin-left: 3px; }
.node.current::before { content: ''; position: absolute; inset: -10px -10px -14px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--u) 45%, transparent); animation: halo 2s ease-out infinite; }
@keyframes halo { 0% { transform: scale(.92); opacity: 1; } 100% { transform: scale(1.18); opacity: 0; } }
.start-bubble {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); z-index: 2;
  background: var(--navy); color: #fff; font-family: var(--head); font-weight: 600; padding: 6px 14px; border-radius: 10px;
  letter-spacing: .12em; text-transform: uppercase; font-size: 12px; animation: float 1.8s ease-in-out infinite; white-space: nowrap; box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) { .start-bubble { background: #00C2C7; color: #04203F; } .start-bubble::after { border-top-color: #00C2C7 !important; } }
.start-bubble::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--navy); }
@keyframes float { 50% { transform: translate(-50%, -5px); } }
.node-title { margin-top: 12px; font-family: var(--head); font-size: 13px; font-weight: 600; color: var(--text); background: var(--card); border: 1px solid var(--line); padding: 4px 10px; border-radius: 99px; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: var(--shadow-sm); }
.node-tiko, .node-deco { position: absolute; bottom: -8px; }
.node-row.tk-r .node-tiko, .node-row.tk-r .node-deco { left: calc(50% + 50px); }
.node-row.tk-l .node-tiko, .node-row.tk-l .node-deco { right: calc(50% + 50px); }
.node-row.is-cur .node-tiko { bottom: 14px; }
.node-deco { bottom: -30px; opacity: .97; }
.node-deco::before { content: ''; position: absolute; left: 50%; bottom: 2px; width: 80%; height: 14px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--u) 30%, transparent), transparent); }
.node-row.tk-l .node-deco .mano-body { transform-origin: 50% 100%; }

.path-end { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 12px 8px; }
.pe-mano { flex: none; }
.pe-txt { max-width: 190px; }
.pe-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, #FFC786, #F0A23A); color: #6B3B00; margin-bottom: 10px; box-shadow: 0 8px 20px -8px #F0A23A; }
.pe-ic .ic { width: 26px; height: 26px; }
.pe-txt b { display: block; font-family: var(--head); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.pe-txt p { margin: 2px 0 8px; color: var(--text-2); }
.pe-txt small { color: var(--muted); }

/* strony */
.page { padding: 16px 16px 30px; }
.page h1 { font-size: 26px; }
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 26px 2px 10px; }
.sec-title .ic { width: 20px; height: 20px; color: var(--teal-d); }
.page-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 14px; padding: 16px 12px 0 18px; border-radius: var(--r); overflow: hidden; position: relative;
  background: radial-gradient(110% 120% at 100% 0%, rgba(0, 194, 199, .22), transparent 60%), radial-gradient(90% 120% at 0% 100%, rgba(138, 79, 247, .14), transparent 60%), var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.page-hero > div:first-child { padding-bottom: 16px; }
.page-hero p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.list { padding: 4px 16px; }
.quest { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.quest:last-child { border-bottom: 0; }
.q-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--violet-t); color: var(--violet); flex: none; }
.q-ic .ic { width: 22px; height: 22px; }
.q-body { flex: 1; min-width: 0; }
.q-body b { display: block; margin-bottom: 6px; font-size: 15px; }
.q-chest { color: var(--line-d); line-height: 0; }
.q-chest .ic { width: 26px; height: 26px; }
.quest.done .q-chest { color: var(--peach-d); animation: manoHop 1.6s ease-in-out infinite; }
.quest.done .q-ic { background: var(--ok-t); color: var(--ok); }
.pbar { position: relative; height: 16px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.pbar i { position: absolute; inset: 0 auto 0 0; background: var(--grad); border-radius: 99px; transition: width .6s; }
.pbar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: var(--text); }
.pbar.lvl { height: 8px; margin: 8px 0 4px; }
.pbar.thin { height: 5px; margin-top: 8px; }
.week { display: flex; justify-content: space-between; gap: 6px; margin: 4px 0 12px; }
.wd { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--head); font-size: 11.5px; font-weight: 500; color: var(--muted); }
.wd i { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-style: normal; }
.wd i .ic { width: 18px; height: 18px; color: #E8590C; fill: #FF9F43; }
.wd.on i { background: #FFE8D2; }
@media (prefers-color-scheme: dark) { .wd.on i { background: #4A2A12; } }
.wd.today span { color: var(--text); font-weight: 600; }
.wd.today i { box-shadow: 0 0 0 2px var(--teal); }

.profile-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.profile-head > div { flex: 1; min-width: 0; }
.profile-head small { color: var(--muted); }
.avatar { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 0; flex: none; display: grid; place-items: center; color: #fff; font-family: var(--head); font-size: 30px; font-weight: 600; box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--line), var(--shadow); }
.avatar .av-ic .ic { width: 34px; height: 34px; }
.avatar em { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--card); color: var(--text); display: grid; place-items: center; box-shadow: var(--shadow); }
.avatar em .ic { width: 15px; height: 15px; }
.cloud, .access { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.cloud > div, .access > div { flex: 1; min-width: 0; }
.cloud b, .access b { display: block; font-family: var(--head); font-weight: 600; }
.cloud small, .access small { display: block; color: var(--muted); overflow-wrap: anywhere; font-size: 13px; }
.cloud-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--teal-t); color: var(--teal-d); }
.cloud-ic .ic { width: 22px; height: 22px; }
.cloud.guest { border-color: color-mix(in srgb, var(--coral) 40%, var(--line)); background: color-mix(in srgb, var(--coral) 7%, var(--card)); }
.cloud.guest .cloud-ic { background: color-mix(in srgb, var(--coral) 18%, transparent); color: var(--coral); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.stat span { grid-row: span 2; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-2); color: var(--navy-2); }
@media (prefers-color-scheme: dark) { .stat span { color: #8FB4FF; } }
.stat span .ic { width: 20px; height: 20px; }
.stat b { font-family: var(--head); font-size: 19px; font-weight: 600; line-height: 1.2; } .stat small { color: var(--muted); font-size: 12px; }
.chart { margin-top: 10px; }
.chart > b { font-family: var(--head); font-weight: 600; }
.bars { display: flex; gap: 8px; height: 130px; align-items: flex-end; margin-top: 16px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar-col i { width: 100%; max-width: 28px; background: var(--bg-2); border-radius: 8px 8px 4px 4px; position: relative; min-height: 4px; }
.bar-col.today i { background: var(--grad); }
.bar-col em { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 900; color: var(--muted); }
.bar-col span { font-family: var(--head); font-size: 11.5px; color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.badge { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: center; }
.badge .b-ic { width: 52px; height: 52px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--line-d); }
.badge .b-ic .ic { width: 26px; height: 26px; }
.badge.got .b-ic { background: linear-gradient(140deg, #FFE1B8, #FFC786); color: #8A4B00; box-shadow: 0 8px 18px -8px #F0A23A; }
.badge.got { border-color: color-mix(in srgb, var(--peach) 55%, var(--line)); }
.badge b { display: block; font-family: var(--head); font-weight: 600; font-size: 14px; } .badge small { color: var(--muted); font-size: 12px; }
.set { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.set:last-child { border-bottom: 0; }
.seg { display: flex; background: var(--bg-2); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 11px; border-radius: 9px; font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(10, 36, 88, .14); }
.switch { width: 50px; height: 30px; border-radius: 99px; border: 0; background: var(--line-d); position: relative; transition: background .2s; flex: none; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch.on { background: var(--teal); } .switch.on i { transform: translateX(20px); }
.link-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; font-weight: 700; color: var(--text); }
.link-row .ic { width: 20px; height: 20px; color: var(--muted); }
.link-row .lr-go { margin-left: auto; }
.link-row:last-child { border-bottom: 0; }
.link-row.danger, .link-row.danger .ic { color: var(--no); }
.foot-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 28px; }

/* ---------------- formularze ---------------- */

.field { width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 14px 16px; font-weight: 700; outline: none; transition: border-color .15s, box-shadow .15s; }
.field:focus { border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent); }
.field-inline { width: 60%; padding: 8px 12px; text-align: right; }
.form { display: grid; gap: 14px; margin-top: 18px; }
.lbl { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--text-2); }
.lbl small { color: var(--muted); font-weight: 400; }
.pass { position: relative; display: block; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: 8px; line-height: 0; }
.eye .ic { width: 20px; height: 20px; }
.form-err { margin: 0; background: var(--no-t); color: var(--no-d); padding: 10px 14px; border-radius: 12px; font-weight: 700; }
@media (prefers-color-scheme: dark) { .form-err { color: #FF9AA0; } }
.auth-body { flex: 1; padding: 0 22px calc(30px + var(--safe-b)); display: flex; flex-direction: column; }
.auth-body h1 { text-align: center; font-size: 25px; margin: 8px 0 6px; }
.auth-tiko { display: flex; justify-content: center; position: relative; }
.auth-tiko::before { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 194, 199, .2), transparent); }
.auth-body .link { align-self: center; margin-top: 12px; }
.switch-auth { text-align: center; color: var(--muted); margin: 10px 0 0; }
.fine { font-size: 12px; color: var(--muted); text-align: center; margin: 16px 0 0; }
.sent .ic { width: 34px; height: 34px; color: var(--teal-d); }
.onboard-body .field { margin-top: 6px; font-size: 18px; }

/* ---------------- po lekcji ---------------- */

.finish { align-items: center; text-align: center; padding: calc(30px + var(--safe-t)) 22px 0; position: relative; overflow: hidden;
  background: radial-gradient(100% 50% at 50% 0%, rgba(0, 194, 199, .16), transparent 70%), radial-gradient(80% 40% at 80% 30%, rgba(138, 79, 247, .1), transparent 70%), var(--bg); }
.finish h1 { font-size: 28px; margin: 8px 0 20px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.finish p { color: var(--text-2); max-width: 360px; }
.finish-hero { margin-top: auto; position: relative; display: grid; place-items: center; }
.finish-hero .hero-halo { width: 200px; height: 200px; transform: translate(-50%, -50%); animation: spin2 18s linear infinite; opacity: .7; }
@keyframes spin2 { from { transform: translate(-50%, -50%); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.finish-hero .mano { position: relative; z-index: 1; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.tile-stat { border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; animation: popIn .45s ease backwards; box-shadow: var(--shadow); padding: 10px 4px 12px; }
.tile-stat:nth-child(2) { animation-delay: .1s; } .tile-stat:nth-child(3) { animation-delay: .2s; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } }
.tile-stat small { display: flex; align-items: center; justify-content: center; gap: 4px; font-family: var(--head); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tile-stat small .ic { width: 14px; height: 14px; }
.tile-stat b { display: block; font-family: var(--head); font-size: 24px; font-weight: 600; margin-top: 4px; }
.t-xp small, .t-xp b { color: var(--violet); } .t-acc small, .t-acc b { color: var(--ok); } .t-time small, .t-time b { color: var(--navy-2); }
@media (prefers-color-scheme: dark) { .t-xp small, .t-xp b { color: #C4A6FF; } .t-acc small, .t-acc b { color: #4FD9A8; } .t-time small, .t-time b { color: #8FB4FF; } }
.extras { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.extras span { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-weight: 700; font-size: 13.5px; animation: popIn .4s .35s ease backwards; }
.extras .ic { width: 16px; height: 16px; color: var(--teal-d); }
.finish-foot { margin-top: auto; width: 100%; padding: 22px 0 calc(20px + var(--safe-b)); }
.finish-foot.stack { display: grid; gap: 12px; }
.finish-foot .link { justify-self: center; }
.streak-screen .flame { margin-top: auto; position: relative; display: flex; align-items: flex-end; gap: 0; }
.flame-ring { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 30%, #FFE1B8, #FFB46B 55%, #FF7A3D); box-shadow: 0 20px 50px -16px #FF7A3D; animation: flame 1.6s ease-in-out infinite; }
.flame-ring .ic { width: 64px; height: 64px; color: #fff; fill: rgba(255, 255, 255, .35); stroke-width: 1.6; }
.flame-mano { margin-left: -26px; }
@keyframes flame { 50% { transform: scale(1.05) rotate(-2deg); } }
.streak-num { font-family: var(--head); font-size: 72px; font-weight: 700; color: #E8590C; line-height: 1; margin-top: 12px; }
.streak-screen h1 { background: linear-gradient(90deg, #E8590C, #F0A23A); -webkit-background-clip: text; background-clip: text; margin-bottom: 8px; }
.streak-screen .week { width: 100%; margin-top: 18px; }
.upsell-screen h1 { background: linear-gradient(90deg, var(--violet), var(--navy-2)); -webkit-background-clip: text; background-clip: text; }
@media (prefers-color-scheme: dark) { .upsell-screen h1 { background: linear-gradient(90deg, #C4A6FF, #6FE3E6); -webkit-background-clip: text; background-clip: text; } }
.finish-mission { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: var(--peach-t); border: 1px solid color-mix(in srgb, var(--peach) 60%, var(--line)); border-radius: 14px; padding: 12px 14px; margin-top: 16px; max-width: none !important; }
.finish-mission .ic { width: 22px; height: 22px; color: #C9851C; margin-top: 1px; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(var(--r)); } }

/* ---------------- okna ---------------- */

.modal { position: fixed; inset: 0; z-index: 50; background: rgba(6, 21, 47, 0); display: flex; align-items: center; justify-content: center; padding: 20px; transition: background .2s; }
.modal.open { background: rgba(6, 21, 47, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-card { background: var(--card); border-radius: 24px; padding: 22px; width: 100%; max-width: 420px; text-align: center; transform: scale(.94); opacity: 0; transition: all .22s; max-height: 88dvh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal.open .modal-card { transform: none; opacity: 1; }
.modal-sheet { align-items: flex-end; padding: 0; }
.modal-sheet .modal-card { max-width: 520px; border-radius: 26px 26px 0 0; transform: translateY(40px); padding-bottom: calc(22px + var(--safe-b)); }
.modal-sheet .modal-card::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 9px; background: var(--line-d); margin: -10px auto 14px; }
.modal-card h3 { font-size: 21px; margin-bottom: 8px; }
.modal-card p { color: var(--text-2); margin: 0 0 14px; }
.modal-tiko { display: flex; justify-content: center; margin-bottom: 6px; }
.modal-actions { display: grid; gap: 12px; margin-top: 14px; }
.modal .form { text-align: left; margin-top: 8px; }
.streak-big { display: flex; align-items: center; justify-content: center; gap: 6px; }
.streak-big .ic { width: 52px; height: 52px; color: #E8590C; fill: #FF9F43; }
.streak-big b { color: #E8590C; font-family: var(--head); font-size: 46px; font-weight: 700; }
.lesson-sheet .ls-top { display: flex; align-items: flex-end; justify-content: center; gap: 6px; margin-bottom: 8px; }
.lesson-sheet .ls-icon { width: 64px; height: 64px; border-radius: 20px; background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--u) 60%, #fff), var(--u) 60%); display: grid; place-items: center; font-family: var(--head); font-size: 28px; font-weight: 600; color: #fff; box-shadow: 0 5px 0 var(--u-shade); margin-bottom: 8px; }
.lesson-sheet small { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-size: 11px; }
.lesson-sheet h3 { margin-top: 4px; }
.ls-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--muted) !important; }
.ls-meta span { display: inline-flex; align-items: center; gap: 5px; background: var(--bg-2); padding: 4px 10px; border-radius: 99px; }
.ls-meta .ic { width: 15px; height: 15px; }
.ls-meta .ls-free { background: var(--ok-t); color: var(--ok-d); font-weight: 700; }
.locked-note { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--bg-2); border-radius: 14px; padding: 12px; }
.locked-note .ic { width: 18px; height: 18px; }
.unit-modal-mano { display: flex; justify-content: center; margin-bottom: 4px; }
.lesson-list { list-style: none; padding: 0; margin: 10px 0 0; text-align: left; display: grid; gap: 8px; }
.lesson-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.ll-num { width: 30px; height: 30px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--u-tint); color: var(--u); font-family: var(--head); font-weight: 600; font-size: 14px; }
@media (prefers-color-scheme: dark) { .ll-num { background: color-mix(in srgb, var(--u) 20%, transparent); color: #fff; } }
.lesson-list li > div { flex: 1; }
.lesson-list b { display: block; font-size: 15px; } .lesson-list small { color: var(--muted); font-size: 13px; }
.lesson-list i { color: var(--ok); line-height: 0; } .lesson-list i .ic { width: 20px; height: 20px; }
.lesson-list li.done { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.avatars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.avatars button { aspect-ratio: 1; border-radius: 50%; border: 0; color: #fff; font-family: var(--head); font-weight: 600; font-size: 22px; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line); }
.avatars button.sel { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--teal); }

.toast { position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; z-index: 120; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow-lg); transition: all .25s; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.ok { background: var(--ok-d); } .toast.err { background: var(--no-d); }

@media (min-width: 560px) {
  #app { box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(10, 36, 88, .14); background: var(--bg); }
}
@media (max-width: 360px) {
  .prompt { font-size: 19px; }
  .chip { padding: 5px 7px; font-size: 13.5px; }
  .chip-course span:last-child { display: none; }
  .node-deco { display: none; }
  .node-row.tk-r .node-tiko { left: calc(50% + 40px); } .node-row.tk-l .node-tiko { right: calc(50% + 40px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ======================= marka, dostęp, misje, dziennik, diagnoza ======================= */

.mf-logo { display: inline-block; line-height: 0; }
.mf-logo img { height: 24px; width: auto; }
.mf-logo.sm img { height: 20px; }
.mf-logo.xs img { height: 17px; }
.auth-brand { flex: 1; display: flex; justify-content: flex-end; }
.brand-foot { text-align: center; margin: 26px 0 8px; }
.brand-foot p { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

.center-screen { align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 12px; }
.center-screen h2 { font-size: 22px; }
.center-screen .btn { max-width: 320px; }
.top-title { flex: 1; text-align: center; margin-right: 40px; font-family: var(--head); font-weight: 600; }
a.btn { text-decoration: none; }

/* karta wiedzy: punkty */
.learn-points { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.learn-points li { position: relative; padding: 10px 12px 10px 36px; background: var(--u-tint); border-radius: 12px; font-weight: 700; font-size: 15px; }
@media (prefers-color-scheme: dark) { .learn-points li { background: color-mix(in srgb, var(--u) 12%, transparent); } }
.learn-points li::before { content: ''; position: absolute; left: 14px; top: 17px; width: 8px; height: 8px; border-radius: 2px; background: var(--u); transform: rotate(45deg); }

/* refleksja */
.hint { display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); margin: -6px 0 12px; }
.hint .ic { width: 20px; height: 20px; color: var(--peach-d); margin-top: 1px; }
.fine-note { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 8px 2px 0; }
.fine-note .ic { width: 15px; height: 15px; margin-top: 1px; }

/* misja */
.mission-card { background: radial-gradient(120% 100% at 100% 0%, rgba(255, 199, 134, .45), transparent 60%), var(--card); border: 1px solid color-mix(in srgb, var(--peach) 60%, var(--line)); border-radius: 20px; padding: 18px; box-shadow: 0 5px 0 color-mix(in srgb, var(--peach) 70%, var(--line)), var(--shadow); margin-bottom: 18px; }
.mission-card .kicker, .mi-head .kicker { color: #B0631F; }
@media (prefers-color-scheme: dark) { .mission-card { background: radial-gradient(120% 100% at 100% 0%, rgba(255, 199, 134, .18), transparent 60%), var(--card); } .mission-card .kicker, .mi-head .kicker { color: #FFC786; } }
.mission-card h2 { font-size: 21px; margin: 4px 0 8px; }
.mission-task { font-weight: 700; font-size: 16px; margin: 0 0 10px; }
.mission-steps { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.mission-why { font-size: 14px; color: var(--text-2); margin: 0 0 14px; }
.btn-accept { width: 100%; }

/* diagnoza */
.assess { display: grid; gap: 12px; }
.assess-row { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.assess-label { display: flex; gap: 10px; font-weight: 700; font-size: 15px; align-items: flex-start; }
.assess-label span { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--teal-t); color: var(--teal-d); flex: none; }
.assess-label span .ic { width: 17px; height: 17px; }
.assess-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.assess-ctrl input { flex: 1; accent-color: var(--teal); height: 28px; }
.assess-ctrl b { width: 28px; text-align: center; font-family: var(--head); font-size: 19px; font-weight: 600; color: var(--teal-d); }

/* paywall */
.paywall { text-align: left; }
.pw-head { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 8px; }
.pw-head .kicker { color: var(--violet); }
@media (prefers-color-scheme: dark) { .pw-head .kicker { color: #C4A6FF; } }
.pw-head h3 { margin: 0 0 12px; }
.pw-list { list-style: none; padding: 0; margin: 8px 0 4px; display: grid; gap: 10px; }
.pw-list li { padding-left: 32px; position: relative; color: var(--text-2); }
.pw-list li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.code-field { text-align: center; font-size: 21px; letter-spacing: .08em; text-transform: uppercase; }

/* misje — lista */
.mission-item h3 { font-size: 18px; margin: 6px 0; }
.mission-item p { margin: 0 0 10px; }
.mi-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.due { font-size: 12px; font-weight: 900; color: var(--teal-d); white-space: nowrap; }
.due.late { color: var(--coral); }
.mission-item { margin-bottom: 12px; border-color: color-mix(in srgb, var(--peach) 55%, var(--line)); box-shadow: var(--shadow-sm); }
.empty { text-align: center; }
.empty .btn { max-width: 260px; margin-top: 8px; }
.done-item { border-bottom: 1px solid var(--line); padding: 10px 0; }
.done-item:last-child { border-bottom: 0; }
.done-item summary { display: flex; gap: 10px; align-items: center; cursor: pointer; list-style: none; }
.done-item summary::-webkit-details-marker { display: none; }
.di-face { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--bg-2); display: grid; place-items: end center; flex: none; }
.di-face .mano-body { animation: none; } .di-face .mano img { filter: none; }
.done-item summary b { flex: 1; }
.done-item summary small { color: var(--muted); white-space: nowrap; }
.done-item p { margin: 8px 0 0 50px; }
.journal { display: grid; gap: 10px; }
.note b { display: block; margin-top: 2px; font-family: var(--head); font-weight: 600; }
.note-q { color: var(--muted); font-size: 14px; margin: 4px 0 8px; }
.note-a { margin: 0; font-weight: 700; white-space: pre-wrap; }
.ratings { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 4px 0 12px; }
.ratings button { background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 6px 2px 6px; display: grid; justify-items: center; gap: 2px; overflow: hidden; }
.ratings button .mano-body { animation: none; } .ratings button .mano img { filter: none; }
.ratings button small { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.ratings button.sel { border-color: var(--ok); background: var(--ok-t); }

/* przemiana */
.trans-empty { display: flex; gap: 10px; align-items: flex-end; padding-bottom: 0; }
.trans-empty > div { padding-bottom: 16px; }
.trans-empty p { margin: 4px 0 10px; }
.trans-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.trans-head b { font-family: var(--head); font-weight: 600; }
.trans-head small { display: block; color: var(--muted); }
.trans-avg { font-family: var(--head); font-size: 19px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.trans-avg b { color: var(--teal-d); }
.tr-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.tr-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--teal-t); color: var(--teal-d); flex: none; }
.tr-ic .ic { width: 17px; height: 17px; }
.tr-body { flex: 1; min-width: 0; }
.tr-body small { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.tr-bar { position: relative; height: 9px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.tr-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.tr-bar .v0 { background: color-mix(in srgb, var(--teal) 35%, transparent); }
.tr-bar .v1 { background: var(--grad); height: 5px; top: 2px; }
.tr-d { width: 34px; text-align: right; font-family: var(--head); font-weight: 600; color: var(--muted); }
.tr-d.up { color: var(--ok); } .tr-d.down { color: var(--coral); }
.trans .btn { margin-top: 12px; }

/* profil: dostęp */
.access.ok { border-color: color-mix(in srgb, var(--peach) 60%, var(--line)); background: color-mix(in srgb, var(--peach) 12%, var(--card)); }
.access.ok .cloud-ic { background: var(--peach); color: #6B3B00; }
.access.free { border-color: color-mix(in srgb, var(--violet) 30%, var(--line)); background: color-mix(in srgb, var(--violet) 6%, var(--card)); }
.access.free .cloud-ic { background: var(--violet-t); color: var(--violet); }
.foot-row .btn-skip { flex: 0 0 34%; }
.foot-row .btn { min-width: 0; }
body.in-lesson .toast { top: calc(64px + var(--safe-t)); bottom: auto; transform: translate(-50%, -20px); }
body.in-lesson .toast.show { transform: translate(-50%, 0); }

/* ================= nowe kroki: symulator, studium przypadku, quiz z pewnością ================= */

.fb-lead { margin: 6px 0 0; font-weight: 700; }

/* symulator rozmowy */
.sim-head { position: relative; overflow: hidden; color: #fff; border-radius: var(--r); padding: 14px 16px 12px; margin-bottom: 14px;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--u) 70%, transparent), transparent 60%), linear-gradient(150deg, #13336F, #0A2458); box-shadow: var(--shadow); }
.sim-head .kicker { color: #7FE6E8; }
.sim-head strong { display: block; font-family: var(--head); font-weight: 600; font-size: 18px; letter-spacing: -.01em; line-height: 1.25; }
.sim-goal { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; font-size: 14.5px; color: #CFDCF5; }
.sim-goal .ic { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--peach); }
.sim-rounds { display: flex; align-items: center; gap: 0; margin-top: 12px; }
.sim-rounds i { position: relative; flex: 1; display: flex; align-items: center; }
.sim-rounds i:not(:last-child)::after { content: ''; flex: 1; height: 2px; margin: 0 6px; background: rgba(255, 255, 255, .18); border-radius: 2px; }
.sim-rounds b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--head); font-style: normal;
  background: rgba(255, 255, 255, .1); color: #A9BCE0; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); transition: .3s; }
.sim-rounds i:last-child { flex: none; }
.sim-rounds i.now b { background: #fff; color: #0A2458; box-shadow: 0 0 0 4px rgba(0, 194, 199, .35); }
.sim-rounds i.ok b { background: var(--ok); color: #fff; box-shadow: none; }
.sim-rounds i.mid b { background: var(--soft); color: #fff; box-shadow: none; }
.sim-rounds i.no b { background: var(--no); color: #fff; box-shadow: none; }
.sim-rounds i.ok::after, .sim-rounds i.mid::after, .sim-rounds i.no::after { background: rgba(255, 255, 255, .45); }
.bubble-me.mid { background: linear-gradient(160deg, #C9822F, #A8641C); }
.sim-note { display: flex; align-items: center; gap: 8px; margin: -2px 0 0 auto; max-width: 92%; padding: 6px 12px 6px 6px; border-radius: 14px;
  font-size: 13.5px; color: var(--text-2); background: var(--card); border: 1px dashed var(--line-d); animation: bubbleIn .3s ease; }
.sim-note .mano { flex: none; }
.sim-note-2 { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.sim-note-0 { border-color: color-mix(in srgb, var(--no) 45%, transparent); }
.step-dialog .chat { margin-bottom: 4px; }

/* studium przypadku */
.case-file { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 4px var(--r) var(--r) var(--r); padding: 18px 16px 16px;
  margin-top: 14px; box-shadow: var(--shadow); }
.case-file::before { content: ''; position: absolute; left: -1px; top: -12px; width: 110px; height: 13px; background: var(--card);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 14px 0 0; }
.case-file::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px 0 0 4px; background: linear-gradient(var(--u), var(--violet)); }
.case-file h2 { font-size: 19px; margin: 2px 0 8px; line-height: 1.25; }
.case-lead { margin: 0; font-size: 15.5px; color: var(--text-2); }
.case-facts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.case-facts li { position: relative; padding: 8px 10px 8px 30px; background: var(--bg-2); border-radius: 10px; font-size: 14.5px; }
.case-facts li::before { content: ''; position: absolute; left: 11px; top: 14px; width: 8px; height: 8px; border-radius: 2px; background: var(--u); transform: rotate(45deg); }
.case-quote { margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid var(--peach); background: var(--peach-t); border-radius: 0 12px 12px 0;
  font-family: var(--head); font-weight: 500; font-size: 15.5px; }
.case-qs { display: grid; gap: 18px; margin-top: 18px; }
.case-q { animation: bubbleIn .3s ease; }
.case-qn { display: inline-block; font: 600 11px var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--u-shade); background: var(--u-tint);
  padding: 4px 10px; border-radius: 99px; }
@media (prefers-color-scheme: dark) { .case-qn { color: #fff; background: color-mix(in srgb, var(--u) 35%, transparent); } }
.case-q .prompt { margin: 8px 0 12px; }
.case-why { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; animation: bubbleIn .3s ease; }
.case-why .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.case-why.ok { background: var(--ok-t); } .case-why.ok .ic { color: var(--ok); }
.case-why.no { background: var(--soft-t); } .case-why.no .ic { color: var(--soft); }

/* quiz z pewnością */
.step-conf > .kicker { margin-bottom: 0; color: var(--u-shade); }
@media (prefers-color-scheme: dark) { .step-conf > .kicker { color: var(--u); } }
.step-conf .prompt { margin-top: 6px; }
.conf { margin-top: 18px; }
.conf p { margin: 0 0 8px; font: 600 13px var(--head); color: var(--muted); }
.conf-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.conf-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--text-2); font: 600 13px var(--head); box-shadow: 0 2px 0 var(--line); transition: .15s; }
.conf-btn .ic { width: 20px; height: 20px; }
.conf-btn:active { transform: translateY(2px); box-shadow: none; }
.conf-btn.sel { color: #fff; border-color: transparent; }
.conf-0.sel { background: var(--soft); box-shadow: 0 2px 0 #A8641C; }
.conf-1.sel { background: var(--teal, #00A9B4); box-shadow: 0 2px 0 var(--teal-d); }
.conf-2.sel { background: #1E4E8C; box-shadow: 0 2px 0 #0A2458; }
.conf.locked .conf-btn { pointer-events: none; }
.conf.locked .conf-btn:not(.sel) { opacity: .45; }

/* ================= ćwiczenia premium (24.11.2026) ================= */

/* tło lekcji: delikatna poświata w kolorze działu */
.screen.lesson { background: radial-gradient(130% 55% at 50% -8%, color-mix(in srgb, var(--u) 16%, transparent), transparent 62%),
  radial-gradient(90% 40% at 100% 30%, rgba(138, 79, 247, .06), transparent 70%), var(--bg); }
.lesson-top { background: color-mix(in srgb, var(--bg) 78%, transparent); }
.lesson .bar { height: 10px; background: color-mix(in srgb, var(--u) 10%, var(--bg-2)); box-shadow: inset 0 1px 2px rgba(10, 36, 88, .08); }
.lesson .bar-fill { box-shadow: 0 0 12px color-mix(in srgb, var(--u) 55%, transparent); overflow: hidden; }
.lesson .bar-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
  transform: translateX(-100%); animation: barShine 2.8s ease-in-out infinite 1s; }
@keyframes barShine { 60%, 100% { transform: translateX(100%); } }

/* nagłówek ćwiczenia: Mano-trener */
.coach { display: flex; align-items: flex-end; gap: 8px; margin: 0 0 16px; }
.coach-mano { flex: none; width: 66px; display: flex; justify-content: center; margin-left: -4px; }
.coach-txt { position: relative; flex: 1; min-width: 0; padding: 9px 14px 10px; margin-bottom: 8px; border-radius: 16px 16px 16px 6px;
  background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid color-mix(in srgb, var(--u) 22%, var(--line));
  box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--u) 60%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: bubbleIn .35s ease .15s both; }
.coach-k { display: flex; align-items: center; gap: 6px; font: 600 10.5px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--u-shade); }
@media (prefers-color-scheme: dark) { .coach-k { color: var(--u); } }
.coach-k .ic { width: 14px; height: 14px; }
.coach-say { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 700; color: var(--text-2); line-height: 1.35; }

/* pytanie */
.lesson .prompt { font-family: var(--head); font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }

/* karty odpowiedzi */
.lesson .opt { position: relative; padding: 14px 44px 14px 14px; border-radius: 18px; border: 1.5px solid var(--line);
  background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--card) 94%, var(--bg-2)));
  box-shadow: 0 1px 0 var(--line), 0 10px 22px -18px rgba(10, 36, 88, .45);
  transition: transform .15s cubic-bezier(.3, 1.4, .5, 1), border-color .15s, box-shadow .2s, background .2s;
  animation: optIn .42s cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
@keyframes optIn { from { opacity: 0; transform: translateY(12px); } }
.lesson .opt:hover { border-color: color-mix(in srgb, var(--u) 45%, var(--line)); transform: translateY(-1px); }
.lesson .opt:active { transform: scale(.985); }
.lesson .opt-key { width: 32px; height: 32px; border-radius: 10px; font-size: 13.5px; color: var(--u-shade); background: color-mix(in srgb, var(--u) 12%, var(--bg-2)); transition: .2s; }
@media (prefers-color-scheme: dark) { .lesson .opt-key { color: var(--u); } }
.lesson .opt::after { content: ''; position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  border: 1.5px solid var(--line-d); transition: .2s; box-sizing: border-box; }
.lesson .opts-tf .opt, .lesson .opts-styles .opt { padding-right: 14px; }
.lesson .opts-tf .opt::after, .lesson .opts-styles .opt::after { display: none; }
.lesson .opt.sel { border-color: var(--u); background: linear-gradient(180deg, color-mix(in srgb, var(--u) 9%, var(--card)), color-mix(in srgb, var(--u) 15%, var(--card)));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--u) 16%, transparent), 0 14px 26px -16px color-mix(in srgb, var(--u) 70%, transparent); transform: translateY(-1px); }
.lesson .opt.sel .opt-key { background: linear-gradient(145deg, var(--u), var(--u-shade)); color: #fff; }
.lesson .opt.sel::after { border-color: var(--u); background: var(--u) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.lesson .opt.right { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent) !important; }
.lesson .opt.right::after { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.lesson .opt.wrong::after { border-color: var(--no); background: var(--no) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.lesson .opts.locked .opt:not(.right):not(.wrong):not(.sel) { opacity: .55; }
.lesson .opts-reply .opt { border-radius: 20px 20px 6px 20px; }

/* cytat (prawda/fałsz, styl) */
.lesson .quote { position: relative; padding: 18px 18px 18px 46px; border: 1px solid color-mix(in srgb, var(--u) 22%, var(--line));
  background: linear-gradient(135deg, var(--card), color-mix(in srgb, var(--u) 6%, var(--card))); box-shadow: var(--shadow); }
.lesson .quote::before { content: '\201E'; position: absolute; left: 12px; top: -2px; font: 700 50px/1 var(--head); color: var(--u); opacity: .5; }

/* scenki i rozmowy */
.ava { color: #fff; font: 600 19px var(--head); box-shadow: 0 0 0 2px var(--card), 0 6px 14px -6px rgba(10, 36, 88, .45); }
.ava .ic { width: 22px; height: 22px; }
.lesson .bubble-them { box-shadow: 0 10px 24px -18px rgba(10, 36, 88, .5); }
.lesson .setting { background: color-mix(in srgb, var(--card) 85%, transparent); box-shadow: var(--shadow-sm); }

/* kafelki i pary */
.lesson .tile { border-radius: 13px; background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--card) 92%, var(--bg-2)));
  box-shadow: 0 2px 0 var(--line-d), 0 8px 16px -12px rgba(10, 36, 88, .45); transition: transform .12s; }
.lesson .tile:active { transform: translateY(2px); box-shadow: 0 0 0 var(--line-d); }
.lesson .build-line .tile { border-color: color-mix(in srgb, var(--u) 40%, var(--line)); }
.lesson .mt { border-radius: 16px; box-shadow: 0 1px 0 var(--line), 0 10px 20px -16px rgba(10, 36, 88, .45); animation: optIn .4s ease both; }
.lesson .mt.sel { box-shadow: 0 0 0 4px color-mix(in srgb, var(--u) 16%, transparent); }

/* informacja zwrotna: wysuwa się z dołu, Mano wskakuje */
.lesson-foot .fb:not([hidden]) { animation: fbUp .38s cubic-bezier(.2, 1.1, .3, 1); }
@keyframes fbUp { from { transform: translateY(16px); opacity: 0; } }
.lesson-foot.is-ok { background: linear-gradient(180deg, color-mix(in srgb, var(--ok) 16%, var(--bg)), var(--ok-t)); }
.lesson-foot.is-no { background: linear-gradient(180deg, color-mix(in srgb, var(--no) 12%, var(--bg)), var(--no-t)); }
.lesson-foot.is-soft { background: linear-gradient(180deg, color-mix(in srgb, var(--soft) 14%, var(--bg)), var(--soft-t)); }

/* przycisk w lekcji: lekki połysk */
.lesson .btn-check:not(:disabled) { position: relative; overflow: hidden; }
.lesson .btn-check:not(:disabled)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); animation: barShine 3.4s ease-in-out infinite 1.4s; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .lesson .opt, .lesson .mt, .coach-txt { animation: none; } .lesson .bar-fill::after, .lesson .btn-check::after { display: none; } }
.lesson-foot .fb-why, .lesson-foot .fb-lead, .lesson-foot .fb-correct { margin-right: 58px; }
