:root {
  --bg: #050906;
  --panel: rgba(18, 26, 21, 0.72);
  --panel-solid: #111a14;
  --panel-2: #17221b;
  --border: rgba(134, 239, 172, 0.12);
  --border-strong: rgba(134, 239, 172, 0.28);
  --text: #eef7f1;
  --muted: #8fa596;
  --green: #22c55e;
  --green-2: #4ade80;
  --green-deep: #15803d;
  --pos: #22c55e;
  --neg: #ef4444;
  --radius: 18px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  color-scheme: dark;
}

/* Aktualizacje: edytor i spokojny podgląd wiadomości, w istniejącym motywie Ossys. */
.updates-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.updates-heading p { margin: 6px 0 0; }
.updates-workspace { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.8fr); gap: 18px; align-items: start; }
.update-editor, .update-preview-wrap { min-width: 0; }
.update-editor.card, .updates-history.card { background: var(--panel-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
.update-editor .btn-ghost { backdrop-filter: none; -webkit-backdrop-filter: none; }
.update-title-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,140px); gap: 12px; }
.update-editor textarea { width: 100%; min-width: 0; padding: 12px 14px; border-radius: 12px; background: rgba(5,10,7,.8); border: 1px solid var(--border); color: var(--text); font: 500 16px/1.5 'Manrope', system-ui, sans-serif; resize: vertical; }
.update-editor textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.update-editor small { font-size: .7rem; font-weight: 500; }
.update-section-label > span { display: flex; align-items: center; gap: 8px; }
.update-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #86efac; }
.update-dot.fixed { background: #4ade80; }.update-dot.removed { background: #d1d9d3; }
.update-hint { margin: 0; }.update-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.update-actions .btn { white-space: normal; text-align: center; }
.update-preview-wrap { position: sticky; top: 20px; }
.update-preview-label { margin: 0 0 10px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.update-preview { background: var(--panel-solid); border: 1px solid var(--border); border-left: 3px solid var(--green); border-radius: 16px; padding: 22px; overflow-wrap: anywhere; }
.update-preview-brand { display: flex; align-items: center; gap: 8px; color: #bbf7d0; font-weight: 800; margin-bottom: 20px; }
.update-bot-tag { font-size: .6rem; line-height: 1.6; padding: 1px 5px; border-radius: 4px; background: #163c24; color: #86efac; }
.update-preview h2 { font-size: 1.15rem; line-height: 1.4; letter-spacing: -.02em; }
.update-version { display: inline-block; font-size: .72rem; color: var(--muted); margin-left: 8px; font-weight: 500; }
.update-preview p { color: var(--muted); white-space: pre-wrap; font-size: .85rem; }
.update-preview section { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 16px; }
.update-preview h3 { display: flex; align-items: center; gap: 8px; font-size: .86rem; margin-bottom: 10px; }
.update-preview ul { margin: 0; padding-left: 18px; font-size: .83rem; color: #c6d6cc; }.update-preview li + li { margin-top: 6px; }
.update-preview-button { display: inline-flex; align-items: center; gap: 12px; padding: 7px 12px; margin-top: 22px; border-radius: 8px; background: #183623; color: #bbf7d0; font-size: .75rem; font-weight: 700; }
.updates-history > ul { list-style: none; margin: 0; padding: 0; }.updates-history li { display: flex; align-items: center; gap: 12px; padding: 16px 0; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.updates-history li:last-child { border-bottom: 0; }.updates-history .grow { flex: 1 1 160px; overflow-wrap: anywhere; }.updates-history .grow > span { display: block; margin-top: 3px; }
.update-state { font-size: .72rem; padding: 4px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }.update-state.published { color: #86efac; background: rgba(34,197,94,.08); }
.update-preview [hidden] { display: none; }
@media (max-width: 1050px) { .updates-workspace { grid-template-columns: minmax(0,1fr); }.update-preview-wrap { position: static; } }
@media (max-width: 480px) { .update-title-fields { grid-template-columns: minmax(0,1fr); }.update-preview { padding: 18px; }.update-actions > .btn { flex: 1 1 100%; } }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* tło: zielona poświata u góry, delikatna siatka i "mgła" na dole */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% -140px, rgba(34, 197, 94, 0.28), transparent 70%),
    radial-gradient(600px 400px at 12% 30%, rgba(21, 128, 61, 0.14), transparent 70%),
    radial-gradient(700px 420px at 90% 60%, rgba(74, 222, 128, 0.08), transparent 70%),
    linear-gradient(to bottom, transparent 55%, rgba(3, 12, 6, 0.9));
}
.bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(134, 239, 172, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 239, 172, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
}

a { color: inherit; text-decoration: none; }
code { background: var(--panel-2); padding: 1px 7px; border-radius: 6px; font-size: .88em; border: 1px solid var(--border); }
h1, h2, h3 { margin: 0 0 .45em; line-height: 1.15; }
h2 { font-size: 1.15rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }

main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 8px 16px 64px; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; }

/* ───────────── nagłówek ───────────── */
.top {
  display: grid; grid-template-columns: 1fr minmax(0, 440px) 1fr; align-items: center; column-gap: 16px;
  max-width: 1080px; width: 100%; margin: 0 auto; padding: 22px 16px;
}
.top .brand { justify-self: start; }
/* wyszukiwarka zawsze w środkowej kolumnie, więc jest wyśrodkowana, niezależnie od tego, co jest po bokach */
.top .idsearch-small { grid-column: 2; width: 100%; }
/* znak firmowy: tarcza w szklanym, zielonym kafelku i nazwa z delikatnym gradientem (jasna u góry, zielona u dołu) */
.brand { display: flex; align-items: center; gap: 11px; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px;
  background: linear-gradient(160deg, rgba(74, 222, 128, 0.28), rgba(21, 128, 61, 0.22));
  border: 1px solid rgba(134, 239, 172, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 22px -10px rgba(34, 197, 94, 0.9);
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease;
}
.brand-mark img { width: 24px; height: 24px; filter: drop-shadow(0 2px 6px rgba(3, 21, 10, 0.5)); }
.brand-name {
  font-family: var(--display); font-weight: 800; font-size: 1.22rem; line-height: 1; letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 15%, #bbf7d0 60%, #4ade80 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 12px rgba(34, 197, 94, 0.35));
}
.brand:active .brand-mark { transform: scale(0.94); transition-duration: 100ms; }
@media (hover: hover) and (pointer: fine) { .brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 26px -10px rgba(34, 197, 94, 1); } }
@media (prefers-reduced-motion: reduce) { .brand:hover .brand-mark, .brand:active .brand-mark { transform: none; } }
.nav { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; }
.me {
  display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border); font-weight: 600; font-size: .9rem; white-space: nowrap;
  transition: border-color .2s, transform .2s;
}
.me:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .me:hover { border-color: var(--border-strong); } }
.me img { width: 28px; height: 28px; border-radius: 50%; }

/* ───────────── przyciski ───────────── */
/* W stylu Apple: kapsułki, reakcja od razu przy wciśnięciu (lekkie zmniejszenie), bez podskakiwania przy najechaniu.
   Wypełniony (primary) do głównej akcji, "szkło" (ghost) do drugorzędnych, przyciemniony zielony (tinted) do pobocznych. */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 999px; padding: 11px 22px;
  font: inherit; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, filter 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); transition-duration: 100ms; }
.btn:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; }
.btn-primary {
  color: #03150a;
  background: linear-gradient(180deg, #5ee68f, var(--green));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 -1px 0 rgba(0, 0, 0, 0.12) inset, 0 6px 20px -8px rgba(34, 197, 94, 0.75);
}
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.btn-tinted { color: var(--green-2); background: rgba(34, 197, 94, 0.14); }
.community-link {
  flex: none; height: 40px; padding: 0 15px; gap: 8px; font-size: .86rem;
  border-color: var(--border-strong); background: rgba(34, 197, 94, 0.1);
  box-shadow: inset 0 1px 0 rgba(134, 239, 172, 0.05);
}
.community-link svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
@media (max-width: 1000px) {
  .community-link { width: 40px; padding: 0; }
  .community-link span { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { filter: brightness(1.07); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 -1px 0 rgba(0, 0, 0, 0.12) inset, 0 10px 28px -10px rgba(34, 197, 94, 0.9); }
  .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.16); }
  .btn-tinted:hover { background: rgba(34, 197, 94, 0.22); }
}
.btn-lg { padding: 15px 30px; font-size: 1.02rem; min-width: 170px; }
.btn-sm { padding: 8px 16px; font-size: .86rem; }
.btn-xs { padding: 6px 14px; font-size: .82rem; }
.btn-chevron { width: 15px; height: 15px; margin-right: -4px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover .btn-chevron { transform: translateX(2px); } }

/* ───────────── hero ───────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  /* niżej, żeby promowane projekty (zaraz pod statystykami) było widać od razu po wejściu */
  padding: 36px 0 8px;
  text-align: center;
}
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; width: 100%; max-width: 1000px; min-width: 0; }

.hero h1 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 6.4vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  animation: rise .6s .08s ease both;
}
.hero h1 .line { display: block; white-space: nowrap; }
.hero mark {
  color: #03150a;
  background: linear-gradient(180deg, var(--green-2), var(--green));
  padding: 0 .18em;
  border-radius: 6px;
  box-shadow: 0 10px 40px -12px rgba(34, 197, 94, 0.8);
}
.hero-emoji {
  width: .95em; height: .95em; vertical-align: -0.12em; margin-left: .1em;
  filter: drop-shadow(0 6px 18px rgba(34, 197, 94, 0.55));
  animation: wiggle 4s ease-in-out infinite;
}
@keyframes wiggle {
  0%, 86%, 100% { transform: rotate(0); }
  90% { transform: rotate(-10deg) scale(1.06); }
  95% { transform: rotate(8deg) scale(1.06); }
}

.lead {
  margin: 0; max-width: 600px;
  font-size: clamp(1rem, 2.2vw, 1.15rem); color: var(--muted);
  animation: rise .6s .16s ease both;
}
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; animation: rise .6s .24s ease both; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%; max-width: 620px; margin: 6px 0 0; padding: 20px 12px;
  border: 1px solid var(--border); border-radius: 22px;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.06), rgba(18, 26, 21, 0.5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  animation: rise .6s .32s ease both;
}
.hero-stat { display: flex; flex-direction: column; justify-content: center; gap: 7px; min-width: 0; padding: 0 12px; }
.hero-stat + .hero-stat { border-left: 1px solid var(--border); }
.hero-stat dt { order: 1; font-size: .8rem; font-weight: 600; line-height: 1.4; color: var(--muted); }
.hero-stat dd { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; margin: 0; min-width: 0; }
.hero-stat svg { width: 21px; height: 21px; flex: none; fill: none; stroke: var(--green-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-stat b { color: var(--text); font-family: var(--display); font-size: clamp(1.05rem, 2.6vw, 1.45rem); line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ───────────── karty ───────────── */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(10px);
  transition: border-color .25s ease;
}
.card:hover { border-color: rgba(134, 239, 172, 0.2); }

/* ───────────── wyszukiwarka po ID (zaokrąglona, bez ramki karty) ───────────── */
.finder { width: 100%; max-width: 620px; margin-top: 26px; animation: rise .6s .3s ease both; }
.finder-title { margin: 0 0 12px; font-weight: 700; color: var(--text); }
.idsearch {
  display: flex; align-items: center; gap: 6px;
  width: 100%; padding: 6px 6px 6px 20px;
  border-radius: 999px;
  background: rgba(6, 14, 9, 0.85);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 50px -20px rgba(34, 197, 94, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color .2s, box-shadow .2s;
}
.idsearch:focus-within { border-color: var(--green); box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.16), 0 16px 50px -20px rgba(34, 197, 94, 0.7); }
.idsearch-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--green-2); stroke-width: 2.4; stroke-linecap: round; }
.idsearch input {
  flex: 1; min-width: 0; height: 48px;
  background: transparent; border: 0; outline: none; color: var(--text);
  /* 16px = iPhone nie przybliża strony po dotknięciu pola */
  font: 600 16px/1 'Manrope', system-ui, sans-serif; letter-spacing: .04em;
}
.idsearch input::placeholder { color: var(--muted); font-weight: 500; letter-spacing: 0; }
.idsearch .btn { border-radius: 999px; height: 48px; padding: 0 24px; }
.idsearch-small { padding: 3px 3px 3px 14px; box-shadow: none; }
.idsearch-small input { height: 38px; font-size: 15px; }
.idsearch-small .btn { height: 38px; padding: 0 16px; font-size: .88rem; }
.idsearch-small .idsearch-icon { width: 16px; height: 16px; }
.message .idsearch { margin-top: 18px; }



/* ───────────── co oferujemy: 2 boksy w rzędzie ───────────── */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature { display: flex; gap: 16px; align-items: flex-start; transition: transform .25s ease, border-color .25s ease; }
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature img { flex: none; filter: drop-shadow(0 6px 16px rgba(34, 197, 94, 0.35)); }
.feature h3 { font-family: var(--display); font-size: 1.05rem; margin-bottom: 6px; }
.feature p { margin: 0; }
.feature .btn { margin-top: 12px; }

/* ───────────── wybór: opinia pozytywna / negatywna ───────────── */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; text-align: center; padding: 11px 8px; border-radius: 12px; cursor: pointer; font-weight: 700;
  background: rgba(5, 10, 7, 0.8); border: 1px solid var(--border); transition: border-color .2s, background .2s;
}
.choice input:checked + span { border-color: var(--green); background: rgba(34, 197, 94, 0.14); }
.choice input:focus-visible + span { outline: 2px solid var(--green-2); outline-offset: 2px; }
.form-error { color: #fecaca; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35); padding: 10px 12px; border-radius: 10px; }
.form-ok { color: #bbf7d0; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.4); padding: 10px 12px; border-radius: 10px; }

/* ───────────── logowanie i hasło ───────────── */
.login-card { width: 100%; max-width: 440px; margin: 32px auto 0; display: grid; gap: 14px; }
.login-card h1 { font-family: var(--display); font-size: 1.6rem; margin: 0; text-align: center; }
.login-card p { margin: 0; }
.login-box { max-width: 100%; }
.login-box .stack { max-width: 440px; margin-top: 14px; }
.btn-block { width: 100%; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.stack { display: grid; gap: 12px; }
.stack label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.stack input {
  height: 48px; padding: 0 14px; border-radius: 12px;
  background: rgba(5, 10, 7, 0.8); border: 1px solid var(--border); color: var(--text);
  /* 16px = iPhone nie przybliża strony */
  font: 500 16px 'Manrope', system-ui, sans-serif; outline: none; transition: border-color .2s, box-shadow .2s;
}
.stack input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15); }
.link { color: var(--green-2); font-weight: 700; }
.link:hover { text-decoration: underline; }

.welcome { display: flex; gap: 16px; align-items: center; border-color: var(--border-strong); background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), var(--panel)); }
.welcome p { margin: 0; }
.message { max-width: 560px; margin: 40px auto 0; width: 100%; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  font-weight: 700; font-size: .88rem; letter-spacing: .02em; white-space: nowrap;
  color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}

/* ───────────── listy ───────────── */
.list { display: grid; gap: 4px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; transition: background .2s; }
.row:hover { background: rgba(34, 197, 94, 0.07); }
.rank { width: 22px; text-align: center; color: var(--green-2); font-weight: 800; font-family: var(--display); font-size: .85rem; }
.counts { font-size: .9rem; white-space: nowrap; }
.avatar-sm { width: 36px; height: 36px; border-radius: 50%; flex: none; background: var(--panel-2); }
.empty { padding: 12px 0; }

/* ───────────── profil ───────────── */
.profile { position: relative; display: flex; align-items: center; gap: 20px; border-top: 3px solid var(--c); }
.avatar { width: 96px; height: 96px; border-radius: 50%; flex: none; border: 3px solid var(--c); background: var(--panel-2); box-shadow: 0 0 30px -8px var(--c); }
.profile h1 { font-family: var(--display); font-size: 1.6rem; overflow-wrap: anywhere; }
.status-box { text-align: right; max-width: 280px; }
.status-box .pill { font-size: 1.02rem; padding: 8px 18px; }
.status-box p { margin: 8px 0 0; }


.vouches { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.vouch { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--panel-2); border-left: 3px solid var(--pos); }
.vouch.is-neg { border-left-color: var(--neg); }
.vouch p { margin: 4px 0 0; overflow-wrap: anywhere; }
.vouch-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag { font-size: .78rem; padding: 1px 8px; border-radius: 999px; background: var(--panel-solid); }

.copy { display: flex; gap: 6px; }
.copy input {
  flex: 1; min-width: 0; background: rgba(5, 10, 7, 0.8); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 8px 10px; font: .82rem ui-monospace, Consolas, monospace;
}
.copy .btn.done { background: var(--green-deep); color: #fff; }
.badge { display: block; margin-bottom: 8px; max-width: 100%; }

.data { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 14px 0 18px; }
.data dt { color: var(--muted); }
.data dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ───────────── telefon ───────────── */
/* ───────────── menu boczne konta: Moje konto + kategoria ADMIN (tylko dla admina) ───────────── */
.acct { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 22px; align-items: start; }
.acct-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; align-content: start; }
.acct-side { position: sticky; top: 16px; }
.acct-side nav { display: grid; gap: 16px; padding: 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.acct-group { display: grid; gap: 4px; }
.acct-title { display: flex; align-items: center; gap: 6px; margin: 0 0 4px 12px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.acct-title svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.acct-admin { padding-top: 14px; border-top: 1px solid var(--border); }
.acct-admin .acct-title { color: var(--green-2); }
.acct-side a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: .93rem; color: var(--muted);
  transition: color 160ms ease, background 160ms ease, transform 160ms var(--ease-out);
}
.acct-side a svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acct-side a:active { transform: scale(0.98); }
.acct-side a.active { color: #03150a; background: linear-gradient(180deg, var(--green-2), var(--green)); }
@media (hover: hover) and (pointer: fine) {
  .acct-side a:not(.active):hover { color: var(--text); background: rgba(34, 197, 94, 0.09); }
}

/* ───────────── własne okno potwierdzenia (zamiast systemowego confirm) ───────────── */
.confirm {
  width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border-strong); border-radius: 22px; color: var(--text);
  background: linear-gradient(180deg, #14201a, #0d1510); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(34, 197, 94, 0.06);
  opacity: 0; transform: translateY(8px) scale(0.96); transform-origin: 50% 50%;
  transition: opacity 120ms ease-out, transform 120ms ease-out, overlay 120ms allow-discrete, display 120ms allow-discrete;
}
.confirm[open] { opacity: 1; transform: none; transition-duration: 180ms; transition-timing-function: var(--ease-out); }
@starting-style { .confirm[open] { opacity: 0; transform: translateY(8px) scale(0.96); } }
.confirm::backdrop {
  background: rgba(2, 8, 4, 0.66); backdrop-filter: blur(3px); opacity: 0;
  transition: opacity 160ms ease-out, overlay 160ms allow-discrete, display 160ms allow-discrete;
}
.confirm[open]::backdrop { opacity: 1; }
@starting-style { .confirm[open]::backdrop { opacity: 0; } }
.confirm-box { display: grid; gap: 10px; padding: 24px 24px 20px; margin: 0; }
.confirm-icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px; border-radius: 14px;
  color: var(--green-2); background: rgba(34, 197, 94, 0.12); border: 1px solid var(--border-strong);
}
.confirm[data-tone="danger"] .confirm-icon { color: #fca5a5; background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.4); }
.confirm-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.confirm h2 { margin: 0; font-family: var(--display); font-size: 1.15rem; }
.confirm p { margin: 0; color: var(--muted); line-height: 1.5; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.confirm-actions .btn { min-width: 110px; }
@media (max-width: 560px) {
  .confirm-actions { flex-direction: column-reverse; }
  .confirm-actions .btn { width: 100%; }
}

/* ───────────── odznaki i połączone konta: same ikony, opis w dymku po najechaniu ───────────── */
.badges { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; padding: 0; }
.badge-chip {
  position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  font-size: 1.2rem; line-height: 1; cursor: help; outline: none;
  background: radial-gradient(circle at 30% 25%, rgba(74, 222, 128, 0.3), rgba(34, 197, 94, 0.08));
  border: 1px solid var(--border-strong);
  transition: transform 160ms var(--ease-out), border-color 160ms ease, box-shadow 160ms ease;
}
.badge-chip:focus-visible, .badge-chip:has(:focus-visible) { transform: translateY(-2px); border-color: var(--green-2); box-shadow: 0 8px 20px -8px rgba(34, 197, 94, 0.8); }

/* konto Discord: ten sam kształt co odznaki, ale klikalne */
.badge-link { cursor: pointer; }
.badge-a { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; color: var(--green-2); outline: none; }
.badge-a svg { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.badge-link:active { transform: scale(0.95); }

/* cienka kreska między połączonymi kontami a odznakami, jak w Docku macOS */
.badge-sep { flex: none; width: 1px; height: 26px; margin: 0 4px; border-radius: 1px; background: rgba(134, 239, 172, 0.32); }

/* dymek: wyjeżdża z odznaki (origin na dole), znika szybciej, niż się pojawia */
.badge-chip .tip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 6; display: grid; gap: 2px;
  width: max-content; max-width: 250px; padding: 9px 13px; border-radius: 12px; text-align: center;
  background: #0b1a10; border: 1px solid var(--border-strong); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.85);
  opacity: 0; pointer-events: none; transform-origin: 50% 100%; transform: translate(-50%, 4px) scale(0.96);
  transition: opacity 100ms ease-out, transform 100ms ease-out;
}
.badge-chip .tip b { font-size: .85rem; color: var(--green-2); }
.badge-chip .tip span { font-size: .78rem; font-weight: 500; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
.badge-chip .tip .hint { margin-top: 2px; font-size: .72rem; color: var(--muted); }
.badge-chip:hover .tip, .badge-chip:focus .tip, .badge-chip:focus-visible .tip, .badge-chip:has(:focus-visible) .tip {
  opacity: 1; transform: translate(-50%, 0) scale(1);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .badge-chip:hover { transform: translateY(-2px); border-color: var(--green-2); box-shadow: 0 8px 20px -8px rgba(34, 197, 94, 0.8); }
  .badge-link:hover:active { transform: scale(0.95); }
  /* pierwszy dymek pojawia się po chwili (żeby nie migał przy przejeżdżaniu myszką) */
  .badge-chip:hover .tip { transition-delay: 120ms; }
  /* gdy jeden dymek już był, kolejne pojawiają się od razu, bez animacji (app.js ustawia data-warm) */
  .badges[data-warm] .badge-chip .tip { transition-duration: 0ms; transition-delay: 0ms; }
}

/* dymek plakietki weryfikacji */
.verify::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 5;
  width: max-content; max-width: 240px; padding: 8px 12px; border-radius: 10px;
  background: #0b1a10; border: 1px solid var(--border-strong); color: var(--text);
  font-size: .8rem; font-weight: 500; line-height: 1.4; text-align: center;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8);
  opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .15s, transform .15s;
}
.verify:hover::after, .verify:focus-visible::after, .verify:focus::after { opacity: 1; transform: translate(-50%, 0); }

/* ───────────── odwołania ───────────── */
.vouch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.tag-appeal { background: rgba(245, 158, 11, 0.14); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.4); }
form.inline { display: inline; margin: 0; }
.appeal-card { width: 100%; max-width: 520px; margin: 24px auto 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.appeal-card h1 { font-family: var(--display); font-size: 1.4rem; margin: 0; }
.appeal-card p { margin: 0; }
.code-copy input { min-width: 0; font: 800 1.3rem ui-monospace, Consolas, monospace; letter-spacing: .08em; text-align: center; height: 52px; }
.appeal-vouch blockquote { margin: 6px 0 0; padding: 10px 14px; border-left: 3px solid var(--neg); background: var(--panel-2); border-radius: 8px; }

/* ───────────── udostępnianie profilu ───────────── */
.name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.name-row h1 { margin: 0; }
.profile .name-row { padding-right: 52px; } /* miejsce na przycisk udostępniania w rogu karty */
.share-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px;
  background: rgba(34, 197, 94, 0.1); border: 1px solid var(--border-strong); color: var(--green-2);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.profile > .share-btn { position: absolute; top: 18px; right: 18px; }
.share-btn:active { transform: scale(0.97); }
.share-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) {
  .share-btn:hover { background: rgba(34, 197, 94, 0.2); border-color: var(--green); }
  .share-btn:active { transform: scale(0.97); }
}
.share-card { width: 100%; max-width: 520px; margin: 24px auto 0; display: grid; gap: 10px; }
.share-card label { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.share-card .badge { margin: 0; }
.share-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.share-head h1 { font-family: var(--display); font-size: 1.3rem; margin: 0; }
.share-head p { margin: 2px 0 0; }
/* ───────────── panel admina ───────────── */
.code-search { display: flex; gap: 8px; margin-top: 12px; max-width: 460px; }
.code-search input, .badge-form select {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px;
  background: rgba(5, 10, 7, 0.8); border: 1px solid var(--border); color: var(--text);
  font: 700 16px ui-monospace, Consolas, monospace; letter-spacing: .06em; outline: none;
}
.badge-form select { font: 500 15px 'Manrope', system-ui, sans-serif; letter-spacing: 0; }
.code-search input:focus, .badge-form select:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15); }
.decision { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.badge-form { max-width: 520px; margin-top: 12px; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 10px; border-bottom: 1px solid var(--border); }
.admin-table tr:last-child td { border-bottom: 0; }
.hint { font-weight: 500; opacity: .8; }
.ip-spoiler { margin: 18px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.ip-spoiler summary { cursor: pointer; font-weight: 600; }
.ip-spoiler ul { display: grid; gap: 8px; padding-left: 18px; overflow-wrap: anywhere; }
.ip-spoiler summary:focus-visible { outline: 2px solid var(--green-2); outline-offset: 4px; }
.appeal-ticket-form { margin: 20px 0 0; }
.appeal-ticket-form textarea { width: 100%; min-height: 110px; resize: vertical; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(5, 10, 7, .8); color: var(--text); font: inherit; line-height: 1.5; }
.appeal-ticket-form textarea:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }
.appeal-ticket-retry { margin: 12px 0; color: var(--muted); font-size: .85rem; }
.appeal-ticket-retry summary { cursor: pointer; }
.appeal-ticket-retry form { margin-top: 10px; }

@media (max-width: 860px) {
  .acct { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .acct-side { position: static; }
  .acct-side nav { display: flex; align-items: center; gap: 6px; padding: 5px; overflow-x: auto; border-radius: 999px; scrollbar-width: none; }
  .acct-side nav::-webkit-scrollbar { display: none; }
  .acct-group { display: flex; align-items: center; gap: 4px; }
  .acct-group:not(.acct-admin) .acct-title { display: none; }
  .acct-admin { padding-top: 0; padding-left: 10px; margin-left: 4px; border-top: 0; border-left: 1px solid var(--border-strong); }
  .acct-admin .acct-title { margin: 0 4px 0 0; }
  .acct-side a { white-space: nowrap; padding: 9px 14px; border-radius: 999px; }
}

@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .profile { flex-wrap: wrap; }
  .status-box { text-align: left; max-width: none; width: 100%; }
}
/* wąski ekran: logo i konto w pierwszym rzędzie, wyszukiwarka na całą szerokość pod spodem */
@media (max-width: 860px) {
  .top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "brand nav" "search search"; column-gap: 12px; }
  .top .brand { grid-area: brand; }
  .top .nav { grid-area: nav; max-width: 100%; }
  .top .idsearch-small { grid-area: search; grid-column: 1 / -1; margin-top: 14px; }
}
@media (max-width: 560px) {
  .profile { align-items: flex-start; }
  .link-card, .link-row { flex-wrap: wrap; }
  .share-btn { width: 38px; height: 38px; }
  .profile > .share-btn { top: 14px; right: 14px; }
  .profile .name-row { padding-right: 46px; }
  .badge-chip .tip { max-width: 210px; }
  .code-search { flex-direction: column; }
  .code-search .btn, .decision .btn { width: 100%; }
  .top { padding: 16px; }
  .top .nav { gap: 8px; }
  .top .me { width: 40px; height: 40px; padding: 5px; flex: none; }
  .top .me-name { display: none; }
  .hero { padding: 28px 0 8px; }
  .idsearch { padding-left: 16px; }
  .idsearch .btn { padding: 0 18px; }
  .finder { margin-top: 18px; }
  .hero-stats { padding: 16px 4px; border-radius: var(--radius); }
  .hero-stat { padding: 0 7px; gap: 6px; justify-content: flex-start; }
  .hero-stat dd { flex-direction: column; gap: 7px; }
  .hero-stat svg { width: 18px; height: 18px; }
  .hero-stat dt { font-size: .72rem; }
  .feature { padding: 18px; }
  .row .counts { display: none; }
  /* w liście najbardziej zaufanych na telefonie zostaje sama ikonka statusu */
  .row .pill-label { display: none; }
  .row .pill { padding: 6px 10px; }
  .avatar { width: 72px; height: 72px; }
  .btn-lg { width: 100%; }
  .cta { width: 100%; flex-direction: column; }
  .hero h1 .line { white-space: normal; }
  .data { grid-template-columns: 1fr; gap: 2px; }
  .data dd { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ───────────── weryfikacja konta Discord, przycisk Discord, historia kont ───────────── */
.verify {
  position: relative; display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 8px;
  padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; cursor: help; outline: none;
}
.verify svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.verify.ok { color: #86efac; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.4); }
.verify.warn { color: #fde68a; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.35); }
.verify + .small { margin-top: 6px; }

.notice {
  margin: 0; padding: 12px 16px; border-radius: 12px; color: #d9fbe5;
  background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.35);
}
/* krótki pasek w jednej linii: ikona, zdanie, przycisk po prawej */
.notice-bar {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 999px;
  background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.25);
}
.notice-bar p { flex: 1; min-width: 0; margin: 0; font-size: .92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--green-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notice-bar .btn { flex: none; }
.notice-bar .short { display: none; }
@media (max-width: 520px) { .notice-bar .long { display: none; } .notice-bar .short { display: inline; } .notice-bar p { font-size: .88rem; } }

.link-card, .link-row { display: flex; align-items: center; gap: 12px; }
.link-card { padding: 12px 14px; margin: 12px 0; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border-strong); }
.link-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.link-row { padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border-left: 3px solid var(--border-strong); }
.link-row.is-current { border-left-color: var(--green); }
.link-row .avatar-sm, .link-card .avatar-sm { width: 40px; height: 40px; }
.tag-current { background: rgba(34, 197, 94, 0.16); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.4); }
.no-profile { display: grid; gap: 12px; justify-items: start; }
.no-profile p { margin: 0; }
#discord .btn, #historia + * { margin-top: 4px; }
#discord p { margin: 10px 0 0; }

.btn-danger { color: #fecaca; background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.4); }
@media (hover: hover) and (pointer: fine) { .btn-danger:hover { background: rgba(239, 68, 68, 0.22); border-color: #ef4444; } }

.log-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.log-list li { padding: 10px 12px; border-radius: 10px; background: var(--panel-2); overflow-wrap: anywhere; }
.log-list .small { display: block; margin-bottom: 2px; }

/* ───────────── konto bez Discorda, historia kont, wyniki szukania ───────────── */
.verify.neutral { color: var(--muted); background: rgba(143, 165, 150, 0.1); border: 1px solid rgba(143, 165, 150, 0.3); }
.tag-scam { background: rgba(239, 68, 68, 0.14); color: #fecaca; border: 1px solid rgba(239, 68, 68, 0.45); }
.avatar, .avatar-sm { object-fit: cover; }

/* ───────────── data opinii w zielonym boksie ───────────── */
.date-chip {
  margin-left: auto; padding: 3px 11px; border-radius: 9px; white-space: nowrap;
  font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: #bbf7d0;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.24), rgba(21, 128, 61, 0.2));
  border: 1px solid rgba(74, 222, 128, 0.42); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ───────────── zębatka z ustawieniami w nagłówku ───────────── */
.gear {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  color: var(--muted); background: var(--panel); border: 1px solid var(--border);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.gear svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 320ms var(--ease-out); }
.gear:active { transform: scale(0.95); }
.gear.active { color: #03150a; background: linear-gradient(180deg, var(--green-2), var(--green)); border-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .gear:not(.active):hover { color: var(--green-2); background: rgba(34, 197, 94, 0.1); border-color: var(--border-strong); }
  .gear:hover svg { transform: rotate(60deg); }
}

/* ───────────── strona ustawień ───────────── */
.page-head h1 { margin: 0 0 4px; font-family: var(--display); font-size: 1.5rem; }
.page-head p { margin: 0; }
.account-data-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-data-head h2 { margin: 0; }
.account-number { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.account-facts { margin: 18px 0 0; }
.account-facts > div { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 1.4fr); gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.account-facts > div:first-child { padding-top: 0; }
.account-facts dt { color: var(--muted); font-size: .85rem; }
.account-facts dd { margin: 0; font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.account-data-footer { display: flex; justify-content: flex-end; margin-top: 18px; }
.site-admin-list { list-style: none; margin: 0; padding: 0; }
.site-admin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; }
.site-admin-row .grow { flex: 1 1 240px; min-width: 0; }
.site-admin-row + .site-admin-row { border-top: 1px solid var(--border); }
.site-admin-row b { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .account-facts > div { grid-template-columns: minmax(0, 1fr); padding: 13px 0; }
}

/* ───────────── bio w karcie profilu i edycja profilu ───────────── */
.edit-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; cursor: pointer;
  background: rgba(34, 197, 94, 0.1); border: 1px solid var(--border-strong); color: var(--green-2);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.edit-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.edit-btn:active { transform: scale(0.97); }
.profile > .edit-btn { position: absolute; top: 18px; right: 66px; }
.profile.has-edit .name-row { padding-right: 108px; }
@media (hover: hover) and (pointer: fine) {
  .edit-btn:hover { background: rgba(34, 197, 94, 0.2); border-color: var(--green); }
  .toggle-row:hover { border-color: var(--border-strong); }
}

.edit-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.edit-box { display: grid; gap: 16px; padding: 24px; margin: 0; }
.edit-box h2 { margin: 0; font-family: var(--display); font-size: 1.15rem; }
.edit-box p { margin: 4px 0 0; }
.field { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; font-size: .9rem; font-weight: 700; }
.field legend { padding: 0; margin-bottom: 8px; font-size: .9rem; font-weight: 700; }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: rgba(5, 9, 6, 0.7); color: var(--text); font: inherit; font-weight: 600;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input:not([type="checkbox"]):focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.hint { font-size: .78rem; font-weight: 500; color: var(--muted); }
.toggle-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: rgba(34, 197, 94, 0.05); border: 1px solid var(--border); transition: border-color 160ms ease;
}
.toggle-row + .toggle-row { margin-top: 8px; }
.tr-emoji {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; font-size: 1.15rem;
  background: radial-gradient(circle at 30% 25%, rgba(74, 222, 128, 0.3), rgba(34, 197, 94, 0.08)); border: 1px solid var(--border-strong);
}
.tr-text { display: grid; flex: 1; min-width: 0; gap: 1px; }
.tr-text b { font-size: .9rem; }
.tr-text span { font-size: .78rem; font-weight: 500; color: var(--muted); }
.switch {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 999px; cursor: pointer;
  background: #1c2a21; border: 1px solid var(--border-strong); transition: background 200ms var(--ease-out), border-color 200ms ease;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #8fa596;
  transition: transform 200ms var(--ease-out), background 200ms ease;
}
.switch:checked { background: rgba(34, 197, 94, 0.35); border-color: var(--green); }
.switch:checked::after { transform: translateX(18px); background: var(--green-2); }
.switch:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }
.edit-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
@media (max-width: 560px) {
  .profile > .edit-btn { top: 14px; right: 60px; width: 38px; height: 38px; }
  .profile.has-edit .name-row { padding-right: 92px; }
  .edit-box { padding: 20px; }
  .edit-actions { flex-direction: column-reverse; }
  .edit-actions .btn { width: 100%; }
}

/* nazwa w nagłówku nie wypycha logo ani zębatki: długą przycinamy wielokropkiem */
.nav { min-width: 0; }
.me { min-width: 0; max-width: 220px; }
.me img { flex: none; }
.me-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  .me { max-width: 148px; }
  /* karta profilu na telefonie: awatar na górze, pod nim nazwa na całą szerokość, przyciski w rogu */
  .profile { flex-direction: column; align-items: flex-start; gap: 14px; }
  .profile .grow { width: 100%; }
  .profile .name-row, .profile.has-edit .name-row { padding-right: 0; }
}

/* ───────────── ustawienia: formularze, wybór opcji, okres oczekiwania ───────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stack-fields { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset:disabled { opacity: .55; }
fieldset:disabled input, fieldset:disabled button { cursor: not-allowed; }
.cooldown { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.option {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; cursor: pointer; font-weight: 500;
  background: rgba(34, 197, 94, 0.05); border: 1px solid var(--border); transition: border-color 160ms ease, background 160ms ease;
}
.option + .option { margin-top: 10px; }
.option input { margin-top: 4px; accent-color: var(--green); flex: none; }
.option span { display: grid; gap: 2px; }
.option b { font-size: .95rem; }
.option span span { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.option:has(input:checked) { border-color: var(--green); background: rgba(34, 197, 94, 0.1); }
@media (hover: hover) and (pointer: fine) { .option:hover { border-color: var(--border-strong); } }

/* ───────────── historia konta na profilu: nicki; podgląd osoby przy wystawianiu opinii ───────────── */
#historia h3 { margin: 18px 0 8px; font-size: .95rem; }
.nick-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nick-chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(34, 197, 94, 0.08); border: 1px solid var(--border); }
.history-hidden { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--border-strong); }

/* pole wyboru w opcjach nie dziedziczy stylu pól tekstowych */
.option input[type="radio"] { width: 18px; height: 18px; min-width: 18px; padding: 0; margin: 2px 0 0; box-shadow: none; }

/* wiersze wyboru i przełączniki wewnątrz formularza .stack: ich układ ma pierwszeństwo przed ogólnym stylem etykiet i pól */
.stack label.option, .stack label.toggle-row { display: flex; gap: 12px; font-size: inherit; color: var(--text); }
.stack label.option { align-items: flex-start; font-weight: 500; }
.stack label.toggle-row { align-items: center; font-weight: 600; }
.stack .option input[type="radio"] { width: 18px; height: 18px; min-width: 18px; padding: 0; margin: 2px 0 0; border-radius: 50%; box-shadow: none; }
.stack .switch { width: 44px; height: 26px; padding: 0; border-radius: 999px; box-shadow: none; }
.stack .switch:focus { box-shadow: none; }

/* ───────────── dostępność i dotyk (przegląd wg web-design-guidelines) ───────────── */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; border-radius: 999px; font-weight: 700; color: #03150a;
  background: var(--green-2); transform: translateY(-160%); transition: transform 160ms var(--ease-out);
}
.skip-link:focus { transform: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; }
main:focus { outline: none; }
a, button, label, summary, input, select, textarea { touch-action: manipulation; }
html { -webkit-tap-highlight-color: rgba(34, 197, 94, 0.18); }
h1, h2 { text-wrap: balance; }
dialog { overscroll-behavior: contain; }
.nick-chip .muted, .tr-text span, .link-row .small, .date-chip { font-variant-numeric: tabular-nums; }

/* ───────────── średnia ocen (zastępuje trzy boksy ze statystykami) ───────────── */
.rating { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 36px; }
.rating-main { display: flex; align-items: center; gap: 16px; }
.rating-num { font-family: var(--display); font-weight: 800; font-size: 3.1rem; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rating-meta { display: grid; gap: 6px; }
.stars-meter {
  display: block; width: 120px; height: 22px;
  background: linear-gradient(90deg, var(--green-2) var(--pct), rgba(134, 239, 172, 0.16) var(--pct));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6 6.6.8-4.9 4.6 1.3 6.5L12 17.3l-5.9 3.2 1.3-6.5-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") left center / 24px 22px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6 6.6.8-4.9 4.6 1.3 6.5L12 17.3l-5.9 3.2 1.3-6.5-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") left center / 24px 22px repeat-x;
}
.rating-cats { flex: 1; min-width: 260px; display: grid; gap: 9px; margin: 0; }
.rating-row { display: grid; grid-template-columns: minmax(0, 11.5rem) 1fr; align-items: center; gap: 12px; }
.rating-row dt { font-size: .88rem; color: var(--muted); }
.rating-row dd { display: flex; align-items: center; gap: 12px; margin: 0; }
.bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(134, 239, 172, 0.12); overflow: hidden; }
.bar i { display: block; width: var(--pct); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-deep), var(--green-2)); }
.rating-row b { min-width: 2.2em; text-align: right; font-variant-numeric: tabular-nums; }

/* ───────────── nagłówek opinii: ile pozytywnych i negatywnych, przycisk "Wystaw opinię" ───────────── */
.op-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; }
.op-head h2 { margin: 0; }
.op-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.op-count {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px;
  font-size: .85rem; color: var(--muted); background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border);
}
.op-count::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; }
.op-count b { font-variant-numeric: tabular-nums; }
.op-count.is-pos { border-color: rgba(34, 197, 94, 0.3); }
.op-count.is-pos b { color: #4ade80; }
.op-count.is-pos::before { background: var(--pos); box-shadow: 0 0 8px rgba(34, 197, 94, 0.8); }
.op-count.is-neg { border-color: rgba(239, 68, 68, 0.28); }
.op-count.is-neg b { color: #f87171; }
.op-count.is-neg::before { background: var(--neg); }
.op-head .issue-btn { margin-left: auto; }

.issue-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; flex: none; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .9rem; white-space: nowrap; color: #03150a;
  background: linear-gradient(180deg, var(--green-2), var(--green)); border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), box-shadow 160ms ease;
}
.issue-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.issue-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .issue-btn:hover { box-shadow: 0 8px 22px -8px rgba(34, 197, 94, 0.9); filter: brightness(1.06); } }

/* oceny w jednej opinii */
.vouch-rates { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; padding: 0; list-style: none; font-size: .8rem; color: var(--muted); }
.vouch-rates li { display: inline-flex; align-items: center; gap: 6px; }
.vr-score { display: inline-flex; align-items: center; gap: 3px; color: var(--text); }
.vr-score svg { width: 13px; height: 13px; fill: var(--green-2); }

/* screeny-dowody pod negatywną opinią */
.vouch-proofs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.vouch-proofs a {
  display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.28); background: rgba(239, 68, 68, 0.06);
  transition: transform .18s var(--ease-out), border-color .18s var(--ease-out);
}
.vouch-proofs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vouch-proofs a:active { transform: scale(0.97); }
.vouch-proofs a:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .vouch-proofs a:hover { border-color: rgba(239, 68, 68, 0.6); transform: translateY(-1px); } }

/* pole na screeny: tylko przy negatywnej opinii */
.vouch-dialog:has(input[name="typ"][value="plus"]:checked) .proof-field { display: none; }
.proof-label { font-size: .9rem; font-weight: 700; }
.proof-drop {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; cursor: pointer;
  border: 1px dashed rgba(239, 68, 68, 0.38); background: rgba(239, 68, 68, 0.05);
  transition: border-color .18s var(--ease-out), background-color .18s var(--ease-out);
}
.proof-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.proof-drop svg { flex: none; width: 26px; height: 26px; fill: none; stroke: #fca5a5; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.proof-drop-text { display: grid; gap: 2px; min-width: 0; }
.proof-drop-text b { font-size: .9rem; }
.proof-drop-text span { font-size: .78rem; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proof-drop:focus-within { outline: 2px solid var(--green-2); outline-offset: 2px; }
.proof-drop.has-files { border-style: solid; border-color: rgba(239, 68, 68, 0.55); background: rgba(239, 68, 68, 0.09); }
@media (hover: hover) and (pointer: fine) { .proof-drop:hover { border-color: rgba(239, 68, 68, 0.6); background: rgba(239, 68, 68, 0.08); } }

/* ───────────── okno wystawiania opinii: gwiazdki 1-5 albo "Nie dotyczy" ───────────── */
.vouch-dialog { width: min(580px, calc(100vw - 32px)); }
.vouch-dialog .choice { margin-top: -4px; }
.rates { display: grid; gap: 8px; }
.rate { margin: 0; padding: 0; border: 0; min-width: 0; }
.rate-inner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 8px 10px 8px 14px; border-radius: 14px;
  background: rgba(34, 197, 94, 0.04); border: 1px solid var(--border);
}
.rate-label { flex: 1; min-width: 9.5rem; font-weight: 700; font-size: .9rem; }
.rate-stars { --on: 0; display: flex; gap: 2px; }
.rate-stars label { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; }
.rate-stars input, .rate-nd input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rate-stars svg {
  width: 24px; height: 24px; fill: var(--green-2); stroke: var(--green-2); stroke-width: 1.4; stroke-linejoin: round; stroke-opacity: .55;
  fill-opacity: clamp(0, calc(var(--on) - var(--n) + 1), 1);
  transition: fill-opacity 120ms ease, transform 160ms var(--ease-out);
}
.rate-stars label:active svg { transform: scale(0.86); }
.rate-stars label:has(input:focus-visible), .rate-nd:has(input:focus-visible) { outline: 2px solid var(--green-2); outline-offset: 1px; }
.rate-stars label:nth-of-type(1) { --n: 1; }
.rate-stars label:nth-of-type(2) { --n: 2; }
.rate-stars label:nth-of-type(3) { --n: 3; }
.rate-stars label:nth-of-type(4) { --n: 4; }
.rate-stars label:nth-of-type(5) { --n: 5; }
.rate-stars:has(input[value="1"]:checked) { --on: 1; }
.rate-stars:has(input[value="2"]:checked) { --on: 2; }
.rate-stars:has(input[value="3"]:checked) { --on: 3; }
.rate-stars:has(input[value="4"]:checked) { --on: 4; }
.rate-stars:has(input[value="5"]:checked) { --on: 5; }
/* podgląd przy najechaniu myszką (ta sama waga co wybór, ale później, więc wygrywa) */
@media (hover: hover) and (pointer: fine) {
  .rate-stars:has(label:nth-of-type(1):hover) { --on: 1; }
  .rate-stars:has(label:nth-of-type(2):hover) { --on: 2; }
  .rate-stars:has(label:nth-of-type(3):hover) { --on: 3; }
  .rate-stars:has(label:nth-of-type(4):hover) { --on: 4; }
  .rate-stars:has(label:nth-of-type(5):hover) { --on: 5; }
  .rate-nd:hover { color: var(--text); border-color: var(--border-strong); }
}
.rate-nd {
  position: relative; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font-size: .8rem; font-weight: 700; color: var(--muted); border: 1px solid var(--border);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.rate-nd:has(input:checked) { color: var(--text); border-color: var(--green); background: rgba(34, 197, 94, 0.12); }
.rate:has(.rate-nd input:checked) .rate-stars svg { stroke-opacity: .28; }

@media (max-width: 560px) {
  .rating { gap: 16px; }
  .rating-num { font-size: 2.5rem; }
  .rating-cats { min-width: 100%; }
  .rating-row { grid-template-columns: 1fr; gap: 4px; }
  .op-head .issue-btn { width: 100%; justify-content: center; margin-left: 0; }
  .rate-label { min-width: 100%; }
  /* gwiazdki i "Nie dotyczy" w jednym rzędzie pod nazwą kategorii */
  .rate-inner { gap: 4px 8px; padding: 8px 10px; }
  .rate-stars { gap: 1px; }
  .rate-stars label { width: 30px; height: 30px; }
  .rate-stars svg { width: 22px; height: 22px; }
  .rate-nd { padding: 0 10px; }
}

/* ───────────── bio: sekcja "O mnie" na dole karty profilu, na całą szerokość ───────────── */
.profile { flex-wrap: wrap; }
.profile-bio { flex: 1 1 100%; margin-top: 2px; padding-top: 16px; border-top: 1px solid var(--border); }
.profile-bio .bio-title { margin: 0 0 6px; font-family: inherit; font-size: .82rem; font-weight: 700; color: var(--muted); }
.profile-bio p {
  margin: 0; max-width: 68ch; font-size: 1rem; line-height: 1.65; color: #d9ebe0;
  white-space: pre-line; overflow-wrap: anywhere; text-wrap: pretty;
}

/* ───────────── wyniki wyszukiwania ───────────── */
.search-title h1 { overflow-wrap: anywhere; }
.search-title .q { overflow-wrap: anywhere; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.card .filter-bar { margin: 14px 0 16px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filter-label { margin-right: 4px; font-size: .8rem; font-weight: 700; color: var(--muted); }
/* przełącznik segmentowy jak w iOS: wspólna "rynna", wybrany segment to podniesiona kapsułka */
.segmented {
  display: inline-flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07);
}
.filter-chip {
  flex: none; white-space: nowrap;
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px;
  font-size: .84rem; font-weight: 700; letter-spacing: -0.01em; color: var(--muted);
  -webkit-tap-highlight-color: transparent;
  transition: color 200ms ease, background-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.filter-chip:active { transform: scale(0.96); transition-duration: 100ms; }
.filter-chip.is-active {
  color: var(--text); background: #2a3a30;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 3px 10px -2px rgba(0, 0, 0, 0.55);
}
@media (hover: hover) and (pointer: fine) { .filter-chip:not(.is-active):hover { color: var(--text); } }

.person-list { display: grid; gap: 12px; }
.person { display: flex; align-items: center; gap: 16px; }
@media (hover: hover) and (pointer: fine) { .card.person:hover { border-color: var(--border-strong); } }
.person-avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; background: var(--panel-2); border: 2px solid var(--border-strong); }
.person-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.person-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.person-name h2 { margin: 0; font-size: 1.08rem; overflow-wrap: anywhere; }
.person-name .pill { font-size: .78rem; padding: 3px 10px; }
.person-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.person-stats .op-count { padding: 3px 10px 3px 8px; font-size: .8rem; }
.person-rating { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; border: 1px solid var(--border); }
.person-rating svg { width: 13px; height: 13px; fill: var(--green-2); }
.person-rating b { font-variant-numeric: tabular-nums; }
.person-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: none; }


@media (max-width: 560px) {
  .person { flex-wrap: wrap; align-items: flex-start; }
  .person-avatar { width: 48px; height: 48px; }
  .person-actions { width: 100%; justify-content: stretch; }
  .person-actions .btn { flex: 1; }
  .filter-bar { gap: 10px; }
  /* karta profilu jest tu kolumną: bez zawijania (inaczej "O mnie" trafia do drugiej kolumny), bio na całą szerokość */
  .profile { flex-wrap: nowrap; }
  .profile-bio { flex: none; width: 100%; }
  /* długie ID w tytule łamie się po "dla", a nie w środku liczby */
  .search-title h1 { font-size: 1.15rem; }
}

/* ───────────── podpowiedzi w wyszukiwarce ───────────── */
.idsearch.has-suggest { position: relative; }
.suggest {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 60; padding: 6px; border-radius: 20px;
  background: #0b1a10; border: 1px solid var(--border-strong); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(34, 197, 94, 0.06);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.985); transform-origin: 50% 0;
  transition: opacity 120ms ease-out, transform 120ms ease-out, visibility 0s linear 120ms;
}
.suggest.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s; }
.suggest-item, .suggest-all {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; color: var(--text); text-align: left;
  transition: background 100ms ease;
}
.suggest-item.is-active, .suggest-all.is-active { background: rgba(34, 197, 94, 0.14); }
.suggest-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.suggest-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.suggest-name { font-weight: 700; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-sub { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest mark { padding: 0; background: none; color: var(--green-2); font-weight: 800; }
.suggest-tags { display: flex; align-items: center; gap: 6px; flex: none; font-size: .78rem; font-variant-numeric: tabular-nums; }
.suggest-tag { padding: 1px 8px; border-radius: 999px; font-weight: 800; }
.suggest-tag.is-ok { color: #86efac; background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.4); }
.suggest-tag.is-scam { color: #fecaca; background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.45); }
.suggest-count { font-weight: 700; }
.suggest-count.is-pos { color: #4ade80; }
.suggest-count.is-neg { color: #f87171; }
.suggest-all { justify-content: center; margin-top: 2px; padding: 10px 12px; font-size: .86rem; font-weight: 700; color: var(--green-2); border-top: 1px solid var(--border); border-radius: 0 0 14px 14px; }
@media (max-width: 560px) {
  .suggest { border-radius: 16px; }
  .suggest-count { display: none; }
}

/* lista podpowiedzi ma leżeć nad treścią pod polem (sekcje z animacją wejścia tworzą własne warstwy) */
.finder { position: relative; z-index: 40; }
.top { position: relative; z-index: 40; }

/* ───────────── ruch: wyniki wyszukiwania i podpowiedzi ─────────────
   Wejścia: krótkie (≤ 320 ms), ease-out, z lekkim przesunięciem i rozmyciem, a karty kaskadą co 50 ms.
   Rzeczy używane co chwilę (kolejne znaki w podpowiedziach) podmieniają się bez animacji. */
@keyframes enter-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes enter-soft {
  from { opacity: 0; transform: translateY(6px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
.search-title { animation: enter-soft 320ms var(--ease-out) both; }
.filter-bar { animation: enter-up 280ms 60ms var(--ease-out) both; }
.person-list .person { animation: enter-up 300ms var(--ease-out) both; animation-delay: calc(90ms + var(--i, 0) * 50ms); }
.notice-bar { animation: enter-soft 300ms var(--ease-out) both; }

/* lista podpowiedzi wyrasta spod pola (punkt zaczepienia u góry), zamyka się szybciej, niż się otwiera */
.suggest { transform: translateY(-4px) scale(0.97); transition: opacity 120ms ease-out, transform 120ms ease-out, visibility 0s linear 120ms; }
.suggest.is-open { transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s; }
.suggest.is-entering .suggest-item, .suggest.is-entering .suggest-all { animation: enter-up 220ms var(--ease-out) both; }
.suggest.is-entering > :nth-child(2) { animation-delay: 30ms; }
.suggest.is-entering > :nth-child(3) { animation-delay: 60ms; }
.suggest.is-entering > :nth-child(4) { animation-delay: 90ms; }
.suggest-item:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .suggest-item:hover, .suggest-all:hover { background: rgba(34, 197, 94, 0.09); } }
.suggest-item { transition: background-color 100ms ease, transform 120ms var(--ease-out); }

/* przycisk w polu wyszukiwania: ta sama reakcja na wciśnięcie co reszta */
.idsearch .btn:active { transform: scale(0.95); }

@media (prefers-reduced-motion: reduce) {
  .search-title, .filter-bar, .person-list .person, .notice-bar, .suggest.is-entering > * { animation: none; }
  .suggest, .suggest.is-open { transform: none; }
  .btn:active, .filter-chip:active, .suggest-item:active, .me:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .btn-ghost { background: #1a2620; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ───────────── opinie: autor jako link i źródło (Discord) ───────────── */
.vouch-author { font-weight: 700; color: var(--text); border-radius: 4px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color 160ms ease, text-decoration-color 160ms ease; }
.vouch-author:hover, .vouch-author:focus-visible { color: var(--green-2); text-decoration-color: currentColor; }
.vouch-avatar { flex: none; border-radius: 50%; transition: transform 160ms var(--ease-out); }
.vouch-avatar:active { transform: scale(0.94); }

/* znaczek Discorda: opinia wystawiona komendą na serwerze; dymek po najechaniu albo po fokusie z klawiatury */
/* znak + data jako jedna grupa po prawej; znaczek w tych samych zielonych barwach co data, żeby się nie wybijał */
.vouch-when { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
/* data i znaczek mają dokładnie tę samą wysokość (stała, niezależna od wysokości linii tekstu) */
.vouch-when { --chip-h: 26px; }
.vouch-when .date-chip { margin-left: 0; display: inline-flex; align-items: center; height: var(--chip-h); padding-block: 0; line-height: 1; }
.src-badge {
  display: inline-grid; place-items: center; width: var(--chip-h, 26px); height: var(--chip-h, 26px); flex: none;
  border-radius: 9px; color: #bbf7d0; cursor: default; outline: none;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.24), rgba(21, 128, 61, 0.2));
  border: 1px solid rgba(74, 222, 128, 0.42); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.src-badge svg { width: 14px; height: 14px; fill: currentColor; }
.src-badge:focus-visible { box-shadow: 0 0 0 2px var(--panel-2), 0 0 0 4px var(--green-2); }
.src-badge::after {
  content: attr(data-tip);
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 6;
  width: max-content; max-width: 220px; padding: 7px 12px; border-radius: 10px;
  font-size: .78rem; font-weight: 600; line-height: 1.3; color: var(--text); white-space: nowrap;
  background: #0b1a10; border: 1px solid var(--border-strong); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.85);
  opacity: 0; pointer-events: none; transform-origin: 75% 100%; transform: translateY(4px) scale(0.96);
  transition: opacity 100ms ease-out, transform 100ms ease-out;
}
.src-badge:hover::after, .src-badge:focus-visible::after, .src-badge:focus::after, .src-badge.is-tip::after {
  opacity: 1; transform: none;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .src-badge:hover::after { transition-delay: 120ms; } }
@media (prefers-reduced-motion: reduce) { .src-badge::after { transform: none; } .vouch-avatar:active { transform: none; } }

/* ───────────── łapki: kapsułka z liczbą opinii i rodzaj opinii ─────────────
   SVG zamiast emotek: ten sam rysunek na każdym systemie, kolor z motywu (zielony / czerwony), liczby w równych kolumnach. */
.thumb-icon { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.thumbs {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; flex: none;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
}
.thumb {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px;
  font-size: .82rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1;
}
.thumb.is-pos { color: #86efac; background: rgba(34, 197, 94, 0.13); }
.thumb.is-neg { color: #fca5a5; background: rgba(239, 68, 68, 0.11); }
.thumb.is-zero { opacity: .55; }
.thumb.is-neg .thumb-icon { transform: translateY(1px); }
.vote {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px 0 7px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; line-height: 1;
}
.vote .thumb-icon { width: 13px; height: 13px; }
.vote.is-pos { color: #86efac; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); }
.vote.is-neg { color: #fca5a5; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); }
.choice span { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; }
.choice span .thumb-icon { width: 17px; height: 17px; }
.choice label:first-child input:checked + span { color: #86efac; }
.choice label:last-child input:checked + span { color: #fca5a5; border-color: rgba(239, 68, 68, 0.6); background: rgba(239, 68, 68, 0.12); }

/* ───────────── powiadomienia: kropka przy zębatce i licznik w zakładce ───────────── */
.gear { position: relative; }
.gear-dot {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-size: .68rem; font-weight: 800; line-height: 1; color: #03150a;
  background: var(--green-2); box-shadow: 0 0 0 2px var(--bg), 0 4px 12px -2px rgba(74, 222, 128, 0.7);
  animation: dot-in 260ms var(--ease-out) both;
}
@keyframes dot-in { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.tab-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: auto; padding: 0 6px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; color: #03150a; background: var(--green-2); vertical-align: middle;
}
h2 .tab-count { margin-left: 6px; }
.acct-side a.active .tab-count { background: #03150a; color: var(--green-2); }
/* na zielonej (aktywnej) zębatce kropka jest ciemna, żeby była widoczna */
.gear.active .gear-dot { color: var(--green-2); background: #03150a; box-shadow: 0 0 0 2px var(--green-2); }

/* ───────────── karty projektów (strona główna, wyszukiwarka) ───────────── */
.promo { display: grid; gap: 14px; }
.promo-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; }
.promo-head h2 { margin: 0 0 2px; font-family: var(--display); font-size: 1.25rem; }
.promo-head p { margin: 0; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.project-card {
  /* opis rozciąga się, więc łapki są zawsze na dole karty, także obok dłuższej karty w tym samym rzędzie */
  display: grid; grid-template-rows: auto 1fr auto; gap: 12px; color: var(--text);
  transition: border-color 200ms ease, transform 200ms var(--ease-out), box-shadow 200ms ease;
  animation: enter-up 300ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms);
}
.project-card:active { transform: scale(0.985); transition-duration: 100ms; }
@media (hover: hover) and (pointer: fine) {
  .project-card:hover { border-color: var(--border-strong); box-shadow: 0 18px 40px -24px rgba(34, 197, 94, 0.55); }
}
.pc-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pc-avatar { width: 52px; height: 52px; flex: none; border-radius: 16px; object-fit: cover; background: var(--panel-2); border: 1px solid var(--border-strong); }
.pc-title { display: grid; gap: 3px; min-width: 0; }
.pc-title h3 { margin: 0; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-invite { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); min-width: 0; overflow: hidden; white-space: nowrap; }
.pc-invite svg { width: 13px; height: 13px; flex: none; fill: currentColor; }
.pc-vanity { padding: 1px 7px; border-radius: 999px; font-size: .68rem; font-weight: 800; color: #86efac; background: rgba(34, 197, 94, 0.14); }
.pc-desc { margin: 0; font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pc-team { font-size: .78rem; color: var(--muted); }
/* promowane projekty: podłużne paski jeden pod drugim (najdłużej promowany na górze) */
.promo-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.promo-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px;
  padding: 14px 18px; border: 1px solid var(--border); border-left: 3px solid var(--green); border-radius: 16px;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.08), var(--panel) 45%); color: var(--text); text-decoration: none;
  transition: border-color 200ms ease, transform 200ms var(--ease-out), box-shadow 200ms ease;
  animation: enter-up 300ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms);
}
.promo-row:active { transform: scale(0.99); transition-duration: 100ms; }
@media (hover: hover) and (pointer: fine) {
  .promo-row:hover { border-color: var(--border-strong); border-left-color: var(--green-2); box-shadow: 0 18px 40px -26px rgba(34, 197, 94, 0.6); }
  .promo-row:hover .pr-arrow { transform: translateX(3px); color: var(--green-2); }
}
.pr-avatar { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; background: var(--panel-2); border: 1px solid var(--border-strong); }
.pr-main { display: grid; gap: 4px; min-width: 0; }
.pr-title { display: flex; align-items: center; gap: 6px 10px; min-width: 0; }
.pr-title b { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-title .pc-handle { flex: none; }
.pr-desc { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: .88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-desc svg { width: 13px; height: 13px; flex: none; fill: currentColor; }
.pr-meta { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.pr-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); transition: transform 200ms var(--ease-out), color 200ms ease; }
@media (max-width: 720px) {
  .promo-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 12px; padding: 12px 14px; }
  .pr-meta { grid-column: 2 / -1; grid-row: 2; }
  .pr-arrow { grid-column: 3; grid-row: 1; }
  .pr-title { flex-wrap: wrap; }
}
.promo-empty { display: flex; align-items: center; gap: 16px; }
.promo-empty h3 { margin: 0 0 4px; }
.promo-empty p { margin: 0; }
.section-label { margin: 6px 0 -4px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.search-projects { display: grid; gap: 12px; }

/* ───────────── status, role i koronka ───────────── */
.state-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; vertical-align: middle; }
.state-chip.is-wait { color: #fde68a; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.35); }
.state-chip.is-ok { color: #86efac; background: rgba(34, 197, 94, 0.13); border: 1px solid rgba(34, 197, 94, 0.35); }
.state-chip.is-bad { color: #fca5a5; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.35); }
.role-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; vertical-align: middle;
  font-size: .72rem; font-weight: 800; color: var(--text); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
}
.role-chip.role-owner { color: #bbf7d0; background: rgba(34, 197, 94, 0.14); border-color: rgba(34, 197, 94, 0.35); }
.role-chip.is-creator { color: #fde68a; background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.4); }
.crown { width: 13px; height: 13px; flex: none; fill: #facc15; stroke: #facc15; stroke-width: 1.4; stroke-linejoin: round; }

/* ───────────── Ustawienia -> Projekty ───────────── */
.project-avatar-sm { width: 44px; height: 44px; flex: none; border-radius: 13px; object-fit: cover; background: var(--panel-2); }
.project-avatar { width: 64px; height: 64px; flex: none; border-radius: 18px; object-fit: cover; background: var(--panel-2); border: 1px solid var(--border-strong); }
.invites-card { border-color: rgba(74, 222, 128, 0.4); background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), var(--panel) 60%); }
.invite-list, .my-projects, .member-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.invite-row, .my-project, .member-row { display: flex; align-items: center; min-width: 0; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--panel-2); }
.invite-row b, .my-project b { overflow-wrap: anywhere; }
.invite-actions, .member-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; flex: none; }
.invite-actions form, .member-actions form { margin: 0; }
.expires { color: #fde68a; }
.member-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; overflow-wrap: anywhere; }
.role-form { display: flex; align-items: center; gap: 6px; }
.apply-form { max-width: 520px; margin-top: 14px; }
.apply-form textarea {
  padding: 12px 14px; border-radius: 12px; resize: vertical; min-height: 92px; color: var(--text); outline: none; line-height: 1.5;
  background: rgba(5, 10, 7, 0.8); border: 1px solid var(--border); font: 500 15px 'Manrope', system-ui, sans-serif;
}
.apply-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15); }
.stack .file-field input[type="file"] { height: auto; padding: 10px; font-size: .88rem; cursor: pointer; }
.file-field input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 7px 14px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 .82rem 'Manrope', system-ui, sans-serif; color: var(--green-2); background: rgba(34, 197, 94, 0.14);
}

/* zarządzanie projektem */
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.back-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.back-link:hover { color: var(--text); }
.pm-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pm-head h2, .pm-head h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; overflow-wrap: anywhere; }
.project-manage-head .notice { margin-top: 14px; }
.decision-stack { display: grid; gap: 10px; }
.admin-project .data { margin-bottom: 14px; }
.cooldown-inline { color: #fde68a; }

/* ───────────── strona projektu ───────────── */
.project-head { position: relative; display: flex; align-items: flex-start; gap: 20px; border-top: 3px solid var(--green); }
.project-avatar-lg { width: 96px; height: 96px; flex: none; border-radius: 26px; object-fit: cover; background: var(--panel-2); border: 2px solid var(--border-strong); box-shadow: 0 0 34px -10px rgba(34, 197, 94, 0.8); }
.project-head h1 { margin: 2px 0 4px; font-family: var(--display); font-size: 1.6rem; overflow-wrap: anywhere; }
/* @adres projektu i dopisek "Profil projektu" - odróżnia projekt od konta osoby */
.project-handle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 10px; font-size: .9rem; overflow-wrap: anywhere; }
.profile-kind { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .02em; color: #86efac; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.32); white-space: nowrap; }
.pc-handle { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: .8rem; color: var(--muted); overflow: hidden; white-space: nowrap; }
.pc-handle .profile-kind { height: 18px; padding: 0 7px; font-size: .64rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow svg { width: 14px; height: 14px; fill: currentColor; }
.ph-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ph-desc { margin: 12px 0 0; max-width: 62ch; white-space: pre-line; overflow-wrap: anywhere; color: #d9ebe0; }
.join-btn { flex: none; align-self: center; }
.join-btn svg { width: 17px; height: 17px; flex: none; fill: currentColor; }
.join-btn svg:last-child { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.team-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.team-heading h2 { margin: 0; }
.team-count { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.team { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; margin: 18px 0 0; }
.team > li { min-width: 0; }
.team-person { display: flex; align-items: center; gap: 12px; height: 100%; min-width: 0; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border); color: var(--text); transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out); }
a.team-person:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { a.team-person:hover { background: rgba(34, 197, 94, 0.06); border-color: var(--border-strong); } }
.team-person .avatar-sm { width: 40px; height: 40px; flex: none; }
.tp-details { display: grid; gap: 3px; flex: 1; min-width: 0; }
.tp-name { font-weight: 700; font-size: .9rem; overflow-wrap: anywhere; line-height: 1.4; }
.tp-role { color: var(--muted); font-size: .78rem; }
.tp-creator { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; flex: none; font-size: .7rem; font-weight: 600; color: #bbf7d0; background: rgba(34, 197, 94, 0.08); }
.tp-creator .crown { width: 12px; height: 12px; fill: none; stroke: currentColor; }
.tp-arrow { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 380px) {
  .team-person { display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; gap: 4px 10px; padding: 12px; }
  .team-person .avatar-sm { grid-column: 1; grid-row: 1; align-self: start; }
  .tp-details { grid-column: 2; grid-row: 1; }
  .tp-creator { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 4px; }
  .tp-arrow { grid-column: 3; grid-row: 1; }
}
.served { margin: 6px 0 0; font-size: .82rem; }

@media (max-width: 640px) {
  .project-head { flex-direction: column; align-items: flex-start; }
  .join-btn { align-self: stretch; }
  .invite-row, .my-project, .member-row { flex-wrap: wrap; }
  .invite-actions, .member-actions { width: 100%; justify-content: stretch; }
  .invite-actions form, .invite-actions .btn { flex: 1; }
  .invite-actions form .btn { width: 100%; }
  .promo-empty { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .project-card, .gear-dot { animation: none; }
  .project-card:active, a.team-person:active { transform: none; }
}


/* ───────────── Moje projekty: nazwa i rola, status dopiero w "Zarządzaj" ───────────── */
.mp-main { display: grid; gap: 5px; justify-items: start; }
.mp-title { font-size: .98rem; line-height: 1.25; }
.mp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mp-note { margin: 2px 0 0; font-size: .8rem; color: #fca5a5; overflow-wrap: anywhere; }
.my-project .state-chip { flex: none; }
.my-project.is-rejected .project-avatar-sm { filter: grayscale(0.6); opacity: .7; }

/* etykiety w menu bocznym w jednej linii (np. "Oczekujące wnioski" z licznikiem) */
.acct-side a > span:not(.alert-badge):not(.tab-count) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ───────────── menu wyboru (select[data-menu]) w stylu menu z iOS / macOS ─────────────
   Lista wyrasta spod przycisku (origin u góry), materiał z rozmyciem, ptaszek przy wybranej opcji.
   Otwiera się 180 ms ease-out, zamyka szybciej (120 ms); bez ruchu przy "ogranicz ruch". */
.menu-select { position: relative; display: inline-flex; flex: none; }
.menu-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.menu-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; height: 36px; min-width: 132px; padding: 0 10px 0 14px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text); cursor: pointer;
  font: 700 .86rem 'Manrope', system-ui, sans-serif; letter-spacing: -0.01em;
  background: rgba(255, 255, 255, 0.06); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out), box-shadow 160ms ease;
}
.menu-button svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.menu-button:active { transform: scale(0.97); transition-duration: 100ms; }
.menu-button:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }
.menu-button.is-empty .menu-value { color: var(--muted); font-weight: 600; }
.menu-button.is-invalid { border-color: rgba(239, 68, 68, 0.7); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18); }
.menu-select.is-open .menu-button { background: rgba(255, 255, 255, 0.1); border-color: var(--border-strong); }
.menu-select.is-open .menu-button svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .menu-button:hover { background: rgba(255, 255, 255, 0.1); } }
.menu-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-list {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 70; min-width: 100%; width: max-content; max-width: min(320px, 86vw);
  max-height: 300px; overflow-y: auto; padding: 5px; border-radius: 14px; outline: none;
  background: rgba(16, 28, 21, 0.86); border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 22px 50px -16px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(0.96); transform-origin: 20% 0;
  transition: opacity 120ms ease-out, transform 120ms ease-out, visibility 0s linear 120ms;
}
.menu-select.drop-up .menu-list { top: auto; bottom: calc(100% + 8px); transform-origin: 20% 100%; transform: translateY(4px) scale(0.96); }
.menu-select.is-open .menu-list { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s; }
.menu-item {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 8px; border-radius: 9px; cursor: pointer;
  font-size: .9rem; font-weight: 600; color: var(--text); white-space: nowrap; user-select: none;
}
.menu-item svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--green-2); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.menu-item[aria-selected="true"] svg { opacity: 1; }
.menu-item.is-active { background: rgba(34, 197, 94, 0.18); }
.menu-item.is-placeholder { color: var(--muted); }
.field .menu-select { display: flex; }
.field .menu-button { width: 100%; height: 46px; border-radius: 12px; font-weight: 600; font-size: 15px; background: rgba(5, 10, 7, 0.8); border-color: var(--border); }
.field .menu-list { width: 100%; max-width: none; }
.role-form .menu-button { height: 32px; min-width: 128px; font-size: .82rem; }

/* ───────────── zaproszenie do zespołu: jedna kapsuła jak wyszukiwarka ───────────── */
.has-suggest { position: relative; }
.invite-form { margin-top: 14px; }
.invite-field {
  display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 16px; border-radius: 999px;
  background: rgba(6, 14, 9, 0.85); border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.invite-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14); }
.invite-icon { width: 19px; height: 19px; flex: none; fill: none; stroke: var(--green-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.invite-field input {
  flex: 1; min-width: 0; height: 42px; padding: 0 4px; border: 0; outline: none; background: transparent; color: var(--text);
  font: 600 16px 'Manrope', system-ui, sans-serif;
}
.invite-field input::placeholder { color: var(--muted); font-weight: 500; }
.invite-sep { width: 1px; height: 22px; flex: none; background: rgba(255, 255, 255, 0.1); }
.invite-field .menu-button { background: rgba(34, 197, 94, 0.12); border-color: transparent; color: #bbf7d0; }
.invite-field .menu-button svg { stroke: #86efac; }
.invite-field > .btn { height: 42px; padding: 0 22px; }
.suggest-label { padding: 8px 12px 4px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.suggest-avatar.is-square { border-radius: 10px; }
@media (max-width: 640px) {
  .invite-field { flex-wrap: wrap; border-radius: 22px; padding: 6px 6px 6px 14px; }
  .invite-field input { flex-basis: calc(100% - 40px); }
  .invite-sep { display: none; }
  .invite-field .menu-select { flex: 1; }
  .invite-field .menu-button { width: 100%; }
  .invite-field > .btn { flex: 1; }
}

/* ───────────── Konto: wartości zablokowane do kliknięcia "Zmień" ───────────── */
.locked-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.locked-field {
  flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px;
  color: var(--text); font-weight: 700; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07);
}
.locked-field span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.locked-field svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.locked-row .btn { flex: none; }
.lock-note { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.lock-note svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lock-note b { color: var(--text); font-weight: 700; }
.locked-row .btn[disabled] { opacity: .45; cursor: not-allowed; }
.credential-dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
.credential-form { gap: 20px; }
.credential-form header p { margin-top: 8px; }
.credential-form .field input { min-width: 0; height: 46px; font-size: 16px; }
.credential-form .form-error { padding: 10px 12px; color: #fecaca; }
.credential-form .confirm-actions { margin-top: 0; }
/* Automatyczne uzupełnianie zachowuje ciemne tło zamiast żółtego wyróżnienia. */
.credential-form input:autofill, .login-box input:autofill { color: var(--text); background: var(--panel-solid); }
.credential-form input:-webkit-autofill, .login-box input:-webkit-autofill {
  -webkit-text-fill-color: var(--text); caret-color: var(--text); box-shadow: 0 0 0 1000px var(--panel-solid) inset;
}
body:has(.credential-dialog[open]) { overflow: hidden; }
@media (max-width: 560px) {
  .locked-row { flex-wrap: wrap; }
  .locked-field { flex-basis: 100%; }
  .credential-form { padding: 20px; }
}

/* ───────────── Projekty: krótki opis i "Utwórz projekt" (formularz w oknie) ───────────── */
.create-project { display: flex; align-items: center; gap: 16px 20px; }
.create-project .cp-text { flex: 1; min-width: 0; }
.create-project h2 { margin-bottom: 4px; }
.create-project p { margin: 0; }
.create-project .btn { flex: none; }
.create-project .btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.apply-dialog { width: min(540px, calc(100vw - 32px)); }
.apply-dialog .field input:not([type="file"]) { height: 46px; }
.apply-dialog .hint { font-weight: 500; }
.file-field input[type="file"] { padding: 9px; font-size: .86rem; cursor: pointer; border-radius: 12px; background: rgba(5, 10, 7, 0.8); border: 1px dashed var(--border-strong); color: var(--muted); }
@media (max-width: 560px) { .create-project { flex-direction: column; align-items: stretch; } }

/* ───────────── karta "Projekty" na profilu ───────────── */
.pp-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.pp-item { display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 10px; border-radius: 16px; background: var(--panel-2); border: 1px solid rgba(255, 255, 255, 0.04); }
.pp-avatar { width: 44px; height: 44px; flex: none; border-radius: 13px; object-fit: cover; background: var(--panel); }
.pp-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pp-text b { font-size: .98rem; }
.pp-open { flex: none; margin-left: 6px; }
@media (max-width: 560px) {
  .pp-item { flex-wrap: wrap; }
  .pp-text { flex: 1 1 calc(100% - 140px); }
  .pp-open { width: 100%; margin-left: 0; }
}
.pp-text b, .pp-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───────────── odznaka z obrazkiem (Administrator Ossys) ───────────── */
.badge-img { display: block; width: 22px; height: 22px; object-fit: contain; }
.tr-emoji .badge-img { width: 20px; height: 20px; }
.badge-chip.badge-admin { border-color: rgba(74, 222, 128, 0.55); background: radial-gradient(circle at 50% 30%, rgba(74, 222, 128, 0.22), rgba(34, 197, 94, 0.08)); }

@media (prefers-reduced-motion: reduce) {
  .menu-list, .menu-select.is-open .menu-list { transform: none; }
  .pp-item:active, .menu-button:active { transform: none; }
}

/* karta z otwartą listą (podpowiedzi albo menu wyboru) leży nad kolejnymi kartami - każda karta z rozmyciem tła tworzy
   własną warstwę, więc bez tego lista chowałaby się pod następną kartą */
.card:focus-within, .card:has(.menu-select.is-open), .card:has(.suggest.is-open) { position: relative; z-index: 30; }

/* kapsuły statusu i roli nigdy nie łamią się w środku słowa */
.state-chip, .role-chip { white-space: nowrap; flex: none; }
@media (max-width: 640px) {
  /* nagłówek projektu: zdjęcie i nazwa w rzędzie, przycisk pod spodem na całą szerokość */
  .pm-head { flex-wrap: wrap; }
  .pm-head .grow { flex: 1 1 calc(100% - 90px); }
  .pm-head > .btn { width: 100%; }
  /* zarządzanie osobą w jednym rzędzie: menu roli rośnie, Zapisz i Usuń obok */
  .member-actions { flex-wrap: nowrap; }
  .role-form { flex: 1; min-width: 0; }
  .role-form .menu-select { flex: 1; min-width: 0; }
  .role-form .menu-button { width: 100%; min-width: 0; }
}

/* ───────────── ADMIN -> Projekty: wiersze projektów z promowaniem ───────────── */
.admin-projects { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.ap-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; background: var(--panel-2); border: 1px solid rgba(255, 255, 255, 0.04); }
.ap-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.ap-name { font-weight: 800; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-name:hover { color: var(--green-2); }
.ap-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ap-actions { display: flex; align-items: center; gap: 8px; flex: none; margin: 0; }
.ap-actions .menu-button { min-width: 116px; height: 34px; }
.promo-tag {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; white-space: nowrap;
  font-size: .72rem; font-weight: 800; color: #fde68a; background: rgba(250, 204, 21, 0.1); border: 1px solid rgba(250, 204, 21, 0.3);
}
.promo-tag svg { width: 11px; height: 11px; fill: #facc15; }
.promo-tag.is-off { color: var(--muted); background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); }
@media (max-width: 720px) {
  .ap-row { flex-wrap: wrap; }
  .ap-main { flex: 1 1 calc(100% - 60px); }
  .ap-actions { width: 100%; }
  .ap-actions .menu-select { flex: 1; }
  .ap-actions .menu-button { width: 100%; }
}

/* ADMIN -> Odznaki: pole osoby z podpowiedziami i menu odznak na całą szerokość */
.badge-form .menu-select { display: flex; }
.badge-form .menu-button { width: 100%; height: 48px; border-radius: 12px; font-weight: 600; font-size: 15px; background: rgba(5, 10, 7, 0.8); border-color: var(--border); }
.badge-form .menu-list { width: 100%; max-width: none; }
.badge-form .suggest { top: calc(100% + 6px); }

/* ───────────── ADMIN -> Pull ───────────── */
.pull-counts { margin: 12px 0 4px; }
.pull-all { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pull-target { display: grid; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); min-width: 220px; }
.pull-target .menu-button { height: 42px; }
.pull-list-title { margin: 18px 0 0; }
.pull-avatar { width: 40px; height: 40px; flex: none; }
.pull-id { font-size: .75rem; color: var(--muted); background: rgba(255, 255, 255, 0.04); padding: 2px 7px; border-radius: 7px; font-variant-numeric: tabular-nums; }
.pull-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.pull-tag.is-ok { color: var(--green-2); background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.28); }
.pull-job-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.pull-job-head h2 { margin: 0; }
.pull-bar { height: 8px; margin: 14px 0 8px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.pull-bar i { display: block; height: 100%; width: var(--pct); border-radius: inherit; background: linear-gradient(90deg, var(--green-deep), var(--green-2)); transition: width .4s var(--ease-out); }
.pull-job .op-counts { margin-top: 10px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
@media (max-width: 640px) {
  .pull-all { align-items: stretch; flex-direction: column; }
  .pull-target { min-width: 0; }
}

/* ───────────── panel admina: statystyki ───────────── */
.stats-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; }
.stats-head h2 { margin: 0 0 4px; }
.stats-head p { margin: 0; max-width: 560px; }
/* wybór okresu: jeden rząd nad wszystkimi wykresami (zmienia wszystko poniżej) */
.stats-range { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: rgba(5, 10, 7, 0.6); }
.stats-range a { padding: 7px 14px; border-radius: 9px; font-size: .86rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.stats-range a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.stats-range a[aria-current] { color: #03150a; background: var(--green-2); }
.stat-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stat-tile { min-width: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel-solid); }
.stat-label { margin: 0; font-size: .8rem; font-weight: 600; color: var(--muted); }
.stat-value { margin: 6px 0 0; font-size: 1.7rem; font-weight: 700; line-height: 1.15; color: var(--text); overflow-wrap: anywhere; }
.stat-note { margin: 6px 0 0; font-size: .76rem; line-height: 1.35; }
.stat-delta { font-weight: 700; color: var(--muted); white-space: nowrap; }
.stat-delta.is-up { color: #4ade80; }
.stat-delta.is-down { color: #f87171; }
.stats-chart.card { background: var(--panel-solid); }
.stats-ranks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stats-rank h3 { margin: 0 0 12px; font-size: 1rem; }
.stats-rank ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.stats-rank li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; font-size: .9rem; }
.rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(134, 239, 172, 0.08); overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 3px; }
.stats-table summary { cursor: pointer; font-weight: 700; }
.stats-table .table-wrap { margin-top: 12px; max-height: 420px; overflow: auto; }
.stats-table td, .stats-table th { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 900px) { .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stats-ranks { grid-template-columns: minmax(0, 1fr); } .stat-value { font-size: 1.4rem; } }

/* wykresy: oś Y z lewej, pole wykresu, oś X pod spodem; linie w SVG, opisy w HTML (nie skalują się) */
.chart { margin: 0; }
.chart figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.chart figcaption h3 { margin: 0; font-size: 1rem; }
.chart figcaption p { flex-basis: 100%; margin: 0; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: .82rem; color: var(--muted); }
.chart-legend li { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { width: 14px; height: 2px; border-radius: 1px; }
.chart-body { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; height: 220px; }
.chart-y { position: relative; min-width: 28px; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.chart-y span { position: absolute; right: 0; transform: translateY(50%); white-space: nowrap; }
.chart-plot { position: relative; min-width: 0; }
.chart-grid i { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid rgba(134, 239, 172, 0.08); }
.chart-grid i:first-child { border-top-color: rgba(134, 239, 172, 0.2); }
.chart-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-hits { position: absolute; inset: 0; display: flex; }
.chart-hits > span { position: relative; flex: 1; min-width: 0; height: 100%; }
.chart-x { position: relative; height: 18px; margin: 8px 0 0 calc(28px + 10px); font-size: .72rem; color: var(--muted); }
.chart-x span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
/* słupki: najwyżej 24 px, zaokrąglony koniec, kwadratowe przy osi, 2 px przerwy między sąsiadami */
.chart-col { display: flex; align-items: flex-end; justify-content: center; padding: 0 1px; }
.chart-col b { display: block; width: 100%; max-width: 24px; min-height: 0; border-radius: 4px 4px 0 0; transition: filter 120ms ease; }
.chart-col.is-hover b { filter: brightness(1.25); }
/* celownik, kropki serii i dymek - dorysowuje app.js */
.chart-cross { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid rgba(238, 247, 241, 0.35); pointer-events: none; }
.chart-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--panel-solid); pointer-events: none; }
.chart-tip { position: absolute; z-index: 5; top: 8px; min-width: 150px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: #0b130e; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8); font-size: .8rem; pointer-events: none; }
.chart-tip p { margin: 0 0 6px; color: var(--muted); font-weight: 600; }
.chart-tip div { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.chart-tip i { width: 12px; height: 2px; border-radius: 1px; flex: none; }
.chart-tip b { color: var(--text); font-variant-numeric: tabular-nums; }
.chart-tip span { color: var(--muted); }
@media (max-width: 640px) { .chart-body { height: 180px; } }

/* ───────────── API projektu i Automatyczne LegitChecki ───────────── */
.api-card h2 { display: flex; align-items: center; gap: 8px; }
.api-card h2 svg, .tag-auto svg, .auto-note svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.api-card h3 { margin: 18px 0 8px; font-size: .95rem; }
.api-card code { padding: 1px 6px; border-radius: 6px; background: rgba(5, 10, 7, 0.8); border: 1px solid var(--border); font-size: .82rem; overflow-wrap: anywhere; }
.api-newkey { margin: 12px 0 4px; padding: 14px; border: 1px solid rgba(34, 197, 94, 0.5); border-radius: 14px; background: rgba(34, 197, 94, 0.08); }
.api-newkey p { margin: 0 0 10px; font-size: .9rem; }
.api-newkey input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.api-urls { margin: 0; }
.api-list { display: grid; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.api-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(5, 10, 7, 0.45); }
.api-row .grow { min-width: 0; }
.api-form { display: flex; flex-wrap: wrap; gap: 8px; }
.api-form input { flex: 1 1 220px; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(5, 10, 7, 0.8); color: var(--text); font: 500 15px 'Manrope', system-ui, sans-serif; }
.api-form input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.api-help { margin-top: 18px; }
.api-help summary { cursor: pointer; font-weight: 700; }
.api-code { margin: 10px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(5, 10, 7, 0.85); overflow-x: auto; font-size: .78rem; line-height: 1.5; }
.api-code code { padding: 0; border: 0; background: none; white-space: pre; }
.api-rules { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: var(--muted); }
.tag-auto { display: inline-flex; align-items: center; gap: 5px; color: #bfdbfe; background: rgba(59, 130, 246, 0.14); border: 1px solid rgba(59, 130, 246, 0.4); font-weight: 700; }
.tag-auto svg { width: 14px; height: 14px; }
.bought { margin: 4px 0 0; font-size: .88rem; }
.auto-note { display: flex; align-items: center; gap: 6px; margin: -4px 0 10px; }
.auto-note svg { width: 15px; height: 15px; }
.api-bot-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: rgba(59, 130, 246, 0.14); color: #bfdbfe; }
.api-bot-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.api-row .avatar-sm { flex: none; border-radius: 50%; }
.api-count { font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.api-assign-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.api-assign-form > .field:first-child { grid-column: 1 / -1; }
.api-assign-form input { width: 100%; }
.api-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.api-list-head h2 { margin: 0; }
.api-search input { width: min(280px, 100%); padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(5, 10, 7, 0.8); color: var(--text); font: 500 15px 'Manrope', system-ui, sans-serif; }
.api-search input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.ap-row[hidden] { display: none; }
@media (max-width: 860px) { .api-assign-form { grid-template-columns: minmax(0, 1fr); } .api-search, .api-search input { width: 100%; } }
