/*
 * Kalendarz wydarzeń (E3) — komponenty listy i siatki miesiąca z kalendarza GBT.
 * Kopia z makiety .wow/kalendarz/port/static/app.css (zatwierdzona 07.11.2026), przycięta: bez naborów,
 * „Polecanych”, widoku miejsc, digestu e-mail, formularza zgłoszeń, profilu organizatora, pasa integratorów
 * i pasa tytułowego GBT. Globalna reguła `main` z makiety zastąpiona `.kal-uklad > main` (animalis-warstwa.css),
 * przełącznik widoków na telefonie zawija się zamiast przewijać w poziomie.
 */

body { position: relative; }

/* Atrybut `hidden` wygrywa z `display` ustawionym przez klasę. */
[hidden] { display: none !important; }

/* Szkielet ładowania */
.sk-wrap { display: grid; gap: 14px; }
.sk-card {
  height: 92px; border-radius: 0; border: 1px solid var(--obrys);
  background: linear-gradient(100deg, var(--tlo-karta) 30%, var(--obrys-slaby) 50%, var(--tlo-karta) 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; }
  .ecard:hover { transform: none; }
}

/* Pusty stan */
.empty-state { text-align: center; padding: 48px 20px; color: var(--tekst-sredni); }
.empty-state svg { width: 44px; height: 44px; color: var(--tekst-slabszy); margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; color: var(--tekst); margin-bottom: 6px; }
.empty-state p { font-size: 13.5px; color: var(--tekst-slabszy); margin-bottom: 14px; }
.empty-state button {
  padding: 9px 18px; border: 1px solid var(--obrys); border-radius: 0; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--tekst); background: var(--tlo-karta);
}
.empty-state button:hover { border-color: var(--akcja); color: var(--akcja-ciemniej); }

/* ── Modale: subskrypcja kalendarza i „Dodaj do kalendarza” ── */
.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(31,26,23,0.45); backdrop-filter: blur(2px); }
.sub-dialog {
  position: relative; z-index: 1; width: min(440px, calc(100vw - 32px));
  background: var(--tlo-karta); border-radius: 0; padding: 26px 26px 22px;
  box-shadow: 0 30px 80px -20px rgba(31,26,23,0.4);
}
.sub-close {
  position: absolute; top: 14px; right: 16px; border: 0; background: none;
  font-size: 26px; line-height: 1; color: var(--tekst-slabszy); cursor: pointer; padding: 2px 6px;
}
.sub-close:hover { color: var(--tekst); }
.sub-dialog h2 { font-size: var(--f-h3); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--tekst); }
.sub-lead { margin-top: 6px; font-size: 13.5px; color: var(--tekst-sredni); 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(--obrys); border-radius: 0; text-decoration: none; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.sub-opt:hover { border-color: rgba(194,65,12,0.4); background: rgba(194,65,12,0.03); }
.sub-ic {
  flex-shrink: 0; height: 34px; width: 34px; border-radius: 0;
  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(--akcja); }
.sub-txt { display: flex; flex-direction: column; gap: 2px; }
.sub-txt b { font-size: 14px; font-weight: 700; color: var(--tekst); }
.sub-txt span { font-size: 12px; color: var(--tekst-slabszy); }
.sub-filter-note { margin: -6px 0 14px; font-size: 12.5px; color: var(--akcja-ciemniej); font-weight: 600; }
.sub-raw { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--obrys); }
.sub-raw label { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tekst-slabszy); }
.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(--obrys);
  border-radius: 0; font-size: 12.5px; color: var(--tekst-sredni); background: var(--tlo);
}
.sub-raw-row button {
  flex-shrink: 0; padding: 8px 15px; border: 0; border-radius: 0; cursor: pointer;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--akcja); font-family: inherit;
}
.sub-raw-row button:hover { background: var(--akcja-ciemniej); }

/* ── Przełącznik widoków ── */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--content-gap); }
#listing > :first-child { margin-top: 0; }
.toolbar #count { margin: 0; }
.view-switch { display: inline-flex; flex-wrap: wrap; max-width: 100%; background: var(--tlo-karta); border: 1px solid var(--obrys); border-radius: 0; padding: 3px; }
.view-switch button {
  padding: 6px 15px; border: 0; border-radius: 0; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 600; color: var(--tekst-sredni); background: transparent; white-space: nowrap;
}
.view-switch button.on { background: var(--deep-baltic); color: #fff; }

/* ── Widok kalendarza: siatka miesiąca ── */
.cal-month { margin-bottom: 28px; }
.cal-month h3 { font-size: var(--f-h3-s); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--tekst); margin: 0 0 var(--sp-4); text-transform: capitalize; }
/* minmax(0,1fr) — bez tego długie tytuły rozpychają kolumny */
.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(--tekst-slabszy); text-align: center; padding: 4px 0; }
/* 124 px = 18 px na numer dnia + 5 wpisów po 20 px + 6 px zapasu */
.cal-cell { min-height: 124px; min-width: 0; overflow: hidden; border: 1px solid var(--obrys); border-radius: 0; padding: 5px; background: var(--tlo-karta); }
.cal-cell.empty { background: transparent; border: 0; }
.cal-cell.today { border-color: var(--akcja); box-shadow: 0 0 0 1px var(--akcja); }
.cal-cell--rozwinieta { overflow: visible; }
.cal-daynum { font-size: 11px; font-weight: 700; color: var(--tekst-slabszy); }
.cal-ev {
  display: block; margin-top: 3px; padding: 2px 5px; border-radius: 0; font-size: 11px;
  background: var(--tlo); color: var(--tekst); text-decoration: none; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis;
}
.cal-ev:hover { background: var(--akcja); color: #fff; }
/* „+N więcej” leży w SIATCE, nie w komórce — inaczej przykrywa go pasek. */
.cal-more { position: relative; z-index: 2; align-self: start; justify-self: start;
  margin-left: 1px; margin-right: 1px; padding: 0 4px; border: 0; background: transparent;
  font-family: inherit; font-size: 10px; font-weight: 700; color: var(--akcja-ciemniej);
  line-height: 16px; height: 16px; cursor: pointer; text-align: left;
  margin-top: calc(var(--gora-komorki, 18px) + var(--rzad, 0) * var(--wys-wpisu, 20px)); }
.cal-more:hover { text-decoration: underline; }
/* Pasek wydarzenia wielodniowego: grid-column span (wzorzec MUI X Scheduler). */
.cal-bar { position: relative; z-index: 1; margin-left: 1px; margin-right: 1px;
  align-self: start; pointer-events: auto;
  --wys-paska: 18px; --wys-wpisu: calc(var(--wys-paska) + 2px); --gora-komorki: 18px;
  height: var(--wys-paska); line-height: calc(var(--wys-paska) - 4px);
  box-sizing: border-box;
  margin-top: calc(var(--gora-komorki) + var(--rzad, 0) * var(--wys-wpisu)); }
.cal-bar:not(.bar-start) { border-top-left-radius: 0; border-bottom-left-radius: 0; padding-left: 3px; }
.cal-bar:not(.bar-end) { border-top-right-radius: 0; border-bottom-right-radius: 0; padding-right: 3px; }
.cal-bar:not(.bar-start)::before { content: "‹"; opacity: .65; margin-right: 2px; }
.cal-bar:not(.bar-end)::after { content: "›"; opacity: .65; margin-left: 2px; }

/* ── Szpalta filtrów ── */
:root { --sidebar-szer: clamp(268px, 21vw, 336px); }
aside.sidebar {
  position: sticky; top: 0; z-index: 20;
  width: var(--sidebar-szer); flex: 0 0 var(--sidebar-szer);
  height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 22px;
  padding: 26px 22px 26px;
  border-right: 1px solid var(--obrys);
  background: var(--tlo-karta);
}
.sidebar .sec-title { padding-left: 10px; margin: 0 0 8px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--tekst-slabszy); }

/* ── Wyszukiwarka i przełączniki ── */
.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(--tekst-slabszy); pointer-events: none; }
.search-input input { width: 100%; padding: 11px 38px; border-radius: 0;
  border: 1px solid var(--obrys); background: var(--tlo-karta); color: var(--tekst);
  font-family: inherit; font-size: 15px; line-height: 17px; }
.search-input input::placeholder { color: var(--tekst-slabszy); }
.search-input input:focus { outline: none; border-color: var(--akcja); }
.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(--obrys); color: var(--tekst-sredni); cursor: pointer;
  font-size: 16px; line-height: 1; display: grid; place-items: center; }
#search-clear:hover { background: var(--akcja); color: #fff; }
#search-clear .ik, .sub-close .ik, .sidebar-zamknij .ik { width: 16px; height: 16px; }
.sub-close .ik { width: 20px; height: 20px; }

/* ── Akcje karty: Zapisz, Kalendarz ── */
.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: 0; border: 1px solid var(--obrys); background: var(--tlo-karta);
  color: var(--tekst-sredni); font-size: 13px; font-weight: 600; line-height: 15px;
  cursor: pointer; text-decoration: none; font-family: inherit; }
.ecard-act svg { width: 16px; height: 16px; flex: 0 0 16px; }
.ecard-act:hover { border-color: var(--tekst-slabszy); color: var(--tekst); }
.ecard-heart.on { color: var(--akcja); border-color: var(--akcja); }
.ecard-heart.on svg { fill: currentColor; }
.ecard-heart.on:hover { color: var(--akcja-ciemniej); }
.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(--akcja);
  color: #fff; font-size: 11px; font-weight: 800; }
.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(--tekst); }
.saved-export { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 0;
  background: var(--akcja); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.saved-export svg { width: 16px; height: 16px; }
.saved-export:hover { background: var(--akcja-ciemniej); }

.active-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.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: 0; cursor: pointer;
  border: 1px solid var(--akcja); background: rgba(194,65,12,0.08); color: var(--akcja-ciemniej);
  font-family: inherit; font-size: 12px; font-weight: 600; }
.active-filter-bar .clear:hover { background: rgba(194,65,12,0.14); }
#count { color: var(--tekst-slabszy); font-size: 13.5px; margin-bottom: 20px; }

/* ── Sekcja miesiąca: nagłówek przykleja się przy przewijaniu ── */
.month-head { display: flex; align-items: baseline; gap: var(--sp-3);
  margin: var(--odstep-domkniecie) 0 var(--sp-4);
  position: sticky; top: 0; z-index: 5;
  padding: 15px 0 8px; background: var(--tlo);
  border-bottom: 1px solid var(--obrys); }
.month-head:first-child { margin-top: 0; }
.month-head::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--rust-red), var(--rust-deep) 34%, var(--steel-blue));
}
.month-head .m { font-size: clamp(31px, 4vw, 46px); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; text-transform: capitalize; color: var(--tekst); }
.month-head .rule { flex: 1; height: 1px; background: var(--obrys); }
.month-head .n { font-size: 12px; color: var(--tekst-slabszy); }

/* ── Karta wydarzenia ── */
.cards { display: flex; flex-direction: column; gap: 12px; }
.ecard {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; padding: 20px 22px;
  background: var(--tlo-karta); border: 1px solid var(--obrys);
  /* lewy pasek 3 px niesie kolor RODZAJU (styl inline z karty) */
  border-left-width: 3px; box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ecard:hover, .ecard:focus-within { border-color: var(--akcja); box-shadow: var(--cien-hover); }

/* Kolumna daty: odliczanie, numer dnia z miesiącem, dzień tygodnia, godzina */
.date-badge {
  flex: 0 1 clamp(146px, 19%, 218px); min-width: 146px;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 2px clamp(14px, 2vw, 28px) 6px 0; border-radius: 0; text-align: left; line-height: 1;
  background: transparent; border: 0; border-right: 1px solid var(--obrys); overflow: visible;
}
.date-badge .badge-when {
  margin: 0 0 12px; padding: 0;
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--tekst-slabszy); background: transparent;
}
.date-badge.soon .badge-when { color: var(--akcja); }
.date-badge .dow { font-size: 15px; font-weight: 600; color: var(--tekst-slabszy); }
.date-badge .day { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin: 0 0 8px -2px; font-size: clamp(42px, 3.6vw, 52px); font-weight: 800;
  line-height: 1.02; letter-spacing: -0.045em; color: var(--tekst); }
.date-badge.soon .day { color: var(--akcja); }
.date-badge .mon { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--tekst-sredni); }
.ecard .ecard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ecard .ereg { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px;
  background: var(--akcja-ciemniej); color: #fff; font-size: 12.5px; font-weight: 600;
  line-height: 15px; text-decoration: none; margin-top: 0; }
.ecard .ereg:hover { background: var(--akcja); }
.ecard .ereg svg { width: 16px; height: 16px; }
.date-badge .time {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  padding: 6px 11px; border: 1px solid var(--akcja); white-space: nowrap; line-height: 1.2;
  font-size: 15px; font-weight: 700; color: var(--akcja-ciemniej);
  background: transparent; border-radius: 0; }
.date-badge .time svg { height: 16px; width: 16px; }
.date-badge .time.allday { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.ebody { flex: 1 1 360px; min-width: 0; }
.ebody .etitle { font-size: clamp(19px, 1.5vw, 23px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.18; color: var(--tekst); text-decoration: none; }
.ebody .etitle:hover { color: var(--akcja-ciemniej); }
.emeta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: var(--f-drobny); color: var(--tekst-sredni); }
.emeta .place { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.emeta .place:hover { color: var(--akcja-ciemniej); }
.emeta .place svg { height: 16px; width: 16px; color: var(--tekst-slabszy); flex-shrink: 0; }
.emeta .source { display: inline-flex; align-items: center; gap: 5px; color: var(--tekst-slabszy); }
.ereg { display: inline-flex; align-items: center; gap: 7px; margin-top: 11px;
  padding: 7px 14px; border-radius: 0; font-size: 13px; font-weight: 700; text-decoration: none;
  color: var(--akcja-ciemniej); background: rgba(194,65,12,0.10); }
.ereg:hover { background: rgba(194,65,12,0.18); }
.ereg svg { height: 14px; width: 14px; flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { white-space: nowrap; border-radius: 0; padding: 4px 12px; font-size: var(--f-s); font-weight: 600; text-decoration: none; }
.chip.cat { background: rgba(194,65,12,0.10); color: #8f2809; }
.clear.clear-all { background: rgba(31,26,23,0.06); color: var(--tekst-sredni); }

.empty { padding: 60px 22px; text-align: center; color: var(--tekst-slabszy);
  background: var(--tlo-karta); border: 1px solid var(--obrys); border-radius: 0; }

/* Przycisk „Filtry” — wejście do szuflady na telefonie; na desktopie szpalta stoi na widoku. */
.filters-toggle {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 12px 18px; border: 1px solid var(--obrys); background: var(--tlo-karta);
  color: var(--tekst); font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; margin-bottom: var(--sp-4);
  transition: border-color .18s ease, color .18s ease;
}
.filters-toggle:hover { border-color: var(--akcja); color: var(--akcja); }
.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(--akcja); color: #fff; font-size: 11px; font-weight: 800;
}
.filters-toggle { display: none; }
.drawer-backdrop { display: none; }

@media (max-width: 900px) {
  .filters-toggle { display: inline-flex; }
  aside.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 210;
    width: min(88vw, 340px); flex: none; height: auto;
    padding: 24px 18px 26px;
    box-shadow: 2px 0 24px rgba(31,26,23,.18);
    transform: translateX(-100%);
    transition: transform .25s ease-out;
  }
  body.drawer-open aside.sidebar { transform: translateX(0); }
  body.drawer-open .drawer-backdrop {
    display: block; position: fixed; inset: 0; z-index: 200;
    background: rgba(31,26,23,.45);
  }
  /* Na telefonie kolumna daty siada NAD treścią. */
  .ecard { gap: 12px; padding: 14px; }
  .date-badge { flex: 1 1 100%; min-width: 0;
    flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
    padding: 0 0 10px; border-right: 0; border-bottom: 1px solid var(--obrys); }
  .date-badge .badge-when { margin: 0; }
  .date-badge .day { margin: 0; font-size: 34px; }
  .date-badge .mon { font-size: 17px; }
  .date-badge .time { margin-top: 0; font-size: 13px; padding: 4px 9px; }
}

/* Siatka miesiąca na wąskim telefonie: wpisy jako paski bez tekstu (tytuł zostaje dla czytników). */
@media (max-width: 560px) {
  .cal-grid { gap: 3px; }
  .cal-cell { min-height: 59px; padding: 4px 3px; }
  .cal-daynum { font-size: 12px; }
  .cal-ev {
    margin-top: 2px; height: 5px; padding: 0; border-radius: 0;
    overflow: hidden; text-indent: -9999px;
    background: var(--dane);
  }
  .cal-bar { --wys-paska: 5px; --gora-komorki: 20px;
    margin-top: calc(var(--gora-komorki) + var(--rzad, 0) * var(--wys-wpisu)); }
  .cal-more { font-size: 10px; color: var(--akcja-ciemniej); font-weight: 700;
    line-height: 12px; height: 12px;
    margin-top: calc(var(--gora-komorki, 20px) + var(--rzad, 0) * var(--wys-wpisu, 7px)); }
  .cal-dow { font-size: 10px; padding: 2px 0; }
}

.ev-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: .9rem; color: var(--tekst-sredni); text-decoration: none; }
.ev-back:hover { color: var(--akcja-ciemniej); }
.ev-back svg { width: 16px; height: 16px; }

/* ═══ Zgodność z designem: ostre krawędzie, ramka, rdza przy najechaniu (nadpisuje warstwa animalis) ═══ */
.ecard, .empty, .cal-cell, .cal-ev, .chip,
.view-switch, .view-switch button, .search-input input,
.search-input button, .sub-dialog, .sub-opt, .sub-ic, .saved-export,
.filters-toggle, .ft-count, .date-badge, .date-badge .time, .ereg,
.sub-raw-row input, .sub-raw-row button, .sk-card,
.empty-state button, .clear {
  border-radius: 0;
}
.ecard {
  background: var(--tlo-karta);
  border: 1px solid var(--obrys);
  border-left-width: 3px;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ecard:hover, .ecard:focus-within {
  border-color: var(--akcja);
  box-shadow: var(--cien-hover);
  transform: none;
}
.ebody .etitle { color: var(--tekst); }
.ebody .etitle:hover { color: var(--akcja); text-decoration: underline; }
.chip {
  padding: 4px 12px; font-size: var(--f-s); font-weight: 600;
  background: transparent; border: 1px solid var(--obrys); color: var(--tekst-sredni);
}
.chip.cat { background: transparent; }
.ereg { background: var(--akcja-ciemniej); color: #fff; font-weight: 600; font-size: var(--f-xs); }
.ereg:hover { background: var(--akcja); color: #fff; }
.sec-title {
  font-size: var(--f-eyebrow); font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--akcja);
}
.search-input input { border: 1px solid var(--obrys); background: var(--tlo-karta); font-family: inherit; }
.search-input input:focus-visible { outline: 2px solid var(--akcja); outline-offset: -2px; }
.view-switch { border: 1px solid var(--obrys); background: var(--tlo-karta); padding: 3px; }
.view-switch button { font-size: 13px; font-weight: 600; padding: 6px 15px; line-height: 17px; display: inline-flex; align-items: center; }
.view-switch button[aria-selected="true"], .view-switch button.on { background: var(--deep-baltic); color: #fff; }
.cal-cell { border: 1px solid var(--obrys); background: var(--tlo-karta); }
.cal-month h3 { font-size: var(--f-l); font-weight: 700; }
.cal-dow { font-size: var(--f-eyebrow); font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--tekst-slabszy); }
.cal-ev { background: var(--poboczne); color: var(--dane-ciemniej); border-left: 2px solid var(--dane); }
.sub-dialog, .empty, .sub-opt { background: var(--tlo-karta); border: 1px solid var(--obrys); }
.sub-opt:hover { border-color: var(--akcja); }
.sub-dialog h2 { font-size: 26px; letter-spacing: -0.02em; }

/* Ekrany dotykowe: cel dotyku min. 44 px */
@media (pointer: coarse) {
  .ecard .ecard-act, .ecard .ereg, .ecard-act, .ereg {
    min-height: 44px; box-sizing: border-box; justify-content: center;
  }
  .ecard .ecard-actions { gap: 8px; }
}
