/* PNP_SCREENS_DES1_V1 (+ DES11) — Ekrany: nowoczesny wygląd, etap 1 (04.11.2026, właściciel: „Tak, Etap 1” po propozycji v2).
 * Menu boczne w grupach z ikonami liniowymi, telewizory jako karty z podglądem, podsumowanie, pasek z wyszukiwaniem (Ctrl K) i przełącznikiem motywu.
 * Ciemny motyw: html[data-sc-theme=dark] (ekrany-v2.js) + ekrany-v2-ciemny.css (wygenerowany z ekrany-panel-v1.css). Edytor programu zostaje jasny do etapu 3. */
:root {
  --v2-bg: #f5f4fb; --v2-panel: #fff; --v2-glass: rgba(255,255,255,.66); --v2-line: #e6e4f0; --v2-tx: #1e2330; --v2-mu: #6b7080; --v2-soft: #f1f0f8;
  --v2-ac: #5b4fd6; --v2-ac2: #8a6ff0; --v2-acs: #eeebff; --v2-ok: #18a058; --v2-oks: #e3f6ec; --v2-warn: #d08a10; --v2-warns: #fdf2dc; --v2-bad: #d64545; --v2-bads: #fdeaea;
  --v2-sh: 0 1px 1px rgba(20,18,50,.04), 0 8px 24px rgba(30,24,90,.07); --v2-spring: cubic-bezier(.34,1.56,.64,1);
}
html[data-sc-theme=dark] {
  --v2-bg: #15141f; --v2-panel: #1d1c2b; --v2-glass: rgba(34,32,52,.62); --v2-line: #34324a; --v2-tx: #ecebf3; --v2-mu: #a7abbb; --v2-soft: #262536;
  --v2-acs: #2f2a55; --v2-oks: #173a2b; --v2-warns: #3a3019; --v2-bads: #3f2020;
  --v2-sh: 0 1px 1px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}
body.sc-app { background: var(--v2-bg); color: var(--v2-tx);
  background-image: radial-gradient(60rem 30rem at 90% -10%, rgba(140,120,255,.16), transparent 60%), radial-gradient(40rem 25rem at -10% 20%, rgba(90,190,220,.12), transparent 60%); background-attachment: fixed; }
html[data-sc-theme=dark] body.sc-app { background-image: radial-gradient(60rem 30rem at 90% -10%, rgba(110,90,255,.22), transparent 60%), radial-gradient(40rem 25rem at -10% 20%, rgba(40,120,170,.16), transparent 60%); }

/* nagłówek */
body.sc-app .sc-top-h { gap: 14px; align-items: center; margin-bottom: 14px; }
body.sc-app .sc-top-h img { border-radius: 14px; box-shadow: 0 6px 18px rgba(91,79,214,.3); }
body.sc-app .sc-top-h h1 { letter-spacing: -.02em; }
body.sc-app .sc-lead { color: var(--v2-mu); }

/* karty-sekcje */
body.sc-app .kc { border-radius: 20px; border-color: var(--v2-line); box-shadow: var(--v2-sh); }
html[data-sc-theme=dark] body.sc-app .kc { background: var(--v2-panel); }
body.sc-app .sc-btn { border-radius: 12px; transition: transform .35s var(--v2-spring), box-shadow .2s, background .2s; }
body.sc-app .sc-btn:hover { transform: translateY(-1px); }
body.sc-app .sc-btn:active { transform: scale(.96); }
body.sc-app .sc-btn.sc-primary { background: linear-gradient(135deg, var(--v2-ac), #6f5ee6); border-color: transparent; box-shadow: 0 6px 18px rgba(91,79,214,.28); }
body.sc-app .ki { border-radius: 12px; }

/* pokaz dla gościa: ramka z napisami w stylu inline (screens_demo.php) */
html[data-sc-theme=dark] body.sc-app [style*="#fff8e6"] { background: #2b2516 !important; border-color: #8a6d2c !important; }
html[data-sc-theme=dark] body.sc-app [style*="#5a420c"] { color: #f0d48a !important; }

/* menu boczne */
body.nv-on .nv-side { background: var(--v2-glass); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); border: 1px solid rgba(255,255,255,.55); border-radius: 22px; box-shadow: var(--v2-sh); gap: 2px; padding: 10px 8px; }
html[data-sc-theme=dark] body.nv-on .nv-side { border-color: rgba(255,255,255,.07); }
.v2-grp { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--v2-mu); margin: 12px 12px 4px; }
.v2-grp:first-child { margin-top: 4px; }
body.nv-on .nv-item { min-height: 0; padding: 8px 10px; border-radius: 12px; gap: 11px; color: var(--v2-tx); transition: background .2s; }
body.nv-on .nv-item:hover { background: var(--v2-soft); }
body.nv-on .nv-item.on { background: var(--v2-panel); box-shadow: var(--v2-sh); color: var(--v2-ac); }
html[data-sc-theme=dark] body.nv-on .nv-item.on { color: #b9b0ff; background: #2a2843; box-shadow: var(--v2-sh); }
body.nv-on .nv-ic { width: 22px; display: grid; place-items: center; }
.nv-ic svg, .v2-i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
body.nv-on .nv-tx b { font-size: 15px; font-weight: 600; }
[dir=rtl] body.nv-on .nv-item { text-align: right; }
body.nv-on .nv-item.on .nv-tx b { font-weight: 700; }
body.nv-on .nv-tx small { font-size: 12px; color: var(--v2-mu); }
body.nv-editing .v2-grp { display: none; }
body.nv-editing .nv-ic { width: 26px; }

/* pasek nad treścią: wyszukiwanie (Ctrl K) i motyw */
.v2-top { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.v2-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; cursor: pointer; font: inherit; font-size: 15px; text-align: left; color: var(--v2-mu);
  background: var(--v2-glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--v2-line); box-shadow: var(--v2-sh); }
.v2-search > span:not(.v2-kbd) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-search:hover { border-color: #c9c3f0; }
.v2-kbd { font: 600 11px/1 ui-monospace, Consolas, monospace; border: 1px solid var(--v2-line); border-bottom-width: 2px; border-radius: 6px; padding: 3px 6px; color: var(--v2-mu); background: var(--v2-panel); white-space: nowrap; }
.v2-theme { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--v2-soft); border: 1px solid var(--v2-line); }
.v2-theme button { border: 0; background: transparent; color: var(--v2-mu); border-radius: 9px; width: 36px; height: 34px; display: grid; place-items: center; cursor: pointer; }
.v2-theme button[aria-pressed=true] { background: var(--v2-panel); color: var(--v2-tx); box-shadow: var(--v2-sh); }
body.nv-editing .v2-top { display: none; }

/* podsumowanie nad telewizorami */
.v2-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 16px; }
.v2-sum > div { background: var(--v2-panel); border: 1px solid var(--v2-line); border-radius: 16px; padding: 12px 14px; }
.v2-sum span { display: flex; align-items: center; gap: 6px; color: var(--v2-mu); font-size: 13px; }
.v2-sum b { display: block; font-size: 26px; letter-spacing: -.03em; line-height: 1.2; margin-top: 2px; }
.v2-sum b small { font-size: 14px; font-weight: 500; color: var(--v2-mu); letter-spacing: 0; }
.v2-sum .v2-bad b { color: var(--v2-bad); }
.v2-sum .v2-good b { color: var(--v2-ok); }

/* telewizory jako karty */
.sc-list.v2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.sc-list.v2-grid > .sc-empty { grid-column: 1 / -1; }
.sc-item.v2-card { border-radius: 18px; overflow: hidden; background: var(--v2-panel); border: 1px solid var(--v2-line); box-shadow: var(--v2-sh); transition: transform .4s var(--v2-spring), box-shadow .3s; }
.sc-item.v2-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20,18,50,.05), 0 16px 36px rgba(30,24,90,.12); }
.v2-card .sc-bar-h { padding: 12px 14px 14px; gap: 10px; }
.v2-card .sc-dot { display: none; }
.v2-card .sc-bar-i { flex: 1 1 100%; }
.v2-card .sc-bar-i .sc-name { font-size: 18px; }
.v2-card .sc-bar-l { font-size: 13.5px; }
.v2-card .sc-bar-b { margin-left: 0; width: 100%; }
.v2-card .sc-bar-b .sc-btn { flex: 1; padding-top: 8px; padding-bottom: 8px; font-size: 15px; }
.v2-card .sc-opts { padding: 0 14px 14px; }
.sc-item.v2-card.v2-open { grid-column: 1 / -1; transform: none; }
@supports selector(:has(*)) { .sc-item.v2-card:has(> .sc-opts:not([hidden])) { grid-column: 1 / -1; transform: none; } }
.v2-thumb { position: relative; aspect-ratio: 16 / 9; background: #0b0d14; overflow: hidden; cursor: pointer; }
.sc-item.v2-card.v2-open { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: end; }
.v2-card.v2-open > .v2-thumb { grid-column: 1; border-radius: 0 0 16px 0; }
.v2-card.v2-open > .sc-bar-h { grid-column: 2; padding: 14px 18px; }
.v2-card.v2-open > :not(.v2-thumb):not(.sc-bar-h) { grid-column: 1 / -1; }
.v2-card.v2-open > .sc-opts { padding-top: 14px; }
.v2-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-thumb .v2-pill { position: absolute; left: 10px; top: 10px; z-index: 3; }
.v2-thumb .v2-ago { position: absolute; right: 10px; bottom: 9px; z-index: 3; font-size: 11.5px; color: #fff; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 2px 8px; border-radius: 99px; }
.v2-thumb .v2-off { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; color: #d6d8e2; font-size: 14px; padding: 12px;
  background: repeating-linear-gradient(135deg, rgba(19,23,34,.86) 0 14px, rgba(22,27,39,.86) 14px 28px); }
.v2-thumb .v2-off small { display: block; opacity: .75; font-size: 12.5px; margin-top: 2px; }
.v2-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; color: #fff; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.v2-pill.on { background: rgba(10,120,60,.85); }
.v2-pill.off { background: rgba(200,60,50,.92); }
.v2-pill.wait { background: rgba(170,110,0,.9); }
.v2-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.v2-pill.on i { animation: v2pulse 2s infinite; }
@keyframes v2pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } }
/* schemat programu, gdy nie ma zrzutu */
.v2-map { position: absolute; inset: 0; }
.v2-map > div { position: absolute; overflow: hidden; display: grid; place-items: center; color: rgba(255,255,255,.9); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.v2-map svg { width: 22%; max-width: 30px; height: auto; opacity: .85; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.v2-map .k-video { background: linear-gradient(135deg, #4f45c9, #2c2585); }
.v2-map .k-image { background: linear-gradient(160deg, #6b4a2b, #c48a52 60%, #2b1d12); }
.v2-map .k-slides { background: radial-gradient(ellipse 70% 45% at 50% 108%, rgba(255,214,150,.75), rgba(255,160,110,.25) 45%, transparent 70%), linear-gradient(#2a1838, #6b3d5e 60%, #e89a6b); }
.v2-map .k-weather { background: linear-gradient(#5b8fc9, #a9cbe8 55%, #2e5d8a); }
.v2-map .k-clock { background: linear-gradient(#141a2e, #232b47); }
.v2-map .k-calendar { background: #f3f2ff; color: #5b4fd6; }
.v2-map .k-text { background: linear-gradient(135deg, #24324a, #3b4a66); }
.v2-map .k-web { background: linear-gradient(135deg, #12343a, #1f5a5f); }
.v2-map .k-empty { background: #1a1d28; color: rgba(255,255,255,.4); }
.v2-map .v2-pn { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 12px 9px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: 13px; font-weight: 600; text-align: left; display: block; box-shadow: none; white-space: nowrap; text-overflow: ellipsis; }

/* paleta Ctrl K */
dialog.v2-pal { border: 0; padding: 0; background: transparent; width: min(640px, calc(100vw - 32px)); max-width: none; color: var(--v2-tx); margin-top: 12vh; }
dialog.v2-pal::backdrop { background: rgba(20,18,40,.35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.v2-pal[open] { animation: v2pop .4s var(--v2-spring); }
@keyframes v2pop { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
.v2-pal-b { border-radius: 20px; overflow: hidden; background: var(--v2-glass); -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6); border: 1px solid rgba(255,255,255,.5); box-shadow: 0 30px 80px rgba(20,18,50,.35); }
html[data-sc-theme=dark] .v2-pal-b { border-color: rgba(255,255,255,.08); background: rgba(30,29,46,.85); }
.v2-pal input { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid var(--v2-line); padding: 18px 20px; font: inherit; font-size: 18px; background: transparent; color: inherit; outline: none; }
.v2-pal ul { list-style: none; margin: 0; padding: 8px; max-height: min(400px, 55vh); overflow: auto; }
.v2-pal li { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 11px; cursor: pointer; font-size: 15.5px; }
.v2-pal li.on { background: var(--v2-acs); }
.v2-pal li small { margin-inline-start: auto; color: var(--v2-mu); font-size: 13px; padding-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.v2-pal li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-pal .v2-ph { font-size: 11px; font-weight: 700; color: var(--v2-mu); text-transform: uppercase; letter-spacing: .08em; padding: 10px 12px 4px; }
.v2-pal .v2-none { padding: 18px 12px; color: var(--v2-mu); }
.v2-pal .v2-ft { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--v2-line); font-size: 12px; color: var(--v2-mu); }

@media (max-width: 900px) {
  body.nv-on .nv-side { border-radius: 16px; padding: 6px; }
  .v2-grp { display: none; }
  body.nv-on .nv-item { padding: 8px 12px; }
  .v2-sum b { font-size: 21px; }
  .v2-sum { gap: 8px; }
  .v2-sum > div { padding: 10px; }
  .v2-sum span { font-size: 12px; }
}
@media (max-width: 760px) { .sc-item.v2-card.v2-open { display: flex; } .v2-card.v2-open > .v2-thumb { border-radius: 0; } }
@media (max-width: 1000px) { body.nv-on .nv-side { background: var(--v2-panel); } }
@media (max-width: 520px) { .sc-list.v2-grid { grid-template-columns: minmax(0, 1fr); } .v2-search .v2-kbd { display: none; } }
@media (prefers-reduced-motion: reduce) { body.sc-app *, dialog.v2-pal { animation: none !important; transition: none !important; } }

/* ===== PNP_SCREENS_DES11_V1 (04.11, właściciel: „daj większe czcionki … nie zmieniamy całkowicie grafiki, tylko polepszamy czcionki, paski, dodatki”) =====
 * Czcionka Geist (z serwera, cyfry równej szerokości), większe napisy, paski-akcenty (menu, podsumowanie, karty), ładowanie podglądu, pokaz „Wejdź” po najechaniu. */
@font-face { font-family: 'EkGeist'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/ekrany-f-geist-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'EkGeist'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/ekrany-f-geist-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'EkGeist'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/ekrany-f-geist-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'EkGeist'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/ekrany-f-geist-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
:root { --v2-font: 'EkGeist', "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", sans-serif; }
body.sc-app .sc-wrap, dialog.v2-pal, body.sc-app .lb-dlg { font-family: var(--v2-font); font-feature-settings: "ss01" 0; }
body.sc-app .sc-wrap :is(button, input, select, textarea) { font-family: inherit; }
body.sc-app .sc-wrap :is(h1, h2, h3) { letter-spacing: -.02em; text-wrap: balance; }
body.sc-app .sc-wrap p { text-wrap: pretty; }
body.sc-app ::selection { background: rgba(91,79,214,.22); }
.v2-sum b, .v2-ago, .v2-off small, .sc-limit, .v2-kbd { font-variant-numeric: tabular-nums; }
body.sc-app .sc-wrap :is(button, a, input, select, [tabindex]):focus-visible { outline: 3px solid rgba(91,79,214,.55); outline-offset: 2px; }

/* większe napisy */
body.sc-app .sc-top-h h1 { font-size: 34px; }
body.sc-app .sc-lead { font-size: 18px; }
.v2-grp { font-size: 12.5px; margin: 16px 12px 6px; }
body.nv-on .nv-item { padding: 10px 12px; gap: 12px; }
body.nv-on .nv-tx b { font-size: 17px; }
body.nv-on .nv-tx small { font-size: 14px; line-height: 1.35; }
.nv-ic svg, .v2-i { width: 22px; height: 22px; }
.v2-search { font-size: 17px; padding: 12px 16px; }
.v2-theme button { width: 40px; height: 38px; }
.v2-sum span { font-size: 15px; }
.v2-sum b { font-size: 34px; }
.v2-sum b small { font-size: 16px; }
.v2-card .sc-bar-i .sc-name { font-size: 22px; }
.v2-card .sc-bar-l { font-size: 16px; line-height: 1.45; }
.v2-card .sc-bar-b .sc-btn { font-size: 17px; padding-top: 10px; padding-bottom: 10px; }
.v2-pill { font-size: 13.5px; padding: 4px 11px; }
.v2-thumb .v2-ago { font-size: 13px; }
.v2-thumb .v2-off { font-size: 17px; }
.v2-thumb .v2-off small { font-size: 14px; }
.v2-map .v2-pn { font-size: 15px; }
.v2-pal input { font-size: 20px; }
.v2-pal li { font-size: 17px; padding: 10px 12px; }
.v2-pal li small { font-size: 14.5px; }
.v2-pal .v2-ph { font-size: 12.5px; }
.v2-pal .v2-ft { font-size: 13.5px; }

/* paski: menu — wskaźnik wybranej pozycji */
body.nv-on .nv-item { position: relative; }
body.nv-on .nv-item.on::before { content: ""; position: absolute; inset-inline-start: -8px; top: 22%; bottom: 22%; width: 4px; border-radius: 4px; background: linear-gradient(var(--v2-ac2), var(--v2-ac)); }
body.nv-editing .nv-item.on::before { inset-inline-start: -6px; }
body.nv-on .nv-item.on .nv-ic { color: var(--v2-ac); }
html[data-sc-theme=dark] body.nv-on .nv-item.on .nv-ic { color: #b9b0ff; }
body.nv-on .nv-ic { color: var(--v2-mu); transition: color .2s; }
body.nv-on .nv-item:hover .nv-ic { color: var(--v2-tx); }

/* paski: nagłówki sekcji z akcentem */
body.sc-app .nv-main .kc > .sc-head h2, body.sc-app .nv-main .kc > h2 { position: relative; padding-inline-start: 14px; }
body.sc-app .nv-main .kc > .sc-head h2::before, body.sc-app .nv-main .kc > h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .18em; bottom: .18em; width: 4px; border-radius: 4px; background: linear-gradient(var(--v2-ac2), var(--v2-ac)); }

/* paski: podsumowanie — ikona w kółku i kolorowa kreska u góry */
.v2-sum > div { position: relative; overflow: hidden; padding: 14px 16px 14px 16px; box-shadow: var(--v2-sh); }
.v2-sum > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--v2-ac), var(--v2-ac2)); opacity: .85; }
.v2-sum > div.v2-good::before { background: linear-gradient(90deg, #18a058, #4cc38a); }
.v2-sum > div.v2-bad::before { background: linear-gradient(90deg, #d64545, #f08a5d); }
.v2-sum .v2-chip { width: 30px; height: 30px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--v2-acs); color: var(--v2-ac); flex: none; }
.v2-sum .v2-good .v2-chip { background: var(--v2-oks); color: var(--v2-ok); }
.v2-sum .v2-bad .v2-chip { background: var(--v2-bads); color: var(--v2-bad); }
.v2-sum .v2-chip svg { width: 18px; height: 18px; }
html[data-sc-theme=dark] .v2-sum .v2-chip { color: #b9b0ff; }
html[data-sc-theme=dark] .v2-sum .v2-good .v2-chip { color: #7fd6a6; }
html[data-sc-theme=dark] .v2-sum .v2-bad .v2-chip { color: #ff8f85; }
.v2-sum span { gap: 9px; }

/* paski: karta telewizora — pasek stanu u góry */
.sc-item.v2-card { position: relative; }
.sc-item.v2-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 4; background: #9aa0b0; }
.sc-item.v2-card[data-v2-st=on]::before { background: linear-gradient(90deg, #18a058, #4cc38a); }
.sc-item.v2-card[data-v2-st=off]::before { background: linear-gradient(90deg, #d64545, #f08a5d); }
.sc-item.v2-card[data-v2-st=wait]::before { background: linear-gradient(90deg, #d08a10, #f0c04a); }

/* dodatki: ładowanie podglądu, płynne pojawienie się, „Wejdź” po najechaniu */
.v2-thumb.v2-load::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%) 0 0 / 200% 100%, linear-gradient(135deg, #1a1d2b, #23263a); animation: v2sh 1.4s infinite linear; }
@keyframes v2sh { to { background-position: -200% 0, 0 0; } }
.v2-thumb img, .v2-map { animation: v2fade .5s ease both; }
@keyframes v2fade { from { opacity: 0; } }
.v2-thumb .v2-go { position: absolute; left: 50%; top: 50%; z-index: 5; transform: translate(-50%, -50%) scale(.9); opacity: 0; pointer-events: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 99px; font-weight: 700; font-size: 16px; color: #fff; background: rgba(20,18,40,.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .2s, transform .35s var(--v2-spring); }
.v2-thumb .v2-go svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.v2-thumb:hover .v2-go, .v2-thumb:focus-visible .v2-go { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.v2-thumb::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 0 60px rgba(0,0,0,.25); }

/* dodatki: przyciski — delikatny połysk u góry, wyraźniejsze „Opcje” */
body.sc-app .sc-btn.sc-primary { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 18px rgba(91,79,214,.28); }
body.sc-app .v2-card .sc-opts-b { background: var(--v2-soft); border-color: transparent; }
body.sc-app .v2-card .sc-opts-b:hover { border-color: var(--v2-line); }

/* dodatki: cieńszy, spokojny pasek przewijania */
body.sc-app .sc-wrap * { scrollbar-width: thin; scrollbar-color: rgba(120,115,160,.45) transparent; }

@media (max-width: 900px) {
  .v2-sum b { font-size: 26px; }
  .v2-sum span { font-size: 13.5px; }
  .v2-sum .v2-chip { width: 26px; height: 26px; }
  body.sc-app .sc-top-h h1 { font-size: 28px; }
  body.nv-on .nv-item.on::before { inset-inline-start: 4px; top: auto; bottom: 2px; left: 20%; right: 20%; width: auto; height: 3px; }
}
@media (max-width: 520px) { .v2-sum span { font-size: 12.5px; } .v2-sum .v2-chip { display: none; } }
