/* Kolorystyka Boswena – jak boswena.pl / sprzedazilosc.crmboswena.pl / atesty.crmboswena.pl
   zieleń #09634B, limonka #C9D58B, jasna zieleń #F1F6F3, czcionka Nunito Sans.
   v1.9.0 – wygląd „Zielony nagłówek” + przełącznik dzień / noc (data-theme na <html>). */
:root {
  --brand: #09634B; --brand-dk: #074E3B;
  --lime: #C9D58B; --on-lime: #09634B;
  --bg: #F1F6F3; --panel: #FFFFFF; --line: #E3EDE8; --ink: #2E3B35; --text: #4A5A54; --muted: #8A958F; --soft: #F1F6F3;
  --olive: #09634B; --olive-2: #7FB2A2; --olive-soft: #E3EFEB; --on-olive: #FFFFFF;
  --good: #09634B; --good-bg: #E3EFEB; --mid: #8A6A10; --mid-bg: #FBF3D5;
  --warn: #B45A12; --warn-bg: #FCEBDB; --bad: #B42318; --bad-bg: #FBE3E1;
  --info: #2a78d6; --info-bg: #E6F0FB;
  --head-a: #09634B; --head-b: #074E3B; --head-ink: #FFFFFF; --head-muted: rgba(255,255,255,.75);
  --title: #09634B;
  --tile-shadow: color-mix(in srgb, var(--c, #09634B) 28%, transparent);
  --r: 18px; --rb: 12px;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(9,99,75,.04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --brand: #0B5A45; --brand-dk: #084434;
  --lime: #C9D58B; --on-lime: #0B3D2F;
  --bg: #1D2E28; --panel: #273A33; --line: #3C534A; --ink: #F3F7F5; --text: #E0E9E5; --muted: #B0BDB7; --soft: #2F443C;
  --olive: #3FB08D; --olive-2: #2F7661; --olive-soft: #2F443C; --on-olive: #1D2E28;
  --good: #6FD0AE; --good-bg: #17342A; --mid: #E8C45A; --mid-bg: #3A3217;
  --warn: #F2A764; --warn-bg: #3D2A18; --bad: #FF8A80; --bad-bg: #40201D;
  --info: #7DB3F2; --info-bg: #1A2A3D;
  --head-a: #106049; --head-b: #0B4A39; --head-ink: #F3F7F5; --head-muted: rgba(243,247,245,.75);
  --title: #86DDBD;
  --tile-shadow: rgba(0,0,0,.35);
  --shadow: 0 1px 3px rgba(0,0,0,.25);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --brand: #0B5A45; --brand-dk: #084434;
  --lime: #C9D58B; --on-lime: #0B3D2F;
  --bg: #1D2E28; --panel: #273A33; --line: #3C534A; --ink: #F3F7F5; --text: #E0E9E5; --muted: #B0BDB7; --soft: #2F443C;
  --olive: #3FB08D; --olive-2: #2F7661; --olive-soft: #2F443C; --on-olive: #1D2E28;
  --good: #6FD0AE; --good-bg: #17342A; --mid: #E8C45A; --mid-bg: #3A3217;
  --warn: #F2A764; --warn-bg: #3D2A18; --bad: #FF8A80; --bad-bg: #40201D;
  --info: #7DB3F2; --info-bg: #1A2A3D;
  --head-a: #106049; --head-b: #0B4A39; --head-ink: #F3F7F5; --head-muted: rgba(243,247,245,.75);
  --title: #86DDBD;
  --tile-shadow: rgba(0,0,0,.35);
  --shadow: 0 1px 3px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  font-family: var(--sans); font-size: 14px; line-height: 1.45;
  min-height: 100vh;
}
a { color: var(--olive); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 4px; }
h2 { font-size: 16px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
h3 { font-size: 14px; font-weight: 700; margin: 22px 0 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
code { font-size: 12px; background: var(--soft); padding: 1px 6px; border-radius: 5px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.inline { display: inline; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }

/* Logo – w trybie ciemnym na biało (jak w CRM) */
.logo { display: block; height: 34px; width: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { filter: brightness(0) invert(1); } }
:root[data-theme="dark"] .logo { filter: brightness(0) invert(1); }

/* ---------- Nagłówek: zegar | logo | data – zielony pas ---------- */
.masthead { background: linear-gradient(120deg, var(--head-a) 0%, var(--head-b) 100%); color: var(--head-ink); }
.masthead-in {
  max-width: 1240px; margin: 0 auto; padding: 16px 20px 14px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.brand { display: flex; justify-content: center; }
.brand:hover { text-decoration: none; }
.masthead .logo { filter: brightness(0) invert(1); }
.logo-lg { height: 52px; }
.clock { justify-self: start; display: flex; flex-direction: column; line-height: 1.1; }
.clock-time { font-size: 30px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--head-ink); }
.today { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; text-align: right; }
.today-day { font-size: 18px; font-weight: 800; color: var(--lime); text-transform: capitalize; }
.today-date { font-size: 13.5px; color: var(--head-muted); font-weight: 600; }

/* ---------- Pasek nawigacji ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 22px;
  padding: 8px max(20px, calc((100% - 1240px) / 2 + 20px));
  background: var(--panel); border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(9,99,75,.05);
}
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; flex-wrap: wrap; }
.nav a { color: var(--text); padding: 7px 13px; border-radius: var(--rb); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.nav a:hover { color: var(--title); background: var(--soft); text-decoration: none; }
.nav a.on { color: var(--on-lime); background: var(--lime); }
.me { display: flex; align-items: center; gap: 8px; }
.me-link { display: flex; align-items: center; gap: 8px; color: var(--ink); padding: 4px 10px 4px 4px; border-radius: 999px; font-weight: 600; }
.me-link:hover, .me-link.on { background: var(--soft); text-decoration: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 13px; }

.container { max-width: 1240px; margin: 0 auto; padding: 26px 20px 56px; }

/* ---------- Pulpit ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.dash-head .muted { margin: 4px 0 0; font-size: 13px; }
.greet { color: var(--title); }
.search input {
  width: 320px; max-width: 100%; height: 40px; margin: 0;
  padding: 7px 18px; border-radius: 999px;
}
.search input:focus { border-color: var(--olive); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 45%, transparent); }

.tile-group { margin-bottom: 28px; }
.group-title {
  display: block; position: relative;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--title); font-weight: 800;
  margin: 0 0 14px; padding-bottom: 8px;
}
.group-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 2px; background: var(--title); }
/* kolumny dobierane do szerokości: na szerokim ekranie 3–4, węższe kafelki nie powstają – tekst zawsze w całości */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }

/* Kafelki – kolor ustawiany per kafelek (--c), limonkowa poświata i obrys po najechaniu */
.tile {
  --c: #09634B; --fg: #fff;
  position: relative;
  display: flex; align-items: center;
  min-height: 88px; padding: 12px 0; overflow: hidden;
  border-radius: var(--r);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(201,213,139,.28) 0%, rgba(201,213,139,0) 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--c) 88%, #fff) 0%, var(--c) 60%, color-mix(in srgb, var(--c) 80%, #000) 100%);
  color: var(--fg); font-weight: 400;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 28%, transparent);
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
:root[data-theme="dark"] .tile { box-shadow: 0 6px 16px rgba(0,0,0,.35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile { box-shadow: 0 6px 16px rgba(0,0,0,.35); } }
.tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--lime), 0 12px 26px color-mix(in srgb, var(--c) 35%, transparent); text-decoration: none; }
.tile:active { transform: translateY(0) scale(.985); box-shadow: 0 0 0 3px var(--lime); }
.tile:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--lime), 0 0 0 5px var(--brand); }
.tile-icon {
  flex: 0 0 56px; height: 56px; margin-left: 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  font-size: 22px; font-weight: 800; line-height: 1;
}
.tile-icon img { width: 32px; height: 32px; object-fit: contain; }
.tile-body { display: flex; flex-direction: column; gap: 2px; padding: 0 30px 0 14px; min-width: 0; flex: 1; }
/* pełna nazwa i opis – w razie potrzeby w 2–3 linijkach, nigdy ucięte */
.tile-title { font-size: 16.5px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.tile-desc { font-size: 12.5px; line-height: 1.3; opacity: .88; overflow-wrap: anywhere; }
.tile-desc:empty { display: none; }
.tile-badge { position: absolute; top: 8px; right: 12px; font-size: 11px; opacity: .7; }

.empty { text-align: center; padding: 60px 20px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--panel); color: var(--muted); }
.empty-icon { font-size: 40px; color: var(--olive-2); }
.no-results { text-align: center; padding: 28px; }

/* ---------- Panele / formularze ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 16px; flex-wrap: wrap; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 18px; }
.grid-2 > .card { margin-bottom: 16px; }
label { display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
input[type=text], input[type=password], input[type=url], input[type=number], input[type=search], input:not([type]) {
  display: block; width: 100%; margin-top: 5px; height: 36px;
  font: inherit; font-size: 13.5px; letter-spacing: normal; text-transform: none; font-weight: 400;
  padding: 7px 12px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
}
input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px var(--olive-soft); }
input.otp { font-size: 22px; height: 46px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; max-width: 220px; font-weight: 700; }
.input-with-btn { display: flex; gap: 8px; align-items: stretch; margin-top: 5px; margin-bottom: 10px; }
.input-with-btn input { margin-top: 0; }
.row-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row-form label { margin-bottom: 0; flex: 1 1 200px; }
.row-form label:has(.otp) { flex: 0 0 auto; }
.form-actions { display: flex; gap: 16px; align-items: center; margin-top: 18px; }
.checks { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; }
.check { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 13.5px; font-weight: 400; text-transform: none; letter-spacing: normal; margin: 0; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }

.btn, .btn-ghost, .btn-link {
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; border-radius: var(--rb);
  height: 34px; padding: 0 15px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
.btn:hover, .btn-ghost:hover { background: var(--lime); border-color: var(--lime); color: var(--on-lime); text-decoration: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-ghost { color: var(--muted); font-weight: 600; }
.btn-link { background: none; border: none; padding: 0; height: auto; color: var(--olive); font-weight: 600; }
.btn-link:hover { text-decoration: underline; background: none; }
.btn-sm { height: 28px; padding: 0 11px; font-size: 12px; }
.btn-block { width: 100%; height: 38px; margin-top: 4px; }

.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; letter-spacing: normal; text-transform: none; }
.pill-ok { background: var(--good-bg); color: var(--good); }
.pill-off { background: var(--soft); color: var(--muted); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-admin { background: var(--brand); color: #fff; }

.flash { padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; font-size: 13px; font-weight: 600; }
.flash-ok { background: var(--good-bg); color: var(--good); }
.flash-error { background: var(--bad-bg); color: var(--bad); }
.flash-warn { background: var(--mid-bg); color: var(--mid); }
.flash-info { background: var(--info-bg); color: var(--info); }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 12px; margin: 0 0 18px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* Tabele */
.table-card { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: 11px; font-weight: 700; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--soft); }
.row-bad td { color: var(--bad); }
.url-cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.mini-icon { --c: #09634B; --fg: #fff; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--rb); background: var(--c); color: var(--fg); font-weight: 800; font-size: 17px; overflow: hidden; }
.mini-icon img { width: 22px; height: 22px; object-fit: contain; }

/* Listy wyboru */
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; padding: 14px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); }
.checklist-tools { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.dot { --c: #09634B; width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: 0 0 9px; }

/* Edytor kafelka */
.tile-editor { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 26px; }
.preview { position: sticky; top: 80px; align-self: start; }
.tile-preview { width: 100%; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -6px 0 16px; }
.swatch { --c: #09634B; width: 28px; height: 28px; border-radius: var(--rb); border: 2px solid var(--panel); background: var(--c); cursor: pointer; padding: 0; box-shadow: 0 0 0 1px var(--line); }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }
input[type=color] { width: 40px; height: 30px; border: 1px solid var(--line); border-radius: var(--rb); background: var(--panel); padding: 2px; cursor: pointer; }
.danger-zone { margin-top: 18px; }

/* 2FA */
.steps { padding-left: 20px; margin: 0 0 10px; }
.qr-wrap { display: flex; gap: 22px; align-items: center; margin: 6px 0 18px; flex-wrap: wrap; }
.qr { width: 184px; height: 184px; background: #fff; border-radius: var(--r); padding: 6px; border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }
.secret { display: inline-block; font-size: 15px; letter-spacing: .08em; padding: 7px 11px; user-select: all; font-weight: 700; }

/* ---------- Logowanie ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; box-shadow: var(--shadow); }
.auth-logo { display: block; margin: 0 auto 14px; height: 46px; width: auto; }
.auth-card h1 { text-align: center; font-size: 22px; }
.auth-card > .muted { text-align: center; margin: 0 0 18px; font-size: 13px; }
.auth-card input { border-radius: 10px; }
.auth-card input.otp { max-width: none; }
.auth-card .small { text-align: center; margin: 14px 0 0; }

/* ---------- Przełącznik dzień / noc ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.theme-toggle .ti { font-size: 16px; line-height: 1; }
.theme-toggle .ti-sun, .theme-toggle .tl-day { display: none; }
:root[data-theme="dark"] .theme-toggle .ti-sun, :root[data-theme="dark"] .theme-toggle .tl-day { display: inline; }
:root[data-theme="dark"] .theme-toggle .ti-moon, :root[data-theme="dark"] .theme-toggle .tl-night { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ti-sun, :root:not([data-theme="light"]) .theme-toggle .tl-day { display: inline; }
  :root:not([data-theme="light"]) .theme-toggle .ti-moon, :root:not([data-theme="light"]) .theme-toggle .tl-night { display: none; }
}
.theme-toggle-float { position: fixed; top: 14px; right: 14px; z-index: 20; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .topbar { gap: 12px; }
  .me-name { display: none; }
  .theme-toggle .tl { display: none !important; }
  .theme-toggle { width: 38px; height: 36px; padding: 0; justify-content: center; }
}

/* ---------- Telefon ---------- */
@media (max-width: 860px) {
  .grid-2, .tile-editor { grid-template-columns: 1fr; }
  .preview { position: static; }
  /* nagłówek: logo z lewej, godzina i data z prawej – bez łamania daty */
  .masthead-in { padding: 10px 14px; gap: 2px 12px; grid-template-columns: auto 1fr; grid-template-areas: "brand clock" "brand today"; }
  .brand { grid-area: brand; justify-content: flex-start; }
  .clock { grid-area: clock; justify-self: end; }
  .today { grid-area: today; justify-self: end; flex-direction: row; align-items: baseline; gap: 5px; white-space: nowrap; }
  .logo-lg { height: 32px; }
  .clock-time { font-size: 20px; }
  .today-day { font-size: 12.5px; }
  .today-date { font-size: 12px; }
  .apps-note .apps-note-icon { display: none; }
  /* pasek: u góry konto i przyciski, pod spodem menu przewijane palcem */
  .topbar { flex-wrap: wrap; gap: 6px 8px; padding: 8px 14px 0; }
  .me { order: 1; width: 100%; justify-content: flex-end; gap: 6px; }
  .nav {
    order: 2; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 -14px; padding: 2px 14px 8px; scroll-padding: 0 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 9px 14px; font-size: 14px; }
  .me .btn-ghost { height: 36px; }
  .version-link { margin-right: auto; }
  .container { padding: 18px 14px 40px; }
  .dash-head { margin-bottom: 18px; }
  .search, .search input { width: 100%; }
  .search input { height: 44px; font-size: 16px; } /* 16px – iPhone nie powiększa strony przy pisaniu */
  .tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
  .tile { min-height: 76px; padding: 10px 0; }
  .tile:hover { transform: none; box-shadow: 0 6px 16px var(--tile-shadow); }
  .tile:active { box-shadow: 0 0 0 3px var(--lime); }
  .tile-icon { flex-basis: 48px; height: 48px; margin-left: 14px; font-size: 19px; }
  .tile-icon img { width: 28px; height: 28px; }
  .tile-title { font-size: 16px; }
  .kv { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  input[type=text], input[type=password], input[type=url], input[type=number], input[type=search], input:not([type]) { height: 42px; font-size: 16px; }
  .btn { height: 38px; }
  .btn-sm { height: 32px; }
  .card { padding: 16px; border-radius: 16px; }
  .page-head .btn { flex: 0 0 auto; }
  .apps-note { padding: 12px 14px; }
  .app-prop-actions { width: 100%; }
  .app-prop-actions .btn { flex: 1; }
  .update-note { font-size: 13px; }
}
@media (max-width: 370px) {
  .today-day { display: none; }
  .logo-lg { height: 28px; }
}

/* ---------- Kontrola bezpieczeństwa ---------- */
.sec-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin-bottom: 16px; }
.sec-summary.is-bad { border-left-color: var(--bad); }
.sec-summary.is-warn { border-left-color: var(--mid); }
.sec-summary.is-ok { border-left-color: var(--good); }
.sec-stat { display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: var(--rb); }
.sec-stat b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sec-stat span { font-size: 12.5px; font-weight: 700; }
.sec-stat.sec-bad { background: var(--bad-bg); color: var(--bad); }
.sec-stat.sec-warn { background: var(--mid-bg); color: var(--mid); }
.sec-stat.sec-ok { background: var(--good-bg); color: var(--good); }
.sec-verdict { margin: 0 0 0 6px; font-weight: 700; flex: 1 1 260px; }
.sec-group h2 { margin-bottom: 6px; }
.sec-list { list-style: none; margin: 8px 0 0; padding: 0; }
.sec-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sec-item:first-child { border-top: 0; }
.sec-item b { display: block; font-size: 14px; }
.sec-item p { margin: 2px 0 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.sec-icon { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.sec-ok .sec-icon { background: var(--good-bg); color: var(--good); }
.sec-warn .sec-icon { background: var(--mid-bg); color: var(--mid); }
.sec-bad .sec-icon { background: var(--bad); color: #fff; }
.sec-info .sec-icon { background: var(--info-bg); color: var(--info); }
.sec-pending .sec-icon { background: var(--soft); color: var(--muted); }
.sec-bad b { color: var(--bad); }
.sec-fix { color: var(--ink) !important; background: var(--soft); border-radius: var(--rb); padding: 7px 10px; margin-top: 6px !important; }
.sec-fix span { font-weight: 700; }
.sec-action { margin-top: 8px; }

/* ---------- historia wersji ---------- */
.version-link { font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.version-link:hover, .version-link.on { color: var(--brand); border-color: var(--brand); text-decoration: none; }
.app-footer { text-align: center; color: var(--muted); font-size: 12.5px; padding: 18px 16px 26px; }
.app-footer a { color: var(--muted); text-decoration: underline; }
.update-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--good-bg); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; margin-bottom: 16px; }
.update-note form { display: inline; }
.pill-info { background: var(--soft); color: var(--brand); }
.cl-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.cl-nav { position: sticky; top: 16px; padding: 10px; }
.cl-nav a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-weight: 700; font-size: 14px; }
.cl-nav a:hover { background: var(--soft); text-decoration: none; }
.cl-nav a span { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.cl-entry { scroll-margin-top: 16px; }
.cl-entry.current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.cl-entry:target { box-shadow: 0 0 0 3px var(--olive-soft), 0 0 0 1px var(--brand); }
.cl-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cl-head h2 { margin: 0; font-size: 18px; }
.cl-ver { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; color: var(--brand); font-size: 17px; }
.cl-list { list-style: none; margin: 6px 0 0; padding: 0; }
.cl-list li { display: flex; gap: 10px; padding: 5px 0; align-items: baseline; }
.cl-list .pill { min-width: 76px; text-align: center; }
.cl-files { margin-top: 10px; font-size: 13px; }
.cl-files summary { cursor: pointer; font-weight: 700; }
.cl-files code { display: inline-block; margin: 4px 4px 0 0; }
@media (max-width: 800px) { .cl-layout { grid-template-columns: 1fr; } .cl-nav { position: static; } }


/* --- Dziennik --- */
.dz-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 12px; align-items: end; margin-bottom: 8px; }
.dz-filters label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 0; }
.dz-filters input, .dz-filters select { width: 100%; height: 38px; margin: 0; font: inherit; font-size: 13.5px; text-transform: none; letter-spacing: 0; font-weight: 400;
  padding: 7px 10px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); color: var(--ink); box-sizing: border-box; }
.dz-buttons .btn { height: 38px; }
.dz-buttons { display: flex; gap: 8px; }
.table-wrap { overflow-x: auto; }
.table-compact td, .table-compact th { padding: 7px 10px; }
.dz-table td.dz-details { max-width: 560px; overflow-wrap: anywhere; }
.dz-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--good-bg); color: var(--good); }
.dz-tag.dz-warn { background: var(--warn-bg); color: var(--warn); }
.dz-auto td { background: rgba(9, 99, 75, .035); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; flex-wrap: wrap; }

/* ---------- Wykrywanie aplikacji (v1.8.0) ---------- */
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--mid); color: #fff; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.apps-note { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--r); padding: 12px 16px; margin-bottom: 20px; box-shadow: var(--shadow); }
.apps-note > div { flex: 1 1 320px; }
.apps-note-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--olive-soft); color: var(--brand); font-weight: 800; font-size: 18px; flex: 0 0 34px; }
.apps-note-list { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.apps-note-item { display: inline-flex; align-items: center; gap: 8px; }
.app-proposals { display: flex; flex-direction: column; gap: 10px; }
.app-prop { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); flex-wrap: wrap; }
.app-prop-icon { width: 44px; height: 44px; border-radius: var(--rb); background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: 0 0 44px; }
.app-prop-body { flex: 1 1 260px; min-width: 0; }
.app-prop-body b { margin-right: 6px; }
.app-prop-body p { margin: 3px 0 0; overflow-wrap: anywhere; }
.app-prop-actions { display: flex; gap: 6px; align-items: center; }
.app-prop-actions form { margin: 0; }
.plain-list { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 6px; }
.plain-list li { overflow-wrap: anywhere; }

/* ---------- Zmiany zbiorcze z rozmowy z Claude (v1.10.0) ---------- */
.zc-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(6, 38, 29, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.zc-dialog { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-top: 6px solid var(--brand); border-radius: var(--r); padding: 22px 24px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.zc-dialog h2 { font-size: 19px; color: var(--title); display: block; margin: 10px 0 10px; line-height: 1.3; }
.zc-dialog p { margin: 0 0 12px; }
.zc-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--lime); color: var(--on-lime); padding: 3px 10px; border-radius: 999px; }
.zc-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.zc-actions .btn { height: auto; min-height: 42px; padding: 9px 16px; white-space: normal; text-align: center; }
.zc-check { align-items: flex-start; font-size: 14px; }
.zc-check input { margin-top: 3px; flex: 0 0 18px; width: 18px; height: 18px; }
.zc-help { display: block; margin-top: 4px; font-weight: 400; }
.zc-table td { vertical-align: middle; }

/* ===== Zaufane adresy IP i „Zapamiętaj ten komputer” (1.13.0) ===== */
.ip-table td { vertical-align: middle; }
.ip-table .ip-actions { white-space: nowrap; text-align: right; }
.ip-edit { position: relative; display: inline-block; }
.ip-edit summary { list-style: none; display: inline-flex; }
.ip-edit summary::-webkit-details-marker { display: none; }
.ip-edit-box { position: absolute; right: 0; top: 2.4rem; z-index: 20; width: min(320px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.15); text-align: left; white-space: normal; }
.ip-add { margin-top: .8rem; }
.ip-add input { min-width: 200px; }
.nowrap { white-space: nowrap; }
.remember-check { margin: 14px 0 4px; font-weight: 600; }
.remember-note { margin: 0 0 14px; }
.remember-box h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.remember-box .row-form { margin: 8px 0; }
.remember-table td { vertical-align: middle; }
@media (max-width: 860px) {
  .ip-add input { min-width: 0; }
  .ip-table .ip-actions { white-space: normal; }
}

/* Historia wersji na telefonie: lista wersji nie poszerza strony */
@media (max-width: 800px) { .cl-layout { grid-template-columns: minmax(0, 1fr); } .cl-nav { min-width: 0; } .cl-nav a { flex-wrap: wrap; } }
.cl-list li > span:last-child { min-width: 0; overflow-wrap: anywhere; }

/* 1.15.0: główna aplikacja „Boswena” – ekran powitalny (standard: claude/animacja-startowa-standard.md), wcięcie ekranu iPhone'a */
#splash { display: none; }
html.sp-on #splash { display: flex; position: fixed; inset: 0; z-index: 10000; align-items: center; justify-content: center; color: #fff;
  background: radial-gradient(120% 85% at 50% 42%, #0D7A5C 0%, #09634B 55%, #054535 100%);
  clip-path: circle(150% at 50% 42%); transition: clip-path .75s cubic-bezier(.75, 0, .2, 1);
  padding: env(safe-area-inset-top, 0) 16px env(safe-area-inset-bottom, 0); cursor: pointer; }
html.sp-on body { overflow: hidden; }
#splash.out { clip-path: circle(0% at 50% 42%); }
#splash .sp-in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
#splash.out .sp-in { transform: scale(.88); opacity: 0; transition: transform .5s cubic-bezier(.6, 0, .4, 1), opacity .35s .15s; }
#splash .sp-mark { width: 132px; height: 132px; overflow: visible; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35)); }
#splash .sp-glow { fill: rgba(255, 255, 255, .07); transform-origin: 80px 80px; animation: spGlow 1s .2s both cubic-bezier(.2, .8, .2, 1); }
#splash .sp-ring { fill: none; stroke: var(--lime); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  transform: rotate(-90deg); transform-origin: 80px 80px; animation: spRing 1s .25s forwards cubic-bezier(.65, 0, .35, 1); }
#splash .sp-tag { transform-origin: 80px 80px; animation: spIn .75s both cubic-bezier(.34, 1.56, .64, 1); }
#splash .sp-dot { transform-box: fill-box; transform-origin: 50% 50%; animation: spPop .45s .8s both cubic-bezier(.34, 1.56, .64, 1); }
#splash .sp-leaf { transform-box: fill-box; transform-origin: 30% 90%; animation: spLeaf .6s .55s both cubic-bezier(.34, 1.56, .64, 1); }
#splash .sp-wm { display: flex; font-family: var(--sans); font-weight: 800; font-size: clamp(2.4rem, 11vw, 3.1rem); letter-spacing: -.01em; line-height: 1; margin-top: 10px; }
#splash .sp-wm span { display: inline-block; animation: spLetter .55s both cubic-bezier(.34, 1.4, .64, 1); }
#splash .sp-wm span:nth-child(1) { animation-delay: .45s; } #splash .sp-wm span:nth-child(2) { animation-delay: .51s; }
#splash .sp-wm span:nth-child(3) { animation-delay: .57s; } #splash .sp-wm span:nth-child(4) { animation-delay: .63s; }
#splash .sp-wm span:nth-child(5) { animation-delay: .69s; } #splash .sp-wm span:nth-child(6) { animation-delay: .75s; }
#splash .sp-wm span:nth-child(7) { animation-delay: .81s; }
#splash .sp-sub { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime);
  animation: spType .6s 1.05s both cubic-bezier(.2, .8, .2, 1); }
#splash .sp-bar { width: 120px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; margin-top: 10px; animation: spFade .4s 1.2s both; }
#splash .sp-bar i { display: block; height: 100%; width: 40%; border-radius: 3px; background: rgba(255, 255, 255, .8); animation: spLoad 1.1s 1.2s infinite cubic-bezier(.45, 0, .55, 1); }
@keyframes spIn { 0% { opacity: 0; transform: scale(.55) rotate(-14deg); } 100% { opacity: 1; transform: none; } }
@keyframes spGlow { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: none; } }
@keyframes spRing { 100% { stroke-dashoffset: 0; } }
@keyframes spPop { 0% { opacity: 0; transform: scale(0); } 100% { opacity: 1; transform: none; } }
@keyframes spLeaf { 0% { opacity: 0; transform: scale(.3) rotate(-25deg); } 100% { opacity: 1; transform: none; } }
@keyframes spLetter { 0% { opacity: 0; transform: translateY(55%) scale(.7); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes spType { 0% { opacity: 0; transform: translateY(-35%) scale(1.2); filter: blur(2px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes spFade { 0% { opacity: 0; } }
@keyframes spLoad { 0% { transform: translateX(-110%); } 100% { transform: translateX(280%); } }
@media (prefers-reduced-motion: reduce) {
  #splash *, #splash.out .sp-in { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
  html.sp-on #splash { transition-duration: .2s; }
}
/* iPhone z wcięciem: w zainstalowanej aplikacji nagłówek wchodzi pod pasek stanu (viewport-fit=cover) */
.masthead { padding-top: env(safe-area-inset-top, 0); padding-left: env(safe-area-inset-left, 0); padding-right: env(safe-area-inset-right, 0); }
.app-footer { padding-bottom: max(18px, env(safe-area-inset-bottom, 0)); }
/* Mój profil → Aplikacja na telefonie i komputerze; Logowanie do aplikacji */
.pwa-head { display: flex; gap: 14px; align-items: flex-start; }
.pwa-ikona { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 14px; }
.pwa-card h3 { margin: 1.1rem 0 .4rem; font-size: 1rem; }
.pwa-kroki { margin: .2rem 0 .4rem 1.2rem; padding: 0; line-height: 1.6; }
.remember-phone-h { margin-top: 1rem; }
.sso-table th { vertical-align: bottom; min-width: 170px; }
.sso-table td.sso-osoba { min-width: 190px; }   /* 1.15.1: pierwsza kolumna = aplikacja */
.sso-table th.sso-osoba, .sso-table td.sso-osoba { min-width: 150px; position: sticky; left: 0; background: var(--panel, #fff); z-index: 1; }
.sso-folder { display: block; font-weight: 400; }
.sso-select, .sso-input { width: 100%; min-width: 150px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line, #E3EDE8); background: var(--panel, #fff); color: inherit; font: inherit; font-size: 13px; }
.sso-select.sso-on { border-color: var(--lime); box-shadow: inset 4px 0 0 var(--lime); font-weight: 700; }
.sso-select.sso-bad { border-color: #B42318; }
.sso-actions { margin: .8rem 0 1.4rem; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tile-sso { position: absolute; right: 10px; bottom: 8px; font-size: 11px; font-weight: 700; color: var(--on-lime); background: var(--lime); border-radius: 999px; padding: 1px 8px; }
.tile-sso-off { background: transparent; color: var(--muted, #8A958F); border: 1px dashed currentColor; }
.row-off td { opacity: .6; }


/* ---- 1.16.0: kafelek „Stan konektorów” (Pulpit, administrator) ---- */
.kon-card { background: var(--panel); border: 1px solid var(--line, #E3EDE8); border-radius: 18px; padding: 14px 16px; margin: 0 0 18px; }
.kon-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 10px; color: var(--title); }
.kon-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.kon-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--soft, #F1F6F3); color: inherit; text-decoration: none; border: 1px solid transparent; }
a.kon-item:hover { border-color: #C9D58B; }
.kon-dot { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: #2e9e6b; box-shadow: 0 0 0 3px rgba(46,158,107,.18); }
.kon-uwaga .kon-dot { background: #e0a800; box-shadow: 0 0 0 3px rgba(224,168,0,.2); }
.kon-blad .kon-dot { background: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.2); }
.kon-brak .kon-dot { background: #9aa5a0; box-shadow: none; }
.kon-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kon-name { font-weight: 700; }
.kon-desc { overflow-wrap: anywhere; }

/* =====================================================================================
   1.17.0 – nowy wygląd Panelu (wybór Norberta 10.11.2026):
   komputer = boczne menu (wersja B), telefon = ekran startowy (wersja C) z ulubionymi u góry.
   Wszystkie kafelki zielone, ikony z zestawu albo własna ikona aplikacji, przyklejony pasek:
   wyszukiwarka + stan konektorów (tylko admin) + ulubione.
   ===================================================================================== */
:root { --line-strong: #CFDDD6; --star: #E0A800; --side-w: 264px; --app-ic: linear-gradient(150deg, #1C8466 0%, #09634B 55%, #074E3B 100%); }
:root[data-theme="dark"] { --line-strong: #486257; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --line-strong: #486257; } }

.ik { width: 20px; height: 20px; flex: 0 0 auto; display: block; }

/* ---------- szkielet: boczne menu + treść ---------- */
.is-app .shell { display: flex; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; width: var(--side-w); flex: 0 0 var(--side-w);
  display: flex; flex-direction: column; padding: 20px 14px 14px; overflow-y: auto; scrollbar-width: thin;
  background: radial-gradient(140% 60% at 100% 0%, rgba(201,213,139,.18), transparent 60%), linear-gradient(180deg, var(--head-a), var(--head-b));
  color: #fff;
}
.side-brand { display: block; padding: 0 10px; }
.logo-w { display: block; height: 32px; width: auto; max-width: 100%; aspect-ratio: 900 / 228; }
.side-brand { line-height: 0; }
.side-clock { display: flex; flex-direction: column; padding: 16px 12px 18px; line-height: 1.2; }
.side-clock .clock-time { font-size: 34px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.side-clock .today-day { color: var(--lime); font-weight: 800; font-size: 16px; text-transform: capitalize; margin-top: 4px; }
.side-clock .today-date { color: rgba(255,255,255,.72); font-size: 13px; font-weight: 600; }

.snav { display: flex; flex-direction: column; gap: 2px; }
.snav a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px;
  color: rgba(255,255,255,.88); font-weight: 700; font-size: 14px; text-decoration: none; line-height: 1.2;
}
.snav a span:first-of-type { flex: 1; min-width: 0; }
.snav a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.snav a.on { background: var(--lime); color: #09634B; }
.snav a .nav-badge { margin-left: 0; }
.snav-sep { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 800; padding: 16px 12px 6px; }

.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-direction: column; gap: 10px; }
.side-me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; color: #fff; }
.side-me:hover, .side-me.on { background: rgba(255,255,255,.1); text-decoration: none; }
.side-me .avatar { background: var(--lime); color: #09634B; width: 36px; height: 36px; flex: 0 0 36px; }
.side-me-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.side-me-tx b { overflow-wrap: anywhere; }
.side-me-tx small { color: rgba(255,255,255,.7); font-weight: 600; font-size: 11.5px; }
.side-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.side-acts .theme-toggle { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; width: 38px; height: 36px; padding: 0; justify-content: center; }
.side-acts .theme-toggle .tl { display: none !important; }
.side-acts .theme-toggle:hover, .side-out .btn-ghost:hover { background: var(--lime); color: #09634B; }
.side-acts .version-link { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.35); }
.side-acts .version-link:hover, .side-acts .version-link.on { color: #fff; border-color: var(--lime); }
.side-out { margin-left: auto; }
.side-out .btn-ghost { height: 36px; padding: 0 10px; background: rgba(255,255,255,.1); border-color: transparent; color: #fff; gap: 6px; }
.side-out .ik-out { width: 16px; height: 16px; transform: rotate(90deg); }

.mainw { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.is-app .container { max-width: 1320px; width: 100%; margin: 0 auto; padding: 26px 28px 44px; flex: 1; }
.is-app .app-footer { padding: 6px 16px 22px; }
.mtop, .hero-m, .msheet { display: none; }

/* ---------- Pulpit ---------- */
.dash-top { margin-bottom: 14px; }
.dash-top .greet { margin: 0; color: var(--title); }
.dash-top .muted { margin: 2px 0 0; font-size: 13px; }

.stk-sentinel { height: 1px; margin-top: -1px; }
.stk {
  position: sticky; top: 0; z-index: 30;
  margin: 0 -28px 18px; padding: 12px 28px 12px;
  background: var(--bg); display: flex; flex-direction: column; gap: 10px;
  border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s;
}
.stk.stuck { border-bottom-color: var(--line); box-shadow: 0 10px 20px -16px rgba(9,99,75,.45); }
.stk-r { display: flex; gap: 10px; align-items: center; }
.search-x {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; margin: 0;
  background: var(--panel); border: 1.5px solid var(--line); border-radius: 999px; color: var(--muted);
  text-transform: none; letter-spacing: normal; font-size: 15px; font-weight: 400; cursor: text;
}
.search-x:focus-within { border-color: var(--olive); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 50%, transparent); }
.search-x input[type=search] { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 16px; color: var(--ink); border-radius: 0; }
.search-x input[type=search]:focus { box-shadow: none; }
.search-x .kbd { font-size: 11px; font-weight: 700; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; color: var(--muted); }

.kdot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; background: #2FAE7D; display: inline-block; }
.kdot-uwaga { background: #E0A800; } .kdot-blad { background: #E5484D; } .kdot-brak { background: #9AA5A0; }
.kon-btn { display: none; }
.kon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.kon-it {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); font-weight: 400; line-height: 1.3;
}
a.kon-it:hover { border-color: var(--lime); box-shadow: 0 0 0 2px var(--lime); text-decoration: none; }
.kon-it .kdot { margin-top: 4px; }
.kon-it.kon-uwaga { border-left: 4px solid #E0A800; } .kon-it.kon-blad { border-left: 4px solid #E5484D; } .kon-it.kon-ok { border-left: 4px solid #2FAE7D; }
.kon-tx { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; color: var(--muted); }
.kon-tx > b { color: var(--ink); font-size: 13.5px; }
.kon-tx > b small { color: var(--muted); font-weight: 600; }
.kon-tx span { overflow-wrap: anywhere; }
.kon-tx span b { color: var(--ink); }
.kon-note { grid-column: 1 / -1; margin: 0; font-size: 11.5px; color: var(--muted); }

.fav-row { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 1px 0; }
.fav-row::-webkit-scrollbar { display: none; }
.fav-lbl { display: inline-flex; align-items: center; gap: 6px; color: var(--title); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; flex: 0 0 auto; padding-right: 4px; }
.fav-lbl .ik, .fc-edit .ik { color: var(--star); fill: var(--star); width: 18px; height: 18px; }
.fc {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 5px; flex: 0 0 auto;
  border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); font-weight: 800; font-size: 13.5px; white-space: nowrap;
}
.fc:hover { border-color: var(--lime); box-shadow: 0 0 0 2px var(--lime); text-decoration: none; }
.fav-empty { font-size: 13px; flex: 0 0 auto; }
.fc-edit { display: none; font: inherit; font-weight: 800; cursor: pointer; padding: 0 14px; }
.fc-edit .fe-off, .fav-edit .fc-edit .fe-on { display: none; }
.fav-edit .fc-edit .fe-off { display: inline; }
.fav-edit .fc-edit { background: var(--lime); border-color: var(--lime); color: #09634B; }

/* ikona aplikacji – zawsze zielona */
.app-ic {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; background: var(--app-ic); color: #fff;
  font-weight: 800; font-size: 19px; line-height: 1; box-shadow: 0 4px 10px rgba(9,99,75,.22);
}
.app-ic .ik { width: 26px; height: 26px; }
.app-ic.has-img { background: #09634B; }
.app-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-ic.ic-s { width: 34px; height: 34px; flex-basis: 34px; border-radius: 50%; font-size: 14px; box-shadow: none; }
.app-ic.ic-s .ik { width: 18px; height: 18px; }
.app-ic.ic-mini { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; font-size: 15px; box-shadow: none; }
.app-ic.ic-mini .ik { width: 20px; height: 20px; }

/* lista aplikacji – komputer: wiersze-karty */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.app {
  position: relative; display: flex; align-items: center; min-height: 76px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.app:hover { border-color: var(--lime); box-shadow: 0 0 0 2px var(--lime); }
.app-link { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; align-self: stretch; padding: 12px 4px 12px 14px; color: var(--ink); font-weight: 400; border-radius: 18px; -webkit-tap-highlight-color: transparent; }
.app-link:hover { text-decoration: none; }
.app-link:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.app-icw { position: relative; flex: 0 0 auto; }
.sso-dot { display: none; position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; background: var(--lime); border: 3px solid var(--panel); }
.app-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-name { font-weight: 800; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.app-desc { font-size: 12.5px; color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; }
.app-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.app-meta:empty { display: none; }
.app-meta .pill { font-size: 11px; padding: 1px 8px; }
.fav-f { margin: 0 6px 0 0; flex: 0 0 auto; }
.fav-btn {
  width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; cursor: pointer;
  display: grid; place-items: center; color: var(--line-strong); -webkit-tap-highlight-color: transparent;
}
.fav-btn .ik { width: 22px; height: 22px; }
.fav-btn:hover { color: var(--star); background: var(--soft); }
.fav-btn.on { color: var(--star); }
.fav-btn.on .ik { fill: var(--star); }
.no-results { text-align: center; padding: 28px; }

/* edytor kafelka – wybór ikony i podgląd */
.ik-pick { margin: 6px 0 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); padding: 12px; }
.ik-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; }
.ik-head b { color: var(--ink); }
.ik-head input[type=search] { flex: 1 1 220px; width: auto; margin: 0; height: 40px; border-radius: 999px; padding: 0 16px; }
.ik-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; max-height: 268px; overflow-y: auto; padding: 2px; }
.ik-opt {
  height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--brand);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
:root[data-theme="dark"] .ik-opt { color: var(--title); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ik-opt { color: var(--title); } }
.ik-opt .ik { width: 24px; height: 24px; }
.ik-opt:hover { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 35%, var(--panel)); }
.ik-opt.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 3px var(--lime); }
.ik-auto span { font-size: 11px; font-weight: 800; }
.tile-preview { pointer-events: none; }
.tile-preview .app-link { padding-right: 14px; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) and (min-width: 901px) {
  :root { --side-w: 228px; }
  .side-clock .clock-time { font-size: 28px; }
  .is-app .container { padding: 22px 20px 40px; }
  .stk { margin: 0 -20px 16px; padding: 10px 20px; }
}

/* ---------- telefon (ekran startowy) ---------- */
@media (max-width: 900px) {
  .side { display: none; }
  .mtop {
    display: flex; align-items: center; gap: 8px; position: relative; z-index: 31;
    padding: calc(10px + env(safe-area-inset-top)) 14px 8px;
    background: linear-gradient(120deg, var(--head-a), var(--head-b)); color: #fff;
  }
  .mtop .logo-w { height: 28px; }
  .page-home .mtop-clock { visibility: hidden; }
  .mtop-clock { margin-left: auto; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; padding-right: 2px; }
  .mtop .theme-toggle, .mtop-menu {
    width: 44px; height: 44px; padding: 0; border-radius: 14px; border: 0;
    background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; flex: 0 0 44px;
  }
  .mtop .theme-toggle .tl { display: none !important; }
  .mtop .theme-toggle .ti { font-size: 18px; }
  .mtop-menu svg { width: 24px; height: 24px; }
  .mtop .theme-toggle:active, .mtop-menu:active { background: var(--lime); color: #09634B; }

  .is-app .container { padding: 0 12px 28px; }
  .is-app .container > .flash, .is-app .container > .update-note { margin-top: 12px; }
  .is-app:not(.page-home) .container { padding-top: 16px; }

  /* Pulpit: duży zegar pod paskiem */
  .hero-m {
    display: block; margin: 0 -12px; padding: 4px 16px 22px; text-align: center; color: #fff;
    background: radial-gradient(120% 120% at 100% 0, rgba(201,213,139,.3), transparent 55%), linear-gradient(135deg, var(--head-a), var(--head-b));
    border-radius: 0 0 28px 28px;
  }
  .hm-clock { font-size: 58px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  .hm-date { margin-top: 6px; font-size: 15px; color: rgba(255,255,255,.9); }
  .hm-date b { color: var(--lime); text-transform: capitalize; }
  .hm-hi { margin-top: 4px; font-size: 14px; color: rgba(255,255,255,.8); }
  .dash-top { display: none; }
  .apps-note { margin-top: 12px; }

  .stk { margin: 0 -12px 8px; padding: 10px 12px; gap: 8px; }
  .fav-row { order: -1; margin: 0 -12px; padding: 0 12px 2px; }
  .fav-lbl span { display: none; }
  .fc { height: 42px; font-size: 13px; }
  .fc-edit { display: inline-flex; }
  .search-x { height: 48px; }
  .search-x .kbd { display: none; }
  .kon-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; flex: 0 0 auto;
    border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink);
    font: inherit; font-weight: 800; font-size: 13px; cursor: pointer;
  }
  .kon-btn-tx { display: none; }
  .kon-dots { display: inline-flex; gap: 4px; }
  .kon-open .kon-btn { border-color: var(--lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 50%, transparent); }
  .kon-grid { display: none; grid-template-columns: 1fr; max-height: 52vh; overflow-y: auto; }
  .kon-open .kon-grid { display: grid; }

  /* siatka ikon jak na telefonie */
  .apps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px 4px; }
  .app { flex-direction: column; background: none; border: 0; box-shadow: none; min-height: 0; border-radius: 18px; }
  .app:hover { box-shadow: none; }
  .app-link { flex-direction: column; gap: 7px; padding: 10px 2px 8px; text-align: center; align-items: center; width: 100%; }
  .app-link:active .app-ic { transform: scale(.94); box-shadow: 0 0 0 3px var(--lime); }
  .app-ic { width: 60px; height: 60px; flex-basis: 60px; border-radius: 18px; font-size: 23px; transition: transform .12s; }
  .app-ic .ik { width: 30px; height: 30px; }
  .app-name { font-size: 11.5px; font-weight: 700; line-height: 1.2; }
  .app-desc, .app-meta { display: none; }
  .sso-dot { display: block; border-color: var(--bg); }
  .fav-f { position: absolute; top: 0; right: 0; margin: 0; display: none; }
  .fav-edit .fav-f { display: block; }
  .fav-edit .app-link { animation: kiwa .35s ease-in-out infinite alternate; }
  .fav-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--panel); box-shadow: 0 2px 8px rgba(0,0,0,.2); color: var(--muted); }
  .fav-btn .ik { width: 18px; height: 18px; }

  /* menu telefonu – wysuwane od dołu */
  .msheet:not([hidden]) { display: flex; position: fixed; inset: 0; z-index: 200; align-items: flex-end; }
  .msheet-bg { position: absolute; inset: 0; background: rgba(6,38,29,.5); }
  .msheet-in {
    position: relative; width: 100%; max-height: 88vh; overflow-y: auto; background: var(--panel); color: var(--text);
    border-radius: 26px 26px 0 0; padding: 8px 14px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0,0,0,.25);
    animation: wjazd .22s ease-out;
  }
  .msheet-grab { width: 46px; height: 5px; border-radius: 9px; background: var(--line-strong); margin: 4px auto 12px; cursor: pointer; }
  .msheet-me { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--soft); color: var(--ink); margin-bottom: 8px; }
  .msheet-me:hover { text-decoration: none; }
  .msheet-me .avatar { width: 42px; height: 42px; }
  .msheet-me > span:not(.avatar) { display: flex; flex-direction: column; line-height: 1.25; }
  .msheet-me small { color: var(--muted); font-weight: 600; }
  .snav-m a { color: var(--ink); min-height: 50px; font-size: 15px; }
  .snav-m a .ik { color: var(--title); width: 22px; height: 22px; }
  .snav-m a:hover { background: var(--soft); color: var(--ink); }
  .snav-m a.on { background: var(--lime); color: #09634B; }
  .snav-m a.on .ik { color: #09634B; }
  .snav-m .snav-sep { color: var(--muted); }
  .msheet-acts { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
  .msheet-acts .btn { height: 44px; }
  .menu-on { overflow: hidden; }
}
@media (max-width: 360px) {
  .apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* ---------- 1.17.1: firmy i katalogi na Pulpicie ---------- */
.firma { margin-bottom: 26px; }
.firma .group-title { margin-bottom: 12px; }
.app-lock { font-size: 11px; opacity: .55; }
.folder-sum {
  font: inherit; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 14px;
  background: var(--soft); border: 1.5px dashed var(--line-strong); border-radius: 18px; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.folder-sum:hover { border-color: var(--lime); border-style: solid; box-shadow: 0 0 0 2px var(--lime); }
.folder-sum.on { background: var(--lime); border: 1.5px solid var(--lime); color: #09634B; }
.folder-sum.on .app-desc { color: #09634B; opacity: .8; }
.folder-ic { width: 48px; height: 48px; flex: 0 0 48px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 3px; padding: 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.app-ic.ic-f { width: 100%; height: 100%; flex: none; border-radius: 6px; box-shadow: none; font-size: 9px; }
.app-ic.ic-f .ik { width: 11px; height: 11px; }
.folder-chev { margin-left: auto; font-size: 24px; font-weight: 800; color: var(--muted); transition: transform .2s; }
.folder-sum.on .folder-chev { transform: rotate(90deg); color: #09634B; }
.folder-in { grid-column: 1 / -1; padding: 14px; border-radius: 20px; background: var(--soft); border: 1.5px solid var(--lime); animation: wjazd .18s ease-out; }
.folder-head { display: flex; align-items: center; gap: 10px; margin: 0 2px 10px; color: var(--ink); }
.folder-x { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--panel); color: var(--muted); font-size: 15px; cursor: pointer; }
.folder-x:hover { background: var(--lime); color: #09634B; }
.folder-in .apps { gap: 10px; }

/* górny pasek na komputerze: wyszukiwarka + ulubione w jednym rzędzie, konektory jako zwarty rząd */
@media (min-width: 901px) {
  .dash-top { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
  .dash-top .greet { font-size: 24px; }
  .stk { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: 10px 14px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
  .stk-r { grid-column: 1; grid-row: 1; }
  .fav-row { grid-column: 2; grid-row: 1; }
  .kon-grid { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .search-x { height: 46px; }
  .kon-it { padding: 7px 10px; border-radius: 12px; gap: 8px; }
  .kon-tx { flex-direction: row; flex-wrap: wrap; column-gap: 6px; font-size: 12px; line-height: 1.35; }
  .kon-tx > b { flex: 1 1 100%; font-size: 13px; }
  .kon-tx > span:not(:last-child)::after { content: " ·"; }
  .kon-note { grid-column: 1 / -1; text-align: right; margin-top: -2px; }
  .fav-row { flex-wrap: nowrap; }
}
@media (min-width: 901px) and (max-width: 1250px) {
  .stk { grid-template-columns: 1fr; }
  .fav-row { grid-column: 1; grid-row: 2; }
  .kon-grid { grid-row: 3; }
}

@media (max-width: 900px) {
  .apps-note-pc { display: none; }
  .firma { margin-bottom: 10px; }
  .firma .group-title { margin: 12px 6px 4px; font-size: 12px; }
  .app-lock { display: none; }
  .folder-sum { flex-direction: column; align-items: center; gap: 7px; min-height: 0; padding: 10px 2px 8px; background: none; border: 0; text-align: center; }
  .folder-sum:hover, .folder-sum.on { box-shadow: none; background: none; border: 0; }
  .folder-sum .app-desc, .folder-chev { display: none; }
  .folder-ic { width: 60px; height: 60px; flex-basis: 60px; border-radius: 18px; background: color-mix(in srgb, var(--brand) 12%, var(--panel)); border: 0; padding: 7px; gap: 4px; }
  .folder-sum.on .folder-ic { box-shadow: 0 0 0 3px var(--lime); }
  .folder-sum.on .app-name { color: var(--title); }
  .folder-in { padding: 8px 4px 6px; margin: 2px 0 8px; border-radius: 22px; }
  .folder-head { margin: 2px 8px 4px; }
  .folder-in .apps { gap: 2px 4px; }
  .folder-in .sso-dot { border-color: var(--soft); }

  /* telefon: mniejszy nagłówek z zegarem, ulubione jako rząd ikon jak dok */
  .hero-m { padding: 0 16px 18px; border-radius: 0 0 26px 26px; }
  .hm-clock { font-size: 48px; }
  .hm-date { font-size: 14px; margin-top: 4px; }
  .hm-hi { display: none; }
  .stk { padding: 10px 12px 8px; }
  .fav-row { gap: 4px; padding-bottom: 0; align-items: flex-start; }
  .fav-lbl { display: none; }
  .fc { flex-direction: column; height: auto; width: 68px; padding: 2px 0 0; gap: 4px; background: none; border: 0; font-size: 10.5px; font-weight: 700; white-space: normal; text-align: center; line-height: 1.15; }
  .fc:not(.fc-edit) > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 64px; }
  .fc:hover { box-shadow: none; }
  .fc .app-ic.ic-s { width: 46px; height: 46px; flex-basis: 46px; border-radius: 14px; box-shadow: 0 0 0 2px var(--star); }
  .fc .app-ic.ic-s .ik { width: 24px; height: 24px; }
  .fc-edit { width: 68px; }
  .fc-edit .ik { width: 22px; height: 22px; margin: 12px auto 9px; }
  .fav-empty { font-size: 12px; padding: 8px 4px; }
  .kon-btn { padding: 0 12px; }
  .kon-btn-tx { display: inline; font-size: 12.5px; }
}
/* ---------- 1.17.2: górny pasek na komputerze – zielony pas (wersja A wybrana 10.11.2026) ---------- */
.stk-hi { display: none; }
.firma-all { margin-bottom: 18px; }
@media (min-width: 901px) {
  .page-home .dash-top { display: none; }
  .stk {
    background: linear-gradient(120deg, var(--head-a), var(--head-b)); color: #fff;
    margin: -26px -28px 20px; padding: 18px 28px 14px; border: 0; border-radius: 0 0 26px 26px;
    grid-template-columns: auto minmax(260px, 440px) minmax(0, 1fr); column-gap: 18px; row-gap: 12px;
  }
  .stk.stuck { box-shadow: 0 12px 26px -14px rgba(0,0,0,.45); }
  .stk-hi { display: block; grid-column: 1; grid-row: 1; font-size: 22px; font-weight: 800; white-space: nowrap; }
  .stk-r { grid-column: 2; grid-row: 1; }
  .fav-row { grid-column: 3; grid-row: 1; }
  .fav-lbl { color: var(--lime); }
  .fc { background: rgba(255,255,255,.12); border-color: transparent; color: #fff; }
  .fc:hover { background: var(--lime); color: #09634B; box-shadow: none; }
  .fav-empty { color: rgba(255,255,255,.7); }
  .search-x { border-color: transparent; height: 44px; }
  .kon-grid { grid-column: 1 / -1; grid-row: 2; gap: 0; background: rgba(0,0,0,.14); border-radius: 16px; padding: 4px; }
  .kon-it, .kon-it.kon-ok, .kon-it.kon-uwaga, .kon-it.kon-blad { background: none; border: 0; border-radius: 12px; color: rgba(255,255,255,.8); }
  a.kon-it:hover { background: rgba(255,255,255,.1); box-shadow: none; }
  .kon-tx, .kon-tx > b small { color: rgba(255,255,255,.72); }
  .kon-tx > b, .kon-tx span b { color: #fff; }
  .kon-note { color: rgba(255,255,255,.55); margin: 2px 8px 0; }
}
@media (min-width: 901px) and (max-width: 1250px) {
  .stk { grid-template-columns: auto minmax(0, 1fr); }
  .stk-r { grid-column: 2; }
  .fav-row { grid-column: 1 / -1; grid-row: 2; }
  .kon-grid { grid-row: 3; }
}
@media (min-width: 901px) and (max-width: 1100px) { .stk { margin: -22px -20px 16px; padding: 14px 20px 12px; } }

@keyframes wjazd { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes kiwa { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .fav-edit .app-link, .msheet-in { animation: none; } }

/* Zakładka Instrukcja (1.18.0) – jak w aplikacji Raporty */
.instrukcja-head{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start;justify-content:space-between}
.instrukcja-head h1{margin:0 0 4px}
.instrukcja-akcje{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.instrukcja-akcje .seg{display:inline-flex;gap:4px}
.instrukcja-ramka{display:block;width:100%;height:calc(100vh - 220px);min-height:480px;border:1px solid var(--line,#E3EDE8);border-radius:12px;background:#fff;margin-top:12px}
@media (max-width:700px){.instrukcja-ramka{height:calc(100vh - 260px)}.instrukcja-akcje .btn{flex:1 1 auto}}

/* Konta do instrukcji (1.18.0) – klasa sekcji ik-konta (.ik to ikona w Panelu) */
.ik-uwaga{border-left:4px solid var(--warn);background:var(--warn-bg);color:var(--text);padding:8px 12px;border-radius:0 8px 8px 0;margin:8px 0 12px}
.ik-tryby{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:start}
.ik-tryby form{display:flex;flex-direction:column;gap:8px;align-items:flex-start;margin:0}
.ik-tryby .ik-wklej label{display:flex;flex-direction:column;gap:4px;width:100%;font-weight:700}
.ik-tryby textarea{width:100%;font-family:ui-monospace,Consolas,monospace;font-size:12.5px}
.ik-wynik{background:var(--soft);border:2px solid var(--lime,#C9D58B);border-radius:12px;padding:10px 14px;margin:0 0 14px}
.ik-json{white-space:pre-wrap;word-break:break-all;font-size:12.5px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px 10px;margin:6px 0 8px;user-select:all}
@media (max-width:700px){.ik-tryby{grid-template-columns:1fr}}

/* 1.19.1: Konta do instrukcji – nazwa aplikacji jest linkiem */
.ki-table a.ki-app{color:inherit;text-decoration:underline;text-decoration-color:var(--lime,#C9D58B);text-underline-offset:3px}
.ki-table a.ki-app:hover{color:var(--brand,#09634B)}
/* 1.19.2: „hasło w sekrecie” widoczne w trybie nocnym; dopisek „z hasłem” pod przyciskiem */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill-info { color: var(--lime); } }
:root[data-theme="dark"] .pill-info { color: var(--lime); }
.ki-table .ki-haslo{display:inline-block;margin-top:4px;max-width:180px;line-height:1.3}
/* jedno zaokrąglenie przycisków w pasku menu i pasku grupy (12 px jak zakładki i przyciski) */
.nav a, .subnav a, .sso-panel-link, .theme-toggle, .version-link, .me .btn-ghost, .userbox .btn-ghost, .me-link { border-radius: var(--rb); }
.side-me, .snav a { border-radius: var(--rb); }

/* 1.21.0–1.22.0: Logowanie do aplikacji – przegląd „kto ma co” */
.sso-ludzie { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; margin-top: 12px; }
.sso-czlowiek { border: 1px solid var(--line); border-radius: var(--rb); padding: 12px 14px; background: var(--panel); }
.sso-czlowiek-off { opacity: .65; }
.sso-czlowiek-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.sso-czlowiek-head .pill { margin-left: 4px; }
.sso-chips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sso-chip { background: var(--good-bg); color: var(--good); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 700; }
.sso-chip-konto { font-weight: 400; opacity: .85; }
.sso-brak { margin: 10px 0 0; }
.sso-szukaj { max-width: 280px; margin-top: 0 !important; }
@media (max-width: 860px) {
  .sso-szukaj { max-width: none; width: 100%; }
  .tile-acc-konto { padding-left: 0; }
}
/* 1.22.0: Użytkownicy – kafelek i konto w aplikacji w jednym miejscu */
.checklist-sso { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px 16px; }
.tile-acc { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tile-acc-sso { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--rb); background: var(--panel); }
.tile-acc-konto { display: flex; flex-direction: column; gap: 3px; padding-left: 25px; }
.tile-acc-konto .sso-select, .tile-acc-konto .sso-input { min-width: 0; padding: 5px 8px; font-size: 12.5px; }
.tile-acc-off .tile-acc-konto { opacity: .5; }
.tile-acc-zm { border-color: var(--lime); box-shadow: inset 4px 0 0 var(--lime); }
.sso-hint { color: var(--warn); }
.sso-hint .btn-link { font-size: inherit; }
.sso-legenda { margin: -4px 0 10px; }
.sso-chip-brak { background: var(--warn-bg); color: var(--warn); }
.sso-chip-bez { background: var(--soft); color: var(--muted); }
.sso-czlowiek-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.sso-legenda2 .sso-chip { display: inline-block; font-size: 11.5px; padding: 1px 8px; }

/* 1.23.0: przyklejony zielony pas na komputerze – przy przewijaniu zwija się do jednego wiersza
   (powitanie, wyszukiwarka, ulubione, kropki konektorów); konektory rozwija przycisk z kropkami.
   Baner „kont do instrukcji” przeniesiony pod pas, żeby pas zawsze stał przy górnej krawędzi. */
@media (min-width: 901px) {
  .stk { transition: padding .2s, box-shadow .2s, border-radius .2s; }
  .stk.stuck { padding-top: 10px; padding-bottom: 10px; row-gap: 8px; border-radius: 0 0 18px 18px; }
  .stk.stuck .stk-hi { font-size: 17px; }
  .stk.stuck .search-x { height: 40px; }
  .stk.stuck .fc { height: 38px; }
  .stk.stuck .kon-grid { display: none; }
  .stk.stuck.kon-open .kon-grid { display: grid; max-height: 50vh; overflow-y: auto; }
  .stk.stuck .kon-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; flex: 0 0 auto;
    border-radius: 999px; border: 0; background: rgba(255,255,255,.14); color: #fff;
    font: inherit; font-weight: 800; font-size: 12.5px; cursor: pointer;
  }
  .stk.stuck .kon-btn:hover, .stk.stuck.kon-open .kon-btn { background: var(--lime); color: #09634B; }
  .stk.stuck .kon-btn-tx { display: inline; }
  .stk.stuck .kon-dots { display: inline-flex; gap: 4px; }
  .stk + .ki-note { margin-top: 0; }
}
.ki-note { margin-bottom: 16px; }
/* 1.23.0: telefon – bez ulubionych nie ma pustego przycisku „Edytuj”, a po przewinięciu przyklejona zostaje sama wyszukiwarka z kropkami konektorów */
@media (max-width: 900px) {
  .fav-row:has(.fav-empty:not([hidden])) .fc-edit { display: none; }
  .fav-row:has(.fav-empty:not([hidden])) { padding-bottom: 0; }
  .stk.stuck .fav-row { display: none; }
  .stk.stuck { box-shadow: 0 10px 18px -14px rgba(9,99,75,.5); }
}
