/* ══════════════════════════════════════════════════════════════════════
   edum - nowy wygląd akademii (ustawienie "ui" = "v2")
   Ładowany PO style.css. Wszystkie reguły w zakresie body.ui2, więc
   akademie w obecnym wyglądzie nie są dotknięte.
   Kolor akcentu, fonty i kolor nagłówka przychodzą z ustawień akademii.
   ══════════════════════════════════════════════════════════════════════ */

body.ui2 {
  /* powierzchnie i tekst */
  --bg-root: #eef2f0; --bg-glass: #fff; --bg-glass2: #f5f8f6; --bg-glass3: #fff; --bg-input: #fff;
  --u2-panel: #fff; --u2-panel-2: #f5f8f6; --u2-panel-3: #e9efec;
  --tx: #12201b; --tx2: #33433d; --tx3: #5d6b66; --tx4: #8a9792;
  --u2-line: rgba(18,32,27,.08); --u2-line-2: rgba(18,32,27,.14);
  --br: var(--u2-line); --br2: var(--u2-line-2); --line: var(--u2-line); --line-soft: var(--u2-line);
  --paper: var(--bg-root); --panel: #fff; --panel-2: #f5f8f6; --ink: var(--tx); --ink-2: var(--tx2); --muted: var(--tx3);
  /* akcent i rodzina */
  --u2-ink: #12201b;
  --u2-acc2: var(--acc-text, color-mix(in oklab, var(--accent) 80%, #000));
  --u2-soft: color-mix(in oklab, var(--accent) 12%, transparent);
  --u2-soft-2: color-mix(in oklab, var(--accent) 6%, transparent);
  --acc1: var(--accent); --grad: var(--accent);
  --accent-tint: var(--u2-soft); --accent-line: color-mix(in oklab, var(--accent) 35%, transparent);
  --u2-coral: #ef7a67; --u2-coral-s: rgba(239,122,103,.14);
  --u2-amber: #f1b546; --u2-amber-s: rgba(241,181,70,.18);
  --u2-violet: #9b8cf0; --u2-violet-s: rgba(155,140,240,.16);
  --ok: #1c8d6c; --ok-s: rgba(34,169,130,.12); --err: #c0473a; --err-s: rgba(239,122,103,.14); --warn: #a3741a; --warn-s: rgba(241,181,70,.18);
  /* geometria */
  --u2-r-xl: 24px; --u2-r-lg: 18px; --u2-r-md: 14px; --u2-r-sm: 10px;
  --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-xl: 24px;
  --sh-card: 0 1px 2px rgba(18,32,27,.04), 0 8px 24px -12px rgba(18,32,27,.10);
  --sh-sm: var(--sh-card); --sh: var(--sh-card);
  --sh-lift: 0 22px 44px -26px rgba(18,32,27,.4);
  --sh-glow: 0 0 0 4px var(--u2-soft);
  --u2-top: 68px; --u2-rail: 72px; --u2-gut: 28px;
  --u2-ease: cubic-bezier(.2,.8,.2,1);

  display: block; min-height: 100vh; margin: 0;
  font-family: var(--body); font-size: 15px; line-height: 1.55; color: var(--tx);
  background-color: var(--bg-root);
  /* delikatna poświata w kolorze akademii (lewy górny i prawy dolny róg) */
  background-image:
    radial-gradient(60vw 45vh at 0% 0%, color-mix(in oklab, var(--accent) 11%, transparent), transparent 70%),
    radial-gradient(50vw 40vh at 100% 100%, color-mix(in oklab, var(--accent) 5%, transparent), transparent 70%);
  background-attachment: fixed;
  overflow-x: clip;
}
/* stałe miejsce na pasek przewijania: krótkie i długie strony mają tę samą szerokość (menu i treść nie skaczą) */
html:has(body.ui2) { overflow-x: clip; scrollbar-gutter: stable; }
body.ui2 * { box-sizing: border-box; }
body.ui2 svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body.ui2 h1, body.ui2 h2, body.ui2 h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; color: var(--tx); }
body.ui2 { --u2-h1: clamp(1.7rem, 2.6vw, 2.15rem); }
body.ui2 h1 { font-size: var(--u2-h1); line-height: 1.15; margin: 0 0 .35em; }
body.ui2 h2 { font-size: 1.1rem; line-height: 1.25; }
body.ui2 h3 { font-size: 1rem; line-height: 1.3; }
:where(body.ui2) a { color: var(--u2-acc2); }
:where(body.ui2) a:hover { text-decoration: none; }
body.ui2 :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.u2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.u2-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--u2-ink); color: #fff !important; padding: 10px 16px; border-radius: 99px; }
.u2-skip:focus { top: 12px; }

/* ── belka górna ─────────────────────────────────────────────────────── */
.u2-top { height: var(--u2-top); display: flex; align-items: center; gap: 16px; padding: 0 var(--u2-gut) 0 22px;
  position: sticky; top: 0; z-index: 40; background: rgba(238,242,240,.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: box-shadow .2s; }
.u2-top.scr { box-shadow: 0 1px 0 var(--u2-line), 0 10px 30px -22px rgba(18,32,27,.35); }
.u2-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--tx) !important; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.u2-brand:hover { text-decoration: none; }
.u2-logo { height: 32px; width: auto; max-width: 160px; object-fit: contain; }
.u2-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--on-acc, #fff); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.u2-bt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u2-seg { position: relative; isolation: isolate; display: inline-flex; gap: 2px; padding: 4px; margin: 0 auto;
  background: var(--u2-panel); border: 1px solid var(--u2-line); border-radius: 999px; }
.u2-seg a { padding: 8px 20px; border-radius: 999px; color: var(--tx3); font-size: 14.5px; white-space: nowrap; transition: color .15s; }
.u2-seg a:hover { color: var(--tx); }
.u2-seg a.on { color: #fff; }
.u2-seg .pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--u2-ink); z-index: -1;
  transition: transform .32s var(--u2-ease), width .32s var(--u2-ease); pointer-events: none; }
.u2-seg:not(.js) a.on { background: var(--u2-ink); }
.u2-top-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.u2-seg + .u2-top-end { margin-left: 0; }
.u2-ibtn { width: 40px; height: 40px; border-radius: 50%; background: var(--u2-panel); border: 1px solid var(--u2-line); display: grid; place-items: center;
  position: relative; cursor: pointer; color: var(--tx); transition: background .15s, transform .15s; padding: 0; margin: 0; }
.u2-ibtn:hover { background: var(--u2-panel-2); transform: translateY(-1px); text-decoration: none; }
.u2-ibtn:hover svg.i { animation: u2ring .5s; }
.u2-ibtn.is-on { background: var(--u2-ink); color: #fff; }
@keyframes u2ring { 20% { transform: rotate(12deg) } 40% { transform: rotate(-10deg) } 60% { transform: rotate(6deg) } 80% { transform: rotate(-3deg) } }
.u2-dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--u2-coral); box-shadow: 0 0 0 2px var(--u2-panel); }
.u2-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none;
  color: var(--on-acc, #fff) !important; background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 80%, #fff), var(--u2-acc2));
  box-shadow: 0 0 0 2px var(--u2-panel), 0 0 0 4px var(--accent); transition: transform .2s; }
.u2-avatar:hover { transform: scale(1.05); text-decoration: none; }
.u2-avatar.sm { width: 32px; height: 32px; font-size: 12px; box-shadow: none; }
/* wyszukiwarka rozwijana z ikony */
.u2-search { display: flex; align-items: center; position: relative; margin: 0; }
.u2-search input[type=search] { width: 0; padding: 0; border: 0; opacity: 0; height: 40px; border-radius: 999px; transition: width .3s var(--u2-ease), opacity .2s, padding .3s;
  position: absolute; right: 0; top: 0; background: var(--u2-panel); box-shadow: 0 0 0 1px var(--u2-line-2); font-size: 14.5px; }
.u2-search:focus-within input[type=search], .u2-search.open input[type=search], .u2-search input[type=search]:not(:placeholder-shown) {
  width: min(320px, 60vw); opacity: 1; padding: 0 16px 0 42px; }
.u2-search label.u2-ibtn { position: relative; z-index: 2; margin: 0; }
.u2-search:focus-within label.u2-ibtn { background: transparent; border-color: transparent; }

/* ── rama: menu boczne + treść ───────────────────────────────────────── */
.u2-shell { display: grid; grid-template-columns: var(--u2-rail) minmax(0, 1fr); transition: grid-template-columns .28s var(--u2-ease); }
html.u2-menu-open .u2-shell { --u2-rail: 276px; }
/* margines u góry równy przesunięciu „przyklejenia": menu stoi w tym samym miejscu na krótkiej i długiej stronie */
.u2-rail { position: sticky; top: calc(var(--u2-top) + 6px); height: calc(100vh - var(--u2-top) - 30px); margin: 6px 0 0 16px; width: 44px;
  border-radius: 24px; background: var(--u2-panel); border: 1px solid var(--u2-line); box-shadow: 0 12px 32px -18px rgba(18,32,27,.28);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 12px; z-index: 30;
  transition: width .28s var(--u2-ease), padding .28s; }
.u2-rail-top { display: flex; align-items: center; justify-content: center; width: 100%; margin-bottom: 6px; }
.u2-rail-name { display: none; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--tx4); font-weight: 500; }
.u2-rail-tog { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--u2-panel-2); display: grid; place-items: center; cursor: pointer; color: var(--tx3); flex: none; padding: 0; }
.u2-rail-tog:hover { background: var(--u2-panel-3); color: var(--tx); }
.u2-rail-tog .ix { display: none; }
.u2-rail a { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 12px; flex: none;
  color: var(--tx3); position: relative; white-space: nowrap; font-size: 14.5px; transition: background .15s, color .15s; }
.u2-rail a:hover { background: var(--u2-panel-2); color: var(--tx); text-decoration: none; }
.u2-rail a.on { background: var(--u2-ink); color: #fff; }
.u2-rail a svg.i { width: 17px; height: 17px; }
.u2-rail .rl, .u2-rail .rh, .u2-rail .nav-badge { display: none; }
.u2-rail .rb:not(.alert) { display: none; }
.u2-rail .rb { position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--u2-coral); font-size: 0; font-style: normal; box-shadow: 0 0 0 2px var(--u2-panel); }
.u2-rail .sp { flex: 1; }
.u2-rail-user { margin: 4px 0; }
.u2-rail-user .rl b { display: block; font-weight: 500; font-size: 14px; color: var(--tx); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.u2-rail-user .rl small { display: block; font-size: 12px; color: var(--tx3); overflow: hidden; text-overflow: ellipsis; }
.u2-rail .nav-progress { display: block; height: 3px; border-radius: 9px; background: var(--u2-panel-3); margin-top: 4px; overflow: hidden; }
.u2-rail .nav-progress i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.u2-rail a.on .nav-progress { background: rgba(255,255,255,.2); }
.u2-rail a.on .nav-progress i { background: #fff; }
html:not(.u2-menu-open) body:not(.u2-drawer) .u2-rail a[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; left: 44px; top: 50%; transform: translateY(-50%); background: var(--u2-ink); color: #fff;
  font-size: 12.5px; padding: 5px 10px; border-radius: 8px; white-space: nowrap; z-index: 5; pointer-events: none; }
/* rozsunięte (komputer) i szuflada (telefon) */
html.u2-menu-open .u2-rail, body.u2-drawer .u2-rail { width: 244px; align-items: stretch; padding: 10px 10px 12px; overflow: hidden auto; scrollbar-width: none; }
html.u2-menu-open .u2-rail::-webkit-scrollbar, body.u2-drawer .u2-rail::-webkit-scrollbar { display: none; }
html.u2-menu-open .u2-rail-top, body.u2-drawer .u2-rail-top { justify-content: space-between; padding: 0 4px 0 10px; }
html.u2-menu-open .u2-rail-name, body.u2-drawer .u2-rail-name { display: block; }
html.u2-menu-open .u2-rail a, body.u2-drawer .u2-rail a { width: auto; height: 40px; border-radius: 12px; justify-content: flex-start; padding: 0 12px; }
html.u2-menu-open .u2-rail a.u2-path, body.u2-drawer .u2-rail a.u2-path { height: 46px; }
html.u2-menu-open .u2-rail .rl, body.u2-drawer .u2-rail .rl { display: block; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; }
html.u2-menu-open .u2-rail .rh, body.u2-drawer .u2-rail .rh { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--tx4); padding: 12px 12px 4px; font-weight: 500; }
html.u2-menu-open .u2-rail .nav-badge, body.u2-drawer .u2-rail .nav-badge { display: block; font-size: 12px; color: var(--tx4); }
html.u2-menu-open .u2-rail a.on .nav-badge, body.u2-drawer .u2-rail a.on .nav-badge { color: rgba(255,255,255,.75); }
html.u2-menu-open .u2-rail .rb:not(.alert), body.u2-drawer .u2-rail .rb:not(.alert) { display: grid; background: var(--u2-panel-3); color: var(--tx3) !important; }
html.u2-menu-open .u2-rail .rb, body.u2-drawer .u2-rail .rb { position: static; width: auto; height: 20px; min-width: 20px; padding: 0 6px; border-radius: 99px; font-size: 11.5px; color: #fff; display: grid; place-items: center; box-shadow: none; }
html.u2-menu-open .u2-rail a.on .rb, body.u2-drawer .u2-rail a.on .rb { background: var(--accent); }
html.u2-menu-open .u2-rail-user, body.u2-drawer .u2-rail-user { height: auto !important; padding: 10px !important; background: var(--u2-panel-2); margin: 6px 0; }
html.u2-menu-open .u2-rail-tog .ip, body.u2-drawer .u2-rail-tog .ip { color: var(--tx); }
@keyframes u2in { from { opacity: 0; transform: translateX(-4px) } to { opacity: 1; transform: none } }
/* napisy wjeżdżają tylko przy rozsuwaniu przyciskiem, nie przy każdym przejściu na inną stronę */
html.u2-anim .u2-rail .rl, html.u2-anim .u2-rail .rh, body.u2-drawer .u2-rail .rl, body.u2-drawer .u2-rail .rh { animation: u2in .25s ease both; }
.u2-scrim { display: none; }

/* ── obszar treści ───────────────────────────────────────────────────── */
.u2-main { padding: 8px var(--u2-gut) 32px 12px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.u2-main > * { margin-top: 0 !important; margin-bottom: 0 !important; min-width: 0; }
.u2-main > h1 + .lead-under, .u2-main > h1 + p { margin-top: -12px !important; }
body.ui2 .lead-under, body.ui2 .sub { color: var(--tx3); }
body.ui2 .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 0; }
body.ui2 .section-head h2 { font-size: 1.35rem; margin: 2px 0 0; }
body.ui2 .section-kicker, body.ui2 .eyebrow, body.ui2 .card-cat {
  font-family: var(--body); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--u2-acc2); font-weight: 600; }
body.ui2 .section-desc { color: var(--tx3); margin: -8px 0 0; }
body.ui2 .count { font-family: var(--body); font-size: 12.5px; color: var(--tx3); background: var(--u2-panel-2); border: 1px solid var(--u2-line); padding: 2px 10px; border-radius: 99px; }
body.ui2 .hint { color: var(--tx3); font-size: 13px; }
body.ui2 code { font-family: var(--data); font-size: .86em; background: var(--u2-panel-2); padding: 2px 6px; border-radius: 6px; }

/* panele */
body.ui2 .panel, body.ui2 .quiz-box, body.ui2 .table-wrap, body.ui2 .card, body.ui2 .side-panel, body.ui2 .stat {
  background: var(--u2-panel); border: 1px solid var(--u2-line); border-radius: var(--u2-r-xl); box-shadow: var(--sh-card);
  backdrop-filter: none; -webkit-backdrop-filter: none; }
body.ui2 .panel, body.ui2 .quiz-box { padding: 22px; --panel-pad: 22px; }
body.ui2 .panel > h2, body.ui2 .panel-head h2, body.ui2 .quiz-box h2 { font-size: 1.05rem; margin: 0 0 12px; }
body.ui2 .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
body.ui2 .panel-head h2 { margin: 0; }
body.ui2 .panel-sub, body.ui2 .panel-empty { color: var(--tx3); }
body.ui2 .panel-empty { text-align: center; padding: 34px 22px; }
body.ui2 .account-grid { gap: 18px; }

/* przyciski */
body.ui2 .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--u2-line-2); background: var(--u2-panel); color: var(--tx); font-family: var(--body); font-size: 14.5px; font-weight: 500;
  line-height: 1; box-shadow: none; filter: none; transition: transform .15s, background .15s, box-shadow .2s, border-color .15s, color .15s; cursor: pointer; white-space: nowrap; }
body.ui2 .btn:not(.btn-primary):not(.btn-accent):not(.btn-danger):hover { background: var(--u2-panel-2); border-color: var(--tx4); color: var(--tx); transform: none; }
body.ui2 .btn-primary { background: var(--u2-ink); border-color: var(--u2-ink); color: #fff; box-shadow: none; }
body.ui2 .btn-primary:hover, body.ui2 .btn-primary:focus-visible { background: color-mix(in oklab, var(--u2-ink) 86%, #fff); color: #fff; filter: none; transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(18,32,27,.6); }
body.ui2 .btn-accent, body.ui2 .btn-mint { background: var(--accent); border-color: var(--accent); color: var(--on-acc, #fff); }
body.ui2 .btn-accent:hover, body.ui2 .btn-mint:hover { background: var(--u2-acc2); color: #fff; transform: translateY(-1px); }
body.ui2 .btn-outline { background: var(--u2-panel); }
body.ui2 .btn-ghost { background: transparent; border-color: transparent; color: var(--tx2); }
body.ui2 .btn-ghost:hover { background: var(--u2-panel-2) !important; border-color: transparent !important; }
body.ui2 .btn-danger { background: var(--u2-coral); border-color: var(--u2-coral); color: #fff; }
body.ui2 .btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
body.ui2 .btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
body.ui2 .btn-block { width: 100%; }
body.ui2 .btn[disabled], body.ui2 .btn.is-disabled { opacity: .45; }
body.ui2 .btn svg.i { transition: transform .2s; }
body.ui2 .btn:hover svg.i:last-child:not(:first-child) { transform: translateX(3px); }
body.ui2 .actions, body.ui2 .form-actions { gap: 10px; margin-top: 18px; }

/* formularze */
body.ui2 label { font-size: 13.5px; color: var(--tx3); font-weight: 400; margin: 16px 0 6px; }
body.ui2 input[type=text], body.ui2 input[type=email], body.ui2 input[type=password], body.ui2 input[type=number], body.ui2 input[type=date],
body.ui2 input[type=datetime-local], body.ui2 input[type=url], body.ui2 input[type=search], body.ui2 select, body.ui2 textarea {
  min-height: 44px; border-radius: var(--u2-r-md); border: 1px solid var(--u2-line-2); background: #fff; padding: 10px 14px; font-size: 15px; color: var(--tx); }
body.ui2 textarea { min-height: 110px; }
body.ui2 input:focus, body.ui2 select:focus, body.ui2 textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--u2-soft); outline: none; }
body.ui2 .check { color: var(--tx); font-size: 14.5px; }

/* komunikaty i banery */
body.ui2 .flash { border-radius: var(--u2-r-md); padding: 12px 16px; font-size: 14.5px; border: 1px solid transparent; margin: 0; animation: u2drop .35s var(--u2-ease); }
body.ui2 .flash-ok { background: var(--u2-soft); color: var(--u2-acc2); border-color: color-mix(in oklab, var(--accent) 25%, transparent); }
body.ui2 .flash-err { background: var(--u2-coral-s); color: #b24636; border-color: rgba(239,122,103,.3); }
@keyframes u2drop { from { opacity: 0; transform: translateY(-6px) } }
.u2-banner { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 999px; font-size: 14px; flex-wrap: wrap; }
.u2-banner > svg.i { flex: none; }
.u2-banner > span { flex: 1; min-width: 200px; }
.u2-banner-ink { background: var(--u2-ink); color: #fff; }
.u2-banner-ink .btn { background: rgba(255,255,255,.12) !important; color: #fff !important; border-color: rgba(255,255,255,.2) !important; }
.u2-banner-amber { background: var(--u2-amber-s); color: #7d5a14; border-radius: var(--u2-r-md); }
.u2-banner-amber a { color: #7d5a14; text-decoration: underline; }

/* znaczniki */
body.ui2 .tag, body.ui2 .chip, body.ui2 .badge { font-family: var(--body); font-size: 12px; letter-spacing: 0; text-transform: none; height: 24px; padding: 0 10px; border-radius: 99px;
  display: inline-flex; align-items: center; gap: 6px; background: var(--u2-panel-2); border: 1px solid var(--u2-line); color: var(--tx3); }
body.ui2 .tag-on, body.ui2 .chip-access, body.ui2 .badge-accent, body.ui2 .badge-ok { background: var(--u2-soft); color: var(--u2-acc2); border-color: transparent; }
body.ui2 .tag-off, body.ui2 .badge-err { background: var(--u2-coral-s); color: #b24636; border-color: transparent; }
body.ui2 .badge-warn { background: var(--u2-amber-s); color: #8a6216; border-color: transparent; }

/* pasek postępu */
body.ui2 .progressbar { height: 6px; border-radius: 99px; background: var(--u2-panel-3); overflow: hidden; }
body.ui2 .progressbar > span, body.ui2 .progressbar > i, body.ui2 .progressbar > div { background: var(--accent); border-radius: inherit; transition: width 1s var(--u2-ease); }

/* tabele */
body.ui2 .table-wrap { border-radius: var(--u2-r-lg); overflow-x: auto; }
body.ui2 .panel .table-wrap { box-shadow: none; }
body.ui2 table.data th { font-family: var(--body); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--tx4); background: var(--u2-panel-2); padding: 10px 14px; font-weight: 500; }
body.ui2 table.data td { padding: 12px 14px; color: var(--tx2); border-bottom: 1px solid var(--u2-line); font-size: 14px; }
body.ui2 table.data tr:hover td { background: var(--u2-soft-2); }

/* treść stron i materiałów */
body.ui2 .material-body, body.ui2 .page-body { line-height: 1.7; color: var(--tx2); }
body.ui2 .material-body img, body.ui2 .page-body img { border-radius: var(--u2-r-lg); }
body.ui2 .paywall { background: var(--u2-panel); border: 1px dashed var(--u2-line-2); border-radius: var(--u2-r-xl); padding: 48px 24px; text-align: center; }
body.ui2 .paywall .lock-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: var(--u2-soft); display: grid; place-items: center; font-size: 26px; }
body.ui2 .paywall .actions { justify-content: center; }

/* ── nagłówek strony i okruszki ──────────────────────────────────────── */
.u2-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.u2-head h1 { margin: 0; }
.u2-head p { margin: 4px 0 0; color: var(--tx3); }
.u2-crumbs { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--tx3); flex-wrap: wrap; margin-bottom: -6px !important; }
.u2-crumbs a { color: var(--tx3); }
.u2-crumbs a:hover { color: var(--tx); }
.u2-crumbs svg.i { width: 14px; height: 14px; }
.u2-crumbs span { color: var(--tx); }
.u2-steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.u2-step { display: inline-flex; }
.u2-step i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12.5px; font-weight: 500;
  background: var(--u2-panel); border: 1px solid var(--u2-line-2); color: var(--tx3); transition: transform .15s, background .15s; }
.u2-step i svg.i { width: 14px; height: 14px; }
.u2-step + .u2-step::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--u2-line-2); align-self: center; margin-right: 6px; }
.u2-step.done i { background: var(--accent); border-color: var(--accent); color: var(--on-acc, #fff); }
.u2-step.now i { background: var(--u2-ink); border-color: var(--u2-ink); color: #fff; box-shadow: 0 0 0 4px var(--u2-soft); }
.u2-step.lock i { border-style: dashed; color: var(--tx4); }
a.u2-step:hover i { transform: scale(1.1); }
.u2-steps-meta { margin-left: 8px; font-size: 13px; color: var(--tx3); }

/* ── kokpit ──────────────────────────────────────────────────────────── */
.u2-r1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.u2-card { background: var(--u2-panel); border: 1px solid var(--u2-line); border-radius: var(--u2-r-xl); padding: 22px; box-shadow: var(--sh-card); min-width: 0; }
.u2-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.u2-card-head h2, .u2-card-head h3 { font-size: 16.5px; margin: 0; }
.u2-card-head p { margin: 1px 0 0; font-size: 13px; color: var(--tx3); }
.u2-spot { position: relative; overflow: hidden; }
.u2-spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--u2-soft-2), transparent 45%); }
.u2-spot:hover::before { opacity: 1; }
.u2-cover { position: relative; border-radius: var(--u2-r-lg); overflow: hidden; aspect-ratio: 16/10; isolation: isolate;
  background: linear-gradient(135deg, var(--c1, var(--u2-acc2)), var(--c2, color-mix(in oklab, var(--accent) 45%, #fff))); }
.u2-cover::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; right: -18%; top: -30%; background: rgba(255,255,255,.22); transition: transform .6s var(--u2-ease); }
.u2-cover::after { content: ""; position: absolute; width: 46%; aspect-ratio: 1; border-radius: 38%; left: -10%; bottom: -24%; background: rgba(18,32,27,.10); transform: rotate(18deg); transition: transform .6s var(--u2-ease); }
.u2-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.u2-cover.has-img::before, .u2-cover.has-img::after { display: none; }
.u2-cover .tag-tl { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255,255,255,.92); border: 0; color: var(--tx); }
.u2-cover .glyph { position: absolute; left: 14px; bottom: 14px; z-index: 2; color: #fff; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px;
  background: rgba(18,32,27,.32); backdrop-filter: blur(6px); padding: 5px 11px 5px 6px; border-radius: 999px; }
.u2-cover .glyph b { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--tx); display: grid; place-items: center; font-weight: 500; }
.u2-cover .glyph b svg.i { width: 10px; height: 10px; }
.u2-cover .lockb { position: absolute; top: 12px; right: 12px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--tx); }
.u2-cover .lockb svg.i { width: 15px; height: 15px; }
.u2-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--tx) !important; display: grid; place-items: center;
  z-index: 3; box-shadow: 0 10px 30px -8px rgba(0,0,0,.35); transition: transform .15s; }
.u2-play:hover { transform: scale(1.06); }
.u2-play svg.i { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; stroke: none; }
.u2-play::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); animation: u2pulse 2.2s infinite; }
@keyframes u2pulse { 0% { transform: scale(.9); opacity: .9 } 100% { transform: scale(1.35); opacity: 0 } }
.c-1 { --c1: color-mix(in oklab, var(--accent) 85%, #000); --c2: color-mix(in oklab, var(--accent) 45%, #fff); }
.c-2 { --c1: #7c6be0; --c2: #cfc7fa; } .c-3 { --c1: #dd9a22; --c2: #f6dc9c; } .c-4 { --c1: #e06a57; --c2: #f7c2b6; }
.c-5 { --c1: #3d8fd1; --c2: #b6dcf5; } .c-6 { --c1: #12201b; --c2: #3d5a50; }

.u2-resume { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; align-items: center; }
.u2-resume h2 { font-size: 24px; letter-spacing: -.015em; line-height: 1.2; margin: 10px 0 6px; }
.u2-resume h2 a { color: var(--tx); }
.u2-resume .row2 { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; font-size: 13.5px; color: var(--tx3); }
.u2-resume .row2 b { color: var(--tx); font-weight: 500; margin-left: auto; }
.u2-resume .btns { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.u2-empty { color: var(--tx3); font-size: 14.5px; padding: 6px 0; }
.u2-empty-big { text-align: center; padding: 26px 10px; }
.u2-empty-big .ic { width: 56px; height: 56px; border-radius: 18px; background: var(--u2-soft); color: var(--u2-acc2); display: grid; place-items: center; margin: 0 auto 12px; }

.u2-cert { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--u2-r-md); border: 1px solid var(--u2-line); background: var(--u2-panel-2); color: var(--tx); transition: transform .18s, border-color .15s, background .15s; }
.u2-cert + .u2-cert { margin-top: 10px; }
.u2-cert .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--u2-amber-s); color: #a3741a; flex: none; }
.u2-cert .t { font-weight: 500; font-size: 14.5px; line-height: 1.3; }
.u2-cert .m { font-size: 12.5px; color: var(--tx3); }
.u2-cert .btn { margin-left: auto; }
.u2-cert.lock .ic { background: var(--u2-panel-3); color: var(--tx4); }
.u2-cert:not(.lock):hover { transform: translateY(-2px); border-color: var(--u2-amber); background: #fff; }
.u2-cert:not(.lock):hover .ic svg.i { animation: u2ring .6s; }

.u2-gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.u2-gauge { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 4px; }
.u2-gauge .gw { position: relative; display: grid; place-items: center; }
.u2-gauge svg { width: 104px; height: 104px; }
.u2-gauge svg circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.u2-gauge svg circle:first-child { stroke: var(--u2-panel-3); }
.u2-gauge svg circle + circle { transition: stroke-dasharray 1.3s var(--u2-ease); }
.u2-gauge .v { position: absolute; font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.u2-gauge .l { font-size: 14px; margin-top: 6px; }
.u2-gauge .s { font-size: 12px; color: var(--tx3); }

.u2-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.u2-col-h { height: 36px; border-radius: 999px; border: 1px solid var(--u2-line-2); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--tx3); padding: 0 14px; }
.u2-col-h b { font-weight: 500; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u2-col-h small { color: var(--tx4); flex: none; }
.u2-link { width: 1px; height: 14px; margin: 0 auto; border-left: 1px dashed var(--u2-line-2); position: relative; }
.u2-link::after { content: ""; position: absolute; left: -3px; bottom: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--u2-line-2); }
.u2-les { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--u2-line); border-radius: var(--u2-r-md); background: var(--u2-panel-2); color: var(--tx);
  transition: border-color .15s, background .15s, transform .18s; }
.u2-les .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12.5px; font-weight: 500; background: var(--u2-panel-3); color: var(--tx3); }
.u2-les .n svg.i { width: 15px; height: 15px; }
.u2-les.done .n { background: var(--accent); color: var(--on-acc, #fff); }
.u2-les.now { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--u2-soft); }
.u2-les.now .n { background: var(--u2-ink); color: #fff; }
.u2-les.lock { opacity: .6; }
.u2-les .t { font-size: 14px; font-weight: 500; line-height: 1.25; }
.u2-les .m { font-size: 12px; color: var(--tx3); }
.u2-les .m em { font-style: normal; color: var(--u2-acc2); font-weight: 500; }
.u2-les .e { margin-left: auto; color: var(--tx4); transition: transform .2s; }
.u2-les .e svg.i { width: 15px; height: 15px; }
a.u2-les:hover { border-color: var(--u2-line-2); background: #fff; transform: translateX(3px); }
a.u2-les:hover .e { transform: translateX(3px); color: var(--tx); }
.u2-more { display: block; text-align: center; font-size: 13px; color: var(--tx3); margin-top: 10px; }

.u2-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.u2-filters button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--u2-line-2); background: var(--u2-panel); font-size: 13.5px; color: var(--tx3); cursor: pointer; font-family: var(--body); transition: background .15s, color .15s, border-color .15s; }
.u2-filters button:not(.on):hover { border-color: var(--tx4); color: var(--tx); }
.u2-filters button.on { background: var(--u2-ink); color: #fff; border-color: var(--u2-ink); }
.u2-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.u2-course { display: flex; flex-direction: column; gap: 12px; padding: 10px 10px 16px; border-radius: var(--u2-r-xl); background: var(--u2-panel); border: 1px solid var(--u2-line); color: var(--tx);
  transition: transform .22s var(--u2-ease), box-shadow .22s, border-color .2s; min-width: 0; }
.u2-course:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); border-color: var(--u2-line-2); }
.u2-course:hover .u2-cover::before { transform: scale(1.15) translate(-6%, 6%); }
.u2-course:hover .u2-cover::after { transform: rotate(30deg) scale(1.1); }
.u2-course .hovplay { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--tx); display: grid; place-items: center; z-index: 3;
  opacity: 0; transform: scale(.7); transition: opacity .2s, transform .25s var(--u2-ease); box-shadow: 0 10px 30px -8px rgba(0,0,0,.35); }
.u2-course .hovplay svg.i { width: 18px; height: 18px; margin-left: 2px; fill: currentColor; stroke: none; }
.u2-course:hover .hovplay { opacity: 1; transform: none; }
.u2-course .body { padding: 0 6px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.u2-course h3 { font-size: 16px; line-height: 1.3; margin: 0; transition: color .15s; }
.u2-course h3 a { color: inherit; }
.u2-course:hover h3 { color: var(--u2-acc2); }
.u2-course .desc { font-size: 13.5px; color: var(--tx3); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.u2-course .meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--tx3); flex-wrap: wrap; }
.u2-course .meta span { display: inline-flex; align-items: center; gap: 5px; }
.u2-course .meta svg.i { width: 14px; height: 14px; }
.u2-course .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; flex-wrap: wrap; }
.u2-course .pct { font-size: 13px; color: var(--tx3); }
.u2-course .foot .chip-voucher, .u2-course .foot .chip-buy { cursor: pointer; }
.u2-course.hide { display: none; }
.u2-courses-group { display: contents; }

/* hero dla gości */
.u2-hero { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 5vw, 56px); background: var(--u2-panel); border: 1px solid var(--u2-line); box-shadow: var(--sh-card); isolation: isolate; }
.u2-hero::before { content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -240px; border-radius: 50%; background: radial-gradient(circle, var(--u2-soft), transparent 65%); z-index: -1; }
.u2-hero.center { text-align: center; }
.u2-hero.has-img { background: linear-gradient(90deg, rgba(10,20,16,.78), rgba(10,20,16,.25)), var(--hero-img) center/cover; color: #fff; border: 0; }
.u2-hero.has-img h1, .u2-hero.has-img p, .u2-hero.has-img .eyebrow { color: #fff; }
.u2-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.03em; line-height: 1.05; max-width: 18ch; margin: 10px 0 14px; }
.u2-hero.center h1 { margin-left: auto; margin-right: auto; }
.u2-hero p { font-size: 17px; color: var(--tx3); max-width: 56ch; margin: 0; }
.u2-hero.center p { margin: 0 auto; }
.u2-hero .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.u2-hero.center .btns { justify-content: center; }
.u2-hero .stats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.u2-hero.center .stats { justify-content: center; }
.u2-hero .stats b { display: block; font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.u2-hero .stats span { font-size: 13px; color: var(--tx3); }
.u2-hero.has-img .stats span { color: rgba(255,255,255,.75); }
.u2-hero.has-img .btn:not(.btn-primary) { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }

/* ── materiał ────────────────────────────────────────────────────────── */
body.ui2 .material-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
body.ui2 .material-main > div { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
body.ui2 .material-main > div > * { margin: 0 !important; }
body.ui2 .material-head h1 { font-size: var(--u2-h1); margin: 0; }
body.ui2 .material-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
body.ui2 .material-lead { color: var(--tx3); margin: 8px 0 0; }
body.ui2 .material-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding: 0; border: 0; }
body.ui2 .mb-item { font-size: 13px; color: var(--tx3); background: var(--u2-panel); border: 1px solid var(--u2-line); border-radius: 99px; padding: 4px 12px; font-family: var(--body); }
body.ui2 .mb-item.is-ok { background: var(--u2-soft); color: var(--u2-acc2); border-color: transparent; }
body.ui2 .mb-nav { margin-left: auto; display: flex; gap: 8px; }
body.ui2 .player-shell { border-radius: var(--u2-r-xl); border: 0; box-shadow: 0 30px 60px -36px rgba(10,20,16,.6); background: #0f1a16; }
body.ui2 .player-empty { padding: 60px 20px; text-align: center; color: rgba(255,255,255,.75); }
body.ui2 .player-empty strong { color: #fff; }
body.ui2 .player-shell + .progressbar { margin-top: -6px !important; height: 4px; }
body.ui2 .player-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--tx3); }
body.ui2 .pb-progress strong { color: var(--tx); }
body.ui2 .pb-tools { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 4px; background: var(--u2-panel); border: 1px solid var(--u2-line); border-radius: 999px; }
body.ui2 .pb-label { font-size: 12px; color: var(--tx4); padding: 0 6px 0 8px; }
body.ui2 .speed-btn { border: 0; background: transparent; border-radius: 999px; padding: 6px 11px; font-family: var(--body); font-size: 13px; color: var(--tx3); }
body.ui2 .speed-btn:hover { color: var(--tx); background: var(--u2-panel-2); }
body.ui2 .speed-btn.active { background: var(--u2-ink); color: #fff; }
body.ui2 .kbd-hint { font-size: 12.5px; color: var(--tx4); }
body.ui2 kbd { font-family: var(--body); font-size: 11.5px; background: var(--u2-panel); border: 1px solid var(--u2-line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }
body.ui2 .chapters-box { background: var(--u2-panel); border: 1px solid var(--u2-line); border-radius: var(--u2-r-lg); padding: 14px 18px; }
body.ui2 .chapters-box summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 500; list-style: none; }
body.ui2 .chapters-box summary::-webkit-details-marker { display: none; }
body.ui2 .chapter-chip { height: 36px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--u2-line-2); background: var(--u2-panel); font-size: 13.5px; color: var(--tx2); transition: background .15s, border-color .15s, transform .15s; }
body.ui2 .chapter-chip:hover { border-color: var(--tx4); color: var(--tx); transform: translateY(-1px); }
body.ui2 .ch-time { font-family: var(--body); font-size: 12px; background: var(--u2-soft); color: var(--u2-acc2); padding: 3px 8px; border-radius: 99px; }
body.ui2 .note-ts { padding: 0 4px; height: 28px; }
body.ui2 .note { padding: 12px 0; border-bottom: 1px solid var(--u2-line); display: flex; gap: 10px; align-items: flex-start; }
body.ui2 .note-text { flex: 1; margin: 2px 0; color: var(--tx2); }
body.ui2 .comment { padding: 14px 0; border-bottom: 1px solid var(--u2-line); }
body.ui2 .comment:last-child, body.ui2 .note:last-child { border-bottom: 0; }
body.ui2 .comment p { margin: 4px 0 0; color: var(--tx2); }
body.ui2 .comment-head { font-size: 13.5px; }
body.ui2 .quiz-q { border: 1px solid var(--u2-line); border-radius: var(--u2-r-md); padding: 14px 16px; margin: 0 0 10px; }
body.ui2 .quiz-q legend { font-weight: 500; padding: 0 6px; }
body.ui2 .material-aside { position: sticky; top: calc(var(--u2-top) + 10px); background: var(--u2-panel); border: 1px solid var(--u2-line); border-radius: var(--u2-r-xl); padding: 18px; box-shadow: var(--sh-card);
  max-height: calc(100vh - var(--u2-top) - 30px); overflow: auto; scrollbar-width: thin; }
body.ui2 .material-aside:empty { display: none; }
body.ui2 .material-aside h3 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--tx4); font-weight: 500; margin: 6px 4px 10px; font-family: var(--body); }
body.ui2 .material-aside h3 ~ h3 { margin-top: 20px; }
body.ui2 .material-aside .list { gap: 4px; }
body.ui2 .material-aside .row { padding: 9px 10px; border: 1px solid transparent; box-shadow: none; background: transparent; border-radius: var(--u2-r-md); }
body.ui2 .material-aside .row::before { display: none; }
body.ui2 .material-aside .row:hover { background: var(--u2-panel-2); transform: translateX(2px); }
body.ui2 .material-aside .row.is-current { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--u2-soft); }
body.ui2 .material-aside .row-fill { display: none; }
body.ui2 .material-aside .row-check { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--u2-panel-3); color: var(--tx3); font-size: 12px; }
body.ui2 .material-aside .row-check.on { background: var(--accent); color: var(--on-acc, #fff); }
body.ui2 .material-aside .row.is-current .row-check { background: var(--u2-ink); }
body.ui2 .material-aside .row-title { font-size: 14px; }
body.ui2 .material-aside .row-meta { font-family: var(--body); font-size: 12px; }
body.ui2 .material-aside .badge-accent { height: 20px; font-size: 11px; }
body.ui2 .material-aside > .progressbar { margin: 14px 4px 6px; }
body.ui2 .material-aside > .hint { margin: 0 4px; }
body.ui2 .attachments a { border-radius: var(--u2-r-md); border: 1px solid var(--u2-line); background: var(--u2-panel-2); padding: 12px; justify-content: space-between; transition: background .15s, border-color .15s; }
body.ui2 .attachments a:hover { background: #fff; border-color: var(--u2-line-2); }
body.ui2 .pdf-frame { border-radius: var(--u2-r-xl); border: 1px solid var(--u2-line); }

/* ── konto, powiadomienia, wyszukiwarka ──────────────────────────────── */
body.ui2 .cert-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
body.ui2 .cert-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--u2-r-md); background: var(--u2-panel-2); border: 1px solid var(--u2-line); flex-wrap: wrap; }
body.ui2 .cert-row-t { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
body.ui2 .grid { gap: 18px; }
body.ui2 .grid > .panel h3 { margin-top: 0; }
body.ui2 .notif-list { gap: 6px; }
body.ui2 .notif { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--u2-r-md); border: 1px solid var(--u2-line); color: var(--tx); background: var(--u2-panel-2); transition: background .15s, transform .15s; }
body.ui2 .notif:hover { background: #fff; transform: translateX(2px); }
body.ui2 .notif.is-unread { background: #fff; border-color: color-mix(in oklab, var(--accent) 40%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
body.ui2 .notif-date { font-size: 12.5px; color: var(--tx4); flex: none; }
body.ui2 .search-results { background: var(--u2-panel); border: 1px solid var(--u2-line); border-radius: var(--u2-r-xl); padding: 8px; box-shadow: var(--sh-card); }
body.ui2 .search-row { border-radius: var(--u2-r-md); color: var(--tx); transition: background .15s, transform .15s; }
body.ui2 .search-row:hover { background: var(--u2-panel-2); transform: translateX(2px); }
body.ui2 .sr-ico { background: var(--u2-soft); color: var(--u2-acc2); border-radius: 12px; }
body.ui2 .sr-meta { font-family: var(--body); display: flex; gap: 6px; flex-wrap: wrap; }

/* bloki treści */
body.ui2 .block { margin: 0; }
body.ui2 .tst, body.ui2 .faq-item, body.ui2 .block-text-sec { background: var(--u2-panel); border-radius: var(--u2-r-xl); border-color: var(--u2-line); }

/* ── stopka ──────────────────────────────────────────────────────────── */
.u2-foot { margin-top: 10px !important; background: var(--u2-panel); border: 1px solid var(--u2-line); border-radius: var(--u2-r-xl); padding: 28px 28px 18px; }
.u2-foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 28px; }
.u2-foot-brand p { color: var(--tx3); font-size: 14px; margin: 12px 0 14px; max-width: 36ch; }
.u2-soc { display: flex; gap: 8px; flex-wrap: wrap; }
.u2-soc a { width: 36px; height: 36px; border-radius: 50%; background: var(--u2-panel-2); border: 1px solid var(--u2-line); display: grid; place-items: center; color: var(--tx3); transition: background .15s, color .15s, transform .15s; }
.u2-soc a:hover { background: var(--u2-ink); color: #fff; transform: translateY(-2px); }
.u2-soc svg.i { width: 16px; height: 16px; }
.u2-foot nav { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.u2-foot b { font-weight: 500; font-size: 14px; display: block; margin-bottom: 4px; color: var(--tx); }
.u2-foot nav a { color: var(--tx3); width: fit-content; transition: color .15s, transform .15s; }
.u2-foot nav a:hover { color: var(--u2-acc2); transform: translateX(2px); }
.u2-foot-help { background: var(--u2-panel-2); border-radius: var(--u2-r-lg); padding: 16px; align-self: start; }
.u2-foot-help p { font-size: 13.5px; color: var(--tx3); margin: 0 0 12px; }
.u2-foot-help .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.u2-foot-bot, .u2-foot-mini { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--tx4); }
.u2-foot-bot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--u2-line); }
.u2-foot-mini { padding: 20px var(--u2-gut); }
.u2-powered { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--u2-line); color: var(--tx3) !important; transition: border-color .15s, color .15s; }
.u2-powered i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--u2-soft); }
.u2-powered:hover { border-color: var(--accent); color: var(--u2-acc2) !important; }

/* ── strony logowania ────────────────────────────────────────────────── */
.u2-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; max-width: 1080px; margin: clamp(10px, 4vh, 40px) auto 0; padding: 0 var(--u2-gut);
  min-height: calc(100vh - var(--u2-top) - 120px); align-items: stretch; }
.u2-auth-side { position: relative; overflow: hidden; border-radius: 28px 0 0 28px; padding: clamp(28px, 4vw, 48px); color: var(--on-acc, #fff); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; isolation: isolate;
  background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 60%, var(--u2-ink)), var(--u2-ink)); }
.u2-auth-side::before { content: ""; position: absolute; width: 480px; height: 480px; right: -180px; top: -200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--accent) 70%, transparent), transparent 65%); z-index: -1; opacity: .8; }
.u2-auth-side::after { content: ""; position: absolute; width: 260px; height: 260px; left: -80px; bottom: -120px; border-radius: 40%; background: rgba(255,255,255,.06); transform: rotate(20deg); z-index: -1; }
.u2-auth-side .eyebrow { color: rgba(255,255,255,.7) !important; }
.u2-auth-side b { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.u2-auth-side p { color: rgba(255,255,255,.75); margin: 0; }
.u2-auth-side ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.u2-auth-side li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: rgba(255,255,255,.9); }
.u2-auth-side li svg.i { width: 30px; height: 30px; padding: 7px; border-radius: 10px; background: rgba(255,255,255,.12); }
.u2-auth-main { background: var(--u2-panel); border: 1px solid var(--u2-line); border-left: 0; border-radius: 0 28px 28px 0; padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 14px; box-shadow: var(--sh-card); }
body.ui2 .u2-auth-main .auth-box { max-width: none; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
body.ui2 .u2-auth-main .auth-box h1 { font-size: 30px; margin-bottom: 6px; }
body.ui2 .u2-auth-main .auth-box .sub { margin: 0 0 8px; }
body.ui2 .u2-auth-main .form-actions .btn-primary { min-width: 160px; }
body.ui2 .u2-auth-main .item-row { padding: 10px 0; border-bottom: 1px solid var(--u2-line); }

/* ── okno vouchera ───────────────────────────────────────────────────── */
body.ui2 .vmod { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
body.ui2 .vmod[hidden] { display: none; }
body.ui2 .vmod-bg { position: absolute; inset: 0; background: rgba(10,20,16,.55); backdrop-filter: blur(4px); }
body.ui2 .vmod-box { position: relative; width: min(440px, 100%); background: #fff; border-radius: var(--u2-r-xl); padding: 28px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); animation: u2pop .3s var(--u2-ease); }
@keyframes u2pop { from { opacity: 0; transform: scale(.96) translateY(8px) } }
body.ui2 .vmod-box h3 { font-size: 20px; margin: 10px 0 4px; }
body.ui2 .vmod-box .btn { margin-top: 14px; width: 100%; }
body.ui2 .vmod-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--u2-panel-2); display: grid; place-items: center; cursor: pointer; color: var(--tx3); }
.u2-vmod-ic { width: 48px; height: 48px; border-radius: 15px; background: var(--u2-soft); color: var(--u2-acc2); display: grid; place-items: center; }

/* ── nawigacja na telefonie ──────────────────────────────────────────── */
.u2-bnav { display: none; }

/* pojawianie się przy przewijaniu (włącza skrypt, gdy przeglądarka to obsługuje) */
html.u2-rv [data-rv] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--u2-ease), transform .6s var(--u2-ease); }
html.u2-rv [data-rv].in { opacity: 1; transform: none; }

/* ── responsywność ───────────────────────────────────────────────────── */
@media (max-width: 1240px) {
  body.ui2 .material-main { grid-template-columns: minmax(0, 1fr) 300px; }
  .u2-foot-top { grid-template-columns: 1fr 1fr; }
  .u2-foot-brand, .u2-foot-help { grid-column: 1 / -1; }
}
@media (max-width: 1100px) { body.ui2 { --u2-gut: 20px; } }
@media (max-width: 980px) {
  .u2-r1 { grid-template-columns: minmax(0, 1fr); }
  .u2-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ui2 .material-main { grid-template-columns: minmax(0, 1fr); }
  body.ui2 .material-aside { position: static; max-height: none; }
  .u2-auth { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .u2-auth-side { border-radius: 24px 24px 0 0; min-height: 0; padding: 24px; }
  .u2-auth-side ul { display: none; }
  .u2-auth-main { border-left: 1px solid var(--u2-line); border-top: 0; border-radius: 0 0 24px 24px; }
}
@media (max-width: 820px) {
  body.ui2 { --u2-gut: 16px; --u2-top: 60px; }
  .u2-top { padding: 0 var(--u2-gut); gap: 10px; }
  .u2-seg { display: none; }
  .u2-hide-s { display: none !important; }
  .u2-shell { grid-template-columns: minmax(0, 1fr) !important; }
  .u2-rail { display: none; }
  .u2-rail-tog .ip { display: none; } .u2-rail-tog .ix { display: block; }
  body.u2-drawer .u2-rail { display: flex; position: fixed; left: 12px; top: 12px; bottom: 12px; height: auto; margin: 0; z-index: 60; width: min(300px, 84vw);
    box-shadow: 0 30px 60px -20px rgba(18,32,27,.45); animation: u2dr .28s var(--u2-ease); }
  body.u2-drawer .u2-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(18,32,27,.35); backdrop-filter: blur(2px); }
  body.u2-drawer { overflow: hidden; }
  @keyframes u2dr { from { transform: translateX(-30px); opacity: 0 } }
  .u2-main { padding: 4px var(--u2-gut) 96px; }
  .u2-bnav { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; background: var(--u2-ink); border-radius: 999px; padding: 6px; justify-content: space-around; box-shadow: 0 10px 30px -10px rgba(18,32,27,.5); }
  .u2-bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: rgba(255,255,255,.62) !important; font-size: 11px; padding: 6px 0; border-radius: 999px; }
  .u2-bnav a.on { background: rgba(255,255,255,.12); color: #fff !important; }
  .u2-bnav a:hover { text-decoration: none; color: #fff !important; }
  .u2-search:focus-within input[type=search], .u2-search input[type=search]:not(:placeholder-shown) { width: calc(100vw - 120px); }
  body.ui2 .mb-nav { margin-left: 0; width: 100%; }
  body.ui2 .pb-tools { margin-left: 0; }
  body.ui2 .kbd-hint { display: none; }
  .u2-auth { padding: 0 var(--u2-gut); }
}
@media (max-width: 620px) {
  body.ui2 { --u2-h1: 26px; }
  .u2-resume { grid-template-columns: minmax(0, 1fr); }
  .u2-courses { grid-template-columns: minmax(0, 1fr); }
  .u2-gauge svg { width: 88px; height: 88px; }
  .u2-card, body.ui2 .panel, body.ui2 .quiz-box { padding: 18px; border-radius: 20px; }
  .u2-foot { padding: 20px 18px 14px; }
  .u2-foot-top { grid-template-columns: 1fr 1fr; gap: 20px; }
  .u2-steps-meta { width: 100%; margin: 4px 0 0; }
  body.ui2 .pb-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.ui2 *, body.ui2 *::before, body.ui2 *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* drobne zgodności ze starszymi znacznikami */
body.ui2 .mb-item::before, body.ui2 .mb-item::after { display: none !important; content: none !important; }
body.ui2 .kbd-hint, body.ui2 .pb-label, body.ui2 .pb-resume, body.ui2 .size, body.ui2 .row-meta { font-family: var(--body); letter-spacing: 0; text-transform: none; }
.u2-rail .nav-badge { font-family: var(--body); }
body.ui2 .u2-auth-main .form-actions { gap: 6px 4px; }
body.ui2 .u2-auth-main .form-actions .btn-primary { flex: 1 0 100%; height: 48px; margin-bottom: 4px; }
body.ui2 .u2-auth-main .form-actions .btn-ghost { padding: 0 12px; height: 36px; font-size: 14px; color: var(--u2-acc2); }
body.ui2 .u2-auth-main .form-actions .btn-ghost[style*="margin-left:auto"] { margin-left: auto; }

/* ── panel akademii ──────────────────────────────────────────────────── */
.u2-bt small { display: block; font-family: var(--body); font-size: 11.5px; font-weight: 400; color: var(--tx4); letter-spacing: 0; margin-top: 1px; }
.u2-admin .u2-brand { line-height: 1.15; }
.u2-banner-soft { background: var(--u2-soft); color: var(--u2-acc2); border-radius: var(--u2-r-md); }
.u2-rail-plan { display: none !important; }
html.u2-menu-open .u2-rail-plan, body.u2-drawer .u2-rail-plan { display: block !important; width: auto !important; height: auto !important; border-radius: 14px !important;
  padding: 12px !important; background: var(--u2-panel-2); margin: 6px 0; font-size: 12.5px; color: var(--tx); white-space: nowrap; }
.u2-rail-plan .rp-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.u2-rail-plan .rp-h b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.u2-rail-plan .rp-h span { color: var(--tx4); font-size: 11.5px; }
.u2-rail-plan .rp-r { display: flex; justify-content: space-between; color: var(--tx3); margin: 6px 0 4px; }
.u2-rail-plan .progressbar { height: 5px; display: block; }
.u2-foot-panel { padding: 8px 0 0; }
/* tytuł podstrony - jeden wzór w panelu i u kursanta: tytuł po lewej, akcje po prawej, ta sama wysokość z przyciskami i bez */
body.ui2 .admin-head, body.ui2 .page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; min-height: 42px; margin: 0; background: none; border: 0; box-shadow: none; padding: 0; }
body.ui2 .admin-head > h1, body.ui2 .page-head > h1 { height: auto; padding: 0; background: none; border: 0; box-shadow: none; font-size: var(--u2-h1); line-height: 1.15; margin: 0; display: block; }
body.ui2 .admin-head > h1::before, body.ui2 .admin-head::before { display: none; }
body.ui2 .admin-head > *:not(h1), body.ui2 .page-head > *:not(h1) { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.ui2 .admin-head + .lead-under, body.ui2 .admin-head + p, body.ui2 .page-head + .lead-under, body.ui2 .page-head + p { margin-top: -10px !important; }
body.ui2 .stat-grid { gap: 14px; margin: 0; }
body.ui2 .stat { padding: 18px 20px; border-radius: var(--u2-r-lg); transition: transform .2s var(--u2-ease), box-shadow .2s; }
body.ui2 .stat:hover { transform: translateY(-2px); box-shadow: var(--sh-lift); }
body.ui2 .stat .l, body.ui2 .stat-label { font-family: var(--body); font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--tx3); font-weight: 400; }
body.ui2 .stat .n, body.ui2 .stat-value, body.ui2 .hstat-n { background: none; -webkit-text-fill-color: currentColor; color: var(--tx); font-family: var(--display); font-size: 30px; font-weight: 500; }
body.ui2 .dash3 { gap: 18px; }
body.ui2 .dash-card { border-radius: var(--u2-r-xl); padding: 22px; }
body.ui2 .dash-head h3 { font-size: 16px; margin: 0; }
body.ui2 .preset-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 14px; }
body.ui2 .preset { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; border-radius: var(--u2-r-md); border: 1px solid var(--u2-line-2); background: #fff; font-size: 13.5px; text-align: left; transition: border-color .15s, box-shadow .15s, transform .18s; }
body.ui2 .preset:hover { transform: translateY(-2px); border-color: var(--tx4); }
body.ui2 .preset.active { border-color: var(--accent); box-shadow: 0 0 0 4px var(--u2-soft); }
body.ui2 .preset-dots { gap: 0; height: 30px; border-radius: 9px; overflow: hidden; }
body.ui2 .preset-dots i { width: auto; height: 100%; border-radius: 0; flex: 1; transition: flex .3s; }
body.ui2 .preset:hover .preset-dots i:last-child { flex: 1.6; }
body.ui2 input[type=color] { width: 44px; height: 44px; padding: 3px; border-radius: 12px; border: 1px solid var(--u2-line-2); background: #fff; cursor: pointer; }
body.ui2 input[type=file] { min-height: 44px; border-radius: var(--u2-r-md); border: 1.5px dashed var(--u2-line-2); background: var(--u2-panel-2); padding: 8px 10px; font-size: 13.5px; width: 100%; }
body.ui2 input[type=file]:hover { border-color: var(--accent); background: var(--u2-soft-2); }
body.ui2 input[type=file]::file-selector-button { border: 0; background: var(--u2-ink); color: #fff; border-radius: 999px; padding: 7px 14px; margin-right: 10px; font: inherit; cursor: pointer; }
/* przełączniki zamiast pól wyboru */
body.ui2 label.check input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: 99px; background: var(--u2-panel-3);
  border: 1px solid var(--u2-line-2); position: relative; cursor: pointer; flex: none; transition: background .15s, border-color .15s; margin: 0; }
body.ui2 label.check input[type=checkbox]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s var(--u2-ease); }
body.ui2 label.check input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
body.ui2 label.check input[type=checkbox]:checked::after { transform: translateX(16px); }
body.ui2 label.check input[type=checkbox]:disabled { opacity: .5; cursor: not-allowed; }
body.ui2 label.check input[type=checkbox]:focus-visible { box-shadow: 0 0 0 4px var(--u2-soft); outline: none; }
body.ui2 label.check { gap: 12px; }
/* pasek zapisu */
body.ui2 .form-actions-sticky { position: sticky; bottom: 16px; z-index: 25; display: flex; align-items: center; gap: 12px; justify-content: flex-end;
  padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--u2-ink); border: 0; box-shadow: 0 20px 40px -18px rgba(18,32,27,.6); color: #fff; backdrop-filter: none;
  transition: opacity .25s, transform .3s var(--u2-ease); }
body.ui2 .form-actions-sticky .btn-primary { background: var(--accent); border-color: var(--accent); height: 40px; font-size: 14.5px; padding: 0 20px; }
body.ui2 .form-actions-sticky .btn-primary:hover { background: var(--u2-acc2); }
body.ui2 .form-actions-sticky::before { content: "Masz niezapisane zmiany"; margin-right: auto; font-size: 14px; color: rgba(255,255,255,.8); display: none; }
html.u2-js body.ui2 form.u2-watch:not(.dirty) .form-actions-sticky { opacity: 0; transform: translateY(24px) scale(.98); pointer-events: none; }
html.u2-js body.ui2 form.u2-watch.dirty .form-actions-sticky::before { display: block; }
/* układ ustawień: spis sekcji, formularz, podgląd */
.u2-set { display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.u2-set > form { min-width: 0; }
.u2-subnav { position: sticky; top: calc(var(--u2-top) + 10px); background: var(--u2-panel); border: 1px solid var(--u2-line); border-radius: var(--u2-r-xl); padding: 10px; box-shadow: var(--sh-card); display: flex; flex-direction: column; gap: 2px; }
.u2-subnav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--tx3); font-size: 14px; transition: background .15s, color .15s, transform .15s; }
.u2-subnav a:not(.on):hover { background: var(--u2-panel-2); color: var(--tx); transform: translateX(2px); }
.u2-subnav a.on { background: var(--u2-ink); color: #fff; }
.u2-subnav svg.i { width: 17px; height: 17px; }
.u2-sec-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--u2-soft); color: var(--u2-acc2); margin-right: 4px; }
.u2-sec-ic svg.i { width: 18px; height: 18px; }
body.ui2 .panel-head:has(.u2-sec-ic) { justify-content: flex-start; }
body.ui2 .stack-sections > section.panel { scroll-margin-top: calc(var(--u2-top) + 16px); transition: border-color .2s, box-shadow .2s; }
body.ui2 .stack-sections > section.panel:focus-within { border-color: color-mix(in oklab, var(--accent) 45%, transparent); box-shadow: 0 0 0 4px var(--u2-soft), var(--sh-card); }
.u2-prev { position: sticky; top: calc(var(--u2-top) + 10px); }
.u2-pv { border-radius: var(--u2-r-lg); overflow: hidden; border: 1px solid var(--u2-line); background: #f7f9f8; --pa: var(--accent); }
.u2-pv * { transition: background .35s, color .35s; }
.u2-pv-m { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: #fff; font-size: 13px; font-weight: 500; background: var(--u2-ink); }
.u2-pv-m i { width: 20px; height: 20px; border-radius: 6px; background: var(--pa); display: grid; place-items: center; font-style: normal; font-size: 11px; flex: none; }
.u2-pv-m span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u2-pv-h { padding: 18px 14px 16px; }
.u2-pv-h b { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.u2-pv-h p { font-size: 12px; color: var(--tx3); margin: 4px 0 12px; }
.u2-pv-btn { display: inline-block; padding: 7px 12px; border-radius: 99px; background: var(--pa); color: #fff; font-size: 12px; }
.u2-pv-c { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 14px; }
.u2-pv-c div { background: #fff; border-radius: 10px; padding: 6px; font-size: 11px; }
.u2-pv-c div i { display: block; aspect-ratio: 16/10; border-radius: 7px; background: linear-gradient(135deg, var(--pa), color-mix(in oklab, var(--pa) 30%, #fff)); margin-bottom: 5px; }
.u2-pv-c em { display: block; height: 4px; border-radius: 9px; background: var(--u2-panel-3); margin-top: 5px; overflow: hidden; }
.u2-pv-c em::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--pa); }
@media (max-width: 1320px) { .u2-set { grid-template-columns: 200px minmax(0, 1fr); } .u2-prev { display: none; } }
@media (max-width: 980px) {
  .u2-set { grid-template-columns: minmax(0, 1fr); }
  .u2-subnav { position: sticky; top: calc(var(--u2-top) + 6px); z-index: 20; flex-direction: row; overflow-x: auto; border-radius: 999px; padding: 6px; scrollbar-width: none; }
  .u2-subnav::-webkit-scrollbar { display: none; }
  .u2-subnav a { white-space: nowrap; border-radius: 999px; padding: 8px 14px; }
  body.ui2 .form-actions-sticky { bottom: 84px; }
}
@media (max-width: 620px) { body.ui2 .stat-grid { grid-template-columns: 1fr 1fr; } body.ui2 .stat .n, body.ui2 .stat-value { font-size: 24px; } }
body.ui2 .admin-head > h1 { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.u2-banner-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.u2-banner-new { background: var(--u2-panel); border: 1px solid var(--u2-line); border-radius: var(--u2-r-lg); padding: 14px 14px 14px 18px; box-shadow: var(--sh-card); }
.u2-banner-new > svg.i { color: var(--u2-acc2); }
.u2-preview-bar { border-radius: var(--u2-r-lg); }
.u2-preview-bar .btn-accent { background: var(--accent) !important; border-color: var(--accent) !important; }
/* panel operatora */
.u2-op .admin-head { justify-content: flex-start; }
.u2-op .admin-head .head-actions { margin-left: auto; }
.u2-mark-e { background: var(--accent); color: var(--on-acc, #fff); font-weight: 700; }

/* znak edum.pl w panelu operatora: plik logo zamiast litery */
.u2-mark.u2-logo{background:none;border-radius:0;display:block;object-fit:contain}

/* ── menu boczne w kolorze „atramentu” z przesuwanym wskaźnikiem aktywnej pozycji (ruch.js) ── */
.u2-rail { background: var(--u2-ink); border-color: transparent; box-shadow: 0 16px 36px -18px rgba(18,32,27,.55); }
.u2-rail { --rail-tx: #b9cbc3; --rail-on: color-mix(in oklab, var(--accent) 50%, #fff); }
.u2-rail a { color: var(--rail-tx); position: relative; z-index: 1; transition: color .2s, background .2s; }
.u2-rail a:hover { background: rgba(255,255,255,.09); color: #fff; }
.u2-rail a.on { background: var(--rail-on); color: var(--u2-ink); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent); }
.u2-rail a.on:hover { background: var(--rail-on); color: var(--u2-ink); }
.u2-rail-tog { background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); }
.u2-rail-tog:hover { background: rgba(255,255,255,.18); color: #fff; }
html.u2-menu-open .u2-rail-tog .ip, body.u2-drawer .u2-rail-tog .ip { color: #fff; }
.u2-rail-name, html.u2-menu-open .u2-rail .rh, body.u2-drawer .u2-rail .rh { color: rgba(185,203,195,.62); }
.u2-rail .rb { box-shadow: 0 0 0 2px var(--u2-ink); }
html.u2-menu-open .u2-rail .nav-badge, body.u2-drawer .u2-rail .nav-badge { color: rgba(255,255,255,.5); }
html.u2-menu-open .u2-rail a.on .nav-badge, body.u2-drawer .u2-rail a.on .nav-badge { color: color-mix(in oklab, var(--u2-ink) 70%, transparent) !important; }
html.u2-menu-open .u2-rail .rb:not(.alert), body.u2-drawer .u2-rail .rb:not(.alert) { background: rgba(255,255,255,.12); color: rgba(255,255,255,.8) !important; }
.u2-rail .nav-progress { background: rgba(255,255,255,.15); }
.u2-rail .nav-progress i { background: var(--rail-on); }
.u2-rail a.on .nav-progress { background: rgba(18,32,27,.15); }
.u2-rail a.on .nav-progress i { background: var(--u2-ink); }
.u2-rail-user .rl b { color: #fff; }
.u2-rail-user .rl small { color: rgba(255,255,255,.55); }
html.u2-menu-open .u2-rail-user, body.u2-drawer .u2-rail-user { background: rgba(255,255,255,.07); }
.u2-rail .u2-avatar.sm { box-shadow: 0 0 0 2px rgba(255,255,255,.2); }
html:not(.u2-menu-open) body:not(.u2-drawer) .u2-rail a[data-tip]:hover::after { left: 46px; box-shadow: 0 8px 20px -8px rgba(18,32,27,.5); animation: u2tip .16s ease-out both; }
@keyframes u2tip { from { opacity: 0; transform: translate(-6px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
@media (prefers-reduced-motion: reduce) { .u2-rail a[data-tip]:hover::after { animation: none !important; } }
/* kokpit w nowym wyglądzie: karty z nowych elementów jak pozostałe karty */
.ui2 .ed-card { border-radius: var(--u2-r-xl); box-shadow: var(--sh-card); border-color: var(--u2-line); padding: 22px; }
.ui2 .ed-card > h2, .ui2 .ed-card-h h2 { font-size: 1.05rem; font-weight: 500; }

.ui2 .ed-saved article { border-radius: var(--u2-r-xl); border-color: var(--u2-line); box-shadow: var(--sh-card); }


/* ═══════════════════ Porządki wyglądu (11.2026): jeden wzór dla akademii, panelu akademii i panelu operatora ═══════════════════ */
body.ui2 { --u2-grad: linear-gradient(135deg, color-mix(in oklab, var(--accent) 55%, #fff), var(--accent));
           --u2-band: radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--accent) 52%, transparent) 0%, color-mix(in oklab, var(--accent) 15%, transparent) 38%, transparent 65%),
                      linear-gradient(135deg, var(--u2-ink) 0%, color-mix(in oklab, var(--accent) 20%, var(--u2-ink)) 100%); }

/* nagłówek strony: tytuł (+ „i”), akcje po prawej z odstępem 10 px; opis pod „i” */
body.ui2 .admin-head, body.ui2 .page-head { gap: 10px 14px; }
body.ui2 .admin-head > *:not(h1), body.ui2 .page-head > *:not(h1), body.ui2 .head-actions, body.ui2 .cluster { gap: 10px; }
body.ui2 .admin-head + .opis-tresc, body.ui2 .page-head + .opis-tresc { margin-top: -6px !important; }
.panel-head .opis-i { margin-left: -2px; }
.panel .opis-tresc { margin: 0 0 14px !important; }

/* przyklejony nagłówek przy przewijaniu długich stron */
body.ui2 .u2-main > .admin-head, body.ui2 .u2-main > .page-head { position: sticky; top: calc(var(--u2-top) + 4px); z-index: 30; transition: background .2s, box-shadow .2s, padding .2s; border-radius: 18px; }
body.ui2 .u2-main > .admin-head.przyklejony, body.ui2 .u2-main > .page-head.przyklejony {
  background: color-mix(in oklab, var(--bg-root) 82%, transparent) !important; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -18px rgba(18,32,27,.35) !important; padding: 8px 14px !important; }
body.ui2 .u2-main > .admin-head.przyklejony > h1, body.ui2 .u2-main > .admin-head.przyklejony .head-t > h1,
body.ui2 .u2-main > .page-head.przyklejony > h1, body.ui2 .u2-main > .page-head.przyklejony .head-t > h1 { font-size: 22px; }

/* zakładki: jedna kontrolka (biała pigułka, aktywna ciemna, licznik) zawsze pod nagłówkiem */
body.ui2 .ed-seg, body.ui2 .ed-tabs { display: inline-flex; align-self: flex-start; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  gap: 4px; padding: 4px; background: var(--u2-panel, #fff); border: 1px solid var(--u2-line); border-radius: 99px; box-shadow: var(--sh-card); }
body.ui2 .ed-seg a, body.ui2 .ed-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 99px; white-space: nowrap;
  font-size: 14.5px; color: var(--tx2); text-decoration: none; border: 0; background: none; cursor: pointer; transition: background .2s, color .2s; }
body.ui2 .ed-seg a:hover, body.ui2 .ed-tabs button:hover { background: var(--u2-panel-2); color: var(--tx); }
body.ui2 .ed-seg a.on, body.ui2 .ed-tabs button.on { background: var(--u2-ink); color: #fff; }
body.ui2 .ed-seg em, body.ui2 .ed-tabs em { font-style: normal; font-size: 12px; padding: 0 7px; border-radius: 99px; background: var(--u2-panel-3); color: var(--tx3); line-height: 18px; }
body.ui2 .ed-seg a.on em, body.ui2 .ed-tabs button.on em { background: var(--accent); color: var(--on-acc, #fff); }
body.ui2 .strona-czesci { gap: 6px; }
body.ui2 .strona-czesci .btn { height: 32px; font-size: 13.5px; }

/* panele: nagłówek z kafelkiem ikony, akcje zawsze po prawej */
body.ui2 .panel-head > .head-actions, body.ui2 .panel-head > .btn:last-child, body.ui2 .panel-head > .badge:last-child, body.ui2 .panel-head > .count:last-child { margin-left: auto; }
body.ui2 .panel-head .head-t { flex-wrap: wrap; }
.u2-sec-ic { line-height: 1; font-size: 17px; }

/* ikony wyśrodkowane w kafelkach i przyciskach (bez odstępu „pod linijką”) */
body.ui2 .u2-ibtn, body.ui2 .u2-sec-ic, body.ui2 .ed-ic, body.ui2 .u2-mark { display: grid; place-items: center; }

/* przyciski: dwie wysokości, równe odstępy */
body.ui2 .btn { height: 40px; padding: 0 18px; font-size: 14.5px; }
body.ui2 .btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
body.ui2 .btn-lg { height: 46px; padding: 0 22px; font-size: 15.5px; }
body.ui2 .head-actions .btn { height: 40px; }
body.ui2 .form-actions, body.ui2 .actions { gap: 10px; align-items: center; }
body.ui2 td .btn + .btn, body.ui2 td form + form, body.ui2 td .btn + form, body.ui2 td form + .btn { margin-left: 8px; }
body.ui2 td > .inline-form { display: inline-flex; }
body.ui2 .btn-accent, body.ui2 .btn-mint { background: var(--u2-grad); border-color: transparent; color: var(--on-acc, #fff);
  box-shadow: 0 8px 20px -10px color-mix(in oklab, var(--accent) 70%, transparent); }

/* przełączniki: tekst wyśrodkowany do przełącznika; wielowierszowy opis wyrównany do góry */
body.ui2 label.check { display: flex; align-items: center; gap: 12px; line-height: 1.4; min-height: 24px; }
body.ui2 label.check input[type=checkbox] { margin: 0 !important; flex: none; align-self: center; position: relative; }
body.ui2 label.check:has(small), body.ui2 label.check:has(.hint) { align-items: flex-start; }
body.ui2 label.check:has(small) input[type=checkbox], body.ui2 label.check:has(.hint) input[type=checkbox] { align-self: flex-start; margin-top: 1px !important; }
body.ui2 .form-grid > div > label.check[style*="margin-top"] { margin-top: 0 !important; align-self: end; min-height: 44px; }
body.ui2 .form-grid > div:has(> label.check[style*="margin-top"]) { display: flex; align-items: flex-end; }

/* gradient w akcentach: pas powitalny, główny przycisk w pasie, kafelki, wyróżniony słupek */
body.ui2 .ed-band, body.ui2 .ed-plan { background: var(--u2-band) !important; }
body.ui2 .ed-band::after { display: none; }
body.ui2 .ed-btn-jasny { background: var(--u2-grad) !important; color: var(--on-acc, #fff) !important; box-shadow: 0 8px 20px -8px color-mix(in oklab, var(--accent) 70%, transparent); }
body.ui2 .ed-bars .dzis .sl, body.ui2 .ed-bars .sl.on { background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 55%, #fff), var(--accent)) !important; }
body.ui2 .u2-avatar { background: var(--u2-grad); color: var(--on-acc, #fff); }

/* komunikaty: w rogu ekranu, znikają same (błędy zostają do zamknięcia) */
body.ui2 .flash.tost, html.js body.ui2 .u2-main > .flash { position: fixed; right: 20px; top: calc(var(--u2-top) + 8px); z-index: 200; max-width: min(420px, calc(100vw - 32px)); margin: 0 !important;
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px 12px 16px; border-radius: 14px; background: var(--u2-ink) !important; color: #fff !important;
  border: 0 !important; box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); animation: tost-in .35s var(--u2-ease); }
body.ui2 .flash.tost::before, html.js body.ui2 .u2-main > .flash::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--accent); }
body.ui2 .flash-err.tost::before, html.js body.ui2 .u2-main > .flash-err::before { background: var(--u2-coral); }
body.ui2 .flash.tost + .flash.tost, html.js body.ui2 .u2-main > .flash + .flash { top: calc(var(--u2-top) + 76px); }
.tost-x { margin-left: auto; background: none; border: 0; color: #b9cbc3; cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 4px; }
.tost-x:hover { color: #fff; }
body.ui2 .flash.tost.znika { opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
@keyframes tost-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* przełącznik trybu ciemnego */
.u2-motyw .ksiezyc { display: block; } .u2-motyw .slonce { display: none; }
html[data-motyw="ciemny"] .u2-motyw .ksiezyc { display: none; } html[data-motyw="ciemny"] .u2-motyw .slonce { display: block; }

/* tryb ciemny panelu */
html[data-motyw="ciemny"] body.ui2 {
  --bg-root: #0d1714; --bg-glass: #15231e; --bg-glass2: #1a2b25; --bg-glass3: #15231e; --bg-input: #101c18;
  --u2-panel: #15231e; --u2-panel-2: #1a2b25; --u2-panel-3: #22362f;
  --tx: #e8f0ec; --tx2: #c7d5cf; --tx3: #93a8a0; --tx4: #6f857d;
  --u2-line: rgba(232,240,236,.08); --u2-line-2: rgba(232,240,236,.16);
  --panel: #15231e; --panel-2: #1a2b25; --ink: var(--tx); --muted: var(--tx3); --paper: var(--bg-root);
  --u2-acc2: color-mix(in oklab, var(--accent) 70%, #fff); --acc-text: color-mix(in oklab, var(--accent) 70%, #fff);
  --sh-card: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px -18px rgba(0,0,0,.6);
  color-scheme: dark;
}
html[data-motyw="ciemny"] body.ui2 :is(.panel, .card, .ed-card, .table-wrap, .u2-seg, .ed-seg, .ed-tabs, .ed-tile, .ed-kpi, .ed-saved article, .stat, .kpi, .item-row, .paleta, .zmiany-pasek, .u2-ibtn, .u2-szukaj, .opis-i) {
  background-color: var(--u2-panel) !important; color: var(--tx); border-color: var(--u2-line) !important; }
html[data-motyw="ciemny"] body.ui2 :is(input, select, textarea):not([type=checkbox]):not([type=radio]) { background: var(--bg-input) !important; color: var(--tx) !important; border-color: var(--u2-line-2) !important; }
html[data-motyw="ciemny"] body.ui2 :is(h1, h2, h3, h4, strong, b, label, th, td, .u2-bt, .u2-brand) { color: var(--tx); }
html[data-motyw="ciemny"] body.ui2 :is(.hint, .lead-under, small, .muted, .panel-sub) { color: var(--tx3); }
html[data-motyw="ciemny"] body.ui2 table.data th { background: var(--u2-panel-2) !important; }
html[data-motyw="ciemny"] body.ui2 table.data td { border-color: var(--u2-line) !important; }
html[data-motyw="ciemny"] body.ui2 .btn-outline, html[data-motyw="ciemny"] body.ui2 .btn:not(.btn-primary):not(.btn-accent):not(.btn-danger) { background: var(--u2-panel-2); color: var(--tx); border-color: var(--u2-line-2); }
html[data-motyw="ciemny"] body.ui2 .btn-primary { background: var(--u2-grad); color: var(--on-acc, #fff); border-color: transparent; }
html[data-motyw="ciemny"] body.ui2 .u2-seg a.on, html[data-motyw="ciemny"] body.ui2 .ed-seg a.on, html[data-motyw="ciemny"] body.ui2 .ed-tabs button.on { background: var(--tx); color: #0d1714; }
html[data-motyw="ciemny"] body.ui2 .u2-rail { background: #08110e; }
html[data-motyw="ciemny"] body.ui2 .cert-warn { background: rgba(241,181,70,.10) !important; border-color: rgba(241,181,70,.25) !important; }
html[data-motyw="ciemny"] body.ui2 code { background: var(--u2-panel-3); color: var(--tx); }
html[data-motyw="ciemny"] body.ui2 .ed-band, html[data-motyw="ciemny"] body.ui2 .ed-plan { box-shadow: 0 0 0 1px var(--u2-line); }

@media (prefers-reduced-motion: reduce) {
  .szkielet, img.ladowanie { animation: none; }
  .zmiany-pasek, body.ui2 .flash.tost, .paleta, .opis-tresc { transition: none; animation: none; }
}
@media (max-width: 760px) {
  body.ui2 .u2-main > .admin-head, body.ui2 .u2-main > .page-head { position: static; }
  body.ui2 .flash.tost { left: 16px; right: 16px; max-width: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   Układ w stylu panelu lh - przeniesiony 1:1 z makiety „edum - wygląd w stylu panelu lh”
   (plansze: Panel akademii - pulpit, Akademia - kokpit kursanta, Kolory i elementy).
   Barwy --lh-aside, --lh-aside-d, --lh-mint, --lh-tint liczy lh_paleta() z akcentu akademii.
   Menu domyślnie rozwinięte (html.u2-menu-open), zwijane do ikon przyciskiem w pasie marki.
   ══════════════════════════════════════════════════════════════════════ */
body.ui2 {
  --u2-top: 65px; --u2-rail: 72px; --u2-gut: 32px;
  --tx: #1e2a26; --tx2: #3b4a44; --tx3: #6b7a74; --tx4: #8a9792;
  --bg-root: #eef2f0; --u2-panel-2: #f4f7f6; --u2-panel-3: #eef2f0;
  --u2-line: #eef2f0; --u2-line-2: #dce5e1;
  --u2-r-xl: 12px; --u2-r-lg: 12px; --u2-r-md: 8px; --u2-r-sm: 8px; --r-sm: 8px; --r: 8px; --r-lg: 12px; --r-xl: 12px;
  --sh-card: 0 0 30px rgba(20,60,45,.06);
  --lh-tx: #e2eee9; --lh-ic: #7dc3a8; --lh-h: #8fbfad;
  font-size: 13px; line-height: 1.5; color: var(--tx); background-image: none;
}
html.u2-menu-open body.ui2, html.u2-menu-open .u2-shell { --u2-rail: 265px; }
body.ui2 h1, body.ui2 h2, body.ui2 h3 { letter-spacing: 0; color: var(--tx); }
body.ui2 h1 { font-weight: 700; } body.ui2 h2, body.ui2 h3 { font-weight: 700; }
body.ui2 .hint, body.ui2 .lead-under, body.ui2 .panel-sub { font-size: 12.5px; color: var(--tx3); }
body.ui2 :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=range]) { font-size: 13px; border-radius: 8px; border-color: var(--u2-line-2); min-height: 44px; }
body.ui2 :is(input, select, textarea):focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); }
body.ui2 label { font-weight: 600; }

/* ── belka (header) ── */
body.ui2 .u2-top { height: var(--u2-top); padding: 0 24px 0 0; gap: 8px; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 0 40px rgba(20,60,45,.08); z-index: 45; }
body.ui2 .u2-top.scr { box-shadow: 0 0 40px rgba(20,60,45,.12); }
body.ui2 .u2-top > .u2-brand { align-self: stretch; flex: 0 0 var(--u2-rail); width: var(--u2-rail); padding: 0 25px; gap: 10px; background: var(--lh-aside-d);
  color: #fff !important; overflow: hidden; font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
body.ui2 .u2-top > .u2-brand .u2-bt { line-height: 1.2; }
body.ui2 .u2-top > .u2-brand .u2-bt small { display: block; color: #9fd1be !important; font-weight: 500; font-size: 12px; letter-spacing: 0; }
body.ui2 .u2-top > .u2-brand .u2-mark:not(.u2-logo) { width: 32px; height: 32px; border-radius: 9px; background: var(--lh-mint); color: #06301f; font-size: 17px; font-weight: 700; }
body.ui2 .u2-top > .u2-brand .u2-logo:not(.u2-mark) { height: 34px; max-width: 150px; background: #fff; border-radius: 10px; padding: 4px; }
html:not(.u2-menu-open) body.ui2 .u2-top > .u2-brand { justify-content: center; padding: 0; }
html:not(.u2-menu-open) body.ui2 .u2-top > .u2-brand .u2-bt { display: none; }
html:not(.u2-menu-open) body.ui2 .u2-top > .u2-brand .u2-logo:not(.u2-mark) { max-width: 46px; }
/* skróty tekstowe z ikonami (jak „Nasze DNS / Pomoc / Poczta” w lh) */
body.ui2 .lh-skroty { display: flex; flex-wrap: wrap; gap: 2px; margin-left: 16px; }
body.ui2 .lh-top-a, body.ui2 .lh-skroty .u2-szukaj { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 8px; border: 0;
  background: transparent; color: #5b6b65 !important; font: 500 13px var(--body); cursor: pointer; text-decoration: none; white-space: nowrap; }
body.ui2 .lh-top-a:hover, body.ui2 .lh-skroty .u2-szukaj:hover { background: #f1f6f4; color: var(--u2-acc2) !important; text-decoration: none; }
body.ui2 .lh-top-a svg.i, body.ui2 .lh-skroty .u2-szukaj svg.i { width: 17px; height: 17px; }
body.ui2 .lh-skroty .u2-szukaj kbd { font: 11px var(--body); color: #7a8983; border: 1px solid #dce5e1; border-radius: 5px; padding: 0 6px; background: none; }
body.ui2 .lh-top-a.lh-wyloguj { color: #b42318 !important; }
body.ui2 .lh-top-a.lh-wyloguj:hover { background: #fdecec; color: #b42318 !important; }
body.ui2 .u2-top-end { margin-left: auto; gap: 4px; }
body.ui2 .u2-ibtn { width: 44px; height: 44px; border-radius: 8px; border: 0; background: transparent; color: #5b6b65; }
body.ui2 .u2-ibtn:hover { background: #f1f6f4; color: var(--u2-acc2); transform: none; }
body.ui2 .u2-ibtn:hover svg.i { animation: none; }
body.ui2 .u2-ibtn.is-on { background: var(--u2-acc2); color: #fff; }
body.ui2 .u2-dot { top: 11px; right: 12px; width: 8px; height: 8px; background: #e5484d; box-shadow: none; }
body.ui2 .lh-konto .u2-avatar, body.ui2 .u2-top .u2-avatar { width: 32px; height: 32px; border-radius: 8px; font-size: 12.5px; font-weight: 600; background: var(--lh-tint);
  color: var(--u2-acc2) !important; box-shadow: none; }
body.ui2 .u2-top .u2-avatar:hover { transform: none; }
/* wyszukiwarka kursanta: pole zawsze widoczne (jak w makiecie kokpitu) */
body.ui2 .u2-top .u2-search { margin-left: 24px; flex: 0 1 380px; height: 42px; background: #f4f7f6; border-radius: 8px; padding: 0 14px; gap: 10px; color: #6b7a74; }
body.ui2 .u2-top .u2-search label.u2-ibtn { width: auto; height: auto; background: none; color: inherit; }
body.ui2 .u2-top .u2-search input[type=search] { position: static; width: 100%; opacity: 1; padding: 0; height: 42px; min-height: 0; border: 0; background: none; box-shadow: none; font-size: 13px; color: var(--tx); }
body.ui2 .u2-top .u2-search input[type=search]:focus { box-shadow: none; outline: none; }
body.ui2 .u2-top .u2-search:focus-within { box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 35%, transparent); }

/* ── menu boczne (aside) ── */
body.ui2 .u2-rail { position: sticky; top: var(--u2-top); height: calc(100vh - var(--u2-top)); margin: 0; width: auto; border: 0; border-radius: 0; box-shadow: none;
  background: var(--lh-aside); padding: 14px 0 24px; gap: 0; align-items: center; z-index: 30;
  overflow: hidden auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
body.ui2 .u2-rail::-webkit-scrollbar { width: 6px; display: block; } body.ui2 .u2-rail::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 6px; }
html.u2-menu-open body.ui2 .u2-rail { width: auto; padding: 14px 0 24px; align-items: stretch; overflow: hidden auto; scrollbar-width: thin; }
body.ui2 .u2-rail a { color: var(--lh-tx); box-shadow: none; transition: background .15s, color .15s; }
body.ui2 .u2-rail a svg.i { width: 18px; height: 18px; color: var(--lh-ic); stroke-width: 2; }
body.ui2 .u2-rail a:hover { background: var(--lh-aside-d); color: #fff; }
body.ui2 .u2-rail a.on, body.ui2 .u2-rail a.on:hover { background: var(--lh-aside-d); color: #fff; box-shadow: none; }
body.ui2 .u2-rail a.on svg.i, body.ui2 .u2-rail a:hover svg.i { color: var(--lh-mint); }
html.u2-menu-open body.ui2 .u2-rail a { width: auto; height: auto; min-height: 41px; border-radius: 0; padding: 10px 25px; gap: 12px; font-size: 13px; font-weight: 500; justify-content: flex-start; }
html.u2-menu-open body.ui2 .u2-rail a.u2-path { min-height: 50px; }
html.u2-menu-open body.ui2 .u2-rail .rh { margin: 22px 25px 6px; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lh-h); }
html:not(.u2-menu-open) body:not(.u2-drawer) .u2-rail a { width: 44px; height: 44px; border-radius: 8px; }
body.ui2 .u2-rail .rb { box-shadow: 0 0 0 2px var(--lh-aside); background: #e5484d; }
html.u2-menu-open body.ui2 .u2-rail .rb:not(.alert) { background: rgba(255,255,255,.12); color: #fff !important; }
html.u2-menu-open body.ui2 .u2-rail a.on .rb { background: var(--lh-mint); color: #06301f !important; }
html.u2-menu-open body.ui2 .u2-rail .nav-badge, html.u2-menu-open body.ui2 .u2-rail a.on .nav-badge { color: #9fd1be !important; font-size: 12px; }
body.ui2 .u2-rail .nav-progress, body.ui2 .u2-rail a.on .nav-progress { background: rgba(255,255,255,.14); height: 4px; }
body.ui2 .u2-rail .nav-progress i, body.ui2 .u2-rail a.on .nav-progress i { background: var(--lh-mint); }
/* przycisk zwijania: w pasie marki (komputer), w szufladzie zamyka menu (telefon) */
body.ui2 .u2-rail-top { justify-content: center; margin: 0 0 8px; width: 100%; }
body.ui2 .u2-rail-name { display: none !important; }
body.ui2 .u2-rail-tog { width: 44px; height: 44px; border-radius: 8px; background: transparent; color: #9fd1be; }
body.ui2 .u2-rail-tog:hover { background: rgba(255,255,255,.08); color: #fff; }
body.ui2 .u2-rail-tog .ip { display: none; }
body.ui2 .u2-rail-tog::before { content: ""; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m11 17-5-5 5-5'/%3E%3Cpath d='m18 17-5-5 5-5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m11 17-5-5 5-5'/%3E%3Cpath d='m18 17-5-5 5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
html:not(.u2-menu-open) body.ui2 .u2-rail-tog::before { transform: scaleX(-1); }
@media (min-width: 821px) {
  html.u2-menu-open body.ui2 .u2-rail { z-index: 46; }
  body.ui2 .u2-rail .lh-tylko-tel { display: none !important; }
  body.ui2 .u2-rail a[href="/logout.php"], body.ui2 .u2-rail a[href="/superadmin/logout.php"] { display: none !important; }
}
/* pole „Potrzebujesz pomocy?” / pakiet na dole menu */
body.ui2 .lh-pomoc, html.u2-menu-open body.ui2 .u2-rail-plan { margin: 28px 20px 0 !important; padding: 18px !important; border-radius: 12px !important; background: var(--lh-aside-d) !important;
  color: #d4e9e0 !important; display: block; width: auto !important; height: auto !important; }
body.ui2 .lh-pomoc b { display: block; color: #fff; font-size: 13px; margin-bottom: 4px; }
body.ui2 .lh-pomoc p { margin: 0 0 12px; font-size: 12px; }
html:not(.u2-menu-open) body:not(.u2-drawer) .lh-pomoc { display: none; }
body.ui2 .u2-rail-plan .rp-h b { color: #fff; font-size: 13px; }
body.ui2 .u2-rail-plan .rp-h span, body.ui2 .u2-rail-plan .rp-r { color: #9fd1be; font-size: 12px; }
body.ui2 .u2-rail-plan .progressbar { background: rgba(255,255,255,.14); height: 6px; border-radius: 6px; }
body.ui2 .u2-rail-plan .progressbar > span { background: var(--lh-mint) !important; border-radius: 6px; }
body.ui2 .u2-rail .sp { flex: 1 0 12px; }

/* ── obszar treści: pasek tytułu (subheader) i odstępy kart ── */
body.ui2 .u2-main { padding: 0 var(--u2-gut) 40px; gap: 28px; }
body.ui2 .u2-main > .admin-head, body.ui2 .u2-main > .page-head { order: -1; margin: 0 calc(-1 * var(--u2-gut)) !important; padding: 18px var(--u2-gut); min-height: 76px;
  background: #fff; border-radius: 0; border-top: 1px solid var(--u2-line); top: var(--u2-top); box-shadow: none; align-items: center; }
body.ui2 .u2-main > .admin-head.przyklejony, body.ui2 .u2-main > .page-head.przyklejony { background: #fff !important; backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: 18px var(--u2-gut) !important; box-shadow: 0 10px 30px -18px rgba(18,32,27,.25) !important; }
body.ui2 { --u2-h1: 20px; }
body.ui2 .u2-main > .admin-head h1, body.ui2 .u2-main > .page-head h1,
body.ui2 .u2-main > :is(.admin-head, .page-head).przyklejony h1, body.ui2 .u2-main > :is(.admin-head, .page-head).przyklejony .head-t > h1 { font-size: 20px; font-weight: 700; margin: 0; line-height: 1.3; }
body.ui2 .lh-podtytul { display: inline-flex; align-items: center; gap: 14px; color: var(--tx3); font-weight: 500; }
body.ui2 .lh-podtytul::before { content: ""; width: 1px; height: 20px; background: var(--u2-line-2); }
body.ui2 .u2-main:not(:has(> .admin-head, > .page-head)) { padding-top: 28px; }
body.ui2 .u2-main > :is(.admin-head, .page-head) ~ * { max-width: 1320px; }

/* ── ostrzeżenia jako karty (jak „Uzupełnij dane do faktury”) ── */
body.ui2 .u2-banner { border: 0; border-radius: 12px; box-shadow: var(--sh-card); padding: 18px 24px; gap: 16px; font-size: 13px; align-items: center; }
body.ui2 .u2-banner > svg.i { width: 44px; height: 44px; padding: 12px; border-radius: 10px; flex: none; }
body.ui2 .u2-banner-amber { background: #fff8ec; color: #6b5a3a; }
body.ui2 .u2-banner-amber > svg.i { background: #ffe9c2; color: #8a5a00; }
body.ui2 .u2-banner-amber strong { color: var(--tx); }
body.ui2 .u2-banner-soft { background: #fff; }
body.ui2 .u2-banner-soft > svg.i { background: var(--lh-tint); color: var(--u2-acc2); }

/* ── karty ── */
body.ui2 .panel, body.ui2 .quiz-box, body.ui2 .table-wrap, body.ui2 .card, body.ui2 .side-panel, body.ui2 .stat, body.ui2 .u2-card, body.ui2 .ed-card {
  border: 0; border-radius: 12px; box-shadow: var(--sh-card); background: #fff; }
body.ui2 .panel, body.ui2 .quiz-box { padding: 24px 28px; --panel-pad: 28px; }
body.ui2 .panel > .panel-head { margin: -24px -28px 24px; padding: 20px 28px; border-bottom: 1px solid var(--u2-line); }
body.ui2 .panel-head h2, body.ui2 .panel > h2, body.ui2 .u2-card-head h2, body.ui2 .u2-card-head h3 { font-size: 16px; font-weight: 700; }
body.ui2 table.data th { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #7a8983; background: none !important; }
body.ui2 table.data td { font-size: 13px; border-top: 1px dashed #e4eae7; }

/* ── przyciski ── */
body.ui2 .btn { height: 40px; padding: 0 18px; border-radius: 8px; font: 600 13px var(--body); border: 0; }
body.ui2 .btn-sm { height: 34px; padding: 0 14px; font-size: 12px; }
body.ui2 .btn-lg { height: 46px; padding: 0 24px; font-size: 13px; }
body.ui2 .btn-primary { background: var(--accent); color: var(--on-acc, #fff); }
body.ui2 .btn-primary:hover, body.ui2 .btn-primary:focus-visible { background: color-mix(in oklab, var(--accent) 88%, #000); color: var(--on-acc, #fff); transform: none; box-shadow: none; }
body.ui2 .btn:not(.btn-primary):not(.btn-accent):not(.btn-danger):not(.btn-ghost):not(.lh-btn-mint):not(.lh-btn-szklo) { background: var(--lh-tint); color: var(--u2-acc2); }
body.ui2 .btn:not(.btn-primary):not(.btn-accent):not(.btn-danger):not(.btn-ghost):not(.lh-btn-mint):not(.lh-btn-szklo):hover { background: color-mix(in oklab, var(--accent) 17%, #fff); color: var(--u2-acc2); }
body.ui2 .btn-danger { background: #fdecec; color: #b42318; }
body.ui2 .btn-danger:hover { background: #fbd9d9; color: #b42318; }
body.ui2 .lh-btn-mint { background: var(--lh-mint); color: #06301f !important; }
body.ui2 .lh-btn-mint:hover { filter: brightness(.95); }
body.ui2 .lh-btn-szklo { background: rgba(255,255,255,.12); color: #fff !important; }
body.ui2 .lh-btn-szklo:hover { background: rgba(255,255,255,.2); }
body.ui2 .lh-btn-szary { background: #f4f7f6 !important; color: #5b6b65 !important; }
body.ui2 .ed-seg, body.ui2 .ed-tabs { border: 0; border-radius: 10px; padding: 4px; box-shadow: none; background: #f4f7f6; }
body.ui2 .ed-seg a, body.ui2 .ed-tabs button { height: 34px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: #5b6b65; }
body.ui2 .ed-seg a.on, body.ui2 .ed-tabs button.on { background: var(--lh-tint); color: var(--u2-acc2); }
body.ui2 .ed-seg a.on em, body.ui2 .ed-tabs button.on em { background: var(--u2-acc2); color: #fff; }
body.ui2 .u2-subnav { border: 0; border-radius: 12px; }
body.ui2 .u2-subnav a { border-radius: 8px; font-size: 13px; }
body.ui2 .u2-subnav a.on, body.ui2 .u2-subnav a.on:hover { background: var(--lh-tint); color: var(--u2-acc2); }
body.ui2 .badge { border-radius: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; }
body.ui2 .progressbar { height: 8px; border-radius: 8px; background: #eef2f0; }
body.ui2 .progressbar > span, body.ui2 .progressbar > i { border-radius: 8px; background: var(--accent); }

/* ── elementy makiety (pulpit panelu i kokpit kursanta) ── */
body.ui2 .lh-card { background: #fff; border-radius: 12px; box-shadow: var(--sh-card); min-width: 0; }
body.ui2 .lh-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 28px; border-bottom: 1px solid var(--u2-line); flex-wrap: wrap; }
body.ui2 .lh-card-h h2, body.ui2 .lh-card-h h3 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
body.ui2 .lh-card-b { padding: 24px 28px; }
body.ui2 .lh-g3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
body.ui2 .lh-g2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }
body.ui2 .lh-g-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
body.ui2 .lh-ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--lh-tint); color: var(--u2-acc2); }
body.ui2 .lh-ico svg.i { width: 20px; height: 20px; stroke-width: 2; }
body.ui2 .lh-ico.amber { background: #fff1dd; color: #8a5a00; } body.ui2 .lh-ico.blue { background: #e8f0ff; color: #2b4fa8; }
body.ui2 .lh-sep { height: 1px; background: var(--u2-line); margin: 20px 0; }
body.ui2 .lh-link-s { display: inline-flex; align-items: center; gap: 4px; color: var(--tx3) !important; font-size: 12px; font-weight: 500; }
body.ui2 .lh-link-s:hover { color: var(--u2-acc2) !important; }
body.ui2 .lh-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
body.ui2 .lh-badge.ok { background: #e3f6ee; color: #0b6b47; } body.ui2 .lh-badge.warn { background: #fff4de; color: #8a5a00; }
body.ui2 .lh-badge.mute { background: #f1f4f3; color: #5b6b65; } body.ui2 .lh-badge.err { background: #fdecec; color: #b42318; } body.ui2 .lh-badge.blue { background: #e8f0ff; color: #2b4fa8; }
body.ui2 .lh-bar { height: 8px; border-radius: 8px; background: #eef2f0; overflow: hidden; }
body.ui2 .lh-bar > i { display: block; height: 100%; border-radius: 8px; background: var(--accent); }
body.ui2 .lh-bar > i.ost { background: #e4b04a; } body.ui2 .lh-bar > i.kryt { background: #e5484d; }
body.ui2 .lh-licz { display: flex; align-items: center; gap: 16px; }
body.ui2 .lh-licz > div { flex: 1; min-width: 0; }
body.ui2 .lh-licz b { display: block; font-weight: 600; font-size: 14px; }
body.ui2 .lh-licz > strong { font-size: 22px; font-weight: 700; }
body.ui2 .lh-limit { display: flex; flex-direction: column; gap: 8px; }
body.ui2 .lh-limit > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
body.ui2 .lh-limit > div:first-child span:first-child { font-weight: 600; }
body.ui2 .lh-limit > div:first-child span:last-child { color: var(--tx3); }
/* baner w kolorze menu (okres próbny, kontynuacja nauki) */
body.ui2 .lh-promo { background: var(--lh-aside); color: #fff; padding: 32px 36px; border-radius: 12px; box-shadow: var(--sh-card);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
body.ui2 .lh-promo::after { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 48px solid color-mix(in oklab, var(--lh-mint) 14%, transparent); pointer-events: none; }
body.ui2 .lh-promo > * { position: relative; z-index: 1; }
body.ui2 .lh-promo .lh-eyebrow { color: var(--lh-mint); }
body.ui2 .lh-promo h2 { margin: 0 0 10px; font-size: 26px; font-weight: 700; line-height: 1.25; color: #fff; max-width: 640px; }
body.ui2 .lh-promo p { margin: 0; color: #d4e9e0; max-width: 620px; }
body.ui2 .lh-promo .btn { height: 46px; padding: 0 26px; }
body.ui2 .lh-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--u2-acc2); margin-bottom: 10px; display: block; }
/* karta ostrzeżenia */
body.ui2 .lh-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; border-radius: 12px; background: #fff8ec; box-shadow: var(--sh-card); }
body.ui2 .lh-alert > div { display: flex; align-items: center; gap: 16px; }
body.ui2 .lh-alert .lh-ico { background: #ffe9c2; color: #8a5a00; }
body.ui2 .lh-alert b { display: block; font-size: 15px; font-weight: 700; color: var(--tx); }
body.ui2 .lh-alert span { color: #6b5a3a; }
body.ui2 .lh-alert .btn { background: #8a5a00 !important; color: #fff !important; }
/* oś aktywności */
body.ui2 .lh-os { display: flex; flex-direction: column; gap: 18px; }
body.ui2 .lh-os > div { display: flex; gap: 14px; }
body.ui2 .lh-os > div > i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: none; }
body.ui2 .lh-os > div > i.mint { background: var(--lh-mint); } body.ui2 .lh-os > div > i.amber { background: #e4b04a; } body.ui2 .lh-os > div > i.szary { background: #b9c6c1; }
body.ui2 .lh-os small { display: block; color: var(--tx3); font-size: 12px; }
body.ui2 .lh-os .btn { margin-left: auto; flex: none; }
/* tabela kursantów */
body.ui2 .lh-tab { width: 100%; border-collapse: collapse; min-width: 640px; }
body.ui2 .lh-tab th { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #7a8983; text-align: left; padding: 0 12px 12px; }
body.ui2 .lh-tab td { padding: 14px 12px; border-top: 1px dashed #e4eae7; font-size: 13px; vertical-align: middle; }
body.ui2 .lh-osoba { display: flex; align-items: center; gap: 12px; }
body.ui2 .lh-osoba b { display: block; font-weight: 600; }
body.ui2 .lh-osoba small { display: block; color: var(--tx3); font-size: 12px; }
body.ui2 .lh-av { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
body.ui2 .lh-av.k1 { background: #e3f6ee; color: #0b6b47; } body.ui2 .lh-av.k2 { background: #e8f0ff; color: #2b4fa8; } body.ui2 .lh-av.k3 { background: #fff1e0; color: #8a4b00; }
body.ui2 .lh-av.k4 { background: #f1f4f3; color: #5b6b65; } body.ui2 .lh-av.k5 { background: #f6e8f3; color: #8a2d6b; }
body.ui2 .lh-postep { display: flex; align-items: center; gap: 10px; min-width: 150px; }
body.ui2 .lh-postep .lh-bar { flex: 1; }
body.ui2 .lh-postep span { font-weight: 600; min-width: 36px; text-align: right; }
/* kokpit: kontynuacja nauki */
body.ui2 .lh-kont { display: flex; flex-wrap: wrap; overflow: hidden; }
body.ui2 .lh-kont-t { flex: 1 1 420px; padding: 32px 36px; display: flex; flex-direction: column; gap: 14px; justify-content: center; min-width: 0; }
body.ui2 .lh-kont-t h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.3; }
body.ui2 .lh-kont-t h2 a { color: inherit; }
body.ui2 .lh-kont-t .lh-eyebrow { margin: 0; }
body.ui2 .lh-kont-t .meta { color: var(--tx3); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
body.ui2 .lh-kont-t .lh-postep { max-width: 440px; }
body.ui2 .lh-kont-t .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
body.ui2 .lh-kont-t .btns .btn { height: 46px; padding: 0 24px; }
body.ui2 .lh-kont-v { flex: 1 1 340px; min-height: 260px; background: var(--lh-aside); position: relative; display: grid; place-items: center; overflow: hidden; color: #fff; }
body.ui2 .lh-kont-v::before { content: ""; position: absolute; left: -40px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%; border: 44px solid color-mix(in oklab, var(--lh-mint) 16%, transparent); }
body.ui2 .lh-kont-v img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
body.ui2 .lh-play { position: relative; width: 74px; height: 74px; border-radius: 50%; background: var(--lh-mint); color: #06301f !important; display: grid; place-items: center;
  box-shadow: 0 0 0 14px color-mix(in oklab, var(--lh-mint) 18%, transparent); transition: transform .15s; }
body.ui2 .lh-play:hover { transform: scale(1.05); }
body.ui2 .lh-play svg.i { width: 28px; height: 28px; fill: currentColor; stroke: none; margin-left: 4px; }
body.ui2 .lh-czas { position: absolute; right: 18px; bottom: 16px; background: rgba(0,0,0,.35); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 6px; }
body.ui2 .lh-seria { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; background: #fff4de; color: #8a5a00; font-weight: 600; font-size: 12px; }
/* kokpit: kafle liczb */
body.ui2 .lh-stat { padding: 22px 24px; display: flex; align-items: center; gap: 16px; }
body.ui2 .lh-stat .lh-ico { width: 48px; height: 48px; }
body.ui2 .lh-stat b { display: block; font-size: 22px; font-weight: 700; line-height: 1.1; }
body.ui2 .lh-stat b small { font-size: 13px; color: var(--tx3); font-weight: 500; }
body.ui2 .lh-stat span { color: var(--tx3); }
/* kokpit: karty ścieżek */
body.ui2 .lh-kursy { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
body.ui2 .lh-kurs { display: flex; flex-direction: column; overflow: hidden; }
body.ui2 .lh-kurs-img { height: 140px; display: grid; place-items: center; position: relative; background: var(--lh-aside); color: var(--lh-mint); }
body.ui2 .lh-kurs-img.jasny { background: #e3f6ee; color: var(--u2-acc2); } body.ui2 .lh-kurs-img.szary { background: #f1f4f3; color: #5b6b65; }
body.ui2 .lh-kurs-img svg.i { width: 40px; height: 40px; stroke-width: 1.6; }
body.ui2 .lh-kurs-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.ui2 .lh-kurs-img .lh-badge { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.16); color: #fff; }
body.ui2 .lh-kurs-img.jasny .lh-badge, body.ui2 .lh-kurs-img.szary .lh-badge { background: #fff; color: #0b6b47; }
body.ui2 .lh-kurs-b { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
body.ui2 .lh-kurs-b h3 { margin: 0; font-size: 15px; font-weight: 700; }
body.ui2 .lh-kurs-b h3 a { color: inherit; }
body.ui2 .lh-kurs-b .btn { align-self: flex-start; margin-top: auto; }
/* kokpit: listy lekcji */
body.ui2 .lh-lista { padding: 10px 28px; }
body.ui2 .lh-lekcja { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px dashed #e4eae7; color: inherit; }
body.ui2 .lh-lekcja:first-child { border-top: 0; }
body.ui2 a.lh-lekcja:hover b { color: var(--u2-acc2); }
body.ui2 .lh-lekcja > div { flex: 1; min-width: 0; }
body.ui2 .lh-lekcja b { display: block; font-weight: 600; }
body.ui2 .lh-lekcja small { display: block; color: var(--tx3); font-size: 12px; }
body.ui2 .lh-num { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; flex: none; background: #f1f4f3; color: #5b6b65; }
body.ui2 .lh-num.on { background: var(--accent); color: var(--on-acc, #fff); } body.ui2 .lh-num.tint { background: var(--lh-tint); color: var(--u2-acc2); }
body.ui2 .lh-num svg.i { width: 15px; height: 15px; stroke-width: 2; }
body.ui2 .lh-pusto { color: var(--tx3); margin: 0; padding: 14px 0; }
body.ui2 .lh-sekcja-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
body.ui2 .lh-sekcja-h h2 { margin: 0; font-size: 17px; font-weight: 700; }
body.ui2 .lh-tyg { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin-top: 8px; }
body.ui2 .lh-tyg > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
body.ui2 .lh-tyg > div > i { width: 100%; max-width: 28px; border-radius: 6px 6px 3px 3px; background: color-mix(in oklab, var(--accent) 22%, #fff); }
body.ui2 .lh-tyg > div.dzis > i { background: var(--accent); }
body.ui2 .lh-tyg small { color: var(--tx3); font-size: 11.5px; }

/* ── telefon: belka bez pasa marki, menu w szufladzie ── */
@media (max-width: 820px) {
  body.ui2 { --u2-gut: 16px; --u2-top: 60px; }
  body.ui2 .u2-top { padding: 0 var(--u2-gut); }
  body.ui2 .u2-top > .u2-brand { flex: 0 1 auto; width: auto; padding: 0; background: none; color: var(--tx) !important; }
  body.ui2 .u2-top > .u2-brand .u2-bt { display: block !important; }
  body.ui2 .u2-top > .u2-brand .u2-bt small { color: var(--tx3) !important; }
  body.ui2 .lh-skroty, body.ui2 .lh-konto span, body.ui2 .lh-top-a.lh-wyloguj, body.ui2 .u2-top .u2-search { display: none; }
  body.ui2 .u2-main { padding: 0 var(--u2-gut) 96px; gap: 20px; }
  body.ui2 .u2-main:not(:has(> .admin-head, > .page-head)) { padding-top: 16px; }
  body.ui2 .u2-rail { display: none; }
  body.ui2.u2-drawer .u2-rail { display: flex; position: fixed; left: 12px; top: 12px; bottom: 12px; height: auto; z-index: 60; border-radius: 14px; padding: 10px 0 16px;
    align-items: stretch; width: min(300px, 84vw); }
  body.ui2.u2-drawer .u2-rail a { width: auto; height: auto; min-height: 44px; border-radius: 0; padding: 9px 22px; justify-content: flex-start; }
  body.ui2.u2-drawer .u2-rail .rh { display: block; margin: 16px 22px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lh-h); }
  body.ui2.u2-drawer .u2-rail-top { justify-content: flex-end; padding: 0 10px; }
  body.ui2.u2-drawer .u2-rail-tog::before { display: none; }
  body.ui2.u2-drawer .u2-rail-tog .ix { display: block; color: #fff; }
  body.ui2 .u2-bnav { background: var(--lh-aside); }
  body.ui2 .panel, body.ui2 .quiz-box { padding: 18px; }
  body.ui2 .panel > .panel-head { margin: -18px -18px 16px; padding: 14px 18px; }
  body.ui2 :is(.lh-card-h, .lh-card-b, .lh-lista) { padding-left: 18px; padding-right: 18px; }
  body.ui2 .lh-promo, body.ui2 .lh-kont-t { padding: 24px 20px; }
  body.ui2 .lh-promo h2 { font-size: 21px; }
}
/* tryb ciemny */
html[data-motyw="ciemny"] body.ui2 { --tx: #e6efeb; --tx3: #9fb0a9; --u2-line: #22362f; --u2-line-2: #2c443b; }
html[data-motyw="ciemny"] body.ui2 :is(.u2-top, .u2-main > .admin-head, .u2-main > .page-head, .lh-card, .u2-banner-soft) { background: var(--u2-panel) !important; }
html[data-motyw="ciemny"] body.ui2 .u2-rail { background: var(--lh-aside); }
html[data-motyw="ciemny"] body.ui2 { --lh-tint: color-mix(in oklab, var(--accent) 22%, #15231e); }
/* strony logowania: belka bez pasa marki */
body.ui2.u2-authpage .u2-top > .u2-brand { flex: 0 1 auto; width: auto; padding: 0 0 0 24px; background: none; color: var(--tx) !important; }
body.ui2.u2-authpage .u2-top > .u2-brand .u2-bt { display: block !important; }
body.ui2.u2-authpage .u2-top > .u2-brand .u2-mark:not(.u2-logo) { background: var(--accent); color: var(--on-acc, #fff); }
/* katalog w kokpicie: nagłówek karty jak w makiecie */
body.ui2 .lh-katalog > .u2-card-head { margin: -24px -28px 24px; padding: 20px 28px; border-bottom: 1px solid var(--u2-line); }
body.ui2 .lh-katalog { padding: 24px 28px; }
body.ui2 .admin-head > .lh-podtytul { margin-right: auto; }
body.ui2 .admin-head > .head-actions { margin-left: auto; }
@media (min-width: 761px) {
  body.ui2 .u2-main > :is(.admin-head, .page-head) :is(.btn, input, select, button) { height: 40px !important; min-height: 40px !important; box-sizing: border-box; }
  body.ui2 .u2-main > :is(.admin-head, .page-head) > :is(h1, .head-t) { align-self: flex-start; }
  body.ui2 .u2-main > :is(.admin-head, .page-head) > h1, body.ui2 .u2-main > :is(.admin-head, .page-head) > .head-t > h1 { line-height: 40px !important; }
}
body.ui2 .lh-tyg.gest { gap: 3px; }
body.ui2 .lh-tyg.gest > div:not(:nth-child(5n+1)) > small { visibility: hidden; }
body.ui2 .lh-tyg.gest > div > small { font-size: 10px; white-space: nowrap; }

/* ══ Wspólny zestaw (akademie, panele, portal, centrum pomocy): trzy zaokrąglenia, dwie wysokości, cztery rodzaje przycisków ══ */
:root { --r-kontrolka: 8px; --r-karta: 12px; --h-kontrolka: 42px; --h-maly: 34px; }
body.ui2 .btn, body.ui2 .btn-lg { height: var(--h-kontrolka); min-height: var(--h-kontrolka); padding: 0 18px; border-radius: var(--r-kontrolka); font: 600 13px var(--body); border: 0; }
body.ui2 .btn-sm { height: var(--h-maly); min-height: var(--h-maly); padding: 0 12px; font-size: 12px; }
body.ui2 :is(.lh-promo, .lh-kont-t .btns, .u2-auth-main .form-actions) .btn { height: var(--h-kontrolka); }
body.ui2 .u2-auth-main .form-actions .btn-primary { height: var(--h-kontrolka); }
body.ui2 .form-actions-sticky .btn-primary { height: var(--h-kontrolka); font-size: 13px; }
/* neutralny: dawne „outline” i szare */
body.ui2 .btn.btn-outline, body.ui2 .btn.lh-btn-szary { background: #f1f4f3 !important; color: #3d4d47 !important; border: 0 !important; }
body.ui2 .btn.btn-outline:hover, body.ui2 .btn.lh-btn-szary:hover { background: #e6ecea !important; color: #1e2a26 !important; }
html[data-motyw="ciemny"] body.ui2 .btn.btn-outline, html[data-motyw="ciemny"] body.ui2 .btn.lh-btn-szary { background: var(--u2-panel-2) !important; color: var(--tx) !important; }
/* pola: ta sama wysokość i zaokrąglenie co przyciski, żeby pole i przycisk obok trzymały linię */
body.ui2 :is(input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=url], input[type=search], input[type=tel], input:not([type]), select) {
  height: var(--h-kontrolka); min-height: var(--h-kontrolka); box-sizing: border-box; border-radius: var(--r-kontrolka); padding-top: 0; padding-bottom: 0; font-size: 13px; }
body.ui2 textarea, body.ui2 input[type=file] { border-radius: var(--r-kontrolka); font-size: 13px; }
body.ui2 input[type=file]::file-selector-button { border-radius: 6px; }
body.ui2 input[type=color] { width: var(--h-kontrolka); height: var(--h-kontrolka); border-radius: var(--r-kontrolka); }
body.ui2 .u2-search input[type=search] { height: 40px; min-height: 0; }
@media (min-width: 761px) {
  body.ui2 .u2-main > :is(.admin-head, .page-head) :is(.btn, input, select, button) { height: var(--h-kontrolka) !important; min-height: var(--h-kontrolka) !important; }
  body.ui2 .u2-main > :is(.admin-head, .page-head) > h1, body.ui2 .u2-main > :is(.admin-head, .page-head) > .head-t > h1 { line-height: var(--h-kontrolka) !important; }
}
/* karty i okna: 12 px */
body.ui2 :is(.panel, .u2-card, .lh-card, .ed-card, .card, .dash-card, .u2-auth-card, .modal, dialog, .lh-promo, .lh-alert, .flash) { border-radius: var(--r-karta); }
/* ekrany logowania: jedna karta (akademia, operator), 12 px */
body.ui2 .u2-auth-side { border-radius: var(--r-karta) 0 0 var(--r-karta); }
body.ui2 .u2-auth-main { border-radius: 0 var(--r-karta) var(--r-karta) 0; }
@media (max-width: 980px) {
  body.ui2 .u2-auth-side { border-radius: var(--r-karta) var(--r-karta) 0 0; }
  body.ui2 .u2-auth-main { border-radius: 0 0 var(--r-karta) var(--r-karta); }
}
body.ui2 .u2-auth-main .auth-box h1 { font-size: 24px; font-weight: 700; }
body.ui2 .u2-pole-h { margin: 16px 0 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
body.ui2 .u2-pole-h label { margin: 0; }
body.ui2 .u2-pole-h a, body.ui2 .u2-auth-alt a { font-size: 12px; font-weight: 600; color: var(--u2-acc2); text-decoration: none; }
body.ui2 .u2-pole-h a:hover, body.ui2 .u2-auth-alt a:hover { text-decoration: underline; }
body.ui2 .u2-auth-alt { margin: 4px 0 0; text-align: center; color: var(--tx2); font-size: 13px; }
body.ui2 .u2-auth-alt a { font-size: 13px; }
body.ui2 .u2-auth-main .form-actions .btn-block { flex: 1 0 100%; width: 100%; }
/* dopiski pod polami: krótkie w etykiecie, dłuższe pod „i” (assets/porzadki.js - dopiski()) */
html.js body.ui2 :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]), select, textarea, .field-row) ~ .hint:not(.hint-zostaje):not(.pole-dymek):not(:has(a, button, input, select, textarea, img, svg)),
html.js body.ui2 label.check .hint:not(.hint-zostaje):not(.pole-dymek):not(:has(a, button, input, select, textarea, img, svg)),
html.js body.ui2 .hint-uwaga:not(.hint-zostaje), body.ui2 .hint-w-etykiecie { display: none; }
body.ui2 table .hint, body.ui2 .cert-warn .hint { display: revert; }
body.ui2 .pole-dop { font-weight: 400; color: var(--tx3); }
body.ui2 .pole-l { display: flex; align-items: center; gap: 6px; position: relative; }
body.ui2 .pole-l > label { margin: 0 !important; }
body.ui2 .pole-l .opis-i, body.ui2 label.check .opis-i { width: 20px; height: 20px; font-size: 11px; flex: none; }
body.ui2 label.check { position: relative; }
body.ui2 .pole-dymek { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; max-width: min(360px, calc(100vw - 48px)); margin: 0 !important;
  background: #12201b; color: #e6efeb !important; border-radius: var(--r-kontrolka); padding: 10px 12px; font-size: 12px; line-height: 1.5;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.35); display: block; }
body.ui2 .pole-dymek[hidden] { display: none; }
body.ui2 label.check .pole-dymek { left: 52px; font-weight: 400; }
body.ui2 .pole-uwagi { display: grid; gap: 6px; margin: 18px 0 10px; padding: 12px 14px; border-radius: var(--r-karta); background: #fff4de; color: #6b4600; font-size: 13px; line-height: 1.5; }
body.ui2 .pole-uwagi b { color: #6b4600; }
html[data-motyw="ciemny"] body.ui2 .pole-uwagi { background: rgba(241,181,70,.14); color: #f1d9a6; }
html[data-motyw="ciemny"] body.ui2 .pole-uwagi b { color: #f1d9a6; }
body.ui2 .pole-dymek code { background: rgba(255,255,255,.12); color: #fff; }

/* ══ Menu boczne: przycisk zwijania na krawędzi menu, zawsze na tej samej wysokości;
      pasek z logo zwija się razem z menu (ten sam czas i krzywa) ══ */
@media (min-width: 821px) {
  body.ui2 .u2-rail { z-index: 46; }   /* przycisk na krawędzi nad nagłówkiem strony w obu stanach */
  body.ui2 .u2-rail-top { position: fixed; top: calc(var(--u2-top) + 20px); left: calc(var(--u2-rail) - 14px); z-index: 48; width: auto; margin: 0;
    transition: left .28s var(--u2-ease); }
  body.ui2 .u2-rail-tog { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--lh-aside); border: 1px solid #dce5e1;
    box-shadow: 0 2px 8px -2px rgba(10,40,30,.25); }
  body.ui2 .u2-rail-tog:hover { background: var(--lh-tint); color: var(--lh-aside); border-color: #c9ddd4; }
  body.ui2 .u2-rail-tog:focus-visible { outline: 2px solid var(--lh-mint); outline-offset: 2px; }
  body.ui2 .u2-rail-tog::before { width: 16px; height: 16px; transition: transform .28s var(--u2-ease);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E"); }
  html:not(.u2-menu-open) body.ui2 .u2-rail-tog::before { transform: rotate(180deg); }
  html[data-motyw="ciemny"] body.ui2 .u2-rail-tog { background: var(--u2-panel); color: var(--tx); border-color: var(--u2-line-2); }
  /* pasek z logo: ta sama szerokość co menu w każdej chwili animacji, logo nie zmienia położenia */
  body.ui2 .u2-top > .u2-brand, html:not(.u2-menu-open) body.ui2 .u2-top > .u2-brand { justify-content: flex-start; padding: 0 0 0 20px;
    transition: flex-basis .28s var(--u2-ease), width .28s var(--u2-ease); white-space: nowrap; }
  body.ui2 .u2-top > .u2-brand .u2-bt, html:not(.u2-menu-open) body.ui2 .u2-top > .u2-brand .u2-bt { display: block; transition: opacity .2s; }
  html:not(.u2-menu-open) body.ui2 .u2-top > .u2-brand .u2-bt { opacity: 0; }
  body.ui2 .u2-top > .u2-brand .u2-mark, body.ui2 .u2-top > .u2-brand .u2-logo { flex: none; }
  body.ui2 .u2-top > .u2-brand .u2-logo:not(.u2-mark), html:not(.u2-menu-open) body.ui2 .u2-top > .u2-brand .u2-logo:not(.u2-mark) { max-width: 32px; object-fit: contain; object-position: left center; }
  html.u2-menu-open body.ui2 .u2-top > .u2-brand .u2-logo:not(.u2-mark) { max-width: 150px; }
  body.ui2 .u2-top > .u2-brand .u2-logo:not(.u2-mark) { transition: max-width .28s var(--u2-ease); }
}

/* ══ Kokpit bez materiałów / katalog: baner w dwóch kolumnach - tekst po lewej, przyciski po prawej ══ */
body.ui2 .u2-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "eb btns" "h1 btns" "p btns" "st st";
  column-gap: 40px; align-items: center; border-radius: var(--r-karta); padding: 32px 36px; border: 0; box-shadow: 0 0 30px rgba(20,60,45,.06); }
body.ui2 .u2-hero::before { width: 420px; height: 420px; right: -120px; top: -220px; }
body.ui2 .u2-hero .eyebrow { grid-area: eb; margin: 0; }
body.ui2 .u2-hero h1 { grid-area: h1; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; max-width: none; margin: 8px 0 8px; }
body.ui2 .u2-hero p { grid-area: p; font-size: 14px; line-height: 1.6; max-width: 62ch; }
body.ui2 .u2-hero .btns { grid-area: btns; margin: 0; justify-content: flex-end; align-self: center; }
body.ui2 .u2-hero .stats { grid-area: st; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--u2-line); gap: 36px; }
body.ui2 .u2-hero.has-img .stats { border-top-color: rgba(255,255,255,.2); }
body.ui2 .u2-hero .stats b { font-size: 22px; font-weight: 700; }
body.ui2 .u2-hero.center { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eb" "h1" "p" "btns" "st"; justify-items: center; }
body.ui2 .u2-hero.center .btns { justify-content: center; margin-top: 20px; }
@media (max-width: 760px) {
  body.ui2 .u2-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eb" "h1" "p" "btns" "st"; padding: 24px 20px; }
  body.ui2 .u2-hero h1 { font-size: 22px; }
  body.ui2 .u2-hero .btns { justify-content: flex-start; margin-top: 18px; }
}
/* znak akademii na ciemnym pasku: biały (zielony na zielonym był słabo czytelny) */
body.ui2 .u2-top > .u2-brand .u2-mark:not(.u2-logo) { background: #fff; color: var(--lh-aside) !important; }
html[data-motyw="ciemny"] body.ui2 .u2-top > .u2-brand .u2-mark:not(.u2-logo) { background: #fff; color: var(--lh-aside-d) !important; }
@media (min-width: 821px) {
  /* przycisk zwijania: zaokrąglenie jak pozostałe kontrolki */
  body.ui2 .u2-rail-tog { border-radius: var(--r-kontrolka); }
}
body.ui2 .u2-auth-side .u2-mark:not(.u2-logo) { background: #fff; color: var(--lh-aside) !important; }

/* ══ zwinięte menu: białe ikony (zielone po najechaniu i przy bieżącej stronie); podpis w dymku poza menu (v2.js) ══ */
html:not(.u2-menu-open) body.ui2:not(.u2-drawer) .u2-rail a svg.i { color: #fff; }
html:not(.u2-menu-open) body.ui2:not(.u2-drawer) .u2-rail a:is(:hover, :focus-visible, .on) svg.i { color: var(--lh-mint); }
html:not(.u2-menu-open) body.ui2:not(.u2-drawer) .u2-rail a[data-tip]:hover::after { content: none; display: none; }
.u2-dymek-menu { position: fixed; z-index: 90; pointer-events: none; transform: translateY(-50%); background: #12201b; color: #fff; font: 500 12.5px var(--body);
  padding: 7px 11px; border-radius: var(--r-kontrolka, 8px); white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(18,32,27,.5); animation: u2tip .16s ease-out both; }
.u2-dymek-menu::before { content: ""; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; background: inherit; transform: translateY(-50%) rotate(45deg); border-radius: 1px; }
@media (prefers-reduced-motion: reduce) { .u2-dymek-menu { animation: none; } }
/* pigułka „Działa na edum” na dole menu (jak w stopce) */
html.u2-menu-open body.ui2 .u2-rail a.u2-rail-powered, body.ui2.u2-drawer .u2-rail a.u2-rail-powered {
  display: inline-flex; align-self: flex-start; width: auto; min-height: 0; height: auto; margin: 20px 25px 0; padding: 5px 12px; gap: 8px;
  border-radius: 99px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #cfe3da !important; font-size: 12px; font-weight: 500; }
html.u2-menu-open body.ui2 .u2-rail a.u2-rail-powered:hover, body.ui2.u2-drawer .u2-rail a.u2-rail-powered:hover { border-color: var(--lh-mint); color: #fff !important; background: transparent; }
body.ui2 .u2-rail a.u2-rail-powered i { width: 7px; height: 7px; border-radius: 50%; background: var(--lh-mint); box-shadow: 0 0 0 3px rgba(61,220,151,.18); flex: none; }
html:not(.u2-menu-open) body.ui2:not(.u2-drawer) .u2-rail a.u2-rail-powered { display: none; }
/* strona lekcji: tytuł nad kolumnami, kroki ścieżki na górze prawego panelu - góra nagrania równa z górą panelu */
body.ui2 .u2-main > .material-head { margin: 0 0 20px; display: flex; flex-direction: column; gap: 12px; }
body.ui2 .u2-main > .material-head > * { margin: 0; }
body.ui2 .u2-kroki { display: grid; gap: 12px; padding: 4px 4px 18px; margin-bottom: 14px; border-bottom: 1px solid var(--u2-line); }
body.ui2 .u2-kroki-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
body.ui2 .u2-kroki-h span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--tx4); font-weight: 600; }
body.ui2 .u2-kroki-h b { font-size: 13px; color: var(--u2-acc2); white-space: nowrap; }
body.ui2 .u2-kroki .u2-steps-meta { margin: 0; font-size: 12.5px; }
body.ui2 .material-aside > .u2-kroki:last-child { border-bottom: 0; padding-bottom: 4px; margin-bottom: 0; }

/* ══ Zgłoś problem (robaczek): tryb wskazywania, okno zgłoszenia, rozmowa w zgłoszeniu ══ */
html.zgl-tryb, html.zgl-tryb * { cursor: crosshair !important; }
html.zgl-tryb .zgl-pasek, html.zgl-tryb .zgl-pasek * { cursor: auto !important; }
html.zgl-tryb .zgl-pasek button { cursor: pointer !important; }
.zgl-ramka { position: fixed; z-index: 2147483000; pointer-events: none; border: 2px solid #e5484d; border-radius: 6px; background: rgba(229,72,77,.08);
  box-shadow: 0 0 0 4000px rgba(10,20,16,.18); transition: left .08s, top .08s, width .08s, height .08s; }
.zgl-ramka[hidden] { display: none; }
.zgl-pasek { position: fixed; z-index: 2147483001; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  max-width: calc(100vw - 24px); padding: 10px 12px 10px 18px; border-radius: var(--r-karta, 12px); background: #12201b; color: #fff; font: 500 13px var(--body, sans-serif);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); }
.zgl-pasek .btn { height: 34px; min-height: 34px; background: rgba(255,255,255,.12) !important; color: #fff !important; border: 0; }
.zgl-pasek .btn:hover { background: rgba(255,255,255,.2) !important; }
.zgl-okno { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: var(--r-karta, 12px); padding: 26px 28px; background: var(--u2-panel, #fff); color: var(--tx, #1e2a26);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); font: 14px var(--body, sans-serif); }
.zgl-okno::backdrop { background: rgba(10,20,16,.35); }
.zgl-okno h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.zgl-okno .zgl-intro { margin: 0 0 16px; color: var(--tx3, #5b6b65); font-size: 13px; line-height: 1.55; }
.zgl-okno label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 13px; }
.zgl-okno select, .zgl-okno textarea { width: 100%; box-sizing: border-box; border: 1px solid #dce5e1; border-radius: var(--r-kontrolka, 8px); font: 13px var(--body, sans-serif); color: inherit; background: var(--u2-panel, #fff); }
.zgl-okno select { height: 42px; padding: 0 12px; }
.zgl-okno textarea { padding: 10px 12px; resize: vertical; min-height: 110px; }
.zgl-okno :is(select, textarea):focus { outline: none; border-color: var(--accent, #0e8a5f); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent, #0e8a5f) 22%, transparent); }
.zgl-okno .zgl-wskazany { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; padding: 10px 12px; border-radius: var(--r-kontrolka, 8px); background: #fdecec; color: #8f1c13; font-size: 13px; }
.zgl-okno .zgl-wskazany b { color: #8f1c13; }
.zgl-okno .zgl-inny { margin-left: auto; border: 0; background: none; color: #8f1c13; font: 600 12.5px var(--body, sans-serif); text-decoration: underline; cursor: pointer; padding: 0; }
.zgl-okno .zgl-blad { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-kontrolka, 8px); background: #fdecec; color: #8f1c13; font-size: 13px; }
.zgl-okno .form-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.zgl-okno .btn { height: 42px; padding: 0 18px; border-radius: var(--r-kontrolka, 8px); font: 600 13px var(--body, sans-serif); display: inline-flex; align-items: center; text-decoration: none; }
html[data-motyw="ciemny"] .zgl-okno :is(select, textarea) { border-color: var(--u2-line-2); }
/* rozmowa w zgłoszeniu (panel akademii i operatora) */
body.ui2 .zgl-uklad { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { body.ui2 .zgl-uklad { grid-template-columns: minmax(0, 1fr); } }
body.ui2 .zgl-rozmowa { display: grid; gap: 14px; }
body.ui2 .zgl-wpis { padding: 14px 16px; border-radius: var(--r-karta); background: #f4f7f6; }
body.ui2 .zgl-wpis.zgl-operator { background: var(--lh-tint, #e6f4ee); }
body.ui2 .zgl-wpis header { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
body.ui2 .zgl-wpis header .muted { color: var(--tx3); font-size: 12.5px; }
body.ui2 .zgl-wpis p { margin: 0; line-height: 1.6; }
body.ui2 .zgl-kontekst { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 12px 0 0; font-size: 13px; }
body.ui2 .zgl-kontekst dt { color: var(--tx3); }
body.ui2 .zgl-kontekst dd { margin: 0; overflow-wrap: anywhere; }
body.ui2 .zgl-szczegoly h2 { font-size: 15px; margin: 0 0 4px; }
body.ui2 .zgl-ua { font-size: 12px; color: var(--tx3); }
body.ui2 .zgl-html { margin-top: 14px; }
body.ui2 .zgl-html pre { max-height: 260px; overflow: auto; background: #12201b; color: #d9efe6; padding: 12px; border-radius: var(--r-kontrolka); font-size: 12px; white-space: pre-wrap; }
body.ui2 .zgl-odp .form-actions { display: flex; gap: 8px; align-items: center; }
body.ui2 .zgl-odp .form-actions select { width: auto; }
body.ui2 tr.zgl-nowa td { font-weight: 600; }
body.ui2 .admin-head > .badge { align-self: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* opis ścieżki: na karcie ścieżki w kokpicie i nad katalogiem po wybraniu ścieżki */
body.ui2 .lh-kurs-opis { margin: 4px 0 10px; font-size: 13.5px; line-height: 1.45; color: var(--tx3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.ui2 .u2-kat-opis { margin: 0 0 16px; max-width: 760px; font-size: 14.5px; line-height: 1.55; color: var(--tx2, var(--tx3)); }
body.ui2 .u2-kat-opis[hidden] { display: none; }
