:root{
  --gf-primary:#1f4f82;
  --gf-primary-dark:#16395e;
  --gf-accent:#2f7f7b;
  --gf-bg:#f4f7fb;
  --gf-card:#ffffff;
  --gf-muted:#6c7584;
}
body{background:var(--gf-bg); color:#1f2937; font-size:16px;}
.bg-primary{background:linear-gradient(135deg,var(--gf-primary),var(--gf-primary-dark))!important;}
.btn-primary{background-color:var(--gf-primary); border-color:var(--gf-primary);}
.btn-primary:hover{background-color:var(--gf-primary-dark); border-color:var(--gf-primary-dark);}
.btn-outline-primary{color:var(--gf-primary); border-color:var(--gf-primary);}
.btn-outline-primary:hover{background-color:var(--gf-primary); border-color:var(--gf-primary);}
.card{background:var(--gf-card);} 
.rounded-4{border-radius:1rem!important;}
.eyebrow{font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;color:var(--gf-accent);font-weight:700;}
.hero-visual{background:linear-gradient(135deg,#e9f2fb,#fff); min-height:320px; display:flex; align-items:center; justify-content:center;}
.course-img{height:180px;object-fit:cover;background:#e8eef5;}
.course-card{transition:transform .15s ease, box-shadow .15s ease;}
.course-card:hover{transform:translateY(-2px); box-shadow:0 .7rem 1.5rem rgba(31,79,130,.12)!important;}
.stat-card{background:#fff;border-radius:1rem;box-shadow:0 .125rem .75rem rgba(31,79,130,.08);padding:1.25rem;}
.stat-value{font-size:2rem;font-weight:800;color:var(--gf-primary);line-height:1;}
.stat-label{color:var(--gf-muted);margin-top:.35rem;}
.table thead th{vertical-align:top;background:#f7f9fc;font-size:.875rem;color:#374151;}
.form-control:focus,.form-select:focus{border-color:var(--gf-accent);box-shadow:0 0 0 .2rem rgba(47,127,123,.15);}
.modal-footer .btn,.game-modal-footer-btn{font-size:1rem;padding:.5rem 1rem;line-height:1.5;border-radius:.5rem;}
@media (max-width: 576px){.course-img{height:140px}.display-5{font-size:2rem}}

/* v02: drobne poprawki czytelności i odstępów */
.course-card-grid{clear:both;}
.card + .course-card-grid{margin-top:.25rem;}
.btn-outline-danger{border-color:#b42318;color:#b42318;}
.btn-outline-danger:hover{background:#b42318;border-color:#b42318;color:#fff;}


/* v07: stabilizacja układu i badge'y w tabelach */
html{overflow-y:scroll;scrollbar-gutter:stable;}
.badge{display:inline-flex!important;align-items:center;justify-content:center;align-self:center;width:auto!important;height:auto!important;min-height:1.35em;line-height:1.15;white-space:nowrap;vertical-align:middle;padding:.35em .65em;}
td .badge, th .badge, .list-group-item .badge{align-self:center;flex:0 0 auto;}
.table td, .table th{vertical-align:top;}
.table.align-middle td, .table.align-middle th{vertical-align:middle;}
.table thead th{vertical-align:top!important;}
.card-title .badge,.h1 .badge,.h2 .badge,.h3 .badge,.h4 .badge,.h5 .badge{vertical-align:middle;}


/* v08: nawigacja i tabele */
.navbar .nav-link{white-space:nowrap;}
.course-context-actions{display:flex;gap:.5rem;flex-wrap:wrap;}

/* v09: zadania, dashboard i sprawdzanie */
.gf-card-grid .card{min-height:100%;}
.task-card .badge{font-size:.68rem;}
.gf-table-top td,.gf-table-top th{vertical-align:top!important;}
.gf-badge-inline{display:inline-flex!important;align-items:center;justify-content:center;height:auto!important;line-height:1.15!important;white-space:nowrap!important;}
.modal-body img{max-width:100%;height:auto;}

/* v10-p3.2: globalna stabilizacja szerokości przy modalach Bootstrap */
html{
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
body{
  overflow-y: scroll;
}
body.modal-open{
  padding-right: 0 !important;
  overflow-y: scroll !important;
}
.modal{
  padding-right: 0 !important;
}

/* v13-p3.4: karty zadań i obrazy */
.task-card{
  background:#f8fafc;
  border:1px solid #dbe4ef!important;
  overflow:hidden;
}
.task-card:hover{box-shadow:0 .75rem 1.5rem rgba(31,79,130,.12)!important;}
.task-card-img{height:105px;object-fit:cover;background:#e8eef5;border-bottom:1px solid #e1e8f0;}
.task-modal-img{max-width:320px;max-height:220px;object-fit:contain;background:#f7f9fc;border:1px solid #e3eaf2;padding:.25rem;}
@media (max-width:576px){.task-card-img{height:92px}.task-modal-img{max-width:100%;max-height:180px}}

/* v14-p3.5: poprawki kart zadań i kompaktowych pól punktów/waluty */
.task-card{
  background:#fbfcfe;
  border-color:#e3eaf2!important;
}
.gf-score-grid{
  display:grid;
  grid-template-columns:minmax(74px,1fr) 58px;
  gap:.25rem;
  align-items:center;
}
.gf-score-grid .gf-score-main{min-width:72px;}
.gf-score-grid .gf-score-bonus{min-width:54px;}

/* v15-p3.6: stabilny dół kafelka zadania i neutralne teksty nazw punktów/waluty */
.task-card .card-body{min-height:100%;}
.task-date-block{
  font-size:.74rem;
  line-height:1.22;
  color:#4b5563;
}
.task-card-bottom{display:block;}
.task-state-badge{
  display:block;
  border-radius:.65rem;
  padding:.28rem .55rem;
  font-size:.78rem;
  line-height:1.15;
  background:transparent;
}
.task-state-done{border:1px solid #198754;color:#198754;}
.task-state-graded{border:1px solid #1f4f82;color:#1f4f82;}


/* v16-p3.7: poprawki kafelków zadań i sprawdzania */
.task-card{
  background:#fcfdff;
  border-color:#e5edf6!important;
}
.task-card .card-body{
  min-height:0!important;
}
.task-card-bottom{
  margin-top:auto;
}
.task-date-block{
  font-size:.70rem;
  line-height:1.18;
  padding:.45rem .55rem!important;
}
.gf-file-number-btn{
  min-width:2.15rem;
  padding-left:.45rem!important;
  padding-right:.45rem!important;
  text-align:center;
}

/* v17-p3.8: stabilne kafelki zadań z obrazkiem domyślnym i ograniczeniem tekstu */
.task-card{
  background:#fcfdff;
  border-color:#e5edf6!important;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:425px;
}
.task-card-img{
  height:108px;
  width:100%;
  object-fit:cover;
  flex:0 0 auto;
  background:#eef3f8;
  border-bottom:1px solid #e1e8f0;
}
.task-card .card-body{
  flex:1 1 auto;
  min-height:0!important;
  display:flex;
  flex-direction:column;
}
.task-title,
.task-desc{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.task-title{
  -webkit-line-clamp:2;
  min-height:2.45em;
  line-height:1.2;
}
.task-desc{
  -webkit-line-clamp:3;
  min-height:4.2em;
  line-height:1.4;
  margin-bottom:.65rem!important;
}
.task-badges{
  min-height:1.85rem;
  align-content:flex-start;
}
.task-card-bottom{
  margin-top:auto;
  flex:0 0 auto;
}
.task-date-block{
  font-size:.68rem;
  line-height:1.15;
  padding:.42rem .5rem!important;
  margin-bottom:.45rem!important;
}
.task-state-badge{
  margin-bottom:.45rem!important;
}
@media (max-width: 576px){
  .task-card{min-height:405px;}
  .task-card-img{height:96px;}
  .task-title{min-height:2.35em;}
  .task-desc{min-height:4.05em;}
}


/* v18-p3.9: obraz kursu i bardziej zwarte pola oceniania */
.gf-grade-combo-cell{min-width:145px;}
.gf-grade-combo{display:grid;grid-template-columns:minmax(76px,1fr) 54px;gap:.25rem;align-items:center;}
.gf-grade-combo .gf-grade-main{min-width:76px;}
.gf-grade-combo .gf-grade-bonus{min-width:54px;}
@media (max-width:576px){.gf-grade-combo-cell{min-width:130px}.gf-grade-combo{grid-template-columns:minmax(68px,1fr) 50px;}}


/* v21-paczka4.1: edytor testów */
.gf-correct-marker{min-width:2.35rem;justify-content:center;}
.gf-quiz-question-row .input-group-text,.gf-quiz-question-form .input-group-text{background:#f8fafc;}

/* v22-paczka4.2: kafelki zadań — ikony parametrów, nagrody, zwarte terminy */
.task-card{min-height:430px;background:#fdfefe;}
.task-card-img{height:104px;}
.task-title{font-size:.93rem;}
.task-desc{font-size:.78rem;min-height:3.9em;-webkit-line-clamp:3;}
.task-icon-row{min-height:1.65rem;display:flex;gap:.28rem;align-items:center;flex-wrap:nowrap;overflow:hidden;}
.task-icon{display:inline-flex;align-items:center;justify-content:center;min-width:1.38rem;height:1.38rem;border:1px solid #d9e2ec;border-radius:.45rem;background:#fff;color:#344054;font-size:.78rem;line-height:1;white-space:nowrap;}
.task-icon-required{color:#b42318;border-color:#f6c8c3;background:#fffafa;}
.task-icon-optional{color:#067647;border-color:#b7e4c7;background:#fbfffc;}
.task-date-line{font-size:.68rem;line-height:1.15;color:#475467;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.task-reward-row{display:flex;gap:.28rem;align-items:center;min-width:0;}
.task-reward-badge{display:inline-flex;align-items:center;justify-content:center;min-width:0;max-width:50%;padding:.24rem .38rem;border-radius:999px;background:var(--reward-color);color:#fff;font-size:.63rem;line-height:1.05;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.task-state-missed{border:1px solid #dc3545;color:#dc3545;}
.task-modal-meta{font-size:.82rem;background:#f8fafc!important;}
@media (max-width:576px){.task-card{min-height:410px}.task-card-img{height:92px}.task-reward-badge{font-size:.58rem;padding:.22rem .32rem}.task-date-line{font-size:.63rem}.task-icon{min-width:1.25rem;height:1.25rem;font-size:.72rem}}

/* v22-paczka4.2: formularz dodawania zadania */
.gf-task-create-form .form-text{font-size:.72rem;}

/* v23-paczka4.3: słownik gry, moduły i uporządkowany widok zadań */
.task-card{background:#fff;}
.task-icon{color:#344054;border-color:#d7e0ea;background:#fff;font-weight:700;letter-spacing:-.04em;}
.task-icon-required{color:#b42318;border-color:#f2b8b5;background:#fffafa;}
.task-icon-optional{color:#067647;border-color:#b7e4c7;background:#fbfffc;}
.task-modal-meta{font-size:.875rem;line-height:1.35;padding:.55rem .7rem!important;margin-bottom:.75rem!important;}
.task-modal-meta strong{font-weight:700;color:#344054;}
.task-reward-row{flex-wrap:nowrap;}
.task-reward-badge{flex:1 1 0;max-width:none;min-width:0;}
@media (max-width:576px){
  .task-modal-meta{font-size:.82rem;padding:.5rem .6rem!important;}
  .task-reward-row{gap:.22rem;}
}


/* v25-paczka4.5: korekty ikon i modalu zadania */
.task-icon{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#344054!important;}
.task-icon-mode-team{font-size:.74rem;letter-spacing:-.08em;}
.task-modal-meta{padding:.45rem .6rem!important;font-size:.89rem!important;}
.task-modal-meta .row{--bs-gutter-y:.25rem;}

/* v27-paczka4.7: drobne korekty etykiet, ikon i pól */
.task-icon-mode-team{
  font-size:.55rem!important;
  letter-spacing:-.16em!important;
  padding-right:.08rem;
}
.task-icon-mode-individual{
  font-size:.74rem!important;
  letter-spacing:0!important;
}


/* v28: doprecyzowanie ikon zadań i opisów paneli punktów/waluty */
.task-icon-required,
.task-icon-optional{
  min-width:1.38rem!important;
  width:1.38rem!important;
  height:1.38rem!important;
  border:1px solid #d7e0ea!important;
  background:#fff!important;
  border-radius:.45rem!important;
  font-size:.68rem!important;
  line-height:1!important;
  letter-spacing:0!important;
  padding:0!important;
}
.task-icon-required{color:#b42318!important;}
.task-icon-optional{color:#067647!important;}
.task-icon-mode-team{
  min-width:1.38rem!important;
  width:1.38rem!important;
  height:1.38rem!important;
  font-size:.82rem!important;
  letter-spacing:0!important;
  font-weight:700!important;
}
.task-icon-mode-individual{
  min-width:1.38rem!important;
  width:1.38rem!important;
  height:1.38rem!important;
  font-size:.82rem!important;
  letter-spacing:0!important;
}


/* v30: konsekwentne ikony kategorii i ramki obowiązkowe/fakultatywne */
.task-icon-row .task-icon.task-icon-required,
.task-icon-row .task-icon.task-icon-optional{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:1.38rem!important;
  width:1.38rem!important;
  height:1.38rem!important;
  border:1px solid #d7e0ea!important;
  background:#fff!important;
  border-radius:.45rem!important;
  padding:0!important;
  box-sizing:border-box!important;
  font-size:.68rem!important;
  line-height:1!important;
  font-weight:700!important;
  letter-spacing:0!important;
}
.task-icon-row .task-icon.task-icon-required{color:#b42318!important;}
.task-icon-row .task-icon.task-icon-optional{color:#067647!important;}
.task-icon-row .task-icon.task-icon-required::before,
.task-icon-row .task-icon.task-icon-optional::before{
  content:"";
  display:block;
  width:.52rem;
  height:.52rem;
  border-radius:50%;
  background:currentColor;
}
.task-icon-row .task-icon.task-icon-required,
.task-icon-row .task-icon.task-icon-optional{font-size:0!important;}

/* v31: pytanie typu uporządkuj kolejność */
.gf-ordering-list .gf-ordering-item {
  cursor: grab;
  user-select: none;
}
.gf-ordering-list .gf-ordering-item:active {
  cursor: grabbing;
}
.gf-ordering-item .btn {
  line-height: 1;
  min-width: 2rem;
}


/* v32 quiz editor layouts */
.gf-answer-row .gf-match-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: .35rem;
  align-items: center;
}
.gf-match-separator {
  color: #6c757d;
  font-weight: 600;
}
.gf-order-marker {
  min-width: 2.4rem;
  justify-content: center;
  font-weight: 600;
}
.gf-answer-row.d-none { display: none !important; }

/* v37 — czytelniejsze pytania w teście uczestnika */
.gf-quiz-question-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 .25rem .75rem rgba(15, 23, 42, .04);
}
.gf-quiz-question-card + .gf-quiz-question-card { margin-top: 1rem; }
.gf-quiz-question-title { font-weight: 650; margin-bottom: .5rem; }
.gf-quiz-option { padding: .2rem 0; }
.gf-quiz-timer-box { position: sticky; top: .75rem; z-index: 2; }

/* v38: czytelne pary pól w kreatorze dopasowania */
.gf-match-pair-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: .5rem;
  align-items: center;
}
@media (max-width: 576px) {
  .gf-match-pair-editor { grid-template-columns: 1fr; }
  .gf-match-pair-editor .gf-match-separator { display: none; }
}

/* v40: poprawka opcji odpowiedzi w teście uczestnika — radio/checkbox nie nachodzą na ramkę */
.gf-quiz-question-card .gf-quiz-option {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .25rem 0;
  margin: 0 0 .35rem 0;
  padding-left: 0 !important;
}
.gf-quiz-question-card .gf-quiz-option .form-check-input {
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: .22rem;
  flex: 0 0 auto;
}
.gf-quiz-question-card .gf-quiz-option .form-check-label {
  display: block;
  line-height: 1.35;
}

/* v54: większy pakiet pracy prowadzącego */
.gf-grading-tools{border-color:#dbe4ef!important;}
.gf-grading-tools .btn{white-space:nowrap;}
.gf-stats-row .h4{line-height:1.05;}

/* v55/v57: kompaktowe sprawdzanie, zbiorcze operacje i szybkie podglądy */
.gf-compact-filter-card .card-body { padding-top: .55rem; padding-bottom: .55rem; }
.gf-grading-filter-form .form-label { font-size: .78rem; color: #5b6472; }
.gf-grading-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.btn-xs {
  --bs-btn-padding-y: .16rem;
  --bs-btn-padding-x: .45rem;
  --bs-btn-font-size: .78rem;
  --bs-btn-border-radius: 999px;
}
.gf-mini-stat {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
}
.gf-mini-stat.active { background: #eef4ff; border-color: rgba(13, 110, 253, .45); color:#0d6efd; }
.gf-mini-stat .badge { font-size: .72rem; }
.gf-grading-tools { padding: .55rem !important; }
.gf-grading-tools .form-label { font-size: .78rem; color: #5b6472; }
.gf-grading-tools .form-text, .gf-grading-tools .small { line-height: 1.25; }
.gf-grade-combo { display: grid; gap: .25rem; min-width: 135px; }
.gf-number-input { min-width: 4.8rem; }
.gf-table-top th { white-space: nowrap; }
@media (max-width: 992px) {
  .gf-mini-stat { width: auto; justify-content: space-between; }
}

/* v58: jednoliniowe, kompaktowe filtry i pakietowe ocenianie */
.gf-one-line-filters .gf-filter-field { min-width: 150px; flex: 1 1 150px; }
.gf-one-line-filters .gf-filter-task { min-width: 220px; flex: 2 1 220px; }
.gf-one-line-filters .gf-filter-search { min-width: 210px; flex: 1.4 1 210px; }
.gf-status-mini-buttons .btn { display: inline-flex; align-items: center; gap: .3rem; }
.gf-grading-tools table th { font-size: .78rem; color: #5b6472; font-weight: 600; }
.gf-members-filter-form .form-label { font-size: .78rem; color: #5b6472; }
@media (min-width: 1200px) {
  .gf-one-line-filters { flex-wrap: nowrap !important; }
}


/* v59: poprawki modułu sprawdzania */
.gf-status-button-group{display:none!important;}
.gf-grading-tools .gf-grade-combo-cell{min-width:145px;width:145px;}
.gf-grading-tools .gf-grade-combo{display:grid;grid-template-columns:76px 54px;gap:.25rem;align-items:center;min-width:135px;}
.gf-grading-tools .gf-number-input{min-width:0;width:100%;}
.gf-grading-tools .gf-grade-feedback-cell{min-width:260px;width:100%;}
.gf-grading-tools .js-bulk-feedback{min-width:260px;}
.gf-one-line-filters{gap:.45rem!important;}
.gf-one-line-filters .gf-filter-field{min-width:132px;flex:1 1 132px;}
.gf-one-line-filters .gf-filter-task{min-width:210px;flex:1.6 1 210px;}
.gf-one-line-filters .gf-filter-search{min-width:190px;flex:1.3 1 190px;}
@media (min-width:1200px){.gf-one-line-filters{flex-wrap:nowrap!important}.gf-one-line-filters .btn{white-space:nowrap}}


/* v61: statusy zadań i kafelki przedmiotów */
.task-state-available{border:1px solid #198754;color:#198754;}
.task-state-done{border:1px solid #198754;color:#343a40;}
.task-state-graded{border:1px solid #1f4f82;color:#1f4f82;}
.task-state-hidden{border:1px solid #1f4f82;color:#343a40;}
.task-state-missed{border:1px solid #6f42c1;color:#6f42c1;}
.task-state-unavailable{border:1px solid #495057;color:#495057;}
.task-state-locked{border:1px solid #dc3545;color:#dc3545;}
.gf-item-card{background:#fff;border:1px solid #e3eaf2!important;overflow:hidden;}
.gf-item-card-img{height:104px;width:100%;object-fit:cover;background:#eef3f8;border-bottom:1px solid #e1e8f0;}
.gf-item-desc{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:3.9em;}
.gf-item-modal-img{display:block;width:100%;max-height:240px;object-fit:cover;border-radius:.85rem;border:1px solid #e3eaf2;background:#f7f9fc;}
.gf-checkbox-cloud{display:flex;flex-wrap:wrap;gap:.35rem .75rem;}
.gf-checkbox-cloud .form-check{margin-right:0;margin-bottom:.15rem;}
.gf-checkbox-cloud-table{display:grid;grid-template-columns:1fr;gap:.12rem;font-size:.78rem;}
.gf-checkbox-cloud-table .form-check{min-height:0;}
.gf-item-editor-inline{background:#f8fafc;border:1px solid #e6edf5;border-radius:.75rem;padding:.75rem;}
.gf-item-detail-row td{border-top:0!important;padding-top:0!important;}
.gf-item-param-block{border:1px solid #e4ebf3;border-radius:.65rem;background:#fff;padding:.65rem;margin-top:.6rem;}
.gf-item-task-list{max-height:8.5rem;overflow:auto;padding:.35rem .5rem;border:1px solid #eef2f6;border-radius:.5rem;background:#fbfcfe;}
.gf-item-small-number{max-width:9rem;}
.gf-items-edit-table .gf-checkbox-cloud-table{max-height:10rem;overflow:auto;}
.gf-item-main-row td{border-bottom:0!important;}

/* v67: kompaktowy, wieloetapowy kreator przedmiotów */
.gf-item-choice-row{padding-left:.25rem;padding-right:.25rem;}
.gf-checkbox-cloud-panel{border:1px solid #e8eef5;border-radius:.65rem;background:#fbfcfe;padding:.55rem .7rem;}
.gf-item-param-block{margin-left:.25rem;}
.gf-item-param-subblock{border:1px dashed #e6edf5;border-radius:.55rem;background:#fbfcfe;padding:.5rem;margin:.35rem 0;}
.gf-limit-inline{display:flex;align-items:center;gap:.45rem;flex-wrap:nowrap;}
.gf-limit-inline .gf-item-small-number{width:4.6rem;min-width:4.6rem;}
.gf-limit-col{min-width:13rem;}
.gf-item-limit-row{display:block;}
.gf-item-limit-row .gf-limit-col{width:100%;max-width:100%;margin-bottom:.35rem;}
.gf-items-edit-table{font-size:.86rem;}
.gf-items-edit-table .form-control-sm,.gf-items-edit-table .form-select-sm{font-size:.82rem;padding:.2rem .42rem;}
.gf-items-edit-table .gf-item-editor-inline{padding:.55rem;}
.gf-items-edit-table .gf-item-param-block{padding:.48rem;margin-top:.45rem;}
.gf-items-edit-table .gf-item-param-subblock{padding:.4rem;margin:.3rem 0;}
.gf-items-edit-table .gf-checkbox-cloud-table{max-height:6.5rem;overflow:auto;padding:.35rem .5rem;border:1px solid #eef2f6;border-radius:.5rem;background:#fbfcfe;}
.gf-item-desc-input{min-width:16rem;}
.gf-task-required-item-hidden{display:none!important;}

.gf-task-item-reward-box{gap:.45rem .75rem;align-items:center}
.gf-task-item-reward-option{display:inline-flex;align-items:center;gap:.25rem;margin-right:.65rem;margin-bottom:.25rem}
.gf-task-item-reward-list{max-height:150px;overflow:auto;border:1px solid rgba(0,0,0,.08);border-radius:.5rem;padding:.35rem;background:#fff}


.gf-task-item-conditions{border:1px solid rgba(0,0,0,.08);border-radius:.65rem;padding:.55rem .65rem;background:#fff;}
.gf-task-item-conditions .form-label{font-weight:600;font-size:.88rem;}
.gf-task-item-slot .input-group-text{font-size:.75rem;padding:.25rem .45rem;}
.gf-task-item-select{min-width:0;max-width:210px;}
.gf-task-item-threshold{font-size:.82rem;}
.gf-task-item-slot option[hidden]{display:none;}

/* v72: nagrody przedmiotowe w kafelkach zadań i modalach */
.task-reward-row{display:flex;gap:.24rem;align-items:center;min-width:0;flex-wrap:nowrap;}
.task-reward-badge{flex:1 1 0;max-width:none;min-width:0;}
.task-reward-badge-items{background:#146c43;color:#fff;}
.gf-modal-item-rewards{display:inline-block;color:#146c43;font-weight:700;}


/* v73: kompaktowy zasobnik przedmiotów uczestnika */
.gf-student-items-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;}
@media (min-width:768px){.gf-student-items-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media (min-width:1200px){.gf-student-items-grid{grid-template-columns:repeat(8,minmax(0,1fr));}}
.gf-student-item-card{min-height:0;overflow:hidden;border:1px solid #e3eaf2;}
.gf-student-item-img{width:100%;height:64px;object-fit:cover;background:#eef3f8;border-bottom:1px solid #e1e8f0;}
.gf-student-item-title{font-size:.86rem;line-height:1.15;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

/* v343: kontrastowe kolory nazw i badge rzadkości przedmiotów */
.gf-student-item-title.gf-student-item-rarity-rare,
.gf-student-item-modal .modal-title.gf-student-item-rarity-rare,
.gf-resource-chip-name.gf-student-item-rarity-rare{color:var(--gf-rarity-rare,#1f893a)!important;}
.gf-student-item-title.gf-student-item-rarity-unique,
.gf-student-item-modal .modal-title.gf-student-item-rarity-unique,
.gf-resource-chip-name.gf-student-item-rarity-unique{color:var(--gf-rarity-unique,#7c3fb1)!important;}
.gf-student-item-title.gf-student-item-rarity-elite,
.gf-student-item-modal .modal-title.gf-student-item-rarity-elite,
.gf-resource-chip-name.gf-student-item-rarity-elite{color:var(--gf-rarity-elite,#946b00)!important;}
.gf-student-item-rarity-badge-rare{background:var(--gf-rarity-rare,#1f893a)!important;color:#fff!important;}
.gf-student-item-rarity-badge-unique{background:var(--gf-rarity-unique,#7c3fb1)!important;color:#fff!important;}
.gf-student-item-rarity-badge-elite{background:var(--gf-rarity-elite,#946b00)!important;color:#fff!important;}
.gf-student-item-desc{font-size:.75rem;line-height:1.2;min-height:2.4em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.gf-student-item-modal-thumb{width:42px;height:42px;object-fit:cover;border-radius:.55rem;border:1px solid #e3eaf2;background:#f7f9fc;}
.gf-student-item-modal-img{width:100%;max-height:230px;object-fit:cover;border-radius:.85rem;border:1px solid #e3eaf2;background:#f7f9fc;}
.gf-student-item-modal-img-item{display:block;width:50%;height:auto;max-height:none;object-fit:contain;margin-left:auto;margin-right:auto;}
@media (max-width:767.98px){.gf-student-item-modal-img-item{width:100%;}}
.gf-student-badge-modal-img{display:block;width:50%;height:auto;max-height:none;object-fit:contain;margin-left:auto;margin-right:auto;}
@media (max-width:767.98px){.gf-student-badge-modal-img{width:100%;}}
.gf-student-item-function{border:1px solid #e4ebf3;border-radius:.7rem;background:#fbfcfe;padding:.55rem .65rem;}


/* v79: czytelniejszy układ nagród przedmiotowych w tabeli zadań */
.gf-task-item-reward-table th,.gf-task-item-reward-table td{padding:.25rem .35rem;}
.gf-task-item-conditions-compact .form-text{line-height:1.25;}

.gf-student-item-card-used{opacity:.48;filter:grayscale(.85);}

/* v92: stabilny modal przedmiotu i panel przedmiotów uczestników */
.gf-student-item-modal .modal-body{
  overflow-y:scroll;
  scrollbar-gutter:stable;
}
.gf-item-use-accordion{
  display:flex;
  flex-direction:column;
  gap:.5rem;
}
.gf-item-use-accordion .accordion-item.gf-student-item-function{
  margin:0;
  overflow:hidden;
}
.gf-item-use-accordion .accordion-button{
  border-radius:.55rem!important;
}
.gf-user-items-table-wrap{max-height:72vh;}
.gf-user-items-table{font-size:.78rem;min-width:900px;}
.gf-user-items-table th,.gf-user-items-table td{padding:.32rem .38rem;vertical-align:middle;}
.gf-user-items-table thead th{position:sticky;top:0;background:#fff;z-index:3;box-shadow:0 1px 0 #e8edf3;}
.gf-user-items-sticky{position:sticky;left:0;background:#fff;z-index:2;min-width:210px;box-shadow:1px 0 0 #e8edf3;}
.gf-user-items-table thead .gf-user-items-sticky{z-index:4;}
.gf-user-item-head{display:block;max-width:92px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 auto;}
.gf-user-item-cell{min-width:92px;}
.gf-user-item-count{font-weight:700;font-size:.95rem;line-height:1.1;}
.gf-user-item-used{line-height:1.05;}
.gf-icon-btn{padding:.05rem .32rem;line-height:1.15;font-weight:700;}
.btn-group-xs>.btn,.btn-xs{--bs-btn-padding-y:.05rem;--bs-btn-padding-x:.32rem;--bs-btn-font-size:.72rem;--bs-btn-border-radius:.35rem;}

/* v94: panel przedmiotów uczestników */
.gf-user-items-table-wrap { max-height: 70vh; overflow: auto; }
.gf-user-items-table th { min-width: 110px; vertical-align: top; }
.gf-user-items-table th.gf-user-items-sticky,
.gf-user-items-table td.gf-user-items-sticky { position: sticky; left: 0; z-index: 2; background: var(--bs-body-bg); min-width: 190px; }
.gf-user-items-table thead th { position: sticky; top: 0; z-index: 3; background: var(--bs-body-bg); }
.gf-user-item-head { display: inline-block; max-width: 110px; white-space: normal; line-height: 1.1; font-size: .78rem; }
.gf-user-item-cell { min-width: 110px; }
.gf-user-item-qty { width: 72px; margin: 0 auto; text-align: center; }
.gf-user-item-used { white-space: nowrap; }
.gf-user-item-pending { display: flex; flex-wrap: wrap; gap: .2rem; justify-content: center; }
.gf-pending-use-badge { font-size: .68rem; line-height: 1.05; padding: .25rem .35rem; max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }

/* v95: bardziej kompaktowy panel Przedmioty uczestników */
.gf-user-items-table th.gf-user-items-sticky,
.gf-user-items-table td.gf-user-items-sticky { min-width: 135px; }
.gf-user-items-table th:nth-child(2),
.gf-user-items-table td:nth-child(2) { min-width: 90px; }
.gf-user-items-table .gf-user-item-qty { max-width: 72px; margin-left:auto; margin-right:auto; }

/* v96: wielowierszowe badge zgłoszeń i systemowe kolumny imię/nazwisko */
.gf-pending-use-badge {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: 100% !important;
  width: auto;
  min-width: 0;
  display: inline-block;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.15;
  text-align: center;
}
.gf-user-item-pending {
  max-width: 100%;
  align-items: flex-start;
}
.gf-user-item-cell { vertical-align: top; }
.gf-user-items-table th.gf-user-items-sticky,
.gf-user-items-table td.gf-user-items-sticky { min-width: 115px; }
.gf-user-items-table th:nth-child(2),
.gf-user-items-table td:nth-child(2) { min-width: 80px; }


/* v98 badges */
.gf-badge-thumb{width:52px;height:42px;object-fit:cover;border-radius:.75rem;border:1px solid rgba(0,0,0,.12);background:#f4f7fb;}
.gf-student-badges-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:.75rem;margin-bottom:1rem;}
.gf-student-badge-card{min-height:150px;overflow:hidden;}
.gf-student-badge-card-locked{opacity:.55;filter:grayscale(.65);}
.gf-student-badge-img{width:100%;height:72px;object-fit:cover;background:#eef4ff;}
.task-reward-badge-badges{--reward-color:#5b3f8c;color:#5b3f8c;border-color:#5b3f8c;background:rgba(91,63,140,.08);}
.gf-modal-badge-rewards{color:#5b3f8c;font-weight:600;}
@media (max-width: 1199px){.gf-student-badges-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media (max-width: 767px){.gf-student-badges-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* v99: odznaki i kompaktowe tabele uczestników */
.gf-badges-edit-table{font-size:.82rem;}
.gf-badges-edit-table th,.gf-badges-edit-table td{padding:.35rem .45rem;vertical-align:top;}
.gf-compact-checklist{max-height:8.5rem;overflow:auto;border:1px solid rgba(0,0,0,.08);border-radius:.5rem;padding:.35rem .5rem;background:#fff;}
.gf-compact-checklist .form-check{margin-bottom:.12rem;}
.gf-badge-param-block{margin-top:.25rem;}
.gf-badge-purpose-cell{min-width:230px;}
.gf-table-top,.gf-user-badges-table{font-size:.82rem;}
.gf-user-badges-table th,.gf-user-badges-table td{padding:.35rem .45rem;}

/* v101: spójniejsze tabele i dynamiczne parametry odznak */
.gf-badge-param-block{display:none;}
.gf-badge-editor .gf-badge-param-block{margin-top:.35rem;}
.gf-badges-edit-table{font-size:.86rem;}
.gf-badges-edit-table .form-control-sm,.gf-badges-edit-table .form-select-sm{font-size:.82rem;padding:.2rem .42rem;}
.gf-badges-edit-table th,.gf-badges-edit-table td{padding:.35rem .45rem;vertical-align:top;}
.gf-task-badge-conditions .gf-task-item-reward-table th,.gf-task-badge-conditions .gf-task-item-reward-table td{padding:.25rem .35rem;}


/* v107: czytelniejsze pola liczbowe w progach i tabelach */
.gf-task-item-reward-table td:first-child{min-width:13rem;}
.gf-task-item-reward-table td:first-child .form-select{min-width:12.5rem;}
.gf-task-item-reward-table td:last-child{width:5.8rem;min-width:5.8rem;}
.gf-task-item-reward-table .input-group{min-width:5.2rem;}
.gf-task-item-threshold,.gf-percent-3digits{min-width:3.2rem;text-align:right;}
.gf-number-3digits{min-width:5.4rem;text-align:right;}
.gf-badges-edit-table td:first-child,.gf-badges-edit-table th:first-child{min-width:5.8rem;}
.gf-badge-editor textarea[name="short_description"]{min-height:4.6rem;}

/* v111: górny pasek przewijania dla szerokiej tabeli zadań */
.gf-scroll-sync-top{overflow-x:auto;overflow-y:hidden;height:16px;margin-bottom:.25rem;border-radius:.35rem;}
.gf-scroll-sync-top>div{height:1px;}
.gf-scroll-sync{overflow-x:auto;}

/* v112: kompaktowe progi, szersze nazwy w nagrodach zadania i czytelne Lp. */
.gf-task-item-reward-table{width:100%;table-layout:fixed;}
.gf-task-item-reward-table td:first-child{width:auto;min-width:11.5rem;}
.gf-task-item-reward-table td:first-child .form-select{min-width:10.5rem;width:100%;}
.gf-task-item-reward-table td:last-child{width:4.8rem;min-width:4.8rem;}
.gf-task-item-reward-table .input-group{min-width:4.4rem;}
.gf-task-item-threshold,.gf-percent-3digits{min-width:2.65rem;max-width:3.45rem;text-align:right;}
.gf-percent-2digits{min-width:4.2rem;max-width:5.0rem;text-align:right;}
.gf-task-item-conditions-compact{padding:.45rem .5rem;}
.gf-task-create-form .gf-task-item-conditions{min-height:100%;}
.gf-sort-order-input{min-width:5.2rem;text-align:right;}
.gf-task-life-penalty .input-group-text{font-size:.78rem;padding:.25rem .4rem;}

/* v113: kompakt tylko w kreatorze zadań; tabela listy wraca do wcześniejszych proporcji */
.gf-task-item-reward-table{width:auto;table-layout:auto;}
.gf-task-item-reward-table td:first-child{width:auto;min-width:13rem;}
.gf-task-item-reward-table td:first-child .form-select{min-width:12.5rem;width:auto;}
.gf-task-item-reward-table td:last-child{width:5.8rem;min-width:5.8rem;}
.gf-task-item-reward-table .input-group{min-width:5.2rem;}
.gf-task-item-threshold,.gf-percent-3digits{min-width:3.05rem;max-width:3.55rem;text-align:right;}
.gf-percent-2digits{min-width:4.2rem;max-width:5.0rem;text-align:right;}
.gf-task-create-form .gf-task-item-reward-table{width:100%;table-layout:fixed;}
.gf-task-create-form .gf-task-item-reward-table td:first-child{width:auto;min-width:10.75rem;}
.gf-task-create-form .gf-task-item-reward-table td:first-child .form-select{min-width:10.25rem;width:100%;}
.gf-task-create-form .gf-task-item-reward-table td:last-child{width:4.65rem;min-width:4.65rem;}
.gf-task-create-form .gf-task-item-reward-table .input-group{min-width:4.25rem;}
.gf-task-create-form .gf-task-item-threshold,.gf-task-create-form .gf-percent-3digits{min-width:2.55rem;max-width:3.15rem;}
.gf-sort-order-input{min-width:4.35rem;max-width:4.75rem;text-align:right;}

/* v114: węższe, jednolite bloki nagród w kreatorze zadania bez pustej przestrzeni */
.gf-task-create-form .gf-task-item-conditions,
.gf-task-create-form .gf-task-badge-conditions{
  width:100%;
}
.gf-task-create-form .gf-task-item-conditions .table-responsive,
.gf-task-create-form .gf-task-badge-conditions .table-responsive{
  overflow:visible;
}
.gf-task-create-form .gf-task-item-reward-table{
  width:100%;
  table-layout:fixed;
  margin-bottom:0;
}
.gf-task-create-form .gf-task-item-reward-table td{
  padding:.16rem .12rem;
}
.gf-task-create-form .gf-task-item-reward-table td:first-child{
  width:auto;
  min-width:0;
  padding-right:.18rem;
}
.gf-task-create-form .gf-task-item-reward-table td:first-child .form-select,
.gf-task-create-form .gf-task-item-reward-table .gf-task-item-select{
  width:100%;
  min-width:0;
  max-width:none;
}
.gf-task-create-form .gf-task-item-reward-table td:last-child{
  width:4.7rem;
  min-width:4.7rem;
  padding-left:.18rem;
}
.gf-task-create-form .gf-task-item-reward-table .input-group{
  min-width:0;
  width:100%;
}
.gf-task-create-form .gf-task-item-threshold,
.gf-task-create-form .gf-percent-3digits{
  min-width:0;
  max-width:none;
  text-align:right;
}

/* v118: panel tożsamości gracza i modal wyboru awatara */
.gf-student-profile-panel{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;}
.gf-student-profile-avatar-btn{border:0;background:transparent;padding:0;border-radius:999px;line-height:0;}
.gf-student-profile-avatar{width:96px;height:96px;object-fit:cover;border-radius:999px;border:3px solid rgba(31,79,130,.18);box-shadow:0 .35rem 1rem rgba(0,0,0,.08);}
.gf-student-profile-main{flex:1 1 18rem;min-width:16rem;}
.gf-student-profile-side{min-width:12rem;text-align:right;}
.gf-student-codename-form{display:flex;gap:.5rem;max-width:28rem;}
.gf-student-codename-form .form-control{max-width:18rem;}
.gf-avatar-choice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:1rem;}
.gf-avatar-choice-card{height:100%;border-radius:1rem;overflow:hidden;}
.gf-avatar-choice-card-locked{opacity:.48;}
.gf-avatar-choice-card-active{border-color:var(--bs-primary);box-shadow:0 0 0 .18rem rgba(13,110,253,.16);}
.gf-avatar-choice-img{width:100%;height:140px;object-fit:cover;background:#f8f9fa;}
.gf-team-member-avatar{width:34px;height:34px;object-fit:cover;border-radius:999px;border:1px solid rgba(0,0,0,.12);background:#f8f9fa;}
@media (max-width:575.98px){.gf-student-profile-side{text-align:left;width:100%;}.gf-student-codename-form{flex-direction:column;}.gf-student-codename-form .form-control{max-width:none;}}

/* v120: student dashboard identity / score / wallet layout */
.gf-student-top-row .card{height:100%;}
.gf-dashboard-card .card-body{display:flex;flex-direction:column;}
.gf-profile-card .card-body{text-align:center;}
.gf-profile-stack{display:flex;flex-direction:column;align-items:center;gap:.45rem;}
.gf-profile-avatar-only{border:0;background:transparent;padding:0;border-radius:999px;line-height:0;display:inline-flex;}
.gf-profile-avatar-only img{width:112px;height:112px;object-fit:cover;border-radius:999px;border:3px solid rgba(31,79,130,.18);box-shadow:0 .35rem 1rem rgba(0,0,0,.08);}
.gf-profile-codename{font-size:1.05rem;text-decoration:none;}
.gf-profile-codename:hover{text-decoration:underline;}
.gf-profile-lives{line-height:1.1;}
.gf-level-thumb-btn{border:0;background:transparent;padding:0;border-radius:999px;line-height:0;display:inline-flex;}
.gf-level-thumb-btn img{width:42px;height:42px;object-fit:cover;border-radius:999px;border:2px solid rgba(31,79,130,.16);}
.gf-score-main{min-height:105px;display:flex;flex-direction:column;justify-content:center;align-items:center;}
.gf-dashboard-progress{height:.75rem;border-radius:999px;background:#eef1f5;}
.gf-dashboard-progress .progress-bar{border-radius:999px;}
.gf-ranking-lines{display:grid;gap:.25rem;}
@media (max-width:1199.98px){.gf-student-top-row .card{height:auto;}}

/* v123: przywrócenie zwartego układu kolumny „Punkty i waluta” w liście zadań */
.gf-task-points-currency-cell{
  min-width:190px!important;
  width:190px;
}
.gf-task-points-currency-cell .gf-score-grid{
  display:grid;
  grid-template-columns:minmax(74px,1fr) 58px;
  gap:.25rem;
  align-items:center;
}
.gf-task-points-currency-cell .gf-score-main{min-width:72px;}
.gf-task-points-currency-cell .gf-score-bonus{min-width:54px;}

/* v124: korekta wysokości pól podstawowych punktów/waluty w tabeli zadań.
   Klasa .gf-score-main jest używana także w dashboardzie, dlatego tutaj jawnie
   przywracamy kompaktowe zachowanie dla inputów w kolumnie „Punkty i waluta”. */
.gf-task-points-currency-cell input.gf-score-main.form-control,
.gf-task-points-currency-cell input.gf-score-main.form-control-sm{
  min-height:2rem!important;
  height:2rem!important;
  padding-top:.22rem!important;
  padding-bottom:.22rem!important;
  display:block!important;
  align-items:initial!important;
  justify-content:initial!important;
}
.gf-task-points-currency-cell input.gf-score-bonus.form-control,
.gf-task-points-currency-cell input.gf-score-bonus.form-control-sm{
  min-height:1.82rem!important;
  height:1.82rem!important;
  padding-top:.16rem!important;
  padding-bottom:.16rem!important;
}
.gf-task-points-currency-cell .gf-score-grid{
  align-items:center;
}

/* v125: ranking reports in student dashboard */
.gf-rank-report-btn{font-size:.72rem;line-height:1;padding:.14rem .35rem;border-radius:999px;margin-left:.25rem;}
.gf-ranking-report-table .gf-ranking-highlight td{font-weight:700;}

/* v126: warsztat kombinatoryczny */
.gf-workshop-result-cell { background: rgba(25, 135, 84, .08); }
.gf-workshop-result-head { background: rgba(25, 135, 84, .12); }
.gf-workshop-result-img { width: 42px; height: 42px; object-fit: cover; border-radius: 12px; border: 1px solid rgba(0,0,0,.08); background: #fff; }
.gf-student-workshop-form { border: 1px solid rgba(0,0,0,.08); border-radius: 1rem; padding: 1rem; background: rgba(248,249,250,.85); }
.gf-student-workshop-table { font-size: .82rem; }
.gf-student-workshop-table td, .gf-student-workshop-table th { vertical-align: middle; }
.gf-workshop-table select { min-width: 150px; }

/* v139: sklepik gracza */
.gf-shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:1rem;}
.gf-shop-card{overflow:hidden;height:100%;}
.gf-shop-card-locked{opacity:.68;}
.gf-shop-img{width:100%;height:132px;object-fit:cover;background:#f8f9fa;border-bottom:1px solid rgba(0,0,0,.06);}

/* v140: stałe okrągłe kadrowanie awatarów, niezależne od proporcji wgranego obrazu */
.gf-profile-avatar-only img{
  width:168px!important;
  height:168px!important;
  max-width:168px!important;
  max-height:168px!important;
  object-fit:cover!important;
  object-position:center center!important;
  border-radius:999px!important;
}
.gf-avatar-choice-card{
  overflow:visible;
  text-align:center;
}
.gf-avatar-choice-img{
  width:168px!important;
  height:168px!important;
  max-width:168px!important;
  max-height:168px!important;
  object-fit:cover!important;
  object-position:center center!important;
  border-radius:999px!important;
  border:3px solid rgba(31,79,130,.16);
  margin:1rem auto .35rem auto;
  display:block;
  background:#f8f9fa;
}
.gf-shop-avatar-img{
  width:168px!important;
  height:168px!important;
  max-width:168px!important;
  max-height:168px!important;
  object-fit:cover!important;
  object-position:center center!important;
  border-radius:999px!important;
  border:3px solid rgba(31,79,130,.14);
  margin:1rem auto .25rem auto;
  display:block;
  background:#f8f9fa;
}
.gf-shop-card .gf-shop-avatar-img{
  border-bottom:3px solid rgba(31,79,130,.14);
}
@media (max-width:575.98px){
  .gf-profile-avatar-only img,
  .gf-avatar-choice-img,
  .gf-shop-avatar-img{width:140px!important;height:140px!important;max-width:140px!important;max-height:140px!important;}
}

/* v141: czystsze kafelki awatarów i sklepiku po stronie gracza */
.gf-avatar-choice-card .card-body,
.gf-shop-card .card-body{
  text-align:center;
}
.gf-avatar-choice-card .btn,
.gf-shop-card .btn{
  align-self:center;
  min-width:8.5rem;
}
.gf-student-item-modal .badge.text-bg-danger,
.gf-student-badge-modal .badge.text-bg-danger{
  letter-spacing:.01em;
}

/* v155: rozdzielenie zasobów posiadanych, użytych i do zdobycia bez przebudowy głównego dashboardu */
.gf-resource-subsection{
  border-top:1px solid #e6edf5;
  padding-top:.7rem;
}
.gf-resource-subsection-title{
  font-size:.78rem;
  font-weight:700;
  color:#5d6b7a;
  text-transform:uppercase;
  letter-spacing:.045em;
  margin-bottom:.45rem;
}
.gf-resource-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
}
.gf-resource-chip{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  max-width:100%;
  border:1px solid #d9e3ef;
  background:#fff;
  border-radius:999px;
  padding:.26rem .62rem .26rem .32rem;
  color:#263746;
  text-decoration:none;
  min-height:2.15rem;
  box-shadow:0 .1rem .35rem rgba(16,38,60,.04);
}
button.gf-resource-chip{cursor:pointer;}
button.gf-resource-chip:hover{border-color:#9bbbe1;background:#f7fbff;}
.gf-resource-chip-static{cursor:default;}
.gf-resource-chip-img{
  width:1.58rem;
  height:1.58rem;
  object-fit:cover;
  border-radius:999px;
  background:#eef3f8;
  border:1px solid #e2e9f2;
  flex:0 0 auto;
}
.gf-resource-chip-text{
  display:flex;
  align-items:baseline;
  gap:.28rem;
  min-width:0;
}
.gf-resource-chip-type{
  font-size:.68rem;
  color:#6f7d8b;
  white-space:nowrap;
}
.gf-resource-chip-name{
  font-size:.82rem;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:14rem;
}
.gf-resource-chip-used{opacity:.68;filter:grayscale(.55);}
.gf-resource-chip-goal{background:#fbfcff;border-style:dashed;}

/* v177: treści jako kafelki spójne z zadaniami oraz edytor blokowy. */
.gf-content-card.task-card { min-height: 100%; }
.gf-content-card .task-desc { min-height: 3.2em; }
.gf-content-block-editor [data-gf-content-block] { border-color: rgba(0,0,0,.12) !important; }
.gf-content-block-editor textarea { resize: vertical; }


/* v179: kafelki treści — 2 w wierszu na telefonie, 6 w wierszu na desktopie, krótki opis tylko na kafelku. */
.gf-content-tile.task-card{
  min-height: 315px;
}
.gf-content-tile .task-card-img{
  height: 88px;
}
.gf-content-tile .task-title{
  font-size: .84rem;
  min-height: 2.15em;
  -webkit-line-clamp: 2;
}
.gf-content-tile .gf-content-short{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 3.75em;
  max-height: 3.75em;
  line-height: 1.25;
  font-size: .72rem;
  margin-bottom: .45rem !important;
}
.gf-content-tile .task-state-badge{
  font-size: .68rem;
  padding: .22rem .35rem;
  margin-bottom: .35rem !important;
}
.gf-content-tile .btn{
  padding: .32rem .45rem;
  font-size: .78rem;
}
.gf-content-tile .card-body{
  padding: .6rem;
}
@media (max-width: 576px){
  .gf-content-tile.task-card{min-height: 300px;}
  .gf-content-tile .task-card-img{height: 74px;}
  .gf-content-tile .task-title{font-size: .78rem; min-height: 2.05em;}
  .gf-content-tile .gf-content-short{font-size: .68rem; min-height: 3.6em; max-height: 3.6em;}
  .gf-content-tile .btn{font-size: .72rem; padding: .28rem .35rem;}
}

/* v180: treści — przycisk jak w kafelkach zadań: kontur, bez tła, tło dopiero po hover. */
.gf-content-tile .gf-content-open-btn{
  background: transparent;
  border-width: 1px;
  min-height: 34px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.gf-content-tile .gf-content-open-btn:not(:disabled):hover,
.gf-content-tile .gf-content-open-btn:not(:disabled):focus{
  background: var(--gf-primary);
  border-color: var(--gf-primary);
  color:#fff;
}
.gf-content-tile .gf-content-open-btn:disabled{
  background: transparent;
  opacity: .65;
}
.gf-content-block-editor [data-gf-inline-format]{
  min-width: 2rem;
}

/* v181: czytelne formatowanie inline i pojedynczy badge blokady treści. */
.gf-inline-toolbar{
  align-items:center;
}
.gf-inline-toolbar .gf-inline-format-btn{
  min-width:2.25rem;
  font-weight:700;
  line-height:1.15;
}
.gf-content-tile .task-state-badge{
  white-space:normal;
  line-height:1.15;
}


/* v182: poprawki edytora tabel treści. */
.gf-content-block-editor .gf-content-edit-table{table-layout:auto;}
.gf-content-block-editor .gf-content-table-cell{vertical-align:middle;text-align:center;min-width:170px;padding:.35rem;}
.gf-content-block-editor .gf-content-table-cell .gf-table-cell-editor{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;width:100%;}
.gf-content-block-editor .gf-content-table-cell .gf-table-cell-input{display:block;text-align:center;width:100%;min-width:8rem;margin:0 auto;}
.gf-content-block-editor .gf-table-inline-toolbar{display:inline-flex!important;justify-content:center;}
.gf-content-block-editor .gf-table-inline-toolbar .btn{min-width:1.9rem;padding:.18rem .35rem;font-size:.76rem;line-height:1.15;}
.gf-content-block-editor .gf-table-column-tools{border:1px solid rgba(0,0,0,.08);background:#f8f9fa;border-radius:.5rem;padding:.35rem .5rem;}
.gf-content-block-editor .gf-content-table-row-actions{vertical-align:middle;text-align:center;width:1%;}

/* v184: tabela w kreatorze treści — prostszy układ bez B/I/U w komórkach. */
.gf-content-block-editor .gf-content-table-cell{
  vertical-align:middle;
  text-align:left;
  min-width:170px;
  padding:.35rem;
}
.gf-content-block-editor .gf-content-table-cell .gf-table-cell-input{
  display:block;
  text-align:left;
  width:100%;
  min-width:8rem;
  margin:0;
}
.gf-content-block-editor [data-gf-content-block="table"][data-table-header-row="1"] [data-table-row]:first-child .gf-content-table-cell .gf-table-cell-input,
.gf-content-block-editor [data-gf-content-block="table"][data-table-header-col="1"] [data-table-row] .gf-content-table-cell:first-child .gf-table-cell-input{
  background:#f1f3f5;
}
.gf-content-render-table .gf-content-table-highlight{
  background:#f1f3f5;
}

/* v185: fabuła w nagłówku i belki komunikatów */
.gf-story-header-control { display: inline-flex; align-items: center; }
.gf-story-header-btn { border-color: var(--gf-primary); color: var(--gf-primary); }
.gf-story-header-btn:hover, .gf-story-header-btn:focus { background: var(--gf-primary); border-color: var(--gf-primary); color: #fff; }
.gf-announcement-bar { border-radius: 1rem; }
.gf-announcement-open { color: inherit; }
.gf-announcement-open:hover, .gf-announcement-open:focus { text-decoration: underline; }

/* v186: nagłówek kursu — tytuł po lewej, Fabuła/Instrukcja po prawej */
.gf-course-title-row { width: 100%; justify-content: space-between; }
.gf-course-title-actions { margin-left: auto; }
@media (max-width: 575.98px) {
  .gf-course-title-row { align-items: flex-start !important; }
  .gf-course-title-actions { width: 100%; justify-content: flex-end !important; margin-left: 0 !important; }
}


/* v192: edytor tabel treści — prawdziwe kolumny i poziomy suwak w bloku tabeli. */
.gf-content-block-editor .table-responsive{
  max-width:100%;
  overflow-x:auto;
  overflow-y:visible;
}
.gf-content-block-editor .gf-content-edit-table{
  width:max-content;
  min-width:100%;
  table-layout:fixed;
}
.gf-content-block-editor .gf-content-table-cell{
  width:180px;
  min-width:180px;
  max-width:180px;
  vertical-align:middle;
  text-align:left;
  padding:.35rem;
}
.gf-content-block-editor .gf-content-table-cell .gf-table-cell-input{
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
  text-align:left;
  margin:0;
}
.gf-content-block-editor .gf-content-table-row-actions{
  width:42px;
  min-width:42px;
  max-width:42px;
  vertical-align:middle;
  text-align:center;
}


/* v193: twarda poprawka edytora tabel treści — prawdziwe TD, stała pozycja pól i poziome przewijanie. */
.gf-content-block-editor [data-gf-content-block="table"] .table-responsive{
  display:block !important;
  max-width:100% !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
  -webkit-overflow-scrolling:touch;
}
.gf-content-block-editor [data-gf-content-block="table"] .gf-content-edit-table{
  width:max-content !important;
  min-width:100% !important;
  table-layout:fixed !important;
  border-collapse:collapse !important;
}
.gf-content-block-editor [data-gf-content-block="table"] .gf-content-edit-table tr[data-table-row]{
  display:table-row !important;
}
.gf-content-block-editor [data-gf-content-block="table"] .gf-content-edit-table td.gf-content-table-cell{
  display:table-cell !important;
  width:180px !important;
  min-width:180px !important;
  max-width:180px !important;
  vertical-align:middle !important;
  text-align:left !important;
  padding:.35rem !important;
}
.gf-content-block-editor [data-gf-content-block="table"] .gf-content-edit-table td.gf-content-table-row-actions{
  display:table-cell !important;
  width:42px !important;
  min-width:42px !important;
  max-width:42px !important;
  vertical-align:middle !important;
  text-align:center !important;
}
.gf-content-block-editor [data-gf-content-block="table"] .gf-table-cell-input{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  margin:0 !important;
  text-align:left !important;
}


/* v194: tabela w kreatorze treści ma być zwykłą tabelą z realnymi komórkami i przewijaniem poziomym. */
.gf-content-block-editor [data-gf-content-block="table"] .table-responsive{
  max-width:100% !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
}
.gf-content-block-editor [data-gf-content-block="table"] table.gf-content-edit-table{
  display:table !important;
  width:max-content !important;
  min-width:100% !important;
  table-layout:fixed !important;
}
.gf-content-block-editor [data-gf-content-block="table"] table.gf-content-edit-table tbody{display:table-row-group !important;}
.gf-content-block-editor [data-gf-content-block="table"] table.gf-content-edit-table tr[data-table-row]{display:table-row !important;}
.gf-content-block-editor [data-gf-content-block="table"] table.gf-content-edit-table td.gf-content-table-cell{
  display:table-cell !important;
  width:180px !important;
  min-width:180px !important;
  max-width:180px !important;
  padding:.35rem !important;
  text-align:left !important;
  vertical-align:middle !important;
}
.gf-content-block-editor [data-gf-content-block="table"] table.gf-content-edit-table td.gf-content-table-row-actions{
  display:table-cell !important;
  width:42px !important;
  min-width:42px !important;
  max-width:42px !important;
  text-align:center !important;
  vertical-align:middle !important;
}
.gf-content-block-editor [data-gf-content-block="table"] .gf-table-cell-input{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  box-sizing:border-box !important;
  text-align:left !important;
}

/* v198: ustawienia pól odpowiedzi są częścią wiersza zadania, bez mylącej linii oddzielającej */
.gf-response-config-row > td{
  border-top:0!important;
  padding-top:.15rem!important;
}
.gf-response-config-row details{
  margin-top:-.25rem;
}

/* v201: większy widok H5P w tym samym modalu, bez otwierania drugiej instancji aktywności. */

/* v208: semantyczne kolory elementów kursu */
.gf-course-scope .gf-token-points{color:var(--gf-color-points)!important;font-weight:700;}
.gf-course-scope .gf-token-currency{color:var(--gf-color-currency)!important;font-weight:700;}
.gf-course-scope .gf-token-items{color:var(--gf-color-items)!important;font-weight:700;}
.gf-course-scope .gf-token-badges{color:var(--gf-color-badges)!important;font-weight:700;}
.gf-course-scope .gf-token-avatars{color:var(--gf-color-avatars)!important;font-weight:700;}
.gf-course-scope .gf-token-tasks{color:var(--gf-color-tasks)!important;font-weight:700;}
.gf-course-scope .gf-token-contents{color:var(--gf-color-contents)!important;font-weight:700;}
.gf-course-scope .gf-badge-points{background:var(--gf-color-points)!important;color:#fff!important;}
.gf-course-scope .gf-badge-currency{background:var(--gf-color-currency)!important;color:#fff!important;}
.gf-course-scope .gf-badge-items{background:var(--gf-color-items)!important;color:#fff!important;}
.gf-course-scope .gf-badge-badges{background:var(--gf-color-badges)!important;color:#fff!important;}
.gf-course-scope .gf-badge-avatars{background:var(--gf-color-avatars)!important;color:#fff!important;}
.gf-course-scope .gf-badge-tasks{background:var(--gf-color-tasks)!important;color:#fff!important;}
.gf-course-scope .gf-badge-contents{background:var(--gf-color-contents)!important;color:#fff!important;}
.gf-course-scope .gf-dashboard-progress .progress-bar{background-color:var(--gf-color-points);}
.gf-course-scope .gf-points-card .display-6{color:var(--gf-color-points);}
.gf-course-scope .gf-wallet-card .display-6{color:var(--gf-color-currency);}
.gf-course-scope .task-reward-badge{background:var(--reward-color,var(--gf-color-points));color:#fff;}
.gf-course-scope .task-reward-badge-items{background:var(--gf-color-items)!important;color:#fff;}
.gf-course-scope .task-reward-badge-badges{background:var(--gf-color-badges)!important;color:#fff;}
.gf-course-scope .gf-modal-item-rewards{color:var(--gf-color-items);}
.gf-course-scope .gf-content-card .badge{border-color:var(--gf-color-contents)!important;color:var(--gf-color-contents)!important;}
.gf-course-scope .gf-dep-type-chip{display:inline-flex;align-items:center;border-radius:999px;padding:.15rem .45rem;font-size:.75rem;font-weight:700;color:#fff;white-space:nowrap;}
.gf-course-scope .gf-dep-type-item{background:var(--gf-color-items);}
.gf-course-scope .gf-dep-type-badge{background:var(--gf-color-badges);}
.gf-course-scope .gf-dep-type-level{background:var(--gf-color-points);}
.gf-course-scope .gf-dep-type-task{background:var(--gf-color-tasks);}
.gf-course-scope .gf-dep-type-content{background:var(--gf-color-contents);}
.gf-course-scope .gf-dep-type-avatar{background:var(--gf-color-avatars);}
.gf-course-scope .gf-dep-type-currency{background:var(--gf-color-currency);}
.gf-course-scope .gf-color-sample{display:inline-block;width:1rem;height:1rem;border-radius:.25rem;border:1px solid rgba(0,0,0,.18);vertical-align:-.15rem;margin-right:.25rem;}

/* v209: automatyczna mapa zależności kursu */
.gf-course-scope .gf-dep-map-scroll{
  width:100%;
  overflow:auto;
  border:1px solid rgba(15,23,42,.12);
  border-radius:1rem;
  background:linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.96));
}
.gf-course-scope .gf-dep-map{
  position:relative;
  min-height:360px;
  font-size:.82rem;
}
.gf-course-scope .gf-dep-line-legend{
  display:flex;
  flex-wrap:wrap;
  gap:.9rem;
  align-items:center;
  color:#475569;
}
.gf-course-scope .gf-dep-line-sample{
  display:inline-block;
  width:2.6rem;
  height:0;
  border-top:3px solid currentColor;
  margin-right:.35rem;
  vertical-align:middle;
}
.gf-course-scope .gf-dep-line-blocking{color:#7f1d1d;}
.gf-course-scope .gf-dep-line-support{color:#14532d;}
.gf-course-scope .gf-dep-map-svg{
  position:absolute;
  inset:0;
  overflow:visible;
  color:rgba(71,85,105,.62);
  pointer-events:auto;
}
.gf-course-scope .gf-dep-edge{
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  opacity:.68;
  cursor:pointer;
  pointer-events:stroke;
  transition:opacity .15s ease, stroke-width .15s ease;
}
.gf-course-scope .gf-dep-edge-blocking{color:#7f1d1d;}
.gf-course-scope .gf-dep-edge-support{color:#14532d;}
.gf-course-scope .gf-dep-edge:hover,
.gf-course-scope .gf-dep-edge:focus{opacity:1;stroke-width:3.2;outline:none;}
.gf-course-scope .gf-dep-edge.is-dimmed{opacity:.08;}
.gf-course-scope .gf-dep-edge.is-active{opacity:.95;stroke-width:3.4;}
.gf-course-scope .gf-dep-edge-info{white-space:pre-line;}
.gf-course-scope .gf-dep-map-column-title{
  position:absolute;
  text-align:center;
  font-weight:700;
  color:#64748b;
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.gf-course-scope .gf-dep-node{
  position:absolute;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:.08rem;
  border:1px solid rgba(15,23,42,.16);
  border-left-width:.42rem;
  border-radius:.75rem;
  background:#fff;
  box-shadow:0 .35rem 1rem rgba(15,23,42,.08);
  padding:.38rem .5rem;
  text-align:left;
  color:#0f172a;
  overflow:hidden;
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.gf-course-scope .gf-dep-node:hover,
.gf-course-scope .gf-dep-node:focus{
  transform:translateY(-1px);
  box-shadow:0 .55rem 1.25rem rgba(15,23,42,.14);
  outline:2px solid rgba(37,99,235,.16);
}
.gf-course-scope .gf-dep-node.is-dimmed{opacity:.22;}
.gf-course-scope .gf-dep-node.is-active{opacity:1;box-shadow:0 .65rem 1.35rem rgba(15,23,42,.18);}
.gf-course-scope .gf-dep-node-type{
  font-size:.62rem;
  line-height:1;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.03em;
  opacity:.72;
}
.gf-course-scope .gf-dep-node-label{
  font-weight:700;
  line-height:1.08;
  max-width:100%;
}
.gf-course-scope .gf-dep-node-system{border-left-color:#64748b;}
.gf-course-scope .gf-dep-node-task{border-left-color:var(--gf-color-tasks);}
.gf-course-scope .gf-dep-node-level{border-left-color:var(--gf-color-points);}
.gf-course-scope .gf-dep-node-item{border-left-color:var(--gf-color-items);}
.gf-course-scope .gf-dep-node-badge{border-left-color:var(--gf-color-badges);}
.gf-course-scope .gf-dep-node-content{border-left-color:var(--gf-color-contents);}
.gf-course-scope .gf-dep-node-avatar{border-left-color:var(--gf-color-avatars);}
.gf-course-scope .gf-dep-node-task .gf-dep-node-type{color:var(--gf-color-tasks);}
.gf-course-scope .gf-dep-node-level .gf-dep-node-type{color:var(--gf-color-points);}
.gf-course-scope .gf-dep-node-item .gf-dep-node-type{color:var(--gf-color-items);}
.gf-course-scope .gf-dep-node-badge .gf-dep-node-type{color:var(--gf-color-badges);}
.gf-course-scope .gf-dep-node-content .gf-dep-node-type{color:var(--gf-color-contents);}
.gf-course-scope .gf-dep-node-avatar .gf-dep-node-type{color:var(--gf-color-avatars);}

/* v211: wyraźne kolory i opisy linii mapy zależności */
.gf-course-scope .gf-dep-edge{stroke-width:3;opacity:.82;vector-effect:non-scaling-stroke;}
.gf-course-scope .gf-dep-edge-blocking{stroke:#7f1d1d!important;color:#7f1d1d!important;}
.gf-course-scope .gf-dep-edge-support{stroke:#14532d!important;color:#14532d!important;}
.gf-course-scope .gf-dep-edge:hover,
.gf-course-scope .gf-dep-edge:focus{stroke-width:4.2;opacity:1;}
.gf-course-scope .gf-dep-edge.is-active{stroke-width:4.6;opacity:1;}
.gf-course-scope .gf-dep-line-blocking{color:#7f1d1d!important;}
.gf-course-scope .gf-dep-line-support{color:#14532d!important;}
.gf-course-scope .gf-dep-relation-pill{display:inline-flex;align-items:center;border-radius:999px;padding:.15rem .45rem;font-size:.75rem;font-weight:700;color:#fff;white-space:nowrap;}
.gf-course-scope .gf-dep-relation-blocking{background:#7f1d1d;}
.gf-course-scope .gf-dep-relation-support{background:#14532d;}
.gf-course-scope .gf-dep-relations-list{border:1px solid rgba(15,23,42,.1);border-radius:.75rem;padding:.6rem .75rem;background:rgba(248,250,252,.65);}
.gf-course-scope .gf-dep-relations-list summary{cursor:pointer;}

/* v212: mapa zależności - warsztat w centrum i dodatkowe typy węzłów */
.gf-course-scope .gf-dep-node-workshop{border-left-color:#334155;}
.gf-course-scope .gf-dep-node-currency{border-left-color:var(--gf-color-currency);}
.gf-course-scope .gf-dep-node-workshop .gf-dep-node-type{color:#334155;}
.gf-course-scope .gf-dep-node-currency .gf-dep-node-type{color:var(--gf-color-currency);}

/* v213: stabilizacja zaznaczania mapy zależności */
.gf-course-scope .gf-dep-edge.is-filtered-out,
.gf-course-scope .gf-dep-node.is-filtered-out{display:none!important;}
.gf-course-scope .gf-dep-map.has-selection .gf-dep-edge.is-dimmed{opacity:.06!important;stroke-width:2!important;}
.gf-course-scope .gf-dep-map.has-selection .gf-dep-node.is-dimmed{opacity:.18!important;filter:grayscale(.35);}
.gf-course-scope .gf-dep-map.has-selection .gf-dep-node.is-active{opacity:1!important;filter:none;outline:3px solid rgba(37,99,235,.22);}
.gf-course-scope .gf-dep-map.has-selection .gf-dep-edge.is-active{opacity:1!important;stroke-width:5!important;}
.gf-course-scope .gf-dep-node:active{background:#fff;color:#0f172a;}
.gf-course-scope .gf-dep-node:focus-visible{outline:3px solid rgba(37,99,235,.28);}
.gf-course-scope .gf-dep-map-svg{z-index:1;}
.gf-course-scope .gf-dep-node{z-index:2;}


/* v215: naprawiona interakcja grafu zależności i trzeci typ relacji warsztatu */
.gf-course-scope .gf-dep-edge-group{cursor:pointer;outline:none;}
.gf-course-scope .gf-dep-edge-hit{fill:none;stroke:transparent;stroke-width:16;pointer-events:stroke;}
.gf-course-scope .gf-dep-edge-group .gf-dep-edge{fill:none;stroke-width:3;opacity:.82;vector-effect:non-scaling-stroke;pointer-events:none;transition:opacity .15s ease, stroke-width .15s ease;}
.gf-course-scope .gf-dep-edge-group.gf-dep-edge-blocking .gf-dep-edge{stroke:#7f1d1d!important;color:#7f1d1d!important;}
.gf-course-scope .gf-dep-edge-group.gf-dep-edge-support .gf-dep-edge{stroke:#14532d!important;color:#14532d!important;}
.gf-course-scope .gf-dep-edge-group.gf-dep-edge-workshop .gf-dep-edge{stroke:#1d4ed8!important;color:#1d4ed8!important;}
.gf-course-scope .gf-dep-edge-group:hover .gf-dep-edge,
.gf-course-scope .gf-dep-edge-group:focus .gf-dep-edge{stroke-width:4.2;opacity:1;}
.gf-course-scope .gf-dep-map.has-selection .gf-dep-edge-group.is-dimmed .gf-dep-edge{opacity:.06!important;stroke-width:2!important;}
.gf-course-scope .gf-dep-map.has-selection .gf-dep-edge-group.is-active .gf-dep-edge{opacity:1!important;stroke-width:5!important;}
.gf-course-scope .gf-dep-edge-group.is-filtered-out,
.gf-course-scope .gf-dep-node.is-filtered-out{display:none!important;}
.gf-course-scope .gf-dep-line-workshop{color:#1d4ed8!important;}
.gf-course-scope .gf-dep-relation-workshop{background:#1d4ed8;}
.gf-course-scope .gf-dep-line-sample.gf-dep-line-workshop{background:#1d4ed8;}

/* v216: naprawa klikalności i czytelności mapy zależności */
.gf-course-scope .gf-dep-map-svg{z-index:1;pointer-events:auto;}
.gf-course-scope .gf-dep-node{z-index:3;pointer-events:auto;cursor:pointer;}
.gf-course-scope .gf-dep-edge-group{pointer-events:visiblePainted;cursor:pointer;}
.gf-course-scope .gf-dep-edge-hit{fill:none;stroke:rgba(15,23,42,.001)!important;stroke-width:22!important;pointer-events:stroke;}
.gf-course-scope .gf-dep-edge-group .gf-dep-edge{pointer-events:none;}
.gf-course-scope .gf-dep-map.has-selection .gf-dep-edge-group.is-active .gf-dep-edge{opacity:1!important;stroke-width:5!important;}
.gf-course-scope .gf-dep-map.has-selection .gf-dep-edge-group.is-dimmed .gf-dep-edge{opacity:.07!important;stroke-width:2!important;}
.gf-course-scope .gf-dep-map.has-selection .gf-dep-node.is-active{opacity:1!important;filter:none;outline:3px solid rgba(37,99,235,.24);}
.gf-course-scope .gf-dep-map.has-selection .gf-dep-node.is-dimmed{opacity:.16!important;filter:grayscale(.35);}
.gf-course-scope .gf-dep-map-column-title{pointer-events:none;}

/* v218 dependency graph interaction repair */
.gf-course-scope .gf-dep-map-svg{z-index:1;pointer-events:none!important;}
.gf-course-scope .gf-dep-edge-group{pointer-events:none!important;}
.gf-course-scope .gf-dep-edge-hit{display:none!important;}
.gf-course-scope .gf-dep-edge-group .gf-dep-edge{pointer-events:none!important;}
.gf-course-scope .gf-dep-node{z-index:30!important;pointer-events:auto!important;cursor:pointer!important;}
.gf-course-scope .gf-dep-edge-button{
  position:absolute;z-index:25;width:20px;height:20px;border-radius:999px;border:2px solid #fff;
  display:flex;align-items:center;justify-content:center;font-size:.62rem;font-weight:800;line-height:1;
  box-shadow:0 .25rem .75rem rgba(15,23,42,.18);cursor:pointer;color:#fff;padding:0;
}
.gf-course-scope .gf-dep-edge-button.gf-dep-edge-blocking{background:#7f1d1d;}
.gf-course-scope .gf-dep-edge-button.gf-dep-edge-support{background:#14532d;}
.gf-course-scope .gf-dep-edge-button.gf-dep-edge-workshop{background:#1d4ed8;}
.gf-course-scope .gf-dep-edge-button:hover,.gf-course-scope .gf-dep-edge-button:focus{transform:scale(1.12);outline:3px solid rgba(37,99,235,.22);}
.gf-course-scope .gf-dep-map.has-selection .gf-dep-edge-button.is-active{opacity:1!important;transform:scale(1.18);outline:3px solid rgba(37,99,235,.28);}
.gf-course-scope .gf-dep-map.has-selection .gf-dep-edge-button.is-dimmed{opacity:.12!important;filter:grayscale(.5);}
.gf-course-scope .gf-dep-edge-button.is-filtered-out{display:none!important;}

/* v221: ikony nagłówka kursu */
.gf-header-icon-btn {
  min-width: 2.25rem;
  min-height: 2.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
}

/* v222: lokalne ikony SVG zamiast emoji/Unicode */
.gf-svg-icon{
  width:1em;
  height:1em;
  display:inline-block;
  vertical-align:-.14em;
  color:currentColor;
  flex:0 0 auto;
}
.gf-inline-icon{
  width:.95em;
  height:.95em;
  margin-right:.18rem;
}
.task-icon .gf-svg-icon{
  width:.92rem;
  height:.92rem;
}
.task-icon-mode-team .gf-svg-icon,
.task-icon-mode-individual .gf-svg-icon{
  width:.9rem;
  height:.9rem;
}
.task-icon-row .task-icon.task-icon-required .gf-svg-icon,
.task-icon-row .task-icon.task-icon-optional .gf-svg-icon{
  width:.62rem;
  height:.62rem;
}
.task-icon-row .task-icon.task-icon-required::before,
.task-icon-row .task-icon.task-icon-optional::before{
  content:none!important;
  display:none!important;
}
.task-icon-row .task-icon.task-icon-required,
.task-icon-row .task-icon.task-icon-optional{
  font-size:.82rem!important;
}
.gf-header-icon-btn .gf-svg-icon{
  width:1.05rem;
  height:1.05rem;
}

/* v223: mapa zadań / misji na osi czasu */
.gf-mission-map-open{display:inline-flex;align-items:center;gap:.35rem;white-space:nowrap;}
.gf-mission-map-legend{display:flex;flex-wrap:wrap;gap:.45rem .75rem;align-items:center;padding:.65rem .75rem;background:#f8fafc;border:1px solid rgba(148,163,184,.35);border-radius:1rem;}
.gf-mission-map-legend-item{display:inline-flex;align-items:center;gap:.32rem;font-size:.78rem;color:#475569;white-space:nowrap;}
.gf-mission-map-dot{width:.74rem;height:.74rem;border-radius:999px;background:var(--mm-color);display:inline-block;box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(15,23,42,.08);}
.gf-mission-map-scroll{overflow:auto;border:1px solid rgba(148,163,184,.35);border-radius:1.15rem;background:linear-gradient(180deg,#ffffff,#f8fafc);padding:.8rem;}
.gf-mission-map-stage{position:relative;min-width:100%;}
.gf-mission-map-axis{position:absolute;width:4px;border-radius:999px;background:linear-gradient(180deg,rgba(30,64,175,.26),rgba(30,64,175,.75));box-shadow:0 0 0 4px rgba(37,99,235,.05);}
.gf-mission-map-day{position:absolute;transform:translateY(-50%);font-size:.72rem;color:#64748b;white-space:nowrap;}
.gf-mission-map-day::after{content:"";position:absolute;left:31px;top:50%;width:56px;height:1px;background:rgba(148,163,184,.28);}
.gf-mission-map-duration{position:absolute;width:10px;border-radius:999px;background:rgba(37,99,235,.24);border:1px solid rgba(37,99,235,.28);}
.gf-mission-map-connector{position:absolute;height:2px;background:rgba(37,99,235,.32);transform:translateY(-50%);}
.gf-mission-map-connector::after{content:"";position:absolute;right:-2px;top:50%;width:6px;height:6px;border-radius:999px;background:rgba(37,99,235,.55);transform:translateY(-50%);}
.gf-mission-map-card{position:absolute;text-align:left;border:1px solid rgba(148,163,184,.45);background:#fff;border-radius:1rem;padding:.62rem .7rem;box-shadow:0 .45rem 1.1rem rgba(15,23,42,.11);color:#0f172a;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease;}
.gf-mission-map-card:hover,.gf-mission-map-card:focus{transform:translateY(-1px);border-color:rgba(37,99,235,.55);box-shadow:0 .65rem 1.45rem rgba(15,23,42,.17);outline:none;}
.gf-mission-map-title{display:block;font-weight:700;font-size:.88rem;line-height:1.16;margin-bottom:.35rem;}
.gf-mission-map-icons{display:flex;align-items:center;gap:.25rem;margin-bottom:.42rem;}
.gf-mission-map-icons .task-icon{width:1.45rem;height:1.45rem;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#f1f5f9;color:#334155;}
.gf-mission-map-rewards{display:flex;flex-wrap:wrap;gap:.28rem;margin-top:.18rem;}
.gf-mission-map-reward{width:1.76rem;height:1.76rem;border-radius:999px;background:var(--mm-color);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:800;line-height:1;border:2px solid #fff;box-shadow:0 .25rem .7rem rgba(15,23,42,.16);}
.gf-mission-map-locks{position:absolute;right:.45rem;top:.42rem;display:flex;gap:.18rem;}
.gf-mission-map-lock{width:1.28rem;height:1.28rem;border-radius:999px;background:var(--lock-color);color:#fff;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 .25rem .65rem rgba(15,23,42,.18);}
.gf-mission-map-lock .gf-svg-icon{width:.78rem;height:.78rem;}
.gf-mission-map-lock-inline{position:static;width:1.1rem;height:1.1rem;box-shadow:none;}
.gf-mission-map-lock-inline .gf-svg-icon{width:.68rem;height:.68rem;}
@media (max-width: 768px){.gf-mission-map-open span{display:none}.gf-mission-map-scroll{padding:.55rem}.gf-mission-map-card{font-size:.9rem}}

/* v224: mission timeline map refinement */
.gf-header-dropdown-menu .dropdown-item{font-size:.9rem;padding:.42rem .9rem;}
.gf-header-dropdown-menu .dropdown-divider{margin:.35rem 0;}
.gf-mission-map-duration,
.gf-mission-map-connector,
.gf-mission-map-card{--mm-hover-color:var(--gf-color-tasks, #475569);}
.gf-mission-map-duration{width:9px;background:rgba(71,85,105,.18);border-color:rgba(71,85,105,.28);transition:background .14s ease,border-color .14s ease,box-shadow .14s ease,transform .14s ease;}
.gf-mission-map-connector{background:rgba(71,85,105,.28);transition:background .14s ease,box-shadow .14s ease,height .14s ease;}
.gf-mission-map-connector::after{background:rgba(71,85,105,.48);transition:background .14s ease,transform .14s ease;}
.gf-mission-map-card.is-hover,
.gf-mission-map-card:hover,
.gf-mission-map-card:focus{border-color:var(--mm-hover-color)!important;box-shadow:0 .7rem 1.55rem rgba(15,23,42,.19),0 0 0 3px color-mix(in srgb,var(--mm-hover-color) 16%,transparent);}
.gf-mission-map-duration.is-hover{background:color-mix(in srgb,var(--mm-hover-color) 38%,white);border-color:var(--mm-hover-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--mm-hover-color) 14%,transparent);}
.gf-mission-map-connector.is-hover{height:3px;background:var(--mm-hover-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--mm-hover-color) 10%,transparent);}
.gf-mission-map-connector.is-hover::after{background:var(--mm-hover-color);transform:translateY(-50%) scale(1.15);}
.gf-mission-map-reward-wrap{position:relative;display:inline-flex;}
.gf-mission-map-reward-bonus{position:absolute;right:-.36rem;top:-.34rem;width:1.02rem;height:1.02rem;border-radius:999px;background:#fff;color:#0f172a;border:2px solid var(--mm-color);display:inline-flex;align-items:center;justify-content:center;font-size:.55rem;font-weight:900;line-height:1;box-shadow:0 .18rem .45rem rgba(15,23,42,.22);}
.gf-mission-map-icons .task-icon-required .gf-svg-icon,
.gf-mission-map-icons .task-icon-optional .gf-svg-icon,
.gf-mission-map-legend-item .task-icon-required .gf-svg-icon,
.gf-mission-map-legend-item .task-icon-optional .gf-svg-icon{width:.78rem;height:.78rem;}

/* v225: mission timeline selection and spacing fix */
.gf-mission-map-card{cursor:pointer;padding-right:2.55rem;}
.gf-mission-map-duration,
.gf-mission-map-connector{cursor:pointer;}
.gf-mission-map-card-open{position:absolute;right:.46rem;top:50%;transform:translateY(-50%);width:1.55rem;height:1.55rem;border-radius:999px;border:1px solid rgba(148,163,184,.55);background:#fff;color:#475569;display:inline-flex;align-items:center;justify-content:center;padding:0;box-shadow:0 .18rem .45rem rgba(15,23,42,.13);z-index:3;}
.gf-mission-map-card-open:hover,.gf-mission-map-card-open:focus{background:#fee2e2;border-color:#dc2626;color:#991b1b;outline:none;box-shadow:0 0 0 3px rgba(220,38,38,.16),0 .25rem .65rem rgba(15,23,42,.18);}
.gf-mission-map-card-open .gf-svg-icon{width:.88rem;height:.88rem;}
.gf-mission-map-card.is-hover,
.gf-mission-map-card:hover,
.gf-mission-map-card:focus,
.gf-mission-map-card.is-selected{border-color:#dc2626!important;background:#fff7f7;box-shadow:0 .7rem 1.55rem rgba(127,29,29,.18),0 0 0 3px rgba(220,38,38,.16);outline:none;}
.gf-mission-map-duration.is-hover,
.gf-mission-map-duration.is-selected{background:#fecaca!important;border-color:#dc2626!important;box-shadow:0 0 0 3px rgba(220,38,38,.16);transform:scaleX(1.16);}
.gf-mission-map-connector.is-hover,
.gf-mission-map-connector.is-selected{height:3px;background:#dc2626!important;box-shadow:0 0 0 3px rgba(220,38,38,.10);}
.gf-mission-map-connector.is-hover::after,
.gf-mission-map-connector.is-selected::after{background:#dc2626!important;transform:translateY(-50%) scale(1.16);}
.gf-mission-map-card.is-dimmed,
.gf-mission-map-duration.is-dimmed,
.gf-mission-map-connector.is-dimmed{opacity:.32;}
.gf-mission-map-card.is-selected{z-index:5;}

/* v226: przebudowa górnych paneli dashboardu studenta */
.gf-student-top-row-4 .card{height:100%;}
.gf-panel-separator{border:0;border-top:1px solid rgba(148,163,184,.32);margin:.85rem 0;}
.gf-more-btn{width:1.85rem;height:1.85rem;border-radius:999px;border:1px solid rgba(148,163,184,.55);background:#fff;color:#475569;display:inline-flex;align-items:center;justify-content:center;padding:0;box-shadow:0 .16rem .45rem rgba(15,23,42,.10);vertical-align:middle;}
.gf-more-btn:hover,.gf-more-btn:focus{color:#0f172a;border-color:rgba(37,99,235,.45);background:#eff6ff;outline:none;box-shadow:0 0 0 3px rgba(37,99,235,.12),0 .2rem .55rem rgba(15,23,42,.14);}
.gf-more-btn .gf-svg-icon{width:1rem;height:1rem;}
.gf-more-btn-lg{width:2.12rem;height:2.12rem;}
.gf-more-btn-lg .gf-svg-icon{width:1.12rem;height:1.12rem;}
.gf-more-btn-xs{width:1.35rem;height:1.35rem;margin-left:.25rem;}
.gf-more-btn-xs .gf-svg-icon{width:.78rem;height:.78rem;}
.gf-player-panel .card-title,.gf-stats-panel .card-title,.gf-wallet-panel .card-title,.gf-team-card .card-title{margin-bottom:.85rem!important;}
.gf-player-panel-inner{display:flex;flex-direction:column;min-height:100%;}
.gf-player-identity{text-align:center;}
.gf-profile-codename-strong{display:block;margin-top:.55rem;font-size:1.35rem;font-weight:800!important;color:#111827!important;text-decoration:none!important;line-height:1.12;}
.gf-profile-codename-strong:hover{color:#0f172a!important;text-decoration:none!important;}
.gf-player-line{display:flex;align-items:center;justify-content:space-between;gap:.85rem;}
.gf-player-big-number{font-size:2rem;line-height:1;font-weight:800;color:#111827;}
.gf-player-unit{font-size:1.05rem;color:#475569;font-weight:700;}
.gf-player-level-line{align-items:center;}
.gf-player-level-number{font-weight:800;font-size:1.05rem;color:#111827;}
.gf-player-level-title{font-weight:700;color:#334155;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.gf-score-main-compact{display:flex;align-items:center;justify-content:space-between;gap:.85rem;text-align:left;}
.gf-dashboard-date{display:inline-flex;align-items:center;gap:.15rem;color:#64748b;font-size:.68rem;white-space:nowrap;}
.gf-dashboard-date .gf-svg-icon{width:.72rem;height:.72rem;margin:0;}
.gf-team-name-line strong{display:block;margin-top:.15rem;font-size:1.05rem;color:#1f2937;text-decoration:none;}
.gf-wallet-action-grid{display:grid;gap:.55rem;}
.gf-wallet-action-btn{display:flex;align-items:center;justify-content:flex-start;gap:.65rem;border:1px solid rgba(148,163,184,.38);background:#fff;border-radius:1rem;padding:.52rem .65rem;text-align:left;color:#1f2937;font-weight:700;}
.gf-wallet-action-btn:hover,.gf-wallet-action-btn:focus{background:#f8fafc;border-color:rgba(37,99,235,.42);box-shadow:0 0 0 3px rgba(37,99,235,.10);}
.gf-wallet-action-icon{width:2rem;height:2rem;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--gf-color-currency,#2f7f7b) 12%,white);color:var(--gf-color-currency,#2f7f7b);flex:0 0 auto;}
.gf-wallet-action-icon .gf-svg-icon{width:1.08rem;height:1.08rem;}
.gf-course-title-actions .dropdown-menu{border:1px solid rgba(148,163,184,.35);border-radius:.9rem;box-shadow:0 .65rem 1.4rem rgba(15,23,42,.14);padding:.4rem;}
.gf-course-title-actions .dropdown-item{border-radius:.62rem;}
.gf-course-title-actions .dropdown-item:hover,.gf-course-title-actions .dropdown-item:focus{background:#eff6ff;color:#0f172a;}

/* v227: korekty górnych bloków dashboardu i sekcji zasobów */
.gf-student-top-row-4 .card-title{text-align:center;width:100%;}
.gf-player-panel .card-title,.gf-stats-panel .card-title,.gf-wallet-panel .card-title,.gf-team-card .card-title{text-align:center;}
.gf-course-scope .gf-profile-codename-strong{color:var(--gf-color-primary,#1f4f82)!important;text-align:center;}
.gf-score-main-centered{justify-content:center;text-align:center;position:relative;}
.gf-score-main-centered .gf-more-btn{position:absolute;right:0;top:50%;transform:translateY(-50%);}
.gf-course-scope .gf-team-name-line strong{font-size:1.18rem;color:var(--gf-color-primary,#1f4f82);text-decoration:none;text-align:center;}
.gf-course-scope .gf-team-score-main .display-6{font-size:2.1rem;color:var(--gf-color-points,#2563eb);}
.gf-course-scope .gf-wallet-panel .display-6{text-align:center;}
.gf-mini-label{display:block;font-size:.78rem;line-height:1.15;color:#64748b;font-weight:700;text-transform:none;letter-spacing:.01em;margin-bottom:.18rem;}
.gf-team-mini-list{display:flex;flex-wrap:wrap;justify-content:center;gap:.38rem .48rem;margin-top:.45rem;}
.gf-team-mini-member{display:inline-flex;align-items:center;gap:.28rem;border:1px solid rgba(148,163,184,.34);background:#fff;border-radius:999px;padding:.18rem .48rem .18rem .2rem;font-size:.76rem;font-weight:700;color:#334155;max-width:100%;}
.gf-team-mini-member img{width:1.45rem;height:1.45rem;border-radius:999px;object-fit:cover;border:1px solid rgba(15,23,42,.12);background:#f8fafc;}
.gf-team-mini-member-self{background:color-mix(in srgb,var(--gf-color-primary,#1f4f82) 8%,white);border-color:color-mix(in srgb,var(--gf-color-primary,#1f4f82) 32%,white);}
.gf-player-level-line{display:flex;justify-content:center!important;align-items:center!important;position:relative;text-align:center;min-height:2.25rem;width:100%;align-self:stretch;box-sizing:border-box;}
.gf-player-level-main{display:inline-flex;align-items:center;justify-content:center;gap:.65rem;width:auto;max-width:calc(100% - 5rem);min-width:0;margin-left:auto;margin-right:auto;padding:0;}
.gf-player-level-main--with-thumb{gap:.6rem;}
.gf-player-level-main--without-thumb{gap:.65rem;}
.gf-player-level-number{display:inline-flex;align-items:center;justify-content:center;width:2.1rem;height:2.1rem;min-width:2.1rem;flex:0 0 2.1rem;border-radius:999px;background:#eef2f6;color:#334155;font-weight:800;font-size:1rem;line-height:1;}
.gf-player-level-title{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.gf-player-level-line .gf-more-btn{position:absolute!important;right:0!important;top:50%!important;transform:translateY(-50%)!important;margin:0!important;z-index:2;}
.gf-player-big-number,.gf-score-main-centered .display-6{text-align:center;}
.gf-resource-chip-row{align-items:center;}
.gf-student-item-modal{display:none;}
.gf-student-item-modal.show{display:block;}


/* v228: korekty górnych bloków dashboardu */
.gf-player-panel .card-body{display:flex;flex-direction:column;justify-content:flex-start;}
.gf-player-panel .gf-profile-codename-strong{margin-left:auto!important;margin-right:auto!important;text-align:center!important;width:100%;}
.gf-player-life-line{justify-content:center!important;position:relative;text-align:center;min-height:2.25rem;}
.gf-player-life-line .gf-life-value{display:flex;align-items:baseline;justify-content:center;gap:.25rem;width:100%;}
.gf-player-life-line .gf-more-btn{position:absolute;right:0;top:50%;transform:translateY(-50%);}
.gf-course-scope .gf-team-name-line strong{font-size:1.32rem!important;line-height:1.12;font-weight:800;color:var(--gf-color-primary,#1f4f82)!important;}
.gf-course-scope .gf-team-score-main .display-6{font-size:1.82rem!important;line-height:1.05;}
.gf-player-panel .gf-mini-label{text-align:center;}

/* v241: korekty górnego menu i wyrównania paneli dashboardu */
.gf-course-title-row{align-items:flex-start!important;}
.gf-course-title-actions{align-items:flex-start!important;justify-content:flex-end!important;align-self:flex-start!important;}
.gf-course-title-actions .dropdown{align-self:flex-start;}
.gf-student-top-row-4{align-items:flex-start!important;}
.gf-student-top-row-4 > [class*="col-"]{display:flex;align-items:stretch;}
.gf-student-top-row-4 > [class*="col-"] > .card{width:100%;align-self:flex-start;}
@media (max-width:575.98px){
  .gf-course-title-row{align-items:flex-start!important;justify-content:space-between!important;gap:.5rem;}
  .gf-course-title-row > h1{flex:1 1 auto;min-width:0;}
  .gf-course-title-actions{margin-left:auto!important;flex:0 0 auto;display:flex!important;justify-content:flex-end!important;align-items:flex-start!important;}
  .gf-course-title-actions .dropdown-menu{right:0!important;left:auto!important;}
}

/* v243: modal bazaru — ustawianie oferty od góry */
.gf-bazaar-offer-form { align-items: flex-start !important; }
.gf-bazaar-offer-form .form-label { margin-bottom: .45rem; }
.gf-bazaar-submit-col { display: flex; align-items: flex-start; padding-top: 2.05rem; }
@media (max-width: 767.98px) { .gf-bazaar-submit-col { padding-top: 0; } }

/* v246: top-align modal action forms */
.gf-student-workshop-row,
.gf-bazaar-offer-form { align-items: flex-start !important; }
.gf-workshop-submit-col,
.gf-bazaar-submit-col { align-self: flex-start !important; padding-top: 0 !important; }
.gf-workshop-submit-col .btn,
.gf-bazaar-submit-col .btn { margin-top: 0 !important; }
@media (min-width: 768px) {
  .gf-student-workshop-row > [class*="col-"] { display: flex; flex-direction: column; justify-content: flex-start; }
}

/* v247: unified framed action forms in bazaar/gift/workshop modals */
.gf-modal-action-frame{
  border:1px solid rgba(148,163,184,.28);
  background:#f8fafc;
  border-radius:1rem;
  padding:1rem;
  margin:0;
  align-items:flex-start!important;
}
.gf-modal-action-frame > [class*="col-"]{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}
.gf-modal-action-submit-col{
  display:flex!important;
  flex-direction:column;
  justify-content:center!important;
  align-self:stretch!important;
  padding-top:0!important;
}
.gf-modal-action-submit-col .btn{margin-top:0!important;}
@media (max-width:767.98px){
  .gf-modal-action-submit-col{align-self:auto!important;justify-content:flex-start!important;}
}


/* v248: desktop/mobile unified modal action frames and safer title row spacing */
.gf-course-title-row{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:flex-start!important;
  gap:.75rem!important;
  width:100%;
}
.gf-course-title-row > h1{
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:none!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
.gf-course-title-actions{
  flex:0 0 auto!important;
  margin-left:auto!important;
  padding-right:.35rem!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  justify-content:flex-end!important;
  align-items:flex-start!important;
  gap:.5rem!important;
}
@media (max-width:575.98px){
  .gf-course-title-row{
    gap:.5rem!important;
    padding-right:.5rem!important;
  }
  .gf-course-title-row > h1{
    font-size:1.35rem!important;
    line-height:1.15!important;
    flex:1 1 calc(100% - 6rem)!important;
  }
  .gf-course-title-actions{
    padding-right:.35rem!important;
    gap:.4rem!important;
  }
}
.gf-bazaar-sell-section,
.gf-gift-send-section{
  border:1px solid rgba(148,163,184,.28)!important;
  background:#f8fafc!important;
  border-radius:1rem!important;
  padding:1rem!important;
  margin-bottom:1.25rem!important;
}
.gf-bazaar-sell-section > .gf-modal-action-frame,
.gf-gift-send-section > .gf-modal-action-frame,
.gf-modal-action-frame{
  border:0!important;
  background:transparent!important;
  border-radius:0!important;
  padding:0!important;
  margin:0!important;
  align-items:flex-start!important;
}
.gf-modal-action-frame > [class*="col-"]{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  align-self:flex-start!important;
}
.gf-modal-action-frame > .gf-modal-action-submit-col,
.gf-bazaar-submit-col.gf-modal-action-submit-col,
.gf-gift-submit-col.gf-modal-action-submit-col{
  align-self:stretch!important;
  justify-content:center!important;
  padding-top:0!important;
}
.gf-modal-action-submit-col .btn{
  margin-top:0!important;
}
@media (max-width:767.98px){
  .gf-bazaar-sell-section,
  .gf-gift-send-section{
    padding:.9rem!important;
  }
  .gf-modal-action-frame > .gf-modal-action-submit-col,
  .gf-bazaar-submit-col.gf-modal-action-submit-col,
  .gf-gift-submit-col.gf-modal-action-submit-col{
    align-self:auto!important;
    justify-content:flex-start!important;
  }
}

/* v249: compact, unified action forms in wallet modals */
.gf-student-workshop-form,
.gf-modal-action-section{
  border:1px solid rgba(148,163,184,.30)!important;
  background:#f8fafc!important;
  border-radius:1rem!important;
  padding:.75rem!important;
  margin:0 0 1rem 0!important;
}
.gf-modal-action-section > h3,
.gf-student-workshop-form > h3{
  margin-top:0!important;
  margin-bottom:.55rem!important;
}
.gf-modal-action-section .gf-modal-action-frame{
  border:0!important;
  background:transparent!important;
  border-radius:0!important;
  padding:0!important;
  margin:0!important;
  align-items:stretch!important;
}
@media (min-width:768px){
  .gf-modal-action-frame{
    flex-wrap:nowrap!important;
  }
}
.gf-modal-action-frame > [class*="col-"]{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  align-self:stretch!important;
  min-width:0!important;
}
.gf-modal-action-frame .form-label{
  margin-bottom:.28rem!important;
}
.gf-modal-action-frame .form-text{
  margin-top:.25rem!important;
}
.gf-modal-action-submit-col,
.gf-workshop-submit-col,
.gf-bazaar-submit-col,
.gf-gift-submit-col{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-self:stretch!important;
  padding-top:0!important;
  margin-top:0!important;
}
.gf-modal-action-submit-col .btn,
.gf-workshop-submit-col .btn,
.gf-bazaar-submit-col .btn,
.gf-gift-submit-col .btn{
  margin-top:0!important;
}
@media (max-width:767.98px){
  .gf-student-workshop-form,
  .gf-modal-action-section{
    padding:.7rem!important;
  }
  .gf-modal-action-frame{
    flex-wrap:wrap!important;
  }
  .gf-modal-action-submit-col,
  .gf-workshop-submit-col,
  .gf-bazaar-submit-col,
  .gf-gift-submit-col{
    justify-content:flex-start!important;
    align-self:auto!important;
  }
}


/* v250: definitive compact modal action form layout
   Jeden wzorzec dla warsztatu, bazaru i podarunków: pola przy górze,
   przycisk pionowo pośrodku, brak wychodzenia poza modal. */
.gf-student-workshop-form,
.gf-modal-action-section{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
  border:1px solid rgba(148,163,184,.32)!important;
  background:#f8fafc!important;
  border-radius:.9rem!important;
  padding:.65rem!important;
  margin:0 0 1rem 0!important;
}
.gf-student-workshop-form > h3,
.gf-modal-action-section > h3{
  margin:0 0 .45rem 0!important;
  line-height:1.2!important;
}
.gf-student-workshop-row.gf-modal-action-frame,
.gf-bazaar-offer-form.gf-modal-action-frame,
.gf-gift-form.gf-modal-action-frame{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  display:grid!important;
  gap:.55rem!important;
  align-items:start!important;
  overflow:visible!important;
}
.gf-student-workshop-row.gf-modal-action-frame{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,.78fr) minmax(6.6rem,.52fr)!important;}
.gf-bazaar-offer-form.gf-modal-action-frame{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(7.5rem,1fr)!important;}
.gf-gift-form.gf-modal-action-frame{grid-template-columns:minmax(0,1.45fr) minmax(0,.82fr) minmax(5.5rem,.55fr) minmax(0,1.35fr) minmax(7rem,.55fr)!important;}
.gf-modal-action-frame > [class*="col-"],
.gf-modal-action-frame > .gf-workshop-submit-col,
.gf-modal-action-frame > .gf-bazaar-submit-col,
.gf-modal-action-frame > .gf-gift-submit-col{
  box-sizing:border-box!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-self:stretch!important;
}
.gf-modal-action-frame > [class*="col-"]:not(.gf-modal-action-submit-col):not(.gf-workshop-submit-col):not(.gf-bazaar-submit-col):not(.gf-gift-submit-col){
  justify-content:flex-start!important;
}
.gf-modal-action-submit-col,
.gf-workshop-submit-col,
.gf-bazaar-submit-col,
.gf-gift-submit-col{
  justify-content:center!important;
  align-items:stretch!important;
  align-self:stretch!important;
  padding-top:0!important;
  margin-top:0!important;
}
.gf-modal-action-submit-col .btn,
.gf-workshop-submit-col .btn,
.gf-bazaar-submit-col .btn,
.gf-gift-submit-col .btn{
  width:100%!important;
  margin:0!important;
  white-space:normal!important;
}
.gf-modal-action-frame .form-label{margin:0 0 .25rem 0!important;line-height:1.2!important;}
.gf-modal-action-frame .form-control,
.gf-modal-action-frame .form-select{min-width:0!important;width:100%!important;max-width:100%!important;}
.gf-modal-action-frame .form-text{margin:.22rem 0 0 0!important;line-height:1.2!important;}
.gf-modal-action-frame [style*="display:none"]{display:none!important;}
@media (max-width: 991.98px){
  .gf-student-workshop-row.gf-modal-action-frame,
  .gf-bazaar-offer-form.gf-modal-action-frame,
  .gf-gift-form.gf-modal-action-frame{grid-template-columns:1fr 1fr!important;}
  .gf-modal-action-submit-col,
  .gf-workshop-submit-col,
  .gf-bazaar-submit-col,
  .gf-gift-submit-col{justify-content:flex-start!important;}
}
@media (max-width: 575.98px){
  .gf-student-workshop-form,
  .gf-modal-action-section{padding:.65rem!important;border-radius:.8rem!important;}
  .gf-student-workshop-row.gf-modal-action-frame,
  .gf-bazaar-offer-form.gf-modal-action-frame,
  .gf-gift-form.gf-modal-action-frame{grid-template-columns:1fr!important;gap:.5rem!important;}
}

.gf-site-footer{border-top:1px solid rgba(15,23,42,.08);background:#f8fafc;color:#64748b;font-size:.88rem;margin-top:1.5rem;}
.gf-site-footer-inner{max-width:1280px;margin:0 auto;padding:.85rem 1rem;display:flex;justify-content:center;align-items:center;gap:.55rem;flex-wrap:wrap;text-align:center;}
.gf-site-footer a{color:inherit;text-decoration:none;font-weight:600;}
.gf-site-footer a:hover{text-decoration:underline;}
.gf-site-footer-sep{opacity:.55;}
@media (max-width:575.98px){.gf-site-footer-inner{font-size:.82rem;padding:.75rem .9rem;gap:.35rem;}.gf-site-footer-sep{display:none;}.gf-site-footer-inner span,.gf-site-footer-inner a{width:100%;}}

/* v253 — compact avatar creator/table */
.gf-avatar-editor-form .form-label,
.gf-avatar-table .form-label{margin-bottom:.25rem;}
.gf-avatar-conditions{padding:.6rem .7rem!important;}
.gf-avatar-conditions .form-label{font-size:.82rem;margin-bottom:.2rem;}
.gf-avatar-conditions .gf-checkbox-cloud{gap:.35rem .45rem;max-height:7.5rem;overflow:auto;padding-right:.15rem;}
.gf-avatar-goal-check{margin-top:1.75rem;min-height:2rem;display:flex;align-items:center;gap:.35rem;}
.gf-avatar-table-main{display:grid;grid-template-columns:minmax(20rem,1fr) auto;gap:.65rem;align-items:start;min-width:0;}
.gf-avatar-table-main{align-items:flex-start;}
.gf-avatar-table-fields{min-width:0;}
.gf-avatar-table-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:.35rem;min-width:0;}
.gf-avatar-active-check{white-space:nowrap;margin-top:.25rem;display:flex;align-items:center;gap:.35rem;}
.gf-avatar-conditions-table{padding:.5rem .6rem!important;}
@media (max-width: 991.98px){
  .gf-avatar-goal-check{margin-top:.35rem;}
  .gf-avatar-table-main{grid-template-columns:minmax(16rem,1fr);}
  .gf-avatar-active-check{grid-column:1 / -1;margin-top:0;}
}

/* v259 — wymuszone kompaktowe kafelki sklepu: 6 desktop / 2 mobile */
#studentShopModal .gf-shop-grid,
.gf-shop-grid{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:.55rem!important;
  align-items:stretch;
}
#studentShopModal .gf-shop-card,
.gf-shop-card{min-width:0!important;}
#studentShopModal .gf-shop-card .card-body,
.gf-shop-card .card-body{padding:.5rem!important;}
#studentShopModal .gf-shop-card h3,
.gf-shop-card h3{font-size:.82rem!important;line-height:1.12!important;margin-bottom:.22rem!important;}
#studentShopModal .gf-shop-card p,
.gf-shop-card p{font-size:.68rem!important;line-height:1.14!important;margin-bottom:.38rem!important;}
#studentShopModal .gf-shop-img,
.gf-shop-img{height:78px!important;}
#studentShopModal .gf-shop-avatar-img,
.gf-shop-avatar-img{width:78px!important;height:78px!important;max-width:78px!important;max-height:78px!important;margin:.48rem auto .12rem auto!important;}
#studentShopModal .gf-shop-card .small.text-muted.mb-1{font-size:.64rem!important;line-height:1.05!important;margin-bottom:.14rem!important;}
#studentShopModal .gf-shop-card .btn{min-width:0!important;font-size:.72rem!important;line-height:1.1!important;padding:.24rem .3rem!important;}
#studentShopModal .gf-shop-unavailable-reason{
  font-size:.58rem!important;
  line-height:1.08!important;
  margin-top:.28rem!important;
  color:#6c757d!important;
}
.gf-team-members-details > summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;}
.gf-team-members-details > summary::-webkit-details-marker{display:none;}
.gf-team-member-picker{max-width:36rem;}
.gf-team-member-list{max-height:13rem;overflow:auto;display:grid;gap:.25rem;padding:.15rem;}
.gf-team-member-option{margin:0;padding:.25rem .35rem;border-radius:.45rem;}
.gf-team-member-option:hover{background:rgba(15,23,42,.05);}
@media (max-width: 767.98px){
  #studentShopModal .gf-shop-grid,
  .gf-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.5rem!important;}
  #studentShopModal .gf-shop-img,
  .gf-shop-img{height:72px!important;}
  #studentShopModal .gf-shop-avatar-img,
  .gf-shop-avatar-img{width:72px!important;height:72px!important;max-width:72px!important;max-height:72px!important;}
}

/* v260 — stabilizacja tabeli drużyn i widoczne checkboxy składu */
.gf-teams-table{table-layout:fixed;min-width:860px;}
.gf-teams-table .gf-teams-main-col{width:32%;}
.gf-teams-table .gf-teams-members-col{width:50%;}
.gf-teams-main-cell{vertical-align:top;}
.gf-teams-members-cell{vertical-align:top;}
.gf-teams-members-cell .gf-team-member-picker{max-width:none;width:100%;}
.gf-team-members-details{display:block;width:100%;}
.gf-team-members-details > summary{width:max-content;max-width:100%;}
.gf-team-member-list{grid-template-columns:1fr;}
.gf-team-member-option{
  display:flex!important;
  align-items:flex-start!important;
  gap:.45rem!important;
  min-height:1.55rem!important;
  cursor:pointer;
  padding:.28rem .4rem!important;
  border-radius:.45rem;
}
.gf-team-member-check{
  display:inline-block!important;
  flex:0 0 auto!important;
  width:1rem!important;
  height:1rem!important;
  margin:.12rem 0 0 0!important;
  opacity:1!important;
  visibility:visible!important;
  position:static!important;
  float:none!important;
  appearance:auto!important;
  -webkit-appearance:checkbox!important;
}
.gf-team-member-label{font-size:.82rem;line-height:1.18;}
@media (max-width: 767.98px){
  .gf-teams-table{min-width:760px;}
  .gf-teams-table .gf-teams-main-col{width:36%;}
  .gf-teams-table .gf-teams-members-col{width:44%;}
}

/* v260 — warunki w sklepie nad przyciskiem, bardzo małą czcionką */
#studentShopModal .gf-shop-unavailable-reason{
  font-size:.52rem!important;
  line-height:1.05!important;
  margin:.12rem 0 .24rem 0!important;
  min-height:1.1rem;
  color:#6c757d!important;
}


/* v261 task creator/editor refinements */
.gf-task-create-form > .col-lg-1 .form-label,
.gf-task-create-form > .col-lg-2 .form-label,
.gf-task-create-form > .col-lg-4 .form-label{white-space:nowrap;}
.gf-task-body-links .form-label{font-size:.72rem;}
.gf-task-rewards-horizontal{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;align-items:stretch;}
.gf-task-rewards-horizontal .gf-task-item-conditions{height:100%;}
.gf-task-editor-details{transition:background-color .15s ease,border-color .15s ease;}
.gf-task-editor-details[open]{background:#f8fafc!important;border-color:rgba(37,99,235,.28)!important;}
.gf-task-editor-details > summary{cursor:pointer;list-style:none;}
.gf-task-editor-details > summary::-webkit-details-marker{display:none;}
.gf-task-editor-details > summary::before{content:'▸';display:inline-block;margin-right:.35rem;transition:transform .15s ease;}
.gf-task-editor-details[open] > summary::before{transform:rotate(90deg);}
.gf-task-editor-table{min-width:1720px;}
.gf-task-editor-body .gf-scroll-sync-top{margin-top:.5rem;}
.gf-task-editor-body .gf-task-advanced-details{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:.75rem;padding:.75rem;}
.gf-task-create-form .gf-task-life-penalty.opacity-50,
.gf-task-editor-details .gf-task-life-penalty.opacity-50{opacity:.55!important;}
@media (max-width: 991.98px){.gf-task-rewards-horizontal{grid-template-columns:1fr;}.gf-task-create-form > .col-lg-1 .form-label,.gf-task-create-form > .col-lg-2 .form-label,.gf-task-create-form > .col-lg-4 .form-label{white-space:normal;}}

/* v263: komunikaty ukryte do czasu sprawdzenia localStorage, żeby zamknięte belki nie migały przy odświeżaniu. */
.gf-announcements-pending .gf-announcement-bar { display: none !important; }

/* v267: szersze pola progów procentowych w kreatorze zadań */
.gf-task-create-form .gf-task-item-reward-table td:last-child{width:6.4rem;min-width:6.4rem;}
.gf-task-create-form .gf-task-item-reward-table .input-group{min-width:5.8rem;}
.gf-task-create-form .gf-task-item-threshold,
.gf-task-create-form .gf-percent-3digits{min-width:3.7rem;max-width:none;}

/* v268: szersze pola progów nagród w kreatorze zadań */
.gf-task-create-form .gf-task-rewards-horizontal .gf-task-item-reward-table td:first-child{width:68%;}
.gf-task-create-form .gf-task-rewards-horizontal .gf-task-item-reward-table td:last-child{width:32%;min-width:7.5rem;}
.gf-task-create-form .gf-task-rewards-horizontal .gf-task-item-threshold,
.gf-task-create-form .gf-task-rewards-horizontal .gf-percent-3digits{min-width:5.2rem;}


/* v273: ujednolicenie paddingu kreatora Zadań z kreatorem Treści */
.gf-creator-inner-frame{
  padding:1rem!important;
  margin-top:1rem!important;
}

/* v281: komunikator kursu */
.gf-messenger-btn { white-space: nowrap; border-radius: 999px; }
.gf-messenger-btn-unread { box-shadow: 0 0 0 .18rem rgba(13,110,253,.12); }
.gf-messenger-layout { display: grid; grid-template-columns: minmax(250px, 31%) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.gf-messenger-contacts { border: 1px solid rgba(0,0,0,.1); background: #f8f9fa; border-radius: 1rem; padding: .75rem; min-width: 0; }
.gf-messenger-contacts-head { font-size: .78rem; color: #6c757d; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 .55rem .15rem; }
.gf-messenger-contacts .list-group { max-height: 58vh; overflow: auto; border-radius: .85rem; }
.gf-messenger-contacts .list-group-item { text-align: left; }
.gf-messenger-thread { min-width: 0; border: 1px solid rgba(0,0,0,.1); background: #fff; border-radius: 1rem; padding: .75rem; }
.gf-messenger-thread-title { border: 1px solid rgba(0,0,0,.08); background: #f8f9fa; border-radius: .85rem; padding: .65rem .85rem; margin-bottom: .75rem; }
.gf-messenger-history { border: 1px solid rgba(0,0,0,.08); background: #f4f6f8; border-radius: 1rem; padding: .85rem; min-height: 300px; max-height: 52vh; overflow: auto; }
.gf-message-row { display: flex; margin: .4rem 0; }
.gf-message-row-mine { justify-content: flex-end; }
.gf-message-row-other { justify-content: flex-start; }
.gf-message-bubble { max-width: min(78%, 620px); border: 1px solid rgba(0,0,0,.08); border-radius: 1.05rem; padding: .55rem .7rem .32rem; box-shadow: 0 .15rem .45rem rgba(0,0,0,.035); }
.gf-message-bubble-mine { background: #e7f1ff; border-bottom-right-radius: .35rem; border-color: rgba(13,110,253,.16); }
.gf-message-bubble-other { background: #fff; border-bottom-left-radius: .35rem; }
.gf-message-body { text-align: left; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.gf-message-meta { display: flex; gap: .5rem; justify-content: flex-end; align-items: center; font-size: .62rem; color: #8a8f94; margin-top: .25rem; line-height: 1; }
.gf-message-bubble-other .gf-message-meta { justify-content: flex-start; }
.gf-messenger-compose textarea { resize: vertical; }
@media (max-width: 767.98px) {
  .gf-messenger-layout { grid-template-columns: 1fr; }
  .gf-messenger-contacts .list-group { max-height: 220px; }
  .gf-message-bubble { max-width: 94%; }
}

/* v282: kompaktowy nagłówek kursu i komunikator */
.gf-course-title-row{display:flex;flex-wrap:nowrap;align-items:center;gap:.5rem;}
.gf-course-title-row > h1,
.gf-course-title-row > div:first-child{min-width:0;flex:1 1 auto;}
.gf-course-title-row h1{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.gf-course-title-actions{flex:0 0 auto;display:flex;align-items:center;gap:.35rem;max-width:45%;}
@media (max-width:575.98px){
  .gf-course-title-row{align-items:center!important;}
  .gf-course-title-actions{width:auto!important;max-width:38%;justify-content:flex-end!important;margin-left:auto!important;flex-wrap:nowrap!important;}
  .gf-course-title-row h1{font-size:1.18rem;line-height:1.2;margin-bottom:0!important;}
}
.gf-story-header-btn{background:var(--gf-primary);border-color:var(--gf-primary);color:#fff;}
.gf-story-header-btn:hover,
.gf-story-header-btn:focus,
.gf-story-header-btn:active,
.gf-story-header-btn.show{background:transparent!important;border-color:var(--gf-primary)!important;color:var(--gf-primary)!important;}
.gf-messenger-btn{position:relative;display:inline-flex!important;align-items:center;justify-content:center;gap:.5rem;padding:.28rem .5rem!important;border-radius:.65rem!important;white-space:nowrap;min-width:3.45rem;}
.gf-messenger-btn .gf-svg-icon{width:1.35rem;height:1.35rem;flex:0 0 auto;}
.gf-messenger-btn-unread{box-shadow:0 0 0 .16rem rgba(220,53,69,.14)!important;}
.gf-messenger-count{position:static;min-width:1.35rem;height:1.35rem;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-size:.68rem;line-height:1;padding:0 .28rem;flex:0 0 auto;}
.gf-messenger-layout{grid-template-columns:minmax(210px,28%) minmax(0,1fr);}
.gf-messenger-contacts{padding:.55rem;}
.gf-messenger-contacts .list-group{max-height:58vh;overflow:auto;}
.gf-messenger-contacts .list-group-item{padding:.42rem .52rem;font-size:.88rem;line-height:1.15;}
.gf-messenger-contact-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.gf-messenger-contact-label strong{font-weight:650;}
@media (max-width:767.98px){
  .gf-messenger-layout{grid-template-columns:1fr;}
  .gf-messenger-contacts .list-group{max-height:220px;}
  .gf-message-bubble{max-width:94%;}
}

/* v285: komunikator — wyrównanie badge i prosty znacznik nauczyciela */
.gf-messenger-count{
  margin-top:.18rem;
  line-height:1!important;
  vertical-align:middle;
}
.gf-teacher-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1rem;
  height:1rem;
  margin-left:.38rem;
  color:currentColor;
  opacity:.78;
  vertical-align:-.14em;
  flex:0 0 auto;
}
.gf-teacher-mark svg{
  width:1rem;
  height:1rem;
  fill:none;
  stroke:currentColor;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.gf-messenger-contact-label{
  display:inline-flex;
  align-items:center;
  gap:0;
  max-width:100%;
}
.gf-messenger-contact-label strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.gf-messenger-thread-title .gf-teacher-mark{
  vertical-align:-.12em;
}

/* v289: komunikator — kompaktowy symbol nauczyciela i wyrównanie licznika wiadomości */
.gf-messenger-count{
  margin-top:.22rem!important;
  align-self:center;
}
.gf-teacher-mark{
  display:inline-flex!important;
  width:.88rem!important;
  height:.88rem!important;
  margin-left:.28rem!important;
  opacity:.72;
  vertical-align:-.08em!important;
  align-items:center;
  justify-content:center;
}
.gf-teacher-mark svg{
  width:.88rem!important;
  height:.88rem!important;
  stroke-width:2!important;
}
.gf-messenger-thread-title .gf-teacher-mark{
  width:.95rem!important;
  height:.95rem!important;
  vertical-align:-.1em!important;
}
.gf-messenger-thread-title .gf-teacher-mark svg{
  width:.95rem!important;
  height:.95rem!important;
}

/* v298: adaptacyjny górny rząd dashboardu uczestnika i awatary domyślne */
.gf-student-top-row-adaptive{align-items:stretch!important;}
.gf-student-top-row-adaptive > .gf-top-panel-wrap{display:flex;align-items:stretch;}
.gf-student-top-row-adaptive > .gf-top-panel-wrap > .card{width:100%;height:100%;}
.gf-top-count-1 > .gf-top-panel-wrap > .card,
.gf-top-count-2 > .gf-top-panel-wrap > .card{min-height:15rem;}
.gf-top-count-2.gf-top-mode-wide > .gf-top-panel-wrap > .card,
.gf-top-count-2.gf-top-mode-auto > .gf-top-panel-wrap > .card{min-height:14.5rem;}
.gf-top-count-2 .gf-profile-avatar-only img{width:120px;height:120px;}
.gf-top-count-2 .gf-profile-codename-strong{font-size:1.55rem;}
.gf-top-count-2 .gf-score-main-centered .display-6{font-size:3rem;}
.gf-top-mode-compact > .gf-top-panel-wrap > .card{min-height:auto;}
.gf-avatar-choice-card-active::after{content:attr(data-active-label);position:absolute;top:.55rem;right:.55rem;border-radius:999px;background:var(--gf-color-primary,#1f4f82);color:#fff;font-size:.72rem;font-weight:700;padding:.14rem .5rem;box-shadow:0 .25rem .65rem rgba(15,23,42,.18);}
.gf-avatar-choice-card{position:relative;}
@media (min-width:1200px){
  .gf-top-count-1 > .gf-top-panel-wrap{max-width:760px;}
}
@media (max-width:1199.98px){
  .gf-top-count-2 .gf-score-main-centered .display-6{font-size:2.45rem;}
  .gf-top-count-2 .gf-profile-avatar-only img{width:108px;height:108px;}
}

/* v302: dependent reward blocks in level creator */
.gf-level-reward-box-disabled {
  opacity: .55;
  background: #f4f5f7 !important;
}
.gf-level-reward-box-disabled .form-check-label,
.gf-level-reward-box-disabled .fw-semibold,
.gf-level-reward-box-disabled label {
  color: #6c757d;
}

/* v306: wygodniejsze accordiony i tabele administracyjne kohort/użytkowników */
.gf-task-editor-details > summary{
  padding:.9rem 1rem .9rem 1.25rem;
}
.gf-task-editor-details > summary::before{
  margin-left:.15rem;
  margin-right:.5rem;
}
.gf-admin-users-scroll,
.gf-admin-cohort-members-scroll{
  max-height:62vh;
  overflow:auto;
}
.gf-admin-users-scroll table,
.gf-admin-cohort-members-scroll table{
  min-width:1050px;
}

/* v307: mocniejsze odsunięcie znaczników i treści summary w accordionach */
.gf-task-editor-details > summary{
  position:relative;
  list-style:none!important;
  list-style-type:none!important;
  padding:1rem 1.25rem 1rem 2.75rem!important;
  min-height:3.1rem;
}
.gf-task-editor-details > summary::marker{
  content:'';
  display:none;
}
.gf-task-editor-details > summary::-webkit-details-marker{
  display:none!important;
}
.gf-task-editor-details > summary::before{
  position:absolute;
  left:1.15rem;
  top:50%;
  margin:0!important;
  transform:translateY(-50%);
}
.gf-task-editor-details[open] > summary::before{
  transform:translateY(-50%) rotate(90deg);
}
.gf-task-editor-details > summary .badge{
  margin-left:.35rem;
}

/* v330: wider score modal tables and compact feedback preview */
.gf-score-details-table .gf-score-value-col,
.gf-score-value-col{
  min-width: 8.5rem;
  white-space: nowrap;
}
.gf-score-details-table .gf-feedback-cell{
  min-width: 16rem;
  max-width: 32rem;
}
.gf-feedback-cell-text.gf-feedback-cell-clamped{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gf-feedback-cell-hint{
  font-size: .72rem;
  line-height: 1.1;
  color: rgba(108,117,125,.72);
  margin-top: .1rem;
}

/* v331: dwa miejsca po przecinku w górnych panelach i jaśniejszy segment bonusowy */
.gf-dashboard-number{display:inline-flex;align-items:baseline;justify-content:center;white-space:nowrap;line-height:1;}
.gf-dashboard-number-main{line-height:1;}
.gf-dashboard-number-decimal{font-size:.5em;line-height:1;font-weight:inherit;margin-left:.02em;}
.gf-top-panel-points .gf-dashboard-number-wrap,
.gf-top-panel-currency .gf-dashboard-number-wrap{font-size:2.45rem!important;line-height:1.02;}
.gf-dashboard-number-team{font-size:1.82rem!important;}
@media (max-width:767.98px){
  .gf-top-panel-points .gf-dashboard-number-wrap,
  .gf-top-panel-currency .gf-dashboard-number-wrap{font-size:2.65rem!important;}
  .gf-top-panel-team .gf-dashboard-number-team{font-size:1.82rem!important;}
}

.gf-character-class-profile-link { text-decoration: none; line-height: 1.2; }
.gf-character-class-badge { font-weight: 700; }
.gf-team-mini-member { align-items: center; }
.gf-team-mini-class { display:block; font-size:.68rem; line-height:1.05; color:var(--bs-secondary-color); max-width:72px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* v356: klasy postaci - wybór startowy i kolorowane etykiety */
.gf-character-class-badge{
  box-shadow: 0 .08rem .16rem rgba(15,23,42,.12);
}
.gf-team-mini-class .gf-character-class-badge{
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gf-start-class-modal .modal-content{
  background: radial-gradient(circle at top left, rgba(31,79,130,.08), transparent 32%), var(--bs-body-bg);
}
.gf-start-class-modal-body{
  overflow:auto;
}
.gf-start-story-card{
  background: rgba(255,255,255,.82);
}
.gf-class-choice-card{
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.gf-class-choice-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 .35rem 1rem rgba(15,23,42,.12);
}
.gf-class-choice-card:has(input:checked){
  border-color: var(--bs-primary)!important;
  box-shadow: 0 0 0 .18rem rgba(var(--bs-primary-rgb),.16);
}
.gf-task-character-classes-notice .gf-character-class-badge{
  vertical-align: middle;
}

/* v359: estetyczny komunikat braku dostępu do kursu */
.gf-course-access-denied{min-height:calc(100vh - 170px);}
.gf-course-access-denied-card{max-width:520px;margin:auto;padding:2rem 1rem;}
.gf-course-access-denied-icon{width:56px!important;height:56px!important;max-width:56px!important;max-height:56px!important;object-fit:contain;margin-bottom:1rem;filter:drop-shadow(0 8px 14px rgba(15,23,42,.12));}

.gf-character-class-admin-thumb{
  width:56px;
  height:56px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
}
.gf-character-class-modal-image{
  width:100%;
  max-height:220px;
  object-fit:cover;
  border-radius:1rem;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
}
.gf-character-class-other-thumb{
  width:44px;
  height:44px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.12);
  flex:0 0 auto;
  background:#fff;
}
.gf-character-class-choice-image{
  width:100%;
  max-height:150px;
  object-fit:cover;
  border-radius:1rem;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
}

/* v383: kreator klas postaci - spójność ramek i tabel */
.gf-character-class-create-frame{
  background:#f8f9fa;
}
.gf-character-class-description-box{
  background:transparent;
  border:1px solid rgba(15,23,42,.16);
  border-radius:1rem;
  padding:1rem;
}
.gf-character-class-create-frame .gf-character-class-description-box{
  margin-top:.25rem;
}
[data-gf-content-block="table"][data-table-header-row="1"] tr:first-child .gf-table-cell-input,
[data-gf-content-block="table"][data-table-header-col="1"] tr .gf-content-table-cell:first-child .gf-table-cell-input{
  font-weight:700;
  background:#f8f9fa;
}

/* v385: dopracowanie zakładki Klasy postaci */
.gf-character-classes-card{
  border:1px solid rgba(15,23,42,.10) !important;
  box-shadow:0 .25rem .75rem rgba(15,23,42,.08) !important;
  background:#fff !important;
}
.gf-character-class-layout-row{
  margin-bottom:.35rem;
}
.gf-character-class-layout-row:last-child{
  margin-bottom:0;
}
.gf-character-class-description-box{
  margin-top:.25rem;
}
.gf-character-class-description-box [data-gf-content-block]{
  margin-bottom:.5rem;
}
.gf-character-class-description-box [data-gf-content-block]:last-child{
  margin-bottom:0;
}

/* v386: dopracowanie odstępów i układu planszy startowej */
.gf-character-classes-card{ margin-bottom:1.35rem!important; }
.gf-character-class-layout-row{ margin-bottom:.6rem!important; }
.gf-character-class-layout-rows > .gf-character-class-layout-row + .gf-character-class-layout-row{ margin-top:.45rem!important; }
.gf-content-render-flow{display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-start;}
.gf-content-render-unit{width:100%;min-width:0;}
@media (min-width: 768px){
  .gf-content-render-col-6{width:calc(50% - .5rem);}
  .gf-content-render-col-3{width:calc(25% - .75rem);}
}
.gf-onboarding-modal .modal-body{background:#f6f8fb;}
.gf-onboarding-body-card{background:#fff;border:1px solid rgba(15,23,42,.12);box-shadow:0 .25rem 1rem rgba(15,23,42,.08);}
.gf-class-choice-card .gf-character-class-desc-block{font-size:.88rem;}
.gf-class-choice-card .gf-character-class-desc-block h4{font-size:.9rem;}
.gf-class-choice-card .gf-character-class-desc-block .table{font-size:.82rem;}


/* v387: korekta odstępów w zakładce Klasy postaci */
.gf-character-classes-card{ margin-bottom:1.55rem!important; }
.gf-character-class-layout-row{ margin-bottom:.25rem!important; }
.gf-character-class-layout-rows > .gf-character-class-layout-row + .gf-character-class-layout-row{ margin-top:.15rem!important; }

/* v388: plansza startowa — rzędy/poziomy centrowane i podgląd nauczyciela */
.gf-content-render-flow{display:block;}
.gf-content-render-row{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem;align-items:flex-start;width:100%;margin-bottom:1rem;}
.gf-content-render-row:last-child{margin-bottom:0;}
.gf-content-render-unit{width:100%;min-width:0;}
@media (min-width: 768px){
  .gf-content-render-col-6{width:calc(50% - .5rem);}
  .gf-content-render-col-3{width:calc(25% - .75rem);}
}

/* v390: wyrównanie tekstu w edytorach blokowych i prostych polach z B/I/U. */
.gf-text-align-left{display:block;text-align:left;}
.gf-text-align-center{display:block;text-align:center;}
.gf-text-align-right{display:block;text-align:right;}

/* v395 rubric grading */
.gf-rubric-grade-grid{display:flex;flex-wrap:wrap;gap:.5rem;align-items:stretch}
.gf-rubric-grade-box{background:#fff;border:1px solid rgba(0,0,0,.12);border-radius:.75rem;padding:.5rem;min-width:180px;flex:1 1 180px}
.gf-rubric-editor{border-color:rgba(0,0,0,.12)!important}

/* v397: pola wyliczane automatycznie w ocenianiu mają wyglądać jak zablokowane, ale pozostają wysyłane w formularzu. */
.gf-grade-locked-field[readonly],
.gf-grade-locked-field:read-only {
  background-color: #e9ecef;
  opacity: 1;
  color: #6c757d;
  cursor: not-allowed;
}
.task-state-partial{border:1px solid #fd7e14;color:#fd7e14;}

/* v421: pełna ramka i tło statusu „wykonano częściowo” */
.task-state-badge.task-state-partial{
  display:block;
  border:1px solid #fd7e14!important;
  color:#b45309!important;
  background:#fff7ed!important;
  border-radius:.65rem;
  padding:.28rem .55rem;
}

/* v424: status wykonano częściowo ma wyglądać jak wykonano, z dopiskiem częściowo. */
.task-state-badge.task-state-partial{
  border:1px solid #198754!important;
  color:#343a40!important;
  background:transparent!important;
  border-radius:.65rem;
  padding:.28rem .55rem;
}

/* Debate manual assignment table: compact layout for large groups */
.gf-debate-manual-table th,
.gf-debate-manual-table td{
  padding-top:3px !important;
  padding-bottom:3px !important;
  vertical-align:middle;
}
.gf-debate-manual-table .form-check-input{
  margin-top:0;
}

/* v447: listy w prostym edytorze opisu zadania. */
.gf-formatted-task-body .gf-task-inline-list{margin:.35rem 0 .75rem;padding-left:1.5rem;}
.gf-formatted-task-body .gf-task-inline-list li+li{margin-top:.15rem;}

/* v472: center resource card descriptions, including formatted paragraphs. */
.gf-student-item-card .gf-student-item-desc,
.gf-student-item-card .gf-student-item-desc * { text-align: center !important; }

/* Resource grids: archives never collapse; inventory preview is responsive. */
.gf-resource-preview .gf-resource-chip-row,.gf-resource-grid .gf-resource-chip-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem}
.gf-resource-preview .gf-resource-chip,.gf-resource-grid .gf-resource-chip{min-width:0;max-width:100%;width:100%}
.gf-resource-preview .gf-resource-chip-text,.gf-resource-grid .gf-resource-chip-text{flex-wrap:wrap;gap:.15rem .3rem;min-width:0}
.gf-resource-preview .gf-resource-chip-name,.gf-resource-grid .gf-resource-chip-name{max-width:100%}
.gf-resource-preview .gf-resource-chip-text>.badge{font-size:.6rem}
.gf-resource-preview .gf-resource-chip-used{filter:none;opacity:.85}
.gf-resource-preview [hidden]{display:none!important}
.gf-resource-preview .gf-resource-expand{flex-shrink:0;white-space:normal}
@media(max-width:767px){
 .gf-resource-preview .gf-resource-chip-row,.gf-resource-grid .gf-resource-chip-row{grid-template-columns:minmax(0,1fr)}
}

/* v487: small rarity overlay leaves the shop description untouched. */
.gf-shop-image-wrap{position:relative;flex-shrink:0;}
.gf-shop-rarity{position:absolute;top:5px;right:5px;max-width:calc(100% - 10px);pointer-events:none;}
.gf-shop-rarity .badge{display:block;font-size:.58rem;line-height:1.15;padding:.18rem .3rem;max-width:100%;white-space:normal;overflow-wrap:anywhere;box-shadow:0 1px 3px #0003;}

/* Map filters must also work outside the course styling wrapper. */
[data-gf-dep-graph-card] .is-filtered-out{display:none!important;}

/* v491: compact material tiles and spacing scoped to course materials. */
.gf-content-tile.task-card{min-height:0;}
.gf-content-tile .gf-content-short{min-height:0;max-height:3.75em;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;}
.gf-material-body .gf-content-render-row{row-gap:.5rem;margin-bottom:.5rem;}
.gf-material-body .gf-content-render-row:last-child{margin-bottom:0;}
.gf-material-body .gf-content-render-unit > *{margin-top:0!important;margin-bottom:0!important;}
.gf-material-body > p{margin-bottom:.5rem;}
.gf-material-body .alert{padding:.65rem .8rem;}
.gf-material-body .gf-content-render-unit > hr{margin:.35rem 0!important;}
.gf-material-body .table{margin-bottom:0;}
.gf-material-body a{overflow-wrap:anywhere;}
.gf-content-link-button{white-space:normal;text-align:left;}

/* v492: chronological resource route, responsive and keyboard accessible. */
.gf-route-tools{display:flex;gap:.8rem;align-items:end;flex-wrap:wrap;margin-bottom:1.25rem;}
.gf-route-tools>label:not(.form-check){flex:1 1 240px;font-size:.85rem;}
.gf-route-stages{border-left:3px solid var(--gf-color-primary,#d9e4ef);padding-left:1.2rem;margin-left:.4rem;}
.gf-route-stage{position:relative;padding:0 0 1.4rem;}
.gf-route-stage:before{content:"";position:absolute;left:-1.65rem;top:.1rem;width:.7rem;height:.7rem;background:var(--gf-color-primary,#245486);border-radius:50%;}
.gf-route-stage>h3{font-weight:700;margin-bottom:.3rem;}
.gf-route-nodes{display:flex;flex-wrap:wrap;gap:.65rem;align-items:start;}
.gf-route-node{flex:1 1 220px;max-width:380px;background:#fff;border:1px solid #dce3eb;border-radius:.8rem;box-shadow:0 2px 6px #00000008;overflow-wrap:anywhere;}
.gf-route-node>summary{padding:.65rem .85rem;cursor:pointer;}
.gf-route-node>summary strong{display:block;margin-top:.2rem;}
.gf-route-node[open]{flex-basis:360px;max-width:600px;}
.gf-route-node.is-selected{border:2px solid var(--gf-color-primary,#245486);}
.gf-route-node summary:focus-visible{outline:3px solid #86b7fe;outline-offset:2px;}
.gf-route-relations{padding:.3rem .85rem .75rem;border-top:1px solid #edf0f4;}
.gf-route-relations h4{font-size:.8rem;font-weight:700;margin:.65rem 0 .35rem;}
.gf-route-relations ul{padding-left:1.1rem;margin:0;}
.gf-route-relations li{margin-bottom:.45rem;}
.gf-route-map [hidden]{display:none!important;}
@media(max-width:576px){.gf-route-node,.gf-route-node[open]{flex-basis:100%;max-width:100%;}.gf-route-stages{padding-left:.8rem;}.gf-route-stage:before{left:-1.25rem;}}

.gf-route-node{border-left-width:4px;}
.gf-route-type-task{border-left-color:var(--gf-color-tasks,#245486);}
.gf-route-type-item{border-left-color:var(--gf-color-items,#916d24);}
.gf-route-type-badge{border-left-color:var(--gf-color-badges,#8054a1);}
.gf-route-type-content{border-left-color:var(--gf-color-contents,#377d73);}
.gf-route-type-avatar{border-left-color:var(--gf-color-avatars,#5573b6);}
.gf-route-type-level{border-left-color:var(--gf-color-levels,#aa7833);}

/* v496: compact benefits, aligned with the reward frame. */
.task-modal-meta.gf-task-extra-benefits{font-size:.78rem!important;line-height:1.3;}
.gf-task-extra-benefits .gf-extra-benefit-item{color:var(--gf-color-items,#146c43);font-weight:600;}
.gf-task-extra-benefits .gf-extra-benefit-badge{color:var(--gf-color-badges,#5b3f8c);font-weight:600;}

/* v498: reward names and stacking/centering fixes. */
.gf-task-reward-summary .gf-reward-entry{display:inline-block;margin-inline-start:.85rem;}
.gf-task-reward-summary .gf-reward-points{color:var(--gf-color-points,#1e3a8a);}
.gf-task-reward-summary .gf-reward-currency{color:var(--gf-color-currency,#b45309);}
.gf-task-reward-summary .gf-modal-item-rewards{color:var(--gf-color-items,#146c43);}
.gf-task-reward-summary .gf-modal-badge-rewards{color:var(--gf-color-badges,#5b3f8c);}
.gf-mission-map-stage{isolation:isolate;}
.gf-mission-map-connector{z-index:1;}
.gf-mission-map-card{z-index:2;}
@media(min-width:768px){
 .gf-modal-action-frame > .gf-workshop-submit-col,
 .gf-modal-action-frame > .gf-bazaar-submit-col,
 .gf-modal-action-frame > .gf-gift-submit-col{display:flex!important;flex-direction:column!important;justify-content:center!important;align-self:stretch!important;padding-top:0!important;}
}

/* Dashboard help floats above the layout; Bootstrap Popper anchors its arrow. */
.gf-help-popover{z-index:1090;max-width:min(22rem,calc(100vw - 24px));--bs-popover-bg:#172b45;--bs-popover-border-color:#172b45;--bs-popover-body-color:#fff;--bs-popover-body-padding-x:.7rem;--bs-popover-body-padding-y:.55rem;box-shadow:0 3px 12px #172b4530}
.gf-help-popover .popover-body{color:#fff}
.gf-help-note{margin:0;padding:0;max-width:100%;color:inherit;font-size:.8rem;line-height:1.4;text-align:left;white-space:normal;overflow-wrap:anywhere}
.gf-help-note strong{display:block;margin-bottom:.2rem;font-size:inherit}
.gf-help-mobile{position:static;max-height:40vh;overflow:auto}
.gf-help-highlight{outline:3px solid #245ca0!important;outline-offset:3px}
#gf-dashboard-help-toggle{font-weight:700;min-width:2.1rem}
.gf-help-note .btn{color:#172b45;background:#fff;border:1px solid #93a9c2}
.gf-help-note .btn:hover,.gf-help-note .btn:focus-visible{color:#fff;background:#245ca0;border-color:#fff}
