/* Wygenerowane przez tools/styles.mjs — zmieniaj prototyp albo panel-extra.css, nie ten plik. */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('/assets/fonts/schibsted-grotesk-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('/assets/fonts/schibsted-grotesk-latin-wght-normal.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; }

:root {
  --bg: #030c18; --bg2: #04101f; --side: #050f1f;
  --card: linear-gradient(180deg, rgba(20, 42, 78, .55), rgba(10, 24, 46, .55));
  --card-solid: #0b1b33; --card2: rgba(255, 255, 255, .035);
  --line: rgba(148, 178, 230, .13); --line2: rgba(148, 178, 230, .22);
  --text: #eaf2ff; --strong: #fff; --muted: rgba(226, 236, 255, .72); --faint: rgba(226, 236, 255, .64);
  --teal: #38e8ff; --blue: #4f8dff; --blue2: #2f6ae0; --violet: #8f88ff; --ok: #3ddc84; --warn: #ffb547; --danger: #ff6b82; --info: #6aa8ff;
  --radius: 16px; --shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px rgba(0, 0, 0, .28);
  --font: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body { background: radial-gradient(1200px 600px at 85% -10%, rgba(79, 141, 255, .14), transparent 60%), radial-gradient(900px 500px at 10% 110%, rgba(56, 232, 255, .07), transparent 60%), var(--bg); background-attachment: fixed; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Układ */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { background: linear-gradient(180deg, rgba(8, 22, 44, .92), rgba(4, 12, 26, .96)); border-right: 1px solid var(--line); padding: 20px 14px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
/* Logo jak w nagłówku wpsecure.pl (BaseLayout + global.css .brand): tarcza „shield-check” obrysem 2 w kolorze --teal,
   „WP” w kolorze tekstu, „Secure” turkusowe, grubość 700. Proporcje w em — przy każdym rozmiarze wygląda tak samo. */
.brand { display: inline-flex; align-items: center; gap: .53em; color: #eaf2ff; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand__mark { width: 1.3em; height: 1.3em; flex: none; color: var(--teal); }
.brand b, .portal .brand b { font-weight: 700; color: inherit; }
.brand em { font-style: normal; color: var(--teal); }
.brand-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.brand__area { font-size: 13px; font-weight: 600; color: var(--muted); padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .18); white-space: nowrap; }
.side .brand-row { padding: 2px 10px 22px; }
.side nav { flex: 1; }
.nav-group { margin: 18px 12px 6px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 2px 0; border-radius: 11px; color: var(--muted); text-decoration: none; font-weight: 500; transition: background .15s, color .15s; }
.nav-link .ic { width: 19px; height: 19px; opacity: .85; }
.nav-link span.l { flex: 1; }
.nav-link:hover { background: rgba(255, 255, 255, .045); color: var(--text); }
.nav-link[aria-current='page'] { background: linear-gradient(90deg, rgba(79, 141, 255, .28), rgba(79, 141, 255, .08)); color: var(--strong); box-shadow: inset 0 0 0 1px rgba(110, 160, 255, .28); }
.nav-link[aria-current='page'] .ic { color: var(--teal); opacity: 1; }
.badge { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--blue2); color: #fff; font-size: 11.5px; font-weight: 700; text-align: center; }
.badge.danger { background: #d23a55; } .badge.warn { background: #c07b00; }
.side__foot { margin-top: 14px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #04101f; background: linear-gradient(135deg, var(--teal), var(--blue)); flex: none; }
.side__foot .who { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.side__foot .who b { display: block; color: var(--strong); }
.side__foot .who span { color: var(--ok); font-size: 12px; }
.side__logout { color: var(--muted); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.side__logout:hover { background: rgba(255, 255, 255, .06); color: var(--text); }

.main-wrap { min-width: 0; }
.top { display: flex; align-items: center; gap: 14px; padding: 14px 32px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(3, 12, 24, .82); backdrop-filter: blur(12px); z-index: 5; }
.menu-btn { display: none; }
.search { flex: 1; max-width: 480px; position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 12px; color: var(--faint); width: 18px; height: 18px; }
.search input { width: 100%; padding: 10px 14px 10px 40px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; }
.search input::placeholder { color: var(--faint); }
.top__right { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.top__date { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.top__date .ic { width: 18px; height: 18px; }
main { padding: 28px 32px 64px; outline: none; max-width: 1480px; }

/* Nagłówki */
h1 { font-size: 30px; line-height: 1.15; margin: 0; letter-spacing: -.02em; font-weight: 800; color: var(--strong); }
h2 { font-size: 17px; margin: 0 0 14px; font-weight: 700; color: var(--strong); letter-spacing: -.005em; }
h3 { font-size: 15px; margin: 0 0 8px; }
.head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 22px; }
.head .sub { width: 100%; margin: -4px 0 0; color: var(--muted); }
.head__actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs { font-size: 13px; color: var(--faint); margin-bottom: 8px; display: flex; gap: 6px; align-items: center; } .crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--teal); }

/* Siatki i karty */
.grid { display: grid; gap: 18px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.mt { margin-top: 18px; } .mt2 { margin-top: 26px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.card--pad0 { padding: 0; overflow: hidden; } .card--pad0 > h2, .card--pad0 > .card__head { padding: 18px 20px 4px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; } .card__head h2 { margin: 0; }
.card.alert-danger { border-color: rgba(255, 107, 130, .45); background: linear-gradient(180deg, rgba(120, 24, 46, .35), rgba(40, 14, 26, .45)); }
.card.alert-warn { border-color: rgba(255, 181, 71, .4); }

/* Kafelki statystyk */
.stat { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.stat__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex: none; background: rgba(79, 141, 255, .14); color: var(--blue); box-shadow: inset 0 0 0 1px rgba(79, 141, 255, .3); }
.stat__icon .ic { width: 24px; height: 24px; }
.stat__icon.ok { background: rgba(61, 220, 132, .12); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, .3); }
.stat__icon.danger { background: rgba(255, 107, 130, .13); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255, 107, 130, .32); }
.stat__icon.warn { background: rgba(255, 181, 71, .12); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .3); }
.stat__icon.teal { background: rgba(56, 232, 255, .12); color: var(--teal); box-shadow: inset 0 0 0 1px rgba(56, 232, 255, .3); }
.stat__icon.violet { background: rgba(143, 136, 255, .14); color: var(--violet); box-shadow: inset 0 0 0 1px rgba(143, 136, 255, .32); }
.stat__body { display: flex; flex-direction: column; min-width: 0; }
.stat__label { color: var(--muted); font-size: 13.5px; }
.stat__value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--strong); }
.stat__note { font-size: 12.5px; color: var(--faint); }
.c-ok { color: var(--ok) !important; } .c-warn { color: var(--warn) !important; } .c-danger { color: var(--danger) !important; } .c-teal { color: var(--teal) !important; } .c-info { color: var(--info) !important; } .c-violet { color: var(--violet) !important; }

/* Tabele */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr.click { cursor: pointer; } tbody tr.click:hover, tbody tr:hover { background: rgba(255, 255, 255, .028); }
.table-wrap { overflow-x: auto; }
td a { color: var(--strong); font-weight: 600; text-decoration: none; } td a:hover { color: var(--teal); }
td.num { font-variant-numeric: tabular-nums; }
code { font: 600 13px ui-monospace, Consolas, monospace; color: var(--teal); background: rgba(56, 232, 255, .08); padding: 2px 6px; border-radius: 6px; }

/* Znaczniki */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; line-height: 1.4; text-decoration: none; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill.nodot::before { display: none; }
.pill.ok { background: rgba(61, 220, 132, .1); color: var(--ok); border-color: rgba(61, 220, 132, .32); }
.pill.warn { background: rgba(255, 181, 71, .1); color: var(--warn); border-color: rgba(255, 181, 71, .34); }
.pill.danger { background: rgba(255, 107, 130, .11); color: var(--danger); border-color: rgba(255, 107, 130, .38); }
.pill.info { background: rgba(106, 168, 255, .11); color: var(--info); border-color: rgba(106, 168, 255, .34); }
.pill.teal { background: rgba(56, 232, 255, .1); color: var(--teal); border-color: rgba(56, 232, 255, .34); }
.pill.violet { background: rgba(143, 136, 255, .13); color: var(--violet); border-color: rgba(143, 136, 255, .38); }
.pill.muted { background: rgba(255, 255, 255, .05); color: var(--muted); border-color: var(--line2); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(61, 220, 132, .15); } .dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(255, 181, 71, .15); } .dot.danger { background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 107, 130, .16); }
.status-ic { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; border: 1.5px solid currentColor; }
.status-ic .ic { width: 16px; height: 16px; stroke-width: 2.4; }

/* Przyciski */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 11px; border: 1px solid transparent; background: linear-gradient(180deg, #3a7bff, #2a5fd6); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; box-shadow: 0 8px 22px rgba(47, 106, 224, .35); transition: transform .12s, filter .12s; }
.btn .ic { width: 17px; height: 17px; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--ghost { background: rgba(255, 255, 255, .03); border-color: var(--line2); color: var(--text); box-shadow: none; }
.btn--danger { background: transparent; border-color: rgba(255, 107, 130, .6); color: var(--danger); box-shadow: none; }
.btn--sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 11px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .025); color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
.chip .n { padding: 0 7px; border-radius: 99px; background: rgba(255, 255, 255, .09); font-size: 12px; }
.chip:hover { color: var(--text); border-color: rgba(148, 178, 230, .35); }
.chip[aria-pressed='true'] { background: linear-gradient(180deg, #3a7bff, #2a5fd6); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(47, 106, 224, .3); }
.chip[aria-pressed='true'] .n { background: rgba(255, 255, 255, .22); }

/* Listy, opisy, oś czasu */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .li-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(79, 141, 255, .12); color: var(--blue); flex: none; }
.list .li-ic.ok { background: rgba(61, 220, 132, .12); color: var(--ok); } .list .li-ic.warn { background: rgba(255, 181, 71, .12); color: var(--warn); } .list .li-ic.danger { background: rgba(255, 107, 130, .12); color: var(--danger); } .list .li-ic.violet { background: rgba(143, 136, 255, .14); color: var(--violet); }
.list .li-ic .ic { width: 17px; height: 17px; }
.kv { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; gap: 0; margin: 0; }
.kv dt, .kv dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { color: var(--muted); font-size: 13.5px; } .kv dd { font-weight: 500; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 34px; }
.timeline li::before { content: ''; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: linear-gradient(var(--line2), transparent); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 3px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg2); border: 3px solid var(--teal); box-shadow: 0 0 10px rgba(56, 232, 255, .4); }
.timeline time { display: block; font-size: 12.5px; color: var(--teal); font-weight: 600; }

/* Wizualizacje */
.days { display: inline-flex; gap: 4px; } .days i { width: 14px; height: 20px; border-radius: 4px; background: linear-gradient(180deg, #4ce796, #2fbf6f); }
.days i.half { background: linear-gradient(180deg, #ffc76b, #e59a22); } .days i.down { background: linear-gradient(180deg, #ff8197, #e04563); }
.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; } .bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--blue)); }
.chart { width: 100%; height: auto; display: block; }
.funnel { display: flex; gap: 0; align-items: stretch; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .25)); }
.funnel > div { flex: 1 1 0; min-width: 0; padding: 16px 18px 16px 30px; color: #fff; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%); margin-left: -10px; display: flex; flex-direction: column; justify-content: center; }
.funnel > div:first-child { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); margin-left: 0; padding-left: 18px; border-radius: 12px 0 0 12px; }
.funnel > div:nth-child(1) { background: linear-gradient(135deg, #29c8e6, #1e9fd0); } .funnel > div:nth-child(2) { background: linear-gradient(135deg, #2f8af0, #2565d4); }
.funnel > div:nth-child(3) { background: linear-gradient(135deg, #4b6cf0, #4652d8); } .funnel > div:nth-child(4) { background: linear-gradient(135deg, #6a5cf0, #5a43d6); }
.funnel > div:nth-child(5) { background: linear-gradient(135deg, #7c56e6, #6a3fcc); } .funnel > div:nth-child(6) { background: linear-gradient(135deg, #8d4fd8, #7136bb); }
.funnel span { font-size: 12.5px; opacity: .9; } .funnel b { display: block; font-size: 26px; line-height: 1.1; }
.outcomes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.outcomes > div { padding: 14px; border-radius: 14px; border: 1px solid var(--line2); text-align: center; background: var(--card2); }
.outcomes b { display: block; font-size: 26px; } .outcomes .ok { border-color: rgba(61, 220, 132, .45); color: var(--ok); } .outcomes .info { border-color: rgba(106, 168, 255, .45); color: var(--info); } .outcomes .danger { border-color: rgba(255, 107, 130, .5); color: var(--danger); }
.steps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13.5px; }
.steps span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); }
.steps span .ic { color: var(--teal); width: 18px; height: 18px; }
.steps .arr { color: var(--faint); }
.code { font: 800 22px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .1em; color: var(--teal); padding: 8px 16px; border: 1px solid rgba(56, 232, 255, .45); background: rgba(56, 232, 255, .06); border-radius: 12px; display: inline-block; text-shadow: 0 0 14px rgba(56, 232, 255, .35); }

/* Formularze, przełączniki, zakładki */
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle:last-child { border-bottom: 0; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(255, 255, 255, .16); transition: background .2s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.switch input:checked + span { background: linear-gradient(90deg, #2a8bf0, #3a7bff); } .switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea, select.mode { padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; }
select.mode { padding: 6px 10px; font-size: 13px; }
select option { background: #0b1b33; color: var(--text); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab { padding: 11px 16px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; text-decoration: none; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab[aria-selected='true'] { color: var(--teal); border-bottom-color: var(--teal); }
.vtabs { display: flex; flex-direction: column; gap: 4px; }
.vtabs a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; color: var(--muted); text-decoration: none; font-weight: 600; }
.vtabs a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.vtabs a[aria-current='page'] { background: rgba(79, 141, 255, .16); color: var(--strong); box-shadow: inset 3px 0 0 var(--teal); }
.settings { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(106, 168, 255, .3); background: rgba(106, 168, 255, .07); color: var(--muted); font-size: 14px; }
.note .ic { color: var(--info); width: 18px; height: 18px; margin-top: 1px; }
.note.warn { border-color: rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .07); } .note.warn .ic { color: var(--warn); }
.note.danger { border-color: rgba(255, 107, 130, .4); background: rgba(255, 107, 130, .08); color: #ffb3bf; } .note.danger .ic { color: var(--danger); }

/* Logowanie */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login__box { width: min(430px, 100%); background: linear-gradient(180deg, rgba(20, 42, 78, .75), rgba(10, 24, 46, .8)); border: 1px solid var(--line2); border-radius: 22px; padding: 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.login__steps { display: flex; gap: 6px; margin: 16px 0 22px; } .login__steps i { flex: 1; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .12); } .login__steps i.on { background: linear-gradient(90deg, var(--teal), var(--blue)); }
.otp { letter-spacing: .5em; font: 700 26px ui-monospace, Consolas, monospace; text-align: center; }
.login .btn { width: 100%; justify-content: center; padding: 12px; }

main.full { padding: 0; max-width: none; }

@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main, .g3 { grid-template-columns: minmax(0, 1fr); } .settings { grid-template-columns: minmax(0, 1fr); } .vtabs { flex-direction: row; flex-wrap: wrap; } }
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; height: auto; transform: translateX(-100%); transition: transform .2s; z-index: 30; box-shadow: 20px 0 50px rgba(0, 0, 0, .5); }
  .side.open { transform: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 11px; border: 1px solid var(--line2); background: transparent; color: var(--text); font: inherit; font-weight: 600; }
  .top { padding: 12px 16px; } .top__date { display: none; }
  main { padding: 22px 16px 54px; }
  .g4, .g2, .kanban, .outcomes { grid-template-columns: minmax(0, 1fr); }
  .funnel { flex-direction: column; filter: none; gap: 6px; } .funnel > div, .funnel > div:first-child { clip-path: none; margin: 0; border-radius: 12px; padding: 12px 16px; }
  .portal main { padding: 22px 16px 54px; }
  h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Lejek pionowy (wąskie karty) — zwęża się jak prawdziwy lejek */
.funnel--v { flex-direction: column; gap: 8px; filter: none; }
.funnel--v > div, .funnel--v > div:first-child { clip-path: none; margin: 0 auto; border-radius: 12px; flex-direction: row; justify-content: space-between; align-items: center; padding: 12px 18px; width: 100%; }
.funnel--v > div:nth-child(2) { width: 90%; } .funnel--v > div:nth-child(3) { width: 80%; } .funnel--v > div:nth-child(4) { width: 70%; }
.funnel--v b { font-size: 22px; }
.list li > .ic { color: var(--faint); width: 18px; height: 18px; }
.list li a { color: var(--text); text-decoration: none; font-weight: 600; } .list li a:hover { color: var(--teal); }

/* Panel — elementy, których nie ma w makiecie: formularze z błędami, filtry, puste stany, stronicowanie. */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .wide { grid-column: 1 / -1; }
.field textarea { min-height: 96px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--faint); margin: 0; }
.field .err { font-size: 13px; color: var(--danger); font-weight: 600; margin: 0; }
.field [aria-invalid='true'] { border-color: rgba(255, 107, 130, .7); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(56, 232, 255, .25); }
.req { color: var(--danger); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.inline-form { display: inline; margin: 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.filters .field { margin: 0; min-width: 180px; }
.empty { padding: 26px 20px; text-align: center; color: var(--muted); }
.empty .ic { width: 30px; height: 30px; color: var(--faint); margin-bottom: 6px; }
.pager { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
.flash { margin-bottom: 18px; }
.note.ok { border-color: rgba(61, 220, 132, .35); background: rgba(61, 220, 132, .07); } .note.ok .ic { color: var(--ok); }
.side__logout { border: 0; background: none; cursor: pointer; }
.uptime { display: flex; gap: 2px; align-items: stretch; height: 34px; }
.uptime i { flex: 1; border-radius: 2px; background: var(--ok); opacity: .85; } .uptime i.bad { background: var(--danger); opacity: 1; }
.mt-xs { margin-top: 6px; }
.c-warn { color: var(--warn); }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--line2); transform: translateY(-1px); }
a.card:focus-visible { outline-offset: 3px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500 !important; color: var(--text) !important; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #3a7bff; flex: none; }
.row-actions summary { list-style: none; cursor: pointer; } .row-actions summary::-webkit-details-marker { display: none; }
.row-actions[open] summary { margin-bottom: 8px; }
.mini-form { min-width: 220px; } .mini-form .field { margin-bottom: 8px; }
.inline-select { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-select select { padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: 13px; }
.card--pad0 > .list { padding: 0 20px 6px; }
/* Tarcza logo: obrys 2 jak na stronie (ikony panelu mają 1.8). */
.brand__mark { stroke-width: 2; }
.tab[aria-current='page'] { color: var(--teal); border-bottom-color: var(--teal); }
.next-list { columns: 2; column-gap: 24px; margin: 0; padding-left: 18px; color: var(--muted); }
.next-list li { margin-bottom: 6px; break-inside: avoid; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; word-break: break-all; }
.login__box h1 { font-size: 26px; margin-top: 18px; }
.login__box .muted { margin: 8px 0 18px; }
.login__box .field input { font-size: 16px; }
.login .linkish { width: auto; }
/* Wykresy SVG (pulpit, leady, program partnerski) — rysuje serwer, kolory tylko z klas (CSP bez stylów inline). */
.ch-grid { stroke: rgba(148, 178, 230, .14); stroke-dasharray: 3 5; }
.ch-line { fill: none; stroke: var(--teal); stroke-width: 2.6; stroke-linejoin: round; }
.ch-dot { fill: var(--bg2); stroke: var(--teal); stroke-width: 2.4; }
.ch-val { fill: var(--text); font-size: 11.5px; font-weight: 700; }
.ch-lab { fill: var(--faint); font-size: 11.5px; }
.chart { margin-top: 6px; }
.hbars .bar { display: block; }
.bar > i.w-0 { width: 0; } .bar > i.w-5 { width: 5%; } .bar > i.w-10 { width: 10%; } .bar > i.w-15 { width: 15%; } .bar > i.w-20 { width: 20%; }
.bar > i.w-25 { width: 25%; } .bar > i.w-30 { width: 30%; } .bar > i.w-35 { width: 35%; } .bar > i.w-40 { width: 40%; } .bar > i.w-45 { width: 45%; }
.bar > i.w-50 { width: 50%; } .bar > i.w-55 { width: 55%; } .bar > i.w-60 { width: 60%; } .bar > i.w-65 { width: 65%; } .bar > i.w-70 { width: 70%; }
.bar > i.w-75 { width: 75%; } .bar > i.w-80 { width: 80%; } .bar > i.w-85 { width: 85%; } .bar > i.w-90 { width: 90%; } .bar > i.w-95 { width: 95%; } .bar > i.w-100 { width: 100%; }
.bar > i.danger { background: linear-gradient(90deg, #ff8197, #e04563); } .bar > i.violet { background: linear-gradient(90deg, #8f88ff, #5a43d6); } .bar > i.ok { background: linear-gradient(90deg, #4ce796, #2fbf6f); }
.funnel span small { display: block; font-size: 11.5px; opacity: .85; }
.funnel--v span small { display: inline; margin-left: 2px; }
.funnel--v > div:nth-child(5) { width: 60%; }
.funnel--wide > div { min-height: 92px; }
.outcomes > div { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13.5px; }
.outcomes .muted { color: var(--muted); }
.flow-note { margin: 10px 0 0; color: var(--faint); font-size: 13px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.kv--tight dt, .kv--tight dd { padding: 7px 0; }
.big-num { font-size: 30px; font-weight: 800; line-height: 1.1; margin: 4px 0 2px; }
.queue li a { font-weight: 600; }
.mode { white-space: nowrap; }
.stage-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.stage-form .field { margin: 0; min-width: 200px; }
/* Pełna szerokość ekranu (od laptopa po 4K): bez stałego limitu, odstępy rosną razem z ekranem. */
@media (min-width: 821px) {
  main { max-width: none; padding: 28px clamp(24px, 2.4vw, 56px) 64px; }
  .top { padding-left: clamp(24px, 2.4vw, 56px); padding-right: clamp(24px, 2.4vw, 56px); }
}
@media (min-width: 1700px) { .grid { gap: 22px; } .mt { margin-top: 22px; } .card { padding: 24px; } .card--pad0 { padding: 0; } }
/* Bardzo szerokie ekrany: lista zdarzeń i boczne karty dostają więcej miejsca. */
@media (min-width: 2100px) { .g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }

/* Logowanie: grafika strefy z opisem po lewej, formularz po prawej (wspólne dla panelu i stref). Do 1000 px sam formularz. */
.login--split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(440px, 1fr); place-items: stretch; padding: 0; min-height: 100vh; }
.login__art { position: relative; overflow: hidden; background: #04101f; }
.login__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 16, 31, .05) 30%, rgba(4, 16, 31, .7) 62%, rgba(4, 16, 31, .94)); }
.login__caption { position: absolute; z-index: 1; left: clamp(28px, 4vw, 72px); right: clamp(28px, 4vw, 72px); bottom: clamp(28px, 6vh, 72px); max-width: 560px; color: #eaf2ff; }
.login__caption .kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #38e8ff; }
.login__caption h2, .zone .login__caption h2 { margin: 0; font-size: clamp(26px, 2.4vw, 40px); line-height: 1.12; color: #fff; letter-spacing: -.02em; }
.login__caption ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15.5px; }
.login__caption li { display: flex; gap: 10px; align-items: flex-start; }
.login__caption li .ic { width: 18px; height: 18px; margin-top: 2px; color: #38e8ff; flex: none; }
.login__side { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 32px clamp(20px, 3vw, 48px); }
@media (max-width: 420px) { .login__box { padding: 22px 18px; } }
.zone .login__side { background: #f4f7fb; }
@media (max-width: 1000px) {
  .login--split { grid-template-columns: minmax(0, 1fr); }
  .login__art { display: none; }
  .login__side { min-height: 100vh; padding: 24px 16px; }
}

/* Google Authenticator: kod QR, kroki, kody awaryjne. */
.qr-box { display: flex; justify-content: center; margin: 14px 0; }
.qr-box .qr, .qr { background: #fff; border-radius: 12px; padding: 6px; max-width: 100%; height: auto; }
.steps-list { margin: 12px 0; padding-left: 20px; color: var(--muted); } .steps-list li { margin-bottom: 6px; }
.codes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.codes li { padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); font-size: 15px; letter-spacing: .06em; }
/* Długie etykiety (np. licznik SLA) w listach nie mogą poszerzać strony na wąskich ekranach. */
.list li > .grow { min-width: 0; overflow-wrap: anywhere; } .list li > .pill { white-space: normal; flex-shrink: 1; min-width: 0; max-width: 45%; }
@media (max-width: 820px) { .form-grid { grid-template-columns: minmax(0, 1fr); } .next-list { columns: 1; } .funnel--v > div:nth-child(n) { width: 100%; } }
/* Agent: przyciski obok siebie, linijki do wp-config.php do skopiowania. */
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form { margin: 0; }
pre.mono { margin-bottom: 0; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
/* Luki pogrupowane według oprogramowania: jedna zwijana pozycja na wtyczkę/motyw na stronie. */
.vgroups { display: grid; gap: 10px; margin-top: 12px; }
.vgroup { padding: 0; }
.vgroup__sum { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1.2fr) auto; gap: 8px 16px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; border-radius: inherit; }
.vgroup__sum::-webkit-details-marker { display: none; }
.vgroup__sum::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); justify-self: end; grid-column: 4; grid-row: 1; margin-top: -4px; }
.vgroup[open] > .vgroup__sum::after { transform: rotate(-135deg); margin-top: 4px; }
.vgroup__sum:hover { background: rgba(255, 255, 255, .03); }
.vgroup__sum:focus-visible { outline: 2px solid var(--focus, #38e8ff); outline-offset: 2px; }
.vgroup__what, .vgroup__fix { min-width: 0; overflow-wrap: anywhere; }
.vgroup__sev { display: flex; flex-wrap: wrap; gap: 4px; }
.vgroup__count { text-align: right; white-space: nowrap; padding-right: 22px; grid-column: 4; grid-row: 1; }
.vgroup__body { border-top: 1px solid var(--line2); }
.vgroup__bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 12px 18px; }
@media (max-width: 900px) {
  .vgroup__sum { grid-template-columns: minmax(0, 1fr) auto; }
  .vgroup__sev, .vgroup__fix { grid-column: 1 / -1; }
  .vgroup__count, .vgroup__sum::after { grid-column: 2; }
}
.vgroup__body td:first-child { min-width: 240px; }
/* Grupy luk wewnątrz karty bez wewnętrznego odstępu (karta strony). */
.vpad { padding: 0 18px 18px; }
.vpad--top { margin: 0; padding-top: 4px; padding-bottom: 0; }
.vpad .vgroup { box-shadow: none; }
/* Powiadomienia e-mail: tabela rodzajów (zakładka ustawień, karta klienta/partnera) i podgląd maila. */
.nt th, .nt td { vertical-align: top; }
.nt tbody th { font-weight: 400; font-size: inherit; text-transform: none; letter-spacing: normal; color: inherit; text-align: left; min-width: 200px; }
.nt .check { margin: 0; white-space: nowrap; }
.nt tbody td:nth-of-type(1) { min-width: 220px; }
.nt .mono { word-break: normal; }
.pv-frame { display: block; width: 100%; height: 640px; margin-top: 12px; border: 1px solid var(--line2); border-radius: 10px; background: #eef2f8; }
.pv-text { max-height: 640px; overflow: auto; user-select: text; }
/* „Wiadomości od nas” w strefach: rodzaj + „kiedy” po lewej, przełącznik albo „zawsze — dlaczego” po prawej. */
.nt-list li { align-items: center; gap: 12px; }
.nt-list .check { margin: 0; white-space: nowrap; }
.nt-always { max-width: 16rem; text-align: right; }
@media (max-width: 600px) { .nt-list li { flex-wrap: wrap; } .nt-always { max-width: none; text-align: left; } }

/* Podgląd raportu PDF obok formularza */
.report-review { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.report-preview iframe { display: block; width: 100%; height: 80vh; min-height: 560px; border: 1px solid var(--line); border-radius: 12px; background: #5a6675; }
.report-tests { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.report-tests legend { padding: 0; margin-bottom: 4px; font-weight: 600; }
@media (max-width: 1100px) { .report-review { grid-template-columns: minmax(0, 1fr); } .report-preview iframe { height: 70vh; } }

/* Strefa partnera — jasny motyw (makiety 31–38) na bazie stylu panelu. Kolory tekstu sprawdzone pod WCAG AA na białym. */
body.zone {
  --text: #0b1a2e; --strong: #04101f; --muted: #3f4f66; --faint: #5b6b82;
  --line: #e2e8f0; --line2: #cfd9e6; --card2: #f6f9fc;
  --blue: #1d5fd6; --info: #1d5fd6; --ok: #0f7a3d; --warn: #8a5300; --danger: #b4233c; --violet: #5b4fd6;
  --teal-ink: #0a6a7c;
  background: #f4f7fb; color: var(--text);
}
body.zone a { color: var(--blue); }
.zone .card { background: #fff; border-color: var(--line); box-shadow: 0 10px 30px rgba(15, 30, 60, .07); backdrop-filter: none; }
.zone h1, .zone h2, .zone h3 { color: var(--strong); }
.zone .muted { color: var(--muted); } .zone .faint { color: var(--faint); }
.zone th { color: var(--faint); border-color: var(--line); } .zone td { border-color: var(--line); } .zone tbody tr:hover { background: #f8fafc; }
.zone td a { color: var(--blue); }
.zone .btn--ghost { color: var(--strong); border-color: #c9d4e3; background: #fff; }
.zone .btn--danger { color: var(--danger); border-color: rgba(180, 35, 60, .5); }
.zone .note { color: var(--text); background: #eef4ff; border-color: #c7d8ff; } .zone .note .ic { color: var(--blue); }
.zone .note.warn { background: #fff6e6; border-color: #ffd89a; } .zone .note.warn .ic { color: #b26a00; }
.zone .note.ok { background: #e9f8ef; border-color: #a7e3c0; } .zone .note.ok .ic { color: var(--ok); }
.zone .note.danger { background: #ffecef; border-color: #f5b5c1; color: #7a1328; } .zone .note.danger .ic { color: var(--danger); }
.zone .pill.ok { color: #0f7a3d; background: #e3f7ec; border-color: #a7e3c0; }
.zone .pill.warn { color: #8a5300; background: #fff1d6; border-color: #ffd28a; }
.zone .pill.info { color: #1d4ed8; background: #eaf1ff; border-color: #bcd2ff; }
.zone .pill.danger { color: #9b1c33; background: #ffe8ec; border-color: #f5b5c1; }
.zone .pill.muted { color: #3f4f66; background: #eef2f7; border-color: #d5dde8; }
.zone .pill.teal { color: var(--teal-ink); background: #e3f7fb; border-color: #a6e3ee; }
.zone .stat__label { color: var(--muted); } .zone .stat__value { color: var(--strong); } .zone .stat__note { color: var(--faint); }
.zone .stat__icon { background: #eaf1ff; color: var(--blue); box-shadow: none; }
.zone .stat__icon.ok { background: #e3f7ec; color: var(--ok); } .zone .stat__icon.warn { background: #fff1d6; color: #b26a00; }
.zone .stat__icon.violet { background: #efedff; color: var(--violet); } .zone .stat__icon.teal { background: #e3f7fb; color: var(--teal-ink); }
.zone .kv dt { color: var(--muted); } .zone .kv dt, .zone .kv dd, .zone .list li { border-color: var(--line); }
.zone .field label { color: var(--muted); }
.zone .field input, .zone .field select, .zone .field textarea { background: #fff; color: var(--text); border-color: #c2cfdf; }
.zone .field .hint { color: var(--faint); } .zone .field .err { color: var(--danger); }
.zone select option { background: #fff; color: var(--text); }
.zone .check { color: var(--text) !important; }
.zone .chip { background: #fff; border-color: #cfd9e6; color: var(--muted); }
.zone .chip[aria-current='page'] { background: linear-gradient(180deg, #3a7bff, #2a5fd6); color: #fff; border-color: transparent; }
.zone .empty .ic { color: #94a3b8; }
.zone code { color: var(--teal-ink); background: #e3f7fb; }
.zone .bar { background: #e5edf5; } .zone .bar > i { background: linear-gradient(90deg, #16a34a, #22c55e); }
.zone .li-ic { background: #eaf1ff; color: var(--blue); } .zone .li-ic.ok { background: #e3f7ec; color: var(--ok); }
.zone :focus-visible { outline-color: #1d5fd6; }
.zone .c-danger { color: var(--danger) !important; }

/* Górny pasek */
.ztop { background: linear-gradient(90deg, #04101f, #0a1e3c); color: #fff; }
.ztop__in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 10px 24px; padding: 12px 24px; flex-wrap: wrap; }
.ztop .brand { color: #eaf2ff; } .ztop .brand__area { color: rgba(255, 255, 255, .78); border-color: rgba(255, 255, 255, .25); }
/* Nazwa strefy pod logo (wyrównana do napisu WP Secure) — więcej miejsca na menu. */
.ztop .brand-row { flex-direction: column; align-items: flex-start; gap: 1px; flex-wrap: nowrap; }
.ztop .brand__area { border-left: 0; padding-left: 0; margin-left: calc(17px * 1.83); font-size: 12px; line-height: 1.2; letter-spacing: .01em; }
.znav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1; }
.zone a.btn { color: #fff; } .zone a.btn--ghost { color: var(--strong); } .zone a.btn--light { color: #0b1a2e; }
.zone .znav a { color: rgba(255, 255, 255, .82); }
.zone .znav a:hover, .zone .znav a[aria-current='page'] { color: #fff; }
.zone .zfoot a { color: var(--blue); }
.znav a { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .82); text-decoration: none; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; }
.znav a .ic { width: 17px; height: 17px; }
.znav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.znav a[aria-current='page'] { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 -2px 0 #38e8ff; }
.zuser { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.zuser__me { display: inline-flex; align-items: center; gap: 9px; color: #fff !important; text-decoration: none; font-weight: 600; font-size: 14px; padding: 4px 8px; border-radius: 10px; }
.zuser__me:hover, .zuser__me[aria-current='page'] { background: rgba(255, 255, 255, .08); }
.zuser .avatar { width: 32px; height: 32px; font-size: 12px; }
.zuser__out { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; color: rgba(255, 255, 255, .82); cursor: pointer; }
.zuser__out:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.ztop :focus-visible { outline-color: #38e8ff; }
.ztop .menu-btn { color: #fff; border-color: rgba(255, 255, 255, .3); }
.zmain { max-width: 1240px; margin: 0 auto; padding: 28px 24px 56px; }
.zfoot { max-width: 1240px; margin: 0 auto; padding: 0 24px 32px; color: var(--faint); font-size: 13px; }
.zhead { margin-bottom: 20px; } .zhead h1 { font-size: 30px; } .zhead p { margin: 6px 0 0; }
.zhead--row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

/* Kod i link */
.hero-code { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px 28px; padding: 24px 28px; border-radius: 18px; color: #fff; background: linear-gradient(110deg, #1f6fe0, #3b5be8 55%, #6a4ff0); box-shadow: 0 18px 40px rgba(47, 106, 224, .28); }
.hero-code__label { display: block; font-size: 14px; font-weight: 600; opacity: .92; margin-bottom: 6px; }
.hero-code__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-code__code { font: 800 38px/1.1 ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.hero-code__link { font: 600 18px/1.3 ui-monospace, Consolas, monospace; word-break: break-all; }
.hero-code__part--link { border-left: 1px solid rgba(255, 255, 255, .28); padding-left: 28px; }
.hero-code__note { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; margin: 0; font-size: 14px; opacity: .95; }
.hero-code__note .ic { width: 18px; height: 18px; }
.btn--light { background: #fff; color: #0b1a2e; box-shadow: none; } .btn--light:hover { filter: none; background: #eef4ff; }
.btn--light.copied { background: #e3f7ec; color: #0f7a3d; }
.hero-code :focus-visible { outline-color: #fff; }

.g-dash { grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr) minmax(0, 1fr); }
.big-num { font-size: 32px; font-weight: 800; color: var(--strong); margin: 0 0 12px; } .big-num .muted { font-size: 16px; font-weight: 600; }
.pay-date { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 8px; padding: 9px 12px; border-radius: 10px; background: #f1f5f9; font-weight: 600; font-size: 14px; color: var(--muted); }
.pay-date.ok { background: #e3f7ec; color: var(--ok); } .pay-date .ic { width: 18px; height: 18px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 22px; }
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars__bar { position: relative; width: 100%; max-width: 30px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #3a7bff, #8fb4ff); }
.bars__bar b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 10.5px; white-space: nowrap; color: var(--muted); margin-bottom: 2px; }
.bars__m { font-size: 11.5px; color: var(--faint); }
.zfunnel { list-style: none; margin: 0; padding: 0; }
.zfunnel li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.zfunnel li:last-child { border-bottom: 0; } .zfunnel .grow { flex: 1; } .zfunnel b { font-size: 20px; color: var(--strong); }
.zfunnel .li-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; } .zfunnel .li-ic .ic { width: 17px; height: 17px; }
.c-price { color: var(--ok); }

/* Materiały */
.mat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.mat { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.mat__img { display: grid; place-items: center; background: #0b1a2e; border-radius: 10px; padding: 8px; height: 180px; }
.mat__img img { max-width: 100%; max-height: 164px; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.mat__meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.mat__label { margin: 0; }
.mat .btn { align-self: flex-start; }
.mat__tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
/* Zakładka „Teksty reklam” — wyróżniona (turkus), oddzielona od filtrów grafik. */
.chip--texts { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 700; }
.chip--texts .ic { width: 16px; height: 16px; }
.zone .chip--texts { color: var(--teal-ink); background: #e3f7fb; border-color: #8fd8e6; }
.zone .chip--texts:hover { background: #d3f2f8; }
.zone .chip--texts[aria-current='page'] { color: #fff; background: linear-gradient(180deg, #0f97ae, #0a7286); border-color: transparent; }

/* Teksty reklam: spis + kod po lewej (przyklejone), sekcje platform po prawej. */
.tx-layout { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.tx-side { position: sticky; top: 16px; display: grid; gap: 14px; }
.tx-mine__h { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint) !important; margin: 0 0 10px; }
.tx-copyline { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.tx-copyline code { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 8px; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.tx-copyline code.tx-link { font-size: 12.5px; font-weight: 600; }
.tx-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tx-toc a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.3; }
.tx-toc a:hover { background: #eef4ff; color: var(--strong); }
.tx-toc .ic { width: 16px; height: 16px; color: var(--teal-ink); flex: none; }
.tx-toc .grow { flex: 1; min-width: 0; }
.tx-count { min-width: 24px; padding: 1px 7px; border-radius: 99px; background: #e3f7fb; color: var(--teal-ink); font-size: 12px; font-weight: 700; text-align: center; }
.tx-main { display: grid; gap: 18px; min-width: 0; }
.tx-rules { align-items: flex-start; }
.tx-rules h2 { font-size: 16px; margin: 0 0 6px; }
.tx-rules ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.tx-sec { scroll-margin-top: 16px; }
.tx-sec__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tx-sec__head h2 { margin: 0; font-size: 19px; flex: 1; min-width: 0; }
.tx-sec__ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #e3f7fb; color: var(--teal-ink); flex: none; }
.tx-sec__ic .ic { width: 19px; height: 19px; }
.tx-notes { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.tx-notes li { display: flex; gap: 8px; align-items: flex-start; }
.tx-notes .ic { width: 15px; height: 15px; margin-top: 3px; color: var(--faint); flex: none; }
.tx-notes li > span { min-width: 0; overflow-wrap: anywhere; }
.tx-group + .tx-group { margin-top: 18px; }
.tx-group h3 { font-size: 15px; margin: 0 0 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tx-hint { font-size: 12.5px; font-weight: 600; color: var(--faint); }
.tx-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.tx-items--wide { grid-template-columns: minmax(0, 1fr); }
.tx-item { display: flex; flex-direction: column; gap: 10px; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #f8fafc; transition: border-color .15s, background-color .15s; }
.tx-item:hover { border-color: #a6e3ee; background: #fff; }
.tx-item.is-over { border-color: #f5b5c1; }
.tx-item__text { margin: 0; color: var(--strong); font-weight: 600; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.tx-items--wide .tx-item__text { font-weight: 500; }
.tx-item__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tx-stat { display: grid; gap: 4px; min-width: 0; }
.tx-meter { width: 72px; height: 6px; border: 0; border-radius: 99px; background: #e3e9f2; -webkit-appearance: none; appearance: none; }
.tx-meter::-webkit-meter-bar { background: #e3e9f2; border: 0; border-radius: 99px; height: 6px; }
.tx-meter::-webkit-meter-optimum-value { background: #0a8aa0; border-radius: 99px; }
.tx-meter::-moz-meter-bar { background: #0a8aa0; border-radius: 99px; }
.btn .ic { flex: none; }
@media (max-width: 1000px) {
  .tx-layout { grid-template-columns: minmax(0, 1fr); }
  .tx-side { position: static; }
}
@media (max-width: 560px) { .chip--texts { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .tx-item { transition: none; } }
.btn.copied { color: #0f7a3d !important; border-color: #a7e3c0 !important; }
.steps-line { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.steps-line li { flex: 1 1 150px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 14px; color: var(--muted); }
.steps-line .ic { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: #eaf1ff; color: var(--blue); }
.card-pad { padding: 0 20px 10px; }
.logo-box { display: grid; place-items: center; min-height: 130px; border: 1px dashed #c2cfdf; border-radius: 12px; padding: 16px; background: #fff; }
.logo-box img { max-width: 100%; max-height: 110px; }
.report-prev { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; box-shadow: 0 8px 20px rgba(15, 30, 60, .06); }
.report-prev__head { min-height: 40px; display: flex; align-items: center; } .report-prev__head img { max-height: 40px; max-width: 200px; }
.report-prev__title { font-weight: 800; font-size: 18px; margin: 12px 0 2px; color: var(--strong); }
.report-prev ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }

/* Logowanie w strefie */
.zone--auth { background: radial-gradient(900px 500px at 80% -10%, rgba(79, 141, 255, .18), transparent 60%), #f4f7fb; }
.zone .login__box { background: #fff; border-color: var(--line); box-shadow: 0 30px 70px rgba(15, 30, 60, .12); }
.zone .login__box .brand { color: #0b1a2e; } .zone .login__box .brand em, .zone .login__box .brand__mark { color: #0a8aa0; }
.zone .login__box .brand__area { color: var(--muted); border-color: var(--line2); }

@media (max-width: 1080px) { .g-dash { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) {
  .ztop__in { padding: 10px 16px; }
  .ztop .menu-btn { display: inline-flex; margin-left: auto; }
  .znav { display: none; order: 3; flex-basis: 100%; flex-direction: column; }
  .znav.open { display: flex; }
  .zuser { order: 2; margin-left: 0; } .zuser__me span:not(.avatar):not(.sr) { display: none; }
  .zmain { padding: 22px 16px 48px; } .zfoot { padding: 0 16px 28px; }
  .hero-code { grid-template-columns: minmax(0, 1fr); padding: 20px; } .hero-code__part--link { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .28); padding-top: 14px; }
  .hero-code__code { font-size: 30px; }
}
/* Kod QR z linkiem partnera i Google Authenticator (wspólne ze strefą klienta). */
.qr-card { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.qr-card h2 { margin: 0 0 6px; } .qr-card p { margin: 0 0 12px; }
.qr-card__img { flex: none; }
.zone .qr { border: 1px solid var(--line); }
.zone .codes li { background: #f6f9fc; border-color: var(--line2); color: var(--strong); }
.zone a.btn--danger { color: var(--danger); }
/* Pełna szerokość na dużych ekranach (strefy partnera, agencji i klienta). */
@media (min-width: 821px) {
  .ztop__in, .zmain, .zfoot { max-width: 2200px; padding-left: clamp(24px, 2.6vw, 56px); padding-right: clamp(24px, 2.6vw, 56px); }
}
@media (min-width: 1700px) { .zone .grid { gap: 22px; } .zone .card { padding: 24px; } .zone .card--pad0 { padding: 0; } }
.forms { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; } .forms legend { margin-bottom: 8px; }
/* Dwa rzędy filtrów materiałów (rodzaj, motyw) bliżej siebie. */
.chips + .chips { margin-top: -6px; }

/* Wyszukiwarka nad listą */
.search-row { display: flex; flex-wrap: wrap; gap: 8px; }
.search-row input { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line2); background: transparent; color: inherit; font: inherit; }

/* Strefa klienta — elementy tylko tej strefy (jasny motyw jak w strefie partnera, makiety 21–28). */
.hero-score { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.hero-score .score { width: 132px; height: 132px; flex: none; }
.hero-score__body { flex: 1; min-width: 240px; }
.hero-score h2 { font-size: 22px; margin: 0 0 6px; }
.card.attention { border-color: #f0a12b; background: #fffaf0; }
.offer { display: block; padding: 18px 20px; border-radius: 16px; border: 1px solid #a6e3ee; background: linear-gradient(180deg, #effbfd, #fff); }
.offer .big { display: block; font-size: 22px; margin: 4px 0 6px; color: var(--strong); }
.offer p { margin: 6px 0; }
.value-grid > div { display: flex; flex-direction: column; gap: 2px; }
.value-grid b { font-size: 24px; color: var(--strong); }
.price { font-size: 28px; font-weight: 800; margin: 6px 0 10px; color: var(--strong); }
.price .muted { font-size: 15px; font-weight: 400; }
.cancel-box { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.cancel-box h2 { margin: 0 0 4px; } .cancel-box p { margin: 0; }
.reasons { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.reasons legend { margin-bottom: 8px; }
.zone .ch-line { stroke: #1d5fd6; } .zone .ch-dot { fill: #fff; stroke: #1d5fd6; } .zone .ch-grid { stroke: #dfe7f1; }
.zone .ch-val { fill: #0b1a2e; } .zone .ch-lab { fill: #5b6b82; }
.zone .crumbs a { color: var(--blue); }
details summary.linkish { display: inline; }
@media (max-width: 820px) { .reasons { grid-template-columns: minmax(0, 1fr); } .hero-score .score { width: 108px; height: 108px; } }

/* Oferta Care z raportu */
.offer-page { max-width: 660px; margin-inline: auto; }
.offer-tag { display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: 100px; background: #38e8ff; color: #04101f; font-size: 13px; font-weight: 700; }
.offer-plans { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.offer-plans legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
.offer-plan { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.offer-plan:has(input:checked) { border-color: #38e8ff; background: rgba(56, 232, 255, .06); }
.offer-plan small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.offer-plan__price { margin-left: auto; text-align: right; }
.offer-plan__price b { font-size: 21px; }
.offer-plan__price s { color: var(--muted); }
.offer-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
@media (max-width: 520px) { .offer-plan { flex-wrap: wrap; } .offer-plan__price { margin-left: 0; text-align: left; } }
