/**
 * FortCyber Legacy UI — nakładka CSS dla widoków Opigno legacy.
 * Scope: body.fc-legacy-ui (nie ładuje się na stronach v2).
 * Tokeny: fortcyber_ui/base (--fc-*).
 */

/* ── Guard: podwójna ochrona widoków v2 ── */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui {
  --fc-legacy-navy: #2f3758;
  --fc-legacy-primary-softer: rgba(149, 68, 137, 0.06);
}

/* ── 1. Typografia i tło strony ── */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui {
  background:
    radial-gradient(circle at 15% 8%, rgba(149, 68, 137, 0.07), transparent 32%),
    radial-gradient(circle at 85% 0%, rgba(149, 68, 137, 0.05), transparent 28%),
    var(--fc-bg, #f7f7fa) !important;
  color: var(--fc-text, #1e1b24);
  font-family: var(--fc-font, Inter, Manrope, system-ui, sans-serif);
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .dialog-off-canvas-main-canvas,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main {
  background: transparent;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main > .container {
  max-width: var(--fc-layout-width, min(1480px, calc(100vw - 28px)));
}

/* ── 2. Karty / bloki (.content-box) ── */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box:not(.fc-ui):not(.fc-td-page):not(.fc-tp-page):not(.fc-profile-page):not(.fc-tp-player-page),
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.section-admin .page-main .col-lg-12 > form.fc-legacy-panel:not(.views-exposed-form):not(.search-form):not(.user-login-form):not(.fortcyber-admin-people-exposed),
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.section-admin .page-main .col-lg-12 > div:not(:has(.fc-legacy-panel)):not(:has(.fc-legacy-view-host)):not(:has(.content-box)):not(:has(#block-fortcyber-tabs)):not(:has(#block-tabs)),
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fc-legacy-view-host .view-content:not(:has(.content-box)):not(:has(.group--catalog-item)) {
  background: var(--fc-card, #fff) !important;
  border: 1px solid var(--fc-border, #e7dfe8) !important;
  border-radius: var(--fc-radius-lg, 12px) !important;
  box-shadow: var(--fc-shadow-soft, 0 8px 24px rgba(45, 35, 55, 0.06)) !important;
  margin-bottom: 20px;
  overflow: hidden;
  padding: 24px 28px;
}

/* Zakładki lokalne nad kartą — opakowanie bez tła, biała karta tylko na formularzu. */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .col-lg-12 > div:has(.fc-legacy-panel),
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .col-lg-12 > div:has(#block-fortcyber-tabs),
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .col-lg-12 > div:has(#block-tabs),
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.section-faq-page .page-main .col-lg-12 > div:has(form.faq-order-form) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .col-lg-12 > div:has(.fc-legacy-panel) > form.fc-legacy-panel:not(.fc-campaign-list-filter-form):not(.fc-event-list-filter-form):not(.fc-user-email-lookup-form):not(.views-exposed-form),
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.section-faq-page .page-main .col-lg-12 > div:has(form.faq-order-form) > form.faq-order-form.fc-legacy-panel {
  background: var(--fc-card, #fff) !important;
  border: 1px solid var(--fc-border, #e7dfe8) !important;
  border-radius: var(--fc-radius-lg, 12px) !important;
  box-shadow: var(--fc-shadow-soft, 0 8px 24px rgba(45, 35, 55, 0.06)) !important;
  box-sizing: border-box;
  margin-bottom: 20px;
  overflow: hidden;
  padding: 24px 28px;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .col-lg-12 > div:has(#block-fortcyber-tabs) > .fc-dash,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .col-lg-12 > div:has(#block-tabs) > .fc-dash {
  background: var(--fc-card, #fff) !important;
  border: 1px solid var(--fc-border, #e7dfe8) !important;
  border-radius: var(--fc-radius-lg, 12px) !important;
  box-shadow: var(--fc-shadow-soft, 0 8px 24px rgba(45, 35, 55, 0.06)) !important;
  box-sizing: border-box !important;
  margin: 0 0 20px !important;
  max-width: none !important;
  overflow: hidden;
  padding: 24px 28px !important;
  width: 100% !important;
}

/* Treść główna pod zakładkami (np. wersje węzła) — region content owija bloki w jednym div. */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.section-admin .page-main .col-lg-12 > div:has(#block-fortcyber-tabs):not(:has(.fc-legacy-panel)) > .block-system-main-block,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.section-admin .page-main .col-lg-12 > div:has(#block-tabs):not(:has(.fc-legacy-panel)) > .block-system-main-block {
  background: var(--fc-card, #fff) !important;
  border: 1px solid var(--fc-border, #e7dfe8) !important;
  border-radius: var(--fc-radius-lg, 12px) !important;
  box-shadow: var(--fc-shadow-soft, 0 8px 24px rgba(45, 35, 55, 0.06)) !important;
  box-sizing: border-box;
  margin-bottom: 20px;
  overflow: hidden;
  padding: 24px 28px;
  width: 100%;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .col-lg-12 > div:has(.fc-legacy-panel) #block-fortcyber-tabs,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .col-lg-12 > div:has(.fc-legacy-panel) #block-tabs,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .col-lg-12 > div:has(#block-fortcyber-tabs) #block-fortcyber-tabs,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .col-lg-12 > div:has(#block-tabs) #block-tabs,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.section-faq-page .page-main .col-lg-12 > div:has(form.faq-order-form) #block-fortcyber-tabs {
  margin-bottom: 16px;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box__title {
  color: var(--fc-legacy-navy, #2f3758);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  text-align: left;
  text-transform: none;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box__top-section {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box__top-section .content-box__title {
  margin-bottom: 0;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box__info {
  color: var(--fc-muted, #6f6a78);
  font-size: 14px;
  text-align: left;
}

/* ── 3. Przyciski ── */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box .btn-bg,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box .form-submit.button--primary,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box input[type="submit"].button--primary,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .form-actions .form-submit:not(.btn-reset-filter),
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .views-exposed-form .form-submit:not(.fc-catalog-search-submit):not(.btn-reset-filter),
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .view-footer a.btn,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .see-all .btn,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .view-empty a.btn {
  align-items: center;
  background: var(--fc-primary, #954489) !important;
  border: 1px solid var(--fc-primary, #954489) !important;
  border-radius: var(--fc-radius-sm, 6px) !important;
  box-shadow: 0 8px 20px rgba(149, 68, 137, 0.2);
  color: #fff !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  min-width: 0;
  padding: 10px 16px;
  text-decoration: none;
  transition: 160ms ease;
  white-space: nowrap;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box .btn-bg:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box .form-submit.button--primary:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .form-actions .form-submit:not(.btn-reset-filter):hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .views-exposed-form .form-submit:not(.fc-catalog-search-submit):not(.btn-reset-filter):hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .view-footer a.btn:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .see-all .btn:hover {
  background: var(--fc-primary-dark, #7e3873) !important;
  border-color: var(--fc-primary-dark, #7e3873) !important;
  color: #fff !important;
  text-decoration: none;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box .btn-rounded,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box .btn:not(.btn-bg):not(.block):not(.line):not(.burger):not(.active),
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .achievements-tabs .btn:not(.active) {
  background: #fff !important;
  border: 1px solid rgba(149, 68, 137, 0.4) !important;
  border-radius: var(--fc-radius-sm, 6px) !important;
  color: var(--fc-primary, #954489) !important;
  font-weight: 700;
  min-height: 42px;
  min-width: 0;
  padding: 10px 16px;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box .btn-rounded:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box .btn:not(.btn-bg):not(.block):not(.line):not(.burger):not(.active):hover {
  background: var(--fc-primary-soft, #f7edf5) !important;
  color: var(--fc-primary, #954489) !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .achievements-tabs .btn.active {
  background: var(--fc-primary, #954489) !important;
  border-color: var(--fc-primary, #954489) !important;
  color: #fff !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box .btn-border-red,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box .remove-button {
  background: transparent !important;
  border: 1px solid var(--fc-danger, #e04f5f) !important;
  border-radius: var(--fc-radius-sm, 6px) !important;
  color: var(--fc-danger, #e04f5f) !important;
  min-width: 0;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box .btn-border-red:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box .remove-button:hover {
  background: var(--fc-danger-bg, #fdecef) !important;
}

/* Lista elementów w content-box (szkolenia, wiadomości) */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box .item-list .btn,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .last-training .btn,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .who-is .btn {
  background: var(--fc-surface, #fbfafd) !important;
  border: 1px solid var(--fc-border, #e7dfe8) !important;
  border-radius: var(--fc-radius-md, 10px) !important;
  color: var(--fc-text, #1e1b24) !important;
  font-weight: 600;
  min-height: auto;
  min-width: 0;
  padding: 12px 14px;
  width: 100%;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .content-box .item-list .btn:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .last-training .btn:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .who-is .btn:hover {
  background: var(--fc-primary-soft, #f7edf5) !important;
  border-color: rgba(149, 68, 137, 0.35) !important;
}

/* ── 4. Tabele ── */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .statistics-table,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main table.views-table,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .views-responsive-table table,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fc-legacy-panel table,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main table.responsive-enabled,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .trainings-list table,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .achievements-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  width: 100%;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .statistics-table thead,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main table.views-table thead,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .views-responsive-table table thead,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fc-legacy-panel table thead,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main table.responsive-enabled thead,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .trainings-list thead,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .achievements-table thead {
  border-bottom: 1px solid var(--fc-border, #e7dfe8);
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .statistics-table thead th,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main table.views-table thead th,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .views-responsive-table table thead th,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fc-legacy-panel table thead th,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main table.responsive-enabled thead th,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .trainings-list thead th,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .achievements-table thead th {
  border-bottom: 1px solid var(--fc-border, #e7dfe8);
  color: var(--fc-legacy-navy, #2f3758);
  font-size: 13px;
  font-weight: 800;
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .statistics-table tbody td,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main table.views-table tbody td,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .views-responsive-table table tbody td,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fc-legacy-panel table tbody td,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main table.responsive-enabled tbody td,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .trainings-list tbody td,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .achievements-table tbody td {
  border-bottom: 1px solid var(--fc-border, #e7dfe8);
  color: var(--fc-text, #1e1b24);
  padding: 14px;
  vertical-align: middle;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .statistics-table tbody tr:last-child td,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main table.views-table tbody tr:last-child td,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .views-responsive-table table tbody tr:last-child td,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .trainings-list tbody tr:last-child td {
  border-bottom: 0;
}

@media (min-width: 768px) {
  html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .statistics-table tbody tr:hover td,
  html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main table.views-table tbody tr:hover td,
  html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .views-responsive-table table tbody tr:hover td,
  html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .trainings-list tbody tr:hover td {
    background: var(--fc-legacy-primary-softer, rgba(149, 68, 137, 0.06));
  }
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .statistics-table a,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main table.views-table a {
  color: var(--fc-primary, #954489);
  font-weight: 600;
  text-decoration: none;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .statistics-table a:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main table.views-table a:hover {
  color: var(--fc-primary-dark, #7e3873);
  text-decoration: underline;
}

/* Pusty stan tabel statystyk */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .statistics-table tbody tr:only-child td[colspan] {
  border-bottom: 0 !important;
  padding: 36px 24px !important;
  text-align: center !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fc-statistics-table-empty {
  align-items: center;
  color: var(--fc-muted, #6f6a78);
  display: flex;
  font-size: 15px;
  font-weight: 500;
  justify-content: center;
  line-height: 1.5;
  min-height: 72px;
  text-align: center;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fc-statistics-table-empty__text {
  max-width: 28rem;
}

/* ── 5. Formularze / filtry ── */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .views-exposed-form {
  background: var(--fc-surface, #fbfafd);
  border: 1px solid var(--fc-border, #e7dfe8);
  border-radius: var(--fc-radius-md, 10px);
  margin-bottom: 20px;
  padding: 16px 18px;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .views-exposed-form .form-item label,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .form-item label {
  color: var(--fc-legacy-navy, #2f3758);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fc-admin-list-filters .form-item > .label label,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fc-event-list-filter-form .form-item > .label label,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fc-campaign-list-filter-form .form-item > .label label {
  margin-bottom: 0 !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .views-exposed-form .form-text,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .views-exposed-form .form-email,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fortcyber-admin-people-exposed input.form-text,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .views-exposed-form .bootstrap-select > .dropdown-toggle,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fortcyber-admin-people-exposed .bootstrap-select > .dropdown-toggle {
  background: #fff;
  border: 1px solid var(--fc-border, #e7dfe8);
  border-radius: var(--fc-radius-sm, 6px);
  box-shadow: none;
  color: var(--fc-text, #1e1b24);
  font-size: 14px;
  font-weight: 400;
  min-height: 42px;
  padding: 8px 12px;
  width: 100%;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .views-exposed-form .form-text:focus,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fortcyber-admin-people-exposed .form-text:focus,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .views-exposed-form .bootstrap-select > .dropdown-toggle:focus,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .views-exposed-form .bootstrap-select.show > .dropdown-toggle,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fortcyber-admin-people-exposed .bootstrap-select > .dropdown-toggle:focus,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fortcyber-admin-people-exposed .bootstrap-select.show > .dropdown-toggle {
  border-color: var(--fc-primary, #954489);
  box-shadow: 0 0 0 3px rgba(149, 68, 137, 0.12);
  outline: none;
}

/* bootstrap-select: bez podwójnego tła (wrapper + przycisk) */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .views-exposed-form .bootstrap-select.form-select,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fortcyber-admin-people-exposed .bootstrap-select.form-select {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-people .fortcyber-admin-people-exposed {
  display: block;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fortcyber-admin-people-exposed {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fortcyber-admin-people-exposed .form-item {
  flex: 1 1 180px;
  margin: 0;
}

/* ── 6. Widoki specyficzne ── */

/* Katalog szkoleń */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .view-content,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue .view-opigno-training-catalog .view-content {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .view-header {
  color: var(--fc-legacy-navy, #2f3758);
  font-weight: 800;
  margin-bottom: 16px;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .views-row .content-box,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .views-row,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .group--catalog-item,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue .view-opigno-training-catalog .views-row,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue .view-opigno-training-catalog .group--catalog-item {
  background: #fff !important;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .fields-content,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .body-wrapper,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .text-wrapper,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .progress-wrapper,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue .view-opigno-training-catalog .fields-content,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue .view-opigno-training-catalog .body-wrapper,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue .view-opigno-training-catalog .text-wrapper,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue .view-opigno-training-catalog .progress-wrapper {
  background: #fff !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .views-row .content-box:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .views-row:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .group--catalog-item:hover {
  border-color: rgba(149, 68, 137, 0.35);
  box-shadow: var(--fc-shadow, 0 18px 45px rgba(45, 35, 55, 0.08));
}

/* Nie ruszaj przełączników widoku katalogu (ikony) */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .view-style .btn.block,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .view-style .btn.line,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .view-style .style-btn,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .burger {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
}

/* Dashboard statystyk */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-statistics-dashboard .content-box.trainings-list,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-statistics-dashboard .content-box.users-summary,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-statistics-dashboard .content-box.skills-list,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-statistics-dashboard .content-box.reports-list {
  margin-bottom: 24px;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-statistics-dashboard .trainings-content-title,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-statistics-dashboard .users-summary-title {
  color: var(--fc-legacy-navy, #2f3758);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: none;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-statistics-dashboard .charts-section {
  border-top: 1px solid var(--fc-border, #e7dfe8);
  margin-top: 8px;
  padding-top: 24px;
}

/* Wyniki szkolenia */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-statistics-training .training-content-title,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-statistics-training .users-results-title {
  color: var(--fc-legacy-navy, #2f3758);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: none;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-statistics-training .training-metrics-wrapper {
  border: 1px solid var(--fc-border, #e7dfe8);
  border-radius: var(--fc-radius-md, 10px);
  margin-bottom: 20px;
  padding: 16px 18px;
}

/* Statystyki użytkownika legacy */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .user-statistics-page .profile-info__name {
  color: var(--fc-legacy-navy, #2f3758);
  font-size: 1.25rem;
  font-weight: 800;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .user-statistics-page .profile-trends .statistics-list__item .number,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .user-statistics-page .profile-info__statistics .number {
  color: var(--fc-primary, #954489);
  font-weight: 800;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .user-statistics-page .statistics-list .up {
  color: var(--fc-success, #1fa971);
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .user-statistics-page .statistics-list .down {
  color: var(--fc-danger, #e04f5f);
}

/* Lista użytkowników */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-people .views-responsive-table.content-box,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-entity-user-collection .views-responsive-table.content-box {
  padding: 0;
  overflow: hidden;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-people .views-responsive-table.content-box > table,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-entity-user-collection .views-responsive-table.content-box > table,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-people .view-user-admin-people table.views-table,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-entity-user-collection .view-user-admin-people table.views-table {
  margin: 0;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-people .pager,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-entity-user-collection .pager {
  margin-top: 16px;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-people .pager a,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-people .pager .button,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-entity-user-collection .pager a,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-entity-user-collection .pager .button {
  border-radius: var(--fc-radius-sm, 6px);
  color: var(--fc-primary, #954489);
  font-weight: 700;
}

/* Admin szkoleń */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-structure-trainings .view-groups-list table.views-table {
  margin-top: 0;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-structure-trainings .view-groups-list .views-field-views-bulk-operations-bulk-form select {
  border: 1px solid var(--fc-border, #e7dfe8);
  border-radius: var(--fc-radius-sm, 6px);
  min-height: 38px;
}

/* Paginacja ogólna */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .pager__item a,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .pager__item.is-active a {
  border-radius: var(--fc-radius-sm, 6px);
  font-weight: 700;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .pager__item.is-active a {
  background: var(--fc-primary, #954489);
  border-color: var(--fc-primary, #954489);
  color: #fff;
}

/* Nagłówki stron (Drupal page title) */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .block-page-title-block h1,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui #block-fortcyber-page-title h1 {
  color: var(--fc-legacy-navy, #2f3758);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: left;
  text-transform: uppercase;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-frontpage .block-page-title-block h1,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-frontpage #block-fortcyber-page-title h1 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

/* ── Menu główne: Start bez zawijania ── */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .main-menu__link {
  font-size: 16px;
  white-space: nowrap;
}

/* ── Zakładki lokalne (Lista / Uprawnienia / Role…) ── */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui #block-tabs > ul a,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui #block-fortcyber-tabs > ul a,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .block-local_tasks_block ul a {
  background: #fff !important;
  border: 1px solid var(--fc-border, #e7dfe8) !important;
  border-radius: var(--fc-radius-sm, 6px) !important;
  box-shadow: none !important;
  color: var(--fc-legacy-navy, #2f3758) !important;
  font-size: 13px;
  font-weight: 700;
  min-height: 38px;
  min-width: 0 !important;
  padding: 8px 14px !important;
  text-decoration: none;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui #block-tabs > ul a.is-active,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui #block-fortcyber-tabs > ul a.is-active,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .block-local_tasks_block ul a.is-active,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui #block-tabs > ul a:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .block-local_tasks_block ul a:hover {
  background: var(--fc-primary-soft, #f7edf5) !important;
  border-color: rgba(149, 68, 137, 0.45) !important;
  color: var(--fc-primary, #954489) !important;
}

/* ── Przyciski outline / filtry statystyk ── */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .fc-statistics-filter-bar a.btn,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .content-box.users-summary .mb-3 a.btn,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .content-box.users-results .mb-3 a.btn {
  border-radius: var(--fc-radius-sm, 6px) !important;
  font-size: 13px;
  font-weight: 700;
  min-height: 38px;
  min-width: 0 !important;
  padding: 8px 14px !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .fc-statistics-filter-bar a.btn.btn-bg,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .content-box.users-summary .mb-3 a.btn.btn-bg,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .content-box.users-results .mb-3 a.btn.btn-bg {
  background: var(--fc-primary, #954489) !important;
  border-color: var(--fc-primary, #954489) !important;
  color: #fff !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .fc-statistics-filter-bar a.btn.btn-outline-primary,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .content-box.users-summary .mb-3 a.btn.btn-outline-primary,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .content-box.users-results .mb-3 a.btn.btn-outline-primary {
  background: #fff !important;
  border: 1px solid rgba(149, 68, 137, 0.45) !important;
  color: var(--fc-primary, #954489) !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .content-box.users-summary.fc-statistics-filter-panel--loading,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .content-box.users-results.fc-statistics-filter-panel--loading {
  opacity: 0.65;
  pointer-events: none;
}

/* ── Dashboard: Ustawienia pulpitu, Dodaj użytkownika ── */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .dashboard-app .trigger-btn .btn,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .region-top .action .btn,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .region-top .btn-rounded,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-people .region-top .btn {
  background: #fff !important;
  border: 1px solid rgba(149, 68, 137, 0.45) !important;
  border-radius: var(--fc-radius-sm, 6px) !important;
  box-shadow: none !important;
  color: var(--fc-primary, #954489) !important;
  font-size: 14px;
  font-weight: 700;
  min-height: 42px;
  min-width: 0 !important;
  padding: 10px 16px !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .dashboard-app .trigger-btn .btn:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .region-top .action .btn:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .region-top .btn-rounded:hover {
  background: var(--fc-primary-soft, #f7edf5) !important;
  color: var(--fc-primary-dark, #7e3873) !important;
}

/* ── Katalog: filtry boczne ── */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog form.views-exposed-form,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue form.views-exposed-form {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue #catalog-filter-parent .catalog-filter .fieldgroup,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue #catalog-filter-parent .catalog-filter .fieldgroup {
  background: var(--fc-card, #fff) !important;
  border: 1px solid var(--fc-border, #e7dfe8) !important;
  border-radius: var(--fc-radius-lg, 12px) !important;
  box-shadow: var(--fc-shadow-soft, 0 8px 24px rgba(45, 35, 55, 0.06)) !important;
  margin-bottom: 16px !important;
  padding: 16px 18px !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue #catalog-filter-parent .catalog-filter .fieldgroup > legend,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue #catalog-filter-parent .catalog-filter .fieldgroup > legend {
  color: var(--fc-legacy-navy, #2f3758) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  margin-bottom: 12px !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue #catalog-filter-parent .apply-catalog-filters,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue #catalog-filter-parent .apply-catalog-filters {
  display: none !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue #catalog-filter-parent .btn-reset-filter,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue #catalog-filter-parent .btn-reset-filter {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-top: 1px solid var(--fc-border, #e7dfe8) !important;
  box-shadow: none !important;
  color: var(--fc-muted, #6f6a78) !important;
  display: inline-flex !important;
  font-size: 13px !important;
  font-weight: 600;
  justify-content: center;
  letter-spacing: 0.01em;
  margin-top: 12px;
  min-height: 0;
  padding: 14px 8px 4px !important;
  text-decoration: none !important;
  text-indent: 0 !important;
  text-transform: none !important;
  width: 100%;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue #catalog-filter-parent .btn-reset-filter::before,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue #catalog-filter-parent .btn-reset-filter::before {
  content: "×";
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1;
  margin-right: 6px;
  opacity: 0.85;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue #catalog-filter-parent .btn-reset-filter:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue #catalog-filter-parent .btn-reset-filter:hover {
  background: transparent !important;
  color: var(--fc-primary, #954489) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue #catalog-filter-parent .form-actions,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue #catalog-filter-parent .form-actions {
  margin-top: 4px;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue #catalog-filter-parent .form-items-group .fc-catalog-search-submit,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue #catalog-filter-parent .form-items-group .form-submit:not(.apply-catalog-filters),
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue #catalog-filter-parent .form-items-group .fc-catalog-search-submit,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue #catalog-filter-parent .form-items-group .form-submit:not(.apply-catalog-filters) {
  background: var(--fc-primary-soft, #f7edf5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23954489' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3C/svg%3E") center/18px no-repeat !important;
  border: 1px solid rgba(149, 68, 137, 0.35) !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  height: 36px !important;
  min-height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  width: 36px !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .views-exposed-form input:checked ~ label.option,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue .views-exposed-form input:checked ~ label.option {
  background: var(--fc-primary, #954489) !important;
  color: #fff !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .views-exposed-form input:checked ~ label.option::before,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue .views-exposed-form input:checked ~ label.option::before {
  color: #fff !important;
  opacity: 1 !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .views-exposed-form label.option,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue .views-exposed-form label.option {
  border-radius: var(--fc-radius-md, 10px);
  color: var(--fc-legacy-navy, #2f3758);
  font-weight: 700;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .btn-bg,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .views-field-opigno-lp-take-link .btn,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .views-field-opigno-lp-take-link a.btn-bg,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue .view-opigno-training-catalog .btn-bg,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue .view-opigno-training-catalog .views-field-opigno-lp-take-link .btn,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue .view-opigno-training-catalog .views-field-opigno-lp-take-link a.btn-bg {
  background: var(--fc-primary, #954489) !important;
  border: 1px solid var(--fc-primary, #954489) !important;
  border-radius: var(--fc-radius-sm, 6px) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  min-height: 42px;
  min-width: 0 !important;
  padding: 10px 16px !important;
  white-space: normal;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .btn-bg:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .views-field-opigno-lp-take-link .btn:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .views-field-opigno-lp-take-link a.btn-bg:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue .view-opigno-training-catalog .btn-bg:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue .view-opigno-training-catalog .views-field-opigno-lp-take-link .btn:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue .view-opigno-training-catalog .views-field-opigno-lp-take-link a.btn-bg:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .btn-bg:focus,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-catalogue .view-opigno-training-catalog .views-field-opigno-lp-take-link .btn:focus,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue .view-opigno-training-catalog .btn-bg:focus,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-view-opigno-training-catalog-training-catalogue .view-opigno-training-catalog .views-field-opigno-lp-take-link .btn:focus {
  background: var(--fc-primary-dark, #7e3873) !important;
  border-color: var(--fc-primary-dark, #7e3873) !important;
  color: #fff !important;
}

/* ── Informacje / FAQ ── */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-informacje .page-main article[data-history-node-id] > div:not([data-contextual-id]),
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-informacje .page-main .content-box,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-informacje .fortcyber-help-center__card {
  background: var(--fc-card, #fff) !important;
  border: 1px solid var(--fc-border, #e7dfe8) !important;
  border-radius: var(--fc-radius-lg, 12px);
  box-shadow: var(--fc-shadow-soft, 0 8px 24px rgba(45, 35, 55, 0.06));
  padding: 24px 28px;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-informacje .page-main article[data-history-node-id] > div[data-contextual-id] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-faq-page .page-main > .container,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-faq-faq-page .page-main > .container {
  max-width: var(--fc-layout-width, min(1480px, calc(100vw - 28px))) !important;
  width: 100%;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-faq-page .faq-content,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-faq-faq-page .faq-content {
  background: var(--fc-card, #fff) !important;
  border: 1px solid var(--fc-border, #e7dfe8) !important;
  border-radius: var(--fc-radius-lg, 12px);
  box-shadow: var(--fc-shadow-soft, 0 8px 24px rgba(45, 35, 55, 0.06));
  max-width: none !important;
  padding: 24px 28px;
  width: 100%;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-faq-page .faq-content > .faq,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-faq-faq-page .faq-content > .faq {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-top: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  width: 100%;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main a.tabledrag-toggle-weight,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main button.tabledrag-toggle-weight {
  align-items: center;
  background: #fff !important;
  border: 1px solid rgba(149, 68, 137, 0.45) !important;
  border-radius: var(--fc-radius-sm, 6px) !important;
  box-shadow: none !important;
  color: var(--fc-primary, #954489) !important;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  margin-bottom: 12px;
  min-height: 38px;
  min-width: 0 !important;
  padding: 8px 14px !important;
  text-decoration: none;
  transition: 160ms ease;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main a.tabledrag-toggle-weight:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main a.tabledrag-toggle-weight:focus,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main button.tabledrag-toggle-weight:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main button.tabledrag-toggle-weight:focus {
  background: var(--fc-primary-soft, #f7edf5) !important;
  color: var(--fc-primary-dark, #7e3873) !important;
}

/* Filtry admin people */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-people .fortcyber-admin-people-exposed .form-items-group {
  align-items: end;
  display: grid;
  gap: 10px 14px;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  width: 100%;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-people .fortcyber-admin-people-exposed .form-item {
  align-items: stretch !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  margin: 0 !important;
  min-width: 0;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-people .fortcyber-admin-people-exposed .form-item > .label {
  flex: 0 0 auto !important;
  max-width: none !important;
  text-align: left !important;
  width: 100% !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-people .fortcyber-admin-people-exposed .form-item > .label label {
  display: block;
  line-height: 1.25;
  margin-bottom: 0 !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-people .fortcyber-admin-people-exposed .form-item > .field {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  flex: 1 1 auto;
  margin-top: 0.25rem;
  min-width: 0;
  padding: 0 !important;
  width: 100%;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-people .fortcyber-admin-people-exposed .form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  width: 100%;
}

/* VBO / akcje masowe — ten sam wygląd selectów */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-people .view-user-admin-people .bootstrap-select.form-select,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-people .view-id-user_admin_people .bootstrap-select.form-select {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-people .view-user-admin-people .bootstrap-select > .dropdown-toggle,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.page-admin-people .view-id-user_admin_people .bootstrap-select > .dropdown-toggle {
  background: #fff !important;
  border: 1px solid var(--fc-border, #e7dfe8) !important;
  border-radius: var(--fc-radius-sm, 6px) !important;
  box-shadow: none !important;
  color: var(--fc-text, #1e1b24) !important;
  font-size: 14px;
  font-weight: 400 !important;
  min-height: 42px !important;
  padding: 8px 36px 8px 12px !important;
  width: 100% !important;
}

/* Przyciski akcji admin (Dodaj użytkownika itd.) */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui #block-fortcyber-primaryadminactions a.button-action,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui #block-fortcyber-primaryadminactions a.btn-rounded,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui #block-primaryadminactions a.button-action {
  background: #fff !important;
  border: 1px solid rgba(149, 68, 137, 0.45) !important;
  border-radius: var(--fc-radius-sm, 6px) !important;
  box-shadow: none !important;
  color: var(--fc-primary, #954489) !important;
  display: inline-flex !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  margin-bottom: 16px;
  min-height: 42px !important;
  min-width: 0 !important;
  padding: 10px 16px !important;
  text-decoration: none !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui #block-fortcyber-primaryadminactions a.button-action:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui #block-fortcyber-primaryadminactions a.btn-rounded:hover {
  background: var(--fc-primary-soft, #f7edf5) !important;
  color: var(--fc-primary-dark, #7e3873) !important;
}

/* Formularze admin — przycisk Zapisz / primary submit */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .page-main .fc-legacy-panel .form-actions .button--primary,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.section-admin .page-main .col-lg-12 form:not(.views-exposed-form):not(.search-form):not(.user-login-form):not(.fortcyber-admin-people-exposed) .form-actions .button--primary {
  background: var(--fc-primary, #954489) !important;
  border-color: var(--fc-primary, #954489) !important;
  border-radius: var(--fc-radius-sm, 6px) !important;
  color: #fff !important;
  font-weight: 700;
  min-height: 42px;
  padding: 10px 16px;
}

/* Edycja grupy / szkolenia — Wróć (sidebar) + Usuń / Zapisz */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.admin-learning-path .aside-col .mb-4 > a.btn {
  align-items: center;
  background: #fff !important;
  border: 1px solid rgba(149, 68, 137, 0.45) !important;
  border-radius: var(--fc-radius-sm, 6px) !important;
  box-shadow: none !important;
  color: var(--fc-primary, #954489) !important;
  display: inline-flex !important;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  min-width: 0 !important;
  padding: 10px 16px !important;
  text-decoration: none !important;
  width: 100%;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.admin-learning-path .aside-col .mb-4 > a.btn:hover {
  background: var(--fc-primary-soft, #f7edf5) !important;
  color: var(--fc-primary-dark, #7e3873) !important;
  text-decoration: none !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.admin-learning-path .content-col > .content-box .form-actions,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.admin-learning-path .content-col .content-box form .form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 1.25rem;
  width: 100%;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.admin-learning-path .content-col > .content-box .form-actions .button--danger,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.admin-learning-path .content-col > .content-box .form-actions #edit-delete,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.admin-learning-path .content-col .content-box form .form-actions .button--danger,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.admin-learning-path .content-col .content-box form .form-actions #edit-delete {
  background: transparent !important;
  border: 1px solid var(--fc-danger, #e04f5f) !important;
  border-radius: var(--fc-radius-sm, 6px) !important;
  box-shadow: none !important;
  color: var(--fc-danger, #e04f5f) !important;
  display: inline-flex !important;
  font-size: 14px;
  font-weight: 700;
  margin-left: 0 !important;
  margin-right: auto;
  min-height: 42px;
  min-width: 0 !important;
  order: -1;
  padding: 10px 16px !important;
  text-decoration: none !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.admin-learning-path .content-col > .content-box .form-actions .button--danger:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.admin-learning-path .content-col > .content-box .form-actions #edit-delete:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.admin-learning-path .content-col .content-box form .form-actions .button--danger:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.admin-learning-path .content-col .content-box form .form-actions #edit-delete:hover {
  background: var(--fc-danger-bg, #fdecef) !important;
  color: var(--fc-danger, #e04f5f) !important;
  text-decoration: none !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.admin-learning-path .content-col > .content-box .form-actions .form-submit,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui.admin-learning-path .content-col .content-box form .form-actions .form-submit {
  border-radius: var(--fc-radius-sm, 6px) !important;
  margin-right: 0 !important;
  min-width: 0 !important;
}

/* Edycja członkostwa w grupie (role użytkownika) */
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui form.group-content-form .fieldgroup {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: block;
  margin-bottom: 0 !important;
  overflow: visible;
  padding: 0 !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui form.group-content-form .fieldgroup > legend {
  float: none;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-align: left;
  text-transform: none;
  width: 100%;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui form.group-content-form .fieldgroup > legend .fieldset-legend {
  color: var(--fc-legacy-navy, #2f3758);
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui form.group-content-form .fieldgroup > .fieldset-wrapper {
  clear: none;
  width: 100%;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui form.group-content-form .js-form-type-checkbox {
  margin-bottom: 0.75rem !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui form.group-content-form .js-form-type-checkbox .field {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  gap: 0;
  min-width: 0;
  width: 100%;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui form.group-content-form .js-form-type-checkbox label.option {
  align-items: center;
  display: inline-flex;
  line-height: 1.25;
  margin-bottom: 0 !important;
  min-height: 1.25rem;
  padding-left: 1.625rem;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui form.group-content-form .js-form-type-checkbox label.option::before {
  top: 50%;
  transform: translateY(-50%);
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui form.group-content-form .form-actions,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .user-form .fc-user-form__actions .form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 1.25rem;
  width: 100%;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui form.group-content-form .form-actions .button--danger,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui form.group-content-form .form-actions #edit-delete,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .user-form .fc-user-form__actions .form-actions .button--danger,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .user-form .fc-user-form__actions .form-actions #edit-delete {
  background: transparent !important;
  border: 1px solid var(--fc-danger, #e04f5f) !important;
  border-radius: var(--fc-radius-sm, 6px) !important;
  box-shadow: none !important;
  color: var(--fc-danger, #e04f5f) !important;
  display: inline-flex !important;
  font-size: 14px;
  font-weight: 700;
  margin-left: 0 !important;
  margin-right: auto;
  min-height: 42px;
  min-width: 0 !important;
  order: -1;
  padding: 10px 16px !important;
  text-decoration: none !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui form.group-content-form .form-actions .button--danger:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui form.group-content-form .form-actions #edit-delete:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .user-form .fc-user-form__actions .form-actions .button--danger:hover,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .user-form .fc-user-form__actions .form-actions #edit-delete:hover {
  background: var(--fc-danger-bg, #fdecef) !important;
  color: var(--fc-danger, #e04f5f) !important;
  text-decoration: none !important;
}

html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui form.group-content-form .form-actions .form-submit,
html:not(.fc-training-details-page):not(.fc-training-progress-page):not(.fc-training-player-page):not(.fc-user-profile-page) body.fc-legacy-ui .user-form .fc-user-form__actions .form-actions .form-submit {
  border-radius: var(--fc-radius-sm, 6px) !important;
  margin-right: 0 !important;
  min-width: 0 !important;
}
