/* CELO — Akademia Celów i Działania · manawaFLOW.
 * Styl „Executive Luxury”: kość słoniowa / głęboki granat, szampańskie złoto, fiolet manawaFLOW.
 * Mobile-first, max 560 px; na komputerze wyśrodkowana „karta telefonu”. Jasny i ciemny motyw. */

:root {
  --violet: #6A0DAD; --violet-2: #8E4FD6;
  --gold: #B8924F; --gold-2: #C8A66A; --gold-3: #E6CF9C;
  --navy: #101B2C; --copper: #C18B64; --teal: #126E73;
  --bg: #F6F3ED; --bg-2: #EFEAE1; --card: #FFFFFF; --card-2: #FBF9F5;
  --ink: #15192B; --ink-2: #30353D; --muted: #6D6F7B; --line: #E6E0D5; --line-2: #D6CEBF;
  --ok: #2F8F6B; --ok-t: #E3F3EC; --no: #B5524F; --no-t: #F8E7E5; --soft: #B8862F; --soft-t: #F7EEDC;
  --p: var(--gold-2); --p-deep: var(--navy); --p-tint: rgba(200,166,106,.14);
  --shadow: 0 1px 2px rgba(16,27,44,.05), 0 8px 28px rgba(16,27,44,.07);
  --shadow-lg: 0 18px 50px rgba(16,27,44,.18);
  --r: 18px; --r-sm: 12px;
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 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:not([data-theme="light"]) {
    --violet: #9B5DE5; --violet-2: #B48AEC; --gold: #C8A66A; --gold-2: #D9BC86; --gold-3: #EBD5A6;
    --bg: #0C1020; --bg-2: #10162A; --card: #151B2E; --card-2: #1A2138;
    --ink: #EEE9DF; --ink-2: #D5CFC3; --muted: #9AA0B3; --line: #252C43; --line-2: #343D58;
    --ok: #5BC79D; --ok-t: rgba(91,199,157,.12); --no: #E07A76; --no-t: rgba(224,122,118,.12); --soft: #E0B35A; --soft-t: rgba(224,179,90,.12);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.28); --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --violet: #9B5DE5; --violet-2: #B48AEC; --gold: #C8A66A; --gold-2: #D9BC86; --gold-3: #EBD5A6;
  --bg: #0C1020; --bg-2: #10162A; --card: #151B2E; --card-2: #1A2138;
  --ink: #EEE9DF; --ink-2: #D5CFC3; --muted: #9AA0B3; --line: #252C43; --line-2: #343D58;
  --ok: #5BC79D; --ok-t: rgba(91,199,157,.12); --no: #E07A76; --no-t: rgba(224,122,118,.12); --soft: #E0B35A; --soft-t: rgba(224,179,90,.12);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.28); --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font: 500 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
@media (min-width: 600px) { body { background: radial-gradient(1200px 600px at 50% -10%, rgba(106,13,173,.10), transparent 60%), var(--bg-2); } }
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; }
@media (min-width: 600px) { #app { box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); } }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
h1 { font: 600 30px/1.12 var(--serif); letter-spacing: 0; }
p { margin: .4em 0; }
b, strong { font-weight: 700; }
.glyph { flex: 0 0 auto; vertical-align: -.18em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- typografia pomocnicza ---------- */
.kicker { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kicker.gold { color: var(--gold); }
.sec-title { display: flex; align-items: baseline; gap: 8px; font: 700 13px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 26px 2px 10px; }
.sec-title small { font-weight: 600; color: var(--gold); letter-spacing: 0; }
.sec-title .link { margin-left: auto; font-size: 13px; letter-spacing: 0; text-transform: none; }
.link { color: var(--gold); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
.page-head { margin: 6px 2px 16px; }
.page-head h1 { margin-top: 4px; }
.page-head p { color: var(--muted); }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: .01em; text-decoration: none; transition: transform .12s ease, box-shadow .2s, background .2s, opacity .2s; user-select: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn-lg { min-height: 54px; font-size: 16px; padding: 0 26px; width: 100%; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-gold { background: linear-gradient(135deg, var(--gold-3), var(--gold-2) 45%, var(--gold)); color: #1A1306; box-shadow: 0 6px 18px rgba(184,146,79,.32); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-no { background: var(--no); color: #fff; }
.btn-soft { background: var(--soft); color: #fff; }
.btn-danger { background: var(--no); color: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stack { display: flex; flex-direction: column; gap: 10px; align-items: stretch; margin-top: 16px; }

/* ---------- pola ---------- */
.field, .field-area { width: 100%; background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field:focus, .field-area:focus { border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(200,166,106,.18); }
.field-area { resize: vertical; min-height: 64px; line-height: 1.5; }
.field-lg { font-size: 17px; padding: 15px 16px; }
.field-inline { width: auto; max-width: 170px; padding: 8px 10px; text-align: right; }
.lbl { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; margin: 12px 0 4px; }
.lbl small { font-weight: 500; color: var(--muted); font-size: 13px; }
.lbl-big { font-size: 16px; }
.form { display: flex; flex-direction: column; }
.form-err { color: var(--no); font-weight: 600; font-size: 14px; }
.example-line { font-weight: 500; font-size: 12.5px; color: var(--muted); font-style: italic; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.switch { width: 48px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--gold-2); }
.switch.on i { transform: translateX(20px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.chip-s { padding: 7px 12px; border-radius: 999px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: left; }
.chip-s:active { background: var(--p-tint); }

/* ---------- karty ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin-bottom: 12px; display: block; width: 100%; text-align: left; border: 1px solid var(--line); }
.card.list { padding: 6px 0; }
.card.empty { text-align: center; padding: 22px 18px; }
.card.empty p { margin: 0 0 10px; }
.pbar { position: relative; height: 8px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.pbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: 999px; transition: width .5s; }
.pbar span { position: absolute; right: 8px; top: -2px; font-size: 10px; font-weight: 800; color: var(--muted); line-height: 12px; }
.pbar:has(span) { height: 12px; }
.pbar.thin { height: 5px; }
.pbar.lvl { height: 6px; }

/* pierścień */
.ring { position: relative; flex: 0 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--bg-2); stroke-width: 5; }
.ring-fg { fill: none; stroke: var(--gold-2); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.ring > span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.ring-momentum > span b { font: 600 32px/1 var(--serif); }
.ring-momentum > span small { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ring-momentum .ring-fg { stroke: var(--violet-2); }

/* godło */
.emblem { flex: 0 0 auto; }
.emblem.spin path { transform-origin: 32px 32px; animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-emblem { filter: drop-shadow(0 10px 30px rgba(200,166,106,.35)); }

/* ---------- powłoka ---------- */
.screen { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--safe-t)) 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand-btn { display: flex; align-items: center; gap: 8px; }
.wordmark-sm { font: 700 20px/1 var(--serif); letter-spacing: .14em; }
.plan-tag { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 3px 7px; border-radius: 999px; background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); color: #1A1306; }
.top-right { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.pill-momentum { color: var(--violet-2); }
.pill-mentor { color: var(--gold); }
.avatar-btn { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--gold-3); font: 700 16px/36px var(--serif); text-align: center; }
.sync-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--bg); }
.sync-dot.ok { background: var(--ok); } .sync-dot.wait { background: var(--soft); } .sync-dot.warn { background: var(--no); }
.app-main { flex: 1; padding: 14px 16px calc(96px + var(--safe-b)); }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + var(--safe-b)); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 700; color: var(--muted); border-radius: 12px; }
.tab-ic { position: relative; display: block; }
.tab-ic em { position: absolute; top: -4px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--gold-2); color: #1A1306; font: 800 10px/17px var(--sans); font-style: normal; }
.tab.on { color: var(--ink); }
.tab.on .tab-ic { color: var(--gold); }
.tab.on::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-2); margin-top: 1px; }
body.in-lesson .tabbar { display: none; }

/* ---------- okna i komunikaty ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(8,10,20,.55); opacity: 0; transition: opacity .2s; }
.modal.open { opacity: 1; }
.modal-card { position: relative; width: 100%; max-width: 440px; max-height: 88vh; overflow-y: auto; background: var(--card); border-radius: 24px; padding: 26px 22px 22px; box-shadow: var(--shadow-lg); transform: translateY(14px) scale(.98); transition: transform .22s ease; border: 1px solid var(--line); }
.modal.open .modal-card { transform: none; }
.modal-sheet { align-items: flex-end; padding: 0; }
.modal-sheet .modal-card { max-width: 560px; border-radius: 26px 26px 0 0; padding-bottom: calc(22px + var(--safe-b)); transform: translateY(40px); }
.modal-card h3 { font: 600 24px/1.2 var(--serif); margin: 6px 0 8px; padding-right: 26px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); background: var(--bg-2); }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.modal-emblem { display: flex; justify-content: center; margin-bottom: 4px; color: var(--gold); }
.menu-list { display: flex; flex-direction: column; margin-top: 8px; }
.menu-list button { display: flex; align-items: center; gap: 12px; padding: 14px 6px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 600; }
.menu-list button span { display: flex; flex-direction: column; }
.menu-list button small { color: var(--muted); font-weight: 500; font-size: 12px; }
.menu-list button.danger { color: var(--no); }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 20px); z-index: 200; max-width: min(92vw, 480px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; transition: .25s; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: var(--navy); color: #F6F3ED; box-shadow: inset 0 0 0 1px rgba(200,166,106,.4), var(--shadow-lg); }
.toast.gold { background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); color: #1A1306; }
.toast.err { background: var(--no); color: #fff; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 7px; height: 12px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(var(--r)); opacity: .9; } }

/* ---------- głos mentora ---------- */
.mentor-says { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 16px; }
.mentor-says .bubble { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; padding: 12px 15px; box-shadow: var(--shadow); font-size: 15px; }
.mentor-says .bubble .kicker { display: flex; margin-bottom: 3px; color: var(--gold); }
.mentor-says .bubble small { color: var(--muted); font-weight: 500; }

/* ---------- ekran powitalny ---------- */
.welcome { position: relative; overflow: hidden; padding: calc(28px + var(--safe-t)) 22px calc(28px + var(--safe-b)); background: radial-gradient(700px 420px at 50% -8%, rgba(106,13,173,.22), transparent 62%), radial-gradient(500px 300px at 100% 40%, rgba(200,166,106,.14), transparent 60%), var(--bg); }
.welcome-brand { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.mf-logo img { display: block; height: 18px; width: auto; }
.mf-logo.sm img { height: 16px; } .mf-logo.xs img { height: 14px; }
.welcome-hero { text-align: center; margin: 28px 0 22px; }
.wordmark { font: 600 64px/1 var(--serif); letter-spacing: .2em; margin: 14px 0 4px 0.2em; background: linear-gradient(180deg, var(--ink) 30%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { font: 700 12px/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 0; }
.sub-tagline { color: var(--ink-2); max-width: 400px; margin: 14px auto 0; font-size: 15px; }
.program-cards { display: flex; flex-direction: column; gap: 10px; }
.pcard { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pcard::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--p); }
.pc-ic { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--p-deep); color: var(--p); flex: 0 0 auto; }
.pcard b { font: 700 15px/1.2 var(--sans); letter-spacing: .12em; }
.pcard small { display: block; color: var(--ink-2); font-size: 14px; }
.pcard em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }
.welcome-points { list-style: none; padding: 0; margin: 20px 4px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: 14px; }
.welcome-points li { display: flex; gap: 10px; align-items: flex-start; }
.welcome-points .glyph { color: var(--gold); margin-top: 2px; }
.welcome-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.welcome-fine { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }

/* ---------- wprowadzenie, diagnoza, przepływy ---------- */
.lesson-top { display: flex; align-items: center; gap: 12px; padding: calc(12px + var(--safe-t)) 16px 10px; position: sticky; top: 0; background: var(--bg); z-index: 10; }
.lesson-top.dim { opacity: .5; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); flex: 0 0 auto; }
.icon-btn:active { background: var(--bg-2); }
.top-title { font-weight: 800; }
.bar { flex: 1; height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.bar-fill { height: 100%; width: 4%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-2), var(--p, var(--gold))); transition: width .35s ease; }
.onboard-body, .flow-body { flex: 1; padding: 10px 18px 120px; }
.lesson-foot { position: sticky; bottom: 0; padding: 12px 16px calc(14px + var(--safe-b)); background: var(--bg); border-top: 1px solid var(--line); z-index: 10; transition: background .2s; }
.foot-row { display: flex; gap: 10px; }
.foot-row .btn { flex: 1; min-height: 52px; }
.opts { display: flex; flex-direction: column; gap: 9px; margin-top: 8px; }
.opts-row { flex-direction: row; flex-wrap: wrap; }
.opts-row .opt { flex: 1 1 30%; justify-content: center; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 14px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); box-shadow: 0 2px 0 var(--line); transition: border-color .15s, background .15s, transform .1s; }
.opt:active { transform: translateY(1px); }
.opt-key { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--bg-2); font-weight: 800; font-size: 12px; color: var(--muted); }
.opt-txt { flex: 1; font-weight: 600; font-size: 15px; }
.opt-txt small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.opt-txt b { display: block; }
.opt.sel { border-color: var(--gold-2); background: var(--p-tint); }
.opt.sel .opt-key { background: var(--gold-2); color: #1A1306; }
.opt.right { border-color: var(--ok); background: var(--ok-t); }
.opt.right .opt-key { background: var(--ok); color: #fff; }
.opt.wrong { border-color: var(--no); background: var(--no-t); }
.opt.wrong .opt-key { background: var(--no); color: #fff; }
.opts.locked .opt { pointer-events: none; }
.gone { display: none !important; }
.assess-group { margin-bottom: 16px; }
.assess-group > .kicker { color: var(--p); margin: 0 2px 6px; }
.assess-row { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.assess-label { font-weight: 600; font-size: 14px; }
.assess-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.assess-ctrl input { flex: 1; accent-color: var(--gold-2); }
.assess-ctrl b { width: 26px; text-align: center; font: 600 20px/1 var(--serif); color: var(--gold); }

/* ---------- lekcja ---------- */
.lesson .lesson-top { padding-bottom: 6px; }
.combo { font-size: 12px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.combo.pop { animation: pop .4s; }
@keyframes pop { 50% { transform: scale(1.2); } }
.stage-line { display: flex; justify-content: space-between; align-items: center; padding: 0 18px 4px; }
.stage-name { font: 700 11px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--p); }
.stage-meta { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.lesson-body { flex: 1; padding: 8px 18px 30px; overflow-y: auto; }
.step.enter { animation: enter .3s ease; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.learn-title { font: 600 27px/1.15 var(--serif); margin: 6px 0 14px; }
.learn-card { font-size: 16px; line-height: 1.62; }
.learn-card p { margin: 0; }
.learn-points { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: lp; display: flex; flex-direction: column; gap: 8px; }
.learn-points li { counter-increment: lp; display: flex; gap: 10px; font-size: 15px; line-height: 1.5; }
.learn-points li::before { content: counter(lp); flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--p-tint); color: var(--gold); font: 800 11px/22px var(--sans); text-align: center; margin-top: 1px; }
.ex { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ex-row { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; }
.ex-ic { flex: 0 0 auto; font: 800 10px/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; width: 50px; }
.ex-bad { background: var(--no-t); } .ex-bad .ex-ic { color: var(--no); }
.ex-good { background: var(--ok-t); } .ex-good .ex-ic { color: var(--ok); }
.evidence { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: 12.5px; color: var(--muted); }
.evidence b { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.ev-sci b, .ev-mini.ev-sci { color: var(--ok); }
.ev-auth b, .ev-mini.ev-auth { color: var(--gold); }
.ev-prac b, .ev-mini.ev-prac { color: var(--violet-2); }
.ev-mini { font-weight: 700; }
.prompt { font: 600 23px/1.25 var(--serif); margin: 6px 0 14px; }
.prompt-sm { font-size: 20px; margin-top: 16px; }
.quote { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold-2); border-radius: 12px; padding: 14px 16px; font-size: 16px; margin-bottom: 8px; }
.quote .kicker { display: block; margin-bottom: 4px; }
.hint, .hint-line { color: var(--muted); font-size: 14px; }
.fine-note { color: var(--muted); font-size: 12.5px; margin-top: 10px; display: flex; gap: 6px; align-items: flex-start; }
.fine-note.center { justify-content: center; }
.setting { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 5px 10px; border-radius: 999px; background: var(--bg-2); margin-bottom: 12px; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; gap: 10px; align-items: flex-end; }
.msg-me { justify-content: flex-end; }
.ava { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--tone) 18%, var(--card)); color: var(--tone); font: 700 15px/1 var(--serif); border: 1.5px solid color-mix(in srgb, var(--tone) 45%, transparent); }
.msg-body { max-width: 82%; }
.who { font-size: 12px; font-weight: 800; margin: 0 0 3px 4px; }
.who span { color: var(--muted); font-weight: 600; }
.bubble-them { background: var(--card); border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; padding: 11px 14px; font-size: 15px; box-shadow: var(--shadow); }
.bubble-me { max-width: 85%; border-radius: 18px 4px 18px 18px; padding: 11px 14px; font-size: 15px; background: var(--navy); color: #F2EDE3; }
.bubble-me.ok { box-shadow: 0 0 0 2px var(--ok); }
.bubble-me.no { box-shadow: 0 0 0 2px var(--no); }
.style-tag { display: block; margin-top: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-3); }
.typing .txt { display: none; }
.dots { display: none; gap: 4px; padding: 4px 2px; }
.typing .dots { display: inline-flex; }
.dots i { width: 6px; height: 6px; 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% { opacity: .2; transform: translateY(-2px); } }
.build-line { min-height: 64px; border-bottom: 2px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0; margin: 10px 0 18px; }
.build-line.ok { border-color: var(--ok); } .build-line.no { border-color: var(--no); }
.build-bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tile-slot { min-width: 30px; min-height: 42px; border-radius: 10px; background: var(--bg-2); display: inline-flex; }
.tile { padding: 9px 13px; border-radius: 10px; background: var(--card); border: 1.5px solid var(--line-2); box-shadow: 0 2px 0 var(--line-2); font-weight: 600; font-size: 15px; }
.step-build.locked .tile { pointer-events: none; }
.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.mt { min-height: 58px; padding: 10px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); box-shadow: 0 2px 0 var(--line); font-size: 13.5px; font-weight: 600; transition: .15s; }
.mt.sel { border-color: var(--gold-2); background: var(--p-tint); }
.mt.done { opacity: .35; border-color: var(--ok); pointer-events: none; }
.mt.bad { border-color: var(--no); background: var(--no-t); animation: shake .3s; }
.practice-model { margin-top: 14px; background: var(--ok-t); border-radius: 14px; padding: 14px 16px; }
.tips { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.step-recap .recap-card { background: linear-gradient(160deg, var(--navy), #1B2440); color: #F2EDE3; border: 0; }
.recap-points { margin: 0; padding-left: 0; list-style: none; counter-reset: rc; display: flex; flex-direction: column; gap: 12px; }
.recap-points li { counter-increment: rc; display: flex; gap: 12px; font-size: 15.5px; }
.recap-points li::before { content: counter(rc); font: 600 22px/1 var(--serif); color: var(--gold-2); width: 16px; }
.recap-next { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(200,166,106,.3); }
.recap-next span { display: flex; align-items: center; gap: 6px; color: var(--gold-2); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.recap-next p { margin: 6px 0 0; font-weight: 600; }
.mission-card { background: var(--card); border-radius: 22px; padding: 22px 20px; border: 1.5px solid var(--gold-2); box-shadow: 0 10px 30px rgba(184,146,79,.18); }
.mission-card h2 { font: 600 26px/1.15 var(--serif); margin: 8px 0; }
.mission-card .kicker { color: var(--gold); }
.mission-task { font-size: 16px; }
.mission-steps { margin: 10px 0; padding-left: 20px; font-size: 14.5px; display: flex; flex-direction: column; gap: 4px; }
.mission-why { font-size: 13.5px; color: var(--muted); }
.btn-accept { width: 100%; margin-top: 10px; }
.retry-chip { display: inline-block; font-size: 12px; font-weight: 700; color: var(--soft); background: var(--soft-t); padding: 5px 10px; border-radius: 999px; margin-bottom: 10px; }
.lesson-foot.is-ok { background: var(--ok-t); } .lesson-foot.is-no { background: var(--no-t); } .lesson-foot.is-soft { background: var(--soft-t); }
.lesson-foot.foot-hidden .foot-row { display: none; }
.fb { margin-bottom: 10px; }
.fb-head { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.fb-ic { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--ok); font-weight: 800; }
.is-no .fb-ic { background: var(--no); } .is-soft .fb-ic { background: var(--soft); }
.is-ok .fb-head strong { color: var(--ok); } .is-no .fb-head strong { color: var(--no); } .is-soft .fb-head strong { color: var(--soft); }
.fb-correct { margin-top: 6px; font-size: 14px; }
.fb-correct span { font-weight: 800; }
.fb-why { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }

/* narzędzia w lekcji */
.step-tool .kicker { margin-bottom: 2px; }
.tool-intro { color: var(--ink-2); font-size: 15px; }
.tool-note { font-size: 13.5px; color: var(--muted); background: var(--p-tint); padding: 10px 12px; border-radius: 12px; }
.woop-steps { display: flex; gap: 8px; margin: 6px 0 4px; }
.ws { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 15px/1 var(--serif); background: var(--bg-2); color: var(--muted); }
.ws.on { background: var(--gold-2); color: #1A1306; }
.ws.done { background: var(--navy); color: var(--gold-3); }
.ifthen-card, .habit-recipe { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 16px 10px; margin-top: 10px; }
.it-key { font: 800 11px/1 var(--sans); letter-spacing: .2em; color: var(--gold); }
.ifthen-preview { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(160deg, var(--navy), #1B2440); color: #F2EDE3; }
.ifthen-preview .kicker { color: var(--gold-2); }
.ifthen-preview p { margin: 4px 0 0; font-size: 16px; }
.ifthen-preview b { color: var(--gold-3); }
.seg-min { margin: 12px 0; }
.timer-plan .btn-start { margin-top: 6px; }
.timer-run { text-align: center; }
.timer-task { font-weight: 700; font-size: 17px; margin: 8px 0 14px; }
.timer-done { text-align: center; padding: 14px 0; }
.timer-done h3 { font: 600 26px/1.2 var(--serif); margin: 10px 0 6px; }
.done-badge { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: var(--ok); color: #fff; }
.ring-timer { position: relative; width: 240px; height: 240px; margin: 10px auto; }
.ring-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rt-bg { fill: none; stroke: var(--bg-2); stroke-width: 8; }
.rt-fg { fill: none; stroke: var(--gold-2); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .3s linear; }
.rt-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rt-time { font: 600 58px/1 var(--serif); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.rt-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-top: 4px; }
.task-add { display: flex; gap: 8px; margin: 8px 0; }
.task-add .btn { min-height: 48px; width: 48px; padding: 0; flex: 0 0 auto; }
.task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.task-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.task-list .x { color: var(--muted); padding: 4px; }
.dump-list { display: flex; flex-direction: column; gap: 10px; }
.dump-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.abcde-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.abcde-legend b { color: var(--gold); }
.seg-abc { align-self: flex-start; }
.seg-abc button { width: 38px; padding: 7px 0; }

/* ---------- DZIŚ ---------- */
.today-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 2px 16px; }
.today-head h1 { margin: 4px 0 2px; }
.today-head .kicker { text-transform: uppercase; }
.goal-card { cursor: pointer; background: linear-gradient(160deg, var(--navy) 0%, #1A2442 100%); color: #F2EDE3; border: 0; position: relative; overflow: hidden; }
.goal-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1.5px solid rgba(200,166,106,.25); box-shadow: 0 0 0 26px rgba(200,166,106,.05); }
.goal-card .kicker { color: var(--gold-2); }
.goal-card b { display: block; font: 600 22px/1.2 var(--serif); margin: 6px 0 8px; position: relative; z-index: 1; }
.goal-card small { color: #B9B4AA; position: relative; z-index: 1; }
.goal-card .pbar { background: rgba(255,255,255,.1); }
.goal-card .pbar span { color: #E8DFC9; }
.lesson-card { border-top: 3px solid var(--p); }
.lesson-card h2 { font: 600 24px/1.2 var(--serif); margin: 6px 0 2px; }
.lesson-card .btn-lg { margin-top: 10px; }
.prog-switch { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.ps { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--muted); background: var(--bg-2); }
.ps small { font-weight: 600; letter-spacing: 0; }
.ps.on { color: var(--p); background: var(--p-tint); box-shadow: inset 0 0 0 1px var(--p); }
.frog-card { display: flex; gap: 14px; align-items: center; }
.fc-ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(18,110,115,.14); color: var(--teal); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.frog-card > div:nth-child(2) { flex: 1; min-width: 0; }
.frog-card b { display: block; font-size: 16px; }
.frog-card small { display: block; color: var(--muted); font-size: 13px; }
.challenge-card { cursor: pointer; border-left: 3px solid var(--copper); }
.challenge-card b { display: block; font-size: 16px; margin: 4px 0 2px; }
.challenge-card small { color: var(--muted); }
.habit-today { display: flex; flex-direction: column; gap: 8px; }
.ht { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: left; }
.ht-check { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: transparent; flex: 0 0 auto; transition: .2s; }
.ht.on .ht-check { background: var(--ok); border-color: var(--ok); color: #fff; }
.ht-body { flex: 1; display: flex; flex-direction: column; }
.ht-body small { color: var(--muted); font-size: 12.5px; }
.ht.on .ht-body b { text-decoration: line-through; text-decoration-color: var(--ok); }
.ht-warn { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.mission-strip, .upsell-strip, .install-strip { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.mission-strip > span, .upsell-strip > span { color: var(--gold); }
.mission-strip div, .upsell-strip div, .install-strip div { flex: 1; display: flex; flex-direction: column; }
.mission-strip small, .upsell-strip small, .install-strip small { color: var(--muted); font-size: 12.5px; }
.mission-strip em, .upsell-strip em, .install-strip em { font-style: normal; font-size: 22px; color: var(--muted); }
.upsell-strip { background: linear-gradient(135deg, rgba(200,166,106,.16), rgba(106,13,173,.08)); border-color: rgba(200,166,106,.4); }
.install-strip .glyph { color: var(--violet-2); }
.review-strip { cursor: pointer; border-left: 3px solid var(--gold-2); }
.review-strip b { display: block; margin-top: 4px; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 14px 6px; }
.mini-stats b { display: block; font: 600 26px/1 var(--serif); }
.mini-stats small { font-size: 11px; color: var(--muted); font-weight: 700; }

/* ---------- AKADEMIA ---------- */
.prog-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.pt { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); color: var(--muted); }
.pt b { font-size: 12.5px; letter-spacing: .12em; color: var(--ink); }
.pt small { font-size: 11px; font-weight: 700; }
.pt.on { border-color: var(--p); background: var(--p-tint); color: var(--p); }
.prog-hero { padding: 20px; border-radius: 22px; color: #F2EDE3; background: radial-gradient(400px 200px at 100% 0, color-mix(in srgb, var(--p) 30%, transparent), transparent 70%), linear-gradient(160deg, var(--p-deep), #0E1424); margin-bottom: 18px; box-shadow: var(--shadow); }
.prog-hero .kicker { color: var(--p); }
.prog-hero h1 { font-size: 27px; margin: 6px 0; color: #F6F1E7; }
.prog-hero .muted { color: #B9B4AA; font-style: italic; }
.ph-result { margin: 12px 0 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 14px; }
.ph-result span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--p); margin-bottom: 2px; }
.prog-hero .pbar { background: rgba(255,255,255,.12); }
.prog-hero .pbar i { background: var(--p); }
.prog-hero .pbar span { color: #E8DFC9; }
.week-sec { margin-bottom: 20px; }
.week-head { display: flex; justify-content: space-between; align-items: flex-start; margin: 0 2px 10px; }
.week-head small { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--p); }
.week-head h2 { font: 600 22px/1.2 var(--serif); margin: 3px 0; }
.week-head p { color: var(--muted); font-size: 13.5px; margin: 0; }
.days { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; }
.days::before { content: ''; position: absolute; left: 35px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.day button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px 8px 0; text-align: left; }
.d-num { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; font: 700 15px/1 var(--serif); background: var(--card); border: 1.5px solid var(--line-2); color: var(--muted); }
.d-body { flex: 1; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.d-body b { font-size: 14.5px; }
.d-body small { color: var(--muted); font-size: 11.5px; }
.d-end { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.d-end em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--p); }
.day.done .d-num { background: var(--p); border-color: var(--p); color: #fff; }
.day.cur .d-num { border-color: var(--p); color: var(--p); box-shadow: 0 0 0 5px var(--p-tint); }
.day.cur .d-body { border-color: var(--p); box-shadow: var(--shadow); }
.day.locked .d-body, .day.pay .d-body { opacity: .62; }
.day.pay .d-num { border-style: dashed; }
.path-end { text-align: center; color: var(--muted); padding: 10px 0 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; }
.lesson-sheet h3 { margin-top: 4px; }
.ls-method { display: flex; gap: 6px; align-items: center; color: var(--gold); font-size: 13.5px; font-weight: 700; }
.ls-meta { font-size: 12.5px; color: var(--muted); }
.locked-note { color: var(--muted); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.lesson-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.lesson-list li { display: flex; gap: 12px; align-items: flex-start; }
.lesson-list li > span { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); display: flex; align-items: center; justify-content: center; font: 700 13px/1 var(--serif); flex: 0 0 auto; }
.lesson-list li.done > span { background: var(--gold-2); color: #1A1306; }
.lesson-list small { display: block; color: var(--muted); }

/* ---------- ekrany po lekcji ---------- */
.finish, .center-screen { align-items: center; justify-content: center; text-align: center; padding: calc(30px + var(--safe-t)) 24px calc(30px + var(--safe-b)); gap: 8px; }
.finish h1 { font-size: 32px; margin: 8px 0; }
.finish p { color: var(--ink-2); max-width: 420px; }
.finish-hero { margin-bottom: 6px; animation: rise .6s ease; }
@keyframes rise { from { opacity: 0; transform: scale(.85); } }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 400px; margin: 12px 0; }
.tile-stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 6px; }
.tile-stat small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tile-stat b { font: 600 28px/1.2 var(--serif); color: var(--gold); }
.finish-mission { display: flex; gap: 8px; align-items: flex-start; text-align: left; background: var(--p-tint); padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.extras { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.extras span { padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--gold-2); font-size: 12.5px; font-weight: 700; }
.finish-foot { width: 100%; max-width: 420px; margin-top: 18px; }
.finish-foot.stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------- paywall ---------- */
.paywall { text-align: center; }
.paywall h3 { padding: 0; }
.plans-pw { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; text-align: left; }
.plan-pw { border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; }
.plan-pw > b { font: 600 22px/1 var(--serif); display: flex; align-items: center; gap: 8px; }
.plan-pw > b em { font: 800 10px/1 var(--sans); font-style: normal; letter-spacing: .1em; padding: 4px 8px; border-radius: 999px; background: var(--navy); color: var(--gold-3); }
.plan-pw ul { margin: 10px 0 12px; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.plan-pw .btn { width: 100%; }
.plan-pw.hl { border-color: var(--gold-2); box-shadow: 0 10px 30px rgba(184,146,79,.18); }
.fine { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------- profil ---------- */
.profile-head { display: flex; gap: 16px; align-items: center; margin: 6px 2px 18px; }
.profile-head > div:last-child { flex: 1; }
.profile-head h1 { font-size: 28px; }
.profile-head small { color: var(--muted); font-weight: 600; }
.avatar { width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--navy), #1B2440); color: var(--gold-3); font: 600 32px/1 var(--serif); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold-2); flex: 0 0 auto; }
.access, .cloud { display: flex; gap: 14px; align-items: center; }
.access > div, .cloud > div { flex: 1; display: flex; flex-direction: column; }
.access small, .cloud small { color: var(--muted); font-size: 12.5px; }
.cloud-ic { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--bg-2); color: var(--gold); flex: 0 0 auto; }
.access.ok { border-color: rgba(200,166,106,.5); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; }
.stat b { display: block; font: 600 24px/1.1 var(--serif); }
.stat small { font-size: 11px; color: var(--muted); font-weight: 700; }
.settings .set { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.settings .set > span small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.link-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 600; text-align: left; }
.link-row:last-child { border-bottom: 0; }
.link-row .glyph { color: var(--gold); }
.link-row.danger, .link-row.danger .glyph { color: var(--no); }
.about { margin-top: 18px; }
.foot-note { font-size: 12px; color: var(--muted); text-align: center; margin: 18px 10px; }
.brand-foot { text-align: center; color: var(--muted); font-size: 12px; padding: 8px 0 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.install-steps { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.seg-os { display: flex; margin: 10px auto 0; width: fit-content; }

/* ---------- logowanie ---------- */
.auth-brand { flex: 1; display: flex; justify-content: center; padding-right: 38px; }
.auth-body { flex: 1; padding: 10px 24px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.auth-body h1 { margin: 12px 0 6px; }
.auth-body .form { width: 100%; max-width: 380px; text-align: left; margin-top: 10px; }
.auth-body .form .btn { margin-top: 16px; }
.pass { position: relative; display: block; }
.eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: var(--muted); }
.switch-auth { color: var(--muted); font-size: 14px; }

/* ---------- DZIAŁAJ ---------- */
.hero-action { background: linear-gradient(160deg, #15191E, #1D2730); color: #F4F1EB; border: 0; box-shadow: 0 14px 40px rgba(18,110,115,.18); }
.hero-action .kicker { color: var(--copper); font-size: 12px; }
.ha-row { display: flex; gap: 8px; margin: 10px 0 6px; }
.ha-row .field { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #F4F1EB; }
.ha-row .field::placeholder { color: #8E959E; }
.ha-row .btn { flex: 0 0 auto; }
.hero-action .muted { color: #9AA3AC; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 6px; }
.tool-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: left; box-shadow: var(--shadow); }
.tool-tile .glyph { color: var(--copper); margin-bottom: 4px; }
.tool-tile b { font-size: 14.5px; }
.tool-tile small { font-size: 12px; color: var(--muted); }
.task-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.task-row:last-child { border-bottom: 0; }
.prio { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font: 700 14px/1 var(--serif); background: var(--bg-2); color: var(--muted); flex: 0 0 auto; }
.prio.p-A { background: var(--navy); color: var(--gold-3); }
.prio.p-B { background: var(--p-tint); color: var(--gold); }
.tr-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tr-body small { color: var(--muted); font-size: 12.5px; }
.tr-frog { color: var(--teal); }
.mission-item .mi-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mission-item h3 { font: 600 21px/1.2 var(--serif); margin: 8px 0 4px; }
.due { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.due.late { color: var(--soft); }
.done-list summary { padding: 12px 16px; font-weight: 700; cursor: pointer; }
.done-item { padding: 10px 16px; border-top: 1px solid var(--line); }
.done-item small { display: block; color: var(--muted); }
.done-item p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.ratings { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.ratings button { flex: 1 1 auto; padding: 9px 10px; border-radius: 12px; background: var(--bg-2); font-size: 13px; font-weight: 700; }
.ratings button.sel { background: var(--gold-2); color: #1A1306; }
.ratings-3 button { flex-basis: 100%; }
.flow-body { padding-top: 6px; }
.flow-h1 { margin: 6px 0 10px; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 10px; margin: 12px 0; }
.time-opt { padding: 16px 0; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.time-opt b { font: 600 32px/1 var(--serif); }
.time-opt small { font-size: 11px; color: var(--muted); font-weight: 700; }
.time-opt.sel { border-color: var(--gold-2); background: var(--p-tint); }
.tip-card { background: var(--card-2); }
.tip-card p { margin: 4px 0 0; }
.mission-run { text-align: center; padding-top: 8vh; }
.mission-run h2 { font: 600 28px/1.2 var(--serif); margin: 10px 0 4px; }
.after-action { text-align: center; padding-top: 4vh; display: flex; flex-direction: column; align-items: center; }
.after-action h1 { font-size: 36px; margin: 14px 0 6px; }
.after-action .stack { width: 100%; }
.plain { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.dump-area { min-height: 220px; }
.dump-title { font: 600 26px/1.2 var(--serif); margin: 6px 0 4px; }
.focus-dark { background: #07090F; color: #EDE7DC; }
.focus-dark .lesson-top { background: #07090F; }
.focus-dark .rt-bg { stroke: #1A1F2C; }
.focus-dark .muted, .focus-dark .rt-label { color: #8A90A0; }
.focus-dark .btn-ghost { color: #EDE7DC; box-shadow: inset 0 0 0 1.5px #2A3142; }

/* ---------- CELE ---------- */
.goal-empty { text-align: center; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; }
.goal-empty h2 { font: 600 24px/1.2 var(--serif); margin: 12px 0 6px; }
.goal-map { background: linear-gradient(170deg, var(--navy), #18213B 60%, #1F1A35); color: #F2EDE3; border-radius: 24px; padding: 20px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.goal-map::before { content: ''; position: absolute; width: 340px; height: 340px; right: -140px; top: -140px; border-radius: 50%; border: 1px solid rgba(200,166,106,.18); box-shadow: 0 0 0 40px rgba(200,166,106,.04), 0 0 0 80px rgba(106,13,173,.06); }
.gm-core { display: flex; gap: 16px; align-items: center; position: relative; }
.gm-core .ring-bg { stroke: rgba(255,255,255,.1); }
.gm-core .ring > span { color: var(--gold-3); font-size: 18px; }
.gm-core h2 { font: 600 23px/1.2 var(--serif); margin: 4px 0; }
.gm-core .kicker { color: var(--gold-2); }
.gm-meta { font-size: 12.5px; color: #B9B4AA; margin: 0; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.gm-why { margin: 14px 0 0; font-size: 14px; color: #D8D1C3; position: relative; }
.gm-why span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.stages { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.stages::before { content: ''; position: absolute; left: 17px; top: 14px; bottom: 14px; width: 1.5px; background: linear-gradient(var(--gold-2), rgba(200,166,106,.15)); }
.stage { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; position: relative; }
.st-dot { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; background: #121A30; border: 1.5px solid rgba(200,166,106,.5); color: var(--gold-2); font: 700 13px/1 var(--serif); z-index: 1; }
.stage.done .st-dot { background: var(--gold-2); color: #1A1306; border-color: var(--gold-2); }
.stage.next .st-dot { box-shadow: 0 0 0 5px rgba(200,166,106,.18); }
.st-body { display: flex; flex-direction: column; padding-top: 2px; }
.st-body small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #9C978C; font-weight: 800; }
.st-body b { font-size: 15px; }
.st-body em { font-style: normal; font-size: 12px; color: var(--gold-3); }
.stage.done .st-body b { color: #CFC8BA; }
.gm-first { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; position: relative; }
.gm-first span { grid-column: 1; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.gm-first b { grid-column: 1; font-size: 14.5px; }
.gm-first .btn { grid-column: 2; grid-row: 1 / 3; }
.goal-map .btn-ghost { color: #F2EDE3; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.2); }
.plans { display: flex; flex-direction: column; gap: 8px; }
.plan-card { cursor: pointer; border-left: 3px solid var(--gold-2); }
.plan-card.woop { border-left-color: var(--violet-2); }
.plan-card b { display: block; margin-top: 4px; }
.plan-card small { display: block; color: var(--muted); }
.plan-card p { margin: 6px 0 0; font-size: 14.5px; }
.habit-card .hc-top { display: flex; gap: 12px; align-items: center; }
.hc-check { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: transparent; flex: 0 0 auto; transition: .2s; }
.hc-check.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.hc-body { flex: 1; display: flex; flex-direction: column; }
.hc-body small { color: var(--muted); font-size: 12.5px; }
.hc-grid { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin: 12px 0 6px; }
.hc-grid i { aspect-ratio: 1; border-radius: 5px; background: var(--bg-2); }
.hc-grid i.on { background: var(--ok); }
.hc-grid i.pre { background: transparent; border: 1px dashed var(--line); }
.hc-grid i.today { box-shadow: 0 0 0 1.5px var(--gold-2); }
.hc-stats { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }
.never-twice { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--soft); background: var(--soft-t); padding: 8px 10px; border-radius: 10px; margin: 10px 0 0; }

/* ---------- POSTĘPY ---------- */
.momentum-card { display: flex; gap: 16px; align-items: center; }
.momentum-card p { font-size: 13.5px; color: var(--ink-2); margin: 4px 0; }
.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tri { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 8px; text-align: center; }
.tri span { color: var(--muted); }
.tri b { display: block; font: 600 30px/1.1 var(--serif); }
.tri small { font-size: 10.5px; color: var(--muted); font-weight: 700; line-height: 1.3; display: block; }
.tri.gold { border-color: var(--gold-2); background: linear-gradient(160deg, var(--card), var(--p-tint)); }
.tri.gold span, .tri.gold b { color: var(--gold); }
.quest { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.quest:last-child { border-bottom: 0; }
.q-ic { width: 36px; height: 36px; border-radius: 12px; background: var(--bg-2); color: var(--gold); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.q-body { flex: 1; }
.q-body b { font-size: 14px; }
.q-st { color: var(--ok); width: 20px; }
.quest.done .q-ic { background: var(--ok-t); color: var(--ok); }
.review-card.highlight { border-color: var(--gold-2); box-shadow: 0 10px 30px rgba(184,146,79,.2); }
.review-card.locked { background: linear-gradient(160deg, var(--card), var(--p-tint)); }
.rv-lead { font-size: 15.5px; margin: 8px 0 12px; }
.rv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.rv-stats div { background: var(--bg-2); border-radius: 12px; padding: 8px; text-align: center; }
.rv-stats b { display: block; font: 600 22px/1.1 var(--serif); }
.rv-stats small { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.patterns .pt-row { margin-top: 10px; }
.pt-top { display: flex; justify-content: space-between; font-size: 14px; }
.pt-top span { color: var(--gold); font-weight: 800; }
.patterns.locked { opacity: .85; }
.prog-row { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.prog-row:last-child { border-bottom: 0; }
.prog-row > div { flex: 1; }
.prog-row b { letter-spacing: .1em; font-size: 13.5px; }
.prog-row small { margin-left: 8px; color: var(--muted); font-size: 12px; }
.prog-row .pbar i { background: var(--p); }
.pr-ic { width: 36px; height: 36px; border-radius: 12px; background: var(--p-tint); color: var(--p); display: flex; align-items: center; justify-content: center; }
.trans-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.trans-head small { display: block; color: var(--muted); font-size: 12px; }
.trans-avg { font: 600 22px/1 var(--serif); color: var(--muted); }
.trans-avg b { color: var(--gold); }
.tr-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.tr-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.tr-body { flex: 1; }
.tr-body small { font-size: 12.5px; color: var(--ink-2); }
.tr-bar { position: relative; height: 6px; background: var(--bg-2); border-radius: 999px; margin-top: 4px; }
.tr-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.tr-bar .v0 { background: var(--line-2); }
.tr-bar .v1 { background: var(--gold-2); opacity: .9; }
.tr-d { width: 28px; text-align: right; font: 600 17px/1 var(--serif); }
.tr-d.up { color: var(--ok); } .tr-d.down { color: var(--no); }
.trans .btn { margin-top: 10px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; margin: 4px 0 8px; }
.wd span { display: block; font-size: 11px; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.wd i { display: block; height: 34px; border-radius: 10px; background: var(--bg-2); }
.wd.on i { background: color-mix(in srgb, var(--gold-2) 55%, var(--bg-2)); }
.wd.doing i { background: var(--gold-2); }
.wd.today span { color: var(--gold); }
.wd.today i { box-shadow: 0 0 0 2px var(--gold-2); }
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.badge { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; }
.b-ic { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--bg-2); color: var(--muted); margin-bottom: 4px; }
.badge b { font-size: 14px; }
.badge small { font-size: 12px; color: var(--muted); }
.badge:not(.got) { opacity: .75; }
.badge.got { border-color: var(--gold-2); }
.badge.got .b-ic { background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); color: #1A1306; }
.journal { display: flex; flex-direction: column; gap: 8px; }
.note summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; list-style: none; }
.note summary::-webkit-details-marker { display: none; }
.note-q { font-size: 12.5px; color: var(--muted); margin: 10px 0 2px; }
.note-a { white-space: pre-wrap; margin: 0; }

/* ---------- MENTOR ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: left; box-shadow: var(--shadow); }
.quick .glyph { color: var(--gold); }
.quick b { font-size: 14px; }
.chat-log { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow-y: auto; padding: 4px 0 10px; }
.cm { display: flex; gap: 8px; align-items: flex-start; }
.cm-me { justify-content: flex-end; }
.cm-b { max-width: 84%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.cm-ai .cm-b { background: var(--card-2); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; }
.cm-me .cm-b { background: var(--navy); color: #F2EDE3; border-radius: 16px 4px 16px 16px; }
.cm.typing .dots { display: inline-flex; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; }
.chat-form .btn { flex: 0 0 auto; }
.vip-card { background: linear-gradient(160deg, var(--navy), #1F1A35); color: #F2EDE3; border: 0; }
.vip-card h3 { font: 600 24px/1.2 var(--serif); margin: 4px 0; }
.vip-card p { color: #CFC8BA; }

@media (max-width: 360px) {
  h1 { font-size: 26px; }
  .wordmark { font-size: 52px; }
  .tool-grid, .quick-grid, .badges { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
