/* ==========================================================================
   Camlog Rep Tools — wspólny arkusz (rt.css)
   Styl: prezentacja „Plan Q4 – Prezka 3” (ciemny grafit, szklane karty,
   Plus Jakarta Sans + Manrope, animacje wejścia, liczniki) — 06.10.2026.
   Kolory marki Camlog: niebieski #0076BE + pomarańczowy #E8702A i pochodne.
   Arkusz ładowany PRZED <style> strony — reguły strony mogą go nadpisać.
   Animacje / implant z cząsteczek: rt.js.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* tło */
  --void: #0D0F12;
  --bg: #0D0F12;

  /* marka Camlog + pochodne na ciemne tło */
  --blue: #0076BE;             /* wypełnienia (biały tekst 4.8:1) */
  --blue-dark: #005A91;        /* hover wypełnień */
  --blue2: #3A9AD9;            /* jaśniejszy niebieski: akcenty, glow */
  --sky: #9CCDEE;              /* najjaśniejszy: liczby, gradient */
  --blue-text: #6DB8EA;        /* niebieski tekst na ciemnym (≥ 6:1) */
  --blue-light: rgba(0, 118, 190, 0.16);
  --blue-mid: rgba(0, 118, 190, 0.45);
  --orange: #E8702A;
  --orange2: #F5A06B;
  --orange-strong: #E8702A;
  --orange-text: #F5A06B;      /* pomarańczowy tekst na ciemnym (≥ 7:1) */
  --orange-light: rgba(232, 112, 42, 0.16);

  /* stany (jasne odcienie na ciemne tło) */
  --green: #5BC98C;
  --green-light: rgba(91, 201, 140, 0.14);
  --green-mid: rgba(91, 201, 140, 0.45);
  --red: #FF8A7A;
  --red-light: rgba(255, 110, 92, 0.14);
  --gold: #F2C14E;
  --gold-light: rgba(242, 193, 78, 0.13);
  --gold-mid: #F2C14E;

  /* neutralne */
  --white: #FFFFFF;
  --ink: #FFFFFF;                       /* nagłówki */
  --text: rgba(255, 255, 255, 0.94);
  --body: #C9D1D9;                      /* treść (≈ 11:1 na karcie) */
  --muted: #9BA5AF;                     /* pomocniczy (≈ 6:1 na karcie) */
  --faint: #7F8A95;                     /* placeholdery / dekoracje */
  --glass: linear-gradient(180deg, rgba(38, 43, 50, 0.62), rgba(20, 23, 27, 0.62));
  --card: rgba(30, 34, 40, 0.62);       /* płaskie tło karty */
  --card-border: rgba(170, 205, 230, 0.14);
  --line: rgba(170, 205, 230, 0.14);
  --line-hot: rgba(58, 154, 217, 0.6);
  --surface: rgba(8, 11, 14, 0.55);     /* pola formularzy, wnętrza kart */
  --chip: rgba(255, 255, 255, 0.08);
  --field-border: rgba(170, 205, 230, 0.30);

  /* zgodność wstecz z nazwami używanymi na stronach */
  --gray-bg: rgba(255, 255, 255, 0.04);
  --gray-border: rgba(170, 205, 230, 0.14);
  --gray-text: #9BA5AF;

  --radius: 16px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --shadow: none;
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --glow: 0 0 44px rgba(0, 118, 190, 0.28);
  --ring: 0 0 0 3px rgba(58, 154, 217, 0.45);

  --font: 'Manrope', system-ui, sans-serif;
  --display: 'Plus Jakarta Sans', 'Manrope', system-ui, sans-serif;
  --mono: 'Manrope', system-ui, sans-serif;   /* etykiety, tagi, stopki (wersaliki) */

  --page: 1200px;
  --gutter: 40px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ── Baza ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #08090B; }
body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 60% 45% at 85% 0%, rgba(0, 118, 190, 0.20), transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(155, 155, 154, 0.08), transparent 65%),
    linear-gradient(180deg, #111418 0%, var(--void) 520px, #0B0D10 100%);
  background-color: var(--void);
  color: var(--body);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
/* delikatne linie „ekranu” jak w prezentacji */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
}
body > :where(.hero, .grid, .wrap, main, .footer, section) { position: relative; z-index: 1; }
a { color: var(--blue-text); text-decoration: none; }
a:hover { text-decoration: underline; }
b, strong { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); font-weight: 700; line-height: 1.12; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
::selection { background: rgba(58, 154, 217, 0.45); color: #fff; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ── Nagłówek strony ───────────────────────────────────────────────────── */
.header {
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.92), rgba(8, 10, 12, 0.72));
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 100;
  min-height: 72px;
}
.header > * { margin-left: 0 !important; }
/* logo BHC Group (wersja na ciemne tło) zawsze w prawym górnym rogu */
.header-logo { order: 99; height: 38px; width: auto; filter: none; display: block; flex-shrink: 0; }
#hfallback { order: 99; color: var(--ink) !important; font-family: var(--display); font-weight: 700 !important; }
.header-divider { order: 98; width: 1px; height: 30px; background: var(--line); flex-shrink: 0; }
.header-title, .crumbs {
  margin-right: auto;
  font-family: var(--display); color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.header-title::before, .crumbs::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px; flex-shrink: 0;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  box-shadow: 0 0 10px rgba(58, 154, 217, 0.6);
}
.header-title:has(+ .header-badge) { margin-right: 0; }
.header-badge {
  margin-right: auto;
  font-family: var(--mono); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: #1A0B03; background: linear-gradient(120deg, var(--orange), var(--orange2)); padding: 5px 11px; border-radius: 6px;
}
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--sky); text-decoration: none; }
.crumbs .sep { color: rgba(255, 255, 255, 0.28); font-weight: 400; }
.header-sub { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text);
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.03);
  white-space: nowrap; transition: border-color .2s, background .2s, color .2s;
}
.back-link::before { content: "←"; color: var(--blue-text); }
.back-link:hover { border-color: var(--line-hot); background: var(--blue-light); color: #fff; text-decoration: none; }
.header-right { display: flex; align-items: center; gap: 12px; }

/* zalogowany użytkownik w nagłówku */
.user-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; font-weight: 600; cursor: default;
}
button.user-pill { cursor: pointer; transition: border-color .2s; }
button.user-pill:hover { border-color: var(--line-hot); }
.user-pill-avatar, .user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(120deg, var(--orange), var(--orange2)); color: #1A0B03;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 11px; flex-shrink: 0;
}
.user-email { color: var(--text); font-family: var(--mono); font-size: 12px; }
.btn-signout {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 10px; cursor: pointer; transition: border-color .2s, color .2s;
}
.btn-signout:hover { border-color: var(--line-hot); color: #fff; }

/* ── Hero (kicker + tytuł + lead) ──────────────────────────────────────── */
.hero { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 72px var(--gutter) 40px; position: relative; }
.hero-eyebrow, .rt-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 13px; font-weight: 800;
  letter-spacing: .24em; text-transform: uppercase; color: var(--blue-text);
  margin-bottom: 18px; line-height: 1.4;
}
.hero-eyebrow::before, .rt-eyebrow::before { content: ""; width: 40px; height: 2px; border-radius: 2px; background: var(--blue2); flex-shrink: 0; }
.hero-eyebrow:empty { display: none; }
.hero-title {
  font-family: var(--display); font-size: 60px; font-weight: 800; line-height: 1.0; letter-spacing: -0.035em;
  color: #fff; margin-bottom: 20px; max-width: 920px;
}
.hero-desc { font-size: 19px; line-height: 1.6; color: var(--body); max-width: 780px; }

/* panel główny: okładka z implantem z cząsteczek */
.hero.rt-cover { min-height: 560px; display: flex; flex-direction: column; justify-content: center; padding-top: 64px; padding-bottom: 56px; }
.rt-cover > :not(canvas) { position: relative; z-index: 1; max-width: 640px; }
.rt-cover .hero-title { font-size: 76px; }
.rt-cover .hero-title .grad, .grad {
  background: linear-gradient(110deg, var(--blue2) 10%, var(--sky) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rt-implant {
  position: absolute; z-index: 0; pointer-events: none;
  top: 0; bottom: 0; left: 50%; width: 50vw; max-width: 760px; height: 100%;
}
.rt-stats { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.rt-stats .stat { min-width: 170px; padding: 18px 22px; }

/* ── Kontener / siatka ─────────────────────────────────────────────────── */
.wrap { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 72px; }
.grid {
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto;
  padding: 8px var(--gutter) 80px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px;
}

/* ── Szklana karta (wspólna dla kafelków, kart, statów) ────────────────── */
.tile, .card, .rt-card, .stat, .rt-stat {
  background: var(--glass);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ── Kafelek ───────────────────────────────────────────────────────────── */
.tile {
  --accent: var(--blue2);
  --accent-text: var(--blue-text);
  --accent-bg: rgba(0, 118, 190, 0.12);
  --accent-line: rgba(58, 154, 217, 0.40);
  --accent-glow: rgba(0, 118, 190, 0.22);
  padding: 28px 30px 24px; display: flex; flex-direction: column; gap: 14px;
  min-height: 250px; position: relative; overflow: hidden; cursor: pointer; color: var(--body);
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, var(--accent-glow), transparent 70%);
  transition: opacity .35s var(--ease);
}
.tile:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-bg) inset, 0 18px 50px var(--accent-glow); text-decoration: none; }
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.tile.tile-admin, .tile.tile-internal {
  --accent: var(--orange); --accent-text: var(--orange-text);
  --accent-bg: rgba(232, 112, 42, 0.12); --accent-line: rgba(232, 112, 42, 0.5); --accent-glow: rgba(232, 112, 42, 0.18);
}
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile-icon {
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--accent-bg); color: var(--accent-text);
  border: 1px solid var(--accent-line);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: 0.02em; flex-shrink: 0;
}
.tile-tag {
  display: block; font-family: var(--mono); font-size: 12px; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: 10px; line-height: 1.45; background: none; padding: 0;
}
.tile-title { font-family: var(--display); font-size: 25px; font-weight: 700; line-height: 1.15; color: #fff; letter-spacing: -0.015em; }
.tile-desc { font-size: 15px; line-height: 1.55; color: var(--body); flex: 1; }
.tile-status, .tile-count {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .18em;
}
.tile-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px;
}
.tile-url { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tile-cta {
  font-family: var(--mono); font-size: 12px; font-weight: 800; color: var(--accent-text);
  letter-spacing: .18em; text-transform: uppercase; flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
}
.tile-cta::after { content: "→"; transition: transform .3s var(--ease); }
.tile:hover .tile-cta::after { transform: translateX(4px); }

/* kafelek „wkrótce” */
.tile-soon { cursor: default; opacity: .6; background: rgba(255, 255, 255, 0.02); border: 1px dashed rgba(170, 205, 230, 0.25); -webkit-backdrop-filter: none; backdrop-filter: none; }
.tile-soon:hover { transform: none; box-shadow: none; border-color: rgba(170, 205, 230, 0.25); }
.tile-soon:hover::before { opacity: 0; }
.tile-soon .tile-icon { color: var(--muted); background: transparent; border-color: var(--line); }
.tile-soon .tile-tag, .tile-soon .tile-cta { color: var(--muted); }
.tile-soon .tile-cta::after { content: ""; }
.tile-soon-badge {
  font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-light); border: 1px solid rgba(242, 193, 78, 0.35); padding: 4px 10px; border-radius: 6px;
}
/* miejsce na nowe narzędzie */
.tile-placeholder {
  background: transparent; border: 1px dashed rgba(170, 205, 230, 0.25); cursor: default;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.tile-placeholder:hover { transform: none; box-shadow: none; border-color: var(--line-hot); color: var(--sky); }
.tile-placeholder::before { display: none; }

/* kropki statusu */
.dot { width: 9px; height: 9px; border-radius: 50%; background: #56606A; flex-shrink: 0; transition: background .3s, box-shadow .3s; }
.dot.ok { background: var(--green); box-shadow: 0 0 0 3px var(--green-light), 0 0 12px rgba(91, 201, 140, 0.6); }
.dot.fail { background: var(--red); box-shadow: 0 0 0 3px var(--red-light), 0 0 12px rgba(255, 138, 122, 0.5); }
.dot.unknown { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-light); }

/* ── Stopka ────────────────────────────────────────────────────────────── */
.footer {
  max-width: var(--page); margin: 0 auto; padding: 26px 0 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer a { color: var(--blue-text) !important; font-weight: 800; }
.footer-left { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.footer-legend { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 8px; }

/* ── Karta ─────────────────────────────────────────────────────────────── */
.card, .rt-card { padding: 30px 32px; margin-bottom: 24px; }
.card-title {
  font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.15; color: #fff; letter-spacing: -0.015em;
  margin-bottom: 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
}
.card-title .sub { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* ── Formularze ────────────────────────────────────────────────────────── */
label {
  display: block; font-family: var(--mono); font-size: 11px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--body); margin-bottom: 8px;
}
input[type=text], input[type=number], input[type=date], input[type=email], input[type=search], input[type=url], textarea, select {
  border: 1px solid var(--field-border); background: var(--surface); color: #fff;
  padding: 12px 14px; font-family: var(--font); font-size: 15px; font-weight: 500; line-height: 1.4;
  border-radius: var(--radius-md); transition: border-color .2s, box-shadow .2s, background .2s;
  max-width: 100%;
}
input[type=text]:hover, input[type=number]:hover, input[type=date]:hover, textarea:hover, select:hover { border-color: rgba(170, 205, 230, 0.45); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue2); box-shadow: var(--ring); background: rgba(8, 11, 14, 0.8); }
select {
  -webkit-appearance: none; appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239CCDEE' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select option { background: #16191D; color: #fff; }
input[type=checkbox], input[type=radio] { accent-color: var(--blue2); }

/* ── Przyciski ─────────────────────────────────────────────────────────── */
.btn-primary, .rt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(120deg, var(--blue2), var(--sky)); color: #06121B; border: 0;
  padding: 14px 26px; font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: 0;
  border-radius: var(--radius-md); cursor: pointer; text-transform: none;
  box-shadow: 0 0 30px rgba(0, 118, 190, 0.35);
  transition: box-shadow .25s, transform .15s, filter .2s;
}
.btn-primary:hover:not(:disabled), .rt-btn:hover:not(:disabled) { box-shadow: 0 0 44px rgba(58, 154, 217, 0.55); filter: brightness(1.06); }
.btn-primary:active:not(:disabled), .rt-btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled, .rt-btn:disabled { background: #3A4048; color: #A7B0B9; box-shadow: none; cursor: not-allowed; }
.btn-orange, .rt-btn-orange { background: linear-gradient(120deg, var(--orange), var(--orange2)); color: #1A0B03; box-shadow: 0 0 30px rgba(232, 112, 42, 0.3); }
.btn-orange:hover:not(:disabled), .rt-btn-orange:hover:not(:disabled) { box-shadow: 0 0 44px rgba(232, 112, 42, 0.5); }
.btn-ghost, .rt-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255, 255, 255, 0.03); color: var(--text); border: 1px solid var(--line);
  padding: 12px 18px; font-family: var(--font); font-size: 14px; font-weight: 700;
  border-radius: var(--radius-md); cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.btn-ghost:hover, .rt-btn-ghost:hover { border-color: var(--line-hot); color: #fff; background: var(--blue-light); }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-google {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; border: 0; color: #1A1A1A;
  padding: 14px 24px; border-radius: 10px;
  font-family: var(--display); font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 0 34px rgba(0, 118, 190, 0.3);
  transition: box-shadow .25s, transform .15s;
}
.btn-google:hover { box-shadow: 0 0 48px rgba(58, 154, 217, 0.5); }
.btn-google svg { width: 18px; height: 18px; }

/* ── Callout / alerty (jak „na Q4” w prezentacji: pasek z lewej) ──────── */
.alert, .rt-callout {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 22px; margin-bottom: 20px;
  background: linear-gradient(90deg, rgba(0, 118, 190, 0.20), rgba(0, 118, 190, 0.04));
  color: var(--text);
  border: 1px solid rgba(58, 154, 217, 0.35); border-left: 6px solid var(--blue2); border-radius: 12px;
  font-size: 15px; line-height: 1.5;
}
.alert-info { color: var(--text); }
.alert-error { background: linear-gradient(90deg, rgba(255, 110, 92, 0.18), rgba(255, 110, 92, 0.04)); border-color: rgba(255, 138, 122, 0.4); border-left-color: var(--red); color: #FFD9D3; }
.alert-ok { background: linear-gradient(90deg, rgba(91, 201, 140, 0.16), rgba(91, 201, 140, 0.03)); border-color: rgba(91, 201, 140, 0.4); border-left-color: var(--green); color: #D3F5E2; }
.alert-warn { background: linear-gradient(90deg, rgba(242, 193, 78, 0.16), rgba(242, 193, 78, 0.03)); border-color: rgba(242, 193, 78, 0.4); border-left-color: var(--gold); color: #FBEBC4; }
.rt-callout-orange { background: linear-gradient(90deg, rgba(232, 112, 42, 0.18), rgba(232, 112, 42, 0.03)); border-color: rgba(232, 112, 42, 0.4); border-left-color: var(--orange); }

/* ── Tagi / pigułki ────────────────────────────────────────────────────── */
.tag, .rt-tag {
  display: inline-block; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px; background: var(--chip); color: var(--body); line-height: 1.35;
  border: 1px solid transparent;
}
.tag-app { background: var(--blue-light); color: var(--sky); border-color: rgba(58, 154, 217, 0.3); }
.tag-bug { background: var(--red-light); color: var(--red); border-color: rgba(255, 138, 122, 0.3); }
.tag-feature { background: var(--green-light); color: var(--green); border-color: rgba(91, 201, 140, 0.3); }
.tag-question { background: var(--gold-light); color: var(--gold); border-color: rgba(242, 193, 78, 0.3); }

/* ── Stat (duża liczba + podpis) ───────────────────────────────────────── */
.stat, .rt-stat { padding: 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.stat-num, .rt-stat-num { font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1; color: #fff; letter-spacing: -0.03em; white-space: nowrap; }
.rt-stat-num.blue { color: var(--sky); text-shadow: 0 0 40px rgba(0, 118, 190, 0.55); }
.stat-label, .rt-stat-label { font-size: 14px; line-height: 1.4; color: var(--body); }

/* ── Paski (rosnące) ───────────────────────────────────────────────────── */
.rt-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.rt-bar i { display: block; height: 100%; width: var(--w, 100%); border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--sky)); box-shadow: 0 0 14px var(--blue); }

/* ── Tabela ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap th {
  font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--body); text-align: left; padding: 13px 14px; background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table-wrap td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; color: var(--body); }
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tbody tr:hover td { background: rgba(0, 118, 190, 0.07); }

/* ── Logowanie / puste stany / ładowanie ───────────────────────────────── */
.signin-box { text-align: center; padding: 48px 24px; }
.signin-icon {
  width: 60px; height: 60px; border-radius: 14px; background: var(--blue-light); border: 1px solid rgba(58, 154, 217, 0.4);
  color: var(--sky); font-family: var(--display); font-size: 19px; font-weight: 800;
  display: inline-grid; place-items: center; margin-bottom: 20px;
}
.signin-title { font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: #fff; margin-bottom: 12px; }
.signin-desc { color: var(--body); font-size: 15px; line-height: 1.6; margin-bottom: 28px; }
.empty { text-align: center; color: var(--muted); padding: 32px 20px; font-size: 15px; }
.loading {
  display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(58, 154, 217, 0.25); border-top-color: var(--sky);
  border-radius: 50%; animation: rt-spin .8s linear infinite; vertical-align: middle; margin-right: 6px;
}
@keyframes rt-spin { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Animacje wejścia (klasy nadaje rt.js; bez JS treść jest widoczna) ── */
.rt-anim .rt-a { opacity: 0; transform: translateY(26px); filter: blur(6px); }
.rt-anim .rt-a.rt-on { animation: rt-up .9s var(--ease) forwards; animation-delay: calc(var(--rt-i, 0) * 70ms); }
@keyframes rt-up { to { opacity: 1; transform: none; filter: none; } }

/* ── Telefon ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .hero-title { font-size: 48px; }
  .rt-cover .hero-title { font-size: 56px; }
  .rt-implant { left: 40%; width: 60vw; opacity: .8; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  /* szkło bez rozmycia na telefonie = płynne przewijanie */
  .tile, .card, .rt-card, .stat, .rt-stat { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, rgba(34, 39, 46, 0.92), rgba(22, 25, 30, 0.92)); }
  .header { flex-wrap: wrap; gap: 10px 12px; padding: 12px var(--gutter); min-height: 0; }
  .header-title, .crumbs, .header-badge { order: 0; font-size: 16px; }
  .header-title::before, .crumbs::before { width: 16px; }
  .header-logo { order: 1; height: 30px; margin-left: auto !important; }
  #hfallback { order: 1; margin-left: auto !important; }
  .header-divider, .header-sub { display: none; }
  .header::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
  .header > .back-link, .header > .header-right, .header > #user-area, .header > .user-pill { order: 3; }
  .header > #user-area { flex-wrap: wrap; }
  .header > .back-link { padding: 7px 12px; font-size: 11px; }
  .header > #user-area + .back-link { margin-left: auto !important; }
  .header-title, .crumbs { margin-right: 0; flex: 1 1 auto; }
  .header-title:has(+ .header-badge) { flex: 0 1 auto; }
  .header-badge { margin-right: 0; }
  .user-email { display: none; }
  .hero { padding: 40px var(--gutter) 28px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: .2em; margin-bottom: 14px; }
  .hero-eyebrow::before { width: 24px; }
  .hero-title { font-size: 36px; line-height: 1.04; margin-bottom: 14px; }
  .hero-desc { font-size: 16px; }
  .hero.rt-cover { min-height: 0; padding-top: 270px; padding-bottom: 32px; }
  .rt-cover .hero-title { font-size: 40px; }
  .rt-implant { left: 0; right: 0; width: 100%; max-width: none; height: 270px; top: 8px; bottom: auto; opacity: 1; }
  .rt-stats { gap: 12px; margin-top: 26px; }
  .rt-stats .stat { flex: 1 1 0; min-width: 0; padding: 16px 18px; }
  .rt-stats .stat-num { font-size: 34px; }
  .grid { grid-template-columns: 1fr; gap: 16px; padding: 4px var(--gutter) 56px; }
  .tile { padding: 22px 20px 20px; min-height: 0; }
  .tile-title { font-size: 22px; }
  .card, .rt-card { padding: 22px 18px; }
  .card-title { font-size: 21px; }
  .footer { margin: 0 var(--gutter); padding: 22px 0 36px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .stat-num { font-size: 34px; }
}
@media (min-width: 641px) and (max-width: 1279px) {
  .footer { margin: 0 var(--gutter); }
}
