/* ==========================================================================
   Marka EQUIOMNI – tokeny i nadpisania motywu Inspinia (skin "modern").
   Kontrasty (WCAG 2.1): biały na --eq-forest 8.7:1, na --eq-deep 10.9:1;
   tekst menu #B9CEC5 na --eq-deep 7.2:1; --eq-sage-strong na bieli 5.3:1;
   text-muted #66736E na bieli 5.0:1.
   --eq-sage (#6E9587) tylko dekoracyjnie / duże elementy (3.3:1 na bieli).
   ========================================================================== */
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/outfit-latin-ext-wght-normal-d84d7eeac97e34ac093de6dd79bd9dfb.woff2) format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/outfit-latin-wght-normal-91c1abde26995ed2f211f73c11f96047.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* AUD-17: bez Google Fonts – Inspinia importowała 9 arkuszy z fonts.googleapis.com (IP odwiedzającego do Google).
   Tekst panelu: Inter z /fonts (jak portal), zamiast Poppins skina „modern”. */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 400 600;
  src: url(/fonts/inter-latin-ext-wght-normal-01ba6c2a184b8cba08b0d57167664d75.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 400 600;
  src: url(/fonts/inter-latin-wght-normal-65850a373e258f1c897a2b3d75eb74de.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
html[data-skin] { --ins-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

:root {
  --eq-deep: #063F36;          /* Deep Green – sidebar, nagłówki, hover przycisków */
  --eq-forest: #0B5548;        /* Forest – kolor główny (primary) */
  --eq-sage: #6E9587;          /* Muted Sage – akcent dekoracyjny */
  --eq-sage-strong: #4E7366;   /* Sage do tekstu/przycisków secondary (AA) */
  --eq-sage-light: #9CBCAF;    /* Sage na ciemnym tle */
  --eq-ivory: #F5F2E9;         /* Warm Ivory */
  --eq-ivory-soft: #F8F6F0;    /* tło treści */
  --eq-ink: #22302B;           /* tekst podstawowy */
  --eq-font-display: 'Outfit', 'Poppins', system-ui, sans-serif;
}

html[data-skin=modern] {
  --ins-primary: var(--eq-forest); --ins-primary-rgb: 11,85,72;
  --ins-primary-bg-subtle: rgba(11, 85, 72, .1); --ins-primary-border-subtle: rgba(11, 85, 72, .28);
  --ins-primary-text-emphasis: var(--eq-deep);
  --ins-secondary: var(--eq-sage-strong); --ins-secondary-rgb: 78,115,102;
  --ins-secondary-bg-subtle: rgba(110, 149, 135, .16); --ins-secondary-border-subtle: rgba(110, 149, 135, .35);
  --ins-secondary-text-emphasis: #3B5A4F;
  /* semantyczne: przyciemnione tak, by biały tekst miał >= 4.5:1 */
  --ins-success: #1F7A4D; --ins-success-rgb: 31,122,77; --ins-success-text-emphasis: #175C3A;
  --ins-success-bg-subtle: rgba(31, 122, 77, .12);
  --ins-danger: #C23B3B; --ins-danger-rgb: 194,59,59; --ins-danger-text-emphasis: #962E2E;
  --ins-danger-bg-subtle: rgba(194, 59, 59, .12);
  --ins-link-color: var(--eq-forest); --ins-link-color-rgb: 11,85,72;
  --ins-link-hover-color: var(--eq-deep); --ins-link-hover-color-rgb: 6,63,54;
  --ins-body-bg: var(--eq-ivory-soft); --ins-body-bg-rgb: 248,246,240;
  --ins-body-color: var(--eq-ink);
  --ins-secondary-color: #66736E; --ins-secondary-color-rgb: 102,115,110; /* text-muted: 5.0:1 na bieli (Inspinia #9ba6b7 = 2.4:1) */
  --ins-heading-color: var(--eq-deep);
  --ins-focus-ring-color: rgba(11, 85, 72, .3);
  --ins-theme-card-box-shadow: 0 1px 2px rgba(6, 63, 54, .08), 0 1px 3px rgba(6, 63, 54, .06);
  --ins-border-radius: 6px;
  --ins-logo-lg-height: 38px; --ins-logo-sm-height: 32px;
}
html[data-skin=modern][data-menu-color=dark] {
  --ins-sidenav-bg: var(--eq-deep); --ins-sidenav-border-color: var(--eq-deep);
  --ins-sidenav-item-color: #B9CEC5; --ins-sidenav-item-hover-color: var(--eq-ivory);
  --ins-sidenav-item-hover-bg: rgba(245, 242, 233, .07);
  --ins-sidenav-item-active-color: var(--eq-ivory); --ins-sidenav-item-active-bg: var(--eq-forest);
}
html[data-skin=modern][data-topbar-color=light] { --ins-topbar-item-hover-color: var(--eq-forest); }
html[data-skin=modern][data-bs-theme=dark] {
  --ins-primary: #2F7A67; --ins-primary-rgb: 47,122,103; --ins-primary-text-emphasis: #8FC4B3;
  --ins-link-color: #8FC4B3; --ins-link-color-rgb: 143,196,179; --ins-link-hover-color: #B5DACD; --ins-link-hover-color-rgb: 181,218,205;
  --ins-body-bg: #12201C; --ins-body-bg-rgb: 18,32,28; --ins-secondary-bg: #172723; --ins-body-color: #D5DFDA;
  --ins-heading-color: #E6EEEA; --ins-secondary-color: #9AABA4; --ins-secondary-color-rgb: 154,171,164;
}
html[data-skin=modern][data-bs-theme=dark][data-menu-color=dark] { --ins-sidenav-bg: #0A2A24; --ins-sidenav-border-color: #0A2A24; --ins-sidenav-item-active-bg: #12443A; }

/* aliasy --bs-* używane w starszych regułach poniżej (Inspinia używa prefiksu --ins-) */
:root, html[data-skin] {
  --bs-primary: var(--ins-primary); --bs-primary-rgb: var(--ins-primary-rgb);
  --bs-success: var(--ins-success); --bs-success-rgb: var(--ins-success-rgb);
  --bs-warning: var(--ins-warning); --bs-warning-rgb: var(--ins-warning-rgb);
  --bs-danger: var(--ins-danger); --bs-danger-bg-subtle: var(--ins-danger-bg-subtle);
  --bs-border-color: var(--ins-border-color); --bs-body-bg: var(--ins-secondary-bg);
  --bs-secondary-color: var(--ins-secondary-color); --bs-tertiary-bg: var(--ins-tertiary-bg);
}

/* typografia: geometryczny Outfit dla nagłówków i wordmarku */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .page-title, .card-title, .modal-title, .eq-display {
  font-family: var(--eq-font-display); letter-spacing: -.005em;
}
.side-nav .side-nav-title { color: var(--eq-sage-light); letter-spacing: .14em; }
.side-nav > .side-nav-item.active > a, .side-nav .side-nav-link.active { box-shadow: inset 3px 0 0 var(--eq-sage-light); }
/* baner w sekcji stajni: stajnia czeka na aktywację przez admina platformy */
.side-nav .eq-nav-pending { display: flex; gap: 8px; margin: 4px 12px 8px; padding: 10px 12px; border-radius: 10px; background: #FCEFD6; color: #7A4A00; font-size: 12.5px; line-height: 1.35; }
.side-nav .eq-nav-pending i { font-size: 18px; flex: none; }
.side-nav .eq-nav-pending b { display: block; font-size: 13px; }
html[data-sidenav-size="condensed"] .side-nav .eq-nav-pending { margin: 4px 6px; padding: 8px; justify-content: center; }
html[data-sidenav-size="condensed"] .side-nav .eq-nav-pending div { display: none; }

/* logo w sidebarze / topbarze */
.eq-logo-lg, .eq-logo-sm { display: inline-block; vertical-align: middle; width: auto; }
.eq-logo-sm { width: var(--ins-logo-sm-height); }
.sidenav-menu .logo .logo-lg { padding-left: 6px; }

/* focus ring dostępny z klawiatury */
a:focus-visible, .btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible, .form-check-input:focus-visible, .side-nav-link:focus-visible {
  outline: 2px solid var(--eq-sage-strong); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(110, 149, 135, .25);
}
.form-control:focus, .form-select:focus { border-color: var(--eq-sage); box-shadow: 0 0 0 .2rem rgba(11, 85, 72, .14); }
.sidenav-menu a:focus-visible { outline-color: var(--eq-sage-light); }
.form-check-input:checked { background-color: var(--ins-primary); border-color: var(--ins-primary); }
.nav-tabs .nav-link.active { color: var(--eq-forest); border-bottom-color: var(--eq-forest); }
.pagination { --ins-pagination-active-bg: var(--eq-forest); --ins-pagination-active-border-color: var(--eq-forest); }

/* strony logowania / rejestracji / zaproszenia / błędu */
body.eq-auth {
  background: radial-gradient(1200px 600px at 85% -10%, rgba(110, 149, 135, .22), transparent 60%),
              linear-gradient(160deg, var(--eq-ivory) 0%, var(--eq-ivory-soft) 55%, #E9EFEA 100%);
  color: var(--eq-ink);
}
body.eq-auth::before { content: ""; position: fixed; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--eq-deep), var(--eq-forest) 60%, var(--eq-sage)); }
body.eq-auth .card { border: 1px solid rgba(6, 63, 54, .08); border-radius: 14px; box-shadow: 0 12px 32px rgba(6, 63, 54, .10); background: #fff; }
.eq-auth-brand { text-align: center; margin-bottom: .75rem; }
.eq-auth-logo { width: 190px; height: auto; display: block; margin: 0 auto .5rem; }
.eq-auth-logo-h { width: auto; height: 44px; }
.eq-auth-home { display: inline-block; border-radius: 8px; transition: opacity .15s; }
.eq-auth-home:hover { opacity: .8; }
.eq-auth-home:focus-visible { outline: 3px solid var(--eq-bar, #6DB59D); outline-offset: 4px; }
.eq-auth-back { align-self: flex-start; display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--bs-secondary-color); text-decoration: none; margin: -.5rem 0 .5rem; }
.eq-auth-back:hover { color: var(--eq-forest, #0B5548); }
.eq-claim { font-family: var(--eq-font-display); font-size: 1.05rem; font-weight: 400; color: var(--eq-sage-strong); letter-spacing: .02em; margin: 0 0 .25rem; }
body.eq-auth .btn-primary { font-family: var(--eq-font-display); font-weight: 500; letter-spacing: .02em; }

/* Schemat budynku w stylu planu stajni (rzędy komórek wzdłuż korytarza) */
.barn { display: inline-flex; flex-direction: column; border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: .75rem; background: var(--bs-body-bg); }
.barn-row { display: flex; gap: 0; }
.barn-cell { width: 68px; height: 96px; border: 2px solid #5b3a2e; box-sizing: border-box; display: flex; align-items: center; justify-content: center; background: #fff; position: relative; text-decoration: none; color: #5b3a2e; }
[data-bs-theme="dark"] .barn-cell { background: #2b2f33; color: #e9e0d6; border-color: #a17c6c; }
.barn-cell + .barn-cell { margin-left: -2px; }
.barn-cell .barn-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; text-align: center; line-height: 1.2; }
.barn-cell.free .barn-label { color: #9a988f; }
.barn-cell .barn-tag { display: inline-block; max-inline-size: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 600; letter-spacing: .02em; opacity: .8; vertical-align: top; }
.barn-cell.alert-cell { background: #fbe9d7; } [data-bs-theme="dark"] .barn-cell.alert-cell { background: #5a3a24; }
.barn-cell.room { background: #c9c2b8; color: #3f2c24; } [data-bs-theme="dark"] .barn-cell.room { background: #6b6259; color: #f4efe9; }
.barn-cell.gap { border-color: transparent; background: transparent; }
.barn-cell.oos { background: repeating-linear-gradient(45deg, #eee, #eee 6px, #ddd 6px, #ddd 12px); }
.barn-cell:hover { outline: 2px solid var(--bs-primary); outline-offset: -2px; z-index: 2; }
.barn-cell.editing { cursor: pointer; }
.barn-corridor { height: 60px; border-left: 2px solid #5b3a2e; border-right: 2px solid #5b3a2e; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #9a988f; margin: -2px 0; }
.barn-add { width: 32px; height: 96px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--bs-border-color); margin-left: 4px; color: var(--bs-secondary-color); text-decoration: none; }
/* Plan budynku z kształtem (kreator: L, U, T, skrzydła, koło/owal) – pozycje w jednostkach --s z BuildingLayout; komórki jak w rzędach (.barn-cell). */
.barn-shaped { --s: 64px; --door: #1e7a55; --corr: #e4eee9; display: inline-block; }
.barn-shaped.sm { --s: 40px; }
[data-bs-theme="dark"] .barn-shaped { --door: #7fd3a8; --corr: #1f3a33; }
.barn-plan { position: relative; }
.barn-plan > * { position: absolute; box-sizing: border-box; }
.barn-plan .barn-cell { width: calc(var(--s) + 2px); height: calc(var(--s) + 2px); margin: 0; padding: 2px; overflow: hidden; }
.barn-plan .barn-cell + .barn-cell { margin-left: 0; }
.barn-plan .barn-cell .barn-label { writing-mode: horizontal-tb; transform: none; max-width: 100%; font-size: 11px; line-height: 1.2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.barn-shaped.sm .barn-cell .barn-label { font-size: 9px; }
.barn-plan .barn-cell .barn-label span { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
.barn-plan .barn-cell.gap { border: 1px dashed var(--bs-border-color); }
.barn-plan .door-N { box-shadow: inset 0 4px 0 var(--door); } .barn-plan .door-S { box-shadow: inset 0 -4px 0 var(--door); }
.barn-plan .door-E { box-shadow: inset -4px 0 0 var(--door); } .barn-plan .door-W { box-shadow: inset 4px 0 0 var(--door); }
.barn-corr, .barn-entry { width: calc(var(--s) + 2px); height: calc(var(--s) + 2px); background: var(--corr); }
.barn-entry { display: flex; align-items: center; justify-content: center; color: var(--eq-forest, #0B5548); font-size: calc(var(--s) * .4); }
.barn-ring-corr { background: var(--corr); }
.barn-ring-center { background: #efe6d2; border: 1px solid #5b3a2e; display: flex; align-items: center; justify-content: center; color: #6a5634; font-weight: 600; font-size: calc(var(--s) * .26); text-align: center; }
[data-bs-theme="dark"] .barn-ring-center { background: #3d3626; color: #e8d9b5; border-color: #a17c6c; }
.barn-cell.mk-new { border-style: dashed; border-color: #6e9587; background: #ddf0e6; }
.barn-cell.mk-block { border-color: #a33030; background: #f8e1e1; border-width: 3px; }
.barn-cell.mk-detach { border-style: dashed; opacity: .6; }
.barn-cell.mk-del { border-style: dashed; opacity: .35; }
[data-bs-theme="dark"] .barn-cell.mk-new { background: #1d3b2e; } [data-bs-theme="dark"] .barn-cell.mk-block { background: #4a2222; border-color: #f08a8a; }
.shape-preview { overflow: auto; max-width: 100%; border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: .5rem; background: var(--bs-body-bg); }
.shape-preview .barn { border: 0; padding: 0; }
.shape-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: .4rem; }
.shape-tile { border: 1.5px solid var(--bs-border-color); border-radius: .6rem; padding: .4rem .25rem; display: flex; flex-direction: column; align-items: center; gap: .2rem; cursor: pointer; font-size: 12px; font-weight: 600; text-align: center; min-height: 64px; }
.shape-tile svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.shape-tile:has(input:checked) { border-color: var(--eq-forest, #0B5548); background: var(--eq-soft, #E4EEE9); color: var(--eq-forest, #0B5548); }
[data-bs-theme="dark"] .shape-tile:has(input:checked) { background: #22362f; color: #9ed3c2; border-color: #2e8b74; }
.shape-tile:has(input:focus-visible) { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.barn-legend { display: flex; flex-wrap: wrap; gap: .75rem; font-size: 12px; color: var(--bs-secondary-color); margin-top: .5rem; }
.barn-legend .lg { display: inline-block; width: 14px; height: 14px; border: 2px solid #5b3a2e; background: #fff; vertical-align: -2px; margin-right: 4px; border-radius: 2px; }
.barn-legend .lg.box { box-shadow: inset 0 -3px 0 #1e7a55; } .barn-legend .lg.room { background: #c9c2b8; } .barn-legend .lg.corr { background: #e4eee9; border-color: #c9dad2; }
.barn-legend .lg.mk-new { border-style: dashed; border-color: #6e9587; background: #ddf0e6; } .barn-legend .lg.mk-block { border-color: #a33030; background: #f8e1e1; }
.barn-legend .lg.mk-detach { border-style: dashed; opacity: .6; } .barn-legend .lg.mk-del { border-style: dashed; opacity: .35; }
.free-range { border: 2px dashed #5a7a4a; background: #dbe7d0; border-radius: .5rem; padding: .75rem 1rem; color: #3f5a33; }
[data-bs-theme="dark"] .free-range { background: #2f4227; color: #d6e6c9; }
.fc .fc-event { cursor: pointer; }
.nutrient-OK { color: var(--bs-success); } .nutrient-LOW { color: var(--bs-warning); } .nutrient-HIGH { color: var(--bs-danger); }
.turnout-row.blocked { background: var(--bs-danger-bg-subtle); }
.htmx-request .htmx-indicator { display: inline-block; } .htmx-indicator { display: none; }

.horse-tile{transition:box-shadow .15s,transform .15s;cursor:pointer}.horse-tile:hover{box-shadow:0 .5rem 1rem rgba(0,0,0,.12);transform:translateY(-2px)}

/* ---------- grafik właściciela ---------- */
:root{--k-training:#2c7a55;--k-lunge:#3d6dae;--k-ride:#c8691c;--k-consultation:#7a52b3;--k-other:#6c757d}
html[data-bs-theme=dark]{--k-training:#5fb98c;--k-lunge:#79a5e0;--k-ride:#e8954f;--k-consultation:#b195e0;--k-other:#9aa5a1}
/* Bootstrap .w-auto nie ma w buildzie Inspinii – bez tego selecty .form-select.w-auto (filtry grafiku i in.) zajmowały całą szerokość */
.w-auto{width:auto!important}
/* nagłówek grafiku (strzałki tygodnia/miesiąca, Ułóż tydzień, Dodaj trening) przyklejony pod topbarem – widoczny także po przewinięciu do szczegółów dnia */
@media (min-width:768px){.gr-head{position:sticky;top:var(--ins-topbar-height,65px);z-index:6;background:var(--ins-body-bg);margin-top:0!important;padding:.75rem 0 .5rem;margin-bottom:.5rem!important}}
.gr-grid{display:grid;grid-template-columns:130px repeat(7,minmax(118px,1fr));gap:6px;min-width:980px}
.gr-hd{font-size:12px;color:var(--bs-secondary-color);text-align:center;padding:4px 0}.gr-hd.today{color:var(--bs-primary);font-weight:600}
.gr-horse{display:flex;flex-direction:column;justify-content:center;gap:1px;padding:6px 8px;background:var(--bs-body-bg);border:1px solid var(--bs-border-color);border-radius:8px;font-size:13px}.gr-horse small{color:var(--bs-secondary-color);font-size:11px}
.gr-cell{min-height:100px;border:1px dashed var(--bs-border-color);border-radius:8px;display:flex;flex-direction:column;gap:4px;padding:3px;position:relative}.gr-cell.over{border-color:var(--bs-primary);background:rgba(var(--bs-primary-rgb),.08)}
.gr-plus{margin:auto;border:0;background:none;color:var(--bs-border-color);font-size:20px;line-height:1;width:100%;height:100%;min-height:88px}.gr-plus:hover{color:var(--bs-primary)}
.gr-card,.gr-row,.gr-chip{--c:var(--k-training)}.k-lunge{--c:var(--k-lunge)}.k-ride{--c:var(--k-ride)}.k-consultation{--c:var(--k-consultation)}.k-other{--c:var(--k-other)}
.gr-card{background:var(--bs-body-bg);border:1px solid var(--bs-border-color);border-left:4px solid var(--c);border-radius:6px;padding:5px 7px;font-size:11.5px;display:flex;flex-direction:column;gap:1px;min-height:90px;cursor:pointer}
.gr-card[draggable=true]{cursor:grab}.gr-card.dragging{opacity:.4}
.gr-card b{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gr-card .meta{color:var(--bs-secondary-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gr-card .pill,.gr-row .pill{margin-top:auto;align-self:flex-start;font-size:10.5px;font-weight:600;padding:1px 7px;border-radius:999px;background:var(--bs-tertiary-bg);color:var(--bs-secondary-color);white-space:nowrap}
.s-done .pill{background:rgba(var(--bs-success-rgb),.15);color:var(--bs-success)}.moved-in .pill{background:rgba(var(--bs-warning-rgb),.2);color:#8a5a00}
.gr-card.s-cancelled,.gr-card.s-moved,.gr-row.s-cancelled,.gr-row.s-moved,.gr-chip.s-cancelled,.gr-chip.s-moved{opacity:.55;border-left-color:var(--bs-secondary-color);background:var(--bs-tertiary-bg)}
.gr-card.s-cancelled:hover,.gr-card.s-moved:hover{opacity:1}.s-cancelled b,.s-moved b{text-decoration:line-through;font-weight:500}
.gr-card.locked{background:var(--bs-tertiary-bg);cursor:pointer}
.gr-row{display:flex;gap:8px;align-items:center;border:1px solid var(--bs-border-color);border-left:4px solid var(--c);border-radius:8px;padding:7px 10px;font-size:13px;margin-bottom:6px;cursor:pointer;background:var(--bs-body-bg)}.gr-row .g{flex:1;min-width:0}.gr-row .g small{display:block;color:var(--bs-secondary-color)}.gr-row .pill{margin:0}
.gr-marks{position:absolute;top:-5px;right:4px;display:flex;gap:3px}.gr-mark{width:9px;height:9px;border-radius:50%;background:var(--bs-secondary-color);display:block}.gr-mark.m-visit,.gr-mark.m-next_visit{background:var(--bs-danger)}.gr-mark.m-medication{background:var(--bs-warning)}.gr-mark.m-trip{background:#7b4a8e}.gr-mark.m-school{background:var(--ins-info, #35b9e1)}
.gr-legend{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--bs-secondary-color)}.gr-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:4px;background:var(--c)}
.gr-daystrip{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.gr-daystrip a{text-align:center;border:1px solid var(--bs-border-color);border-radius:8px;padding:4px 0;font-size:11px;color:var(--bs-secondary-color);text-decoration:none;display:flex;flex-direction:column}.gr-daystrip a.on{background:var(--bs-primary);color:#fff;border-color:var(--bs-primary)}
.gr-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.gr-mhd{text-align:center;font-size:12px;color:var(--bs-secondary-color)}
.gr-mday{min-height:96px;border:1px solid var(--bs-border-color);border-radius:6px;padding:3px;display:flex;flex-direction:column;gap:2px;background:var(--bs-body-bg)}.gr-mday.out{opacity:.45}.gr-mday.today{border-color:var(--bs-primary)}.gr-mnum{font-size:11px;color:var(--bs-secondary-color);text-decoration:none}
.gr-chip{border:0;border-left:3px solid var(--c);background:var(--bs-tertiary-bg);border-radius:4px;font-size:11px;text-align:left;padding:1px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gr-chip .g{font-weight:600}
.gr-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#1d2925;color:#fff;padding:10px 16px;border-radius:10px;z-index:1080;box-shadow:0 .5rem 1rem rgba(0,0,0,.25);font-size:14px;max-width:92vw}
@media (max-width:767px){.gr-sheet{width:100%!important;height:82vh;top:auto!important;bottom:0;border-radius:16px 16px 0 0;transform:translateY(100%)}.gr-sheet.show,.gr-sheet.showing{transform:none}}

.gr-card.sel,.gr-row.sel,.gr-chip.sel{outline:2px solid var(--bs-primary);outline-offset:1px}
.gr-detail{border-left:5px solid var(--c)}.gr-detail .pill{font-size:12px;font-weight:600;padding:2px 9px;border-radius:999px;background:var(--bs-tertiary-bg);color:var(--bs-secondary-color)}.gr-detail.s-done .pill{background:rgba(var(--bs-success-rgb),.15);color:var(--bs-success)}

/* ==========================================================================
   UI EQUIOMNI – komponenty (żywa dokumentacja: /platform/ui, fragmenty: templates/fragments/ui.html).
   Język wizualny z makiet: białe karty r=16 na tle ivory, kafle ikon deep green,
   chipy statusów (ikona + tekst), segmented "pigułka", liczby KPI fontem Outfit.
   Minimalny rozmiar tekstu 13px; pary kolorów chipów >= 4.5:1 (AA).
   ========================================================================== */
:root, html[data-skin] {
  --eq-surface: #fff; --eq-surface-2: var(--eq-ivory); --eq-line: rgba(6, 63, 54, .09);
  --eq-radius: 16px; --eq-radius-sm: 12px;
  --eq-shadow: 0 1px 2px rgba(6, 63, 54, .05), 0 6px 18px rgba(6, 63, 54, .07);
  --eq-shadow-hover: 0 2px 4px rgba(6, 63, 54, .07), 0 10px 26px rgba(6, 63, 54, .12);
  --eq-tile-bg: var(--eq-deep); --eq-tile-fg: var(--eq-ivory);
  --eq-soft-bg: #E4EEE9; --eq-soft-fg: var(--eq-forest);
  --eq-track: #E3E8E4; --eq-bar: var(--eq-forest);
  --eq-muted: #66736E; --eq-strong: var(--eq-deep);
  /* chipy: [tło, tekst, ikona] – kontrast tekstu do tła >= 5:1 */
  --eq-ok-bg: #E2F1E8; --eq-ok-fg: #175C3A;
  --eq-info-bg: #E1EEEA; --eq-info-fg: #0B5548;
  --eq-warn-bg: #FCEFD6; --eq-warn-fg: #7A4A00;
  --eq-danger-bg: #F9E2E0; --eq-danger-fg: #962E2E;
  --eq-neutral-bg: #ECEEEA; --eq-neutral-fg: #46524E;
}
html[data-bs-theme=dark] {
  --eq-surface: #172723; --eq-surface-2: #12201C; --eq-line: rgba(213, 223, 218, .10);
  --eq-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 6px 18px rgba(0, 0, 0, .25);
  --eq-shadow-hover: 0 2px 4px rgba(0, 0, 0, .3), 0 10px 26px rgba(0, 0, 0, .35);
  --eq-tile-bg: #2F7A67; --eq-tile-fg: #F5F2E9;
  --eq-soft-bg: #1F3A33; --eq-soft-fg: #A9D3C4;
  --eq-track: #263A35; --eq-bar: #6DB59D;
  --eq-muted: #9AABA4; --eq-strong: #E6EEEA;
  --eq-ok-bg: #1C3B2B; --eq-ok-fg: #9FDDB8;
  --eq-info-bg: #1B3832; --eq-info-fg: #A9D3C4;
  --eq-warn-bg: #3D2F14; --eq-warn-fg: #F3CD85;
  --eq-danger-bg: #432222; --eq-danger-fg: #F2AAA5;
  --eq-neutral-bg: #26312E; --eq-neutral-fg: #C5D0CB;
}

/* --- karta --- */
.eq-card { background: var(--eq-surface); border: 1px solid var(--eq-line); border-radius: var(--eq-radius); box-shadow: var(--eq-shadow); padding: 1.125rem 1.25rem; margin-bottom: 1.25rem; position: relative; }
.eq-card-flush { padding: 0; overflow: hidden; }
.eq-card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .875rem; }
.eq-card-title { font-family: var(--eq-font-display); font-size: 1.0625rem; font-weight: 600; color: var(--eq-strong); margin: 0; }
.eq-card-link { font-size: .875rem; font-weight: 500; white-space: nowrap; text-decoration: none; }
.eq-card-link::after { content: "\203A"; margin-left: .3em; }
a.eq-card, .eq-card.is-link { transition: box-shadow .15s, transform .15s; }
a.eq-card { display: block; color: inherit; text-decoration: none; }
a.eq-card:hover, .eq-card.is-link:hover { box-shadow: var(--eq-shadow-hover); transform: translateY(-1px); }
.eq-muted { color: var(--eq-muted); }
.eq-display { font-family: var(--eq-font-display); }

/* powitanie na pulpicie */
.eq-hello { display: flex; align-items: center; gap: .875rem; padding: 1.25rem 0 1rem; }
.eq-hello-sub { font-size: .9375rem; color: var(--eq-muted); margin: 0; }
.eq-hello-name { font-family: var(--eq-font-display); font-size: 1.625rem; font-weight: 600; color: var(--eq-strong); margin: 0; line-height: 1.15; }
.eq-hello-mark { width: 48px; height: 48px; flex: none; }
html[data-bs-theme=dark] .eq-hello-mark { content: url(/img/brand/equiomni-symbol-ivory-56c118bcfc5e5d93643eeb34fa906166.svg); }
.eq-section-title { font-family: var(--eq-font-display); font-size: 1.125rem; font-weight: 600; color: var(--eq-strong); margin: .25rem 0 .75rem; display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }

/* --- kafel ikony --- */
.eq-icon-tile { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: var(--eq-radius-sm); background: var(--eq-tile-bg); color: var(--eq-tile-fg); font-size: 1.375rem; line-height: 1; }
.eq-icon-tile.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 1.125rem; }
.eq-icon-tile.lg { width: 56px; height: 56px; border-radius: 14px; font-size: 1.75rem; }
.eq-icon-tile.soft { background: var(--eq-soft-bg); color: var(--eq-soft-fg); }
.eq-icon-tile.warn { background: var(--eq-warn-bg); color: var(--eq-warn-fg); }
.eq-icon-tile.danger { background: var(--eq-danger-bg); color: var(--eq-danger-fg); }

/* --- chip statusu (zawsze ikona + tekst) --- */
.eq-chip { --c-bg: var(--eq-neutral-bg); --c-fg: var(--eq-neutral-fg); display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; background: var(--c-bg); color: var(--c-fg); font-size: .8125rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.eq-chip i { font-size: 1rem; line-height: 1; }
.eq-chip.ok { --c-bg: var(--eq-ok-bg); --c-fg: var(--eq-ok-fg); }
.eq-chip.info { --c-bg: var(--eq-info-bg); --c-fg: var(--eq-info-fg); }
.eq-chip.warn { --c-bg: var(--eq-warn-bg); --c-fg: var(--eq-warn-fg); }
.eq-chip.danger { --c-bg: var(--eq-danger-bg); --c-fg: var(--eq-danger-fg); }
.eq-chips { display: flex; flex-wrap: wrap; gap: .375rem; }

/* --- KPI --- */
.eq-kpi-label { font-size: .875rem; font-weight: 500; color: var(--eq-muted); margin: 0 0 .25rem; }
.eq-kpi-value { font-family: var(--eq-font-display); font-size: 2.25rem; font-weight: 600; line-height: 1.05; color: var(--eq-strong); font-variant-numeric: tabular-nums; }
.eq-kpi-value small { font-size: .55em; font-weight: 500; color: var(--eq-muted); }
.eq-kpi-pct { font-family: var(--eq-font-display); font-weight: 600; font-size: .9375rem; color: var(--eq-strong); }
.eq-kpi-desc { font-size: .8125rem; color: var(--eq-muted); margin-top: .25rem; }
.eq-progress { height: 8px; border-radius: 999px; background: var(--eq-track); overflow: hidden; margin-top: .625rem; }
.eq-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--eq-bar); }
.eq-progress.warn > span { background: #B7791F; } .eq-progress.danger > span { background: var(--ins-danger); }
.eq-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: .5rem; margin-top: 1rem; }
.eq-stat { background: var(--eq-surface-2); border-radius: var(--eq-radius-sm); padding: .5rem .5rem .55rem; text-align: center; text-decoration: none; color: inherit; }
.eq-stat b { display: block; font-family: var(--eq-font-display); font-size: 1.375rem; font-weight: 600; color: var(--eq-strong); line-height: 1.2; }
.eq-stat span { font-size: .8125rem; color: var(--eq-muted); }
.eq-stat.danger b { color: var(--eq-danger-fg); } .eq-stat.warn b { color: var(--eq-warn-fg); }

/* --- segmented control (pigułka) – linki, przyciski lub htmx --- */
.eq-segmented { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--eq-soft-bg); max-width: 100%; overflow-x: auto; }
.eq-segmented > a, .eq-segmented > button { appearance: none; border: 0; background: transparent; color: var(--eq-soft-fg); font-size: .875rem; font-weight: 600; padding: .4rem 1rem; border-radius: 999px; text-decoration: none; white-space: nowrap; cursor: pointer; line-height: 1.4; transition: background .15s, color .15s; }
.eq-segmented > a:hover, .eq-segmented > button:hover { background: rgba(11, 85, 72, .08); }
.eq-segmented > .active, .eq-segmented > [aria-current=page], .eq-segmented > [aria-pressed=true], .eq-segmented > [aria-selected=true] { background: var(--eq-tile-bg); color: var(--eq-tile-fg); box-shadow: 0 1px 3px rgba(6, 63, 54, .25); }
.eq-segmented.block { display: flex; } .eq-segmented.block > * { flex: 1; text-align: center; }

/* --- karta konia --- */
.eq-horse-card { display: grid; grid-template-columns: 112px 1fr; gap: 1rem; align-items: stretch; }
.eq-horse-photo { width: 112px; aspect-ratio: 1; align-self: start; border-radius: var(--eq-radius-sm); object-fit: cover; background: var(--eq-surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.eq-horse-photo img.eq-sygnet { width: 60%; height: auto; opacity: .55; }
html[data-bs-theme=dark] .eq-horse-photo img.eq-sygnet { content: url(/img/brand/equiomni-symbol-ivory-56c118bcfc5e5d93643eeb34fa906166.svg); opacity: .45; }
.eq-horse-body { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.eq-horse-name { font-family: var(--eq-font-display); font-size: 1.25rem; font-weight: 600; color: var(--eq-strong); margin: 0; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.eq-horse-name a { color: inherit; text-decoration: none; }
.eq-horse-name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--eq-radius); } /* cała karta klikalna */
.eq-horse-name .ti-chevron-right { color: var(--eq-muted); font-size: 1.125rem; }
.eq-horse-meta { font-size: .875rem; color: var(--eq-muted); margin: 0; overflow: hidden; text-overflow: ellipsis; }
.eq-horse-meta i { margin-right: .2rem; }
.eq-horse-card .eq-chips { margin-top: auto; padding-top: .5rem; }
@media (max-width: 420px) { .eq-horse-card { grid-template-columns: 84px 1fr; gap: .75rem; } .eq-horse-photo { width: 84px; } }

/* --- szybkie akcje --- */
.eq-quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .75rem .5rem; list-style: none; margin: 0; padding: 0; }
.eq-qa { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-decoration: none; color: var(--eq-strong); font-size: .8125rem; font-weight: 500; text-align: center; line-height: 1.25; padding: .25rem; border-radius: var(--eq-radius-sm); }
.eq-qa-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--eq-surface); border: 1px solid var(--eq-line); box-shadow: var(--eq-shadow); color: var(--eq-forest); font-size: 1.5rem; transition: background .15s, color .15s; }
html[data-bs-theme=dark] .eq-qa-icon { color: #A9D3C4; }
.eq-qa:hover .eq-qa-icon, .eq-qa.primary .eq-qa-icon { background: var(--eq-tile-bg); color: var(--eq-tile-fg); border-color: transparent; }

/* --- lista "Na dziś" / szybki podgląd --- */
.eq-list { list-style: none; margin: 0; padding: 0; }
.eq-list > li + li { border-top: 1px solid var(--eq-line); }
.eq-list-row { display: flex; align-items: center; gap: .75rem; padding: .625rem 0; color: inherit; text-decoration: none; }
a.eq-list-row:hover .eq-list-text b { color: var(--ins-link-color); }
.eq-list-count { font-family: var(--eq-font-display); font-size: 1.375rem; font-weight: 600; min-width: 2ch; text-align: right; color: var(--eq-strong); font-variant-numeric: tabular-nums; }
.eq-list-text { flex: 1; min-width: 0; font-size: .9375rem; line-height: 1.3; }
.eq-list-text b { font-weight: 600; display: block; }
.eq-list-text small { display: block; font-size: .8125rem; color: var(--eq-muted); }
.eq-list-row > .ti-chevron-right { color: var(--eq-muted); }
.eq-peek { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.eq-peek-item { display: flex; gap: .75rem; align-items: flex-start; padding: .875rem; background: var(--eq-surface); border: 1px solid var(--eq-line); border-radius: var(--eq-radius-sm); box-shadow: var(--eq-shadow); color: inherit; text-decoration: none; min-width: 0; }
.eq-peek-item:hover { box-shadow: var(--eq-shadow-hover); }
.eq-peek-item b { display: block; font-size: .875rem; font-weight: 600; color: var(--eq-strong); }
.eq-peek-item .v { display: block; font-family: var(--eq-font-display); font-size: 1.125rem; font-weight: 600; color: var(--eq-strong); line-height: 1.25; }
.eq-peek-item small { display: block; font-size: .8125rem; color: var(--eq-muted); }
@media (max-width: 400px) { .eq-peek { grid-template-columns: 1fr; } }

/* data w kafelku (najbliższe wydarzenia) */
.eq-date-tile { flex: none; width: 52px; text-align: center; border-radius: var(--eq-radius-sm); background: var(--eq-surface-2); border: 1px solid var(--eq-line); padding: .3rem 0; line-height: 1.1; }
.eq-date-tile b { display: block; font-family: var(--eq-font-display); font-size: 1.375rem; font-weight: 600; color: var(--eq-strong); }
.eq-date-tile span { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--eq-muted); }

/* --- oś czasu (godzina | ikona | treść | znacznik) --- */
.eq-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.eq-tl-item { display: grid; grid-template-columns: 3.25rem 36px 1fr auto; gap: .75rem; align-items: start; padding: .5rem 0; position: relative; }
.eq-tl-item + .eq-tl-item::before { content: ""; position: absolute; left: calc(3.25rem + .75rem + 17px); top: -.5rem; height: 1rem; border-left: 2px dotted var(--eq-line); }
.eq-tl-time { font-family: var(--eq-font-display); font-size: .9375rem; font-weight: 600; color: var(--eq-strong); padding-top: .45rem; font-variant-numeric: tabular-nums; }
.eq-tl-body { min-width: 0; padding-top: .1rem; }
.eq-tl-body b { display: block; font-size: .9375rem; font-weight: 600; color: var(--eq-strong); }
.eq-tl-body small { display: block; font-size: .8125rem; color: var(--eq-muted); }
.eq-tl-body a { color: inherit; text-decoration: none; } .eq-tl-body a:hover b { color: var(--ins-link-color); }
.eq-tl-check { padding-top: .35rem; font-size: 1.5rem; line-height: 1; color: var(--eq-muted); }
.eq-tl-check.done { color: var(--eq-ok-fg); }
.eq-tl-check .form-check-input { width: 1.375rem; height: 1.375rem; margin: 0; border-radius: 50%; }
.eq-tl-item.done .eq-tl-body b { text-decoration: line-through; text-decoration-color: var(--eq-muted); }

/* pusty stan w karcie */
.eq-empty { display: flex; gap: .75rem; align-items: center; color: var(--eq-muted); font-size: .9375rem; padding: .25rem 0; }

/* dokumentacja komponentów (/platform/ui) */
.eq-doc-swatch { display: flex; gap: .5rem; flex-wrap: wrap; }
.eq-doc-swatch span { width: 120px; border-radius: var(--eq-radius-sm); padding: 2.25rem .5rem .4rem; font-size: .75rem; font-weight: 600; border: 1px solid var(--eq-line); }
.eq-doc-code { font-size: .8125rem; background: var(--eq-surface-2); border-radius: 10px; padding: .625rem .75rem; margin: .75rem 0 0; white-space: pre-wrap; color: var(--eq-strong); }

/* Dokumenty prawne (/legal/*) i ekran akceptacji regulaminu */
.eq-legal-body h2 { font-size: 1.25rem; font-weight: 700; margin-top: 1.5rem; }
.eq-legal-body h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.25rem; }
.eq-legal-body h4 { font-size: .95rem; font-weight: 700; margin-top: 1rem; }
.eq-legal-body blockquote { border-left: 4px solid #C9A55A; background: #FBF6EA; padding: .5rem .75rem; margin: 0 0 1rem; font-weight: 600; }
.eq-legal-scroll { max-height: 50vh; overflow-y: auto; }
.eq-reg-consents .form-check { margin-bottom: .35rem; }

/* Stajnia wpisana ręcznie (poza Equiomni) – przerywana ramka, odróżnia od stajni w systemie */
.eq-chip.manual { background: transparent; border: 1px dashed currentColor; }
.eq-place-manual { border-bottom: 1px dashed currentColor; }
/* Grafik stajni: dodawanie z pola siatki, dymek wpisu, przeciąganie */
/* Szerokości kolumn: godziny 64px, lonżownik/karuzela/miejsce na 1 konia (TrainingVenue.compactColumn) 128px,
   hala i place dzielą resztę po równo; min-width tabeli (64 + 170·główne + 128·wąskie) liczy szablon – poniżej przewijanie w poziomie. */
.eq-sched { table-layout: fixed; width: 100%; }
.eq-sched col.eq-col-time { width: 64px; }
.eq-sched col.eq-col-compact { width: 128px; }
.eq-sched thead th { overflow-wrap: anywhere; line-height: 1.25; vertical-align: top; }
.eq-sched thead th small { display: block; }
.eq-sched .eq-bk { overflow-wrap: anywhere; }
.eq-sched td.eq-slot { cursor: copy; position: relative; }
.eq-sched td.eq-slot:hover { background: var(--bs-tertiary-bg); }
.eq-sched td.eq-slot:hover:not(:has(.eq-bk:hover))::after { content: "+"; position: absolute; right: 6px; bottom: 2px; color: var(--bs-secondary-color); font-weight: 600; }
.eq-sched td.eq-slot-over { outline: 2px dashed var(--bs-primary); outline-offset: -3px; background: var(--bs-primary-bg-subtle); }
.eq-sched .eq-bk { cursor: pointer; }
.eq-sched .eq-bk-edit[draggable=true] { cursor: grab; }
.eq-sched .eq-bk:focus-visible { outline: 2px solid var(--bs-primary); }
/* plan treningów pensjonariuszy (V49): planowane, niepotwierdzone – nie zajmuje miejsca */
.eq-plan { border: 1px dashed var(--bs-secondary-color); background: transparent; color: var(--bs-body-color); cursor: pointer; opacity: .85; }
.eq-plan.eq-plan-mine { border-color: var(--bs-primary); }
.eq-plan.eq-plan-trace { opacity: .5; border-style: dotted; text-decoration: none; }
.eq-plan.eq-plan-trace b { text-decoration: line-through; }
.eq-plan:focus-visible { outline: 2px solid var(--bs-primary); }
.eq-plan-strip .eq-plan { max-width: 280px; }
.eq-bk-pop { position: absolute; z-index: 1080; font-size: 13px; }
.eq-bk-pop .eq-pop-dl dt { font-weight: 500; color: var(--bs-secondary-color); }
.eq-bk-pop .eq-pop-dl dd { margin-bottom: 2px; }

/* Grafik: ramka „blokada czy wyłączność” – część zależna od przełącznika wyłączności */
#entryForm:has(#eexcl:checked) .eq-kind-shared, #entryForm:not(:has(#eexcl:checked)) .eq-kind-excl { display: none; }
.eq-kind-info summary { cursor: pointer; }
/* ---------- Formularz i tablica zgłoszeń opieki (V29) ---------- */
.care-form .cf-section { margin-bottom: .9rem; }
.care-form .cf-label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--eq-muted); margin-bottom: .35rem; }
.care-form .cf-list { max-height: 11rem; overflow-y: auto; }
.care-form .cf-horse.active { background: var(--eq-soft-bg); color: var(--eq-soft-fg); border-color: var(--eq-line); }
.care-form .cf-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.care-form .cf-tiles.cf-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.care-form .cf-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding: .6rem .4rem; border: 1px solid var(--eq-line); border-radius: var(--eq-radius-sm); background: var(--eq-surface); color: inherit; font-weight: 600; font-size: .875rem; cursor: pointer; user-select: none; margin: 0; }
.care-form .cf-tile i { font-size: 1.5rem; color: var(--eq-sage-strong); }
.care-form .cf-tile:hover { border-color: var(--eq-sage); }
.care-form .cf-tile.active { background: var(--eq-soft-bg); color: var(--eq-soft-fg); border-color: var(--eq-forest); box-shadow: inset 0 0 0 1px var(--eq-forest); }
.care-form .cf-tile.active i { color: var(--eq-forest); }
.care-form .cf-pill { flex-direction: row; padding: .4rem .8rem; border-radius: 999px; font-size: .8125rem; }
.care-form .cf-pill i { font-size: 1.05rem; }
.care-form .cf-sev-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border: 1px solid var(--eq-line); font-weight: 600; background: var(--eq-surface); }
.care-form .cf-sev-btn.sev-info { color: var(--eq-info-fg); }
.care-form .cf-sev-btn.sev-warning { color: var(--eq-warn-fg); }
.care-form .cf-sev-btn.sev-critical { color: var(--eq-danger-fg); }
.care-form .cf-sev-btn.sev-info.active { background: var(--eq-info-bg); border-color: var(--eq-info-fg); }
.care-form .cf-sev-btn.sev-warning.active { background: var(--eq-warn-bg); border-color: var(--eq-warn-fg); }
.care-form .cf-sev-btn.sev-critical.active { background: var(--eq-danger-bg); border-color: var(--eq-danger-fg); }
.care-form .cf-summary { background: var(--eq-surface-2); border-radius: var(--eq-radius-sm); padding: .65rem .85rem; }
@media (max-width: 575.98px) { .care-form .cf-tiles:not(.cf-row) { grid-template-columns: repeat(2, 1fr); } }
.care-board .cb-group { border-left: 3px solid transparent; }
.care-board .cb-group.current { border-left-color: var(--eq-forest); background: var(--eq-soft-bg); }
/* minione pory przygaszone – poza zaległymi zadaniami (V80), które mają być widoczne */
.care-board .cb-group.past > *:not(.cb-task.overdue) { opacity: .6; }
.care-board .cb-head { display: flex; align-items: center; gap: .5rem; padding: .55rem 1rem; font-weight: 700; }
.care-board .cb-head i { font-size: 1.2rem; color: var(--eq-sage-strong); }
.care-board .cb-item { display: flex; gap: .75rem; align-items: flex-start; padding: .55rem 1rem; border-top: 1px solid var(--eq-line); }
.care-board .cb-group.current .eq-chip:not(.ok) { background: var(--eq-surface); }
/* „Opieka i tablica”: na telefonie widać jedną część (przełącznik), od xl obie kolumny */
@media (max-width: 1199.98px) { .eq-care-board .eq-cb-pane:not(.eq-cb-active) { display: none; } }
.eq-care-board .eq-cb-pane > div > div > .d-flex:first-child, .eq-care-board .eq-cb-pane > div > div > h4:first-child { margin-top: .5rem !important; }
/* tablica w połowie szerokości: kolumny wpisów i kalendarza jedna pod drugą */
.eq-care-board #cbBoard .row > [class*="col-lg-"], .eq-care-board #cbBoard .row > [class*="col-md-"] { flex: 0 0 100%; max-width: 100%; }
/* Kreator reguł grafiku: zdanie z polami do uzupełnienia (ustawienia → Reguły konfliktów) */
.eq-rule-wizard .form-select, .eq-rule-wizard input.form-control { display: inline-block !important; width: auto !important; max-width: 100%; vertical-align: baseline; margin: 2px 4px; font-weight: 600; }
.eq-rule-wizard input.form-control { width: 5.5rem !important; }
.eq-rule-wizard .form-check { padding-left: 1.75em; }
.eq-rule-kind { white-space: normal; }

/* przełącznik kontekstu widoku w górnym pasku: nazwa kontekstu + znaczek roli */
.eq-view-switch { display: inline-flex; align-items: center; gap: .4rem; max-width: 60vw; color: var(--ins-body-color); }
.eq-view-switch .eq-view-prefix { color: var(--eq-muted); font-weight: 400; }
.eq-view-switch .eq-view-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.eq-view-role { background: var(--eq-soft-bg); color: var(--eq-soft-fg); font-weight: 600; white-space: nowrap; }
@media (max-width: 575.98px) { .eq-view-switch .eq-view-role { display: none; } }

/* przewodnik „Krok po kroku” nowego właściciela konia (pulpit, widok „Moje konie”) */
.eq-guide-hero { border-left: 4px solid var(--eq-forest); }
.eq-guide-progress .progress { height: .5rem; background: var(--eq-track); }
.eq-guide-progress .progress-bar { background: var(--eq-bar); }
.eq-guide-steps { margin-top: .25rem; }
.eq-guide-num { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--eq-soft-bg); color: var(--eq-soft-fg); font-family: var(--eq-font-display); font-weight: 700; flex: none; }
.eq-guide-num.sm { width: 1.5rem; height: 1.5rem; font-size: .8rem; }
.eq-guide-step.done { opacity: .78; }
.eq-guide-step.done .eq-guide-num { background: var(--eq-ok-bg); color: var(--eq-ok-fg); }
.eq-guide-done summary { cursor: pointer; font-weight: 600; }
.eq-guide-step.current { box-shadow: 0 0 0 2px var(--eq-forest); }
.eq-guide-consent { background: var(--eq-soft-bg); border-radius: .5rem; padding: .75rem; margin-bottom: .5rem; }
.eq-guide-optional { margin-top: .25rem; }

/* Karta „Twój plan” (fragments/plan.html) */
.eq-plan-list li { display: flex; gap: .4rem; align-items: baseline; flex-wrap: wrap; padding: .25rem 0; }
.eq-plan-list li .ti { flex: none; }
.eq-plan-tester { border-color: var(--bs-info-border-subtle, #9eeaf9); }

/* Zaproszenie właściciela (V34): QR na karcie pobytu */
.eq-qr { width: 180px; height: 180px; margin: 0 auto; }
.eq-qr svg { width: 100%; height: 100%; }
.eq-plan-funded { border-top: 1px solid var(--eq-line); padding-top: .75rem; margin-top: .75rem; }

/* Dzwonek: sprawy do decyzji z akcjami + ostatnie powiadomienia (10.11.2026) */
.eq-bell-menu { width: 380px; max-width: calc(100vw - 24px); }
.eq-bell-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--bs-border-color); }
.eq-bell-body { max-height: min(70vh, 520px); overflow-y: auto; }
.eq-bell-section { padding: 10px 16px 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--bs-secondary-color); }
.eq-bell-item { display: block; padding: 8px 16px; color: var(--bs-body-color); font-size: 13px; border-bottom: 1px solid var(--bs-border-color-translucent); }
.eq-bell-item:hover { background: var(--bs-tertiary-bg); }
.eq-bell-item.is-unread span { font-weight: 600; }
.eq-bell-foot { display: flex; justify-content: space-between; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--bs-border-color); font-size: 13px; }
.eq-bell-decide { color: #5c3b00 !important; }
.eq-decision { display: flex; gap: 10px; padding: 10px 16px; border-left: 3px solid #E0A526; background: rgba(224, 165, 38, .07); border-bottom: 1px solid var(--bs-border-color-translucent); }
.eq-decision.is-waiting { border-left-color: var(--bs-border-color); background: transparent; }
.eq-decision-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #FCEFD6; color: #7A4A00; font-size: 16px; }
.eq-decision.is-waiting .eq-decision-icon { background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); }
.eq-decision-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.eq-decision-detail { font-size: 12px; color: var(--bs-secondary-color); margin-top: 2px; }
.eq-decision-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.eq-decision .min-w-0 { min-width: 0; }
.eq-decide-card { border-left: 4px solid #E0A526; }
.gr-scope{font-size:11px}.gr-card .scope-stable,.gr-row .scope-stable{color:var(--bs-primary)}.gr-card .scope-outside{color:var(--bs-success)}

/* Legenda oznaczeń stajni (lista koni): dymek nad „info” po najechaniu / fokusie, statusy jeden pod drugim. */
.eq-place-legend { position: relative; display: inline-block; }
.eq-place-legend .eq-legend-pop { display: none; position: absolute; z-index: 1060; bottom: calc(100% + 6px); left: 0; width: min(560px, calc(100vw - 32px)); padding: .75rem; }
.eq-place-legend .eq-legend-pop::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; }
.eq-place-legend:hover .eq-legend-pop, .eq-place-legend:focus-within .eq-legend-pop { display: block; }
.eq-place-legend .eq-legend-row { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .6rem; align-items: center; padding: .3rem 0; }
.eq-place-legend .eq-legend-row + .eq-legend-row { border-top: 1px dashed var(--bs-border-color); }
@media (max-width: 575.98px) { .eq-place-legend .eq-legend-row { grid-template-columns: 1fr; } }

/* Karta konia → Dostęp dla innych: kafelki „komu udostępniasz” (rola + domyślne prawa). */
.eq-role-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .5rem; }
.eq-role-tile { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .6rem .4rem; border: 1px solid var(--bs-border-color); border-radius: .6rem; background: var(--bs-body-bg); color: var(--bs-body-color); font-size: .8rem; line-height: 1.15; text-align: center; }
.eq-role-tile i { font-size: 1.35rem; color: var(--bs-primary); }
.eq-role-tile:hover { border-color: var(--bs-primary); }
.eq-role-tile.active { border-color: var(--bs-primary); background: var(--bs-primary-bg-subtle); box-shadow: inset 0 0 0 1px var(--bs-primary); font-weight: 600; }


/* Formularz konia: „Więcej” – strzałka obraca się po rozwinięciu */
.eq-more-toggle .ti-chevron-down { display: inline-block; transition: transform .15s; }
.eq-more-toggle:not(.collapsed) .ti-chevron-down { transform: rotate(180deg); }
/* Grafik: kafelek wpisu rozciągnięty od–do (pozycja i szerokość z schedule.js), pole z wolnym paskiem z prawej */
.eq-sched .eq-bk.eq-bk-placed { position: absolute; z-index: 2; margin: 0 !important; overflow: hidden; box-sizing: border-box; }
.eq-sched .eq-bk.eq-bk-placed:hover, .eq-sched .eq-bk.eq-bk-placed:focus-visible { z-index: 3; }
#schedRoot.eq-dragging .eq-sched .eq-bk { pointer-events: none; }
.eq-sched .eq-bk.eq-bk-narrow { overflow-wrap: normal; padding-left: .3rem !important; padding-right: .3rem !important; }
.eq-sched .eq-bk.eq-bk-narrow > div, .eq-sched .eq-bk.eq-bk-narrow > div > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-sched .eq-bk.eq-bk-narrow .eq-bk-grip { display: none; }
.eq-sched td.eq-slot.eq-slot-full { cursor: not-allowed; }
.eq-sched td.eq-slot.eq-slot-full:hover { background: transparent; }
.eq-sched td.eq-slot.eq-slot-full:hover::after { content: none; }

/* Nawigacja po dniach (fragments/date-nav.html): data między strzałkami, klik otwiera kalendarz */
.eq-date-nav .eq-date-pick, .gr-head .eq-date-pick { position: relative; white-space: nowrap; }
.eq-date-nav .eq-date-pick span::first-letter { text-transform: uppercase; }
.eq-date-nav .eq-date-input, .gr-head .eq-date-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }

/* Grafik stajni – widoki Miejsca / Tory / Kalendarz / Lista i wpis bez miejsca (V52).
   Kolory w Torach, Kalendarzu i Liście: wpis stajni – zielony, trening z miejscem – niebieski, bez miejsca – żółty („do uzupełnienia”). */
:root, html[data-skin] {
  --eq-sched-entry-bg: var(--eq-ok-bg); --eq-sched-entry-line: #2E8B57; --eq-sched-entry-fg: var(--eq-ok-fg);
  --eq-sched-venue-bg: #E3EDF9; --eq-sched-venue-line: #3B6FB6; --eq-sched-venue-fg: #1D3F73;
  --eq-sched-novenue-bg: var(--eq-warn-bg); --eq-sched-novenue-line: #D99A1E; --eq-sched-novenue-fg: var(--eq-warn-fg);
}
html[data-bs-theme=dark] {
  --eq-sched-entry-line: #6DB59D;
  --eq-sched-venue-bg: #1C2C44; --eq-sched-venue-line: #7FA7E0; --eq-sched-venue-fg: #C7DAF5;
  --eq-sched-novenue-line: #E0B25A;
}
.eq-sched-views .btn { white-space: nowrap; }
.eq-bk .eq-bk-venue { display: none; }
#schedRoot:not(.eq-view-venues):not(.eq-view-lanes) .eq-bk .eq-bk-venue { display: block; }
.eq-view-venues .eq-bk.eq-bk-novenue .eq-bk-venue { display: block; }
.eq-badge-novenue { background: var(--eq-sched-novenue-bg); color: var(--eq-sched-novenue-fg); border: 1px solid var(--eq-sched-novenue-line); font-weight: 500; }
.eq-sched th.eq-col-novenue { background: var(--eq-sched-novenue-bg) !important; color: var(--eq-sched-novenue-fg); }
.eq-sched td.eq-slot-novenue { background: color-mix(in srgb, var(--eq-sched-novenue-bg) 35%, transparent); }
#schedRoot:not(.eq-view-venues) .eq-bk.eq-cat-entry { background: var(--eq-sched-entry-bg) !important; border-color: var(--eq-sched-entry-line) !important; color: var(--eq-sched-entry-fg); }
#schedRoot:not(.eq-view-venues) .eq-bk.eq-cat-venue { background: var(--eq-sched-venue-bg) !important; border-color: var(--eq-sched-venue-line) !important; color: var(--eq-sched-venue-fg); }
#schedRoot:not(.eq-view-venues) .eq-bk.eq-cat-novenue,
.eq-bk.eq-bk-novenue { background: var(--eq-sched-novenue-bg) !important; border-color: var(--eq-sched-novenue-line) !important; color: var(--eq-sched-novenue-fg); }
.eq-legend-dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; vertical-align: -1px; border-left: 3px solid; }
.eq-legend-dot.eq-cat-entry { background: var(--eq-sched-entry-bg); border-color: var(--eq-sched-entry-line); }
.eq-legend-dot.eq-cat-venue { background: var(--eq-sched-venue-bg); border-color: var(--eq-sched-venue-line); }
.eq-legend-dot.eq-cat-novenue { background: var(--eq-sched-novenue-bg); border-color: var(--eq-sched-novenue-line); }
.eq-cal-filter .badge { font-weight: 500; margin-left: .35rem; }
/* Lista dnia: wiersz = czas od–do | treść; kliknięcie otwiera szczegóły */
.eq-sched-list .eq-bk { display: grid; grid-template-columns: 7.5rem 1fr; column-gap: .75rem; font-size: 13px !important; cursor: pointer; }
.eq-sched-list .eq-bk > * { grid-column: 2; }
.eq-sched-list .eq-bk > :first-child { grid-column: 1; grid-row: 1 / span 12; }
.eq-sched-list .eq-bk > template { display: none; }
.eq-sched-list .eq-bk .eq-bk-grip { display: none; }
.eq-sched-list .eq-bk:focus-visible { outline: 2px solid var(--bs-primary); }
@media (max-width: 575.98px) { .eq-sched-list .eq-bk { grid-template-columns: 5.5rem 1fr; column-gap: .5rem; } }
@media print {
  .sidenav-menu, .app-topbar, footer, .footer, .eq-sched-views, [data-sched-open], #schedFlash, .eq-sched-hint, .eq-sched-toolbar, .eq-cal-filter, .eq-date-nav .btn-group > a, .eq-date-nav > a, #dayWarnings, #schedRoot > .card:last-child, .eq-bk-pop { display: none !important; }
  .content-page { margin: 0 !important; padding: 0 !important; }
  .eq-sched-list .eq-bk { break-inside: avoid; border: 1px solid #999 !important; }
  .eq-sched-list .eq-bk, .eq-sched .eq-bk { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Szkółka – stałe grupy (V55): kolor grupy w kafelku grafiku i na liście grup */
.eq-grp-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.eq-grp-bar { border-left: 6px solid var(--eq-grp, #7c3aed) !important; }
.eq-occ-NEW { color: var(--bs-success); } .eq-occ-CONFLICT { color: var(--bs-danger); } .eq-occ-DISPLACES { color: var(--bs-warning-text-emphasis); }
.eq-occ-EXCEPTION, .eq-occ-EXISTS, .eq-occ-DECIDED { color: var(--bs-secondary-color); }
.eq-wd-check .btn { min-width: 2.6rem; }

/* ===== Czat stajni (V57): lista / rozmowa / szczegóły – docs/makiety/czat ===== */
.eq-chat { display: grid; grid-template-columns: 320px minmax(0, 1fr) 300px; height: calc(100vh - 150px); min-height: 520px; background: var(--eq-surface); border: 1px solid var(--eq-line); border-radius: var(--eq-radius); box-shadow: var(--eq-shadow); overflow: hidden; }
.eq-chat-list { display: flex; flex-direction: column; border-right: 1px solid var(--eq-line); min-height: 0; }
.eq-chat-list-head { display: flex; align-items: center; gap: .4rem; padding: .9rem 1rem .6rem; }
.eq-chat-chips { display: flex; gap: .35rem; overflow-x: auto; flex: none; }
.eq-chat-chip { border: 1px solid var(--eq-line); background: var(--eq-surface); color: inherit; border-radius: 999px; padding: .15rem .7rem; font-size: .8rem; white-space: nowrap; }
.eq-chat-chip.on { background: var(--eq-deep); border-color: var(--eq-deep); color: var(--eq-ivory); }
.eq-chat-items { overflow-y: auto; flex: 1; min-height: 0; }
.eq-chat-sect { padding: .7rem 1rem .25rem; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--eq-sage-strong); }
.eq-chat-item { display: flex; gap: .7rem; align-items: center; width: 100%; padding: .55rem 1rem; border: 0; background: transparent; text-align: left; color: inherit; }
.eq-chat-item:hover { background: rgba(110, 149, 135, .08); }
.eq-chat-item.active { background: var(--eq-soft-bg); }
.eq-chat-item-mid { flex: 1; min-width: 0; display: block; }
.eq-chat-item-top, .eq-chat-item-sub { display: flex; gap: .4rem; align-items: center; }
.eq-chat-item-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-chat-item-time { font-size: .72rem; color: var(--eq-muted); flex: none; font-variant-numeric: tabular-nums; }
.eq-chat-item-last { flex: 1; min-width: 0; font-size: .8rem; color: var(--eq-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-chat-item.unread .eq-chat-item-last { color: inherit; font-weight: 500; }
.eq-chat-stable { font-size: .66rem; padding: 0 .35rem; border-radius: 5px; background: #EDE7DA; color: #6A5634; flex: none; }
.eq-chat-badge { background: var(--eq-forest); color: #fff; border-radius: 999px; font-size: .68rem; font-weight: 600; min-width: 1.25rem; padding: 0 .4rem; line-height: 1.25rem; text-align: center; flex: none; }
.eq-chat-badge.muted { background: #B9C4BF; }
.eq-chat-av { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 600; font-size: .85rem; flex: none; }
.eq-chat-av.ch { border-radius: 13px; font-size: 1.15rem; }
.eq-chat-av.sm { width: 34px; height: 34px; font-size: .78rem; }
.eq-chat-av.sm.ch { font-size: 1rem; border-radius: 10px; }
.eq-chat-av.xs { width: 28px; height: 28px; font-size: .68rem; }
.eq-chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--eq-surface-2); }
.eq-chat-placeholder { margin: auto; text-align: center; color: var(--eq-muted); }
.eq-chat-placeholder .ti { font-size: 3rem; color: var(--eq-sage); }
.eq-chat-head { display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; background: var(--eq-surface); border-bottom: 1px solid var(--eq-line); }
.eq-chat-head-mid { flex: 1; min-width: 0; } .eq-chat-head-mid b { display: block; font-family: var(--eq-font-display); font-size: 1.05rem; } .eq-chat-head-mid small { color: var(--eq-muted); }
.eq-chat-back, .eq-chat-info { display: none; }
.eq-chat-pinbar { display: flex; gap: .5rem; align-items: center; padding: .4rem 1rem; background: var(--eq-surface); border: 0; border-bottom: 1px solid var(--eq-line); font-size: .82rem; text-align: left; color: inherit; width: 100%; }
.eq-chat-pinbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .eq-chat-pinbar b { color: var(--eq-forest); }
.eq-chat-msgs { flex: 1; overflow-y: auto; min-height: 0; padding: .75rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.eq-chat-day { align-self: center; font-size: .72rem; color: var(--eq-muted); background: var(--eq-surface); padding: .1rem .65rem; border-radius: 999px; margin: .4rem 0; }
.eq-chat-sys { align-self: center; font-size: .78rem; color: var(--eq-muted); text-align: center; max-width: 80%; }
.eq-chat-m { display: flex; gap: .45rem; align-items: flex-end; max-width: 72%; }
.eq-chat-m.me { align-self: flex-end; flex-direction: row-reverse; }
.eq-chat-bub { position: relative; background: var(--eq-surface); border-radius: 16px 16px 16px 4px; padding: .4rem .7rem .3rem; box-shadow: 0 1px 1px rgba(6, 63, 54, .06); min-width: 0; overflow-wrap: anywhere; }
.eq-chat-m.me .eq-chat-bub { background: #D6E8DF; border-radius: 16px 16px 4px 16px; }
[data-bs-theme=dark] .eq-chat-m.me .eq-chat-bub { background: #1F3A33; }
.eq-chat-m.mention .eq-chat-bub { box-shadow: inset 3px 0 0 var(--eq-warn-fg), 0 1px 1px rgba(6, 63, 54, .06); }
.eq-chat-m.flash .eq-chat-bub { outline: 2px solid var(--eq-sage); }
.eq-chat-bub.deleted { color: var(--eq-muted); font-style: italic; font-size: .85rem; }
/* V118: wiadomość od zablokowanej osoby / zgłoszona przez mnie – zwinięta, „Pokaż” na żądanie */
.eq-chat-bub.collapsed { color: var(--eq-muted); font-size: .85rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.eq-chat-bub.collapsed .btn { min-height: 32px; }
.eq-chat-report-reasons .eq-chat-radio { padding: .35rem 0; }
.eq-report-quote { border-left: 3px solid var(--eq-muted); padding: .4rem .7rem; background: rgba(0,0,0,.03); border-radius: 6px; font-size: .9rem; }
.eq-report-img { max-width: 160px; max-height: 160px; border-radius: 6px; object-fit: cover; }
.eq-chat-who { font-size: .76rem; font-weight: 600; color: var(--eq-forest); display: flex; gap: .35rem; align-items: center; }
.eq-chat-gone { color: var(--eq-muted); font-weight: 500; }
.eq-chat-role { font-size: .64rem; padding: 0 .35rem; border-radius: 5px; background: var(--eq-soft-bg); color: var(--eq-soft-fg); font-weight: 600; }
.eq-chat-txt { white-space: pre-wrap; }
.eq-chat-mention { color: var(--eq-forest); }
.eq-chat-meta { font-size: .66rem; color: var(--eq-muted); text-align: right; font-variant-numeric: tabular-nums; }
.eq-chat-quote { border-left: 3px solid var(--eq-sage); background: rgba(110, 149, 135, .12); border-radius: 6px; padding: .2rem .5rem; font-size: .76rem; margin: .15rem 0 .3rem; color: var(--eq-sage-strong); cursor: pointer; }
.eq-chat-quote b { display: block; color: var(--eq-forest); }
.eq-chat-img img { display: block; max-width: 260px; max-height: 220px; border-radius: 10px; margin: .2rem 0; object-fit: cover; }
.eq-chat-file { display: flex; gap: .5rem; align-items: center; background: var(--eq-surface-2); border-radius: 10px; padding: .4rem .6rem; margin: .2rem 0; color: inherit; text-decoration: none; font-size: .82rem; }
.eq-chat-file .ti { font-size: 1.5rem; color: #962E2E; } .eq-chat-file small { display: block; color: var(--eq-muted); }
.eq-chat-reacts { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .25rem; }
.eq-chat-react { border: 1px solid var(--eq-line); background: var(--eq-surface); border-radius: 999px; padding: 0 .45rem; font-size: .76rem; line-height: 1.35rem; }
.eq-chat-react.on { background: var(--eq-soft-bg); border-color: var(--eq-sage); }
.eq-chat-acts { display: none; position: absolute; top: -16px; right: 6px; background: var(--eq-surface); border: 1px solid var(--eq-line); border-radius: 10px; padding: 1px; box-shadow: 0 2px 8px rgba(6, 63, 54, .12); z-index: 2; }
.eq-chat-acts > button, .eq-chat-acts .dropdown > button { border: 0; background: transparent; width: 28px; height: 26px; border-radius: 7px; font-size: .85rem; }
.eq-chat-acts button:hover { background: var(--eq-soft-bg); }
.eq-chat-bub:hover .eq-chat-acts, .eq-chat-acts:focus-within { display: flex; }
.eq-chat-composer { background: var(--eq-surface); border-top: 1px solid var(--eq-line); padding: .55rem .8rem; }
.eq-chat-crow { display: flex; gap: .45rem; align-items: flex-end; }
.eq-chat-inputwrap { flex: 1; position: relative; }
.eq-chat-inputwrap textarea { resize: none; border-radius: 18px; max-height: 160px; }
.eq-chat-mentions { position: absolute; bottom: 100%; left: 0; max-height: 240px; overflow-y: auto; }
.eq-chat-replyto { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--eq-sage-strong); padding: 0 .2rem .4rem; }
.eq-chat-replyto span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.eq-chat-pending { display: flex; flex-wrap: wrap; gap: .35rem; padding-bottom: .4rem; }
.eq-chat-pend { display: inline-flex; align-items: center; gap: .3rem; background: var(--eq-soft-bg); color: var(--eq-soft-fg); border-radius: 999px; padding: .1rem .5rem; font-size: .76rem; }
.eq-chat-readonly { text-align: center; font-size: .85rem; color: var(--eq-muted); padding: .8rem; background: var(--eq-surface); border-top: 1px solid var(--eq-line); }
.eq-chat-side { border-left: 1px solid var(--eq-line); overflow-y: auto; min-height: 0; background: var(--eq-surface-2); }
.eq-chat-side-head { text-align: center; padding: 1rem 1rem .5rem; } .eq-chat-side-head .eq-chat-av { margin: 0 auto .4rem; display: grid; } .eq-chat-side-head b { display: block; font-family: var(--eq-font-display); font-size: 1.05rem; }
.eq-chat-tabs { display: flex; flex-wrap: wrap; gap: .2rem; padding: 0 .6rem .5rem; }
.eq-chat-tabs button { border: 0; background: transparent; padding: .25rem .55rem; border-radius: 8px; color: var(--eq-muted); font-size: .76rem; font-weight: 600; }
.eq-chat-tabs button[aria-selected=true] { background: var(--eq-surface); color: var(--eq-forest); box-shadow: 0 1px 2px rgba(6, 63, 54, .08); }
.eq-chat-side-body { padding: 0 .6rem 1rem; } .eq-chat-side-body .eq-card { margin-bottom: .6rem; }
.eq-chat-h6 { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--eq-sage-strong); margin: 0 0 .4rem; }
.eq-chat-kv { display: flex; justify-content: space-between; gap: .5rem; font-size: .82rem; padding: .15rem 0; } .eq-chat-kv span:first-child { color: var(--eq-muted); }
.eq-chat-mem { display: flex; gap: .5rem; align-items: center; padding: .25rem 0; font-size: .84rem; }
.eq-chat-mem-mid { flex: 1; min-width: 0; } .eq-chat-mem-mid small { display: block; color: var(--eq-muted); font-size: .72rem; }
.eq-chat-radio { display: flex; gap: .5rem; align-items: flex-start; padding: .25rem 0; font-size: .85rem; cursor: pointer; } .eq-chat-radio small { display: block; color: var(--eq-muted); font-size: .72rem; } .eq-chat-radio input { margin-top: .25rem; }
.eq-chat-pinned { display: block; width: 100%; text-align: left; border: 0; background: var(--eq-surface-2); border-radius: 8px; padding: .35rem .5rem; margin-bottom: .3rem; font-size: .8rem; color: inherit; }
.eq-chat-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; } .eq-chat-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.eq-chat-invite { display: flex; gap: .6rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--eq-line); } .eq-chat-invite .min-w-0 { min-width: 0; }
.eq-chat-qr { width: 72px; height: 72px; flex: none; border-radius: 6px; }
.eq-chat-pick { max-height: 50vh; overflow-y: auto; }
.eq-chat-pick-row { display: flex; gap: .5rem; align-items: center; padding: .35rem .25rem; border-radius: 8px; cursor: pointer; } .eq-chat-pick-row:hover { background: var(--eq-surface-2); }
.eq-chat-pick-row small { display: block; color: var(--eq-muted); font-size: .72rem; } .eq-chat-pick-row.off { opacity: .55; cursor: default; }
.eq-chat-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--eq-deep); color: var(--eq-ivory); padding: .55rem 1rem; border-radius: 12px; font-size: .85rem; z-index: 2000; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.eq-chat-toast.bad { background: #962E2E; }
@media (max-width: 1399.98px) { .eq-chat { grid-template-columns: 300px minmax(0, 1fr); } .eq-chat-side { display: none; } .eq-chat-info { display: inline-block; }
  .eq-chat.eq-chat--side .eq-chat-side { display: block; position: fixed; right: 0; top: 0; bottom: 0; width: min(340px, 92vw); z-index: 1050; box-shadow: -8px 0 24px rgba(0, 0, 0, .2); } }
@media (max-width: 767.98px) { .eq-chat { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 130px); } .eq-chat-main { display: none; } .eq-chat-back { display: inline-block; }
  .eq-chat.eq-chat--open .eq-chat-list { display: none; } .eq-chat.eq-chat--open .eq-chat-main { display: flex; } .eq-chat-m { max-width: 88%; } }
/* Ważne daty w grafikach (V58): święta, dni wolne stajni, osobiste, nieobecności, przerwy szkółki */
.eq-day-mark, .eq-day-chip { background: var(--bs-light); border: 1px solid var(--bs-border-color); }
.eq-day-chips { min-width: 0; }
/* nazwa święta / dnia wolnego zawija się w wąskiej komórce (telefon: kalendarz koni, grafik) zamiast się ucinać; ikona zostaje przy pierwszej linii */
.eq-day-chip { display: inline-flex; align-items: flex-start; gap: 3px; max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.eq-day-chip > i { flex: none; margin-top: 1px; }
/* w gęstej siatce miesiąca zostaje jedna linia z wielokropkiem */
.eq-month-day .eq-day-chip { align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.eq-dm-HOLIDAY { background: var(--bs-danger-bg-subtle); border-color: var(--bs-danger-border-subtle); color: var(--bs-danger-text-emphasis); }
.eq-dm-OBSERVANCE { background: var(--bs-light); color: var(--bs-secondary-color); }
.eq-dm-STABLE { background: var(--bs-primary-bg-subtle); border-color: var(--bs-primary-border-subtle); }
.eq-dm-STABLE.eq-dm-blocking { background: var(--bs-dark-bg-subtle); border-color: var(--bs-dark-border-subtle); }
.eq-dm-SCHOOL_BREAK { background: var(--bs-warning-bg-subtle); border-color: var(--bs-warning-border-subtle); }
.eq-dm-PERSONAL { background: var(--bs-success-bg-subtle); border-color: var(--bs-success-border-subtle); }
.eq-dm-AWAY { background: var(--bs-info-bg-subtle); border-color: var(--bs-info-border-subtle); }
.eq-date-nav .eq-date-pick.eq-date-off { color: var(--bs-danger); }
.eq-daymark-menu { max-height: 360px; overflow-y: auto; min-width: 280px; max-width: 360px; }
.eq-day-off-head { color: var(--bs-danger); }
.eq-day-off-cell { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(var(--bs-danger-rgb), .05) 6px 12px); }
/* ---------- Weekendy i przyjazdy (V59) ---------- */
.eq-wk-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; background: #2f8a5f; vertical-align: middle; }
.eq-wk-dot.PARTIAL { background: #d98b2b; } .eq-wk-dot.FULL { background: #b4442f; }
.eq-wk-table td { vertical-align: middle; }
.eq-wk-long { background: #fff8ee; }
.eq-wk-holiday { color: #8a4b0f; }
.eq-wk-holiday-badge { background: #fbe7cc; color: #8a4b0f; }
.eq-wk-chip { font-size: 12px; padding: 3px 8px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.eq-wk-chip.ok { background: #dcefe4; color: #1e5c3d; } .eq-wk-chip.warn { background: #f8e6cc; color: #7a4a10; } .eq-wk-chip.bad { background: #f6dcd6; color: #8c2f1e; }
.eq-wk-venue { display: grid; grid-template-columns: minmax(70px, 110px) 1fr 1fr auto; gap: 6px; align-items: center; font-size: 12px; min-width: 260px; }
.eq-wk-venue + .eq-wk-venue { margin-top: 4px; }
.eq-wk-bar { display: block; height: 8px; background: #e7ece9; border-radius: 4px; overflow: hidden; }
.eq-wk-bar > span { display: block; height: 8px; border-radius: 4px; background: #2f8a5f; }
.eq-wk-bar > span.PARTIAL { background: #d98b2b; } .eq-wk-bar > span.FULL { background: #b4442f; }
.eq-wk-ev { font-size: 12px; padding: 3px 8px; border-radius: 6px; text-decoration: none; display: inline-block; }
.eq-wk-ev.ok { background: #e4ecf8; color: #24406e; } .eq-wk-ev.pre { border: 1px dashed #7f6aa8; color: #4e3d73; background: #f4f0fa; } .eq-wk-ev.other { background: #eef1f0; color: #3c4a44; }
.eq-wk-badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #dcefe4; color: #1e5c3d; }
.eq-wk-badge.PARTIAL { background: #f8e6cc; color: #7a4a10; } .eq-wk-badge.FULL { background: #f6dcd6; color: #8c2f1e; }
.eq-wk-tracks { min-width: 620px; display: flex; flex-direction: column; gap: 6px; }
.eq-wk-track { display: grid; grid-template-columns: 150px 1fr 64px; gap: 10px; align-items: center; }
.eq-wk-track.head { font-size: 11px; color: var(--bs-secondary-color); }
.eq-wk-axis { display: flex; justify-content: space-between; }
.eq-wk-lane { position: relative; display: block; height: 30px; background: #eef3f0; border-radius: 6px; }
.eq-wk-blk { position: absolute; top: 3px; bottom: 3px; color: #fff; border-radius: 5px; font-size: 11px; padding: 0 6px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; background: #8fa59b; }
.eq-wk-blk.ARRIVAL, .eq-wk-key.ARRIVAL { background: #3b6db3; } .eq-wk-blk.SCHOOL, .eq-wk-key.SCHOOL { background: #7f6aa8; }
.eq-wk-blk.BOARDER, .eq-wk-key.BOARDER { background: #8fa59b; } .eq-wk-blk.ENTRY, .eq-wk-key.ENTRY { background: #24604a; } .eq-wk-blk.BLOCK, .eq-wk-key.BLOCK { background: #6c757d; }
.eq-wk-blk.TENTATIVE, .eq-wk-key.TENTATIVE { background: #f4f0fa; color: #4e3d73; border: 1px dashed #7f6aa8; }
.eq-wk-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.eq-wk-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.eq-wk-box { border: 1px solid var(--bs-border-color); border-radius: 10px; padding: 8px; }
.eq-wk-cell { font-size: 12px; border-radius: 5px; padding: 1px 6px; margin-top: 3px; }
.eq-wk-cell.FREE { background: #dcefe4; color: #1e5c3d; } .eq-wk-cell.GUEST { background: #e4ecf8; color: #24406e; }
.eq-wk-cell.AWAY { background: #f8e6cc; color: #7a4a10; } .eq-wk-cell.RESIDENT { background: #eef1f0; color: #3c4a44; } .eq-wk-cell.OUT_OF_SERVICE { background: #eee; color: #777; }
.eq-wk-arrival { border-top: 4px solid #3b6db3; } .eq-wk-arrival.TENTATIVE { border-top: 4px dashed #7f6aa8; } .eq-wk-arrival.CANCELLED { border-top-color: #adb5bd; opacity: .7; }
.eq-arr-row { display: grid; gap: 6px; align-items: center; }
.eq-arr-row.horse { grid-template-columns: 1.2fr 1.4fr 1.1fr 1fr 32px; }
.eq-arr-row.venue { grid-template-columns: 1fr 1.3fr .8fr .8fr auto 32px; }
@media (max-width: 767.98px) { .eq-arr-row.horse, .eq-arr-row.venue { grid-template-columns: 1fr 1fr; } }
.eq-arr-check { padding: 8px 10px; border-radius: 8px; background: #eef1f0; }
.eq-arr-check.ok { background: #dcefe4; color: #1e5c3d; } .eq-arr-check.warn { background: #f8e6cc; color: #7a4a10; }
.eq-arr-check.danger { background: #f6dcd6; color: #8c2f1e; } .eq-arr-check.info { background: #e4ecf8; color: #24406e; }
.eq-dashed { border-style: dashed; }
.eq-sticky { position: sticky; top: 80px; }
.eq-guest-chip { font-size: 11px; background: #e4ecf8; color: #24406e; border-radius: 5px; padding: 1px 6px; }
[data-bs-theme=dark] .eq-wk-long { background: rgba(217,139,43,.08); }
[data-bs-theme=dark] .eq-wk-lane { background: rgba(255,255,255,.06); }
.barn-cell.guest { background: #e4ecf8; } [data-bs-theme="dark"] .barn-cell.guest { background: #263a57; }

/* Grafik stajni – widok miesiąca */
.eq-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.eq-month-hd{text-align:center;font-size:12px;color:var(--bs-secondary-color);text-transform:capitalize}
.eq-month-day{min-height:104px;border:1px solid var(--bs-border-color);border-radius:6px;padding:4px;display:flex;flex-direction:column;gap:3px;background:var(--bs-body-bg);color:inherit;text-decoration:none;overflow:hidden;min-width:0}
.eq-month-day:hover,.eq-month-day:focus-visible{border-color:var(--bs-primary);color:inherit;box-shadow:0 0 0 1px var(--bs-primary)}
.eq-month-day.out{opacity:.45}.eq-month-day.today{border-color:var(--bs-primary);border-width:2px}
.eq-month-day.lvl1{background:color-mix(in srgb,var(--bs-primary) 4%,var(--bs-body-bg))}.eq-month-day.lvl2{background:color-mix(in srgb,var(--bs-primary) 8%,var(--bs-body-bg))}
.eq-month-day.lvl3{background:color-mix(in srgb,var(--bs-primary) 13%,var(--bs-body-bg))}.eq-month-day.lvl4{background:color-mix(in srgb,var(--bs-primary) 19%,var(--bs-body-bg))}
.eq-month-day.off .eq-month-num{color:var(--bs-danger);font-weight:700}
.eq-month-num{font-size:13px;font-weight:600}
.eq-month-closures{background:color-mix(in srgb,var(--bs-danger) 7%,var(--bs-body-bg));border:1px solid color-mix(in srgb,var(--bs-danger) 22%,transparent)}
.eq-month-closed-mk{font-size:12px;line-height:1.3;color:var(--bs-danger);opacity:.55}
.eq-month-bar{display:flex;height:6px;border-radius:3px;overflow:hidden;background:var(--bs-tertiary-bg)}
.eq-month-venues,.eq-month-kinds{line-height:1.25;color:var(--bs-secondary-color)}.eq-month-venues b,.eq-month-kinds b{color:var(--bs-body-color)}
.eq-mk{display:inline-block;width:9px;height:9px;border-radius:2px;vertical-align:middle}
.eq-mk-ENTRY{background:#2E8B57}.eq-mk-SCHOOL{background:#3B82C4}.eq-mk-MINE{background:#D98B2B}.eq-mk-OTHER{background:#9AA5B1}.eq-mk-BLOCK{background:#4A4F57}
[data-bs-theme=dark] .eq-mk-ENTRY{background:#6DB59D}[data-bs-theme=dark] .eq-mk-SCHOOL{background:#6FA8DC}[data-bs-theme=dark] .eq-mk-BLOCK{background:#8A9099}
@media (max-width:767.98px){.eq-month{gap:2px}.eq-month-day{min-height:64px;padding:2px}.eq-month-venues,.eq-month-kinds,.eq-month-day .eq-day-chips span{display:none}.eq-month-total{font-size:10px!important}}
/* Weekendy – dni wokół weekendu (rozszerzenie wiersza) */
.eq-wk-ext-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 6px; }
.eq-wk-day { font-size: 11px; line-height: 1.2; padding: 2px 6px; border-radius: 999px; border: 1px dashed #9db3a7; background: transparent; color: #3c4a44; cursor: pointer; white-space: nowrap; }
.eq-wk-day:hover { background: #eef3f0; }
.eq-wk-day.on { border-style: solid; border-color: #24604a; background: #24604a; color: #fff; }
.eq-wk-day.hol { border-color: #d98b2b; color: #8a4b0f; }
.eq-wk-day.on.hol { background: #d98b2b; border-color: #d98b2b; color: #fff; }
.eq-wk-day-sep { color: #9db3a7; font-size: 11px; margin: 0 2px; }
.eq-wk-chip.extra { outline: 1px dashed currentColor; outline-offset: -1px; opacity: .9; }
.eq-wk-chip.hol { box-shadow: inset 0 -2px 0 #d98b2b; }
.eq-wk-bar.extra { opacity: .75; }
.eq-wk-bar.hol { outline: 1px solid #d98b2b; outline-offset: 1px; }
.eq-wk-ev.holiday { background: #fbe7cc; color: #8a4b0f; }
.eq-wk-ext td:first-child { box-shadow: inset 3px 0 0 #24604a; }
.eq-wk-table td:first-child { min-width: 250px; }
.eq-wk-track.extra > span:first-child { color: var(--bs-secondary-color); }
.eq-wk-track.hol > span:first-child { color: #8a4b0f; font-weight: 600; }
[data-bs-theme=dark] .eq-wk-day { color: #cfdcd5; border-color: #5d7a6c; }
[data-bs-theme=dark] .eq-wk-day:hover { background: rgba(255,255,255,.06); }
[data-bs-theme=dark] .eq-wk-ev.holiday { background: rgba(217,139,43,.18); color: #f0c48a; }

/* „Ułóż tydzień”: kolumna „Trener” (przełącznik + na miejscu / online) i ikonki trybu – te same co na grafiku i w szczegółach */
.gt-table th.gt-trainer-h { background: #e7f1ec; color: var(--eq-deep); }
.gt-table td.gt-trainer { background: #f6faf8; }
.gt-trainer .gt-dash { display: none; }
.gt-row.gt-off .gt-trainer .gt-dash { display: inline; }
.gt-row.gt-off .gt-trainer .gt-on { display: none; }
.gt-row.gt-off td.gt-trainer { background: transparent; opacity: .6; }
.gt-mode .btn { display: inline-flex; align-items: center; gap: 4px; }
.gt-mode .btn-check:checked + .gt-onsite { background: #fff; color: var(--eq-deep); border-color: var(--eq-forest); font-weight: 600; }
.gt-mode .btn-check:checked + .gt-online { background: #fff; color: #1d4f91; border-color: #1d4f91; font-weight: 600; }
.gt-online-hint { color: #6b4108; background: #fbefd9; border-radius: 6px; padding: 3px 8px; }
.gt-more { display: inline-flex !important; flex-direction: column; align-items: flex-start !important; line-height: 1.3; min-width: 160px; max-width: 220px; text-align: left !important; white-space: normal; }
.gr-mode { color: var(--eq-forest); }
.gr-mode.ti-video, .gr-mode-online { color: #1d4f91; }
[data-bs-theme=dark] .gt-table th.gt-trainer-h { background: rgba(110,149,135,.25); color: #cfe6dc; }
[data-bs-theme=dark] .gt-table td.gt-trainer { background: rgba(110,149,135,.08); }
[data-bs-theme=dark] .gt-mode .btn-check:checked + .gt-onsite, [data-bs-theme=dark] .gt-mode .btn-check:checked + .gt-online { background: rgba(255,255,255,.1); color: #cfe6dc; }
[data-bs-theme=dark] .gt-online-hint { background: rgba(217,139,43,.18); color: #f0c48a; }
[data-bs-theme=dark] .gr-mode { color: #9fd0bd; }
[data-bs-theme=dark] .gr-mode.ti-video { color: #9dbcf0; }
/* Plakietka trybu treningu z trenerem (grafik stajni, plan treningów): zielona „na miejscu”, niebieska „online”.
   Wysokość jak awatar (22–24 px); w wąskim kafelku i wariancie .ic – sama ikona w kółku, tekst ukryty wizualnie. */
.eq-mode { position: relative; display: inline-flex; align-items: center; gap: 4px; flex: none; height: 22px; padding: 0 8px 0 6px; border-radius: 999px; border: 1px solid; font-size: 11.5px; font-weight: 600; line-height: 1; white-space: nowrap; vertical-align: middle; }
.eq-mode .ti { font-size: 15px; line-height: 1; }
.eq-mode.onsite { background: #0B5548; color: #fff; border-color: #0B5548; }
.eq-mode.online { background: #1d4f91; color: #fff; border-color: #1d4f91; }
.eq-mode.ic, .eq-bk-narrow .eq-mode { width: 22px; padding: 0; justify-content: center; }
.eq-mode.ic .eq-mode-t, .eq-bk-narrow .eq-mode .eq-mode-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eq-mode.ic .ti { font-size: 13px; }
[data-bs-theme=dark] .eq-mode.onsite { background: #a9dcc7; color: #0d3b32; border-color: #a9dcc7; }
[data-bs-theme=dark] .eq-mode.online { background: #b3cdf5; color: #142f55; border-color: #b3cdf5; }
.eq-bk .eq-bk-top .eq-mode { height: 20px; }
.eq-bk .eq-bk-top > b { white-space: nowrap; flex: none; }
.eq-bk .eq-bk-top .eq-mode.ic, .eq-bk-narrow .eq-bk-top .eq-mode, .eq-bk-slim .eq-bk-top .eq-mode { width: 20px; padding: 0; justify-content: center; }
.eq-bk-slim .eq-mode .eq-mode-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eq-sched .eq-bk.eq-bk-narrow > div.eq-bk-top { display: flex; }
.eq-sched-list .eq-bk .eq-bk-top { flex-direction: column; gap: 4px !important; }
.eq-sched-list .eq-bk .eq-bk-top > .ms-auto { margin-left: 0 !important; }
.eq-legend-list.eq-legend-mode { display: flex; gap: 6px; flex-wrap: wrap; }
.gr-legend .gr-legend-mode { gap: 4px; }
.gr-legend .eq-mode i { display: inline; width: auto; height: auto; margin: 0; border-radius: 0; background: none; }
.gr-chip .eq-mode.ic { width: 18px; height: 18px; }
.gr-card .gr-card-mode { display: block; margin: 3px 0 2px; }
/* ===== Karta wizyty weterynarza przez link / QR (V62) – strona weta bez logowania (mobile-first) i przegląd u właściciela ===== */
.vc-body { background: #F8F6F0; color: #1c2421; min-height: 100vh; }
.vc-top { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid #e3e0d6; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.vc-logo { width: 32px; height: 32px; border-radius: 8px; background: #063F36; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 auto; }
.vc-top-title { font-size: 15px; font-weight: 700; color: #063F36; }
.vc-top-sub { font-size: 12px; color: #5d6a64; }
.vc-lang { display: flex; gap: 2px; }
.vc-lang a { font-size: 12px; color: #5d6a64; text-decoration: none; padding: 8px 6px; min-width: 32px; text-align: center; border-radius: 6px; }
.vc-lang a.active { color: #063F36; font-weight: 700; background: #DCEFE4; }
.vc-main { max-width: 640px; margin: 0 auto; padding: 14px 16px 32px; display: flex; flex-direction: column; gap: 12px; }
.vc-main form { display: flex; flex-direction: column; gap: 12px; }
.vc-card { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 10px; }
.vc-owner .vc-card { margin-bottom: 12px; }
.vc-h { font-size: 15px; font-weight: 700; margin: 0; }
.vc-horse { font-size: 18px; font-weight: 700; }
.vc-muted { font-size: 13px; color: #3c4a44; }
.vc-small { font-size: 12px; color: #5d6a64; }
.vc-alert { font-size: 13px; color: #6b4108; background: #fbefd9; border-radius: 8px; padding: 8px; margin-top: 6px; }
.vc-l { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #3c4a44; margin: 0; }
.vc-l .form-control, .vc-l .form-select { font-size: 16px; } /* iOS: bez powiększania przy wpisywaniu */
.vc-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vc-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 360px) { .vc-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vc-med { border: 1px solid #e3e0d6; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.vc-med .vc-del { align-self: flex-end; font-size: 12px; }
.vc-add { color: #0B5548; background: transparent; border: 1px dashed #9cbcaf; border-radius: 12px; padding: 11px; font-weight: 600; min-height: 44px; }
.vc-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.4; }
.vc-consent .form-check-input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 0; }
.vc-file { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.vc-submit { padding: 14px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.vc-ok { width: 72px; height: 72px; border-radius: 50%; background: #DCEFE4; color: #0B5548; display: flex; align-items: center; justify-content: center; margin: 16px auto 0; font-size: 36px; }
.vc-ok-muted { background: #eceae4; color: #5d6a64; }
.vc-done-title { font-size: 20px; font-weight: 700; margin: 0; }
.vl-qr { width: 230px; max-width: 100%; margin: 0 auto; padding: 10px; border: 1px solid #e3e0d6; border-radius: 12px; background: #fff; }
.vl-qr svg { width: 100%; height: auto; display: block; }
.vl-line { border-top: 1px solid #eef2f0; padding: 8px 0 8px 12px; position: relative; }
.vl-line::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: #0B5548; }

/* ===== Karty wizyt wg specjalisty (V64) ===== */
.vc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vc-chip { position: relative; cursor: pointer; margin: 0; }
.vc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.vc-chip span { display: inline-block; font-size: 13px; padding: 8px 12px; border-radius: 999px; border: 1px solid #d5dcd8; background: #fff; color: #1c2421; min-height: 36px; }
.vc-chip input:checked + span { background: #063F36; color: #fff; border-color: #063F36; }
.vc-chip input:focus-visible + span { outline: 2px solid #0B5548; outline-offset: 2px; }
.vc-area { display: flex; align-items: center; gap: 8px; border-top: 1px solid #eef2f0; padding-top: 6px; font-size: 14px; }
.vc-scale { display: flex; gap: 4px; }
.vc-scale label { margin: 0; cursor: pointer; }
.vc-scale input { position: absolute; opacity: 0; pointer-events: none; }
.vc-scale span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid #d5dcd8; font-weight: 700; font-size: 13px; color: #4a5751; background: #fff; }
.vc-scale label:nth-child(1) input:checked + span { background: #e7f1ec; color: #0B5548; border: 2px solid #0B5548; }
.vc-scale label:nth-child(2) input:checked + span { background: #fdf3d6; color: #6b4108; border: 2px solid #6b4108; }
.vc-scale label:nth-child(3) input:checked + span { background: #fbe0c4; color: #7a3e10; border: 2px solid #7a3e10; }
.vc-scale label:nth-child(4) input:checked + span { background: #f6c9bb; color: #8a2a12; border: 2px solid #8a2a12; }
.vc-scale input:focus-visible + span { outline: 2px solid #0B5548; outline-offset: 2px; }
/* kolory rodzin wizyt: pasek na liście, kropka na kafelkach */
.vk-VET { --vk: #9b2c2c; } .vk-FARRIER { --vk: #7a4a10; } .vk-PHYSIO { --vk: #1d4f91; } .vk-SADDLER { --vk: #5b3f8a; }
.vk-DENTIST { --vk: #0B5548; } .vk-NUTRITIONIST { --vk: #3d6b2a; } .vk-OTHER { --vk: #5d6a64; }
.vk-bar { border-left: 4px solid var(--vk) !important; }
.vk-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--vk); }
.vk-tile { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); font-size: 12px; }
.vk-pick { display: flex; flex-direction: column; gap: 4px; min-height: 84px; background: #fff; border: 1px solid #e3e0d6; border-radius: 14px; padding: 12px; text-decoration: none; color: #1c2421; }
.vk-pick:hover { border-color: var(--vk); }
.vk-pick .vk-chip { width: fit-content; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; color: var(--vk); background: color-mix(in srgb, var(--vk) 12%, #fff); }

/* ==========================================================================
   Uporządkowanie grafików (Plan treningów / Grafik stajni / Kalendarz koni) i odświeżenie widoków
   ========================================================================== */
.eq-page-head { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.eq-page-head-text { min-width: 0; }
.eq-page-sub { margin: 2px 0 0; font-size: .8125rem; color: var(--eq-muted); max-width: 70ch; }
/* awatar konia – inicjały (koń nie ma zdjęcia w modelu) */
.eq-havatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--eq-forest); }
.eq-havatar.sm { width: 24px; height: 24px; font-size: 10px; }
.eq-havatar.lg { width: 44px; height: 44px; font-size: 15px; }
.eq-havatar.h1 { background: #3d6dae; } .eq-havatar.h2 { background: #a0522d; } .eq-havatar.h3 { background: #6b5aa6; } .eq-havatar.h4 { background: #1f8a8a; } .eq-havatar.h5 { background: #8a6d1f; }
/* Grafik stajni – „Tylko moje”: lista moich rezerwacji zamiast widoków dnia */
.eq-only-mine #schedGrid, .eq-only-mine .eq-sched-hint, .eq-only-mine .eq-sched-views, .eq-only-mine .eq-sched-period, .eq-only-mine #dayWarnings, .eq-only-mine .eq-sched-side { display: none !important; }
.eq-mine-day { padding: .4rem 1rem; font-size: 12px; font-weight: 600; text-transform: capitalize; background: var(--eq-surface-2); border-top: 1px solid var(--eq-line); }
.eq-mine-day.past { color: var(--eq-muted); }
.eq-mine-row { display: flex; align-items: center; gap: .5rem .75rem; flex-wrap: wrap; padding: .5rem 1rem; border-top: 1px solid var(--eq-line); font-size: 13px; }
.eq-kind-pill { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.eq-mine-other { padding: .6rem 1rem; border-top: 1px solid var(--eq-line); font-size: 12px; color: var(--eq-muted); }

/* --- Plan treningów (/my/grafik): karty koni, pasek, siatka, szczegóły dnia, panel „Dodaj trening” --- */
.k-training{--c:var(--k-training)}
.text-capitalize-first::first-letter{text-transform:uppercase}
.gr-hcards{display:flex;gap:.75rem;overflow-x:auto;padding:2px 2px 6px;scroll-snap-type:x proximity}
.gr-hcards>.gr-hcard{flex:0 0 290px;scroll-snap-align:start}
.gr-hcard{display:flex;align-items:center;gap:.75rem;padding:.75rem .9rem;background:var(--eq-surface);border:1px solid var(--eq-line);border-radius:var(--eq-radius-sm);box-shadow:var(--eq-shadow);color:inherit;text-decoration:none;min-width:0;transition:box-shadow .15s,border-color .15s}
.gr-hcard:hover{box-shadow:var(--eq-shadow-hover);color:inherit}.gr-hcard.on{border-color:var(--ins-primary);box-shadow:0 0 0 2px rgba(var(--ins-primary-rgb),.25)}
.gr-hcard-body{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.25}.gr-hcard-body small{color:var(--eq-muted);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gr-st{align-self:flex-start;font-size:11px;font-weight:600;padding:1px 8px;border-radius:999px;margin:2px 0}
.gr-st.st-READY{background:var(--eq-ok-bg);color:var(--eq-ok-fg)}.gr-st.st-PARTIAL{background:var(--eq-warn-bg);color:var(--eq-warn-fg)}.gr-st.st-TODO{background:var(--eq-neutral-bg);color:var(--eq-neutral-fg)}
.gr-ring{--p:0;flex:none;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--eq-bar) calc(var(--p)*1%),var(--eq-track) 0)}
.gr-ring>span{width:40px;height:40px;border-radius:50%;background:var(--eq-surface);display:grid;place-items:center;font-size:11.5px;font-weight:700;color:var(--eq-strong)}
.gr-toolbar{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:.5rem .75rem;background:var(--eq-surface);border:1px solid var(--eq-line);border-radius:var(--eq-radius-sm)}
.gr-legend>span{display:inline-flex;align-items:center}
.gr-grid{grid-template-columns:180px repeat(7,minmax(118px,1fr))!important}
.gr-hd{display:flex;flex-direction:column;align-items:center;gap:2px}.gr-hd.today{background:rgba(var(--ins-primary-rgb),.08);border-radius:8px}
.gr-hd-today{font-size:10.5px;font-weight:700;color:#fff;background:var(--ins-primary);border-radius:999px;padding:0 8px}
.gr-cell.today{background:rgba(var(--ins-primary-rgb),.04)}
.gr-horse .eq-havatar{flex:none}.gr-horse .min-w-0{min-width:0}
.gr-mini{display:block;height:4px;border-radius:2px;background:var(--eq-track);overflow:hidden;margin:2px 0}.gr-mini>span{display:block;height:100%;background:var(--eq-bar)}
.gr-empty-hint{color:var(--eq-muted)!important;font-style:italic}
.gr-card{background:color-mix(in srgb,var(--c) 9%,var(--bs-body-bg))}
.gr-card .gr-kind-ic,.gr-chip .ti:first-child{color:var(--c)}
.gr-timeline{display:flex;flex-direction:column;gap:.4rem}
.gr-tl{display:flex;align-items:flex-start;gap:.6rem;padding:.5rem .6rem;border:1px solid var(--eq-line);border-left:4px solid var(--c);border-radius:8px;background:var(--eq-surface)}
.gr-tl-time{display:flex;flex-direction:column;align-items:flex-end;min-width:44px;font-size:13px}.gr-tl-time small{color:var(--eq-muted)}
.gr-tl-body{flex:1;min-width:0;cursor:pointer;font-size:13px}
.gr-tl .pill{font-size:10.5px;font-weight:600;padding:1px 7px;border-radius:999px;background:var(--bs-tertiary-bg);color:var(--bs-secondary-color);white-space:nowrap;align-self:center}
.gr-kind{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;padding:1px 8px;border-radius:999px;color:var(--c);background:color-mix(in srgb,var(--c) 14%,transparent)}
.gr-tl.s-cancelled,.gr-tl.s-moved{opacity:.6}
.gr-add{--bs-offcanvas-width:min(520px,100vw);--ins-offcanvas-width:min(520px,100vw);width:min(520px,100vw)!important}
.gr-add .offcanvas-body{padding-bottom:1rem}
.gr-add-sec{padding:.9rem 0;border-top:1px solid var(--eq-line)}.gr-add-sec:first-child{border-top:0}
.gr-add-sec h6{display:flex;align-items:center;gap:.5rem;margin-bottom:.6rem;font-weight:700}
.gr-num{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--eq-soft-bg);color:var(--eq-soft-fg);font-size:12px;font-weight:700}
.gr-add-foot{display:flex;justify-content:flex-end;gap:.5rem;padding:.75rem 1rem;border-top:1px solid var(--eq-line);background:var(--eq-surface)}
.gr-avail{padding:.6rem .7rem;border:1px solid var(--eq-line);border-radius:10px;background:var(--eq-surface-2)}
.gr-avail-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.4rem}
.gr-avail-tile{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:.4rem .55rem;border-radius:8px;border:1px solid var(--eq-line);background:var(--eq-surface);color:inherit;text-align:left;font-size:12.5px;line-height:1.2}
.gr-avail-tile small{font-size:11px;color:var(--eq-muted)}
.gr-avail-tile.st-free,.gr-avail-tile.st-shared{border-color:color-mix(in srgb,var(--eq-ok-fg) 40%,transparent)}.gr-avail-tile.st-free small,.gr-avail-tile.st-shared small{color:var(--eq-ok-fg);font-weight:600}
.gr-avail-tile.st-blocked,.gr-avail-tile.st-past{background:var(--eq-neutral-bg);opacity:.75}.gr-avail-tile.st-blocked small{color:var(--eq-danger-fg);font-weight:600}
.gr-avail-tile:not(:disabled):hover{border-color:var(--ins-primary)}
.gr-avail-tile.on{outline:2px solid var(--ins-primary);outline-offset:1px}
@media (max-width:767.98px){.gr-hcards>.gr-hcard{flex-basis:78vw}.gr-toolbar .gr-legend{display:none}}

/* --- Grafik stajni: nagłówki kolumn z ikoną i obłożeniem, prawa kolumna (dostępność, zmiany, legenda) --- */
.eq-vhead{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;line-height:1.2}.eq-vhead .ti{color:var(--ins-primary);font-size:1.05rem}.eq-vhead small{font-weight:400}
.eq-vload{display:flex;align-items:center;gap:.4rem;margin-top:4px;font-weight:400}
.eq-vload>span{flex:1;height:5px;border-radius:3px;background:var(--eq-track);overflow:hidden;min-width:40px}.eq-vload>span>i{display:block;height:100%;background:var(--eq-bar)}
.eq-vload.full>span>i{background:var(--bs-danger)}.eq-vload small{font-size:10.5px;color:var(--eq-muted);white-space:nowrap}
.eq-bk-horse{display:inline-flex;align-items:center;gap:4px}.eq-bk .eq-havatar.sm{width:18px;height:18px;font-size:8.5px}
.gr-ring.lg{width:76px;height:76px}.gr-ring.lg>span{width:60px;height:60px;font-size:15px}
.eq-avail-dl{display:grid;grid-template-columns:auto auto;gap:2px 12px;font-size:13px}.eq-avail-dl dt{font-weight:400;color:var(--eq-muted)}.eq-avail-dl dd{margin:0;font-weight:700;text-align:right}
.eq-dot{display:inline-block;width:8px;height:8px;border-radius:50%;vertical-align:1px}.eq-dot.ok{background:var(--eq-bar)}.eq-dot.busy{background:var(--eq-track);outline:1px solid var(--eq-muted)}
.eq-changes{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem;font-size:12px}
.eq-changes li{display:flex;gap:.5rem;align-items:flex-start}.eq-changes li>.ti{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:13px;background:var(--eq-ok-bg);color:var(--eq-ok-fg)}
.eq-changes li.ch-CANCELLED>.ti{background:var(--eq-danger-bg);color:var(--eq-danger-fg)}.eq-changes li.ch-BLOCKED>.ti{background:var(--eq-neutral-bg);color:var(--eq-neutral-fg)}
.eq-changes li>div{flex:1}.eq-changes time{font-size:11px}
.eq-legend-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:3px;font-size:12px}
.eq-lg{display:inline-block;width:.85rem;height:.85rem;border-radius:3px;border-left:3px solid;vertical-align:-2px}
.eq-lg-plan{border:1px dashed var(--eq-muted);background:transparent}
@media (min-width:1400px){.eq-sched-side .card-body{padding:1rem}}

/* --- Ułóż tydzień: karty dni z akcentem rodzaju, podsumowanie, mini kalendarz --- */
.gt-days{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem}
.gt-day{display:grid;grid-template-columns:120px repeat(4,minmax(0,1fr)) auto;gap:.5rem .75rem;align-items:start;padding:.6rem .75rem;background:var(--eq-surface);border:1px solid var(--eq-line);border-left:4px solid var(--c,var(--eq-line));border-radius:10px}
.gt-dayname{grid-row:1 / span 2}.gt-trainer{grid-column:2 / span 2;grid-row:2}.gt-day>.gt-f:nth-of-type(7){grid-column:4 / span 2;grid-row:2}.gt-acts{grid-column:6;grid-row:1 / span 2}
.gt-day.gt-off{border-left-color:var(--eq-line);background:var(--eq-surface-2)}
.gt-lbl{display:block;font-size:11px;color:var(--eq-muted);margin-bottom:2px;white-space:nowrap}
.gt-dayname{display:flex;flex-direction:column;padding-top:1rem;line-height:1.2;min-width:0}.gt-dayname small{font-size:11px}
.gt-acts{display:flex;gap:.25rem;align-items:flex-start;padding-top:1rem}
.gt-day .gt-more{min-width:130px}
.gt-details{margin:-.35rem 0 .15rem 1.25rem;padding:.6rem .75rem;border:1px dashed var(--eq-line);border-top:0;border-radius:0 0 10px 10px;background:var(--eq-surface-2)}
.gt-side{position:sticky;top:calc(var(--ins-topbar-height,65px) + 1rem)}
.gt-sum-dl{display:grid;grid-template-columns:1fr auto;gap:4px 12px;font-size:13px}.gt-sum-dl dt{font-weight:400;color:var(--eq-muted)}.gt-sum-dl dd{margin:0;font-weight:700;text-align:right}
.gt-mini{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.gt-mini-d{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;border-radius:8px;background:color-mix(in srgb,var(--c,#888) 13%,var(--eq-surface));font-size:10.5px;min-width:0}
.gt-mini-d .ti{font-size:16px;color:var(--c)}.gt-mini-d.off{background:var(--eq-neutral-bg);color:var(--eq-muted)}.gt-mini-d.off .ti{color:var(--eq-muted)}
.gt-mini-t{font-weight:600;white-space:nowrap}
@media (max-width:767.98px){.gt-day{grid-template-columns:1fr 1fr}.gt-day>*{grid-row:auto!important}.gt-dayname,.gt-trainer,.gt-acts,.gt-day>.gt-f:nth-of-type(7){grid-column:1 / -1}.gt-acts{padding-top:0}.gt-dayname{flex-direction:row;gap:.5rem;align-items:baseline;padding-top:0}.gt-details{margin-left:.5rem}}
@media (max-width:575.98px){.eq-sched-bar .eq-date-nav{flex-wrap:wrap!important}.eq-sched-bar .eq-date-nav .btn-group{max-width:100%}}

/* ---------- Przypomnienia (V65) ---------- */
.rem-head{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.75rem}
.rem-row{display:flex;align-items:center;gap:.75rem;padding:.75rem 0;border-top:1px solid var(--eq-line);flex-wrap:wrap}
.rem-row:first-of-type{border-top:0;padding-top:.25rem}
.rem-row.is-hl{background:var(--eq-soft-bg);border-radius:12px;padding-left:.5rem;padding-right:.5rem}
.rem-tx{flex:1 1 240px;min-width:0}
.rem-t{font-weight:650;color:var(--eq-strong)}
.rem-s{font-size:.8125rem;color:var(--eq-muted)}
.rem-s i{font-size:.85rem;vertical-align:-1px}
.rem-w{font-size:.75rem;color:var(--eq-muted)}
.rem-acts{display:flex;gap:.35rem;align-items:center;flex-wrap:wrap;margin-left:auto}
.rem-acts form{margin:0}
.rem-auto{font-size:.7rem;padding:.1rem .5rem}
.rem-tile.rem-overdue{background:var(--eq-danger-bg);color:var(--eq-danger-fg)}
.rem-tile.rem-today,.rem-tile.rem-soon{background:var(--eq-warn-bg);color:var(--eq-warn-fg)}
.rem-tile.rem-later{background:var(--eq-info-bg);color:var(--eq-info-fg)}
.rem-tile.rem-paused{background:var(--eq-neutral-bg);color:var(--eq-neutral-fg)}
.rem-empty{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;border-style:dashed}
.rem-chips{display:flex;flex-wrap:wrap;gap:.4rem}
.rem-chip{display:inline-flex;align-items:center;gap:.3rem;border:1px solid var(--eq-line);background:var(--eq-surface);border-radius:999px;padding:.4rem .8rem;font-size:.8125rem;cursor:pointer;user-select:none;margin:0}
.rem-chip .rem-ck{display:none}
.btn-check:checked+.rem-chip{background:var(--eq-tile-bg);border-color:var(--eq-tile-bg);color:var(--eq-tile-fg)}
.btn-check:checked+.rem-chip .rem-ck{display:inline}
.btn-check:focus-visible+.rem-chip{outline:2px solid var(--eq-forest);outline-offset:2px}
.rem-panel [hidden]{display:none!important}
@media (max-width:575.98px){.rem-acts{margin-left:3rem}.rem-acts .rem-lbl{display:none}}
/* Telefon: górny pasek nie poszerza strony (wcześniej ~75–95 px przewijania w poziomie) – nazwa widoku tylko jako ikona, ciaśniejsze odstępy. */
@media (max-width: 575.98px) {
  .eq-view-switch .eq-view-name { display: none; }
  .app-topbar .topbar-menu .topbar-link { padding-left: .35rem; padding-right: .35rem; }
  .app-topbar .topbar-menu .gap-2 { gap: .25rem !important; }
}

/* powiadomienie o koniu bez dostępu (NotificationLinks) – bez linku, z adnotacją */
.list-group-item.eq-ntf-noaccess { pointer-events: none; cursor: default; }

/* Kalendarz koni (/my/calendar) – „+ Dodaj” w nagłówku i „+” w nagłówku dnia (fragments/calendar-add); menu nie wychodzi poza ekran,
   na telefonie przyciski min. 40 px, filtr koni zawija się zamiast poszerzać stronę (bez przewijania w poziomie od 375 px). */
/* nagłówek dnia: wiersz „data … +”, pod nim znaczniki dnia (święto) na całą szerokość */
.cal-day-title { min-width: 0; flex: 1 1 0; }
.cal-head .cal-horses { flex-wrap: wrap; max-width: 100%; } /* wielu koni – filtr zawija się zamiast poszerzać stronę */
.cal-head > .cal-add { margin-left: auto; } /* po zawinięciu nagłówka przycisk zostaje przy prawej krawędzi – menu (dropdown-menu-end) nie chowa się pod paskiem bocznym */ /* obok „+” – łam między słowami, w środku słowa tylko, gdy się nie mieści */
.cal-add .cal-plus { padding: 0; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cal-add .cal-plus::after { display: none; }
.cal-add-menu { max-width: calc(100vw - 1rem); min-width: 15rem; }
.cal-add-menu .dropdown-item { white-space: normal; }
.cal-add-menu .dropdown-item:disabled small { font-size: 11px; }
@media (max-width: 767.98px) {
  .cal-add .cal-plus { width: 40px; height: 40px; }
  .cal-add .cal-add-btn { min-height: 40px; min-width: 40px; }
}
@media (max-width: 575.98px) {
  .cal-head .cal-week { margin-left: 0 !important; }
  .cal-head .cal-horses { flex-wrap: wrap; max-width: 100%; margin-left: 0 !important; }
  .cal-head .cal-add { margin-left: auto; }
}
/* V73: wyłączenia miejsc i ukryte miejsca w grafiku stajni */
.eq-vhead .eq-vmenu .ti{color:var(--bs-secondary-color);font-size:1rem}
.eq-vclosed{display:block;margin-top:.25rem;font-size:.7rem;line-height:1.25}
.eq-bk-closure{background-image:repeating-linear-gradient(135deg,rgba(0,0,0,.05) 0 6px,transparent 6px 12px)}
.eq-venue-menu .form-check-label{cursor:pointer}

/* znacznik „ukryte dla właścicieli” (fragments/ui :: ownerExtra) – funkcja właściciela widoczna tylko dla tego konta */
.eq-owner-extra { color: var(--bs-warning-text-emphasis, #997404); font-size: .85em; margin-left: .35rem; vertical-align: -1px; cursor: help; flex: 0 0 auto; }
.side-nav .eq-owner-extra { margin-left: auto; padding-left: .35rem; opacity: .9; }

/* ===== Kafelki grafiku w swojej wysokości (schedule.js → fitTile): bez liter uciętych w połowie ===== */
.eq-sched .eq-bk.eq-bk-placed { line-height: 1.3; }
/* plakietka trybu w kafelkach – mniejsza, ta sama kolorystyka (kontrast > 6:1); w wąskim / niskim kafelku sama ikona */
.eq-bk .eq-mode, .gr-card .eq-mode, .gr-row .eq-mode, .gr-tl .eq-mode { height: 18px; gap: 3px; padding: 0 6px 0 4px; font-size: 11px; }
.eq-bk .eq-mode .ti, .gr-card .eq-mode .ti, .gr-row .eq-mode .ti, .gr-tl .eq-mode .ti { font-size: 13px; }
.eq-bk .eq-bk-top .eq-mode { height: 18px; }
.eq-bk .eq-bk-top .eq-mode.ic, .eq-bk-narrow .eq-bk-top .eq-mode, .eq-bk-slim .eq-bk-top .eq-mode, .eq-bk-l1 .eq-bk-top .eq-mode { width: 18px; padding: 0; justify-content: center; }
.eq-bk-l1 .eq-mode .eq-mode-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* układ kompaktowy: każdy wiersz w jednej linii z wielokropkiem, wiersze, które się nie mieszczą – ukryte */
.eq-sched .eq-bk.eq-bk-compact { overflow-wrap: normal; display: flex; flex-direction: column; }
.eq-sched .eq-bk.eq-bk-compact > * { flex: none; }
.eq-sched .eq-bk.eq-bk-compact > .eq-bk-venue { order: 9; }
.eq-sched .eq-bk.eq-bk-compact > div:not(.eq-bk-top) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-sched .eq-bk.eq-bk-compact > div div { display: inline; }
.eq-sched .eq-bk.eq-bk-compact > div div::before { content: " · "; }
.eq-sched .eq-bk.eq-bk-compact > .eq-bk-cut { display: none !important; }
.eq-sched .eq-bk.eq-bk-compact .eq-bk-top { align-items: center !important; min-width: 0; }
.eq-sched .eq-bk.eq-bk-compact .eq-bk-top > b { overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
/* jedna linia (≈ do 30–45 min przy wąskiej osi): godzina · ikona trybu · trening */
.eq-sched .eq-bk.eq-bk-l1 { display: flex; flex-direction: row; align-items: center; gap: 4px; padding-top: 0 !important; padding-bottom: 0 !important; }
.eq-sched .eq-bk.eq-bk-l1 > div { flex: 0 1 auto; min-width: 0; }
.eq-sched .eq-bk.eq-bk-l1 > .eq-bk-top { flex: none; max-width: 70%; }
.eq-sched .eq-bk.eq-bk-l1 > .eq-bk-top .ms-auto { margin-left: 0 !important; }
.eq-sched .eq-bk.eq-bk-l1 .eq-bk-grip { display: none; }
/* wąski tor (< 96 px): sama godzina początku – koniec w dymku i w szczegółach */
.eq-sched .eq-bk.eq-bk-narrow .eq-bk-end { display: none; }
/* jedna linia: mniejsza czcionka, żeby zmieściła się w kafelku 15–20 min; pasek bez treści przy wpisach 5 min jeden po drugim */
.eq-sched .eq-bk.eq-bk-l1 { font-size: 11px !important; line-height: 1.15; }
.eq-sched .eq-bk.eq-bk-l1 .eq-mode { height: min(18px, 1.4em); }
.eq-sched .eq-bk.eq-bk-tiny > * { visibility: hidden; }

/* Grafik szkółki po instruktorach (/s/{sid}/school/board): oś godzin przypięta, kolumna na prowadzącego, kafelek = czas trwania */
.eq-sboard { --sb-axis: 56px; --sb-colw: 200px; --sb-accent: var(--bs-primary); overflow-x: auto; position: relative; }
.eq-sboard-head, .eq-sboard-body { display: grid; grid-template-columns: var(--sb-axis) repeat(var(--sb-cols), minmax(var(--sb-colw), 1fr)); min-width: calc(var(--sb-axis) + var(--sb-cols) * var(--sb-colw)); }
.eq-sboard-head { position: sticky; top: 0; z-index: 3; background: var(--bs-body-bg); border-bottom: 1px solid var(--bs-border-color); }
.eq-sboard-colhead { padding: .5rem .6rem; border-left: 1px solid var(--bs-border-color); min-width: 0; }
.eq-sboard-axis { position: sticky; left: 0; z-index: 2; background: var(--bs-body-bg); border-right: 1px solid var(--bs-border-color); }
.eq-sboard-body .eq-sboard-axis { position: sticky; height: 100%; }
.eq-sboard-hour { position: absolute; left: 0; right: 6px; transform: translateY(-.5em); text-align: right; font-size: 12px; color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }
.eq-sboard-hour:first-child { transform: none; }
.eq-sboard-col { position: relative; border-left: 1px solid var(--bs-border-color); min-width: 0; }
.eq-sboard-line { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--bs-border-color-translucent); }
.eq-sboard-tile { position: absolute; overflow: hidden; border-radius: 6px; font-size: 12px; line-height: 1.25; color: var(--bs-body-color);
  background: color-mix(in srgb, var(--sb-accent) 14%, var(--bs-body-bg)); border: 1px solid color-mix(in srgb, var(--sb-accent) 45%, transparent); border-left: 4px solid var(--sb-accent); }
.eq-sboard-tile:hover { box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 1; }
.eq-sboard-link { display: block; height: 100%; padding: 2px 6px; color: inherit; text-decoration: none; overflow: hidden; }
.eq-sboard-link:hover, .eq-sboard-link:focus { color: inherit; }
.eq-sboard-tile.has-problem .eq-sboard-link { padding-right: 30px; }
/* ostrzeżenie: ikona przypięta w prawym górnym rogu kafelka (zawsze widoczna), klik – dymek z pełną listą */
.eq-sboard-warn { position: absolute; top: 2px; right: 2px; z-index: 2; display: inline-flex; align-items: center; gap: 1px; min-width: 24px; height: 22px; padding: 0 4px; border: 0; border-radius: 11px;
  background: var(--bs-danger); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer; }
.eq-sboard-warn:focus-visible { outline: 2px solid var(--bs-body-color); outline-offset: 1px; }
.eq-sboard-warn .ti { font-size: 14px; }
.eq-sboard-warn-line { color: var(--bs-danger); font-weight: 600; font-size: 11.5px; }
.eq-sboard-pop { --bs-popover-max-width: 320px; font-size: 13px; }
.eq-sboard-pop ul { color: var(--bs-danger); }
.eq-sboard-colwarn { font-size: 11px; }
.eq-sboard-tile.is-individual { --sb-accent: var(--ins-info, #35b9e1); border-style: dashed; border-left-style: solid; }
.eq-sboard-tile.is-lunge { --sb-accent: var(--bs-warning); }
.eq-sboard-tile.has-problem { border-color: var(--bs-danger); border-left-color: var(--bs-danger); box-shadow: inset 0 0 0 1px var(--bs-danger); }
.eq-sboard-time { font-weight: 600; font-variant-numeric: tabular-nums; }
.eq-sboard-title { font-weight: 600; font-size: 13px; }
.eq-sboard-meta, .eq-sboard-horses { color: var(--bs-secondary-color); }
.eq-sboard-tile.is-short .eq-sboard-meta, .eq-sboard-tile.is-short .eq-sboard-horses, .eq-sboard-tile.is-short .eq-sboard-warn-line { display: none; }
.eq-sboard-tile.is-short .eq-sboard-link { display: flex; flex-direction: column; justify-content: center; }
.eq-sboard-tile.is-short .eq-sboard-t1 { display: inline; }
.eq-sboard-leg { display: inline-block; width: 1.4rem; height: .8rem; border-radius: 3px; vertical-align: -1px; background: color-mix(in srgb, var(--bs-primary) 14%, transparent); border: 1px solid var(--bs-primary); border-left-width: 4px; }
.eq-sboard-leg.is-individual { border-color: var(--ins-info, #35b9e1); border-style: dashed; border-left-style: solid; background: color-mix(in srgb, var(--ins-info, #35b9e1) 14%, transparent); }
.eq-sboard-leg.has-problem { border-color: var(--bs-danger); background: transparent; }
@media (max-width: 575.98px) { .eq-sboard { --sb-axis: 44px; --sb-colw: 170px; } }

/* Zadania stajni (V80) na tablicy opieki: duże pole odhaczenia (min. 44 px), zaległe na czerwono, postęp dnia i osób. */
.care-board .cb-task { align-items: center; }
.care-board .cb-task.overdue { box-shadow: inset 3px 0 0 var(--eq-danger-fg); }
.care-board .cb-task.done .cb-task-title b { text-decoration: line-through; color: var(--eq-muted); }
.cb-check { flex: none; width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--eq-sage-strong); background: var(--eq-surface); color: transparent; display: inline-grid; place-items: center; font-size: 1.5rem; cursor: pointer; transition: background .15s, color .15s, transform .1s; }
.cb-check:hover, .cb-check:focus-visible { color: var(--eq-sage-strong); background: var(--eq-soft-bg); }
.cb-check:focus-visible { outline: 3px solid var(--eq-bar); outline-offset: 2px; }
.cb-check:active { transform: scale(.94); }
.cb-check.on { background: var(--eq-forest); border-color: var(--eq-forest); color: #fff; }
.cb-check.locked { border-style: dashed; border-color: var(--eq-line); color: var(--eq-muted); cursor: default; font-size: 1.1rem; }
.cb-task.overdue .cb-check:not(.on) { border-color: var(--eq-danger-fg); }
.cb-photo-btn { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
.cb-task-done { color: var(--eq-ok-fg); }
.min-w-0 { min-width: 0; }
.task-progress .eq-progress { height: 10px; }
.task-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem 1rem; }
.task-person { display: grid; grid-template-columns: 1fr auto; column-gap: .5rem; align-items: center; font-size: .875rem; }
.task-person .tp-overdue { grid-column: 1 / -1; color: var(--eq-danger-fg); font-size: .75rem; font-weight: 600; }
.task-person .tp-bar { grid-column: 1 / -1; margin-top: .25rem; height: 6px; }
.task-form .tf-horse-list { max-height: 220px; overflow: auto; }
.task-form .tf-invalid { outline: 2px solid var(--eq-danger-fg); border-radius: 8px; }
.task-hist td.overdue, .task-hist .overdue { color: var(--eq-danger-fg); }
.care-board .cb-task { scroll-margin-top: 96px; }
.care-board .cb-task:target { background: var(--eq-soft-bg); }
/* ---------- V82: przełącznik zakresu „Moje / Stajnia X” i raport kosztów stajni ---------- */
.eq-scope { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; }
.eq-scope .btn { min-height: 36px; display: inline-flex; align-items: center; gap: .3rem; }
.eq-kpi { border-radius: var(--eq-radius); background: var(--eq-surface); box-shadow: var(--eq-shadow); padding: 1rem 1.1rem; height: 100%; }
.eq-kpi .eq-kpi-label { color: var(--eq-muted); font-size: .8125rem; }
.eq-kpi .eq-kpi-value { font-family: var(--eq-font-display); font-size: 1.5rem; font-weight: 600; color: var(--eq-strong); font-variant-numeric: tabular-nums; line-height: 1.25; }
.eq-kpi .eq-kpi-sub { font-size: .8125rem; color: var(--eq-muted); }
.eq-kpi.eq-kpi-hero { background: var(--eq-tile-bg); color: var(--eq-tile-fg); }
.eq-kpi.eq-kpi-hero .eq-kpi-label, .eq-kpi.eq-kpi-hero .eq-kpi-sub, .eq-kpi.eq-kpi-hero .eq-kpi-value { color: var(--eq-tile-fg); }
.eq-delta { font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.eq-delta.up { color: var(--eq-danger-fg); } .eq-delta.down { color: var(--eq-ok-fg); }
.eq-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.eq-catbar { display: grid; gap: 3px; min-width: 120px; }
.eq-catbar span { display: block; height: 8px; border-radius: 4px; background: var(--eq-track); position: relative; overflow: hidden; }
.eq-catbar span i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--eq-bar); }
.eq-catbar span.prev i { background: var(--eq-sage-light); }
.eq-legend { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--eq-muted); }
.eq-legend i { width: 12px; height: 8px; border-radius: 3px; background: var(--eq-bar); display: inline-block; }
.eq-legend i.prev { background: var(--eq-sage-light); }
.eq-empty { text-align: center; padding: 2rem 1rem; color: var(--eq-muted); }
.eq-empty .ti { font-size: 2rem; color: var(--eq-sage); display: block; margin-bottom: .5rem; }

/* Pasek akcji zaznaczonych wierszy („Moi jeźdźcy” → „Zaplanuj jazdę (N)”): przyklejony do dołu, nad treścią, z bezpiecznym obszarem iOS */
.eq-planbar { position: sticky; bottom: 0; z-index: 1020; margin-top: 12px; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 10px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08); padding: 10px 4px calc(10px + env(safe-area-inset-bottom)); }
.eq-planbar .btn { min-height: 44px; }
.plan-rider .form-select { min-width: 12rem; }
.plan-rider .plan-status { min-height: 1.25rem; }

/* podgląd roli (V89): pasek zawsze widoczny pod górnym paskiem */
.eq-preview-bar{position:sticky;top:calc(var(--ins-topbar-height,65px) + .25rem);z-index:1010;box-shadow:0 2px 6px rgba(0,0,0,.12)}

/* grafik stajni – widok tygodnia jednego miejsca (schedule_week.html): wyłączenia miejsc (V73) */
.eq-week-venue{display:inline-flex;align-items:center;gap:.3rem;min-height:36px}
.eq-week-venue-closed:not(.btn-primary){border:1px solid color-mix(in srgb,var(--bs-danger) 35%,transparent);color:var(--bs-danger-text-emphasis)}
.eq-week-venue-closed .ti-ban{color:var(--bs-danger)}
.eq-week-venue-closed.btn-primary .ti-ban{color:inherit}
.eq-week-venue-days{font-size:.72rem;opacity:.9}
.eq-week-scroll{overflow-x:auto}
.eq-week{display:grid;grid-template-columns:52px repeat(7,minmax(104px,1fr));min-width:780px}
.eq-week-corner,.eq-week-head{border-bottom:1px solid var(--bs-border-color)}
.eq-week-head{display:block;text-align:center;padding:.4rem .25rem;color:var(--bs-body-color);text-decoration:none;border-left:1px solid var(--bs-border-color-translucent)}
.eq-week-head:hover{background:var(--bs-tertiary-bg)}
.eq-week-head.past{color:var(--bs-secondary-color)}
.eq-week-head.today{box-shadow:inset 0 -3px 0 var(--bs-primary)}
.eq-week-head.closed{background:color-mix(in srgb,var(--bs-danger) 8%,var(--bs-body-bg))}
.eq-week-hours{position:relative;height:calc(var(--eq-hour) * var(--eq-rows))}
.eq-week-hour{height:var(--eq-hour);font-size:.72rem;color:var(--bs-secondary-color);text-align:right;padding-right:.35rem;transform:translateY(-.45em)}
.eq-week-col{position:relative;height:calc(var(--eq-hour) * var(--eq-rows));border-left:1px solid var(--bs-border-color-translucent);
  background-image:repeating-linear-gradient(to bottom,var(--bs-border-color-translucent) 0 1px,transparent 1px var(--eq-hour))}
.eq-week-col.past{background-color:var(--bs-tertiary-bg)}
.eq-week-cell{position:absolute;inset:0}
.eq-week-cell:hover{background:color-mix(in srgb,var(--bs-primary) 5%,transparent)}
.eq-week-col.closed{background-color:color-mix(in srgb,var(--bs-danger) 5%,var(--bs-body-bg));
  background-image:repeating-linear-gradient(135deg,color-mix(in srgb,var(--bs-danger) 14%,transparent) 0 6px,transparent 6px 14px)}
.eq-week-closed{position:absolute;top:.5rem;left:.3rem;right:.3rem;z-index:1;display:flex;flex-direction:column;align-items:center;gap:.15rem;text-align:center;font-size:.75rem;
  padding:.4rem .3rem;border-radius:.4rem;background:var(--bs-body-bg);border:1px solid color-mix(in srgb,var(--bs-danger) 35%,transparent);color:var(--bs-danger-text-emphasis)}
.eq-week-closed .ti-lock{font-size:1.1rem}
.eq-week-closed>span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.eq-week-tile{position:absolute;z-index:2;padding:2px 4px;border-radius:.3rem;font-size:.72rem;line-height:1.25;overflow:hidden;text-decoration:none;color:var(--bs-body-color);
  border:1px solid var(--bs-border-color);background:var(--bs-body-bg);box-sizing:border-box}
.eq-week-tile.tone-mine{background:var(--bs-success-bg-subtle);border-color:color-mix(in srgb,var(--bs-success) 40%,transparent)}
.eq-week-tile.tone-entry{background:var(--bs-primary-bg-subtle);border-color:color-mix(in srgb,var(--bs-primary) 40%,transparent)}
.eq-week-tile.tone-school{background:var(--bs-info-bg-subtle);border-color:color-mix(in srgb,var(--bs-info) 40%,transparent)}
.eq-week-tile.tone-block,.eq-week-tile.tone-closure{background:repeating-linear-gradient(135deg,var(--bs-danger-bg-subtle) 0 6px,color-mix(in srgb,var(--bs-danger) 14%,var(--bs-body-bg)) 6px 12px);
  border-color:color-mix(in srgb,var(--bs-danger) 45%,transparent);color:var(--bs-danger-text-emphasis)}
.eq-week-tile.pending{border-style:dashed}
/* „Wpisz się” – wybór kilku koni (osobny wpis dla każdego) */
#bookForm .eq-horse-pick { max-height: 13.5rem; overflow-y: auto; }
#bookForm .eq-horse-pick .list-group-item { cursor: pointer; min-height: 44px; }

/* ==========================================================================
   Globalna wyszukiwarka – paleta Cmd+K / Ctrl+K (fragments/search.html, js/eq-search.js)
   ========================================================================== */
html.eq-search-lock, html.eq-search-lock body { overflow: hidden; }
.eq-search { position: fixed; inset: 0; z-index: 1090; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 1rem 1rem; }
.eq-search[hidden] { display: none; }
.eq-search-backdrop { position: absolute; inset: 0; background: rgba(6, 30, 26, .5); opacity: 0; transition: opacity .14s ease-out; }
.eq-search-dialog { position: relative; width: min(720px, 100%); max-height: min(640px, 80vh); display: flex; flex-direction: column; background: var(--eq-surface); color: var(--ins-body-color);
  border: 1px solid var(--eq-line); border-radius: var(--eq-radius); box-shadow: 0 24px 64px rgba(6, 30, 26, .32); overflow: hidden;
  opacity: 0; transform: translateY(-6px) scale(.985); transition: opacity .14s ease-out, transform .14s ease-out; }
.eq-search.is-open .eq-search-backdrop { opacity: 1; }
.eq-search.is-open .eq-search-dialog { opacity: 1; transform: none; }
.eq-search-head { display: flex; align-items: center; gap: .75rem; padding: .875rem 1rem; border-bottom: 1px solid var(--eq-line); }
.eq-search-head > .ti-search { font-size: 1.375rem; color: var(--eq-muted); }
.eq-search-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit; font-size: 1.0625rem; line-height: 1.5; padding: .25rem 0; }
.eq-search-input::placeholder { color: var(--eq-muted); opacity: 1; }
.eq-search-input:focus-visible { outline: 0; box-shadow: none; }
.eq-search-esc { flex: none; border: 1px solid var(--eq-line); background: var(--eq-surface-2); color: var(--eq-muted); border-radius: 6px; font-size: .75rem; font-weight: 600; padding: .2rem .5rem; min-height: 28px; }
.eq-search-esc:hover { color: var(--eq-strong); }
.eq-search-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--eq-track); border-top-color: var(--eq-bar); visibility: hidden; }
.eq-search.is-loading .eq-search-spin { visibility: visible; animation: eq-search-spin .7s linear infinite; }
@keyframes eq-search-spin { to { transform: rotate(360deg); } }
.eq-search-list { overflow-y: auto; overscroll-behavior: contain; padding: .375rem .5rem; }
.eq-search-list:empty { display: none; }
.eq-search-group { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--eq-muted); padding: .75rem .625rem .375rem; }
.eq-search-opt { display: flex; align-items: center; gap: .75rem; min-height: 48px; padding: .375rem .625rem; border-radius: var(--eq-radius-sm); color: inherit; text-decoration: none; scroll-margin: .5rem; }
.eq-search-opt:hover { color: inherit; }
.eq-search-opt.is-active { background: var(--eq-soft-bg); box-shadow: inset 3px 0 0 var(--eq-bar); }
.eq-search-opt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.eq-search-opt-title { font-weight: 500; color: var(--eq-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-search-opt-sub { font-size: .8125rem; color: var(--eq-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-search-opt mark { background: transparent; color: var(--eq-soft-fg); padding: 0; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.eq-search-go { color: var(--eq-muted); opacity: 0; font-size: 1rem; }
.eq-search-opt.is-active .eq-search-go { opacity: 1; }
.eq-search-state { padding: 0 1.125rem; color: var(--eq-muted); font-size: .875rem; }
.eq-search-state:empty { display: none; }
.eq-search-state.is-empty, .eq-search-state.is-error { padding: 1.5rem 1.125rem; text-align: center; }
.eq-search-state.is-error { color: var(--eq-danger-fg); }
.eq-search-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: .5rem 1rem; border-top: 1px solid var(--eq-line); background: var(--eq-surface-2); color: var(--eq-muted); font-size: .8125rem; }
.eq-search kbd, .eq-cmdk { font-family: inherit; font-size: .75rem; font-weight: 600; background: var(--eq-surface); color: var(--eq-muted); border: 1px solid var(--eq-line); border-bottom-width: 2px; border-radius: 5px; padding: .05rem .375rem; box-shadow: none; }
.eq-search-foot kbd + kbd { margin-left: .125rem; }
.eq-search-open { display: inline-flex; align-items: center; }
.eq-search-open .eq-cmdk { background: var(--eq-surface-2); line-height: 1.4; }
@media (max-width: 575.98px) {
  .eq-search { padding: .5rem; }
  .eq-search-dialog { max-height: calc(100dvh - 1rem); }
  .eq-search-foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .eq-search-backdrop, .eq-search-dialog { transition: none; transform: none; }
  .eq-search.is-loading .eq-search-spin { animation: none; border-top-color: var(--eq-track); border-right-color: var(--eq-bar); }
}

/* Logo stajni (V119): kwadratowe, zaokrąglone, bez rozciągania; w menu i przełączniku widoku obok nazwy */
.eq-stable-logo { object-fit: contain; border-radius: 6px; vertical-align: middle; flex: none; background: transparent; }
.eq-nav-stable { display: flex; align-items: center; gap: .5rem; }
.eq-nav-stable span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.eq-logo-settings { width: 96px; height: 96px; border-radius: 12px; border: 1px solid var(--bs-border-color, #dee2e6); object-fit: contain; background: #fff; }
.eq-logo-crop { touch-action: none; cursor: grab; width: 100%; max-width: 320px; aspect-ratio: 1; border-radius: 12px; background: repeating-conic-gradient(#e9ecef 0 25%, #fff 0 50%) 0 / 20px 20px; display: block; margin: 0 auto; }
/* V120 „Czy trening się odbył?” – oznaczenie po terminie (ikona + tekst), przyciski ≥ 44 px */
.trc-badge { font-weight: 600; white-space: nowrap; }
.trc-pending { background: #FFF3CD; color: #664D03; }
.trc-stale { background: #F8D7DA; color: #842029; }
.trc-count { background: #664D03; color: #fff; }
.trc-btn { min-height: 44px; display: inline-flex; align-items: center; }
.trc-row + .trc-row { border-top: 1px solid var(--bs-border-color, #dee2e6); padding-top: .5rem; margin-top: .5rem; }
.trc-card { border-left: 4px solid #FFC107; }
