/* Vanto Equestrian Center — system wyglądu v3, w duchu Apple (iOS 26).
   Zasady: treść na spokojnych, pełnych kartach; szkło tylko na warstwie
   sterowania (pasek kart, arkusze, toast, przyciski nad zdjęciem).
   Jasny motyw domyślnie, ciemny według ustawień telefonu albo wyboru.
   Złoto marki oszczędnie: główna akcja i stan „wybrane”.
   Role: html.t-glass (pensjonariusz, menedżer), html.t-solid (stajenny:
   większy tekst i cele dotyku), html.t-brand (logowanie), html.tv. */

:root {
  --navy: #16233A;
  --ink: #0F1A2C;
  --gold: #B98A4E;
  --gold-l: #D1A76C;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --brand-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --scale: 1;

  /* Jasny (domyślny) — wzór: systemGroupedBackground */
  --bg: #F2F2F7;
  --surface: #FFFFFF;
  --surface-2: #F2F2F7;
  --fill: rgba(120, 120, 128, .12);
  --fill-2: rgba(120, 120, 128, .2);
  --fg: #0F1A2C;
  --fg-2: rgba(22, 35, 58, .66);
  --fg-3: rgba(22, 35, 58, .44);
  --line: rgba(22, 35, 58, .12);
  --tint: #8A6026;
  --tint-fill: #D1A76C;
  --on-tint: #16233A;
  --ok: #1F7A45;
  --ok-fill: #34C759;
  --warn: #9A5B00;
  --crit: #C0352B;
  --info: #1F5FA8;
  --ok-bg: rgba(52, 199, 89, .14);
  --warn-bg: rgba(255, 149, 0, .14);
  --crit-bg: rgba(255, 59, 48, .12);
  --info-bg: rgba(0, 122, 255, .1);
  --tint-bg: rgba(185, 138, 78, .14);
  --chrome: rgba(255, 255, 255, .72);
  --chrome-line: rgba(255, 255, 255, .6);
  --chrome-blur: blur(20px) saturate(180%);
  --shadow-card: 0 1px 2px rgba(15, 26, 44, .04);
  --shadow-float: 0 8px 30px rgba(15, 26, 44, .14), 0 1px 3px rgba(15, 26, 44, .08);
  --field: #FFFFFF;
  --tap: 44px;
  --row: 52px;
  --r-card: 22px;
  --r-inner: 14px;
  --r-sheet: 32px;
  --body: 1.0625rem;
  --ease: cubic-bezier(.2, .9, .25, 1);
  color-scheme: light;
}

/* Ciemny: wg telefonu (gdy nie wybrano jasnego) albo z wyboru. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0F18; --surface: #151D2B; --surface-2: #1F2A3C;
    --fill: rgba(118, 128, 150, .2); --fill-2: rgba(118, 128, 150, .3);
    --fg: #FFFFFF; --fg-2: rgba(235, 238, 245, .68); --fg-3: rgba(235, 238, 245, .42);
    --line: rgba(140, 160, 190, .2);
    --tint: #D1A76C; --tint-fill: #D1A76C; --on-tint: #16233A;
    --ok: #30D158; --ok-fill: #30D158; --warn: #FF9F0A; --crit: #FF453A; --info: #64A8FF;
    --ok-bg: rgba(48, 209, 88, .16); --warn-bg: rgba(255, 159, 10, .16); --crit-bg: rgba(255, 69, 58, .16); --info-bg: rgba(100, 168, 255, .14); --tint-bg: rgba(209, 167, 108, .16);
    --chrome: rgba(21, 29, 43, .72); --chrome-line: rgba(255, 255, 255, .1);
    --shadow-card: none; --shadow-float: 0 10px 34px rgba(0, 0, 0, .5);
    --field: #1F2A3C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0F18; --surface: #151D2B; --surface-2: #1F2A3C;
  --fill: rgba(118, 128, 150, .2); --fill-2: rgba(118, 128, 150, .3);
  --fg: #FFFFFF; --fg-2: rgba(235, 238, 245, .68); --fg-3: rgba(235, 238, 245, .42);
  --line: rgba(140, 160, 190, .2);
  --tint: #D1A76C; --tint-fill: #D1A76C; --on-tint: #16233A;
  --ok: #30D158; --ok-fill: #30D158; --warn: #FF9F0A; --crit: #FF453A; --info: #64A8FF;
  --ok-bg: rgba(48, 209, 88, .16); --warn-bg: rgba(255, 159, 10, .16); --crit-bg: rgba(255, 69, 58, .16); --info-bg: rgba(100, 168, 255, .14); --tint-bg: rgba(209, 167, 108, .16);
  --chrome: rgba(21, 29, 43, .72); --chrome-line: rgba(255, 255, 255, .1);
  --shadow-card: none; --shadow-float: 0 10px 34px rgba(0, 0, 0, .5);
  --field: #1F2A3C;
  color-scheme: dark;
}

/* Stajenny: tekst 19 px, cele dotyku 56 px — rękawice, słońce, pośpiech. */
html.t-solid { --body: 1.1875rem; --tap: 56px; --row: 64px; }
/* Bez rozmycia: Android (słabsze GPU), prośba o mniej przezroczystości, wysoki kontrast. */
html.no-blur { --chrome-blur: none; --chrome: var(--surface); }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root { --chrome-blur: none; --chrome: var(--surface); }
}
@media (prefers-contrast: more) {
  :root { --fg-2: var(--fg); --line: rgba(22, 35, 58, .4); }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: calc(100% * var(--scale)); -webkit-text-size-adjust: 100%; height: 100%; }
body {
  margin: 0; min-height: 100%;
  background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: var(--body); line-height: 1.3; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; touch-action: manipulation; letter-spacing: inherit; }
a { color: var(--tint); }
:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
svg.i { width: 1.25em; height: 1.25em; flex: none; display: block; }

/* Tło z plamami zostaje wyłącznie na ekranie logowania (chwila marki). */
.bg { display: none; }

/* ---------- Materiały ---------- */
/* .glass to dziś po prostu karta treści — pełna, spokojna. */
.glass { background: var(--surface); box-shadow: var(--shadow-card); }
/* Prawdziwe szkło tylko dla warstwy sterowania. */
.tabbar.glass, .sheet.glass, .toast.glass, .mgr-side.glass, .topbar, .scan-cta-wrap, .hero .glass, .composer.glass {
  background: var(--chrome);
  -webkit-backdrop-filter: var(--chrome-blur); backdrop-filter: var(--chrome-blur);
  border: .5px solid var(--chrome-line);
  box-shadow: var(--shadow-float);
}

/* ---------- Typografia (pt = px) ---------- */
.large, .head h1, .h1 { margin: 0; font: 700 2.125rem/1.2 var(--font); letter-spacing: -0.025em; text-wrap: balance; }
.title2 { font: 700 1.375rem/1.27 var(--font); letter-spacing: -0.02em; }
.title3 { font: 600 1.25rem/1.25 var(--font); letter-spacing: -0.015em; }
.head p { margin: 4px 0 0; font-size: .9375rem; color: var(--fg-2); letter-spacing: 0; }
.muted { color: var(--fg-2); }
.faint { color: var(--fg-2); font-size: .8125rem; letter-spacing: 0; }
.p { margin: 0; line-height: 1.4; }

/* ---------- Układ strony ---------- */
.page {
  max-width: 620px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px calc(env(safe-area-inset-bottom, 0px) + 120px);
  display: grid; gap: 16px; align-content: start;
}
html.t-solid .page { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 170px); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 6px 4px 2px; }
.head > div { min-width: 0; }
.back { display: inline-flex; align-items: center; gap: 2px; font-size: var(--body); color: var(--tint); min-height: var(--tap); margin-left: -6px; padding-right: 10px; }
.back svg.i { width: 1.4em; height: 1.4em; }
/* Nagłówek sekcji jak w listach iOS: zwykła wielkość liter, spokojny kolor. */
.sec { font: 600 1.25rem/1.25 var(--font); letter-spacing: -0.015em; color: var(--fg); padding: 10px 4px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sec small { font: 400 .9375rem/1.3 var(--font); color: var(--fg-2); letter-spacing: 0; }
.sec small .btn.ghost { font-size: .9375rem; }

/* Karta i lista wcięta (inset grouped) */
.card { border-radius: var(--r-card); padding: 0; display: grid; min-width: 0; overflow: hidden; }
.card.pad { padding: 16px; gap: 12px; }
.row {
  display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 16px; min-height: var(--row); text-align: left; width: 100%; position: relative;
}
.row + .row::before, .task + .task::before, .swipe + .swipe::before, .service + .service::before, .inbox-item + .inbox-item::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--line); z-index: 1;
}
.row.nobar { grid-template-columns: 1fr auto; }
.row .bar { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--tint-fill)); align-self: start; margin-top: .45em; }
.row b, .row .t { display: block; font-weight: 600; line-height: 1.3; }
.row small { display: block; font-size: .8125rem; color: var(--fg-2); margin-top: 3px; letter-spacing: 0; line-height: 1.35; }
.row .end { display: flex; align-items: center; gap: 8px; color: var(--fg-3); }
button.row:active, button.inbox-item:active, button.service:active { background: var(--fill); }
.row > span, .row > div, .row > button { min-width: 0; }
/* Ikona stanu w kolorowym kółku — kolor + ikona + słowo. */
.badge-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--fill); color: var(--fg-2); }
.badge-ico svg.i { width: 20px; height: 20px; }
.badge-ico.crit { background: var(--crit-bg); color: var(--crit); }
.badge-ico.warn { background: var(--warn-bg); color: var(--warn); }
.badge-ico.ok { background: var(--ok-bg); color: var(--ok); }
.badge-ico.info { background: var(--info-bg); color: var(--info); }
.badge-ico.tint { background: var(--tint-bg); color: var(--tint); }
.row.ico { grid-template-columns: 34px 1fr auto; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: var(--fill); color: var(--fg-2); font-weight: 600; white-space: nowrap; letter-spacing: 0; }
.tag.crit { background: var(--crit-bg); color: var(--crit); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.info { background: var(--info-bg); color: var(--info); }

/* ---------- Przyciski (kapsuły) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 0 20px; min-height: var(--tap); font-weight: 600; font-size: var(--body);
  transition: transform 120ms ease-out, opacity 120ms, background 160ms; user-select: none; white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.block { width: 100%; }
.btn.primary { background: var(--tint-fill); color: var(--on-tint); }
.btn.soft { background: var(--fill); color: var(--fg); }
.btn.white { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-card); }
.btn.ghost { color: var(--tint); padding: 0 10px; background: none; }
.btn.danger { background: var(--crit); color: #fff; }
.btn.ok { background: var(--ok-fill); color: #0B2A16; }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: .9375rem; }
html.t-solid .btn.sm { min-height: 44px; }
.pill { border-radius: 999px; padding: 0 14px; font-size: .9375rem; font-weight: 600; background: var(--fill); color: var(--fg); white-space: nowrap; min-height: 34px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
html.t-solid .pill { min-height: 44px; padding: 0 16px; }
.pill.on { background: var(--ok-bg); color: var(--ok); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btns > .btn { flex: 1 1 0; }
a.pill, a.btn, a.row { text-decoration: none; color: inherit; }
.sos {
  flex: none; border-radius: 999px; padding: 0 18px; min-height: 44px; font-weight: 800; font-size: .9375rem; letter-spacing: .04em;
  background: var(--crit); color: #fff;
}

/* ---------- Pola ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .field > label { font-size: .8125rem; color: var(--fg-2); font-weight: 500; padding-left: 4px; letter-spacing: 0; }
.input, .field input, .field select, .field textarea {
  width: 100%; border-radius: var(--r-inner); border: .5px solid var(--line); background: var(--field); color: var(--fg);
  font: inherit; font-size: var(--body); padding: 12px 14px; min-height: var(--tap);
}
.sheet .field input, .sheet .field select, .sheet .field textarea, .sheet .input { background: var(--surface); }
.field textarea { min-height: 100px; resize: vertical; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: var(--fg-3); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--row); padding: 4px 0; }
.check-row + .check-row { border-top: .5px solid var(--line); }
/* Przełącznik jak w iOS */
.switch { appearance: none; width: 51px; height: 31px; border-radius: 999px; background: var(--fill-2); position: relative; flex: none; transition: background 200ms; cursor: pointer; border: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; transition: transform 240ms var(--ease); box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .1); }
.switch:checked { background: var(--ok-fill); }
.switch:checked::after { transform: translateX(20px); }

/* Kontrolka segmentowa */
.seg { display: flex; padding: 2px; border-radius: 10px; background: var(--fill); gap: 0; overflow-x: auto; scrollbar-width: none; min-height: fit-content; flex-shrink: 0; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; border-radius: 8px; padding: 0 14px; min-height: 32px; font-size: .875rem; font-weight: 500; color: var(--fg); white-space: nowrap; letter-spacing: 0; }
.seg button.on { background: var(--surface); font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
html.t-solid .seg button { min-height: 44px; font-size: 1rem; }

/* ---------- Pasek kart (telefon) ---------- */
.tabbar {
  position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); z-index: 20;
  max-width: 520px; margin: 0 auto; border-radius: 999px; padding: 4px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center;
}
.tab { display: grid; justify-items: center; gap: 1px; font-size: .625rem; font-weight: 600; color: var(--fg); padding: 6px 0 5px; border-radius: 999px; position: relative; min-height: 52px; align-content: center; letter-spacing: 0; }
.tab svg.i { width: 26px; height: 26px; }
.tab.on { color: var(--tint); background: var(--fill); }
.tab .dot { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--crit); color: #fff; font-size: .6875rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
html.t-solid .tab { font-size: .75rem; min-height: 58px; }
/* Stajenny: „Skanuj boks” jako szeroka kapsuła nad paskiem (akcja, nie nawigacja). */
.scan-cta-wrap { position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 82px); z-index: 21; max-width: 520px; margin: 0 auto; border-radius: 999px; padding: 4px; }
.scan-cta { width: 100%; min-height: 52px; border-radius: 999px; background: var(--tint-fill); color: var(--on-tint); font-weight: 700; font-size: 1.0625rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.scan-cta svg.i { width: 24px; height: 24px; }
.scan-cta:active { transform: scale(.98); }

/* Zwinięty tytuł u góry po przewinięciu (telefon). */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 19; padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px; text-align: center; font-weight: 600; font-size: 1.0625rem; border: 0 !important; border-bottom: .5px solid var(--line) !important; box-shadow: none !important; transition: opacity 180ms, transform 220ms var(--ease); }
.topbar.off { opacity: 0; transform: translateY(-100%); pointer-events: none; }

/* ---------- Arkusz ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .32); }
.sheet {
  position: fixed; left: 8px; right: 8px; bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); z-index: 41;
  max-width: 600px; margin: 0 auto; max-height: calc(100% - 48px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain;
  border-radius: var(--r-sheet); padding: 6px 18px 20px; display: grid; gap: 14px; align-content: start;
}
.sheet.glass { background: var(--bg); }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: var(--fill-2); justify-self: center; margin: 4px 0 0; }
.sheet .drag-zone { touch-action: none; cursor: grab; display: grid; gap: 10px; }
.sheet h2 { margin: 0; font: 700 1.375rem/1.27 var(--font); letter-spacing: -0.02em; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sheet .card, .sheet .glass:not(.sheet) { background: var(--surface); }
.x { width: 32px; height: 32px; border-radius: 50%; background: var(--fill); color: var(--fg-2); display: grid; place-items: center; flex: none; }
.x svg.i { width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: sheet-up 420ms var(--ease) both; }
  .scrim { animation: fade 240ms ease both; }
  @keyframes sheet-up { from { transform: translateY(60px); opacity: 0; } }
  @keyframes fade { from { opacity: 0; } }
}

/* ---------- Komunikaty ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); z-index: 60; transform: translateX(-50%);
  width: max-content; max-width: min(92vw, 460px); border-radius: 999px; padding: 10px 10px 10px 16px; font-weight: 600; font-size: .9375rem;
  display: flex; gap: 10px; align-items: center; letter-spacing: 0;
}
html.t-solid .toast { bottom: calc(env(safe-area-inset-bottom, 0px) + 150px); }
.toast > span { padding-right: 6px; }
.toast.ok svg.i { color: var(--ok); }
.toast.err svg.i { color: var(--crit); }
.toast.info svg.i { color: var(--info); }
.toast .undo { background: var(--fill); border-radius: 999px; padding: 7px 14px; font-weight: 700; color: var(--tint); display: inline-flex; gap: 6px; align-items: center; }
.toast .undo svg.i { color: var(--tint) !important; width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) { .toast { animation: toast-in 320ms var(--ease) both; } @keyframes toast-in { from { opacity: 0; transform: translate(-50%, 14px) scale(.96); } } }
.banner { border-radius: var(--r-card); padding: 12px 16px; font-size: .9375rem; display: flex; gap: 12px; align-items: center; background: var(--surface); box-shadow: var(--shadow-card); letter-spacing: 0; }
.banner > svg.i { width: 22px; height: 22px; }
.banner.warn > svg.i { color: var(--warn); }
.banner.crit { background: var(--crit-bg); }
.banner.crit > svg.i { color: var(--crit); }
.banner.info > svg.i { color: var(--info); }
.empty { text-align: center; padding: 28px 16px; color: var(--fg-2); display: grid; gap: 10px; justify-items: center; font-size: .9375rem; }
.empty svg.i { width: 34px; height: 34px; color: var(--fg-3); }
.skel { border-radius: var(--r-card); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; min-height: 76px; }
@media (prefers-reduced-motion: no-preference) { .skel { animation: shimmer 1.4s linear infinite; } @keyframes shimmer { to { background-position: -200% 0; } } }

/* ---------- Pogoda ---------- */
.weather { border-radius: var(--r-card); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.weather .t { font-size: 2.5rem; font-weight: 300; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.weather .d { font-size: .8125rem; color: var(--fg-2); margin-top: 4px; letter-spacing: 0; }
.weather .r { text-align: right; font-size: .875rem; letter-spacing: 0; color: var(--fg-2); }
.weather .r b { display: block; color: var(--ok); font-weight: 600; margin-bottom: 2px; }
.weather .r b.warn { color: var(--warn); }

/* ---------- Zadania (jak Przypomnienia) ---------- */
.progress { display: flex; align-items: center; gap: 12px; padding: 0 4px; font-size: .875rem; color: var(--fg-2); }
.progress .trk { flex: 1; height: 6px; border-radius: 6px; background: var(--fill); overflow: hidden; }
.progress .fill { height: 100%; width: 100%; background: var(--ok-fill); border-radius: 6px; transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 360ms var(--ease); }
.task { position: relative; overflow: hidden; touch-action: pan-y; }
.task .under { position: absolute; inset: 0; background: var(--ok-fill); color: #0B2A16; display: flex; align-items: center; padding-left: 22px; font-weight: 700; gap: 8px; }
.task .under .no { display: none; }
.task .over { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding: 14px 16px; background: var(--surface); min-height: var(--row); }
html.t-solid .task .over { grid-template-columns: 40px 1fr; }
.check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--fg-3); display: grid; place-items: center; transition: background 180ms, border-color 180ms, transform 120ms; margin-top: 1px; }
html.t-solid .check { width: 36px; height: 36px; }
.check:active { transform: scale(.86); }
.check svg.i { width: 60%; height: 60%; opacity: 0; color: #fff; }
.task.done .check, .check.on { background: var(--ok-fill); border-color: var(--ok-fill); }
.task.done .check svg.i, .check.on svg.i { opacity: 1; }
.task.done .tt b { color: var(--fg-3); }
.task.done .tt .tags, .task.done .tt small { opacity: .6; }
.tt b { display: block; font-weight: 600; line-height: 1.3; }
.done-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 16px; color: var(--fg-2); font-weight: 600; font-size: .9375rem; }
.done-toggle svg.i { transition: transform 200ms var(--ease); }
.done-toggle[aria-expanded="true"] svg.i { transform: rotate(90deg); }

/* ---------- Karta konia po skanie (kafle jak w aplikacji Dom) ---------- */
.horse-head { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.horse-head .avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, .7); display: grid; place-items: center; font: 600 1.6rem/1 var(--brand-serif); }
.horse-head .avatar img { width: 100%; height: 100%; object-fit: cover; }
.horse-head h1 { margin: 0; font: 700 1.75rem/1.2 var(--font); letter-spacing: -0.02em; }
.horse-head p { margin: 2px 0 0; color: var(--fg-2); font-size: .9375rem; }
.horse-head .boxno { font-size: .8125rem; font-weight: 700; color: var(--tint); letter-spacing: .04em; }
.big-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.big {
  min-height: 108px; border-radius: var(--r-card); display: grid; align-content: space-between; justify-items: start; gap: 10px;
  font-weight: 700; font-size: 1.1875rem; text-align: left; padding: 14px 16px; background: var(--surface); box-shadow: var(--shadow-card); color: var(--fg);
  transition: background 200ms, transform 120ms;
}
.big .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.big .ic svg.i { width: 26px; height: 26px; }
.big.green .ic { background: var(--ok-bg); color: var(--ok); }
.big.blue .ic { background: var(--info-bg); color: var(--info); }
.big.gold .ic { background: var(--tint-bg); color: var(--tint); }
.big.red .ic { background: var(--crit-bg); color: var(--crit); }
.big small { display: block; font-size: .8125rem; font-weight: 600; opacity: .85; }
.big:active { transform: scale(.97); }
.big.done { background: var(--ok-fill); color: #0B2A16; }
.big.done .ic { background: rgba(255, 255, 255, .35); color: #0B2A16; }
.warn-box { border-radius: var(--r-card); padding: 14px 16px; background: var(--crit-bg); display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.warn-box svg.i { color: var(--crit); width: 24px; height: 24px; }
.warn-box b { color: var(--crit); font-size: .8125rem; letter-spacing: .02em; display: block; }
.kv { display: grid; grid-template-columns: minmax(84px, max-content) 1fr; gap: 0; font-size: var(--body); margin: 0; }
.kv dt { color: var(--fg-2); padding: 12px 16px 12px 0; border-top: .5px solid var(--line); }
.kv dd { margin: 0; padding: 12px 0; border-top: .5px solid var(--line); line-height: 1.35; }
.kv dt:first-of-type, .kv dt:first-of-type + dd { border-top: 0; }
.card.pad > .kv { margin: -4px 0; }

/* ---------- Skaner ---------- */
.scanner { position: fixed; inset: 0; z-index: 50; background: #000; display: grid; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; left: 50%; top: 42%; width: min(70vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 32px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); border: 3px solid #fff; }
.scanner .ui { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px calc(env(safe-area-inset-bottom, 0px) + 18px); display: grid; gap: 10px; color: #fff; }

/* ---------- Pensjonariusz ---------- */
.hero { position: relative; margin: calc(-18px - env(safe-area-inset-top, 0px)) -16px 0; height: 50vh; min-height: 320px; max-height: 480px; overflow: hidden; background: var(--navy); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .mono { width: 100%; height: 100%; display: grid; place-items: center; font: 600 7rem/1 var(--brand-serif); color: rgba(255, 255, 255, .14);
  background: radial-gradient(70% 60% at 70% 20%, rgba(209, 167, 108, .4), transparent 70%), linear-gradient(160deg, #2B3F5E, #16233A 70%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, transparent 26%, transparent 50%, rgba(0, 0, 0, .62) 100%); pointer-events: none; }
.hero .top { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hero .glass { color: #fff; --chrome: rgba(30, 30, 30, .28); --chrome-line: rgba(255, 255, 255, .25); }
.hero .name { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px; color: #fff; }
.hero .name h1 { margin: 0; font: 600 3rem/1 var(--brand-serif); letter-spacing: -0.03em; }
.hero .name p { margin: 8px 0 0; color: rgba(255, 255, 255, .85); font-size: .9375rem; }
.round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.round svg.i { width: 22px; height: 22px; }
.round .dot { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--crit); color: #fff; font-size: .6875rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.today { border-radius: var(--r-card); padding: 18px; display: grid; gap: 12px; }
.today .lead { font: 600 1.25rem/1.32 var(--font); letter-spacing: -0.015em; margin: 0; text-wrap: pretty; }
.timeline { display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 48px 12px 1fr; gap: 10px; align-items: start; padding: 6px 0; }
.tl .time { font-size: .8125rem; color: var(--fg-2); font-variant-numeric: tabular-nums; padding-top: 2px; text-align: right; }
.tl .dotc { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); margin-top: 7px; justify-self: center; }
.tl b { font-weight: 600; display: block; }
.tl small { color: var(--fg-2); font-size: .8125rem; }
/* czynności stajni u pensjonariusza: bez godzin, znaczek „zrobione” */
.tl.done { grid-template-columns: 20px 1fr; }
.tl.done .dotc { width: 20px; height: 20px; margin-top: 1px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.tl.done .dotc svg { width: 12px; height: 12px; }
.widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.widget { border-radius: var(--r-card); padding: 14px 16px; display: grid; gap: 6px; align-content: start; min-height: 150px; }
.widget .wl { display: flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; color: var(--tint); }
.widget .wl svg.i { width: 18px; height: 18px; }
.widget .wv { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.widget .big-num { font-size: 2.6rem; font-weight: 300; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.widget small { font-size: .8125rem; color: var(--fg-2); }
/* Okrągłe akcje z podpisem — jak na karcie kontaktu. */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick button { display: grid; justify-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--fg); background: none !important; box-shadow: none !important; padding: 4px 0; letter-spacing: 0; }
.quick button > svg.i { width: 56px; height: 56px; padding: 15px; border-radius: 50%; background: var(--surface); color: var(--tint); box-shadow: var(--shadow-card); box-sizing: border-box; transition: transform 120ms; }
.quick button:active > svg.i { transform: scale(.94); }
.quick button.rec > svg.i { background: var(--crit); color: #fff; }
.photo-day { border-radius: var(--r-card); overflow: hidden; position: relative; }
.photo-day img, .photo-day video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border-radius: var(--r-card); overflow: hidden; }
.gallery button { aspect-ratio: 1; overflow: hidden; background: var(--fill); position: relative; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; }
.gallery .play { position: absolute; right: 6px; bottom: 6px; color: #fff; }
.service { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; text-align: left; width: 100%; align-items: center; position: relative; }
.service b { font-weight: 600; }
.service .price { font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.service .price small { display: block; font-weight: 400; color: var(--fg-2); font-size: .75rem; }
.msgs { display: grid; gap: 6px; padding: 4px 0; }
.msg { max-width: 80%; border-radius: 20px; padding: 9px 14px; font-size: var(--body); line-height: 1.35; }
.msg.me { justify-self: end; background: var(--navy); color: #fff; border-bottom-right-radius: 6px; }
.msg.them { justify-self: start; background: var(--surface); border-bottom-left-radius: 6px; box-shadow: var(--shadow-card); }
.msg small { display: block; font-size: .6875rem; opacity: .65; margin-top: 4px; }
.composer { position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + 86px); display: flex; gap: 8px; align-items: flex-end; border-radius: 26px; padding: 5px; }
.composer textarea { flex: 1; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: var(--body); padding: 9px 12px; resize: none; max-height: 140px; min-height: 40px; }
.composer textarea:focus { outline: none; }
.composer .btn { min-height: 40px; width: 40px; padding: 0; }
.cal-day { font-size: .8125rem; color: var(--fg-2); padding: 10px 4px 6px; font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slots button { min-height: 44px; border-radius: 12px; background: var(--fill); font-weight: 600; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.slots button.busy { opacity: .3; text-decoration: line-through; pointer-events: none; }
.slots button.mine { background: var(--ok-bg); color: var(--ok); }
.slots button.sel { background: var(--tint-fill); color: var(--on-tint); }

/* Raport miesięczny — także do druku jako PDF (chwila marki: serif). */
.report { background: #FFFFFF; color: #16233A; border-radius: var(--r-card); padding: 28px 24px; display: grid; gap: 16px; box-shadow: var(--shadow-card); }
.report h2 { font: 600 2rem/1.1 var(--brand-serif); margin: 0; letter-spacing: -0.02em; }
.report .eyebrow { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: #8A6026; font-weight: 700; }
.report .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.report .stat { background: #F2F2F7; border-radius: 16px; padding: 12px 14px; }
.report .stat b { display: block; font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.report .stat span { font-size: .8125rem; color: #566278; }
.report h3 { margin: 6px 0 0; font-size: 1.0625rem; font-weight: 700; }
.report ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.report .pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.report .pics img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
@media print {
  .tabbar, .no-print, .toast, .topbar, .scan-cta-wrap { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; max-width: none; }
  .report { border-radius: 0; padding: 0; box-shadow: none; }
}

/* ---------- Menedżer ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.kpi { border-radius: var(--r-card); padding: 14px 16px; display: grid; gap: 4px; text-align: left; align-content: start; }
.kpi .kl { display: flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; color: var(--c, var(--tint)); }
.kpi .kl svg.i { width: 18px; height: 18px; }
.kpi b { font-size: 2.125rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi span { font-size: .8125rem; color: var(--fg-2); letter-spacing: 0; }
.kpi.alert b { color: var(--crit); }
.claim { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--info-bg); color: var(--info); white-space: nowrap; }
.claim.mine { background: var(--ok-bg); color: var(--ok); }
.swipe { position: relative; overflow: hidden; touch-action: pan-y; }
.swipe .under { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-weight: 700; background: var(--ok-fill); color: #0B2A16; }
.swipe .over { position: relative; background: var(--surface); }
.inbox-item { display: grid; gap: 3px; padding: 12px 16px; text-align: left; width: 100%; position: relative; }
.inbox-item .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.inbox-item b { font-weight: 600; }
.inbox-item p { margin: 0; color: var(--fg-2); font-size: .9375rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.report-card { border-radius: var(--r-card); padding: 16px 18px; display: grid; gap: 8px; }
.report-card h2 { margin: 0; font: 700 1.25rem/1.25 var(--font); letter-spacing: -0.015em; }
.report-card ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; color: var(--fg-2); font-size: .9375rem; }
.feed { display: grid; }
.feed .it { display: grid; grid-template-columns: 3.4rem 1fr; gap: 10px; padding: 10px 16px; font-size: .9375rem; position: relative; }
.feed .it + .it::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--line); }
.feed .it .time { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border-radius: var(--r-card); }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th { text-align: left; font-size: .8125rem; color: var(--fg-2); font-weight: 600; padding: 12px 16px; border-bottom: .5px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 16px; border-bottom: .5px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover { background: var(--fill); }
.search { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 0 12px; min-height: 38px; background: var(--fill) !important; box-shadow: none !important; }
.search input { flex: 1; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: var(--body); min-width: 0; }
.search input:focus { outline: none; }
.search svg.i { color: var(--fg-2); }
.week { display: grid; grid-template-columns: 120px repeat(7, minmax(84px, 1fr)); font-size: .875rem; min-width: 720px; }
.week > div { padding: 8px; border-bottom: .5px solid var(--line); min-height: 52px; }
.week .h { font-size: .8125rem; color: var(--fg-2); font-weight: 600; min-height: 0; }
.week .h.gap { color: var(--crit); }
.week .who { font-weight: 600; display: flex; align-items: center; }
.week .cell { cursor: pointer; border-left: .5px solid var(--line); }
.week .cell:hover { background: var(--fill); }
.shift { display: block; border-radius: 8px; padding: 4px 6px; background: var(--tint-bg); color: var(--tint); font-weight: 600; font-variant-numeric: tabular-nums; }
.shift.off { background: var(--crit-bg); color: var(--crit); }
.boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.boxes button { border-radius: 14px; padding: 8px 10px; min-height: 64px; text-align: left; display: grid; align-content: space-between; font-size: .8125rem; font-weight: 600; background: var(--surface); box-shadow: var(--shadow-card); }
.boxes button b { font-size: .75rem; color: var(--fg-2); font-weight: 600; }
.boxes button.free { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--fg-2); }
.bars { display: grid; gap: 10px; }
.bars .b { display: grid; grid-template-columns: 110px 1fr 36px; gap: 10px; align-items: center; font-size: .875rem; }
.bars .trk { height: 10px; border-radius: 6px; background: var(--fill); overflow: hidden; }
.bars .fill { height: 100%; border-radius: 6px; background: var(--tint-fill); }

/* Telefon menedżera: skromnie. Komputer 16:9: boczny panel (szkło = nawigacja), treść na płaskim tle. */
.mgr-side { display: none; }
@media (min-width: 1024px) {
  html.mgr .tabbar, html.mgr .topbar { display: none !important; }
  html.mgr body { overflow: hidden; }
  html.mgr #app { height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
  .mgr-side { display: flex; flex-direction: column; gap: 2px; margin: 12px 0 12px 12px; border-radius: 26px; padding: 18px 10px; overflow-y: auto; }
  .mgr-side .brand { padding: 2px 12px 16px; }
  .mgr-side .brand b { font: 600 1.6rem/1 var(--brand-serif); letter-spacing: -0.02em; display: block; }
  .mgr-side .brand span { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tint); font-weight: 700; }
  .mgr-side a, .mgr-side button.nav { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; text-decoration: none; color: var(--fg); font-weight: 500; font-size: .9375rem; min-height: 38px; width: 100%; text-align: left; letter-spacing: 0; }
  .mgr-side a svg.i { width: 20px; height: 20px; color: var(--tint); }
  .mgr-side a.on { background: var(--tint-fill); color: var(--on-tint); font-weight: 600; }
  .mgr-side a.on svg.i { color: var(--on-tint); }
  .mgr-side a:not(.on):hover { background: var(--fill); }
  .mgr-side a .n { margin-left: auto; font-size: .75rem; font-weight: 700; background: var(--crit); color: #fff; border-radius: 999px; padding: 1px 8px; }
  .mgr-side .foot { margin-top: auto; padding-top: 12px; display: grid; gap: 2px; }
  html.mgr .page { max-width: 1440px; height: 100vh; overflow-y: auto; padding: 28px 32px 48px; margin: 0; width: 100%; gap: 20px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .desk-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
  .desk-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
  .desk-split { display: grid; grid-template-columns: minmax(360px, 1fr) 1.4fr; gap: 20px; align-items: start; }
  .desk-split > .detail { position: sticky; top: 0; }
  .desk-only { display: block; }
  .phone-only { display: none !important; }
  .sheet.side { left: auto; right: 16px; top: 16px; bottom: 16px; width: 480px; max-height: none; margin: 0; }
}
@media (max-width: 1023px) { .desk-only { display: none !important; } }

/* Tryb TV: ciemny, duże liczby, zero rozmycia. */
html.tv { --chrome-blur: none; }
html.tv .tabbar, html.tv .mgr-side, html.tv .topbar { display: none !important; }
html.tv #app { display: block !important; height: auto !important; }
html.tv body { overflow: auto !important; }
html.tv .page { max-width: none !important; height: auto !important; padding: 28px 40px !important; }
.tv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.tv-clock { font-size: 3.6rem; font-weight: 200; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }

/* ---------- Logowanie: chwila marki — granat, złoto, serif ---------- */
html.t-brand { --bg: #111A2B; --fg: #fff; --fg-2: rgba(255, 255, 255, .72); --fg-3: rgba(255, 255, 255, .5); --line: rgba(255, 255, 255, .18); --field: rgba(10, 16, 28, .38); --tint: #D1A76C; color-scheme: dark; }
html.t-brand .bg {
  display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 30% at 80% 10%, rgba(209, 167, 108, .4), transparent 70%), radial-gradient(70% 40% at 60% 100%, rgba(42, 78, 64, .55), transparent 70%), linear-gradient(180deg, #1D2B44 0%, #111A2B 100%);
}
.login { min-height: 100vh; min-height: 100dvh; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 12px) 22px calc(env(safe-area-inset-bottom, 0px) + 12px); }
.login .brand { margin-top: 12vh; text-align: center; display: grid; gap: 6px; }
.login .brand h1 { margin: 0; font: 600 3.4rem/1 var(--brand-serif); letter-spacing: -0.03em; }
.login .brand p { margin: 0; font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-l); font-weight: 600; }
.login-card { margin-top: 40px; border-radius: 30px; padding: 22px 20px 16px; display: grid; gap: 14px; background: rgba(255, 255, 255, .1) !important; -webkit-backdrop-filter: blur(28px) saturate(175%); backdrop-filter: blur(28px) saturate(175%); border: 1px solid rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 20px 50px rgba(0, 0, 0, .4) !important; }
.login-card h2 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.login-card .sub { margin: -8px 0 0; font-size: .9rem; color: var(--fg-2); line-height: 1.45; }
.login .step { display: grid; gap: 14px; }
.login .btn.primary { background: linear-gradient(180deg, var(--gold-l), var(--gold)); color: #16233A; }
.login .btn.white { background: rgba(255, 255, 255, .94); color: #16233A; }
.login .btn.ghost { color: var(--gold-l); }
.login .or { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--fg-3); }
.login .or::before, .login .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.codes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.codes input { width: 100%; aspect-ratio: 1 / 1.18; text-align: center; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .24); background: var(--field); color: #fff; font: inherit; font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0; }
.codes input.filled { border-color: var(--gold-l); background: rgba(185, 138, 78, .18); }
.login .meta { font-size: .82rem; color: var(--fg-3); text-align: center; margin: 0; font-variant-numeric: tabular-nums; }
.login .live { min-height: 1.2em; font-size: .86rem; color: #F2B8B0; text-align: center; margin: 0; }
.login .foot { margin-top: auto; padding-top: 18px; text-align: center; font-size: .72rem; color: var(--fg-3); }
.login .field input { background: var(--field); border-color: rgba(255, 255, 255, .22); color: #fff; }
.login .banner { background: rgba(255, 255, 255, .1); }
@media (prefers-reduced-motion: no-preference) { .login .step { animation: rise 420ms var(--ease) both; } @keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); filter: blur(4px); } } }

/* ---------- Plan stajni (mapa zawsze na granacie) ---------- */
.plan-card { background: #16233A; border-radius: var(--r-card); padding: 10px; }

/* ---------- Notatki ---------- */
.notes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; }
.note { border-radius: var(--r-card); overflow: hidden; display: grid; gap: 8px; padding-bottom: 12px; position: relative; }
.note::before { content: ""; position: absolute; top: 14px; right: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--c, transparent); z-index: 1; }
.note-open { text-align: left; display: grid; gap: 8px; width: 100%; }
.note-open img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.note-txt { padding: 14px 16px 0; display: grid; gap: 4px; min-width: 0; }
.note-txt b { font-weight: 600; display: flex; gap: 4px; align-items: center; padding-right: 18px; }
.note-txt b svg.i { color: var(--tint); }
.note-txt p { margin: 0; color: var(--fg-2); font-size: .9375rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: pre-line; }
.note-list { display: grid; gap: 2px; padding: 0 10px; }
.note-item { display: flex; gap: 10px; align-items: center; text-align: left; min-height: 40px; padding: 2px 6px; border-radius: 10px; font-size: .9375rem; }
.note audio { width: calc(100% - 24px); margin: 0 12px; height: 36px; }
.check.small { width: 24px; height: 24px; border-width: 2px; flex: none; margin: 0; }

/* Kody QR do druku */
.qr-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.qr-card { background: #fff; color: #16233A; border-radius: 18px; padding: 14px; display: grid; justify-items: center; gap: 6px; text-align: center; break-inside: avoid; box-shadow: var(--shadow-card); }
.qr-card svg { width: 100%; max-width: 160px; height: auto; }
.qr-card b { font-size: 1.6rem; letter-spacing: .02em; }
.qr-card span { font-size: .8rem; color: #566278; }
@media print {
  html.mgr .mgr-side { display: none !important; }
  html.mgr #app { display: block !important; height: auto !important; }
  html.mgr body { overflow: visible !important; }
  html.mgr .page { height: auto !important; overflow: visible !important; padding: 0 !important; }
  .qr-sheet { grid-template-columns: repeat(3, 1fr); }
  .qr-card { border: 1px solid #ccc; box-shadow: none; }
}

/* Ruch: wyłączony dla osób, które tego potrzebują. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* ---------- Rozmowa przy zadaniu ---------- */
.tt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; width: 100%; text-align: left; }
.tt-chat { display: inline-flex; align-items: center; gap: 3px; font-size: .8125rem; font-weight: 700; color: var(--fg-3); flex: none; padding: 2px 0 0; font-variant-numeric: tabular-nums; }
.tt-chat svg.i { width: 20px; height: 20px; }
.tt-chat.new { color: var(--info); }
.tt-chat.new::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--info); margin-left: 2px; }
.tt-comment { display: block; margin-top: 6px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.expand { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--ease); }
.expand > div { overflow: hidden; min-height: 0; }
.expand.on { grid-template-rows: 1fr; }
.tt-more { padding-top: 10px; display: grid; gap: 10px; }
.task.open .over { background: var(--surface); }
.thread { display: grid; gap: 8px; }
.thread .msgs { gap: 6px; max-height: 360px; overflow-y: auto; padding: 2px; }
.thread .msg { font-size: .9375rem; max-width: 88%; display: grid; gap: 4px; }
.thread .msg.them { background: var(--surface-2); box-shadow: none; }
.thread .msg img { border-radius: 12px; max-height: 220px; object-fit: cover; }
.thread .msg audio { width: 220px; max-width: 100%; height: 34px; }
.thread .msg .who { font-weight: 700; opacity: .8; margin: 0; }
.thread-compose { display: flex; align-items: flex-end; gap: 6px; background: var(--surface-2); border-radius: 22px; padding: 4px; }
.thread-compose textarea { flex: 1; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: .9375rem; padding: 9px 6px; resize: none; max-height: 120px; min-height: 38px; }
.thread-compose textarea:focus { outline: none; }
.tc-btn, .tc-send { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--tint); flex: none; transition: transform 120ms, background 160ms; }
html.t-solid .tc-btn, html.t-solid .tc-send { width: 44px; height: 44px; }
.tc-btn svg.i, .tc-send svg.i { width: 22px; height: 22px; }
.tc-btn:active, .tc-send:active { transform: scale(.9); }
.tc-btn.rec { background: var(--crit); color: #fff; }
.tc-send { background: var(--tint-fill); color: var(--on-tint); }
.tc-send[disabled], .tc-btn[disabled] { opacity: .35; }
.rec-hint { margin: 0; font-size: .8125rem; color: var(--crit); display: flex; align-items: center; gap: 6px; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--crit); }
@media (prefers-reduced-motion: no-preference) { .rec-dot { animation: pulse 1s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .25; transform: scale(.7); } } }

/* ---------- Szkolenia stajennego ---------- */
.course-row { grid-template-columns: 48px 1fr auto; }
.ring-fill { transition: stroke-dashoffset 600ms var(--ease); }
.player { min-height: 100vh; min-height: 100dvh; align-content: stretch; grid-template-rows: auto 1fr auto; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px) !important; }
.player-top { display: flex; align-items: center; gap: 14px; }
.dots { flex: 1; display: flex; gap: 4px; }
.dots span { flex: 1; height: 5px; border-radius: 3px; background: var(--fill-2); transition: background 300ms; }
.dots span.on { background: var(--ok-fill); }
.dots span.cur { background: var(--tint-fill); }
.lesson { display: grid; gap: 16px; align-content: center; padding: 8px 4px; }
.lesson-n { font-size: .9375rem; font-weight: 600; color: var(--fg-2); }
.lesson h1 { margin: 0; font: 700 2rem/1.15 var(--font); letter-spacing: -0.02em; }
.lesson p { margin: 0; font-size: 1.5rem; line-height: 1.4; font-weight: 500; }
.lesson-imp { justify-self: start; display: inline-flex; gap: 6px; align-items: center; font-size: .9375rem; padding: 6px 12px; }
.lesson-imp svg.i { width: 18px; height: 18px; }
.listen { justify-self: start; min-height: 52px; }
.player-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.player-nav .btn { min-height: 64px; font-size: 1.1875rem; }
.answers { display: grid; gap: 10px; }
.answer { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; min-height: 72px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card); font-size: 1.25rem; font-weight: 600; transition: transform 120ms; }
.answer:active { transform: scale(.98); background: var(--tint-bg); }
.answer .letter { width: 40px; height: 40px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-weight: 800; flex: none; }
.result { justify-items: center; text-align: center; }
.result-badge { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; }
.result-badge svg.i { width: 80px; height: 80px; }
.result-badge.ok { background: var(--ok-bg); color: var(--ok); }
.result-badge.warn { background: var(--warn-bg); color: var(--warn); }
@media (prefers-reduced-motion: no-preference) {
  .lesson { animation: lesson-in 420ms var(--ease) both; }
  @keyframes lesson-in { from { opacity: 0; transform: translateX(28px); } }
  .result-badge { animation: pop 560ms cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes pop { from { transform: scale(.7); opacity: 0; } }
}
.letter { gap: 10px; }
.letter-head { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; }

/* ---------- Zespół (menedżer) ---------- */
.person-row { grid-template-columns: 44px 1fr auto; align-items: start; }
.avatar-s { width: 44px; height: 44px; border-radius: 50%; background: var(--tint-bg); color: var(--tint); display: grid; place-items: center; font-weight: 700; font-size: 1.125rem; }
.mini-ring { display: inline-grid; }
.stars { display: inline-flex; gap: 2px; color: var(--tint-fill); }
.stars button { width: 30px; height: 30px; display: grid; place-items: center; color: inherit; }
.stars button[disabled] { cursor: default; width: 18px; height: 18px; }
.stars svg.i { width: 100%; height: 100%; }
.stars button[aria-pressed="false"] { color: var(--fill-2); }
.cand { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 16px; width: 100%; }
.cand small { color: var(--fg-2); font-size: .8125rem; }
.cand-col { display: grid; gap: 8px; }
.board { display: grid; grid-template-columns: repeat(6, minmax(140px, 1fr)); gap: 12px; overflow-x: auto; align-items: start; }
.board-col { display: grid; gap: 8px; background: var(--fill); border-radius: 18px; padding: 10px; min-height: 120px; }
.board-h { font-weight: 700; font-size: .875rem; display: flex; justify-content: space-between; padding: 2px 4px 4px; }
.board-h span { color: var(--fg-2); }
.ad { white-space: pre-wrap; font: inherit; font-size: .9375rem; background: var(--surface); border-radius: 16px; padding: 14px; margin: 0; line-height: 1.45; }
.howto { background: var(--surface); border-radius: var(--r-card); padding: 14px 16px; box-shadow: var(--shadow-card); }
.howto summary { font-weight: 600; cursor: pointer; }
.howto ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--fg-2); font-size: .9375rem; }
.disc-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.disc-btn { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); font-weight: 600; font-size: .9375rem; text-align: left; transition: transform 120ms; }
.disc-btn:active { transform: scale(.97); }
.disc-item { display: grid; gap: 6px; padding-bottom: 12px; position: relative; }
.disc-item + .disc-item::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--line); }
.disc-desc { padding: 0 16px 0 62px; margin: 0; }
.legal { list-style: none; margin: 0; padding: 0 16px 0 62px; display: grid; gap: 6px; }
.legal li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: .875rem; align-items: start; }
.legal li svg.i { width: 18px; height: 18px; margin-top: 1px; }
.legal li.ok svg.i { color: var(--ok); }
.legal li.no svg.i { color: var(--crit); }
.legal li small { display: block; color: var(--fg-2); font-size: .8125rem; margin-top: 2px; }
.opt { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; }
.opt input[type=radio] { width: 22px; height: 22px; accent-color: var(--ok-fill); }
.letter-print p { line-height: 1.5; }
@media print { .sheet { position: static; max-height: none; box-shadow: none; } .scrim, .mgr-side, .page > *:not(.sheet) { display: none !important; } }

/* ---------- Ruch: przejścia i mikroanimacje (wyłączone przy „ogranicz ruch”) ---------- */
.tabbar, .scan-cta-wrap, .mgr-side, .topbar { view-transition-name: none; }
.tabbar { view-transition-name: tabbar; }
.mgr-side { view-transition-name: sidebar; }
.scan-cta-wrap { view-transition-name: scancta; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out 220ms var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in 380ms var(--ease) both; }
  html[data-dir="back"]::view-transition-new(root) { animation-name: vt-in-back; }
  @keyframes vt-out { to { opacity: 0; transform: translateX(-2%); } }
  @keyframes vt-in { from { opacity: 0; transform: translateX(4%); } }
  @keyframes vt-in-back { from { opacity: 0; transform: translateX(-4%); } }

  /* Karty wjeżdżają lekko z dołu przy wejściu na ekran — kolejno, nie naraz. */
  .page > * { animation: rise-in 460ms var(--ease) both; }
  .page > *:nth-child(2) { animation-delay: 30ms; }
  .page > *:nth-child(3) { animation-delay: 60ms; }
  .page > *:nth-child(4) { animation-delay: 90ms; }
  .page > *:nth-child(5) { animation-delay: 120ms; }
  .page > *:nth-child(6) { animation-delay: 150ms; }
  .page > *:nth-child(n+7) { animation-delay: 180ms; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }

  /* Odhaczenie: kółko domyka się płynnie (bez odbicia — odbicie tylko przy geście z rozpędem). */
  .task.done .check, .check.on { animation: check-pop 320ms cubic-bezier(.16, 1, .3, 1); }
  @keyframes check-pop { from { transform: scale(.82); } }

  /* Aktywna karta w pasku: ikona lekko się „wciska”. */
  .tab.on svg.i { animation: tab-press 300ms cubic-bezier(.16, 1, .3, 1); }
  @keyframes tab-press { from { transform: scale(.88); } }

  /* Kafel akcji po stuknięciu: rozchodząca się poświata. */
  .big.done { animation: big-done 600ms var(--ease); }
  @keyframes big-done { 0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, .55); transform: scale(.97); } 100% { box-shadow: 0 0 0 18px rgba(52, 199, 89, 0); transform: none; } }

  /* Nowa wiadomość w rozmowie wjeżdża od swojej strony. */
  .thread .msg.me { animation: msg-in-r 300ms var(--ease) both; }
  .thread .msg.them { animation: msg-in-l 300ms var(--ease) both; }
  @keyframes msg-in-r { from { opacity: 0; transform: translateX(14px) scale(.98); } }
  @keyframes msg-in-l { from { opacity: 0; transform: translateX(-14px) scale(.98); } }

  /* Liczby w kaflach wskaźników pojawiają się miękko. */
  .kpi b { animation: num-in 520ms var(--ease) both; }
  @keyframes num-in { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } }

  /* Naciśnięcie wiersza i przycisku — natychmiastowa odpowiedź. */
  button.row, .inbox-item, .service, .cand, .kpi { transition: transform 140ms ease-out, background 160ms; }
  button.row:active, .inbox-item:active, .cand:active, button.kpi:active { transform: scale(.985); }
}
/* Treść zadania nie może rozpychać wiersza (rozwinięta rozmowa mieści się w karcie). */
.task .over { grid-template-columns: 34px minmax(0, 1fr); }
html.t-solid .task .over { grid-template-columns: 40px minmax(0, 1fr); }
.tt, .tt-more, .thread, .thread .msgs, .expand > div { min-width: 0; }
.thread-compose { min-width: 0; }
.thread-compose textarea { min-width: 0; }
.tt-more > .p { font-size: .9375rem; color: var(--fg-2); }
html.focus-mode .tabbar, html.focus-mode .scan-cta-wrap, html.focus-mode .topbar { display: none !important; }

/* ---------- Palec, nie kursor (2026-11-10) ----------
   Na ekranach dotykowych każdy cel ma co najmniej 44 px (zalecenie Apple HIG).
   Na komputerze z myszą panel menedżera zostaje zwarty. */
.tab { font-size: .6875rem; }
@media (pointer: coarse) {
  .btn.sm, .seg button, .search { min-height: 44px; }
  .search input { align-self: stretch; min-height: 44px; }
  /* Linki tekstowe, kapsuły i nagłówki zadań: wygląd bez zmian, większy obszar trafienia. */
  .sec small .btn.ghost, .btn.ghost.sm, .btn.ghost.link, .pill, .tt-head { position: relative; }
  .sec small .btn.ghost::before, .btn.ghost.sm::before, .btn.ghost.link::before { content: ""; position: absolute; inset: -12px -8px; }
  .pill::before { content: ""; position: absolute; inset: -5px -2px; }
  .tt-head::before { content: ""; position: absolute; inset: -10px 0; }
  /* Kółko odhaczania zostaje małe dla oka, ale trafia się w obszar 44 px. */
  .check { position: relative; }
  .check::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
  .check.small::before { inset: -10px; }
}

/* ---------- Dodatki 10.11: mapa terenu, wizyty, wyjazdy, trendy ---------- */
.btn.lg { min-height: 56px; font-size: 1.0625rem; }
.trasa-mapa { position: relative; overflow: hidden; border-radius: var(--r-inner); background: #dfe7da; width: 100%; isolation: isolate; }
.trasa-mapa img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; }
.trasa-mapa svg { position: absolute; inset: 0; pointer-events: none; }
.trasa-mapa.empty { display: grid; place-items: center; background: var(--fill); color: var(--fg-2); font-size: .875rem; }
.trasa-osm { position: absolute; right: 6px; bottom: 4px; font-size: .6875rem; background: rgba(255,255,255,.8); color: #333; padding: 1px 5px; border-radius: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .trasa-puls { animation: trasa-puls 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes trasa-puls { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
  .na-zywo { animation: na-zywo 1.6s infinite; }
  @keyframes na-zywo { 70% { box-shadow: 0 0 0 9px rgba(224,122,110,0); } 100% { box-shadow: 0 0 0 0 rgba(224,122,110,0); } }
}
.teren-karta { display: grid; gap: 10px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); }
.teren-karta.alarm { border-color: var(--crit); }
.teren-top { display: flex; align-items: center; gap: 10px; }
.teren-top b { flex: 1; min-width: 0; }
.na-zywo { width: 10px; height: 10px; border-radius: 50%; background: #E07A6E; box-shadow: 0 0 0 0 rgba(224,122,110,.7); flex: none; }
.teren-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .875rem; color: var(--fg-2); }
.teren-meta b { color: var(--fg); font-variant-numeric: tabular-nums; }

.wizyty { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .wizyty { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wizyta { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: var(--r-card); min-height: 84px; align-content: start; color: var(--fg); }
.wizyta b { font-size: .9375rem; }
.wizyta small { color: var(--fg-2); font-size: .8125rem; }
.wizyta .kwota { color: var(--gold); font-weight: 700; font-size: .9375rem; margin-top: 2px; }

.wyjazd-stajnia { display: grid; gap: 10px; border: 1px solid var(--info); }
.wyjazd-top { display: flex; gap: 12px; align-items: center; }
.wyjazd-top small { display: block; color: var(--fg-2); }
.posilki { display: grid; gap: 6px; }
.posilki-dzien { display: grid; grid-template-columns: 4.5em repeat(3, minmax(0, 1fr)); gap: 6px; align-items: center; font-size: .875rem; }
.posilki-dzien > span:first-child { font-weight: 700; }
.posilki-dzien .tak, .posilki-dzien .nie { text-align: center; padding: 6px 4px; border-radius: 9px; font-weight: 600; }
.posilki-dzien .tak { background: var(--ok-bg); color: var(--ok); }
.posilki-dzien .nie { background: var(--fill); color: var(--fg-3); text-decoration: line-through; }

.wykresy { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .wykresy { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wykres { display: grid; gap: 6px; }
.wykres-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wykres-pole { position: relative; }
.wykres-pole svg { display: block; width: 100%; height: auto; overflow: visible; }
.wykres .w-siatka { stroke: var(--line); stroke-dasharray: 3 4; }
.wykres .w-osl { stroke: var(--fg-3); stroke-width: 1.2; }
.wykres .w-os { fill: var(--fg-2); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.wykres .w-jedn { fill: var(--fg-3); font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.wykres .w-cel { stroke: var(--ok); stroke-width: 1.4; stroke-dasharray: 6 5; }
.wykres .w-cel-tlo { fill: var(--surface); }
.wykres .w-cel-txt { fill: var(--ok); font-size: 10.5px; font-weight: 700; }
.wykres .w-plak { fill: #0B1422; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wykres .w-hover { stroke: var(--fg-3); stroke-dasharray: 2 3; }
.wykres-dymek { position: absolute; top: 0; transform: translateX(-50%); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-float); border-radius: 8px; padding: 4px 8px; font-size: .8125rem; white-space: nowrap; pointer-events: none; }
.seg.seg-siatka { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; overflow: visible; }

/* ---- Logo Vanto (herb ćwiartowany, 17.11.2026) ---- */
.login .brand .logo { width: 190px; max-width: 58vw; height: auto; margin: 0 auto; display: block; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.mgr-side .brand img { display: block; width: 100%; max-width: 188px; height: auto; margin-bottom: 8px; }
.mgr-side .brand .logo-c { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mgr-side .brand .logo-j { display: none; } :root:not([data-theme="light"]) .mgr-side .brand .logo-c { display: block; } }
:root[data-theme="dark"] .mgr-side .brand .logo-j { display: none; }
:root[data-theme="dark"] .mgr-side .brand .logo-c { display: block; }
.tv-brand { display: flex; align-items: center; gap: 18px; }
.tv-brand img { width: 64px; height: auto; flex: none; }
.konto-herb { display: block; width: 34px; height: auto; margin: 6px auto 0; opacity: .9; }
.report-head { display: flex; align-items: center; gap: 14px; }
.report-head img { width: 46px; height: auto; flex: none; }

/* Herb Vanto nad tytułem każdego ekranu (pensjonariusz, stajenny, menedżer): małe złote godło + nazwa */
.head > div:first-child::before {
  content: "Vanto Equestrian Center"; display: flex; align-items: center; gap: 8px; margin: 0 0 8px; min-height: 22px;
  padding-left: 26px; background: url("/img/logo/vanto-herb-zloto.svg") left center / 18px auto no-repeat;
  font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold, #B98A4E);
}
html.tv .head > div:first-child::before, .tv-brand::before { display: none; }
.hero .name .marka { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #E3C48F; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.hero .name .marka img { width: 20px; height: auto; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .4)); }
