/* 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-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", 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;
  background: linear-gradient(120deg, rgba(0, 60, 30, .75), rgba(0, 0, 0, .35)),
              url("../img/hero.395bcb60be99.jpg") 72% center / cover no-repeat,
              linear-gradient(135deg, #00bd56, #0b6b3a);
}
.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;
  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: 2em 0 4em; }
.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(320px, 1fr)); }
.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); }
.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); }

/* formularze */
.form { display: grid; gap: 1em 1.5em; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.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: 1em; margin-top: 1.5em; align-items: center; }
.inline-form { display: flex; gap: .8em; flex-wrap: wrap; align-items: end; }
.inline-form .field { flex: 1 1 140px; }
.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; }
.tabs a { 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.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; }
