/* Motyw panelu SeeTrade (na bazie kombajnu BT): ciemne menu, niebieskie zaznaczenie z logo SeeTrade #188CC9, jasne karty. */
:root {
  --ink: #161616; --muted: #6f6f6f; --line: #ececec; --bg: #f4f4f4; --surface: #ffffff;
  --side: #1f1f1f; --side-2: #353535; --side-hover: #2a2a2a; --side-line: #2f2f2f; --side-text: #ececec; --side-muted: #9a9a9a;
  --accent: #188CC9; --accent-dark: #157BB3; --accent-soft: #e8f4fb; --amber: #f5a524;
  --navy: #161616; --red: #188CC9; --red-dark: #157BB3; --border: #ececec; --text: #161616;
  --shadow: 0 1px 2px rgba(0,0,0,.03);
}
body { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }

/* menu */
.sidebar { width: 258px; flex-shrink: 0; background: var(--side); color: var(--side-text); height: 100vh; position: sticky; top: 0;
  display: flex; flex-direction: column; border-right: 1px solid #141414; overflow-y: auto; }
.sidebar .brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 20px; border-bottom: 1px solid var(--side-line); font-size: 16px; }
.sidebar .logo { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; letter-spacing: -.3px; flex-shrink: 0; }
.sidebar .brand b { display: block; color: #fff; font-weight: 700; line-height: 1.15; }
.sidebar .brand small { display: block; color: var(--side-muted); font-size: 12px; font-weight: 500; }
.szukaj-menu { margin: 16px 14px 6px; position: relative; }
.szukaj-menu input { width: 100%; background: #2a2a2a; border: 1px solid #333; color: #fff; border-radius: 9px; padding: 9px 44px 9px 36px; font: inherit; font-size: 14px; }
.szukaj-menu input::placeholder { color: #a8a8a8; }
.szukaj-menu input:focus { outline: none; border-color: var(--accent); }
.szukaj-menu svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #bdbdbd; }
.szukaj-menu kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font: 600 11px/1 inherit; color: #bdbdbd; background: #3a3a3a; border-radius: 5px; padding: 4px 6px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 16px; flex: 1; }
.sidebar nav a, .sidebar .nav-group { display: flex; align-items: center; gap: 12px; color: var(--side-text); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 9px 12px; border-radius: 9px; position: relative; }
.sidebar nav a svg, .sidebar .nav-group svg { width: 18px; height: 18px; flex-shrink: 0; color: #fff; }
.sidebar nav a:hover { background: var(--side-hover); color: #fff; }
.sidebar nav a.active { background: var(--side-2); color: #fff; font-weight: 600; }
.sidebar nav a.active::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.sidebar nav a.active svg { color: var(--accent); }
.sidebar .nav-group { margin-top: 12px; text-transform: uppercase; font-size: 12.5px; letter-spacing: .4px; color: #d6d6d6; font-weight: 600; padding-bottom: 6px; }
.sidebar .nav-sub { display: flex; flex-direction: column; gap: 2px; margin-left: 20px; padding-left: 10px; border-left: 1px solid var(--side-line); }
.sidebar .footer { border-top: 1px solid var(--side-line); padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.sidebar .avatar { width: 34px; height: 34px; border-radius: 50%; background: #333; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.sidebar .user-info { flex: 1; min-width: 0; }
.sidebar .user-name { color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .user-role { color: var(--side-muted); font-size: 12px; }
.sidebar .btn-logout { background: none; border: 0; color: #cfcfcf; cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.sidebar .btn-logout:hover { background: var(--side-hover); color: var(--accent); }
.sidebar .btn-logout svg { width: 18px; height: 18px; }

/* treść */
.main { padding: 40px 56px 56px; max-width: none; }
.main-inner { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; }
.main-inner > * { order: 3; }
.main-inner > .flash-stack, .main-inner > .eyebrow, .main-inner > .back { order: 0; }
.main-inner > .page-header { order: 1; }
.main-inner > .podtytul { order: 2; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.page-header h1 { font-size: 34px; font-weight: 700; letter-spacing: -.6px; color: var(--ink); line-height: 1.15; }
.page-header .muted { font-size: 13px; }
.podtytul { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.back { color: var(--muted); font-size: 13px; text-decoration: none; margin-bottom: 10px; display: inline-block; align-self: flex-start; }
.back:hover { color: var(--accent); }

/* karty */
.box, .kpis .kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.box { padding: 22px 24px; margin-bottom: 20px; }
.box h2 { font-size: 16.5px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.box h2 a { color: var(--muted); font-weight: 500; }
.box h2 a:hover { color: var(--accent); }
.kpis { gap: 14px; margin-bottom: 20px; }
.kpis .kpi { padding: 18px 20px; }
.kpis .kpi .l { font-size: 11.5px; font-weight: 700; letter-spacing: .5px; color: var(--muted); }
.kpis .kpi .v { font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -.5px; }
.kpis .kpi .s { color: var(--muted); }
.grid2, .grid3 { gap: 20px; }

/* filtry jak zakładki w DD */
.filters { gap: 8px; margin-bottom: 18px; }
.filters a { padding: 8px 14px; border: 1px solid #e6e6e6; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.filters a:hover { border-color: #d4d4d4; }
.filters a.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* tabele */
.data-table { font-size: 14px; }
.data-table th { background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; border-bottom: 1px solid var(--line); padding: 12px 14px; }
.data-table td { padding: 14px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.data-table tbody tr:hover { background: #fafafa; }
.data-table td:first-child { font-weight: 600; }
.data-table a { color: var(--ink); font-weight: 600; text-decoration: none; }
.data-table a:hover { color: var(--accent); }
.table-wrap { border-radius: 16px; }

/* etykiety, przyciski, pola */
.pill { background: #fff; border: 1px solid #e3e3e3; color: #3a3a3a; border-radius: 7px; font-weight: 500; padding: 3px 9px; }
.pill.red { background: var(--accent-soft); border-color: #ffd6c7; color: #c2410c; }
.pill.green { background: #ecfdf3; border-color: #c6f0d6; color: #166534; }
.pill.yellow { background: #fff8e6; border-color: #fbe3a8; color: #8a5a00; }
.pill.blue { background: #eef4ff; border-color: #d3e1ff; color: #1e40af; }
.btn { border-radius: 9px; font-weight: 600; font-family: inherit; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
textarea, input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], select { border: 1px solid #e3e3e3; border-radius: 10px; font-family: inherit; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(24,140,201,.15); }
.row-form label { color: var(--muted); font-weight: 600; }
.list li { border-bottom-color: #f0f0f0; }
.list a:hover { color: var(--accent); }
.spark polyline { stroke: var(--accent); }
.spark.navy polyline { stroke: var(--ink); }
.timeline li.konw::before { background: var(--accent); }
.timeline li.wej::before { background: var(--ink); }
.bar > i { background: var(--accent); }
.flash-info { background: #fff8e6; color: #7a4f00; border-color: #fbe3a8; }
.empty-note { background: #fafafa; border-color: #e6e6e6; }
.up { color: #16a34a; } .down { color: var(--accent); }

/* logowanie */
.login-wrap { background: var(--side); }
.login-box { border-radius: 18px; }
.login-box h1 { color: var(--ink); }

/* wyszukiwarka */
.wyniki h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }

/* telefon */
@media (max-width: 860px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: sticky; top: 0; z-index: 20; overflow: visible; border-right: 0; align-items: stretch; }
  .sidebar nav { width: 100%; min-width: 0; flex: none; }
  .sidebar .brand { padding: 12px 16px; border-bottom: 0; }
  .sidebar .logo { width: 30px; height: 30px; font-size: 12px; }
  .sidebar .brand small, .szukaj-menu, .sidebar .footer, .sidebar .nav-group { display: none; }
  .sidebar nav { flex-direction: row; overflow-x: auto; padding: 0 10px 10px; gap: 4px; }
  .sidebar .nav-sub { display: contents; }
  .sidebar nav a { white-space: nowrap; padding: 8px 12px; font-size: 14px; }
  .sidebar nav a svg { width: 16px; height: 16px; }
  .sidebar nav a.active::before { left: 8px; right: 8px; top: auto; bottom: 2px; width: auto; height: 2px; border-radius: 2px; }
  .main { padding: 18px 16px 40px !important; }
  .page-header h1 { font-size: 26px; }
  .podtytul { margin-bottom: 18px; }
  .box { padding: 18px 16px; border-radius: 14px; }
  .kpis .kpi .v { font-size: 22px; }
}
.sidebar .szukaj-menu input { background: #2a2a2a; border: 1px solid #353535; color: #fff; box-shadow: none; }
.sidebar .szukaj-menu input:focus { border-color: var(--accent); }
.data-table td.contact { min-width: 190px; max-width: 260px; word-break: normal; overflow-wrap: anywhere; }
.box h2, .box > h2:first-child { margin-top: 0; }
.login-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.login-logo .logo { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.login-logo h1 { margin: 0; font-size: 21px; } .login-logo p { margin: 2px 0 0; }
.link-pod { display: block; text-align: center; margin-top: 14px; font-size: 13.5px; color: var(--muted); text-decoration: none; }
.link-pod:hover { color: var(--accent); }
.sidebar a.user-name { display: block; text-decoration: none; }
.sidebar a.user-name:hover { color: var(--accent); }

/* menu mieści się na ekranie, nie przewija się razem ze stroną */
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
.sidebar .brand { padding: 16px 18px 14px; }
.szukaj-menu { margin: 12px 12px 4px; }
.sidebar nav { gap: 1px; padding: 6px 10px 10px; }
.sidebar nav a { padding: 7px 12px; }
.sidebar .nav-group { margin-top: 6px; padding: 7px 12px 4px; }
.sidebar .footer { padding: 10px 14px; }

/* nasłuch: lista po lewej, podgląd po prawej */
.nasluch { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.nasluch-lista { padding: 8px; }
.wzmianka { display: flex; gap: 12px; padding: 12px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); border-bottom: 1px solid #f2f2f2; }
.wzmianka:hover { background: #fafafa; }
.wzmianka.wybrana { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.wz-tresc { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wz-gora strong { font-size: 14px; font-weight: 600; }
.wz-opis { font-size: 13px; color: #4a4a4a; overflow-wrap: anywhere; }
.wz-meta { font-size: 12px; color: var(--muted); }
.ik-serwis { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: #6b7280; }
.ik-serwis svg { width: 16px; height: 16px; }
.ik-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); }
.ik-facebook { background: #1877f2; } .ik-linkedin { background: #0a66c2; } .ik-youtube { background: #ff0000; } .ik-tiktok { background: #111; } .ik-www { background: #6b7280; }
.nasluch-podglad { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
.pg-gora { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.pg-gora strong { font-size: 15px; }
.pg-osadz { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pg-akcje { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.pg-akcje select { width: auto; }
.stronicowanie { display: flex; gap: 6px; justify-content: center; padding: 14px 4px 6px; flex-wrap: wrap; }
.stronicowanie a, .stronicowanie span { min-width: 36px; padding: 7px 10px; text-align: center; border-radius: 9px; border: 1px solid #e6e6e6; background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; }
.stronicowanie a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.stronicowanie span { border: 0; background: none; }
@media (max-width: 1100px) { .nasluch { grid-template-columns: 1fr; } .nasluch-podglad { position: static; max-height: none; order: -1; } .pg-osadz { height: 480px; } }
@media (max-width: 860px) { .sidebar { position: sticky; height: auto; overflow: visible; } }

/* menu przypięte na stałe (sticky w układzie flex nie trzymało) */
@media (min-width: 861px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; height: 100vh; z-index: 30; }
  .main { margin-left: 258px; }
}
@media (min-width: 861px) and (max-height: 860px) {
  .sidebar .brand { padding: 12px 18px 10px; }
  .szukaj-menu { margin: 8px 12px 2px; }
  .szukaj-menu input { padding-top: 7px; padding-bottom: 7px; }
  .sidebar nav a { padding: 5px 12px; font-size: 13.5px; }
  .sidebar .nav-group { margin-top: 2px; padding: 5px 12px 2px; font-size: 12px; }
  .sidebar .footer { padding: 8px 14px; }
}
@media (min-width: 861px) and (max-height: 700px) { .szukaj-menu, .sidebar .brand small { display: none; } }

/* przycinanie w poziomie bez tworzenia kontenera przewijania (inaczej sticky nie działa) */
html, body { overflow-x: clip; overflow-y: visible; }
.ik-przetarg { background: #b45309; }

/* kreator maili */
.kreator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.kreator-podglad { position: sticky; top: 20px; }
.blok { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; background: #fcfcfc; }
.blok-gora { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.blok-gora span { display: flex; gap: 4px; }
.blok label { display: flex; flex-direction: column; gap: 4px; }
.kreator-dodaj { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; }
.podglad-przelacz { display: flex; gap: 6px; margin-bottom: 10px; }
.podglad-przelacz .on { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 1100px) { .kreator { grid-template-columns: 1fr; } .kreator-podglad { position: static; } }

/* zwijane grupy menu jak w DD: na niższych ekranach otwarta tylko grupa bieżącej strony */
.sidebar .grupa > .nav-group { width: 100%; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; }
.sidebar .grupa > .nav-group:hover { background: var(--side-hover); }
.sidebar .nav-group .strz { margin-left: auto; font-style: normal; font-size: 11px; color: var(--side-muted); transition: transform .15s; }
.sidebar .grupa.zwinieta .nav-sub { display: none; }
.sidebar .grupa.zwinieta .strz { transform: rotate(-90deg); }
@media (min-width: 861px) and (max-height: 1000px) {
  .sidebar .grupa:not(.aktywna):not(.otwarta) .nav-sub { display: none; }
  .sidebar .grupa:not(.aktywna):not(.otwarta) .strz { transform: rotate(-90deg); }
}
@media (max-width: 860px) { .sidebar .grupa { display: contents; } }
@media (max-width: 860px) { .page-header form { width: 100%; flex-wrap: wrap; } .page-header form input[type=text] { width: 100% !important; } }

.male-wykresy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-top: 12px; }
.mw-tytul { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.slupki { width: 100%; height: 120px; display: block; }
.legenda { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 860px) { .male-wykresy { grid-template-columns: 1fr; } }

/* lejek sprzedaży */
.lejek { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); align-items: start; gap: 14px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; }
.lejek-kol { background: #ececec; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.lk-gora { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 2px 4px 4px; flex-wrap: wrap; }
.lk-karta { background: #fff; border-radius: 10px; padding: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.lk-wiecej { font-size: 13px; padding: 4px; color: var(--muted); }
.lk-karta a { color: var(--ink); text-decoration: none; } .lk-karta a:hover { color: var(--accent); }
.lk-form { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 6px; }
.lk-form select, .lk-form input { padding: 6px 8px; font-size: 13px; }
@media (max-width: 860px) { .lejek { grid-template-columns: repeat(5, 240px); } }

/* prospecting: zwarta lista firm */
.kpis-male { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; gap: 10px; margin-bottom: 14px; }
.kpis-male .kpi { padding: 11px 14px; border-radius: 12px; }
.kpis-male .kpi .l { font-size: 10.5px; }
.kpis-male .kpi .v { font-size: 21px; }
.kpis-male .kpi .s { font-size: 12px; }
.lista-firm { padding: 4px 6px 10px; }
.data-table.kompakt { font-size: 13.5px; }
.data-table.kompakt th { padding: 10px 10px; font-size: 10.5px; }
.data-table.kompakt td { padding: 9px 10px; vertical-align: middle; }
.data-table.kompakt td:first-child { font-weight: 400; }
.kompakt .kf-firma a { font-weight: 600; color: var(--ink); text-decoration: none; } .kompakt .kf-firma a:hover { color: var(--accent); }
.kompakt .kf-firma .muted { font-size: 12px; margin-top: 1px; }
.kompakt .kf-tel, .kompakt .kf-li, .kompakt .kf-ocena, .kompakt .kf-status { white-space: nowrap; }
.kompakt .kf-tel a, .kompakt .kf-mail a { color: var(--ink); text-decoration: none; } .kompakt .kf-tel a:hover, .kompakt .kf-mail a:hover { color: var(--accent); }
.kompakt .kf-mail { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.kompakt .kf-chk { width: 28px; }
.li-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #0a66c2; background: #eef4fb; border-radius: 6px; padding: 2px 7px 2px 3px; margin-right: 4px; text-decoration: none; }
.li-tag::before { content: 'in'; background: #0a66c2; color: #fff; font-size: 10px; font-weight: 700; border-radius: 3px; padding: 0 3px; line-height: 15px; }
.li-tag:hover { background: #dbe8f6; }
.li-tag.osoba { color: #fff; background: #0a66c2; } .li-tag.osoba::before { background: #fff; color: #0a66c2; }
.ocena { display: inline-block; min-width: 34px; text-align: center; font-weight: 700; font-size: 13px; border-radius: 7px; padding: 2px 6px; cursor: help; }
.ocena.wys { background: #e6f6ec; color: #17803d; } .ocena.sred { background: #fff4dc; color: #a15c00; } .ocena.nis { background: #f1f1f1; color: #777; }
.kompakt .pill { font-size: 12px; padding: 2px 8px; }
.akcept-pasek { margin: 12px 8px 2px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sekcja-ust { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 26px 0 10px; }
details.zwijka { padding: 0; margin-bottom: 10px; }
details.zwijka > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
details.zwijka > summary::-webkit-details-marker { display: none; }
details.zwijka > summary::before { content: '›'; color: var(--muted); transition: transform .15s; display: inline-block; }
details.zwijka[open] > summary::before { transform: rotate(90deg); }
details.zwijka > summary .small { font-weight: 400; }
details.zwijka[open] { padding-bottom: 16px; } details.zwijka[open] > *:not(summary) { margin-left: 18px; margin-right: 18px; }
@media (max-width: 860px) {
  .lista-firm { padding: 0; }
  .data-table.kompakt thead { display: none; }
  .data-table.kompakt, .data-table.kompakt tbody { display: block; }
  .data-table.kompakt tr { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; padding: 12px 14px; border-bottom: 1px solid #f0f0f0; align-items: center; }
  .data-table.kompakt td { display: block; padding: 0; border: 0; }
  .kompakt .kf-chk { grid-row: 1; grid-column: 1; width: auto; }
  .kompakt .kf-firma { grid-column: 1 / 3; grid-row: 1; }
  .kompakt .kf-chk + .kf-firma { grid-column: 2 / 3; }
  .kompakt .kf-ocena { grid-column: 3; grid-row: 1; }
  .kompakt .kf-tel { grid-column: 1 / 3; } .kompakt .kf-status { grid-column: 3; text-align: right; }
  .kompakt .kf-mail { grid-column: 1 / -1; max-width: none; }
  .kompakt .kf-li { grid-column: 1 / -1; }
  .data-table.kompakt td.empty { grid-column: 1 / -1; }
}
@media (max-width: 860px) { .kpis.kpis-male { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px; } .kpis-male .kpi { padding: 9px 10px; } .kpis-male .kpi .v { font-size: 18px; } .kpis-male .kpi .s { display: none; } }
.kompakt .kf-firma a { display: block; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kompakt .kf-mail { max-width: 260px; }
.obca { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; color: #a15c00; background: #fff4dc; border-radius: 5px; padding: 1px 6px; vertical-align: 1px; }
@media (max-width: 860px) { .kompakt .kf-firma a { max-width: none; white-space: normal; } }
.lista-firm { overflow-x: auto; }
.kompakt .kf-firma a { max-width: 260px; }
.kompakt .kf-mail { max-width: none; overflow: visible; white-space: nowrap; }
.kompakt .kf-mail .mail-t { display: inline-block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.list li > span:first-child { flex-shrink: 0; margin-right: 12px; }
.list li > span:last-child { text-align: right; }
@media (max-width: 860px) { .kompakt .kf-mail { white-space: normal; } .kompakt .kf-mail .mail-t { max-width: 100%; } }
.kompakt .kf-osoba { font-size: 12.5px; margin-top: 2px; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kompakt .kf-osoba strong { color: var(--ink); }
.osoby-lista li { align-items: flex-start; }
@media (max-width: 860px) { .kompakt .kf-osoba { white-space: normal; max-width: none; } }
#zadania select, .kompakt form select[name=status] { min-width: 132px; }
@media (max-width: 860px) {
  .data-table.kompakt.seo-tab tr { display: block; padding: 12px 14px; border-bottom: 1px solid #f0f0f0; }
  .data-table.kompakt.seo-tab td { display: block; padding: 2px 0; border: 0; max-width: none !important; white-space: normal; text-align: left; }
  .seo-tab td[data-l]::before { content: attr(data-l) ': '; color: var(--muted); font-size: 12px; }
  .seo-tab td .pill { margin-top: 4px; }
}

/* licznik nowych sygnałów kontaktu w menu */
.sidebar nav a .licznik { margin-left: auto; background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1; padding: 3px 7px; }

/* 6.10.2026: źródło zapytania, statusy, wykluczenia */
.zrodlo-pasek { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.zrodlo-pasek span { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 14px; }
.zrodlo-pasek small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.zrodlo-pasek em { display: block; font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); }
.st-form { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.st-form select, .st-form input { padding: 5px 8px; font-size: 13px; }
select.st-zakwalifikowany { background: #eef4ff; border-color: #d3e1ff; }
select.st-klient { background: #ecfdf3; border-color: #c6f0d6; }
select.st-zdyskwalifikowany, select.st-spam { background: #f6f6f6; color: #6f6f6f; }
.lk-form input[list] { grid-column: 1 / -1; }
#wykluczone .list li { align-items: center; }
[hidden] { display: none !important; }
/* reklamy: kreacje */
.sekcja-tytul { font-size: 20px; margin: 26px 0 12px; }
.kr-h { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 16px 0 8px; font-weight: 600; }
.kr-siatka { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.kr-siatka.obrazy { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kr-karta { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--ink); text-decoration: none; background: #fff; }
.kr-karta img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--bg); }
.kr-siatka.obrazy .kr-karta img { aspect-ratio: 1; object-fit: contain; }
.kr-karta span { font-size: 13px; font-weight: 600; line-height: 1.3; }
.kr-karta small { font-size: 12px; color: var(--muted); }
/* SEO: frazy i weryfikacja */
svg.mini { width: 120px; height: 28px; display: block; }
svg.mini polyline { fill: none; stroke: var(--ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.wykres-os { display: grid; grid-template-columns: 34px 1fr; gap: 6px; }
.os-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); text-align: right; padding: 2px 0; }
.weryf { border-color: #fbe3a8; }
.weryf-wiersz { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.weryf-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.weryf-form input { padding: 6px 8px; font-size: 13px; min-width: 200px; }
@media (max-width: 760px) { .weryf-wiersz { grid-template-columns: 1fr; } .weryf-form input { min-width: 0; flex: 1; } }
@media (max-width: 860px) {
  .data-table.kompakt.przewijana { display: table; min-width: 560px; }
  .data-table.kompakt.przewijana thead { display: table-header-group; }
  .data-table.kompakt.przewijana tbody { display: table-row-group; }
  .data-table.kompakt.przewijana tr { display: table-row; padding: 0; }
  .data-table.kompakt.przewijana td { display: table-cell; padding: 8px; border-bottom: 1px solid #f0f0f0; }
  .frazy-tab td svg.mini { margin: 4px 0; }
}
/* prospecting: filtry i znaczniki */
.filtry-prosp { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.filtry-prosp input[type=search] { min-width: 220px; padding: 7px 10px; }
.filtry-prosp select { padding: 7px 10px; max-width: 230px; }
.zn-form { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.zn-form select, .zn-form input { padding: 5px 8px; font-size: 13px; }
select.zn-wysłany-mail { background: #eef4ff; border-color: #d3e1ff; }
select.zn-pasuje { background: #ecfdf3; border-color: #c6f0d6; }
select.zn-odrzucony { background: #f6f6f6; color: #6f6f6f; }
.kompakt .kf-syg { max-width: 220px; font-size: 12.5px; color: #3a3a3a; white-space: normal; line-height: 1.35; }
@media (max-width: 860px) { .kompakt .kf-syg { grid-column: 1 / -1; max-width: none; } .kompakt .kf-status { grid-column: 1 / -1; text-align: left; } .zn-form { flex-direction: row; } .filtry-prosp input[type=search], .filtry-prosp select { flex: 1 1 100%; max-width: none; } }
.osoba-karta { border-top: 1px solid var(--line); padding: 10px 0; }
.osoba-karta > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.osoba-karta > summary::-webkit-details-marker { display: none; }
.osoba-karta > summary::before { content: '›'; color: var(--muted); margin-right: 6px; display: inline-block; transition: transform .15s; }
.osoba-karta[open] > summary::before { transform: rotate(90deg); }
.osoba-szcz { padding: 10px 0 0 14px; }
.zwijka-mala > summary { cursor: pointer; }
/* raport: archiwum i dziennik prac */
.kalendarz .kal-mies { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.kalendarz .kal-mies:first-of-type { border-top: 0; }
.kal-nazwa { font-size: 12px; font-weight: 600; color: var(--muted); min-width: 120px; text-transform: capitalize; }
.kal-tydz { font-size: 13px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; background: #fff; }
.kal-tydz.on, .kal-tydz:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
ul.prace { list-style: none; margin: 0; padding: 0; }
ul.prace li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
ul.prace li:first-child { border-top: 0; }
.dostep-form { display: flex; flex-direction: column; gap: 4px; }
.dostep-form label { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 400; }
.dostep-form label input { width: auto; }
.dostep-form button { align-self: flex-start; margin-top: 4px; }

/* Prospecting: firma jako wizytówka, cztery czytelne kolumny bez ucinania */
.lista-firm { padding: 0; }
.fk { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr) minmax(0, 1.25fr) auto; gap: 6px 22px; padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: start; }
.fk:last-of-type { border-bottom: 0; }
.fk:hover { background: #fcfbf9; }
.fk-nazwa { font-weight: 650; font-size: 14.5px; color: var(--ink); text-decoration: none; line-height: 1.3; }
.fk-nazwa:hover { color: var(--accent); }
.fk-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.fk-linki { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 6px; font-size: 12px; }
.fk-linki a:not(.li-tag) { color: var(--muted); text-decoration: none; } .fk-linki a:not(.li-tag):hover { color: var(--accent); }
.fk-osoba { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 13.5px; }
.fk-rola { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.fk-wiecej { font-size: 12px; color: var(--muted); text-decoration: none; margin-left: 4px; } .fk-wiecej:hover { color: var(--accent); }
.fk-brak { font-size: 12.5px; color: var(--muted); }
.fk-kontakt { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 3px 8px; align-items: baseline; font-size: 13.5px; }
.fk-tel { font-weight: 650; color: var(--ink); text-decoration: none; white-space: nowrap; }
.fk-mail { color: var(--ink); text-decoration: none; overflow-wrap: break-word; word-break: normal; }
.fk-tel:hover, .fk-mail:hover { color: var(--accent); }
.fk-opis { font-size: 11px; color: var(--muted); }
.fk-stan { display: flex; align-items: flex-start; gap: 10px; }
.fk-stan .zn-form { display: flex; flex-direction: column; gap: 4px; }
.fk-stan .zn-form select, .fk-stan .zn-form input { font-size: 12.5px; width: 150px; }
.fk-sygnal { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink); background: #fffbea; border-radius: 8px; padding: 6px 10px; }
@media (max-width: 1100px) {
  .fk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fk-stan { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .fk { grid-template-columns: 1fr; padding: 14px; }
  .fk-stan .zn-form { flex-direction: row; } .fk-stan .zn-form select, .fk-stan .zn-form input { width: auto; flex: 1; }
}

/* Karta firmy: osoba decyzyjna jako wizytówka z akcjami na wierzchu */
.wiz { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 12px; background: #fff; }
.wiz-gora { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.wiz-imie { font-weight: 650; font-size: 15px; }
.wiz-rola { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.wiz-akcje { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 4px; }
.wiz-akcje .btn { overflow-wrap: anywhere; }
.wiz-sygnal { font-size: 12.5px; background: #fffbea; border-radius: 8px; padding: 8px 10px; margin-top: 8px; }
.wiz-edycja { margin-top: 10px; } .wiz-edycja summary { cursor: pointer; color: var(--muted); }
