/* ===== Prototyp aplikacji (wnętrze telefonu) ===== */
.status-bar { position: absolute; top: 0; left: 0; right: 0; height: 50px; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px; color: var(--bone); pointer-events: none; background: linear-gradient(var(--ink) 80%, rgba(18,20,18,0)); }
.sb-time { font-family: var(--f-body); font-weight: 700; font-size: 15px; letter-spacing: .01em; }
.sb-island { position: absolute; left: 50%; top: 11px; width: 108px; height: 31px; margin-left: -54px; background: #000; border-radius: 20px; }
.sb-icons { display: flex; gap: 5px; align-items: center; }
.sb-icons svg { height: 11.5px; width: auto; fill: currentColor; }
.home-ind { position: absolute; bottom: 8px; left: 50%; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--bone); opacity: .85; z-index: 40; pointer-events: none; }

.app { position: absolute; inset: 0; font-size: 15px; line-height: 1.45; color: var(--bone); }
.app .ic { width: 18px; height: 18px; }
.view { position: absolute; inset: 0; }
.scr { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 54px 0 34px; scrollbar-width: none; overscroll-behavior: contain; display: flex; flex-direction: column; }
.scr::-webkit-scrollbar { display: none; }
.has-tabs .scr { padding-bottom: 100px; }
.scr.enter { animation: scrIn .32s cubic-bezier(.2,.8,.2,1); }
.scr.enter-back { animation: scrBack .32s cubic-bezier(.2,.8,.2,1); }
@keyframes scrIn { from { opacity: 0; transform: translateX(18px); } }
@keyframes scrBack { from { opacity: 0; transform: translateX(-18px); } }
.pad { padding: 8px 18px 0; }
.mono { font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; letter-spacing: -.01em; }
.dim { color: var(--muted); }
.app :focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* przyciski w aplikacji */
.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 16px; border: 0; font-weight: 750; font-size: 16px; cursor: pointer; transition: transform .12s ease, background-color .2s, opacity .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.a-btn:active:not(:disabled) { transform: scale(.97); }
.a-btn:disabled { cursor: not-allowed; opacity: .38; }
.a-btn-block { width: 100%; }
.a-btn-lime { background: var(--lime); color: var(--ink); }
.a-btn-lime:hover:not(:disabled) { background: #d4f86f; }
.a-btn-ink { background: var(--ink); color: var(--lime); }
.a-btn-ink:hover { background: #000; }
.a-btn-ghost { background: var(--graphite-2); color: var(--bone); }
.a-btn-ghost:hover:not(:disabled) { background: #30352e; }
.a-btn-text { background: transparent; color: var(--muted); min-height: 46px; }
.a-btn-text:hover { color: var(--bone); }
.a-btn-danger { background: var(--ember); color: var(--ink); }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--graphite); color: var(--bone); display: grid; place-items: center; cursor: pointer; flex: none; transition: background-color .15s, transform .12s; }
.icon-btn:hover { background: var(--graphite-2); }
.icon-btn:active { transform: scale(.93); }
.link-sm { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--lime); font-weight: 700; font-size: 13.5px; cursor: pointer; padding: 6px 2px; }
.link-sm .ic { width: 15px; height: 15px; }
.tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--graphite-2); color: var(--muted); margin-right: 8px; letter-spacing: .01em; }
.tag-lime { background: rgba(198,242,78,.14); color: var(--lime); }

/* tab bar */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 10px 26px; background: rgba(22,25,21,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid rgba(46,50,44,.8); }
.tabbar[hidden] { display: none; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; color: #8e9488; font-size: 11px; font-weight: 700; padding: 4px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .2s; }
.tab .ic { width: 40px; height: 28px; padding: 4px 11px; border-radius: 99px; transition: background-color .25s, color .2s; }
.tab:hover { color: var(--bone); }
.tab.is-on { color: var(--bone); }
.tab.is-on .ic { background: var(--lime); color: var(--ink); }
.tab:active .ic { transform: scale(.92); }

/* welcome */
.welcome { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; position: relative; padding: 0 22px 8px; }
.wl-art { position: absolute; top: 10px; left: 0; right: 0; height: 52%; display: grid; place-items: center; }
.wl-art .fig { width: 92%; height: auto; position: relative; z-index: 1; }
.wl-ring { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed var(--line); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.wl-ring::after { content: ''; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(198,242,78,.12), transparent 70%); }
.wl-copy { position: relative; z-index: 2; }
.wl-brand { display: flex; align-items: center; gap: 8px; color: var(--lime); font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.wl-logo { width: 26px; height: 26px; }
.wl-title { font-size: 54px; line-height: .9; font-stretch: 70%; font-weight: 850; margin-bottom: 14px; }
.wl-sub { color: #c5c9bd; margin-bottom: 22px; font-size: 15.5px; max-width: 300px; }

/* ankieta */
.q-head { display: flex; align-items: center; gap: 12px; padding: 6px 18px 10px; }
.q-prog { flex: 1; height: 6px; border-radius: 3px; background: var(--graphite-2); overflow: hidden; }
.q-prog span { display: block; height: 100%; background: var(--lime); border-radius: 3px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.q-step { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); min-width: 26px; text-align: right; }
.q-body { padding: 14px 18px 12px; flex: 1; }
.q-kicker { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--lime); margin-bottom: 8px; }
.q-title { font-size: 31px; line-height: 1; font-stretch: 75%; font-weight: 800; }
.q-sub { color: var(--muted); margin: 10px 0 20px; font-size: 14.5px; }
.q-foot { position: sticky; bottom: -34px; padding: 14px 18px 34px; margin-bottom: -34px; margin-top: auto; background: linear-gradient(rgba(18,20,18,0), var(--ink) 30%); z-index: 3; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--graphite); cursor: pointer; transition: border-color .2s, background-color .2s, transform .12s; -webkit-tap-highlight-color: transparent; }
.opt:hover { border-color: #4a5046; }
.opt:active { transform: scale(.985); }
.opt.is-on { border-color: var(--lime); background: rgba(198,242,78,.07); }
.opt-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--graphite-2); display: grid; place-items: center; color: var(--lime); flex: none; transition: background-color .2s, color .2s; }
.opt.is-on .opt-ic { background: var(--lime); color: var(--ink); }
.opt-lvl { display: flex; align-items: flex-end; gap: 3px; width: 40px; height: 40px; justify-content: center; padding-bottom: 10px; flex: none; border-radius: 12px; background: var(--graphite-2); }
.opt-lvl i { width: 6px; border-radius: 2px; background: #454a42; }
.opt-lvl i:nth-child(1) { height: 8px; } .opt-lvl i:nth-child(2) { height: 14px; } .opt-lvl i:nth-child(3) { height: 20px; }
.opt-lvl i.on { background: var(--lime); }
.opt-t { flex: 1; min-width: 0; }
.opt-t b { display: block; font-size: 15px; line-height: 1.25; }
.opt-t small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.opt-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #4a5046; display: grid; place-items: center; flex: none; transition: all .2s; }
.opt-check .ic { width: 14px; height: 14px; opacity: 0; stroke-width: 3; }
.opt.is-on .opt-check { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.opt.is-on .opt-check .ic { opacity: 1; }
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.day-n { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 12px 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--graphite); cursor: pointer; text-align: left; transition: border-color .2s, background-color .2s; }
.day-n b { font-family: var(--f-display); font-stretch: 70%; font-weight: 800; font-size: 38px; line-height: 1; }
.day-n small { font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.day-n.is-on { border-color: var(--lime); background: rgba(198,242,78,.07); }
.day-n.is-on b { color: var(--lime); }
.q-label { font-weight: 700; font-size: 14px; margin: 22px 0 10px; }
.wd-pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.wd { aspect-ratio: 1; border-radius: 12px; border: 1.5px solid var(--line); background: var(--graphite); font-weight: 700; font-size: 13px; cursor: pointer; padding: 0; transition: all .18s; }
.wd:disabled { opacity: .35; cursor: not-allowed; }
.wd.is-on { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.wd:active:not(:disabled) { transform: scale(.92); }
.q-hint { font-size: 13px; color: var(--muted); margin-top: 10px; min-height: 20px; }
.q-hint.warn { color: var(--ember); }

/* generowanie */
.gen { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 28px 60px; }
.gen-loader svg { width: 150px; margin-bottom: 26px; }
.gen-wave { fill: none; stroke: var(--lime); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: wave 1.4s ease-in-out infinite; }
@keyframes wave { 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -200; } }
.gen-title { font-size: 32px; font-stretch: 75%; margin-bottom: 20px; }
.gen-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gen-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); opacity: .35; transition: opacity .3s, color .3s; font-size: 14.5px; }
.gen-steps li .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--graphite-2); stroke-width: 3; transition: background-color .3s, color .3s; }
.gen-steps li.on { opacity: 1; color: var(--bone); }
.gen-steps li.on .ic { background: var(--lime); color: var(--ink); }

/* plan */
.plan-top { margin: 6px 0 16px; }
.plan-top .q-sub { margin-bottom: 0; }
.phases { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.phases li { padding: 9px 8px 8px; border-top: 3px solid var(--graphite-2); }
.phases li.on { border-color: var(--lime); }
.phases b { display: block; font-size: 12.5px; }
.phases span { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.pw { background: var(--graphite); border-radius: 18px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); }
.pw header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pw-key { width: 38px; height: 38px; border-radius: 11px; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-family: var(--f-display); font-stretch: 75%; font-weight: 850; font-size: 17px; flex: none; }
.pw header div { flex: 1; min-width: 0; }
.pw h3 { font-size: 18px; font-stretch: 85%; }
.pw header p { font-size: 12.5px; color: var(--muted); }
.pw-day { font-family: var(--f-mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 2px 7px; }
.pw ul { list-style: none; margin: 0; padding: 0; }
.pw li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.pw li .mono { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.pw em, .lx-t em { font-style: normal; color: var(--ember); }
.note { display: flex; gap: 10px; font-size: 13px; color: var(--muted); padding: 12px 2px 4px; }
.note .ic { color: var(--ember); margin-top: 1px; }

/* ekran główny */
.home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 4px 0 16px; }
.h-greet { font-size: 32px; font-stretch: 75%; margin-top: 4px; }
.lvl-chip { position: relative; width: 46px; height: 46px; border: 0; padding: 0; background: none; cursor: pointer; flex: none; border-radius: 50%; }
.lvl-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lvl-ring circle { fill: none; stroke: var(--graphite-2); stroke-width: 3.5; }
.lvl-ring circle.on { stroke: var(--lime); stroke-linecap: round; transition: stroke-dasharray .8s; }
.lvl-n { position: absolute; inset: 5px; border-radius: 50%; background: var(--graphite); display: grid; place-items: center; font-family: var(--f-display); font-stretch: 75%; font-weight: 850; font-size: 19px; }
.today { background: var(--lime); color: var(--ink); border-radius: 22px; padding: 16px 16px 14px; position: relative; overflow: hidden; }
.today::after { content: ''; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; border: 22px solid rgba(18,20,18,.06); pointer-events: none; }
.td-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.td-kick { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.td-kick .ic { width: 14px; height: 14px; stroke-width: 3; }
.td-mins { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; }
.td-mins .ic { width: 15px; height: 15px; }
.td-title { font-size: 30px; font-stretch: 72%; font-weight: 850; margin: 8px 0 10px; line-height: .95; }
.td-list { list-style: none; margin: 0 0 14px; padding: 0; }
.td-list li { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 600; padding: 5px 0; border-top: 1px solid rgba(18,20,18,.14); }
.td-list .mono { font-size: 11.5px; opacity: .75; }
.today .a-btn { min-height: 50px; border-radius: 14px; }
.today .a-btn .ic { fill: currentColor; stroke: none; }
.today-done { background: var(--graphite); color: var(--bone); border: 1px solid var(--line); }
.today-done .td-kick { color: var(--lime); }
.today-done::after { border-color: rgba(198,242,78,.05); }
.td-next { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.td-next b { color: var(--bone); }
.td-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.td-stats b { display: block; font-family: var(--f-display); font-stretch: 75%; font-size: 24px; line-height: 1; }
.td-stats span { font-size: 11.5px; color: var(--muted); }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 14px 0; }
.wk { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.wk-d { font-size: 11px; color: var(--muted); font-weight: 700; }
.wk-c { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: transparent; color: #7d8378; }
.wk-c .ic { width: 16px; height: 16px; stroke-width: 3; }
.wk-done .wk-c { background: var(--lime); color: var(--ink); }
.wk-today .wk-c { box-shadow: inset 0 0 0 2px var(--lime); color: var(--bone); }
.wk-planned .wk-c { box-shadow: inset 0 0 0 1.5px #4a5046; color: var(--bone); }
.wk.is-today .wk-d { color: var(--lime); }
.wk-done.is-today .wk-c { animation: pop .5s cubic-bezier(.2,.9,.3,1.4); }

.card { background: var(--graphite); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; margin-bottom: 10px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.card-k { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.big-num { font-family: var(--f-display); font-stretch: 70%; font-weight: 850; font-size: 50px; line-height: .9; color: var(--bone); }
.setka-num { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.setka-num span { color: var(--muted); font-size: 14px; }
.setka-bar { position: relative; height: 10px; border-radius: 5px; background: var(--graphite-2); }
.setka-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--lime); border-radius: 5px; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.setka-bar i { position: absolute; top: -3px; width: 2px; height: 16px; margin-left: -1px; background: #4a5046; border-radius: 1px; }
.setka-bar i.on { background: var(--ink); }
.setka-next { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.9; }
.setka-next b { color: var(--bone); }
.xp-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.xp-badge { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,122,61,.15); color: var(--ember); display: grid; place-items: center; flex: none; }
.xp-t b { display: block; font-size: 14.5px; }
.xp-t .mono { color: var(--muted); }
.xp-bar { height: 8px; border-radius: 4px; background: var(--graphite-2); overflow: hidden; }
.xp-bar span { display: block; height: 100%; background: var(--ember); border-radius: 4px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.sec-h { font-family: var(--f-body); font-size: 16px; font-weight: 800; letter-spacing: -.01em; font-stretch: 100%; }
.missions { margin-top: 18px; }
.missions ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ms { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; background: var(--graphite); border: 1px solid var(--line); }
.ms-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--graphite-2); color: var(--muted); display: grid; place-items: center; flex: none; }
.ms-ok .ms-ic { background: var(--lime); color: var(--ink); }
.ms-ok .ms-ic .ic { stroke-width: 3; }
.ms-t { flex: 1; min-width: 0; }
.ms-t b { display: block; font-size: 13.5px; line-height: 1.3; margin-bottom: 6px; }
.ms-bar { height: 4px; border-radius: 2px; background: var(--graphite-2); overflow: hidden; }
.ms-bar span { display: block; height: 100%; background: var(--lime); border-radius: 2px; transition: width .8s; }
.ms-xp { font-family: var(--f-mono); font-size: 11px; color: var(--ember); white-space: nowrap; }
.ms-ok .ms-xp { color: var(--lime); }

/* biblioteka */
.scr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 4px 0 14px; }
.h-scr { font-size: 32px; font-stretch: 75%; }
.search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--graphite); border: 1.5px solid var(--line); color: var(--muted); transition: border-color .2s; }
.search:focus-within { border-color: var(--lime); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--bone); font: inherit; font-size: 15px; }
.search input::placeholder { color: #8a9085; }
.chips { display: flex; gap: 6px; overflow-x: auto; margin: 12px -18px 12px; padding: 0 18px 2px; scrollbar-width: none; scroll-behavior: smooth; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 13px; border-radius: 99px; border: 1.5px solid var(--line); background: transparent; color: #cfd2c7; font-weight: 700; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all .18s; }
.chip span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); font-weight: 500; }
.chip:hover { border-color: #4a5046; }
.chip.is-on { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.chip.is-on span { color: var(--ink-soft); }
.ex-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ex-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 8px 10px 8px 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--graphite); cursor: pointer; transition: background-color .15s, transform .12s; }
.ex-row:hover { background: var(--graphite-2); }
.ex-row:active { transform: scale(.985); }
.ex-thumb { width: 74px; height: 58px; border-radius: 11px; background: var(--ink); flex: none; overflow: hidden; }
.ex-thumb svg { width: 100%; height: 100%; }
.ex-info { flex: 1; min-width: 0; }
.ex-info b { display: block; font-size: 14px; line-height: 1.25; }
.ex-info small { display: block; color: var(--muted); font-size: 12px; margin: 2px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-go { color: #6b7166; }
.empty { color: var(--muted); padding: 30px 10px; text-align: center; font-size: 14px; }

.ex-detail { margin-top: -54px; }
.exd-stage { position: relative; background: radial-gradient(120% 90% at 50% 100%, #222720, var(--ink)); padding: 60px 10px 6px; border-bottom: 1px solid var(--line); }
.icon-btn-float { position: absolute; left: 14px; top: 56px; z-index: 2; background: rgba(28,31,27,.9); }
.fig-big { width: 100%; height: auto; }
.exd-legend { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); justify-content: flex-end; padding: 0 8px 6px; }
.exd-legend i { width: 14px; height: 4px; border-radius: 2px; background: var(--lime); }
.exd-body { padding-top: 16px; }
.exd-title { font-size: 30px; font-stretch: 75%; margin-bottom: 14px; }
.exd-meta { display: grid; gap: 8px; margin: 0 0 14px; }
.exd-meta div { display: grid; grid-template-columns: 74px 1fr; gap: 8px; font-size: 13.5px; }
.exd-meta dt { color: var(--muted); }
.exd-meta dd { margin: 0; }
.exd-last { display: flex; align-items: center; gap: 8px; font-size: 13.5px; background: var(--graphite); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 16px; color: var(--muted); }
.exd-last b { color: var(--bone); }
.exd-last .ic { color: var(--lime); }
.tips { margin: 10px 0 18px; padding: 0; list-style: none; counter-reset: tip; display: grid; gap: 10px; }
.tips li { counter-increment: tip; display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 14px; line-height: 1.45; }
.tips li::before { content: counter(tip); width: 24px; height: 24px; border-radius: 8px; background: var(--graphite-2); color: var(--lime); font-family: var(--f-mono); font-size: 12px; display: grid; place-items: center; }
.tips-sm { margin: 4px 0 6px; }
.tips-sm li { font-size: 13px; }
.mistakes { list-style: none; margin: 10px 0 20px; padding: 0; display: grid; gap: 8px; }
.mistakes li { display: flex; gap: 10px; font-size: 14px; }
.mistakes .ic { color: var(--ember); width: 16px; height: 16px; margin-top: 2px; stroke-width: 2.6; }
.exd-in { display: flex; align-items: center; gap: 8px; color: var(--lime); font-weight: 700; font-size: 14px; padding: 6px 0 10px; }

/* sylwetki */
.fig .fig-ground { stroke: #343932; stroke-width: 1.5; }
.fig .fig-stat { fill: #3b4038; stroke: #3b4038; }
.fig path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 6.5; }
.fig .fig-body { stroke: var(--bone); }
.fig .fig-focus { stroke: var(--lime); }
.fig .fig-torso { stroke-width: 9; }
.fig .fig-head { fill: var(--bone); }
.fig .fig-far path { stroke: #676d62; }
.fig .fig-eq { fill: var(--ember); stroke: var(--ember); }
.fig .fig-cable { stroke: #8a8f85; }
.fig .fig-hole { fill: var(--ink); stroke: none; }
.fig .fig-stat path { stroke: #3b4038; }

/* trening na żywo */
.scr-live { padding-bottom: 0; }
.live-head { position: sticky; top: -4px; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 6px 18px 10px; background: var(--ink); }
.lh-t { flex: 1; min-width: 0; }
.lh-t b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-t .mono { color: var(--lime); font-size: 13px; }
.lh-count { background: var(--graphite); border-radius: 10px; padding: 6px 9px; }
.live-prog { height: 3px; background: var(--graphite-2); margin: 0 18px 8px; border-radius: 2px; overflow: hidden; position: sticky; top: 52px; z-index: 5; }
.live-prog span { display: block; height: 100%; background: var(--lime); transition: width .4s; }
.live-list { padding-bottom: 130px; }
.lx { border: 1px solid var(--line); background: var(--graphite); border-radius: 18px; margin-bottom: 8px; overflow: hidden; transition: border-color .25s; }
.lx.is-open { border-color: #4a5046; }
.lx-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border: 0; background: none; text-align: left; cursor: pointer; }
.lx-thumb { width: 54px; height: 42px; border-radius: 9px; background: var(--ink); flex: none; overflow: hidden; }
.lx-thumb svg { width: 100%; height: 100%; }
.lx-t { flex: 1; min-width: 0; }
.lx-t b { display: block; font-size: 14px; line-height: 1.25; }
.lx-t small { color: var(--muted); font-size: 12px; }
.lx-st { min-width: 34px; height: 26px; border-radius: 99px; background: var(--graphite-2); font-family: var(--f-mono); font-size: 11.5px; display: grid; place-items: center; padding: 0 6px; color: var(--muted); transition: background-color .25s, color .25s; }
.lx-st .ic { width: 15px; height: 15px; stroke-width: 3; }
.lx.is-complete .lx-st { background: var(--lime); color: var(--ink); animation: pop .45s cubic-bezier(.2,.9,.3,1.4); }
.lx.is-complete:not(.is-open) .lx-t b { color: var(--muted); }
.lx-body { padding: 2px 12px 10px; }
.lx-last { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.lx-last b { color: var(--bone); }
.lx-last .up { color: var(--lime); display: inline-flex; align-items: center; gap: 2px; font-weight: 700; }
.lx-last .up .ic { width: 13px; height: 13px; stroke-width: 3; }
.set-head, .set { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.set-head.set-1, .set.set-1 { grid-template-columns: 20px minmax(0, 1fr) 40px; }
.set-head { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 0 0 6px; }
.set { padding: 5px 0; border-top: 1px solid var(--line); transition: opacity .2s; }
.set-n { font-family: var(--f-mono); font-size: 13px; color: var(--muted); text-align: center; }
.stp { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; align-items: center; height: 40px; background: var(--ink); border-radius: 11px; }
.stp-b { width: 30px; height: 40px; border: 0; background: none; color: var(--bone); display: grid; place-items: center; cursor: pointer; border-radius: 10px; transition: background-color .12s, color .12s; -webkit-tap-highlight-color: transparent; }
.stp-b .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.stp-b:hover { background: var(--graphite-2); }
.stp-b:active { background: var(--lime); color: var(--ink); }
.stp-v { text-align: center; line-height: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stp-v b { font-family: var(--f-mono); font-size: 15px; font-weight: 700; }
.stp-v small { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stp-v.bump b { animation: bump .25s ease; }
@keyframes bump { 40% { transform: scale(1.18); color: var(--lime); } }
.set-ok { width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid #4a5046; background: none; color: #6b7166; display: grid; place-items: center; cursor: pointer; transition: all .18s; }
.set-ok .ic { stroke-width: 3; width: 18px; height: 18px; }
.set-ok:hover { border-color: var(--lime); color: var(--lime); }
.set.is-done .set-ok { background: var(--lime); border-color: var(--lime); color: var(--ink); animation: pop .4s cubic-bezier(.2,.9,.3,1.5); }
.set.is-done .stp { background: rgba(198,242,78,.07); }
.set.is-done .stp-b { opacity: .45; }
.lx-actions { display: flex; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--line); }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.live-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 30px; background: linear-gradient(rgba(18,20,18,0), var(--ink) 34%); z-index: 6; }
.rest { position: absolute; left: 12px; right: 12px; bottom: 100px; z-index: 7; display: grid; grid-template-columns: 58px 1fr; grid-template-rows: auto auto; gap: 10px 12px; padding: 12px; border-radius: 20px; background: #262b24; border: 1px solid #3b4038; box-shadow: 0 18px 40px -12px rgba(0,0,0,.8); transform: translateY(20px); opacity: 0; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.rest.is-on { transform: none; opacity: 1; }
.rest.is-end { border-color: var(--lime); animation: nudge .5s ease 2; }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.rest-ring { position: relative; width: 58px; height: 58px; grid-row: span 2; }
.rest-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rest-ring circle { fill: none; stroke: #3b4038; stroke-width: 5; }
.rest-ring circle.on { stroke: var(--lime); stroke-linecap: round; transition: stroke-dasharray .25s linear; }
.rest-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.rest-t b { display: block; font-size: 15px; }
.rest-t small { color: var(--muted); font-size: 12px; line-height: 1.3; display: block; }
.rest-b { display: flex; gap: 6px; }
.rb { flex: 1; height: 34px; border-radius: 10px; border: 0; background: var(--graphite); font-family: var(--f-mono); font-weight: 700; font-size: 12.5px; cursor: pointer; transition: background-color .15s; }
.rb:hover { background: #343932; }
.rb-skip { background: var(--bone); color: var(--ink); font-family: var(--f-body); font-size: 13px; }
.rb-skip:hover { background: #fff; }

/* podsumowanie */
.summary { padding-bottom: 10px; }
.sm-hero { text-align: center; padding: 14px 0 18px; }
.medal-wrap { position: relative; width: 132px; height: 132px; margin: 0 auto 14px; display: grid; place-items: center; }
.medal { width: 56px; height: 58px; }
.medal-big { width: 104px; height: 108px; position: relative; z-index: 1; animation: medalIn .9s cubic-bezier(.2,.9,.3,1.35) both; }
@keyframes medalIn { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.medal-bg { fill: var(--lime); }
.medal-in { fill: none; stroke: rgba(18,20,18,.25); stroke-width: 2; }
.medal-txt { font-family: var(--f-display); font-stretch: 70%; font-weight: 850; fill: var(--ink); }
.burst { position: absolute; inset: -14px; animation: burst 1.1s .25s ease-out both; }
.burst svg { width: 100%; height: 100%; animation: spin 14s linear infinite; }
.burst line { stroke: var(--lime); stroke-width: 3.5; stroke-linecap: round; }
.burst line.b2 { stroke: var(--ember); }
@keyframes burst { 0% { transform: scale(.4); opacity: 0; } 50% { opacity: 1; } 100% { transform: scale(1); opacity: .85; } }
@keyframes spin { to { transform: rotate(360deg); } }
.sm-kick { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ember); animation: fadeUp .5s .5s both; }
.sm-title { font-size: 34px; font-stretch: 72%; margin: 6px 0 4px; animation: fadeUp .5s .6s both; }
.sm-sub { color: var(--muted); font-size: 14px; animation: fadeUp .5s .7s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.sm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.sm-stats div { background: var(--graphite); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.sm-stats b { display: block; font-family: var(--f-display); font-stretch: 75%; font-weight: 800; font-size: 24px; line-height: 1.05; }
.sm-stats span { font-size: 11.5px; color: var(--muted); }
.xp-gain { font-family: var(--f-display); font-stretch: 75%; font-weight: 850; font-size: 24px; color: var(--ember); }
.xp-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.xp-lines li { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 5px 0; border-top: 1px solid var(--line); color: #cfd2c7; animation: fadeUp .4s var(--d) both; }
.xp-lines b { font-family: var(--f-mono); font-size: 12.5px; color: var(--bone); }
.xp-lvl { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.xp-lvl .mono { color: var(--muted); }
.lvl-up { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--ink); background: var(--ember); border-radius: 10px; padding: 7px 10px; font-weight: 800; font-size: 13.5px; animation: fadeUp .5s 1.6s both; }
.lvl-up .ic { stroke-width: 3; width: 16px; height: 16px; }
.sm-setka .mono b { color: var(--lime); }
.sm-rec { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--lime); margin-top: 12px; font-weight: 700; }
.sm-rec .ic { width: 15px; height: 15px; stroke-width: 3; }

/* postępy */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.tile { background: var(--graphite); border: 1px solid var(--line); border-radius: 16px; padding: 11px 13px; }
.tile span { display: block; font-size: 12px; color: var(--muted); }
.tile b { display: block; font-family: var(--f-display); font-stretch: 72%; font-weight: 850; font-size: 30px; line-height: 1.05; margin: 2px 0; }
.tile b em { font-style: normal; font-size: 15px; color: var(--muted); margin-left: 3px; font-weight: 700; }
.tile small { font-size: 11.5px; color: var(--muted); }
.tile small.pos { color: var(--lime); }
.tile small.neg { color: var(--ember); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: #2e322c; stroke-width: 1; }
.chart .grid.base { stroke: #4a5046; }
.chart .ax { font-family: var(--f-mono); font-size: 9.5px; fill: #8e9488; }
.chart .ax-cur { fill: var(--lime); font-weight: 700; }
.chart .val { font-family: var(--f-mono); font-size: 10px; font-weight: 700; fill: var(--bone); }
.chart .hit { fill: transparent; }
.chart .bar-g { cursor: pointer; outline: none; }
.chart .bar { fill: #6b7a3c; transition: fill .2s; }
.chart .bar-g.cur .bar { fill: var(--lime); }
.chart .bar-g:hover .bar, .chart .bar-g.sel .bar { fill: #a8cf3c; }
.chart .bar-g.cur:hover .bar, .chart .bar-g.cur.sel .bar { fill: #d4f86f; }
.chart .bar-g:hover .hit, .chart .bar-g.sel .hit { fill: rgba(237,239,230,.04); }
.chart .bar-g:focus-visible .hit { stroke: var(--lime); stroke-width: 1.5; }
.chart-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; min-height: 18px; }
.chart-note b { color: var(--bone); }
.recs, .sess { margin-top: 18px; }
.recs ul, .sess > ul { list-style: none; margin: 8px 0 0; padding: 0; }
.recs li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.rec-v { color: var(--muted); }
.rec-v b { color: var(--bone); }
.rec-d { font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; color: var(--ink); background: var(--lime); border-radius: 6px; padding: 1px 6px; }
.ss { border-top: 1px solid var(--line); }
.ss-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 0; background: none; border: 0; text-align: left; cursor: pointer; }
.ss-date { width: 42px; height: 44px; border-radius: 12px; background: var(--graphite); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10.5px; color: var(--muted); line-height: 1.1; flex: none; }
.ss-date b { font-family: var(--f-display); font-stretch: 75%; font-size: 19px; color: var(--bone); }
.ss-t { flex: 1; min-width: 0; }
.ss-t b { display: block; font-size: 14px; }
.ss-t small { font-size: 12px; color: var(--muted); }
.ss-xp { color: var(--ember); font-size: 12px; }
.ss-ch { color: #6b7166; width: 16px; height: 16px; transition: transform .2s; }
.ss.is-open .ss-ch { transform: rotate(180deg); }
.ss-body { list-style: none; margin: 0 0 10px 54px; padding: 0; }
.ss-body li { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; padding: 4px 0; color: #cfd2c7; }
.ss-body .mono { color: var(--muted); font-size: 11.5px; text-align: right; }

/* profil */
.prof-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.prof-av { width: 58px; height: 58px; border-radius: 18px; background: var(--ember); color: var(--ink); display: grid; place-items: center; font-family: var(--f-display); font-stretch: 75%; font-weight: 850; font-size: 22px; flex: none; }
.prof-head p { font-size: 13px; margin-top: 2px; }
.badges { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bd button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--graphite); border: 1px solid var(--line); border-radius: 14px; padding: 10px 4px 8px; cursor: pointer; transition: background-color .15s, transform .12s; }
.bd button:hover { background: var(--graphite-2); }
.bd button:active { transform: scale(.95); }
.bd span { font-size: 10.5px; font-weight: 700; text-align: center; line-height: 1.2; color: #cfd2c7; min-height: 25px; }
.bd .medal { width: 40px; height: 42px; }
.bd:not(.on) .medal-bg { fill: #30352e; }
.bd:not(.on) .medal-txt { fill: #6b7166; }
.bd:not(.on) .medal path:not(.medal-bg):not(.medal-in) { stroke: #6b7166; }
.bd:not(.on) span { color: #8a9085; }
.kv { margin: 4px 0 14px; display: grid; gap: 6px; }
.kv div { display: grid; grid-template-columns: 56px 1fr; font-size: 13.5px; gap: 8px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.prof-plan .a-btn { min-height: 46px; font-size: 14.5px; }
.settings { list-style: none; margin: 8px 0 0; padding: 0; }
.settings li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.settings b { display: block; font-size: 14px; }
.settings small { font-size: 12px; color: var(--muted); }
.switch { width: 48px; height: 28px; border-radius: 99px; border: 0; background: #3b4038; position: relative; cursor: pointer; flex: none; transition: background-color .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--bone); transition: transform .22s cubic-bezier(.2,.8,.2,1.2); }
.switch.on { background: var(--lime); }
.switch.on i { transform: translateX(20px); background: var(--ink); }

/* arkusze i toasty */
.sheet-root { position: absolute; inset: 0; z-index: 25; pointer-events: none; }
.sheet-root.is-open { pointer-events: auto; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.55); animation: fadeIn .25s both; }
@keyframes fadeIn { from { opacity: 0; } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #1f231e; border-radius: 26px 26px 0 0; padding: 10px 20px 34px; border-top: 1px solid #3b4038; animation: sheetUp .34s cubic-bezier(.2,.8,.2,1) both; max-height: 85%; overflow-y: auto; }
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: #4a5046; margin: 0 auto 16px; }
.sheet-t { font-size: 25px; font-stretch: 78%; margin-bottom: 8px; }
.sheet-p { color: #c5c9bd; font-size: 14px; margin-bottom: 18px; }
.center { text-align: center; }
.sheet .a-btn + .a-btn { margin-top: 4px; }
.sheet-medal { display: grid; place-items: center; margin: 4px 0 12px; }
.sheet-medal.off .medal-bg { fill: #30352e; }
.sheet-medal.off .medal-txt { fill: #6b7166; }
.sheet-medal.off .medal path:not(.medal-bg):not(.medal-in) { stroke: #6b7166; }
.sheet-medal.off .medal circle { fill: #6b7166; }
.ms-list { list-style: none; margin: 0 0 18px; padding: 0; }
.ms-list li { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.ms-list li.on { color: var(--bone); }
.ms-list li .ic { color: var(--lime); stroke-width: 3; width: 16px; height: 16px; }
.ms-list b { color: inherit; }
.toast-root { position: absolute; top: 54px; left: 14px; right: 14px; z-index: 35; display: grid; gap: 6px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px; background: var(--bone); color: var(--ink); font-size: 13.5px; font-weight: 700; box-shadow: 0 16px 30px -12px rgba(0,0,0,.7); animation: toastIn .35s cubic-bezier(.2,.9,.3,1.25) both; transition: opacity .3s, transform .3s; }
.toast .ic { width: 18px; height: 18px; flex: none; stroke-width: 2.6; }
.toast-xp { background: var(--lime); }
.toast.out { opacity: 0; transform: translateY(-10px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.96); } }

@media (prefers-reduced-motion: reduce) {
  .burst svg { animation: none; }
}
