/* PNP_PISACZEK_EKRANY_PANEL_CSS_V1 — Moje konto → Ekrany (E0.2); wygląd jak reszta panelu Moje konto */
.km .kc { margin-bottom: 18px; }
.km .kc .tx { margin: 0; }
.sc-beta { display: inline-block; margin: -6px 0 16px; padding: 4px 12px; border-radius: 999px; background: #fff4d6; color: #7a4b00; font-size: 15px; font-weight: 700; }
.sc-form { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.sc-form .kl { font-size: 17px; font-weight: 600; margin-top: 6px; }
.sc-form .ki { font: inherit; font-size: 18px; padding: 11px 12px; border: 1px solid #cfcbe0; border-radius: 10px; background: #fff; color: #1e2330; box-sizing: border-box; width: 100%; }
.sc-form .ki:focus, .sc-btn:focus-visible { outline: 3px solid #b9b0ff; outline-offset: 1px; }
.sc-code { font-size: 30px !important; letter-spacing: 6px; font-variant-numeric: tabular-nums; max-width: 260px; }
.sc-btn { display: inline-block; align-self: flex-start; font: inherit; font-weight: 700; font-size: 17px; padding: 10px 16px; border-radius: 12px; border: 1px solid #6658d7; background: #fff; color: #3a2db0; cursor: pointer; }
.sc-btn:hover { background: #f1efff; }
.sc-btn[disabled] { opacity: .55; cursor: wait; }
.sc-primary { background: #6658d7; color: #fff; margin-top: 8px; }
.sc-primary:hover { background: #5547c7; }
.sc-danger { border-color: #b42318; color: #b42318; }
.sc-danger:hover { background: #fdecea; }
.sc-msg { margin: 0; min-height: 1.4em; font-size: 17px; }
.sc-msg.ok { color: #1f6b45; } .sc-msg.err { color: #b42318; }
.sc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sc-limit { color: #5b6070; font-size: 16px; }
.sc-list { display: flex; flex-direction: column; gap: 12px; }
.sc-empty { margin: 0; color: #5b6070; }
.sc-item { border: 1px solid #e3e1ee; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.sc-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sc-name { font-size: 20px; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.sc-badge { padding: 3px 10px; border-radius: 999px; font-size: 15px; font-weight: 700; background: #eceef3; color: #3d4352; }
.sc-badge.online { background: #dff5e8; color: #1f6b45; }
.sc-badge.offline { background: #fff1d6; color: #7a4b00; }
.sc-badge.unpaired { background: #eceef3; color: #5b6070; }
.sc-meta { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; font-size: 16px; color: #3d4352; }
.sc-meta dt { color: #5b6070; } .sc-meta dd { margin: 0; overflow-wrap: anywhere; }
.sc-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-sum { display: inline; }
.kc summary { cursor: pointer; }
.sc-howto { margin: 12px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.sc-cmd { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #f3f2f8; font: 14px/1.5 Consolas, ui-monospace, monospace; overflow-wrap: anywhere; user-select: all; }
.sc-badge.pending { background: #e8e5ff; color: #3a2db0; }
.sc-armed { background: #b42318 !important; color: #fff !important; }
.sc-rename { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sc-rename .ki { font: inherit; font-size: 17px; padding: 9px 12px; border: 1px solid #cfcbe0; border-radius: 10px; flex: 1 1 220px; min-width: 0; }
.sc-rename .sc-primary { margin-top: 0; }
/* PNP_PISACZEK_EKRANY_APP_CSS_V1 — aplikacja /ekrany.php (18.10): układ strony jak w Moim koncie, bez menu konta */
body.sc-app { margin: 0; background: #f6f5fb; color: #1e2330; font: 18px/1.5 "Segoe UI", system-ui, sans-serif; }
.sc-app a { color: #4f3fd1; }
.sc-wrap { max-width: 980px; margin: 0 auto; padding: 28px 24px 60px; box-sizing: border-box; }
.sc-top-h { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.sc-top-h img { flex: 0 0 auto; border-radius: 50%; }
.sc-top-h h1 { margin: 0; font-size: 30px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sc-top-h .sc-beta { margin: 0; }
.sc-lead { margin: 2px 0 0; color: #5b6070; font-size: 17px; }
.sc-app .kc { background: #fff; border: 1px solid #e3e1ee; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.sc-app .kc h2 { margin: 0; font-size: 22px; }
.sc-app .kc .tx { margin: 0; }
@media (max-width: 700px) { .sc-wrap { padding: 18px 16px 40px; } .sc-top-h h1 { font-size: 26px; } }
/* PNP_PISACZEK_EKRANY_LIBRARY_CSS_V1 — zakładki + Biblioteka (E0.3) */
.sc-tabs { display: flex; gap: 6px; margin: 0 0 16px; border-bottom: 1px solid #e3e1ee; }
.sc-tabs button { font: inherit; font-size: 18px; font-weight: 700; padding: 10px 18px; border: 0; border-bottom: 3px solid transparent; background: none; color: #5b6070; cursor: pointer; margin-bottom: -1px; }
.sc-tabs button[aria-selected="true"] { color: #3a2db0; border-bottom-color: #6658d7; }
.sc-tabs button:focus-visible { outline: 3px solid #b9b0ff; outline-offset: 1px; }
.lb-drop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 18px; border: 2px dashed #b9b0ff; border-radius: 16px; background: #f8f7ff; color: #3a2db0; font-weight: 600; text-align: center; cursor: pointer; }
.lb-drop:hover, .lb-drop.over { background: #ece9ff; border-color: #6658d7; }
.lb-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lb-drop:focus-within { outline: 3px solid #b9b0ff; outline-offset: 2px; }
.lb-queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lb-q { display: grid; grid-template-columns: minmax(0, 1fr) 160px minmax(48px, auto); gap: 10px; align-items: center; font-size: 16px; }
.lb-q-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-q-bar { width: 100%; height: 10px; accent-color: #6658d7; }
.lb-q.ok .lb-q-st { color: #1f6b45; font-weight: 700; }
.lb-q.err { grid-template-columns: minmax(0, 1fr); }
.lb-q.err .lb-q-bar { display: none; }
.lb-q.err .lb-q-st { color: #b42318; }
.lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.lb-card { border: 1px solid #e3e1ee; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.lb-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #14122a; display: flex; align-items: center; justify-content: center; }
.lb-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lb-grid > .sc-empty { grid-column: 1 / -1; }
.lb-ph { color: #b9b4dc; font-size: 34px; }
.lb-dur { position: absolute; right: 8px; bottom: 8px; padding: 1px 7px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }
.lb-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.lb-title { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.lb-meta { margin: 0; font-size: 14px; color: #5b6070; }
.lb-st { margin: 0; font-size: 14px; font-weight: 700; color: #3d4352; }
.lb-st-ready { color: #1f6b45; } .lb-st-failed { color: #b42318; } .lb-st-processing, .lb-st-queued { color: #3a2db0; } .lb-st-uploading { color: #7a4b00; }
.lb-card .sc-acts { margin-top: 6px; }
.lb-card .sc-btn { font-size: 15px; padding: 7px 12px; }
.lb-dlg { border: 0; border-radius: 18px; padding: 18px; max-width: min(960px, 94vw); width: 100%; box-sizing: border-box; }
.lb-dlg::backdrop { background: rgba(20, 18, 42, .7); }
.lb-dlg-h { margin: 0 0 10px; font-size: 20px; }
.lb-media { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #14122a; border-radius: 10px; margin-bottom: 12px; }
@media (max-width: 700px) { .lb-q { grid-template-columns: minmax(0, 1fr) 90px auto; } }
/* PNP_PISACZEK_EKRANY_PROGRAMS_CSS_V1 — zakładka Programy (E0.4) */
.pg-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-row .ki { flex: 1 1 260px; }
.pg-row .sc-primary { margin-top: 0; }
.pg-list { display: flex; flex-direction: column; gap: 12px; }
.pg-head { align-items: center; }
.pg-head h2 { font-size: 24px; }
.pg-items { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pg-it { display: grid; grid-template-columns: 28px 120px minmax(0, 1fr) auto; gap: 12px; align-items: start; border: 1px solid #e3e1ee; border-radius: 14px; padding: 12px; background: #fff; }
.pg-no { font-weight: 800; color: #6658d7; padding-top: 6px; text-align: center; }
.pg-th { position: relative; width: 120px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #14122a; display: flex; align-items: center; justify-content: center; }
.pg-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pg-ph-t { font-weight: 800; font-size: 26px; }
.pg-label { margin: 0 0 6px; font-weight: 700; overflow-wrap: anywhere; }
.pg-bad { color: #b42318; }
.pg-fields { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; }
.pg-f { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: #5b6070; }
.pg-f .ki { font: inherit; font-size: 16px; padding: 7px 10px; border: 1px solid #cfcbe0; border-radius: 9px; background: #fff; color: #1e2330; }
.pg-f input[type=number] { width: 96px; }
.pg-wide { flex: 1 1 100%; }
.pg-wide .ki { width: 100%; box-sizing: border-box; }
.pg-chk { flex-direction: row; align-items: center; gap: 6px; font-size: 16px; color: #1e2330; padding-bottom: 8px; }
.pg-chk input { width: 20px; height: 20px; accent-color: #6658d7; }
.pg-mv { display: flex; flex-direction: column; gap: 6px; }
.pg-ic { padding: 4px 10px !important; font-size: 16px !important; min-width: 40px; }
.pg-ic[disabled] { opacity: .35; cursor: default; }
.pg-add { margin-top: 12px; }
.pg-sub { margin: 12px 0 8px; font-size: 18px; }
.pg-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pg-pk { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px solid #e3e1ee; border-radius: 12px; background: #fff; cursor: pointer; text-align: left; font: inherit; font-size: 14px; color: #1e2330; }
.pg-pk:hover, .pg-pk:focus-visible { border-color: #6658d7; background: #f8f7ff; outline: none; }
.pg-pk .lb-thumb { border-radius: 8px; }
.pg-pk-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-total { margin-top: 10px; }
.pg-foot { margin-top: 12px; border-top: 1px solid #e3e1ee; padding-top: 12px; }
.pg-foot .sc-primary { margin-top: 0; }
.pg-hist { margin-top: 12px; }
.pg-hist summary { cursor: pointer; font-weight: 700; }
.pg-hl { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.pg-hl li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pg-hl .sc-btn { font-size: 14px; padding: 5px 10px; }
.sc-prog { max-width: 360px; }
@media (max-width: 700px) { .pg-it { grid-template-columns: 22px 80px minmax(0, 1fr); } .pg-th { width: 80px; } .pg-mv { grid-column: 1 / -1; flex-direction: row; } }
/* PNP_PISACZEK_EKRANY_LAYOUTS_CSS_V1 — wybór układu i strefy w edytorze programu (E1) */
.pg-layouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 8px; }
.pg-lay { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; border: 2px solid #e3e1ee; border-radius: 14px; background: #fff; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600; color: #1e2330; }
.pg-lay:hover { border-color: #b9b0ff; }
.pg-lay.on { border-color: #6658d7; background: #f1efff; color: #3a2db0; }
.pg-lay:focus-visible { outline: 3px solid #b9b0ff; outline-offset: 2px; }
.pg-mini { display: grid; width: 96px; aspect-ratio: 16 / 9; gap: 3px; padding: 3px; box-sizing: border-box; border-radius: 6px; background: #14122a; flex: 0 0 auto; }
.pg-mini-s { width: 56px; }
.pg-mz { display: block; background: #6d68a6; border-radius: 2px; }
.pg-mz.on { background: #e9cf85; }
.pg-lay.on .pg-mz { background: #9d93ff; }
.pg-mini-full { grid-template: 1fr / 1fr; }
.pg-mini-main_side { grid-template: 1fr 1fr / 3fr 1fr; }
.pg-mini-main_side .pg-mz-main { grid-row: 1 / 3; }
.pg-mini-two { grid-template: 1fr / 1fr 1fr; }
.pg-mini-four { grid-template: 1fr 1fr / 1fr 1fr; }
.pg-mini-main_bar { grid-template: 7fr 1fr / 1fr; }
.pg-zone { margin-top: 16px; padding-top: 12px; border-top: 1px solid #e3e1ee; }
.pg-zone-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pg-zone-h .pg-sub { margin: 0; }
.pg-geo { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-geo .ki { flex: 1 1 220px; font-size: 16px; padding: 7px 10px; border: 1px solid #cfcbe0; border-radius: 9px; }
.pg-geo-res { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pg-geo-o { font-size: 15px !important; text-align: left; }
.pg-attr { font-size: 13px !important; }
.sc-top .pg-mini-s { width: 48px; }
/* PNP_PISACZEK_EKRANY_HOWTO_CSS_V2 — „Jak podłączyć telewizor”: przeglądarka / program / kiosk (E2) */
.sc-dl { text-decoration: none; display: inline-block; }
.sc-dl:hover { color: #fff; }
.sc-adv { margin-top: 10px; }
.sc-adv summary { cursor: pointer; font-weight: 600; color: #5b6070; }
.kc details > .pg-sub:first-of-type { margin-top: 14px; }
/* PNP_PISACZEK_EKRANY_E3_CSS_V1 — pilny komunikat, grupy, harmonogram (E3) */
.e3-alert { border-color: #f0b4ae; }
.e3-alert h2::before { content: "⚠ "; color: #b42318; }
.e3-checks { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.e3-alerts { display: flex; flex-direction: column; gap: 8px; }
.e3-al { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; border-left: 6px solid #b42318; background: #fdecea; }
.e3-al-yellow { border-left-color: #b88400; background: #fff4d6; }
.e3-al-dark { border-left-color: #3a2db0; background: #ece9ff; }
.e3-al b { flex: 1 1 200px; overflow-wrap: anywhere; }
.e3-inline { flex-direction: row; align-items: center; gap: 8px; }
.e3-days { display: flex; gap: 4px; flex-wrap: wrap; align-items: flex-end; }
.e3-day { display: flex; flex-direction: column; align-items: center; font-size: 13px; color: #5b6070; }
.e3-day input { width: 22px; height: 22px; accent-color: #6658d7; }
.e3-on { align-self: center; color: #3a2db0 !important; font-weight: 700; }
.e3-dates { flex: 1 1 100%; }
.e3-dates summary { cursor: pointer; font-size: 14px; color: #5b6070; }
.e3-rule { grid-template-columns: 28px minmax(0, 1fr) auto !important; }
.e3-dlg { max-width: min(1040px, 96vw); }
/* PNP_PISACZEK_EKRANY_E6_CSS_V1 — edytor okienek (jak Split Screen w OptiSigns): płótno, uchwyty, panel okienka */
.e6-mini { position: relative; display: block; width: 96px; aspect-ratio: 16 / 9; border-radius: 6px; background: #14122a; flex: 0 0 auto; overflow: hidden; }
.e6-mini i { position: absolute; box-sizing: border-box; border: 1px solid #14122a; opacity: .9; }
.e6-help { margin: 4px 0 12px; padding: 10px 14px; border-radius: 12px; background: #f4f2ff; }
.e6-help summary { cursor: pointer; font-weight: 700; }
.e6-help ol { margin: 8px 0 0; }
.e6-hint { margin: 2px 0 6px; font-size: 14px; line-height: 1.35; color: #5b6070; }
small.e6-hint { display: block; margin-top: 4px; }
.e6-toolbar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; background: #fff; border-bottom: 1px solid #ecebf3; }
.e6-toolbar .sc-btn, .e6-tb { margin-top: 0; padding: 8px 12px; font-size: 16px; }
.e6-sep { width: 1px; height: 28px; background: #e3e1ee; }
.e6-orient { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.e6-orient .on { background: #6658d7; color: #fff; }
.e6-tpl { position: relative; }
.e6-tpl > summary { list-style: none; cursor: pointer; margin: 0; }
.e6-tpl > summary::-webkit-details-marker { display: none; }
.e6-tplbox { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(560px, 90vw); padding: 12px; border: 1px solid #e3e1ee; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(20, 18, 42, .18); }
.e6-tplgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.e6-tplb { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border: 1px solid #e3e1ee; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.e6-tplb:hover, .e6-tplb:focus-visible { border-color: #6658d7; background: #f4f2ff; }
.e6-tplb .e6-mini { width: 100%; }
.e6-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 20px; align-items: start; margin-top: 6px; }
.e6-left { min-width: 0; }
.e6-stagewrap { display: flex; justify-content: center; padding: 14px; border-radius: 14px; background: #f1f0f7; }
.e6-canvas { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #14122a; border-radius: 4px; overflow: hidden; touch-action: none; user-select: none; outline: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 10% 10%; }
.e6-canvas:focus-visible { box-shadow: 0 0 0 3px #b9b0ff; }
.e6-canvas.e6-port { width: auto; height: min(70vh, 640px); aspect-ratio: 9 / 16; }
.e6-z { position: absolute; box-sizing: border-box; border: 2px solid rgba(255,255,255,.55); background-size: cover; background-position: center; cursor: move; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.e6-z.on { border: 3px solid #fff; box-shadow: 0 0 0 2px #6658d7, 0 6px 20px rgba(0,0,0,.35); overflow: visible; }
.e6-zl { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 8px; color: #fff; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; max-width: 100%; }
.e6-zl b { font-size: clamp(12px, 1.5vw, 18px); overflow-wrap: anywhere; }
.e6-zl small { font-size: clamp(11px, 1.1vw, 14px); opacity: .9; }
.e6-dim { position: absolute; right: 4px; bottom: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(20,18,42,.75); color: #fff; font-size: 12px; pointer-events: none; }
.e6-h { position: absolute; width: 14px; height: 14px; margin: -8px 0 0 -8px; box-sizing: border-box; border: 2px solid #6658d7; border-radius: 3px; background: #fff; z-index: 2; touch-action: none; }
.e6-h-nw { left: 0; top: 0; cursor: nwse-resize; } .e6-h-n { left: 50%; top: 0; cursor: ns-resize; } .e6-h-ne { left: 100%; top: 0; cursor: nesw-resize; }
.e6-h-e { left: 100%; top: 50%; cursor: ew-resize; } .e6-h-se { left: 100%; top: 100%; cursor: nwse-resize; } .e6-h-s { left: 50%; top: 100%; cursor: ns-resize; }
.e6-h-sw { left: 0; top: 100%; cursor: nesw-resize; } .e6-h-w { left: 0; top: 50%; cursor: ew-resize; }
@media (pointer: coarse) { .e6-h { width: 24px; height: 24px; margin: -12px 0 0 -12px; } }
.e6-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.e6-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #e3e1ee; border-radius: 999px; background: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.e6-chip.on { border-color: #6658d7; background: #f1efff; font-weight: 700; }
.e6-sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; flex: 0 0 auto; }
.e6-side { border: 1px solid #e3e1ee; border-radius: 14px; padding: 14px; min-width: 0; }
.e6-pick { margin: 0; padding: 30px 10px; text-align: center; color: #5b6070; }
.e6-sh { display: flex; align-items: center; gap: 8px; }
.e6-sh .e6-sw { width: 20px; height: 20px; }
.e6-name { flex: 1; font: inherit; font-size: 18px; font-weight: 700; padding: 8px 10px; border: 1px solid #cfcbe0; border-radius: 10px; min-width: 0; }
.e6-pos { margin: 8px 0 12px; padding: 8px 12px; border-radius: 12px; background: #f8f7fc; }
.e6-pos summary { cursor: pointer; font-weight: 700; }
.e6-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.e6-grid .ki { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 7px 8px; border: 1px solid #cfcbe0; border-radius: 8px; }
.e6-grid .pg-f span { font-size: 13px; }
.e6-pos .sc-acts .sc-btn { margin-top: 6px; padding: 6px 12px; font-size: 15px; }
.e6-add { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.e6-ab { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid #e3e1ee; border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.e6-ab:hover, .e6-ab:focus-visible { border-color: #6658d7; background: #f4f2ff; }
.e6-ai { flex: 0 0 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: #ece9ff; font-weight: 800; }
.e6-at { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.e6-at b { font-size: 16px; } .e6-at small { font-size: 13px; color: #5b6070; line-height: 1.3; }
.e6-side .pg-it { grid-template-columns: 22px 64px minmax(0, 1fr) auto; }
.e6-side .pg-th { width: 64px; }
@media (max-width: 1100px) { .e6-main { grid-template-columns: minmax(0, 1fr); } .e6-orient { margin-left: 0; } }
@media (max-width: 700px) { .e6-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .e6-side .pg-it { grid-template-columns: 22px 64px minmax(0, 1fr); } .e6-toolbar { position: static; } }
/* PNP_PISACZEK_EKRANY_E6_1_CSS_V1 — E6.1: edytor na całą szerokość, panel „co dodać” po prawej, podgląd zawartości w okienkach */
body.e6-wide .sc-wrap { max-width: none; padding: 16px 24px 48px; }
.e6-main { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 22px; }
.e6-stagewrap { padding: 16px; }
.e6-canvas { max-width: calc(76vh * 16 / 9); margin: 0 auto; }
.e6-canvas.e6-port { height: 76vh; max-width: none; }
.e6-side { position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow: auto; overscroll-behavior: contain; }
.e6-addh { margin-top: 12px; }
.e6-add { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.e6-ab.on { border-color: #6658d7; background: #f1efff; }
.e6-side .pg-items > li.e6-new { animation: e6-flash 1.4s ease-out; }
@keyframes e6-flash { from { box-shadow: 0 0 0 4px #b9b0ff; } to { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 1000px) { .e6-main { grid-template-columns: minmax(0, 1fr); } .e6-side { position: static; max-height: none; } }
/* okienko na płótnie: podgląd na całą powierzchnię, nazwa w rogu */
.e6-z { container-type: size; background-color: #1e1a3a; align-items: stretch; justify-content: stretch; }
.e6-z .e6-zl { position: absolute; left: 4px; top: 4px; z-index: 1; flex-direction: row; align-items: baseline; gap: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(20,18,42,.72); max-width: calc(100% - 8px); box-sizing: border-box; }
.e6-z .e6-zl b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e6-z .e6-zl small { font-size: 12px; white-space: nowrap; }
@container (max-height: 60px) { .e6-z .e6-zl small { display: none; } }
.e6-pv { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqmin; overflow: hidden; color: #f3f1ff; text-align: center; pointer-events: none; }
.e6-pv-empty { background: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 10px, transparent 10px 20px); }
.e6-pv-hint { padding: 0 8%; font-size: clamp(11px, 7cqmin, 18px); color: rgba(255,255,255,.85); }
.e6-pv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.e6-pv-img.contain { object-fit: contain; background: #000; }
.e6-pv-ic { font-size: clamp(16px, 30cqmin, 80px); }
.e6-pv-play { position: absolute; width: clamp(20px, 22cqmin, 64px); aspect-ratio: 1; border-radius: 50%; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; font-size: clamp(10px, 10cqmin, 30px); }
.e6-pv-text { padding: 6cqmin 7cqmin; box-sizing: border-box; }
.e6-pv-text b { font-size: clamp(11px, 11cqmin, 64px); line-height: 1.1; overflow-wrap: anywhere; }
.e6-pv-text span { font-size: clamp(9px, 6.5cqmin, 36px); line-height: 1.3; white-space: pre-line; overflow-wrap: anywhere; }
.e6-pv-text.txt-dark { background: #14122a; } .e6-pv-text.txt-light { background: #f6f4ef; color: #1e2330; }
.e6-pv-text.txt-brand { background: linear-gradient(135deg, #6a5ad8, #3f33b5); }
.e6-pv-w { background: #14122a; }
.e6-pv-big { font-size: clamp(14px, min(36cqh, 22cqw), 120px); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.e6-pv-gold { color: #e9cf85; font-weight: 700; font-size: clamp(10px, min(16cqh, 10cqw), 48px); text-transform: capitalize; }
.e6-pv-mid { font-size: clamp(9px, min(13cqh, 8cqw), 40px); }
.e6-pv-ticker { background: #1e1a3a; border-top: 2px solid #e9cf85; justify-content: center; align-items: flex-start; }
.e6-pv-run { display: inline-block; white-space: nowrap; font-weight: 700; font-size: clamp(10px, 50cqh, 48px); padding-left: 100%; animation: e6-tk 14s linear infinite; }
@keyframes e6-tk { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .e6-pv-run { animation: none; padding-left: 4px; } }
.e6-pv-more { position: absolute; right: 4px; bottom: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(20,18,42,.72); font-size: 12px; }
.e6-z.on .e6-pv-more { bottom: 26px; }
.e6-pv-ticker { align-items: stretch; justify-content: center; }
.e6-pv-run { display: flex; width: max-content; padding-left: 0; animation: e6-tk2 12s linear infinite; }
.e6-pv-run span { white-space: pre; }
@keyframes e6-tk2 { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .e6-pv-run { animation: none; } }
/* PNP_PISACZEK_EKRANY_E6_2_CSS_V1 — E6.2: gadżety (klik / przeciągnij), jeden gadżet na okienko, strefy czasowe, pogoda, podgląd na żywo */
.e6-pal { position: sticky; top: -14px; z-index: 3; margin: -14px -14px 12px; padding: 12px 14px 10px; background: #fff; border-bottom: 1px solid #ecebf3; border-radius: 14px 14px 0 0; }
.e6-pal .pg-sub { margin: 0 0 2px; }
.e6-palg { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin-top: 6px; }
.e6-gd { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid #e3e1ee; border-radius: 12px; background: #fff; font: inherit; font-size: 13px; cursor: grab; touch-action: none; user-select: none; }
.e6-gd b { font-weight: 700; text-align: center; line-height: 1.15; }
.e6-gd:hover, .e6-gd:focus-visible { border-color: #6658d7; background: #f4f2ff; }
.e6-gd.on { border-color: #6658d7; background: #6658d7; color: #fff; }
.e6-gd.on .e6-ai { background: rgba(255,255,255,.2); }
body.e6-dragging, body.e6-dragging * { cursor: grabbing !important; }
.e6-ghost { position: fixed; z-index: 1000; transform: translate(-50%, -120%); display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #6658d7; color: #fff; box-shadow: 0 10px 28px rgba(20,18,42,.35); pointer-events: none; font-size: 15px; }
.e6-ghost .e6-ai { background: rgba(255,255,255,.2); }
.e6-z.e6-drop { outline: 4px dashed #ffd84d; outline-offset: -6px; }
.e6-canvas.e6-drop-new { box-shadow: inset 0 0 0 4px #ffd84d; }
.e6-dropzone { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 2px dashed #b9b0ff; border-radius: 14px; background: #f8f7ff; text-align: center; }
.e6-dropzone b { font-size: 17px; } .e6-dropzone span { color: #5b6070; font-size: 15px; line-height: 1.4; }
.e6-content { margin-top: 10px; }
.e6-gh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.e6-gh .pg-sub { margin: 0; flex: 1; }
.e6-clear { margin-top: 0; padding: 6px 10px; font-size: 14px; }
.e6-side .pg-it.e6-single { grid-template-columns: 64px minmax(0, 1fr); }
.e6-wx-cur { margin: 0 0 4px; padding: 8px 10px; border-radius: 10px; background: #fff4d6; color: #7a4b00; font-weight: 600; }
.e6-wx-cur.ok { background: #dff5e8; color: #1f6b45; }
.e6-wx-res { display: flex; flex-direction: column; gap: 4px; }
.e6-wx-o { display: flex; flex-direction: column; align-items: flex-start; padding: 7px 10px; border: 1px solid #e3e1ee; border-radius: 10px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.e6-wx-o:hover, .e6-wx-o:focus-visible { border-color: #6658d7; background: #f4f2ff; }
.e6-wx-o small { color: #5b6070; font-size: 13px; }
.e6-wx-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.e6-chipbtn { padding: 4px 10px; border: 1px solid #e3e1ee; border-radius: 999px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.e6-chipbtn:hover { border-color: #6658d7; } .e6-chipbtn.on { background: #6658d7; border-color: #6658d7; color: #fff; }
.e6-pvbtn { border-color: #1f6b45; color: #1f6b45; }
.e6-pvbtn:hover { background: #e6f6ee; }
.e6-prev { width: 96vw; max-width: none; height: 94vh; max-height: none; padding: 0; border: 0; border-radius: 16px; background: #0e0c1f; color: #fff; overflow: hidden; }
.e6-prev::backdrop { background: rgba(10, 8, 25, .75); }
.e6-prev[open] { display: flex; flex-direction: column; }
.e6-prev-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; background: #1e1a3a; }
.e6-prev-h b { font-size: 18px; } .e6-prev-h .lb-meta { color: #cfcbe8; flex: 1; }
.e6-prev-h .sc-btn { margin-top: 0; }
.e6-prev-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 14px; container-type: size; }
.e6-prev-frame { border: 0; background: #000; box-shadow: 0 0 0 2px #2d2850; width: min(100cqw, calc(100cqh * 16 / 9)); aspect-ratio: 16 / 9; }
.e6-prev-port .e6-prev-frame { width: min(100cqw, calc(100cqh * 9 / 16)); aspect-ratio: 9 / 16; }
.e6-gd .e6-ai { flex: none; width: 34px; height: 34px; font-size: 18px; }
.e6-side .pg-it.e6-single { grid-template-columns: minmax(0, 1fr); border-color: #ecebf3; }
/* PNP_PISACZEK_EKRANY_E7_CSS_V1 — E7: ustawienia kalendarza (własny / innej osoby za zgodą) */
.e6-cal { display: flex; flex-direction: column; gap: 8px; }
.e6-cal .e6-wx-cur { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.e6-cal .e6-wx-cur .sc-btn { margin-top: 0; padding: 6px 12px; font-size: 15px; }
.e6-calreq { padding: 10px 12px; border-radius: 12px; background: #f8f7fc; }
.e6-calreq summary { cursor: pointer; font-weight: 700; }
.e6-calreq .pg-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.e6-calreq .pg-row .ki { flex: 1 1 200px; font: inherit; padding: 8px 10px; border: 1px solid #cfcbe0; border-radius: 10px; }
.e6-calreq .pg-row .sc-btn { margin-top: 0; }
.e6-callist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.e6-callist li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; border: 1px solid #ecebf3; border-radius: 10px; background: #fff; }
.e6-callw { flex: 1 1 160px; overflow-wrap: anywhere; font-size: 15px; }
.e6-cs-accepted { background: #dff5e8; color: #1f6b45; } .e6-cs-pending { background: #fff1d6; color: #7a4b00; }
.e6-cs-declined, .e6-cs-revoked, .e6-cs-expired { background: #eceef3; color: #5b6070; }
/* PNP_PISACZEK_EKRANY_E8_CSS_V1 — E8: ekrany jako belki (nazwa po lewej, Edytuj / Opcje po prawej), kroki łączenia telewizora, edycja z belki */
.sc-list { gap: 10px; }
.sc-bar { padding: 0; gap: 0; overflow: hidden; }
.sc-bar-h { display: flex; align-items: center; gap: 14px; padding: 14px 16px; flex-wrap: wrap; }
.sc-dot { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; background: #b9bdc8; box-shadow: 0 0 0 4px #eceef3; }
.sc-dot.online { background: #22a05b; box-shadow: 0 0 0 4px #dff5e8; } .sc-dot.offline { background: #e0a020; box-shadow: 0 0 0 4px #fff1d6; }
.sc-bar-i { flex: 1 1 240px; min-width: 0; }
.sc-bar-i .sc-name { font-size: 20px; margin: 0; }
.sc-bar-l { margin: 2px 0 0; font-size: 15px; color: #5b6070; overflow-wrap: anywhere; }
.sc-bar-b { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.sc-bar-b .sc-btn { margin-top: 0; }
.sc-edit { min-width: 120px; }
.sc-opts-b[aria-expanded="true"] { background: #f1efff; }
.sc-opts { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; border-top: 1px solid #ecebf3; background: #faf9fd; }
.sc-opts[hidden] { display: none; }
.sc-opts .sc-acts { margin: 0; }
.sc-det summary { cursor: pointer; color: #5b6070; font-size: 15px; }
.sc-det .sc-meta { margin-top: 8px; }
.sc-steps { margin: 4px 0 14px; padding: 14px 16px; border-radius: 14px; background: #f4f2ff; }
.sc-steps .pg-sub { margin: 0 0 8px; }
.sc-steps-l { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 17px; line-height: 1.45; }
.sc-url { display: inline-block; padding: 1px 8px; border-radius: 8px; background: #fff; border: 1px solid #d9d4f5; font-family: ui-monospace, Consolas, monospace; font-size: 16px; }
.sc-codeex { display: inline-block; padding: 2px 10px; border-radius: 10px; background: #14122a; color: #fff; font: 700 20px/1.3 ui-monospace, Consolas, monospace; letter-spacing: 3px; }
.e8-ctx { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #fff4d6; color: #7a4b00; font-weight: 600; }
[data-panel="programy"].e8-editing > section:not(#pg-editor) { display: none; }
@media (max-width: 700px) { .sc-bar-b { margin-left: 0; width: 100%; } .sc-bar-b .sc-btn { flex: 1; } }
/* PNP_PISACZEK_EKRANY_E4_CSS_V1 — E4: powiadomienia o awarii, raport odtwarzania */
.e4-watch { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 10px 14px 12px; border: 1px solid #e3e1ee; border-radius: 12px; background: #fff; }
.e4-watch legend { font-weight: 700; padding: 0 4px; }
.e4-watch .sc-btn { align-self: flex-start; margin-top: 4px; }
.e4-inline { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
.e4-inline .ki { width: auto; font: inherit; padding: 6px 8px; border: 1px solid #cfcbe0; border-radius: 8px; }
.e4-dlg { max-width: min(900px, 96vw); }
.e4-dlg .sc-acts { align-items: center; }
.e4-up { margin: 10px 0; padding: 8px 12px; border-radius: 10px; background: #dff5e8; color: #1f6b45; font-weight: 600; }
.e4-tab { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 16px; }
.e4-tab th { text-align: left; color: #5b6070; font-weight: 600; border-bottom: 2px solid #ecebf3; padding: 6px 8px; }
.e4-tab td { border-bottom: 1px solid #f0eef6; padding: 7px 8px; vertical-align: top; }
.e4-tab td:nth-child(n+2), .e4-tab th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.e4-tab small { color: #5b6070; }
/* PNP_PISACZEK_EKRANY_E5_CSS_V1 — E5: komunikat z wydarzenia Kalendarza */
.e5-modes { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.e5-modes .sc-btn { margin-top: 0; }
.e5-modes .sc-btn.on { background: #6658d7; color: #fff; }
.e5-evs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.e5-ev { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid #e3e1ee; border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.e5-ev:hover { border-color: #6658d7; } .e5-ev.on { border-color: #6658d7; background: #f1efff; box-shadow: 0 0 0 2px #b9b0ff; }
.e5-evd { font-size: 14px; color: #6658d7; font-weight: 700; }
.e5-evd::first-letter { text-transform: uppercase; }
.e5-ev small { color: #5b6070; }
.e3-al-banner { border-left-color: #6658d7; background: #f1efff; }
/* PNP_PISACZEK_EKRANY_L_CSS_V1 — limit planu */
.sc-upsell { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #fff4d6; color: #7a4b00; font-weight: 600; }
.sc-upsell[hidden] { display: none; }
.sc-upsell .sc-btn { margin-top: 0; }
/* PNP_PISACZEK_EKRANY_TEAM_CSS_V1 — zespoły: przełącznik ekranów i dostęp członków */
.tm-ws { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.tm-ws .sc-btn { margin-top: 0; } .tm-ws .sc-btn.on { background: #6658d7; color: #fff; }
.tm-info { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #f1efff; color: #3a2db0; font-weight: 600; }
.tm-info.ro { background: #fff4d6; color: #7a4b00; }
body.sh-guest #sc-list .sc-danger, body.sh-guest #lb-grid .sc-danger, body.sh-guest #pg-list .sc-danger, body.sh-guest .e4-watch:not(.sc-power):not(.sc-shot) { display: none !important; } /* E15 przegląd 28.10: gość udostępnienia nie usuwa ani nie odłącza */
body.tm-readonly .sc-add, body.tm-readonly .sc-edit, body.tm-readonly .sc-opts .sc-acts, body.tm-readonly .e4-watch, body.tm-readonly #pg-new, body.tm-readonly .e3-send, body.tm-readonly .lb-drop { display: none !important; }
.tm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tm-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid #ecebf3; border-radius: 12px; }
.tm-who { flex: 1 1 200px; } .tm-who small { color: #5b6070; }
.tm-list .ki { font: inherit; padding: 6px 8px; border: 1px solid #cfcbe0; border-radius: 8px; }
/* PNP_PISACZEK_EKRANY_GDRIVE_CSS_V1 — E6b: gadżet Dysk Google */
.e6-gdbox { display: flex; flex-direction: column; gap: 8px; }
.e6-gdbox .pg-row { display: flex; gap: 8px; flex-wrap: wrap; }
.e6-gdbox .pg-row .ki { flex: 1 1 240px; font: inherit; padding: 8px 10px; border: 1px solid #cfcbe0; border-radius: 10px; }
.e6-gdbox .pg-row .sc-btn { margin-top: 0; }
.e6-gdl { margin: 0; padding-left: 18px; font-size: 14px; color: #3d4352; columns: 2; }
/* E2 etap B: zrzut ekranu (PNP_PISACZEK_EKRANY_SHOT_V1) */
.sc-shot .sc-shot-at{margin:8px 0 6px;font-weight:600}
.sc-shot .sc-shot-img{display:block;max-width:100%;max-height:360px;border-radius:12px;border:1px solid rgba(0,0,0,.15);background:#000}
/* E10: wygaszanie na noc (PNP_PISACZEK_EKRANY_POWER_V1) */
.sc-power .sc-power-row{display:flex;flex-wrap:wrap;gap:12px}
.sc-power .sc-power-days{display:flex;flex-wrap:wrap;gap:6px 14px;margin:2px 0 8px}
.sc-power .sc-power-days label{display:inline-flex;align-items:center;gap:6px;min-height:36px}
/* E14: Dysk Google — wybór plików (PNP_PISACZEK_EKRANY_GDRIVE_V1) */
.e6-gdnew { background: #fff4d6; border: 1px solid #e9c46a; border-radius: 12px; padding: 10px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.e6-gdnew p { margin: 0; flex: 1 1 260px; font-weight: 600; color: #6b4e00; }
.e6-gdbar { display: flex; flex-wrap: wrap; gap: 6px; }
.e6-gdbar .sc-btn { margin-top: 0; }
.e6-gdsum { margin: 0; font-weight: 600; color: #1f6b45; }
.e6-gdsum.err { color: #b42318; }
.e6-gdpick { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; border: 1px solid #e3e0ee; border-radius: 12px; }
.e6-gdpick li + li { border-top: 1px solid #efedf5; }
.e6-gdpick label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; min-height: 40px; }
.e6-gdpick input { width: 20px; height: 20px; flex: none; }
.e6-gdpick .e6-gdnm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e6-gdpick .e6-gdic { flex: none; }
.e6-gdpick small { flex: none; }
.e6-gdnewb { flex: none; background: #e9c46a; color: #3d2e00; border-radius: 999px; padding: 1px 8px; font-size: 12px; text-transform: uppercase; }
.e6-pv-new { display: inline-block; margin-top: 4px; background: #e9c46a; color: #3d2e00; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
.sc-gdnew { display: inline-block; margin-top: 4px; background: #fff4d6; color: #6b4e00; border: 1px solid #e9c46a; border-radius: 999px; padding: 2px 10px; font-size: 14px; font-weight: 600; }
@media (max-width: 560px) { .e6-gdpick label { flex-wrap: wrap; row-gap: 2px; } .e6-gdpick .e6-gdnm { flex: 1 1 0; min-width: 0; white-space: normal; overflow-wrap: anywhere; } .e6-gdpick small { flex-basis: 100%; padding-left: 58px; } }
/* E15: pasek boczny Ekranów (PNP_PISACZEK_EKRANY_NAV_V1) */
body.nv-on .sc-wrap { max-width: 1280px; }
.nv-tabs-hidden { display: none !important; }
.nv-off { display: none !important; }
.nv-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.nv-side { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #e3e1ee; border-radius: 18px; padding: 10px; }
.nv-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; background: none; border: 0; border-radius: 12px; padding: 10px 12px; cursor: pointer; color: #1f2430; min-height: 56px; }
.nv-item:hover { background: #f4f2ff; }
.nv-item.on { background: #ece9ff; box-shadow: inset 4px 0 0 #6658d7; }
.nv-item:focus-visible { outline: 3px solid #b9b0ff; outline-offset: 1px; }
.nv-ic { font-size: 24px; width: 32px; text-align: center; flex: none; }
.nv-tx { display: flex; flex-direction: column; min-width: 0; }
.nv-tx b { font-size: 16px; font-weight: 700; }
.nv-tx small { font-size: 13px; color: #6b7080; line-height: 1.3; }
.nv-intro { background: #f7f5ff; border-color: #dcd6ff; }
.nv-intro h2 { margin-top: 0; }
.nv-intro .tx { font-size: 17px; line-height: 1.6; }
.nv-codehint { margin: 4px 0 10px; max-width: 640px; }
/* E21: pasek boczny także w edytorze — same ikony (opis w podpowiedzi), żeby edytor miał miejsce */
body.nv-editing .nv-layout { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
body.nv-editing .nv-side { padding: 6px; align-items: center; }
body.nv-editing .nv-item { width: 56px; justify-content: center; padding: 10px 0; }
body.nv-editing .nv-item .nv-tx { display: none; }
.sh-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.sh-form .pg-f { margin: 0; }
.sh-form input[type=email] { min-width: 260px; }
.sh-found { font-weight: 700; color: #1f6b45; margin: 10px 0 6px; }
.sh-linkres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sh-url { flex: 1 1 320px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
a.sc-btn.sc-primary { color: #fff !important; text-decoration: none; }
@media (max-width: 900px) {
  .nv-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .nv-side { position: sticky; top: 0; z-index: 20; flex-direction: row; overflow-x: auto; padding: 6px; border-radius: 14px; -webkit-overflow-scrolling: touch; }
  .nv-item { width: auto; flex: none; min-height: 48px; padding: 8px 12px; }
  .nv-item small { display: none; }
  .nv-ic { font-size: 20px; width: auto; }
}
/* E16: dolna belka edytora zawsze na wierzchu (Zapisz szkic / Podgląd / Opublikuj) */
#pg-editor .pg-foot { position: sticky; bottom: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: rgba(255, 255, 255, .97); margin: 12px -12px 0; padding: 12px; border-top: 1px solid #e3e1ee; border-radius: 14px 14px 0 0; box-shadow: 0 -8px 20px rgba(20, 16, 50, .10); backdrop-filter: blur(6px); }
#pg-editor .pg-foot .sc-btn { margin-top: 0; }
@media (max-width: 900px) { #pg-editor .pg-foot { bottom: var(--pnp-bottom-nav, 64px); } }
/* E17: przystawka z Androidem (⋯ Opcje → Przystawka z Androidem) */
.sc-dev .sc-dev-info{margin:2px 0 4px;padding-left:20px;display:flex;flex-direction:column;gap:3px}
.sc-dev .sc-power-row .pg-f{min-width:180px}
.sc-dev .sc-acts{display:flex;flex-wrap:wrap;gap:8px}
body.sh-guest .sc-ownonly{display:none !important}

/* E18 (PNP_PISACZEK_EKRANY_E18_V1): „Kiedy i jak pokazywać”, zdjęcie działu, komunikaty pól */
.e18-vis { margin: 10px 0 4px; border: 1px solid #e3e1ef; border-radius: 12px; padding: 8px 12px; background: #fbfaff; }
.e18-vis summary { cursor: pointer; font-weight: 700; color: #3a2db0; min-height: 32px; display: flex; align-items: center; }
.e18-vis .pg-fields { margin-top: 8px; }
.e18-dayrow { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.e18-day { padding-bottom: 0; text-transform: capitalize; }
.e18-msg:empty { display: none; }
.e18-ppbox { gap: 8px; }
.e18-snap { display: block; width: 100%; max-width: 420px; border-radius: 10px; border: 1px solid #e3e1ef; background: #0d0b1d; }
.e18-wifi summary { cursor: pointer; font-weight: 600; color: #3a2db0; min-height: 32px; }
.e18-wifi[open] { display: flex; flex-direction: column; gap: 6px; }
/* PNP_PISACZEK_EKRANY_E19_V1 — Tablice na żywo (lista, pilot: menu, zamówienia, kolejka) + podpowiedzi osób w kalendarzu */
.e19-list { display: grid; gap: 12px; }
.e19-boards label.kl { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.e19-boards label.kl .ki { font: inherit; font-size: 17px; font-weight: 400; padding: 10px 12px; border: 1px solid #cfcbe0; border-radius: 10px; background: #fff; box-sizing: border-box; width: 100%; max-width: 460px; }
.e19-boards label.kl .ki.e19-big { font-size: 34px; font-weight: 800; max-width: 320px; }
.e19-card { border: 1px solid #e3e1ee; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.e19-card-main { display: flex; align-items: center; gap: 12px; text-align: left; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; color: inherit; }
.e19-ic { font-size: 32px; width: 44px; text-align: center; flex: none; }
.e19-card-tx { display: flex; flex-direction: column; min-width: 0; }
.e19-card-tx b { font-size: 18px; }
.e19-card-tx small { color: #5b6070; font-size: 14px; }
.e19-card-act { display: flex; flex-wrap: wrap; gap: 8px; }
.e19-card-act .sc-primary { margin-top: 0; }
.e19-new { margin-top: 10px; border-top: 1px solid #e3e1ee; padding-top: 6px; }
.e19-kinds { display: grid; gap: 8px; }
.e19-kind { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #e3e1ee; border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.e19-kind input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.e19-kind span { display: flex; flex-direction: column; }
.e19-kind small { color: #5b6070; font-size: 14px; }
.e19-kind:has(input:checked) { border-color: #6658d7; background: #f4f2ff; }
.e19-phead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.e19-phead h2 { margin: 0; }
.e19-tabs { display: flex; gap: 8px; }
.e19-tabs .sc-btn.on { background: #6658d7; color: #fff; }
.e19-mlive { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.e19-mlive li { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #e3e1ee; border-radius: 12px; padding: 8px 10px 8px 14px; }
.e19-mlive li.off .e19-mname b { text-decoration: line-through; color: #8a8f9c; }
.e19-mname { display: flex; flex-direction: column; min-width: 0; }
.e19-mname small { color: #5b6070; }
.e19-tog { min-width: 132px; min-height: 48px; flex: none; }
.e19-tog.on { border-color: #1f6b45; color: #1f6b45; background: #eaf8f0; }
.e19-tog.off { border-color: #b42318; color: #fff; background: #b42318; }
.e19-msec { border: 1px solid #e3e1ee; border-radius: 14px; padding: 10px; margin: 0 0 10px; display: grid; gap: 8px; min-width: 0; }
.e19-msec-h { display: flex; gap: 6px; align-items: center; }
.e19-msec-h .ki { flex: 1 1 auto; min-width: 0; font-weight: 700; }
.e19-mrow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr) auto auto auto; gap: 6px; align-items: center; }
.e19-mrow .ki, .e19-msec-h .ki { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid #cfcbe0; border-radius: 10px; background: #fff; box-sizing: border-box; width: 100%; }
.e19-moff { display: flex; align-items: center; gap: 4px; font-size: 14px; white-space: nowrap; }
.e19-foot { position: sticky; bottom: 0; background: #fff; padding: 8px 0; }
.e19-foot .sc-primary { margin-top: 0; min-width: 160px; min-height: 48px; }
.e19-big { font-size: 34px !important; font-weight: 800; letter-spacing: .06em; text-align: center; max-width: 320px; }
.e19-orow { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; }
.e19-xl { min-height: 64px; font-size: 20px !important; flex: 1 1 200px; margin-top: 0 !important; align-self: stretch; }
.e19-ocols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.e19-ocol { border: 1px solid #e3e1ee; border-radius: 14px; padding: 10px; }
.e19-ocol.ready { background: #f1fbf5; border-color: #bfe6cf; }
.e19-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.e19-chip { min-width: 72px; min-height: 52px; font-size: 22px !important; font-weight: 800; }
.e19-qnow { text-align: center; border: 1px solid #e3e1ee; border-radius: 16px; padding: 10px; }
.e19-qcur { font-size: 64px; font-weight: 900; margin: 0; line-height: 1.1; }
.e19-qwait { margin: 4px 0 0; font-weight: 600; }
.e19-chk { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.e19-chk input { width: 22px; height: 22px; }
.e19-qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.e19-qlist li { display: flex; align-items: center; gap: 12px; border: 1px solid #e3e1ee; border-radius: 10px; padding: 6px 10px; }
.e19-qlist li b { font-size: 20px; min-width: 64px; }
.e19-qlist li small { flex: 1 1 auto; color: #5b6070; }
.e19-set, .e19-tip, .e19-paste { border: 1px solid #e3e1ef; border-radius: 12px; padding: 8px 12px; background: #fbfaff; }
.e19-set summary, .e19-tip summary, .e19-paste summary { cursor: pointer; font-weight: 700; color: #3a2db0; min-height: 36px; display: flex; align-items: center; }
.e19-paste textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; }
.e19-people { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid #d9d4f3; border-radius: 12px; overflow: hidden; background: #fff; }
.e19-people li { margin: 0; }
.e19-people button { display: flex; width: 100%; align-items: center; gap: 10px; text-align: left; border: 0; border-bottom: 1px solid #efedf7; background: #fff; font: inherit; padding: 10px 12px; cursor: pointer; min-height: 52px; }
.e19-people li:last-child button { border-bottom: 0; }
.e19-people button:hover, .e19-people button:focus-visible, .e19-people button[aria-selected="true"] { background: #f1efff; outline: none; }
.e19-people .av { width: 34px; height: 34px; border-radius: 50%; background: #e9e5ff; color: #3a2db0; display: grid; place-items: center; font-weight: 800; flex: none; }
.e19-people .who { display: flex; flex-direction: column; min-width: 0; }
.e19-people .who small { color: #5b6070; font-size: 13px; }
.e19-people .tag { margin-left: auto; font-size: 12px; color: #1f6b45; background: #eaf8f0; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.e19-people .tag.st { color: #5b6070; background: #f0f0f4; }
.e19-people button[disabled] { cursor: default; opacity: .7; }
@media (max-width: 700px) {
  .e19-mrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .e19-mrow .e19-mn, .e19-mrow .e19-md { grid-column: 1 / -1; }
  .e19-ocols { grid-template-columns: 1fr; }
  .e19-qcur { font-size: 56px; }
}
/* PNP_PISACZEK_EKRANY_E20_V1 — Prezentacje (wersety, pieśni, ogłoszenia): lista, pilot, motywy, teksty. Wygląd slajdów: ekran-motywy-v1.css */
.e20 label.kl { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.e20 .ki { font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid #cfcbe0; border-radius: 10px; background: #fff; box-sizing: border-box; width: 100%; }
.e20 textarea.ki { line-height: 1.45; resize: vertical; }
.e20-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.e20-card { border: 1px solid #e3e1ee; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.e20-card-main { display: flex; flex-direction: column; gap: 8px; text-align: left; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; color: inherit; }
.e20-card-tx { display: flex; flex-direction: column; min-width: 0; }
.e20-card-tx b { font-size: 18px; }
.e20-card-tx small { color: #5b6070; font-size: 14px; }
.e20-pilot, .e20-look, .e20-texts, .e20-tv { border-top: 1px solid #e3e1ee; padding-top: 6px; margin-top: 10px; }
.e20-now { max-width: 720px; }
.e20-now .sl-mini { box-shadow: 0 6px 24px rgba(30, 20, 70, .18); }
.e20-keys .e19-xl.on { background: #1d1b2c; color: #fff; border-color: #1d1b2c; }
.e20-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.e20-thumb { flex: 0 0 168px; display: flex; flex-direction: column; gap: 4px; border: 2px solid transparent; border-radius: 12px; padding: 3px; background: none; cursor: pointer; font: inherit; color: inherit; scroll-snap-align: start; }
.e20-thumb small { font-size: 13px; color: #5b6070; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e20-thumb.on { border-color: #6658d7; background: #f4f2ff; }
.e20-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.e20-theme { display: flex; flex-direction: column; gap: 6px; border: 2px solid #e3e1ee; border-radius: 14px; padding: 6px; background: #fff; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.e20-theme b { font-size: 15px; padding: 0 2px 2px; }
.e20-theme:hover { border-color: #b9b0f0; }
.e20-theme.on { border-color: #6658d7; box-shadow: 0 0 0 3px #e1dcff; }
.e20-theme.on b::after { content: ' ✓'; color: #6658d7; }
.e20-paste textarea { min-height: 150px; }
.e20-slides { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.e20-srow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: start; border: 1px solid #e3e1ee; border-radius: 12px; padding: 8px; }
.e20-sno { width: 30px; height: 30px; border-radius: 50%; background: #efecff; color: #3a2db0; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.e20-scol { display: grid; gap: 6px; min-width: 0; }
.e20-sref { font-size: 14px !important; }
.e20-sact { display: flex; flex-direction: column; gap: 4px; }
.e20-set { border: 1px solid #e3e1ee; border-radius: 12px; padding: 8px 12px 12px; margin: 12px 0 4px; display: grid; gap: 10px; }
.e20-set legend { font-weight: 700; padding: 0 4px; }
.e20-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid #e3e1ee; }
.e20-dirty { color: #8a4b00; font-weight: 600; }
.e20-tv .sc-btn { margin-top: 0; }
@media (max-width: 700px) {
  .e20-list { grid-template-columns: 1fr; }
  .e20-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .e20-thumb { flex-basis: 138px; }
  .e20-sact { flex-direction: row; grid-column: 2 / -1; }
  .e20-srow { grid-template-columns: 30px minmax(0, 1fr); }
}

/* PNP_PISACZEK_EKRANY_E21_V1 — „Twoje ekrany” na górze, „ℹ️ Co to jest?”, „+ Dodaj ekran” w okienku, „Wejdź”, widok „📅 Kalendarze”, okienko „Dodaj prezentację” */
.sc-head .e21-head-b { margin-left: auto; }
.e21-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.e21-head h2 { margin: 0; }
.e21-head-b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.e21-head-b .sc-btn { margin-top: 0; min-height: 44px; }
.e21-what { background: #f4f2ff; border-color: #d9d4f3; color: #3a2db0; }
.e21-what[aria-expanded="true"] { background: #e6e1ff; }
.e21-help, .e21-what-tx { background: #fbfaff; border: 1px solid #e3e1ef; border-radius: 14px; padding: 6px 16px 14px; margin: 10px 0 4px; }
.e21-what-tx { padding: 12px 16px; }
.e21-help .sc-btn { margin-top: 4px; }
.sc-name-b { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; border-radius: 6px; }
.sc-name-b:hover { color: #3a2db0; text-decoration: underline; text-underline-offset: 3px; }
.sc-name-b:focus-visible { outline: 3px solid #b9b0ff; outline-offset: 2px; }
.e21-dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: 18px; padding: 18px 20px 20px; box-shadow: 0 20px 60px rgba(20, 15, 50, .35); box-sizing: border-box; }
.e21-dlg::backdrop { background: rgba(20, 16, 40, .45); }
.e21-dlg h2 { margin: 0 0 6px; }
.e21-dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.e21-x { min-width: 44px; min-height: 44px; margin-top: 0 !important; font-size: 18px; }
.e21-dlg .kc { border: 0; box-shadow: none; padding: 0; margin: 0; background: none; }
.e21-dlg label.kl { display: flex; flex-direction: column; gap: 6px; font-weight: 600; margin-top: 8px; }
.e21-dlg .ki { font: inherit; font-size: 17px; padding: 10px 12px; border: 1px solid #cfcbe0; border-radius: 10px; box-sizing: border-box; width: 100%; }
.e21-dlg-b { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.e21-dlg-b .sc-btn { margin-top: 0; min-height: 46px; min-width: 120px; }
.e19-phead .e21-push { margin-left: auto; margin-top: 0; }
.e21-card { border: 1px solid #e3e1ee; border-radius: 16px; padding: 4px 16px 14px; margin-top: 12px; }
.e21-card .pg-sub { margin-top: 12px; }
.e21-card .sc-btn { margin-top: 0; }
.e21-req { border-color: #cfc7ff; background: #fbfaff; }
.e21-req .pg-row .ki { font: inherit; font-size: 17px; padding: 10px 12px; border: 1px solid #cfcbe0; border-radius: 10px; flex: 1 1 260px; min-width: 0; box-sizing: border-box; }
.e21-callist { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.e21-callist li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid #e3e1ee; border-radius: 12px; padding: 8px 10px; }
.e21-callist .e6-callw { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
body.tm-readonly .sc-add-open { display: none; }
@media (max-width: 700px) {
  body.nv-editing .nv-layout { grid-template-columns: minmax(0, 1fr); }
  body.nv-editing .nv-item { width: auto; padding: 8px 12px; }
  .sc-head .e21-head-b { margin-left: 0; width: 100%; }
  .e21-head-b .sc-btn { flex: 1 1 auto; }
}
/* PNP_PISACZEK_EKRANY_E21_3 — „📺 Połącz z telewizorem” przy ekranie: kod nowego urządzenia do istniejącego ekranu */
.sc-rc-b { border-color: #cfc7ff; background: #f4f2ff; color: #3a2db0; }
.sc-reclaim { border: 1px solid #cfc7ff; background: #fbfaff; border-radius: 14px; padding: 4px 14px 10px; margin: 6px 0 10px; }
.sc-reclaim .pg-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sc-reclaim .ki.sc-code { font: inherit; font-size: 26px; font-weight: 800; letter-spacing: .12em; width: 9.5em; max-width: 100%; padding: 8px 12px; border: 1px solid #cfcbe0; border-radius: 10px; text-align: center; }
.sc-reclaim .sc-btn { margin-top: 0; min-height: 46px; }
