/* WT Kursy – katalog, karta kursu, odtwarzacz lekcji (panel i strona). */
.wtk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.wtk-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line, #e6e3ee); border-radius: 18px; overflow: hidden; }
.wtk-cover { display: block; aspect-ratio: 16 / 9; background: #efe6fa center / cover no-repeat; }
.wtk-cover-empty { display: grid; place-items: center; color: #8e5db5; }
.wtk-cover-empty .wtp-ic { width: 42px; height: 42px; stroke-width: 1.4; }
.wtk-mock .wtk-cover-empty { background: #fff1cc; color: #7a5200; }
.wtk-group .wtk-cover-empty { background: #e4f6ec; color: #1d6b43; }
.wtk-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.wtk-kind { font-size: 12.5px; font-weight: 700; color: #8e5db5; }
.wtk-mock .wtk-kind { color: #9a6700; }
.wtk-group .wtk-kind { color: #1d6b43; }
.wtk-title { font-family: var(--serif, Georgia, serif); font-size: 20px; line-height: 1.25; color: var(--ink, #17152e) !important; text-decoration: none !important; }
.wtk-sub { margin: 0; font-size: 14px; color: var(--ink-2, #3e3b55); }
.wtk-meta { font-size: 13px; color: var(--muted, #77758a); }
.wtk-seats { font-size: 13px; font-weight: 600; color: #1d6b43; }
.wtk-seats.full { color: #9b1c12; }
.wtk-me { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wtk-prog { display: inline-flex; align-items: center; gap: 6px; }
.wtk-prog .wtp-bar { width: 90px; }
.wtk-acts { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.wtk-price { font-size: 17px; }
.wtk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.wtk-head h2 { margin: 4px 0 6px; font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: 28px; }
.wtk-progress { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.wtk-progress .wtp-bar { flex: 1; max-width: 360px; }
.wtk-join { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: #f6f1fc; border: 1px solid #ebe1f7; border-radius: 16px; padding: 16px 18px; margin-bottom: 18px; }
.wtk-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.wtk-curr { background: #fff; border: 1px solid var(--line, #e6e3ee); border-radius: 16px; padding: 8px; }
.wtk-sec + .wtk-sec { margin-top: 6px; }
.wtk-sec-title { padding: 10px 10px 6px; font-size: 12.5px; font-weight: 700; color: var(--muted, #77758a); }
.wtk-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink, #17152e) !important; text-decoration: none !important; font-size: 14px; }
a.wtk-item:hover { background: #f6f1fc; }
.wtk-item.on { background: #efe6fa; font-weight: 600; }
.wtk-item.locked { color: var(--muted, #77758a) !important; }
.wtk-item-t { flex: 1; }
.wtk-item small { color: var(--muted, #77758a); font-size: 12px; }
.wtk-free { color: #1d6b43 !important; font-weight: 600; }
.wtk-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #f1ecf7; color: #6b4a9b; flex: none; }
.wtk-dot .wtp-ic { width: 14px; height: 14px; }
.wtk-item.done .wtk-dot { background: #2e7a58; color: #fff; }
.wtk-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #111; margin: 10px 0 16px; }
.wtk-video iframe, .wtk-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wtk-item-title { margin: 0 0 6px; font-size: 22px; }
.wtk-desc { line-height: 1.65; }
.wtk-desc img { max-width: 100%; height: auto; border-radius: 10px; }
.wtk-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line, #e6e3ee); flex-wrap: wrap; }
.wtk-sessions { margin: 0; padding-left: 18px; line-height: 1.8; }
.wtk-edit-sec { margin-bottom: 12px; }
.wtk-edit-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
/* Strona publiczna */
.wtk-public { max-width: 1120px; margin: 0 auto; }
.wtk-pub-sec { margin: 36px 0; }
.wtk-pub-h { font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: 28px; margin: 0 0 16px; }
.wtk-pub-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; margin-top: 10px; }
.wtk-pub-hero h1 { font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; margin: 6px 0 12px; }
.wtk-lead { font-size: 18px; color: var(--ink-2, #3e3b55); margin: 0 0 20px; }
.wtk-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.wtk-facts li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line, #e6e3ee); border-radius: 12px; }
.wtk-facts span { font-size: 12.5px; color: var(--muted, #77758a); }
.wtk-buy { position: sticky; top: 24px; background: #fff; border: 1px solid var(--line, #e6e3ee); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(23, 21, 46, .08); }
.wtk-buy-cover { aspect-ratio: 16 / 9; background: #efe6fa center / cover no-repeat; }
.wtk-buy-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.wtk-buy-price { font-family: var(--serif, Georgia, serif); font-size: 32px; }
.wtk-login { font-size: 13px; text-align: center; }
.wtk-acc { border: 1px solid var(--line, #e6e3ee); border-radius: 14px; margin-bottom: 10px; background: #fff; }
.wtk-acc summary { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
.wtk-acc summary::-webkit-details-marker { display: none; }
.wtk-acc summary span { color: var(--muted, #77758a); font-size: 14px; }
.wtk-acc ul { list-style: none; margin: 0; padding: 0 16px 12px; }
.wtk-acc li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #f2f0f6; font-size: 15px; }
.wtk-acc li span { flex: 1; }
.wtk-acc li em { font-style: normal; font-size: 12.5px; color: #1d6b43; font-weight: 600; }
.wtk-acc li small { color: var(--muted, #77758a); }
.wtk-acc .wtp-ic { width: 16px; height: 16px; color: #8e5db5; }
.wtk-pub-cta { text-align: center; margin: 30px 0 10px; }
@media (max-width: 900px) {
	.wtk-layout, .wtk-pub-hero { grid-template-columns: 1fr; }
	.wtk-buy { position: static; }
}
/* Dostępne kursy – delikatne „mrugnięcie”, że można się zapisać */
.wtk-avail-head { display: flex; align-items: center; gap: 14px; margin: 26px 0 6px; padding: 16px 18px; border: 1px solid var(--line, #e6e3ee); border-radius: 16px; background: #fff; }
.wtk-avail-head h2 { margin: 0; font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: 22px; }
.wtk-avail-head p { margin: 2px 0 0; color: var(--muted, #77758a); font-size: 14px; }
.wtk-pulse { width: 12px; height: 12px; border-radius: 50%; background: #2e7a58; flex: none; box-shadow: 0 0 0 0 rgba(46, 122, 88, .5); animation: wtk-pulse 1.8s infinite; }
@keyframes wtk-pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 122, 88, .45); } 70% { box-shadow: 0 0 0 12px rgba(46, 122, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 122, 88, 0); } }
.wtk-nav-new { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #2e7a58; color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; animation: wtk-pulse 1.8s infinite; }
.wtk-card .wtp-btn.sm:not(.line) { position: relative; }
@media (prefers-reduced-motion: reduce) { .wtk-pulse, .wtk-nav-new { animation: none; } }
/* Kreator programu (styl Tutor LMS) */
.wtk-builder-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.wtk-b-sec { background: #fff; border: 1px solid var(--line, #e6e3ee); border-radius: 14px; margin-bottom: 12px; }
.wtk-b-sec.dragging, .wtk-b-item.dragging { opacity: .45; }
.wtk-b-sec.over { box-shadow: 0 0 0 2px var(--ink, #17152e) inset; }
.wtk-b-sec-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f2f0f6; }
.wtk-b-toggle { border: 0; background: none; cursor: pointer; font-size: 14px; width: 22px; }
.wtk-b-title { font-size: 15.5px; }
.wtk-grip { cursor: grab; color: #b3afc0; letter-spacing: -2px; user-select: none; }
.wtk-b-items { padding: 6px 10px 12px; }
.wtk-b-item { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 10px; border: 1px solid transparent; }
.wtk-b-item:hover { background: #faf9fc; border-color: #efedf4; }
.wtk-b-item.over { border-color: var(--ink, #17152e); }
.wtk-b-item-t { flex: 1; text-align: left; border: 0; background: none; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 1px; color: var(--ink, #17152e); }
.wtk-b-item-t small { color: var(--muted, #77758a); font-size: 12px; }
.wtk-b-add { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px; }
.wtk-b-newsec { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px; border: 1px dashed #d8d4e2; border-radius: 14px; }
.wtk-b-newsec input { flex: 1; min-width: 220px; }
.wtk-rich { border: 1px solid var(--line-2, #dcd8e6); border-radius: 12px; overflow: hidden; background: #fff; }
.wtk-rich-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid #f0eef4; background: #fbfbfc; }
.wtk-rich-bar button { min-width: 32px; height: 30px; border: 0; background: none; border-radius: 6px; cursor: pointer; font: inherit; font-weight: 600; }
.wtk-rich-bar button:hover { background: #eeecf3; }
.wtk-rich-ed { min-height: 180px; max-height: 50vh; overflow: auto; padding: 12px 14px; line-height: 1.6; outline: none; }
.wtk-rich-ed:focus { box-shadow: inset 0 0 0 2px #e7e3f3; }
/* Quiz */
.wtk-q { border: 1px solid var(--wtp-line, #e6e3ee); border-radius: 12px; padding: 12px; margin: 0 0 10px; background: #fff; }
.wtk-q-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.wtk-q textarea { width: 100%; }
.wtk-q-opt { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.wtk-q-opt .txt { flex: 1; }
.wtk-quiz-clock { position: sticky; top: 0; z-index: 2; background: #17152e; color: #fff; padding: 8px 14px; border-radius: 10px; font-weight: 700; display: inline-block; margin-bottom: 12px; }
.wtk-quiz-clock.low { background: #b42318; }
.wtk-quiz-q { border: 1px solid var(--wtp-line, #e6e3ee); border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; }
.wtk-quiz-q legend { font-weight: 600; padding: 0 4px; }
.wtk-quiz-opt { display: flex; gap: 8px; align-items: flex-start; padding: 6px 4px; cursor: pointer; }
.wtk-quiz-q.ok { border-color: #8bd3a0; background: #f2fbf4; }
.wtk-quiz-q.bad { border-color: #f1a7a1; background: #fff6f5; }
.wtk-quiz-q li.correct { font-weight: 600; color: #1f6b3a; }
.wtk-quiz-q li.sel:not(.correct) { color: #b42318; }
