@font-face{font-family:InterFallback;src:local("Segoe UI")} :root{color-scheme:dark;--bg:#07111f;--bg2:#0b1d34;--panel:#0e1a2d;--line:rgba(148,163,184,.22);--text:#f4f8ff;--muted:#b8c4d6;--muted2:#7f91aa;--blue:#5aa3ff;--blue2:#2467f2;--green:#28d49a;--orange:#f5b33d;--red:#fb7185;--shadow:0 28px 90px rgba(0,0,0,.38)}*{box-sizing:border-box}body{margin:0;min-height:100vh;font-family:Inter,InterFallback,Arial,sans-serif;background:radial-gradient(circle at 15% 8%,rgba(37,99,235,.18),transparent 32%),radial-gradient(circle at 90% 8%,rgba(14,165,233,.14),transparent 30%),linear-gradient(140deg,var(--bg),var(--bg2));color:var(--text)}a{color:inherit}.site-header{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:22px 0;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:14px;text-decoration:none}.brand img{width:88px;filter:drop-shadow(0 12px 24px rgba(0,0,0,.28))}.brand strong{display:block;font-size:24px;letter-spacing:-.04em}.brand small{display:block;color:var(--muted);font-size:12px;margin-top:2px}.main-nav{display:flex;align-items:center;gap:18px}.main-nav a{text-decoration:none;color:var(--muted);font-size:14px;font-weight:800}.main-nav a:hover{color:var(--text)}.nav-toggle{display:none}main{width:min(1180px,calc(100% - 32px));margin:0 auto}.hero{min-height:650px;display:grid;grid-template-columns:1fr .9fr;gap:48px;align-items:center;padding:46px 0 80px}.eyebrow{margin:0 0 14px;color:var(--blue);text-transform:uppercase;letter-spacing:.16em;font-size:12px;font-weight:950}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(30px,4.1vw,50px);line-height:1.08;letter-spacing:-.045em;margin-bottom:18px}h2{font-size:clamp(24px,2.7vw,36px);line-height:1.12;letter-spacing:-.035em;margin-bottom:16px}h3{font-size:20px;letter-spacing:-.03em;margin-bottom:8px}.lead{color:var(--muted);font-size:clamp(17px,1.8vw,21px);line-height:1.75;max-width:720px}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}.actions.center{justify-content:center}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 20px;border:1px solid var(--line);border-radius:15px;background:rgba(15,23,42,.35);color:var(--text);text-decoration:none;font-weight:950;box-shadow:0 12px 28px rgba(0,0,0,.14)}.btn:hover{border-color:rgba(90,163,255,.45);transform:translateY(-1px)}.btn.primary{border-color:transparent;background:linear-gradient(135deg,#5aa3ff,#2467f2);color:#fff;box-shadow:0 18px 42px rgba(36,103,242,.28)}.btn.small{min-height:38px;padding:0 14px;font-size:13px}.btn.full{width:100%}.hero-points{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px;color:var(--muted);font-weight:850;font-size:13px}.hero-points span{border:1px solid var(--line);border-radius:999px;padding:8px 12px;background:rgba(255,255,255,.04)}.hero-panel{border:1px solid var(--line);background:linear-gradient(145deg,rgba(16,31,53,.74),rgba(14,26,45,.55));border-radius:34px;padding:22px;box-shadow:var(--shadow)}.simple-preview{border:1px solid rgba(90,163,255,.28);border-radius:26px;overflow:hidden;background:rgba(4,11,23,.40);box-shadow:0 0 52px rgba(36,103,242,.18)}.preview-header{display:flex;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid var(--line)}.preview-header span{color:var(--muted);font-size:13px}.preview-main{display:grid;grid-template-columns:150px 1fr;min-height:300px}.preview-menu{padding:16px;border-right:1px solid var(--line);display:grid;align-content:start;gap:8px}.preview-menu span{color:var(--muted);font-size:13px;font-weight:850;padding:10px;border-radius:12px}.preview-menu .active{color:var(--text);background:rgba(90,163,255,.14)}.preview-list{padding:18px;display:grid;gap:12px;align-content:center}.preview-list div{border:1px solid var(--line);background:rgba(255,255,255,.045);border-radius:16px;padding:18px}.preview-list strong{display:block;margin-bottom:6px}.preview-list span{color:var(--muted);font-size:14px}.section{padding:70px 0;border-top:1px solid var(--line)}.section-head{max-width:780px;margin-bottom:28px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.card,.version-card,.contact-card,.panel,.admin-card,.screen-card,.change-card{border:1px solid var(--line);background:rgba(16,31,53,.62);border-radius:24px;padding:24px;box-shadow:0 18px 50px rgba(0,0,0,.18)}.card p,.screen-card p,.change-card li,.contact-card p{color:var(--muted);line-height:1.7}.split{display:grid;grid-template-columns:.8fr 1fr;gap:46px}.steps{display:grid;gap:14px}.step{display:flex;gap:16px;border:1px solid var(--line);background:rgba(255,255,255,.04);border-radius:20px;padding:18px}.step>span{width:38px;height:38px;border-radius:13px;background:rgba(90,163,255,.14);color:var(--blue);display:grid;place-items:center;font-weight:950;flex:0 0 auto}.step p{color:var(--muted);line-height:1.6;margin:0}.cta{text-align:center}.cta p{color:var(--muted);font-size:18px}.site-footer{width:min(1180px,calc(100% - 32px));margin:0 auto;border-top:1px solid var(--line);padding:26px 0 36px;display:flex;justify-content:space-between;gap:16px;color:var(--muted)}.site-footer strong{display:block;color:var(--text);margin-bottom:4px}.footer-links{display:flex;gap:14px}.footer-links a{color:var(--blue);text-decoration:none;font-weight:850}.page-hero{padding:70px 0 34px}.page-hero.narrow{max-width:860px}.download-box{display:grid;grid-template-columns:1fr .7fr;gap:18px}.version-card span,.version-grid span{display:block;color:var(--muted2);font-weight:850;font-size:13px;margin-bottom:8px}.version-card strong{display:block;font-size:52px;letter-spacing:-.06em;margin-bottom:12px}.info-list ul{color:var(--muted);line-height:2}.screen-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.screen-card img,.screen-placeholder{width:100%;aspect-ratio:16/10;border-radius:18px;border:1px solid var(--line);object-fit:cover;background:rgba(255,255,255,.05);display:grid;place-items:center;color:var(--muted);font-weight:900;margin-bottom:16px}.timeline{display:grid;gap:16px}.change-card{display:grid;grid-template-columns:180px 1fr;gap:18px}.change-card strong{display:block;font-size:30px}.change-card span,.change-card small{color:var(--muted2)}.contact-card{max-width:620px}.contact-card a{color:var(--blue);font-weight:900;text-decoration:none}.update-page{width:min(980px,calc(100% - 32px));margin:0 auto;padding:46px 0}.update-top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:28px}.update-top img{width:120px}.status-badge{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;padding:10px 14px;background:rgba(15,23,42,.44);font-weight:900;color:var(--muted)}.status-badge:before{content:"";width:9px;height:9px;border-radius:99px;background:var(--green);box-shadow:0 0 0 6px rgba(40,212,154,.12)}.update-card{border:1px solid var(--line);background:rgba(16,31,53,.72);border-radius:30px;padding:38px;box-shadow:var(--shadow)}.version-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:28px 0 14px}.version-grid div,.notes-box{border:1px solid var(--line);background:rgba(255,255,255,.04);border-radius:20px;padding:20px}.version-grid strong{font-size:28px}.notes-box p{color:var(--muted);line-height:1.75}.technical-link{color:var(--muted2);font-size:13px;margin-top:20px}.technical-link a{color:var(--blue);font-weight:900}.maintenance-body{padding:18px}.maintenance-page{width:min(1180px,100%);margin:0 auto}.maintenance-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.maintenance-top img{width:145px}.maintenance-card{border:1px solid var(--line);background:rgba(9,20,38,.82);border-radius:32px;padding:36px;display:grid;grid-template-columns:1fr .9fr;gap:42px;box-shadow:var(--shadow)}.maintenance-left h1{font-size:clamp(30px,4vw,42px)}.check-list{list-style:none;padding:0;margin:22px 0 0;display:grid;gap:14px;color:var(--muted);line-height:1.55}.check-list li{position:relative;padding-left:34px}.check-list li:before{content:"✓";position:absolute;left:0;top:0;width:22px;height:22px;border-radius:99px;background:rgba(40,212,154,.14);color:var(--green);display:grid;place-items:center;font-weight:900}.progress-card,.mini-grid>div{border:1px solid var(--line);background:rgba(15,23,42,.45);border-radius:22px;padding:20px}.progress-title{display:flex;justify-content:space-between;margin-bottom:12px}.progress-title span{color:var(--blue);font-weight:950}.progress-card p,.mini-grid p{color:var(--muted);line-height:1.6}.progress{height:14px;background:rgba(255,255,255,.12);border-radius:999px;overflow:hidden}.progress span{display:block;height:100%;background:linear-gradient(90deg,#5aa3ff,#38bdf8);border-radius:999px}.progress-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;font-weight:850;margin-top:10px}.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.login-body,.admin-body{background:#07111f}.login-card{width:min(420px,calc(100% - 32px));margin:60px auto;border:1px solid var(--line);background:rgba(16,31,53,.82);border-radius:28px;padding:30px;box-shadow:var(--shadow)}.login-card img{width:120px}.muted{color:var(--muted)}.admin-shell{display:grid;grid-template-columns:260px 1fr;min-height:100vh}.admin-sidebar{border-right:1px solid var(--line);background:rgba(5,12,24,.78);padding:22px}.admin-logo{text-decoration:none;display:flex;align-items:center;gap:12px;margin-bottom:22px}.admin-logo img{width:78px}.admin-logo span{font-weight:950}.admin-sidebar nav{display:grid;gap:8px}.admin-sidebar nav a{text-decoration:none;color:var(--muted);font-weight:850;border-radius:12px;padding:12px}.admin-sidebar nav a:hover{background:rgba(90,163,255,.12);color:var(--text)}.admin-main{padding:26px;max-width:1120px;width:100%}.admin-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.admin-top small{color:var(--muted)}.admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.admin-card{text-decoration:none}.admin-card strong{display:block;font-size:18px;margin-bottom:8px}.admin-card span{color:var(--muted)}.form{display:grid;gap:16px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:grid;gap:7px}.field span,.check-field span{font-weight:900}.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);background:rgba(2,6,23,.28);color:var(--text);border-radius:14px;padding:13px;font:inherit}.field small{color:var(--muted)}.check-field{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:16px;padding:16px}.notice{border:1px solid rgba(40,212,154,.25);background:rgba(40,212,154,.10);color:var(--green);border-radius:16px;padding:14px;margin-bottom:16px;font-weight:850}.notice.error{border-color:rgba(251,113,133,.25);background:rgba(251,113,133,.10);color:var(--red)}.edit-group{border:1px solid var(--line);border-radius:18px;padding:16px;background:rgba(255,255,255,.03)}.edit-group summary{cursor:pointer;font-weight:950;margin-bottom:14px}@media(max-width:900px){.main-nav{display:none;position:absolute;left:16px;right:16px;top:92px;border:1px solid var(--line);border-radius:18px;background:#0e1a2d;padding:16px;z-index:10}.main-nav.open{display:grid}.nav-toggle{display:block;border:1px solid var(--line);background:transparent;color:var(--text);border-radius:12px;padding:10px 12px}.hero,.split,.download-box,.maintenance-card{grid-template-columns:1fr}.cards,.screen-grid,.admin-grid,.mini-grid{grid-template-columns:1fr}.preview-main{grid-template-columns:1fr}.preview-menu{border-right:0;border-bottom:1px solid var(--line)}.change-card{grid-template-columns:1fr}.site-footer{flex-direction:column}.admin-shell{grid-template-columns:1fr}.admin-sidebar{border-right:0;border-bottom:1px solid var(--line)}.form-grid,.version-grid{grid-template-columns:1fr}}@media(max-width:560px){.actions{flex-direction:column}.btn{width:100%}.update-card,.maintenance-card{padding:24px}}


/* === KCSerwis WWW v2 CSS FIX: mniejsze nagłówki + przewijanie panelu === */
.admin-body{
  min-height:100vh;
  overflow:hidden;
}

.admin-shell{
  height:100vh;
  overflow:hidden;
}

.admin-sidebar{
  height:100vh;
  overflow-y:auto;
  scrollbar-width:thin;
}

.admin-main{
  height:100vh;
  overflow-y:auto;
  padding-bottom:70px;
  scrollbar-width:thin;
}

.admin-top{
  position:sticky;
  top:0;
  z-index:20;
  background:linear-gradient(180deg,rgba(7,17,31,.98),rgba(7,17,31,.88));
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  padding:0 0 18px;
}

.admin-main h1{
  font-size:clamp(24px,2.4vw,34px);
  line-height:1.12;
  letter-spacing:-.035em;
  margin:4px 0 0;
}

.page-hero h1{
  font-size:clamp(30px,4vw,48px);
}

.hero-copy h1{
  font-size:clamp(32px,4.4vw,56px);
}

.section-head h2,
.section h2{
  font-size:clamp(24px,2.7vw,36px);
}

.login-card h1{
  font-size:28px;
}

@media(max-width:900px){
  .admin-body{
    overflow:auto;
  }

  .admin-shell{
    height:auto;
    min-height:100vh;
    overflow:visible;
  }

  .admin-sidebar{
    height:auto;
    max-height:none;
    overflow:visible;
  }

  .admin-main{
    height:auto;
    min-height:0;
    overflow:visible;
    padding-bottom:36px;
  }

  .admin-top{
    position:static;
    background:transparent;
    border-bottom:0;
  }
}



/* === KCSerwis WWW v2 — mocniejsze zmniejszenie H1/H2 + kontakt === */

/* Publiczne nagłówki: celowo mniejsze i spokojniejsze */
h1{
  font-size:clamp(26px,3.2vw,40px) !important;
  line-height:1.16 !important;
  letter-spacing:-.028em !important;
  margin-bottom:16px !important;
}

h2{
  font-size:clamp(21px,2.25vw,30px) !important;
  line-height:1.18 !important;
  letter-spacing:-.022em !important;
  margin-bottom:14px !important;
}

h3{
  font-size:18px !important;
  line-height:1.24 !important;
}

/* Hero nie powinien krzyczeć — ma być czytelny */
.hero{
  min-height:520px !important;
  padding:34px 0 58px !important;
}

.hero-copy h1{
  font-size:clamp(28px,3.6vw,44px) !important;
  max-width:900px;
}

.lead{
  font-size:clamp(15px,1.35vw,18px) !important;
  line-height:1.68 !important;
}

/* Podstrony */
.page-hero{
  padding:46px 0 24px !important;
}

.page-hero h1{
  font-size:clamp(26px,3vw,38px) !important;
}

.section{
  padding:48px 0 !important;
}

.section-head h2,
.section h2,
.cta h2{
  font-size:clamp(22px,2.35vw,31px) !important;
}

/* Strona w budowie */
.maintenance-left h1{
  font-size:clamp(26px,3.2vw,38px) !important;
}

/* Panel administracyjny */
.admin-main h1,
.admin-top h1{
  font-size:clamp(22px,2vw,30px) !important;
  line-height:1.16 !important;
}

.login-card h1{
  font-size:24px !important;
}

/* Kontakt */
.contact-wrap{
  display:grid;
  grid-template-columns:1fr .9fr;
  gap:18px;
  align-items:start;
}

.contact-main{
  border:1px solid var(--line);
  background:rgba(16,31,53,.62);
  border-radius:24px;
  padding:26px;
  box-shadow:0 18px 50px rgba(0,0,0,.18);
}

.contact-main h2{
  margin-bottom:10px !important;
}

.contact-main p{
  color:var(--muted);
  line-height:1.7;
  margin-bottom:18px;
}

.contact-items{
  display:grid;
  gap:12px;
  margin-top:18px;
}

.contact-item{
  display:flex;
  gap:14px;
  align-items:center;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  border-radius:18px;
  padding:15px;
}

.contact-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:15px;
  background:rgba(90,163,255,.14);
  color:var(--blue);
  font-weight:950;
}

.contact-item small{
  display:block;
  color:var(--muted2);
  font-size:12px;
  font-weight:850;
  margin-bottom:3px;
}

.contact-item a,
.contact-item strong{
  color:var(--text);
  text-decoration:none;
  font-weight:950;
}

.contact-side{
  border:1px solid var(--line);
  background:linear-gradient(145deg,rgba(16,31,53,.70),rgba(14,26,45,.48));
  border-radius:24px;
  padding:24px;
  box-shadow:0 18px 50px rgba(0,0,0,.16);
}

.contact-side ul{
  margin:16px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:12px;
  color:var(--muted);
  line-height:1.55;
}

.contact-side li{
  position:relative;
  padding-left:28px;
}

.contact-side li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(40,212,154,.13);
  color:var(--green);
  font-size:12px;
  font-weight:950;
}

@media(max-width:900px){
  .contact-wrap{
    grid-template-columns:1fr;
  }
}

@media(max-width:560px){
  h1{
    font-size:28px !important;
  }

  h2{
    font-size:22px !important;
  }

  .hero-copy h1,
  .page-hero h1{
    font-size:28px !important;
  }

  .contact-main,
  .contact-side{
    padding:20px;
  }
}



/* === KCSerwis WWW v2 — automatyczny jasny motyw strony === */
/* Działa automatycznie według ustawienia przeglądarki/systemu. */
@media (prefers-color-scheme: light){
  :root{
    color-scheme:light;
    --bg:#f4f7ff;
    --bg2:#eaf1ff;
    --panel:#ffffff;
    --panel2:#f8fbff;
    --line:rgba(37,57,92,.16);
    --text:#0f172a;
    --muted:#475569;
    --muted2:#64748b;
    --blue:#2563eb;
    --blue2:#1d4ed8;
    --green:#15803d;
    --orange:#b45309;
    --red:#dc2626;
    --shadow:0 24px 80px rgba(15,23,42,.12);
  }

  body{
    background:
      radial-gradient(circle at 12% 8%,rgba(37,99,235,.13),transparent 30%),
      radial-gradient(circle at 90% 10%,rgba(14,165,233,.11),transparent 30%),
      linear-gradient(140deg,var(--bg),var(--bg2));
    color:var(--text);
  }

  .site-header,
  .site-footer{
    color:var(--text);
  }

  .brand img,
  .maintenance-top img,
  .update-top img,
  .login-card img,
  .admin-logo img{
    filter:drop-shadow(0 12px 22px rgba(15,23,42,.16));
  }

  .main-nav a{
    color:#334155;
  }

  .main-nav a:hover{
    color:#0f172a;
  }

  .hero-panel,
  .card,
  .version-card,
  .contact-card,
  .panel,
  .admin-card,
  .screen-card,
  .change-card,
  .contact-main,
  .contact-side,
  .update-card,
  .maintenance-card,
  .progress-card,
  .mini-grid>div{
    background:rgba(255,255,255,.82);
    border-color:rgba(37,57,92,.15);
    box-shadow:0 18px 58px rgba(15,23,42,.10);
  }

  .hero-panel{
    background:
      radial-gradient(circle at 80% 12%,rgba(37,99,235,.12),transparent 36%),
      linear-gradient(145deg,rgba(255,255,255,.92),rgba(239,246,255,.76));
  }

  .simple-preview{
    background:rgba(255,255,255,.84);
    border-color:rgba(37,99,235,.18);
    box-shadow:0 22px 58px rgba(37,99,235,.12);
  }

  .preview-header,
  .preview-menu,
  .site-footer,
  .section{
    border-color:rgba(37,57,92,.16);
  }

  .preview-list div,
  .preview-stats div,
  .preview-order,
  .contact-item,
  .step,
  .version-grid div,
  .notes-box,
  .screen-placeholder,
  .check-field,
  .edit-group{
    background:rgba(255,255,255,.72);
    border-color:rgba(37,57,92,.15);
  }

  .preview-menu .active,
  .hero-points span{
    background:rgba(37,99,235,.08);
  }

  .btn{
    background:rgba(255,255,255,.80);
    border-color:rgba(37,57,92,.17);
    color:#0f172a;
    box-shadow:0 12px 28px rgba(15,23,42,.08);
  }

  .btn:hover{
    border-color:rgba(37,99,235,.34);
    background:#ffffff;
  }

  .btn.primary{
    color:#ffffff;
    background:linear-gradient(135deg,#3b82f6,#1d4ed8);
    box-shadow:0 16px 36px rgba(37,99,235,.22);
  }

  .status-badge{
    background:rgba(255,255,255,.76);
    border-color:rgba(37,57,92,.16);
    color:#334155;
  }

  .admin-body,
  .login-body{
    background:
      radial-gradient(circle at 12% 8%,rgba(37,99,235,.12),transparent 30%),
      linear-gradient(140deg,#f4f7ff,#eaf1ff);
    color:var(--text);
  }

  .admin-sidebar{
    background:rgba(255,255,255,.86);
    border-color:rgba(37,57,92,.16);
  }

  .admin-sidebar nav a{
    color:#334155;
  }

  .admin-sidebar nav a:hover{
    background:rgba(37,99,235,.08);
    color:#0f172a;
  }

  .admin-top{
    background:linear-gradient(180deg,rgba(244,247,255,.98),rgba(244,247,255,.88));
    border-color:rgba(37,57,92,.16);
  }

  .field input,
  .field textarea,
  .field select{
    background:rgba(255,255,255,.82);
    color:#0f172a;
    border-color:rgba(37,57,92,.17);
  }

  .field input:focus,
  .field textarea:focus,
  .field select:focus{
    outline:2px solid rgba(37,99,235,.22);
    border-color:rgba(37,99,235,.38);
  }

  .notice{
    background:rgba(21,128,61,.08);
    border-color:rgba(21,128,61,.22);
    color:#166534;
  }

  .notice.error{
    background:rgba(220,38,38,.08);
    border-color:rgba(220,38,38,.22);
    color:#b91c1c;
  }

  .login-card{
    background:rgba(255,255,255,.88);
    border-color:rgba(37,57,92,.16);
    box-shadow:0 24px 80px rgba(15,23,42,.13);
  }

  .maintenance-body{
    background:
      radial-gradient(circle at 12% 8%,rgba(37,99,235,.13),transparent 30%),
      linear-gradient(140deg,#f4f7ff,#eaf1ff);
  }

  .maintenance-card{
    background:rgba(255,255,255,.84);
  }

  .progress{
    background:rgba(15,23,42,.10);
  }

  .contact-icon,
  .step>span{
    background:rgba(37,99,235,.09);
  }

  .check-list li:before,
  .contact-side li::before{
    background:rgba(21,128,61,.10);
  }

  .technical-link,
  .muted,
  .lead,
  .card p,
  .screen-card p,
  .change-card li,
  .contact-card p,
  .contact-main p,
  .progress-card p,
  .mini-grid p,
  .cta p,
  .info-list ul,
  .preview-list span,
  .preview-header span,
  .preview-menu span,
  .hero-points,
  .site-footer,
  .field small{
    color:var(--muted);
  }

  .eyebrow,
  .footer-links a,
  .contact-card a,
  .technical-link a{
    color:var(--blue);
  }

  @media(max-width:900px){
    .main-nav{
      background:rgba(255,255,255,.96);
      border-color:rgba(37,57,92,.16);
      box-shadow:0 20px 60px rgba(15,23,42,.12);
    }

    .admin-top{
      background:transparent;
    }
  }
}



/* === KCSerwis WWW v2 — przyklejona i ładniejsza górna belka === */

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  width:100%;
  margin:0;
  padding:14px max(18px,calc((100vw - 1180px) / 2));
  border-bottom:1px solid rgba(148,163,184,.18);
  background:rgba(7,17,31,.78);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:0 16px 44px rgba(0,0,0,.20);
}

.brand img{
  width:74px;
  transition:.18s transform;
}

.brand:hover img{
  transform:translateY(-1px) scale(1.02);
}

.brand strong{
  font-size:22px;
}

.brand small{
  font-size:12px;
}

.main-nav{
  gap:8px;
}

.main-nav a{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 13px;
  border:1px solid transparent;
  border-radius:999px;
  color:#cbd5e1;
  font-size:14px;
  font-weight:900;
  text-decoration:none;
  transition:.16s background,.16s border-color,.16s color,.16s transform;
}

.main-nav a:hover{
  color:#ffffff;
  background:rgba(90,163,255,.12);
  border-color:rgba(90,163,255,.20);
  transform:translateY(-1px);
}

.main-nav a[href="/pobierz/"]{
  color:#ffffff;
  background:linear-gradient(135deg,#3b82f6,#1d4ed8);
  border-color:transparent;
  box-shadow:0 12px 26px rgba(37,99,235,.22);
}

.main-nav a[href="/pobierz/"]:hover{
  background:linear-gradient(135deg,#60a5fa,#2563eb);
  box-shadow:0 16px 32px rgba(37,99,235,.28);
}

/* Żeby przy przewijaniu do sekcji nagłówek nie zasłaniał treści */
html{
  scroll-padding-top:92px;
}

/* Jasny motyw dla belki */
@media (prefers-color-scheme: light){
  .site-header{
    background:rgba(239,246,255,.78);
    border-bottom:1px solid rgba(37,57,92,.13);
    box-shadow:0 14px 38px rgba(15,23,42,.10);
  }

  .main-nav a{
    color:#1e293b;
  }

  .main-nav a:hover{
    color:#0f172a;
    background:rgba(37,99,235,.08);
    border-color:rgba(37,99,235,.16);
  }

  .main-nav a[href="/pobierz/"]{
    color:#ffffff;
  }
}

/* Telefon / tablet */
@media(max-width:900px){
  .site-header{
    padding:12px 16px;
  }

  .brand img{
    width:66px;
  }

  .main-nav{
    top:82px;
    left:16px;
    right:16px;
    gap:8px;
    padding:12px;
  }

  .main-nav a{
    width:100%;
    justify-content:flex-start;
    border-radius:14px;
    padding:0 14px;
  }

  .nav-toggle{
    min-width:42px;
    min-height:42px;
    display:grid;
    place-items:center;
    border-radius:14px;
    border-color:rgba(148,163,184,.22);
    background:rgba(255,255,255,.06);
    color:var(--text);
    font-size:20px;
    font-weight:900;
  }

  @media (prefers-color-scheme: light){
    .nav-toggle{
      background:rgba(255,255,255,.72);
      border-color:rgba(37,57,92,.16);
    }
  }
}



/* === KCSerwis WWW v2 — menu bez wyróżniania Pobierz === */
.main-nav a[href="/pobierz/"]{
  color:#cbd5e1 !important;
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
}

.main-nav a[href="/pobierz/"]:hover{
  color:#ffffff !important;
  background:rgba(90,163,255,.12) !important;
  border-color:rgba(90,163,255,.20) !important;
  box-shadow:none !important;
}

@media (prefers-color-scheme: light){
  .main-nav a[href="/pobierz/"]{
    color:#1e293b !important;
    background:transparent !important;
    border-color:transparent !important;
    box-shadow:none !important;
  }

  .main-nav a[href="/pobierz/"]:hover{
    color:#0f172a !important;
    background:rgba(37,99,235,.08) !important;
    border-color:rgba(37,99,235,.16) !important;
    box-shadow:none !important;
  }
}



/* === KCSerwis WWW v2 — poprawiony panel logowania, panel /toja i zmiana hasła === */

.login-body{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:22px;
}

.login-page{
  width:100%;
  display:grid;
  place-items:center;
}

.login-card{
  width:min(460px,100%);
  margin:0 auto !important;
  padding:30px !important;
  border-radius:28px !important;
}

.login-logo{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:22px;
}

.login-logo img{
  width:92px !important;
  height:auto;
}

.login-logo h1{
  margin:0 0 4px !important;
  font-size:26px !important;
  line-height:1.1 !important;
}

.login-logo p{
  margin:0;
  color:var(--muted);
  font-weight:750;
}

.login-card .field{
  margin-bottom:14px;
}

.login-card .field input{
  min-height:52px;
  font-size:17px;
}

.login-hint{
  margin:16px 0 0;
  color:var(--muted);
  line-height:1.55;
  font-size:14px;
}

.admin-shell{
  grid-template-columns:250px 1fr;
}

.admin-sidebar{
  padding:20px 18px;
}

.admin-logo{
  padding:8px 8px 18px;
  border-bottom:1px solid var(--line);
}

.admin-logo img{
  width:72px;
}

.admin-logo span{
  font-size:18px;
}

.admin-sidebar nav{
  margin-top:18px;
  gap:6px;
}

.admin-sidebar nav a{
  min-height:42px;
  display:flex;
  align-items:center;
  border-radius:14px;
  padding:0 13px;
  font-size:14px;
  transition:.16s background,.16s color,.16s transform;
}

.admin-sidebar nav a:hover{
  transform:translateX(2px);
}

.admin-main{
  max-width:1260px;
}

.admin-top{
  min-height:96px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 0 20px !important;
}

.admin-top h1{
  margin:4px 0 0 !important;
}

.admin-top-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.btn.danger{
  color:#fff;
  border-color:rgba(220,38,38,.24);
  background:rgba(220,38,38,.14);
}

.btn.danger:hover{
  background:rgba(220,38,38,.20);
  border-color:rgba(220,38,38,.34);
}

.admin-grid{
  grid-template-columns:repeat(3,minmax(220px,1fr));
  gap:16px;
}

.admin-card{
  min-height:112px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  transition:.16s transform,.16s border-color,.16s background;
}

.admin-card:hover{
  transform:translateY(-2px);
  border-color:rgba(90,163,255,.32);
}

.panel{
  max-width:100%;
}

.password-panel{
  max-width:720px;
}

.password-help{
  max-width:720px;
  margin-top:18px;
}

.password-help h2{
  font-size:22px !important;
}

.password-help pre{
  white-space:pre-wrap;
  word-break:break-word;
  border:1px solid var(--line);
  background:rgba(2,6,23,.22);
  color:var(--text);
  border-radius:16px;
  padding:14px;
  line-height:1.5;
}

@media (prefers-color-scheme: light){
  .btn.danger{
    color:#991b1b;
    background:rgba(220,38,38,.08);
    border-color:rgba(220,38,38,.18);
  }

  .btn.danger:hover{
    background:rgba(220,38,38,.12);
    border-color:rgba(220,38,38,.26);
  }

  .password-help pre{
    background:rgba(255,255,255,.72);
  }
}

@media(max-width:900px){
  .admin-shell{
    grid-template-columns:1fr;
  }

  .admin-sidebar nav{
    grid-template-columns:1fr 1fr;
    display:grid;
  }

  .admin-top{
    align-items:flex-start;
    flex-direction:column;
  }

  .admin-top-actions{
    width:100%;
    justify-content:flex-start;
  }

  .admin-top-actions .btn{
    width:auto;
  }

  .admin-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:560px){
  .login-logo{
    align-items:flex-start;
    flex-direction:column;
  }

  .login-logo img{
    width:82px !important;
  }

  .admin-sidebar nav{
    grid-template-columns:1fr;
  }

  .admin-top-actions .btn{
    width:100%;
  }
}



/* === KCSerwis WWW v2 — dopracowanie panelu i logowania === */

/* Górna belka panelu jako karta, nie kwadratowy pasek */
.admin-top{
  border:1px solid var(--line) !important;
  border-radius:24px !important;
  padding:18px 22px !important;
  margin:0 0 24px !important;
  background:
    linear-gradient(145deg,rgba(16,31,53,.78),rgba(14,26,45,.52)) !important;
  box-shadow:0 18px 54px rgba(0,0,0,.18) !important;
}

.admin-top small{
  display:block;
  color:var(--muted);
  font-weight:750;
  margin-bottom:4px;
}

.admin-top h1{
  font-size:clamp(24px,2.2vw,32px) !important;
  margin:0 !important;
}

.admin-top-actions .btn{
  min-height:42px;
  border-radius:15px;
}

/* Sidebar i logo panelu trochę spokojniej */
.admin-logo span{
  font-size:17px !important;
  letter-spacing:-.02em;
}

.admin-sidebar nav a{
  font-weight:900;
}

/* Logowanie */
.login-logo h1{
  font-size:25px !important;
  margin-bottom:5px !important;
}

.login-logo p{
  font-size:14px;
}

.login-card{
  padding-bottom:30px !important;
}

.login-card .btn.primary.full{
  margin-top:4px;
}

.login-hint{
  display:none !important;
}

/* Jasny motyw panelu */
@media (prefers-color-scheme: light){
  .admin-top{
    background:
      linear-gradient(145deg,rgba(255,255,255,.92),rgba(246,250,255,.76)) !important;
    box-shadow:0 18px 54px rgba(15,23,42,.09) !important;
  }
}

/* Na telefonie belka nadal karta, ale bez rozpychania */
@media(max-width:900px){
  .admin-top{
    border-radius:20px !important;
    padding:18px !important;
  }
}



/* === KCSerwis WWW v2 — panel screenów === */

.screen-panel-intro{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}

.screen-panel-intro h2{
  margin-bottom:8px !important;
}

.screen-panel-intro p{
  max-width:760px;
  color:var(--muted);
  line-height:1.65;
  margin:0;
}

.screen-panel-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}

.screens-admin-form{
  margin-top:18px;
  padding-bottom:96px;
}

.screens-admin-list{
  display:grid;
  gap:14px;
}

.screen-admin-item{
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(255,255,255,.035);
  overflow:hidden;
}

.screen-admin-item summary{
  min-height:72px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:16px 18px;
  cursor:pointer;
  list-style:none;
}

.screen-admin-item summary::-webkit-details-marker{
  display:none;
}

.screen-admin-item summary span{
  min-width:0;
}

.screen-admin-item summary strong{
  display:block;
  font-size:17px;
  margin-bottom:4px;
}

.screen-admin-item summary small{
  display:block;
  color:var(--muted);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.screen-admin-item summary em{
  flex:0 0 auto;
  color:var(--blue);
  font-style:normal;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.09em;
  font-weight:950;
}

.screen-admin-body{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:18px;
  border-top:1px solid var(--line);
  padding:18px;
}

.screen-preview-box{
  min-height:190px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(2,6,23,.20);
  display:grid;
  place-items:center;
  overflow:hidden;
}

.screen-preview-box img{
  width:100%;
  height:100%;
  min-height:190px;
  object-fit:cover;
  display:block;
}

.screen-preview-empty{
  color:var(--muted);
  font-weight:900;
}

.screen-fields{
  display:grid;
  gap:14px;
  align-content:start;
}

.danger-check{
  border-color:rgba(220,38,38,.22);
  background:rgba(220,38,38,.07);
}

.danger-check span{
  color:var(--red);
}

.sticky-save-bar{
  position:sticky;
  bottom:16px;
  z-index:30;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin-top:22px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(7,17,31,.78);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 18px 54px rgba(0,0,0,.26);
}

@media (prefers-color-scheme: light){
  .screen-admin-item{
    background:rgba(255,255,255,.72);
  }

  .screen-preview-box{
    background:rgba(255,255,255,.58);
  }

  .sticky-save-bar{
    background:rgba(245,249,255,.86);
    box-shadow:0 18px 54px rgba(15,23,42,.12);
  }

  .danger-check{
    background:rgba(220,38,38,.06);
  }
}

@media(max-width:900px){
  .screen-panel-intro{
    flex-direction:column;
  }

  .screen-panel-actions{
    justify-content:flex-start;
  }

  .screen-admin-body{
    grid-template-columns:1fr;
  }

  .sticky-save-bar .btn{
    width:auto;
  }
}

@media(max-width:560px){
  .screen-panel-actions .btn,
  .sticky-save-bar .btn{
    width:100%;
  }

  .screen-admin-item summary{
    align-items:flex-start;
    flex-direction:column;
  }
}



/* === KCSerwis WWW v2 — panel /toja bez pływającej górnej belki === */
/* Dotyczy tylko panelu administracyjnego, nie publicznego menu strony. */
.admin-top{
  position:static !important;
  top:auto !important;
  z-index:auto !important;
}

.admin-main{
  scroll-padding-top:0 !important;
}



/* === KCSerwis WWW v2 — podstrona KCSKlient === */

.kcsklient-hero{
  display:grid;
  grid-template-columns:1fr .62fr;
  gap:44px;
  align-items:center;
}

.kcsklient-copy{
  max-width:780px;
}

.btn.disabled{
  opacity:.72;
  cursor:not-allowed;
  pointer-events:none;
}

.phone-showcase{
  display:flex;
  justify-content:center;
}

.phone-frame{
  width:min(330px,100%);
  aspect-ratio:9/18.5;
  border:1px solid rgba(90,163,255,.26);
  border-radius:42px;
  padding:14px;
  background:
    radial-gradient(circle at 50% 0%,rgba(90,163,255,.26),transparent 38%),
    linear-gradient(145deg,rgba(15,23,42,.95),rgba(15,23,42,.62));
  box-shadow:
    0 28px 82px rgba(0,0,0,.34),
    inset 0 0 0 1px rgba(255,255,255,.06);
}

.phone-speaker{
  width:78px;
  height:7px;
  border-radius:999px;
  margin:3px auto 12px;
  background:rgba(148,163,184,.36);
}

.phone-screen{
  height:calc(100% - 22px);
  border:1px solid var(--line);
  border-radius:30px;
  padding:24px 18px;
  background:
    radial-gradient(circle at 50% 10%,rgba(37,99,235,.22),transparent 36%),
    rgba(2,6,23,.42);
  overflow:hidden;
}

.app-logo-mini{
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
  border-radius:20px;
  margin:0 auto 18px;
  color:#fff;
  font-weight:950;
  background:linear-gradient(135deg,#3b82f6,#1d4ed8);
  box-shadow:0 18px 38px rgba(37,99,235,.26);
}

.phone-screen h2{
  text-align:center;
  margin-bottom:8px !important;
}

.phone-screen > p{
  text-align:center;
  color:var(--muted);
  margin-bottom:20px;
}

.app-order-card{
  border:1px solid var(--line);
  border-radius:20px;
  padding:16px;
  margin-top:12px;
  background:rgba(255,255,255,.055);
}

.app-order-card small{
  display:block;
  color:var(--muted2);
  font-size:12px;
  font-weight:900;
  margin-bottom:6px;
}

.app-order-card strong{
  display:block;
  font-size:21px;
  margin-bottom:6px;
}

.app-order-card span{
  color:var(--muted);
  line-height:1.45;
}

.muted-card{
  opacity:.88;
}

@media (prefers-color-scheme: light){
  .phone-frame{
    background:
      radial-gradient(circle at 50% 0%,rgba(37,99,235,.16),transparent 38%),
      linear-gradient(145deg,rgba(255,255,255,.96),rgba(226,238,255,.72));
    box-shadow:0 28px 82px rgba(15,23,42,.14);
  }

  .phone-screen{
    background:
      radial-gradient(circle at 50% 10%,rgba(37,99,235,.13),transparent 36%),
      rgba(255,255,255,.74);
  }

  .app-order-card{
    background:rgba(255,255,255,.76);
  }
}

@media(max-width:900px){
  .kcsklient-hero{
    grid-template-columns:1fr;
  }

  .phone-showcase{
    justify-content:flex-start;
  }
}

@media(max-width:560px){
  .phone-frame{
    width:min(300px,100%);
  }
}

/* === KCSerwis WWW v2 — KCSKlient menu/panel/page === */
.kcsklient-hero{display:grid;grid-template-columns:1fr .62fr;gap:44px;align-items:center}
.kcsklient-copy{max-width:780px}.btn.disabled{opacity:.72;cursor:not-allowed;pointer-events:none}
.phone-showcase{display:flex;justify-content:center}.phone-frame{width:min(330px,100%);aspect-ratio:9/18.5;border:1px solid rgba(90,163,255,.26);border-radius:42px;padding:14px;background:radial-gradient(circle at 50% 0%,rgba(90,163,255,.26),transparent 38%),linear-gradient(145deg,rgba(15,23,42,.95),rgba(15,23,42,.62));box-shadow:0 28px 82px rgba(0,0,0,.34),inset 0 0 0 1px rgba(255,255,255,.06)}
.phone-speaker{width:78px;height:7px;border-radius:999px;margin:3px auto 12px;background:rgba(148,163,184,.36)}
.phone-screen{height:calc(100% - 22px);border:1px solid var(--line);border-radius:30px;padding:24px 18px;background:radial-gradient(circle at 50% 10%,rgba(37,99,235,.22),transparent 36%),rgba(2,6,23,.42);overflow:hidden}
.app-logo-mini{width:62px;height:62px;display:grid;place-items:center;border-radius:20px;margin:0 auto 18px;color:#fff;font-weight:950;background:linear-gradient(135deg,#3b82f6,#1d4ed8);box-shadow:0 18px 38px rgba(37,99,235,.26)}
.phone-screen h2{text-align:center;margin-bottom:8px!important}.phone-screen>p{text-align:center;color:var(--muted);margin-bottom:20px}
.app-order-card{border:1px solid var(--line);border-radius:20px;padding:16px;margin-top:12px;background:rgba(255,255,255,.055)}
.app-order-card small{display:block;color:var(--muted2);font-size:12px;font-weight:900;margin-bottom:6px}.app-order-card strong{display:block;font-size:21px;margin-bottom:6px}.app-order-card span{color:var(--muted);line-height:1.45}.muted-card{opacity:.88}
.admin-form-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}.admin-form-head h2{margin-bottom:6px!important}
@media (prefers-color-scheme: light){.phone-frame{background:radial-gradient(circle at 50% 0%,rgba(37,99,235,.16),transparent 38%),linear-gradient(145deg,rgba(255,255,255,.96),rgba(226,238,255,.72));box-shadow:0 28px 82px rgba(15,23,42,.14)}.phone-screen{background:radial-gradient(circle at 50% 10%,rgba(37,99,235,.13),transparent 36%),rgba(255,255,255,.74)}.app-order-card{background:rgba(255,255,255,.76)}}
@media(max-width:900px){.kcsklient-hero{grid-template-columns:1fr}.phone-showcase{justify-content:flex-start}.admin-form-head{flex-direction:column}}
@media(max-width:560px){.phone-frame{width:min(300px,100%)}}



/* === KCSerwis PANEL CLEANUP 2 — mniejsze kafelki, ikony, wybór motywu === */

/* Mniejsze, spokojniejsze fonty panelu */
.admin-body{
  font-size:14px;
}

.admin-main{
  padding:22px !important;
}

.admin-top{
  min-height:78px !important;
  padding:14px 18px !important;
  border-radius:22px !important;
}

.admin-top h1{
  font-size:clamp(22px,1.8vw,28px) !important;
}

.admin-top small{
  font-size:12px;
}

.admin-top-actions{
  gap:8px;
}

/* Wybór motywu */
.admin-theme-select-wrap{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:15px;
  background:rgba(15,23,42,.35);
  color:var(--muted);
  font-weight:900;
}

.admin-theme-select-wrap span{
  font-size:12px;
}

.admin-theme-select-wrap select{
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:13px;
  font-weight:950;
  cursor:pointer;
}

.admin-theme-select-wrap option{
  color:#0f172a;
}

/* Menu z ikonami */
.admin-nav-link{
  min-height:40px !important;
  display:grid !important;
  grid-template-columns:28px 1fr;
  align-items:center !important;
  gap:8px;
  padding:8px 10px !important;
}

.admin-nav-icon{
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:rgba(90,163,255,.10);
  color:var(--blue);
  font-size:13px;
  line-height:1;
}

.admin-nav-link strong{
  font-size:13px;
  line-height:1.15;
}

.admin-nav-link small{
  font-size:10px !important;
  line-height:1.15 !important;
  margin-top:2px;
}

.admin-nav-link.active .admin-nav-icon{
  background:rgba(90,163,255,.22);
  color:#fff;
}

/* Kafelki startowe mniejsze i z ikoną */
.admin-grid{
  gap:12px !important;
}

.admin-card{
  min-height:88px !important;
  padding:18px !important;
  display:grid !important;
  grid-template-columns:42px 1fr;
  align-items:center;
  gap:12px;
}

.admin-card-icon{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:rgba(90,163,255,.12);
  color:var(--blue);
  font-size:18px;
  line-height:1;
  box-shadow:inset 0 0 0 1px rgba(90,163,255,.14);
}

.admin-card-text{
  min-width:0;
}

.admin-card strong{
  font-size:16px !important;
  margin-bottom:4px !important;
}

.admin-card span,
.admin-card-text > span{
  font-size:13px;
  line-height:1.35;
}

.admin-section-title span{
  font-size:15px;
}

.admin-section-title small{
  font-size:12px;
}

.admin-dashboard{
  gap:18px;
}

.admin-dashboard-group{
  gap:10px;
}

.admin-status-panel{
  padding:20px !important;
}

.admin-status-panel h2{
  font-size:24px !important;
  margin-bottom:12px !important;
}

.admin-status-grid{
  gap:10px !important;
}

.admin-status-grid div{
  padding:13px !important;
  border-radius:16px !important;
}

.admin-status-grid small{
  font-size:11px !important;
}

.admin-status-grid strong{
  font-size:20px !important;
}

/* Wymuszenie motywu jasnego dla panelu */
html[data-admin-theme="light"]{
  color-scheme:light;
  --bg:#f4f7ff;
  --bg2:#eaf1ff;
  --panel:#ffffff;
  --panel2:#f8fbff;
  --line:rgba(37,57,92,.16);
  --text:#0f172a;
  --muted:#475569;
  --muted2:#64748b;
  --blue:#2563eb;
  --blue2:#1d4ed8;
  --green:#15803d;
  --orange:#b45309;
  --red:#dc2626;
  --shadow:0 24px 80px rgba(15,23,42,.12);
}

html[data-admin-theme="light"] .admin-body{
  background:
    radial-gradient(circle at 12% 8%,rgba(37,99,235,.12),transparent 30%),
    linear-gradient(140deg,#f4f7ff,#eaf1ff) !important;
  color:var(--text);
}

html[data-admin-theme="light"] .admin-sidebar,
html[data-admin-theme="light"] .panel,
html[data-admin-theme="light"] .admin-card,
html[data-admin-theme="light"] .screen-admin-item,
html[data-admin-theme="light"] .login-card{
  background:rgba(255,255,255,.86) !important;
  border-color:rgba(37,57,92,.16) !important;
  box-shadow:0 18px 58px rgba(15,23,42,.09);
}

html[data-admin-theme="light"] .admin-top{
  background:
    linear-gradient(145deg,rgba(255,255,255,.92),rgba(246,250,255,.76)) !important;
  box-shadow:0 18px 54px rgba(15,23,42,.09) !important;
}

html[data-admin-theme="light"] .admin-nav-link{
  color:#334155;
}

html[data-admin-theme="light"] .admin-nav-link:hover,
html[data-admin-theme="light"] .admin-nav-link.active{
  color:#0f172a;
  background:rgba(37,99,235,.08);
  border-color:rgba(37,99,235,.18);
}

html[data-admin-theme="light"] .admin-nav-link.active small{
  color:#475569;
}

html[data-admin-theme="light"] .admin-theme-select-wrap,
html[data-admin-theme="light"] .btn,
html[data-admin-theme="light"] .field input,
html[data-admin-theme="light"] .field textarea,
html[data-admin-theme="light"] .field select,
html[data-admin-theme="light"] .admin-status-grid div{
  background:rgba(255,255,255,.78) !important;
  color:#0f172a;
  border-color:rgba(37,57,92,.17);
}

/* Wymuszenie motywu ciemnego dla panelu */
html[data-admin-theme="dark"]{
  color-scheme:dark;
  --bg:#07111f;
  --bg2:#0b1d34;
  --panel:#0e1a2d;
  --line:rgba(148,163,184,.22);
  --text:#f4f8ff;
  --muted:#b8c4d6;
  --muted2:#7f91aa;
  --blue:#5aa3ff;
  --blue2:#2467f2;
  --green:#28d49a;
  --orange:#f5b33d;
  --red:#fb7185;
  --shadow:0 28px 90px rgba(0,0,0,.38);
}

html[data-admin-theme="dark"] .admin-body{
  background:#07111f !important;
  color:var(--text);
}

html[data-admin-theme="dark"] .admin-sidebar{
  background:rgba(5,12,24,.78) !important;
}

html[data-admin-theme="dark"] .admin-top{
  background:
    linear-gradient(145deg,rgba(16,31,53,.78),rgba(14,26,45,.52)) !important;
}

html[data-admin-theme="dark"] .panel,
html[data-admin-theme="dark"] .admin-card,
html[data-admin-theme="dark"] .screen-admin-item{
  background:rgba(16,31,53,.62) !important;
}

/* Auto zostaje na prefers-color-scheme, czyli obecne zachowanie */
html[data-admin-theme="auto"] .admin-theme-select-wrap{
  opacity:1;
}

@media(max-width:900px){
  .admin-top-actions{
    align-items:stretch;
  }

  .admin-theme-select-wrap{
    width:auto;
  }
}

@media(max-width:620px){
  .admin-card{
    grid-template-columns:38px 1fr;
  }

  .admin-card-icon{
    width:36px;
    height:36px;
    border-radius:13px;
  }

  .admin-theme-select-wrap,
  .admin-theme-select-wrap select{
    width:100%;
  }
}


/* === KCSerwis PANEL CLEANUP 3 — pełna szerokość panelu + jasne Zlecenia online === */

/* Panel administracyjny ma zajmować całą dostępną szerokość */
body.admin-body{
  width:100%;
  overflow-x:hidden;
}

.admin-shell{
  width:100% !important;
  max-width:none !important;
  grid-template-columns:250px minmax(0,1fr) !important;
}

.admin-main{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  padding:22px 26px !important;
}

.admin-main > .admin-top,
.admin-main > .panel,
.admin-main > form.panel,
.admin-dashboard,
.admin-dashboard-group,
.admin-grid,
.admin-status-panel{
  width:100% !important;
  max-width:none !important;
}

.admin-top{
  width:100% !important;
}

/* Start panelu — pełniejszy układ na szerokim ekranie */
.admin-grid{
  grid-template-columns:repeat(3,minmax(240px,1fr)) !important;
}

.admin-card{
  min-height:82px !important;
  padding:16px !important;
  border-radius:20px !important;
}

.admin-card-icon{
  width:38px !important;
  height:38px !important;
  border-radius:14px !important;
}

.admin-card strong{
  font-size:15px !important;
}

.admin-card span,
.admin-card-text > span{
  font-size:12px !important;
}

.admin-section-title{
  margin-top:4px;
}

.admin-section-title span{
  font-size:14px !important;
}

.admin-section-title small{
  font-size:11px !important;
}

/* Szybki stan bardziej kompaktowy */
.admin-status-panel{
  padding:18px !important;
}

.admin-status-panel h2{
  font-size:22px !important;
}

.admin-status-grid{
  grid-template-columns:repeat(5,minmax(130px,1fr)) !important;
}

.admin-status-grid div{
  padding:12px 14px !important;
}

.admin-status-grid strong{
  font-size:19px !important;
}

/* Podstrony panelu też na pełną szerokość */
.admin-form-head,
.screen-panel-intro{
  width:100%;
}

.form,
.panel.form{
  width:100%;
}

/* Zlecenia online — typowe klasy/elementy na pełną szerokość */
.orders-online,
.online-orders,
.zlecenia-online,
.kcs-online,
.kcs-online-panel,
.api-orders,
.orders-panel{
  width:100% !important;
  max-width:none !important;
}

.admin-main table{
  width:100%;
}

/* Jasny motyw wymuszony z selektora panelu */
html[data-admin-theme="light"] body.admin-body{
  background:
    radial-gradient(circle at 12% 8%,rgba(37,99,235,.10),transparent 30%),
    linear-gradient(140deg,#f4f7ff,#eaf1ff) !important;
  color:#0f172a !important;
}

html[data-admin-theme="light"] .admin-main,
html[data-admin-theme="light"] .admin-main *{
  scrollbar-color:rgba(37,57,92,.30) transparent;
}

html[data-admin-theme="light"] .admin-top,
html[data-admin-theme="light"] .panel,
html[data-admin-theme="light"] form.panel,
html[data-admin-theme="light"] .admin-card,
html[data-admin-theme="light"] .screen-admin-item,
html[data-admin-theme="light"] .change-card,
html[data-admin-theme="light"] .card,
html[data-admin-theme="light"] .version-card,
html[data-admin-theme="light"] .contact-card,
html[data-admin-theme="light"] .online-card,
html[data-admin-theme="light"] .orders-card,
html[data-admin-theme="light"] .order-card,
html[data-admin-theme="light"] .stat-card,
html[data-admin-theme="light"] .filter-card,
html[data-admin-theme="light"] .kcs-card,
html[data-admin-theme="light"] .kcs-panel{
  background:rgba(255,255,255,.88) !important;
  color:#0f172a !important;
  border-color:rgba(37,57,92,.16) !important;
  box-shadow:0 18px 58px rgba(15,23,42,.09) !important;
}

/* Zlecenia online — naprawa szarych, zbyt ciemnych pól w jasnym motywie */
html[data-admin-theme="light"] .admin-main .zlecenia-online,
html[data-admin-theme="light"] .admin-main .orders-online,
html[data-admin-theme="light"] .admin-main .online-orders,
html[data-admin-theme="light"] .admin-main .kcs-online,
html[data-admin-theme="light"] .admin-main .api-orders{
  background:transparent !important;
  color:#0f172a !important;
}

html[data-admin-theme="light"] .admin-main input,
html[data-admin-theme="light"] .admin-main textarea,
html[data-admin-theme="light"] .admin-main select,
html[data-admin-theme="light"] .admin-main button:not(.primary):not(.danger),
html[data-admin-theme="light"] .admin-main .btn:not(.primary):not(.danger){
  background:rgba(255,255,255,.86) !important;
  color:#0f172a !important;
  border-color:rgba(37,57,92,.18) !important;
}

html[data-admin-theme="light"] .admin-main input::placeholder,
html[data-admin-theme="light"] .admin-main textarea::placeholder{
  color:#64748b !important;
}

html[data-admin-theme="light"] .admin-main select option{
  background:#ffffff !important;
  color:#0f172a !important;
}

/* Statystyki / filtry / nagłówki w Zleceniach online */
html[data-admin-theme="light"] .admin-main [class*="stat"],
html[data-admin-theme="light"] .admin-main [class*="filter"],
html[data-admin-theme="light"] .admin-main [class*="summary"],
html[data-admin-theme="light"] .admin-main [class*="toolbar"],
html[data-admin-theme="light"] .admin-main [class*="collapse"],
html[data-admin-theme="light"] .admin-main [class*="section"],
html[data-admin-theme="light"] .admin-main [class*="box"]{
  border-color:rgba(37,57,92,.16);
}

html[data-admin-theme="light"] .admin-main table,
html[data-admin-theme="light"] .admin-main th,
html[data-admin-theme="light"] .admin-main td{
  color:#0f172a;
  border-color:rgba(37,57,92,.13);
}

html[data-admin-theme="light"] .admin-main th{
  background:rgba(226,238,255,.75);
}

html[data-admin-theme="light"] .admin-main td{
  background:rgba(255,255,255,.65);
}

/* Auto w jasnym systemie też ma poprawnie kolorować Zlecenia online */
@media (prefers-color-scheme: light){
  html[data-admin-theme="auto"] body.admin-body{
    background:
      radial-gradient(circle at 12% 8%,rgba(37,99,235,.10),transparent 30%),
      linear-gradient(140deg,#f4f7ff,#eaf1ff) !important;
    color:#0f172a !important;
  }

  html[data-admin-theme="auto"] .admin-top,
  html[data-admin-theme="auto"] .panel,
  html[data-admin-theme="auto"] form.panel,
  html[data-admin-theme="auto"] .admin-card,
  html[data-admin-theme="auto"] .screen-admin-item,
  html[data-admin-theme="auto"] .change-card,
  html[data-admin-theme="auto"] .card,
  html[data-admin-theme="auto"] .version-card,
  html[data-admin-theme="auto"] .contact-card,
  html[data-admin-theme="auto"] .online-card,
  html[data-admin-theme="auto"] .orders-card,
  html[data-admin-theme="auto"] .order-card,
  html[data-admin-theme="auto"] .stat-card,
  html[data-admin-theme="auto"] .filter-card,
  html[data-admin-theme="auto"] .kcs-card,
  html[data-admin-theme="auto"] .kcs-panel{
    background:rgba(255,255,255,.88) !important;
    color:#0f172a !important;
    border-color:rgba(37,57,92,.16) !important;
    box-shadow:0 18px 58px rgba(15,23,42,.09) !important;
  }

  html[data-admin-theme="auto"] .admin-main input,
  html[data-admin-theme="auto"] .admin-main textarea,
  html[data-admin-theme="auto"] .admin-main select,
  html[data-admin-theme="auto"] .admin-main button:not(.primary):not(.danger),
  html[data-admin-theme="auto"] .admin-main .btn:not(.primary):not(.danger){
    background:rgba(255,255,255,.86) !important;
    color:#0f172a !important;
    border-color:rgba(37,57,92,.18) !important;
  }
}

/* Responsywność */
@media(max-width:1300px){
  .admin-grid{
    grid-template-columns:repeat(2,minmax(240px,1fr)) !important;
  }

  .admin-status-grid{
    grid-template-columns:repeat(3,minmax(130px,1fr)) !important;
  }
}

@media(max-width:900px){
  .admin-shell{
    grid-template-columns:1fr !important;
  }

  .admin-main{
    padding:18px !important;
  }

  .admin-grid,
  .admin-status-grid{
    grid-template-columns:1fr !important;
  }
}


/* === KCSerwis PANEL CLEANUP 4 — topbar meta + Zlecenia online light fix === */

/* Sidebar: bez małych opisów, tylko nazwy */
.admin-nav-link{
  display:flex;
  align-items:center;
  gap:12px;
}
.admin-nav-link .admin-nav-text{display:block;min-width:0}
.admin-nav-link .admin-nav-text strong{display:block}
.admin-nav-link .admin-nav-text small{display:none !important}
.admin-nav-link .admin-nav-icon{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:10px;
  flex:0 0 28px;
  background:rgba(90,163,255,.10);
  color:var(--blue);
  font-size:13px;
  line-height:1;
}

/* Górna belka: tytuł + opis aktywnej zakładki */
.admin-top{
  gap:18px;
}
.admin-top-main{min-width:0}
.admin-title-row{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:10px;
}
.admin-title-row h1{margin:0 !important}
.admin-page-meta{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.22);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  letter-spacing:.01em;
  white-space:nowrap;
}

html[data-admin-theme="light"] .admin-page-meta{
  background:rgba(37,99,235,.06);
  border-color:rgba(37,57,92,.14);
  color:#51627d;
}

/* Zlecenia online — jasny motyw */
html[data-admin-theme="light"] .zo-card{
  background:rgba(255,255,255,.82) !important;
  border-color:rgba(37,57,92,.14) !important;
  box-shadow:0 18px 58px rgba(15,23,42,.08) !important;
}
html[data-admin-theme="light"] .zo-head h2,
html[data-admin-theme="light"] .zo-company,
html[data-admin-theme="light"] .zo-device,
html[data-admin-theme="light"] .zo-section-title h3,
html[data-admin-theme="light"] .zo-detail div,
html[data-admin-theme="light"] .zo-history-row strong{
  color:#0f172a !important;
}
html[data-admin-theme="light"] .zo-head p,
html[data-admin-theme="light"] .zo-muted,
html[data-admin-theme="light"] .zo-footer-note,
html[data-admin-theme="light"] .zo-nip,
html[data-admin-theme="light"] .zo-detail label{
  color:#64748b !important;
}
html[data-admin-theme="light"] .zo-stat{
  background:rgba(243,247,255,.95) !important;
  border-color:rgba(37,57,92,.12) !important;
}
html[data-admin-theme="light"] .zo-stat span{color:#64748b !important}
html[data-admin-theme="light"] .zo-stat strong{color:#0f172a !important}
html[data-admin-theme="light"] .zo-field label,
html[data-admin-theme="light"] .zo-count,
html[data-admin-theme="light"] .zo-collapse>summary:after,
html[data-admin-theme="light"] .zo-sort,
html[data-admin-theme="light"] .zo-sort:hover,
html[data-admin-theme="light"] .zo-sort.active{
  color:#334155 !important;
}
html[data-admin-theme="light"] .zo-field input,
html[data-admin-theme="light"] .zo-field select,
html[data-admin-theme="light"] .zo-details-box,
html[data-admin-theme="light"] .zo-check{
  background:#ffffff !important;
  color:#0f172a !important;
  border-color:rgba(37,57,92,.16) !important;
}
html[data-admin-theme="light"] .zo-field input::placeholder{color:#94a3b8 !important}
html[data-admin-theme="light"] .zo-btn{
  background:#ffffff !important;
  color:#0f172a !important;
  border-color:rgba(37,57,92,.16) !important;
  box-shadow:none !important;
}
html[data-admin-theme="light"] .zo-btn.primary{
  background:linear-gradient(135deg,#5aa3ff,#2467f2) !important;
  color:#fff !important;
  border-color:#2563eb !important;
}
html[data-admin-theme="light"] .zo-table-wrap{border-color:rgba(37,57,92,.12) !important}
html[data-admin-theme="light"] .zo-table th{
  background:#eef4ff !important;
  color:#334155 !important;
}
html[data-admin-theme="light"] .zo-table td{
  color:#0f172a !important;
  border-top-color:rgba(37,57,92,.10) !important;
  background:rgba(255,255,255,.86) !important;
}
html[data-admin-theme="light"] .zo-table tr:hover td{background:#f8fbff !important}
html[data-admin-theme="light"] .zo-chip.neutral,
html[data-admin-theme="light"] .zo-chip.no{
  background:rgba(148,163,184,.12) !important;
  color:#475569 !important;
}
html[data-admin-theme="light"] .zo-check{color:#334155 !important}
html[data-admin-theme="light"] .zo-switch{background:#cbd5e1 !important;border-color:#cbd5e1 !important}
html[data-admin-theme="light"] .zo-switch:after{background:#ffffff !important}
html[data-admin-theme="light"] .zo-collapse[open]>summary{border-bottom-color:rgba(37,57,92,.10) !important}

/* Auto -> jasny system */
@media (prefers-color-scheme: light){
  html[data-admin-theme="auto"] .zo-card{
    background:rgba(255,255,255,.82) !important;
    border-color:rgba(37,57,92,.14) !important;
    box-shadow:0 18px 58px rgba(15,23,42,.08) !important;
  }
  html[data-admin-theme="auto"] .zo-head h2,
  html[data-admin-theme="auto"] .zo-company,
  html[data-admin-theme="auto"] .zo-device,
  html[data-admin-theme="auto"] .zo-section-title h3,
  html[data-admin-theme="auto"] .zo-detail div,
  html[data-admin-theme="auto"] .zo-history-row strong{color:#0f172a !important}
  html[data-admin-theme="auto"] .zo-head p,
  html[data-admin-theme="auto"] .zo-muted,
  html[data-admin-theme="auto"] .zo-footer-note,
  html[data-admin-theme="auto"] .zo-nip,
  html[data-admin-theme="auto"] .zo-detail label{color:#64748b !important}
  html[data-admin-theme="auto"] .zo-stat{background:rgba(243,247,255,.95) !important;border-color:rgba(37,57,92,.12) !important}
  html[data-admin-theme="auto"] .zo-stat span{color:#64748b !important}
  html[data-admin-theme="auto"] .zo-stat strong{color:#0f172a !important}
  html[data-admin-theme="auto"] .zo-field label,
  html[data-admin-theme="auto"] .zo-count,
  html[data-admin-theme="auto"] .zo-collapse>summary:after,
  html[data-admin-theme="auto"] .zo-sort,
  html[data-admin-theme="auto"] .zo-sort:hover,
  html[data-admin-theme="auto"] .zo-sort.active{color:#334155 !important}
  html[data-admin-theme="auto"] .zo-field input,
  html[data-admin-theme="auto"] .zo-field select,
  html[data-admin-theme="auto"] .zo-details-box,
  html[data-admin-theme="auto"] .zo-check{background:#ffffff !important;color:#0f172a !important;border-color:rgba(37,57,92,.16) !important}
  html[data-admin-theme="auto"] .zo-btn{background:#ffffff !important;color:#0f172a !important;border-color:rgba(37,57,92,.16) !important;box-shadow:none !important}
  html[data-admin-theme="auto"] .zo-btn.primary{background:linear-gradient(135deg,#5aa3ff,#2467f2) !important;color:#fff !important;border-color:#2563eb !important}
  html[data-admin-theme="auto"] .zo-table-wrap{border-color:rgba(37,57,92,.12) !important}
  html[data-admin-theme="auto"] .zo-table th{background:#eef4ff !important;color:#334155 !important}
  html[data-admin-theme="auto"] .zo-table td{color:#0f172a !important;border-top-color:rgba(37,57,92,.10) !important;background:rgba(255,255,255,.86) !important}
  html[data-admin-theme="auto"] .zo-table tr:hover td{background:#f8fbff !important}
  html[data-admin-theme="auto"] .zo-chip.neutral,
  html[data-admin-theme="auto"] .zo-chip.no{background:rgba(148,163,184,.12) !important;color:#475569 !important}
  html[data-admin-theme="auto"] .zo-switch{background:#cbd5e1 !important;border-color:#cbd5e1 !important}
  html[data-admin-theme="auto"] .zo-switch:after{background:#ffffff !important}
}

@media(max-width:980px){
  .admin-title-row{
    align-items:flex-start;
    flex-direction:column;
    gap:6px;
  }
  .admin-page-meta{white-space:normal}
}


/* === KCSerwis PANEL CLEANUP 5 — szybki stan + stopka panelu === */

/* Szybki stan — kompaktowe kafelki zamiast dużej pustej przestrzeni */
.admin-status-panel{
  margin-top:18px !important;
  padding:20px !important;
}

.admin-status-panel h2{
  margin:0 0 14px !important;
  font-size:22px !important;
  line-height:1.15 !important;
}

.admin-status-grid{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(150px,1fr)) !important;
  gap:12px !important;
  margin:8px 0 18px !important;
  width:100% !important;
}

.admin-status-grid > div{
  min-height:76px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  gap:6px !important;
  border:1px solid var(--line) !important;
  border-radius:18px !important;
  padding:14px 16px !important;
  background:
    linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.025)) !important;
  box-shadow:none !important;
}

.admin-status-grid > div small{
  display:block !important;
  color:var(--muted2) !important;
  font-size:11px !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  letter-spacing:.055em !important;
  margin:0 !important;
}

.admin-status-grid > div strong{
  display:block !important;
  color:var(--text) !important;
  font-size:23px !important;
  line-height:1.05 !important;
  font-weight:950 !important;
  letter-spacing:-.035em !important;
}

.admin-status-panel .actions{
  margin-top:6px !important;
}

/* Stopka panelu na każdej podstronie */
.admin-footer{
  margin:28px 0 0;
  padding:18px 4px 6px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  color:var(--muted);
}

.admin-footer strong{
  display:block;
  color:var(--text);
  font-size:13px;
  margin-bottom:3px;
}

.admin-footer span,
.admin-footer small{
  color:var(--muted2);
  font-size:12px;
  font-weight:750;
}

/* Jasny motyw */
html[data-admin-theme="light"] .admin-status-grid > div{
  background:
    linear-gradient(145deg,rgba(255,255,255,.92),rgba(246,250,255,.72)) !important;
  border-color:rgba(37,57,92,.14) !important;
  box-shadow:0 12px 34px rgba(15,23,42,.05) !important;
}

html[data-admin-theme="light"] .admin-status-grid > div small{
  color:#64748b !important;
}

html[data-admin-theme="light"] .admin-status-grid > div strong{
  color:#0f172a !important;
}

html[data-admin-theme="light"] .admin-footer{
  border-color:rgba(37,57,92,.14);
  color:#64748b;
}

html[data-admin-theme="light"] .admin-footer strong{
  color:#0f172a;
}

html[data-admin-theme="light"] .admin-footer span,
html[data-admin-theme="light"] .admin-footer small{
  color:#64748b;
}

/* Auto + jasny system */
@media (prefers-color-scheme: light){
  html[data-admin-theme="auto"] .admin-status-grid > div{
    background:
      linear-gradient(145deg,rgba(255,255,255,.92),rgba(246,250,255,.72)) !important;
    border-color:rgba(37,57,92,.14) !important;
    box-shadow:0 12px 34px rgba(15,23,42,.05) !important;
  }

  html[data-admin-theme="auto"] .admin-status-grid > div small{
    color:#64748b !important;
  }

  html[data-admin-theme="auto"] .admin-status-grid > div strong{
    color:#0f172a !important;
  }

  html[data-admin-theme="auto"] .admin-footer{
    border-color:rgba(37,57,92,.14);
  }

  html[data-admin-theme="auto"] .admin-footer strong{
    color:#0f172a;
  }

  html[data-admin-theme="auto"] .admin-footer span,
  html[data-admin-theme="auto"] .admin-footer small{
    color:#64748b;
  }
}

/* Responsywność szybkiego stanu */
@media(max-width:1300px){
  .admin-status-grid{
    grid-template-columns:repeat(3,minmax(150px,1fr)) !important;
  }
}

@media(max-width:820px){
  .admin-status-grid{
    grid-template-columns:repeat(2,minmax(140px,1fr)) !important;
  }

  .admin-footer{
    align-items:flex-start;
    flex-direction:column;
  }
}

@media(max-width:560px){
  .admin-status-grid{
    grid-template-columns:1fr !important;
  }
}




/* === KCSerwis Panel Modern 1 — dashboard jak makieta === */
:root{
  --admin-bg:#edf3ff;
  --admin-surface:#ffffff;
  --admin-surface2:rgba(255,255,255,.74);
  --admin-text:#07152f;
  --admin-muted:#58708f;
  --admin-muted2:#8ca0bb;
  --admin-line:rgba(37,57,92,.13);
  --admin-blue:#2467f2;
  --admin-blue2:#4f8cff;
  --admin-green:#22c55e;
  --admin-violet:#8b5cf6;
  --admin-orange:#f97316;
  --admin-teal:#14b8a6;
  --admin-yellow:#f59e0b;
  --admin-shadow:0 22px 60px rgba(30,64,175,.10);
  --admin-shadow2:0 12px 32px rgba(15,23,42,.08);
}

html[data-admin-theme="light"]{color-scheme:light}
html[data-admin-theme="light"] body.admin-body,
html[data-admin-theme="auto"] body.admin-body{
  background:
    radial-gradient(circle at 80% 0%,rgba(37,99,235,.12),transparent 30%),
    linear-gradient(180deg,#f8fbff 0%,#e9f1ff 100%) !important;
  color:var(--admin-text) !important;
}

.admin-body{
  background:
    radial-gradient(circle at 80% 0%,rgba(37,99,235,.12),transparent 30%),
    linear-gradient(180deg,#f8fbff 0%,#e9f1ff 100%) !important;
  color:var(--admin-text) !important;
}

.admin-shell{
  grid-template-columns:270px 1fr !important;
  background:transparent !important;
}

.admin-sidebar{
  background:rgba(255,255,255,.76) !important;
  border-right:1px solid rgba(37,57,92,.12) !important;
  box-shadow:10px 0 34px rgba(15,23,42,.04);
  padding:24px 18px !important;
}

.admin-logo{
  display:grid !important;
  justify-items:center;
  gap:7px !important;
  text-align:center;
  padding-bottom:22px;
  border-bottom:1px solid var(--admin-line);
  margin-bottom:18px !important;
}
.admin-logo img{width:92px !important;filter:drop-shadow(0 12px 20px rgba(15,23,42,.18))}
.admin-logo span{display:grid;gap:2px;color:var(--admin-text)}
.admin-logo strong{font-size:18px;letter-spacing:-.02em}
.admin-logo small{display:block;color:var(--admin-muted);font-size:13px;font-weight:750}

.admin-nav{gap:7px !important}
.admin-nav-section{
  color:#7589a7 !important;
  font-size:12px !important;
  font-weight:950 !important;
  text-transform:uppercase;
  letter-spacing:.075em;
  margin:16px 10px 7px !important;
}
.admin-nav-link{
  min-height:46px;
  display:flex !important;
  align-items:center;
  gap:12px;
  border-radius:14px !important;
  padding:10px 12px !important;
  color:#172540 !important;
  text-decoration:none;
  border:1px solid transparent;
  transition:background .16s ease,border-color .16s ease,transform .16s ease,color .16s ease;
}
.admin-nav-link:hover{
  background:#f3f7ff !important;
  border-color:rgba(37,99,235,.10);
  color:var(--admin-blue) !important;
  transform:translateX(2px);
}
.admin-nav-link.active{
  background:#eaf1ff !important;
  color:var(--admin-blue) !important;
  border-color:rgba(37,99,235,.12);
}
.admin-nav-icon{
  width:34px;height:34px;
  border-radius:12px;
  display:grid;place-items:center;
  background:#eef5ff;
  color:var(--admin-blue);
  font-size:16px;
  line-height:1;
  flex:0 0 auto;
}
.admin-nav-link.active .admin-nav-icon{background:#dbeafe;color:#1d4ed8}
.admin-nav-text strong{font-size:14px;font-weight:900}

.admin-main{
  max-width:none !important;
  padding:28px 34px 70px !important;
  background:transparent !important;
}

.admin-top{
  top:0;
  margin:-28px -34px 26px !important;
  padding:24px 34px !important;
  min-height:96px;
  background:rgba(255,255,255,.82) !important;
  border-bottom:1px solid var(--admin-line) !important;
  box-shadow:0 16px 44px rgba(15,23,42,.055);
  backdrop-filter:blur(16px);
}
.admin-top-left{display:flex;align-items:center;gap:18px}
.admin-menu-button{
  width:46px;height:46px;
  border:1px solid var(--admin-line);
  border-radius:15px;
  background:#fff;
  color:#13223c;
  box-shadow:var(--admin-shadow2);
  font-size:18px;
  font-weight:900;
}
.admin-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.admin-top h1{
  color:var(--admin-text) !important;
  margin:0 !important;
  font-size:30px !important;
  line-height:1.08 !important;
  letter-spacing:-.04em !important;
}
.admin-top small{display:block;color:var(--admin-muted) !important;font-weight:800;margin-top:4px}
.admin-page-meta{
  background:#e9f1ff !important;
  color:#486384 !important;
  border:1px solid rgba(37,99,235,.10) !important;
  border-radius:999px !important;
  padding:8px 13px !important;
  font-size:13px !important;
  font-weight:900 !important;
}
.admin-top-actions{gap:10px !important}
.admin-theme-select-wrap{
  min-height:48px;
  border:1px solid var(--admin-line) !important;
  background:#fff !important;
  border-radius:16px !important;
  padding:0 12px !important;
  box-shadow:var(--admin-shadow2);
  color:#233553;
}
.admin-theme-select-wrap span{font-size:12px;color:#5c708e;font-weight:900}
.admin-theme-select-wrap select{
  border:0 !important;
  background:transparent !important;
  color:#0f1f3a !important;
  font-weight:950 !important;
  outline:0;
}
.admin-top .btn.small{
  min-height:48px;
  border-radius:16px !important;
  background:#fff !important;
  color:#0f1f3a !important;
  border:1px solid var(--admin-line) !important;
  box-shadow:var(--admin-shadow2);
  padding:0 18px !important;
  font-size:14px !important;
  font-weight:950 !important;
}
.admin-top .btn.small.danger{
  background:linear-gradient(135deg,#2467f2,#4f8cff) !important;
  color:#fff !important;
  border-color:transparent !important;
}

.admin-modern-dashboard{display:grid;gap:26px}
.admin-hero-card{
  min-height:150px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  border:1px solid var(--admin-line);
  border-radius:24px;
  background:
    radial-gradient(circle at 89% 30%,rgba(79,140,255,.16),transparent 25%),
    linear-gradient(135deg,#fff 0%,#fff 52%,#f5f9ff 100%);
  box-shadow:var(--admin-shadow);
  padding:30px 34px;
  overflow:hidden;
}
.admin-hero-card p{
  color:var(--admin-blue);
  font-weight:950;
  margin:0 0 10px;
}
.admin-hero-card h2{
  color:var(--admin-text);
  font-size:32px !important;
  line-height:1.08 !important;
  margin:0 0 10px !important;
  letter-spacing:-.04em !important;
}
.admin-hero-card span{color:var(--admin-muted);font-size:16px;font-weight:750}
.admin-hero-art{
  width:285px;height:112px;position:relative;flex:0 0 auto;
  border-radius:20px;
}
.admin-hero-art b{
  position:absolute;right:62px;top:6px;
  width:116px;height:92px;border-radius:16px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#2563eb,#60a5fa);
  color:#fff;font-size:40px;
  box-shadow:0 24px 44px rgba(37,99,235,.24);
}
.admin-hero-art i:nth-child(1){position:absolute;right:17px;bottom:2px;width:80px;height:80px;border-radius:60% 40% 50% 50%;background:rgba(37,99,235,.12)}
.admin-hero-art i:nth-child(2){position:absolute;right:178px;bottom:8px;width:54px;height:68px;border-radius:24px;background:rgba(34,197,94,.12)}
.admin-hero-art i:nth-child(3){position:absolute;right:210px;top:18px;width:10px;height:10px;border-radius:999px;background:#bfdbfe;box-shadow:38px 18px 0 #dbeafe,92px -4px 0 #dbeafe}

.admin-section-title{
  margin:0 0 15px !important;
}
.admin-section-title span{
  display:block;
  color:var(--admin-text);
  font-size:21px;
  font-weight:950;
  letter-spacing:-.035em;
}
.admin-section-title small{
  display:block;
  color:var(--admin-muted);
  font-size:15px;
  font-weight:750;
  margin-top:4px;
}

.admin-grid.admin-modern-grid{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:16px !important;
}
.admin-card{
  position:relative;
  min-height:96px;
  display:flex !important;
  align-items:center;
  gap:18px;
  padding:20px 54px 20px 22px !important;
  border:1px solid var(--admin-line) !important;
  border-radius:20px !important;
  background:rgba(255,255,255,.82) !important;
  box-shadow:var(--admin-shadow2);
  color:var(--admin-text) !important;
  overflow:hidden;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.admin-card:before{
  content:"";
  position:absolute;left:0;top:16px;bottom:16px;width:4px;
  border-radius:0 999px 999px 0;
  background:var(--admin-blue);
}
.admin-card:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 54px rgba(37,99,235,.13);
  border-color:rgba(37,99,235,.22) !important;
}
.admin-card-icon{
  width:52px;height:52px;
  border-radius:18px;
  display:grid;place-items:center;
  background:#eaf1ff;
  color:var(--admin-blue);
  font-size:22px;
  flex:0 0 auto;
}
.admin-card-text strong{
  color:var(--admin-text);
  font-size:17px !important;
  font-weight:950;
  margin:0 0 4px !important;
}
.admin-card-text span{color:var(--admin-muted) !important;font-size:14px;font-weight:700}
.admin-card em{
  position:absolute;right:20px;top:50%;transform:translateY(-50%);
  font-style:normal;font-size:30px;color:#7186a3;font-weight:500;
}
.admin-card-violet:before{background:var(--admin-violet)}
.admin-card-violet .admin-card-icon{background:#f1eaff;color:var(--admin-violet)}
.admin-card-green:before{background:var(--admin-green)}
.admin-card-green .admin-card-icon{background:#e9fbf0;color:#16a34a}
.admin-card-orange:before{background:var(--admin-orange)}
.admin-card-orange .admin-card-icon{background:#fff2e8;color:var(--admin-orange)}
.admin-card-teal:before{background:var(--admin-teal)}
.admin-card-teal .admin-card-icon{background:#e7fbf8;color:var(--admin-teal)}
.admin-card-yellow:before{background:var(--admin-yellow)}
.admin-card-yellow .admin-card-icon{background:#fff7df;color:var(--admin-yellow)}

.admin-modern-status-panel{
  border:1px solid var(--admin-line) !important;
  border-radius:24px !important;
  background:rgba(255,255,255,.86) !important;
  box-shadow:var(--admin-shadow);
  padding:24px !important;
}
.admin-status-head h2{
  color:var(--admin-text);
  font-size:22px !important;
  margin:0 0 4px !important;
}
.admin-status-head p{color:var(--admin-muted);margin:0 0 16px;font-weight:750}
.admin-status-grid{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:14px !important;
}
.admin-status-tile{
  display:flex;
  align-items:center;
  gap:14px;
  min-height:100px;
  border:1px solid var(--admin-line);
  border-radius:20px;
  background:#fff;
  padding:17px;
  box-shadow:0 12px 28px rgba(15,23,42,.055);
}
.admin-status-tile>b{
  width:54px;height:54px;
  border-radius:18px;
  display:grid;place-items:center;
  background:#eaf1ff;
  color:var(--admin-blue);
  font-size:21px;
  flex:0 0 auto;
}
.admin-status-tile small{
  display:block;color:#7186a3;font-size:12px;text-transform:uppercase;letter-spacing:.05em;font-weight:950;margin-bottom:3px;
}
.admin-status-tile strong{
  display:block;color:var(--admin-text);font-size:26px;font-weight:950;letter-spacing:-.04em;
}
.admin-status-tile em{
  display:inline-flex;margin-top:5px;
  font-style:normal;font-size:12px;font-weight:950;
  color:#1d4ed8;background:#eaf1ff;border-radius:999px;padding:4px 8px;
}
.admin-status-green>b{background:#e9fbf0;color:#16a34a}
.admin-status-green em{background:#dcfce7;color:#15803d}
.admin-status-violet>b{background:#f1eaff;color:#7c3aed}
.admin-status-orange>b{background:#fff2e8;color:#ea580c}
.admin-status-yellow>b{background:#fff7df;color:#d97706}
.admin-status-actions{margin-top:18px !important}
.admin-status-actions .btn{
  min-height:48px;border-radius:15px !important;
  background:#fff !important;color:#0f1f3a !important;
  border:1px solid var(--admin-line) !important;
  box-shadow:var(--admin-shadow2);
  font-weight:950 !important;
}
.admin-status-actions .btn.primary{
  background:linear-gradient(135deg,#2467f2,#4f8cff) !important;
  border-color:transparent !important;
  color:#fff !important;
}

.admin-footer{
  border-top:1px solid rgba(37,57,92,.14) !important;
  color:#617692 !important;
}
.admin-footer strong{color:var(--admin-text)}
.admin-footer small span{color:#2563eb}

.notice{
  border-radius:18px !important;
  background:#e9fbf3 !important;
  color:#047857 !important;
  border:1px solid rgba(16,185,129,.22) !important;
}
.notice.error{
  background:#fff1f2 !important;
  color:#be123c !important;
  border-color:#fecdd3 !important;
}

/* Formularze i karty w pozostałych widokach panelu — delikatne dopracowanie */
.admin-main .panel,
.admin-main .edit-group{
  border-color:var(--admin-line) !important;
  background:rgba(255,255,255,.86) !important;
  box-shadow:var(--admin-shadow2);
}
.field input,.field textarea,.field select{
  background:#fff !important;
  color:#0f172a !important;
  border-color:rgba(37,57,92,.18) !important;
}

html[data-admin-theme="dark"] body.admin-body{
  background:radial-gradient(circle at 80% 0%,rgba(37,99,235,.18),transparent 30%),linear-gradient(140deg,#07111f,#0b1d34) !important;
  color:#f4f8ff !important;
}
html[data-admin-theme="dark"] .admin-sidebar,
html[data-admin-theme="dark"] .admin-top,
html[data-admin-theme="dark"] .admin-hero-card,
html[data-admin-theme="dark"] .admin-card,
html[data-admin-theme="dark"] .admin-modern-status-panel,
html[data-admin-theme="dark"] .admin-status-tile,
html[data-admin-theme="dark"] .admin-main .panel,
html[data-admin-theme="dark"] .admin-main .edit-group{
  background:rgba(13,25,44,.88) !important;
  border-color:rgba(148,163,184,.20) !important;
  color:#f4f8ff !important;
}
html[data-admin-theme="dark"] .admin-top h1,
html[data-admin-theme="dark"] .admin-hero-card h2,
html[data-admin-theme="dark"] .admin-card-text strong,
html[data-admin-theme="dark"] .admin-section-title span,
html[data-admin-theme="dark"] .admin-status-head h2,
html[data-admin-theme="dark"] .admin-status-tile strong,
html[data-admin-theme="dark"] .admin-footer strong,
html[data-admin-theme="dark"] .admin-logo span{
  color:#f4f8ff !important;
}
html[data-admin-theme="dark"] .admin-card-text span,
html[data-admin-theme="dark"] .admin-hero-card span,
html[data-admin-theme="dark"] .admin-section-title small,
html[data-admin-theme="dark"] .admin-status-head p,
html[data-admin-theme="dark"] .admin-top small{
  color:#b8c4d6 !important;
}
html[data-admin-theme="dark"] .admin-nav-link{color:#d6e2f2 !important}
html[data-admin-theme="dark"] .admin-nav-link:hover,
html[data-admin-theme="dark"] .admin-nav-link.active{background:rgba(90,163,255,.13) !important}
html[data-admin-theme="dark"] .admin-theme-select-wrap,
html[data-admin-theme="dark"] .admin-top .btn.small,
html[data-admin-theme="dark"] .admin-status-actions .btn,
html[data-admin-theme="dark"] .admin-menu-button{
  background:rgba(9,20,38,.92) !important;color:#f4f8ff !important;border-color:rgba(148,163,184,.22) !important;
}
html[data-admin-theme="dark"] .admin-theme-select-wrap select{color:#f4f8ff !important;background:transparent !important}
html[data-admin-theme="dark"] .field input,
html[data-admin-theme="dark"] .field textarea,
html[data-admin-theme="dark"] .field select{
  background:rgba(2,6,23,.28) !important;
  color:#f4f8ff !important;
  border-color:rgba(148,163,184,.22) !important;
}

@media(max-width:1180px){
  .admin-grid.admin-modern-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .admin-status-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
@media(max-width:900px){
  .admin-shell{grid-template-columns:1fr !important}
  .admin-sidebar{height:auto !important}
  .admin-main{padding:20px !important}
  .admin-top{margin:-20px -20px 20px !important;padding:18px 20px !important;position:static !important}
  .admin-top{display:grid !important;gap:16px}
  .admin-top-actions{justify-content:flex-start;flex-wrap:wrap}
  .admin-hero-card{display:block}
  .admin-hero-art{display:none}
}
@media(max-width:640px){
  .admin-grid.admin-modern-grid,.admin-status-grid{grid-template-columns:1fr !important}
  .admin-card{min-height:88px}
}



/* === KCSerwis Panel Compact 1 — mniej pionu, bardziej użytkowo na 1920x1080 === */
.admin-shell{grid-template-columns:230px 1fr !important}
.admin-sidebar{padding:18px 14px !important}
.admin-logo{padding-bottom:16px !important;margin-bottom:12px !important}
.admin-logo img{width:74px !important}
.admin-logo strong{font-size:16px !important}
.admin-logo small{font-size:12px !important}
.admin-nav{gap:4px !important}
.admin-nav-section{margin:13px 8px 6px !important;font-size:11px !important}
.admin-nav-link{min-height:38px !important;padding:7px 10px !important;border-radius:12px !important;gap:9px !important}
.admin-nav-icon{width:28px !important;height:28px !important;border-radius:10px !important;font-size:13px !important}
.admin-nav-text strong{font-size:13px !important}

.admin-main{padding:18px 26px 48px !important}
.admin-top{min-height:76px !important;margin:-18px -26px 20px !important;padding:16px 26px !important;border-radius:0 0 20px 20px !important}
.admin-menu-button{width:40px !important;height:40px !important;border-radius:13px !important;font-size:16px !important}
.admin-top-left{gap:14px !important}
.admin-top h1{font-size:26px !important}
.admin-top small{font-size:11px !important;margin-top:2px !important}
.admin-page-meta{padding:6px 11px !important;font-size:12px !important}
.admin-theme-select-wrap{min-height:40px !important;border-radius:13px !important;padding:0 10px !important}
.admin-theme-select-wrap span{font-size:11px !important}
.admin-theme-select-wrap select{font-size:12px !important}
.admin-top .btn.small{min-height:40px !important;border-radius:13px !important;padding:0 14px !important;font-size:12px !important}

.admin-modern-dashboard{gap:18px !important}
.admin-hero-card{min-height:112px !important;padding:22px 28px !important;border-radius:20px !important}
.admin-hero-card p{margin-bottom:6px !important;font-size:13px !important}
.admin-hero-card h2{font-size:26px !important;margin-bottom:6px !important}
.admin-hero-card span{font-size:14px !important}
.admin-hero-art{width:210px !important;height:86px !important}
.admin-hero-art b{width:88px !important;height:70px !important;right:52px !important;top:4px !important;font-size:30px !important;border-radius:14px !important}
.admin-hero-art i:nth-child(1){right:12px !important;width:60px !important;height:60px !important}
.admin-hero-art i:nth-child(2){right:142px !important;width:42px !important;height:54px !important}

.admin-section-title{margin-bottom:10px !important}
.admin-section-title span{font-size:17px !important}
.admin-section-title small{font-size:12px !important;margin-top:2px !important}
.admin-grid.admin-modern-grid{gap:12px !important}
.admin-card{min-height:78px !important;padding:14px 42px 14px 16px !important;border-radius:16px !important;gap:13px !important}
.admin-card:before{top:12px !important;bottom:12px !important;width:3px !important}
.admin-card-icon{width:42px !important;height:42px !important;border-radius:14px !important;font-size:18px !important}
.admin-card-text strong{font-size:15px !important;margin-bottom:2px !important}
.admin-card-text span{font-size:12px !important}
.admin-card em{right:15px !important;font-size:24px !important}

.admin-modern-status-panel{padding:18px !important;border-radius:20px !important}
.admin-status-head h2{font-size:19px !important}
.admin-status-head p{font-size:12px !important;margin-bottom:12px !important}
.admin-status-grid{gap:10px !important}
.admin-status-tile{min-height:78px !important;padding:12px !important;border-radius:16px !important;gap:10px !important}
.admin-status-tile>b{width:42px !important;height:42px !important;border-radius:14px !important;font-size:17px !important}
.admin-status-tile small{font-size:10px !important;margin-bottom:2px !important}
.admin-status-tile strong{font-size:21px !important}
.admin-status-tile em{font-size:10px !important;padding:3px 7px !important;margin-top:3px !important}
.admin-status-actions{margin-top:14px !important}
.admin-status-actions .btn{min-height:40px !important;border-radius:13px !important;font-size:12px !important;padding:0 14px !important}

/* Kompakt dla pozostałych paneli, w tym Zlecenia online */
.admin-main .panel,.admin-main .edit-group,.zo-card{border-radius:18px !important}
.zo-card{padding:18px !important}
.zo-section-title h3{font-size:17px !important}
.zo-stat{min-height:60px !important;padding:12px 14px !important;border-radius:14px !important}
.zo-stat span{font-size:10px !important}
.zo-stat strong{font-size:19px !important}
.zo-field label,.zo-filter label{font-size:11px !important}
.zo-field input,.zo-field select,.zo-filter input,.zo-filter select,.field input,.field textarea,.field select{min-height:38px !important;height:38px !important;border-radius:12px !important;font-size:12px !important;padding:0 11px !important}
textarea,.field textarea{height:auto !important;min-height:90px !important;padding:10px 11px !important}
.zo-btn,.btn{min-height:38px !important;border-radius:12px !important;font-size:12px !important;padding:0 13px !important}
.zo-table th,.zo-table td,table th,table td{padding:8px 10px !important;font-size:12px !important}
.zo-collapse summary{min-height:46px !important}
.zo-count{font-size:11px !important;padding:4px 9px !important}
.admin-footer{padding:16px 0 0 !important;margin-top:20px !important}

@media(min-width:1400px){
  .admin-main{padding-left:24px !important;padding-right:24px !important}
  .admin-grid.admin-modern-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
  .admin-status-grid{grid-template-columns:repeat(5,minmax(0,1fr)) !important}
}
@media(max-width:1180px){
  .admin-shell{grid-template-columns:210px 1fr !important}
  .admin-grid.admin-modern-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .admin-status-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
@media(max-width:900px){
  .admin-main{padding:16px !important}
  .admin-top{margin:-16px -16px 16px !important;padding:14px 16px !important}
}



/* === KCSerwis Zlecenia online Compact 2 — mocne zagęszczenie + 1920x1080 === */
body:has(.zo-page) .admin-main{
  padding-top:14px !important;
  padding-bottom:34px !important;
}

.zo-page{
  gap:12px !important;
}

.zo-page > .zo-card,
.zo-card{
  padding:14px 16px !important;
  border-radius:16px !important;
  margin-bottom:10px !important;
}

.zo-card > h2,
.zo-page h2{
  font-size:24px !important;
  line-height:1.08 !important;
  margin:0 0 8px !important;
}

.zo-card > p,
.zo-footer-note{
  font-size:12px !important;
  line-height:1.35 !important;
  margin:0 0 10px !important;
}

.zo-head{
  margin-bottom:10px !important;
}

.zo-head .zo-btn,
.zo-head button{
  min-height:36px !important;
  height:36px !important;
  padding:0 12px !important;
  font-size:12px !important;
}

.zo-stats,
.zo-stats-grid{
  gap:8px !important;
  margin:8px 0 10px !important;
}

.zo-stat{
  min-height:52px !important;
  padding:9px 11px !important;
  border-radius:12px !important;
}

.zo-stat span{
  font-size:9px !important;
  letter-spacing:.045em !important;
  margin-bottom:2px !important;
}

.zo-stat strong{
  font-size:17px !important;
  line-height:1.05 !important;
}

.zo-filters,
.zo-filter-grid{
  gap:8px !important;
  margin-top:8px !important;
}

.zo-field,
.zo-filter{
  gap:4px !important;
}

.zo-field label,
.zo-filter label{
  font-size:10px !important;
  margin-bottom:3px !important;
}

.zo-field input,
.zo-field select,
.zo-filter input,
.zo-filter select{
  height:34px !important;
  min-height:34px !important;
  border-radius:10px !important;
  padding:0 10px !important;
  font-size:11px !important;
}

.zo-actions,
.zo-filter-actions{
  gap:6px !important;
  margin-top:8px !important;
}

.zo-btn{
  min-height:34px !important;
  height:34px !important;
  padding:0 11px !important;
  border-radius:10px !important;
  font-size:11px !important;
}

.zo-collapse{
  padding:0 !important;
  overflow:hidden !important;
}

.zo-collapse > summary{
  min-height:46px !important;
  padding:0 14px !important;
  border-radius:16px !important;
}

.zo-collapse[open] > summary{
  border-bottom:1px solid rgba(37,57,92,.10) !important;
  border-radius:16px 16px 0 0 !important;
}

.zo-collapse-body{
  padding:12px 14px 14px !important;
}

.zo-section-title{
  gap:8px !important;
}

.zo-section-title h3{
  font-size:16px !important;
  line-height:1.1 !important;
}

.zo-count{
  font-size:10px !important;
  padding:3px 8px !important;
  border-radius:999px !important;
}

.zo-table-wrap{
  border-radius:12px !important;
}

.zo-table{
  font-size:11px !important;
}

.zo-table th{
  padding:7px 8px !important;
  font-size:10px !important;
  line-height:1.1 !important;
}

.zo-table td{
  padding:7px 8px !important;
  font-size:11px !important;
  line-height:1.2 !important;
}

.zo-table .zo-empty{
  padding:16px !important;
}

.zo-chip{
  font-size:10px !important;
  padding:3px 7px !important;
  border-radius:999px !important;
}

.zo-token{
  font-size:10px !important;
}

.zo-client-main strong{
  font-size:12px !important;
}

.zo-client-sub,
.zo-muted,
.zo-msg-disabled{
  font-size:10px !important;
}

.zo-msg-form{
  gap:6px !important;
  min-width:300px !important;
}

.zo-msg-form input{
  height:34px !important;
  min-height:34px !important;
  font-size:11px !important;
  border-radius:10px !important;
}

.zo-msg-form textarea{
  min-height:62px !important;
  font-size:11px !important;
  border-radius:10px !important;
}

.zo-section-tools{
  gap:10px !important;
  margin-bottom:8px !important;
}

.zo-section-tools .zo-btn{
  height:34px !important;
  min-height:34px !important;
  white-space:nowrap !important;
}

/* Zlecenia online: mniej pionu w dużym panelu filtrów */
.zo-page .zo-card:first-child{
  padding:18px 20px !important;
}

.zo-page .zo-card:first-child .zo-stats{
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
}

/* Sortowanie linkami w tabeli nie powinno wyglądać jak zwykły duży przycisk */
.zo-table th a{
  color:inherit !important;
  text-decoration:none !important;
  display:inline-flex;
  align-items:center;
  gap:4px;
}

.zo-table th a:hover{
  color:#2563eb !important;
}

/* Węższy, praktyczniejszy topbar w zleceniach */
body:has(.zo-page) .admin-top{
  min-height:66px !important;
  padding-top:12px !important;
  padding-bottom:12px !important;
}

body:has(.zo-page) .admin-top h1{
  font-size:24px !important;
}

body:has(.zo-page) .admin-page-meta{
  font-size:11px !important;
  padding:5px 9px !important;
}

@media(max-width:1500px){
  .zo-page .zo-card:first-child .zo-stats{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
}

@media(max-width:900px){
  .zo-page .zo-card:first-child .zo-stats{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .zo-msg-form{min-width:0 !important}
}



/* === KCSerwis Panel Polish 2 — topbar + centrowanie kafelków === */

/* Górna belka: bardziej zwarta, równa i mniej dominująca */
.admin-top{
  margin:-18px -26px 18px !important;
  padding:14px 24px !important;
  min-height:68px !important;
  border-radius:0 0 18px 18px !important;
  align-items:center !important;
}

.admin-top-left{
  align-items:center !important;
  min-width:0 !important;
}

.admin-top-main{
  display:grid !important;
  gap:1px !important;
}

.admin-title-row{
  align-items:center !important;
  gap:10px !important;
}

.admin-top h1{
  font-size:24px !important;
  line-height:1 !important;
  letter-spacing:-.035em !important;
}

.admin-top small{
  font-size:11px !important;
  line-height:1.1 !important;
  margin:0 !important;
}

.admin-menu-button{
  width:38px !important;
  height:38px !important;
  border-radius:12px !important;
  box-shadow:0 8px 18px rgba(15,23,42,.06) !important;
}

.admin-page-meta{
  padding:5px 10px !important;
  font-size:11px !important;
  line-height:1.1 !important;
}

.admin-top-actions{
  align-items:center !important;
  gap:8px !important;
}

.admin-theme-select-wrap,
.admin-top .btn.small{
  min-height:38px !important;
  height:38px !important;
  border-radius:12px !important;
  box-shadow:0 8px 18px rgba(15,23,42,.055) !important;
}

/* Start: kafelki Szybki dostęp mają być wizualnie wyśrodkowane i równe */
.admin-card{
  justify-content:center !important;
  text-align:center !important;
  padding:14px 44px 14px 44px !important;
}

.admin-card-icon{
  margin:0 auto !important;
}

.admin-card-text{
  display:grid !important;
  justify-items:center !important;
  text-align:center !important;
  min-width:0 !important;
}

.admin-card-text strong,
.admin-card-text span{
  text-align:center !important;
}

.admin-card em{
  right:16px !important;
}

/* Szybki stan: zawartość statystyk wyśrodkowana */
.admin-status-grid{
  align-items:stretch !important;
}

.admin-status-tile{
  justify-content:center !important;
  text-align:center !important;
  flex-direction:column !important;
  gap:8px !important;
  min-height:92px !important;
}

.admin-status-tile>b{
  margin:0 auto !important;
}

.admin-status-tile span{
  display:grid !important;
  justify-items:center !important;
  text-align:center !important;
}

.admin-status-tile small,
.admin-status-tile strong,
.admin-status-tile em{
  text-align:center !important;
}

/* Hero na Start: delikatnie niższy, żeby całość mniej uciekała w dół */
.admin-hero-card{
  min-height:104px !important;
  padding:20px 26px !important;
}

.admin-hero-card h2{
  font-size:24px !important;
}

/* Na podstronach typu Zlecenia online górna belka jeszcze ciaśniejsza */
body:has(.zo-page) .admin-top{
  min-height:62px !important;
  padding-top:10px !important;
  padding-bottom:10px !important;
}

body:has(.zo-page) .admin-top h1{
  font-size:23px !important;
}

/* Na mniejszych szerokościach niech akcje z topbara nie ściskają tytułu */
@media(max-width:1200px){
  .admin-top{
    display:grid !important;
    gap:12px !important;
  }

  .admin-top-actions{
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
  }
}

@media(max-width:900px){
  .admin-top{
    margin:-16px -16px 16px !important;
    padding:12px 16px !important;
    border-radius:0 0 16px 16px !important;
  }

  .admin-card{
    padding-left:36px !important;
    padding-right:36px !important;
  }
}



/* === KCSerwis Panel Polish 3 — topbar jako karta, nie przyklejona belka === */
.admin-main{
  padding-top:18px !important;
}

.admin-top{
  position:relative !important;
  top:auto !important;
  margin:0 0 18px 0 !important;
  padding:14px 20px !important;
  min-height:66px !important;
  border-radius:20px !important;
  border:1px solid rgba(37,57,92,.13) !important;
  background:rgba(255,255,255,.88) !important;
  box-shadow:0 16px 42px rgba(30,64,175,.075) !important;
  backdrop-filter:blur(16px);
}

.admin-top:before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(37,99,235,.035),transparent 42%,rgba(37,99,235,.045));
}

.admin-top-left,
.admin-top-actions{
  position:relative;
  z-index:1;
}

.admin-menu-button{
  background:#fff !important;
}

.admin-top .btn.small,
.admin-theme-select-wrap{
  background:#fff !important;
}

/* Topbar na stronach typu Zlecenia online też jako karta, nie jako pełna belka */
body:has(.zo-page) .admin-main{
  padding-top:18px !important;
}

body:has(.zo-page) .admin-top{
  margin:0 0 16px 0 !important;
  padding:12px 18px !important;
  min-height:62px !important;
  border-radius:18px !important;
}

/* Start ma teraz taki sam rytm jak pozostałe karty */
.admin-modern-dashboard{
  margin-top:0 !important;
}

/* Drobne wyrównanie szerokości wizualnej */
.admin-hero-card,
.admin-dashboard-group,
.admin-modern-status-panel,
.zo-page > .zo-card,
.zo-card,
.admin-main .panel{
  margin-left:0 !important;
  margin-right:0 !important;
}

/* Ciemny motyw: topbar jako karta */
html[data-admin-theme="dark"] .admin-top{
  background:rgba(13,25,44,.88) !important;
  border-color:rgba(148,163,184,.20) !important;
  box-shadow:0 16px 42px rgba(0,0,0,.18) !important;
}

html[data-admin-theme="dark"] .admin-top:before{
  background:linear-gradient(90deg,rgba(96,165,250,.06),transparent 42%,rgba(96,165,250,.05));
}

html[data-admin-theme="dark"] .admin-menu-button,
html[data-admin-theme="dark"] .admin-top .btn.small,
html[data-admin-theme="dark"] .admin-theme-select-wrap{
  background:rgba(9,20,38,.92) !important;
}

/* Mobile */
@media(max-width:900px){
  .admin-main{
    padding-top:14px !important;
  }

  .admin-top,
  body:has(.zo-page) .admin-top{
    margin:0 0 14px 0 !important;
    padding:12px 14px !important;
    border-radius:16px !important;
  }
}


/* === KCSerwis Users Panel 1 === */
.users-hero{display:flex;align-items:center;justify-content:space-between;gap:16px}
.users-hero h2,.users-panel h2{margin:0 0 6px;font-size:22px;letter-spacing:-.035em}
.users-pill{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border-radius:999px;background:#eaf1ff;color:#1d4ed8;font-weight:950;border:1px solid rgba(37,99,235,.14)}
.users-list{display:grid;gap:10px}.user-card{border:1px solid rgba(37,57,92,.13);border-radius:16px;background:#fff;overflow:hidden}.user-card summary{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 16px;cursor:pointer;list-style:none}.user-card summary::-webkit-details-marker{display:none}.user-card summary strong{display:block;font-size:15px}.user-card summary small{display:block;color:#657a98;font-size:12px;margin-top:2px}.user-badges{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.role,.state{display:inline-flex;align-items:center;justify-content:center;min-height:24px;border-radius:999px;padding:0 9px;font-size:11px;font-weight:950}.role-admin{background:#eaf1ff;color:#1d4ed8}.role-editor{background:#f1eaff;color:#7c3aed}.role-viewer{background:#f1f5f9;color:#475569}.state.on{background:#dcfce7;color:#15803d}.state.off{background:#fee2e2;color:#b91c1c}.user-card-body{display:grid;grid-template-columns:1.35fr .85fr;gap:14px;border-top:1px solid rgba(37,57,92,.10);padding:14px 16px}.user-form{display:grid;gap:10px}.user-form.add-user{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.user-form.add-user .actions{grid-column:1/-1}.checkline{display:flex;align-items:center;gap:8px;font-weight:850;color:#20324d}.checkline input{width:18px;height:18px}.user-meta{display:flex;gap:12px;flex-wrap:wrap;color:#7186a3;font-size:11px;font-weight:800}.password-reset{border-left:1px solid rgba(37,57,92,.10);padding-left:14px}
html[data-admin-theme="dark"] .user-card{background:rgba(13,25,44,.88);border-color:rgba(148,163,184,.20)}html[data-admin-theme="dark"] .user-card summary small,.html[data-admin-theme="dark"] .user-meta{color:#b8c4d6}html[data-admin-theme="dark"] .user-card-body{border-color:rgba(148,163,184,.20)}html[data-admin-theme="dark"] .password-reset{border-color:rgba(148,163,184,.20)}
@media(max-width:900px){.user-card-body,.user-form.add-user{grid-template-columns:1fr}.password-reset{border-left:0;border-top:1px solid rgba(37,57,92,.10);padding-left:0;padding-top:14px}.users-hero{display:block}.users-pill{margin-top:10px}}


/* === Company users 1 === */
.role-super_admin{background:#eaf1ff;color:#1d4ed8}
.role-company_admin{background:#e7fbf8;color:#0f766e}
.company-scope-note{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(20,184,166,.18);
  background:#ecfdf5;
  color:#047857;
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  font-weight:900;
}
html[data-admin-theme="dark"] .company-scope-note{
  background:rgba(20,184,166,.13);
  color:#99f6e4;
  border-color:rgba(45,212,191,.20);
}



/* === Company View 2 — prosty panel firmowy === */
.company-access-note{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 18px !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,#ffffff,#f5f9ff) !important;
}
.company-access-note strong{font-size:15px;color:#0f172a}
.company-access-note span{color:#58708f;font-size:13px;font-weight:750;text-align:right}
html[data-admin-theme="dark"] .company-access-note{background:rgba(13,25,44,.88) !important}
html[data-admin-theme="dark"] .company-access-note strong{color:#f4f8ff}
html[data-admin-theme="dark"] .company-access-note span{color:#b8c4d6}

.admin-dashboard:has(.company-access-note) .admin-modern-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
.admin-dashboard:has(.company-access-note) .admin-status-grid{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
@media(max-width:900px){
  .company-access-note{flex-direction:column;align-items:flex-start}
  .company-access-note span{text-align:left}
  .admin-dashboard:has(.company-access-note) .admin-modern-grid,
  .admin-dashboard:has(.company-access-note) .admin-status-grid{grid-template-columns:1fr !important}
}



/* === Company View 3 — account polish === */
.company-account-panel{
  display:grid;
  gap:14px;
}
.account-info-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.account-info-grid div{
  border:1px solid rgba(37,57,92,.13);
  background:#fff;
  border-radius:16px;
  padding:13px 14px;
}
.account-info-grid small{
  display:block;
  color:#7186a3;
  text-transform:uppercase;
  letter-spacing:.045em;
  font-size:10px;
  font-weight:950;
  margin-bottom:4px;
}
.account-info-grid strong{
  display:block;
  color:#0f172a;
  font-size:14px;
  font-weight:950;
  overflow-wrap:anywhere;
}
.account-note{
  margin:0;
  font-size:12px;
}
html[data-admin-theme="dark"] .account-info-grid div{
  background:rgba(9,20,38,.92);
  border-color:rgba(148,163,184,.22);
}
html[data-admin-theme="dark"] .account-info-grid strong{
  color:#f4f8ff;
}
@media(max-width:900px){
  .account-info-grid{
    grid-template-columns:1fr;
  }
}



/* === KCSerwis Panel Users Style + sharper font 1 === */

/* Ostrzejsza, mniej "miękka" czcionka w całym panelu */
html,
body,
button,
input,
select,
textarea {
  -webkit-font-smoothing: subpixel-antialiased !important;
  -moz-osx-font-smoothing: auto !important;
  text-rendering: geometricPrecision !important;
}

.admin-body {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
  color:#061329 !important;
}

.admin-main,
.admin-sidebar,
.admin-top,
.panel,
.zo-card,
.admin-card,
.admin-status-tile {
  font-weight:520;
}

p,
small,
.muted,
.field small,
.admin-card-text span,
.admin-section-title small,
.admin-status-head p,
.admin-footer span,
.admin-footer small {
  color:#435a78 !important;
  font-weight:650 !important;
}

h1,h2,h3,h4,
.admin-card-text strong,
.admin-status-tile strong,
.zo-stat strong,
.user-card summary strong {
  color:#050f22 !important;
  font-weight:850 !important;
  letter-spacing:-.025em;
}

html[data-admin-theme="dark"] .admin-body,
html[data-admin-theme="dark"] h1,
html[data-admin-theme="dark"] h2,
html[data-admin-theme="dark"] h3,
html[data-admin-theme="dark"] h4,
html[data-admin-theme="dark"] .admin-card-text strong,
html[data-admin-theme="dark"] .admin-status-tile strong,
html[data-admin-theme="dark"] .zo-stat strong,
html[data-admin-theme="dark"] .user-card summary strong {
  color:#f5f8ff !important;
}

html[data-admin-theme="dark"] p,
html[data-admin-theme="dark"] small,
html[data-admin-theme="dark"] .muted,
html[data-admin-theme="dark"] .field small,
html[data-admin-theme="dark"] .admin-card-text span,
html[data-admin-theme="dark"] .admin-section-title small,
html[data-admin-theme="dark"] .admin-status-head p {
  color:#b8c6da !important;
}

/* Użytkownicy panelu — więcej oddechu i czytelniejszy układ */
.users-hero,
.users-panel {
  margin-bottom:18px !important;
}

.users-hero {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px !important;
}

.users-hero h2,
.users-panel h2 {
  margin:0 0 6px !important;
  font-size:25px !important;
  line-height:1.1 !important;
}

.users-hero .muted,
.users-panel .muted {
  max-width:880px;
  line-height:1.45 !important;
}

.users-pill {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  background:#eaf1ff;
  color:#1d4ed8;
  border:1px solid rgba(37,99,235,.12);
  font-weight:850;
  white-space:nowrap;
}

.users-panel {
  padding:22px 24px !important;
}

.users-panel .panel-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}

.users-list {
  display:grid;
  gap:12px;
}

.user-card {
  border:1px solid rgba(37,57,92,.14);
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(15,23,42,.045);
}

.user-card + .user-card {
  margin-top:0 !important;
}

.user-card summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:62px;
  padding:14px 18px;
  list-style:none;
  cursor:pointer;
}

.user-card summary::-webkit-details-marker {
  display:none;
}

.user-card summary span:first-child {
  display:grid;
  gap:3px;
  min-width:0;
}

.user-card summary strong {
  font-size:15px;
}

.user-card summary small {
  font-size:12px;
  color:#526984 !important;
}

.user-badges {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.user-badges b,
.role,
.state {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:25px;
  padding:0 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:850;
  white-space:nowrap;
}

.state.on {
  background:#dcfce7;
  color:#15803d;
}

.state.off {
  background:#fee2e2;
  color:#b91c1c;
}

.user-card-body {
  border-top:1px solid rgba(37,57,92,.10);
  padding:18px;
  display:grid;
  gap:18px;
  background:linear-gradient(180deg,#fbfdff,#ffffff);
}

.user-form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 16px;
  align-items:start;
}

.user-form .field {
  margin:0 !important;
}

.user-form .field span {
  font-size:12px;
  font-weight:850;
  color:#172540;
  margin-bottom:6px;
}

.user-form .field input,
.user-form .field select {
  width:100%;
  min-height:40px !important;
  height:40px !important;
  border-radius:12px !important;
  font-size:13px !important;
  background:#fff !important;
}

.user-form .field small {
  display:block;
  margin-top:5px;
  font-size:11px !important;
  line-height:1.3;
}

.user-form .checkline,
.user-form .user-meta,
.user-form .actions {
  grid-column:1 / -1;
}

.checkline {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:38px;
  color:#172540;
  font-size:13px;
  font-weight:750;
}

.checkline input {
  width:17px;
  height:17px;
  accent-color:#2563eb;
}

.user-meta {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:#526984;
  font-size:11px;
}

.user-meta span {
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 9px;
  border-radius:999px;
  background:#f1f5ff;
  border:1px solid rgba(37,57,92,.08);
}

.password-reset {
  border-top:1px dashed rgba(37,57,92,.18);
  padding-top:16px;
}

.add-user {
  margin-top:12px;
}

.add-user .actions {
  margin-top:4px !important;
}

.users-panel .btn,
.user-form .btn {
  min-height:40px !important;
  border-radius:12px !important;
  font-size:13px !important;
  font-weight:850 !important;
}

/* Formularz dodawania — pełna szerokość i równy rytm */
.users-panel > .user-form.add-user {
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.users-panel > .user-form.add-user .field:nth-last-child(3) {
  grid-column:auto;
}

/* Drobne dopracowanie paneli ogólnie */
.admin-main .panel {
  margin-bottom:18px !important;
}

.panel + .panel {
  margin-top:0 !important;
}

.field span {
  color:#172540 !important;
  font-weight:850 !important;
}

.field input,
.field textarea,
.field select {
  color:#07152f !important;
  font-weight:560 !important;
}

.field input::placeholder,
.field textarea::placeholder {
  color:#8a9bb2 !important;
  opacity:1 !important;
}

html[data-admin-theme="dark"] .user-card,
html[data-admin-theme="dark"] .account-info-grid div {
  background:rgba(9,20,38,.92);
  border-color:rgba(148,163,184,.22);
}

html[data-admin-theme="dark"] .user-card-body {
  background:linear-gradient(180deg,rgba(13,25,44,.88),rgba(9,20,38,.92));
  border-color:rgba(148,163,184,.20);
}

html[data-admin-theme="dark"] .user-form .field span,
html[data-admin-theme="dark"] .field span,
html[data-admin-theme="dark"] .checkline {
  color:#eaf1ff !important;
}

html[data-admin-theme="dark"] .field input,
html[data-admin-theme="dark"] .field textarea,
html[data-admin-theme="dark"] .field select,
html[data-admin-theme="dark"] .user-form .field input,
html[data-admin-theme="dark"] .user-form .field select {
  background:rgba(2,6,23,.30) !important;
  color:#f5f8ff !important;
}

html[data-admin-theme="dark"] .user-meta span {
  background:rgba(37,99,235,.12);
  border-color:rgba(96,165,250,.18);
}

@media(max-width:1000px){
  .user-form,
  .users-panel > .user-form.add-user {
    grid-template-columns:1fr;
  }

  .users-hero,
  .user-card summary {
    flex-direction:column;
    align-items:flex-start;
  }

  .user-badges {
    justify-content:flex-start;
  }
}



/* === KCSerwis Panel Font/Form Fix 2 — ostrzejsza czcionka + hasła w formularzu === */

/* Cofnięcie zbyt ciężkiego/rozmazanego renderowania z poprzedniej poprawki */
html,
body,
button,
input,
select,
textarea {
  font-family: "Segoe UI Variable", "Segoe UI", Tahoma, Arial, sans-serif !important;
  -webkit-font-smoothing: auto !important;
  -moz-osx-font-smoothing: auto !important;
  text-rendering: auto !important;
}

.admin-body {
  font-weight:400 !important;
  color:#07152f !important;
}

.admin-main,
.admin-sidebar,
.admin-top,
.panel,
.zo-card,
.admin-card,
.admin-status-tile {
  font-weight:400 !important;
}

/* Lżejsze, ostrzejsze teksty pomocnicze */
p,
small,
.muted,
.field small,
.admin-card-text span,
.admin-section-title small,
.admin-status-head p,
.admin-footer span,
.admin-footer small,
.user-card summary small {
  color:#4c607a !important;
  font-weight:500 !important;
}

/* Nagłówki mocne, ale nie "zalane" */
h1,h2,h3,h4,
.admin-card-text strong,
.admin-status-tile strong,
.zo-stat strong,
.user-card summary strong {
  color:#061329 !important;
  font-weight:700 !important;
  letter-spacing:-.015em !important;
}

/* Menu i przyciski czytelne, ale bez przesadnego bolda */
.admin-nav-text strong,
.btn,
.zo-btn,
.users-panel .btn,
.user-form .btn,
.admin-top .btn.small,
.admin-theme-select-wrap select {
  font-weight:650 !important;
}

.admin-nav-section,
.field span,
.user-form .field span {
  font-weight:650 !important;
  color:#172540 !important;
}

/* Pola formularzy — tekst lżejszy i ostrzejszy */
.field input,
.field textarea,
.field select,
.user-form .field input,
.user-form .field select {
  font-weight:400 !important;
  font-size:13px !important;
  color:#07152f !important;
}

/* Użytkownicy panelu — wyrównanie formularza dodawania */
.users-panel > .user-form.add-user {
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:14px 16px !important;
  align-items:start !important;
}

/*
Kolejność pól w formularzu:
1 Login, 2 Imię, 3 Nazwisko, 4 E-mail, 5 Rola, 6 Nazwa firmy,
7 NIP, 8 Hasło, 9 Powtórz hasło.
NIP dajemy na pełną szerokość, żeby Hasło i Powtórz hasło były obok siebie.
*/
.users-panel > .user-form.add-user .field:nth-of-type(7) {
  grid-column:1 / -1 !important;
}

.users-panel > .user-form.add-user .field:nth-of-type(8) {
  grid-column:1 / 2 !important;
}

.users-panel > .user-form.add-user .field:nth-of-type(9) {
  grid-column:2 / 3 !important;
}

.users-panel > .user-form.add-user .actions {
  grid-column:1 / -1 !important;
}

/* Żeby pola nie wyglądały na rozjechane przez różne wysokości hintów */
.users-panel > .user-form.add-user .field {
  align-self:start !important;
}

.users-panel > .user-form.add-user .field input,
.users-panel > .user-form.add-user .field select {
  box-sizing:border-box !important;
}

/* Lista użytkowników — mniej agresywny bold */
.user-card summary strong {
  font-size:15px !important;
  font-weight:700 !important;
}

.user-badges b,
.role,
.state {
  font-weight:650 !important;
}

/* Ciemny motyw */
html[data-admin-theme="dark"] .admin-body {
  color:#f4f8ff !important;
}

html[data-admin-theme="dark"] h1,
html[data-admin-theme="dark"] h2,
html[data-admin-theme="dark"] h3,
html[data-admin-theme="dark"] h4,
html[data-admin-theme="dark"] .admin-card-text strong,
html[data-admin-theme="dark"] .admin-status-tile strong,
html[data-admin-theme="dark"] .zo-stat strong,
html[data-admin-theme="dark"] .user-card summary strong {
  color:#f4f8ff !important;
}

html[data-admin-theme="dark"] p,
html[data-admin-theme="dark"] small,
html[data-admin-theme="dark"] .muted,
html[data-admin-theme="dark"] .field small,
html[data-admin-theme="dark"] .admin-card-text span,
html[data-admin-theme="dark"] .admin-section-title small,
html[data-admin-theme="dark"] .admin-status-head p,
html[data-admin-theme="dark"] .user-card summary small {
  color:#b8c6da !important;
  font-weight:500 !important;
}

html[data-admin-theme="dark"] .field input,
html[data-admin-theme="dark"] .field textarea,
html[data-admin-theme="dark"] .field select,
html[data-admin-theme="dark"] .user-form .field input,
html[data-admin-theme="dark"] .user-form .field select {
  color:#f4f8ff !important;
  font-weight:400 !important;
}

/* Mobile */
@media(max-width:1000px){
  .users-panel > .user-form.add-user,
  .users-panel > .user-form.add-user .field:nth-of-type(7),
  .users-panel > .user-form.add-user .field:nth-of-type(8),
  .users-panel > .user-form.add-user .field:nth-of-type(9) {
    grid-column:1 / -1 !important;
  }
}



/* === KCSerwis Public Style Firewall 1 === */
/* Publiczna strona nie może łapać panelowych kolorów i font-weightów. */

body:not(.admin-body):not(.login-body) {
  color:#d7e6f7 !important;
  font-family:"Segoe UI Variable","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif !important;
  font-weight:400 !important;
  -webkit-font-smoothing:antialiased !important;
  -moz-osx-font-smoothing:grayscale !important;
  text-rendering:optimizeLegibility !important;
}

/* Nagłówki strony publicznej — jasne na ciemnym tle */
body:not(.admin-body):not(.login-body) h1,
body:not(.admin-body):not(.login-body) h2,
body:not(.admin-body):not(.login-body) h3,
body:not(.admin-body):not(.login-body) h4,
body:not(.admin-body):not(.login-body) h5,
body:not(.admin-body):not(.login-body) h6,
body:not(.admin-body):not(.login-body) strong {
  color:#f6fbff !important;
  font-weight:750 !important;
  letter-spacing:-.02em !important;
}

/* Opisy i teksty pomocnicze na stronie publicznej */
body:not(.admin-body):not(.login-body) p,
body:not(.admin-body):not(.login-body) li,
body:not(.admin-body):not(.login-body) span,
body:not(.admin-body):not(.login-body) small {
  color:inherit;
}

/* Sekcje publiczne — przywrócenie kontrastu */
body:not(.admin-body):not(.login-body) .hero p,
body:not(.admin-body):not(.login-body) .lead,
body:not(.admin-body):not(.login-body) .muted,
body:not(.admin-body):not(.login-body) .section-kicker,
body:not(.admin-body):not(.login-body) .card p,
body:not(.admin-body):not(.login-body) .feature-card p {
  color:#9fb6d5 !important;
  font-weight:450 !important;
}

/* Logo/menu publiczne */
body:not(.admin-body):not(.login-body) header,
body:not(.admin-body):not(.login-body) nav {
  color:#dbeafe !important;
}

body:not(.admin-body):not(.login-body) nav a,
body:not(.admin-body):not(.login-body) header a {
  color:#eaf2ff !important;
  font-weight:700 !important;
}

body:not(.admin-body):not(.login-body) nav a:hover,
body:not(.admin-body):not(.login-body) header a:hover {
  color:#ffffff !important;
}

/* Karty publiczne */
body:not(.admin-body):not(.login-body) .card,
body:not(.admin-body):not(.login-body) .feature-card,
body:not(.admin-body):not(.login-body) .screen-card {
  color:#d7e6f7 !important;
}

/* Przyciski publiczne */
body:not(.admin-body):not(.login-body) .btn,
body:not(.admin-body):not(.login-body) a.btn,
body:not(.admin-body):not(.login-body) button.btn {
  font-weight:750 !important;
}

/* Formularz logowania — zawsze jasny i odseparowany od motywu panelu */
body.login-body {
  color:#07152f !important;
  background:
    radial-gradient(circle at 78% 10%, rgba(37,99,235,.13), transparent 32%),
    linear-gradient(135deg,#f8fbff 0%,#eaf2ff 100%) !important;
  color-scheme:light !important;
}

body.login-body h1,
body.login-body h2,
body.login-body h3,
body.login-body label,
body.login-body strong {
  color:#07152f !important;
}

body.login-body p,
body.login-body small {
  color:#435a78 !important;
}

body.login-body input {
  background:#ffffff !important;
  color:#07152f !important;
  border-color:rgba(37,57,92,.22) !important;
  color-scheme:light !important;
}

body.login-body button,
body.login-body .btn {
  color:#ffffff !important;
}

/* Stopka logowania, jeśli login.php ją ma lub dodamy później */
.login-footer {
  width:min(520px, calc(100vw - 32px));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#506886 !important;
  font-size:12px;
  font-weight:550;
  padding:0 4px;
}

.login-footer strong {
  color:#07152f !important;
  font-weight:750;
}

.login-footer span {
  color:#506886 !important;
}



/* =========================================================
   KCSerwis CSS split — PUBLIC firewall
   Publiczna strona używa tylko /assets/styles.css.
   Panel używa /assets/admin.css.
   Logowanie używa /assets/login.css.
   ========================================================= */

body:not(.admin-body):not(.login-body) {
  color:#d7e6f7 !important;
  font-family:"Segoe UI Variable","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif !important;
  font-weight:400 !important;
  -webkit-font-smoothing:antialiased !important;
  -moz-osx-font-smoothing:grayscale !important;
  text-rendering:optimizeLegibility !important;
}

body:not(.admin-body):not(.login-body) h1,
body:not(.admin-body):not(.login-body) h2,
body:not(.admin-body):not(.login-body) h3,
body:not(.admin-body):not(.login-body) h4,
body:not(.admin-body):not(.login-body) h5,
body:not(.admin-body):not(.login-body) h6,
body:not(.admin-body):not(.login-body) strong {
  color:#f6fbff !important;
  font-weight:750 !important;
  letter-spacing:-.02em !important;
}

body:not(.admin-body):not(.login-body) p,
body:not(.admin-body):not(.login-body) li,
body:not(.admin-body):not(.login-body) span,
body:not(.admin-body):not(.login-body) small {
  color:inherit;
}

body:not(.admin-body):not(.login-body) .hero p,
body:not(.admin-body):not(.login-body) .lead,
body:not(.admin-body):not(.login-body) .muted,
body:not(.admin-body):not(.login-body) .section-kicker,
body:not(.admin-body):not(.login-body) .card p,
body:not(.admin-body):not(.login-body) .feature-card p,
body:not(.admin-body):not(.login-body) .screen-card p,
body:not(.admin-body):not(.login-body) .change-card li,
body:not(.admin-body):not(.login-body) .contact-card p {
  color:#9fb6d5 !important;
  font-weight:450 !important;
}

body:not(.admin-body):not(.login-body) header,
body:not(.admin-body):not(.login-body) nav {
  color:#dbeafe !important;
}

body:not(.admin-body):not(.login-body) nav a,
body:not(.admin-body):not(.login-body) header a {
  color:#eaf2ff !important;
  font-weight:700 !important;
}

body:not(.admin-body):not(.login-body) nav a:hover,
body:not(.admin-body):not(.login-body) header a:hover {
  color:#ffffff !important;
}

body:not(.admin-body):not(.login-body) .card,
body:not(.admin-body):not(.login-body) .feature-card,
body:not(.admin-body):not(.login-body) .screen-card {
  color:#d7e6f7 !important;
}

body:not(.admin-body):not(.login-body) .btn,
body:not(.admin-body):not(.login-body) a.btn,
body:not(.admin-body):not(.login-body) button.btn {
  font-weight:750 !important;
}



/* =========================================================
   KCSerwis WWW — Light Theme Fix 1
   Poprawka tylko dla strony publicznej.
   Jasny motyw nie może mieć białych nagłówków i wypranych tekstów.
   ========================================================= */

@media (prefers-color-scheme: light){

  body:not(.admin-body):not(.login-body){
    color:#0f172a !important;
    background:
      radial-gradient(circle at 14% 8%,rgba(37,99,235,.10),transparent 32%),
      radial-gradient(circle at 88% 6%,rgba(14,165,233,.14),transparent 34%),
      linear-gradient(140deg,#f8fbff 0%,#eaf3ff 100%) !important;
  }

  body:not(.admin-body):not(.login-body) h1,
  body:not(.admin-body):not(.login-body) h2,
  body:not(.admin-body):not(.login-body) h3,
  body:not(.admin-body):not(.login-body) h4,
  body:not(.admin-body):not(.login-body) h5,
  body:not(.admin-body):not(.login-body) h6,
  body:not(.admin-body):not(.login-body) strong{
    color:#07152f !important;
    text-shadow:none !important;
    font-weight:800 !important;
  }

  body:not(.admin-body):not(.login-body) p,
  body:not(.admin-body):not(.login-body) li,
  body:not(.admin-body):not(.login-body) span,
  body:not(.admin-body):not(.login-body) small{
    color:inherit;
  }

  body:not(.admin-body):not(.login-body) .lead,
  body:not(.admin-body):not(.login-body) .muted,
  body:not(.admin-body):not(.login-body) .section-kicker,
  body:not(.admin-body):not(.login-body) .eyebrow,
  body:not(.admin-body):not(.login-body) .hero p,
  body:not(.admin-body):not(.login-body) .card p,
  body:not(.admin-body):not(.login-body) .feature-card p,
  body:not(.admin-body):not(.login-body) .screen-card p,
  body:not(.admin-body):not(.login-body) .change-card li,
  body:not(.admin-body):not(.login-body) .contact-card p{
    color:#475569 !important;
    font-weight:450 !important;
  }

  body:not(.admin-body):not(.login-body) .eyebrow,
  body:not(.admin-body):not(.login-body) .section-kicker{
    color:#2563eb !important;
    font-weight:850 !important;
  }

  body:not(.admin-body):not(.login-body) .site-header{
    background:rgba(248,251,255,.78) !important;
    border-bottom:1px solid rgba(37,57,92,.13) !important;
    box-shadow:0 14px 38px rgba(15,23,42,.08) !important;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }

  body:not(.admin-body):not(.login-body) .brand strong{
    color:#07152f !important;
  }

  body:not(.admin-body):not(.login-body) .brand small{
    color:#475569 !important;
  }

  body:not(.admin-body):not(.login-body) .main-nav a,
  body:not(.admin-body):not(.login-body) nav a,
  body:not(.admin-body):not(.login-body) header a{
    color:#1e293b !important;
    font-weight:750 !important;
  }

  body:not(.admin-body):not(.login-body) .main-nav a:hover,
  body:not(.admin-body):not(.login-body) nav a:hover,
  body:not(.admin-body):not(.login-body) header a:hover{
    color:#2563eb !important;
  }

  body:not(.admin-body):not(.login-body) .hero-panel,
  body:not(.admin-body):not(.login-body) .card,
  body:not(.admin-body):not(.login-body) .feature-card,
  body:not(.admin-body):not(.login-body) .screen-card,
  body:not(.admin-body):not(.login-body) .change-card,
  body:not(.admin-body):not(.login-body) .contact-card{
    background:rgba(255,255,255,.72) !important;
    border-color:rgba(37,57,92,.16) !important;
    color:#0f172a !important;
    box-shadow:0 24px 70px rgba(15,23,42,.08) !important;
  }

  body:not(.admin-body):not(.login-body) .simple-preview{
    background:rgba(255,255,255,.72) !important;
    border-color:rgba(37,99,235,.18) !important;
    box-shadow:0 26px 80px rgba(15,23,42,.08) !important;
  }

  body:not(.admin-body):not(.login-body) .preview-header,
  body:not(.admin-body):not(.login-body) .preview-menu{
    border-color:rgba(37,57,92,.13) !important;
  }

  body:not(.admin-body):not(.login-body) .preview-header span,
  body:not(.admin-body):not(.login-body) .preview-menu span,
  body:not(.admin-body):not(.login-body) .preview-list span{
    color:#64748b !important;
  }

  body:not(.admin-body):not(.login-body) .preview-menu .active{
    color:#1d4ed8 !important;
    background:rgba(37,99,235,.10) !important;
  }

  body:not(.admin-body):not(.login-body) .preview-list div{
    background:rgba(255,255,255,.78) !important;
    border-color:rgba(37,57,92,.16) !important;
  }

  body:not(.admin-body):not(.login-body) .hero-points span{
    color:#334155 !important;
    background:rgba(255,255,255,.58) !important;
    border-color:rgba(37,57,92,.16) !important;
  }

  body:not(.admin-body):not(.login-body) .btn{
    color:#0f172a !important;
    background:rgba(255,255,255,.72) !important;
    border-color:rgba(37,57,92,.18) !important;
    box-shadow:0 12px 28px rgba(15,23,42,.08) !important;
  }

  body:not(.admin-body):not(.login-body) .btn.primary{
    color:#ffffff !important;
    background:linear-gradient(135deg,#4f8cff,#2563eb) !important;
    border-color:transparent !important;
    box-shadow:0 18px 42px rgba(37,99,235,.24) !important;
  }

  body:not(.admin-body):not(.login-body) hr,
  body:not(.admin-body):not(.login-body) .section{
    border-color:rgba(37,57,92,.13) !important;
  }
}

/* Ciemny motyw zostaje ciemny i kontrastowy */
@media (prefers-color-scheme: dark){
  body:not(.admin-body):not(.login-body) h1,
  body:not(.admin-body):not(.login-body) h2,
  body:not(.admin-body):not(.login-body) h3,
  body:not(.admin-body):not(.login-body) h4,
  body:not(.admin-body):not(.login-body) h5,
  body:not(.admin-body):not(.login-body) h6,
  body:not(.admin-body):not(.login-body) strong{
    color:#f6fbff !important;
  }

  body:not(.admin-body):not(.login-body) .lead,
  body:not(.admin-body):not(.login-body) .muted,
  body:not(.admin-body):not(.login-body) .hero p,
  body:not(.admin-body):not(.login-body) .card p,
  body:not(.admin-body):not(.login-body) .feature-card p{
    color:#9fb6d5 !important;
  }
}
