/* LevelUp trainer workspace — persistent client overlay */
html.lu-client-workspace-open, html.lu-client-workspace-open body { overflow: hidden !important; }
#lu-client-workspace { position: fixed; inset: 0; z-index: 2147483000; display: none; background: rgba(7,10,14,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#lu-client-workspace.is-open { display: grid; place-items: center; }
#lu-client-workspace .luClientShell { width: min(98vw, 1760px); height: min(97vh, 1120px); display: grid; grid-template-rows: 54px minmax(0,1fr); overflow: hidden; border: 1px solid rgba(213,179,107,.22); border-radius: 18px; background: #11161d; box-shadow: 0 28px 90px rgba(0,0,0,.5); }
#lu-client-workspace .luClientBar { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:0 14px 0 18px; border-bottom:1px solid rgba(255,255,255,.07); background:linear-gradient(180deg,rgba(25,31,39,.98),rgba(17,22,29,.98)); color:#f5f7fa; font:600 13px/1.2 Inter,system-ui,sans-serif; }
#lu-client-workspace .luClientBarTitle { display:flex; align-items:center; gap:10px; min-width:0; }
#lu-client-workspace .luClientBarDot { width:8px; height:8px; border-radius:50%; background:#d5b36b; box-shadow:0 0 0 4px rgba(213,179,107,.1); }
#lu-client-workspace .luClientBack { border:1px solid rgba(213,179,107,.25); background:rgba(213,179,107,.08); color:#f6e5b8; border-radius:10px; padding:8px 13px; cursor:pointer; font:700 12px/1 Inter,system-ui,sans-serif; transition:.16s ease; }
#lu-client-workspace .luClientBack:hover { transform:translateY(-1px); background:rgba(213,179,107,.14); border-color:rgba(213,179,107,.38); }
#lu-client-workspace .luClientStage { position:relative; min-height:0; background:#0b0f14; }
#lu-client-workspace iframe { position:absolute; inset:0; width:100%; height:100%; border:0; display:none; background:#0b0f14; }
#lu-client-workspace iframe.is-active { display:block; }
#lu-client-workspace .luClientLoader { position:absolute; inset:0; display:none; place-items:center; z-index:3; background:linear-gradient(180deg,#11161d,#0b0f14); color:#d8dde5; font:600 12px/1.3 Inter,system-ui,sans-serif; }
#lu-client-workspace .luClientLoader.is-visible { display:grid; }
#lu-client-workspace .luClientLoaderInner { display:grid; justify-items:center; gap:12px; }
#lu-client-workspace .luClientSpinner { width:30px; height:30px; border-radius:50%; border:2px solid rgba(255,255,255,.12); border-top-color:#d5b36b; animation:luClientSpin .7s linear infinite; }
@keyframes luClientSpin { to { transform:rotate(360deg); } }
@media (max-width: 820px){ #lu-client-workspace .luClientShell{width:100vw;height:100dvh;border:0;border-radius:0;grid-template-rows:50px minmax(0,1fr)} }


/* ===== levelup-v22-ui.css ===== */
/* LevelUp v22 — czytelniejsze tagi, odbiorcy PUSH i Morning Brief */

/* Dashboard główny: wszystkie tagi obok siebie, bez układu 3x2. */
.dashboardView .tableHeader,
.dashboardView .clientRow {
  grid-template-columns:
    minmax(255px, 1.38fr) minmax(180px, 1.18fr)
    minmax(160px, 1fr) 92px 76px !important;
}

.dashboardView .commandClientTags {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 4px !important;
  overflow: visible !important;
}

.dashboardView .commandClientTag {
  min-height: 21px !important;
  max-width: none !important;
  padding: 3px 7px !important;
  border-radius: 6px !important;
  font-size: 9.5px !important;
  font-weight: 780 !important;
  line-height: 1 !important;
  flex: 0 0 auto !important;
}

/* Zakładka Klienci: większe tagi w jednym rzędzie. */
.directoryHead,
.directoryRow {
  grid-template-columns:
    minmax(175px, 0.95fr) minmax(205px, 1.05fr) minmax(310px, 1.45fr)
    106px 106px 72px !important;
}

.directoryTags {
  min-height: 42px !important;
  padding: 5px 8px !important;
  gap: 8px !important;
  overflow: visible !important;
}

.directoryTagList {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 5px !important;
  overflow: visible !important;
}

.directoryTagList .clientTag,
.directoryTagList .emptyTag {
  min-height: 26px !important;
  max-width: none !important;
  padding: 0 9px !important;
  border-radius: 7px !important;
  font-size: 10.5px !important;
  font-weight: 780 !important;
  flex: 0 0 auto !important;
}

.tagEditIcon {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 auto !important;
}

/* Masowy PUSH: czytelniejszy klient, trener, status i data. */
.pushRecipientRow {
  min-height: 64px !important;
  padding-block: 9px !important;
  grid-template-columns: 18px 34px minmax(145px, 1fr) auto 82px !important;
  gap: 9px !important;
}

.recipientAvatar {
  width: 34px !important;
  height: 34px !important;
  font-size: 9.5px !important;
}

.recipientIdentity {
  gap: 4px !important;
}

.recipientIdentity strong {
  font-size: 11.75px !important;
  line-height: 1.2 !important;
}

.recipientIdentity small {
  color: #b6b6bf !important;
  font-size: 10.5px !important;
  font-weight: 680 !important;
  line-height: 1.2 !important;
}

.recipientStatus {
  min-height: 23px !important;
  padding-inline: 8px !important;
  font-size: 9px !important;
}

.recipientDate b {
  color: #c3c3ca !important;
  font-size: 10px !important;
}

.recipientDate small {
  color: #92929c !important;
  font-size: 9.5px !important;
}

/* Morning Brief: większa i czytelniejsza typografia. */
.morningHero {
  padding: 18px !important;
}

.morningHeroTop small,
.morningSectionHead > span,
.morningSuggestion small {
  font-size: 8.5px !important;
  letter-spacing: 0.105em !important;
}

.morningHeroTop b {
  font-size: 12px !important;
}

.morningHeroTop > i {
  font-size: 9.5px !important;
}

.morningHero h2 {
  margin-top: 18px !important;
  font-size: 23px !important;
}

.morningHero > p {
  font-size: 10.75px !important;
  line-height: 1.58 !important;
}

.morningStats button {
  min-height: 74px !important;
  padding: 10px !important;
}

.morningStats button b {
  font-size: 18px !important;
}

.morningStats button small {
  font-size: 8.75px !important;
}

.morningSectionHead {
  min-height: 48px !important;
}

.morningSectionHead > b {
  font-size: 9.5px !important;
}

.morningPriorityList > button {
  min-height: 68px !important;
  padding: 11px 12px !important;
}

.morningPriorityCopy strong {
  font-size: 11.75px !important;
}

.morningPriorityCopy small {
  font-size: 9px !important;
}

.morningPriorityStatus {
  font-size: 8.5px !important;
}

.morningPriorityStatus b {
  font-size: 8.5px !important;
}

.morningSuggestion {
  padding: 13px !important;
}

.morningSuggestion strong {
  font-size: 11px !important;
}

.morningSuggestion p {
  font-size: 9px !important;
  line-height: 1.5 !important;
}

.morningActions button {
  min-height: 42px !important;
  font-size: 9.75px !important;
}

@media (max-width: 1180px) {
  .dashboardView .commandClientTags,
  .directoryTagList {
    flex-wrap: wrap !important;
  }

  .directoryHead,
  .directoryRow {
    grid-template-columns:
      minmax(165px, 1fr) minmax(180px, 1fr) minmax(220px, 1.2fr)
      96px 96px 70px !important;
  }
}


/* ===== levelup-v23-watermark.css ===== */
/* LevelUp v23 — nieruchomy watermark panelu klientów.
   Logo należy do całej karty, a nie do przewijanej listy. */

.dashboardView .clientPanel {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden;
}

/* Stała warstwa logo — nie porusza się podczas scrollowania wierszy. */
.dashboardView .clientPanel::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 7.5%;
  width: clamp(235px, 22vw, 330px);
  aspect-ratio: 1.25 / 1;
  transform: translateX(-50%);
  background: url("/assets/levelup-watermark.png") center / contain no-repeat;
  opacity: 0.065;
  pointer-events: none;
  user-select: none;
}

/* Cała zawartość panelu pozostaje nad watermarkiem. */
.dashboardView .clientPanel > * {
  position: relative;
  z-index: 1;
}

/* Wyłączamy wszystkie starsze wersje logo przypięte do scrollowanej listy. */
.dashboardView .tableBody,
.dashboardView .clientTable .tableBody {
  background-image: none !important;
  background-color: transparent !important;
  background-position: initial !important;
  background-repeat: initial !important;
  background-size: initial !important;
  background-attachment: initial !important;
}

.dashboardView .tableBody::before,
.dashboardView .clientTable .tableBody::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Wiersze pozostają czytelne na tle logo. */
.dashboardView .clientRow {
  background: rgba(16, 16, 20, 0.72);
}

.dashboardView .clientRow:hover {
  background: rgba(20, 20, 25, 0.9);
}

/* Przy małej liczbie klientów logo siedzi w pustej dolnej części panelu. */
.dashboardView .tableBody:not(.balancedRows) {
  min-height: 0;
}

/* Menu akcji nadal może wyjść poza kartę. */
.dashboardView .clientPanel:has(.rowModuleMenu.floating) {
  overflow: visible !important;
}

@media (max-width: 1180px) {
  .dashboardView .clientPanel::before {
    bottom: 8%;
    width: clamp(205px, 27vw, 275px);
    opacity: 0.06;
  }
}

@media (max-width: 920px) {
  .dashboardView .clientPanel::before {
    bottom: 6%;
    width: min(230px, 58vw);
    opacity: 0.05;
  }
}


/* ===== levelup-v24-dashboard-rail.css ===== */
/* LevelUp dashboard v24
   - prawa kolumna kończy się równo z panelem klientów,
   - karta „Najbliższe 7 dni” wypełnia wolną wysokość,
   - „Ostatnia aktywność” zostaje na dole,
   - komunikat „System działa prawidłowo” jest usunięty. */

.lu-v24-system-status-hidden {
  display: none !important;
}

@media (min-width: 1181px) {
  .dashboardView .lu-v24-side-rail,
  .lu-v24-side-rail {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    height: var(--lu-v24-rail-height) !important;
    min-height: var(--lu-v24-rail-height) !important;
    max-height: var(--lu-v24-rail-height) !important;
    overflow: hidden !important;
    align-self: flex-start !important;
  }

  .dashboardView .lu-v24-deadlines-card,
  .lu-v24-deadlines-card {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
  }

  .dashboardView .lu-v24-activity-card,
  .lu-v24-activity-card {
    flex: 0 0 auto !important;
  }

  .dashboardView .lu-v24-deadlines-footer,
  .lu-v24-deadlines-footer {
    margin-top: auto !important;
  }
}

@media (max-width: 1180px) {
  .dashboardView .lu-v24-side-rail,
  .lu-v24-side-rail {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
}


/* ===== levelup-v25-deadlines-scroll.css ===== */
/* LevelUp dashboard v25
   Wewnętrzny scroll listy terminów, bez przesuwania nagłówka, filtrów i stopki. */

@media (min-width: 1181px) {
  .dashboardView .lu-v24-deadlines-card,
  .lu-v24-deadlines-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .dashboardView .lu-v25-deadlines-scroll,
  .lu-v25-deadlines-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 3px;
  }

  .dashboardView .lu-v24-deadlines-footer,
  .lu-v24-deadlines-footer {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
    position: relative;
    z-index: 2;
    background: inherit;
  }

  .lu-v25-deadlines-scroll::-webkit-scrollbar {
    width: 5px;
  }

  .lu-v25-deadlines-scroll::-webkit-scrollbar-track {
    background: transparent;
  }

  .lu-v25-deadlines-scroll::-webkit-scrollbar-thumb {
    background: rgba(226, 184, 76, 0.42);
    border-radius: 999px;
  }

  .lu-v25-deadlines-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(226, 184, 76, 0.42) transparent;
  }
}

@media (max-width: 1180px) {
  .lu-v25-deadlines-scroll {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }
}


/* ===== levelup-v27-dashboard-settings.css ===== */
/* LevelUp v27 — menu akcji, ustawienia konta, film i kompendium. */

/* Menu akcji renderowane na warstwie viewportu. */
.lu-v27-original-menu {
  visibility: hidden !important;
  pointer-events: none !important;
}

.lu-v27-menu-backdrop {
  position: fixed;
  z-index: 4190;
  inset: 0;
  background: transparent;
}

.lu-v27-menu-clone {
  position: fixed !important;
  z-index: 4200 !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: none !important;
  visibility: visible !important;
  pointer-events: auto !important;
  max-height: min(360px, calc(100dvh - 16px));
  overflow-y: auto !important;
  overscroll-behavior: contain;
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.68) !important;
}

/* Nadpisanie starego :has(...), który ustawiał overflow:visible i wyrzucał
   ostatniego klienta poza tabelę. */
html body.lu-v27-action-menu-open #root .dashboardView,
html body.lu-v27-action-menu-open #root .workspaceGrid,
html body.lu-v27-action-menu-open #root .clientPanel,
html body.lu-v27-action-menu-open #root .clientTable {
  min-height: 0 !important;
  overflow: hidden !important;
}

html body.lu-v27-action-menu-open #root .tableBody {
  min-height: 0 !important;
  flex: 1 1 auto !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

/* Kompendium — każdy folder ma własny wiersz, a cała siatka przewija się
   wewnątrz widoku zamiast nakładać karty. */
.moduleView:has(> .folderGrid) {
  min-height: 0 !important;
  overflow: hidden !important;
}

.moduleView > .folderGrid {
  min-height: 0 !important;
  flex: 1 1 auto !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-rows: 190px !important;
  align-content: start !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 0 7px 10px 0;
}

.moduleView > .folderGrid > .folderCard {
  min-height: 190px !important;
  height: 190px !important;
  overflow: hidden !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}

.moduleView > .folderGrid > .folderCard > div:nth-child(2) {
  min-height: 0;
  overflow: hidden;
}

.moduleView > .folderGrid > .folderCard p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Konto — oryginalne pola React są ukryte tylko wtedy, gdy aktywna jest
   zakładka Konto. Po wejściu w Bezpieczeństwo atrybut znika, więc karta
   prezentacji nie może tam pozostać. */
.settingsContent[data-lu-v27-account="1"] > :not(.settingsContentHead):not(.lu-v27-account-panel) {
  display: none !important;
}

.lu-v27-account-panel {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.lu-v27-account-card,
.lu-v27-presentation-card {
  padding: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(213, 179, 107, 0.065), transparent 36%),
    rgba(255, 255, 255, 0.016);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
}

.lu-v27-section-head {
  padding-bottom: 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.lu-v27-section-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--gold, #d5b36b);
  background: rgba(213, 179, 107, 0.08);
  border: 1px solid rgba(213, 179, 107, 0.13);
  border-radius: 12px;
}

.lu-v27-section-head > div {
  display: grid;
  gap: 4px;
}

.lu-v27-section-head strong {
  color: var(--text, #efeff2);
  font-size: 12px;
}

.lu-v27-section-head p {
  margin: 0;
  color: var(--muted, #9898a2);
  font-size: 9.5px;
}

.lu-v27-account-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.lu-v27-presentation-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 12px;
  align-items: stretch;
}

.lu-v27-field,
.lu-v27-video-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}

.lu-v27-field > span,
.lu-v27-video-label > span {
  color: var(--muted, #9898a2);
  font-size: 10px;
  font-weight: 680;
}

.lu-v27-field input,
.lu-v27-field textarea,
.lu-v27-password-2fa-field input {
  width: 100%;
  color: #e7e7ea;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  outline: 0;
  font: inherit;
  font-size: 11px;
}

.lu-v27-field input,
.lu-v27-password-2fa-field input {
  min-height: 40px;
  padding: 0 11px;
}

.lu-v27-field textarea {
  min-height: 188px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.55;
}

.lu-v27-field input:focus,
.lu-v27-field textarea:focus,
.lu-v27-password-2fa-field input:focus {
  border-color: rgba(213, 179, 107, 0.34);
  box-shadow: 0 0 0 3px rgba(213, 179, 107, 0.045);
}

.lu-v27-field small,
.lu-v27-video-label small,
.lu-v27-video-drop small,
.lu-v27-password-2fa-field small {
  color: var(--muted-2, #6f6f79);
  font-size: 8.5px;
}

.lu-v27-field small {
  justify-self: end;
}

.lu-v27-video-label {
  min-height: 25px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 9px;
}

.lu-v27-video-drop[hidden],
.lu-v27-video-file[hidden] {
  display: none !important;
}

.lu-v27-video-drop {
  min-height: 188px;
  padding: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted, #9898a2);
  background: rgba(0, 0, 0, 0.14);
  border: 1px dashed rgba(213, 179, 107, 0.27);
  border-radius: 11px;
  cursor: pointer;
  text-align: center;
}

.lu-v27-video-drop:hover {
  color: #f1cf7d;
  background: rgba(213, 179, 107, 0.035);
  border-color: rgba(213, 179, 107, 0.44);
}

.lu-v27-video-drop.busy {
  opacity: 0.58;
  pointer-events: none;
}

.lu-v27-video-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lu-v27-video-drop > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--gold, #d5b36b);
  background: rgba(213, 179, 107, 0.08);
  border-radius: 12px;
  font-size: 20px;
}

.lu-v27-video-drop strong {
  font-size: 10.5px;
}

.lu-v27-video-file {
  min-height: 188px;
  padding: 18px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 38px auto;
  align-content: center;
  align-items: center;
  gap: 11px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 11px;
}

.lu-v27-video-file__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--gold, #d5b36b);
  background: rgba(213, 179, 107, 0.08);
  border-radius: 12px;
}

.lu-v27-video-file > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.lu-v27-video-file strong {
  overflow: hidden;
  color: #e9e9eb;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lu-v27-video-file small {
  color: var(--muted-2, #6f6f79);
  font-size: 8.5px;
}

.lu-v27-video-preview-button,
.lu-v27-video-remove {
  min-height: 34px;
  border-radius: 9px;
}

.lu-v27-video-preview-button {
  width: 38px;
  color: #8bbcff;
  background: rgba(91, 161, 255, 0.08);
  border: 1px solid rgba(91, 161, 255, 0.18);
  font-size: 16px;
}

.lu-v27-video-remove {
  padding: 0 10px;
  color: #ff9298;
  background: rgba(255, 101, 112, 0.06);
  border: 1px solid rgba(255, 101, 112, 0.16);
  font-size: 8.5px;
}

.lu-v27-savebar {
  min-height: 58px;
  padding: 9px 10px 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.016);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 11px;
}

.lu-v27-savebar p {
  margin: 0;
  color: var(--muted-2, #6f6f79);
  font-size: 9px;
}

.lu-v27-save {
  min-height: 36px;
  padding: 0 13px;
  color: #171209;
  background: linear-gradient(135deg, #f2cf79, #d5b36b);
  border: 0;
  border-radius: 9px;
  font-size: 9.5px;
  font-weight: 800;
}

.lu-v27-save:disabled,
.lu-v27-video-remove:disabled {
  opacity: 0.52;
  cursor: wait;
}

/* Dodatkowy kod wyłącznie przy aktywnym 2FA. */
.lu-v27-password-2fa-field {
  display: grid;
  gap: 7px;
}

.lu-v27-password-2fa-field > span {
  color: var(--muted, #9898a2);
  font-size: 10px;
  font-weight: 680;
}

.lu-v27-password-2fa-field input {
  max-width: 520px;
  letter-spacing: 0.16em;
}

/* Modal filmu. */
body.lu-v27-modal-open {
  overflow: hidden !important;
}

.lu-v27-video-modal[hidden] {
  display: none !important;
}

.lu-v27-video-modal {
  position: fixed;
  z-index: 6200;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
}

.lu-v27-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.84);
  backdrop-filter: blur(8px);
}

.lu-v27-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(88dvh, 760px);
  overflow: hidden;
  background: #101014;
  border: 1px solid rgba(213, 179, 107, 0.18);
  border-radius: 16px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.72);
}

.lu-v27-video-modal__dialog > header {
  min-height: 64px;
  padding: 12px 14px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lu-v27-video-modal__dialog > header > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.lu-v27-video-modal__dialog header small {
  color: var(--gold, #d5b36b);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.lu-v27-video-modal__dialog header strong {
  overflow: hidden;
  color: #f0f0f2;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lu-v27-video-modal__dialog header button {
  width: 36px;
  height: 36px;
  color: #aaaab2;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 22px;
}

.lu-v27-video-modal__body {
  position: relative;
  min-height: 320px;
  max-height: calc(88dvh - 64px);
  display: grid;
  place-items: center;
  background: #050506;
}

.lu-v27-video-modal__body video {
  width: 100%;
  max-height: calc(88dvh - 64px);
  display: block;
  object-fit: contain;
  background: #050506;
}

.lu-v27-video-loading {
  padding: 24px;
  color: #aaaab2;
  font-size: 11px;
  text-align: center;
}

.lu-v27-toast {
  position: fixed;
  z-index: 7000;
  right: 22px;
  bottom: 22px;
  max-width: min(410px, calc(100vw - 32px));
  padding: 12px 14px;
  color: #eeeeef;
  background: rgba(18, 18, 22, 0.98);
  border: 1px solid rgba(213, 179, 107, 0.18);
  border-radius: 11px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.52);
  font-size: 10px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.lu-v27-toast[data-tone="success"] {
  border-color: rgba(80, 199, 137, 0.26);
}

.lu-v27-toast[data-tone="error"] {
  border-color: rgba(255, 101, 112, 0.28);
}

.lu-v27-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .lu-v27-account-grid,
  .lu-v27-presentation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .moduleView > .folderGrid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 180px !important;
  }

  .moduleView > .folderGrid > .folderCard {
    min-height: 180px !important;
    height: 180px !important;
  }
}

@media (max-width: 760px) {
  .lu-v27-savebar,
  .lu-v27-video-label {
    align-items: flex-start;
    flex-direction: column;
  }

  .lu-v27-save {
    width: 100%;
  }

  .lu-v27-video-file {
    grid-template-columns: 42px minmax(0, 1fr) 36px;
  }

  .lu-v27-video-remove {
    grid-column: 1 / -1;
  }

  .lu-v27-video-modal {
    padding: 10px;
  }
}


/* ===== levelup-v35-settings-popover.css ===== */
/* LevelUp v35 — bezpieczny popover, stabilny loader i ustawienia bez reparentingu Reacta. */

/* --------------------------------------------------------------------------
   MENU AKCJI KLIENTA — bez zmiany overflow tabeli
   -------------------------------------------------------------------------- */

/* Oryginał Reacta pozostaje w tabeli tylko jako niewidoczny nośnik eventów.
   Klasa floating jest usuwana w tej samej turze MutationObservera, dlatego
   reguła v19 :has(.rowModuleMenu.floating) nie uruchamia się. */
.lu-v33-original-menu {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.lu-v33-menu-clone {
  position: fixed !important;
  z-index: 2147483001 !important;
  right: auto !important;
  bottom: auto !important;
  width: 225px !important;
  margin: 0 !important;
  transform: none !important;
  visibility: visible !important;
  pointer-events: auto !important;
  max-height: min(360px, calc(100dvh - 16px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.72) !important;
}

/* Scrollbar ma stały gutter i nigdy nie znika podczas otwierania menu. */
html body #root .dashboardView .tableBody {
  scrollbar-gutter: stable !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

/* --------------------------------------------------------------------------
   KONTO
   -------------------------------------------------------------------------- */

.lu-v33-account-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* --------------------------------------------------------------------------
   ZMIANA E-MAILA — układ 1:1 jak formularz zmiany hasła
   -------------------------------------------------------------------------- */

.lu-v34-email-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.lu-v34-email-fields {
  display: grid;
  align-content: start;
  gap: 13px;
}

.lu-v34-email-fields [hidden] {
  display: none !important;
}

.lu-v34-email-fields input[readonly] {
  color: #9898a2 !important;
  background: rgba(255,255,255,.018) !important;
  cursor: default;
}

.lu-v34-email-hint {
  min-height: 55px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #68d89f;
  background: rgba(80, 199, 137, 0.105);
  border: 1px solid rgba(80, 199, 137, 0.18);
  border-radius: 10px;
}

.lu-v34-email-hint-icon {
  width: 22px;
  height: 22px;
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  border: 1px solid rgba(104,216,159,.55);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.lu-v34-email-hint > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.lu-v34-email-hint strong {
  color: #76e0aa;
  font-size: 10.5px;
  line-height: 1.2;
}

.lu-v34-email-hint small {
  color: #9cb9aa;
  font-size: 8.5px;
  line-height: 1.45;
}

.lu-v34-email-savebar {
  margin-top: 10px;
}

@media (max-width: 760px) {
  .lu-v34-email-savebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .lu-v34-email-savebar .lu-v27-save {
    width: 100%;
  }
}


/* --------------------------------------------------------------------------
   BEZPIECZEŃSTWO — dwie kolumny bez przenoszenia węzłów Reacta
   -------------------------------------------------------------------------- */

#root .settingsContent.lu-v33-security-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 14px !important;
  align-items: start !important;
}

#root .settingsContent.lu-v33-security-grid > .settingsContentHead {
  grid-column: 1 / -1 !important;
}

#root .settingsContent.lu-v33-security-grid > .lu-v33-security-left {
  grid-column: 1 !important;
  min-width: 0 !important;
}

#root .settingsContent.lu-v33-security-grid > .lu-v33-security-left-first {
  margin-top: 14px !important;
}

#root .settingsContent.lu-v33-security-grid > .lu-v33-security-email-column {
  grid-column: 2 !important;
  grid-row: 2 / span 20 !important;
  align-self: start !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 14px 0 0 !important;
}

#root .settingsContent.lu-v33-security-grid > .twoFactorCard {
  grid-column: 1 / -1 !important;
}

@media (max-width: 1120px) {
  #root .settingsContent.lu-v33-security-grid {
    display: block !important;
  }

  #root .settingsContent.lu-v33-security-grid > .lu-v33-security-email-column {
    height: auto !important;
    margin-top: 14px !important;
  }
}


/* --------------------------------------------------------------------------
   TERMINY I POWIADOMIENIA — czytelny sygnał bezpośredniego przejścia
   -------------------------------------------------------------------------- */
#root .deadlineList > button,
#root .notificationItem .notificationMain {
  cursor: pointer !important;
}

#root .deadlineList > button:focus-visible,
#root .notificationItem .notificationMain:focus-visible {
  outline: 2px solid rgba(239, 204, 121, 0.76) !important;
  outline-offset: -2px !important;
}


/* ===== levelup-v38-ai-avatar.css ===== */
/* LevelUp v38 — czytelna typografia AI i płynna zmiana avatara bez przeładowania. */

/* AI może być renderowane portalem poza #root, dlatego reguły nie są ograniczone do #root. */
.levelupAiDrawerV38 {
  font-size: 14px !important;
}

.levelupAiDrawerV38 .aiDrawerHeader strong,
.levelupAiDrawerV38 .levelupAiTitleV38 {
  font-size: 16px !important;
  line-height: 1.25 !important;
  letter-spacing: -.01em !important;
}

.levelupAiDrawerV38 .aiDrawerHeader span,
.levelupAiDrawerV38 .levelupAiStatusV38 {
  font-size: 11.5px !important;
  line-height: 1.35 !important;
}

.levelupAiDrawerV38 .aiModeTabs button,
.levelupAiDrawerV38 .levelupAiModeV38 {
  min-height: 42px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

.levelupAiDrawerV38 .aiContext {
  min-height: 46px !important;
  padding: 10px 12px !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
}

.levelupAiDrawerV38 .chatFeed {
  padding: 18px 14px 26px !important;
}

.levelupAiDrawerV38 .chatMessage {
  gap: 10px !important;
  margin-bottom: 17px !important;
}

.levelupAiDrawerV38 .chatAvatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
}

.levelupAiDrawerV38 .chatBubble {
  max-width: 90% !important;
  padding: 13px 14px !important;
  font-size: 14px !important;
  line-height: 1.62 !important;
}

.levelupAiDrawerV38 .chatBubble p,
.levelupAiDrawerV38 .chatBubble li,
.levelupAiDrawerV38 .chatBubble strong {
  font-size: inherit !important;
  line-height: inherit !important;
}

.levelupAiDrawerV38 .quickPrompts {
  margin-top: 12px !important;
  margin-left: 44px !important;
  gap: 8px !important;
}

.levelupAiDrawerV38 .quickPrompts > span,
.levelupAiDrawerV38 .levelupAiQuickLabelV38 {
  margin-bottom: 4px !important;
  font-size: 11.5px !important;
  line-height: 1.4 !important;
}

.levelupAiDrawerV38 .quickPrompts button {
  min-height: 38px !important;
  padding: 8px 12px !important;
  gap: 7px !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
}

.levelupAiDrawerV38 .aiResults {
  margin-top: 12px !important;
  gap: 8px !important;
}

.levelupAiDrawerV38 .aiResults > button {
  min-height: 58px !important;
  padding: 9px 10px !important;
  grid-template-columns: 35px minmax(0, 1fr) auto !important;
  gap: 10px !important;
}

.levelupAiDrawerV38 .aiResults > button > span {
  width: 35px !important;
  height: 35px !important;
  font-size: 10px !important;
}

.levelupAiDrawerV38 .aiResults > button strong {
  font-size: 13px !important;
  line-height: 1.3 !important;
}

.levelupAiDrawerV38 .aiResults > button small,
.levelupAiDrawerV38 .moreResults {
  font-size: 11px !important;
  line-height: 1.4 !important;
}

.levelupAiDrawerV38 .aiResultActions button,
.levelupAiDrawerV38 .actionButtons button {
  min-height: 36px !important;
  padding: 0 11px !important;
  font-size: 11.5px !important;
}

.levelupAiDrawerV38 .actionTitle strong {
  font-size: 13px !important;
}

.levelupAiDrawerV38 .actionTitle small {
  font-size: 11px !important;
}

.levelupAiDrawerV38 .aiActionCard textarea {
  min-height: 82px !important;
  padding: 12px !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.levelupAiDrawerV38 .aiActionCard > p {
  font-size: 10.5px !important;
  line-height: 1.5 !important;
}

.levelupAiDrawerV38 .aiComposer {
  min-height: 64px !important;
  padding: 9px 9px 9px 13px !important;
}

.levelupAiDrawerV38 .aiComposer textarea,
.levelupAiDrawerV38 textarea::placeholder {
  font-size: 13.5px !important;
  line-height: 1.5 !important;
}

/* Morning Brief — osobne elementy tekstowe oznaczane bez ruszania DOM Reacta. */
.levelupAiDrawerV38 .levelupAiMorningTitleV38 {
  font-size: 17px !important;
  line-height: 1.25 !important;
}

.levelupAiDrawerV38 .levelupAiMorningGreetingV38 {
  font-size: 25px !important;
  line-height: 1.16 !important;
  letter-spacing: -.025em !important;
}

.levelupAiDrawerV38 .levelupAiMorningSectionV38,
.levelupAiDrawerV38 .levelupAiRecommendationV38 {
  font-size: 11.5px !important;
  line-height: 1.35 !important;
}

/* Bezpieczny fallback dla tekstów, których klasy zmieniają się w bundlu. */
.levelupAiDrawerV38 button {
  font-size: max(12px, 1em) !important;
}

.levelupAiDrawerV38 p {
  line-height: 1.55 !important;
}

/* Avatar */
.trainerAvatar {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease !important;
}

.trainerAvatar:hover,
.trainerAvatar:focus-visible {
  border-color: rgba(239, 199, 95, .62) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .10), 0 9px 25px rgba(0, 0, 0, .26) !important;
  transform: translateY(-1px);
}

.trainerAvatar::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: rgba(4, 6, 8, .58) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23f4d36c' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L8 6H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-3z'/%3E%3Ccircle cx='12' cy='13' r='3.25'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
  transition: opacity .18s ease;
}

.trainerAvatar:hover::after,
.trainerAvatar:focus-visible::after {
  opacity: 1;
}

.trainerAvatar.levelupAvatarPreviewV38 {
  background-image: var(--levelup-avatar-preview) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.trainerAvatar.levelupAvatarPreviewV38 > svg {
  opacity: 0 !important;
}

html.levelupAvatarUploadingV38 .trainerAvatar {
  pointer-events: none;
  opacity: .72;
}

#levelupAvatarToastV38 {
  position: fixed;
  z-index: 10000;
  right: 22px;
  bottom: 22px;
  max-width: min(390px, calc(100vw - 32px));
  min-height: 50px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .9);
  background: rgba(17, 18, 22, .97);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 14px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .45);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.98);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

#levelupAvatarToastV38.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#levelupAvatarToastV38 .levelupAvatarToastDot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #d8b14a;
  box-shadow: 0 0 0 4px rgba(216, 177, 74, .10);
}

#levelupAvatarToastV38.is-success .levelupAvatarToastDot { background: #55d998; }
#levelupAvatarToastV38.is-error .levelupAvatarToastDot { background: #ff6b79; }
#levelupAvatarToastV38.is-loading .levelupAvatarToastDot { animation: levelupAvatarPulseV38 .9s ease-in-out infinite alternate; }

@keyframes levelupAvatarPulseV38 {
  from { opacity: .35; transform: scale(.78); }
  to { opacity: 1; transform: scale(1.12); }
}

@media (max-width: 520px) {
  .levelupAiDrawerV38 .chatBubble { max-width: 93% !important; font-size: 13.5px !important; }
  .levelupAiDrawerV38 .quickPrompts { margin-left: 0 !important; }
  .levelupAiDrawerV38 .levelupAiMorningGreetingV38 { font-size: 22px !important; }
}

@media (max-width: 760px) {
  #levelupAvatarToastV38 { right: 12px; bottom: 12px; }
}


/* ===== levelup-command-center-final-v66.css ===== */
/* LevelUp v64 — czysta, natywna aktywność i centrum dowodzenia.
   Bez nakładek DOM. Lista aktywności renderuje się bezpośrednio w React. */

/* Pasek nie wnosi żadnej akcji, więc usuwamy go na stałe. */
.moduleQuickBar {
  display: none !important;
}

/* Techniczny filtr klienta po kliknięciu aktywności działa, ale banner AI
   jest renderowany tylko dla faktycznych filtrów uruchomionych przez agenta. */

.compactRail {
  padding-bottom: 10px !important;
}

.activityStream {
  display: grid !important;
  gap: 0 !important;
  margin-top: 9px !important;
  min-width: 0 !important;
}

.activityStream > button.activityItem {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 31px !important;
  padding: 7px 0 !important;
  display: grid !important;
  grid-template-columns: 5px minmax(0, 1fr) 74px !important;
  align-items: center !important;
  gap: 7px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .055) !important;
  color: inherit !important;
  background: transparent !important;
  text-align: left !important;
  cursor: pointer !important;
  overflow: visible !important;
}

.activityStream > button.activityItem:last-child {
  border-bottom: 0 !important;
}

.activityStream > button.activityItem > i {
  width: 5px !important;
  height: 5px !important;
  min-width: 5px !important;
  border-radius: 999px !important;
}

.activityStream > button.activityItem > .activityMain {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.activityStream > button.activityItem .activityClient {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: rgba(255, 255, 255, .91) !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
}

.activityStream > button.activityItem .activityType {
  flex: 0 0 auto !important;
  overflow: visible !important;
  white-space: nowrap !important;
  color: rgba(255, 255, 255, .55) !important;
  font-size: 9.5px !important;
  line-height: 1.2 !important;
  font-weight: 650 !important;
}

.activityStream > button.activityItem > small {
  display: block !important;
  width: 74px !important;
  min-width: 74px !important;
  max-width: 74px !important;
  overflow: visible !important;
  text-align: right !important;
  white-space: nowrap !important;
  color: rgba(255, 255, 255, .44) !important;
  font-size: 9px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
}

.activityStream > button.activityItem:hover .activityClient {
  color: #fff !important;
}

.activityStream > button.activityItem[data-kind="report"] .activityType {
  color: #73aaff !important;
}

.activityStream > button.activityItem[data-kind="survey"] .activityType {
  color: #e8c75f !important;
}

.activityStream > button.activityItem[data-kind="labs"] .activityType {
  color: #a992ff !important;
}

.activityStream > button.activityItem[data-kind="payment"] .activityType {
  color: #68d9a2 !important;
}

/* Natywne centrum powiadomień — tylko czytelniejszy scrollbar.
   Animacja, lista, badge i kliknięcia zostają w React. */
.notificationList {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(224, 184, 87, .72) transparent !important;
  scrollbar-gutter: stable !important;
  overscroll-behavior: contain !important;
}

.notificationList::-webkit-scrollbar {
  width: 6px !important;
}

.notificationList::-webkit-scrollbar-track {
  background: transparent !important;
}

.notificationList::-webkit-scrollbar-thumb {
  min-height: 44px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(239, 203, 113, .9), rgba(154, 113, 39, .8)) !important;
}

.notificationCopy p {
  font-size: 10px !important;
  line-height: 1.38 !important;
}

.notificationCopy strong {
  font-size: 12px !important;
}

.notificationCopy b {
  font-size: 10.5px !important;
}

.notificationCount {
  min-width: 19px !important;
  height: 19px !important;
  padding: 0 5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  font-weight: 900 !important;
}

/* =========================================================
   v66 — naturalny dół bez dociskania na siłę.

   Mechanizm v24 nadal utrzymuje wygodną wysokość prawej kolumny,
   ale skrypt odejmuje 14 px od wysokości tabeli. Dzięki temu:
   - karta nie dotyka dolnej krawędzi,
   - stopka „Pełna historia zdarzeń” nie jest ucinana,
   - odstępy wyglądają naturalnie,
   - prawa kolumna może być delikatnie krótsza od listy klientów.
========================================================= */
.mainContent {
  padding-bottom: 18px !important;
}

.dashboardView,
.workspaceGrid {
  margin-bottom: 0 !important;
  padding-bottom: 4px !important;
  overflow-x: hidden !important;
}

.dashboardView .clientPanel {
  margin-bottom: 0 !important;
}

@media (min-width: 1181px) {
  .dashboardView .lu-v24-side-rail,
  .lu-v24-side-rail {
    overflow: hidden !important;
  }

  .dashboardView .lu-v24-activity-card,
  .lu-v24-activity-card {
    min-height: 0 !important;
    margin-bottom: 0 !important;
  }
}

.dashboardView .rightRail .compactRail,
.compactRail {
  padding-bottom: 10px !important;
}

.activityStream {
  margin-top: 9px !important;
  margin-bottom: 7px !important;
}

.activityHistoryButton {
  min-height: 34px !important;
  margin-top: 8px !important;
  padding: 9px 1px 7px !important;
}


/* ===== levelup-kompendium-v2.css ===== */
/* LevelUp Kompendium V2.4 — isolated trainer module */
:root {
  --lu-cmp-bg: #090a0d;
  --lu-cmp-panel: #111217;
  --lu-cmp-panel-soft: #15161c;
  --lu-cmp-line: rgba(255, 255, 255, 0.075);
  --lu-cmp-line-strong: rgba(255, 255, 255, 0.12);
  --lu-cmp-text: #f3f3f5;
  --lu-cmp-muted: #9296a1;
  --lu-cmp-gold: #d5b36b;
  --lu-cmp-gold-bright: #f0d48d;
  --lu-cmp-red: #f28484;
  --lu-cmp-green: #78c99e;
}

html.lu-compendium-v2-open main.mainContent {
  position: relative;
}

html.lu-compendium-v2-open main.mainContent > .moduleView {
  visibility: hidden !important;
  pointer-events: none !important;
}

#luCompendiumV2,
#luCompendiumV2 * {
  box-sizing: border-box;
}

#luCompendiumV2 {
  position: absolute;
  z-index: 24;
  inset: 117px 26px 20px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: var(--lu-cmp-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border: 1px solid var(--lu-cmp-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 78% -10%, rgba(213, 179, 107, 0.08), transparent 32%),
    var(--lu-cmp-bg);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

#luCompendiumV2 button,
#luCompendiumV2 input,
#luCompendiumV2 textarea,
#luCompendiumV2 select {
  font: inherit;
}

#luCompendiumV2 button {
  border: 0;
}

#luCompendiumV2 button:focus-visible,
#luCompendiumV2 input:focus-visible,
#luCompendiumV2 textarea:focus-visible,
#luCompendiumV2 select:focus-visible,
#luCompendiumV2 [contenteditable="true"]:focus-visible {
  outline: 2px solid rgba(213, 179, 107, 0.62);
  outline-offset: 2px;
}

.lu-cmp-shell {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
}

.lu-cmp-folders {
  min-width: 0;
  min-height: 0;
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 35%),
    #0d0e12;
  border-right: 1px solid var(--lu-cmp-line);
}

.lu-cmp-brand {
  min-height: 118px;
  padding: 3px 8px 11px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--lu-cmp-line);
}

.lu-cmp-brand img {
  display: block;
  width: min(100%, 112px);
  max-height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
}

.lu-cmp-folder-head {
  padding: 20px 6px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lu-cmp-folder-head > div {
  display: grid;
  gap: 3px;
}

.lu-cmp-folder-head span,
.lu-cmp-content-title small,
.lu-cmp-modal header small {
  color: var(--lu-cmp-gold);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.lu-cmp-folder-head strong {
  font-size: 16px;
  letter-spacing: -0.025em;
}

.lu-cmp-folder-head > button {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: #17130b;
  background: var(--lu-cmp-gold);
  border-radius: 10px;
  font-size: 20px;
  font-weight: 500;
  transition: transform 150ms ease, background 150ms ease;
}

.lu-cmp-folder-head > button:hover {
  background: var(--lu-cmp-gold-bright);
  transform: translateY(-1px);
}

.lu-cmp-search {
  height: 39px;
  margin: 0 5px 12px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid var(--lu-cmp-line);
  border-radius: 11px;
}

.lu-cmp-search:focus-within {
  border-color: rgba(213, 179, 107, 0.35);
  background: rgba(255, 255, 255, 0.038);
}

.lu-cmp-search svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #777c87;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.lu-cmp-search input {
  width: 100%;
  min-width: 0;
  color: var(--lu-cmp-text);
  background: transparent;
  border: 0;
  outline: 0 !important;
  font-size: 11px;
}

.lu-cmp-search input::placeholder {
  color: #626670;
}

.lu-cmp-folder-list {
  min-height: 0;
  padding: 0 3px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(213, 179, 107, 0.25) transparent;
}

.lu-cmp-folder-row {
  min-height: 57px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 13px;
  transition: background 140ms ease, border-color 140ms ease;
}

.lu-cmp-folder-row:hover {
  background: rgba(255, 255, 255, 0.027);
}

.lu-cmp-folder-row.active {
  background: linear-gradient(90deg, rgba(213, 179, 107, 0.12), rgba(213, 179, 107, 0.025));
  border-color: rgba(213, 179, 107, 0.16);
}

.lu-cmp-folder-main {
  min-width: 0;
  height: 55px;
  padding: 0 6px 0 8px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: inherit;
  background: transparent;
  text-align: left;
}

.lu-cmp-folder-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--lu-cmp-line);
  border-radius: 10px;
  font-size: 16px;
}

.lu-cmp-folder-row.active .lu-cmp-folder-icon {
  background: rgba(213, 179, 107, 0.11);
  border-color: rgba(213, 179, 107, 0.18);
}

.lu-cmp-folder-main > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.lu-cmp-folder-main strong {
  overflow: hidden;
  color: #dadbe0;
  font-size: 13px;
  font-weight: 730;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lu-cmp-folder-row.active .lu-cmp-folder-main strong {
  color: #f3dfad;
}

.lu-cmp-folder-main small {
  color: #727681;
  font-size: 10.5px;
}

.lu-cmp-folder-actions {
  width: 53px;
  display: flex;
  gap: 2px;
  overflow: visible;
  opacity: 1;
}

.lu-cmp-folder-actions button {
  width: 24px;
  height: 28px;
  color: #898e98;
  background: transparent;
  border-radius: 7px;
  font-size: 13px;
}

.lu-cmp-folder-actions button:hover {
  color: #f1f1f3;
  background: rgba(255, 255, 255, 0.06);
}

.lu-cmp-folder-actions button:last-child:hover {
  color: #ffabab;
  background: rgba(242, 132, 132, 0.08);
}

.lu-cmp-fixed-section {
  margin: 10px 3px 0;
  padding: 12px 0 0;
  display: grid;
  border-top: 1px solid rgba(213, 179, 107, 0.18);
}

.lu-cmp-training-info-button {
  min-height: 58px;
  padding: 7px 7px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: #aeb1b9;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--lu-cmp-line) !important;
  border-radius: 12px;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.lu-cmp-training-info-button:hover,
.lu-cmp-training-info-button.active {
  color: #f0dcaa;
  background: linear-gradient(90deg, rgba(213, 179, 107, 0.12), rgba(213, 179, 107, 0.025));
  border-color: rgba(213, 179, 107, 0.22) !important;
}

.lu-cmp-training-info-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #17130b;
  background: var(--lu-cmp-gold);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
}

.lu-cmp-training-info-button > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.lu-cmp-training-info-button strong {
  overflow: hidden;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lu-cmp-training-info-button small {
  overflow: hidden;
  color: #747985;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lu-cmp-training-info-button > b {
  color: #6e727c;
  font-size: 18px;
  font-weight: 500;
}

.lu-cmp-folder-foot {
  margin: 12px 5px 0;
  padding: 13px 4px 2px;
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--lu-cmp-line);
}

.lu-cmp-folder-foot small {
  color: #656974;
  font-size: 8px;
}

.lu-cmp-save-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9296a0;
  font-size: 9px;
  font-weight: 700;
}

.lu-cmp-save-status i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: #777b85;
  border-radius: 50%;
}

.lu-cmp-save-status.saved i { background: var(--lu-cmp-green); }
.lu-cmp-save-status.saving i { background: var(--lu-cmp-gold); animation: luCmpPulse 0.9s infinite; }
.lu-cmp-save-status.dirty i { background: #e3b96a; }
.lu-cmp-save-status.error { color: #efa0a0; }
.lu-cmp-save-status.error i { background: var(--lu-cmp-red); }

@keyframes luCmpPulse {
  50% { opacity: 0.35; transform: scale(0.8); }
}

.lu-cmp-side-empty {
  min-height: 145px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: #747985;
  text-align: center;
}

.lu-cmp-side-empty > span { font-size: 22px; filter: grayscale(0.25); }
.lu-cmp-side-empty strong { color: #a1a5af; font-size: 11px; }
.lu-cmp-side-empty small { font-size: 9px; }

.lu-cmp-workspace {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lu-cmp-loading,
.lu-cmp-empty {
  height: 100%;
  padding: 32px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.lu-cmp-loading > span {
  width: 35px;
  height: 35px;
  margin-bottom: 8px;
  border: 2px solid rgba(213, 179, 107, 0.16);
  border-top-color: var(--lu-cmp-gold);
  border-radius: 50%;
  animation: luCmpSpin 0.8s linear infinite;
}

@keyframes luCmpSpin { to { transform: rotate(360deg); } }

.lu-cmp-loading strong { font-size: 13px; }
.lu-cmp-loading small { margin-top: 5px; color: var(--lu-cmp-muted); font-size: 9px; }

.lu-cmp-empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  display: grid;
  place-items: center;
  background: rgba(213, 179, 107, 0.075);
  border: 1px solid rgba(213, 179, 107, 0.13);
  border-radius: 20px;
  font-size: 28px;
}

.lu-cmp-empty > small {
  color: var(--lu-cmp-gold);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.lu-cmp-empty h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 2.2vw, 34px);
  letter-spacing: -0.045em;
}

.lu-cmp-empty p {
  max-width: 500px;
  margin: 12px 0 22px;
  color: var(--lu-cmp-muted);
  font-size: 12px;
  line-height: 1.65;
}

.lu-cmp-empty button,
.lu-cmp-head-actions .primary,
.lu-cmp-modal footer .primary,
.lu-cmp-editor-foot .save-bottom,
.lu-cmp-editor-foot .publish-now {
  min-height: 40px;
  padding: 0 16px;
  color: #17130b;
  background: var(--lu-cmp-gold);
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
  transition: transform 140ms ease, background 140ms ease;
}

.lu-cmp-empty button:hover,
.lu-cmp-head-actions .primary:hover,
.lu-cmp-modal footer .primary:hover,
.lu-cmp-editor-foot .save-bottom:hover,
.lu-cmp-editor-foot .publish-now:hover {
  background: var(--lu-cmp-gold-bright);
  transform: translateY(-1px);
}

.lu-cmp-folder-view {
  min-height: 0;
  height: 100%;
  padding: 21px 22px 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lu-cmp-content-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.lu-cmp-content-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lu-cmp-big-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: rgba(213, 179, 107, 0.085);
  border: 1px solid rgba(213, 179, 107, 0.14);
  border-radius: 15px;
  font-size: 24px;
}

.lu-cmp-content-title > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.lu-cmp-content-title h2 {
  margin: 0;
  overflow: hidden;
  font-size: clamp(20px, 2vw, 29px);
  letter-spacing: -0.045em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lu-cmp-content-title p {
  margin: 0;
  overflow: hidden;
  color: var(--lu-cmp-muted);
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lu-cmp-head-actions,
.lu-cmp-editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lu-cmp-head-actions .secondary,
.lu-cmp-editor-actions .secondary {
  min-height: 40px;
  padding: 0 13px;
  color: #b7bac2;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid var(--lu-cmp-line);
  border-radius: 11px;
  font-size: 10px;
  font-weight: 700;
}

.lu-cmp-head-actions .secondary:hover,
.lu-cmp-editor-actions .secondary:hover {
  color: #f0f0f2;
  border-color: var(--lu-cmp-line-strong);
}

.lu-cmp-head-actions .danger {
  min-height: 40px;
  padding: 0 13px;
  color: #e29a9a;
  background: rgba(242, 132, 132, 0.055);
  border: 1px solid rgba(242, 132, 132, 0.13);
  border-radius: 11px;
  font-size: 10px;
  font-weight: 750;
}

.lu-cmp-head-actions .danger:hover {
  color: #ffc0c0;
  background: rgba(242, 132, 132, 0.1);
  border-color: rgba(242, 132, 132, 0.23);
}

.lu-cmp-entry-summary {
  min-height: 53px;
  margin-top: 17px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #767b85;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--lu-cmp-line);
  border-radius: 13px;
  font-size: 9px;
}

.lu-cmp-entry-summary span {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.lu-cmp-entry-summary b {
  color: #d8d9dd;
  font-size: 13px;
}

.lu-cmp-entry-grid {
  min-height: 0;
  padding: 16px 2px 3px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(213, 179, 107, 0.23) transparent;
}

.lu-cmp-entry-card,
.lu-cmp-new-card {
  min-width: 0;
  min-height: 150px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  color: inherit;
  background: rgba(255, 255, 255, 0.024);
  border: 1px solid var(--lu-cmp-line) !important;
  border-radius: 15px;
  text-align: left;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.lu-cmp-entry-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(213, 179, 107, 0.19) !important;
  transform: translateY(-2px);
}

.lu-cmp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lu-cmp-entry-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--lu-cmp-gold-bright);
  background: rgba(213, 179, 107, 0.09);
  border-radius: 9px;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}

.lu-cmp-publish-pill,
.lu-cmp-publish-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #858a94;
  font-size: 8px;
  font-weight: 750;
}

.lu-cmp-publish-pill i,
.lu-cmp-publish-state i {
  width: 6px;
  height: 6px;
  background: #737781;
  border-radius: 50%;
}

.lu-cmp-publish-pill.published,
.lu-cmp-publish-state.published { color: #9ad9b6; }
.lu-cmp-publish-pill.published i,
.lu-cmp-publish-state.published i { background: var(--lu-cmp-green); }

.lu-cmp-entry-card > strong {
  margin-top: 18px;
  overflow: hidden;
  color: #ececef;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lu-cmp-entry-card footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #858a94;
  font-size: 10.5px;
}

.lu-cmp-entry-card footer b {
  color: #b9a16e;
  font-size: 10.5px;
}

.lu-cmp-new-card {
  align-items: center;
  justify-content: center;
  color: #858a94;
  background: transparent;
  border-style: dashed !important;
  text-align: center;
}

.lu-cmp-new-card:hover {
  color: #d9c696;
  background: rgba(213, 179, 107, 0.025);
  border-color: rgba(213, 179, 107, 0.24) !important;
}

.lu-cmp-new-card > span {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  background: rgba(213, 179, 107, 0.07);
  border-radius: 11px;
  font-size: 20px;
}

.lu-cmp-new-card strong { color: #b4b7bf; font-size: 11px; }
.lu-cmp-new-card small { margin-top: 5px; color: #686d77; font-size: 8px; }

.lu-cmp-editor-view {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 15%, rgba(213, 179, 107, 0.035), transparent 38%),
    rgba(255, 255, 255, 0.006);
}

.lu-cmp-editor-view > .lu-cmp-editor-head,
.lu-cmp-editor-view > .lu-cmp-title-field,
.lu-cmp-editor-view > .lu-cmp-toolbar,
.lu-cmp-editor-view > .lu-cmp-paper-wrap,
.lu-cmp-editor-view > .lu-cmp-editor-foot {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.lu-cmp-editor-head {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lu-cmp-breadcrumb {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #747983;
  font-size: 11.5px;
}

.lu-cmp-breadcrumb button {
  width: 32px;
  height: 32px;
  margin-right: 2px;
  color: #a3a7b0;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--lu-cmp-line);
  border-radius: 9px;
}

.lu-cmp-breadcrumb button:hover { color: white; }
.lu-cmp-breadcrumb strong { overflow: hidden; color: #bbbfc7; white-space: nowrap; text-overflow: ellipsis; }
.lu-cmp-breadcrumb i { color: #4e5159; font-style: normal; }

.lu-cmp-title-field {
  width: 100%;
  min-height: 66px;
  margin-top: 7px !important;
  margin-bottom: 10px !important;
  padding: 10px 15px 9px;
  display: grid;
  align-content: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.027);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 13px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.lu-cmp-title-field > span {
  color: #777c86;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.lu-cmp-title-field:focus-within {
  background: rgba(213, 179, 107, 0.045);
  border-color: rgba(213, 179, 107, 0.32);
  box-shadow: 0 0 0 3px rgba(213, 179, 107, 0.055), 0 14px 34px rgba(0, 0, 0, 0.13);
}

.lu-cmp-title-input {
  width: 100%;
  height: 30px;
  padding: 0;
  color: #f1f1f3;
  background: transparent;
  border: 0;
  outline: 0 !important;
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lu-cmp-title-input::placeholder { color: #555963; }

.lu-cmp-title-field.fixed {
  background: rgba(213, 179, 107, 0.035);
  border-color: rgba(213, 179, 107, 0.14);
}

.lu-cmp-title-input.fixed {
  color: #f0d99f;
  cursor: default;
}

.lu-cmp-toolbar {
  min-height: 47px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  background: #111217;
  border: 1px solid var(--lu-cmp-line);
  border-radius: 14px 14px 0 0;
  scrollbar-width: none;
}

.lu-cmp-toolbar::-webkit-scrollbar { display: none; }

.lu-cmp-toolbar > i {
  width: 1px;
  height: 22px;
  margin: 0 3px;
  flex: 0 0 auto;
  background: var(--lu-cmp-line);
}

.lu-cmp-toolbar button,
.lu-cmp-toolbar select {
  height: 33px;
  flex: 0 0 auto;
  color: #b8bbc3;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11px;
}

.lu-cmp-toolbar button {
  min-width: 33px;
  padding: 0 8px;
}

.lu-cmp-toolbar button:hover,
.lu-cmp-toolbar select:hover {
  color: #f1f1f3;
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--lu-cmp-line);
}

.lu-cmp-toolbar select {
  min-width: 76px;
  padding: 0 7px;
  outline: 0;
}

.lu-cmp-toolbar select:first-child { min-width: 112px; }
.lu-cmp-toolbar option { color: #efeff1; background: #17181d; }

.lu-cmp-toolbar .lu-cmp-import-pdf {
  min-width: 67px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #e5c579;
  background: rgba(213, 179, 107, 0.07);
  border-color: rgba(213, 179, 107, 0.18);
  font-weight: 800;
}

.lu-cmp-toolbar .lu-cmp-import-pdf span {
  font-size: 15px;
  line-height: 1;
}

.lu-cmp-toolbar .lu-cmp-import-pdf:hover {
  color: #ffe6a2;
  background: rgba(213, 179, 107, 0.13);
  border-color: rgba(213, 179, 107, 0.29);
}

.lu-cmp-pdf-input { display: none !important; }

.lu-cmp-paper-wrap {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background: #f8f8f6;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 0;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.lu-cmp-paper-scroll {
  width: 100%;
  height: 100%;
  padding: 24px 30px 88px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.lu-cmp-document-logo {
  width: 122px;
  height: 106px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  pointer-events: none;
  user-select: none;
}

.lu-cmp-document-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lu-cmp-paper-brand {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 17px;
  width: 62px;
  height: 56px;
  object-fit: contain;
  opacity: 0.08;
  filter: grayscale(1);
  pointer-events: none;
  user-select: none;
}

.lu-cmp-editor {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  min-height: calc(100% - 124px);
  height: auto;
  padding: 0;
  overflow: visible;
  color: #15161a;
  outline: 0 !important;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

.lu-cmp-editor:empty::before {
  color: #a4a4a1;
  content: attr(data-placeholder);
  pointer-events: none;
}

.lu-cmp-editor p,
.lu-cmp-editor div { margin: 0 0 0.75em; }
.lu-cmp-editor h2 { margin: 0 0 0.55em; font-size: 26px; }
.lu-cmp-editor h3 { margin: 0 0 0.55em; font-size: 21px; }
.lu-cmp-editor ul,
.lu-cmp-editor ol { padding-left: 1.65em; }
.lu-cmp-editor a {
  color: #8a641b;
  background: transparent !important;
  border-radius: 0;
  box-shadow: none !important;
  outline: 0 !important;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  cursor: pointer;
}
.lu-cmp-editor a * {
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}
.lu-cmp-editor blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid #d5b36b; }
.lu-cmp-editor hr {
  width: 92px;
  height: 2px;
  margin: 24px auto;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(164, 119, 23, 0.88), transparent);
}

.lu-cmp-editor-foot {
  min-height: 54px;
  padding-top: 9px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.lu-cmp-editor-foot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lu-cmp-editor-foot .save-bottom,
.lu-cmp-editor-foot .publish {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
}

.lu-cmp-editor-foot .unpublish {
  color: #c2c5cc;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.lu-cmp-editor-foot .unpublish:hover {
  color: #f0f1f3;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.lu-cmp-editor-foot .danger-text {
  min-height: 38px;
  padding: 0 12px;
  color: #eda0a0;
  background: rgba(242, 132, 132, 0.055);
  border: 1px solid rgba(242, 132, 132, 0.13) !important;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 700;
}

.lu-cmp-editor-foot .danger-text:hover { color: #ffc1c1; background: rgba(242, 132, 132, 0.11); }

.lu-cmp-modal-layer {
  position: fixed;
  z-index: 100200;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(3, 4, 6, 0.72);
  backdrop-filter: blur(8px);
  animation: luCmpFade 150ms ease both;
}

@keyframes luCmpFade { from { opacity: 0; } }

.lu-cmp-modal {
  width: min(480px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  background: #121318;
  border: 1px solid var(--lu-cmp-line-strong);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  animation: luCmpModalIn 180ms ease both;
}

@keyframes luCmpModalIn { from { opacity: 0; transform: translateY(8px) scale(0.985); } }

.lu-cmp-modal header {
  padding: 19px 20px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--lu-cmp-line);
}

.lu-cmp-modal header > div { display: grid; gap: 4px; }
.lu-cmp-modal h3 { margin: 0; font-size: 20px; letter-spacing: -0.035em; }
.lu-cmp-modal header p { margin: 3px 0 0; color: var(--lu-cmp-muted); font-size: 9px; line-height: 1.5; }

.lu-cmp-modal header > button {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  color: #92969f;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9px;
  font-size: 18px;
}

.lu-cmp-modal-body {
  padding: 18px 20px;
  display: grid;
  gap: 14px;
}

.lu-cmp-import-file {
  min-width: 0;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--lu-cmp-line);
  border-radius: 12px;
}

.lu-cmp-import-file > span {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #f1d58d;
  background: rgba(213, 179, 107, 0.1);
  border: 1px solid rgba(213, 179, 107, 0.2);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 900;
}

.lu-cmp-import-file > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.lu-cmp-import-file strong {
  overflow: hidden;
  color: #f3f3f4;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lu-cmp-import-file small { color: #777c86; font-size: 9px; }

.lu-cmp-import-mode {
  display: grid;
  gap: 7px;
}

.lu-cmp-import-mode label {
  padding: 11px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--lu-cmp-line);
  border-radius: 11px;
}

.lu-cmp-import-mode label:has(input:checked) {
  background: rgba(213, 179, 107, 0.065);
  border-color: rgba(213, 179, 107, 0.24);
}

.lu-cmp-import-mode input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: #d5b36b;
}

.lu-cmp-import-mode label > span { display: grid; gap: 3px; }
.lu-cmp-import-mode b { color: #e8e8ea; font-size: 10.5px; }
.lu-cmp-import-mode small { color: #767b85; font-size: 9px; line-height: 1.4; }

.lu-cmp-import-note {
  padding: 11px 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #9ea3ad;
  background: rgba(107, 207, 159, 0.045);
  border: 1px solid rgba(107, 207, 159, 0.12);
  border-radius: 11px;
  font-size: 9px;
  line-height: 1.55;
}

.lu-cmp-import-note i {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #76d6a8;
  background: rgba(107, 207, 159, 0.1);
  border-radius: 50%;
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
}

.lu-cmp-import-note p { margin: 0; }

.lu-cmp-import-progress {
  min-height: 30px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  color: #858a94;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 750;
}

.lu-cmp-import-progress.working { color: #e4c77e; }
.lu-cmp-import-progress.done { color: #77d9aa; }
.lu-cmp-import-progress.error { color: #f0a0a0; }

.lu-cmp-field,
.lu-cmp-icon-field {
  display: grid;
  gap: 7px;
}

.lu-cmp-field > span,
.lu-cmp-icon-field > span {
  color: #a6aab3;
  font-size: 9px;
  font-weight: 720;
}

.lu-cmp-field input,
.lu-cmp-field textarea {
  width: 100%;
  color: #efeff1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--lu-cmp-line);
  border-radius: 10px;
  outline: 0;
  font-size: 11px;
}

.lu-cmp-field input { height: 42px; padding: 0 12px; }
.lu-cmp-field textarea { padding: 11px 12px; resize: vertical; line-height: 1.5; }
.lu-cmp-field input:focus,
.lu-cmp-field textarea:focus { border-color: rgba(213, 179, 107, 0.34); }

.lu-cmp-icon-field > div {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
}

.lu-cmp-icon-field button {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--lu-cmp-line) !important;
  border-radius: 9px;
  font-size: 16px;
}

.lu-cmp-icon-field button:hover,
.lu-cmp-icon-field button.active {
  background: rgba(213, 179, 107, 0.1);
  border-color: rgba(213, 179, 107, 0.3) !important;
}

.lu-cmp-warning {
  min-height: 68px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(242, 132, 132, 0.055);
  border: 1px solid rgba(242, 132, 132, 0.12);
  border-radius: 12px;
}

.lu-cmp-warning span {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #ffb0b0;
  background: rgba(242, 132, 132, 0.1);
  border-radius: 10px;
  font-weight: 850;
}

.lu-cmp-warning p { margin: 0; color: #bdc0c7; font-size: 10px; line-height: 1.5; }

.lu-cmp-modal footer {
  padding: 13px 20px 17px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.lu-cmp-modal footer button {
  min-height: 39px;
  padding: 0 14px;
  color: #aeb1b9;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--lu-cmp-line);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 750;
}

.lu-cmp-modal footer .danger {
  color: #ffd1d1;
  background: rgba(215, 78, 78, 0.16);
  border-color: rgba(242, 132, 132, 0.22);
}

.lu-cmp-modal footer button:disabled { opacity: 0.55; pointer-events: none; }

.lu-cmp-toasts {
  position: fixed;
  z-index: 100300;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.lu-cmp-toast {
  max-width: 360px;
  padding: 11px 14px;
  color: #dfe1e5;
  background: #181a20;
  border: 1px solid var(--lu-cmp-line-strong);
  border-radius: 11px;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.35);
  font-size: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.lu-cmp-toast.show { opacity: 1; transform: none; }
.lu-cmp-toast.error { color: #ffc5c5; border-color: rgba(242, 132, 132, 0.2); }

@media (max-width: 1260px) {
  .lu-cmp-shell { grid-template-columns: 230px minmax(0, 1fr); }
  .lu-cmp-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  #luCompendiumV2 { inset: 112px 18px 16px; }
  .lu-cmp-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .lu-cmp-entry-grid { grid-template-columns: 1fr; }
  .lu-cmp-entry-card { min-height: 155px; }
  .lu-cmp-entry-summary { gap: 13px; }
  .lu-cmp-editor-actions [data-save-status] { display: none; }
  .lu-cmp-toolbar { justify-content: flex-start; }
}

@media (max-width: 760px) {
  #luCompendiumV2 { inset: 96px 8px 8px; border-radius: 15px; }
  .lu-cmp-shell { grid-template-columns: 1fr; grid-template-rows: 252px minmax(0, 1fr); }
  .lu-cmp-folders { padding: 10px; border-right: 0; border-bottom: 1px solid var(--lu-cmp-line); }
  .lu-cmp-brand { display: none; }
  .lu-cmp-folder-head { padding: 2px 3px 8px; }
  .lu-cmp-folder-head > div { display: flex; align-items: baseline; gap: 8px; }
  .lu-cmp-search { margin-bottom: 8px; }
  .lu-cmp-folder-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .lu-cmp-folder-row { min-width: 180px; }
  .lu-cmp-fixed-section { margin-top: 7px; padding-top: 7px; }
  .lu-cmp-training-info-button { min-height: 46px; }
  .lu-cmp-folder-foot { display: none; }
  .lu-cmp-folder-view { padding: 15px 13px 12px; }
  .lu-cmp-content-head { align-items: flex-start; }
  .lu-cmp-content-title p { display: none; }
  .lu-cmp-head-actions .secondary { display: none; }
  .lu-cmp-head-actions .danger { display: none; }
  .lu-cmp-entry-summary { overflow-x: auto; white-space: nowrap; }
  .lu-cmp-editor-view { padding: 8px; }
  .lu-cmp-editor-head { min-height: 35px; }
  .lu-cmp-editor-actions .secondary { min-height: 33px; }
  .lu-cmp-title-field { min-height: 60px; padding: 8px 12px; }
  .lu-cmp-title-input { height: 28px; }
  .lu-cmp-paper-scroll { padding: 18px 20px 68px; }
  .lu-cmp-document-logo { width: 100px; height: 88px; margin-bottom: 14px; }
  .lu-cmp-icon-field > div { grid-template-columns: repeat(6, 1fr); }
}


/* ===== levelup-v90-react-icons.css ===== */
/* LevelUp dashboard v90 — natywne widoki React dla baz trenera. */
.trainerLibraryReactView {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 0%, rgba(183, 139, 255, 0.08), transparent 34%),
    rgba(10, 10, 14, 0.72);
  border: 1px solid rgba(216, 180, 103, 0.18);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.trainerLibraryReactView iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  border: 0;
  background: transparent;
}

@media (max-width: 720px) {
  .trainerLibraryReactView {
    border-radius: 14px;
  }

  .trainerLibraryReactView iframe {
    min-height: calc(100dvh - 118px);
  }
}


/* ===== levelup-v52-dashboard-full-width.css ===== */
/* LevelUp v52 — Centrum dowodzenia na pełną szerokość, bez prawego raila. */

/* Prawa kolumna nie jest już częścią dashboardu. Nadpisujemy również starsze
   hotfixy V24/V40/V51, które potrafiły wymusić display:flex !important. */
.dashboardView .rightRail,
.dashboardView .lu-v24-side-rail,
.dashboardView .lu-v40-side-rail,
.dashboardView .lu-v41-side-rail,
.dashboardView .lu-v51-side-rail,
.rightRail.lu-v24-side-rail,
.lu-v24-side-rail.lu-v51-side-rail {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Jedna główna kolumna — panel klientów wykorzystuje całą dostępną szerokość. */
.dashboardView .workspaceGrid,
.dashboardView .lu-v39-main-grid,
.dashboardView .lu-v40-main-grid,
.dashboardView .lu-v41-main-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  column-gap: 0 !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.dashboardView .clientPanel,
.dashboardView .lu-v39-client-panel,
.dashboardView .lu-v40-client-panel,
.dashboardView .lu-v41-client-panel {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  justify-self: stretch !important;
}

/* Na szerokim ekranie wykorzystujemy odzyskane miejsce na czytelniejsze dane,
   zamiast zostawiać wielkie puste przestrzenie między komórkami. */
@media (min-width: 1181px) {
  .dashboardView .tableHeader,
  .dashboardView .clientRow {
    grid-template-columns:
      30px
      minmax(190px, 1.22fr)
      minmax(225px, 1.42fr)
      minmax(220px, 1.30fr)
      minmax(125px, .72fr)
      110px !important;
    gap: clamp(10px, 1vw, 18px) !important;
  }

  .dashboardView .panelToolbar {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .dashboardView .tableHeader,
  .dashboardView .clientRow {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .dashboardView .searchBox {
    width: clamp(230px, 20vw, 310px) !important;
  }
}

@media (min-width: 1500px) {
  .dashboardView .tableHeader,
  .dashboardView .clientRow {
    grid-template-columns:
      32px
      minmax(220px, 1.28fr)
      minmax(270px, 1.55fr)
      minmax(250px, 1.40fr)
      minmax(150px, .78fr)
      118px !important;
  }
}


/* ===== levelup-v53-dashboard-grid-fix.css ===== */
/* LevelUp v53 — poprawka siatki tabeli po przejściu dashboardu na pełną szerokość.
   V52 poprawnie usuwa prawy rail, ale omyłkowo przywrócił 6-kolumnowy układ.
   Aktualny React renderuje 5 komórek: Klient / Najważniejsze / Terminy / Aktywność / Akcje. */

@media (min-width: 1181px) {
  .dashboardView .tableHeader,
  .dashboardView .clientRow {
    grid-template-columns:
      minmax(255px, 1.38fr)
      minmax(180px, 1.18fr)
      minmax(160px, 1fr)
      92px
      76px !important;
    gap: 8px !important;
  }

  /* Zachowujemy pełną szerokość V52, ale bez dodatkowego sztucznego rozsuwania tabeli. */
  .dashboardView .tableHeader,
  .dashboardView .clientRow {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Na bardzo szerokich monitorach fr-y same wykorzystują wolne miejsce.
   Nie tworzymy drugiego breakpointu, żeby nagłówek i wiersze zawsze miały identyczną siatkę. */


/* ===== levelup-v54-payments-layout.css ===== */
/* LevelUp V54 — Płatności klienta
   Priorytet: „Przedłuż współpracę” jest zawsze pełną, naturalną sekcją.
   Historia zajmuje resztę lewej kolumny i to ona przewija się w razie potrzeby.
   Prawa automatyzacja nie może wychodzić poza kartę. */

.lu-v54-payments-grid,
.lu-v54-payments-left,
.lu-v54-payments-right,
.lu-v54-extend-card,
.lu-v54-history-card,
.lu-v54-cooperation-card,
.lu-v54-automation-card {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

/* Główny układ płatności zachowuje dwie kolumny, ale obie mogą się poprawnie kurczyć. */
.lu-v54-payments-grid {
  min-height: 0 !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

/* LEWA KOLUMNA — najpierw współpraca, później historia. */
.lu-v54-payments-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

.lu-v54-extend-card {
  order: -10 !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  contain: none !important;
}

/* Kasujemy stare ograniczenia wysokości wewnątrz rozszerzonej sekcji. */
.lu-v54-extend-card > * {
  max-height: none !important;
}

.lu-v54-extend-card [style*="max-height"] {
  max-height: none !important;
}

.lu-v54-extend-card [style*="overflow"] {
  overflow: visible !important;
}

.lu-v54-history-card {
  flex: 1 1 auto !important;
  min-height: 220px !important;
  max-height: none !important;
  overflow: hidden !important;
}

.lu-v54-history-scroll {
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
}

/* PRAWA KOLUMNA — kontrolowany scroll kolumny, ale same karty mają naturalną wysokość. */
.lu-v54-payments-right {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
  padding-right: 4px !important;
  padding-bottom: 10px !important;
}

.lu-v54-cooperation-card,
.lu-v54-automation-card {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
}

.lu-v54-automation-card {
  overflow: hidden !important;
}

.lu-v54-automation-card > *,
.lu-v54-automation-card form,
.lu-v54-automation-card label,
.lu-v54-automation-card div {
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.lu-v54-automation-card input,
.lu-v54-automation-card select,
.lu-v54-automation-card textarea {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.lu-v54-automation-card textarea {
  min-height: 76px !important;
  resize: vertical !important;
  overflow-wrap: anywhere !important;
}

/* Pola 2-kolumnowe nie mogą wypychać prawego panelu. */
.lu-v54-automation-card [style*="grid-template-columns"] {
  min-width: 0 !important;
}

@media (max-width: 1100px) {
  .lu-v54-payments-grid {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .lu-v54-payments-left,
  .lu-v54-payments-right {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .lu-v54-history-card {
    min-height: 320px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lu-v54-extend-card,
  .lu-v54-history-card,
  .lu-v54-automation-card {
    scroll-behavior: auto !important;
  }
}


/* ===== levelup-v63-onboarding-survey.css ===== */
/* LevelUp V63 — onboarding / wybór ankiety */

.luV63SurveyOptions{
  gap:10px !important;
}

.luV63SurveyOption{
  position:relative !important;
  min-height:82px !important;
  padding:13px 14px !important;

  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:14px !important;

  background:
    linear-gradient(
      180deg,
      rgba(20,20,25,.94),
      rgba(16,17,21,.94)
    ) !important;

  color:#f4f3ef !important;
  box-shadow:none !important;

  transition:
    border-color .16s ease,
    background .16s ease,
    transform .16s ease !important;
}

.luV63SurveyOption:hover:not(:disabled){
  border-color:rgba(213,179,107,.25) !important;

  background:
    linear-gradient(
      180deg,
      rgba(24,23,25,.97),
      rgba(18,18,21,.97)
    ) !important;
}

.luV63SurveyOption.is-active{
  border-color:rgba(213,179,107,.42) !important;

  background:
    linear-gradient(
      180deg,
      rgba(213,179,107,.090),
      rgba(213,179,107,.040)
    ) !important;

  box-shadow:
    inset 0 0 0 1px rgba(213,179,107,.035),
    0 8px 22px rgba(0,0,0,.09) !important;
}

.luV63SurveyOption > span:nth-child(2){
  min-width:0 !important;
}

.luV63SurveyOption strong{
  color:#f3f1eb !important;
  font-weight:850 !important;
}

.luV63SurveyOption small{
  color:rgba(220,221,225,.48) !important;
}

.luV63SurveyOption.is-active strong{
  color:#e4bd62 !important;
}

.luV63SurveyIcon{
  width:40px !important;
  height:40px !important;

  display:grid !important;
  place-items:center !important;

  border:1px solid rgba(255,255,255,.09) !important;
  border-radius:11px !important;

  background:rgba(255,255,255,.035) !important;
  color:rgba(226,227,232,.62) !important;

  font-size:18px !important;
}

.luV63SurveyOption.is-active .luV63SurveyIcon{
  border-color:rgba(213,179,107,.24) !important;
  background:rgba(213,179,107,.10) !important;
  color:#e3bd63 !important;
}

.luV63SurveyRadio{
  width:17px !important;
  height:17px !important;

  border:1.5px solid rgba(255,255,255,.23) !important;
  border-radius:50% !important;

  background:transparent !important;
  box-shadow:none !important;
}

.luV63SurveyOption.is-active .luV63SurveyRadio{
  border-color:#d5b36b !important;

  background:
    radial-gradient(
      circle at center,
      #d5b36b 0 3.5px,
      transparent 4px
    ) !important;
}

.luV63SurveyOption.is-active,
.luV63SurveyOption.is-active:hover{
  outline:none !important;
}

.luV63SurveyOption:disabled{
  opacity:.58 !important;
  cursor:default !important;
}


/* ===== levelup-v61-clients-new.css ===== */
/* LevelUp V61 — prawdziwy widok Nowi z /trainer/waiting */

.waitingDirectoryHead,
.waitingDirectoryRow{
  grid-template-columns:
    minmax(250px,1.15fr)
    minmax(230px,.95fr)
    minmax(270px,1fr)
    210px !important;
}

.waitingDirectoryRow{
  margin:10px 12px !important;
  padding:12px 14px !important;
  min-height:76px !important;

  border:1px solid rgba(255,255,255,.085) !important;
  border-radius:14px !important;

  background:
    linear-gradient(
      180deg,
      rgba(18,19,24,.94),
      rgba(13,14,18,.94)
    ) !important;

  box-shadow:0 8px 24px rgba(0,0,0,.08) !important;
}

.waitingDirectoryRow:hover{
  border-color:rgba(216,179,90,.17) !important;
  background:
    linear-gradient(
      180deg,
      rgba(20,20,25,.97),
      rgba(14,15,19,.97)
    ) !important;
}

.waitingDirectoryRow .luWaitingPerson{
  cursor:default !important;
  min-width:0 !important;
}

.waitingDirectoryRow .luWaitingPerson > span{
  border:1px solid rgba(216,179,90,.18) !important;
  background:rgba(216,179,90,.075) !important;
  color:#e2c16f !important;
}

.waitingDirectoryRow .sxNewMain{
  min-width:0 !important;
}

.waitingDirectoryRow .sxNewMain strong{
  display:block !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}

.waitingDirectoryRow .luWaitingSub{
  display:block !important;
  margin-top:4px !important;
  color:rgba(219,221,231,.46) !important;
  font-size:9px !important;
  font-weight:600 !important;
  line-height:1.2 !important;
}

/* Badge „Do akceptacji” ma nie istnieć przy approval. */
.waitingDirectoryRow
.lu-v55-onboarding-stage[data-stage="approval"]{
  display:none !important;
}

.waitingDirectoryRow .luWaitingContact{
  min-width:0 !important;
}

.waitingDirectoryRow .luWaitingContact span{
  display:block !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;

  color:rgba(225,227,236,.64) !important;
  font-size:9px !important;
}

.waitingDirectoryRow .luWaitingStatus{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  min-width:0 !important;
}

.waitingDirectoryRow .luWaitingStatusIcon{
  width:34px !important;
  height:34px !important;
  display:grid !important;
  place-items:center !important;
  flex:0 0 34px !important;

  border:1px solid rgba(255,255,255,.08) !important;
  border-radius:11px !important;

  background:rgba(255,255,255,.025) !important;

  font-size:16px !important;
  font-weight:850 !important;
}

.waitingDirectoryRow .luWaitingStatus.green .luWaitingStatusIcon{
  color:#43dfa0 !important;
  border-color:rgba(67,223,160,.22) !important;
  background:rgba(67,223,160,.075) !important;
}

.waitingDirectoryRow .luWaitingStatus.blue .luWaitingStatusIcon{
  color:#7aaee8 !important;
  border-color:rgba(122,174,232,.20) !important;
  background:rgba(122,174,232,.065) !important;
}

.waitingDirectoryRow .luWaitingStatus.gold .luWaitingStatusIcon{
  color:#e2c16f !important;
  border-color:rgba(216,179,90,.20) !important;
  background:rgba(216,179,90,.065) !important;
}

.waitingDirectoryRow .luWaitingStatus > div{
  min-width:0 !important;
}

.waitingDirectoryRow .luWaitingStatus strong,
.waitingDirectoryRow .luWaitingStatus small{
  display:block !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}

.waitingDirectoryRow .luWaitingStatus strong{
  color:#eef0ef !important;
  font-size:10px !important;
  font-weight:800 !important;
}

.waitingDirectoryRow .luWaitingStatus.green strong{
  color:#61e3ad !important;
}

.waitingDirectoryRow .luWaitingStatus small{
  margin-top:3px !important;
  color:rgba(220,222,231,.40) !important;
  font-size:8px !important;
}

.waitingDirectoryRow .luWaitingActions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:9px !important;
}

.waitingDirectoryRow .luWaitingAccept,
.waitingDirectoryRow [data-lu-v55-onboarding-action]{
  min-width:138px !important;
  min-height:40px !important;
  padding:0 18px !important;

  border:1px solid rgba(216,179,90,.31) !important;
  border-radius:11px !important;

  background:rgba(216,179,90,.075) !important;
  color:#e8c65f !important;

  font-size:10px !important;
  font-weight:900 !important;
}

.waitingDirectoryRow
[data-lu-v55-onboarding-action]:disabled{
  opacity:.55 !important;
  cursor:default !important;
}

.waitingDirectoryRow .luWaitingReject{
  width:40px !important;
  height:40px !important;
  display:grid !important;
  place-items:center !important;
  flex:0 0 40px !important;

  border:1px solid rgba(233,77,88,.30) !important;
  border-radius:11px !important;

  background:rgba(233,77,88,.055) !important;
  color:#ef6972 !important;

  font-size:18px !important;
  line-height:1 !important;
}

.waitingDirectoryRow .luWaitingReject:hover{
  background:rgba(233,77,88,.10) !important;
}

@media(max-width:1050px){
  .waitingDirectoryHead,
  .waitingDirectoryRow{
    grid-template-columns:
      minmax(210px,1.05fr)
      minmax(210px,.9fr)
      minmax(240px,1fr)
      190px !important;
  }
}


/* ===== archive-v70.css ===== */
/* =========================================================
   LevelUp — Archiwum klientów V70
   Czytelniejsza typografia + zwarty layout + bez Podglądu
   ========================================================= */

.archiveList{
  padding:14px 16px 16px !important;
  gap:10px !important;
}

.archiveRow{
  min-height:112px !important;
  padding:15px 16px !important;
  grid-template-columns:
    minmax(285px,1.12fr)
    minmax(380px,1fr)
    minmax(320px,.92fr)
    auto !important;
  gap:20px !important;
  border-radius:14px !important;
}

/* LEWA CZĘŚĆ — klient */
.archiveIdentity{
  grid-template-columns:46px minmax(0,1fr) !important;
  gap:13px !important;
}

.archiveAvatar,
.archivePreviewAvatar{
  width:46px !important;
  height:46px !important;
  border-radius:13px !important;
  font-size:11px !important;
}

.archivePerson{
  gap:5px !important;
}

.archivePersonName{
  gap:8px !important;
}

.archivePersonName strong{
  font-size:14px !important;
  line-height:1.18 !important;
  font-weight:800 !important;
}

.archivePersonName i{
  min-height:22px !important;
  padding:0 7px !important;
  font-size:9px !important;
  border-radius:7px !important;
}

.archivePerson>span:not(.archivePersonName){
  font-size:11px !important;
  line-height:1.25 !important;
}

.archivePerson>small{
  font-size:10px !important;
  line-height:1.3 !important;
}

/* ŚRODEK — statystyki */
.archiveInventory{
  gap:7px !important;
}

.archiveInventory>span{
  min-height:50px !important;
  padding:8px 10px !important;
  grid-template-columns:18px auto !important;
  column-gap:7px !important;
  border-radius:9px !important;
  font-size:10.5px !important;
  line-height:1.1 !important;
}

.archiveInventory>span svg{
  width:16px !important;
  height:16px !important;
}

.archiveInventory>span b{
  font-size:14px !important;
  line-height:1 !important;
}

.archiveInventory>small{
  margin-top:1px !important;
  font-size:9.5px !important;
  line-height:1.25 !important;
}

/* META — trzy równe kolumny */
.archiveMeta{
  min-width:0 !important;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(86px,1fr)) !important;
  align-items:center !important;
  gap:14px !important;
}

.archiveMeta>span{
  min-width:0 !important;
  gap:5px !important;
}

.archiveMeta small{
  font-size:10px !important;
  line-height:1.15 !important;
  font-weight:600 !important;
}

.archiveMeta strong{
  font-size:11px !important;
  line-height:1.2 !important;
  font-weight:750 !important;
}

/* AKCJE */
.archiveActions{
  gap:7px !important;
  align-items:center !important;
}

/* Podgląd usuwamy z listy */
.archiveActions>button.preview{
  display:none !important;
}

.archiveActions>button.download,
.archiveMoreWrap>button{
  min-height:38px !important;
  border-radius:9px !important;
  font-size:10.5px !important;
}

.archiveActions>button.download{
  padding:0 12px !important;
}

.archiveMoreWrap>button.more{
  width:38px !important;
  min-width:38px !important;
  padding:0 !important;
}

.archiveMoreMenu{
  width:182px !important;
}

.archiveMoreMenu button{
  min-height:38px !important;
  font-size:10.5px !important;
}

/* Toolbar też lekko czytelniejszy */
.archiveToolbar h2{
  font-size:16px !important;
}

.archiveToolbar p{
  font-size:10px !important;
}

.archivePeriodTabs button{
  min-height:34px !important;
  padding:0 12px !important;
  font-size:10px !important;
}

.archiveSearch input{
  font-size:10.5px !important;
}

/* 1180–1450: nadal wszystko w jednym logicznym układzie */
@media (max-width:1450px){
  .archiveRow{
    grid-template-columns:
      minmax(250px,1fr)
      minmax(330px,1fr)
      minmax(280px,.9fr)
      auto !important;
    gap:14px !important;
  }

  .archiveMeta{
    gap:10px !important;
  }
}

/* Tablet */
@media (max-width:1180px){
  .archiveRow{
    grid-template-columns:minmax(240px,1fr) minmax(320px,1fr) auto !important;
  }

  .archiveMeta{
    grid-column:1 / 3 !important;
  }
}

/* Węższy ekran */
@media (max-width:980px){
  .archiveRow{
    grid-template-columns:minmax(0,1fr) auto !important;
  }

  .archiveInventory,
  .archiveMeta{
    grid-column:1 / -1 !important;
  }

  .archiveActions{
    grid-column:2 !important;
    grid-row:1 !important;
  }
}

@media (max-width:680px){
  .archiveRow{
    grid-template-columns:1fr !important;
    padding:13px !important;
  }

  .archiveActions{
    grid-column:1 !important;
    grid-row:auto !important;
    justify-content:flex-start !important;
  }

  .archiveMeta{
    grid-template-columns:1fr 1fr !important;
  }

  .archiveMeta>span:last-child{
    grid-column:1 / -1 !important;
  }
}


/* ===== levelup-v51-new-surveys.css ===== */
/* LevelUp V22 — Ankiety - nowi */

.clientPanel.luNewSurveysActive > :not(.moduleTabs):not(#luNewSurveysPanel) {
  display: none !important;
}

#luNewSurveysTab {
  white-space: nowrap;
}

#luNewSurveysTab .luNewSurveysTabIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#luNewSurveysTab .luNewSurveysTabIcon svg {
  width: 16px;
  height: 16px;
}

#luNewSurveysPanel {
  display: none;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.clientPanel.luNewSurveysActive #luNewSurveysPanel {
  display: flex;
  flex-direction: column;
}

.luNewSurveysShell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  color: rgba(255,255,255,.92);
}

.luNewSurveysHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.luNewSurveysHeadText h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -.02em;
}

.luNewSurveysHeadText p {
  margin: 5px 0 0;
  color: rgba(255,255,255,.45);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 700;
}

.luNewSurveysCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(104,167,255,.22);
  background: rgba(104,167,255,.08);
  color: #82b8ff;
  font-size: 12px;
  font-weight: 950;
}

.luNewSurveysBody {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 10px 12px 16px;
}

.luNewSurveyRow {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) minmax(160px, .8fr) minmax(140px, .7fr) minmax(160px, .75fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.luNewSurveyRow:hover {
  background: rgba(255,255,255,.018);
}

.luNewSurveyClient {
  min-width: 0;
}

.luNewSurveyClient strong {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.luNewSurveyClient span,
.luNewSurveyMeta span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.42);
  font-size: 10px;
  font-weight: 700;
}

.luNewSurveyMeta b {
  display: block;
  color: rgba(255,255,255,.76);
  font-size: 11px;
  font-weight: 850;
}

.luNewSurveyPill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid rgba(104,167,255,.22);
  background: rgba(104,167,255,.07);
  color: #82b8ff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .02em;
}

.luNewSurveyActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.luNewSurveyBtn {
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.78);
  padding: 0 11px;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.luNewSurveyBtn:hover {
  border-color: rgba(104,167,255,.28);
  background: rgba(104,167,255,.065);
  color: #fff;
}

.luNewSurveyBtn.isPrimary {
  border-color: rgba(215,177,96,.32);
  background: rgba(215,177,96,.10);
  color: #e3bf72;
}

.luNewSurveyBtn.isPrimary:hover {
  border-color: rgba(215,177,96,.50);
  background: rgba(215,177,96,.15);
}

.luNewSurveysEmpty,
.luNewSurveysLoading,
.luNewSurveysError {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,.46);
  font-size: 12px;
  font-weight: 800;
}

.luNewSurveysError {
  color: #ff7d7d;
}

#luNewSurveyModal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(9px);
}

#luNewSurveyModal.isOpen {
  display: flex;
}

.luNewSurveyModalBox {
  width: min(900px, 96vw);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(104,167,255,.22);
  background: linear-gradient(180deg,#12151b,#0a0c10);
  box-shadow: 0 30px 100px rgba(0,0,0,.72);
}

.luNewSurveyModalHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.luNewSurveyModalHead strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.luNewSurveyModalHead span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.42);
  font-size: 10px;
  font-weight: 750;
}

.luNewSurveyModalClose {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
  color: #fff;
  font-size: 19px;
  cursor: pointer;
}

.luNewSurveyAnswers {
  overflow: auto;
  padding: 14px 18px 20px;
}

.luNewSurveyAnswer {
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(0, 1.5fr);
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.luNewSurveyAnswer dt {
  color: rgba(130,184,255,.88);
  font-size: 10px;
  font-weight: 900;
}

.luNewSurveyAnswer dd {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 1050px) {
  .luNewSurveyRow {
    grid-template-columns: minmax(200px,1fr) minmax(140px,.8fr) minmax(140px,.8fr) auto;
  }

  .luNewSurveyRow .luNewSurveyTemplate {
    display: none;
  }
}

/* __LEVELUP_NEW_SURVEYS_CARDS_V27__
   Ankiety - nowi: pełne karty klientów
   ============================================================ */

#luNewSurveysPanel .luNewSurveysBody {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 18px;
}

#luNewSurveysPanel .luNewSurveyRow {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(220px, 1.15fr)
    minmax(170px, .82fr)
    minmax(165px, .78fr)
    minmax(135px, .62fr)
    auto;
  align-items: center;
  gap: 16px;

  min-height: 82px;
  padding: 15px 16px;

  border: 1px solid rgba(255,255,255,.085);
  border-radius: 16px;

  background:
    radial-gradient(
      circle at 95% 10%,
      rgba(216, 177, 96, .045),
      transparent 25%
    ),
    linear-gradient(
      180deg,
      rgba(255,255,255,.025),
      rgba(255,255,255,.012)
    );

  box-shadow:
    0 10px 28px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.018);

  transition:
    border-color .16s ease,
    background .16s ease,
    transform .16s ease,
    box-shadow .16s ease;
}

#luNewSurveysPanel .luNewSurveyRow:hover {
  transform: translateY(-1px);
  border-color: rgba(216,177,96,.22);
  background:
    radial-gradient(
      circle at 95% 10%,
      rgba(216,177,96,.075),
      transparent 27%
    ),
    linear-gradient(
      180deg,
      rgba(255,255,255,.035),
      rgba(255,255,255,.017)
    );
  box-shadow:
    0 14px 34px rgba(0,0,0,.21),
    inset 0 1px 0 rgba(255,255,255,.025);
}

#luNewSurveysPanel .luNewSurveyClient strong {
  font-size: 12.5px;
  color: rgba(255,255,255,.96);
}

#luNewSurveysPanel .luNewSurveyClient span,
#luNewSurveysPanel .luNewSurveyMeta span {
  margin-top: 5px;
  font-size: 10px;
  color: rgba(255,255,255,.43);
}

#luNewSurveysPanel .luNewSurveyMeta b {
  font-size: 11px;
  color: rgba(255,255,255,.78);
}

#luNewSurveysPanel .luNewSurveyPill {
  height: 27px;
  border-radius: 9px;
  border-color: rgba(112,174,255,.24);
  background: rgba(112,174,255,.07);
  color: #86baff;
}

#luNewSurveysPanel .luNewSurveyActions {
  justify-content: flex-end;
}

#luNewSurveysPanel .luNewSurveyBtn.isPrimary {
  min-width: 118px;
  height: 38px;
  padding: 0 14px;

  border: 1px solid rgba(216,177,96,.30);
  border-radius: 11px;

  background:
    linear-gradient(
      180deg,
      rgba(216,177,96,.11),
      rgba(216,177,96,.055)
    );

  color: #e8c879;
  font-size: 10px;
  font-weight: 950;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025);

  transition:
    border-color .16s ease,
    background .16s ease,
    transform .16s ease,
    color .16s ease;
}

#luNewSurveysPanel .luNewSurveyBtn.isPrimary:hover {
  transform: translateY(-1px);
  border-color: rgba(216,177,96,.52);
  background:
    linear-gradient(
      180deg,
      rgba(216,177,96,.17),
      rgba(216,177,96,.085)
    );
  color: #f2d58e;
}

@media (max-width: 1180px) {
  #luNewSurveysPanel .luNewSurveyRow {
    grid-template-columns:
      minmax(220px, 1fr)
      minmax(155px, .75fr)
      minmax(155px, .75fr)
      auto;
  }

  #luNewSurveysPanel .luNewSurveyRow .luNewSurveyTemplate {
    display: none;
  }
}


/* ===== levelup-v52-new-surveys-preview.css ===== */
/* ============================================================
   LevelUp V23 — Ankiety - nowi
   Podgląd oparty 1:1 o surveyDetail* z głównej sekcji Ankiety.
   ============================================================ */

#luSurveyPreviewV23 {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

#luSurveyPreviewV23.isOpen {
  display: flex;
}

#luSurveyPreviewV23 .luSurveyPreviewDialog {
  width: min(1120px, 96vw);
  max-height: min(92vh, 940px);
  min-height: min(720px, 88vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 0%, rgba(85,145,255,.055), transparent 30%),
    linear-gradient(180deg,#12151a 0%,#0d1015 100%);
  box-shadow: 0 34px 110px rgba(0,0,0,.74);
}

#luSurveyPreviewV23 .luSurveyPreviewTopbar {
  flex: 0 0 auto;
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

#luSurveyPreviewV23 .luSurveyPreviewTopbar > div {
  min-width: 0;
}

#luSurveyPreviewV23 .luSurveyPreviewTopbar small {
  display: block;
  margin-bottom: 4px;
  color: rgba(111,169,255,.82);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .15em;
  text-transform: uppercase;
}

#luSurveyPreviewV23 .luSurveyPreviewTopbar strong {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -.02em;
}

#luSurveyPreviewV23 .luSurveyPreviewClose {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.78);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

#luSurveyPreviewV23 .luSurveyPreviewClose:hover {
  color: #fff;
  border-color: rgba(111,169,255,.28);
  background: rgba(111,169,255,.07);
}

#luSurveyPreviewV23 .luSurveyPreviewScroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
}

#luSurveyPreviewV23 .surveyDetailV3 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#luSurveyPreviewV23 .surveyDetailSummary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 12%, rgba(84,145,255,.055), transparent 26%),
    rgba(255,255,255,.022);
}

#luSurveyPreviewV23 .surveyDetailTitle {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

#luSurveyPreviewV23 .surveyDetailIcon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(102,165,255,.30);
  border-radius: 14px;
  background: rgba(102,165,255,.075);
  color: #75adff;
}

#luSurveyPreviewV23 .surveyDetailIcon svg {
  width: 21px;
  height: 21px;
}

#luSurveyPreviewV23 .surveyDetailTitle small {
  display: block;
  margin-bottom: 4px;
  color: rgba(106,166,255,.82);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#luSurveyPreviewV23 .surveyDetailTitle h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: -.025em;
}

#luSurveyPreviewV23 .surveyDetailTitle p {
  margin: 5px 0 0;
  color: rgba(255,255,255,.44);
  font-size: 10px;
  font-weight: 700;
}

#luSurveyPreviewV23 .surveyDetailTitle p span {
  margin: 0 5px;
  opacity: .42;
}

#luSurveyPreviewV23 .surveyDetailSummaryMeta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

#luSurveyPreviewV23 .surveyAnswerLayoutControl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 12px;
  background: rgba(0,0,0,.18);
}

#luSurveyPreviewV23 .surveyAnswerLayoutControl > span {
  padding: 0 6px 0 5px;
  color: rgba(255,255,255,.38);
  font-size: 9px;
  font-weight: 850;
}

#luSurveyPreviewV23 .surveyAnswerLayoutControl button {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: rgba(255,255,255,.46);
  font: inherit;
  cursor: pointer;
}

#luSurveyPreviewV23 .surveyAnswerLayoutControl button svg {
  width: 15px;
  height: 15px;
}

#luSurveyPreviewV23 .surveyAnswerLayoutControl button em {
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
}

#luSurveyPreviewV23 .surveyAnswerLayoutControl button.active {
  border-color: rgba(106,166,255,.26);
  background: rgba(106,166,255,.09);
  color: #8abcff;
}

#luSurveyPreviewV23 .statusPill.review {
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(106,166,255,.24);
  border-radius: 9px;
  background: rgba(106,166,255,.075);
  color: #85b9ff;
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}

#luSurveyPreviewV23 .surveyDetailAnswerRowsV4 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#luSurveyPreviewV23 .surveyDetailAnswerRowV4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

#luSurveyPreviewV23 .surveyDetailAnswerRowV4.single {
  grid-template-columns: minmax(0,1fr);
}

#luSurveyPreviewV23 .surveyAnswerLayout--stacked .surveyDetailAnswerRowV4 {
  grid-template-columns: minmax(0,1fr);
}

#luSurveyPreviewV23 .surveyDetailAnswer {
  min-width: 0;
  min-height: 92px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 15px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.027),rgba(255,255,255,.015));
}

#luSurveyPreviewV23 .surveyDetailAnswer header {
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

#luSurveyPreviewV23 .surveyDetailAnswer header span {
  width: 25px;
  height: 21px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(106,166,255,.18);
  border-radius: 7px;
  background: rgba(106,166,255,.055);
  color: rgba(127,183,255,.90);
  font-size: 8px;
  font-weight: 950;
}

#luSurveyPreviewV23 .surveyDetailAnswer header strong {
  min-width: 0;
  color: rgba(255,255,255,.60);
  font-size: 9px;
  line-height: 1.3;
  font-weight: 900;
}

#luSurveyPreviewV23 .surveyDetailAnswer > div {
  padding: 13px 13px 14px;
  color: rgba(255,255,255,.92);
  font-size: 11px;
  line-height: 1.55;
  font-weight: 760;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#luSurveyPreviewV23 .surveyDetailAnswer.empty > div {
  color: rgba(255,255,255,.30);
}

#luSurveyPreviewV23 .surveyDetailEmpty {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: rgba(255,255,255,.42);
}

#luSurveyPreviewV23 .surveyDetailEmpty strong {
  color: rgba(255,255,255,.74);
  font-size: 13px;
}

#luSurveyPreviewV23 .surveyDetailEmpty p {
  margin: 0;
  font-size: 10px;
}

@media (max-width: 850px) {
  #luSurveyPreviewV23 {
    padding: 8px;
  }

  #luSurveyPreviewV23 .luSurveyPreviewDialog {
    width: 100%;
    max-height: 96vh;
    min-height: 0;
  }

  #luSurveyPreviewV23 .surveyDetailSummary {
    align-items: flex-start;
    flex-direction: column;
  }

  #luSurveyPreviewV23 .surveyDetailSummaryMeta {
    width: 100%;
    justify-content: space-between;
  }

  #luSurveyPreviewV23 .surveyDetailAnswerRowV4 {
    grid-template-columns: 1fr;
  }

  #luSurveyPreviewV23 .surveyAnswerLayoutControl > span,
  #luSurveyPreviewV23 .surveyAnswerLayoutControl button em {
    display: none;
  }
}

/* __LEVELUP_NEW_SURVEYS_PREVIEW_V24__
   Większa typografia + custom scrollbar
   ============================================================ */

#luSurveyPreviewV23 .surveyDetailTitle h3 {
  font-size: 18px;
}

#luSurveyPreviewV23 .surveyDetailTitle p {
  font-size: 11px;
}

#luSurveyPreviewV23 .surveyDetailAnswer header strong {
  font-size: 10.5px;
  line-height: 1.38;
}

#luSurveyPreviewV23 .surveyDetailAnswer header span {
  font-size: 8.5px;
}

#luSurveyPreviewV23 .surveyDetailAnswer > div {
  font-size: 12.5px;
  line-height: 1.62;
  font-weight: 760;
}

#luSurveyPreviewV23 .surveyAnswerLayoutControl > span,
#luSurveyPreviewV23 .surveyAnswerLayoutControl button em {
  font-size: 9.5px;
}

/* Firefox */
#luSurveyPreviewV23 .luSurveyPreviewScroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(118, 176, 255, .58) rgba(255, 255, 255, .035);
}

/* Chromium / Safari / WebKit */
#luSurveyPreviewV23 .luSurveyPreviewScroll::-webkit-scrollbar {
  width: 9px;
}

#luSurveyPreviewV23 .luSurveyPreviewScroll::-webkit-scrollbar-track {
  margin-block: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .028);
}

#luSurveyPreviewV23 .luSurveyPreviewScroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(122, 180, 255, .78),
      rgba(80, 132, 214, .68)
    ) padding-box;
  background-clip: padding-box;
}

#luSurveyPreviewV23 .luSurveyPreviewScroll::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(
      180deg,
      rgba(139, 192, 255, .94),
      rgba(92, 149, 235, .84)
    ) padding-box;
}

/* Drobny oddech od scrollbara, żeby treść nie siedziała przy nim. */
#luSurveyPreviewV23 .luSurveyPreviewScroll {
  padding-right: 14px;
}


/* ===== levelup-v92-chat-ui.css ===== */
:root{--lu-chat-gold:#d5b36b;--lu-chat-gold-bright:#f0d18a;--lu-chat-bg:#0d0d10;--lu-chat-panel:#111115;--lu-chat-panel-2:#16161b;--lu-chat-border:rgba(255,255,255,.085);--lu-chat-muted:#8f8f99;--lu-chat-muted-2:#65656f;--lu-chat-text:#f7f7f8;--lu-chat-red:#ff7478;--lu-chat-green:#69c997}
.luChatButton{position:relative;isolation:isolate}.luChatButton>svg,.luChatLogo>svg,.luChatClose svg,.luChatBack svg,.luChatInfo svg,.luChatSearch svg,.luChatNewGroup svg,.luChatComposerIcon svg,.luChatSend svg,.luChatCheck svg,.luChatGroupManagerHead>span svg,.luChatCreateButton svg,.luChatEmpty>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.luChatButton.hasUnread{color:#d7d7dc;border-color:rgba(213,179,107,.16);background:linear-gradient(145deg,rgba(213,179,107,.08),rgba(255,255,255,.025)),var(--panel,#101014)}.luChatButton:hover,.luChatButton.hasTyping{color:var(--lu-chat-gold-bright);border-color:rgba(213,179,107,.3)}.luChatCount{position:absolute;z-index:3;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;display:grid;place-items:center;color:#fff;background:linear-gradient(180deg,#ff8588,#ef5d64);border:2px solid #09090c;border-radius:999px;font-size:8px;font-weight:900;line-height:1;box-shadow:0 4px 12px rgba(239,93,100,.26)}.luChatCount[hidden]{display:none}.luChatTypingMini{position:absolute;z-index:2;left:3px;bottom:3px;height:10px;padding:0 3px;display:none;align-items:center;gap:1.5px;background:#201c13;border:1px solid rgba(213,179,107,.45);border-radius:999px;box-shadow:0 3px 10px #0008}.luChatButton.hasTyping .luChatTypingMini{display:flex}.luChatTypingMini i,.luTypingDots i{display:block;width:2px;height:2px;background:var(--lu-chat-gold-bright);border-radius:50%;animation:luChatDot 1.05s ease-in-out infinite}.luChatTypingMini i:nth-child(2),.luTypingDots i:nth-child(2){animation-delay:.14s}.luChatTypingMini i:nth-child(3),.luTypingDots i:nth-child(3){animation-delay:.28s}@keyframes luChatDot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-2px);opacity:1}}
.luChatOverlay{position:fixed;z-index:180;inset:0;pointer-events:none}.luChatOverlay.open{pointer-events:auto}.luChatBackdrop{position:absolute;inset:0;opacity:0;background:rgba(0,0,0,.64);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);transition:opacity .22s ease}.luChatOverlay.open .luChatBackdrop{opacity:1}.luChatDrawer{position:absolute;top:0;right:0;bottom:0;width:min(480px,100vw);display:flex;flex-direction:column;overflow:hidden;color:var(--lu-chat-text);background:radial-gradient(circle at 100% 0%,rgba(213,179,107,.075),transparent 32%),linear-gradient(180deg,#0f0f12,#0b0b0e);border-left:1px solid rgba(255,255,255,.1);box-shadow:-24px 0 80px rgba(0,0,0,.55);transform:translateX(102%);transition:transform .26s cubic-bezier(.2,.75,.2,1)}.luChatOverlay.open .luChatDrawer{transform:translateX(0)}.luChatDrawerHeader{flex:0 0 auto;min-height:78px;padding:13px 15px;display:grid;grid-template-columns:40px minmax(0,1fr) 34px;align-items:center;gap:11px;border-bottom:1px solid var(--lu-chat-border);background:linear-gradient(180deg,rgba(255,255,255,.018),transparent)}.luChatLogo{width:40px;height:40px;display:grid;place-items:center;color:var(--lu-chat-gold-bright);background:linear-gradient(145deg,rgba(213,179,107,.18),rgba(213,179,107,.07));border:1px solid rgba(213,179,107,.2);border-radius:12px;box-shadow:0 9px 28px rgba(213,179,107,.08)}.luChatDrawerHeader>div{min-width:0;display:grid;gap:2px}.luChatDrawerHeader small{color:var(--lu-chat-gold);font-size:7px;font-weight:900;letter-spacing:.15em}.luChatDrawerHeader strong{font-size:15px;letter-spacing:-.02em}.luChatDrawerHeader>div>span{display:flex;align-items:center;gap:5px;color:var(--lu-chat-muted-2);font-size:8px}.luChatDrawerHeader>div>span i,.luChatStatusBar>i{width:5px;height:5px;background:var(--lu-chat-green);border-radius:50%;box-shadow:0 0 0 3px rgba(105,201,151,.08)}.luChatClose,.luChatBack,.luChatInfo,.luChatComposerIcon{width:34px;height:34px;display:grid;place-items:center;color:var(--lu-chat-muted);background:rgba(255,255,255,.045);border:1px solid var(--lu-chat-border);border-radius:10px}.luChatClose:hover,.luChatBack:hover,.luChatInfo:hover,.luChatComposerIcon:hover{color:var(--lu-chat-gold-bright);border-color:rgba(213,179,107,.25)}.luChatBody{min-height:0;flex:1 1 auto}.luChatListView,.luChatThreadView,.luChatGroupCreate{height:100%;min-height:0;display:flex;flex-direction:column}.luChatTabs{margin:10px 12px 0;padding:4px;display:grid;grid-template-columns:1fr 1fr;gap:4px;background:rgba(255,255,255,.04);border:1px solid var(--lu-chat-border);border-radius:11px}.luChatTabs button{min-height:36px;display:flex;align-items:center;justify-content:center;gap:7px;color:var(--lu-chat-muted-2);background:transparent;border:1px solid transparent;border-radius:8px;font-size:9px;font-weight:800}.luChatTabs button:hover{color:var(--lu-chat-muted)}.luChatTabs button.active{color:var(--lu-chat-gold-bright);background:linear-gradient(145deg,rgba(213,179,107,.16),rgba(213,179,107,.06)),rgba(255,255,255,.025);border-color:rgba(213,179,107,.22)}.luChatTabs b{min-width:18px;height:18px;padding:0 5px;display:grid;place-items:center;color:var(--lu-chat-muted);background:rgba(255,255,255,.06);border-radius:6px;font-size:8px}.luChatTabs button.active b{color:var(--lu-chat-gold);background:rgba(213,179,107,.13)}.luChatToolbar{padding:10px 12px 7px;display:flex;gap:7px}.luChatSearch{min-width:0;min-height:36px;flex:1 1 auto;padding:0 10px;display:flex;align-items:center;gap:7px;color:var(--lu-chat-muted-2);background:rgba(255,255,255,.04);border:1px solid var(--lu-chat-border);border-radius:10px}.luChatSearch:focus-within{border-color:rgba(213,179,107,.34);box-shadow:0 0 0 3px rgba(213,179,107,.06)}.luChatSearch svg{width:15px;height:15px}.luChatSearch input{min-width:0;width:100%;color:#dddde2;background:transparent;border:0;outline:0;font-size:9px}.luChatSearch input::placeholder{color:#5f5f68}.luChatSearch.compact{flex:0 0 auto;margin:0}.luChatNewGroup{min-height:36px;padding:0 10px;display:flex;align-items:center;gap:6px;color:var(--lu-chat-gold-bright);background:rgba(213,179,107,.1);border:1px solid rgba(213,179,107,.18);border-radius:10px;font-size:8px;font-weight:800}.luChatNewGroup svg{width:14px;height:14px}.luChatNewGroup:hover{background:rgba(213,179,107,.16);border-color:rgba(213,179,107,.3)}.luChatListHead{padding:5px 15px 6px;display:flex;align-items:center;justify-content:space-between}.luChatListHead span{color:var(--lu-chat-gold);font-size:7px;font-weight:900;letter-spacing:.14em}.luChatListHead small{color:var(--lu-chat-muted-2);font-size:7px}.luChatConversationList{min-height:0;flex:1 1 auto;padding:0 8px 8px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(213,179,107,.38) transparent}.luChatConversation{width:100%;min-height:68px;padding:8px;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:10px;color:inherit;text-align:left;background:transparent;border:1px solid transparent;border-radius:11px;transition:background .14s ease,border-color .14s ease}.luChatConversation:hover{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.05)}.luChatConversation.unread{background:linear-gradient(90deg,rgba(213,179,107,.07),transparent 70%)}.luChatAvatar{position:relative;width:40px;height:40px;display:grid;place-items:center;color:#e6d4a8;background:radial-gradient(circle at 30% 18%,rgba(255,255,255,.08),transparent 38%),#22211e;border:1px solid rgba(213,179,107,.15);border-radius:12px;font-size:10px;font-weight:900}.luChatAvatar.group{color:var(--lu-chat-gold-bright);background:rgba(213,179,107,.11)}.luChatAvatar.group>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.luChatOnlineDot{position:absolute;right:-1px;bottom:-1px;width:9px;height:9px;background:var(--lu-chat-green);border:2px solid #0d0d10;border-radius:50%;box-shadow:0 0 0 2px rgba(105,201,151,.07)}.luChatConversationCopy{min-width:0;display:grid;gap:5px}.luChatConversationTop,.luChatConversationBottom{min-width:0;display:flex;align-items:center;gap:8px}.luChatConversationTop strong{min-width:0;flex:1 1 auto;overflow:hidden;color:#d9d9dd;font-size:10px;font-weight:750;white-space:nowrap;text-overflow:ellipsis}.luChatConversation.unread .luChatConversationTop strong{color:#fff;font-weight:900}.luChatConversationTop time{flex:0 0 auto;color:var(--lu-chat-muted-2);font-size:7px}.luChatConversationBottom>span{min-width:0;flex:1 1 auto;overflow:hidden;color:var(--lu-chat-muted-2);font-size:8px;white-space:nowrap;text-overflow:ellipsis}.luChatConversation.unread .luChatConversationBottom>span{color:#a7a7af}.luChatConversationBottom b{min-width:18px;height:18px;padding:0 5px;display:grid;place-items:center;color:#15120c;background:linear-gradient(145deg,var(--lu-chat-gold-bright),var(--lu-chat-gold));border-radius:999px;font-size:7px;font-weight:950}.luChatTypingText{min-width:0;flex:1 1 auto;display:flex;align-items:center;gap:4px;color:var(--lu-chat-gold);font-size:8px;font-style:normal;font-weight:800}.luTypingDots{display:inline-flex;align-items:center;gap:2px}.luTypingDots i{width:3px;height:3px}.luChatStatusBar{min-height:34px;padding:0 14px;display:flex;align-items:center;gap:7px;color:var(--lu-chat-muted-2);background:rgba(255,255,255,.02);border-top:1px solid var(--lu-chat-border);font-size:7px}.luChatStatusBar span{margin-right:auto}.luChatStatusBar b{color:var(--lu-chat-green);font-size:7px;letter-spacing:.1em}.luChatEmpty{min-height:220px;display:grid;place-items:center;align-content:center;gap:7px;color:var(--lu-chat-muted-2);text-align:center}.luChatEmpty>svg{width:24px;height:24px;color:rgba(213,179,107,.55)}.luChatEmpty strong{color:var(--lu-chat-muted);font-size:10px}.luChatEmpty span{font-size:8px}.luChatThreadHeader,.luChatSubHeader{flex:0 0 auto;min-height:64px;padding:9px 11px;display:grid;grid-template-columns:34px 40px minmax(0,1fr) 34px;align-items:center;gap:9px;border-bottom:1px solid var(--lu-chat-border);background:rgba(255,255,255,.012)}.luChatThreadIdentity{min-width:0;display:grid;gap:3px}.luChatThreadIdentity strong{overflow:hidden;font-size:11px;white-space:nowrap;text-overflow:ellipsis}.luChatThreadIdentity>span{display:flex;align-items:center;gap:5px;color:var(--lu-chat-muted-2);font-size:8px}.luChatThreadIdentity>span.typing{color:var(--lu-chat-gold);font-weight:750}.luChatMessages{min-height:0;flex:1 1 auto;padding:13px 12px 20px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(213,179,107,.34) transparent}.luChatDayDivider{margin:2px 0 14px;display:flex;align-items:center;gap:8px;color:#5f5f68;font-size:7px}.luChatDayDivider:before,.luChatDayDivider:after{content:"";height:1px;flex:1;background:rgba(255,255,255,.055)}.luChatMessageRow{margin:8px 0;display:flex;align-items:flex-end;gap:6px}.luChatMessageRow.mine{justify-content:flex-end}.luChatMessageRow>div{max-width:78%;display:grid;gap:4px}.luChatMessageRow.mine>div{justify-items:end}.luChatBubble{padding:9px 11px;color:#d8d8dd;background:#17171b;border:1px solid rgba(255,255,255,.07);border-radius:13px 13px 13px 5px;font-size:9px;line-height:1.45;box-shadow:0 6px 18px rgba(0,0,0,.12);white-space:pre-wrap;overflow-wrap:anywhere}.luChatMessageRow.mine .luChatBubble{color:#f7f0de;background:linear-gradient(145deg,rgba(213,179,107,.19),rgba(213,179,107,.09)),#171611;border-color:rgba(213,179,107,.22);border-radius:13px 13px 5px 13px}.luChatMessageRow small{padding:0 3px;color:#5f5f68;font-size:6.5px}.luChatSender{padding-left:3px;color:var(--lu-chat-gold);font-size:7px;font-weight:800}.luChatTinyAvatar{width:22px;height:22px;flex:0 0 auto;display:grid;place-items:center;color:#d9c48f;background:#24231f;border:1px solid rgba(213,179,107,.12);border-radius:7px;font-size:6px;font-weight:900}.typingBubble .luChatBubble{min-width:45px}.luTypingDots.big{height:10px;gap:4px}.luTypingDots.big i{width:5px;height:5px;background:#9e8a5e}.luChatComposer{flex:0 0 auto;padding:9px 10px calc(9px + env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:34px minmax(0,1fr) 36px;align-items:end;gap:7px;background:#0d0d10;border-top:1px solid var(--lu-chat-border)}.luChatComposerInput{min-height:38px;padding:0 11px;display:flex;align-items:center;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.085);border-radius:12px}.luChatComposerInput:focus-within{border-color:rgba(213,179,107,.35);box-shadow:0 0 0 3px rgba(213,179,107,.055)}.luChatComposer textarea{width:100%;min-height:20px;max-height:104px;padding:9px 0;resize:none;color:#eeeef1;background:transparent;border:0;outline:0;font-size:9px;line-height:1.4;overflow-y:auto}.luChatComposer textarea::placeholder{color:#5d5d66}.luChatSend{width:36px;height:36px;display:grid;place-items:center;color:#16120a;background:linear-gradient(145deg,var(--lu-chat-gold-bright),var(--lu-chat-gold));border:1px solid rgba(255,255,255,.1);border-radius:11px;box-shadow:0 7px 20px rgba(213,179,107,.12)}.luChatSend:hover{filter:brightness(1.06)}.luChatSend svg{width:16px;height:16px}.luChatGroupCreate,.luChatGroupManager{min-height:0}.luChatSubHeader{grid-template-columns:34px minmax(0,1fr)}.luChatSubHeader>div{display:grid;gap:2px}.luChatSubHeader small,.luChatGroupManagerHead small{color:var(--lu-chat-gold);font-size:7px;font-weight:900;letter-spacing:.14em}.luChatSubHeader strong{font-size:12px}.luChatSubHeader span{color:var(--lu-chat-muted-2);font-size:7px}.luChatGroupForm{min-height:0;flex:1 1 auto;padding:12px;display:flex;flex-direction:column;gap:10px}.luChatField{display:grid;gap:5px}.luChatField>span{color:var(--lu-chat-muted);font-size:8px;font-weight:750}.luChatField input{min-height:38px;padding:0 11px;color:#e8e8ec;background:rgba(255,255,255,.04);border:1px solid var(--lu-chat-border);border-radius:10px;outline:0;font-size:9px}.luChatField input:focus{border-color:rgba(213,179,107,.35);box-shadow:0 0 0 3px rgba(213,179,107,.055)}.luChatField input.error{border-color:rgba(255,116,120,.6);box-shadow:0 0 0 3px rgba(255,116,120,.07)}.luChatMemberList{min-height:0;flex:1 1 auto;display:grid;align-content:start;gap:4px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(213,179,107,.3) transparent}.luChatMember{min-height:54px;padding:6px 8px;display:grid;grid-template-columns:34px minmax(0,1fr) 22px;align-items:center;gap:8px;background:rgba(255,255,255,.025);border:1px solid transparent;border-radius:10px;cursor:pointer}.luChatMember:hover{background:rgba(255,255,255,.04)}.luChatMember.selected{background:linear-gradient(90deg,rgba(213,179,107,.08),transparent);border-color:rgba(213,179,107,.14)}.luChatMember .luChatAvatar{width:34px;height:34px;border-radius:10px;font-size:8px}.luChatMember>span{min-width:0;display:grid;gap:3px}.luChatMember strong{overflow:hidden;color:#d6d6db;font-size:9px;white-space:nowrap;text-overflow:ellipsis}.luChatMember small{color:var(--lu-chat-muted-2);font-size:7px}.luChatMember input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.luChatCheck{width:20px;height:20px;display:grid;place-items:center;color:transparent;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.09);border-radius:7px}.luChatCheck svg{width:12px;height:12px}.luChatMember.selected .luChatCheck{color:#16120a;background:var(--lu-chat-gold);border-color:var(--lu-chat-gold)}.luChatCreateFooter,.luChatManagerFooter{flex:0 0 auto;min-height:56px;padding:9px 12px;display:flex;align-items:center;gap:10px;border-top:1px solid var(--lu-chat-border)}.luChatCreateFooter>span,.luChatManagerFooter>span{margin-right:auto;color:var(--lu-chat-muted-2);font-size:8px}.luChatCreateFooter b,.luChatManagerFooter b{color:var(--lu-chat-gold)}.luChatCreateButton,.luChatSaveMembers{min-height:34px;padding:0 11px;display:flex;align-items:center;gap:6px;color:#17130b;background:linear-gradient(145deg,var(--lu-chat-gold-bright),var(--lu-chat-gold));border-radius:9px;font-size:8px;font-weight:900}.luChatCreateButton svg,.luChatSaveMembers svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}.luChatGroupManager{height:100%;padding:12px;display:flex;flex-direction:column;gap:10px}.luChatGroupManagerHead{padding:11px;display:grid;grid-template-columns:36px 1fr;gap:9px;background:linear-gradient(145deg,rgba(213,179,107,.08),rgba(255,255,255,.025));border:1px solid rgba(213,179,107,.13);border-radius:12px}.luChatGroupManagerHead>span{width:36px;height:36px;display:grid;place-items:center;color:var(--lu-chat-gold-bright);background:rgba(213,179,107,.11);border-radius:10px}.luChatGroupManagerHead>div{display:grid;gap:3px}.luChatGroupManagerHead strong{font-size:11px}.luChatGroupManagerHead p{margin:0;color:var(--lu-chat-muted-2);font-size:7px;line-height:1.4}.luChatGroupManager .luChatManagerFooter{margin-top:auto;padding-right:0;padding-left:0}.luChatOpen{overflow:hidden}
@media (max-width:720px){.luChatDrawer{width:100vw;border-left:0}.luChatDrawerHeader{padding-top:max(13px,env(safe-area-inset-top,13px))}.luChatToolbar{padding-top:8px}.luChatNewGroup span{display:none}.luChatMessageRow>div{max-width:86%}}

/* v92 safe mount: przycisk żyje poza rootem Reacta, więc nie ingeruje w drzewo komponentów. */
body.luChatV92Mounted .topActions .notificationWrap{margin-left:46px}
.luChatFloatingButton{position:fixed!important;z-index:88!important;margin:0!important;padding:0!important;display:grid!important;place-items:center!important;min-height:0!important;transition:color .15s ease,background .15s ease,border-color .15s ease,opacity .12s ease!important}
.luChatFloatingButton[hidden]{display:none!important}
@media(max-width:720px){body.luChatV92Mounted .topActions .notificationWrap{margin-left:46px}.luChatFloatingButton{z-index:88!important}}

/* =========================================================
   LevelUp Chat v94 — typography + quiet premium unread badge
   ========================================================= */
.luChatDrawerHeader small{font-size:9px!important}
.luChatDrawerHeader strong{font-size:17px!important}
.luChatDrawerHeader>div>span{font-size:10px!important}
.luChatTabs button{min-height:40px!important;font-size:11px!important}
.luChatTabs b{font-size:9px!important}
.luChatSearch{min-height:40px!important}
.luChatSearch input{font-size:11px!important}
.luChatNewGroup{font-size:10px!important}
.luChatListHead span{font-size:9px!important;letter-spacing:.12em!important}
.luChatListHead small{font-size:9px!important}
.luChatConversation{min-height:72px!important;padding:9px 8px!important}
.luChatConversationTop strong{font-size:12px!important;font-weight:800!important}
.luChatConversationTop time{font-size:9px!important}
.luChatConversationBottom>span{font-size:10px!important;line-height:1.35!important}
.luChatConversationBottom b{min-width:20px!important;height:20px!important;font-size:9px!important}
.luChatTypingText{font-size:10px!important}
.luChatThreadIdentity strong{font-size:13px!important}
.luChatThreadIdentity>span{font-size:10px!important}
.luChatDayDivider{font-size:9px!important}
.luChatBubble{font-size:11px!important;line-height:1.5!important}
.luChatMessageRow small{font-size:8px!important}
.luChatSender{font-size:9px!important}
.luChatComposer textarea{font-size:11px!important;line-height:1.45!important}
.luChatSubHeader small,.luChatGroupManagerHead small{font-size:9px!important}
.luChatSubHeader strong{font-size:14px!important}
.luChatSubHeader span{font-size:9px!important}
.luChatField>span{font-size:10px!important}
.luChatField input{font-size:11px!important}
.luChatMember strong{font-size:11px!important}
.luChatMember small{font-size:9px!important}
.luChatCreateFooter>span,.luChatManagerFooter>span{font-size:10px!important}
.luChatCreateButton,.luChatSaveMembers{font-size:10px!important}
.luChatGroupManagerHead strong{font-size:13px!important}
.luChatGroupManagerHead p{font-size:9px!important}

/* Globalny badge czatu: jak małe badge w tabach, bez złotej pastylki. */
.luChatCount{
  top:-5px!important;
  right:-5px!important;
  min-width:18px!important;
  height:18px!important;
  padding:0 5px!important;
  color:var(--lu-chat-gold-bright)!important;
  background:#211e18!important;
  border:1px solid rgba(213,179,107,.34)!important;
  border-radius:6px!important;
  font-size:8px!important;
  font-weight:900!important;
  line-height:1!important;
  box-shadow:0 4px 12px rgba(0,0,0,.36)!important;
}

/* Pasek developerski usunięty całkowicie. */
.luChatStatusBar{display:none!important}

/* =========================================================
   LevelUp Chat v95 LIVE — real API/WS + larger preview copy
   ========================================================= */
.luChatConversationTop strong{font-size:13px!important}
.luChatConversationBottom>span{font-size:12px!important;line-height:1.42!important;color:#8d8d97!important}
.luChatConversation.unread .luChatConversationBottom>span{color:#c0c0c7!important}
.luChatTypingText{font-size:12px!important}
.luChatConversationCopy{gap:6px!important}
.luChatBubble{font-size:12px!important;line-height:1.52!important}
.luChatMessageRow small{font-size:9px!important}
.luChatSender{font-size:10px!important}
.luChatComposerLive{grid-template-columns:minmax(0,1fr) 38px!important}
.luChatComposerLive .luChatComposerInput{min-height:42px!important}
.luChatComposerLive textarea{font-size:13px!important;line-height:1.45!important}
.luChatConnection b{font:inherit;font-weight:650;color:inherit}
.luChatConnection.offline i{background:#8b7650!important;box-shadow:0 0 0 3px rgba(213,179,107,.06)!important}
.luChatConnection.offline b{color:#777780}
.luChatEmpty.threadEmpty{min-height:180px}
.luChatCreateButton:disabled,.luChatSaveMembers:disabled{opacity:.55;cursor:wait}
.luChatMessageRow [data-failed='true']{opacity:.72}


/* ===== CLEAN V54 — client workspace is the real /Klient/ view, full-screen ===== */
#lu-client-workspace {
  background: #08090c !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#lu-client-workspace.is-open { display: block !important; }
#lu-client-workspace .luClientShell {
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  grid-template-rows: minmax(0,1fr) !important;
  background: #08090c !important;
}
#lu-client-workspace .luClientBar { display: none !important; }
#lu-client-workspace .luClientStage { width: 100%; height: 100%; background: #08090c !important; }
#lu-client-workspace iframe { width: 100% !important; height: 100% !important; background: #08090c !important; }


/* ===== CLEAN V58 — persistent /Klient/ runtime, no fake loader ===== */
/* Zamknięty klient działa poza ekranem w normalnym layoucie. Chromium nie throttluje 1x1/visibility:hidden. */
#lu-client-workspace:not(.is-open){
  display:block!important;
  visibility:visible!important;
  opacity:0!important;
  pointer-events:none!important;
  position:fixed!important;
  left:-10000px!important;
  top:0!important;
  right:auto!important;
  bottom:auto!important;
  width:1280px!important;
  height:800px!important;
  overflow:hidden!important;
  background:#08090c!important;
}
#lu-client-workspace:not(.is-open) .luClientShell,
#lu-client-workspace:not(.is-open) .luClientStage,
#lu-client-workspace:not(.is-open) iframe[data-levelup-persistent-client="58"]{
  display:block!important;
  visibility:visible!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
}
#lu-client-workspace.is-open{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  position:fixed!important;
  inset:0!important;
  width:auto!important;
  height:auto!important;
}
#lu-client-workspace.is-open iframe[data-levelup-persistent-client="58"]{
  display:block!important;
  visibility:visible!important;
  width:100%!important;
  height:100%!important;
}
/* V58 nie ma hostowego loadera. Shell klienta jest jedynym loading UI. */
#lu-client-workspace .luClientLoader{display:none!important}



/* ===== LevelUp Przemiany V3.3 — native/flat embed ===== */
.trainerLibraryReactView.transformationsReactView {
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.trainerLibraryReactView.transformationsReactView iframe {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}
@media (max-width:720px){
  .trainerLibraryReactView.transformationsReactView,
  .trainerLibraryReactView.transformationsReactView iframe {
    border-radius:0 !important;
  }
}
