/* auditfix-nov6 – poprawki z audytu 6.11 (kosmetyka, kursor, telefon). Ładowane jako ostatni arkusz. */

/* R3: rączka na checkboxach, przełącznikach i klikalnych etykietach */
label.chk, label.chk *, label.rmChk, label.rmChk *, label:has(> input[type=checkbox]), label:has(> input[type=radio]),
input[type=checkbox], input[type=radio], [role=switch], .switch, .tgl, #rmBotLv > b, label[for] { cursor: pointer !important; }
input[type=checkbox]:disabled, input[type=radio]:disabled, label:has(> input:disabled) { cursor: not-allowed !important; }

/* C8: checkboxy w kolorze strony (zamiast domyślnego niebieskiego) */
input[type=checkbox], input[type=radio] { accent-color: #f5c542; }
label.chk input[type=checkbox], .rmForm input[type=checkbox], .slSet input[type=checkbox], .sbFilters input[type=checkbox] { width: 17px; height: 17px; vertical-align: -3px; margin-right: 6px; }

/* C8: selecty (data urodzenia, tworzenie serwera, ustawienia lobby, filtry) w stylu formularza rejestracji */
.wkBox select, .wkDob select, .rmForm select, .slSet select, .sbFilters select, #panel select {
  appearance: none; -webkit-appearance: none; cursor: pointer; color: #fff; font: inherit; font-size: 15px;
  min-height: 40px; padding: 8px 30px 8px 12px; border-radius: 10px; border: 1px solid #7ef9ff44;
  background-color: #0a1230;
  background-image: linear-gradient(45deg, transparent 50%, #f5c542 50%), linear-gradient(135deg, #f5c542 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.wkBox select:focus, .wkDob select:focus, .rmForm select:focus, .slSet select:focus, .sbFilters select:focus, #panel select:focus { outline: none; border-color: #f5c542; box-shadow: 0 0 0 3px #f5c54233; }
.wkBox select option, .wkDob select option, .rmForm select option, .slSet select option, .sbFilters select option, #panel select option { background: #0d1636; color: #fff; }
.wkDob { gap: 8px; }

/* C1: telefon – awatar w profilu nie wchodzi na „Zmień awatar” */
@media (max-width: 820px) {
  .pv .pvAvW .ava, .pv .pvAvW .pvAv { width: 96px !important; height: 96px !important; }
  .pv .pvAvBtn { position: relative; z-index: 2; }
}

/* C2: telefon – Skarbiec VIPek: „+ NIESPODZIANKA…” w osobnej linii pod tytułem, tytuł poniżej salda i ✕ */
@media (max-width: 600px) {
  .vcHd { margin-top: 30px !important; }
  #vcTt { display: block !important; text-align: center; }
  #vcTt .vcNsp { display: block !important; width: auto !important; margin: 6px auto 0 !important; font-size: 12px !important; white-space: nowrap; }
}

/* C3: pasek boczny VIP – ramka nie ściska się, „Przedłuż VIP” zawsze widoczne */
aside.side .vipbox { flex-shrink: 0 !important; }
@media (max-height: 860px) and (min-width: 901px) {
  aside.side .vipbox.vb2 .vbSlides { min-height: 0; }
  aside.side .vipbox.vb2 { padding-top: 10px; padding-bottom: 10px; }
}

/* C4: misje – tytuł do 3 linii */
.misBox .mBody .mtop b, .pfMis .mBody .mtop b, #navuxPfMis .mBody .mtop b { -webkit-line-clamp: 3 !important; -webkit-box-orient: vertical; }

/* C5/C6: sklep i ekwipunek – nazwa do 3 linii, opis do 2 linii (pełny tekst w podpowiedzi) */
.si.sc > b { -webkit-line-clamp: 3 !important; -webkit-box-orient: vertical; max-height: 3.5em !important; }
.si.sc > small { white-space: normal !important; display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: 2.4em !important; min-height: 2.4em !important; line-height: 1.2; }

/* C7: Start – TOP lista: więcej miejsca na nick (węższa kolumna punktów i ligi), wiersz „Ty” w tej samej siatce */
@media (min-width: 821px) {
  html .home .rcol .rank #top5 li, html .home .rcol .rank .mine, html .home .rcol .rank #mine.mine { grid-template-columns: 26px 48px minmax(36px, 1fr) minmax(46px, 62px) 40px !important; }
}

/* C9: zakładka czatu globalnego nie leży na otwartych ustawieniach; głośnik na ekranie logowania (telefon) nie na karcie */
body.panelOpen #gcTab { opacity: 0 !important; pointer-events: none !important; }
@media (max-width: 600px) {
  body:has(#auth:not([hidden])) #acSnd:not(.inTop) { top: auto !important; bottom: 10px !important; }
}

/* C11: Ranking – karta „Twoja pozycja” bez pustego pasa u góry */
.szTop > .szMe { justify-content: flex-start !important; align-self: start; }

/* C12: Start 1920 – PREMIERA: karty nie rozciągnięte na całą wysokość */
@media (min-width: 1500px) {
  .home:not(.navuxA3Phone) > .rcol > .hPremiere { flex: 0 0 auto !important; }
  .home:not(.navuxA3Phone) > .rcol > .hPremiere .premRow { align-items: stretch !important; flex: 0 0 auto !important; }
  .home:not(.navuxA3Phone) > .rcol > .hPremiere .premCard { justify-content: center !important; min-height: 0 !important; height: auto !important; flex: 1 1 0 !important; }
}

/* C13: wybór bohatera – dłuższe nazwy (np. „Bot treningowy”) w 2 liniach */
.c2Tx .nkT { white-space: normal !important; max-width: 100% !important; display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.15; overflow-wrap: anywhere; }
/* C13: telefon – „Poziom botów” w treści ekranu zamiast pływającego okna */
#rmBotLv.afInFlow { position: static !important; right: auto !important; bottom: auto !important; left: auto !important; top: auto !important; width: auto !important; max-width: none !important; margin: 6px 0 8px !important; z-index: auto !important; }

/* C14: „Zaproś do drużyny” – napis mieści się w przycisku */
#acPartyBar .ptInv { min-width: max-content !important; overflow: visible !important; }

/* C16: Zagraj – jednolite miejsce na ikonę w mini-kafelkach */
.zagA .miniTiles .miniT > svg, .zagA .miniTiles .miniT > .miniArt, .zagA .miniTiles .miniT > .miniArtIco, .zagA .miniTiles .miniT > .invStack {
  flex: 0 0 auto !important; height: 32px !important; max-height: 32px !important; margin: 0 0 4px !important; }
.zagA .miniTiles .miniT > svg { width: 28px !important; }
.zagA .miniTiles .miniT > .miniArt { width: 32px !important; }
.zagA .miniTiles .miniT > .miniArtIco { width: 32px !important; justify-content: flex-start; }
.zagA .miniTiles .miniT > .miniArtIco svg { width: 28px !important; height: 28px !important; }
.zagA .miniT.inv > .invStack { position: static !important; display: flex !important; align-items: center !important; right: auto !important; bottom: auto !important; }
.zagA .miniTiles .miniT > .invStack img { width: 24px !important; height: 24px !important; min-width: 24px !important; max-width: 24px !important; margin-left: -8px !important; }
.zagA .miniTiles .miniT > .invStack img:first-child { margin-left: 0 !important; }
.zagA .miniT.inv > .invStack .invPlus { width: 20px !important; height: 20px !important; line-height: 20px !important; font-size: 14px !important; margin-left: 4px !important; }

/* dodatkowo (znalezione przy sprawdzaniu): Misje – napis postępu („0 / 1”, „0k / 6k”) był ucięty w 8-pikselowym pasku */
.mcard .mbar { height: 14px !important; border-radius: 7px; }
.mcard .mbar > i { height: 100%; }
.mcard .mbar > em { position: absolute !important; inset: 0; display: block; text-align: center; font-size: 10px !important; line-height: 14px !important; height: 14px !important; }

/* C12 cd.: PREMIERA na szerokim ekranie – karty wyśrodkowane w pionie, większe grafiki */
@media (min-width: 1500px) {
  .home:not(.navuxA3Phone) > .rcol > .hPremiere { display: flex !important; flex-direction: column !important; }
  .home:not(.navuxA3Phone) > .rcol > .hPremiere .premRow { margin-top: auto !important; margin-bottom: auto !important; }
  .home:not(.navuxA3Phone) > .rcol > .hPremiere .premCard img { width: 112px !important; height: 112px !important; max-height: 112px !important; object-fit: contain; }
}

/* auditfix-nov6b: lobby – siatka map w „Ustawieniach serwera” zawsze w całości (bez wewnętrznego przewijania i ucinania kafli) */
@media (min-height: 521px) {
  #rsMapBox .mwGrid, #rsMapBox .mwGrid.sm { max-height: none !important; overflow: visible !important; }
}
/* telefon (pion): karta ustawień w naturalnej wysokości, kolumna bez obcinania – przewija się cała strona pokoju */
@media (max-width: 900px) and (min-height: 521px) {
  #room .slMain:not(.csMode) .slSide { overflow: visible !important; height: auto !important; max-height: none !important; }
  #room .slSide .slSet { max-height: none !important; overflow: visible !important; flex: 0 0 auto !important; }
  #room .slSide .slChat { flex: 0 0 auto !important; }
}
/* desktop: karta ustawień nie ucina map; gdy kolumna jest za niska (np. 1280×800), przewija się cała prawa kolumna, a czat zostaje pod spodem */
@media (min-width: 901px) and (min-height: 521px) {
  #room .slMain:not(.csMode) .slSide { overflow-y: auto !important; overflow-x: hidden !important; scrollbar-width: thin; }
  #room .slSide .slSet { max-height: none !important; overflow: visible !important; flex: 0 0 auto !important; }
  #room .slSide .slChat { flex: 1 0 auto !important; }
}
/* auditfix-nov6c: karta ustawień nie przewija się już w środku – nagłówek „Ustawienia serwera” bez przyklejania (nie nachodzi na mapy przy przewijaniu kolumny) */
@media (min-height: 521px) {
  #room .slSide .slSet > summary { position: static !important; top: auto !important; }
}

/* auditfix-nov6d: czat zadokowany na ekranie wyboru bohatera (zamiast wysuwanej szuflady CZAT) */
body.afCsDock #acChat#acChat, body.afCsDock.cs2Chat #acChat#acChat { display: none !important; visibility: hidden !important; }
body.afCsDock .c2Tab { display: none !important; }
.afCsChat { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; border-radius: 14px; min-height: 0; box-sizing: border-box; }
.afCsChat > h4 { margin: 0; font: 800 13px Barlow, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #7ef9ff; }
.afCsChat .afLog { flex: 1 1 auto; min-height: 60px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; font-size: 13px; background: #0004; border-radius: 10px; padding: 6px 8px; }
.afCsChat .afLog .afEmpty { margin: auto; color: #9aa3d9; font-size: 12.5px; text-align: center; }
.afCsChat .afF { display: flex; gap: 6px; }
.afCsChat .afF input { flex: 1 1 auto; min-width: 0; padding: 7px 10px; border-radius: 10px; border: 1px solid #7ef9ff44; background: #0a1230; color: #fff; font: inherit; font-size: 14px; }
.afCsChat .afF input:focus { outline: none; border-color: #f5c542; box-shadow: 0 0 0 3px #f5c54233; }
.afCsChat .afF button { flex: 0 0 auto; }
@media (min-width: 821px) {
  body.afCsDock .cs2 .c2L { display: flex !important; flex-direction: column; min-height: 0; }
  body.afCsDock .cs2 .c2L > .c2List { flex: 0 0 auto; }
  .cs2 .c2L > .afCsChat { flex: 1 1 auto; margin-top: 12px; max-height: 520px; }
}
@media (max-width: 820px) {
  .cs2 .c2Main > .afCsChat { margin: 12px 0 90px; height: 240px; min-height: 240px; flex: 0 0 240px; order: 99; }
}

/* auditfix-nov6e: wybór bohatera – równe marginesy na telefonie (zakładka CZAT schowana, więc bez prawego „rynsztoka” 40px i lewego 0) */
@media (max-width: 820px) {
  html body.afCsDock .cs2 .c2Main { padding-left: max(12px, env(safe-area-inset-left)) !important; padding-right: max(12px, env(safe-area-inset-right)) !important; box-sizing: border-box; }
}
/* auditfix-nov6f: telefon poziomo / aplikacja Android (900×415) – czat LEWA kolumna (ostatecznie).
   phonelobby ma 3 kolumny (drużyny | scena | siatka) + display:contents na .c2Ctr; dokładamy 4. kolumnę z lewej
   i przesuwamy phonelobby o +1 (z !important, bo phonelobby też używa !important). */
@media (orientation: landscape) and (max-height: 500px), (max-height: 480px) and (min-width: 700px) {
  html body.afCsDock .cs2 .c2Main {
    grid-template-columns: clamp(140px, 16vw, 175px) clamp(110px, 15vw, 140px) clamp(140px, 19vw, 180px) minmax(0, 1fr) !important;
    padding-left: max(6px, env(safe-area-inset-left)) !important;
    padding-right: max(6px, env(safe-area-inset-right)) !important;
  }
  html body.afCsDock.cs2Chatable .cs2 .c2Main {
    padding-right: max(6px, env(safe-area-inset-right)) !important;
    padding-left: max(6px, env(safe-area-inset-left)) !important;
  }
  /* czat: cała wysokość, skrajna lewa */
  html body.afCsDock .cs2 .c2Main > .afCsChat {
    grid-column: 1 !important; grid-row: 1 / -1 !important; order: 0 !important;
    height: auto !important; min-height: 0 !important; max-height: none !important;
    flex: none !important; margin: 0 !important; padding: 6px 6px 8px !important;
    z-index: 2;
  }
  html body.afCsDock .cs2 .c2Main > .afCsChat .afLog { min-height: 0 !important; }
  /* drużyny: była kolumna 1 → teraz 2 */
  html body.afCsDock .cs2 .c2L { grid-column: 2 !important; }
  html body.afCsDock .cs2 .c2R { grid-column: 2 !important; }
  /* scena / głosowanie / zatwierdź: była 2 → teraz 3 */
  html body.afCsDock .cs2 .csStage,
  html body.afCsDock .cs2.mvOn .csStage { grid-column: 3 !important; }
  html body.afCsDock .cs2 .mvStrip,
  html body.afCsDock .cs2.mvOn .mvStrip { grid-column: 3 !important; }
  html body.afCsDock .cs2 .c2Act,
  html body.afCsDock .cs2.mvOn .c2Act { grid-column: 3 !important; }
  /* siatka bohaterów: była 3 → teraz 4 */
  html body.afCsDock .cs2 .c2Under,
  html body.afCsDock .cs2.mvOn .c2Under { grid-column: 4 !important; }

  /* hs3-nov6: listy drużyn – wszyscy 5 graczy widać bez scrolla (czat zostaje w kol. 1) */
  html body.afCsDock .cs2 .c2Main {
    grid-template-columns: clamp(132px, 15vw, 165px) clamp(118px, 16vw, 148px) clamp(168px, 22vw, 210px) minmax(0, 1fr) !important;
  }
  html body.afCsDock .cs2 .c2L,
  html body.afCsDock .cs2 .c2R {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
  }
  html body.afCsDock .cs2 .c2Team { gap: 1px !important; }
  html body.afCsDock .cs2 .c2Team h4 {
    font-size: 8px !important; line-height: 1.05 !important; margin: 0 !important; padding: 0 !important; flex: 0 0 auto !important;
  }
  html body.afCsDock .cs2 .c2Team .c2List {
    display: flex !important; flex-direction: column !important; gap: 1px !important;
    flex: 1 1 auto !important; min-height: 0 !important; overflow: hidden !important;
  }
  html body.afCsDock .cs2 .c2P,
  html body.afCsDock .cs2 .c2Team.compact .c2P {
    flex: 1 1 0 !important; min-height: 0 !important; height: auto !important; max-height: none !important;
    padding: 1px 2px !important; gap: 2px !important; box-sizing: border-box !important;
  }
  html body.afCsDock .cs2 .c2P,
  html body.afCsDock .cs2 .c2Team.compact .c2P {
    overflow: hidden !important;
    align-items: center !important;
  }
  html body.afCsDock .cs2 .c2Hr,
  html body.afCsDock .cs2 .c2P .ava,
  html body.afCsDock .cs2 .ava.c2Av,
  html body.afCsDock .cs2 .c2Team.compact .ava.c2Av,
  html body.afCsDock .cs2 .ava.abot,
  html body.afCsDock .cs2 .ava.abot.chAv,
  html body.afCsDock .cs2 .ava.abot.c2Av {
    width: 12px !important; height: 12px !important; min-width: 12px !important; max-width: 12px !important;
    min-height: 12px !important; max-height: 12px !important;
    flex: none !important;
    font-size: 9px !important; line-height: 1 !important;
    display: inline-grid !important; place-items: center !important;
    overflow: hidden !important; box-sizing: border-box !important;
    border-radius: 50% !important;
    contain: paint !important;
  }
  html body.afCsDock .cs2 .ava.abot {
    font-size: 8px !important;
    transform: scale(0.92);
    transform-origin: center center;
  }
  html body.afCsDock .cs2 .c2Hr {
    width: 12px !important; height: 12px !important; overflow: hidden !important; border-radius: 3px !important;
  }
  html body.afCsDock .cs2 .c2Hr img {
    width: 100% !important; height: 100% !important; max-width: 12px !important; max-height: 12px !important;
    object-fit: contain !important; display: block !important;
  }
  html body.afCsDock .cs2 .c2P .c2Nm,
  html body.afCsDock .cs2 .c2P b,
  html body.afCsDock .cs2 .c2P .nm,
  html body.afCsDock .cs2 .c2Tx b { font-size: 9px !important; line-height: 1.05 !important; }
  html body.afCsDock .cs2 .c2P .c2Meta,
  html body.afCsDock .cs2 .c2P .c2Pts,
  html body.afCsDock .cs2 .c2P small { display: none !important; }

  /* hs3-nov6b: więcej wysokości na mapy (rząd 2), niższy pasek akcji – 2×3 kafle w całości */
  /* hs6: równe połowy dla blue/red (wcześniej 1fr/1.4fr = niebieska ściśnięta) */
  html body.afCsDock .cs2 .c2Main {
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto !important;
  }
  /* hs5-nov6: avatars fit + Losowa tag; hs4-nov6: kafelek podglądu bohatera wypełnia rząd 1 (step1+step2) – bez pustki nad mapami */
  html body.afCsDock .cs2 .csStage,
  html body.afCsDock .cs2.mvOn .csStage {
    width: 100% !important; max-width: none !important;
    height: 100% !important; min-height: 0 !important; max-height: none !important;
    align-self: stretch !important; box-sizing: border-box !important;
  }
  html body.afCsDock .cs2 .csArt,
  html body.afCsDock .cs2.mvOn .csArt {
    height: 96% !important; max-width: 58% !important;
    right: 0 !important; bottom: 0 !important; left: auto !important;
    transform: none !important; object-fit: contain !important; object-position: bottom right !important;
  }
  html body.afCsDock .cs2 .csInfo,
  html body.afCsDock .cs2.mvOn .csInfo {
    left: 8px !important; right: auto !important; top: 50% !important; bottom: auto !important;
    transform: translateY(-50%) !important;
    max-width: min(50%, calc(100% - 16px)) !important;
    max-height: calc(100% - 10px) !important;
    gap: 3px !important; overflow: hidden !important;
  }
  html body.afCsDock .cs2 .csStage .csName,
  html body.afCsDock .cs2.mvOn .csStage .csName {
    font-size: 16px !important; line-height: 1.05 !important;
  }
  html body.afCsDock .cs2 .csStage .csRole,
  html body.afCsDock .cs2.mvOn .csStage .csRole {
    font-size: 10px !important; line-height: 1.1 !important;
  }
  html body.afCsDock .cs2 .csStage .csSkinN,
  html body.afCsDock .cs2.mvOn .csStage .csSkinN {
    font-size: 11px !important; line-height: 1.1 !important;
  }
  html body.afCsDock .cs2 .mvStrip,
  html body.afCsDock .cs2.mvOn .mvStrip {
    overflow: hidden !important; max-height: none !important; height: 100% !important;
    min-height: 0 !important; padding: 2px 3px 2px !important; gap: 2px !important;
    align-self: stretch !important; box-sizing: border-box !important;
  }
  html body.afCsDock .cs2 .mvHead { margin: 0 !important; gap: 1px !important; flex: 0 0 auto !important; }
  html body.afCsDock .cs2 .mvHead b { font-size: 10px !important; }
  html body.afCsDock .cs2 .mvGrid,
  html body.afCsDock .cs2 .mvGrid.n4,
  html body.afCsDock .cs2 .mvGrid.n5,
  html body.afCsDock .cs2 .mvGrid.n6 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    gap: 3px !important;
    flex: 1 1 auto !important; min-height: 0 !important;
  }
  html body.afCsDock .cs2 .mvGrid.n5 > .mvT:nth-child(n) { grid-column: auto !important; }
  html body.afCsDock .cs2 .mvT {
    padding: 2px !important; gap: 1px !important; min-height: 0 !important;
    height: 100% !important; cursor: pointer !important;
    display: flex !important; flex-direction: column !important;
  }
  html body.afCsDock .cs2 .mvT .mwI {
    aspect-ratio: auto !important; flex: 1 1 auto !important;
    min-height: 28px !important; max-height: none !important; height: auto !important;
  }
  html body.afCsDock .cs2 .mvT.mvRand {
    overflow: hidden !important;
  }
  html body.afCsDock .cs2 .mvT.mvRand .mwI {
    min-height: 0 !important; max-height: none !important; height: auto !important;
    padding: 1px 0 1px !important; gap: 1px !important;
    display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: flex-start !important;
    overflow: visible !important; aspect-ratio: auto !important;
  }
  html body.afCsDock .cs2 .mvT.mvRand .mwI .mvRandTag {
    position: relative !important; top: auto !important; left: auto !important; right: auto !important;
    flex: 0 0 auto !important; z-index: 3 !important;
    font-size: 5.5px !important; line-height: 1.05 !important; font-weight: 900 !important;
    padding: 1px 2px !important; margin: 0 auto !important;
    max-width: calc(100% - 6px) !important; width: auto !important;
    white-space: normal !important; overflow: hidden !important;
    letter-spacing: -0.02em !important; text-transform: uppercase !important;
    text-align: center !important; box-sizing: border-box !important;
    transform: none !important;
    /* 2 linie: LOSUJE / SERWER */
    display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2 !important;
    word-break: break-word !important;
  }
  html body.afCsDock .cs2 .mvT.mvRand .mwI > .mvDiceBox {
    flex: 1 1 auto !important; min-height: 16px !important; width: 100% !important;
    overflow: hidden !important; position: relative !important; height: auto !important;
  }
  html body.afCsDock .cs2 .mvT.mvRand .mwI > .mvDiceBox > img.mvDice {
    max-width: 90% !important; max-height: 100% !important;
  }
  html body.afCsDock .cs2 .mvT b {
    font-size: 9px !important; line-height: 1.1 !important;
    height: auto !important; min-height: 2em !important; max-height: 2.2em !important;
    flex: 0 0 auto !important;
    display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2 !important;
    white-space: normal !important; overflow: hidden !important; text-overflow: ellipsis;
    padding: 0 1px !important; text-align: center !important;
  }
  html body.afCsDock .cs2 .c2Act,
  html body.afCsDock .cs2.mvOn .c2Act {
    padding: 1px 0 0 !important; gap: 2px !important; min-height: 0 !important;
    align-self: end !important;
  }
  html body.afCsDock .cs2 .c2Act .btn {
    min-height: 30px !important; height: 30px !important; padding: 3px 6px !important;
    font-size: 12px !important; line-height: 1.1 !important;
  }

  /* hs6-nov6: awatary ~18px + równe wiersze drużyn + czytelny input czatu */
  html body.afCsDock .cs2 .c2L,
  html body.afCsDock .cs2 .c2R {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    align-self: stretch !important;
    overflow: hidden !important;
  }
  html body.afCsDock .cs2 .c2Team,
  html body.afCsDock .cs2 .c2L > .c2Team,
  html body.afCsDock .cs2 .c2R > .c2Team {
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }
  html body.afCsDock .cs2 .c2Team h4 {
    flex: 0 0 auto !important;
    font-size: 8px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    padding: 0 1px !important;
  }
  html body.afCsDock .cs2 .c2Team .c2List {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    overflow: hidden !important;
  }
  html body.afCsDock.cs2On .cs2 .c2P,
  html body.afCsDock .cs2 .c2P,
  html body.afCsDock .cs2 .c2Team.compact .c2P {
    flex: 1 1 0 !important;
    min-height: 26px !important;
    max-height: none !important;
    height: auto !important;
    padding: 2px 4px !important;
    gap: 3px !important;
    overflow: hidden !important;
    align-items: center !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    contain: paint !important;
  }
  /* awatary graczy ~18px, pierścień, tło/nick-fx widoczne */
  html body.afCsDock.cs2On .cs2 .c2P .ava,
  html body.afCsDock.cs2On .cs2 .c2P .ava.c2Av,
  html body.afCsDock.cs2On .cs2 .c2P .ava.abot,
  html body.afCsDock.cs2On .cs2 .c2P .ava.chAv,
  html body.afCsDock.cs2On .cs2 .c2P .ava.abot.chAv,
  html body.afCsDock.cs2On .cs2 .c2P .ava.abot.c2Av,
  html body.afCsDock.cs2On .cs2 .c2Team.compact .ava.c2Av,
  html body.afCsDock .cs2 .c2P .ava,
  html body.afCsDock .cs2 .ava.c2Av,
  html body.afCsDock .cs2 .c2Team.compact .ava.c2Av,
  html body.afCsDock .cs2 .ava.abot,
  html body.afCsDock .cs2 .ava.abot.chAv,
  html body.afCsDock .cs2 .ava.abot.c2Av {
    width: 20px !important; height: 20px !important;
    min-width: 20px !important; max-width: 20px !important;
    min-height: 20px !important; max-height: 20px !important;
    flex: 0 0 20px !important;
    font-size: 11px !important; line-height: 1 !important;
    overflow: hidden !important; border-radius: 50% !important;
    box-sizing: border-box !important;
    border: 1px solid #7ef9ffaa !important;
    box-shadow: inset 0 0 0 1px #ffffff22, 0 0 4px #7ef9ff33 !important;
    outline: none !important; filter: none !important;
    display: inline-grid !important; place-items: center !important;
    position: relative !important; transform: none !important;
    margin: 0 !important; align-self: center !important;
    background-size: cover !important; background-position: center 18% !important;
    contain: none !important;
  }
  html body.afCsDock .cs2 .c2P .ava.abot,
  html body.afCsDock .cs2 .ava.abot {
    font-size: 12px !important;
    color: #cfd6ff !important;
  }
  /* portret bohatera w wierszu – trochę mniejszy niż avatar gracza */
  html body.afCsDock.cs2On .cs2 .c2Hr,
  html body.afCsDock .cs2 .c2Hr,
  html body.afCsDock .cs2 .c2Team.compact .c2Hr {
    width: 18px !important; height: 18px !important;
    min-width: 18px !important; max-width: 18px !important;
    min-height: 18px !important; max-height: 18px !important;
    flex: 0 0 18px !important;
    overflow: hidden !important; border-radius: 3px !important;
    box-sizing: border-box !important; border: 1px solid #3a3f9a !important;
    box-shadow: none !important; outline: none !important;
    padding: 0 !important; margin: 0 !important; align-self: center !important;
  }
  html body.afCsDock.cs2On .cs2 .c2Hr img,
  html body.afCsDock .cs2 .c2Hr img {
    width: 100% !important; height: 100% !important;
    max-width: 18px !important; max-height: 18px !important;
    object-fit: cover !important; object-position: center 15% !important;
    display: block !important;
  }
  html body.afCsDock .cs2 .c2P .c2Nm,
  html body.afCsDock .cs2 .c2P b,
  html body.afCsDock .cs2 .c2P .nm,
  html body.afCsDock .cs2 .c2Tx b {
    font-size: 10px !important; line-height: 1.1 !important;
  }

  /* Losowa: pełne LOSUJE/SERWER (bez regresji hs5) */
  html body.afCsDock.cs2On .cs2 .mvT.mvRand,
  html body.afCsDock .cs2 .mvT.mvRand { overflow: hidden !important; }
  html body.afCsDock.cs2On .cs2 .mvT.mvRand .mvN,
  html body.afCsDock .cs2 .mvT.mvRand .mvN {
    top: 2px !important; right: 2px !important;
    min-width: 12px !important; width: auto !important; height: 12px !important;
    font-size: 8px !important; padding: 0 3px !important; z-index: 4 !important;
  }
  html body.afCsDock.cs2On .cs2 .mvT.mvRand .mwI,
  html body.afCsDock .cs2 .mvT.mvRand .mwI {
    padding: 14px 1px 1px !important; gap: 1px !important;
    overflow: hidden !important;
    display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: flex-start !important;
  }
  html body.afCsDock.cs2On .cs2 .mvT.mvRand .mvRandTag,
  html body.afCsDock .cs2 .mvT.mvRand .mwI .mvRandTag {
    position: relative !important; top: auto !important; left: auto !important; right: auto !important;
    font-size: 0 !important; line-height: 0 !important; color: transparent !important;
    width: calc(100% - 2px) !important; max-width: calc(100% - 2px) !important;
    min-height: 14px !important; height: auto !important;
    padding: 1px 2px !important; margin: 0 auto !important;
    overflow: visible !important; white-space: normal !important;
    text-overflow: clip !important; box-sizing: border-box !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    transform: none !important; z-index: 3 !important;
    background: #7ef9ffee !important; border-radius: 99px !important;
  }
  html body.afCsDock.cs2On .cs2 .mvT.mvRand .mvRandTag::after,
  html body.afCsDock .cs2 .mvT.mvRand .mvRandTag::after {
    content: "LOSUJE\A SERWER";
    white-space: pre !important; display: block !important;
    font: 900 6px/1.15 system-ui, "Segoe UI", Arial, sans-serif !important;
    color: #0b0826 !important; text-align: center !important;
    letter-spacing: -0.03em !important;
  }
  html body.afCsDock.cs2On .cs2 .mvT.mvRand .mwI > .mvDiceBox,
  html body.afCsDock .cs2 .mvT.mvRand .mwI > .mvDiceBox {
    flex: 1 1 auto !important; min-height: 12px !important; width: 100% !important;
    overflow: hidden !important; position: relative !important;
  }

  /* czat a900: mniejsze emoji + wyślij → widać „Napisz…” */
  html body.afCsDock .cs2 .c2Main > .afCsChat {
    padding: 4px 5px 6px !important;
    gap: 4px !important;
  }
  html body.afCsDock .cs2 .c2Main > .afCsChat > h4 {
    font-size: 11px !important; margin: 0 !important;
  }
  html body.afCsDock .cs2 .c2Main > .afCsChat .afF {
    gap: 3px !important; align-items: center !important;
  }
  html body.afCsDock .cs2 .c2Main > .afCsChat .afEmB {
    font-size: 12px !important;
    min-width: 16px !important; min-height: 18px !important;
    max-width: 18px !important; padding: 0 !important;
    line-height: 1 !important; flex: 0 0 16px !important;
  }
  html body.afCsDock .cs2 .c2Main > .afCsChat .afF input {
    flex: 1 1 auto !important; min-width: 0 !important;
    font-size: 11px !important; padding: 4px 5px !important;
    border-radius: 8px !important;
  }
  html body.afCsDock .cs2 .c2Main > .afCsChat .afF button.btn,
  html body.afCsDock .cs2 .c2Main > .afCsChat .afF button[type=submit] {
    flex: 0 0 auto !important;
    min-width: 20px !important; width: 20px !important;
    padding: 2px 0 !important; font-size: 10px !important;
    min-height: 20px !important; height: 20px !important;
    border-radius: 7px !important; line-height: 1 !important;
  }


}


/* auditfix-nov6e: przycisk 😊 i panel emoji (jak w czacie lobby) */
.afCsChat .afF { align-items: center; }
.afCsChat .afF .afEmB { flex: 0 0 auto; background: none; border: 0; font-size: 18px; cursor: pointer; padding: 0 4px; line-height: 1; min-width: 28px; min-height: 32px; }
.afEmoPan { position: fixed; z-index: 9000; background: #140e3af2; border: 1px solid #7ef9ff55; border-radius: 12px; padding: 6px; box-shadow: 0 8px 24px #000a; box-sizing: border-box; }
.afEmoPan .emTabs { display: flex; gap: 2px; border-bottom: 1px solid #ffffff22; margin-bottom: 4px; }
.afEmoPan .emTabs button { flex: 1; background: none; border: 0; font-size: 18px; padding: 4px; border-radius: 8px; cursor: pointer; opacity: .6; }
.afEmoPan .emTabs .on { opacity: 1; background: #ffffff1a; }
.afEmoPan .emGrid { display: grid; grid-template-columns: repeat(8, 1fr); max-height: min(170px, 45vh); overflow: auto; }
.afEmoPan .emGrid button { background: none; border: 0; font-size: 22px; padding: 3px; cursor: pointer; border-radius: 6px; }
.afEmoPan .emGrid button:hover { background: #ffffff22; }
.afEmoPan i { grid-column: 1 / -1; font-size: 12px; opacity: .7; padding: 8px; }
@media (pointer: coarse) { .afEmoPan .emGrid button { font-size: 24px; padding: 5px; } }
/* hs6e-nov6 */

/* fix3-nov8: cloned lobby chat has the same layout as #chLog, including mute controls. */
#afCsChat .afLog .chM:not(.chSys){position:relative;display:flex;align-items:flex-start;gap:8px;padding:5px 26px 5px 3px;line-height:1.35;color:#f1f0ff;min-width:0}
#afCsChat .afLog .chAvW{position:relative;flex:0 0 28px;width:28px;height:28px}
#afCsChat .afLog .chAv{display:block;width:28px!important;height:28px!important;border-radius:50%;box-sizing:border-box}
#afCsChat .afLog .chB{flex:1;min-width:0;overflow-wrap:anywhere;padding-top:1px}
#afCsChat .afLog .chH{display:flex;align-items:center;flex-wrap:wrap;gap:3px 6px}
#afCsChat .afLog .chNk{display:inline-flex;align-items:center;gap:3px;min-width:0}
#afCsChat .afLog .chTm{font-size:10px;color:#aaa7ce}
#afCsChat .afLog .chTx{display:block}
#afCsChat .afLog .chMute{position:absolute;right:1px;top:5px;width:22px;height:22px;display:grid;place-items:center;background:transparent;border:0;color:#b9b7d9;opacity:.35;padding:2px;cursor:pointer}
#afCsChat .afLog .chMute svg,#acChat .chMute svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}
#afCsChat .afLog .chM:hover .chMute,#afCsChat .afLog .chMute:focus-visible{opacity:1}
#afCsChat .afLog .chM.mut .chB{filter:blur(4px);opacity:.4}
#afCsChat .afLog .chAvCr{position:absolute;top:-7px;left:50%;transform:translateX(-50%);width:13px;height:13px}
