/* =========================================================
   Regatio – Panel Klienta (demo) · styles.css
   Tylko tryb jasny. Bez zależności zewnętrznych poza Google Fonts.
   ========================================================= */

/* Fonty lokalne (OFL) – podzbiór łaciński z polskimi znakami; brak zapytań zewnętrznych */
@font-face { font-family: 'Inter'; src: url('assets/fonts/Inter-Variable.woff') format('woff'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('assets/fonts/SourceSerif4-Variable.woff') format('woff'); font-weight: 200 900; font-style: normal; font-display: swap; }

:root {
  --red: #DC0027;
  --red-h: #B0001F;
  --red-l: #FCEBEE;
  --red-tint: rgba(220, 0, 39, .08);
  --ink: #142536;
  --ink-2: #2B3B4C;
  --muted: #5A6573;
  --muted-2: #8A929C;
  --paper: #F5F2ED;
  --paper-2: #EEE9E1;
  --paper-3: #FAF8F5;
  --card: #FFFFFF;
  --line: rgba(16, 24, 33, .13);
  --line-2: rgba(16, 24, 33, .08);

  --ok: #15803D; --ok-bg: #DCFCE7; --ok-bd: #BBF7D0;
  --warn: #B45309; --warn-bg: #FEF3C7; --warn-bd: #FDE68A;
  --info: #1D4ED8; --info-bg: #DBEAFE; --info-bd: #BFDBFE;
  --urg: #B0001F; --urg-bg: #FCEBEE; --urg-bd: rgba(220, 0, 39, .45);

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;

  --r-sm: 6px; --r: 10px; --r-md: 12px; --r-lg: 16px;
  --sh-1: 0 1px 2px rgba(20, 37, 54, .05);
  --sh-2: 0 12px 32px -12px rgba(20, 37, 54, .22), 0 2px 6px rgba(20, 37, 54, .05);
  --sh-3: 0 28px 70px -18px rgba(20, 37, 54, .40), 0 4px 12px rgba(20, 37, 54, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --ribbon-h: 32px;
  --top-h: 64px;
  --side-w: 260px;
  --bnav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.5;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.num, .tnum { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus { outline: none; }
:focus-visible { outline: 3px solid rgba(220, 0, 39, .45); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: 8px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

svg.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic-14 { width: 14px !important; height: 14px !important; }
.ic-16 { width: 16px !important; height: 16px !important; }
.ic-20 { width: 20px !important; height: 20px !important; }
.ic-24 { width: 24px !important; height: 24px !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn svg.ic { width: 16px; height: 16px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover { background: var(--red-h); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0B1824; }
.btn-outline { background: var(--card); border-color: var(--line); color: var(--ink); box-shadow: var(--sh-1); }
.btn-outline:hover { background: var(--paper-3); border-color: rgba(16,24,33,.22); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(20, 37, 54, .06); }
.btn-success { background: var(--ok); color: #fff; }
.btn-success:hover { background: #116A33; }
.btn-danger-ghost { background: transparent; color: var(--urg); border-color: var(--urg-bd); }
.btn-danger-ghost:hover { background: var(--red-l); }
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15.5px; border-radius: 10px; }
.btn-icon { width: 38px; padding: 0; }
.btn-sm.btn-icon { width: 32px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.link-btn {
  background: none; border: 0; padding: 0; color: var(--red-h); font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 500; line-height: 1.35; white-space: nowrap; border: 1px solid transparent;
  background: var(--paper-2); color: var(--ink-2);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.no-dot::before { display: none; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-bd); }
.badge.warn, .badge.progress { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-bd); }
.badge.info { background: var(--info-bg); color: var(--info); border-color: var(--info-bd); }
.badge.urg, .badge.urgent { background: var(--urg-bg); color: var(--urg); border-color: var(--urg-bd); }
.badge.success { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-bd); }
.badge.neutral, .badge.planned { background: #F1F3F5; color: #44505C; border-color: #E2E6EA; }
.badge.todo { background: var(--urg-bg); color: var(--urg); border-color: var(--urg-bd); }
.count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff;
  font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.tag-small {
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: var(--paper-2); padding: 2px 6px; border-radius: 4px;
}

/* =========================================================
   LANDING
   ========================================================= */
.landing { min-height: 100vh; display: flex; flex-direction: column; }
.l-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.l-header { position: sticky; top: 0; z-index: 30; background: rgba(245, 242, 237, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line-2); }
.l-header-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.l-brand img { height: 44px; width: auto; }
.l-tag { font-size: 13px; color: var(--muted); padding-left: 18px; border-left: 1px solid var(--line); }
.l-pdf { margin-left: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red-h);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 92% -10%, rgba(220, 0, 39, .07), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(20, 37, 54, .06), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero-title { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 5.2vw, 62px); line-height: 1.06; letter-spacing: -.015em; margin: 18px 0 22px; }
.hero-title #hero-hello { color: var(--ink); }
.hero-company { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(220, 0, 39, .55); text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-skip-ink: auto; overflow-wrap: anywhere; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 600px; }
.free-badge {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px;
  background: var(--card); border: 1px solid rgba(220, 0, 39, .28); border-radius: 999px; box-shadow: var(--sh-1);
  font-size: 14.5px; color: var(--ink);
}
.free-badge svg { color: var(--red); width: 18px; height: 18px; }
.landing-profile { margin-top: 22px; }
.landing-profile-label { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; }
.chip svg { width: 15px; height: 15px; color: var(--red); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fineprint { margin-top: 16px; font-size: 13px; color: var(--muted); max-width: 560px; }
.note-247 { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); max-width: 560px; }
.note-247 svg { width: 16px; height: 16px; margin-top: 2px; color: var(--red); flex: none; }

/* hero mock */
.hero-visual { position: relative; padding: 24px 8px 40px 24px; }
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-3); overflow: hidden; transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.mock-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line-2); background: var(--paper-3); }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: #E3DED6; }
.mock-bar em { margin-left: 10px; font-style: normal; font-size: 11.5px; color: var(--muted); }
.mock-body { display: grid; grid-template-columns: 52px 1fr; min-height: 300px; }
.mock-side { border-right: 1px solid var(--line-2); padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.mock-side i { height: 8px; border-radius: 4px; background: var(--paper-2); }
.mock-side i.on { background: var(--red); width: 70%; }
.mock-main { padding: 18px; }
.mock-hello { font-family: var(--serif); font-weight: 600; font-size: 17px; margin-bottom: 14px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpis div { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 3px; }
.mock-kpis small { font-size: 10.5px; color: var(--muted); }
.mock-kpis b { font-size: 14px; font-variant-numeric: tabular-nums; }
.mock-kpis em { font-style: normal; font-size: 10px; color: var(--muted); }
.mock-kpis em.up { color: var(--ok); }
.mock-chart { margin-top: 16px; height: 130px; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 5px; padding: 10px 10px 0; border: 1px solid var(--line-2); border-radius: 10px;
  background: repeating-linear-gradient(to top, transparent 0 31px, var(--line-2) 31px 32px); }
.mock-chart span { height: var(--h); background: var(--ink); border-radius: 4px 4px 0 0; }
.mock-chart span.c { background: var(--red); opacity: .85; margin-right: 6px; }
.mock-chart span.f { opacity: .35; }
.float-card { position: absolute; display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-2); font-size: 12.5px; }
.float-card b { display: block; font-weight: 600; }
.float-card small { color: var(--muted); font-size: 11.5px; }
.fc-1 { left: -6px; bottom: 0; animation: float 6s ease-in-out infinite; }
.fc-2 { right: -4px; top: 0; animation: float 7s ease-in-out -2s infinite; }
.fc-dot { width: 10px; height: 10px; border-radius: 50%; }
.fc-dot.amber { background: #F59E0B; box-shadow: 0 0 0 4px #FEF3C7; }
.fc-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--red-l); color: var(--red); display: grid; place-items: center; }
.fc-ic svg { width: 16px; height: 16px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.l-section { padding: 84px 0; }
.l-section-alt { background: var(--paper-3); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.l-h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -.01em; margin: 12px 0 32px; max-width: 720px; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s; }
.benefit:hover { box-shadow: var(--sh-2); }
.benefit-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--red-l); color: var(--red); display: grid; place-items: center; margin-bottom: 18px; }
.benefit-ic svg { width: 20px; height: 20px; }
.benefit h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.plan-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.steps { position: relative; display: flex; flex-direction: column; gap: 26px; }
.steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--red), var(--line)); }
.steps li { position: relative; display: flex; gap: 18px; }
.step-dot { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--card); border: 2px solid var(--red); color: var(--red-h); font-weight: 600; display: grid; place-items: center; z-index: 1; }
.steps li:first-child .step-dot { background: var(--red); color: #fff; }
.steps b { display: block; font-size: 16px; margin-top: 6px; }
.steps p { color: var(--muted); margin-top: 4px; font-size: 14.5px; }
.when-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--sh-2); }
.when-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.when-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.when-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.when-advisor { margin-top: 16px; display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--paper-3); border: 1px solid var(--line-2); border-radius: 10px; }
.when-advisor svg { color: var(--red); }
.when-small { margin-top: 12px; font-size: 13px !important; color: var(--muted) !important; }
.when-card .btn { margin-top: 20px; }

.safe-box { display: grid; grid-template-columns: auto 1fr; gap: 22px; background: var(--red-l); border: 1px solid rgba(220, 0, 39, .25); border-radius: var(--r-lg); padding: 30px 32px; }
.safe-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--card); color: var(--red); display: grid; place-items: center; box-shadow: var(--sh-1); }
.safe-ic svg { width: 24px; height: 24px; }
.safe-box h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.safe-box li { position: relative; padding-left: 22px; margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.safe-box li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.safe-box a { color: var(--red-h); font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.contact-card:hover { border-color: rgba(220, 0, 39, .4); box-shadow: var(--sh-2); }
.contact-ic { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--paper-2); color: var(--ink); display: grid; place-items: center; }
.contact-card small { display: block; color: var(--muted); font-size: 12px; }
.contact-card b { font-weight: 600; font-size: 14.5px; }
.contact-card-pdf .contact-ic { background: var(--red); color: #fff; }
.l-final-cta { margin-top: 40px; display: flex; justify-content: center; }

.l-footer { background: var(--ink); color: rgba(255, 255, 255, .82); padding: 40px 0 48px; margin-top: auto; }
.l-footer-inner { display: flex; gap: 32px; align-items: flex-start; font-size: 13.5px; line-height: 1.7; }
.l-footer img { height: 40px; width: auto; }
.l-footer strong { color: #fff; }
.l-footer-note { margin-top: 8px; color: rgba(255, 255, 255, .62); font-size: 12.5px; }
.l-footer-build { margin-top: 10px; color: rgba(255, 255, 255, .74); font-size: 12.5px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.build-line { margin: 8px 0 0; padding: 0 10px; color: var(--muted); font-size: 11.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.build-line.in-modal, .build-line.in-sheet { padding: 10px 0 0; border-top: 1px solid var(--line, #E3E8EE); margin-top: 6px; font-size: 12px; }
.build-line.in-sheet { margin-top: 14px; text-align: center; border-top: 0; }
.noscript { position: fixed; left: 12px; right: 12px; bottom: 12px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; }

/* =========================================================
   APP SHELL
   ========================================================= */
body.is-app { background: var(--paper); }
.app { min-height: 100vh; }
.ribbon {
  position: sticky; top: 0; z-index: 40; height: var(--ribbon-h);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; letter-spacing: .01em;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 10px, transparent 10px 20px);
}
.ribbon .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(220, 0, 39, .3); }
.ribbon .sep { opacity: .45; }
.ribbon .muted { color: rgba(255, 255, 255, .72); }

.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
.sidebar {
  position: sticky; top: var(--ribbon-h); height: calc(100vh - var(--ribbon-h));
  background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column;
}
.side-brand { height: var(--top-h); display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.side-brand img { height: 34px; width: auto; }
.side-brand span { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; padding-left: 10px; border-left: 1px solid var(--line); }
.side-nav { flex: 1; overflow-y: auto; padding: 14px 12px 12px; scrollbar-width: thin; }
.nav-group + .nav-group { margin-top: 16px; }
.nav-label { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav-item {
  position: relative; width: 100%; display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px;
  border: 0; background: transparent; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500; text-align: left; text-decoration: none;
  transition: background-color .12s, color .12s;
}
.nav-item svg.ic { color: #6B7580; }
.nav-item:hover { background: var(--paper); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--red-l); color: var(--ink); font-weight: 600; }
.nav-item[aria-current="page"] svg.ic { color: var(--red); }
.nav-item[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.nav-item .count { margin-left: auto; }
.nav-item.is-extra { color: var(--muted); font-weight: 500; }
.nav-item.is-extra .tag-small { margin-left: auto; }
.nav-item .nav-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot { padding: 12px; border-top: 1px solid var(--line-2); }
.advisor-card { padding: 14px; border-radius: 12px; background: var(--paper-3); border: 1px solid var(--line-2); }
.advisor-card small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.advisor-row { display: flex; gap: 10px; align-items: center; }
.advisor-row b { display: block; font-size: 13.5px; }
.advisor-row span:not(.avatar) { font-size: 12px; color: var(--muted); }
.advisor-card .btn { width: 100%; margin-top: 12px; }
.back-link { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; padding: 8px 10px; border: 0; background: none; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.back-link:hover { background: var(--paper); color: var(--ink); }

.avatar {
  width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 42px; height: 42px; font-size: 14px; }
.avatar.red { background: var(--red); }
.avatar.soft { background: var(--paper-2); color: var(--ink); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: var(--ribbon-h); z-index: 30; height: var(--top-h);
  display: flex; align-items: center; gap: 12px; padding: 0 28px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.crumbs b { font-weight: 600; white-space: nowrap; }
.crumbs span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs svg { width: 14px; height: 14px; color: var(--muted-2); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.demo-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--red-l); color: var(--urg); border: 1px solid rgba(220, 0, 39, .3); font-size: 12.5px; font-weight: 600;
}
.demo-pill:hover { background: #F9DCE2; }
.demo-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(220,0,39,.45); } 70% { box-shadow: 0 0 0 7px rgba(220,0,39,0); } 100% { box-shadow: 0 0 0 0 rgba(220,0,39,0); } }
.company-chip { display: flex; align-items: center; gap: 10px; padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--line); }
.company-chip b { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.company-chip small { display: block; font-size: 11.5px; color: var(--muted); }

.m-top, .bnav { display: none; }

.content { padding: 28px 32px 56px; width: 100%; max-width: 1320px; margin: 0 auto; }
.content.enter { animation: viewIn .28s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.page-sub { margin-top: 6px; color: var(--muted); font-size: 14px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.extra-note {
  display: flex; gap: 12px; align-items: center; padding: 12px 16px; margin-bottom: 18px;
  background: var(--card); border: 1px dashed rgba(16, 24, 33, .25); border-radius: var(--r-md); font-size: 13.5px; color: var(--ink-2);
}
.extra-note svg { color: var(--red); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-head h2, .card-head h3 { font-size: 15.5px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.card-head h2 svg, .card-head h3 svg { width: 18px; height: 18px; color: var(--muted); }
.card-head .meta { font-size: 12.5px; color: var(--muted); }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--paper-3); border-radius: 0 0 var(--r-md) var(--r-md); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-60 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.kpi { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--paper); display: grid; place-items: center; color: var(--ink-2); }
.kpi-ic svg { width: 16px; height: 16px; }
.kpi-value { font-size: 25px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi-note { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi-note.up { color: var(--ok); font-weight: 500; }
.kpi-spark { position: absolute; right: 16px; bottom: 16px; width: 64px; height: 24px; opacity: .9; }
.kpi.has-spark .kpi-note { padding-right: 74px; }

/* Deadlines */
.dl-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.dl-list li:last-child { border-bottom: 0; }
.dl-date { width: 52px; height: 52px; border-radius: 10px; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--paper-3); }
.dl-date b { font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.dl-date small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 3px; }
.dl-list li.is-todo .dl-date { border-color: rgba(220, 0, 39, .45); background: var(--red-l); }
.dl-list li.is-todo .dl-date b { color: var(--red-h); }
.dl-title { font-weight: 500; }
.dl-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 5px; font-size: 12.5px; color: var(--muted); }

/* Activity timeline */
.act-list { padding: 6px 0; }
.act-item { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: start; padding: 12px 20px; border: 0; background: none; text-align: left; transition: background .12s; }
.act-item:hover { background: var(--paper-3); }
.act-item p { font-size: 13.5px; line-height: 1.45; }
.act-item .when { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 6px; align-items: center; }
.act-item .go { color: var(--muted-2); margin-top: 6px; }
.act-item:hover .go { color: var(--red); }

/* Services row on dashboard */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.svc { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.svc:hover { border-color: rgba(220, 0, 39, .35); box-shadow: var(--sh-2); transform: translateY(-1px); }
.svc-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--red-l); color: var(--red); display: grid; place-items: center; flex: none; }
.svc.is-extra .svc-ic { background: var(--paper-2); color: var(--ink-2); }
.svc b { display: block; font-size: 14px; }
.svc small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.section-title { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 0; background: none; color: var(--muted); font-weight: 500; font-size: 14px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--red); border-radius: 2px; }
.tab .count { background: var(--ink); }

/* Segmented filters */
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { border-color: rgba(16, 24, 33, .25); }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg button .n { font-variant-numeric: tabular-nums; opacity: .7; }

/* Tables */
.tbl-wrap { overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--paper-3); white-space: nowrap; }
.tbl th:first-child { border-radius: var(--r-md) 0 0 0; }
.tbl th:last-child { border-radius: 0 var(--r-md) 0 0; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--paper-3); }
.tbl .r { text-align: right; }
.tbl .strong { font-weight: 600; }
.tbl .sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tbl .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.tbl .mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.empty { padding: 32px 20px; text-align: center; color: var(--muted); }
.row-new { animation: rowIn .6s var(--ease); }
@keyframes rowIn { from { background: #FFF6D6; } to { background: transparent; } }

/* Chart */
.chart-card { padding: 20px; }
.chart-card .card-head { flex-wrap: wrap; }
.chart-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-wrap { position: relative; margin-top: 12px; }
.chart-svg { width: 100%; height: 280px; display: block; overflow: visible; }
.chart-svg .grid line { stroke: var(--line-2); }
.chart-svg .grid text, .chart-svg .xl text { font-size: 11px; fill: var(--muted); font-family: var(--sans); }
.chart-svg .bar { cursor: pointer; transition: opacity .15s; }
.chart-svg .bar:hover, .chart-svg .bar:focus { opacity: .82; }
.chart-svg .bar:focus { outline: none; }
.chart-svg .bar:focus-visible { stroke: var(--red); stroke-width: 2; }
.chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, -100%); background: var(--ink); color: #fff; font-size: 12.5px; padding: 8px 10px; border-radius: 8px; white-space: nowrap; box-shadow: var(--sh-2); opacity: 0; transition: opacity .12s; }
.chart-tip.on { opacity: 1; }
.chart-tip b { font-variant-numeric: tabular-nums; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line-2); background: var(--paper-3); border-radius: 0 0 var(--r-md) var(--r-md); flex-wrap: wrap; }
.result-bar b { font-size: 16px; font-variant-numeric: tabular-nums; }

/* Upload */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  padding: 36px 20px; border: 2px dashed rgba(20, 37, 54, .45); border-radius: 14px; background: var(--paper-3);
  transition: background .15s, border-color .15s; cursor: pointer; width: 100%;
}
.dropzone:hover, .dropzone.drag { border-color: var(--red); background: var(--red-l); }
.dropzone-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); box-shadow: var(--sh-1); }
.dropzone-ic svg { width: 24px; height: 24px; }
.dropzone b { font-size: 15px; }
.dropzone span { color: var(--muted); font-size: 13px; }
.upload-controls { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.privacy-hint { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.privacy-hint svg { width: 14px; height: 14px; color: var(--ok); }
.up-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line-2); }
.up-item:last-child { border-bottom: 0; }
.file-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--paper); display: grid; place-items: center; color: var(--ink-2); }
.file-ic svg { width: 17px; height: 17px; }
.up-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin-top: 6px; }
.progress > i { display: block; height: 100%; width: var(--p, 0%); background: var(--ok); border-radius: 99px; transition: width 1s var(--ease); }
.progress.amber > i { background: #F59E0B; }
.progress.ink > i { background: var(--ink); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid rgba(16, 24, 33, .2); border-radius: 8px; background: var(--card);
  font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6573' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(220, 0, 39, .15); }
.input::placeholder, .textarea::placeholder { color: #8A929C; }
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(16, 24, 33, .2); font-size: 13.5px; font-weight: 500; background: var(--card); }
.radio-pill input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.radio-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(220, 0, 39, .35); }
.field-error { font-size: 12.5px; color: var(--urg); }
.input.invalid, .textarea.invalid { border-color: var(--red); }
.searchbox { position: relative; flex: 1; min-width: 220px; }
.searchbox svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.searchbox .input { padding-left: 36px; }

/* Toggle */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; }
.switch button { width: 40px; height: 24px; border-radius: 99px; border: 0; background: #C9CED4; position: relative; transition: background .18s; flex: none; }
.switch button::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .18s var(--ease); }
.switch button[aria-checked="true"] { background: var(--ok); }
.switch button[aria-checked="true"]::after { transform: translateX(16px); }

/* Summary cards */
.sum-card { padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.sum-ic { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--paper); display: grid; place-items: center; color: var(--ink-2); }
.sum-card small { display: block; color: var(--muted); font-size: 12.5px; }
.sum-card b { display: block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; margin: 2px 0; }
.sum-card span { font-size: 12.5px; color: var(--muted); }

/* Attendance */
.att-wrap { overflow-x: auto; }
.att { border-collapse: separate; border-spacing: 3px; font-size: 11px; font-variant-numeric: tabular-nums; }
.att th { font-weight: 600; color: var(--muted); padding: 2px 0; text-align: center; min-width: 26px; }
.att th.name { text-align: left; min-width: 170px; padding-right: 10px; font-size: 13px; color: var(--ink); font-weight: 500; }
.att th.we { color: #A1A8B0; }
.att td { width: 26px; height: 28px; text-align: center; border-radius: 5px; font-weight: 600; font-size: 10px; }
.cell-OB { background: var(--ok-bg); color: var(--ok); }
.cell-UW { background: var(--info-bg); color: var(--info); }
.cell-L4 { background: var(--warn-bg); color: var(--warn); }
.cell-WN { background: repeating-linear-gradient(135deg, var(--info-bg) 0 4px, #fff 4px 8px); color: var(--info); outline: 1px dashed var(--info-bd); }
.cell-WE { background: #EFEDE9; color: transparent; }
.cell-SW { background: var(--red-l); color: var(--urg); }
.cell-FUT { background: var(--paper-3); color: transparent; border: 1px solid var(--line-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 14px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 18px; height: 14px; border-radius: 4px; font-style: normal; font-size: 8.5px; font-weight: 700; display: inline-grid; place-items: center; }
.att-mobile { display: none; }

/* Leave cards */
.leave { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.leave:last-child { border-bottom: 0; }
.leave b { font-weight: 600; }
.leave .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.leave-acts { display: flex; gap: 8px; align-items: center; }

/* Legal */
.reg-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 20px; margin-bottom: 18px; }
.reg-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.reg-ic svg { width: 22px; height: 22px; }
.reg-name { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.reg-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.reg-facts b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.risk { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.risk:last-of-type { border-bottom: 0; }
.risk-n { width: 28px; height: 28px; border-radius: 50%; background: var(--red-l); color: var(--urg); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.risk b { display: block; margin-bottom: 3px; }
.risk p { color: var(--ink-2); font-size: 13.5px; }
.risk .rec { margin-top: 8px; font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--ok-bg); color: #14532D; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--paper-3); border: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); }
.callout svg { color: var(--ink); margin-top: 1px; }
.callout.urg { background: var(--red-l); border-color: var(--urg-bd); }
.callout.urg svg { color: var(--red); }

/* Biuro */
.vo-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 18px; flex-wrap: wrap; }
.vo-head .pkg { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.vo-head .pkg i { font-style: normal; padding: 3px 8px; border-radius: 6px; background: linear-gradient(135deg, #E9ECEF, #C9CED4); color: var(--ink); font-size: 12px; letter-spacing: .08em; }
.letter { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.letter:last-child { border-bottom: 0; }
.letter.is-new { background: linear-gradient(90deg, rgba(220, 0, 39, .05), transparent 60%); }
.letter-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--paper); color: var(--ink-2); display: grid; place-items: center; }
.letter.is-new .letter-ic { background: var(--red-l); color: var(--red); }
.letter-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.letter-from { font-weight: 600; }
.letter-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.letter-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.room-switch { margin-bottom: 14px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; padding: 4px 0; text-transform: uppercase; letter-spacing: .04em; }
.cal button, .cal span.d { height: 38px; border-radius: 8px; border: 1px solid transparent; background: none; font-size: 13px; font-variant-numeric: tabular-nums; display: grid; place-items: center; position: relative; }
.cal span.d { color: #B2B8BF; }
.cal span.d.hol { color: var(--urg); opacity: .55; }
.cal button { background: var(--paper-3); border-color: var(--line-2); font-weight: 500; }
.cal button:hover { border-color: var(--ink); }
.cal button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cal button.today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.cal button.has-mine::before { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.day-strip { display: none; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.day-strip::-webkit-scrollbar { display: none; }
.day-strip button { flex: none; scroll-snap-align: start; width: 64px; height: 62px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.day-strip button small { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.day-strip button b { font-size: 14px; font-variant-numeric: tabular-nums; }
.day-strip button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.day-strip button[aria-pressed="true"] small { color: rgba(255,255,255,.75); }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
.slot { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 13.5px; font-variant-numeric: tabular-nums; text-align: left; }
.slot small { font-size: 12px; font-weight: 500; }
.slot.free small { color: var(--ok); }
.slot.free:hover { border-color: var(--ok); background: #F3FCF6; }
.slot.busy { background: #F3F1EE; color: #8A929C; cursor: not-allowed; border-style: dashed; }
.slot.mine { background: var(--ok-bg); border-color: var(--ok-bd); color: #14532D; cursor: default; }
.slot.sel { border-color: var(--red); background: var(--red-l); box-shadow: 0 0 0 2px rgba(220, 0, 39, .2); }
.slot.sel small { color: var(--urg); }
.book-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--paper-3); border: 1px solid var(--line-2); flex-wrap: wrap; }
.my-bookings li { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 13.5px; }
.my-bookings svg { color: var(--ok); width: 16px; height: 16px; }

/* Scan mock */
.scan { position: relative; background: #FDFCFA; border: 1px solid var(--line); border-radius: 6px; padding: 34px 38px; font-family: var(--serif); font-size: 13.5px; color: #2B2B2B; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 30px -12px rgba(0,0,0,.25); line-height: 1.65; }
.scan .lh { display: flex; justify-content: space-between; font-family: var(--sans); font-size: 11.5px; color: #555; }
.scan h4 { font-family: var(--sans); font-size: 14px; text-align: center; margin: 22px 0 14px; letter-spacing: .06em; }
.scan .blur { display: block; height: 9px; background: #E6E3DE; border-radius: 3px; margin: 9px 0; }
.scan .stamp { position: absolute; top: 70px; right: 30px; transform: rotate(-8deg); border: 2px solid var(--red); color: var(--red); font-family: var(--sans); font-size: 10.5px; font-weight: 700; padding: 6px 10px; border-radius: 6px; text-align: center; letter-spacing: .04em; opacity: .85; line-height: 1.35; }
.scan .wm { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--sans); font-weight: 800; font-size: 54px; color: rgba(20, 37, 54, .05); transform: rotate(-18deg); pointer-events: none; letter-spacing: .1em; }

/* QR mock */
.qr { width: 168px; height: 168px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qr-box { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Tickets master-detail */
.md { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: 18px; align-items: start; }
.md-list { overflow: hidden; }
.tk { width: 100%; display: block; padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line-2); background: var(--card); text-align: left; position: relative; transition: background .12s; }
.tk:last-child { border-bottom: 0; }
.tk:hover { background: var(--paper-3); }
.tk[aria-current="true"] { background: var(--red-l); }
.tk[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); }
.tk-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tk-top .date { margin-left: auto; }
.tk-title { font-weight: 600; margin: 5px 0 8px; font-size: 14px; line-height: 1.4; }
.tk-bottom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.tk.is-new { animation: rowIn 1.2s var(--ease); }
.md-detail { position: sticky; top: calc(var(--ribbon-h) + var(--top-h) + 20px); }
.md-detail-head { padding: 20px; border-bottom: 1px solid var(--line-2); }
.md-detail-head h2 { font-size: 19px; font-weight: 600; margin: 6px 0 12px; line-height: 1.35; }
.md-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.md-facts b { color: var(--ink); font-weight: 600; }
.md-back { display: none; }
.tl { padding: 18px 20px 6px; }
.tl li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 18px; }
.tl li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line-2); }
.tl li:last-child::before { display: none; }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.tl-dot svg { width: 14px; height: 14px; }
.tl-dot.assign { background: var(--info-bg); color: var(--info); border-color: var(--info-bd); }
.tl-dot.comment { background: var(--card); }
.tl-dot.me { background: var(--ink); color: #fff; border-color: var(--ink); }
.tl-dot.done { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-bd); }
.tl-dot.status { background: var(--red-l); color: var(--red); border-color: var(--urg-bd); }
.tl-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-text { font-size: 13.5px; margin-top: 2px; }
.tl-quote { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: var(--paper-3); border: 1px solid var(--line-2); font-size: 13.5px; }
.tl li.is-new { animation: rowIn 1s var(--ease); }
.reply { display: flex; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--line-2); align-items: flex-end; }
.reply .textarea { min-height: 44px; height: 44px; resize: none; }

/* Chat */
.chat { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - var(--ribbon-h) - var(--top-h) - 140px); min-height: 520px; overflow: hidden; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list-head { padding: 14px 16px; border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.th { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line-2); background: none; text-align: left; position: relative; }
.th:hover { background: var(--paper-3); }
.th[aria-current="true"] { background: var(--red-l); }
.th[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); }
.th-name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-role { font-size: 12px; color: var(--muted); }
.th-prev { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.th.unread .th-prev { color: var(--ink); font-weight: 500; }
.th-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 11.5px; color: var(--muted); }
.conv { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.conv-head { display: flex; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.conv-head b { display: block; }
.conv-head small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.conv-head small .on { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(var(--paper-3), var(--card) 160px); }
.msg { max-width: 72%; display: flex; flex-direction: column; gap: 4px; animation: viewIn .25s var(--ease); }
.msg .bub { padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; overflow-wrap: anywhere; }
.msg small { font-size: 11.5px; color: var(--muted); padding: 0 4px; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me .bub { background: var(--ink); color: #fff; border-color: var(--ink); border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.msg.auto .bub { background: var(--paper-3); border-style: dashed; color: var(--ink-2); font-size: 13.5px; }
.msg .att-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.12); font-size: 12.5px; margin-top: 6px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.composer { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line-2); background: var(--card); }
.composer .input { height: 42px; }
.composer-att { display: none; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--paper); margin: 0 16px 0; }
.chat-hours { padding: 8px 20px; font-size: 12px; color: var(--muted); background: var(--paper-3); border-top: 1px solid var(--line-2); display: flex; gap: 8px; align-items: center; }
.chat-hours svg { width: 14px; height: 14px; }

/* Documents */
.folders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.folder { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: left; transition: border-color .15s, box-shadow .15s; box-shadow: var(--sh-1); }
.folder:hover { border-color: rgba(16,24,33,.3); }
.folder[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(220, 0, 39, .12); }
.folder-ic { width: 38px; height: 38px; border-radius: 10px; background: #FFF4D6; color: #A16207; display: grid; place-items: center; }
.folder[aria-pressed="true"] .folder-ic { background: var(--red-l); color: var(--red); }
.folder b { font-size: 14px; line-height: 1.35; }
.folder small { color: var(--muted); font-size: 12.5px; }
.doc-filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line-2); align-items: center; }
.doc-filters .select { width: auto; min-width: 150px; }

/* IT */
.status-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.status-top { display: flex; align-items: center; gap: 12px; }
.status-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); flex: none; }
.status-card b { font-size: 14.5px; }
.status-card .val { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.status-card .val .live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.status-card p { font-size: 12.5px; color: var(--muted); }
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Modals, toasts, sheet, tour
   ========================================================= */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(20, 37, 54, .48); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: grid; place-items: center; padding: 24px; animation: fadeIn .18s ease; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--card); border-radius: 16px; box-shadow: var(--sh-3); animation: modalIn .24s var(--ease); }
.modal.lg { max-width: 720px; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; }
.modal-head h2 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.modal-head p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.modal-head .btn { margin-left: auto; margin-top: -4px; margin-right: -6px; }
.modal-body { padding: 4px 22px 20px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line-2); background: var(--paper-3); border-radius: 0 0 16px 16px; flex-wrap: wrap; }
.modal-closing { animation: fadeOut .16s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }

.sheet-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }
.sheet-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); text-align: left; text-decoration: none; }
.sheet-item:hover { background: var(--paper-3); }
.sheet-item .svc-ic { width: 36px; height: 36px; }
.sheet-item b { font-size: 14.5px; display: block; }
.sheet-item small { font-size: 12px; color: var(--muted); }
.sheet-item .count, .sheet-item .tag-small { margin-left: auto; }
.sheet-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 2px 8px; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; min-width: 280px; max-width: 420px; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: var(--sh-3); font-size: 13.5px; animation: toastIn .3s var(--ease); }
.toast svg { color: #4ADE80; margin-top: 1px; }
.toast.info svg { color: #93C5FD; }
.toast b { display: block; font-weight: 600; }
.toast span { color: rgba(255, 255, 255, .8); }
.toast .toast-act { margin-top: 6px; background: none; border: 0; padding: 0; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.toast-x { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,.6); padding: 2px; border-radius: 6px; }
.toast-x:hover { color: #fff; }
.toast.out { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* Przewodnik: style w bloku „1.3.0 · Przewodnik 2.0” na końcu pliku */

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .company-chip div { display: none; }
}
@media (max-width: 1100px) {
  .folders { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 32px; }
}

/* Tablet + mobile: bottom navigation */
@media (max-width: 1023px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar, .topbar { display: none; }
  .m-top {
    position: sticky; top: var(--ribbon-h); z-index: 30; height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  }
  .m-top img { height: 26px; width: auto; }
  .m-top .m-title { font-weight: 600; font-size: 15px; padding-left: 10px; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .m-top .m-acts { margin-left: auto; display: flex; gap: 6px; align-items: center; }
  .m-top .btn-icon { width: 38px; height: 38px; }
  .bnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--bnav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .bnav button { position: relative; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--muted); }
  .bnav button svg { width: 22px; height: 22px; }
  .bnav button[aria-current="page"] { color: var(--red-h); font-weight: 600; }
  .bnav button[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--red); border-radius: 0 0 2px 2px; }
  .bnav .count { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 10.5px; padding: 0 5px; }
  .content { padding: 20px 16px calc(var(--bnav-h) + 32px + var(--safe-b)); }
  .toasts { left: 12px; right: 12px; bottom: calc(var(--bnav-h) + 12px + var(--safe-b)); align-items: stretch; }
  .toast { max-width: none; min-width: 0; }
  .grid-60, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .md-detail { position: static; }
  .chat { height: calc(100vh - var(--ribbon-h) - 56px - var(--bnav-h) - 120px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .plan-grid { grid-template-columns: 1fr; gap: 36px; }
  .benefits, .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 767px) {
  body { font-size: 14px; }
  .l-wrap { padding: 0 18px; }
  .l-header-inner { height: 60px; gap: 12px; }
  .l-brand img { height: 34px; }
  .l-tag { display: none; }
  .l-pdf span { display: none; }
  .l-pdf { width: 38px; padding: 0; }
  .hero-grid { padding-top: 36px; padding-bottom: 48px; }
  .hero-title { font-size: 38px; margin: 14px 0 16px; }
  .lead { font-size: 16px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; white-space: normal; text-align: center; height: auto; min-height: 50px; padding: 12px 18px; }
  .hero-visual { display: none; }
  .free-badge { border-radius: 12px; align-items: flex-start; }
  .l-section { padding: 52px 0; }
  .benefits, .contact-grid { grid-template-columns: 1fr; }
  .benefit { padding: 20px; }
  .safe-box { grid-template-columns: 1fr; padding: 22px; }
  .l-footer-inner { flex-direction: column; gap: 18px; }
  .when-card { padding: 22px; }
  .when-card .btn { width: 100%; white-space: normal; height: auto; min-height: 44px; padding: 10px 14px; }

  .ribbon { font-size: 11.5px; gap: 8px; padding: 0 10px; }
  .ribbon .hide-sm { display: none; }
  .page-title { font-size: 25px; }
  .page-head { margin-bottom: 16px; }
  .page-head .page-actions { width: 100%; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 20px; }
  .kpi-label { font-size: 12px; }
  .kpi-note { font-size: 11.5px; }
  .kpi-ic { display: none; }
  .kpi-spark { display: none; }
  .grid-3 { grid-template-columns: 1fr; gap: 10px; }
  .card-head { padding: 14px 16px; flex-wrap: wrap; }
  .card-head .meta { display: none; }
  .chart-card { padding: 16px 12px 12px; }
  .card-body { padding: 16px; }
  .dl-list li { grid-template-columns: 46px minmax(0, 1fr); padding: 14px 16px; }
  .dl-list li .dl-act { grid-column: 2; }
  .dl-date { width: 46px; height: 46px; }
  .act-item { padding: 12px 16px; }
  .folders { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .folder { padding: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .tabs { margin-left: -16px; margin-right: -16px; padding: 0 8px; }
  .slots { grid-template-columns: 1fr; }
  .cal-month { display: none; }
  .day-strip { display: flex; }
  .reg-card { grid-template-columns: 1fr; }
  .leave { grid-template-columns: 36px minmax(0, 1fr); padding: 14px 16px; }
  .leave .leave-acts { grid-column: 1 / -1; }
  .leave .leave-acts .btn { flex: 1; }
  .letter { padding: 14px 16px; }
  .up-item { padding: 12px 16px; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { max-width: none; border-radius: 18px 18px 0 0; max-height: 92vh; animation: sheetIn .28s var(--ease); padding-bottom: var(--safe-b); }
  .modal-foot { border-radius: 0; }
  .modal-foot .btn { flex: 1; }
  .scan { padding: 24px 20px; }
  .scan .stamp { top: 54px; right: 14px; }
  .att-desktop { display: none; }
  .att-mobile { display: grid; gap: 10px; }
  .att-emp { padding: 14px; }
  .att-emp b { display: block; margin-bottom: 10px; }
  .att-mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
  .att-mini span { height: 26px; border-radius: 5px; font-size: 9.5px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }

  /* Tables -> card stack */
  .tbl thead { display: none; }
  .tbl, .tbl tbody { display: block; }
  .tbl tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
  .tbl tbody tr:last-child { border-bottom: 0; }
  .tbl td { display: block; padding: 0; border: 0; }
  .tbl td.c-title { grid-column: 1; grid-row: 1; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
  .tbl td.c-amt { grid-column: 2; grid-row: 1; text-align: right; font-weight: 600; white-space: nowrap; }
  .tbl td.c-meta { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
  .tbl td.c-meta[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  .tbl td.c-status { grid-column: 1; margin-top: 6px; align-self: center; }
  .tbl td.c-act { grid-column: 2; margin-top: 6px; align-self: center; }
  .tbl td.c-act.wide { grid-column: 1 / -1; }
  .tbl td.c-act .acts { justify-content: flex-end; }
  .tbl td.c-hide { display: none; }

  /* Master-detail fullscreen */
  .md { grid-template-columns: minmax(0, 1fr); }
  .md-detail { display: none; }
  .md.show-detail .md-detail {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 60; border-radius: 0; border: 0;
    background: var(--card); overflow: hidden; animation: slideIn .25s var(--ease);
  }
  .md.show-detail .md-detail .md-scroll { flex: 1; overflow-y: auto; }
  .md-back { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--card); flex: none; }
  .md-back .btn { font-weight: 600; }
  .reply { padding-bottom: calc(14px + var(--safe-b)); }

  .chat { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .chat-list { border-right: 0; }
  .chat .conv { display: none; }
  .chat.show-detail .conv { display: flex; position: fixed; inset: 0; z-index: 60; background: var(--card); animation: slideIn .25s var(--ease); }
  .chat.show-detail .msgs { flex: 1; }
  .composer { padding-bottom: calc(12px + var(--safe-b)); }
  .msg { max-width: 86%; }

  }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (min-width: 768px) {
  .md-back { display: none !important; }
}

/* =========================================================
   RUNDA „WOW”: scena 3D, poświaty, szkło, animacje, postęp
   ========================================================= */
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes drift { 0%, 100% { transform: translate3d(-18px, 6px, 0); } 50% { transform: translate3d(22px, -10px, 0); } }
@keyframes glowPulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes ringDraw { from { stroke-dashoffset: var(--c); } }
@keyframes barUp { from { transform: scaleY(0); } }
@keyframes barW { from { width: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sheen { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(220%) skewX(-18deg); } }

/* Landing: tło i nagłówek nad ciemną sceną */
.landing { background: var(--paper); }
.l-section { background: var(--paper); position: relative; }
.l-section-alt { background: var(--paper-3); }
.l-header { transition: background-color .3s, border-color .3s, backdrop-filter .3s; }
.l-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.l-brand .logo-dark { display: none; }
.l-lockup { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--ink); padding-left: 10px; border-left: 1px solid var(--line); line-height: 1; letter-spacing: -.01em; }
.l-header.on-dark { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.l-header.on-dark .logo-dark { display: block; }
.l-header.on-dark .logo-light { display: none; }
.l-header.on-dark .l-lockup { color: #fff; border-left-color: rgba(255,255,255,.25); }
.l-header.on-dark .l-tag { color: rgba(255,255,255,.72); border-left-color: rgba(255,255,255,.2); }
.l-header.on-dark .l-pdf { color: #fff; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.l-header.on-dark .l-pdf:hover { background: rgba(255,255,255,.14); }

.hero {
  margin-top: -72px; padding-top: 72px; color: #fff; isolation: isolate;
  background:
    radial-gradient(900px 620px at 80% 28%, rgba(220, 0, 39, .30), transparent 62%),
    radial-gradient(700px 520px at 6% 105%, rgba(90, 125, 170, .20), transparent 60%),
    linear-gradient(160deg, #142536 0%, #0F1B28 52%, #16191E 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); animation: glowPulse 9s ease-in-out infinite; }
.glow-a { width: 520px; height: 520px; right: 8%; top: 6%; background: radial-gradient(circle, rgba(220,0,39,.45), rgba(220,0,39,0) 70%); }
.glow-b { width: 420px; height: 420px; left: -6%; bottom: -14%; background: radial-gradient(circle, rgba(120,160,210,.22), transparent 70%); animation-delay: -4s; }
.satin { position: absolute; inset: 0; width: 100%; height: 100%; }
.satin-band, .satin-lines { animation: drift 18s ease-in-out infinite; transform-origin: center; }
.satin-lines { animation-duration: 22s; animation-direction: reverse; }
.hero-grain { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 3px 3px; mix-blend-mode: overlay; opacity: .5; }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(220,0,39,.7), transparent); }
.hero-grid { grid-template-columns: .92fr 1.08fr; gap: 40px; min-height: min(calc(100vh - 72px), 820px); padding-top: 56px; padding-bottom: 72px; }
.hero-title { color: #fff; }
.hero-title #hero-hello { color: #fff; }
.hero-company { color: #fff; text-decoration-color: rgba(255, 70, 100, .85); }
.hero .lead { color: rgba(255, 255, 255, .8); }
.hero .lead strong { color: #fff; }
.eyebrow.on-dark { color: #FF6B81; }
.hero .free-badge { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px -12px rgba(0,0,0,.5); }
.hero .free-badge svg { color: #FF6B81; }
.hero .landing-profile-label { color: rgba(255,255,255,.7); }
.hero .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(8px); }
.hero .chip svg { color: #FF6B81; }
.hero .fineprint { color: rgba(255,255,255,.62); }
.hero .note-247 { color: rgba(255,255,255,.78); }
.hero .note-247 svg { color: #FF6B81; }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.24); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.btn-glow { position: relative; overflow: hidden; box-shadow: 0 14px 34px -10px rgba(220, 0, 39, .75), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-glow::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: sheen 3.6s 1.2s ease-in-out infinite; }
.rise-in { animation: riseIn .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 120ms); }

/* Scena 3D */
.hero-visual { position: relative; height: 540px; padding: 0; perspective: 1800px; perspective-origin: 40% 40%; display: block; max-width: none; }
.stage { position: absolute; left: 0; top: 0; width: 660px; height: 540px; transform-style: preserve-3d; transform-origin: 0 0;
  transform: scale(var(--sc, 1)) rotateY(calc(-17deg + var(--ry, 0deg))) rotateX(calc(7deg + var(--rx, 0deg))); transition: transform .35s var(--ease); }
.stage [data-depth] { transition: transform .35s var(--ease); }
.laptop { position: absolute; left: 10px; top: 70px; width: 560px; transform-style: preserve-3d; }
.lid { position: relative; background: linear-gradient(160deg, #26303C, #0B121B); border-radius: 18px 18px 8px 8px; padding: 12px 12px 18px; box-shadow: 0 50px 90px -30px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,255,255,.09); }
.lid::before { content: ""; position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; background: #3A4552; }
.screen { position: relative; height: 340px; border-radius: 8px; overflow: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); }
.screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 38%); pointer-events: none; }
.base { position: relative; height: 15px; margin: 0 -44px; border-radius: 2px 2px 20px 20px; background: linear-gradient(#D5DAE0, #8E96A1 70%, #6B737E); box-shadow: 0 40px 50px -14px rgba(0,0,0,.75); }
.base::before { content: ""; position: absolute; left: 50%; top: 0; width: 110px; height: 6px; margin-left: -55px; border-radius: 0 0 8px 8px; background: #A8B0BA; }
.s-ribbon { height: 17px; display: flex; align-items: center; justify-content: center; gap: 5px; background: #142536; color: #fff; font-size: 7.5px; font-weight: 600; }
.s-ribbon i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.s-body { display: grid; grid-template-columns: 70px 1fr; height: calc(100% - 17px); }
.s-side { background: #fff; border-right: 1px solid var(--line-2); padding: 10px 8px; display: flex; flex-direction: column; gap: 8px; }
.s-logo { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.s-logo b { width: 14px; height: 14px; border-radius: 50%; background: var(--red); }
.s-logo span { flex: 1; height: 5px; border-radius: 3px; background: var(--ink); opacity: .75; }
.s-side i { height: 7px; border-radius: 4px; background: #EEE9E1; }
.s-side i.on { background: linear-gradient(90deg, var(--red) 0 3px, var(--red-l) 3px); }
.s-main { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.s-hero { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 9px; color: #fff;
  background: radial-gradient(circle at 88% 20%, rgba(220,0,39,.55), transparent 55%), linear-gradient(135deg, #142536, #1C2530); }
.s-hero small { display: block; font-size: 7px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; }
.s-hero b { display: block; font-family: var(--serif); font-size: 12.5px; margin: 2px 0; }
.s-hero em { display: block; font-style: normal; font-size: 7.5px; color: rgba(255,255,255,.65); }
.s-bars { display: grid; gap: 4px; margin-top: 7px; width: 150px; }
.s-bars span { height: 4px; border-radius: 3px; background: linear-gradient(90deg, #FF4D6A var(--w), rgba(255,255,255,.14) var(--w)); }
.s-ring { width: 54px; height: 54px; flex: none; }
.s-ring circle, .ring-svg circle { fill: none; stroke-width: 6.5; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-linecap: round; }
.s-ring .trk { stroke: rgba(255,255,255,.16); }
.s-ring .val { stroke: #FF3355; stroke-dasharray: 163.36; stroke-dashoffset: 16.34; filter: drop-shadow(0 0 4px rgba(255, 51, 85, .7)); animation: ringDraw 1.6s .6s var(--ease) both; --c: 163.36px; }
.s-ring text { fill: #fff; font-size: 13px; font-weight: 700; font-family: var(--sans); }
.s-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.s-kpis div { background: #fff; border: 1px solid var(--line-2); border-radius: 7px; padding: 7px 8px; display: flex; flex-direction: column; gap: 1px; }
.s-kpis small { font-size: 6.5px; color: var(--muted); }
.s-kpis b { font-size: 10.5px; font-variant-numeric: tabular-nums; }
.s-kpis em { font-style: normal; font-size: 6px; color: var(--muted); }
.s-kpis em.up { color: var(--ok); }
.s-chart { flex: 1; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 4px; padding: 8px 8px 0; background: #fff; border: 1px solid var(--line-2); border-radius: 7px;
  background-image: repeating-linear-gradient(to top, transparent 0 21px, var(--line-2) 21px 22px); }
.s-chart span { height: var(--h); background: var(--ink); border-radius: 3px 3px 0 0; transform-origin: bottom; animation: barUp 1s var(--ease) both; }
.s-chart span:nth-child(n) { animation-delay: calc(.7s + var(--h) * 0); }
.s-chart span:nth-child(2n) { animation-delay: .85s; } .s-chart span:nth-child(3n) { animation-delay: 1s; }
.s-chart span.c { background: var(--red); margin-right: 5px; opacity: .9; }
.s-chart span.f { opacity: .3; }
.phone { position: absolute; left: 470px; top: 190px; width: 172px; height: 344px; padding: 8px; border-radius: 32px; background: linear-gradient(160deg, #2A3440, #0B121B); box-shadow: 0 50px 80px -24px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,255,255,.12); }
.p-screen { position: relative; height: 100%; border-radius: 25px; overflow: hidden; background: var(--paper); color: var(--ink); padding: 8px 9px; font-family: var(--sans); }
.p-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.3), transparent 35%); pointer-events: none; }
.p-status { display: flex; justify-content: space-between; align-items: center; font-size: 7px; font-weight: 600; margin-bottom: 8px; }
.p-notch { width: 46px; height: 12px; border-radius: 8px; background: #0B121B; }
.p-title { font-family: var(--serif); font-weight: 600; font-size: 13px; margin-bottom: 7px; }
.p-tk { background: #fff; border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 8px; margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.p-tk small { font-size: 6px; color: var(--muted); }
.p-tk b { font-size: 8.5px; }
.p-tk i { display: block; height: 3px; border-radius: 3px; margin-top: 3px; background: linear-gradient(90deg, #F59E0B var(--w), #EEE9E1 var(--w)); }
.p-tk i.g { background: linear-gradient(90deg, var(--ok) var(--w), #EEE9E1 var(--w)); }
.pb { align-self: flex-start; font-size: 6px; font-weight: 600; padding: 1px 5px; border-radius: 9px; }
.pb.amber { background: var(--warn-bg); color: var(--warn); } .pb.red { background: var(--red-l); color: var(--urg); } .pb.green { background: var(--ok-bg); color: var(--ok); }
.p-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 32px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center; background: #fff; border-top: 1px solid var(--line-2); }
.p-nav i { width: 12px; height: 12px; border-radius: 4px; background: #E3DED6; }
.p-nav i.on { background: var(--red); }
.fcard { position: absolute; display: flex; gap: 11px; align-items: center; padding: 12px 15px; border-radius: 15px; color: var(--ink); font-size: 12.5px;
  background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.7); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.6), 0 0 0 1px rgba(20,37,54,.04); animation: bob 7s ease-in-out infinite; }
.fcard b { display: block; font-weight: 600; }
.fcard small { display: block; color: var(--muted); font-size: 11.5px; }
.fc-scan { left: 300px; top: 10px; }
.fc-ticket { left: -36px; top: 400px; animation-delay: -2.5s; }
.fc-ring { left: 520px; top: 70px; animation-delay: -4.5s; padding: 12px 16px 12px 12px; }
.fc-ring b { font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fc-ring small { font-size: 11px; }
.ring-svg { width: 52px; height: 52px; }
.ring-svg .trk { stroke: #EEE9E1; }
.ring-svg .val { stroke: var(--red); stroke-dasharray: 163.36; stroke-dashoffset: 16.34; animation: ringDraw 1.6s .9s var(--ease) both; --c: 163.36px; }
.fc-prog { display: block; height: 4px; width: 150px; border-radius: 3px; margin-top: 6px; background: #EEE9E1; overflow: hidden; }
.fc-prog i { display: block; height: 100%; width: 50%; border-radius: 3px; background: linear-gradient(90deg, #F59E0B, #FBBF24); animation: barW 1.4s 1.1s var(--ease) both; }
.fc-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--red-l); color: var(--red); display: grid; place-items: center; }
.fc-ic svg { width: 16px; height: 16px; }

/* Odsłanianie sekcji i karty z efektem 3D */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.tilt { position: relative; transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .3s var(--ease), box-shadow .3s, border-color .2s; will-change: transform; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(220, 0, 39, .10), transparent 45%); }
.tilt:hover::after { opacity: 1; }
.tilt:hover { box-shadow: 0 22px 44px -22px rgba(20, 37, 54, .35); }
.l-sub { color: var(--muted); font-size: 15px; margin: -18px 0 28px; }
.l-signature { margin-top: 36px; text-align: center; font-family: var(--serif); font-size: 18px; color: var(--ink-2); line-height: 1.5; }
.l-signature strong { font-weight: 600; color: var(--ink); }
.l-final-cta { margin-top: 22px; }

/* Aplikacja: tło, szkło, aktywne menu */
body.is-app { background: radial-gradient(1100px 520px at 75% -12%, rgba(220, 0, 39, .06), transparent 60%), var(--paper); background-attachment: fixed; }
.topbar { background: rgba(255, 255, 255, .72); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); }
.nav-item[aria-current="page"] { background: linear-gradient(90deg, var(--red-l), rgba(252, 235, 238, .35)); }
.side-brand .side-lockup { display: flex; flex-direction: column; gap: 2px; padding-left: 11px; border-left: 1px solid var(--line); text-transform: none; letter-spacing: 0; white-space: nowrap; }
.side-lockup b { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1; color: var(--ink); }
.side-lockup small { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.close-head span { white-space: nowrap; }
.kpi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--red), #FF6B81); opacity: 0; transition: opacity .25s; }
.kpi:hover::before { opacity: 1; }
.content.enter .rise { animation: riseIn .65s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.content.enter .chart-svg .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: barUp .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 120ms); }
.content.enter .kpi-spark polyline { stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.4s .35s var(--ease) forwards; }
.content.enter .bar-fill { animation: barW 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 300ms); }
.content.enter .progress > i { animation: barW 1.1s .3s var(--ease) both; }

/* Pierścienie postępu */
.ring { position: relative; flex: none; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring circle { fill: none; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-linecap: round; }
.ring .trk { stroke: #EEE9E1; }
.ring .val { stroke: var(--red); transition: stroke-dashoffset 1s var(--ease), stroke .4s; filter: drop-shadow(0 1.5px 2px rgba(220,0,39,.28)); }
.ring .rg-a { stop-color: #FF5C77; } .ring .rg-b { stop-color: #C40023; }
.ring.done .rg-a { stop-color: #3CCB95; } .ring.done .rg-b { stop-color: #0B8A5F; }
.ring .trk-in { stroke: rgba(20,37,54,.07); }
.ring.done .val { stroke: var(--ok); filter: drop-shadow(0 1.5px 2px rgba(14,159,110,.3)); }
.content.enter .ring .val { animation: ringDraw 1.4s .25s var(--ease) both; }
.ring-label { position: relative; text-align: center; line-height: 1.1; }
.ring-label b { display: block; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ring-label small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* Pulpit: ciemny pas powitalny z kartą „Gotowość zamknięcia miesiąca” */
.dash-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; align-items: stretch;
  padding: 28px; margin-bottom: 18px; border-radius: 20px; color: #fff;
  background: radial-gradient(700px 380px at 92% 0%, rgba(220,0,39,.42), transparent 60%), radial-gradient(500px 300px at 0% 120%, rgba(90,125,170,.25), transparent 60%), linear-gradient(140deg, #142536 0%, #101B28 60%, #1A1D22 100%);
  box-shadow: 0 30px 60px -30px rgba(20, 37, 54, .7); }
.dash-hero .dh-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dash-hero .dh-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dh-left { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-width: 0; }
.dh-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #FF6B81; }
.dh-title { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.1; letter-spacing: -.015em; margin-top: 8px; }
.dh-sub { margin-top: 8px; color: rgba(255,255,255,.72); font-size: 14px; }
.dh-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dh-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; color: rgba(255,255,255,.9); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.dh-chip b { color: #fff; font-variant-numeric: tabular-nums; }
.dh-chip svg { width: 14px; height: 14px; color: #FF6B81; }
.close-card { position: relative; padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.close-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.close-head h2 { font-size: 15px; font-weight: 600; }
.close-head span { font-size: 12px; color: rgba(255,255,255,.65); }
.close-body { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 20px; align-items: center; }
.close-card .ring .trk { stroke: rgba(255,255,255,.13); }
.close-card .ring .val { stroke: #FF3355; filter: drop-shadow(0 0 6px rgba(255, 51, 85, .65)); }
.close-card .ring.done .val { stroke: #34D399; filter: drop-shadow(0 0 6px rgba(52, 211, 153, .6)); }
.close-card .ring-label b { font-size: 28px; color: #fff; }
.close-card .ring-label small { color: rgba(255,255,255,.65); }
.close-list { display: grid; gap: 10px; }
.cl-row { display: grid; gap: 5px; }
.cl-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.85); }
.cl-top b { font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; }
.cl-top .ok { color: #6EE7B7; display: inline-flex; align-items: center; gap: 4px; }
.cl-top .ok svg { width: 13px; height: 13px; }
.bar-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #DC0027, #FF5A74); transition: width .9s var(--ease); }
.bar-fill.done { background: linear-gradient(90deg, #10B981, #6EE7B7); }
.close-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: rgba(255,255,255,.72); display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.close-foot .link-light { background: none; border: 0; padding: 0; color: #fff; font-weight: 600; font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }

.close-foot { display: block; }
.miss-title { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.miss-list { display: grid; gap: 6px; }
.miss-list li { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.88); font-size: 12.5px; }
.miss-list li > svg { color: #FF6B81; flex: none; }
.miss-list li > span { flex: 1; min-width: 0; }
.miss-list .link-light { flex: none; }
.miss-done { display: inline-flex; align-items: center; gap: 8px; color: #A7F3D0; }

/* Etap sprawy: 5 segmentów */
.stage5 { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.stage5-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; width: 100%; max-width: 220px; }
.stage5-bar i { height: 6px; border-radius: 4px; background: var(--paper-2); position: relative; overflow: hidden; }
.stage5-bar i.on::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.stage5.done .stage5-bar i.on::after { background: linear-gradient(90deg, #10B981, #6EE7B7); }
.stage5 b { font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.content.enter .stage5-bar i.on::after { transform-origin: left; animation: segIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 350ms); }
@keyframes segIn { from { transform: scaleX(0); } }
.stage-card .meta b { font-size: 15px; line-height: 1.35; }
.stage-card .meta > span { display: block; margin-top: 6px; }
.stage-card .stage5 { margin-top: 10px; }
.stage-card .stage5-bar { max-width: 320px; }
.ring-card.stage-card .meta .stage5 b { font-size: 12.5px; margin: 0; font-weight: 600; }

/* Postęp spraw */
.tk-prog { height: 3px; border-radius: 3px; background: var(--paper-2); overflow: hidden; margin-top: 10px; }
.tk-prog i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.tk-prog.info i { background: linear-gradient(90deg, #3B82F6, #93C5FD); }
.tk-prog.urg i { background: linear-gradient(90deg, var(--red), #FF6B81); }
.tk-prog.ok i { background: linear-gradient(90deg, #10B981, #6EE7B7); }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0 2px; padding: 0; list-style: none; }
.st .dot i { font-style: normal; font-size: 11px; font-weight: 600; }
.stepper + .md-facts { margin-top: 16px; }
.st { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); text-align: center; }
.st::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--paper-2); z-index: 0; }
.st:first-child::before { display: none; }
.st.done::before, .st.cur::before { background: linear-gradient(90deg, var(--ok), var(--ok)); }
.st .dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--paper-2); color: var(--muted); }
.st .dot svg { width: 12px; height: 12px; }
.st.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.st.cur .dot { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 4px rgba(220, 0, 39, .12); }
.st.cur.waiting .dot { background: var(--red); color: #fff; }
.st.done, .st.cur { color: var(--ink); font-weight: 500; }

/* Karta z pierścieniem (Finanse) */
.ring-card { display: flex; gap: 16px; align-items: center; padding: 18px; }
.ring-card .meta small { display: block; color: var(--muted); font-size: 12.5px; }
.ring-card .meta b { display: block; font-size: 18px; font-weight: 600; margin: 2px 0; font-variant-numeric: tabular-nums; }
.ring-card .meta span { font-size: 12.5px; color: var(--muted); }
.ring-row { margin-bottom: 18px; }
.ring-sm { width: 74px; height: 74px; }
.ring-sm .ring-label b { font-size: 16px; }
.ring-lg { width: 118px; height: 118px; }
.ring-lg .ring-label b { font-size: 28px; }

/* ---------- Detale premium (runda 2) ---------- */
/* Siatka „architektoniczna” i dodatkowy orb w hero */
.hero-lines { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 72% 42%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 60% 55% at 72% 42%, #000 15%, transparent 72%); }
.glow-c { width: 320px; height: 320px; left: 40%; top: 55%; background: radial-gradient(circle, rgba(255, 90, 116, .24), transparent 70%); animation: orb 17s ease-in-out infinite; }
@keyframes orb { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(70px, -50px) scale(1.15); } 66% { transform: translate(-50px, 30px) scale(.9); } }

/* Pulsujący status „w realizacji” i bieżący etap */
@keyframes pulseWarn { 0% { box-shadow: 0 0 0 0 rgba(180, 83, 9, .5); } 70%, 100% { box-shadow: 0 0 0 6px rgba(180, 83, 9, 0); } }
@keyframes pulseRed { 0% { box-shadow: 0 0 0 0 rgba(220, 0, 39, .35); } 70%, 100% { box-shadow: 0 0 0 9px rgba(220, 0, 39, 0); } }
.badge.warn::before, .badge.progress::before { animation: pulseWarn 1.8s ease-out infinite; }
.st.cur .dot { animation: pulseRed 2s ease-out infinite; }

/* Szklane kafelki ikon z głębią */
.svc-ic, .benefit-ic {
  position: relative; overflow: hidden; border: 1px solid transparent;
  background: linear-gradient(150deg, #FFFFFF, #FCE3E8) padding-box, linear-gradient(150deg, rgba(220, 0, 39, .38), rgba(220, 0, 39, .06)) border-box;
  box-shadow: 0 8px 16px -8px rgba(220, 0, 39, .45), inset 0 1px 0 #fff;
}
.svc.is-extra .svc-ic, .kpi-ic, .sum-ic, .folder-ic {
  position: relative; overflow: hidden; border: 1px solid transparent;
  background: linear-gradient(150deg, #FFFFFF, #EEE9E1) padding-box, linear-gradient(150deg, rgba(20, 37, 54, .22), rgba(20, 37, 54, .04)) border-box;
  box-shadow: 0 6px 14px -8px rgba(20, 37, 54, .4), inset 0 1px 0 #fff;
}
.folder[aria-pressed="true"] .folder-ic { background: linear-gradient(150deg, #FFFFFF, #FCE3E8) padding-box, linear-gradient(150deg, rgba(220, 0, 39, .38), rgba(220, 0, 39, .06)) border-box; }
.svc-ic svg, .benefit-ic svg, .kpi-ic svg, .sum-ic svg, .folder-ic svg { position: relative; z-index: 1; }
.svc-ic::before, .benefit-ic::before, .kpi-ic::before, .sum-ic::before, .folder-ic::before {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 55%; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent); transform: translateX(-170%) skewX(-18deg);
}
.benefit:hover .benefit-ic::before, .svc:hover .svc-ic::before, .kpi:hover .kpi-ic::before, .sum-card:hover .sum-ic::before, .folder:hover .folder-ic::before {
  transform: translateX(260%) skewX(-18deg); transition: transform .85s var(--ease);
}
.contact-card .contact-ic {
  border: 1px solid transparent;
  background: linear-gradient(150deg, #FFFFFF, #EEE9E1) padding-box, linear-gradient(150deg, rgba(20, 37, 54, .22), rgba(20, 37, 54, .04)) border-box;
  box-shadow: 0 6px 14px -8px rgba(20, 37, 54, .4), inset 0 1px 0 #fff;
}
.contact-card-pdf .contact-ic { background: linear-gradient(150deg, #FF3355, #B0001F) padding-box, linear-gradient(150deg, rgba(255,255,255,.4), rgba(176,0,31,.4)) border-box; box-shadow: 0 8px 16px -8px rgba(220, 0, 39, .6), inset 0 1px 0 rgba(255,255,255,.35); }

/* Uniesienie kart przy najechaniu (translate nie koliduje z tiltem) */
.tilt { transition: transform .3s var(--ease), translate .3s var(--ease), box-shadow .3s, border-color .2s; }
.svc.tilt:hover { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.tilt:hover, .contact-card:hover, .folder:hover { translate: 0 -3px; }
.contact-card, .folder { transition: border-color .2s, box-shadow .3s, translate .3s var(--ease); }
.contact-card:hover, .folder:hover { box-shadow: 0 18px 36px -20px rgba(20, 37, 54, .4); }
.benefit:hover, .svc:hover, .kpi:hover { border-color: rgba(220, 0, 39, .28); }

/* Głębia modali i toasty ze sprężyną */
.modal-backdrop { background: rgba(16, 27, 40, .42); backdrop-filter: blur(10px) saturate(1.15); -webkit-backdrop-filter: blur(10px) saturate(1.15); }
.modal { animation: modalIn .5s cubic-bezier(.2, 1.25, .35, 1); box-shadow: 0 40px 90px -30px rgba(10, 20, 32, .55), 0 0 0 1px rgba(255, 255, 255, .6), 0 8px 20px rgba(10, 20, 32, .1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.95); } to { opacity: 1; transform: none; } }
.toast { animation: toastIn .6s cubic-bezier(.18, 1.45, .4, 1); background: rgba(20, 37, 54, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .1); }
@keyframes toastIn { from { opacity: 0; transform: translateY(26px) scale(.9); } to { opacity: 1; transform: none; } }

/* Animowana oś czasu zgłoszenia */
@keyframes tlIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes tlLine { from { transform: scaleY(0); } }
.tl-anim li { animation: tlIn .55s var(--ease) both; animation-delay: calc(var(--k, 0) * 110ms + 80ms); }
.tl-anim li::before { transform-origin: top; animation: tlLine .6s var(--ease) both; animation-delay: calc(var(--k, 0) * 110ms + 260ms); }
.tl-anim li.is-new { animation: tlIn .55s var(--ease) both, rowIn 1s var(--ease); }

/* =========================================================
   ANALITYKA 3D (Kadry i Finanse)
   ========================================================= */
.an-filter { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; padding: 12px 16px; margin-bottom: 18px; border-radius: 14px;
  background: rgba(255,255,255,.72); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--sh-1); position: sticky; top: calc(var(--top-h) + 8px); z-index: 5; }
.an-f-group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.an-f-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.an-f-label svg { color: var(--red); }
.an-f-scroll { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.an-f-scroll::-webkit-scrollbar { display: none; }
.an-f-scroll .seg { flex-wrap: nowrap; }
.an-f-scroll .seg button { white-space: nowrap; }
.demo-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 3px 8px; border-radius: 999px; background: var(--paper); border: 1px dashed rgba(16,24,33,.22); white-space: nowrap; }

.an-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.an-kpi { min-width: 0; }
.an-kpi .kpi-value { font-size: 24px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.an-kpi .kpi-note .up { color: var(--ok); font-weight: 600; } .an-kpi .kpi-note .down { color: var(--urg); font-weight: 600; }
.an-num { font-weight: inherit; font-variant-numeric: tabular-nums; }
.an-pct { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.span2 { grid-column: span 2; }
.an-dark { color: #fff; border: 0; overflow: hidden; isolation: isolate;
  background: radial-gradient(420px 220px at 95% 0%, rgba(220,0,39,.45), transparent 60%), linear-gradient(140deg, #142536, #0F1B28 65%, #1A1D22); box-shadow: 0 24px 50px -26px rgba(20,37,54,.75); }
.an-dark .kpi-label { color: rgba(255,255,255,.75); }
.an-dark .kpi-value { font-size: 32px; color: #fff; }
.an-dark .an-pct { color: rgba(255,255,255,.7); }
.an-scope { font-size: 11.5px; color: rgba(255,255,255,.6); text-align: right; }
.comp-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin-top: 14px; background: rgba(255,255,255,.12); gap: 2px; }
.comp-bar i { display: block; height: 100%; transition: width .8s var(--ease); }
.comp-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.75); }
.comp-leg span { display: inline-flex; align-items: center; gap: 6px; }
.comp-leg i { width: 9px; height: 9px; border-radius: 3px; }
.comp-leg b { color: #fff; font-weight: 600; }
.er-parts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.er-parts span { padding: 7px 8px; border-radius: 9px; background: var(--paper); border: 1px solid var(--line-2); min-width: 0; }
.er-parts small { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.er-parts b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.an-ring-kpi { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.an-ring-kpi small { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.an-ring-kpi .ring-label b { font-size: 15px; }

.an-card { padding: 18px 20px 14px; margin-bottom: 18px; min-width: 0; }
.an-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.an-head h2 { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 600; margin-right: auto; }
.an-head h2 svg { width: 18px; height: 18px; color: var(--red); }
.an-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.an-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.an-legend span { display: inline-flex; align-items: center; gap: 6px; }
.an-legend i { width: 8px; height: 14px; border-radius: 99px; box-shadow: inset 1px 0 0 rgba(255,255,255,.35), 0 1px 2px rgba(20,37,54,.18); }
.an-legend i.lg-fc { background: repeating-linear-gradient(135deg, #C9CFD6 0 2px, #EEF0F3 2px 4px); }
.an-legend .lg-note { font-style: italic; color: var(--muted-2); }
.an-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 18px; }
.an-grid > .an-card { margin-bottom: 18px; }
.tilt-soft { transition: box-shadow .3s; }
.tilt-soft:hover { box-shadow: 0 26px 50px -28px rgba(20,37,54,.35); }
.c3d-scroll { margin-top: 8px; }
.c3d { position: relative; width: 100%; }
.c3d-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.c3d-grid { stroke: rgba(20,37,54,.07); stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; }
.c3d-base { stroke: rgba(20,37,54,.16); stroke-width: 1; }
.c3d-ax { font-size: 10.5px; fill: var(--muted-2); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.c3d-x { font-size: 12px; font-weight: 600; fill: var(--ink-2); }
.c3d-x.on { fill: var(--red); }
.c3d-x2 { font-size: 10px; fill: var(--muted-2); }
.c3d-val { font-size: 11px; font-weight: 650; fill: var(--ink); font-variant-numeric: tabular-nums; }
.c3d-lv { font-size: 10.5px; font-weight: 700; }
.c3d-sel { fill: rgba(220,0,39,.045); stroke: rgba(220,0,39,.14); stroke-width: 1; }
.c3d-dim .c3d-cols { opacity: .3; }
.c3d-fc .c3d-cols { opacity: .46; }
.c3d-cols { transition: transform .32s cubic-bezier(.2,.9,.25,1.15), filter .32s ease, opacity .3s; }
.c3d-g:hover .c3d-cols, .c3d-g:focus-within .c3d-cols { transform: translateY(-4px); filter: brightness(1.09) saturate(1.06); opacity: 1; }
.c3d-g text, .c3d-line { pointer-events: none; }
.c3d-hit { fill: transparent; cursor: pointer; outline: none; }
.c3d-hit:hover, .c3d-hit:focus-visible { fill: rgba(20,37,54,.028); }
.c3d-hit:focus-visible { stroke: var(--red); stroke-width: 1.5; }
.c3d-hint { display: none; }
.c3d-tip { position: fixed; z-index: 400; pointer-events: none; display: flex; flex-direction: column; gap: 2px; min-width: 180px; max-width: 300px; padding: 10px 12px; border-radius: 12px;
  background: rgba(20,37,54,.94); color: #fff; font-size: 12.5px; line-height: 1.45; box-shadow: 0 18px 40px -14px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.c3d-tip.on { opacity: 1; transform: none; }
.c3d-tip b { font-size: 13px; margin-bottom: 2px; }
.c3d-tip span { color: rgba(255,255,255,.82); font-variant-numeric: tabular-nums; }
.donut .d-big { font-size: 31px; font-weight: 720; fill: var(--ink); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.donut .d-small { font-size: 12px; font-weight: 510; fill: var(--muted); }
.dn-seg { cursor: pointer; outline: none; transition: transform .155s cubic-bezier(.2,.7,.25,1), filter .155s ease-out; }
/* najechanie (data-on) działa chwilowo; po odsunięciu kursora wraca segment wybrany w legendzie (data-sel) */
.donut .dn-seg:hover,
[data-on="0"] .dn-seg.s0, [data-on="1"] .dn-seg.s1, [data-on="2"] .dn-seg.s2, [data-on="3"] .dn-seg.s3, [data-on="4"] .dn-seg.s4, [data-on="5"] .dn-seg.s5, [data-on="6"] .dn-seg.s6, [data-on="7"] .dn-seg.s7,
[data-sel="0"]:not([data-on]) .dn-seg.s0, [data-sel="1"]:not([data-on]) .dn-seg.s1, [data-sel="2"]:not([data-on]) .dn-seg.s2, [data-sel="3"]:not([data-on]) .dn-seg.s3, [data-sel="4"]:not([data-on]) .dn-seg.s4, [data-sel="5"]:not([data-on]) .dn-seg.s5, [data-sel="6"]:not([data-on]) .dn-seg.s6, [data-sel="7"]:not([data-on]) .dn-seg.s7 { transform: translate(var(--dx, 0), var(--dy, 0)); filter: brightness(1.1); }
.donut-wrap { display: grid; gap: 6px; margin-top: 2px; }
.donut-wrap .c3d { max-width: 340px; margin: 0 auto; }
.d-legend { display: block; position: relative; }
.dn-r { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.dl-head, .dl-row { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto 50px; align-items: center; gap: 10px; padding: 4px 8px; border-bottom: 1px solid #EEE9E4; }
.dl-head { grid-template-columns: minmax(0, 1fr) auto 50px; padding-bottom: 7px; color: var(--muted); font-size: 9.5px; font-weight: 660; letter-spacing: .09em; text-transform: uppercase; }
.dl-head b, .dl-head em { font: inherit; color: inherit; }
.dl-head em { text-align: right; }
.dl-row { min-height: 44px; font-size: 13px; border-radius: 4px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .155s ease, box-shadow .155s ease; }
.dl-row i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.dl-row b { font-variant-numeric: tabular-nums; font-weight: 610; white-space: nowrap; }
.dl-row em { font-style: normal; text-align: right; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dl-row.tot { grid-template-columns: minmax(0, 1fr) auto 50px; border-bottom: 0; font-weight: 680; }
.dl-row.tot b { font-weight: 680; }
.dl-row[data-dn]:hover, .dn-r:checked + .dl-row[data-dn],
[data-on="0"] .dl-row[data-dn="0"], [data-on="1"] .dl-row[data-dn="1"], [data-on="2"] .dl-row[data-dn="2"], [data-on="3"] .dl-row[data-dn="3"], [data-on="4"] .dl-row[data-dn="4"], [data-on="5"] .dl-row[data-dn="5"], [data-on="6"] .dl-row[data-dn="6"], [data-on="7"] .dl-row[data-dn="7"] { background: #F7F4F1; }
.dn-r:checked + .dl-row[data-dn] { box-shadow: inset 2px 0 0 var(--c); }
.dn-r:focus-visible + .dl-row { outline: 2px solid #B0001F; outline-offset: 1px; position: relative; z-index: 1; }
@media (forced-colors: active) { .dl-row i { forced-color-adjust: none; } .dn-r:focus-visible + .dl-row { outline-color: Highlight; } }
.an-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 6px 0 12px; }
.an-section-head h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.an-section-head span { font-size: 12.5px; color: var(--muted); }
.pcards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.pcard { text-align: left; padding: 14px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); cursor: pointer; min-width: 0; }
.pcard.on { border-color: var(--red); box-shadow: 0 0 0 3px rgba(220,0,39,.12), 0 18px 36px -22px rgba(220,0,39,.5); }
.pc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.pc-head b { font-size: 15px; }
.pc-head span { font-size: 12px; font-weight: 600; color: var(--red); background: var(--red-l); padding: 1px 8px; border-radius: 99px; }
.pc-sub { font-size: 11.5px; color: var(--muted); }
.pc-body { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ring-xs { width: 62px; height: 62px; }
.ring-xs .ring-label b { font-size: 13px; }
.pc-ring-lbl { font-size: 11px; color: var(--muted); line-height: 1.35; }
.pc-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 8px; font-size: 12px; margin-top: 8px; }
.pc-dl dt { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-dl dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tr-stats > div { padding: 12px; border-radius: 12px; background: var(--paper-3); border: 1px solid var(--line-2); display: grid; gap: 2px; min-width: 0; }
.tr-stats small { font-size: 11.5px; color: var(--muted); }
.tr-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.tr-stats b.up { color: var(--urg); } .tr-stats b.down { color: var(--ok); }
.tr-stats span { font-size: 11px; color: var(--muted); }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); font-size: 10.5px; color: var(--muted); }
.pc-spark { width: 70px; height: 22px; }
.an-mini { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.an-mini .pc-spark { width: 100%; max-width: 180px; height: 30px; }
.an-mini small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.an-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.an-note svg { flex: none; margin-top: 1px; }

.pts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; margin-top: 4px; }
.an-map svg { display: block; width: 100%; max-width: 520px; margin: 6px auto 0; height: auto; }
.map-pt { cursor: pointer; outline: none; transform-box: fill-box; }
.map-shadow { fill: #142536; opacity: .18; }
.map-halo { fill: rgba(220,0,39,.12); transform-box: fill-box; transform-origin: center; }
.map-dot { fill: var(--red); stroke: #fff; stroke-width: 2.5; filter: drop-shadow(0 4px 6px rgba(176,0,31,.35)); }
.map-pt.on .map-halo { animation: mapPulse 2s ease-out infinite; fill: rgba(220,0,39,.22); }
.map-pt.dim { opacity: .4; }
.map-pt:hover .map-dot, .map-pt:focus-visible .map-dot { fill: #B0001F; }
.map-lbl { font-size: 12.5px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: #FAF8F5; stroke-width: 4px; stroke-linejoin: round; }
.map-val { font-size: 11px; fill: var(--muted); paint-order: stroke; stroke: #FAF8F5; stroke-width: 4px; stroke-linejoin: round; font-variant-numeric: tabular-nums; }
@keyframes mapPulse { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.content.enter .map-pt { animation: popIn .6s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--i, 0) * 90ms + 300ms); transform-origin: center; }
@keyframes popIn { from { opacity: 0; transform: scale(.4); } }

.rank { display: grid; gap: 8px; margin-top: 12px; }
.rk { width: 100%; display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper-3); text-align: left; transition: border-color .2s, box-shadow .2s, translate .25s var(--ease); }
.rk:hover { border-color: rgba(220,0,39,.3); translate: 0 -2px; box-shadow: 0 14px 28px -20px rgba(20,37,54,.4); }
.rank li.on .rk { border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(220,0,39,.1); }
.rk-n { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(150deg, #2A4560, #142536); box-shadow: 0 6px 12px -6px rgba(20,37,54,.6); }
.rank li:first-child .rk-n { background: linear-gradient(150deg, #FF3355, #B0001F); }
.rk-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.rk-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.rk-top > b { font-size: 14.5px; color: var(--ink); }
.rk-top span b { color: var(--ink); font-variant-numeric: tabular-nums; }
.rk-bar { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #2A4560, #142536); overflow: hidden; min-width: 30%; }
.rk-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #FF5A74, #DC0027); }
.rk-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--muted); }
.paycal { display: grid; gap: 6px; margin-top: 10px; }
.paycal li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12.5px; }
.cal-d { display: grid; place-items: center; height: 38px; border-radius: 9px; background: var(--red-l); color: var(--red); line-height: 1; }
.cal-d b { font-size: 15px; } .cal-d small { font-size: 9.5px; text-transform: uppercase; font-weight: 600; }
.cal-t { color: var(--ink-2); }
.cal-a { font-variant-numeric: tabular-nums; }
.paycal-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* Pulpit: wynik i koszty wg punktów */
.pp-card { padding: 16px 18px; margin-bottom: 18px; }
.pp-link { margin-left: 4px; }
.pp-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pp-tile { padding: 12px; border-radius: 12px; background: var(--paper-3); border: 1px solid var(--line-2); display: grid; gap: 6px; min-width: 0; }
.pp-top { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; }
.pp-top span { font-size: 11.5px; color: var(--muted); }
.pp-res { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.pp-res small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.pp-bar { height: 7px; border-radius: 99px; background: linear-gradient(90deg, #2A4560, #142536); overflow: hidden; min-width: 30%; }
.pp-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #FF5A74, #DC0027); }
.pp-meta { display: grid; gap: 1px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pp-total { background: linear-gradient(140deg, #142536, #1C2A3A); color: #fff; border: 0; }
.pp-total .pp-top span, .pp-total .pp-res small, .pp-total .pp-meta { color: rgba(255,255,255,.7); }

@media (max-width: 1400px) {
  .pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .an-grid { grid-template-columns: 1fr; }
  .pts-grid { grid-template-columns: 1fr; }
  .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .er-parts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .an-filter { position: static; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
  .an-f-group { flex-direction: column; align-items: stretch; gap: 6px; width: 100%; max-width: 100%; }
  .an-f-scroll { width: 100%; max-width: 100%; }
  .an-kpis { gap: 10px; }
  .an-kpi .kpi-value { font-size: 19px; }
  .an-dark .kpi-value { font-size: 25px; }
  .an-kpis .span2 { grid-column: 1 / -1; }
  .an-kpi .kpi-note { font-size: 11.5px; }
  .er-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-card { padding: 16px 14px 12px; }
  .c3d-scroll { overflow-x: auto; margin: 8px -14px 0; padding: 0 14px 4px; scrollbar-width: thin; }
  .c3d-scroll .c3d { min-width: 600px; }
  .c3d-hint { display: flex; align-items: center; gap: 4px; justify-content: flex-end; font-size: 11px; color: var(--muted); margin-top: 2px; }
  .pcards { grid-template-columns: 1fr; gap: 10px; }
  .pcard { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; row-gap: 2px; align-items: center; }
  .pc-head, .pc-sub, .pc-foot { grid-column: 1 / -1; }
  .pc-body, .pc-dl { margin-top: 6px; }
  .pc-dl { font-size: 13px; gap: 4px 10px; }
  .tr-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tr-stats > div { padding: 10px 9px; }
  .tr-stats b { font-size: 15.5px; }
  .tr-stats small, .tr-stats span { font-size: 10.5px; }
  .pc-ring-lbl { display: none; }
  .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-section-head h2 { font-size: 19px; }
  .rk { gap: 10px; padding: 10px; }
  .an-scope { display: none; }
}

@media (max-width: 1240px) {
  .dash-hero { grid-template-columns: 1fr; }
}
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero-visual { height: 470px; max-width: 660px; margin: 0 auto; width: 100%; --sc: .86; }
  .hero-visual .stage { --sc: .86; }
}
@media (max-width: 767px) {
  .hero { margin-top: -60px; padding-top: 60px; }
  .l-lockup { font-size: 17px; padding-left: 8px; }
  .hero-visual { display: block; height: 300px; margin: 6px -18px 0; overflow: visible; }
  .hero-visual .stage { --sc: .5; left: 38px; top: 6px; }
  .fcard { animation: none; }
  .dash-hero { padding: 20px 18px; border-radius: 16px; gap: 18px; }
  .dh-title { font-size: 25px; }
  .close-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .close-body .ring { justify-self: center; }
  .close-card { padding: 16px; }
  .close-card .ring-label b { font-size: 22px; }
  .close-card .ring-lg { width: 108px; height: 108px; }
  .ring-row { grid-template-columns: 1fr; gap: 12px; }
  .dh-actions .btn { flex: 1; padding-left: 10px; padding-right: 10px; font-size: 14px; gap: 6px; }
  .stepper .st span.lbl { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .stage { transform: scale(var(--sc, 1)) rotateY(-17deg) rotateX(7deg) !important; }
  .btn-glow::after { display: none; }
  .dn-seg { transform: none !important; }   /* pierścień: bez wysuwania segmentu, zostaje samo rozjaśnienie */
}

/* ==========================================================================
   Pomiar wejść z zaproszenia: karta zgody / ustawień (tracking.js)
   Nienachalna, niemodalna; oba przyciski decyzji są jednakowe.
   ========================================================================== */
.pm-card {
  position: fixed; right: 20px; bottom: 20px; z-index: 150; width: min(400px, calc(100vw - 24px));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-3); padding: 18px 20px 16px;
  color: var(--ink); font-family: var(--sans); animation: pmIn .45s var(--ease) both;
}
.pm-card.pm-out { opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
@keyframes pmIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pm-title { font-size: 15.5px; font-weight: 600; line-height: 1.35; letter-spacing: -.005em; margin: 0 0 6px; outline: none; }
.pm-status { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.pm-text { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.pm-more { margin: 6px 0 0; font-size: 13px; }
.pm-more a { color: var(--ink); text-underline-offset: 2px; }
.pm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pm-btn {
  height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(16, 24, 33, .28); background: var(--card); color: var(--ink);
  font: 600 14px/1 var(--sans); cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.pm-btn:hover { background: var(--paper-3); border-color: rgba(16, 24, 33, .5); }
.pm-btn:active { transform: translateY(1px); }
.pm-btn:focus-visible, .pm-more a:focus-visible, .l-footer-link:focus-visible, .link-inline:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.l-footer-track { margin-top: 6px; font-size: 12.5px; }
.l-footer-link { background: none; border: 0; padding: 0; font: inherit; color: rgba(255, 255, 255, .82); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.l-footer-link:hover { color: #fff; }
.link-inline { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@media (max-width: 767px) {
  .pm-card { left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); width: auto; padding: 16px 16px 14px; }
  body.is-app .pm-card { bottom: calc(var(--bnav-h) + 12px + var(--safe-b)); }
}
@media (prefers-reduced-motion: reduce) {
  .pm-card { animation: none; }
}
@media print { .pm-card { display: none; } }

/* ===== 1.3.0 · Przewodnik 2.0: strona powitalna, przewodnik, nowe zakładki ===== */

/* --- Przyciski przewodnika na stronie powitalnej --- */
.btn-compass { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .2); flex: none; }
.btn-compass svg.ic { width: 16px; height: 16px; animation: compassSway 5s ease-in-out infinite; }
@keyframes compassSway { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(20deg); } }
.hero-guide-link { margin-top: 14px; font-size: 14px; }
.hero-guide-link a { color: rgba(255, 255, 255, .86); text-underline-offset: 3px; }
.hero-guide-link a:hover { color: #fff; }
.l-final-cta { gap: 12px; flex-wrap: wrap; }

/* --- Sekcja „Przewodnik krok po kroku” --- */
.l-guide { padding-top: 64px; padding-bottom: 40px; }
.guide-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: 40px 40px 36px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #22405F 0%, #142536 55%, #0E1B29 100%);
  box-shadow: 0 40px 80px -40px rgba(20, 37, 54, .7);
}
.guide-card::before { content: ""; position: absolute; right: -140px; top: -180px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(closest-side, rgba(220, 0, 39, .32), transparent); pointer-events: none; }
.guide-head { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.guide-compass { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, #FF3355, #B0001F); box-shadow: 0 20px 40px -16px rgba(220, 0, 39, .8); }
.guide-compass svg.ic { width: 44px; height: 44px; stroke-width: 1.6; animation: compassSway 5s ease-in-out infinite; }
.gc-ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255, 90, 116, .5); animation: ringOut 2.6s var(--ease) infinite; }
.gc-ring-2 { animation-delay: 1.3s; }
@keyframes ringOut { from { transform: scale(.88); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.guide-copy .eyebrow { color: #FF6B81; }
.guide-copy .l-h2 { color: #fff; margin: 10px 0 10px; max-width: 640px; }
.guide-lead { color: rgba(255, 255, 255, .8); font-size: 16px; line-height: 1.6; max-width: 640px; }
.guide-meta { margin-top: 14px; display: inline-flex; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 13px; font-weight: 600; color: #fff; }
.guide-meta:empty { display: none; }
.guide-cta { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.guide-cta small { color: rgba(255, 255, 255, .62); font-size: 12.5px; max-width: 280px; }
.guide-map { position: relative; margin-top: 34px; }
.guide-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.guide-path path { fill: none; stroke-linecap: round; }
.gp-base { stroke: rgba(255, 255, 255, .14); stroke-width: 2; }
.gp-flow { stroke: #FF5A74; stroke-width: 2; stroke-dasharray: 6 12; opacity: .9; animation: gpFlow 1.6s linear infinite; }
.guide-path circle { fill: #FF5A74; }
@keyframes gpFlow { to { stroke-dashoffset: -36; } }
#guide-tiles { position: relative; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
.g-tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 16px 16px 14px; border-radius: 18px;
  text-align: left; color: #fff; border: 1px solid rgba(255, 255, 255, .13); background: #13263A;
  transition: transform .25s var(--ease), border-color .2s, background-color .2s, box-shadow .25s; animation: gIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms);
}
.g-tile:hover { transform: translateY(-3px); border-color: rgba(255, 90, 116, .65); background-color: #18304A; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .65); }
.g-tile:focus-visible { outline: 2px solid #FF5A74; outline-offset: 3px; }
.g-top { display: flex; width: 100%; align-items: center; justify-content: space-between; }
.g-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #1D3550; border: 1px solid rgba(255, 255, 255, .16); color: #fff; }
.g-ic svg.ic { width: 21px; height: 21px; }
.g-num { font-family: var(--serif); font-size: 22px; font-weight: 600; color: rgba(255, 255, 255, .3); }
.g-tile b { font-size: 15.5px; font-weight: 650; margin-top: 6px; line-height: 1.3; }
.g-tile small { font-size: 13px; color: rgba(255, 255, 255, .7); line-height: 1.45; }
.g-meta { margin-top: auto; padding-top: 8px; padding-right: 22px; font-size: 12px; font-weight: 600; color: #FF8EA0; }
.g-tag { position: absolute; top: -9px; left: 14px; padding: 2px 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.g-tile.is-mine { border-color: rgba(255, 90, 116, .6); background: linear-gradient(160deg, #4A1830, #13263A 62%); }
.g-tile.is-mine .g-ic { background: var(--red); border-color: transparent; }
.g-tile.is-extra { border-style: dashed; background: #102131; }
.g-seen { position: absolute; top: 26px; right: 16px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.g-tile.is-seen .g-num { visibility: hidden; }
.g-go { position: absolute; right: 14px; bottom: 14px; color: rgba(255, 255, 255, .42); transition: transform .2s, color .2s; }
.g-tile:hover .g-go { color: #fff; transform: translateX(3px); }
.g-group { display: flex; align-items: center; gap: 8px; margin: 28px 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.g-group svg { color: #FF6B81; }
@keyframes gIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --- Przewodnik: przyciemnienie, spotlight, pierścień, „kliknięcie” --- */
.tour-block { position: fixed; inset: 0; z-index: 250; }
.tour-block.is-dim { background: rgba(9, 20, 33, .64); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn .3s ease both; }
.tour-spot {
  position: fixed; left: 0; top: 0; z-index: 251; width: 80px; height: 80px; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .92), 0 0 24px 4px rgba(255, 255, 255, .16); transition: opacity .3s ease; will-change: transform, width, height;
}
.tour-dim { position: fixed; inset: 0; z-index: 251; width: 100%; height: 100%; pointer-events: none; overflow: visible; animation: fadeIn .3s ease both; }
.tour-dim path { fill: rgba(9, 20, 33, .62); }
.tour-spot.is-off { opacity: 0; }
.tour-ring { position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--red); animation: tourRing 1.9s var(--ease) infinite; }
@keyframes tourRing { 0% { box-shadow: 0 0 0 0 rgba(220, 0, 39, .55); } 70% { box-shadow: 0 0 0 14px rgba(220, 0, 39, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 0, 39, 0); } }
.tour-tap { position: fixed; left: 0; top: 0; z-index: 253; width: 0; height: 0; pointer-events: none; }
.tour-tap::before, .tour-tap::after { content: ""; position: absolute; border-radius: 50%; }
.tour-tap::before { left: -24px; top: -24px; width: 48px; height: 48px; background: rgba(220, 0, 39, .22); border: 2px solid rgba(220, 0, 39, .9); animation: tapRing .95s var(--ease) both; }
.tour-tap::after { left: -7px; top: -7px; width: 14px; height: 14px; background: var(--red); box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0, 0, 0, .3); animation: tapDot .95s var(--ease) both; }
@keyframes tapRing { 0% { transform: scale(.3); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes tapDot { 0% { transform: scale(0); opacity: 0; } 20% { transform: scale(1.15); opacity: 1; } 40% { transform: scale(.85); } 75% { opacity: 1; } 100% { transform: scale(.9); opacity: 0; } }

/* --- Dymek przewodnika --- */
.tour-pop {
  position: fixed; z-index: 252; left: 0; top: 0; width: 440px; max-width: calc(100vw - 24px); max-height: calc(100vh - 16px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); border-radius: 18px; border: 1px solid rgba(20, 37, 54, .08); padding: 14px 16px 10px;
  box-shadow: 0 30px 80px -20px rgba(5, 12, 20, .62), 0 2px 8px rgba(5, 12, 20, .12); animation: modalIn .3s var(--ease);
}
.tour-pop::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--red), #FF6B81); }
.tour-pop.no-anim, .tour-pop.no-anim .tp-body { animation: none; }
.tp-top { display: flex; align-items: center; gap: 8px; }
.tp-chap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper-3); text-align: left; transition: border-color .15s, background-color .15s; }
.tp-chap:hover { border-color: var(--line); background: #fff; }
.tp-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; }
.tp-cht { min-width: 0; flex: 1; }
.tp-cht small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.tp-cht b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-chev { color: var(--muted); transition: transform .2s; }
.tp-chap[aria-expanded="true"] .tp-chev { transform: rotate(180deg); }
.tp-x { flex: none; }
.tp-prog { display: flex; gap: 3px; margin: 12px 0 2px; }
.tp-prog i { height: 4px; min-width: 5px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.tp-prog i.cur { background: #F7D3DA; }
.tp-prog i b { display: block; height: 100%; background: var(--red); border-radius: inherit; animation: progIn .6s var(--ease) both; transform-origin: left; }
@keyframes progIn { from { transform: scaleX(.6); } to { transform: none; } }
.tp-menu { margin: 10px 0 2px; border: 1px solid var(--line-2); border-radius: 12px; padding: 4px; max-height: 268px; overflow-y: auto; background: var(--paper-3); }
.tp-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 8px; text-align: left; font-size: 13.5px; font-weight: 500; }
.tp-menu button:hover { background: #fff; }
.tp-menu button.cur { background: var(--red-l); font-weight: 600; }
.tp-menu button svg.ic { color: var(--muted); }
.tp-menu span { flex: 1; min-width: 0; }
.tp-menu em { display: block; font-style: normal; font-size: 11px; color: var(--muted); font-weight: 500; }
.tp-menu small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.tp-menu small svg.ic { color: var(--ok); }
.tp-body { animation: tpIn .35s var(--ease) both; }
@keyframes tpIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tp-resume { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--muted); background: var(--paper-3); border-radius: 8px; padding: 6px 10px; }
.tp-resume .link-inline { color: var(--ink); font-size: 12.5px; }
.tp-step { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--urg); letter-spacing: .03em; }
.tp-all { color: var(--muted-2); font-weight: 500; }
.tour-pop h2 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 6px 0 6px; line-height: 1.25; }
.tour-pop #tour-p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.tp-gain { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: linear-gradient(135deg, #FFF1F3, #FDF7F2); border: 1px solid rgba(220, 0, 39, .18); font-size: 13.5px; line-height: 1.4; color: var(--ink); }
.tp-gain svg.ic { color: var(--red); margin-top: 1px; }
.tp-gain b { color: var(--urg); }
.tp-btns { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.tp-btns .spacer { flex: 1; }
.tp-skip { color: var(--muted); padding: 0 8px; }
.tp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.tp-foot kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line); background: var(--paper-3); font: 600 11px/1 var(--sans); color: var(--ink-2); }
.tp-foot .link-inline { font-size: 12.5px; color: var(--muted); margin-left: auto; }

/* --- Podsumowanie przewodnika --- */
.tour-sum {
  position: fixed; z-index: 253; left: 50%; top: 50%; width: min(580px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto;
  transform: translate(-50%, -50%); background: var(--card); border-radius: 24px; padding: 34px 32px 26px; text-align: center; box-shadow: var(--sh-3); animation: sumIn .45s var(--ease) both;
}
@keyframes sumIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%); } }
.ts-badge { position: relative; width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, #FF3355, #B0001F); box-shadow: 0 18px 36px -14px rgba(220, 0, 39, .7); }
.ts-badge svg.ic { width: 36px; height: 36px; }
.ts-badge i { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(220, 0, 39, .35); animation: ringOut 2.2s var(--ease) infinite; }
.ts-badge i + i { animation-delay: 1.1s; }
.ts-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--urg); }
.tour-sum h2 { font-family: var(--serif); font-size: 27px; font-weight: 600; margin: 8px 0 10px; line-height: 1.25; }
.tour-sum h2 b { color: var(--red); font-weight: 700; }
.tour-sum #ts-p { color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 450px; margin: 0 auto; }
.ts-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 18px 0 4px; }
.ts-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--paper-2); color: var(--muted); font-size: 12.5px; font-weight: 500; }
.ts-chips li.on { background: var(--ok-bg); color: var(--ok); }
.ts-adv { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.ts-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.ts-again { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* --- Podpowiedź w panelu --- */
.tour-hint {
  position: fixed; z-index: 140; left: calc(var(--side-w) + 24px); bottom: 24px; width: min(390px, calc(100vw - 24px));
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 42px 14px 14px; border-radius: 16px; color: #fff;
  background: rgba(20, 37, 54, .97); box-shadow: var(--sh-3); animation: hintIn .5s var(--ease) both;
}
.tour-hint.out { opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
@keyframes hintIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.th-ic { position: relative; width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--red); }
.th-ic svg.ic { width: 22px; height: 22px; animation: compassSway 5s ease-in-out infinite; }
.th-ic i { position: absolute; inset: 0; border-radius: inherit; animation: tourRing 2.2s var(--ease) infinite; }
.th-txt b { display: block; font-size: 14.5px; }
.th-txt > span { display: block; font-size: 13px; color: rgba(255, 255, 255, .78); margin-top: 2px; line-height: 1.45; }
.th-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.th-btns .btn-ghost { color: #fff; }
.th-btns .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.th-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; color: rgba(255, 255, 255, .7); display: grid; place-items: center; }
.th-x:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.tour-on .tour-hint { display: none; }

/* --- Pulpit: zespół --- */
.team-card { margin-top: 18px; }
.team-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 16px 20px 18px; }
.team-list li { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper-3); }
.team-list li.is-lead { background: var(--red-l); border-color: rgba(220, 0, 39, .2); }
.tm-txt { min-width: 0; }
.tm-txt b { display: block; font-size: 13.5px; }
.tm-txt small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; }
.tm-txt .tag-small { display: inline-block; margin-top: 5px; background: #fff; color: var(--urg); font-style: normal; }
.team-card .card-foot .small { display: inline-flex; align-items: center; gap: 6px; }

/* --- Finanse: płatności i kalendarz --- */
.pay-row + .pay-row { border-top: 1px solid var(--line-2); }
.pay-main { width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto auto 20px; gap: 14px; align-items: center; padding: 14px 20px; border: 0; background: none; text-align: left; transition: background-color .15s; }
.pay-main:hover { background: var(--paper-3); }
.pay-t { min-width: 0; }
.pay-t b { display: block; font-size: 14px; font-weight: 600; }
.pay-t small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pay-a { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.pay-chev { display: grid; color: var(--muted); transition: transform .25s var(--ease); }
.pay-row.is-open { background: linear-gradient(180deg, #FFF6F7, #FFFFFF); }
.pay-row.is-open .pay-chev { transform: rotate(180deg); }
.pay-det { padding: 0 20px 16px 80px; animation: detIn .35s var(--ease) both; }
.pay-det .kv { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line-2); }
.pay-det .kv dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
@keyframes detIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pcal span { position: relative; height: 38px; display: grid; place-items: center; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pcal .pc-dow { height: 22px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.pcal .we { color: var(--muted-2); }
.pcal .hol { color: var(--urg); }
.pcal .today { box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 700; }
.pcal .has { background: var(--ink); color: #fff; font-weight: 700; }
.pcal .has.due { background: var(--red); }
.pcal .has i { position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; opacity: .85; }
.pc-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 8px; font-size: 12px; color: var(--muted); }
.pc-legend span { display: inline-flex; gap: 6px; align-items: center; }
.pc-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--ink); }
.pc-legend i.lg-due { background: var(--red); }
.pc-sum li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.pc-sum li span:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.pc-sum b { font-weight: 600; white-space: nowrap; }
.pc-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13.5px; }
.pc-total b { font-size: 16px; white-space: nowrap; }

/* --- Kadry: pasek płacowy, szczegóły wniosku, zaświadczenia --- */
.slip-card { margin-top: 18px; }
.slip-pick { padding: 14px 20px 0; overflow-x: auto; scrollbar-width: thin; }
.slip-pick .seg { flex-wrap: nowrap; }
.slip-body { padding: 16px 20px 18px; }
.slip-who { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.slip-who b { display: block; font-size: 15px; }
.slip-who small { display: block; color: var(--muted); font-size: 12.5px; }
.slip-net { margin-left: auto; text-align: right; }
.slip-net small { display: block; font-size: 12px; color: var(--muted); }
.slip-net b { font-size: 24px; font-family: var(--serif); }
.slip-bar { margin-top: 16px; }
.slip-leg { margin-top: 8px; color: var(--muted); }
.slip-leg b { color: var(--ink); }
.slip-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 16px; }
.slip-dl { margin: 0; border: 1px solid var(--line-2); border-radius: 14px; padding: 4px 14px 6px; background: var(--paper-3); }
.sl-head { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 0 4px; }
.sl-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.sl-row dt { color: var(--ink-2); min-width: 0; }
.sl-row dd { margin: 0; font-weight: 600; white-space: nowrap; }
.sl-total { border-top: 1px solid var(--line); }
.sl-total dt { color: var(--ink); font-weight: 700; }
.sl-total dd { color: var(--red-h); font-size: 14.5px; font-weight: 700; }
.slip-card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.leave-det { grid-column: 1 / -1; margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: var(--paper-3); border: 1px solid var(--line-2); animation: detIn .35s var(--ease) both; }
.leave-det .kv { grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; }
.leave-det p { margin-top: 8px; }
.leave.is-open { background: linear-gradient(180deg, #FFF6F7, #FFFFFF); }
.leave-more svg.ic { transition: transform .2s; }
.leave-more[aria-expanded="true"] svg.ic { transform: rotate(180deg); }
.stack-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cert-list li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line-2); }
.cert-list li:first-child { border-top: 0; }
.cert-list li > span:nth-child(2) { flex: 1; min-width: 0; }
.cert-list b { display: block; font-size: 13.5px; }
.cert-list small { display: block; font-size: 12px; color: var(--muted); }

/* --- Prawo: KRS i terminy --- */
.corp-tl { position: relative; padding: 8px 20px 12px; }
.corp-tl::before { content: ""; position: absolute; left: 51px; top: 22px; bottom: 30px; width: 2px; background: linear-gradient(var(--red), var(--line)); opacity: .5; }
.corp-it { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 12px 0; }
.corp-date { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 54px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.corp-date b { font-size: 15px; font-variant-numeric: tabular-nums; }
.corp-date small { font-size: 11px; color: var(--muted); }
.corp-it:first-child .corp-date { background: var(--red); border-color: var(--red); color: #fff; }
.corp-it:first-child .corp-date small { color: rgba(255, 255, 255, .82); }
.corp-main { min-width: 0; }
.corp-main b { display: block; font-size: 14px; }
.corp-main small { display: block; font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; }

.tk-filters { margin-bottom: 16px; }

/* --- Responsywność 1.3.0 --- */
@media (max-width: 1240px) {
  .team-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .guide-head { grid-template-columns: auto minmax(0, 1fr); }
  .guide-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .tour-hint { left: 12px; right: 12px; width: auto; bottom: calc(var(--bnav-h) + 12px + var(--safe-b)); }
}
@media (max-width: 767px) {
  .l-guide { padding-top: 40px; padding-bottom: 24px; }
  .guide-card { padding: 26px 18px 22px; border-radius: 22px; }
  .guide-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .guide-compass { width: 64px; height: 64px; }
  .guide-compass svg.ic { width: 32px; height: 32px; }
  .guide-lead { font-size: 15px; }
  .guide-cta { flex-direction: column; align-items: stretch; }
  .guide-cta .btn { width: 100%; white-space: normal; height: auto; min-height: 50px; padding: 12px 16px; text-align: center; }
  .guide-map { margin-top: 24px; }
  .guide-path { display: none; }
  .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .g-tile { padding: 12px; border-radius: 14px; }
  .g-tile small, .g-go { display: none; }
  .g-ic { width: 36px; height: 36px; }
  .g-tile b { font-size: 14.5px; }
  .g-num { font-size: 18px; }
  .g-meta { padding-right: 0; }
  .g-seen { top: 20px; right: 12px; }
  .l-final-cta .btn { width: 100%; white-space: normal; height: auto; min-height: 50px; padding: 12px 16px; }

  .tour-pop {
    left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; max-width: none; max-height: 64vh;
    border-radius: 20px 20px 0 0; padding: 12px 14px calc(12px + var(--safe-b)); animation: sheetIn .3s var(--ease);
  }
  .tour-pop h2 { font-size: 18px; margin-top: 4px; }
  .tour-pop #tour-p { font-size: 13.5px; }
  .tp-gain { font-size: 13px; padding: 8px 10px; }
  .tp-prog { margin-top: 10px; }
  .tp-step { margin-top: 8px; }
  .tp-btns { margin-top: 10px; }
  .tp-btns .btn { height: 40px; }
  .tp-keys { display: none; }
  .tp-foot { margin-top: 8px; padding-top: 8px; }
  .tour-sum { padding: 26px 18px 20px; border-radius: 20px; }
  .tour-sum h2 { font-size: 22px; }
  .tour-sum #ts-p { font-size: 14px; }
  .ts-btns .btn { width: 100%; white-space: normal; height: auto; min-height: 46px; }

  .team-list { grid-template-columns: minmax(0, 1fr); padding: 12px 16px 14px; gap: 8px; }
  .pay-main { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "d t t" "d a s"; gap: 4px 12px; padding: 14px 16px; }
  .pay-main .dl-date { grid-area: d; align-self: start; }
  .pay-t { grid-area: t; }
  .pay-a { grid-area: a; align-self: center; }
  .pay-st { grid-area: s; justify-self: end; }
  .pay-chev { display: none; }
  .pay-det { padding: 0 16px 14px; }
  .slip-pick, .slip-body { padding-left: 16px; padding-right: 16px; }
  .slip-net { margin-left: 0; text-align: left; width: 100%; }
  .slip-cols { grid-template-columns: minmax(0, 1fr); }
  .corp-tl { padding: 6px 16px 10px; }
  .corp-tl::before { left: 43px; }
  .corp-it { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .leave-det .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .leave-det .kv dd { margin-bottom: 6px; }
  .upload-controls .btn { max-width: 100%; white-space: normal; height: auto; min-height: 44px; padding-top: 10px; padding-bottom: 10px; text-align: left; }
}
@media (max-width: 400px) {
  .tp-btns { gap: 6px; }
  .tp-btns .btn { padding: 0 10px; font-size: 13px; }
  .tp-skip { padding: 0 4px; }
  .card-foot .btn { max-width: 100%; white-space: normal; height: auto; min-height: 36px; padding-top: 7px; padding-bottom: 7px; text-align: left; }
  .leave .leave-acts { flex-wrap: wrap; }
  .leave .leave-acts .leave-more { flex: 1 1 100%; }
  .up-item { grid-template-columns: 36px minmax(0, 1fr); row-gap: 6px; }
  .up-item > .badge { grid-column: 2; justify-self: start; white-space: normal; }
}
@media (max-width: 359px) {
  .g-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .gp-flow { animation: none; }
  .tour-spot { transition: none; }
}
@media print { .tour-hint, #tour-root { display: none; } }


/* ===== 1.2.2 · Wyśrodkowany nagłówek, sekcja kontaktu i stopka strony powitalnej ===== */
.l-header-inner { position: relative; justify-content: center; }
.l-header-inner .l-pdf { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); margin: 0; }

.l-contact .l-wrap { text-align: center; }
.l-contact .eyebrow { justify-content: center; }
.l-contact .eyebrow::after { content: ""; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }
.l-contact .l-h2 { margin-left: auto; margin-right: auto; }
.l-contact .l-sub { font-size: 17px; margin-bottom: 44px; }
.l-contact .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1040px; margin: 0 auto; }
.l-contact .contact-card {
  position: relative; overflow: hidden; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0;
  padding: 34px 26px 30px; border-radius: 24px; color: var(--ink); text-align: center;
  border: 1px solid transparent;
  background: linear-gradient(165deg, #FFFFFF 0%, #FBF9F6 60%, #F4F0EA 100%) padding-box,
              linear-gradient(160deg, rgba(255,255,255,.95), rgba(20,37,54,.10) 55%, rgba(220,0,39,.16)) border-box;
  box-shadow: 0 1px 0 #fff inset, 0 24px 48px -30px rgba(20, 37, 54, .45), 0 4px 12px -6px rgba(20, 37, 54, .10);
}
.l-contact .contact-card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 46%; pointer-events: none; border-radius: 24px 24px 0 0;
  background: radial-gradient(120% 90% at 50% -20%, rgba(255,255,255,.95), rgba(255,255,255,0) 70%);
}
.l-contact .contact-card .contact-ic {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 20px; margin-bottom: 18px; color: #fff; border: 1px solid transparent;
  background: linear-gradient(150deg, #2E4560, #142536) padding-box, linear-gradient(150deg, rgba(255,255,255,.45), rgba(20,37,54,.4)) border-box;
  box-shadow: 0 14px 26px -12px rgba(20, 37, 54, .65), inset 0 1px 0 rgba(255,255,255,.28);
}
.l-contact .contact-card:first-child .contact-ic {
  background: linear-gradient(150deg, #FF3355, #B0001F) padding-box, linear-gradient(150deg, rgba(255,255,255,.5), rgba(176,0,31,.4)) border-box;
  box-shadow: 0 14px 26px -12px rgba(220, 0, 39, .7), inset 0 1px 0 rgba(255,255,255,.35);
}
.l-contact .contact-card .contact-ic svg { width: 26px; height: 26px; }
.l-contact .contact-card small { position: relative; z-index: 1; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.l-contact .contact-card b { position: relative; z-index: 1; display: block; font-size: clamp(18px, 1.6vw, 21px); font-weight: 650; letter-spacing: -.01em; line-height: 1.35; color: var(--ink); }
.l-contact .contact-meta { position: relative; z-index: 1; margin-top: 8px; font-size: 14px; color: var(--muted); }
.l-contact a.contact-card:hover { border-color: transparent; translate: 0 -5px; box-shadow: 0 1px 0 #fff inset, 0 34px 60px -30px rgba(20, 37, 54, .5), 0 6px 16px -8px rgba(220, 0, 39, .25); }
.l-contact a.contact-card:hover b { color: var(--red); }
.l-contact a.contact-card:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px auto 0; }
.contact-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 600; color: var(--ink); border: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFFFF, #F7F4EF); box-shadow: 0 1px 0 #fff inset, 0 8px 18px -12px rgba(20, 37, 54, .35);
  transition: translate .25s var(--ease), box-shadow .25s, border-color .2s, color .2s;
}
.contact-chip svg { width: 18px; height: 18px; color: var(--red); }
.contact-chip:hover { translate: 0 -2px; color: var(--red); border-color: rgba(220, 0, 39, .35); box-shadow: 0 1px 0 #fff inset, 0 14px 26px -14px rgba(20, 37, 54, .45); }
.contact-chip:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.contact-chip.contact-card-pdf { color: #fff; border-color: transparent; background: linear-gradient(150deg, #FF3355, #B0001F); box-shadow: 0 10px 22px -12px rgba(220, 0, 39, .7), inset 0 1px 0 rgba(255,255,255,.3); }
.contact-chip.contact-card-pdf svg { color: #fff; }
.contact-chip.contact-card-pdf:hover { color: #fff; }

.l-footer { padding: 56px 0 52px; }
.l-footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 0; }
.l-footer .l-footer-logo { height: auto; width: 210px; max-width: 70vw; }
.l-footer-rule { display: block; width: 72px; height: 2px; margin: 24px auto 22px; border-radius: 2px; background: linear-gradient(90deg, transparent, #DC0027, transparent); }
.l-footer-text { font-size: 14.5px; line-height: 1.75; }
.l-footer-text strong { font-size: 16px; letter-spacing: .005em; }
.l-footer-build { margin-top: 16px; }

@media (max-width: 960px) {
  .l-contact .contact-grid { grid-template-columns: 1fr; max-width: 520px; gap: 16px; }
  .l-contact .contact-card { padding: 26px 22px 24px; }
}
@media (max-width: 767px) {
  .l-header-inner .l-pdf { right: 18px; }
  .l-contact .l-sub { font-size: 15.5px; margin-bottom: 32px; }
  .contact-chip { width: 100%; max-width: 520px; justify-content: center; }
  .l-footer .l-footer-logo { width: 170px; }
  .l-footer-text { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .l-contact a.contact-card:hover, .contact-chip:hover { translate: none; }
}