/* Vendellek*PL: panel hodowcy.
   Phone first: top bar, content, bottom tab bar. From 900 px up the same menu is a sidebar. */
:root {
  --bg: #f4f2ed; --surface: #fff; --ink: #1d2721; --muted: #5f6b63; --line: #e2ddd2;
  --forest: #2e5a44; --forest-soft: #e5eee8; --amber: #a8712a; --red: #b3261e; --hot: #f5c542;
  --radius: 14px; --nav-h: 62px;
  --head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); font-feature-settings: "tnum" 1, "cv11" 1; }  /* numbers of equal width in lists and dates, the single-storey a */
a { color: var(--forest); }
h1 { font: 700 1.7rem/1.2 var(--head); letter-spacing: -.01em; margin: .1em 0 .5em; }
h2 { font: 700 1.2rem/1.25 var(--head); margin: 1.3em 0 .6em; }
h2.label { font: 700 1.05rem/1.3 var(--head); color: var(--ink); margin: 1.6em 0 .7em; }
.lead { color: var(--muted); margin: -.4em 0 1em; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

/* ---------- shell: top bar (brand, to-do, messages, account), sidebar on a computer, bottom bar on a phone */
/* the side menu and the phone's bottom bar are dark (docs/07-KONWENCJE.md): yellow only for "Dodaj", the active item and counts */
:root { --top-h: 58px; --side: 0px; --nav-bg: #1f3d2f; --nav-ink: #dfe9e3; --nav-muted: #bcd0c4; --nav-label: #cfe0d6; --nav-hover: rgba(255, 255, 255, .08); }
.ptop { position: sticky; top: 0; z-index: 45; height: calc(var(--top-h) + env(safe-area-inset-top, 0px)); background: var(--surface); border-bottom: 1px solid var(--line);
  padding: env(safe-area-inset-top, 0px) 12px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pbrand { color: var(--ink); text-decoration: none; font: 700 1.15rem/1 var(--head); display: flex; align-items: center; gap: 8px; min-width: 0; }
.pbrand i { font-style: normal; color: var(--amber); }
.pbrand small { font: 500 .78rem var(--body); color: var(--muted); margin-left: 6px; }

.ptools { display: flex; align-items: center; gap: 2px; flex: none; }
.psite { font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; margin-right: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pmenu { position: relative; }
.pmenu-btn { position: relative; display: flex; align-items: center; gap: 6px; height: 42px; min-width: 42px; justify-content: center; padding: 0 9px; border: 0; border-radius: 12px;
  background: none; color: var(--ink); cursor: pointer; font: 600 .88rem var(--body); }
.pmenu-btn:hover, .pmenu.open .pmenu-btn { background: var(--forest-soft); color: var(--forest); }
.pmenu-btn .count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; font-size: .66rem; padding: 0 5px; }
.pdrop { display: none; position: absolute; right: 0; top: 100%; z-index: 50; width: min(340px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(29, 39, 33, .16); padding: 8px; }
.pmenu.open .pdrop { display: block; }
@media (hover: hover) and (min-width: 900px) { .pmenu:hover .pdrop, .pmenu:focus-within .pdrop { display: block; } }
.pdrop-title { display: block; font: 600 .72rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 6px; }
.pdrop-row { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; }
.pdrop-row:hover { background: var(--bg); }
.pdrop-row b { display: block; font-size: .92rem; font-weight: 600; overflow-wrap: anywhere; }
.pdrop-row small { display: block; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.pdrop-row.unread b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--forest); margin-right: 7px; }
.pdrop form { margin: 4px 0 0; border-top: 1px solid var(--line); padding-top: 4px; }
.pdrop-out b { color: var(--red); }
.pdrop-empty { color: var(--muted); font-size: .9rem; padding: 6px 10px 10px; margin: 0; }
.pdrop-all { display: block; text-align: center; font-size: .86rem; font-weight: 600; padding: 10px; border-top: 1px solid var(--line); margin-top: 4px; text-decoration: none; }
@media (max-width: 899px) { .psite, .pmenu-label { display: none; } .pbrand small { display: none; } .pmenu { position: static; } .pdrop { right: 8px; top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); } }

.pmain { max-width: 860px; margin: 0 auto; padding: 20px 16px 40px; min-width: 0; }
.has-nav .pmain { padding-bottom: calc(var(--nav-h) + 96px + env(safe-area-inset-bottom, 0px)); }
.linkish { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; color: inherit; }

/* phone: bottom bar */
.pnav { display: none; }
.pbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--nav-bg);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
.pbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; text-decoration: none; color: var(--nav-muted); font-size: .7rem; font-weight: 600; min-width: 0; }
.pbar a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pbar a[aria-current] { color: #fff; font-weight: 700; }
.pbar a[aria-current]::before { content: ""; position: absolute; top: -4px; left: 24%; right: 24%; height: 3px; border-radius: 0 0 3px 3px; background: var(--hot); }
.pbar a:focus-visible { outline-color: var(--hot); }

/* computer: sidebar under the top bar; the button at its foot folds it to icons (remembered by assets/nav.js) */
@media (min-width: 900px) {
  :root { --side: 248px; }
  .nav-collapsed { --side: 68px; }
  .pbar { display: none; }
  .ptop { padding-left: 18px; }
  .pnav { display: flex; flex-direction: column; gap: 14px; position: fixed; left: 0; top: var(--top-h); bottom: 0; width: var(--side); z-index: 40;
    background: var(--nav-bg); color: var(--nav-ink); padding: 16px 12px 10px; overflow-y: auto; overflow-x: hidden; }
  .pnav-group { display: grid; gap: 2px; }
  .pnav-group + .pnav-group { margin-top: 8px; }
  .pnav-label { font: 600 .82rem var(--body); color: var(--nav-label); padding: 0 12px 6px; white-space: nowrap; }
  .pnav a, .pnav-toggle { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 12px; border-radius: 10px; color: var(--nav-ink);
    font: 500 .93rem/1.2 var(--body); text-decoration: none; white-space: nowrap; }
  .pnav a:hover, .pnav-toggle:hover { background: var(--nav-hover); color: #fff; }
  .pnav a[aria-current] { background: var(--forest); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--hot); }
  .pnav a:focus-visible, .pnav button:focus-visible { outline-color: var(--hot); }
  .pnav a.soon { color: var(--nav-muted); }
  .pnav a.soon span::after { content: "wkrótce"; margin-left: 8px; font-size: .64rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #1d2721; background: var(--nav-label); border-radius: 999px; padding: 2px 7px; }
  .pnav svg { flex: none; }
  .pnav-toggle { margin-top: auto; width: 100%; border: 0; border-top: 1px solid rgba(255, 255, 255, .14); border-radius: 0 0 10px 10px; background: none; color: var(--nav-muted); cursor: pointer; padding-top: 12px; }
  /* the content uses the whole window: lists flow into as many columns as fit, forms stay at a readable width */
  .has-nav .pmain { margin: 0 0 0 var(--side); max-width: none; padding: 30px clamp(24px, 3vw, 48px) 60px; }
  .rows { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
  .cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 14px; align-items: start; }
  .cards-grid .litter { margin-bottom: 0; }
  .card.form, form.form:not(.card) { max-width: 1100px; }
  .quick { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .toasts { left: calc(var(--side) + 24px); right: 24px; }

  .nav-collapsed .pnav a span, .nav-collapsed .pnav-toggle span, .nav-collapsed .pnav-label { display: none; }
  .nav-collapsed .pnav a, .nav-collapsed .pnav-toggle { justify-content: center; padding-inline: 0; }
  .nav-collapsed .pnav-group + .pnav-group { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 12px; }
  .nav-collapsed .pnav-toggle svg { transform: scaleX(-1); }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) { .pnav { transition: width .18s ease; } .has-nav .pmain { transition: margin-left .18s ease; } }

/* a section that is not built yet */


/* ---------- surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card.narrow { max-width: 420px; margin: 0 auto; }
/* login: one centred card with the logo; nothing else on the screen */
body:not(.has-nav) .pmain { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding-block: 32px; }
.login { padding: 28px 24px 26px; text-align: center; box-shadow: 0 1px 2px rgba(29, 39, 33, .05), 0 12px 32px rgba(29, 39, 33, .07); }

.login-more { margin: 14px 0 0; font-size: .92rem; }
.login-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--muted); font-size: .85rem; }
.login-or::before, .login-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.login .btn-ghost.btn-block + .btn-ghost.btn-block { margin-top: 8px; }
.login-brand { font: 700 1.5rem/1 var(--head); margin: 2px 0 14px; }
.login-brand i { font-style: normal; color: var(--amber); }
.login h1 { font: 600 .78rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.login form, .login .flash, .login > p:not(.login-brand) { text-align: left; }
.login > .login-lang { display: flex; width: fit-content; margin: 18px auto 0; }             /* Polski / English under the form */
.pw { position: relative; }
.pw input { padding-right: 76px; }
.pw-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--forest); font: 600 .85rem var(--body); padding: 8px 10px; cursor: pointer; border-radius: 8px; }
.btn-block { width: 100%; margin-top: 18px; min-height: 50px; font-size: 1rem; }

.hrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hrow h1, .hrow h2 { margin: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.rows { display: grid; gap: 10px; }
.row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; gap: 12px; align-items: center; min-width: 0; text-decoration: none; color: var(--ink); }
.grow { flex: 1; min-width: 0; }
.row b, .grow b { display: block; font-size: .97rem; overflow-wrap: anywhere; }
.row small, .grow small { display: block; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.row.todo { border-left: 4px solid var(--hot); }
.go { color: var(--forest); font: 700 .85rem var(--body); white-space: nowrap; background: none; border: 0; cursor: pointer; padding: 8px 0; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q { display: flex; align-items: center; min-height: 68px; padding: 14px; border-radius: var(--radius); background: var(--forest); color: #fff; font-weight: 600; line-height: 1.25; text-decoration: none; }
.q.alt { background: var(--surface); color: var(--forest); border: 1px solid var(--line); }
.ava { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--forest-soft); color: var(--forest); }
@media (min-width: 700px) { .quick { grid-template-columns: repeat(4, 1fr); } }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--forest);
  background: var(--forest); color: #fff; font: 600 .95rem/1 var(--body); text-decoration: none; cursor: pointer; }
.btn.busy { opacity: .6; pointer-events: none; }
.btn-ghost { background: var(--surface); color: var(--forest); }
.btn-danger { background: var(--surface); color: var(--red); border-color: var(--red); }
.btn-sm { min-height: 36px; padding: 4px 14px; font-size: .85rem; }
/* every button answers: darker under the pointer, pressed in when clicked or tapped, greyed when it can't be used, and
   marked while what it opened is shown (aria-pressed); 24.11.2026: "jak zaznaczam przyciski to się nie podświetlają" */
.btn { transition: background-color .15s, color .15s, border-color .15s, transform .08s; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) {
  .btn:hover { background: color-mix(in srgb, var(--forest) 84%, #000); border-color: color-mix(in srgb, var(--forest) 84%, #000); }
  .btn-ghost:hover { background: var(--forest-soft); border-color: var(--forest); color: var(--forest); }
  .btn-danger:hover { background: color-mix(in srgb, var(--red) 8%, var(--surface)); border-color: var(--red); color: var(--red); }
}
.btn:active { transform: scale(.97); }
.btn-ghost:active { background: color-mix(in srgb, var(--forest) 18%, var(--surface)); }
.btn[aria-pressed="true"], .btn-ghost[aria-pressed="true"] { background: var(--forest-soft); color: var(--forest); border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: default; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.actions .btn-danger { margin-left: auto; }
.card.form.is-dirty > .actions::before { content: var(--unsaved, ""); flex-basis: 100%; font-size: .85rem; font-weight: 600; color: #7a4e0f; background: #f6ead2; border-radius: 8px; padding: 6px 10px; }
.pfab { text-decoration: none; }
/* the save bar of a long form stays in view */
.card.form > .actions { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); z-index: 5; background: var(--surface);
  margin: 22px -18px -18px; padding: 12px 18px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
@media (min-width: 900px) { .card.form > .actions { bottom: 0; } }
.saved { font-size: .8rem; color: var(--muted); flex-basis: 100%; }

/* ---------- forms */
.form .fl, label.fl { display: block; font-weight: 600; margin: 14px 0 5px; font-size: .92rem; }
.fl small, .hint { font-weight: 400; color: var(--muted); }
.hint { font-size: .88rem; margin: 6px 0 0; }
input[type=text], input[type=url], input[type=date], input[type=time], input[type=datetime-local], input[type=password], input[type=search], input:not([type]), select, textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); min-height: 44px; }
/* every list's own arrow, clear of the right edge (a phone's own sat against it, 29.11.2026) */
select:not([multiple]):not([size]) { -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-opacity='.55' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px 14px; }
input:not([type=file]):not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus { outline: 0; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(46, 90, 68, .18); }
input[type=file] { font: inherit; width: 100%; max-width: 100%; }
input[type=date], input[type=datetime-local] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; }   /* iOS gives it a width of its own, wider than the card */
input[type=date]::-webkit-date-and-time-value, input[type=datetime-local]::-webkit-date-and-time-value { text-align: left; }
textarea { min-height: 80px; }
.chk { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: .95rem; }

/* a form in groups (the cat): a heading per group, a checkbox level with the field beside it */
.fgroup { border: 0; padding: 0; margin: 0; }
.fgroup + .fgroup { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 4px; }
.fgroup legend { font-family: var(--head); font-size: 1.12rem; font-weight: 700; padding: 0; margin: 14px 0 0; float: left; width: 100%; }
.fgroup legend + .grid2 { clear: both; }

.chk input[type=checkbox].box { width: 20px; height: 20px; accent-color: var(--forest); flex: none; }
/* on/off: a switch (role="switch" set by the page's script); the boxes that pick things have class "box" */
input[type=checkbox]:not(.box) { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 28px; margin: 0;
  border-radius: 999px; background: #cfd4cd; cursor: pointer; transition: background-color .18s ease; vertical-align: middle; }
input[type=checkbox]:not(.box)::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(29, 39, 33, .25); transition: transform .18s ease; }
input[type=checkbox]:not(.box):checked { background: var(--forest); }
input[type=checkbox]:not(.box):checked::before { transform: translateX(18px); }
input[type=checkbox]:not(.box):focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
input[type=checkbox]:not(.box):disabled { opacity: .5; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { input[type=checkbox]:not(.box), input[type=checkbox]:not(.box)::before { transition: none; } }
.chk { cursor: pointer; }
.sw-field { margin-top: 16px; }
.sw-field .chk { align-items: flex-start; gap: 12px; margin: 0; }
.sw-text { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }
.sw-text b { font-weight: 600; font-size: .95rem; }
.sw-text small { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.req { color: var(--red); font-weight: 700; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.span2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
fieldset { min-width: 0; }
.pf-row > div, .grid2 > div { min-width: 0; }

.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; font: 600 .88rem var(--body); padding: 8px 18px; border-radius: 999px; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--forest); color: #fff; }
.seg-sm button { padding: 5px 14px; }
.seg button.empty::after { content: " ●"; color: var(--hot); }
.draft-note { background: #f5ead9; color: #83561c; border-radius: 10px; padding: 10px 14px; }
.restore { background: var(--forest-soft); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .92rem; }

.editor { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.etool { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--bg); border-bottom: 1px solid var(--line); }
.etool button { min-height: 36px; min-width: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; cursor: pointer; font-size: .9rem; }
.earea { min-height: 160px; max-height: 60vh; overflow: auto; padding: 12px 14px; }
.earea:focus { outline: 2px solid var(--forest); outline-offset: -2px; }
.earea img { max-width: 220px; height: auto; border-radius: 6px; margin: 4px; vertical-align: top; }
.earea .gallery { display: flex; flex-wrap: wrap; }

/* photos */
.pf-row { display: flex; gap: 12px; align-items: flex-start; }
.thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); flex: none; }
.nophoto { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 10px; background: var(--bg); color: var(--muted); font-size: .8rem; text-align: center; flex: none; }
.pf-row small { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.previews figure { margin: 0; position: relative; aspect-ratio: 1; }
.previews img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.previews button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(29, 39, 33, .82); color: #fff; cursor: pointer; font-size: .85rem; line-height: 1; }
.previews figcaption { position: absolute; left: 4px; bottom: 4px; background: var(--forest); color: #fff; font-size: .68rem; font-weight: 600; border-radius: 6px; padding: 1px 6px; }

/* ---------- lists */
.list { width: 100%; border-collapse: collapse; }
.list th, .list td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list tr:last-child td { border-bottom: 0; }
.list th { font-size: .85rem; color: var(--muted); }
/* thumbnail and actions take only the room they need; the name takes the rest, so the buttons line up on the right */
.list td:first-child:has(.mini) { width: 60px; }
.list td:last-child:not(:first-child) { width: 1%; white-space: nowrap; text-align: right; }
.list td:last-child .btn + .btn, .list td:last-child form + .btn, .list td:last-child .btn + form { margin-left: 4px; }
.nowrap { white-space: nowrap; }
.inline { display: inline; margin: 0; }
.mini { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; display: block; flex: none; }
.mini.round { border-radius: 50%; }
/* an animal over the rainbow bridge (died or the status memorial): its photo greyed wherever it shows */
.departed-ph { filter: grayscale(1); }
.mini.nophoto { width: 44px; height: 44px; background: var(--forest-soft); }
.tag { font-size: .75rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.tag-draft { background: #f5ead9; color: #83561c; border-color: #ead7b6; }
.tag-new { background: var(--forest); color: #fff; border-color: var(--forest); }
.warn { background: #f5ead9; color: #83561c; border-radius: 6px; padding: 1px 6px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--hot); color: #1d2721; font-size: .72rem; font-weight: 700; }
b .count { display: inline-grid; margin-left: 6px; vertical-align: middle; }
@media (max-width: 640px) { .list td:first-child { width: 1%; } .actions .btn { flex: 1 1 auto; } .actions .btn-danger { margin-left: 0; }
  .card.form > .actions { gap: 8px; } .card.form > .actions .btn-danger { flex: 1 1 100%; min-height: 30px; border: 0; background: none; padding: 0; font-size: .85rem; } }

/* ---------- litters and kittens */
.litter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; scroll-margin-top: 70px; }
.litter > summary{ list-style: none; display: flex; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; }
.litter > summary::-webkit-details-marker{ display: none; }
.litter[open] > summary{ border-bottom: 1px solid var(--line); }
.letter { width: 44px; height: 44px; display: grid; place-items: center; background: var(--forest-soft); color: var(--forest); border-radius: 12px; font: 700 1.3rem var(--head); flex: none; }
.kit { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); min-width: 0; font-size: .95rem; }
.kit:last-child { border-bottom: 0; }
.chip, .badge { font: 600 .76rem/1.2 var(--body); padding: 6px 11px; border-radius: 999px; background: #e7eaee; color: #3c4650; white-space: nowrap; }
.chip { border: 0; cursor: pointer; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.chip::after { content: " ▾"; opacity: .7; }
.badge { padding: 3px 9px; font-size: .72rem; }
.badge-available { background: #d9efdf; color: #1f6a3a; }
.badge-watch { background: #f5ead9; color: #83561c; }
.badge-reserved { background: #f3e4e1; color: #8a3d33; }
.badge-stays { background: var(--forest-soft); color: var(--forest); }

@media (prefers-reduced-motion: no-preference) {  @keyframes sheet-up { from { transform: translateY(24px); opacity: .6; } } }

/* kitten status choices in the litter form (colours match the badges on the site) */

/* ---------- shows */
.rainbow { background: #f1f0ec; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 16px; }
.rainbow small { color: var(--muted); }
.table-scroll { overflow-x: auto; }
/* a long text cut to 3 lines; "Pokaż więcej" only when something is cut (MoreText.vue) */
.more:not(.open) { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more-btn { display: inline-block; margin: 2px 0 0; padding: 0; border: 0; background: none; color: var(--forest); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.more-btn:hover { text-decoration: underline; }

/* a table of entries (Zdrowie: historia, Finanse) on a phone: every row a small block, no sideways scroll.
   st-meta: date, kind… on one line; st-head: the bold line; st-main: the text; data-label: "Seria: …"; st-act: the button */
@media (max-width: 640px) {
  .list.stack, .list.stack tbody { display: block; }
  .list.stack thead { display: none; }
  .list.stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .list.stack tr:last-child { border-bottom: 0; }
  .list.stack td, .list.stack td:first-child, .list.stack td:first-child:has(.mini) { display: block; grid-column: 1; padding: 1px 0; border: 0; width: auto; text-align: left; overflow-wrap: anywhere; }
  .list.stack td:empty { display: none; }
  .list.stack td.st-meta { display: inline; font-size: .82rem; color: var(--muted); }
  .list.stack td.st-meta + td.st-meta::before { content: " · "; }
  .list.stack td.st-head { font-weight: 700; }
  .list.stack td[data-label] { font-size: .88rem; }
  .list.stack td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  .list.stack td.st-act { grid-column: 2; grid-row: 1 / span 6; align-self: center; width: auto; }
}

/* ---------- messages, confirmations */
.msg.unread { border-left: 4px solid var(--forest); }
.msg-text { white-space: normal; background: var(--bg); border-radius: 10px; padding: 12px 14px; margin: 12px 0 0; }
.msg .actions { margin-top: 12px; }
/* the cat's card: the same cat entered twice */
.cat-merge { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.cat-merge summary { cursor: pointer; font-weight: 600; }
.cat-merge-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.cat-merge-row select { flex: 1 1 200px; width: auto; min-width: 0; }
/* Wiadomości: the people who wrote, and a conversation: the client on the left, the breeder on the right */
.msg-person { color: inherit; text-decoration: none; }
.msg-person.unread { border-left: 4px solid var(--forest); }
.msg-person .grow { min-width: 0; }
.msg-last { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: .92rem; }
.msg-thread { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.msg-say { display: flex; flex-direction: column; gap: 4px; max-width: min(85%, 560px); }
.msg-say .msg-text { margin: 0; overflow-wrap: anywhere; }
.msg-say small { color: var(--muted); font-size: .82rem; }
.msg-topic { font-size: .88rem; }
.msg-out { align-self: flex-end; align-items: flex-end; }
.msg-out .msg-text { background: var(--forest-soft); }
.msg-answer { border-top: 1px solid var(--line); padding-top: 12px; }
.msg-answer .fl { margin-top: 0; }
.msg-filter { display: flex; gap: 8px; margin: 0 0 12px; }
.msg-filter .btn[aria-pressed="true"] { background: var(--forest-soft); color: var(--forest); border-color: var(--forest); }
/* messages to many (BulkCompose.vue, BulkDetail.vue) and owners' reports (ReportDetail.vue) */
.bulk-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.bulk-template-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.bulk-people-head { margin: 12px 0 4px; }
.bulk-people { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.bulk-people li { padding: 8px 12px; border-top: 1px solid var(--line); }
.bulk-people li:first-child { border-top: 0; }
.bulk-people small { color: var(--muted); }
.bulk-fields { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.bulk-fields small { color: var(--muted); font-weight: 400; margin-left: 5px; }
.report-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.report-facts dt { color: var(--muted); }
.report-facts dd { margin: 0; font-weight: 600; }
.report-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.report-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
/* results found in a FIFe club's list (FifeImport.vue) */
.fife-found .chk b { display: inline; }
.fife-edit { margin-top: 8px; gap: 8px; }
.fl-inline { font-weight: 600; margin-right: 8px; }
/* a hand-drawn signature (SignaturePad.vue) */
.sign-pad { display: grid; gap: 8px; justify-items: start; }
.sign-pad canvas { width: 100%; max-width: 640px; aspect-ratio: 16 / 5; background: #fff; border: 1.5px dashed var(--muted); border-radius: 10px; touch-action: none; cursor: crosshair; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; background: #d9efdf; color: #1f4d30; border: 1px solid #b9dcc4; }
.flash-error { background: #f8e1de; color: #7a221b; border-color: #efbdb6; }
.flash-warn { background: #fbf1d9; color: #6b4e0f; border-color: #f0dca8; }
/* the paid plan's end on Dziś (SubscriptionNotice): orange before a cancelled subscription ends, red after a missed payment */
.sub-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; border: 1px solid; }
.sub-notice p { margin: 0; flex: 1 1 260px; }
.sub-notice-ending { background: #fde6cf; color: #7a3d06; border-color: #f4bf8c; }
.sub-notice-overdue { background: #f8e1de; color: #7a221b; border-color: #e9a59c; }
.weigh-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-top: 12px; }
.weigh-add > div { flex: 1 1 140px; }
.weigh-pdf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.weigh-pdf select { width: auto; }
.cat-weights .rows { margin-top: 8px; }
.toasts { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: grid; gap: 8px; max-width: 520px; margin: 0 auto; }
body:not(.has-nav) .toasts { bottom: 16px; }
.toast { background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; font-size: .92rem; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); }
.toast span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast form { margin: 0; }
.toast button { background: none; border: 0; color: var(--hot); font: 700 .92rem var(--body); cursor: pointer; padding: 6px 2px; }
.toast.gone { opacity: 0; transition: opacity .4s; }
@media (min-width: 900px) { .toasts { bottom: 24px; } }

/* notes slide in from below; the panel's pages cross-fade (View Transitions; browsers without it just load the page) */
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: toast-in .35s cubic-bezier(.16, 1, .3, 1); }
  @keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .16s ease both; }
  ::view-transition-new(root) { animation: vt-in .22s ease both; }
  .ptop, .pnav, .pbar { view-transition-name: var(--vt, none); }
  .ptop { --vt: ptop; } .pnav { --vt: pnav; } .pbar { --vt: pbar; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
}
.toast-error { background: #8a3d33; }
.filter-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.filter-in { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.filter-in:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-soft); }
.filter-in input { border: 0; background: none; min-height: 44px; padding: 0; box-shadow: none; outline: none; }
.filter-in input:not([type=file]):not([type=checkbox]):not([type=radio]):focus { box-shadow: none; } /* as specific as the fields' focus rule: the ring is on .filter-in */
.lit-filter .filter-in { max-width: none; }
.row-link { color: inherit; text-decoration: none; font-weight: 600; }
.row-link:hover { text-decoration: underline; }
.filter-in .ico { color: var(--muted); }
.filter-count:empty { display: none; }
@media (max-width: 700px) { .filter-in { max-width: none; } }
.news-row b { font-size: 1.02rem; font-weight: 600; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.news-go { color: var(--muted); font-size: 1.5rem; line-height: 1; flex: none; }
.filter-none { padding: 18px; text-align: center; }

/* the panel's own confirmation window (the console: panel.js) */
.ask-dlg { border: 0; border-radius: 16px; padding: 22px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.ask-dlg::backdrop { background: rgba(29, 39, 33, .45); }
.ask-text { margin: 0 0 18px; font-size: 1.02rem; }
.ask-dlg .actions { display: flex; justify-content: flex-end; gap: 10px; margin: 0; padding: 0; border: 0; position: static; background: none; }
@media (prefers-reduced-motion: no-preference) { .ask-dlg[open] { animation: ask-in .18s ease; } @keyframes ask-in { from { opacity: 0; transform: translateY(8px) scale(.98); } } }

/* sending photos: a bar at the top with how much is sent */

/* the month of the calendar changes in place */

@media (prefers-reduced-motion: no-preference) {  @keyframes swap-in { from { opacity: 0; transform: translateX(var(--from, 0)); } } }

/* Mioty: the filters and the years */
.lit-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 8px; }
.lit-filter > div { flex: 0 0 220px; }   /* wide enough for the longest choice of the lists */
.lit-filter > div:first-child { flex: 1 1 240px; max-width: 420px; }
.lit-filter > .lit-filter-go { flex: none; }
.lit-filter .fl { margin-top: 0; }
.lit-filter-go { display: flex; gap: 8px; }
@media (max-width: 760px) { .lit-filter > div { flex: 1 1 215px; } .lit-filter > div:first-child, .lit-filter > .lit-filter-go { flex: 1 1 100%; max-width: none; } }
.year-head { font-family: var(--head); font-size: 1.35rem; margin: 26px 0 12px; }
.year-head small { font-family: var(--body); font-size: .9rem; font-weight: 400; color: var(--muted); }

/* the consent banner of Google Analytics (panel/analytics.js, the public demo only): above the bottom menu */
.bd-consent { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: calc(var(--nav-h) + 16px); max-width: 560px; margin: 0 auto;
  padding: 16px 18px; border-radius: var(--radius); background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18); font-size: .93rem; line-height: 1.5; }
@media (min-width: 900px) { .bd-consent { bottom: 16px; } }
.bd-consent p { margin: 0 0 12px; }
.bd-consent a { color: inherit; }
.bd-consent-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.bd-consent button { min-height: 42px; padding: 0 18px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--forest); }
.bd-consent-yes { background: var(--forest); color: #fff; }
.bd-consent-no { background: transparent; color: var(--ink); }
.bd-consent-link { margin: 8px 0 0; text-align: center; font-size: .85rem; opacity: .8; }

/* Zdrowie: the due dates by urgency, one low line per term */
.due-list { padding: 4px 16px 8px; }
.due-sec h3 { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.due-sec + .due-sec { border-top: 1px solid var(--line); margin-top: 6px; }
.due-n { background: var(--line); color: var(--ink); border-radius: 999px; padding: 0 7px; font-size: .74rem; letter-spacing: 0; }
.due-row { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 7px 0; text-decoration: none; color: var(--ink); }
.due-row + .due-row { border-top: 1px dashed var(--line); }
.due-who { font-weight: 600; }
.due-what { color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.due-when { font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.due-late .due-when { color: var(--red); font-weight: 600; }
.due-go { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 4px 14px; border-radius: 999px; background: var(--forest); color: #fff; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.due-row:has(.due-go) { grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto auto; align-items: center; }
@media (max-width: 640px) {
  .due-row:has(.due-go) { grid-template-columns: 1fr auto; row-gap: 4px; padding: 10px 0; }
  .due-row:has(.due-go) .due-who { grid-area: 1 / 1; }
  .due-row:has(.due-go) .due-when { grid-area: 1 / 2; }
  .due-row:has(.due-go) .due-what { grid-area: 2 / 1 / 3 / 3; white-space: normal; }
  .due-row:has(.due-go) .due-go { grid-area: 3 / 1 / 4 / 3; min-height: 44px; }
}
.due-none { margin: 2px 0 8px; font-size: .88rem; }
.due-later > summary { list-style: none; cursor: pointer; }
.due-later > summary::-webkit-details-marker { display: none; }
.due-later > summary h3::before { content: "\25B8"; color: var(--forest); transition: transform .15s; }
.due-later[open] > summary h3::before { transform: rotate(90deg); }
.due-later h4 { margin: 10px 0 2px; font-size: .84rem; font-weight: 600; color: var(--forest); }
@media (max-width: 420px) {
  .due-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
  .due-what { grid-column: 1; grid-row: 2; }
  .due-when { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* Więcej on a phone: the side menu's list, one low line per section */
.more-list { padding: 4px 0; margin-bottom: 18px; }
.more-row { display: flex; align-items: center; gap: 14px; padding: 11px 16px; color: var(--ink); text-decoration: none; }
.more-row + .more-row { border-top: 1px solid var(--line); }
.more-row svg { flex: none; color: var(--forest); }
.more-row .grow { font-weight: 600; }
.more-row .grow b { display: block; font-weight: 600; }
.more-row .grow small { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; }
.more-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; margin: 0 0 4px; color: var(--muted); }
.more-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); min-height: 46px; outline: none; }
.more-search input:not([type=file]):not([type=checkbox]):not([type=radio]):focus { box-shadow: none; border-color: transparent; }
.more-search:focus-within { outline: 2px solid var(--forest); outline-offset: 2px; }

.psheet-row.on { background: var(--forest-soft); border-radius: 10px; }
.pgoto { align-items: flex-start; padding-top: 12vh; }
.pgoto .psheet { border-radius: 16px; }
[id].card-title, h2.label[id] { scroll-margin-top: 80px; }
/* a cat owner's strip of cats on Dziś: a round photo each, then the same round shape with a plus */
.my-cats { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.my-cat { flex: none; width: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; text-align: center; font-size: .82rem; color: var(--ink); text-decoration: none; display: grid; justify-items: center; gap: 6px; }
.my-cat-ph { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--forest-soft); display: grid; place-items: center; color: var(--forest); }
.my-cat-add svg { width: 26px; height: 26px; }
/* the task card on Dziś: what is due and one button that says what it does */
.task { padding: 14px; margin: 0; }
.task b { display: block; font-size: .97rem; overflow-wrap: anywhere; }
.task small { display: block; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.task .btn { display: flex; width: 100%; margin-top: 12px; min-height: 44px; }

/* "Dodaj": the round button above the bottom bar on a phone, the button over the side menu on a computer, and the sheet both open */
.pfab { position: fixed; right: 16px; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom, 0px)); z-index: 41; display: flex; align-items: center; gap: 8px;
  min-height: 54px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: var(--hot); color: var(--ink); font: 800 .95rem var(--body); box-shadow: 0 6px 18px rgba(31, 61, 47, .28); cursor: pointer; }
@media (max-width: 899px) { .add-here { display: none !important; } }   /* the round button does it on a phone */
.padd { display: none; }
.pgoto-btn { display: none; }
.psheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.psheet-back { position: absolute; inset: 0; background: #1d27218c; }
.psheet { position: relative; width: 100%; max-width: 520px; max-height: 88dvh; overflow-y: auto; background: var(--surface); border-radius: 20px 20px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.psheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 8px; font: 700 1.1rem var(--head); }
.psheet-x { width: 44px; height: 44px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.psheet-row { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 4px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.psheet-row b { display: block; font-size: .97rem; }
.psheet-row small { display: block; color: var(--muted); font-size: .82rem; }
.psheet-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--forest-soft); color: var(--forest); }
@media (min-width: 900px) {
  .pfab { display: none; }
  .pgoto-btn { display: inline-flex; }
  .padd { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-bottom: 6px; border: 0; border-radius: 999px; background: var(--hot); color: var(--ink); font: 700 .95rem var(--body); cursor: pointer; }
  .nav-collapsed .padd span { display: none; }
  .psheet-wrap { align-items: center; }
  .psheet { border-radius: 20px; }
}
.more-go { color: var(--muted); font-size: 1.2rem; line-height: 1; }
/* a kitten's booklet code for the new home (BookletCard.vue) */
.booklet-code b { font: 700 1.6rem/1.2 var(--mono, ui-monospace, monospace); letter-spacing: .08em; }
.booklet-link { display: flex; gap: 8px; }
.booklet-link input { flex: 1; min-width: 0; }
/* Ustawienia (SettingsScreen.vue): each row opens its own settings under it */
.set-row { width: 100%; background: none; border: 0; border-radius: 0; font: inherit; text-align: left; cursor: pointer; }
.set-list .set-row + .set-panel + .set-row, .set-list .set-panel + .set-row { border-top: 1px solid var(--line); }
.set-row:hover { background: var(--paper, rgba(0, 0, 0, .02)); }
.set-row:focus-visible { outline: 2px solid var(--forest); outline-offset: -2px; }
.set-row .more-go { transition: transform .18s ease; }
.set-row[aria-expanded="true"] .more-go { transform: rotate(90deg); }
.set-panel { padding: 4px 16px 18px 52px; }
.set-panel > .card { border: 0; box-shadow: none; padding: 0; margin: 0; background: none; }
.set-panel > .card > .card-title { display: none; }
@media (max-width: 640px) { .set-panel { padding-left: 16px; } }
@media (prefers-reduced-motion: reduce) { .set-row .more-go { transition: none; } }

/* Historia zmian: day by day, one change per block, the fields before and after */
.history-groups { margin: 0 0 18px; flex-wrap: wrap; }
.history-day { margin-bottom: 18px; }
.history-list { padding: 0; }
.history-item { padding: 12px 16px; }
.history-item + .history-item { border-top: 1px solid var(--line); }
.history-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.history-what { min-width: 0; overflow-wrap: anywhere; }
.history-act { font-weight: 700; }
.history-i .history-act { color: var(--forest); }
.history-d .history-act { color: var(--red); }
.history-meta { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.history-fields { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: .88rem; }
.history-fields li { overflow-wrap: anywhere; }
.history-field { color: var(--muted); margin-right: 6px; }
.history-field::after { content: ":"; }
.history-before { color: var(--muted); }
.history-more { margin-top: 6px; }
.history-older { text-align: center; }
@media (max-width: 640px) { .rsv-row { flex-wrap: wrap; } .rsv-row .due-go { flex-basis: 100%; min-height: 44px; } }

/* the website's screens as tabs (SiteTabs.vue) */
.site-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.site-tabs a { flex: none; padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; min-height: 44px; display: flex; align-items: center; }
.site-tabs a[aria-current] { color: var(--forest); border-bottom-color: var(--forest); }

/* movement (motion.ts): another screen rises in; another tab's content comes from the tab's side while the mark slides
   over from the tab left; other filters on the same screen only fade. Nothing moves for whoever asked for less motion. */
.card-tabs a, .site-tabs a { position: relative; transition: color .18s ease; }
@media (prefers-reduced-motion: no-preference) {
  html[data-nav="screen"] .screen { animation: screen-in .28s cubic-bezier(.2, .8, .2, 1); }
  html[data-nav="same"] .screen { animation: fade-in .16s ease-out; }
  html[data-nav="tab"] :is(.card-tabs, .site-tabs) ~ * { animation: tab-in .3s cubic-bezier(.2, .8, .2, 1) both; }
  html[data-nav="tab"][data-dir="prev"] :is(.card-tabs, .site-tabs) ~ * { --from: -22px; }
  html[data-nav="tab"] :is(.card-tabs, .site-tabs) ~ * + * { animation-delay: .03s; }
  html[data-nav="tab"] :is(.card-tabs, .site-tabs) ~ * + * + * { animation-delay: .06s; }
  :is(.card-tabs, .site-tabs) a.mark-moves { border-bottom-color: transparent; }
  :is(.card-tabs, .site-tabs) a.mark-moves::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--forest);
    transform-origin: left; animation: mark-move .32s cubic-bezier(.3, .8, .2, 1);
  }
  @keyframes screen-in { from { opacity: 0; transform: translateY(10px); } }
  @keyframes fade-in { from { opacity: .35; } }
  @keyframes tab-in { from { opacity: 0; transform: translateX(var(--from, 22px)); } }
  @keyframes mark-move { from { transform: translateX(var(--mark-x, 0)) scaleX(var(--mark-s, 1)); } }
}

/* "Nowy album" folds away: the albums come first */
.new-album-box { margin: 0 0 14px; }
.new-album-box > summary { display: inline-flex; list-style: none; cursor: pointer; }
.new-album-box > summary::-webkit-details-marker { display: none; }
.new-album-box[open] > summary { margin-bottom: 10px; }

/* the console's journal by day (AdminPages.LogHtml) */
.log-day { padding: 4px 16px; }
.log-row { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; }
.log-row + .log-row { border-top: 1px solid var(--line); }
.log-row .log-at { flex: none; width: 3rem; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }
.log-row b { display: block; }
.log-row .grow small { display: block; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 640px) { .log-row { flex-wrap: wrap; } .log-row > small:last-child { flex-basis: 100%; padding-left: calc(3rem + 12px); } }

/* a tablet (the phone's layout, wider): task cards in two columns, not one stretched row each */
@media (min-width: 640px) and (max-width: 899px) { .rows:has(> .task) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* a cat's card: the head with its photo and chips, the tabs with icons, the next thing due */
.cat-head { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.cat-head h1 { margin: 0; }
.cat-head-ph { flex: none; width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: var(--forest-soft); color: var(--forest); display: grid; place-items: center; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.cat-chip { background: var(--forest-soft); color: var(--forest); border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 600; }
.card-tabs { display: flex; gap: 2px; overflow-x: auto; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.card-tabs a { flex: none; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.card-tabs a.on { color: var(--forest); border-bottom-color: var(--forest); }
.card-tabs svg { flex: none; }
.next-card { border-left: 4px solid var(--hot); }
.next-card small { display: block; color: var(--muted); }
.next-card b { display: block; margin-bottom: 4px; }
.next-card .btn { margin-top: 8px; }
.cat-due { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); }
.cat-due.late { color: var(--red); font-weight: 600; }
/* Dziś: the tasks on the left, the numbers and the coming days on the right (one column on a phone, in that order) */
.today-date { color: var(--muted); margin: -.3em 0 .6em; }
.today-date::first-letter { text-transform: uppercase; }
.today { display: grid; gap: 0 28px; }
@media (min-width: 900px) { .today { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }
.today-main > .label { margin-top: .6em; }
.lead.task-done { margin: 0; background: var(--forest-soft); color: var(--forest); border-radius: var(--radius); padding: 14px 16px; font-weight: 600; }
.today-stats { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); margin-top: 1.4em; }
@media (min-width: 900px) { .today-stats { margin-top: .6em; } }
.today-stats .stat { text-align: center; padding: 12px 6px; }
.coming { padding: 2px 16px; }
.coming-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.coming-row + .coming-row { border-top: 1px solid var(--line); }
.coming-row b { display: block; font-size: .95rem; }
.coming-row small { display: block; color: var(--muted); font-size: .82rem; }
.coming-row .coming-in { flex: none; color: var(--forest); font-weight: 600; }

/* Koty: the name with its sex as a sign and its titles as tags (two, the rest as "+N"), the badges under it; the whole
   row opens the card (a chevron at its end); the litter and sex filters by the search */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.cat-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cat-name-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.cat-name .cat-tags { margin-left: 0; }
.sex-sign { font-size: 1.1rem; line-height: 1; font-weight: 700; }
.sex-sign.f { color: #b4416f; }
.sex-sign.m { color: #3f6ea8; }
.title-tag { font: 700 .66rem/1 var(--body); letter-spacing: .03em; padding: 3px 6px; border-radius: 5px; background: #f7f0da; border: 1px solid #eadfb6; color: #6a5414; }
.title-more { font-size: .72rem; font-weight: 600; color: var(--muted); cursor: help; }
a.cat-gaps { background: #fbf2e4; border-color: #efdfc2; color: #83561c; text-decoration: none; cursor: pointer; }
a.cat-gaps::before { content: "!"; display: inline-grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; background: #a8712a; color: #fff; font-size: .6rem; font-weight: 800; }
a.cat-gaps:hover { filter: brightness(.96); text-decoration: underline; }
.cat-row { cursor: pointer; transition: background-color .12s; }
.cat-row:hover { background: var(--bg); }
.cat-row:hover .row-link { text-decoration: underline; }
.row-go { color: var(--muted); font-size: 1.25rem; line-height: 1; text-align: right; }
.cat-row:hover .row-go { color: var(--forest); }
.filter-pick { width: auto; min-height: 44px; padding: 0 30px 0 12px; border-radius: 10px; font-size: .9rem; }
@media (max-width: 700px) {
  .filter-bar:has(.filter-pick) { flex-wrap: wrap; }
  .filter-bar:has(.filter-pick) .filter-in { flex-basis: 100%; }
  .filter-pick { flex: 1; }
}

/* Koty on a phone: one card per cat, "kocur · NFO n 09 · W hodowli" and what is coming under the name (the table stays on a computer) */
.cat-line { display: none; font-size: .82rem; color: var(--muted); }
@media (max-width: 640px) {
  .cats-card { background: none; border: 0; padding: 0; }
  .list.stack.cats-table tr { background: var(--surface); border: 1px solid var(--line) !important; border-radius: 12px; padding: 12px 14px; margin: 0 0 8px; }
  .cats-table td[data-label] { display: none !important; }
  .cats-table .cat-line { display: block; }
  /* a species' heading and its "Pokaż wszystkie" stand on the background, not as a cat's card */
  .list.stack.cats-table tr.species-head, .list.stack.cats-table tr.species-more { display: block; background: none; border: 0 !important; padding: 0; margin: 0 0 8px; }
}
/* Zwierzęta by species: a heading over each group and "Pokaż wszystkie (n)" under a long one */
.cats-table .species-head th { padding: 18px 0 6px; text-align: left; font: 700 .78rem var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.cats-table tbody:first-of-type .species-head th { padding-top: 4px; }
.cats-table .species-head small { font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.cats-table .species-more td { padding: 8px 0 4px; text-align: center; border-bottom: 0; }
@media (max-width: 640px) {
  .list.stack.cats-table .species-head th, .list.stack.cats-table .species-more td { display: block; border: 0; }
}

/* Kontakty on a phone: a card per person with their role and place under the name */
@media (max-width: 640px) {
  .contacts-card { background: none; border: 0; padding: 0; }
  .contacts-table tr { background: var(--surface); border: 1px solid var(--line) !important; border-radius: 12px; padding: 12px; margin: 0 0 8px; }
}

/* the chips and tabs on a phone: one row that scrolls sideways (as in the mockups), not three rows of wrapped chips */
@media (max-width: 640px) {
  .pmain .vet-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .pmain .vet-cats::-webkit-scrollbar { display: none; }
  .pmain .vet-cats a { flex: none; white-space: nowrap; }
}

/* Mioty: the filter folds behind "Filtry" on a phone */
.filter-toggle { display: none; margin: 0 0 10px; }
@media (max-width: 899px) {
  .filter-toggle { display: inline-flex; }
  .lit-filter:not(.lit-filter-open) { display: none; }
}

/* a table that becomes one card per row on a phone (News, Pages): the card wrapper goes, each row is a card */
@media (max-width: 640px) {
  .phone-cards { background: none; border: 0; padding: 0; }
  .phone-table tr { background: var(--surface); border: 1px solid var(--line) !important; border-radius: 12px; padding: 12px; margin: 0 0 8px; }
}

/* Finanse on a phone: income, costs and result side by side */
@media (max-width: 640px) {
  .fin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fin-stats .stat { padding: 10px 8px; }
  .fin-stats .stat b { font-size: 1.05rem; overflow-wrap: anywhere; }
  .fin-stats .stat span { font-size: .75rem; }
}

/* a phone: the top bar carries the screen's title (and "←" on a detail screen) in place of the brand; the page's own h1 stays for readers */
.ptitle { display: none; }
@media (max-width: 899px) {
  body.titled .pbrand { display: none; }
  body.titled .ptitle { display: flex; align-items: center; gap: 10px; min-width: 0; font: 700 1.15rem/1.2 var(--head); color: var(--forest); }
  body.titled .ptitle b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pback { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -8px; color: var(--ink); text-decoration: none; font-size: 1.4rem; }
  body.titled .pmain h1:not(.keep) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
  body.titled .pmain > p.is-back, body.titled .pmain > .screen > p.is-back { display: none; }
  body.titled .pmain .hrow:has(> h1:only-child) { display: none; }
}

/* tabs as in the mockups: text with an underline, edge to edge under the title bar on a phone; filters stay soft green chips */
.u-tabs, .card-tabs, .site-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.u-tabs::-webkit-scrollbar, .card-tabs::-webkit-scrollbar, .site-tabs::-webkit-scrollbar { display: none; }
.u-tabs a { flex: none; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; color: var(--ink); font-weight: 500; font-size: .92rem; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.u-tabs a.on, .u-tabs a[aria-current], .card-tabs a.on, .site-tabs a[aria-current] { color: var(--forest); font-weight: 700; border-bottom-color: var(--forest); }
.u-tabs small { color: var(--muted); }
@media (max-width: 899px) {
  .u-tabs, .card-tabs, .site-tabs { margin-inline: -16px; padding-inline: 16px; background: var(--surface); }
}
.pmain .vet-cats a { border: 0; background: var(--forest-soft); color: var(--forest); font-size: .85rem; }
.pmain .vet-cats a.on { background: var(--forest); color: #fff; }
.pmain .vet-cats a small { color: inherit; opacity: .75; }

/* Dziś as in the mockup: headings in bold, no big title on a phone, a second button under the first, a cat owner's quick entries */
.today-main > .label, .today-side > .label { font: 700 1rem var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); }
.task .btn-ghost { margin-top: 6px; background: var(--forest-soft); border-color: var(--forest-soft); }
.quick-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.quick-tile { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: .85rem; }
.quick-tile svg { color: var(--forest); }
@media (max-width: 899px) {
  .pmain .home-title, .pmain .today-date { display: none; }
  .today-main .lead:not(.task-done) { display: none; }
}

/* a cat's overview: its main facts in one card; the menu "⋮" with the rarer actions */
.facts .li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.facts .li b { text-align: right; overflow-wrap: anywhere; }
.facts .btn { width: 100%; margin-top: 12px; }
.kebab { position: relative; flex: none; align-self: flex-start; }
.kebab > summary { list-style: none; width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.4rem; cursor: pointer; border-radius: 10px; }
.kebab > summary::-webkit-details-marker { display: none; }
.kebab-menu { position: absolute; right: 0; top: 42px; z-index: 30; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 20px #1d272126; padding: 6px; }
.kebab-menu button { display: block; width: 100%; text-align: left; min-height: 44px; padding: 0 12px; background: none; border: 0; border-radius: 8px; font: inherit; color: var(--ink); cursor: pointer; }
.kebab-menu button:hover { background: var(--bg); }
.kebab-menu .danger { color: var(--red); }

/* the console's overview: the numbers first, what needs attention beside the recent actions */
.console-stats { margin-bottom: 1.2rem; }
.today-side .log-day { margin-top: 0; }
.today-side h2.label + .card, .today-side h2.label + h2.label { margin-top: 0; }
@media (max-width: 899px) { .cat-head h1 { font: 700 1.15rem/1.25 var(--body); } .cat-head-ph { width: 72px; height: 72px; } }
@media (max-width: 899px) { .lead-note { display: none; } }

/* Konsola: Przegląd i Dziennik */
.log-row .who { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.log-row .grow small:first-of-type { font-size: .85rem; }
@media (min-width: 900px) { .console-today { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
.all-clear { display: flex; gap: 12px; align-items: center; background: var(--forest-soft); margin: 0; }
.all-clear b { display: block; }
.all-clear small { display: block; color: var(--muted); font-size: .85rem; }
.all-clear-mark { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: #fff; font-weight: 700; }
.more-link { margin: 10px 2px 0; font-size: .9rem; }

/* A list's filters under its search (Zwierzęta, Kontakty): drawn as a card's tabs (Przegląd, Zdrowie, …), each with its count. */
.list-tabs a { color: var(--muted); font-weight: 600; }
.list-tabs a small { font: 600 .72rem/1 var(--body); color: var(--muted); background: var(--bg); border-radius: 999px; padding: 3px 7px; }
.list-tabs a.on small { color: var(--forest); background: var(--forest-soft); }

/* A cat's tags beside its name in the list: hidden on the site, its pedigree's state in FPL (a dot in the tag's colour). */
.cat-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 8px; vertical-align: 1px; }
.cat-tag { display: inline-flex; align-items: center; gap: 5px; font: 600 .7rem/1 var(--body); letter-spacing: .01em; padding: 4px 8px 4px 7px;
           border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.cat-tag.ped-ok { background: #e6f4ea; border-color: #c6e6d0; color: #1f6a3a; }
.cat-tag.ped-open { background: #eef1f5; border-color: #dce2e9; color: #4a5866; }
.cat-tag.ped-none { background: #fbf2e4; border-color: #efdfc2; color: #83561c; }
.cat-tag.ped-fail { background: #fbe7e4; border-color: #f0c6bf; color: #9a2b20; }
.cat-tag:is(.ped-ok, .ped-open, .ped-none, .ped-fail)::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cat-tag.ped-open::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }

/* Above the list of cats: the cats FPL could not confirm, each with why and a link to its form. */
.fpl-problems p { margin: 0 0 6px; }
.fpl-problems ul { margin: 0; padding-left: 18px; }
.fpl-problems li { margin: 3px 0; }
.fpl-problems a { color: inherit; font-weight: 600; }

/* A link to a pedigree in FPL's database and its button (the cat's form, the tree being filled in). */
.fpl-import { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.fpl-import .fl { margin-top: 0; }
.fpl-import .hint { margin: 2px 0 10px; }
.fpl-import .flash { margin: 10px 0 0; }
.fpl-import-row { display: flex; gap: 8px; align-items: stretch; }
.fpl-import-row input { flex: 1; min-width: 0; }
.fpl-import-row .btn { flex: none; }
@media (max-width: 560px) { .fpl-import-row { flex-direction: column; } }

/* "Wersja językowa" above a form's texts: one version written at a time, a dot for each version written (LangVersion.vue). */
.lang-version { margin: 0 0 10px; }
.lang-version-label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.lang-version .seg button { display: inline-flex; align-items: center; gap: 6px; }
.lang-version .seg small { font-weight: 500; opacity: .75; }
.lang-version .hint { margin: 6px 0 0; }
.lv-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .7; }
.lv-dot.on { background: currentColor; opacity: 1; }
.tr-ver { margin-left: 6px; font: 600 .68rem/1 var(--body); color: var(--forest); background: var(--forest-soft); border-radius: 4px; padding: 2px 5px; vertical-align: 1px; }

/* A switch beside a field in a two-column form (Kastrat beside Płeć): on the field's line, not under its label. */
.grid2 > .sw-field:not(.span2) { align-self: end; display: flex; align-items: center; min-height: 44px; margin-top: 0; }
.grid2 > .sw-field:not(.span2) .chk { align-items: center; }
@media (max-width: 640px) { .grid2 > .sw-field:not(.span2) { margin-top: 14px; } }

/* The FPL banner at the top of a FIFe cat's form: the pedigree's link, and the cat's state in FPL beside its title. */
.fpl-import-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fpl-import .fpl { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Subskrypcja on the free plan (SubscriptionCard.vue): what it uses of its limits, the paid plans side by side */
.sub-usage { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.sub-usage li { display: grid; gap: 4px; font-size: .92rem; }
.sub-usage progress { width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; background: var(--forest-soft); accent-color: var(--forest); }
.sub-usage progress::-webkit-progress-bar { background: var(--forest-soft); }
.sub-usage progress::-webkit-progress-value { background: var(--forest); border-radius: 999px; }
.sub-usage progress::-moz-progress-bar { background: var(--forest); border-radius: 999px; }
.sub-interval { margin: 0 0 12px; }
.sub-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.sub-offer { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.sub-offer small { color: var(--muted); }
.sub-offer .btn { margin-top: 8px; }
.account-doors { display: grid; gap: 4px; margin-top: 8px; }

/* the phone as a tool (docs/02-JAK-TO-DZIALA.md): the camera's button only where there is a camera to touch, the iPhone's two steps */
@media (hover: hover) and (pointer: fine) { .only-touch { display: none !important; } }
.install-steps { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; }

/* signing in with Google, Facebook, Apple (Shell.Social.cs SocialButton): white, a thin grey line, the provider's own mark
   beside "Kontynuuj z Google", as the providers' guidelines show their buttons */
.btn.social { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f;
  border: 1px solid #dadce0; font-weight: 500; box-shadow: none; }
.btn.social:hover { background: #f7f8f8; border-color: #c6c9cc; color: #1f1f1f; }
.btn.social:focus-visible { outline: 2px solid #4285f4; outline-offset: 2px; }
.btn.social svg { flex: none; }
.btn.social b { font-weight: 700; }
.btn.social + .btn.social { margin-top: 10px; }

/* a column heading that sorts its table (panel.js, table[data-sort]) */
.th-sort { all: unset; cursor: pointer; font: inherit; color: inherit; }
.th-sort:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
th[aria-sort="ascending"] .th-sort::after { content: " \2191"; }
th[aria-sort="descending"] .th-sort::after { content: " \2193"; }

/* medication (AnimalMedication.vue on an animal's card, MedToday.vue on Today) */
.cat-meds .med-plan { margin-top: 10px; }
.med-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.med-when { margin: 6px 0 2px; }
.med-notes { white-space: pre-line; color: var(--muted); }
.med-doses { list-style: none; margin: 8px 0 0; padding: 0; font-size: .85rem; color: var(--muted); }
.med-doses li { padding: 2px 0; }
.med-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.med-plan.med-done, .med-plan.med-paused { opacity: .75; }
.tag.tag-warn { background: #fdf0d9; border-color: #e7c27a; color: #7a4e0f; }
.med-times { border: 0; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.med-time { display: inline-flex; align-items: center; gap: 4px; }
.med-time input { width: 8.5em; }
.med-stage { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.med-today { margin-bottom: 16px; }
.med-today h2.label { margin-top: 0; }
/* the name and the medicine keep at least 12rem: on a phone the buttons go under them, never squeezing a name into letters */
.med-row { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.med-row .grow { flex: 1 1 12rem; }
.people-list { margin: 10px 0 14px; padding: 0; list-style: none; }
.cat-labs { margin-top: 18px; }
.lab-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lab-filters button { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: .85rem; background: var(--surface); color: var(--ink); cursor: pointer; }
.lab-filters button.on { border-color: var(--forest); color: var(--forest); font-weight: 600; }

/* the card for the vet and the timeline in an animal's Zdrowie tab (AnimalVetCard.vue, AnimalTimeline.vue) */
.vet-important { border: 1.5px solid color-mix(in srgb, var(--red) 55%, transparent); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.vet-important .hrow b { color: var(--red); }
.vet-notes-text { white-space: pre-line; margin: 4px 0 0; }
.vet-important .muted { margin: 4px 0 0; }
.vet-notes textarea { width: 100%; box-sizing: border-box; margin-top: 6px; }
.vet-actions { flex-wrap: wrap; }
.vet-made { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--forest-soft); }
.vet-made p { margin: 0 0 6px; }
.vet-url { width: 100%; box-sizing: border-box; font-size: .85rem; margin-bottom: 6px; }
.vet-links { margin-top: 10px; }
.vet-links p { margin: 0 0 4px; }
.health-timeline .lab-filters, .health-logs .lab-filters { margin-bottom: 0; }
/* a range: buttons on a wide screen, one list on a phone with only the chosen one in sight */
.range-phone { display: none; width: auto; max-width: 10rem; flex: 0 0 auto; }
@media (max-width: 640px) { .range-wide { display: none; } .range-phone { display: inline-block; } }
.health-logs .hrow .actions { margin-top: 0; }
.tl-chart { width: 100%; height: auto; display: block; margin-top: 8px; overflow: visible; }
.tl-grid { stroke: var(--line); stroke-width: 1; }
.tl-tick, .tl-note { font-size: 11px; fill: var(--muted); }
.tl-weight { fill: none; stroke: var(--forest); stroke-width: 2; }
.tl-med { fill: color-mix(in srgb, var(--forest) 22%, var(--surface)); stroke: var(--forest); stroke-width: 1; }
.tl-case { fill: color-mix(in srgb, var(--red) 16%, var(--surface)); stroke: var(--red); stroke-width: 1; }
.tl-case.tl-med-done { fill: color-mix(in srgb, var(--red) 7%, var(--surface)); stroke: color-mix(in srgb, var(--red) 50%, var(--muted)); }
.tl-med-paused { stroke-dasharray: 4 3; }
.tl-med-done { fill: color-mix(in srgb, var(--muted) 18%, var(--surface)); stroke: var(--muted); }
.tl-med-name { font-size: 11px; fill: var(--ink); pointer-events: none; }
.tl-axis { stroke: var(--line); stroke-width: 2; }
.tl-event, .tl-dot { fill: var(--amber); stroke: var(--surface); stroke-width: 2; cursor: pointer; }
.tl-event:focus-visible { outline: none; stroke: var(--ink); }
.tl-picked { stroke: var(--ink); }
.tl-visit { fill: #4a6fa5; }
.tl-lab { fill: var(--forest); }
.tl-event.tl-alert, .tl-dot.tl-alert { fill: var(--red); }
.tl-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; }
.tl-legend span { display: inline-flex; align-items: center; gap: 5px; }
.tl-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.tl-dot.tl-visit { background: #4a6fa5; }
.tl-dot.tl-lab { background: var(--forest); }
.tl-dot.tl-alert { background: var(--red); }
.tl-picked-text { margin: 8px 0 0; }
.tl-swatch { display: inline-block; width: 16px; height: 10px; border-radius: 3px; border: 1px solid var(--red); background: color-mix(in srgb, var(--red) 16%, var(--surface)); }
.cases-total { margin: 4px 0 10px; font-weight: 600; }
.case-form, .cost-form { display: grid; gap: 6px; margin: 8px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.case-days { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.case-days span { display: grid; gap: 4px; }
.case-row { border-top: 1px solid var(--line); }
.case-row:first-child { border-top: 0; }
.case-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 2px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.case-head small { display: block; color: var(--muted); }
.case-sum { white-space: nowrap; font-variant-numeric: tabular-nums; }
.case-body { padding: 0 2px 12px; }
.case-notes { margin: 0 0 6px; white-space: pre-line; }
.cost-line { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.cost-line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cases-other { margin-top: 12px; }
.cases-other h3 { margin: 0 0 4px; }
/* groups of animals (GroupsList.vue, GroupCard.vue, GroupForm.vue) */
.group-list { display: grid; padding: 4px 16px; }
.group-row { display: flex; align-items: center; gap: 10px; padding: 12px 2px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.group-row:first-child { border-top: 0; }
.group-row:hover b { text-decoration: underline; }
.group-row small { display: block; color: var(--muted); }
.group-row.off { opacity: .6; }
.group-form { margin: 10px 0 16px; }
.group-who { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.group-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 4px 12px; }
.group-members p { grid-column: 1 / -1; }
.group-about { margin-top: -6px; }
.group-notes { white-space: pre-line; }
.group-member-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.group-record { color: inherit; text-decoration: none; border-top: 1px solid var(--line); padding: 8px 0; }
.group-record:hover { background: var(--bg-2, #f6f4ef); }
.animal-group { padding: 10px 16px; }
/* the observation logs (AnimalLogs.vue): a row with the newest entry and a quick entry, opened: chart, entries, fuller form */
.obs-ready { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 10px; }
.obs-form { display: grid; gap: 6px; margin: 8px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.obs-row { border-top: 1px solid var(--line); }
.obs-row:first-child { border-top: 0; }
.obs-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; }
.obs-name { flex: 1 1 14rem; min-width: 0; padding: 2px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.obs-name small { display: block; color: var(--muted); }
.obs-name small.obs-alert, .obs-alert { color: var(--red); font-weight: 700; }
.obs-name small.obs-warning, .obs-warning { color: var(--amber); font-weight: 700; }
.obs-quick { display: flex; gap: 6px; align-items: center; }
.obs-quick input { width: 8.5rem; }
.obs-scale { min-width: 2.5rem; }
.obs-body { padding: 0 2px 12px; }
.obs-chart { display: block; width: 100%; max-width: 640px; height: auto; margin: 6px 0 10px; }
.obs-band { fill: color-mix(in srgb, var(--forest) 12%, var(--surface)); }
.obs-line { fill: none; stroke: var(--forest); stroke-width: 2; }
.obs-dot { fill: var(--forest); }
.obs-dot.obs-alert { fill: var(--red); }
.obs-dot.obs-warning { fill: var(--amber); }
.obs-full { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin: 4px 0 10px; }
.obs-full span { display: grid; gap: 4px; }
.obs-full > .btn { align-self: flex-end; }
.obs-full .obs-note { flex: 1 1 12rem; }
.obs-entry { flex: 1; min-width: 0; }
@media (max-width: 640px) { .obs-quick { width: 100%; } .obs-quick input { flex: 1; width: auto; } .obs-quick .obs-scale { flex: 1; } }
@media (max-width: 640px) { .tl-tick { font-size: 17px; } .tl-note { font-size: 20px; } .tl-med-name { font-size: 15px; } .tl-event { r: 13px; } }   /* the chart is drawn at 720 and shown at about half */
.lab-list { display: grid; }
.lab-line { display: grid; grid-template-columns: minmax(9rem, 1.4fr) minmax(8rem, 1.2fr) minmax(5rem, .8fr) 110px minmax(8rem, 1.2fr); gap: 10px; align-items: center;
  padding: 9px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.lab-line:hover, .lab-line.open { background: var(--bg-2, #f6f4ef); }
.lab-last small { display: block; }
.hi { color: #b42318; font-weight: 700; }
.lo { color: #1d4ed8; font-weight: 700; }
.lab-band { fill: #e3f1e8; }
.lab-line-path { fill: none; stroke: var(--forest); stroke-width: 2; }
.lab-dot { fill: var(--forest); }
.lab-dot-out { fill: #b42318; }
.lab-label { font-size: 11px; fill: var(--ink); }
.lab-axis { font-size: 11px; fill: var(--muted); }
.lab-detail { padding: 8px 4px 14px; border-bottom: 1px solid var(--line); }
.lab-chart { width: 100%; height: auto; max-height: 240px; }
.lab-values { list-style: none; margin: 6px 0 0; padding: 0; font-size: .92rem; }
.lab-values li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.lab-values li .btn { margin-left: auto; }
.lab-other summary { cursor: pointer; font-weight: 600; }
.lab-form { margin: 10px 0; }
.lab-row { display: grid; grid-template-columns: 2fr 1fr 1fr .8fr .8fr; gap: 8px; margin-top: 10px; }
.lab-row input, .lab-row select { width: 100%; }
@media (max-width: 760px) {
  .lab-line { grid-template-columns: 1fr auto; }
  .lab-line .lab-range, .lab-line .lab-spark { display: none; }
  .lab-line .lab-when { grid-column: 1 / -1; font-size: .82rem; }
  .lab-row { grid-template-columns: 1fr 1fr; }
  .lab-row .lab-param { grid-column: 1 / -1; }
}
.med-remind { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.med-remind .grow { flex: 1 1 14rem; }
.med-remind.card { border-top: 1px solid var(--line); margin-top: 10px; }
.med-remind.account-push { margin-top: 0; padding-top: 18px; }
.med-remind small { display: block; }
.med-unblock { margin-top: 6px; }
/* one width for the hour and "w razie potrzeby": the names and medicines start in one line (29.11.2026) */
.med-hour { flex: 0 0 5.2rem; width: 5.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.med-hour.med-prn { font-size: .8rem; font-weight: 600; color: var(--muted); line-height: 1.2; }
.med-buttons { display: inline-flex; gap: 6px; }
.care-links { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.care-made { margin: 10px 0; }
.care-address { width: 100%; font-family: ui-monospace, monospace; font-size: .85rem; }
.care-animals { border: 0; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.care .med-buttons, .care-tick { display: inline-flex; gap: 6px; }
.care-tick { margin: 0; }
/* the care page in cards: each part apart from the next (Jakub 22.11.2026: the parts must not run into each other) */
.care .card.narrow { margin: 0 auto 28px; }
.care .care-part { scroll-margin-top: 12px; }
.care-part > h2 { font: 700 1.2rem/1.3 var(--head); margin: 0 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--forest); }
.care-part > .hint { margin: 6px 0 12px; }
.care-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.care-nav a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: var(--forest); text-decoration: none; background: var(--surface); }
.care-days { display: grid; margin-bottom: 8px; }
.care-more { margin-top: 6px; }
.care-more > summary { cursor: pointer; color: var(--forest); font-weight: 600; padding: 8px 0; list-style: none; }
.care-more > summary::-webkit-details-marker { display: none; }
.care-more > summary::after { content: " ▾"; }
.care-more[open] > summary { display: none; }
.care-day { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.care-day:last-child { border-bottom: 0; }
.care-day > span { color: var(--ink); font-size: .92rem; }
.care-day .med-hour { display: inline-block; min-width: 3.2em; }
.care-plan .grow small { display: block; }
.care-stage i { font-style: normal; font-weight: 600; margin-right: 4px; }
.care-stage.care-past { opacity: .6; }
.care-history { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.care-history li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.care-history b { font-variant-numeric: tabular-nums; margin-right: 6px; }
.care-history small { display: block; color: var(--muted); }
.people-roles { border: 0; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.people-roles .chk span small { display: block; color: var(--muted); }
/* the calendar's link to subscribe to (CalendarSubscribe.vue) */
.cal-feed { margin-top: 16px; }
.cal-feed-url { display: flex; gap: 8px; align-items: center; }
.cal-feed-url input { flex: 1; min-width: 0; font-size: .85rem; }
.cal-feed .btn-row { margin-top: 8px; }
/* what the young's statuses mean, under a litter's young (LitterCard.vue) */
.status-help { margin: 8px 0 16px; font-size: .9rem; }
.status-help summary { cursor: pointer; color: var(--forest); font-weight: 600; }
.status-help ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.status-help li { margin: 3px 0; }

/* a queen's pregnancy (AnimalPregnancy.vue, PregnancyCalculator.vue, PregnanciesToday.vue; docs/makiety/ciaza) */
.preg { display: grid; gap: 0; }
.preg-hero { display: grid; gap: 14px; }
.preg-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 20px; }
.preg-day { font: 800 2.3rem/1.05 var(--head); letter-spacing: -.02em; color: var(--forest); }
.preg-day small { font: 600 1rem var(--body); color: var(--muted); letter-spacing: 0; }
.preg-day small.preg-over { display: block; margin-bottom: 6px; }
.preg-day-sm { font-size: 1.7rem; }
.preg-sub { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.preg-status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .82rem;
  background: #fbf1d9; color: #6b4e0f; }
.preg-status-confirmed { background: #d9efdf; color: #1f6a3a; }
.preg-status-born { background: var(--forest-soft); color: var(--forest); }
.preg-status-empty, .preg-status-lost, .preg-status-unknown { background: #eeeae2; color: var(--muted); }
.preg-badge-possible { background: #fbf1d9; color: #6b4e0f; }
.preg-badge-confirmed { background: #d9efdf; color: #1f6a3a; }
.preg-badge-born { background: var(--forest-soft); color: var(--forest); }
.preg-badge-empty, .preg-badge-lost, .preg-badge-unknown { background: #eeeae2; color: var(--muted); }
.cat-chip-pregnant { background: #d9efdf; color: #1f6a3a; }
.preg-weeks { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.preg-weeks > span { height: 12px; border-radius: 4px; background: var(--line); }
.preg-weeks > span.past { background: var(--forest); }
.preg-weeks > span.now { background: linear-gradient(90deg, var(--forest) 0 var(--p, 50%), #c9dccf var(--p, 50%) 100%); outline: 2px solid var(--hot); outline-offset: 2px; }
.preg-weeks-l { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; font-size: .72rem; color: var(--muted); text-align: center; }
.preg-weeks-l b { color: var(--ink); }
.preg-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.preg-dates div { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.preg-dates small { display: block; color: var(--muted); font-size: .78rem; }
.preg-dates b { display: block; font-size: 1.02rem; margin-top: 2px; }
.preg-dates div.main { background: var(--forest); color: #fff; }
.preg-dates div.main small { color: #d6e6dc; }
.preg-actions { margin: 0; }
.preg-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.preg-cols > div { min-width: 0; }
.preg .card > .label:first-child, .preg-today > .label:first-child { margin-top: 0; }
.preg-week h3 { margin: 0 0 4px; font: 700 1.05rem var(--head); }
.preg-week p { margin: 0 0 8px; }
.preg-todo { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: .93rem; }
.preg-tl { list-style: none; margin: 0; padding: 0; position: relative; }
.preg-tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.preg-tl li { position: relative; padding: 0 0 14px 28px; }
.preg-tl li:last-child { padding-bottom: 0; }
.preg-tl li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--forest); }
.preg-tl li.past::before { background: var(--forest); }
.preg-tl li.now::before { background: var(--hot); border-color: var(--hot); box-shadow: 0 0 0 4px #fbefc4; }
.preg-tl li.alarm::before { border-color: var(--red); }
.preg-tl b { display: block; font-size: .95rem; }
.preg-tl small { display: block; color: var(--muted); font-size: .83rem; }
.preg-tl time { font-weight: 700; color: var(--forest); font-size: .82rem; }
.preg-tl li.past time { color: var(--muted); }
.preg-tl li.past-sum { display: none; }
.preg-tl li.past-sum::before { background: var(--forest); }
.preg-tl li.past-sum button { border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; display: flex; justify-content: space-between;
  gap: 10px; align-items: start; background: var(--forest-soft); border-radius: 10px; padding: 8px 10px; margin: -6px 0 0 -4px; width: calc(100% + 4px); }
.preg-tl li.past-sum .go { color: var(--forest); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.preg-alarm { border-color: #efbdb6; background: #fdf3f1; }
.preg-alarm .label { color: #7a221b; }
.preg-alarm ul { margin: 6px 0 0; padding-left: 18px; font-size: .93rem; }
.preg-alarm li { margin: 4px 0; }
.preg-note { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
.preg-sticky { background: #fff8d9; border-color: #f0dca8; }
.preg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.preg-list li { display: flex; gap: 10px; align-items: start; font-size: .93rem; padding: 5px 0; border-bottom: 1px dashed #ecd9a4; }
.preg-list label { display: flex; gap: 10px; align-items: start; flex: 1; min-width: 0; cursor: pointer; }
.preg-list input.box { width: 18px; height: 18px; accent-color: var(--forest); flex: none; margin-top: 2px; }
.preg-list li.ok .t { color: var(--muted); text-decoration: line-through; }
.preg-list button { border: 0; background: none; color: var(--muted); font-size: 1.2rem; line-height: 1; padding: 0 6px; cursor: pointer; }
.preg-add { display: flex; gap: 8px; margin-top: 10px; }
.preg-add input { flex: 1; min-width: 0; background: #fff; }
.preg-kids { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.preg-kids li { display: flex; justify-content: space-between; gap: 10px; font-size: .93rem; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.preg-kids li:last-child { border: 0; padding: 0; }
.preg-kids time { color: var(--muted); white-space: nowrap; }
.pick-dialog.preg-sheet { width: min(560px, calc(100vw - 32px)); }
.preg-seg4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 4px; }
.preg-seg4 button { border: 0; background: none; font: 600 .88rem var(--body); padding: 9px 6px; border-radius: 10px; color: var(--muted); cursor: pointer; }
.preg-seg4 button[aria-pressed="true"] { background: var(--forest); color: #fff; }
.preg-warn { background: #fbf1d9; border: 1px solid #f0dca8; color: #6b4e0f; border-radius: 12px; padding: 10px 14px; margin: 10px 0 12px; }
.preg-warn ul { margin: 6px 0 0; padding-left: 18px; }
.preg-warn li { margin: 3px 0; font-size: .92rem; }
.preg-mini { display: flex; flex-direction: column; gap: 6px; }
.preg-mini .preg-weeks > span { height: 8px; }
.kind-pick { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
.preg-kind { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.preg-kind button { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 2px; text-align: left; background: var(--surface);
  font: inherit; color: var(--ink); cursor: pointer; }
.preg-kind button.on { border: 2px solid var(--forest); background: var(--forest-soft); }
.preg-kind button:disabled { cursor: default; }
.preg-kind small { color: var(--muted); font-size: .8rem; }
.preg-plan { display: grid; gap: 8px; margin-top: 6px; max-width: 560px; }
/* Zasady hodowli: a card for each species group in the breeding (docs/makiety/gatunki) */
.rules-many { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--forest-soft); color: var(--forest); font-size: .92rem; }
.rules-card { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.rules-card h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; font: 700 1.1rem var(--head); }
.rules-card h3 small { font: 600 .8rem var(--body); color: var(--muted); }
.preg-plan .p { display: grid; grid-template-columns: 1fr 110px auto; gap: 10px; align-items: center; }
.preg-plan .p .chk { margin: 0; }
@media (max-width: 900px) {
  .preg-cols { grid-template-columns: 1fr; }
  .preg-dates { grid-template-columns: 1fr 1fr; }
  .preg-dates div.main { grid-column: 1 / -1; }
  .preg-weeks-l { font-size: .64rem; }
  .preg-tl:not(.open) li.past { display: none; }
  .preg-tl li.past-sum { display: block; padding-bottom: 14px; }
  .preg-seg4 { grid-template-columns: 1fr 1fr; }
  .preg-kind { grid-template-columns: 1fr; }
  .preg-plan .p { grid-template-columns: 1fr 90px; }
  .preg-plan .p .chk { grid-column: 1 / -1; }
}

/* the tab Ciąża: the notes and the birth (0083) */
.preg-notes textarea, .preg-birth textarea { width: 100%; resize: vertical; }
.preg-notes .btn { margin-top: 8px; }

/* the suggestions under the animals' search (AnimalsList.vue, 30.11.2026) */
.filter-in-wrap { position: relative; flex: 1; max-width: 420px; min-width: 0; display: flex; }
@media (max-width: 700px) { .filter-in-wrap { max-width: none; } .filter-bar:has(.filter-pick) .filter-in-wrap { flex-basis: 100%; } }
.filter-in-wrap .filter-in { width: 100%; max-width: none; }
.search-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14); }
.search-suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.search-suggest .grow { display: grid; min-width: 0; }
.search-suggest b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggest small { color: var(--muted); }
.search-suggest li.on a, .search-suggest a:hover { background: var(--forest-soft); }
