/* 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: "Playfair Display", Georgia, 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); }
a { color: var(--forest); }
h1 { font: 700 1.7rem/1.2 var(--head); margin: .1em 0 .5em; }
h2 { font: 700 1.2rem/1.25 var(--head); margin: 1.3em 0 .6em; }
h2.label { font: 600 .74rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1.8em 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 */
:root { --top-h: 58px; --side: 0px; }
.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; }
.plogo { height: 38px; width: auto; flex: none; }
.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) + 40px + env(safe-area-inset-bottom, 0px)); }
.linkish { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; color: inherit; }
.logout { margin-top: 24px; }

/* phone: bottom bar */
.pnav { display: none; }
.pbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
.pbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; text-decoration: none; color: var(--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: var(--forest); background: var(--forest-soft); }

/* 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(--surface); border-right: 1px solid var(--line); padding: 16px 10px 10px; overflow-y: auto; overflow-x: hidden; }
  .pnav-group { display: grid; gap: 2px; }
  .pnav-label { font: 600 .68rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 12px 4px; 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(--ink);
    font: 500 .93rem/1.2 var(--body); text-decoration: none; white-space: nowrap; }
  .pnav a:hover, .pnav-toggle:hover { background: var(--bg); }
  .pnav a[aria-current] { background: var(--forest-soft); color: var(--forest); font-weight: 600; }
  .pnav a.soon { color: var(--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: #83561c; background: #f5ead9; border-radius: 999px; padding: 2px 7px; }
  .pnav svg { flex: none; }
  .pnav-toggle { margin-top: auto; width: 100%; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; background: none; color: var(--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 var(--line); 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 */
.soon-card { text-align: center; padding: 34px 24px 30px; max-width: 620px; margin: 6vh auto 0; }
.soon-cat { height: 150px; width: auto; }
.soon-eyebrow { font: 600 .74rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--forest); margin: 6px 0 8px; }
.soon-card h1 { margin: 0 0 .5em; }
.soon-card .lead { margin: 0 auto 1em; max-width: 46ch; }
.soon-list { text-align: left; max-width: 46ch; margin: 0 auto 22px; padding-left: 1.2em; display: grid; gap: 6px; }

/* ---------- 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-logo { height: 132px; width: auto; }
.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; }
.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; }
.net-note { max-width: 420px; margin: 16px auto 0; font-size: .82rem; line-height: 1.45; color: var(--muted); text-align: center; }
.net-note b { color: #83561c; font-weight: 600; }
.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; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.actions .btn-danger { margin-left: auto; }
/* 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=password], 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; }
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%; }
textarea { min-height: 80px; }
.chk { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: .95rem; }
.chk-danger { color: var(--red); }
/* 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; }
.cell-check { display: flex; flex-direction: column; justify-content: flex-end; }
.cell-check .chk { min-height: 44px; margin: 0; }
.chk input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--forest); flex: none; }
.req { color: var(--red); font-weight: 700; }
.form-legend { margin: 0 0 -4px; text-align: right; }
.form-sub { color: var(--muted); margin: -6px 0 16px; }
.field-more summary { min-height: 44px; display: flex; align-items: center; }
.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 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; }
.ehidden { display: none; }

/* photos */
.photo-field .pf-row, .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%; }
.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, .kitten-row > summary { list-style: none; display: flex; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; }
.litter > summary::-webkit-details-marker, .kitten-row > summary::-webkit-details-marker { display: none; }
.litter[open] > summary, .kitten-row[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); }
.badge-none { background: #f1f0ec; color: var(--muted); }
.kitten-row { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; background: var(--surface); }
.kitten-row > .grid2 { padding: 0 14px 14px; }

.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 60; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--surface); border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  max-width: 520px; margin: 0 auto; max-height: 88vh; overflow: auto; box-shadow: 0 -12px 40px rgba(0, 0, 0, .25); }
.sheet-title { display: block; font: 700 1.15rem var(--head); margin-bottom: 12px; }
.sheet-opts { display: grid; gap: 8px; }
.opt { text-align: left; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 12px; padding: 12px 14px; font: 600 .95rem var(--body); cursor: pointer; }
.opt.current { border-color: var(--forest); background: var(--forest-soft); color: var(--forest); }
@media (min-width: 900px) { .sheet { bottom: auto; top: 14vh; border-radius: 20px; } }
@media (prefers-reduced-motion: no-preference) { .sheet:not([hidden]) { animation: sheet-up .18s ease-out; } @keyframes sheet-up { from { transform: translateY(24px); opacity: .6; } } }

/* kitten status choices in the litter form (colours match the badges on the site) */
.st-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.st-opt { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .93rem; background: var(--surface); }
.st-opt input { margin: 0; accent-color: var(--forest); }
.st-opt:has(input:checked) { border-color: currentColor; font-weight: 600; }
.st-available:has(input:checked) { background: #d9efdf; color: #1f6a3a; }
.st-watch:has(input:checked) { background: #f5ead9; color: #83561c; }
.st-pre:has(input:checked), .st-reserved:has(input:checked) { background: #f3e4e1; color: #8a3d33; }
.st-stays:has(input:checked) { background: #e5eee8; color: #2e5a44; }
.st-home:has(input:checked), .st-other:has(input:checked) { background: #e7eaee; color: #3c4650; }
.st-none:has(input:checked) { background: #f4f4f4; }

/* ---------- 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; }
.results-list td { font-size: .9rem; }
.results-list tr.sec td { background: var(--forest-soft); color: var(--forest); }
.results-list mark { background: none; font-weight: 600; }
.results-list mark.hl-green { color: #1f7a3d; }
.results-list mark.hl-red { color: #b3261e; }
.res-rows { display: grid; gap: 10px; margin-bottom: 12px; }
.res-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 88px minmax(0, 1.6fr) minmax(0, 1.2fr); gap: 8px; }
@media (max-width: 700px) { .res-row { grid-template-columns: minmax(0, 1fr) 96px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); } .res-row input[name^="r"], .res-row input[name^="j"] { grid-column: 1 / -1; } }

/* ---------- 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; }
.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; }
.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 .ico { color: var(--muted); }
.filter-none { padding: 18px; text-align: center; }

/* the panel's own confirmation window (panel.js: ask) */
.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 */
.upload-progress { position: fixed; left: 50%; top: calc(var(--top-h, 56px) + 10px); transform: translateX(-50%); z-index: 60; width: min(440px, calc(100vw - 24px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); display: grid; gap: 8px; font-size: .92rem; }
.upload-progress[hidden] { display: none; }
.up-track { display: block; height: 6px; border-radius: 99px; background: var(--forest-soft); overflow: hidden; }
.up-bar { display: block; height: 100%; background: var(--forest); transform-origin: left; transform: scaleX(0); transition: transform .2s ease; }

/* the month of the calendar changes in place */
.cal-month.swapping { opacity: .55; transition: opacity .15s; }
@media (prefers-reduced-motion: no-preference) { .cal-month.swap-in { animation: swap-in .28s cubic-bezier(.16, 1, .3, 1); } @keyframes swap-in { from { opacity: 0; transform: translateX(var(--from, 0)); } } }

/* Mioty i kocięta: the filters and the years */
.lit-filter { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 0 12px; align-items: end; margin: 0 0 8px; }
.lit-filter .fl { margin-top: 0; }
.lit-filter-go { display: flex; gap: 8px; }
@media (max-width: 760px) { .lit-filter { grid-template-columns: 1fr 1fr; } .lit-filter > div:first-child, .lit-filter-go { grid-column: 1 / -1; } .lit-filter-go { margin-top: 10px; } }
.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); }
