/* Calltime — interaktywny mockup iPhone'a (landing).
   Wszystko scopowane prefiksem .ctp-; tokeny skopiowane 1:1 z src/index.css aplikacji
   ("Spokój": jasny + ciemny). Motyw: prefers-color-scheme, nadpisywalny atrybutem
   data-theme="light|dark" na [data-ct-phone] oraz przełącznikiem w menu avatara. */

.ctp {
  --ctp-sans: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ctp-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ctp-sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;

  color-scheme: light;
  --bg: #eef1f0;  --surface: #ffffff;  --elevated: #f6f8f7;
  --ink: #14211f; --ink-2: #3f524e;    --muted: #5a6d69;
  --line: #d5dedb; --line-strong: #b7c4c0;
  --accent: #0f766e; --accent-hover: #0b5a54; --accent-soft: #dff0ed; --accent-ink: #0b5a54;
  --on-accent: #ffffff;
  --ok: #14663d;   --ok-soft: #dcf3e6;   --ok-line: #a7d9bd;   --ok-fill: #14663d;
  --warn: #8a5a00; --warn-soft: #fdf0d6; --warn-line: #ecd29a;
  --stop: #b42318; --stop-soft: #fde4e1; --stop-line: #f0b4ad;
  --shadow-pop: 0 12px 32px -12px rgba(20, 33, 31, .28);
  --dept-1: #4f7cac; --dept-2: #b0623a; --dept-3: #5d8a5a; --dept-4: #a0518d;
  --dept-5: #b08a1f; --dept-6: #3f9a9a; --dept-7: #8a6bb0; --dept-8: #b5546a;
}
.ctp[data-ctp-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1716;  --surface: #172220;  --elevated: #1f2d2a;
  --ink: #e8f0ee; --ink-2: #b4c6c2;    --muted: #92a6a1;
  --line: #2b3b38; --line-strong: #3b4f4b;
  --accent: #3cc4b6; --accent-hover: #5fd6c9; --accent-soft: #12332f; --accent-ink: #7fe0d4;
  --on-accent: #04201d;
  --ok: #4cc38a;   --ok-soft: #12281d;   --ok-line: #1f4a33;   --ok-fill: #1c7d4d;
  --warn: #e0b040; --warn-soft: #2e2410; --warn-line: #54410f;
  --stop: #ff7a6b; --stop-soft: #351a17; --stop-line: #5e2a25;
  --shadow-pop: 0 12px 32px -12px rgba(0, 0, 0, .6);
}
/* bez JS: podążaj za systemem */
@media (prefers-color-scheme: dark) {
  .ctp:not([data-ctp-theme]):not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1716;  --surface: #172220;  --elevated: #1f2d2a;
    --ink: #e8f0ee; --ink-2: #b4c6c2;    --muted: #92a6a1;
    --line: #2b3b38; --line-strong: #3b4f4b;
    --accent: #3cc4b6; --accent-hover: #5fd6c9; --accent-soft: #12332f; --accent-ink: #7fe0d4;
    --on-accent: #04201d;
    --ok: #4cc38a;   --ok-soft: #12281d;   --ok-line: #1f4a33;   --ok-fill: #1c7d4d;
    --warn: #e0b040; --warn-soft: #2e2410; --warn-line: #54410f;
    --stop: #ff7a6b; --stop-soft: #351a17; --stop-line: #5e2a25;
    --shadow-pop: 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
}

/* ── Baza i reset (scopowany) ─────────────────────────────────────────────── */
.ctp {
  position: relative;
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 429 / 876;
  font-family: var(--ctp-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink);
  text-align: left;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.ctp *, .ctp *::before, .ctp *::after { box-sizing: border-box; }
.ctp :where(h1, h2, h3, p, ul, ol, li, figure) { margin: 0; padding: 0; list-style: none; max-width: none; letter-spacing: inherit; text-transform: none; }
.ctp :where(h1, h2, h3) { font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
.ctp :where(button) {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0;
  text-align: inherit; cursor: pointer; border-radius: 0; letter-spacing: inherit; text-transform: none;
  -webkit-appearance: none; appearance: none;
}
.ctp :where(input, textarea) { font: inherit; color: inherit; margin: 0; letter-spacing: inherit; }
.ctp button:focus-visible, .ctp [role="button"]:focus-visible, .ctp input:focus-visible, .ctp textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.ctp svg { display: block; flex: none; }
.ctp .ctp-i { overflow: visible; }
.ctp .ctp-mono, .ctp-mono { font-family: var(--ctp-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; font-weight: 500; }
.ctp-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ctp-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Urządzenie ────────────────────────────────────────────────────────────── */
.ctp-scaler {
  position: absolute; left: 0; top: 0;
  width: 429px; height: 876px;
  transform-origin: 0 0;
  transform: scale(var(--ctp-k, .8));
}
.ctp-frame {
  position: absolute; left: 6px; top: 0;
  width: 417px; height: 876px;
  padding: 4px;
  border-radius: 66px;
  background: #2c2e30;
  box-shadow:
    inset 0 0 0 1px #4a4d50,
    0 0 0 1px #1a1b1c,
    0 28px 60px -22px rgba(0, 0, 0, .45);
}
.ctp-bezel {
  position: relative;
  width: 100%; height: 100%;
  padding: 8px;
  border-radius: 62px;
  background: #000;
}
.ctp-side { position: absolute; width: 4px; border-radius: 2px; background: #2c2e30; box-shadow: inset 0 0 0 1px #4a4d50, 0 0 0 1px #1a1b1c; }
.ctp-side--action { left: 2px; top: 148px; height: 34px; }
.ctp-side--volup  { left: 2px; top: 208px; height: 62px; }
.ctp-side--voldn  { left: 2px; top: 284px; height: 62px; }
.ctp-side--power  { right: 2px; top: 250px; height: 98px; }

.ctp-screen {
  position: relative;
  width: 393px; height: 852px;
  border-radius: 55px;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
  transform: translateZ(0);
}
.ctp-island {
  position: absolute; left: 50%; top: 11px; z-index: 90;
  width: 126px; height: 37px; margin-left: -63px;
  border-radius: 999px; background: #000; pointer-events: none;
}
.ctp-home {
  position: absolute; left: 50%; bottom: 8px; z-index: 90;
  width: 134px; height: 5px; margin-left: -67px;
  border-radius: 3px; background: var(--ink); opacity: .9; pointer-events: none;
}

/* Pasek statusu iOS */
.ctp-status { position: absolute; left: 0; right: 0; top: 0; height: 59px; pointer-events: none; color: var(--ink); }
.ctp-status-time {
  position: absolute; left: 0; top: 17px; width: 132px; text-align: center;
  font-family: var(--ctp-sys); font-size: 17px; font-weight: 600; line-height: 22px; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.ctp-status-r { position: absolute; right: 0; top: 17px; width: 132px; height: 22px; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* Pasek aplikacji (AppLayout) */
.ctp-bar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 40;
  height: 111px; padding-top: 59px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.ctp-bar-row { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.ctp-bar-l { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.ctp-logo { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; color: #fff; font-weight: 700; font-size: 10px; line-height: 1; }
.ctp-bar-name { font-size: 17px; font-weight: 600; letter-spacing: -0.025em; line-height: 28px; }
.ctp-bar-r { display: flex; align-items: center; gap: 4px; flex: none; }
.ctp-avatar-btn { min-width: 44px; min-height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.ctp-avatar { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; border: 1px solid var(--line); }

/* Główny obszar */
.ctp-main { position: absolute; left: 0; right: 0; top: 111px; bottom: 98px; background: var(--bg); }
.ctp-scroll {
  position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior-x: contain; touch-action: pan-y;
  scrollbar-width: none; -ms-overflow-style: none;
}
.ctp-scroll::-webkit-scrollbar { display: none; }
.ctp-scroll[data-fill="1"] { overflow: hidden; }
.ctp-view { min-height: 100%; background: var(--bg); }
.ctp-view--fill { height: 100%; display: flex; flex-direction: column; min-height: 0; }

/* Dolna nawigacja (BottomNav) */
.ctp-nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; height: 98px; background: var(--surface); border-top: 1px solid var(--line); }
.ctp-nav-in { display: flex; }
.ctp-nav-item { position: relative; flex: 1; min-width: 0; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 0 6px; }
.ctp-nav-bar { position: absolute; top: -1px; left: 12px; right: 12px; height: 3px; border-radius: 0 0 999px 999px; background: transparent; }
.ctp-nav-item[aria-current="page"] .ctp-nav-bar { background: var(--accent); }
.ctp-nav-ico { position: relative; color: var(--muted); }
.ctp-nav-item[aria-current="page"] .ctp-nav-ico { color: var(--accent-ink); }
.ctp-nav-lbl { font-size: 13px; line-height: 1; font-weight: 500; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctp-nav-item[aria-current="page"] .ctp-nav-lbl { color: var(--accent-ink); font-weight: 600; }
.ctp-badge {
  position: absolute; top: -8px; right: -12px; min-width: 20px; height: 20px; padding: 0 4px;
  background: var(--accent); color: var(--on-accent); border-radius: 999px;
  font-family: var(--ctp-mono); font-weight: 600; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
/* hint: pulsujący pierścień + "Dotknij" */
.ctp-ring { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 2px solid var(--accent); border-radius: 999px; pointer-events: none; animation: ctp-ring 1.9s ease-out infinite; }
.ctp-tip {
  position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: -2px;
  background: var(--ink); color: var(--bg); border-radius: 999px; padding: 3px 12px;
  font-family: var(--ctp-mono); font-weight: 600; font-size: 13px; line-height: 20px; white-space: nowrap; pointer-events: none;
  animation: ctp-tip 1.9s ease-in-out infinite;
}
.ctp-tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--ink); border-bottom: 0; }

/* ── Prymitywy (replika index.css) ──────────────────────────────────────────── */
.ctp-title { font-weight: 700; font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; }
.ctp-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.ctp-sheet > * + * { border-top: 1px solid var(--line); }
.ctp-sheet > :first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.ctp-sheet > :last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.ctp-sheet > .ctp-pill, .ctp-sheet > .ctp-pill-ok, .ctp-sheet > .ctp-pill-warn { border-radius: 999px; }

.ctp-ruler {
  display: block; height: 14px; background: var(--line-strong); opacity: .8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='14'%3E%3Crect x='0' y='0' width='1' height='14'/%3E%3Crect x='8' y='8' width='1' height='6'/%3E%3Crect x='16' y='8' width='1' height='6'/%3E%3Crect x='24' y='8' width='1' height='6'/%3E%3C/svg%3E") repeat-x left bottom / 32px 14px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='14'%3E%3Crect x='0' y='0' width='1' height='14'/%3E%3Crect x='8' y='8' width='1' height='6'/%3E%3Crect x='16' y='8' width='1' height='6'/%3E%3Crect x='24' y='8' width='1' height='6'/%3E%3C/svg%3E") repeat-x left bottom / 32px 14px;
}
.ctp-ruler--on-accent { background: var(--on-accent); opacity: .55; }

.ctp-now { background: var(--accent); color: var(--on-accent); border-radius: 16px; padding: 16px 18px; margin: 0 16px 12px; overflow: hidden; }
.ctp-now .ctp-ruler { margin: -16px -18px 12px; }
.ctp-progress { height: 8px; border-radius: 999px; background: color-mix(in oklab, var(--on-accent) 28%, transparent); overflow: hidden; margin-top: 12px; }
.ctp-progress > i { display: block; height: 100%; border-radius: 999px; background: var(--on-accent); transition: width 1s linear; }

.ctp-playhead-h { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); pointer-events: none; z-index: 5; }
.ctp-playhead-h::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); }

.ctp-pill, .ctp-pill-ok, .ctp-pill-warn, .ctp-pill-stop, .ctp-pill-accent {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; line-height: 20px;
  padding: 2px 10px; border-radius: 999px; white-space: nowrap; background: var(--elevated); color: var(--ink-2);
}
.ctp-pill-ok { background: var(--ok-soft); color: var(--ok); }
.ctp-pill-warn { background: var(--warn-soft); color: var(--warn); }
.ctp-pill-stop { background: var(--stop-soft); color: var(--stop); }
.ctp-pill-accent { background: var(--accent-soft); color: var(--accent-ink); }

.ctp-btn, .ctp-btn-signal {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; border: 1px solid var(--line-strong);
  font-weight: 600; font-size: 15px; line-height: 1.25; min-height: 48px; padding: 8px 16px;
  background: var(--surface); color: var(--ink); transition: background-color .12s, border-color .12s;
}
.ctp-btn:active { background: var(--elevated); }
.ctp-btn-signal { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ctp-btn-signal:active { background: var(--accent-hover); border-color: var(--accent-hover); }
.ctp-btn:disabled, .ctp-btn-signal:disabled { opacity: .45; pointer-events: none; }
.ctp-field {
  display: block; width: 100%; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 10px;
  font-weight: 500; font-size: 16px; padding: 8px 12px; min-height: 48px; line-height: 1.5;
  transition: border-color .12s, box-shadow .12s;
}
.ctp-field::placeholder { color: var(--muted); opacity: 1; }
.ctp-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent); }
.ctp-chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 44px; padding: 2px 12px; background: var(--elevated); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.ctp-chip::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--tape, var(--muted)); flex: none; }
.ctp-chip[data-active="true"] { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.ctp-chip--plain::before { display: none; }
.ctp-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.ctp-seg > button { flex: 1; min-height: 48px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background-color .12s, color .12s; }
.ctp-seg > button + button { border-left: 1px solid var(--line-strong); }
.ctp-seg > button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.ctp-seg--w { display: flex; width: 100%; }
.ctp-empty { padding: 0 0 24px; text-align: center; color: var(--muted); }
.ctp-empty::before { content: ""; display: block; height: 14px; margin: 0 auto 20px; max-width: 240px; background: var(--line-strong); opacity: .8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='14'%3E%3Crect x='0' y='0' width='1' height='14'/%3E%3Crect x='8' y='8' width='1' height='6'/%3E%3Crect x='16' y='8' width='1' height='6'/%3E%3Crect x='24' y='8' width='1' height='6'/%3E%3C/svg%3E") repeat-x left bottom / 32px 14px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='14'%3E%3Crect x='0' y='0' width='1' height='14'/%3E%3Crect x='8' y='8' width='1' height='6'/%3E%3Crect x='16' y='8' width='1' height='6'/%3E%3Crect x='24' y='8' width='1' height='6'/%3E%3C/svg%3E") repeat-x left bottom / 32px 14px; }

/* ── Plan (SchedulePage) ───────────────────────────────────────────────────── */
.ctp-head { padding: 16px 16px 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ctp-head-day { min-width: 0; text-align: left; }
.ctp-head-day .ctp-title { text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctp-head-sub { font-size: 14px; color: var(--muted); margin-top: 2px; line-height: 1.43; }
.ctp-head-clock { font-family: var(--ctp-mono); font-weight: 600; font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; flex: none; white-space: nowrap; }
.ctp-days { display: flex; gap: 8px; padding: 0 16px 8px; }
.ctp-day { flex: 1; min-width: 56px; height: 56px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); transition: background-color .15s, color .15s; }
.ctp-day[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ctp-day-w { font-size: 13px; font-weight: 600; text-transform: uppercase; }
.ctp-day-n { font-family: var(--ctp-mono); font-weight: 600; font-size: 17px; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; }
.ctp-day-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
.ctp-day[aria-selected="true"] .ctp-day-dot { background: var(--bg); }
.ctp-chips { display: flex; gap: 8px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
.ctp-chips::-webkit-scrollbar { display: none; }

.ctp-eyebrow { font-family: var(--ctp-mono); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .025em; line-height: 1.5; }
.ctp-now .ctp-eyebrow { opacity: .9; }
.ctp-now-title { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin-top: 2px; }
.ctp-now-loc { font-size: 15px; display: flex; align-items: center; gap: 4px; margin-top: 4px; opacity: .95; line-height: 1.5; }
.ctp-now-foot { display: flex; justify-content: space-between; font-family: var(--ctp-mono); font-size: 14px; font-weight: 500; margin-top: 8px; line-height: 1.43; }
.ctp-next { margin: 0 16px 12px; overflow: hidden; }
.ctp-next-in { padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.ctp-next-t { font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.ctp-next-time { font-family: var(--ctp-mono); font-weight: 600; font-size: 24px; flex: none; }

.ctp-list { margin: 0 16px; position: relative; }
.ctp-list > .ctp-rowwrap { position: relative; }
.ctp-row { display: flex; width: 100%; gap: 12px; padding: 12px 16px; min-height: 64px; text-align: left; align-items: flex-start; }
.ctp-row[data-now="1"] { background: var(--accent-soft); }
.ctp-row-time { width: 58px; flex: none; line-height: 1.25; padding-top: 2px; }
.ctp-row-s { font-family: var(--ctp-mono); font-weight: 600; font-size: 17px; display: block; color: var(--ink); }
.ctp-row-e { font-family: var(--ctp-mono); font-weight: 500; font-size: 13px; display: block; color: var(--muted); }
.ctp-row[data-mute="1"] .ctp-row-s { color: var(--muted); }
.ctp-tape { display: flex; flex-direction: column; width: 6px; flex: none; align-self: stretch; border-radius: 999px; overflow: hidden; }
.ctp-tape > span { flex: 1; }
.ctp-row[data-mute="1"] .ctp-tape { opacity: .45; }
.ctp-row-main { flex: 1; min-width: 0; display: block; }
.ctp-row-t { display: block; font-size: 16px; font-weight: 600; line-height: 1.375; color: var(--ink); }
.ctp-row[data-state="completed"] .ctp-row-t { color: var(--ink-2); }
.ctp-row-loc { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); margin-top: 2px; line-height: 1.43; min-width: 0; }
.ctp-row-dep { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctp-row-desc { display: block; font-size: 15px; line-height: 1.625; color: var(--ink-2); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.ctp-row-side { flex: none; padding-top: 2px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.ctp-nowline { position: relative; height: 0; }
.ctp-nowtag { position: absolute; right: 12px; top: -11px; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 0 8px; font-size: 13px; font-weight: 600; line-height: 20px; z-index: 6; }
.ctp-list-end { position: relative; border-top: 1px solid var(--line); }
.ctp-allday-lbl { font-family: var(--ctp-mono); font-weight: 600; font-size: 13px; color: var(--muted); padding: 0 4px 6px; }
.ctp-pad { height: 24px; }

/* ── Ekipa ───────────────────────────────────────────────────────────────── */
.ctp-sticky { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.ctp-sticky .ctp-title { padding: 16px 16px 12px; }
.ctp-pad-x { padding: 0 16px 12px; }
.ctp-search { position: relative; margin: 0 16px 12px; }
.ctp-search > svg { position: absolute; left: 14px; top: 50%; margin-top: -8px; color: var(--muted); }
.ctp-search .ctp-field { padding-left: 40px; }
.ctp-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.ctp-body { padding: 16px 16px 24px; }
.ctp-person { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.ctp-person-main { flex: 1; min-width: 0; }
.ctp-person-n { font-size: 16px; font-weight: 600; line-height: 1.375; display: flex; align-items: center; gap: 6px; }
.ctp-person-r { font-size: 14px; line-height: 1.375; color: var(--ink-2); }
.ctp-person-d { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.ctp-person-act { display: flex; gap: 8px; flex: none; }
.ctp-ib { width: 48px; height: 48px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); transition: background-color .12s; }
.ctp-ib:active { background: var(--elevated); }
.ctp-ib--call { width: 56px; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ctp-ib--call:active { background: var(--accent-hover); }
.ctp-ib--stop { color: var(--stop); }
.ctp-ib:disabled { cursor: default; }
.ctp-hint { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; padding-bottom: 12px; line-height: 1.43; }
.ctp-private { padding: 12px 16px; }
.ctp-private-top { display: flex; align-items: center; gap: 12px; }
.ctp-private-act { display: flex; gap: 8px; margin-top: 8px; justify-content: flex-end; }
.ctp-empty-t { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.ctp-empty-d { font-size: 14px; color: var(--muted); margin: 8px auto 0; max-width: 20rem; line-height: 1.43; }

/* ── Alerty ──────────────────────────────────────────────────────────────── */
.ctp-ann { display: block; width: 100%; padding: 16px; text-align: left; }
.ctp-ann[data-st="crit-unread"] { background: var(--stop-soft); }
.ctp-ann[data-st="read"] { background: var(--surface); }
.ctp-ann[data-st="unread"] { background: color-mix(in oklab, var(--accent-soft) 40%, transparent); }
.ctp-ann-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ctp-ann-ago { font-family: var(--ctp-mono); font-weight: 500; font-size: 13px; color: var(--muted); }
.ctp-ann-new { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.ctp-ann-new i { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); display: block; }
.ctp-ann[data-st="crit-unread"] .ctp-ann-new i { animation: ctp-pulse 1.6s ease-in-out infinite; }
.ctp-ann-t { display: block; font-size: 18px; line-height: 1.375; color: var(--ink); font-weight: 700; }
.ctp-ann[data-st="read"] .ctp-ann-t { font-weight: 600; }
.ctp-ann-c { display: block; font-size: 16px; line-height: 1.625; color: var(--ink-2); margin-top: 4px; }

/* ── Mapa ────────────────────────────────────────────────────────────────── */
.ctp-maphead { flex: none; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px; }
.ctp-maphead-t { font-size: 20px; font-weight: 700; line-height: 1.4; }
.ctp-maphead-d { font-size: 13px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.ctp-mapview { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--bg); touch-action: none; cursor: grab; }
.ctp-mapview:active { cursor: grabbing; }
.ctp-mapsvg { position: absolute; left: 50%; top: 50%; transform-origin: center center; will-change: transform; }
.ctp-zoom { position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 3; }
.ctp-zoom button { width: 44px; height: 44px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.ctp-zoom button:active { background: var(--elevated); }
.ctp-legend { position: absolute; left: 16px; bottom: 16px; z-index: 3; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.3; color: var(--ink-2); font-weight: 500; }
.ctp-legend > span { display: flex; align-items: center; gap: 8px; }
.ctp-legend i { width: 14px; height: 10px; border-radius: 3px; display: block; border: 1.5px solid var(--line-strong); background: var(--surface); }
.ctp-legend i.on { border-color: var(--accent); background: var(--accent-soft); }
.ctp-mapsvg text { font-family: var(--ctp-mono); font-weight: 600; font-size: 12px; fill: var(--ink-2); }
.ctp-mapsvg .z { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.ctp-mapsvg .z.on { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.ctp-mapsvg .z.on + text, .ctp-mapsvg text.on { fill: var(--accent-ink); }

/* ── Czat ────────────────────────────────────────────────────────────────── */
.ctp-chat-h { flex: none; background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 16px 12px; }
.ctp-chat-sub { font-size: 14px; color: var(--muted); margin-top: 2px; line-height: 1.43; }
.ctp-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; scrollbar-width: none; touch-action: pan-y; overscroll-behavior-x: contain; }
.ctp-msgs::-webkit-scrollbar { display: none; }
.ctp-chat-empty { display: flex; flex-direction: column; align-items: center; padding: 8px 0 16px; }
.ctp-chat-empty .ctp-ruler { width: 160px; margin-bottom: 16px; }
.ctp-chat-et { font-size: 22px; font-weight: 700; margin-bottom: 4px; text-align: center; line-height: 1.3; }
.ctp-chat-ed { font-size: 16px; color: var(--muted); text-align: center; margin-bottom: 24px; line-height: 1.5; }
.ctp-sugs { width: 100%; max-width: 384px; }
.ctp-sug { display: block; width: 100%; text-align: left; background: var(--surface); color: var(--ink); font-size: 16px; padding: 12px 16px; min-height: 52px; line-height: 1.5; transition: background-color .12s; }
.ctp-sug:active { background: var(--elevated); }
.ctp-sug:disabled { opacity: .4; }
.ctp-msg { margin-bottom: 12px; display: flex; flex-direction: column; }
.ctp-msg-row { display: flex; align-items: flex-end; gap: 8px; }
.ctp-msg--user .ctp-msg-row { flex-direction: row-reverse; }
.ctp-av { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--accent-soft); color: var(--accent-ink); }
.ctp-msg--user .ctp-av { background: var(--ink); color: var(--bg); }
.ctp-bub { max-width: 80%; padding: 12px 16px; font-size: 16px; line-height: 1.625; border-radius: 16px; }
.ctp-bub--bot { background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 6px; }
.ctp-bub--user { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.ctp-cards { margin: 8px 0 0 40px; display: flex; flex-direction: column; gap: 8px; }
.ctp-card { border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 10px 12px; }
.ctp-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ctp-card-time { font-family: var(--ctp-mono); font-weight: 600; font-size: 15px; line-height: 1.25; }
.ctp-card-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); flex: none; line-height: 1.4; }
.ctp-card-cat i { width: 8px; height: 8px; border-radius: 999px; display: block; }
.ctp-card-t { font-size: 16px; font-weight: 600; line-height: 1.375; margin-bottom: 4px; }
.ctp-card-bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ctp-card-d { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctp-card--crew { display: flex; align-items: center; gap: 12px; }
.ctp-card-ini { width: 40px; height: 40px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; }
.ctp-card-n { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 6px; line-height: 1.4; }
.ctp-card-r { font-size: 14px; color: var(--muted); line-height: 1.4; }
.ctp-card-call { width: 48px; height: 48px; flex: none; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); display: flex; align-items: center; justify-content: center; }
.ctp-srcs { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 0 40px; }
.ctp-src { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; line-height: 1.4; }
.ctp-typing { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 12px; }
.ctp-typing-b { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 6px; padding: 12px 16px; }
.ctp-typing-d { display: flex; gap: 6px; align-items: center; height: 16px; }
.ctp-typing-d i { width: 6px; height: 6px; background: var(--muted); border-radius: 999px; display: block; animation: ctp-bounce 1s infinite; }
.ctp-typing-d i:nth-child(2) { animation-delay: .15s; }
.ctp-typing-d i:nth-child(3) { animation-delay: .3s; }
.ctp-inputbar { flex: none; border-top: 1px solid var(--line); background: var(--bg); padding: 12px 16px; }
.ctp-inputbar-in { display: flex; align-items: flex-end; gap: 12px; }
.ctp-inputbar textarea { resize: none; border-radius: 14px; padding: 12px 16px; line-height: 20px; max-height: 112px; overflow-y: auto; height: 48px; font-size: 16px; }
.ctp-send { width: 48px; height: 48px; border-radius: 999px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--elevated); color: var(--muted); transition: background-color .12s; }
.ctp-send[data-on="1"] { background: var(--accent); color: var(--on-accent); }

/* ── QR akredytacji ───────────────────────────────────────────────────────── */
.ctp-qrview { display: flex; flex-direction: column; padding-bottom: 8px; }
.ctp-band { padding: 16px 16px 0; }
.ctp-band-ev { font-family: var(--ctp-mono); font-weight: 500; font-size: 13px; color: var(--muted); line-height: 1.5; }
.ctp-band ul { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.ctp-band li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ctp-band-dot { width: 6px; height: 6px; border-radius: 999px; flex: none; }
.ctp-band-c { font-family: var(--ctp-mono); font-weight: 600; color: var(--ink); }
.ctp-band li:first-child .ctp-band-c { font-size: 44px; line-height: 1; }
.ctp-band li:not(:first-child) .ctp-band-c { font-size: 24px; line-height: 1.33; }
.ctp-band-n { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.ctp-qrtile { margin: 16px 16px 0; }
.ctp-qrtile-in { background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 16px; max-width: 360px; margin: 0 auto; }
.ctp-qrtile svg { width: 100%; height: auto; }
.ctp-qrtok { font-family: var(--ctp-mono); font-weight: 500; font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.ctp-person-card { margin: 12px 16px 0; }
.ctp-pc-top { padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.ctp-pc-av { width: 48px; height: 48px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none; }
.ctp-pc-n { font-size: 20px; font-weight: 700; line-height: 1.25; }
.ctp-pc-c { font-size: 14px; color: var(--muted); line-height: 1.43; }
.ctp-pc-zones { padding: 12px 16px; }
.ctp-pc-zl { font-family: var(--ctp-mono); font-weight: 500; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.ctp-pc-zp { display: flex; flex-wrap: wrap; gap: 6px; }
.ctp-pc-st { padding: 12px 16px; display: flex; gap: 8px; align-items: center; }
.ctp-qrhint { font-size: 14px; color: var(--muted); text-align: center; margin: 20px auto 8px; max-width: 20rem; padding: 0 16px; line-height: 1.625; }

/* ── Profil ──────────────────────────────────────────────────────────────── */
.ctp-prof { padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 28px; }
.ctp-prof-top { display: flex; align-items: center; gap: 16px; }
.ctp-prof-av { width: 64px; height: 64px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; flex: none; }
.ctp-prof-n { font-size: 22px; font-weight: 700; line-height: 1.25; }
.ctp-prof-e { font-size: 15px; color: var(--muted); }
.ctp-h2 { font-family: var(--ctp-mono); font-weight: 600; font-size: 13px; color: var(--muted); padding: 0 4px 8px; line-height: 1.4; }
.ctp-info { padding: 0 16px; }
.ctp-info > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 0; }
.ctp-info > div + div { border-top: 1px solid var(--line); }
.ctp-info-l { font-size: 14px; color: var(--muted); flex: none; }
.ctp-info-v { font-size: 15px; color: var(--ink-2); text-align: right; }
.ctp-setrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; min-height: 60px; }
.ctp-setrow-l { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink); }
.ctp-setrow-l svg { color: var(--muted); }
.ctp-setrow .ctp-seg > button { min-height: 44px; }

/* ── Skaner (security) ───────────────────────────────────────────────────── */
.ctp-zone { display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px 16px; min-height: 64px; text-align: left; }
.ctp-zone:active { background: var(--elevated); }
.ctp-zone-n { display: block; font-size: 16px; font-weight: 600; line-height: 1.375; }
.ctp-zone-c { display: block; font-family: var(--ctp-mono); font-weight: 500; font-size: 13px; color: var(--muted); margin-top: 2px; }
.ctp-scan-top { display: flex; align-items: center; gap: 12px; padding: 0 16px 12px; }
.ctp-scan-top > div { flex: 1; min-width: 0; }
.ctp-scan-zone { font-size: 20px; font-weight: 700; line-height: 1.3; }
.ctp-scan-sub { font-family: var(--ctp-mono); font-size: 13px; font-weight: 500; color: var(--muted); }
.ctp-finder { position: relative; margin: 0 16px; height: 236px; border-radius: 16px; background: #0b1513; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ctp-finder-box { position: relative; width: 168px; height: 168px; }
.ctp-finder-box i { position: absolute; width: 28px; height: 28px; border: 3px solid #e8f0ee; display: block; }
.ctp-finder-box i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.ctp-finder-box i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.ctp-finder-box i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.ctp-finder-box i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.ctp-finder-line { position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: #3cc4b6; border-radius: 2px; animation: ctp-scan 1s ease-in-out infinite alternate; }
.ctp-finder-cap { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #b4c6c2; font-size: 14px; line-height: 1.4; }
.ctp-scan-act { padding: 12px 16px 0; }
.ctp-scan-act .ctp-btn-signal, .ctp-scan-act .ctp-btn { width: 100%; }
.ctp-res { margin: 12px 16px 0; border-radius: 16px; padding: 16px; border: 1px solid; }
.ctp-res[data-ok="1"] { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.ctp-res[data-ok="0"] { background: var(--stop-soft); border-color: var(--stop-line); color: var(--stop); }
.ctp-res-top { display: flex; align-items: center; gap: 12px; }
.ctp-res-w { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.ctp-res-p { margin-top: 12px; color: var(--ink); }
.ctp-res-pn { font-size: 20px; font-weight: 700; line-height: 1.25; }
.ctp-res-pc { font-size: 14px; color: var(--ink-2); }
.ctp-res-codes { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ctp-res-why { margin-top: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.43; }
.ctp-log { margin: 16px 16px 0; }
.ctp-log-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 15px; }
.ctp-log-row .ctp-mono { font-size: 13px; color: var(--muted); }
.ctp-log-row span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Warstwy: menu avatara, baner, toast, modal ──────────────────────────── */
.ctp-menu-bd { position: absolute; inset: 0; z-index: 45; }
.ctp-menu { position: absolute; right: 16px; top: 115px; width: 224px; z-index: 50; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); overflow: hidden; animation: ctp-pop .16s cubic-bezier(.22, 1, .36, 1) backwards; transform-origin: top right; }
.ctp-menu-u { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ctp-menu-un { font-size: 15px; font-weight: 500; line-height: 1.4; }
.ctp-menu-uc { font-size: 13px; color: var(--muted); line-height: 1.4; }
.ctp-menu-t { padding: 8px 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.ctp-menu-i { display: flex; width: 100%; align-items: center; gap: 10px; padding: 0 12px; min-height: 48px; font-size: 15px; color: var(--ink-2); transition: background-color .12s, color .12s; }
.ctp-menu-i:active, .ctp-menu-i:hover { background: var(--elevated); color: var(--ink); }
.ctp-menu-i + .ctp-menu-i { border-top: 0; }
.ctp-menu-i--last { border-top: 1px solid var(--line) !important; }
.ctp-banner {
  position: absolute; left: 12px; right: 12px; top: 119px; z-index: 44;
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 600; line-height: 1.43;
  animation: ctp-drop .3s ease-out backwards;
}
.ctp-banner svg { animation: ctp-spin 2s linear infinite; }
.ctp-toast {
  position: absolute; left: 16px; right: 16px; bottom: 110px; z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop);
  animation: ctp-rise .2s cubic-bezier(.22, 1, .36, 1) backwards; width: auto; text-align: left;
}
.ctp-toast-ic { width: 32px; height: 32px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); display: flex; align-items: center; justify-content: center; flex: none; }
.ctp-toast-t { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); display: block; }
.ctp-toast-s { font-size: 13px; color: var(--muted); line-height: 1.35; display: block; }
.ctp-toast--plain { padding: 12px 16px; font-size: 15px; font-weight: 500; color: var(--ink); }
.ctp-modal-bd { position: absolute; inset: 0; z-index: 70; background: color-mix(in oklab, var(--ink) 50%, transparent); display: flex; align-items: flex-start; justify-content: center; padding: 120px 16px 0; animation: ctp-fade .15s ease-out backwards; }
.ctp-modal { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-pop); padding: 20px; animation: ctp-pop .16s cubic-bezier(.22, 1, .36, 1) backwards; }
.ctp-modal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ctp-modal-h h2 { font-size: 20px; font-weight: 700; line-height: 1.4; }
.ctp-modal-x { width: 44px; height: 44px; margin-right: -8px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.ctp-lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.ctp-modal .ctp-fg + .ctp-fg { margin-top: 12px; }
.ctp-err { color: var(--stop); font-size: 13px; margin-top: 8px; }
.ctp-modal-f { display: flex; gap: 8px; padding-top: 16px; }
.ctp-modal-f > button { flex: 1; }

/* ── Ruch: tylko opacity/transform ───────────────────────────────────────── */
@keyframes ctp-route { from { opacity: 0; transform: translateY(8px); } }
@keyframes ctp-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes ctp-fade { from { opacity: 0; } }
@keyframes ctp-drop { from { opacity: 0; transform: translateY(-8px); } }
@keyframes ctp-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes ctp-ring { 0% { opacity: .75; transform: scale(.7); } 80%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes ctp-tip { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-3px); } }
@keyframes ctp-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@keyframes ctp-bounce { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px); } }
@keyframes ctp-spin { to { transform: rotate(360deg); } }
@keyframes ctp-scan { from { transform: translateY(0); } to { transform: translateY(154px); } }
.ctp-route { animation: ctp-route .18s cubic-bezier(.22, 1, .36, 1) backwards; }

@media (prefers-reduced-motion: reduce) {
  .ctp-route, .ctp-menu, .ctp-banner, .ctp-toast, .ctp-modal, .ctp-modal-bd, .ctp-tip, .ctp-typing-d i, .ctp-ann-new i { animation: none !important; }
  .ctp-banner svg { animation: none; }
  .ctp-ring { animation: none; opacity: .6; transform: scale(1); }
  .ctp-progress > i { transition: none; }
  .ctp-finder-line { animation: none; top: 50%; }
}

/* drobne */
.ctp-star { fill: currentColor; color: var(--warn); }
.ctp-ok { color: var(--ok); }
.ctp-list > :first-child .ctp-row { border-radius: 15px 15px 0 0; }
.ctp-list > :last-child .ctp-row { border-radius: 0 0 15px 15px; }
.ctp-list > :only-child .ctp-row { border-radius: 15px; }
.ctp-zoom { flex-direction: row; }
.ctp-field:focus-visible { outline: none; }
.ctp-finder { height: 252px; align-items: flex-start; padding-top: 26px; background: #050b0a; border: 1px solid var(--line); }
.ctp-finder-cap { bottom: 16px; }

/* ── Poprawki po przeglądzie ─────────────────────────────────────────────── */
/* M7: bez bańki, tylko pierścień + punkt przy ikonie Ekipa */
.ctp-tip { display: none; }
.ctp-dot { position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); border: 2px solid var(--surface); pointer-events: none; animation: ctp-pulse 1.6s ease-in-out infinite; }
/* M2: nie blokuj łańcuchowania przewijania */
.ctp-scroll, .ctp-msgs { overscroll-behavior: auto; }
/* m4: skip-link */
.ctp-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink, #14211f); color: #fff; padding: 10px 16px; border-radius: 10px; font: 600 15px/1.2 "Onest", system-ui, sans-serif; text-decoration: none; }
.ctp-skip:focus { position: fixed; left: 12px; top: 12px; outline: 2px solid #3cc4b6; outline-offset: 2px; }
/* m7: pasek postępu przez transform */
.ctp-progress > i { width: 100%; transform-origin: left center; transform: scaleX(var(--p, 0)); transition: transform 1s linear; }
/* m9: baner w przepływie, nie zasłania nagłówka widoku */
.ctp-banner { left: 0; right: 0; top: 111px; border-radius: 0; height: 40px; padding: 0 16px; animation: ctp-fade .2s ease-out backwards; }
.ctp-has-banner .ctp-main { top: 151px; }
/* M6: dokument */
.ctp-docpage { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 18px; display: flex; flex-direction: column; gap: 9px; min-height: 340px; }
.ctp-docpage-h { color: #14211f; font-weight: 700; font-size: 20px; line-height: 1.25; }
.ctp-docpage-s { color: #5a6d69; font-family: var(--ctp-mono); font-size: 13px; margin-bottom: 6px; }
.ctp-docpage i { display: block; height: 8px; border-radius: 4px; background: #d5dedb; }
.ctp-docpage b { display: block; height: 10px; }
/* m6: cele dotyku ≥44px po skali (--ctp-t liczone w JS) */
.ctp-chip, .ctp-btn, .ctp-btn-signal, .ctp-field, .ctp-seg > button, .ctp-menu-i, .ctp-sug, .ctp-modal-x { min-height: var(--ctp-t, 48px); }
.ctp-ib { width: var(--ctp-t, 48px); height: var(--ctp-t, 48px); }
.ctp-ib--call { width: calc(var(--ctp-t, 48px) + 8px); }
.ctp-send { width: var(--ctp-t, 48px); height: var(--ctp-t, 48px); }
.ctp-zoom button { width: var(--ctp-t, 44px); height: var(--ctp-t, 44px); }
.ctp-avatar-btn { min-width: var(--ctp-t, 44px); min-height: var(--ctp-t, 44px); margin: -4px 0; }
.ctp-modal-x { min-width: var(--ctp-t, 44px); }
.ctp-inputbar textarea { height: 56px; }
.ctp-card-call { width: var(--ctp-t, 48px); height: var(--ctp-t, 48px); }
.ctp-nav-item { min-height: 64px; }
.ctp-nav-lbl { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .ctp-dot { animation: none; } }
