/* breedmanager.eu — wspólny arkusz dla landingu i aplikacji.
   Paleta i typografia wzorowane na szablonie "Pet Sitting" (zielony akcent,
   Montserrat, jasne sekcje, ciemna stopka); kod własny. */

/* Font zastępczy do chwili wczytania Montserrat (font-display: swap): Arial przeskalowany do szerokości i wysokości
   Montserrat (size-adjust / ascent / descent policzone z metryk obu fontów) — tekst nie „skacze” po podmianie (CLS). */
@font-face { font-family: "Montserrat Fallback"; font-weight: 400; src: local("Arial"), local("Liberation Sans"), local("Arimo"), local("Roboto"), local("Helvetica"); size-adjust: 114.5%; ascent-override: 84.5%; descent-override: 21.9%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Fallback"; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"), local("Roboto Bold"), local("Helvetica Bold"); size-adjust: 111.2%; ascent-override: 87.1%; descent-override: 22.6%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400.e7198b2dcb57.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; }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-ext-400.17898728c63b.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: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500.f96e8aab37e8.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; }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-ext-500.759ccc2000a3.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: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600.9e606da1cbeb.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; }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-ext-600.e2a7d38baea7.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: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700.1c0792ac34ef.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; }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-ext-700.7b0c49b295bd.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; }

:root {
  --green: #00bd56;
  --green-dark: #009945;
  --green-soft: #e6f8ee;
  --ink: #1a1a1a;
  --text: #4d4d4d;
  --muted: #808080;
  --line: #e9ecef;
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --danger: #dc3545;
  --warn: #ffb400;
  --radius: 6px;
  --shadow: 0 10px 30px -18px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.8 "Montserrat", "Montserrat Fallback", system-ui, sans-serif;
}
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.25; margin: 0 0 .6em; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- przyciski ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .75em 1.6em; border-radius: var(--radius); border: 1px solid var(--green);
  background: var(--green); color: #fff; font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.2;
  cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--green); }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-white { background: #fff; border-color: #fff; color: var(--ink); }
.btn-white:hover { background: transparent; color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { color: var(--danger); }
.btn-sm { padding: .45em 1em; font-size: 13px; }

/* --- nawigacja ---------------------------------------------------------- */
.topbar { background: var(--ink); color: #ccc; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1em; }
.navbar { background: #fff; box-shadow: 0 5px 20px -17px rgba(0, 0, 0, .34); position: sticky; top: 0; z-index: 10; }
.navbar .container { display: flex; align-items: center; gap: 1.5em; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .5em; font-weight: 700; font-size: 20px; color: var(--ink); }
.brand b { font-weight: 700; }
.brand span { color: var(--green); }
.brand svg { width: 30px; height: 30px; color: var(--green); }
.nav-links { display: flex; gap: 1.6em; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 14px; }
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.lang-form { display: inline-flex; gap: 2px; margin: 0; }
.lang-form button {
  border: 0; background: none; font-family: inherit; font-weight: 600; font-size: 12px; color: var(--muted);
  cursor: pointer; padding: 4px 6px; border-radius: 4px; text-transform: uppercase;
}
.lang-form button[aria-current="true"] { color: #fff; background: var(--green); }
.topbar .lang-form button { color: #ccc; }
.topbar .lang-form button[aria-current="true"] { color: #fff; }

/* --- landing ------------------------------------------------------------ */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #00bd56, #0b6b3a);   /* zdjęcie: <img> pierwszego slajdu (home.html) */
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background: 72% center / cover no-repeat; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide picture, .hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide img { object-fit: cover; object-position: 72% center; display: block; }
.hero-slides::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0, 60, 30, .75), rgba(0, 0, 0, .35)); }
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); max-width: 720px; }
.hero p { font-size: 18px; max-width: 580px; opacity: .92; }
.hero .actions { display: flex; gap: 1em; flex-wrap: wrap; margin-top: 2em; }

.section { padding: 6em 0; }
.section-soft { background: var(--bg-soft); }
.heading { text-align: center; max-width: 680px; margin: 0 auto 3.5em; }
.heading .sub { display: block; color: var(--green); font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.heading h2 { font-size: clamp(26px, 3.2vw, 36px); }

.grid { display: grid; gap: 2em; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature { text-align: center; padding: 1em; }
.feature .icon {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1.2em; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); transition: background .3s, color .3s;
}
.feature:hover .icon { background: var(--green); color: #fff; }
.feature .icon svg { width: 44px; height: 44px; }
.feature h3 { font-size: 18px; }

.counters { background: var(--green); color: #fff; padding: 4em 0; }
.counters .grid { text-align: center; }
.counters strong { display: block; font-size: 44px; font-weight: 700; line-height: 1.1; }
.counters span { text-transform: uppercase; letter-spacing: 1px; font-size: 12px; opacity: .9; }

.split { display: grid; gap: 3em; grid-template-columns: 1fr 1fr; align-items: center; }
.split .visual {
  min-height: 420px; border-radius: var(--radius); background: var(--green-soft) url("../img/about.be8254e93908.jpg") center / cover;
  background-image: image-set(url("../img/about.b84f634f1045.webp") type("image/webp"), url("../img/about.be8254e93908.jpg") type("image/jpeg"));
  display: grid; place-items: center; color: var(--green);
}
.checklist { list-style: none; padding: 0; margin: 1.5em 0; }
.checklist li { padding-left: 2em; position: relative; margin-bottom: .6em; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.pricing { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.5em 2em; text-align: center; border-top: 4px solid transparent; }
.pricing.featured { border-top-color: var(--green); }
.pricing .price { font-size: 44px; font-weight: 700; color: var(--ink); line-height: 1; margin: .4em 0; }
.pricing .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.pricing ul { list-style: none; padding: 0; margin: 1.5em 0 2em; }
.pricing li { padding: .45em 0; border-bottom: 1px solid var(--line); }

.faq details { background: #fff; border-radius: var(--radius); margin-bottom: 1em; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 1.1em 1.4em; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--green); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 1.4em 1.2em; margin: 0; }

.cta { background: linear-gradient(120deg, #0b6b3a, var(--green)); color: #fff; text-align: center; }
.cta h2 { color: #fff; }

.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 5em 0 2em; font-size: 14px; }
.footer h4 { color: #fff; font-size: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer .bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3em; padding-top: 2em; text-align: center; font-size: 13px; }

/* --- aplikacja ---------------------------------------------------------- */
.app { background: var(--bg-soft); min-height: 100vh; }
.app main { padding-top: 2em; padding-bottom: 4em; }  /* bez skrótu — nie zerujemy bocznego marginesu .container */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1em; flex-wrap: wrap; margin-bottom: 1.5em; }
.page-head h1 { font-size: 26px; margin: 0; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5em; margin-bottom: 1.5em; }
.card h2 { font-size: 18px; }
.cols { display: grid; gap: 1.5em; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.cols > * { min-width: 0; }  /* szeroka zawartość (rodowód, tabela) przewija się w karcie, nie rozpycha strony */
.stats { display: grid; gap: 1em; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 1.5em; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2em 1.4em; border-left: 4px solid var(--green); }
.stat strong { display: block; font-size: 30px; color: var(--ink); line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
th, td { padding: .7em .8em; border-bottom: 1px solid var(--line); }
tr:hover td { background: #fbfdfc; }

.badge { display: inline-block; padding: .15em .7em; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line); color: var(--ink); white-space: nowrap; }
.badge-green { background: var(--green-soft); color: var(--green-dark); }
.badge-blue { background: #e7f0fb; color: #1c5fa8; }
.badge-warn { background: #fff4d6; color: #8a6100; }
.badge-red { background: #fde8ea; color: var(--danger); }
.sex-M { color: #207dff; }
.sex-F { color: #e83e8c; }

.messages { list-style: none; padding: 0; margin: 0 0 1.5em; }
.messages li { background: var(--green-soft); color: var(--green-dark); padding: .8em 1.2em; border-radius: var(--radius); font-weight: 500; }
.messages li.error { background: #fde8ea; color: var(--danger); }
.messages li.warning { background: #fff4d6; color: #8a6100; }
.promo-offer { background: var(--green-soft); border-radius: var(--radius); padding: 1em 1.2em; margin: .6em 0 1.2em; display: grid; gap: .3em; }
.promo-offer strong { color: var(--green-dark); font-size: 18px; }
.onboarding { border-left: 5px solid var(--green); }
.onboarding-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; }
.onboarding-head h2 { margin-bottom: .2em; }
.onboarding-bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: .6em 0 1em; }
.onboarding-bar span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.onboarding-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .9em; }
.onboarding-steps li { display: flex; gap: .9em; align-items: flex-start; }
.onboarding-steps li > i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--green-soft); color: var(--green-dark); }
.onboarding-steps li.is-done > i { background: var(--green); color: #fff; }
.onboarding-steps li.is-done strong { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.onboarding-steps li div { display: grid; gap: .25em; }
.onboarding-steps li span { color: var(--muted); font-size: 14px; }
.onboarding-cta { margin-top: .3em; display: flex; gap: .5em; flex-wrap: wrap; }
.onboarding-skip { margin-top: .4em; font-size: 14px; color: var(--muted); }
.onboarding-skip label { display: inline-flex; gap: .5em; align-items: center; cursor: pointer; }
.help-show-steps { margin: 1em 0; }
.empty-state { text-align: center; padding: 2em 1em; }
.empty-state p { color: var(--muted); max-width: 560px; margin: .4em auto 1em; }
.empty-state .form-actions { justify-content: center; margin-top: 0; }
.help-page { padding-top: 2em; padding-bottom: 3em; }
.help-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 0 1.5em; }
.help-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8em; }
.help-list li { display: grid; gap: .15em; }
.help-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.5em; align-items: start; }
.help-article h1 { font-size: clamp(24px, 3.4vw, 32px); }
.help-toc h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 1em 0 .4em; }
.help-toc h3:first-child { margin-top: 0; }
.help-toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35em; font-size: 14px; }
.help-toc li.active a { color: var(--ink); font-weight: 700; }
.help-next { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); font-weight: 600; }
.help-tip { background: var(--green-soft); border-radius: var(--radius); padding: .8em 1em; margin: 1em 0; }
@media (max-width: 900px) { .help-layout { grid-template-columns: 1fr; } .help-toc { order: -1; } }
.pay-blocked { color: #8a6100; background: #fff4d6; padding: .5em .7em; border-radius: 8px; margin-top: .8em; }
.pay-blocked a { color: inherit; text-decoration: underline; }
.btn-danger-outline { color: var(--danger); border-color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger); color: #fff; }

/* formularze */
.form { display: grid; gap: 1em 1.5em; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.form-section { border: 0; padding: 0; margin: 0 0 1.6em; min-width: 0; }
.form-section legend { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--green-dark); margin-bottom: .8em; padding: 0; }
.form .field-check { align-self: center; }
.form .field-wide { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: .3em; }
.field .help { font-size: 12px; color: var(--muted); }
.field .errors { color: var(--danger); font-size: 13px; list-style: none; padding: 0; margin: .3em 0 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; padding: .65em .8em; border: 1px solid #d5dbe0; border-radius: var(--radius);
  font: inherit; font-size: 14px; background: #fff; color: var(--ink);
  box-sizing: border-box; line-height: 1.3;
}
/* Jedna wysokość dla pól jednoliniowych — search i date mają w przeglądarkach własne marginesy */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select {
  height: 42px;
}
input[type=search] { -webkit-appearance: none; appearance: none; }
input[type=search]::-webkit-search-decoration { -webkit-appearance: none; }
input[type=date]::-webkit-calendar-picker-indicator { margin: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-soft); border-color: var(--green); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); vertical-align: middle; }
.form-actions { display: flex; gap: .8em 1em; margin-top: 1.5em; align-items: center; flex-wrap: wrap; }
.inline-form { display: flex; gap: .8em; flex-wrap: wrap; align-items: end; }
.inline-form .field { flex: 1 1 140px; min-width: 0; }
.inline-form > .btn, .inline-form > label { height: 42px; display: inline-flex; align-items: center; gap: .4em; }
.auth-box { max-width: 460px; margin: 4em auto; }

/* dane zwierzęcia */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .3em 1.5em; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }

/* rodowód: kolumny pokoleń, każda komórka dzieli wysokość po równo */
.pedigree { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 6px; overflow-x: auto; }
.pedigree .gen { display: flex; flex-direction: column; gap: 6px; }
.pedigree .cell {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: .5em .8em; border-radius: var(--radius); background: var(--bg-soft); font-size: 13px;
  border-left: 3px solid var(--line); min-height: 44px;
}
.pedigree .cell.M { border-left-color: #207dff; }
.pedigree .cell.F { border-left-color: #e83e8c; }
.pedigree .cell.empty { color: var(--muted); }
.pedigree .cell small { color: var(--muted); }
.coi-big { font-size: 48px; font-weight: 700; color: var(--ink); line-height: 1.1; }

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
  .section { padding: 4em 0; }
  .topbar .contact { display: none; }
  .nav-links { margin-left: 0; gap: 1em; }
}

/* panel operatora */
.subnav { display: flex; gap: 1.4em; flex-wrap: wrap; align-items: center; background: var(--ink); color: #fff;
  padding: .7em 1.2em; border-radius: var(--radius); margin-bottom: 1.5em; font-size: 14px; }
.subnav a { color: rgba(255, 255, 255, .75); font-weight: 500; }
.subnav a:hover, .subnav a.active { color: var(--green); }
.stat-dark { border-left-color: var(--ink); }
code { font-size: 12px; background: var(--bg-soft); padding: .1em .4em; border-radius: 4px; word-break: break-all; }
/* listy ptaszków (moduły) */
.field ul { list-style: none; padding: 0; margin: 0; columns: 2 220px; }
.field ul li label { font-weight: 500; display: flex; gap: .5em; align-items: center; font-size: 14px; }

/* akcje w wierszach tabel */
.row-actions { white-space: nowrap; text-align: right; }
.row-actions form { display: inline; margin: 0; }
.row-actions a, .row-actions button { margin-left: .6em; }
.link-danger { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font: inherit; }
.link-danger:hover { color: var(--danger); }

/* wykresy */
.chart-wrap { overflow-x: auto; }
.chart { width: 100%; min-width: 480px; height: auto; font-family: inherit; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .4em 1.2em; font-size: 13px; margin-bottom: .6em; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .4em; vertical-align: middle; }

/* zdjęcia */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.gallery figure.main img { outline: 3px solid var(--green); outline-offset: -3px; }
.gallery figcaption { text-align: left; font-size: 13px; padding-top: .3em; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: .6em; display: inline-block; }

/* nagłówek karty zwierzęcia, archiwum */
.animal-head { display: flex; gap: 1.2em; align-items: center; }
.animal-head h1 { margin: 0; }
.profile-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--green-soft); }
.profile-photo.empty { display: grid; place-items: center; background: var(--bg-soft); font-size: 36px; }
.title-line { color: #b8860b; font-weight: 600; font-size: 13px; }
.tabs { display: flex; gap: .4em; margin-bottom: 1em; overflow-x: auto; padding: 4px 2px 8px; }
.tabs a { flex: none; white-space: nowrap; padding: .45em 1em; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: 14px; background: #fff; box-shadow: var(--shadow); }
.tabs a.active { background: var(--green); color: #fff; }

/* Tom Select w kolorach serwisu */
.ts-wrapper .ts-control { border: 1px solid #d5dbe0; border-radius: var(--radius); padding: .55em .8em; font-size: 14px; min-height: 42px; box-sizing: border-box; align-items: center; box-shadow: none; }
.ts-wrapper.single .ts-control { height: 42px; flex-wrap: nowrap; overflow: hidden; }
.ts-wrapper.focus .ts-control { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.ts-dropdown { border-radius: var(--radius); font-size: 14px; }
.ts-dropdown .optgroup-header { color: var(--green-dark); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.ts-dropdown .active { background: var(--green-soft); color: var(--ink); }
.ts-dropdown .option, .ts-dropdown .optgroup-header { padding: .45em .8em; }

/* nowy reproduktor spoza hodowli */
.new-sire { margin-top: 1.2em; border: 1px dashed #cfd6dc; border-radius: var(--radius); padding: .8em 1em; }
.new-sire summary { cursor: pointer; font-weight: 600; color: var(--green-dark); }
.new-sire[open] summary { margin-bottom: .6em; }

/* rozwijane menu (np. opcje rodowodu PDF) */
.dropdown { position: relative; }
.dropdown summary { list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: #fff; border-radius: var(--radius);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .3); padding: 1em; display: grid; gap: .7em; min-width: 220px; }
.dropdown-panel label { display: grid; gap: .25em; font-size: 13px; font-weight: 600; color: var(--ink); }
.dropdown-panel label.check { display: flex; gap: .5em; align-items: center; font-weight: 500; }

/* logo hodowli */
.logo-row { display: flex; gap: 1.5em; align-items: center; flex-wrap: wrap; }
.kennel-logo-lg { width: 120px; height: 120px; object-fit: contain; border-radius: var(--radius); background: var(--bg-soft); padding: 8px; }
.kennel-logo-lg.empty { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.kennel-logo-hero { max-height: 110px; max-width: 260px; object-fit: contain; display: block; margin-bottom: 1em;
  background: rgba(255, 255, 255, .92); border-radius: var(--radius); padding: 10px; }
.kennel-link { display: inline-flex; align-items: center; gap: .5em; }
.kennel-link img { height: 28px; width: auto; max-width: 60px; object-fit: contain; }

/* strona hodowli: nagłówek bez zdjęcia, zastępnik zdjęcia psa */
.hero.hero--plain { background: linear-gradient(135deg, #0b6b3a, #00bd56); }
.photo-placeholder { width: 100%; aspect-ratio: 1; border-radius: 6px; margin-bottom: 15px; display: grid; place-items: center;
  background: var(--bg-soft); font-size: 48px; }
.gallery--wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* karty szczeniąt na stronie hodowli */
.puppy-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2em; }
.pup-card { display: block; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--text); }
.pup-card:hover { transform: translateY(-2px); transition: transform .15s; color: var(--text); }
.pup-card img, .pup-card .photo-placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0; border-radius: 0; }
.pup-body { padding: .8em 1em 1em; font-size: 14px; line-height: 1.5; }
.pup-head { display: flex; justify-content: space-between; align-items: center; gap: .5em; color: var(--ink); font-size: 16px; }

/* rezerwacja: wstęga na zdjęciu (nakładka, plik zdjęcia bez zmian) */
.pup-photo { position: relative; overflow: hidden; }
.pup-photo.is-reserved img { filter: saturate(.7) brightness(.92); }
.reserved-ribbon { position: absolute; top: 30px; right: -44px; transform: rotate(35deg); width: 200px; text-align: center;
  background: #eda100; color: #1a1a1a; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); pointer-events: none; }
.profile-wrap { width: 96px; height: 96px; border-radius: 50%; flex: none; }
.profile-wrap .reserved-ribbon { top: 38px; right: -40px; width: 150px; font-size: 9px; padding: 3px 0; }
.sex-icon { font-weight: 700; font-size: 1.25em; line-height: 1; vertical-align: -0.08em; font-family: system-ui, "Segoe UI Symbol", sans-serif; }

/* kontakt z hodowlą */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check-label { display: flex !important; gap: .6em; align-items: flex-start; font-weight: 500 !important; font-size: 13px !important; }
.check-label input { margin-top: .2em; flex: none; }
.back-link { margin: 0 0 1em; font-weight: 600; }
.count-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; }
tr.unread td { background: #f6fbf8; }

/* galeria z podglądem w stronie */
.photo-viewer .stage { position: relative; margin: 0 0 12px; background: var(--bg-soft); border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
.photo-viewer .stage img { width: 100%; max-height: 560px; object-fit: contain; display: block; }
.stage-prev, .stage-next { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .85); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.stage-prev { left: 12px; } .stage-next { right: 12px; }
.stage-prev:hover, .stage-next:hover { background: var(--green); color: #fff; }
.photo-viewer .gallery a[data-view] { display: block; border-radius: var(--radius); outline-offset: 2px; }
.photo-viewer .gallery a[data-view].active img { outline: 3px solid var(--green); outline-offset: -3px; }

/* --- Import rodowodu ------------------------------------------------------ */
.scan-images { display: flex; gap: .8em; flex-wrap: wrap; margin-bottom: 1.2em; }
.scan-images img { max-height: 420px; max-width: 100%; border-radius: var(--radius); border: 1px solid #e3e8e4; background: #fff; }
.pedigree-review h2 { margin-top: 1.4em; }
.ancestors th[scope="row"] { font-weight: 500; font-size: .85em; white-space: nowrap; color: var(--muted, #6b7470); }
.ancestors input { width: 100%; min-width: 9em; padding: .35em .5em; font-size: .9em; height: 34px; }
.ancestors tr.gen-1 th[scope="row"] { color: inherit; font-weight: 600; }
.ancestors tr.gen-2 th[scope="row"] { padding-left: 1em; }
.ancestors tr.gen-3 th[scope="row"] { padding-left: 2em; }
.ancestors tr.gen-4 th[scope="row"] { padding-left: 3em; }
.ancestors tr.empty input { background: #fafbfa; }
.ancestors .match { color: var(--green); font-size: .85em; font-weight: 600; }
p.error { color: var(--danger); }
p.warning { background: #fff6e0; color: #7a5a00; padding: .6em 1em; border-radius: var(--radius); }
.danger-zone { margin-top: 1.5em; }
.spinner { display: inline-block; width: 1em; height: 1em; border: 2px solid var(--green-soft); border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.head-actions { display: flex; gap: .6em; flex-wrap: wrap; }
.ancestors .conflict { color: var(--danger); font-size: .85em; font-weight: 600; white-space: normal; }
.ancestors tr.has-conflict input { border-color: var(--danger); }
.rotate-form { display: flex; gap: .8em; align-items: center; flex-wrap: wrap; margin-bottom: 1em; }

/* --- Kalendarz ------------------------------------------------------------ */
.cal-head { display: flex; align-items: center; gap: 1em; margin-bottom: 1em; }
.cal-head h2 { margin: 0; min-width: 11em; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--muted); padding: .2em .4em; }
.cal-day { min-height: 96px; background: #fafbfa; border-radius: 8px; padding: .3em; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-day.other { opacity: .45; }
.cal-day.today { outline: 2px solid var(--green); background: #fff; }
.cal-num { font-size: 12px; font-weight: 600; color: var(--ink); text-decoration: none; align-self: flex-start; padding: 0 .3em; border-radius: 4px; }
.cal-num:hover { background: var(--green-soft); }
.cal-item { display: block; font-size: 11.5px; line-height: 1.3; padding: 1px 5px; border-radius: 4px; color: #1d2a24; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid; background: #eef3ef; }
.cal-item.forecast { border-left-style: dashed; background: #f6f8f6; }
.cal-legend .cal-item { display: inline-block; margin-right: .4em; }
.cal-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .3em; background: currentColor; }
.k-birth { border-color: #d6336c; color: #d6336c; } .cal-item.k-birth { color: #1d2a24; }
.k-heat, .k-heat_forecast { border-color: #e8590c; color: #e8590c; } .cal-item.k-heat, .cal-item.k-heat_forecast { color: #1d2a24; }
.k-mating { border-color: #ae3ec9; color: #ae3ec9; } .cal-item.k-mating { color: #1d2a24; }
.k-health { border-color: #1c7ed6; color: #1c7ed6; } .cal-item.k-health { color: #1d2a24; }
.k-litter { border-color: #0ca678; color: #0ca678; } .cal-item.k-litter { color: #1d2a24; }
.k-show { border-color: #f08c00; color: #f08c00; } .cal-item.k-show { color: #1d2a24; background: #fff4e0; }
.k-other, .k-vet, .k-breeding { border-color: #495057; color: #495057; } .cal-item.k-other, .cal-item.k-vet, .cal-item.k-breeding { color: #1d2a24; }
.badge.warn { background: #fff4e0; color: #8a5a00; }
@media (max-width: 720px) {
  .cal-day { min-height: 64px; }
  .cal-item { font-size: 0; height: 6px; padding: 0; }
}
.countries { margin-top: .8em; }
.countries summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .3em .8em; margin: .8em 0; font-size: 14px; }
.entries { font-size: 13px; line-height: 1.45; min-width: 9em; }
.inline-report { display: inline; }
.inline-report summary { display: inline; cursor: pointer; color: var(--muted); }
.inline-report form { display: flex; flex-direction: column; gap: .4em; margin-top: .4em; }
.inline-report textarea { font-size: 13px; }
.entered-form { margin-top: .4em; font-size: 13px; }
.entered-form label { display: inline-flex; gap: .3em; align-items: center; cursor: pointer; }
.k-show_entry { border-color: #c92a2a; color: #c92a2a; } .cal-item.k-show_entry { color: #1d2a24; background: #fff0f0; }

/* --- Teczka badań -------------------------------------------------------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1em; margin-top: 1em; }
.doc { border: 1px solid #e3e8e4; border-radius: var(--radius); padding: .6em; display: flex; flex-direction: column; gap: .4em; background: #fff; }
.doc-thumb { display: block; aspect-ratio: 3 / 4; background: #f4f6f5; border-radius: 6px; overflow: hidden; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-pdf { display: flex; align-items: center; justify-content: center; height: 100%; font-weight: 700; color: #c92a2a; font-size: 1.4em; }
.doc-meta { font-size: 13px; line-height: 1.35; }

/* --- Teczka hodowli (katalogi, tagi, wyszukiwanie) ------------------------ */
.folder-crumbs { font-size: 14px; margin: .2em 0 .8em; }
.folder-search { display: flex; gap: .5em; margin: 0 0 1em; }
.folder-search input { flex: 1; min-width: 0; }
.folder-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1em; margin-bottom: 1em; }
.folder-tile { display: flex; flex-direction: column; gap: .25em; text-decoration: none; color: var(--ink); margin: 0; }
.folder-tile:hover { border-color: var(--green); }
.folder-icon { font-size: 1.8em; }
.folder-upload summary { cursor: pointer; }
.folder-upload form { margin-top: 1em; }
.doc-tags { display: flex; flex-wrap: wrap; gap: .3em; margin: .35em 0 .2em; }
.doc-tags .tag { font-size: 11px; padding: .1em .55em; border-radius: 999px; background: #eef5f0; color: #2b5a3f; text-decoration: none; }
.doc-tags .tag:hover { background: var(--green); color: #fff; }
.doc-file { color: #3b5bdb; }
.row-actions button.link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

/* --- Dokumenty prawne ------------------------------------------------------ */
.legal { max-width: 860px; margin: 2em auto 3em; }
.legal-tabs { display: flex; gap: .4em; flex-wrap: wrap; margin-bottom: 1em; }
.legal-tabs a { padding: .45em 1em; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; }
.legal-tabs a.active { background: var(--green); color: #fff; }
.legal-body { line-height: 1.65; }
.legal-body h1 { font-size: 1.6em; margin-top: 0; }
.legal-body h2 { font-size: 1.15em; margin-top: 1.8em; }
.legal-body li { margin-bottom: .35em; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; }
.legal-body th, .legal-body td { text-align: left; padding: .5em; border-bottom: 1px solid #e3e8e4; vertical-align: top; }
.legal-version { margin-top: 2em; font-size: 13px; }
.legal-footer { padding: 1.5em 0; font-size: 13px; text-align: center; }
.legal-footer a { color: var(--muted, #6b7470); }
.preview-bar { background: var(--green-soft); color: var(--green-dark); font-size: 14px; padding: .55em 0; }
.preview-bar.is-preview { background: #fff4e0; color: #7a5a00; }
.preview-bar a { margin-left: .4em; font-weight: 600; }
.public-link label { font-weight: 600; font-size: 14px; display: block; margin-bottom: .4em; }
.copy-row { display: flex; gap: .6em; }
.copy-row input { flex: 1; }
.public-footer { padding: 1.6em 0; }
.public-footer-row { display: flex; justify-content: space-between; align-items: center; gap: .6em 1.5em; flex-wrap: wrap; font-size: 13px; }
.public-footer a { color: var(--green); }
@media (max-width: 600px) { .public-footer-row { flex-direction: column; text-align: center; } }
.plain { list-style: none; padding: 0; margin: .4em 0 1em; display: grid; gap: .35em; }
.test-status { margin-bottom: 1em; }
.listing-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin:1em 0}
.listing-card{display:flex;flex-direction:column;padding:0;overflow:hidden;color:inherit;text-decoration:none}
.listing-card:hover{border-color:var(--green)}
.listing-card.featured{box-shadow:0 0 0 2px var(--green-soft)}
.lc-photo{aspect-ratio:4/3;background:#eef1ee center/cover no-repeat}
.lc-body{display:flex;flex-direction:column;gap:4px;padding:12px 14px}
.filters{flex-wrap:wrap;gap:8px}
.filters .field{min-width:140px}
.report-link{margin-top:2.5em;text-align:center;font-size:.85em}
.report-link summary{cursor:pointer;color:#6b736d;list-style:none;display:inline}
.report-link summary::-webkit-details-marker{display:none}
.report-link[open] summary{text-decoration:underline}
.report-link form{max-width:560px;margin:1em auto 0;text-align:left}

/* Instancja testowa (BM_ENVIRONMENT=demo) — pasek na każdej stronie */
.demo-bar { position: sticky; top: 0; z-index: 1000; background: #b45309; color: #fff; text-align: center;
  font-size: 13px; font-weight: 600; padding: 4px 16px; letter-spacing: .02em; }

/* --- telefon ------------------------------------------------------------------------------------------ */
.nav-toggle { display: none; }
@media (max-width: 800px) {
  .navbar .container { gap: .8em; min-height: 60px; }
  .brand { font-size: 18px; }
  .brand svg { width: 26px; height: 26px; }
  .nav-links { gap: 1em; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto;
    width: 42px; height: 42px; padding: 0 9px; border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; cursor: pointer; }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links.collapsible { display: none; }
  .nav-open .nav-links.collapsible { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%;
    margin: 0 0 .8em; border-top: 1px solid var(--line); }
  .nav-open .nav-links.collapsible > a, .nav-open .nav-links.collapsible > form { padding: .75em .2em; border-bottom: 1px solid var(--line); }
  .nav-open .nav-links.collapsible > a.btn { margin-top: .6em; justify-content: center; border-bottom: 0; }
  .nav-open .nav-links.collapsible .lang-form { padding: .6em 0; }
  .nav-open .nav-links.collapsible .kennel-link { display: flex; align-items: center; gap: .5em; }
}
@media (max-width: 720px) {
  .page-head { align-items: flex-start; }
  .page-head h1 { font-size: 22px; }
  .head-actions .btn { padding: .45em .8em; }
  .card { padding: 1.1em; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .stat { padding: 1em; }
  .stat strong { font-size: 22px; }
  /* tabele: przewijanie w bok zamiast ściskania kolumn */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th { white-space: nowrap; }
  td { min-width: 5.5em; }
  td.wide-cell { min-width: 16em; }
  th, td { padding: .55em .6em; }
  .hero { min-height: 480px; }
  .hero p { font-size: 16px; }
}
@media (max-width: 800px) {
  .hero-slides::after { background: linear-gradient(180deg, rgba(0, 50, 25, .78), rgba(0, 0, 0, .45)); }
}

/* --- blog ---------------------------------------------------------------------------------------------- */
.blog { padding-top: 2em; padding-bottom: 3em; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; margin: 1em 0; }
.blog-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; text-decoration: none; margin: 0; }
.blog-card:hover strong { color: var(--green); }
.bc-photo { aspect-ratio: 16 / 9; background: #eef1ee center / cover no-repeat; overflow: hidden; }
.bc-photo img, .lc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.bc-body strong { font-size: 17px; line-height: 1.3; color: var(--ink); }
.blog-article { max-width: 760px; margin: 0 auto; }
.blog-article h1 { font-size: clamp(26px, 4vw, 38px); }
.blog-cover { width: 100%; height: auto; border-radius: var(--radius); margin: 1em 0; }
.blog-lead { font-size: 19px; line-height: 1.6; color: var(--ink); }
.blog-body { font-size: 17px; line-height: 1.75; }
.blog-body h2 { font-size: 24px; margin-top: 1.8em; }
.blog-body h3 { font-size: 19px; margin-top: 1.4em; }
.blog-body li { margin-bottom: .4em; }
.blog-body blockquote { margin: 1.2em 0; padding: .6em 1.2em; border-left: 4px solid var(--green); background: var(--green-soft); }
.blog-body table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; }
.blog-body th, .blog-body td { border: 1px solid var(--line); padding: .5em .7em; vertical-align: top; }
.blog-cta { margin: 2.5em 0 1em; text-align: center; }
.blog-share { text-align: center; font-size: 14px; }
/* edytor artykułu w panelu obsługi */
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: #f7f8f7; position: sticky; top: 0; z-index: 2; }
.rte-toolbar button { border: 1px solid transparent; background: none; padding: .3em .6em; border-radius: 6px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.rte-toolbar button:hover, .rte-toolbar button.active { background: #fff; border-color: var(--line); }
.rte-toolbar button:disabled { opacity: .35; cursor: default; }
.rte-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.rte-source-toggle { margin-left: auto; }
.rte { min-height: 420px; max-height: 75vh; overflow-y: auto; padding: 1em 1.4em; border: 1px solid var(--line); border-radius: 0 0 8px 8px; background: #fff; }
.rte:focus { outline: 2px solid var(--green-soft); border-color: var(--green); }
.rte > :first-child { margin-top: 0; }
.blog-editor .rte-source { font-family: ui-monospace, monospace; font-size: 13px; min-height: 420px; }
.rte-count { text-align: right; }
.rte-count.warn { color: var(--danger); }
.blog-cover-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5em; align-items: start; }
.blog-cover-current { margin: 0; }
.blog-cover-current img { width: 100%; height: auto; border-radius: 8px; display: block; }
.blog-cover-empty { aspect-ratio: 16 / 9; display: grid; place-items: center; border: 2px dashed var(--line); border-radius: 8px; color: var(--muted); }
.blog-gemini { margin-top: 1.5em; padding-top: 1em; border-top: 1px solid var(--line); }
.blog-gemini h3 { font-size: 16px; }
.blog-candidates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.blog-candidate { position: relative; cursor: pointer; }
.blog-candidate input { position: absolute; top: 10px; left: 10px; }
.blog-candidate img { width: 100%; border-radius: 8px; display: block; border: 3px solid transparent; }
.blog-candidate input:checked + img { border-color: var(--green); }
@media (max-width: 700px) { .blog-cover-row { grid-template-columns: 1fr; } }
.association-note { max-width: 760px; margin: 3em auto 0; padding: 1.2em 1.4em; border-radius: var(--radius);
  background: var(--green-soft); color: var(--green-dark); font-size: 14px; line-height: 1.6; }
.association-note p { margin: .4em 0 0; }
.association-band { background: var(--green-soft); color: var(--green-dark); padding: 1em 0; font-size: 14px; }
.association-band .container { display: flex; gap: .4em 1em; flex-wrap: wrap; align-items: baseline; justify-content: center; text-align: center; }
@media (max-width: 720px) {
  .blog-body { font-size: 16px; }
  .blog-lead { font-size: 17px; }
  .blog-body table { display: block; overflow-x: auto; }
}
.hero-word { display: inline-block; transition: opacity .5s ease; }
.hero-word.is-changing { opacity: 0; }
.policy-banner { display: flex; align-items: flex-start; justify-content: space-between; gap: 1em; margin: 1em 0; padding: .7em 1em; background: var(--green-soft); border-left: 4px solid var(--green); border-radius: var(--radius); }
.policy-banner p { margin: 0; }
.policy-banner form { margin: 0; }
.policy-banner-close { background: none; border: 0; font-size: 1.4em; line-height: 1; cursor: pointer; color: var(--muted, #6b7470); padding: 0 .2em; }
.legal-change { background: var(--green-soft); border-radius: var(--radius); padding: .6em 1em; margin-bottom: 1.5em; font-size: 14px; }
.legal-change p { margin: .2em 0; }
.legal-change ul { margin: .3em 0 .2em; }

/* „Powiadom mnie o miocie” */
.follow-box { border: 1px solid var(--green-soft); }
.follow-row { display: flex; gap: .6em; flex-wrap: wrap; margin: .8em 0; }
.follow-row input { flex: 1 1 220px; }
.follow-form .check-label { font-size: 13px; color: var(--muted); }

/* --- Opinie testerów -------------------------------------------------------- */
.feedback-fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; background: var(--green); color: #fff; padding: .7em 1.1em; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.feedback-fab:hover { filter: brightness(1.05); color: #fff; }
.feedback-reply { background: #eef5f0; border-radius: 8px; padding: .7em 1em; margin-top: .6em; }
.feedback-reply p { margin: .3em 0 0; }
.tester-card { border-left: 4px solid var(--green); }
@media (max-width: 640px) { .feedback-fab { right: 12px; bottom: 12px; padding: .6em .9em; } }
#id_recommend, #id_kind { display: flex; flex-wrap: wrap; gap: .4em 1em; }
#id_recommend label, #id_kind label { font-weight: 400; }
.verification-checklist { list-style: none; padding: 0; margin: .4em 0 .8em; }
.verification-checklist li { margin: .3em 0; }

/* --- Konto „Właściciel” (Moje zwierzęta) ---------------------------------- */
.owner-animals { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1em; margin-bottom: 1em; }
.owner-animal { display: flex; flex-direction: column; gap: .3em; text-decoration: none; color: var(--ink); margin: 0; padding: .8em; }
.owner-animal img, .owner-animal-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #eef5f0; }
.owner-animal-ph { display: flex; align-items: center; justify-content: center; font-size: 3em; }
.owner-animal:hover { border-color: var(--green); }
.empty-state { text-align: center; padding: 2em 1.5em; }

/* --- konto „Właściciel”: profil publiczny (przełącznik zdjęć), plakat „Zaginął” --- */
.gallery figure { position: relative; }
.photo-public { position: absolute; left: 6px; top: 6px; }
.photo-public button { width: 30px; height: 30px; border-radius: 9px; border: 0; background: rgba(22,24,29,.72); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.photo-public button svg { width: 15px; height: 15px; }
.profile-card { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.profile-card .grow { flex: 1 1 220px; min-width: 0; }
.poster-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.poster-photos label { display: block; position: relative; cursor: pointer; border-radius: var(--radius); overflow: hidden; border: 3px solid transparent; }
.poster-photos input { position: absolute; opacity: 0; }
.poster-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.poster-photos input:checked + img { outline: 3px solid var(--green); outline-offset: -3px; }
.poster-photos input:focus-visible + img { outline: 3px solid #FFB13B; outline-offset: -3px; }
.photo-album select { width: 100%; padding: .3em .5em; font-size: 13px; margin-top: .3em; }
.albums-box { margin-top: 1.2em; padding-top: 1em; border-top: 1px solid var(--line); }
.albums-box h3 { font-size: 15px; margin: 0 0 .5em; }
.album-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .6em; }
.album-chips .badge { font-size: 13px; padding: .3em .8em; }
.photo-likes { position: absolute; right: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(22,24,29,.72);
  color: #fff; font-size: 12px; font-weight: 600; }
.journal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; }
.journal-meta time { font-weight: 700; color: var(--ink); }
.journal-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.journal-actions form { margin: 0; }
.journal-text { white-space: pre-line; margin: .8em 0 0; }
.journal-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: .8em; }
.journal-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.journal-photos figure { margin: 0; position: relative; }
.journal-photos figure button { position: absolute; right: 4px; top: 4px; background: rgba(255,255,255,.9); border-radius: 8px; }

/* wpisy zdrowia i ważenia: lista zamiast tabeli — na wąskiej karcie i telefonie zawija się zamiast wychodzić poza kartę */
.entries, .entries tbody { display: block; }
.entries tr { display: flex; flex-wrap: wrap; align-items: center; gap: .2em .9em; padding: .6em .2em; border-bottom: 1px solid var(--line); }
.entries td { padding: 0; border: 0; }
.entries td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.entries td.row-actions { margin-left: auto; }
.entries tr.empty { border-bottom: 0; padding-left: 0; }
.entries tr.empty td { font-weight: 400; color: var(--muted); }
.table-wrap:has(> .entries) { overflow: visible; }

/* pole wyboru pliku w stylu przycisków aplikacji */
input[type=file] { font: inherit; font-size: 14px; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { margin-right: .8em; padding: .55em 1.1em; border: 1px solid var(--green); border-radius: var(--radius);
  background: #fff; color: var(--green); font: inherit; font-weight: 600; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--green); color: #fff; }
