/**
 * FortCyber training player — UX v8 (niższy hero, stepper + workspace).
 */

body.fc-training-player-page {
  --fc-gap: 20px;
}

body.fc-training-player-page .content-box__title,
body.fc-training-player-page .page-title,
body.fc-training-player-page #block-fortcyber-backlinkblock,
body.fc-training-player-page #block-backlinkblock,
body.fc-training-player-page .page-main .back-btn,
body.fc-training-player-page .region-top,
body.fc-training-player-page .block-page-title-block,
body.fc-training-player-page #block-fortcyber-page-title,
body.fc-training-player-page #sidebar-first,
body.fc-training-player-page .fc-lp-steps-toggle,
body.fc-training-player-page .lp_progress_wrapper {
  display: none !important;
}

body.fc-training-player-page .page-main,
body.fc-training-player-page .page-main > .container,
body.fc-training-player-page .page-main > .container > .row {
  overflow: visible;
}

.fc-tp-player-page {
  --fc-primary: #954489;
  --fc-primary-dark: #7a3470;
  --fc-primary-deep: #4e1c49;
  --fc-primary-soft: #f6edf5;
  --fc-primary-soft-2: #fbf7fa;
  --fc-bg: #f4f2f6;
  --fc-border: #e3dbe5;
  --fc-text: #211c28;
  --fc-heading: #1a1523;
  --fc-muted: #6f6775;
  --fc-success: #137d55;
  --fc-success-bg: #e8f6ef;
  --fc-warning: #8a5a00;
  --fc-warning-bg: #fff4df;
  --fc-shadow: 0 12px 32px rgba(34, 22, 38, 0.08);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 10px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 0 60px;
  font-size: 15px;
  line-height: 1.45;
}

.fc-tp-player-page,
.fc-tp-player-page * {
  font-family: var(--fc-font, Inter, Manrope, system-ui, sans-serif);
}

.fc-tp-player-notice {
  align-items: center;
  background: linear-gradient(135deg, #fff, var(--fc-primary-soft));
  border: 1px solid rgba(149, 68, 137, 0.24);
  border-radius: var(--radius-md);
  box-shadow: var(--fc-shadow);
  display: grid;
  gap: 16px;
  grid-template-columns: auto 1fr auto;
  margin-bottom: 18px;
  padding: 17px 20px;
}

.fc-tp-player-notice.is-hidden {
  display: none;
}

.fc-tp-player-notice__icon {
  align-items: center;
  background: var(--fc-primary);
  border-radius: 50%;
  color: #fff;
  display: grid;
  flex-shrink: 0;
  font-size: 18px;
  height: 42px;
  place-items: center;
  width: 42px;
}

.fc-tp-player-notice__icon .fi {
  font-size: 18px;
  line-height: 1;
}

.fc-tp-player-notice__body strong {
  color: var(--fc-heading);
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.fc-tp-player-notice__body p {
  color: var(--fc-muted);
  line-height: 1.45;
  margin: 0;
}

.fc-tp-player-notice__close {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--fc-muted);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 22px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 32px;
}

.fc-tp-player-notice--before {
  background: linear-gradient(135deg, #fff, var(--fc-warning-bg));
  border-color: rgba(138, 90, 0, 0.22);
}

.fc-tp-player-notice--before .fc-tp-player-notice__icon {
  background: var(--fc-warning);
  color: #fff;
}

.fc-tp-player-notice--after {
  background: linear-gradient(135deg, #fff, #f8f2f3);
  border-color: rgba(223, 77, 94, 0.2);
}

.fc-tp-player-notice--after .fc-tp-player-notice__icon {
  background: #df4d5e;
}

.fc-tp-player-notice--supervisor .fc-tp-player-notice__icon {
  background: var(--fc-primary-deep);
}

.fc-tp-player-notice--blocked {
  background: linear-gradient(135deg, #fff, #f8f2f3);
  border-color: rgba(223, 77, 94, 0.22);
}

.fc-tp-player-notice--blocked .fc-tp-player-notice__icon {
  background: #df4d5e;
  font-size: 16px;
}

.fc-tp-player-page .card {
  background: #fff;
  border: 1px solid var(--fc-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--fc-shadow);
}

/* ── Layout poziomy (jak mockup v8: stepper + workspace) ── */
.fc-tp-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fc-tp-workspace {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.fc-tp-workspace__current {
  grid-column: 1 / -1;
  margin: 0;
}

.fc-tp-workspace__current .fc-tp-path-strip__current {
  margin-top: 0;
}

.fc-tp-module-panel {
  align-self: start;
  grid-row: 2;
  grid-column: 1;
}

.fc-tp-lesson-column {
  align-self: start;
  grid-row: 2;
  grid-column: 2;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.fc-tp-lesson-column > .fc-tp-path-strip__current {
  margin-top: 0;
  margin-bottom: 0;
}

/* ── Hero (niższy) ── */
.fc-tp-player-page .fc-tp-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 0 18px;
  padding: 22px 28px 0;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.14), transparent 22%),
    linear-gradient(135deg, #4a1944 0%, #6d2b65 42%, #954489 100%);
  box-shadow: 0 20px 40px rgba(88, 27, 82, 0.25);
}

.fc-tp-player-page .fc-tp-hero {
  width: 100%;
  min-height: 218px;
}

.fc-tp-player-page .fc-tp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.07) 42.2% 42.5%, transparent 42.7%),
    linear-gradient(65deg, transparent 0 63%, rgba(255, 255, 255, 0.05) 63.2% 63.4%, transparent 63.6%);
  pointer-events: none;
}

.fc-tp-player-page .fc-tp-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.fc-tp-player-page .fc-tp-hero__glow--one {
  width: 300px;
  height: 300px;
  right: -85px;
  top: -130px;
  background: rgba(225, 151, 216, 0.23);
}

.fc-tp-player-page .fc-tp-hero__glow--two {
  width: 230px;
  height: 230px;
  left: 44%;
  bottom: -160px;
  background: rgba(255, 255, 255, 0.08);
}

.fc-tp-player-page .fc-tp-hero__main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  grid-template-rows: auto auto;
  column-gap: 20px;
  row-gap: 10px;
  align-items: start;
}

.fc-tp-player-page .fc-tp-hero__copy {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  max-width: none;
  padding-right: 10px;
}

.fc-tp-player-page .fc-tp-hero__orbit {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.fc-tp-player-page .fc-tp-hero .fc-tp-hero__status-box {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  align-self: center;
  margin: 0;
  max-width: none;
  width: fit-content;
}

.fc-tp-player-page .fc-tp-hero__kicker {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.fc-tp-player-page .fc-tp-hero__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 2px;
}

/* Status szkolenia — pod kółkiem postępu po prawej. */

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box {
  align-items: center;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  display: inline-flex;
  gap: 8px;
  padding: 8px 12px;
  width: fit-content;
}

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box__main {
  align-items: center;
  display: inline-flex;
  flex: 0 1 auto;
  gap: 8px;
  justify-content: center;
  min-width: 0;
}

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box__icon {
  align-items: center;
  border-radius: 50%;
  display: grid;
  flex-shrink: 0;
  height: 32px;
  place-items: center;
  width: 32px;
}

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box__icon .fi {
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box__content {
  flex: 0 1 auto;
  min-width: 0;
}

.fc-tp-player-page .fc-tp-hero__status-box.fc-tp-status-box strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin-bottom: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box--not-enrolled {
  background: #f7edf5;
  border-color: rgba(149, 68, 137, 0.22);
  color: var(--fc-primary);
}

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box--not-enrolled .fc-tp-status-box__icon {
  background: var(--fc-primary);
  color: #fff;
}

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box--danger {
  background: #fff5f6;
  border-color: rgba(223, 77, 94, 0.24);
  color: #b4233a;
}

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box--danger .fc-tp-status-box__icon {
  background: #df4d5e;
  color: #fff;
}

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box--danger strong {
  color: #b4233a;
}

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box--danger p {
  color: #6f3b44;
}

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box--success {
  background: #edf9f2;
  border-color: rgba(31, 169, 113, 0.22);
  color: var(--fc-success);
}

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box--success .fc-tp-status-box__icon {
  background: var(--fc-success);
  color: #fff;
}

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box--progress {
  background: #fbf7fa;
  border-color: rgba(149, 68, 137, 0.22);
  color: var(--fc-primary);
}

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box--progress .fc-tp-status-box__icon {
  background: var(--fc-primary);
  color: #fff;
}

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box--warning {
  background: var(--fc-warning-bg);
  border-color: rgba(138, 90, 0, 0.22);
  color: var(--fc-warning);
}

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box--warning .fc-tp-status-box__icon {
  background: var(--fc-warning);
  color: #fff;
}

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box--blocked {
  background: #f5f0f8;
  border-color: rgba(111, 103, 117, 0.22);
  color: var(--fc-muted);
}

.fc-tp-player-page .fc-tp-hero .fc-tp-status-box--blocked .fc-tp-status-box__icon {
  background: #6f6775;
  color: #fff;
}

.fc-tp-player-page .fc-tp-hero__subtitle {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

.fc-tp-player-page .fc-tp-hero__subtitle strong {
  color: #fff;
  font-weight: 800;
}

.fc-tp-player-page .fc-tp-hero h2 {
  margin: 9px 0 7px;
  color: #fff;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: none;
}

.fc-tp-player-page .fc-tp-hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 14px;
}

.fc-tp-player-page .fc-tp-hero__btn {
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  line-height: 1.2;
  min-height: 32px;
  padding: 7px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.fc-tp-player-page .fc-tp-hero__btn--light {
  background: rgba(255, 255, 255, 0.12);
}

.fc-tp-player-page .fc-tp-hero__btn--ghost {
  background: transparent;
}

.fc-tp-player-page .fc-tp-hero__orbit-ring {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#fff var(--fc-orbit-progress, 20%), rgba(255, 255, 255, 0.21) 0);
  position: relative;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.06);
}

.fc-tp-player-page .fc-tp-hero__orbit-ring::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(67, 20, 62, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.fc-tp-player-page .fc-tp-hero__orbit-center {
  position: relative;
  z-index: 1;
  text-align: center;
}

.fc-tp-player-page .fc-tp-hero__orbit-center strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.fc-tp-player-page .fc-tp-hero__orbit-center span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fc-tp-player-page .fc-tp-hero__orbit-caption {
  text-align: center;
}

.fc-tp-player-page .fc-tp-hero__orbit-caption strong {
  display: block;
  font-size: 13px;
}

.fc-tp-player-page .fc-tp-hero__orbit-caption span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.fc-tp-player-page .fc-tp-hero__footer {
  position: relative;
  z-index: 1;
  margin: 16px -28px 0;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(20, 7, 19, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.fc-tp-player-page .fc-tp-hero__route {
  flex: 1;
  max-width: 450px;
}

.fc-tp-player-page .fc-tp-hero__route-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.fc-tp-player-page .fc-tp-hero__route-label strong {
  color: #fff;
}

.fc-tp-player-page .fc-tp-hero__route-bar {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.19);
  overflow: hidden;
}

.fc-tp-player-page .fc-tp-hero__route-bar i {
  display: block;
  height: 100%;
  background: #fff;
  border-radius: inherit;
}

.fc-tp-player-page .fc-tp-hero__route-bar b {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.fc-tp-player-page .fc-tp-hero__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

.fc-tp-player-page .fc-tp-hero__meta strong {
  color: #fff;
}

.fc-tp-player-page .fc-tp-hero__deadline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  margin: -4px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.fc-tp-player-page .fc-tp-hero__deadline strong {
  white-space: nowrap;
}

/* ── Path strip / stepper ── */
.fc-tp-path-strip {
  padding: 16px 18px;
  width: 100%;
}

.fc-tp-path-strip__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.fc-tp-path-strip__kicker {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--fc-primary-soft);
  color: var(--fc-primary);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.fc-tp-path-strip__head h3 {
  margin: 0;
  color: var(--fc-heading);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.fc-tp-path-strip__stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--fc-border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.fc-tp-path-strip__step {
  position: relative;
  min-width: 135px;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  color: var(--fc-text);
  background: #fff;
  border-right: 1px solid var(--fc-border);
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.fc-tp-path-strip__step:hover,
.fc-tp-path-strip__step:focus,
.fc-tp-path-strip__step:focus-visible {
  text-decoration: none;
  color: var(--fc-text);
}

.fc-tp-path-strip__step:hover .fc-tp-path-strip__step-copy strong,
.fc-tp-path-strip__step:hover .fc-tp-path-strip__step-copy small,
.fc-tp-path-strip__step:focus .fc-tp-path-strip__step-copy strong,
.fc-tp-path-strip__step:focus .fc-tp-path-strip__step-copy small,
.fc-tp-path-strip__step:focus-visible .fc-tp-path-strip__step-copy strong,
.fc-tp-path-strip__step:focus-visible .fc-tp-path-strip__step-copy small {
  text-decoration: none;
}

.fc-tp-path-strip__step:last-child {
  border-right: 0;
}

.fc-tp-path-strip__step::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fc-border);
  transform: translate(50%, -50%);
  z-index: 2;
}

.fc-tp-path-strip__step:last-child::after {
  display: none;
}

.fc-tp-path-strip__step:hover {
  background: var(--fc-primary-soft-2);
}

.fc-tp-path-strip__step.is-completed:hover {
  background: linear-gradient(180deg, #f7fbf5, #edf7ea);
}

.fc-tp-path-strip__step.is-active:hover {
  background: linear-gradient(180deg, #fff, #f3e6f1);
  box-shadow: inset 0 3px 0 var(--fc-primary);
}

.fc-tp-path-strip__step.is-failed:hover {
  background: linear-gradient(180deg, #fff2f4, #fde7eb);
  box-shadow: inset 0 3px 0 var(--fc-danger);
}

.fc-tp-path-strip__step.is-failed:hover .fc-tp-path-strip__step-copy strong {
  color: #9a3f4d;
}

.fc-tp-path-strip__step.is-failed:hover .fc-tp-path-strip__step-copy small {
  color: #b05a66;
}

.fc-tp-path-strip__step.is-active:hover .fc-tp-path-strip__step-copy strong {
  color: var(--fc-primary-deep);
}

.fc-tp-path-strip__step-node {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f1edf2;
  color: var(--fc-muted);
  font-size: 11px;
  font-weight: 900;
}

.fc-tp-path-strip__step-copy {
  min-width: 0;
}

.fc-tp-path-strip__step-copy strong {
  display: block;
  color: var(--fc-heading);
  font-size: 12px;
  line-height: 1.15;
}

.fc-tp-path-strip__step-copy small {
  display: block;
  margin-top: 4px;
  color: var(--fc-muted);
  font-size: 10px;
  line-height: 1.2;
}

.fc-tp-path-strip__step.is-completed .fc-tp-path-strip__step-node {
  background: var(--fc-success-bg);
  color: var(--fc-success);
}

.fc-tp-path-strip__step.is-active {
  background: linear-gradient(180deg, #fff, #f8eef7);
  box-shadow: inset 0 3px 0 var(--fc-primary);
}

.fc-tp-path-strip__step.is-active .fc-tp-path-strip__step-node {
  background: var(--fc-primary);
  color: #fff;
}

.fc-tp-path-strip__step.is-active .fc-tp-path-strip__step-copy strong {
  color: var(--fc-primary-deep);
}

.fc-tp-path-strip__step.is-failed {
  background: linear-gradient(180deg, #fff8f8, #fdeff1);
  box-shadow: inset 0 3px 0 var(--fc-danger);
}

.fc-tp-path-strip__step.is-failed .fc-tp-path-strip__step-node {
  background: var(--fc-danger-bg);
  color: var(--fc-danger);
}

.fc-tp-path-strip__step.is-failed .fc-tp-path-strip__step-copy strong {
  color: #9a3f4d;
}

.fc-tp-path-strip__step.is-failed .fc-tp-path-strip__step-copy small {
  color: #b05a66;
}

.fc-tp-path-strip__step.is-locked {
  background: linear-gradient(180deg, #faf9fb, #f3f0f4);
  cursor: not-allowed;
  pointer-events: none;
}

.fc-tp-path-strip__step.is-locked:hover {
  background: linear-gradient(180deg, #faf9fb, #f3f0f4);
}

.fc-tp-path-strip__step.is-locked .fc-tp-path-strip__step-copy strong {
  color: #8f8794;
}

.fc-tp-path-strip__step.is-locked .fc-tp-path-strip__step-node {
  background: #e8e3ea;
  color: #6f6475;
  border: 1.5px dashed #b8adbc;
}

.fc-tp-path-strip__lock-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.fc-tp-path-strip__step.is-locked .fc-tp-path-strip__step-node .fc-tp-path-strip__lock-icon {
  color: #6f6475;
}

.fc-tp-path-strip__step.is-locked::after {
  background: #ddd6df;
}

.fc-tp-path-strip__step-lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8f8794;
  font-weight: 700;
}

.fc-tp-path-strip__step-lock::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 2px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8 10V8a4 4 0 1 1 8 0v2' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Crect x='6' y='10' width='12' height='10' rx='2' stroke='black' stroke-width='2'/%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'%3E%3Cpath d='M8 10V8a4 4 0 1 1 8 0v2' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Crect x='6' y='10' width='12' height='10' rx='2' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fc-tp-path-strip.is-guided .fc-tp-path-strip__step.is-guided-locked {
  background: repeating-linear-gradient(
    -45deg,
    #f9f7fa,
    #f9f7fa 7px,
    #f2eef3 7px,
    #f2eef3 14px
  );
}

.fc-tp-path-strip.is-guided .fc-tp-path-strip__step.is-guided-locked .fc-tp-path-strip__step-copy strong {
  color: #7a7280;
}

.fc-tp-path-strip__current {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--fc-primary-soft-2);
  border: 1px solid var(--fc-border);
}

.fc-tp-path-strip__current-main {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--fc-text);
  font-size: 12px;
  flex-wrap: wrap;
}

.fc-tp-path-strip__current-main strong {
  color: var(--fc-heading);
}

.fc-tp-path-strip__current-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fc-primary);
  box-shadow: 0 0 0 4px rgba(149, 68, 137, 0.12);
}

.fc-tp-path-strip__lesson-position {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--fc-border);
  color: var(--fc-primary);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

/* ── Module summary (lewy panel) ── */
.fc-tp-module-panel {
  position: sticky;
  top: 0;
  padding: 18px;
  align-self: start;
}

.fc-tp-module-panel__head h3 {
  margin: 10px 0 12px;
  color: var(--fc-heading);
  font-size: 18px;
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-transform: none;
}

.fc-tp-module-panel__kicker {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--fc-primary-soft);
  color: var(--fc-primary);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.fc-tp-module-panel__progress {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, var(--fc-primary-soft-2));
  border: 1px solid var(--fc-border);
}

.fc-tp-module-panel__ring {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: conic-gradient(var(--fc-primary) var(--fc-module-progress, 0%), #e9e3eb 0);
}

.fc-tp-module-panel__ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}

.fc-tp-module-panel__ring span,
.fc-tp-module-panel__ring small {
  position: relative;
  z-index: 1;
}

.fc-tp-module-panel__ring span {
  color: var(--fc-heading);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.fc-tp-module-panel__ring small {
  margin-top: 3px;
  color: var(--fc-muted);
  font-size: 8px;
  text-transform: uppercase;
  font-weight: 800;
}

.fc-tp-module-panel__progress-title {
  display: block;
  color: var(--fc-heading);
  font-size: 15px;
  letter-spacing: -0.02em;
}

.fc-tp-module-panel__progress-sub {
  display: block;
  margin-top: 4px;
  color: var(--fc-muted);
  font-size: 11px;
}

.fc-tp-module-panel__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.fc-tp-module-panel__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fc-tp-module-panel__cell {
  padding: 10px;
  border: 1px solid var(--fc-border);
  border-radius: 13px;
  background: #fff;
}

.fc-tp-module-panel__cell span {
  display: block;
  margin-bottom: 4px;
  color: var(--fc-muted);
  font-size: 10px;
  font-weight: 800;
}

.fc-tp-module-panel__cell strong {
  display: block;
  color: var(--fc-heading);
  font-size: 12px;
  line-height: 1.35;
}

.fc-tp-module-panel__badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.fc-tp-module-panel__badge--required {
  background: var(--fc-success-bg);
  color: var(--fc-success);
}

.fc-tp-module-panel__note {
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 13px;
  background: var(--fc-primary-soft-2);
  border: 1px solid var(--fc-border);
  color: var(--fc-muted);
  font-size: 11px;
  line-height: 1.4;
}

.fc-tp-module-panel__alert {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 13px;
  font-size: 12px;
  line-height: 1.45;
}

.fc-tp-module-panel__alert--failed {
  background: var(--fc-danger-bg);
  border: 1px solid #f2c7cd;
  color: #8f3340;
}

.fc-tp-module-panel__alert--failed strong {
  display: block;
  margin-bottom: 4px;
}

.fc-tp-module-panel__alert--failed p {
  margin: 0;
}

.fc-tp-module-panel.is-module-failed {
  background: linear-gradient(180deg, #fff7f8 0%, #fff 42%);
  border-color: #f0c8cf;
}

.fc-tp-module-panel.is-module-failed .fc-tp-module-panel__progress-sub {
  color: #9a3f4d;
  font-weight: 800;
}

.fc-tp-module-panel__lesson-row.is-locked .fc-tp-module-panel__lesson-copy strong {
  color: var(--fc-muted);
}

.fc-tp-module-panel__lesson-row.is-failed .fc-tp-module-panel__lesson-copy strong {
  color: #9a3f4d;
}

.fc-tp-module-panel__lesson-lock-icon {
  display: block;
  width: 12px;
  height: 12px;
  color: #8f8794;
}

.fc-tp-module-panel__lesson-score {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--fc-primary-soft-2);
  color: var(--fc-primary-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.fc-tp-module-panel__lesson-row.is-failed .fc-tp-module-panel__lesson-score {
  background: var(--fc-danger-bg);
  color: var(--fc-danger);
}

.fc-tp-path-strip__step.is-step-results .fc-tp-path-strip__step-copy small {
  color: var(--fc-primary);
  font-weight: 700;
}

.fc-tp-result-card__notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.45;
}

.fc-tp-result-card__notice--warning {
  background: var(--fc-warning-bg);
  border: 1px solid #f0d49a;
  color: #7a5a14;
}

.fc-tp-result-outcome {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--fc-border);
}

.fc-tp-result-outcome__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.fc-tp-result-outcome--success {
  background: #edf8f0;
  border-color: rgba(46, 125, 78, 0.28);
  color: #1f5c38;
}

.fc-tp-result-outcome--warning {
  background: var(--fc-warning-bg);
  border-color: #f0d49a;
  color: #7a5a14;
}

.fc-tp-result-outcome--neutral {
  background: var(--fc-primary-soft-2);
  border-color: var(--fc-border);
  color: var(--fc-text-muted, #5c4d66);
}

.fc-tp-module-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.fc-tp-module-panel__btn,
.fc-tp-module-panel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(149, 68, 137, 0.32);
  color: var(--fc-primary);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.fc-tp-module-panel__btn--reset {
  border-color: rgba(196, 72, 72, 0.35);
  color: #b54747;
  background: #fff8f8;
}

.fc-tp-module-panel__btn--reset:hover {
  background: #fdeff1;
}

.fc-tp-module-panel__btn-meta {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.fc-tp-module-panel__plan {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--fc-border);
}

.fc-tp-module-panel__plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.fc-tp-module-panel__plan-head strong {
  color: var(--fc-heading);
  font-size: 13px;
}

.fc-tp-module-panel__plan-head span {
  color: var(--fc-muted);
  font-size: 11px;
  font-weight: 800;
}

.fc-tp-module-panel__lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fc-tp-module-panel__lesson-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 9px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #fbf9fc;
}

.fc-tp-module-panel__lesson-row.is-current {
  background: var(--fc-primary-soft);
  border-color: rgba(149, 68, 137, 0.2);
  box-shadow: inset 3px 0 0 var(--fc-primary);
}

.fc-tp-module-panel__lesson-row.is-completed {
  background: #f5faf7;
}

.fc-tp-module-panel__lesson-marker {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--fc-muted);
  background: #eee9ef;
  font-size: 10px;
  font-weight: 900;
}

.fc-tp-module-panel__lesson-row.is-completed .fc-tp-module-panel__lesson-marker {
  color: var(--fc-success);
  background: var(--fc-success-bg);
}

.fc-tp-module-panel__lesson-row.is-current .fc-tp-module-panel__lesson-marker {
  color: #fff;
  background: var(--fc-primary);
}

.fc-tp-module-panel__lesson-copy {
  min-width: 0;
}

.fc-tp-module-panel__lesson-copy a {
  color: inherit;
  text-decoration: none;
}

.fc-tp-module-panel__lesson-copy a:hover {
  color: var(--fc-primary);
}

.fc-tp-module-panel__lesson-copy strong {
  display: block;
  color: var(--fc-heading);
  font-size: 12px;
  line-height: 1.3;
}

.fc-tp-module-panel__lesson-copy small {
  display: block;
  margin-top: 3px;
  color: var(--fc-muted);
  font-size: 10px;
  line-height: 1.25;
}

.fc-tp-module-panel__lesson-now {
  padding: 4px 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--fc-primary);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Viewer / lekcja (toolbar jak mockup, treść w ramce viewer) ── */
.fc-tp-lesson-card {
  padding: 18px;
  position: relative;
  overflow: visible;
}

.fc-tp-lesson-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fc-primary), #c673b9, transparent);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  pointer-events: none;
}

.fc-tp-activity-embed {
  min-height: 200px;
  min-width: 0;
  overflow: visible;
}

body.fc-training-player-page .fc-tp-activity-embed:has(.video-js) {
  overflow: hidden;
}

body.fc-training-player-page .fc-tp-activity-embed > .lp_progress_wrapper {
  display: none;
}

body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 12px;
  align-items: center;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin-bottom: 0;
  position: relative;
  min-width: 0;
  overflow: visible;
}

body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-shell:has(.video-js) {
  overflow: hidden;
}

body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-shell > form {
  display: contents;
}

/* Toolbar — jeden wiersz: Wstecz | tytuł | pełny ekran | Dalej */
body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-toolbar {
  grid-column: 1 / -1;
  grid-row: 1;
  position: static;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  min-height: 40px;
  margin: 0;
  z-index: 2;
  pointer-events: none;
}

body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-toolbar .fc-tp-activity-title {
  grid-column: 2;
  margin: 0;
  padding: 0 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fc-heading);
  text-align: center;
  pointer-events: none;
}

body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-toolbar .fc-tp-activity-fullscreen {
  grid-column: 3;
  justify-self: center;
  margin: 0;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--fc-border);
}

body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-toolbar .fc-tp-activity-fullscreen:hover {
  background: var(--fc-primary-soft-2);
}

body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-shell .form-actions,
body.fc-training-player-page.section-module:not(.fullscreen) .fc-tp-activity-embed .fc-tp-activity-shell .form-actions {
  grid-column: 1 / -1;
  grid-row: 1;
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 3;
  display: grid !important;
  grid-template-columns: subgrid;
  align-items: center;
  min-height: 40px;
  background: transparent;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-shell .form-actions > * {
  pointer-events: auto;
}

body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-shell .form-actions #edit-back {
  grid-column: 1;
  justify-self: start;
  margin: 0;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 12px !important;
  border: 1px solid rgba(149, 68, 137, 0.35) !important;
  background: #fff !important;
  color: var(--fc-primary) !important;
  font-weight: 800;
  font-size: 13px;
  box-shadow: none;
  min-width: auto;
}

body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-shell .form-actions #edit-back.fc-tp-back--hidden,
body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-shell .form-actions #edit-back[hidden] {
  display: none !important;
}

body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-shell .form-actions #edit-submit,
body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-shell .form-actions input[type="submit"]:not(#edit-back),
body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-shell .form-actions button[type="submit"]:not(#edit-back),
body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-shell .form-actions a.btn {
  grid-column: 4;
  justify-self: end;
  margin: 0;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 12px !important;
  border: 0 !important;
  background: var(--fc-primary) !important;
  color: #fff !important;
  font-weight: 800;
  font-size: 13px;
  box-shadow: none;
  min-width: auto;
}

body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-toolbar .fc-tp-activity-fullscreen a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--fc-text);
  text-decoration: none;
  font-size: 0;
  line-height: 0;
}

body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-toolbar .fc-tp-activity-fullscreen .fi-rr-compress {
  display: none;
}

body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-embed .fc-tp-activity-toolbar .fc-tp-activity-fullscreen .fi-rr-expand,
body.fc-training-player-page.fullscreen .fc-tp-activity-embed .fc-tp-activity-toolbar .fc-tp-activity-fullscreen .fi-rr-expand {
  display: none;
}

body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-embed .fc-tp-activity-toolbar .fc-tp-activity-fullscreen .fi-rr-compress,
body.fc-training-player-page.fullscreen .fc-tp-activity-embed .fc-tp-activity-toolbar .fc-tp-activity-fullscreen .fi-rr-compress {
  display: inline;
}

body.fc-training-player-page .fc-tp-activity-body .field--name-created,
body.fc-training-player-page .fc-tp-activity-body .field--name-changed {
  display: none !important;
}

body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-toolbar .fc-tp-activity-fullscreen .fi {
  font-size: 20px;
  line-height: 1;
}

/* Treść lekcji — ramka viewer pod toolbarem (jak mockup) */
body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-shell > .fc-tp-activity-body,
body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-shell form > :not(.form-actions) {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
}

body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-body {
  border: 1px solid var(--fc-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: #faf9fb;
  overflow: visible;
  position: relative;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Opigno video — jeden flush kontener, bez podwójnych ramek/paddingu motywu. */
body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-body--video,
body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-body.opigno_activity:has(.videoWrapper),
body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-body.opigno_activity:has(.video-js),
body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-body:has(.videoWrapper),
body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-body:has(.video-js) {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: #000 !important;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  line-height: 0;
  display: block;
}

body.fc-training-player-page .fc-tp-activity-body--video > :not(.videoWrapper):not(.field--name-field-video):not(.field--name-field-external-video),
body.fc-training-player-page .fc-tp-activity-body--video .field--name-field-external-video:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body.fc-training-player-page .fc-tp-activity-body .videoWrapper,
body.fc-training-player-page .fc-tp-activity-body .field--name-field-video,
body.fc-training-player-page .fc-tp-activity-body .field--name-field-external-video,
body.fc-training-player-page.section-module .fc-tp-activity-shell .videoWrapper,
body.fc-training-player-page.section-module .opigno_activity__wrapper.fc-tp-activity-shell .videoWrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  box-sizing: border-box;
  line-height: normal;
  font-size: 1rem;
}

/* Video.js — aspect-ratio na wrapperze; player wypełnia całość. */
body.fc-training-player-page .opigno_activity .videoWrapper:has(.video-js),
body.fc-training-player-page .fc-tp-activity-body .videoWrapper:has(.video-js),
body.fc-training-player-page .fc-tp-activity-body--video .videoWrapper,
body.fc-training-player-page .fc-tp-activity-body .field--name-field-video:has(.video-js),
body.fc-training-player-page .fc-tp-activity-body--video .field--name-field-external-video:has(.video-js) {
  position: relative !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
  background: #000;
  display: block;
}

body.fc-training-player-page .fc-tp-activity-body .videoWrapper .video-js,
body.fc-training-player-page .fc-tp-activity-body .videoWrapper .video-js.vjs-fluid,
body.fc-training-player-page .fc-tp-activity-body .videoWrapper .video-js.vjs-16-9 {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  padding: 0 !important;
  padding-top: 0 !important;
  border-radius: 0;
  overflow: hidden;
}

body.fc-training-player-page .fc-tp-activity-body .videoWrapper .video-js .vjs-tech {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  background: #000;
}

body.fc-training-player-page .fc-tp-activity-body .videoWrapper .video-js .vjs-poster {
  inset: 0;
  background-color: #000;
  background-size: contain;
  background-position: center center;
}

body.fc-training-player-page .fc-tp-activity-body .videoWrapper .video-js.vjs-has-started .vjs-poster,
body.fc-training-player-page .fc-tp-activity-body .videoWrapper .video-js.vjs-playing .vjs-poster {
  display: none;
}

body.fc-training-player-page .fc-tp-activity-body .videoWrapper .video-js .vjs-control-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  border-radius: 0;
  background-color: rgba(0, 0, 0, 0.85);
}

body.fc-training-player-page .fc-tp-activity-body .videoWrapper + div,
body.fc-training-player-page .fc-tp-activity-body .videoWrapper + div > div:first-child,
body.fc-training-player-page .fc-tp-activity-body--video .videoWrapper + div {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

body.fc-training-player-page .fc-tp-activity-body .videoWrapper .video-js .vjs-big-play-button {
  z-index: 2;
}

/* Legacy main.css ustawia .videoWrapper { height:0 } i pozycjonuje samo <video> — psuje Video.js. */
body.fc-training-player-page .opigno_activity .videoWrapper:has(.video-js) video,
body.fc-training-player-page .opigno_activity .videoWrapper:has(.video-js) .video-js .vjs-tech {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: contain;
}

body.fc-training-player-page .fc-tp-activity-body .videoWrapper:not(:has(.video-js)) video,
body.fc-training-player-page .fc-tp-activity-body .videoWrapper:not(:has(.video-js)) .fc-opigno-native-video,
body.fc-training-player-page .fc-tp-activity-body .videoWrapper:not(:has(.video-js)) iframe,
body.fc-training-player-page .fc-tp-activity-body .videoWrapper:not(:has(.video-js)) object,
body.fc-training-player-page .fc-tp-activity-body .videoWrapper:not(:has(.video-js)) embed {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border: 0;
  object-fit: contain;
}

/* Native HTML5 (video_player_list) — bez Video.js; ogranicz overflow karty lekcji. */
body.fc-training-player-page .fc-tp-lesson-card:has(.videoWrapper:not(:has(.video-js))),
body.fc-training-player-page .fc-tp-activity-embed:has(.videoWrapper:not(:has(.video-js))) {
  overflow: hidden;
}

body.fc-training-player-page .fc-tp-activity-body--video .videoWrapper:not(:has(.video-js)),
body.fc-training-player-page .fc-tp-activity-body .videoWrapper:not(:has(.video-js)) {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
  background: #000;
  border-radius: var(--radius-lg);
}

body.fc-training-player-page.fullscreen .fc-tp-activity-embed .fc-tp-activity-body--video,
body.fc-training-player-page.fullscreen .fc-tp-activity-embed .fc-tp-activity-body:has(.video-js),
body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-embed .fc-tp-activity-body--video,
body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-embed .fc-tp-activity-body:has(.video-js) {
  border-radius: var(--radius-md);
  display: block;
}

body.fc-training-player-page.fullscreen .fc-tp-activity-body--video .videoWrapper,
body.fc-training-player-page.fullscreen .fc-tp-activity-body:has(.video-js) .videoWrapper,
body.fc-training-player-page.fullscreen .fc-tp-activity-body--video .field--name-field-video:has(.video-js),
body.fc-training-player-page.fullscreen .fc-tp-activity-body--video .field--name-field-external-video:has(.video-js),
body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-body--video .videoWrapper,
body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-body:has(.video-js) .videoWrapper,
body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-body--video .field--name-field-video:has(.video-js),
body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-body--video .field--name-field-external-video:has(.video-js) {
  width: min(100%, calc((100vh - 240px) * 16 / 9));
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  padding: 0 !important;
  padding-bottom: 0 !important;
}

body.fc-training-player-page.fullscreen .fc-tp-activity-body--video .videoWrapper .video-js,
body.fc-training-player-page.fullscreen .fc-tp-activity-body:has(.video-js) .videoWrapper .video-js,
body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-body--video .videoWrapper .video-js,
body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-body:has(.video-js) .videoWrapper .video-js {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/*
 * H5P tooltips (Course Presentation progress, Question Set itp.)
 * Źródło: web/modules/contrib/h5p/vendor/h5p/h5p-core/styles/h5p-tooltip.css
 * Opigno/Aristotle nie nadpisują tego — używają domyślnego H5P.
 * JS ustawia left/top z getBoundingClientRect (współrz. viewport), a CSS H5P
 * ma position:absolute wzgl. dokumentu → po scrollu tooltip ląduje w złym miejscu.
 * position:fixed + wyższy z-index = poprawne kotwiczenie przy scrollu strony.
 */
body.fc-training-player-page .h5p-tooltip,
body.section-module .h5p-tooltip {
  position: fixed !important;
  z-index: 100010;
  background: #2c3340;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  padding: 6px 10px;
  box-shadow: 0 6px 18px rgba(26, 21, 35, 0.22);
  word-break: normal;
  white-space: nowrap;
  max-width: min(280px, 90vw);
  pointer-events: auto;
}

body.fc-training-player-page .h5p-tooltip.h5p-tooltip-visible,
body.section-module .h5p-tooltip.h5p-tooltip-visible {
  display: block;
}

/* Legacy H5P rules target .opigno_activity__wrapper — mirror for v2 shell. */
body.fc-training-player-page.section-module .fc-tp-activity-shell .h5p-content .h5p-footer-previous-slide,
body.fc-training-player-page.section-module .fc-tp-activity-shell .h5p-content .h5p-footer-next-slide,
body.fc-training-player-page.section-module .fc-tp-activity-shell .h5p-content .h5p-question-prev,
body.fc-training-player-page.section-module .fc-tp-activity-shell .h5p-content .h5p-question-next,
body.fc-training-player-page.section-module .opigno_activity__wrapper.fc-tp-activity-shell .h5p-content .h5p-footer-previous-slide,
body.fc-training-player-page.section-module .opigno_activity__wrapper.fc-tp-activity-shell .h5p-content .h5p-footer-next-slide,
body.fc-training-player-page.section-module .opigno_activity__wrapper.fc-tp-activity-shell .h5p-content .h5p-question-prev,
body.fc-training-player-page.section-module .opigno_activity__wrapper.fc-tp-activity-shell .h5p-content .h5p-question-next {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.fc-training-player-page .fc-tp-activity-embed .h5p-iframe-wrapper,
body.fc-training-player-page .fc-tp-activity-embed .h5p-container,
body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-body > .h5p-content {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

body.fc-training-player-page .fc-tp-activity-embed .h5p-iframe-wrapper iframe {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  box-sizing: border-box;
}

body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-shell > .fc-activity-funding-footer {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 0;
}

body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-shell > :not(.fc-tp-activity-toolbar):not(.fc-activity-funding-footer):not(form):not(.form-actions) {
  grid-column: 1 / -1;
  grid-row: 2;
}

@supports not (grid-template-columns: subgrid) {
  body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-toolbar,
  body.fc-training-player-page .fc-tp-activity-embed .fc-tp-activity-shell .form-actions {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }
}

body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-embed .fc-tp-activity-shell {
  display: block;
  padding-top: 0;
}

/* Wideo w fullscreen — grid jak w normalnym widoku (bez rozciągania wiersza na cały viewport). */
body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-embed .fc-tp-activity-shell:has(.video-js),
body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-embed .fc-tp-activity-shell:has(.fc-tp-activity-body--video) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-rows: auto auto;
  align-items: stretch;
}

body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-embed .fc-tp-activity-shell:has(.video-js) > form,
body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-embed .fc-tp-activity-shell:has(.fc-tp-activity-body--video) > form {
  display: contents;
}

body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-embed .fc-tp-activity-shell:has(.video-js) > .fc-tp-activity-body,
body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-embed .fc-tp-activity-shell:has(.video-js) form > :not(.form-actions),
body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-embed .fc-tp-activity-shell:has(.fc-tp-activity-body--video) > .fc-tp-activity-body,
body.fc-training-player-page.section-module.fullscreen .fc-tp-activity-embed .fc-tp-activity-shell:has(.fc-tp-activity-body--video) form > :not(.form-actions) {
  grid-column: 1 / -1;
  grid-row: 2;
}

.fc-tp-lesson-card__footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 4px 0;
  border-top: 1px solid var(--fc-border);
  background: transparent;
}

.fc-tp-lesson-card__footer-link {
  color: var(--fc-primary);
  font-weight: 800;
  text-decoration: none;
  justify-self: end;
}

.fc-tp-lesson-card__page-indicator {
  justify-self: start;
}

.fc-tp-lesson-card__criteria {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 12px 4px 0;
  margin-top: 4px;
  border-top: 1px solid var(--fc-border);
  color: var(--fc-muted);
  font-size: 12px;
  line-height: 1.45;
}

.fc-tp-lesson-card__criteria-caption {
  color: var(--fc-heading);
  font-size: 12px;
  font-weight: 700;
}

.fc-tp-lesson-card__criteria-divider,
.fc-tp-lesson-card__criteria-sep {
  display: inline-block;
  flex: 0 0 auto;
  width: 1px;
  height: 14px;
  margin: 0 10px;
  background: #c5cad3;
}

.fc-tp-lesson-card__criteria-list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  color: var(--fc-muted);
  font-size: 12px;
  font-weight: 500;
}

.fc-tp-lesson-card__criteria-list > span:not(.fc-tp-lesson-card__criteria-sep) {
  color: var(--fc-text);
}

.fc-tp-lesson-card__criterion {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  border: 1px solid transparent;
}

.fc-tp-lesson-card__criterion--required {
  color: var(--fc-success);
  background: var(--fc-success-bg);
  border-color: rgba(19, 125, 85, 0.12);
}

.fc-tp-lesson-card__criterion--threshold {
  color: var(--fc-primary);
  background: var(--fc-primary-soft);
  border-color: rgba(149, 68, 137, 0.16);
}

.fc-tp-lesson-card__criterion--open {
  color: #42638a;
  background: #edf3fb;
  border-color: rgba(66, 99, 138, 0.12);
}

.fc-tp-lesson-card__criterion--quiz,
.fc-tp-lesson-card__criterion--attempts {
  color: #8a5a00;
  background: #fff4df;
  border-color: rgba(138, 90, 0, 0.12);
}

/* ── Słownik ── */
body.fc-training-player-page .fortcyber-glossary-block--search:not(.fc-tp-glossary) {
  display: none !important;
}

.fc-tp-player-page .fc-tp-glossary.fortcyber-glossary-block--search {
  padding: 18px;
  margin-top: 0;
}

.fc-tp-player-page .fc-tp-glossary h3,
.fc-tp-player-page .fc-tp-glossary .fortcyber-glossary-block__title {
  margin: 0 0 12px;
  color: var(--fc-heading);
  font-size: 18px;
  text-transform: none;
}

.fc-tp-player-page .fortcyber-glossary-block__search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--fc-text);
  font-size: 13px;
  font-weight: 700;
}

.fc-tp-player-page .fc-tp-glossary__input,
.fc-tp-player-page .fortcyber-glossary-block__search-input {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--fc-border);
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.4;
}

.fc-tp-player-page .fc-tp-glossary__input:focus,
.fc-tp-player-page .fortcyber-glossary-block__search-input:focus {
  border-color: var(--fc-primary);
  outline: none;
}

.fc-tp-player-page .fortcyber-glossary-block__matches {
  margin-bottom: 10px;
}

.fc-tp-player-page .fortcyber-glossary-block__matches-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fc-tp-player-page .fortcyber-glossary-block__matches-item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fc-tp-player-page .fortcyber-glossary-block__matches-btn {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--fc-border);
  border-radius: 999px;
  color: var(--fc-primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  box-shadow: none;
}

.fc-tp-player-page .fortcyber-glossary-block__matches-btn:hover {
  border-color: rgba(149, 68, 137, 0.35);
  background: var(--fc-primary-soft-2);
}

.fc-tp-player-page .fortcyber-glossary-block__source {
  display: none !important;
}

.fc-tp-player-page .fortcyber-glossary-block__result {
  margin-bottom: 12px;
  padding-top: 0;
  border-top: 0;
}

.fc-tp-player-page .fortcyber-glossary-block__result-title {
  color: var(--fc-heading);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.fc-tp-player-page .fortcyber-glossary-block__result-definition {
  color: var(--fc-muted);
  font-size: 14px;
  line-height: 1.45;
}

.fc-tp-player-page .fc-tp-glossary__full-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--fc-primary);
  font-weight: 400;
  font-size: 14px;
  text-decoration: none;
}

.fc-tp-player-page .fc-tp-glossary__full-link:hover {
  text-decoration: underline;
}

.fc-tp-player-blocked {
  padding: 24px;
  text-align: center;
}

.fc-tp-player-blocked__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.fc-tp-result-score {
  margin: 12px 0;
  font-size: 18px;
}

.fc-tp-result-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.fc-tp-result-card__kicker {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--fc-primary-soft-2);
  color: var(--fc-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fc-tp-result-card__intro h2 {
  margin: 0;
  color: var(--fc-heading);
  font-size: 22px;
  line-height: 1.2;
}

.fc-tp-result-card__score {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 72px;
  min-height: 72px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--fc-primary-soft-2);
  border: 1px solid var(--fc-border);
  color: var(--fc-primary-deep);
  font-size: 22px;
  line-height: 1;
}

.fc-tp-result-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.fc-tp-result-card__actions--top {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fc-border);
}

.fc-tp-result-card__actions--stacked {
  flex-direction: column;
  align-items: stretch;
  max-width: 320px;
}

.fc-tp-result-card__actions--stacked .fc-btn {
  justify-content: center;
}

.fc-tp-result-card__actions--bottom {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--fc-border);
  justify-content: flex-end;
}

.fc-tp-result-body--items {
  display: grid;
  gap: 16px;
}

.fc-tp-player-page--result .fc-tp-result-body .form-actions,
.fc-tp-player-page--result .fc-tp-result-body #edit-actions {
  display: none !important;
}

.fc-tp-player-page--result-review .fc-tp-module-panel__criteria {
  display: none;
}

/* ── Pełny ekran: tylko pasek „Aktualnie” + workspace ── */
body.fc-training-player-page.fullscreen .fc-breadcrumb,
body.fc-training-player-page.section-module.fullscreen .fc-breadcrumb,
body.fc-training-player-page.fullscreen .fc-availability-notice,
body.fc-training-player-page.section-module.fullscreen .fc-availability-notice,
body.fc-training-player-page.fullscreen .fc-tp-player-notice,
body.fc-training-player-page.section-module.fullscreen .fc-tp-player-notice,
body.fc-training-player-page.fullscreen .fc-tp-hero,
body.fc-training-player-page.section-module.fullscreen .fc-tp-hero,
body.fc-training-player-page.fullscreen .fc-tp-path-strip,
body.fc-training-player-page.section-module.fullscreen .fc-tp-path-strip {
  display: none !important;
}

body.fc-training-player-page.fullscreen .fc-tp-player-page,
body.fc-training-player-page.section-module.fullscreen .fc-tp-player-page {
  padding-top: 0;
  padding-bottom: 24px;
}

body.fc-training-player-page.fullscreen .fc-tp-layout,
body.fc-training-player-page.section-module.fullscreen .fc-tp-layout {
  gap: 12px;
}

body.fc-training-player-page.fullscreen .fc-tp-workspace__current,
body.fc-training-player-page.section-module.fullscreen .fc-tp-workspace__current {
  display: block;
}

body.fc-training-player-page.fullscreen .fc-tp-path-strip__current,
body.fc-training-player-page.section-module.fullscreen .fc-tp-path-strip__current {
  margin: 0;
}

body.fc-training-player-page.fullscreen .page-main,
body.fc-training-player-page.section-module.fullscreen .page-main,
body.fc-training-player-page.fullscreen .page-main > .container,
body.fc-training-player-page.section-module.fullscreen .page-main > .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .fc-tp-workspace {
    grid-template-columns: 1fr;
  }

  .fc-tp-module-panel,
  .fc-tp-lesson-column {
    grid-row: auto;
    grid-column: auto;
  }

  .fc-tp-path-strip__stepper {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    overflow: auto;
  }

  .fc-tp-module-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .fc-tp-player-page {
    padding-bottom: 48px;
  }

  .fc-tp-player-page .fc-tp-hero {
    padding: 20px 20px 0;
  }

  .fc-tp-player-page .fc-tp-hero {
    min-height: auto;
  }

  .fc-tp-player-page .fc-tp-hero__main {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 14px;
  }

  .fc-tp-player-page .fc-tp-hero__copy {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .fc-tp-player-page .fc-tp-hero__orbit {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    grid-template-columns: auto 1fr;
    align-items: center;
    text-align: left;
  }

  .fc-tp-player-page .fc-tp-hero .fc-tp-hero__status-box {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    max-width: none;
    width: fit-content;
  }

  .fc-tp-player-page .fc-tp-hero__orbit-caption {
    text-align: left;
  }

  .fc-tp-player-page .fc-tp-hero h2 {
    font-size: 24px;
  }

  .fc-tp-player-page .fc-tp-hero__subtitle {
    font-size: 13px;
  }

  .fc-tp-player-page .fc-tp-hero__footer {
    flex-direction: column;
    align-items: stretch;
    margin: 14px -20px 0;
    padding: 10px 20px;
  }
}
