/* Star Manor — poczta (ladowany po kop.css; te same zmienne barw co style.css). */
/* 12.11.2026 noc: nowy CZAT (okno z zakładkami Świat / Plemię / Prywatne — klasy .pc*) i rozbudowana SKRZYNKA (.sk*).
   Wszystko tutaj to nadpisania i nowe klasy; style.css zostaje nietknięty. Kod: js/poczta.js. */

/* ------------------------------------------------------------------ wspólne: awatar-inicjał, plakietka plemienia, licznik */
.pcAw { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 800 14px/1 system-ui, sans-serif; font-style: normal; color: #fff;
  background: linear-gradient(150deg, hsl(var(--h, 250) 58% 52%), hsl(var(--h, 250) 62% 36%)); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28), 0 1px 2px rgba(0, 0, 0, .35); text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.pcAw.pusty { background: none; box-shadow: none; height: 1px; }
.pcAw.sys { background: linear-gradient(150deg, #fbbf24, #b45309); color: #2a1a00; text-shadow: none; }
.pcTag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; font: 800 10.5px/1.5 system-ui, sans-serif; font-style: normal; letter-spacing: .04em; vertical-align: 1px; white-space: nowrap;
  background: rgba(166, 124, 61, .2); color: #5a3d12; border: 1px solid rgba(166, 124, 61, .5); }
.pcIleZ { flex: none; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font: 800 11px/1 system-ui, sans-serif; font-style: normal; }
.pcIleZ.pcKrop { min-width: 9px; width: 9px; height: 9px; padding: 0; }

/* ------------------------------------------------------------------ okno czatu */
.czatSwOkno.pc { gap: 0; padding: 0; overflow: hidden; color: var(--tekst); background: linear-gradient(180deg, #252a57 0, #171a36 120px, #12142b 100%); }
.pc button { border: 0; background: none; padding: 0; }
.pc button:disabled { opacity: .45; cursor: default; }
.pc .pcTag { background: rgba(251, 191, 36, .14); color: #fde68a; border-color: rgba(251, 191, 36, .4); }
.pcNagl { flex: none; display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top), var(--tg-gora, 0px)) 10px 6px 14px; }
.czatSwOkno.pc .pcNagl b { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; font: 900 19px/1.2 var(--tyt); color: var(--zloto); }
.pcOnline { flex: none; display: inline-flex; align-items: center; gap: 5px; color: var(--cichy); font-size: 12px; font-weight: 600; }
.pcOnline:not(:empty)::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); }
.czatSwOkno.pc .iks { flex: none; display: grid; place-items: center; width: 40px; min-width: 40px; height: 40px; border-radius: 12px; font-size: 24px; line-height: 1; background: rgba(255, 255, 255, .1); color: #fff; }
.czatSwOkno.pc .iks:hover { background: rgba(255, 255, 255, .2); }
.pcZwinD { display: none; }
/* zakładki: Świat / Plemię / Prywatne */
.pcZakl { flex: none; display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pcZakl button { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 6px; color: var(--cichy); font-size: 14px; font-weight: 800; border-radius: 10px 10px 0 0; }
.pcZakl button i { font-style: normal; font-size: 15px; }
.pcZakl button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcZakl button::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.pcZakl button.wybrana { color: #fde68a; background: linear-gradient(180deg, rgba(251, 191, 36, 0), rgba(251, 191, 36, .1)); }
.pcZakl button.wybrana::after { background: var(--zloto); }
.pcZakl button:hover:not(.wybrana) { color: #fff; }
/* filtry języków kanału świata */
.pcFiltry { flex: none; display: flex; gap: 5px; padding: 8px 10px 0; overflow-x: auto; scrollbar-width: none; }
.pcFiltry::-webkit-scrollbar { display: none; }
.pcFiltry button { flex: none; min-height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(8, 10, 26, .4); color: var(--cichy); font-size: 12.5px; font-weight: 800; letter-spacing: .03em; }
.pcFiltry button.wybrana { color: #1d1300; border-color: #f59e0b; background: linear-gradient(#fde68a, #fbbf24); }
/* nagłówek rozmowy prywatnej i wyszukiwarka graczy */
.pcGlowa { flex: none; position: relative; padding: 8px 10px 0; }
.pcRozmGl { display: flex; align-items: center; gap: 8px; padding: 4px 4px 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.pcRozmGl b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.pc .pcWroc, .pc .pcIk { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 17px; }
.pc .pcWroc { font-size: 26px; line-height: 1; padding-bottom: 3px; }
.pc .pcIk.wl { background: rgba(239, 68, 68, .35); box-shadow: inset 0 0 0 1.5px #f87171; }
.pcSzuk input, .pcPole textarea { width: 100%; font: inherit; color: #fff; background: rgba(8, 10, 26, .55); border: 1.5px solid rgba(255, 255, 255, .2); border-radius: 14px; outline: none; }
.pcSzuk input { min-height: 40px; padding: 6px 12px; font-size: 14px; }
.pcSzuk input::placeholder, .pcPole textarea::placeholder { color: #a7acc9; opacity: 1; }
.pcSzuk input:focus, .pcPole textarea:focus { border-color: var(--zloto); box-shadow: 0 0 0 3px rgba(251, 191, 36, .18); }
.pcPodp { position: absolute; left: 10px; right: 10px; top: calc(100% + 4px); z-index: 4; display: grid; gap: 2px; max-height: 240px; overflow-y: auto; padding: 6px; border-radius: 14px; background: #2b3063; border: 1px solid rgba(251, 191, 36, .45); box-shadow: 0 12px 28px rgba(0, 0, 0, .5); }
.pcPodp button { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 4px 8px; border: 0; background: none; border-radius: 10px; text-align: left; color: #fff; }
.pcPodp button:hover, .pcPodp button:focus-visible { background: rgba(255, 255, 255, .1); }
.pcPodp b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcPodp p { padding: 6px 8px; color: #c3c7de; font-size: 12.5px; }
/* lista */
.pcSrodek { position: relative; flex: 1 1 0; min-height: 0; display: flex; }
.pcLista { flex: 1 1 auto; min-width: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; outline: none; }
.pcZasady { align-self: center; max-width: 92%; margin: 2px 0 6px; padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #b9bedb; font-size: 11.5px; line-height: 1.35; text-align: center; }
.pcDzien, .pcNoweLinia { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pcDzien { color: #a7acc9; }
.pcDzien::before, .pcDzien::after, .pcNoweLinia::before, .pcNoweLinia::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .3; }
.pcNoweLinia { color: #fb7185; }
.pcNoweLinia::before, .pcNoweLinia::after { opacity: .7; }
.pcW { display: flex; align-items: flex-start; gap: 8px; max-width: 100%; margin-top: 7px; }
.pcW.ciag { margin-top: 0; }
.pcW.moja { justify-content: flex-end; }
.pcW .pcAwG { flex: none; margin-top: 2px; border-radius: 50%; }
.pcW > .pcAw.pusty { width: 30px; }
.pcTresc { min-width: 0; max-width: calc(100% - 38px); display: grid; justify-items: start; gap: 2px; }
.pcW.moja .pcTresc { justify-items: end; max-width: 88%; }
.pcKto { display: flex; align-items: center; flex-wrap: wrap; max-width: 100%; padding-left: 4px; line-height: 1.2; }
.pcKto .pcNick { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 800; color: hsl(var(--h) 80% 76%); text-align: left; }
.pc .pcKto .pcNick:hover { text-decoration: underline; }
.pcJez { margin-left: 6px; padding: 0 4px; border-radius: 5px; border: 1px solid currentColor; font: 700 9.5px/1.5 system-ui, sans-serif; font-style: normal; letter-spacing: .06em; color: #a7acc9; opacity: .85; }
.pcRzad { display: flex; align-items: center; gap: 2px; max-width: 100%; min-width: 0; }
.pcW.moja .pcRzad { flex-direction: row-reverse; }
.pcDymek { min-width: 0; padding: 7px 11px 5px; border-radius: 6px 16px 16px 16px; background: #f8efd9; color: #2b1c0c; box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.pcW.ciag .pcDymek { border-radius: 6px 16px 16px 6px; }
.pcW.moja .pcDymek { border-radius: 16px 6px 16px 16px; background: linear-gradient(160deg, #8257e6, #5b34bd); color: #fff; }
.pcW.moja.ciag .pcDymek { border-radius: 16px 6px 6px 16px; }
.pcW.doMnie .pcDymek { box-shadow: 0 0 0 2px #fbbf24, 0 0 14px rgba(251, 191, 36, .35); background: #fff6d6; }
.pcDymek p { margin: 0; font-size: 15px; line-height: 1.38; white-space: pre-wrap; overflow-wrap: anywhere; color: inherit; }
.pcDymek p.pcOryg { margin-top: 4px; padding-top: 4px; border-top: 1px dashed rgba(84, 52, 14, .35); font-size: 13px; font-style: italic; opacity: .8; }
.pcDymek .wspLnk { min-height: 0; padding: 0 2px; font-size: inherit; color: #1d4fc4; }
.pcW.moja .pcDymek .wspLnk { color: #fde68a; }
.pcDymek .pcLink { color: #1d4fc4; text-decoration: underline; font-weight: 700; overflow-wrap: anywhere; }
.pcW.moja .pcDymek .pcLink { color: #fde68a; }      /* 13.11: link do strony gry od administratora */
.pcWzm { font-weight: 800; color: #6d28d9; background: rgba(124, 58, 237, .12); border-radius: 5px; padding: 0 3px; }
.pcW.moja .pcWzm { color: #fde68a; background: rgba(255, 255, 255, .16); }
.pcCzas { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 1px; font-size: 10.5px; line-height: 1.3; color: #7a6040; font-variant-numeric: tabular-nums; }
.pcW.moja .pcCzas { color: #e4d8ff; }
.pc .pcTlum { padding: 0 5px; border-radius: 5px; border: 1px solid #9cb8cc; background: #e6f0f6; color: #2f5d7c; font: 700 9.5px/1.6 system-ui, sans-serif; letter-spacing: .05em; }
.pc .pcWiecej { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #a7acc9; font-size: 18px; line-height: 1; opacity: .55; }
.pc .pcWiecej:hover, .pc .pcWiecej:focus-visible { opacity: 1; background: rgba(255, 255, 255, .12); color: #fff; }
.pcRe { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 2px; }
.pcReG { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 7px; border-radius: 99px; font-size: 13px; line-height: 1; background: rgba(255, 255, 255, .1); color: #e6e8f5; border: 1px solid rgba(255, 255, 255, .14); }
.pc button.pcReG { padding: 0 7px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .1); }
.pcReG b { font-size: 11.5px; font-weight: 800; }
.pcReG.moja, .pc button.pcReG.moja { background: rgba(251, 191, 36, .22); border-color: rgba(251, 191, 36, .7); color: #fde68a; }
.pcZgl { padding: 0 4px; color: #fca5a5; font-size: 11px; }
.pcZablok { align-self: center; margin: 6px 0 2px; color: #8f94b5; font-size: 12px; }
.pc .pcZablok button { min-height: 30px; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .06); color: #a7acc9; font-size: 12px; }
.pcPusto { margin: auto; display: grid; justify-items: center; gap: 8px; padding: 18px 16px; text-align: center; color: var(--cichy); }
.pcPusto > i { font-style: normal; font-size: 38px; line-height: 1; filter: saturate(.85); }
.pcPusto p { font-size: 15px; font-weight: 700; color: var(--tekst); }
.pcPusto small { font-size: 12px; line-height: 1.4; max-width: 300px; }
.pcKreci { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .18); border-top-color: var(--zloto); animation: pcKreci .8s linear infinite; }
@keyframes pcKreci { to { transform: rotate(360deg); } }
/* lista rozmów prywatnych */
.pcRozmowy { display: grid; gap: 4px; }
.pc .pcRozm { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; width: 100%; min-height: 58px; padding: 8px 10px; border-radius: 14px; text-align: left; color: var(--tekst); background: rgba(255, 255, 255, .04); }
.pc .pcRozm:hover { background: rgba(255, 255, 255, .09); }
.pcRozm .pcAw { grid-row: 1 / 3; width: 38px; height: 38px; font-size: 16px; }
.pcRozm b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.pcRozm small { color: #a7acc9; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.pcRozm span { grid-column: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b9bedb; font-size: 13px; }
.pcRozm .pcIleZ { grid-column: 3; grid-row: 2; justify-self: end; }
.pcRozm.nowa { background: rgba(251, 191, 36, .1); box-shadow: inset 3px 0 0 var(--zloto); }
.pcRozm.nowa span { color: #fff; font-weight: 600; }
/* przycisk „↓ nowe” */
.pc .pcDol { position: absolute; right: 12px; bottom: 10px; z-index: 2; display: flex; align-items: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 99px; background: #2f356c; color: #fff; font-size: 18px; font-weight: 800; border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.pc .pcDol b:empty { display: none; }
.pc .pcDol b { font-size: 12.5px; }
.pc .pcDol.nowe { background: linear-gradient(#fde047, #f59e0b); color: #2a1a00; border-color: #b45309; }
/* menu wiadomości (arkusz od dołu okna) */
.pcMenu { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end; }
.pc .pcMenuTlo { position: absolute; inset: 0; background: rgba(5, 6, 18, .62); border-radius: 0; cursor: default; }
.pcMenuKarta { position: relative; width: 100%; max-height: 100%; overflow-y: auto; display: grid; gap: 2px; padding: 10px 10px 12px; border-radius: 18px 18px 0 0; background: linear-gradient(#30366f, #23284f); border-top: 1px solid rgba(251, 191, 36, .5); box-shadow: 0 -10px 30px rgba(0, 0, 0, .5); animation: pcWjazd .16s ease-out; }
@keyframes pcWjazd { from { transform: translateY(18px); opacity: 0; } }
.pcMenuKto { display: flex; align-items: center; gap: 9px; padding: 0 2px 4px; }
.pcMenuKto b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcMenuKto small { color: #a7acc9; font-size: 12px; }
.czatSwOkno.pc .pcMenuKto .iks { width: 34px; min-width: 34px; height: 34px; font-size: 20px; }
.pcMenuCytat { margin: 2px 2px 8px; padding: 0 10px; border-left: 3px solid rgba(251, 191, 36, .6); color: #d5d8ec; font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pcMenuRe { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 6px; }
.pc .pcMenuRe button { height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 21px; line-height: 1; }
.pc .pcMenuRe button:hover { background: rgba(255, 255, 255, .18); }
.pc .pcMenuRe button.moja { background: rgba(251, 191, 36, .25); box-shadow: inset 0 0 0 1.5px rgba(251, 191, 36, .8); }
.pc .pcPoz { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 4px 10px; border-radius: 12px; text-align: left; color: #fff; font-size: 14.5px; font-weight: 700; }
.pc .pcPoz:hover, .pc .pcPoz:focus-visible { background: rgba(255, 255, 255, .1); }
.pcPoz i { flex: none; width: 24px; text-align: center; font-style: normal; font-size: 16px; }
.pc .pcPoz.grozna { color: #fda4af; }
.pcMenuInfo { padding: 8px 12px; color: #fca5a5; font-size: 13px; }
/* dopisek (uciszenie, blokada) */
.pcInfo { flex: none; margin: 0 10px; padding: 6px 12px; border-radius: 12px; background: rgba(239, 68, 68, .16); border: 1px solid rgba(248, 113, 113, .45); color: #fecaca; font-size: 12.5px; line-height: 1.35; }
/* pisanie */
.pcEmoji { flex: none; display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; margin: 0 8px; padding: 6px; border-radius: 14px; background: rgba(8, 10, 26, .5); border: 1px solid rgba(255, 255, 255, .12); }
.pc .pcEmoji button { height: 34px; border-radius: 9px; font-size: 19px; line-height: 1; }
.pc .pcEmoji button:hover { background: rgba(255, 255, 255, .14); }
.pcPisz { flex: none; display: flex; align-items: flex-end; gap: 6px; padding: 8px 8px calc(8px + max(env(safe-area-inset-bottom), var(--tg-dol, 0px))); }
.pc .pcEmo { flex: none; width: 42px; height: 42px; border-radius: 50%; color: #c3c7de; font-size: 24px; line-height: 1; }
.pc .pcEmo:hover { color: #fde68a; background: rgba(255, 255, 255, .08); }
.pcPole { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.pcPole textarea { display: block; min-height: 42px; max-height: 112px; padding: 9px 13px; resize: none; font-size: 15px; line-height: 1.4; border-radius: 21px; scrollbar-width: none; }
.pcPole textarea::-webkit-scrollbar { display: none; }
.pcPole textarea:disabled { opacity: .5; }
.pcPole small { position: absolute; right: 12px; top: -15px; padding: 0 6px; border-radius: 99px; background: #1a1d3a; color: #c3c7de; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; border: 1px solid rgba(255, 255, 255, .15); }
.pcPole small.koniec { color: #fff; background: #dc2626; border-color: #dc2626; }
.pc .pcWyslij { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(#fde047, #f59e0b); color: #2a1a00; box-shadow: 0 3px 0 #b45309; }
.pc .pcWyslij:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #b45309; }
.pcWyslij svg { width: 20px; height: 20px; margin-left: 2px; }
/* przycisk zwiniętego czatu: liczba rozmów z nowymi wiadomościami */
.czatSwGuzik .pcIle { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font: 800 11.5px/20px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px #1a1d3a; }

@media (min-width: 1100px) {
  .czatSwOkno.pc { padding: 0; }
  .pcNagl { padding: 8px 8px 4px 14px; }
  .czatSwOkno.pc .pcNagl b { font-size: 16px; }
  .czatSwOkno.pc .iks { width: 30px; min-width: 30px; height: 30px; border-radius: 9px; font-size: 20px; }
  .pcZwinD { display: inline; } .pcZwinT { display: none; }
  .pcZakl button { min-height: 36px; font-size: 13px; }
  .pcFiltry { padding-top: 6px; }
  .pcFiltry button { min-height: 26px; padding: 0 9px; font-size: 11.5px; }
  .pcDymek p { font-size: 14px; }
  .pcAw { width: 28px; height: 28px; font-size: 13px; }
  .pcW > .pcAw.pusty { width: 28px; }
  .pcTresc { max-width: calc(100% - 36px); }
  .pc .pcWiecej { opacity: 0; width: 26px; height: 26px; }
  .pcW:hover .pcWiecej, .pc .pcWiecej:focus-visible { opacity: 1; }
  .pcPisz { padding: 6px 8px 8px; }
  .pc .pcEmo, .pc .pcWyslij { width: 38px; height: 38px; }
  .pcPole textarea { min-height: 38px; padding: 8px 12px; font-size: 14px; }
  .pc .pcMenuRe button { height: 36px; font-size: 19px; }
  .pc .pcPoz { min-height: 36px; font-size: 13.5px; }
  .pcEmoji button { height: 30px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .pcMenuKarta, .pcKreci { animation: none; } }

/* ------------------------------------------------------------------ czat plemienia w zakładce Plemię (karta na pergaminie) */
.czatLista { gap: 3px; }
.czatLista .pcDzien { color: #7a6040; }
.czatLista .pcKto .pcNick { color: hsl(var(--h) 62% 30%); }
.czatLista .pcJez { color: #7a6040; }
.czatLista .pcDymek { background: #fffdf6; border: 1px solid #d6c08f; box-shadow: 0 1px 0 rgba(84, 52, 14, .18); }
.czatLista .pcW.moja .pcDymek { border-color: #3a1f86; }
.czatLista .pcReG { background: rgba(84, 52, 14, .1); border-color: rgba(84, 52, 14, .25); color: #33200f; }
.czatLista .pcZablok { color: #7a6040; }
.czatLista .wiadPrzyciski { padding: 0 2px; }
.czatLista .wiadPrzyciski .lnk { min-height: 30px; padding: 2px 6px; }

/* ------------------------------------------------------------------ skrzynka */
.arkuszKarta.skrzynkaOkno { width: min(720px, 100%); align-content: start; gap: 10px; min-height: min(560px, 80vh); }
.skrzynkaOkno h2 { padding-right: 46px; }
.skPasek { display: flex; gap: 8px; align-items: center; }
.skPasek input { flex: 1 1 auto; min-width: 0; width: auto; text-align: left; font-weight: 600; }
.skPasek .skNapisz { flex: none; margin-left: auto; min-height: 44px; }
.skFoldery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--karta2); border: 1px solid var(--perg-linia); }
.skFoldery button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; padding: 4px 2px; border: 0; border-radius: 12px; background: none; color: var(--atr-cichy); font-size: 12.5px; font-weight: 800; }
.skFoldery button i { font-style: normal; font-size: 18px; line-height: 1.1; }
.skFoldery button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skFoldery button.wybrana { background: linear-gradient(#fffaf0, #f6e7bf); color: var(--atrament); box-shadow: 0 1px 0 #a67c3d, inset 0 0 0 1px #cfae72; }
.skFoldery .pcIleZ { position: absolute; top: 3px; right: calc(50% - 26px); }
.skSrodek { display: grid; gap: 10px; align-content: start; min-width: 0; }
.skAkcje { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.skAkcje .lnk { min-height: 36px; margin-left: auto; }
.skrzynkaOkno .lnk.grozna { color: #a8221a; }
.skLista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.skLista li { min-width: 0; }
.skWiersz { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 11px; row-gap: 0; align-items: center; width: 100%; padding: 9px 12px; text-align: left; border: 1px solid var(--perg-linia); border-radius: 14px; background: #fffaf0; color: var(--atrament); }
.skWiersz:hover { background: #fffdf7; border-color: #a67c3d; }
.skWiersz .pcAw { grid-row: 1 / 4; align-self: start; margin-top: 2px; width: 38px; height: 38px; font-size: 16px; }
.skWiersz b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; color: var(--atr-cichy); }
.skWiersz small { color: var(--atr-cichy); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.skTemat, .skSkrot { grid-column: 2 / 4; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skTemat { font-size: 15px; font-weight: 600; }
.skSkrot { color: var(--atr-cichy); font-size: 13px; }
.skWiersz.nowa { background: #fff6d6; border-color: #b45309; box-shadow: inset 4px 0 0 #f59e0b; }
.skWiersz.nowa b { color: var(--atrament); font-weight: 800; }
.skWiersz.nowa .skTemat { font-weight: 800; }
.skWiersz.nowa small::after { content: ''; display: inline-block; width: 9px; height: 9px; margin-left: 6px; border-radius: 50%; background: #f59e0b; }
.skPusto { display: grid; justify-items: center; gap: 6px; padding: 34px 12px; color: var(--atr-cichy); text-align: center; }
.skPusto i { font-style: normal; font-size: 42px; line-height: 1; }
.skBlok { border: 1px dashed var(--perg-linia); border-radius: 12px; padding: 6px 12px; font-size: 14px; }
.skBlok summary { cursor: pointer; font-weight: 700; color: var(--atr-cichy); min-height: 32px; display: flex; align-items: center; }
.skBlok div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.skBlok .lnk { min-height: 36px; }
.skGl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 40px; }
.skGl b { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skGl .lnk { min-height: 40px; text-decoration: none; }
.skWatek { display: grid; gap: 8px; }
.skList { min-width: 0; padding: 12px 14px; border: 1px solid var(--perg-linia); border-radius: 6px 16px 16px 16px; background: #fffaf0; display: grid; gap: 8px; }
.skWatek .skList { width: min(100%, 600px); justify-self: start; }
.skWatek .skList.moja { justify-self: end; border-radius: 16px 6px 16px 16px; background: #f1e9ff; border-color: #b9a2ea; }
.skList.wybrany { box-shadow: 0 0 0 2px #f59e0b; }
.skList header { display: grid; gap: 1px; padding-bottom: 7px; border-bottom: 1px solid rgba(166, 124, 61, .35); }
.skList header b { font-size: 16px; overflow-wrap: anywhere; }
.skList header small { color: var(--atr-cichy); font-size: 12.5px; }
.skTresc { min-width: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.skTresc p { margin: 0; white-space: pre-wrap; color: var(--atrament); }
.skTresc blockquote { margin: 4px 0; padding: 4px 10px; border-left: 3px solid #cfae72; border-radius: 3px 8px 8px 3px; background: rgba(166, 124, 61, .12); color: var(--atr-cichy); font-size: 14px; }
.skTresc .wspLnk { min-height: 0; padding: 0 2px; font-size: inherit; }
.skList .rzad .btn.maly { min-height: 38px; padding: 4px 12px; font-size: 13.5px; }
.skSzybka { display: flex; align-items: flex-end; gap: 8px; padding-top: 4px; }
.skSzybka textarea { flex: 1 1 auto; min-width: 0; width: auto; text-align: left; font-weight: 500; resize: vertical; min-height: 48px; line-height: 1.4; }
.skForm { display: grid; gap: 10px; }
.skForm label { position: relative; display: grid; gap: 4px; font-weight: 700; font-size: 14px; }
.skForm .ilePole { width: 100%; text-align: left; font-weight: 600; }
.skForm textarea.ilePole { resize: vertical; min-height: 150px; font-weight: 500; line-height: 1.45; }
.skLicz { justify-self: end; color: var(--atr-cichy); font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
.skRodzaje { display: flex; gap: 6px; flex-wrap: wrap; }
.skRodzaje button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--perg-linia); background: #fffaf0; color: var(--atr-cichy); font-weight: 800; font-size: 14px; }
.skRodzaje button i { font-style: normal; }
.skRodzaje button.wybrana { background: linear-gradient(#fde68a, #fbbf24); border-color: #b45309; color: #2a1a00; }
.skAdresat { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.skChip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 3px 12px 3px 5px; border-radius: 99px; background: #fffaf0; border: 1px solid #a67c3d; font-size: 15px; }
.skChip:not(:has(.pcAw)) { padding-left: 12px; }
.skChip button { display: grid; place-items: center; width: 28px; height: 28px; margin-right: -7px; border: 0; border-radius: 50%; background: rgba(84, 52, 14, .12); font-size: 18px; line-height: 1; color: var(--atrament); }
.skOpisRodzaju { padding: 8px 12px; border-radius: 12px; background: #fffaf0; border: 1px solid var(--perg-linia); font-size: 14px; color: var(--atrament); }
.skDoPole .pcPodp { left: 0; right: 0; background: #fffdf6; border-color: #a67c3d; box-shadow: 0 12px 28px rgba(84, 52, 14, .35); }
.skDoPole .pcPodp button { color: var(--atrament); }
.skDoPole .pcPodp button:hover, .skDoPole .pcPodp button:focus-visible { background: #f3e3bd; }
.skDoPole .pcPodp p { color: var(--atr-cichy); font-weight: 600; }
@media (max-width: 480px) {
  .skFoldery button { font-size: 11.5px; }
  .skPasek .skNapisz { padding: 6px 12px; }
}

/* 15.11.2026: głosówki i przypięta informacja „propozycje tylko tekstem” */
.pcPrzyp { flex: none; margin: 6px 8px 0; padding: 5px 10px; border-radius: 10px; background: rgba(251, 191, 36, .14); border: 1px solid rgba(251, 191, 36, .45); color: #fde68a; font-size: 11.5px; font-weight: 700; line-height: 1.3; text-align: center; }
.pc .pcMik { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #c3c7de; }
.pc .pcMik:hover:not(:disabled) { color: #fde68a; background: rgba(255, 255, 255, .08); }
.pcMik svg { width: 22px; height: 22px; }
.pc .pcMik:disabled { opacity: .45; }
.pcNagr { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 8px calc(8px + max(env(safe-area-inset-bottom), var(--tg-dol, 0px))); color: #fff; font-size: 14px; }
.pc .pcNagrX { flex: none; width: 42px; height: 42px; border-radius: 50%; color: #fca5a5; font-size: 18px; background: rgba(255, 255, 255, .06); }
.pcNagrKropka { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #ef4444; animation: pcNagrMiga 1s ease-in-out infinite; }
.pcNagr.wysyla .pcNagrKropka { background: #fbbf24; animation: none; }
.pcNagr span { flex: 1 1 auto; min-width: 0; color: #c3c7de; }
.pcNagr b { font-variant-numeric: tabular-nums; }
.pcNagr small { color: #8d92b3; font-variant-numeric: tabular-nums; }
.pc .pcNagr button:disabled { opacity: .5; }
@keyframes pcNagrMiga { 50% { opacity: .25; } }
.pcGlos { display: flex; align-items: center; gap: 8px; min-width: 170px; padding: 2px 0; }
.pcGlosGraj { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #5b34bd; color: #fff; font-size: 13px; line-height: 1; border: 0; cursor: pointer; }
.pcW.moja .pcGlosGraj { background: #fde047; color: #2a1a00; }
.pcGlosPasek { position: relative; flex: 1 1 auto; height: 6px; border-radius: 99px; background: rgba(0, 0, 0, .15); overflow: hidden; }
.pcW.moja .pcGlosPasek { background: rgba(255, 255, 255, .25); }
.pcGlosPasek i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: currentColor; opacity: .75; transition: width .25s linear; }
.pcGlosDl { flex: none; font-size: 12px; font-variant-numeric: tabular-nums; opacity: .8; }
.pcZglPowod { display: block; width: 100%; margin: 8px 0 12px; padding: 9px 12px; border-radius: 12px; font-size: 15px; resize: vertical; }
@media (min-width: 1100px) {
  .pc .pcMik, .pc .pcNagrX { width: 38px; height: 38px; }
  .pcNagr { padding: 6px 8px 8px; }
}
.pc .pcMik[hidden] { display: none !important; }      /* 15.11 wieczór: głosówki wyłączone */
