
  /* ── M3 „Pacific Whisper" — tokeny brandu (z Claude Design) ── */
  :root {
    --brand-navy: #0A1929;
    --brand-orange: #E94818;
    --brand-orange-deep: #B83410;
    --brand-cyan: #7BD4E8;
    --brand-cyan-ink: #0B4A56;
    --sand: #FCFAF3;
    --ink: #0A1929;
    --ink-2: #3A4A5C;
    --ink-3: #8A93A0;
    --line: rgba(10, 25, 41, 0.09);
    --line-soft: rgba(10, 25, 41, 0.05);
    --card-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 20px 50px -28px rgba(10,25,41,0.18);
    --surface: #fff;
    /* Skala odstępów (base 4px) — jedno źródło rytmu pionowego dla wszystkich widoków.
       Używać ZAMIAST ręcznie dobieranych px, żeby Lista/Miejsca/Kalendarz/Dla Ciebie
       oddychały identycznie. */
    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
    --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
    /* stały odstęp między głównymi blokami kolumny treści (nagłówek→lead→toolbar→treść) */
    --content-gap: var(--sp-6);
    color-scheme: light;
  }
  /* Dark mode (feature #10) — nadpisanie tokenów, reszta CSS używa zmiennych */
  html[data-theme="dark"] {
    --brand-navy: #0a1524;
    --brand-orange: #f26a3f;
    --brand-orange-deep: #f7906c;
    --sand: #0b1220;
    --surface: #151f30;
    --ink: #e8edf4;
    --ink-2: #a6b3c5;
    --ink-3: #6f7d91;
    --line: rgba(255, 255, 255, 0.10);
    --line-soft: rgba(255, 255, 255, 0.06);
    --card-shadow: 0 16px 40px -24px rgba(0,0,0,0.7);
    color-scheme: dark;
  }
  /* Nadpisania strukturalne dla dark mode (elementy z twardymi kolorami) */
  html[data-theme="dark"] .sidebar { background: var(--surface) !important; }
  html[data-theme="dark"] .sidebar .brand .logo path { fill: #e8edf4; }
  html[data-theme="dark"] .sidebar-filter:hover { background: rgba(255,255,255,0.05); }
  html[data-theme="dark"] .mesh-blob { opacity: 0.4; }
  html[data-theme="dark"] .cal-ev { background: rgba(255,255,255,0.06); }
  html[data-theme="dark"] .chip.cat { background: rgba(242,106,63,0.16); color: #f5a888; }
  html[data-theme="dark"] .chip.tag { background: rgba(123,212,232,0.14); color: #9fdcea; }
  html[data-theme="dark"] .sub-dialog { background: var(--surface); }
  /* karta daty i badge GBT — jaśniejsza pomarańcza na ciemnym już z tokenów */
  html[data-theme="dark"] .empty-state button,
  html[data-theme="dark"] .view-switch { background: var(--surface); }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  /* Globalny widoczny focus dla nawigacji klawiaturą (audyt UX #1, WCAG 2.4.7).
     :focus-visible → pojawia się tylko przy klawiaturze, nie przy kliknięciu myszą. */
  :focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
    border-radius: 3px;
  }
  /* na ciemnych tłach (topbar navy, karta daty) — jaśniejszy cyan lepiej widoczny */
  .topbar :focus-visible, .date-badge :focus-visible {
    outline-color: var(--brand-cyan);
  }
  body {
    background: var(--sand);
    color: var(--ink);
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: -0.005em;
    line-height: 1.45;
    font-size: 14px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
  }
  .tabular-nums { font-variant-numeric: tabular-nums; }
  a { color: inherit; }

  /* ── Mesh blobs ── */
  .mesh-blob { position: fixed; pointer-events: none; z-index: 0; }
  .mesh-blob-cyan { right: -340px; top: -200px; width: 1200px; height: 900px;
    background: radial-gradient(ellipse at 55% 50%, rgba(123,212,232,0.15), transparent 70%); filter: blur(120px); }
  .mesh-blob-orange { left: -260px; top: 200px; width: 1000px; height: 900px;
    background: radial-gradient(circle, rgba(233,72,24,0.08), transparent 65%); filter: blur(130px); }
  .mesh-blob-navy { left: 320px; bottom: -300px; width: 1000px; height: 800px;
    background: radial-gradient(ellipse, rgba(10,25,41,0.05), transparent 70%); filter: blur(120px); }

  /* ── Topbar ── */
  header.topbar {
    position: relative; z-index: 10;
    display: flex; align-items: center; gap: 12px;
    height: 56px; padding: 0 28px;
    background: var(--brand-navy); color: #fff;
  }
  .topbar .topbar-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
  .topbar .topbar-brand svg { height: 22px; width: auto; fill: #fff; display: block; }
  .topbar .topbar-title { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: rgba(255,255,255,0.82); }
  .topbar .spacer { flex: 1; }
  .topbar .ics {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
    background: rgba(255,255,255,0.10); color: #fff; text-decoration: none;
  }
  .topbar .ics:hover { background: rgba(255,255,255,0.18); }
  .topbar .ics svg { height: 14px; width: 14px; }
  .topbar button.ics { cursor: pointer; font-family: inherit; border: 0; }
  /* przełącznik języka PL/EN (uwaga grupy pkt 4) — segmentowy toggle w topbarze */
  .lang-switch { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px;
    background: rgba(255,255,255,0.10); }
  .lang-switch .lang-btn { cursor: pointer; font-family: inherit; border: 0;
    padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: 700;
    background: transparent; color: rgba(255,255,255,0.65); letter-spacing: 0.02em; }
  .lang-switch .lang-btn:hover { color: #fff; }
  .lang-switch .lang-btn[aria-pressed="true"] { background: rgba(255,255,255,0.22); color: #fff; }
  /* toggle dark mode (feature #10) */
  .theme-toggle { padding: 7px; }
  .theme-toggle .ic-sun { display: none; }
  .theme-toggle .ic-moon { display: block; }
  html[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
  html[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

  /* Skeleton loading (feature #10) */
  .sk-wrap { display: grid; gap: 14px; }
  .sk-card {
    height: 92px; border-radius: 14px; border: 1px solid var(--line);
    background: linear-gradient(100deg, var(--surface) 30%, var(--line-soft) 50%, var(--surface) 70%);
    background-size: 200% 100%; animation: sk-shimmer 1.3s ease-in-out infinite;
  }
  @keyframes sk-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
  @media (prefers-reduced-motion: reduce) {
    .sk-card { animation: none; }
    /* szanuj preferencję redukcji ruchu — wyłącz transform/animacje na hover
       (karty, przyciski) i inne mikrointerakcje (audyt UX #9) */
    *, *::before, *::after {
      animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important; scroll-behavior: auto !important;
    }
    .ecard:hover { transform: none; }
  }

  /* Empty state (feature #10) */
  .empty-state { text-align: center; padding: 48px 20px; color: var(--ink-2); }
  .empty-state svg { width: 44px; height: 44px; color: var(--ink-3); margin-bottom: 12px; }
  .empty-state h3 { font-size: 16px; color: var(--ink); margin-bottom: 6px; }
  .empty-state p { font-size: 13.5px; color: var(--ink-3); margin-bottom: 14px; }
  .empty-state button {
    padding: 9px 18px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--surface);
  }
  .empty-state button:hover { border-color: var(--brand-orange); color: var(--brand-orange-deep); }

  /* ── Modal subskrypcji ── */
  .sub-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
  .sub-modal[hidden] { display: none; }
  .sub-backdrop { position: absolute; inset: 0; background: rgba(10,25,41,0.45); backdrop-filter: blur(2px); }
  .sub-dialog {
    position: relative; z-index: 1; width: min(440px, calc(100vw - 32px));
    background: var(--surface); border-radius: 18px; padding: 26px 26px 22px;
    box-shadow: 0 30px 80px -20px rgba(10,25,41,0.4);
  }
  .sub-close {
    position: absolute; top: 14px; right: 16px; border: 0; background: none;
    font-size: 26px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 2px 6px;
  }
  .sub-close:hover { color: var(--ink); }
  .sub-dialog h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
  .sub-lead { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
  .sub-options { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
  .sub-opt {
    display: flex; align-items: center; gap: 13px; padding: 11px 13px;
    border: 1px solid var(--line); border-radius: 12px; text-decoration: none; cursor: pointer;
    transition: border-color .15s, background .15s;
  }
  .sub-opt:hover { border-color: rgba(233,72,24,0.4); background: rgba(233,72,24,0.03); }
  .sub-ic {
    flex-shrink: 0; height: 34px; width: 34px; border-radius: 9px;
    display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff;
  }
  .sub-ic-google { background: #1a73e8; }
  .sub-ic-outlook { background: #0a67c1; }
  .sub-ic-apple { background: #111; position: relative; }
  .sub-ic-apple::before {
    content: ""; height: 16px; width: 16px; background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z'/%3E%3C/svg%3E") center/contain no-repeat;
  }
  .sub-ic-file { background: var(--brand-orange); }
  .sub-txt { display: flex; flex-direction: column; gap: 2px; }
  .sub-txt b { font-size: 14px; font-weight: 700; color: var(--ink); }
  .sub-txt span { font-size: 12px; color: var(--ink-3); }
  .sub-filter-note { margin: -6px 0 14px; font-size: 12.5px; color: var(--brand-orange-deep); font-weight: 600; }
  .sub-raw { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
  .sub-raw label { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
  .sub-raw-row { display: flex; gap: 8px; margin-top: 7px; }
  .sub-raw-row input {
    flex: 1; min-width: 0; padding: 8px 11px; border: 1px solid var(--line);
    border-radius: 9px; font-size: 12.5px; color: var(--ink-2); background: var(--sand);
  }
  .sub-raw-row button {
    flex-shrink: 0; padding: 8px 15px; border: 0; border-radius: 9px; cursor: pointer;
    font-size: 13px; font-weight: 700; color: #fff; background: var(--brand-orange); font-family: inherit;
  }
  .sub-raw-row button:hover { background: var(--brand-orange-deep); }

  /* Przełącznik widoków (feature #3) */
  .toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--content-gap); }
  /* Pierwszy blok treści po toolbarze ma zerowy górny margines — stały odstęp daje toolbar.
     Dzięki temu każdy widok (Lista/Miejsca/Kalendarz/Dla Ciebie) oddycha identycznie. */
  #listing > :first-child { margin-top: 0; }
  .toolbar #count { margin: 0; }
  .view-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
  .view-switch button {
    padding: 6px 15px; border: 0; border-radius: 999px; cursor: pointer; font-family: inherit;
    font-size: 13px; font-weight: 600; color: var(--ink-2); background: transparent;
  }
  .view-switch button.on { background: var(--brand-navy); color: #fff; }

  /* Widok kalendarza — siatka miesiąca */
  .cal-month { margin-bottom: 28px; }
  .cal-month h3 { font-size: 16px; color: var(--ink); margin: 0 0 10px; text-transform: capitalize; }
  /* minmax(0,1fr) — bez tego długie tytuły rozpychają kolumny i siatka się rozjeżdża */
  .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .cal-dow { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--ink-3); text-align: center; padding: 4px 0; }
  .cal-cell { min-height: 78px; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; padding: 5px; background: var(--surface); }
  .cal-cell.empty { background: transparent; border: 0; }
  .cal-cell.today { border-color: var(--brand-orange); box-shadow: 0 0 0 1px var(--brand-orange); }
  .cal-daynum { font-size: 11px; font-weight: 700; color: var(--ink-3); }
  .cal-ev {
    display: block; margin-top: 3px; padding: 2px 5px; border-radius: 5px; font-size: 11px;
    background: var(--sand); color: var(--ink); text-decoration: none; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis;
  }
  .cal-ev.gbt { background: var(--brand-navy); color: #fff; }
  .cal-ev:hover { background: var(--brand-orange); color: #fff; }
  .cal-more { font-size: 10px; color: var(--ink-3); margin-top: 2px; }

  /* Widok miejsc — grupy po venue */
  .places { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
  .place-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
  .place-card h3 { margin: 0 0 2px; font-size: 15px; color: var(--ink); }
  /* nazwa miejsca jako link do strony podmiotu /org/{slug} — sygnalizuj klikalność */
  .place-card h3 .place-org-link { color: inherit; text-decoration: none; }
  .place-card h3 .place-org-link:hover { color: var(--brand-orange-deep); text-decoration: underline; }
  .place-card .pc-city { font-size: 12px; color: var(--ink-3); }
  .place-card .pc-count { display: inline-block; margin: 8px 0; font-size: 12px; font-weight: 700; color: var(--brand-orange-deep); }
  .place-card ul { list-style: none; margin: 0; padding: 0; }
  .place-card li { padding: 5px 0; border-top: 1px solid var(--line); }
  .place-card li a { color: var(--ink); text-decoration: none; font-size: 13px; }
  .place-card li a:hover { color: var(--brand-orange-deep); }
  .place-card li .pc-when { font-size: 11px; color: var(--ink-3); }

  /* Digest e-mail (feature #6) */
  .sub-email { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
  .sub-email h3 { margin: 0 0 4px; font-size: 15px; color: var(--ink); }
  .sub-email-lead { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
  #digest-form { display: flex; flex-direction: column; gap: 10px; }
  #digest-email {
    padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px;
    font-size: 13.5px; color: var(--ink); background: var(--sand); font-family: inherit;
  }
  .digest-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .digest-tag {
    padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
    font-size: 12px; color: var(--ink-2); background: var(--surface); user-select: none;
  }
  .digest-tag.on { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff; font-weight: 600; }
  #digest-submit {
    padding: 10px 16px; border: 0; border-radius: 9px; cursor: pointer; font-family: inherit;
    font-size: 13.5px; font-weight: 700; color: #fff; background: var(--brand-navy);
  }
  #digest-submit:hover { background: #08131f; }
  #digest-submit:disabled { opacity: .6; cursor: default; }
  .digest-msg { margin: 4px 0 0; font-size: 12.5px; }
  .digest-msg.ok { color: #0f7a3d; }
  .digest-msg.err { color: #b83410; }

  /* Formularz „Dodaj wydarzenie" (publiczne zgłaszanie → moderacja GBT) */
  .submit-form { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
  .submit-form label {
    display: flex; flex-direction: column; gap: 5px;
    font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  }
  /* nazwa pola + gwiazdka wymagania w JEDNEJ linii (bez sf-lbl goły „*" był
     osobnym flex-itemem labela → wisiał w nowej linii; feedback Darka 2026-07-11) */
  .submit-form .sf-lbl { display: inline-flex; align-items: baseline; gap: 3px; }
  .submit-form .req { color: var(--brand-orange); font-weight: 700; }
  .submit-form input, .submit-form textarea {
    width: 100%;  /* input domyślnie nie wypełnia labela — bez tego pola węższe niż dialog */
    padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px;
    font-size: 13.5px; font-weight: 400; color: var(--ink); background: var(--sand);
    font-family: inherit;
  }
  .submit-form input:focus, .submit-form textarea:focus {
    outline: none; border-color: var(--brand-orange);
  }
  .submit-form textarea { resize: vertical; min-height: 60px; }
  .submit-form .sf-row { display: flex; gap: 12px; }
  /* min-width:0 — bez tego inputy w flexie nie kurczą się i „Miejsce" wystaje
     poza dialog (feedback Darka 2026-07-04) */
  .submit-form .sf-row label { flex: 1; min-width: 0; }
  #sf-submit {
    padding: 10px 16px; border: 0; border-radius: 9px; cursor: pointer; font-family: inherit;
    font-size: 13.5px; font-weight: 700; color: #fff; background: var(--brand-orange);
  }
  #sf-submit:hover { background: var(--brand-orange-deep); }
  #sf-submit:disabled { opacity: .6; cursor: default; }

  .shell { position: relative; z-index: 1; display: flex; gap: 0; }

  /* ── Sidebar = żywa nawigacja filtrów ── */
  aside.sidebar {
    width: 244px; flex-shrink: 0;
    display: flex; flex-direction: column; gap: 22px;
    padding: 24px 18px 26px;
    border-right: 1px solid rgba(10,25,41,0.07);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    position: sticky; top: 0; align-self: flex-start; height: 100vh;
    overflow-y: auto;
  }
  /* Logo na pełną szerokość kolumny kategorii */
  .sidebar .brand {
    display: block; text-decoration: none;
    padding: 6px 8px 20px; margin-bottom: 4px;
    border-bottom: 1px solid rgba(10,25,41,0.08);
  }
  .sidebar .brand .logo { width: 100%; height: auto; display: block; }
  .sidebar .brand .logo path { fill: #070707; }
  .sidebar .brand .b2 {
    display: block; margin-top: 8px; font-size: 10px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); text-align: center;
  }
  .sidebar .sec-title { padding-left: 10px; margin-bottom: 8px; font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
  .sidebar-filter {
    display: flex; align-items: center; gap: 9px;
    width: 100%; padding: 7px 10px; margin-bottom: 2px;
    border: none; border-left: 3px solid transparent; border-radius: 8px;
    background: transparent; cursor: pointer; text-align: left;
    font-family: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2);
  }
  .sidebar-filter:hover { background: rgba(10,25,41,0.03); }
  .sidebar-filter.active { border-left-color: var(--brand-orange);
    background: rgba(233,72,24,0.07); font-weight: 600; color: var(--brand-orange-deep); }
  .sidebar-filter .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-filter .cnt { font-size: 11px; font-weight: 600; color: var(--ink-3);
    background: rgba(10,25,41,0.05); border-radius: 999px; padding: 1px 8px; flex-shrink: 0; }
  .sidebar-filter.active .cnt { background: rgba(233,72,24,0.14); color: var(--brand-orange-deep); }
  .sidebar-filter .dot { height: 7px; width: 7px; border-radius: 999px; flex-shrink: 0; }

  /* ── Main ── */
  main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 28px 44px 40px; max-width: 1000px; }
  h1.page-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--sp-2); }
  p.page-lead { color: var(--ink-2); max-width: 64ch; margin-bottom: var(--content-gap); }

  /* ── Pasek wyszukiwania + szybkie filtry (Faza 1) ── */
  .searchbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
  .search-input { position: relative; flex: 1 1 320px; display: flex; align-items: center; }
  .search-input > svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
  .search-input input { width: 100%; padding: 11px 38px 11px 42px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    font-family: inherit; font-size: 15px; }
  .search-input input::placeholder { color: var(--ink-3); }
  .search-input input:focus { outline: none; border-color: var(--brand-orange); }
  .search-input input[type="search"]::-webkit-search-cancel-button { display: none; }
  #search-clear { position: absolute; right: 10px; width: 24px; height: 24px; border: 0;
    border-radius: 50%; background: var(--line); color: var(--ink-2); cursor: pointer;
    font-size: 16px; line-height: 1; display: grid; place-items: center; }
  #search-clear:hover { background: var(--brand-orange); color: #fff; }
  .chip-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px;
    border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
    color: var(--ink-2); font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
  .chip-toggle svg { width: 15px; height: 15px; }
  .chip-toggle:hover { border-color: var(--ink-3); }
  .chip-toggle[aria-pressed="true"] { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff; }

  /* badge „NOWE" (Faza 3) — wydarzenie dodane od ostatniej wizyty */
  .enew { display: inline-block; align-self: flex-start; margin-bottom: 4px; padding: 2px 9px;
    border-radius: 6px; background: var(--brand-cyan); color: var(--brand-cyan-ink);
    font-size: 10px; font-weight: 900; letter-spacing: .08em; }
  html[data-theme="dark"] .enew { background: rgba(123,212,232,0.22); color: #9fdcea; }

  /* akcje na karcie listy (Faza 2): zapisz (serce) + do kalendarza */
  .ecard-actions { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2); }
  .ecard-act { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
    border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
    color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; font-family: inherit; }
  .ecard-act svg { width: 15px; height: 15px; }
  .ecard-act:hover { border-color: var(--ink-3); color: var(--ink); }
  .ecard-heart.on { color: var(--brand-orange); border-color: var(--brand-orange); }
  .ecard-heart.on:hover { color: var(--brand-orange-deep); }
  /* licznik na zakładce „Zapisane" */
  .saved-count { display: inline-flex; align-items: center; justify-content: center; min-width: 17px;
    height: 17px; padding: 0 4px; margin-left: 5px; border-radius: 999px; background: var(--brand-orange);
    color: #fff; font-size: 11px; font-weight: 800; }
  /* nagłówek widoku „Moje zapisane" */
  .saved-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
    flex-wrap: wrap; margin-bottom: var(--sp-4); }
  .saved-head__title { font-size: 17px; font-weight: 800; color: var(--ink); }
  .saved-export { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 12px;
    background: var(--brand-orange); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
  .saved-export svg { width: 16px; height: 16px; }
  .saved-export:hover { background: var(--brand-orange-deep); }

  .active-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
  /* pasek aktywnych filtrów pojawia się tylko gdy są filtry — nie rezerwuj miejsca gdy pusty */
  .active-filter-bar:not(:empty) { margin-bottom: var(--content-gap); }
  .active-filter-bar .clear {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--brand-orange); background: rgba(233,72,24,0.08); color: var(--brand-orange-deep);
    font-family: inherit; font-size: 12px; font-weight: 600; }
  .active-filter-bar .clear:hover { background: rgba(233,72,24,0.14); }
  #count { color: var(--ink-3); font-size: 13px; margin-bottom: 20px; }

  /* ── Sekcja miesiąca ── */
  .month-head { display: flex; align-items: baseline; gap: var(--sp-3); margin: var(--sp-6) 0 var(--sp-3); }
  .month-head:first-child { margin-top: 0; }
  .month-head .m { font-size: 15px; font-weight: 700; text-transform: capitalize; color: var(--brand-orange-deep); }
  .month-head .rule { flex: 1; height: 1px; background: var(--line); }
  .month-head .n { font-size: 12px; color: var(--ink-3); }

  /* ── Sekcja „Polecane przez GBT" (pasek nad listą) ── */
  /* Subtelny pasek (feedback Darka: było „zajebiście wielkie" → teraz cienki akcent,
     bez wielkiej jasnej ramki). Tylko lewy pasek marki + nagłówek + rail. */
  /* sama sekcja bez ramki/paska — wyróżnikiem jest gruba ramka karty, nie kontener */
  .featured-strip { margin-bottom: 20px; padding: 0; border: 0; background: none; border-radius: 0; }
  .featured-strip__head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
  .featured-strip__star { font-size: 13px; color: var(--brand-orange); }
  .featured-strip__title { font-size: 12px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--ink-2); }
  .featured-strip__more { margin-left: auto; border: none; background: none; cursor: pointer;
    font-size: 12px; font-weight: 700; color: var(--brand-orange-deep); padding: 3px 7px; border-radius: 8px; }
  .featured-strip__more:hover { background: rgba(233,72,24,0.10); }
  /* Karty featured = DOKŁADNIE takie same jak na liście (pełna szerokość, cała treść).
     Jedyne wyróżnienie: gruba ramka wg poziomu wsparcia (recommended/supported/organised)
     + badge „ORGANISED BY GBT" — bez kompaktowego/poziomego wariantu (feedback Darka 2026-07-05). */
  .featured-rail { display: flex; flex-direction: column; gap: 12px; }

  /* zakładka „★ Polecane GBT" — akcent gwiazdki gdy nieaktywna */
  .view-switch button[data-view="featured"] { color: var(--brand-orange-deep); }
  .view-switch button[data-view="featured"].on { color: #fff; }

  /* hero zakładki featured (pełny widok) */
  .featured-hero { margin-bottom: 20px; }
  .featured-hero__title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
  .featured-hero__sub { margin-top: 6px; font-size: 14px; color: var(--ink-2); max-width: 60ch; }

  /* ── Karta wydarzenia ── */
  .cards { display: flex; flex-direction: column; gap: 12px; }
  .ecard {
    display: flex; gap: 18px; padding: 18px 20px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--card-shadow); transition: border-color .15s, transform .15s;
  }
  .ecard:hover { border-color: rgba(233,72,24,0.35); transform: translateY(-1px); }

  /* Wyróżnienie poziomów oznaczeń GBT — gruba ramka w kolorze poziomu (feedback
     Darka 2026-07-04). Poziom 1 „listed" bez ramki. Kolejność mocy: recommended
     (pomarańcz) → supported (głęboki pomarańcz) → organised (navy). */
  /* Uwaga grupy pkt 13: znak jakości GBT ma DOMINOWAĆ wizualnie nad „za N dni".
     Grubsza ramka + akcent po lewej + delikatne tło. Kolory wg Darka:
     recommended = beżowy, supported = czerwony (mocniejszy). */
  .ecard--recommended {
    border: 3px solid #C9A87C; box-shadow: -5px 0 0 0 #C9A87C inset;
    background: linear-gradient(90deg, rgba(201,168,124,0.07), var(--surface) 28%);
  }
  .ecard--supported {
    border: 3px solid var(--brand-orange-deep); box-shadow: -5px 0 0 0 var(--brand-orange-deep) inset;
    background: linear-gradient(90deg, rgba(233,72,24,0.07), var(--surface) 28%);
  }
  html[data-theme="dark"] .ecard--recommended {
    border-color: #D9BE97; box-shadow: -5px 0 0 0 #D9BE97 inset;
    background: linear-gradient(90deg, rgba(217,190,151,0.10), var(--surface) 28%);
  }
  .ecard--recommended, .ecard--supported {
    position: relative;
  }

  /* Notka „dlaczego GBT poleca" (endorsement_note) — cytat od GBT na karcie wyróżnionego */
  .egbt-note { display: flex; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 10px;
    background: rgba(233,72,24,0.06); border-left: 3px solid var(--brand-orange);
    font-size: 13px; line-height: 1.5; color: var(--ink); }
  html[data-theme="dark"] .egbt-note { background: rgba(242,106,63,0.10); }
  .egbt-note .egbt-note-mark { flex-shrink: 0; font-weight: 800; color: var(--brand-orange-deep); }
  .egbt-note .egbt-note-by { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 700;
    color: var(--ink-3); text-transform: none; letter-spacing: 0; }

  /* Badge daty — duży, czytelny, kluczowy: odliczanie + dzień tyg. + numer + miesiąc + godzina */
  .date-badge {
    flex-shrink: 0; width: 104px; display: flex; flex-direction: column; align-items: center;
    padding: 12px 8px 13px; border-radius: 14px; text-align: center; line-height: 1;
    background: var(--sand); border: 1px solid var(--line); overflow: hidden;
  }
  /* odliczanie — najmocniejszy sygnał, pasek na górze */
  .date-badge .badge-when {
    align-self: stretch; margin: -12px -8px 9px; padding: 5px 6px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.02em; text-transform: lowercase;
    color: #fff; background: var(--brand-orange-deep);
  }
  .date-badge .dow { font-size: 12px; font-weight: 700; letter-spacing: 0.01em; color: var(--ink-2); }
  .date-badge .day { font-size: 40px; font-weight: 800; margin: 2px 0 0; color: var(--ink); letter-spacing: -0.03em; }
  .date-badge .mon { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-2); }
  .date-badge .time {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 10px;
    font-size: 14px; font-weight: 800; color: var(--brand-orange-deep);
    background: rgba(233,72,24,0.10); border-radius: 7px; padding: 4px 9px; }
  .date-badge .time svg { height: 13px; width: 13px; }
  .date-badge .time.allday { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
  /* wariant „wkrótce" (≤7 dni) — SUBTELNY akcent, NIE dominuje nad znakiem jakości GBT
     (uwaga grupy pkt 13). Zostaje tylko obwódka + mocniejszy pasek odliczania; tło badge
     bez zmian, żeby wyróżnienie endorsement było najsilniejszym sygnałem na karcie. */
  .date-badge.soon { border-color: var(--brand-orange); box-shadow: 0 0 0 1px var(--brand-orange) inset; }
  .date-badge.soon .badge-when { background: var(--brand-orange); }

  .ebody { flex: 1; min-width: 0; }
  .ebody .etitle { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
  .ebody .etitle:hover { color: var(--brand-orange-deep); }
  .emeta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
  .emeta .place { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
  .emeta .place:hover { color: var(--brand-orange-deep); }
  .emeta .place svg { height: 13px; width: 13px; color: var(--ink-3); flex-shrink: 0; }
  .emeta .source { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); }
  .emeta .source svg { height: 13px; width: 13px; flex-shrink: 0; }
  /* źródło jako link na profil organizatora (backlog poz.1) */
  a.source-link { text-decoration: none; transition: color .12s; }
  a.source-link:hover { color: var(--brand-orange-deep); text-decoration: underline; }
  .eteaser { margin-top: 9px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
  .ereg { display: inline-flex; align-items: center; gap: 7px; margin-top: 11px;
    padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 700; text-decoration: none;
    color: var(--brand-orange-deep); background: rgba(233,72,24,0.10); }
  .ereg:hover { background: rgba(233,72,24,0.18); }
  .ereg svg { height: 14px; width: 14px; flex-shrink: 0; }
  /* Badge poziomu relacji GBT (System oznaczeń) — SAM TEKST „... by GBT", bez logo
     (feedback Darka 2026-07-05). Blokowy pod tytułem, nie nachodzi. Tło wg poziomu. */
  .gbt-badge { display: flex; width: fit-content; max-width: 100%; align-items: center;
    margin-top: 9px; padding: 5px 12px; border-radius: 10px; font-size: 11.5px;
    font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; border: 1.5px solid; }
  .gbt-badge-label { line-height: 1.1; }
  /* badge WYPEŁNIONY kolorem poziomu — spójnie z panelem admina /ocenianie
     (recommended=orange, supported=orange-deep, organised=navy). */
  .gbt-badge.recommended { color: #fff; border-color: var(--brand-orange);
    background: var(--brand-orange); }
  .gbt-badge.supported { color: #fff; border-color: var(--brand-orange-deep);
    background: var(--brand-orange-deep); }
  .gbt-badge.organised { color: #fff; border-color: var(--brand-navy);
    background: var(--brand-navy); }
  .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
  .chip { white-space: nowrap; border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 600; text-decoration: none; }
  .chip.cat { background: rgba(233,72,24,0.10); color: #8f2809; }
  .chip.tag { background: rgba(123,212,232,0.24); color: var(--brand-cyan-ink); cursor: pointer; }
  .chip.tag:hover { background: rgba(123,212,232,0.40); }
  .chip.tag.on { background: var(--brand-cyan-ink); color: #fff; }
  /* badge cykliczności (uwaga grupy pkt 8) — wyróżnia serie od jednorazowych */
  .chip.recurring { background: rgba(123,212,232,0.18); color: var(--brand-navy); border: 1px solid var(--brand-cyan); }
  html[data-theme="dark"] .chip.recurring { background: rgba(123,212,232,0.14); color: #9fdcea; border-color: rgba(123,212,232,0.4); }
  .clear.clear-all { background: rgba(10,25,41,0.06); color: var(--ink-2); }

  .empty { padding: 60px 22px; text-align: center; color: var(--ink-3);
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }

  .partners { margin-top: var(--sp-10); padding-top: var(--sp-6); border-top: 1px solid var(--line); }
  .partners h2 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); margin-bottom: 12px; }
  .partners .links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; }
  .partners a { color: var(--brand-orange-deep); text-decoration: none; }
  .partners a:hover { text-decoration: underline; }
  footer.foot { margin-top: 24px; color: var(--ink-3); font-size: 12px; }

  /* Przycisk „Filtry" (mobile) + backdrop drawera — ukryte na desktopie */
  .filters-toggle { display: none; }
  .drawer-backdrop { display: none; }

  @media (max-width: 900px) {
    main { padding: 22px; max-width: 100%; }
    .ecard { gap: 12px; padding: 14px; }
    .date-badge { width: 84px; padding: 10px 6px 11px; }
    .date-badge .day { font-size: 32px; }
    .date-badge .badge-when { margin: -10px -6px 8px; font-size: 10px; }
    .date-badge .time { font-size: 13px; padding: 3px 8px; }

    /* Sidebar jako wysuwany drawer (Faza 4, #13) zamiast display:none —
       dostęp do filtrów na telefonie. Otwierany przyciskiem „Filtry". */
    aside.sidebar {
      position: fixed; top: 0; left: 0; bottom: 0; z-index: 200; width: min(84vw, 320px);
      overflow-y: auto; background: var(--surface); box-shadow: 2px 0 24px rgba(0,0,0,.18);
      transform: translateX(-100%); transition: transform .25s ease-out; padding-bottom: 40px;
    }
    body.drawer-open aside.sidebar { transform: translateX(0); }
    /* backdrop i sidebar w tym samym kontekście stackingu (oba fixed, globalne z-index).
       Sidebar (210) NAD backdropem (200) → filtry klikalne, tło zamyka drawer. */
    aside.sidebar { z-index: 210; }
    body.drawer-open .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 200;
      background: rgba(10,25,41,.45); }

    /* przycisk „Filtry" — sticky u góry treści */
    .filters-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px;
      border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
      font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; margin-bottom: var(--sp-3); }
    .filters-toggle svg { width: 16px; height: 16px; }
    .filters-toggle .ft-count { display: inline-flex; align-items: center; justify-content: center;
      min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand-orange);
      color: #fff; font-size: 11px; font-weight: 800; }

    /* Bug RWD (Darek 2026-07-05): przełącznik widoków (5 przycisków) i topbar
       wypychały stronę ~60px w bok na telefonie (overflow-x). view-switch =
       przewijalny poziomo, topbar zawija przyciski. */
    .view-switch {
      max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .view-switch::-webkit-scrollbar { display: none; }
    .view-switch button { white-space: nowrap; flex-shrink: 0; }
    /* Mobile topbar (feedback Darka 2026-07-05): logo GBT + ikony w 1 rzędzie.
       Wcześniej długi tekst-tytuł wypychał przyciski na 2-3 linie i brakowało logo.
       height:auto bo desktopowe 56px nie rosło (gdyby coś jednak się zawinęło). */
    header.topbar { flex-wrap: nowrap; padding: 10px 14px; height: auto; gap: 6px; }
    .topbar .topbar-brand svg { height: 20px; }
    .topbar .topbar-title { display: none; }        /* tytuł jest już w H1 poniżej */
    /* przyciski = same ikony: zerujemy tekst (font-size:0), svg przywracamy */
    .topbar .ics { font-size: 0; padding: 8px; gap: 0; }
    .topbar .ics svg { height: 16px; width: 16px; }
  }

  /* Kalendarz na wąskim telefonie (audyt UX #8): siatka 7-kol na ~360px dawała
     komórki ~44px z tytułami uciętymi do 1-2 znaków (nieczytelne). Poniżej 560px
     wydarzenia stają się kolorowymi PASKAMI bez tekstu (kolor = poziom GBT), a dzień
     pokazuje ich liczbę — czytelny sygnał „coś się dzieje", szczegóły po tapnięciu.
     Tekst tytułu zostaje dla czytników ekranu (nie usuwamy, tylko wizualnie chowamy). */
  @media (max-width: 560px) {
    .cal-grid { gap: 3px; }
    .cal-cell { min-height: 52px; padding: 4px 3px; }
    .cal-daynum { font-size: 12px; }
    .cal-ev {
      margin-top: 2px; height: 5px; padding: 0; border-radius: 3px;
      overflow: hidden; text-indent: -9999px;   /* chowa tytuł wizualnie, zostaje dla AT */
      background: var(--brand-cyan);
    }
    .cal-ev.gbt { background: var(--brand-orange); }
    .cal-more { font-size: 10px; margin-top: 3px; color: var(--brand-orange-deep); font-weight: 700; }
    .cal-dow { font-size: 10px; padding: 2px 0; }
  }

  /* ── Profil organizatora (T7: przywrócone z organizer.html sprzed T5, kolory na var()) ── */
  .ev-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: .9rem; color: var(--ink-2); text-decoration: none; }
  .ev-back:hover { color: var(--brand-orange-deep); }
  .ev-back svg { width: 16px; height: 16px; }

  /* Redesign hero: gradientowy panel spójny z brandingiem landingu (mesh w tle) */
  .org-hero { position: relative; display: flex; flex-direction: column; gap: 20px;
    margin-bottom: 28px; padding: 26px 26px 22px; border-radius: 20px;
    border: 1px solid var(--line);
    background:
      radial-gradient(120% 140% at 8% 0%, rgba(123,212,232,0.20) 0%, transparent 46%),
      radial-gradient(120% 160% at 100% 10%, rgba(233,72,24,0.12) 0%, transparent 50%),
      var(--surface);
    box-shadow: 0 12px 34px -22px rgba(10,25,41,0.5);
    overflow: hidden; }
  html[data-theme="dark"] .org-hero {
    background:
      radial-gradient(120% 140% at 8% 0%, rgba(123,212,232,0.14) 0%, transparent 46%),
      radial-gradient(120% 160% at 100% 10%, rgba(242,106,63,0.14) 0%, transparent 50%),
      var(--surface); }
  .org-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
  .org-head { display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
  .org-logo { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; border: 2px solid var(--line); background: var(--sand); flex-shrink: 0; box-shadow: 0 8px 22px -14px rgba(10,25,41,0.6); }
  .org-logo-placeholder { width: 96px; height: 96px; border-radius: 20px; background: linear-gradient(135deg, var(--brand-navy), var(--brand-cyan-ink)); color: #fff; display: grid; place-items: center; font-size: 40px; font-weight: 800; flex-shrink: 0; box-shadow: 0 8px 22px -14px rgba(10,25,41,0.6); }
  .org-hero h1 { font-size: clamp(24px, 4vw, 30px); font-weight: 800; color: var(--ink); margin: 0; line-height: 1.13; letter-spacing: -.02em; }
  .org-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }

  /* Rząd statystyk profilu */
  .org-stats { display: flex; gap: 12px; flex-wrap: wrap; }
  .org-stat { flex: 1 1 96px; min-width: 96px; display: flex; flex-direction: column; gap: 2px;
    padding: 12px 16px; border-radius: 14px; background: var(--surface);
    border: 1px solid var(--line); }
  .org-stat-num { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -.01em; }
  .org-stat-lbl { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .4px; }

  .org-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; line-height: 1; }
  .org-badge svg { width: 13px; height: 13px; flex-shrink: 0; }
  /* Kolory taksonomii typu organizatora — celowo hardkodowane (jak kategorie), nie zmienne motywu */
  .org-badge-startup { background: #d1fae5; color: #065f46; }
  .org-badge-university { background: #dbeafe; color: #1e40af; }
  .org-badge-fund { background: #ede9fe; color: #5b21b6; }
  .org-badge-company { background: #ccfbf1; color: #115e59; }
  .org-badge-institution { background: #fef3c7; color: #92400e; }
  .org-badge-municipal { background: #e0e7ff; color: #3730a3; }
  .org-badge-community { background: #fce7f3; color: #9d174d; }
  .org-badge-other { background: #f1f5f9; color: #475569; }
  /* Dark-mode: pastelowe tła #badge tracą kontrast na ciemnym surface — przyciemniamy tło, rozjaśniamy tekst */
  html[data-theme="dark"] .org-badge-startup { background: rgba(6,95,70,.35); color: #6ee7b7; }
  html[data-theme="dark"] .org-badge-university { background: rgba(30,64,175,.35); color: #93c5fd; }
  html[data-theme="dark"] .org-badge-fund { background: rgba(91,33,182,.35); color: #c4b5fd; }
  html[data-theme="dark"] .org-badge-company { background: rgba(17,94,89,.35); color: #5eead4; }
  html[data-theme="dark"] .org-badge-institution { background: rgba(146,64,14,.35); color: #fcd34d; }
  html[data-theme="dark"] .org-badge-municipal { background: rgba(55,48,163,.35); color: #a5b4fc; }
  html[data-theme="dark"] .org-badge-community { background: rgba(157,23,77,.35); color: #f9a8d4; }
  html[data-theme="dark"] .org-badge-other { background: rgba(71,85,105,.35); color: #cbd5e1; }
  /* .org-link ma color:var(--brand-navy) (ciemny) — w dark byłby niewidoczny na ciemnym tle */
  html[data-theme="dark"] .org-link { color: var(--ink); }
  html[data-theme="dark"] .org-link:hover { background: var(--brand-cyan); color: var(--brand-navy); border-color: var(--brand-cyan); }

  .org-city { color: var(--ink-3); font-size: 13px; font-weight: 500; }
  .org-links { display: flex; flex-wrap: wrap; gap: 8px; }
  .org-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--brand-navy); text-decoration: none; transition: all .15s; }
  .org-link:hover { background: var(--brand-navy); color: #fff; border-color: var(--brand-navy); }
  .org-link svg { width: 15px; height: 15px; }
  .org-link-social { display: inline-flex; align-items: center; gap: 5px; padding: 5px 14px; border-radius: 20px; border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); text-decoration: none; text-transform: capitalize; transition: all .15s; }
  .org-link-social:hover { background: var(--brand-orange); color: #fff; border-color: var(--brand-orange); }

  .org-desc { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 15px; color: var(--ink-2); line-height: 1.7; margin-bottom: 24px; }

  .org-section-title { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 16px; letter-spacing: -.01em; }
  .org-section-title .count { font-weight: 400; font-size: 15px; color: var(--ink-3); margin-left: 6px; }

  .org-past summary { font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; padding: 4px 0; margin-bottom: 12px; }
