/* PNP Reader — Picker Sheet Polish (2026-01-16)
   Cel: panel wyboru księgi/rozdziału/wersetu nie ma nachodzić na belkę i ma wyglądać premium.
   Działa dla obu wariantów: .pnpRSSheet (nowy) i .pp-search-sheet (starszy).
*/

/* 1) Overlay — zawsze nad treścią */
html[data-theme="dark"] :where(.pnpRSOverlay,.pp-search-overlay),
body.pp-dark :where(.pnpRSOverlay,.pp-search-overlay){
  z-index: 99980 !important;
}

/* 2) Sheet — odsunięcie od góry + wygląd */
:where(.pnpRSSheet,.pp-search-sheet){
  z-index: 99990 !important;
  margin-top: 14px !important;              /* oddech od belki */
  border-radius: 16px !important;
  box-shadow: 0 18px 60px rgba(0,0,0,.35) !important;
}

/* 3) Jeśli sheet jest pozycjonowany “od góry” — wymuś bezpieczny top */
@media (min-width: 700px){
  :where(.pnpRSSheet,.pp-search-sheet){
    top: 74px !important;                   /* desktop: nie dotyka belki */
  }
}
@media (max-width: 699px){
  :where(.pnpRSSheet,.pp-search-sheet){
    top: 62px !important;                   /* mobile */
    margin-top: 10px !important;
  }
}

/* 4) Nagłówek sheet — czytelny i “premium” */
:where(.pnpRSSheetHead,.ppRSHead){
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
}

/* 5) Dodatkowo: żeby nic nie “przyklejało się” do górnej krawędzi */
:where(.pnpRSSheetBody,.ppRSBody){
  padding-top: 10px !important;
}

/* 6) Motyw nocny — tła i obramowania (bez rozwalania dziennego) */
html[data-theme="dark"] :where(.pnpRSSheet,.pp-search-sheet),
body.pp-dark :where(.pnpRSSheet,.pp-search-sheet){
  background: #0f0f10 !important;
  border: 1px solid rgba(215,194,138,.18) !important;
  color: rgba(255,255,255,.90) !important;
}

html[data-theme="dark"] :where(.pnpRSSheet input,.pnpRSSheet select,.pp-search-sheet input,.pp-search-sheet select),
body.pp-dark :where(.pnpRSSheet input,.pnpRSSheet select,.pp-search-sheet input,.pp-search-sheet select){
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.92) !important;
}
