
:root {
  --bg: #fafaf9;
  --bg-elev: #ffffff;
  --bg-soft: #f2f1ef;
  --text: #16151a;
  --muted: #5f5d66;
  --line: #e6e4e1;
  --accent: #e11d48;
  --accent-2: #f97316;
  --accent-soft: #ffe4e8;
  --ok: #15803d;
  --warn: #b45309;
  --shadow: 0 1px 2px rgba(20, 16, 24, .04), 0 8px 24px -12px rgba(20, 16, 24, .12);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0b10;
    --bg-elev: #15141b;
    --bg-soft: #1c1a23;
    --text: #f3f1f6;
    --muted: #a19eab;
    --line: #2a2733;
    --accent: #fb3a64;
    --accent-2: #fb923c;
    --accent-soft: #3a1420;
    --ok: #4ade80;
    --warn: #fbbf24;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0c0b10;
    --bg-elev: #15141b;
    --bg-soft: #1c1a23;
    --text: #f3f1f6;
    --muted: #a19eab;
    --line: #2a2733;
    --accent: #fb3a64;
    --accent-2: #fb923c;
    --accent-soft: #3a1420;
    --ok: #4ade80;
    --warn: #fbbf24;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -16px rgba(0,0,0,.6);
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.02em; line-height: 1.15; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-family: "Space Grotesk", Inter, sans-serif; font-size: 18px; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 16px -6px var(--accent); }
.logo b { color: var(--accent); }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--bg-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { border: 0; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 20px -10px var(--accent); }
.theme-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--muted); cursor: pointer; padding: 0; }
.theme-btn:hover { color: var(--text); background: var(--bg-soft); }
/* Ikona pokazuje motyw, na który przełączysz: w jasnym księżyc, w ciemnym słońce. */
.theme-btn .sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .moon { display: none; } :root:not([data-theme="light"]) .theme-btn .sun { display: block; } }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
.menu { display: none; position: static; }
.menu-btn { list-style: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); cursor: pointer; }
.menu-btn::-webkit-details-marker { display: none; }
.menu-btn .close { display: none; }
.menu[open] .menu-btn .bars { display: none; }
.menu[open] .menu-btn .close { display: block; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 8px 16px 14px; background: var(--bg-elev); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.menu-panel a, .menu-panel .menu-theme { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 16px; font-weight: 500; text-decoration: none; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; font-family: inherit; cursor: pointer; border-radius: 0; }
.menu-panel .menu-theme { border-bottom: 0; color: var(--muted); }
.nav .btn-primary { white-space: nowrap;  color: #fff; padding: 8px 14px; }
.btn-sm { padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn-ok { color: #fff; background: var(--ok); border: 0; }
.btn-danger { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

/* Hero */
.hero { position: relative; padding: 40px 0 20px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 520px; background: radial-gradient(600px 280px at 20% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), radial-gradient(500px 260px at 80% 10%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 70%); z-index: -1; filter: blur(10px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--muted); font-size: 14px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 16px 0 12px; max-width: 900px; }
.grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); max-width: 640px; margin: 0 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 10px; }
.stats { display: flex; flex-wrap: wrap; gap: 20px; margin-left: 14px; color: var(--muted); font-size: 14px; line-height: 1.2; }
.stats strong { display: block; font-family: "Space Grotesk", Inter, sans-serif; font-size: 24px; color: var(--text); }
.hero-new { display: none; }
@media (min-width: 960px) { .hero-new { display: block; } }
.hero-new-head { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.hero-new-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-new-item { position: relative; display: block; aspect-ratio: 1.91 / 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); color: #fff; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease; }
.hero-new-item:hover { transform: translateY(-2px); }
.hero-new-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-new-ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 34px; background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-2) 18%, transparent)); }
.hero-new-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; font-size: 13px; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.72)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Search + filters */
.toolbar { position: sticky; top: 64px; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); padding: 14px 0 10px; }
.search { position: relative; }
.search input { width: 100%; padding: 15px 18px 15px 48px; font: inherit; font-size: 17px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow); outline: none; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 12px ui-monospace, monospace; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
/* Na komputerze kategorie zawijają się do kolejnych wierszy (pasek przewijany w poziomie działa tylko na dotyk). */
@media (min-width: 720px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .n { opacity: .6; font-size: 12px; }
.chip[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
a.chip { text-decoration: none; }
.submit-switch { padding: 0 0 14px; }
.subbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; padding: 4px 0 0; }
.subbar select { font: inherit; font-size: 14px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); }
.subbar label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.searchrow { display: flex; gap: 8px; align-items: stretch; }
.searchrow .search { flex: 1; min-width: 0; }
.filters-btn { display: none; }
.filters-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.filters-n[hidden] { display: none; }
/* Telefon: przyklejony jest tylko wąski pasek wyszukiwania i przycisk „Filtry”, reszta rozwija się po kliknięciu. */
@media (max-width: 719px) {
  .toolbar { padding: 8px 0; }
  .search input { padding: 11px 12px 11px 40px; font-size: 16px; border-radius: 12px; box-shadow: none; }
  .search svg { left: 13px; }
  .filters-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
  .toolbar.open .filters-btn { background: var(--text); color: var(--bg); border-color: var(--text); }
  .toolbar:not(.open) .filters { display: none; }
  .toolbar.open .filters { max-height: 55vh; overflow-y: auto; }
  .subbar select { max-width: 100%; }
}

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 20px 0 64px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card-head { display: flex; align-items: center; gap: 12px; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-family: "Space Grotesk", Inter, sans-serif; font-size: 18px; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 75% 55%), hsl(calc(var(--h) + 40) 80% 55%)); }
.avatar.lg { width: 64px; height: 64px; font-size: 26px; border-radius: 16px; }
.card h3 { margin: 0; font-size: 18px; }
.card .host { color: var(--muted); font-size: 13px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: 12.5px; }
.tag.cat { background: var(--accent-soft); color: var(--accent); }
.tag.os { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.star { position: absolute; top: 16px; right: 16px; font-size: 12px; color: var(--accent-2); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty[hidden], .card[hidden] { display: none; }

/* Detail */
.detail { padding: 48px 20px 72px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
.detail h1 { font-size: clamp(32px, 5vw, 48px); margin: 16px 0 8px; }
.detail .lead { font-size: 20px; color: var(--muted); margin: 0 0 24px; }
.detail .body { font-size: 17px; }
.side { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); padding: 20px; height: fit-content; display: grid; gap: 14px; }
.side dt { color: var(--muted); font-size: 13px; }
.side dd { margin: 2px 0 0; font-weight: 500; }
.side dl { margin: 0; display: grid; gap: 12px; }
.back { color: var(--muted); text-decoration: none; font-size: 15px; }
.back:hover { color: var(--text); }

/* Forms */
.page { padding: 48px 20px 72px; max-width: 760px; }
.page h1 { font-size: clamp(30px, 4.5vw, 44px); margin: 0 0 10px; }
.page .lead { color: var(--muted); font-size: 18px; margin: 0 0 28px; }
.form { display: grid; gap: 18px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); box-shadow: var(--shadow); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field small { color: var(--muted); font-size: 13px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); color: var(--text); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--accent-soft); color: var(--text); }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.notice { padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); }

/* Admin */
.admin-tabs { display: flex; gap: 6px; margin: 20px 0; flex-wrap: wrap; }
.table { width: 100%; border-collapse: collapse; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--bg-soft); }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.table .actions form { margin: 0; }
.table form { display: inline; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.pill.published { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.pill.pending { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
.pill.rejected { color: var(--muted); background: var(--bg-soft); }
.card .cover { margin: -20px -20px 4px; border-radius: var(--radius) var(--radius) 0 0; }
.cover { position: relative; aspect-ratio: 1.91 / 1; overflow: hidden; border-radius: 14px; background: linear-gradient(135deg, hsl(var(--h) 70% 55% / .9), hsl(calc(var(--h) + 50) 75% 50% / .9)); border-bottom: 1px solid var(--line); }
.cover > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card:hover .cover > img { transform: scale(1.03); }
.cover-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgb(255 255 255 / .25), transparent 60%); }
.cover-fallback b { font-family: "Space Grotesk", Inter, sans-serif; font-size: 64px; color: rgb(255 255 255 / .92); text-shadow: 0 4px 24px rgb(0 0 0 / .18); }
.cover-fallback img { width: 76px; height: 76px; object-fit: contain; border-radius: 18px; background: #fff; padding: 8px; box-shadow: 0 8px 30px rgb(0 0 0 / .18); }
.cover.lg { margin: 20px 0 4px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.avatar.logo { background: #fff; object-fit: contain; padding: 4px; border: 1px solid var(--line); }
.star { z-index: 2; }
.health-dot { z-index: 2; }
.card .star { top: 12px; right: 12px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgb(0 0 0 / .45); color: #fde68a; }
.card .star + .health-dot { right: 44px; top: 18px; }
.card .health-dot { top: 18px; right: 18px; }
.admin-media { margin-top: 28px; }
.admin-media h2 { font-size: 18px; }
.admin-media-preview { display: flex; gap: 14px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.admin-media-preview img:first-child:not(.logo) { width: 320px; max-width: 100%; aspect-ratio: 1.91/1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.verify section { margin-top: 28px; }
.verify h2 { font-size: 20px; margin: 0 0 12px; }
.verdicts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.verdict { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft); font-size: 14.5px; }
.verdict strong { display: block; margin-bottom: 4px; }
.verdict.good { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.verdict.bad { border-color: color-mix(in srgb, #dc2626 45%, var(--line)); background: color-mix(in srgb, #dc2626 8%, transparent); }
.verdict.unsure { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.verify-grid { display: grid; grid-template-columns: 1fr; gap: 0 28px; }
@media (min-width: 860px) { .verify-grid { grid-template-columns: 1fr 1fr; } }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 14.5px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.clues { margin: 0; padding-left: 20px; }
.clues li { margin: 4px 0; }
.clue-snippet { font-size: 13px; overflow-wrap: anywhere; }
.verify-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding-top: 20px; border-top: 1px solid var(--line); }
.verify-actions form { margin: 0; }
.verify-actions form.verify-add { flex: 1 1 100%; display: grid; gap: 14px; }
.verify-actions form.verify-add > .btn { justify-self: start; }
.submission-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 14px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; }
.chips-check { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.health { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.4; }
.health.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); }
.health.down { color: #dc2626; background: color-mix(in srgb, #dc2626 10%, transparent); border: 1px solid color-mix(in srgb, #dc2626 35%, var(--line)); }
.detail .health { margin: 16px 0 0; font-size: 15px; }
.card .health { margin: 0; padding: 5px 10px; font-size: 12.5px; }
.health-dot { position: absolute; top: 14px; right: 14px; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 3px var(--bg-elev); }
.star + .health-dot { right: 34px; }
.health-dot.warn { background: #f59e0b; }
.health-dot.down { background: #dc2626; }
.card.is-down > :not(.health):not(.health-dot) { opacity: .45; filter: grayscale(1); }
.card.is-down { border-style: dashed; }
.card.is-down:hover > :not(.health):not(.health-dot) { opacity: .75; }
.pill.health-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
.pill.health-down { color: #dc2626; background: color-mix(in srgb, #dc2626 12%, transparent); }
.pill.health-ok { color: var(--muted); background: var(--bg-soft); }
.health-admin { margin-top: 24px; }
.health-admin h2 { font-size: 18px; }
.tag.tool { color: #7c3aed; background: color-mix(in srgb, #7c3aed 10%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.tool { color: #c4b5fd; background: color-mix(in srgb, #8b5cf6 22%, transparent); } }
:root[data-theme="dark"] .tag.tool { color: #c4b5fd; background: color-mix(in srgb, #8b5cf6 22%, transparent); }
a.tag.tool { text-decoration: none; }
.built { margin-top: 14px; align-items: center; }
.tool-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tool-pick { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: 14px; cursor: pointer; background: var(--bg-soft); }
.tool-pick:has(input:checked) { border-color: #e11d48; background: color-mix(in srgb, #e11d48 10%, transparent); }
.tool-pick input { margin: 0; width: auto; padding: 0; accent-color: #e11d48; }
.field .tool-pick { white-space: nowrap; font-weight: 500; }
.muted { color: var(--muted); }
.admin-wrap { padding: 32px 0 72px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; font-size: 32px; }
.table-wrap { overflow-x: auto; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* SEO: strony kategorii, narzędzi i poradnik */
.hero-sm { padding: 48px 0 8px; }
.hero-sm h1 { font-size: clamp(30px, 4.5vw, 48px); margin: 14px 0 12px; }
.hero-sm .lead { margin-bottom: 12px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.browse { padding: 8px 0 64px; }
.browse h2 { font-size: 20px; margin: 24px 0 4px; }
.browse-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
.browse a.chip { text-decoration: none; }
.browse a.chip[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.about-seo { max-width: 760px; padding: 8px 0 8px; }
.about-seo h2 { font-size: 24px; margin: 0 0 8px; }
.about-seo p { color: var(--muted); }
.guide h2 { font-size: 24px; margin: 36px 0 8px; }
.guide li { margin: 6px 0; }
.guide .browse { padding-bottom: 0; margin-top: 40px; border-top: 1px solid var(--line); }

.guide h3 { font-size: 18px; margin: 24px 0 4px; }
.tool-sites { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; }
.tool-sites li { margin: 0; }
.tool-site { margin: 0 0 12px; }
.aff-label { margin-left: 6px; font-size: 11px; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; vertical-align: middle; }
.aff-note { font-size: 13px; color: var(--muted); }

/* Firmy tworzące z AI (/firmy) */
.firms-hero { padding: 40px 0 18px; }
.firms-hero h1 { font-size: clamp(30px, 4.5vw, 46px); margin: 0 0 10px; max-width: 16em; }
.firms-hero .lead { color: var(--muted); font-size: 18px; margin: 0; max-width: 44em; }
.firms-hero-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 18px; }
.firm-chips { border-top: 1px solid var(--line); padding-top: 14px; }
.firm-count { margin: 12px 0 0; font-size: 14px; }
.firm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; padding: 16px 0 32px; }
.firm { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); }
.firm[hidden] { display: none; }
.firm .cover-link { display: block; margin: -20px -20px 0; }
.firm .cover-link .cover { border-radius: var(--radius) var(--radius) 0 0; }
.firm:hover .cover > img { transform: scale(1.03); }
.firm h3 { margin: 0; font-size: 19px; }
.firm h3 a { text-decoration: none; }
.firm h3 a:hover { color: var(--accent); }
.firm .host { color: var(--muted); font-size: 13px; }
.firm > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.firm-works { border-top: 1px solid var(--line); padding-top: 12px; }
.firm-works h4 { margin: 0 0 8px; font-size: 14px; }
.firm-works.lg { margin-top: 28px; }
.firm-works.lg h2 { font-size: 22px; margin: 0 0 12px; }
.works { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.works li { padding-left: 14px; position: relative; }
.works li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.works a { text-decoration: none; font-weight: 500; }
.works a:hover { color: var(--accent); }
.works small { display: block; color: var(--muted); font-size: 12.5px; }
.firm-works.lg .works { font-size: 16px; gap: 12px; }
.firm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.firm-cta { margin: 8px 0 64px; padding: 24px; border-radius: var(--radius); background: var(--bg-soft); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.firm-cta h2 { margin: 0 0 4px; font-size: 22px; }
.firm-cta p { margin: 0; max-width: 40em; }

@media (max-width: 820px) {
  .detail { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .nav a.hide-sm { display: none; }
  .menu { display: block; }
  .nav:has(.menu) > .theme-btn { display: none; }
  .hero { padding-top: 28px; }
  .stats { margin-left: 0; width: 100%; margin-top: 6px; }
}
@media (max-width: 560px) {
  .page { padding-top: 32px; padding-bottom: 40px; }
  .hero { padding: 18px 0 8px; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: 32px; margin: 0 0 8px; }
  .hero p.lead { font-size: 15.5px; margin-bottom: 14px; }
  .hero-actions .btn { flex: 1 1 0; justify-content: center; padding-left: 10px; padding-right: 10px; font-size: 15px; }
  .stats { gap: 18px; font-size: 13px; }
  .stats strong { display: inline; font-size: 18px; margin-right: 4px; }
  .form { padding: 20px; }
  .search kbd { display: none; }
}
@media (max-width: 420px) {
  .logo { font-size: 16px; gap: 8px; }
  .nav { gap: 4px; }
  .nav .btn-primary { padding: 8px 10px; font-size: 14px; }
  .theme-btn { width: 34px; height: 34px; }
}
/* Forum */
.f-wrap { padding: 20px 20px 72px; }
.f-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.f-home { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; font-size: 18px; text-decoration: none; }
.f-bar-user { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.f-bar-user form { margin: 0; }
.f-link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.f-link:hover { color: var(--text); }
.f-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; align-items: start; }
.f-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.f-head h1, .f-narrow h1 { font-size: clamp(28px, 4vw, 38px); margin: 0; }
.f-head p { margin: 6px 0 0; }
.f-sort { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.f-sort a { font-size: 13.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.f-sort a[aria-current] { background: var(--bg-soft); color: var(--text); }
.f-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); overflow: hidden; }
.f-t { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: center; }
.f-t:first-child { border-top: 0; }
.f-t h3 { margin: 0; font: 600 16px/1.35 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: 0; }
.f-t h3 a { text-decoration: none; }
.f-t h3 a:hover { color: var(--accent); }
.f-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: hsl(var(--h) 62% 48%); flex: none; }
.f-meta { display: flex; gap: 6px 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); margin-top: 4px; }
.f-sec { font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 6px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); text-decoration: none; }
.f-tag { font-size: 12px; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.f-tag:hover, .f-tag[aria-current] { color: var(--text); border-color: var(--muted); }
.f-proj { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--bg-soft); text-decoration: none; color: var(--text); }
.f-stat { text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; }
.f-stat b { display: block; font-size: 17px; color: var(--text); }
.f-pin { color: var(--accent); }
.f-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; }
.f-empty p { margin: 4px 0; }
.f-pages { display: flex; justify-content: space-between; margin-top: 16px; }
.f-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); padding: 16px; margin-bottom: 16px; }
.f-box h2 { font-size: 16px; margin: 0 0 10px; }
.f-cats { display: grid; gap: 2px; }
.f-cats a { display: flex; justify-content: space-between; gap: 10px; text-decoration: none; padding: 7px 10px; border-radius: 10px; font-size: 14px; }
.f-cats a:hover, .f-cats a[aria-current] { background: var(--bg-soft); }
.f-cats i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--c); margin-right: 8px; }
.f-cats small { color: var(--muted); }
.f-cats em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 6px; }
.f-legal-links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 16px 0; }
.f-legal-links strong { flex-basis: 100%; font-size: 14px; }
.f-rigcz { padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); margin: 0 0 18px; }
.f-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.f-rules { margin: 0 0 8px; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.f-rules li { margin-bottom: 4px; }
.f-crumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; align-items: center; }
.f-crumb a:not(.f-sec) { text-decoration: none; }
.f-title { font-size: clamp(24px, 3.4vw, 34px); margin: 0; }
.f-pending-note { margin: 14px 0; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--warn); color: var(--warn); font-size: 14px; }
.f-post { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.f-post:first-of-type { margin-top: 12px; }
.f-post.is-pending { border: 1px dashed var(--warn); border-radius: 14px; padding: 14px; margin: 8px 0; background: color-mix(in srgb, var(--warn) 6%, transparent); }
.f-who { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.f-who a { text-decoration: none; font-size: 13px; }
.f-role { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); }
.f-wait { color: var(--warn); font-weight: 600; }
.f-body { overflow-wrap: anywhere; }
.f-body p { margin: 8px 0; }
.f-body pre { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; font-size: 13.5px; }
.f-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--bg-soft); margin: 10px 0; text-decoration: none; }
.f-card small { display: block; }
.f-acts { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.f-acts form { margin: 0; }
.f-acts a { color: var(--muted); }
.f-reply { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); padding: 14px; margin-top: 18px; display: grid; gap: 10px; }
.f-reply textarea { width: 100%; min-height: 110px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: 16px/1.5 Inter, sans-serif; background: var(--bg); color: var(--text); resize: vertical; }
.f-reply-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.f-dl { margin: 0; font-size: 14px; }
.f-dl dt { color: var(--muted); font-size: 13px; margin-top: 10px; }
.f-dl dt:first-child { margin-top: 0; }
.f-dl dd { margin: 2px 0 0; font-weight: 500; }
.f-staff { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.f-staff form { margin: 0; }
.f-narrow { max-width: 720px; }
.f-narrow > p { margin: 10px 0 20px; }
.f-login .btn { justify-content: center; }
.f-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; }
.f-check input { margin-top: 4px; }
.f-legal li, .f-legal p { margin: 10px 0; }
.f-chips-m { display: none; }
@media (max-width: 860px) {
  .f-grid { grid-template-columns: minmax(0, 1fr); }
  .f-grid > aside { order: -1; }
  .f-hide-m { display: none; }
  .f-chips-m { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 16px; }
  .f-chips-m a:first-child { grid-column: 1 / -1; }
}
.f-chips-m a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-size: 15px; font-weight: 600; background: var(--bg-elev); }
.f-chips-m a[aria-current] { background: var(--bg-soft); border-color: var(--text); }
.f-chips-m i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
@media (max-width: 600px) {
  .f-t { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .f-av { width: 30px; height: 30px; font-size: 12px; }
  .f-post { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .f-stat { grid-column: 2; text-align: left; }
  .f-stat b { display: inline; font-size: 14px; }
}
/* Forum na stronie projektu */
.pf-box { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); padding: 18px; }
.pf-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pf-head h2 { margin: 0; font-size: 20px; }
.pf-threads { margin: 10px 0; padding-left: 18px; }
.pf-msg { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; font-size: 14.5px; }
.pf-msg p { margin: 4px 0 0; overflow-wrap: anywhere; }
.pf-empty { margin-top: 28px; font-size: 15px; }
/* Forum w panelu */
.fa-tabs { margin: 18px 0 8px; flex-wrap: wrap; }
.fa-post { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); padding: 16px; margin-top: 14px; }
.fa-post-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fa-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fa-actions form, .fa-inline { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.fa-input, .fa-inline select { font: inherit; font-size: 14px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }

