/* Additions of the platform's panel on top of panel.css (the stylesheet first written for Vendellek). */
.pmark { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--hot); color: var(--ink); font: 800 1.1rem var(--head); }
.pmark-lg { width: 72px; height: 72px; border-radius: 20px; font-size: 2.2rem; margin: 0 auto 10px; }
/* BreederDeck's own mark on konto.breederdeck.com ("Talia z łapą"); a cattery's pages keep its initial in .pmark */
.plogo { display: block; width: 72px; height: 72px; margin: 0 auto 10px; }
/* konto.breederdeck.com: a new account's choice before the e-mail (Shell.Account.cs KindChoice) */
.signup-doors { display: grid; gap: 10px; margin: 6px 0 14px; }
.signup-door { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none;
  background: #fff; text-align: left; }
.signup-door:hover { border-color: var(--forest); }
.signup-door:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.signup-door b { display: block; font-size: 1.02rem; }
.signup-door small { display: block; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.signup-chosen { margin: 0 0 8px; font-size: .95rem; }
/* the same mark in the console's top bar (Admin.cs) */
.pmark-logo { width: 36px; height: 36px; flex: none; display: block; }
/* the purchase's pages on admin.breederdeck.com (Admin.Billing.cs PaymentPage): the card of the sign-in, its text left-aligned */
.pay-page { margin-top: 8vh; }
.pay-text { text-align: left; margin-bottom: 18px; }
.pay-text p { margin: 0 0 10px; }
.pay-done { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--forest); }
.pay-done::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--forest-soft); }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 34px 18px; }
.card-title { margin-top: 0; }
.field-error { color: var(--red); font-size: .86rem; margin: 4px 0 0; }
.toast-error { background: #7a221b; }
input[type=email], input[type=number] { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); min-height: 44px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.stat b { display: block; font: 700 1.5rem/1.2 var(--head); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .86rem; }
.stat.pos b { color: #1f6a3a; } .stat.neg b { color: var(--red); }
.nums td, .nums th, .num { font-variant-numeric: tabular-nums; }
.list .num, .list.nums td:not(:first-child), .list.nums th:not(:first-child) { text-align: right; white-space: nowrap; width: auto; }
.gain { color: #1f6a3a; } .loss { color: var(--red); }
.list small.gain, .list small.loss { font-size: .78rem; }
.status-select { width: auto; min-height: 34px; padding: 4px 12px; border-radius: 999px; font: 600 .8rem var(--body); border: 0; cursor: pointer; background-color: #e7eaee; color: #3c4650; }
.status-select.badge-available { background-color: #d9efdf; color: #1f6a3a; } .status-select.badge-watch { background-color: #f5ead9; color: #83561c; }
.status-select.badge-reserved { background-color: #f3e4e1; color: #8a3d33; } .status-select.badge-stays { background-color: var(--forest-soft); color: var(--forest); }
.kit a { color: var(--ink); font-weight: 600; text-decoration: none; } .kit a:hover { text-decoration: underline; } .kit a.go { color: var(--forest); }
.narrow-input { max-width: 220px; }
.weigh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 14px; }
.weigh-cell { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; } .weigh-cell small { font-weight: 400; color: var(--muted); }
.cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } .cal-head b { font: 700 1.2rem var(--head); min-width: 11ch; text-align: center; }
.cal { padding: 0; overflow: hidden; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-days span { padding: 8px; font: 600 .72rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.cal-cell { min-height: 92px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 3px; align-content: start; min-width: 0;
  grid-template-columns: minmax(0, 1fr); }      /* the day's width, whatever a title of a bar inside needs */
.cal-cell > .cal-ev { min-width: 0; }
.cal-grid .cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.is-out { background: var(--bg); }
.cal-num { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.is-today .cal-num { background: var(--forest); color: #fff; border-radius: 999px; width: 24px; height: 24px; display: grid; place-items: center; font-weight: 700; }
.cal-ev { display: block; font-size: .74rem; font-weight: 600; line-height: 1.25; padding: 3px 6px; border-radius: 6px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #e7eaee; color: #3c4650; }
.ev-health { background: #f3e4e1; color: #8a3d33; } .ev-breeding { background: #f5ead9; color: #83561c; } .ev-birth { background: #f5c542; color: #1d2721; }
.ev-litter, .ev-leave { background: var(--forest-soft); color: var(--forest); } .ev-pickup { background: #d9efdf; color: #1f6a3a; } .ev-show { background: #e4e0f3; color: #4a3d8a; }
.ev-age { background: #e2eef4; color: #2c5a72; }
/* a pregnancy (0081): its bar, its stages and the vet's day; the young's plan of a litter */
.ev-pregnancy, .ev-pregnancy-stage { background: #fbe3ee; color: #8a2f5a; } .ev-pregnancy-alarm { background: #f8e1de; color: #7a221b; }
.ev-young { background: #e6f0dc; color: #3d5e1f; }
/* the breeder's own tags (breeding.models.TAG_COLORS): a pale ground, a dark text of the same hue */
.tc-green { background: #dcefe2; color: #1f6a3a; } .tc-teal { background: #d8eeee; color: #1d6461; } .tc-blue { background: #dde7f6; color: #2b4f8a; }
.tc-violet { background: #e7e1f5; color: #523f8f; } .tc-pink { background: #f7e0ea; color: #8c2f5a; } .tc-red { background: #f8dfdc; color: #9a2c20; }
.tc-orange { background: #fbe5d2; color: #93450f; } .tc-yellow { background: #f8ecbe; color: #6b5300; } .tc-brown { background: #ece2d8; color: #6a4526; }
.tc-gray { background: #e7eaee; color: #3c4650; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; } .legend .cal-ev { display: inline-block; }
.legend-link { font-size: .8rem; font-weight: 600; color: var(--forest); margin-left: 4px; }
/* the colour choice of a tag: the radio buttons as swatches */
:is(#id_new_tag_color, #id_color) { display: flex; flex-wrap: wrap; gap: 8px; }
:is(#id_new_tag_color, #id_color) > div { display: contents; }
:is(#id_new_tag_color, #id_color) label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 8px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-size: .85rem; }
:is(#id_new_tag_color, #id_color) label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
:is(#id_new_tag_color, #id_color) input { appearance: none; flex: none; width: 16px; height: 16px; min-height: 0; padding: 0; border: 0; border-radius: 50%; margin: 0; color: inherit; background: currentColor; box-shadow: none; }
:is(#id_new_tag_color, #id_color) input:checked { box-shadow: inset 0 0 0 3px #fff; }
:is(#id_new_tag_color, #id_color) label:has(input[value="green"]) { color: #1f6a3a; } :is(#id_new_tag_color, #id_color) label:has(input[value="teal"]) { color: #1d6461; }
:is(#id_new_tag_color, #id_color) label:has(input[value="blue"]) { color: #2b4f8a; } :is(#id_new_tag_color, #id_color) label:has(input[value="violet"]) { color: #523f8f; }
:is(#id_new_tag_color, #id_color) label:has(input[value="pink"]) { color: #8c2f5a; } :is(#id_new_tag_color, #id_color) label:has(input[value="red"]) { color: #9a2c20; }
:is(#id_new_tag_color, #id_color) label:has(input[value="orange"]) { color: #93450f; } :is(#id_new_tag_color, #id_color) label:has(input[value="yellow"]) { color: #6b5300; }
:is(#id_new_tag_color, #id_color) label:has(input[value="brown"]) { color: #6a4526; } :is(#id_new_tag_color, #id_color) label:has(input[value="gray"]) { color: #3c4650; }
.cal-date { display: grid; line-height: 1; justify-items: center; } .cal-date b { font: 700 1.05rem var(--head); } .cal-date small { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: var(--forest); }
@media (max-width: 700px) { .cal-cell { min-height: 60px; padding: 3px; gap: 2px; } }

/* platform console and help mode */
.support-bar { background: #f5c542; color: #1d2721; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: .92rem; }
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; align-items: start; margin-top: 18px; }
.cols .card { margin-bottom: 0; }
.cols .card.form { max-width: none; }
.cols .card.form > .actions { position: static; margin: 16px 0 0; padding: 0; border-top: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.inline-form input, .inline-form select { flex: 1 1 150px; width: auto; }
.st-live, .inv-paid { background: #d9efdf; color: #1f6a3a; }
.st-staging, .inv-draft { background: #f5ead9; color: #83561c; }
.st-suspended, .inv-cancelled { background: #e7eaee; color: #3c4650; }
.inv-issued { background: #f3e4e1; color: #8a3d33; }
.hrow h1 .badge { vertical-align: middle; margin-left: 8px; font-family: var(--body); }

/* accounts grouped by instance */
.filter { display: grid; grid-template-columns: minmax(180px, 280px) minmax(180px, 1fr) auto; gap: 0 14px; align-items: end; padding-top: 6px; }
.filter-actions { display: flex; gap: 8px; }
@media (max-width: 700px) { .filter { grid-template-columns: 1fr; } .filter-actions { margin-top: 14px; } }
.group .list.in-group td { padding-inline: 14px; }
.group-empty { padding: 12px 14px; margin: 0; }

/* website group: tags, photo order, gallery, library, look */
.tag-live { background: #d9efdf; color: #1f6a3a; border-color: #bfe0c9; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; cursor: pointer; }
.chk input { width: auto; min-height: 0; margin: 0; }
.flash-error { background: #f3e4e1; color: #8a3d33; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.sortable-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.sort-item { position: relative; margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 0; }
.sort-item.dragging { opacity: .45; }
.sort-item > img, .sort-item > .pdf { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.sort-item figcaption { display: grid; gap: 6px; margin-top: 6px; }
.sort-item figcaption input[name^="alt_"] { min-height: 34px; padding: 4px 8px; font-size: .85rem; }
.sort-tools { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.handle { position: absolute; top: 10px; left: 10px; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .9); cursor: grab; font-size: 1.1rem; user-select: none; }

.mv { min-width: 32px; min-height: 30px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; cursor: pointer; }
.pdf { display: grid !important; place-items: center; align-content: center; gap: 4px; background: #f3e4e1; color: #8a3d33; font-weight: 700; text-decoration: none; text-align: center; padding: 8px; }
.pdf small { font-weight: 400; font-size: .72rem; word-break: break-all; }
.inline-pick { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; font-size: .9rem; }
.inline-pick select { width: auto; min-height: 34px; }
.new-album .filter { grid-template-columns: minmax(180px, 1fr) minmax(160px, 240px) minmax(140px, 200px) auto; }
@media (max-width: 800px) { .new-album .filter { grid-template-columns: 1fr; } }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.album-card { display: grid; gap: 4px; padding: 10px; text-decoration: none; color: var(--ink); margin: 0; }
.album-card img, .album-empty { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.album-empty { display: grid; place-items: center; background: var(--bg); color: var(--muted); font-weight: 700; }
.album-card small { color: var(--muted); }
.seg-links { margin-bottom: 14px; }
.seg-links a { font: 600 .88rem var(--body); padding: 8px 16px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.seg-links a[aria-current] { background: var(--forest); color: #fff; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lib-item { margin: 0; padding: 8px; display: grid; gap: 6px; align-content: start; }
.lib-item img, .lib-item .pdf { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.lib-item figcaption { display: grid; gap: 2px; min-width: 0; }
.lib-item small { overflow-wrap: anywhere; font-size: .78rem; }
.lib-item form { margin-top: 4px; }
.look-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .look-cols { grid-template-columns: 1fr; } }
.look-preview { position: sticky; top: 76px; }
.look-preview iframe { width: 100%; height: 72vh; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pending { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pick-field { margin-bottom: 14px; }
.thumb-contain { object-fit: contain; background: var(--bg); }
.thumb-wide { width: 200px; }
.picker summary { cursor: pointer; color: var(--forest); font-size: .9rem; margin-top: 8px; }

.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick img, .pick .nophoto { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 3px solid transparent; font-size: .7rem; }
.pick input:checked + img, .pick input:checked + .nophoto { border-color: var(--forest); }
.pick input:focus-visible + img { outline: 2px solid var(--forest); outline-offset: 2px; }
.color-in { width: 90px; height: 44px; padding: 2px; }

.upload-row { padding-bottom: 6px; }
@media (max-width: 600px) {
  .sortable-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  /* Wszystkie zdjęcia: three squares across, the file's details left to the album it belongs to */
  .lib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .lib-item { padding: 4px; gap: 4px; border-radius: 10px; }
  .lib-item img, .lib-item .pdf { border-radius: 6px; }
  .lib-item figcaption small { display: none; }
  .lib-item figcaption .btn { min-height: 30px; padding: 2px 6px; font-size: .78rem; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sort-tools .chk { font-size: .82rem; }
  .inline-pick { margin-left: 0; }
}

/* photo in forms and lists */

.name-with-photo { display: inline-flex; align-items: center; gap: 10px; }
.mini-empty { display: inline-block; background: var(--forest-soft); }

/* Wygląd → strona główna motywu */
.theme-home { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.home-sec { padding-top: 6px; }
.home-sec > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.home-sec > summary::-webkit-details-marker { display: none; }
.home-sec > summary::before { content: "▸"; color: var(--forest); transition: transform .15s; }
.home-sec[open] > summary::before { transform: rotate(90deg); }
.home-sec > summary h2 { margin: 8px 0; font-size: 1.15rem; }
.home-sec h3 { margin: 22px 0 6px; font-size: 1rem; }
.tr-field { margin-bottom: 10px; min-width: 0; }
.tr-langs { display: grid; gap: 8px; }
.tr-langs.two { grid-template-columns: 1fr 1fr; }
.tr-lang { display: grid; gap: 2px; min-width: 0; }
.tr-lang small { font-size: .7rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
@media (max-width: 700px) { .tr-langs.two { grid-template-columns: 1fr; } }
.home-rows { display: grid; gap: 10px; margin: 8px 0 10px; }
.home-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 10px; }
.home-row-tools { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.home-row-tools .handle { position: static; background: none; }

.home-row-body { display: grid; gap: 6px; min-width: 0; }
.asset-field { display: flex; align-items: center; gap: 10px; }
.asset-field img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.pick-dialog { width: min(980px, calc(100vw - 32px)); max-height: 86vh; border: 0; border-radius: 16px; padding: 18px; }
.pick-dialog::backdrop { background: rgba(29, 39, 33, .55); }
.pick-dialog input[type=search] { margin-bottom: 8px; }
.pick-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; max-height: 62vh; overflow: auto; }
.pick-item { display: grid; gap: 2px; border: 2px solid transparent; background: var(--bg); border-radius: 10px; padding: 4px; cursor: pointer; text-align: center; font: inherit; }
.pick-item:hover, .pick-item:focus-visible { border-color: var(--forest); }
.pick-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.pick-item small { font-size: .68rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; z-index: 3; }
@media (max-width: 899px) { .sticky-actions { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); } }

/* bolder icons inside buttons (plus, calendar arrows) */
.btn .ico-bold { flex: none; margin-right: 6px; }
.btn-round { width: 44px; padding: 0; }
.btn-round .ico-bold { margin: 0; }
.btn-sm.btn-round { width: 38px; min-height: 38px; }
.cal-head .btn-round { border-width: 2px; }
/* status chosen from a list: its own arrow, clear of the rounded end */
.status-select { -webkit-appearance: none; appearance: none; padding: 6px 34px 6px 14px;
  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 12px center; background-size: 14px 14px; }
.tag { white-space: nowrap; }
.home-sec > summary small { margin-left: auto; }
.ico-bold { vertical-align: -3px; }

/* kitten photo in the list of litters grows in place, like the parents on the site */
.zoomable { position: relative; cursor: zoom-in; transform-origin: left center; transition: transform .25s ease, box-shadow .2s;
  border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); object-position: center 25%; }
.zoomable:hover { box-shadow: 0 0 0 2px var(--forest); }
.zoomable.zoomed { transform: scale(3); z-index: 30; cursor: zoom-out; border-width: 1px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 6px 24px rgba(29, 39, 33, .35); }
.kit:has(.zoomed), .litter:has(.zoomed) { overflow: visible; position: relative; z-index: 30; }
/* Wygląd: list of home page sections: one even line per section */

.pdf-poster { position: relative; display: block; }
.pdf-poster img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 8px; }
.pdf-poster b { position: absolute; left: 6px; bottom: 6px; background: #8a3d33; color: #fff; font-size: .68rem; border-radius: 6px; padding: 1px 6px; }

/* ---- page builder (Strony → strona): blocks on the left, live preview on the right on wide screens */
.builder { display: grid; gap: 24px; align-items: start; }
.builder-form.form { max-width: none; min-width: 0; }
.builder-preview { display: none; }
@media (min-width: 1280px) {
  .builder { grid-template-columns: minmax(0, 1fr) minmax(400px, 44%); }
  .builder-preview { display: flex; flex-direction: column; position: sticky; top: calc(var(--top-h, 60px) + 12px);
    height: calc(100vh - var(--top-h, 60px) - 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
}
.pv-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.pv-bar .seg { margin-left: auto; }
.pv-bar .seg button { padding: 4px 10px; min-height: 32px; }
.pv-state { font-size: .8rem; }
.pv-frame { position: relative; flex: 1; overflow: hidden; background: var(--bg); }
.pv-frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; }
.blk-headrow { margin: 22px 0 6px; }
.blk-headrow h2 { margin: 0; font-size: 1.15rem; }
.blk-fold { display: flex; gap: 6px; }
.blk-list { display: grid; gap: 10px; }
.blk-ed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.blk-ed.dragging { opacity: .5; }
.blk-ed[open] { box-shadow: 0 1px 2px rgba(29, 39, 33, .05), 0 6px 18px rgba(29, 39, 33, .06); }
.blk-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; list-style: none; min-height: 52px; }
.blk-head::-webkit-details-marker { display: none; }
.blk-head .handle { position: static; background: none; cursor: grab; color: var(--muted); font-size: 1.1rem; padding: 4px; }
.blk-ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--forest-soft); color: var(--forest); }
.blk-ico .ico { width: 20px; height: 20px; }
.blk-name { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.blk-sum { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk-ed[open] .blk-sum { display: none; }
.blk-tools { display: flex; gap: 2px; flex: none; }
.ib { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--ink); cursor: pointer; padding: 0; }
.ib:hover, .ib:focus-visible { background: var(--forest-soft); color: var(--forest); }
.ib-danger:hover, .ib-danger:focus-visible { background: #f3e4e1; color: #8a3d33; }
.blk-body { display: grid; gap: 8px; padding: 4px 16px 16px; border-top: 1px solid var(--line); padding-top: 14px; min-width: 0; }
.blk-body > .fl, .blk-body .fl { margin-top: 4px; }
.blk-split { display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); gap: 16px; }
.blk-side { display: grid; gap: 6px; align-content: start; }
.blk-opts { display: flex; align-items: center; gap: 10px; justify-content: flex-end; font-size: .86rem; color: var(--muted); margin-top: 4px; }
.blk-opts select { width: auto; min-height: 36px; padding: 4px 30px 4px 10px; }
.blk-rows { display: grid; gap: 8px; }
.blk-rows-photo { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.blk-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); min-width: 0; }
.blk-row.dragging { opacity: .5; }
.blk-row-tools { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.blk-row-tools .handle { position: static; background: none; cursor: grab; color: var(--muted); }
.blk-row-tools .ib { width: 30px; height: 30px; }
.blk-row-body { display: grid; gap: 6px; min-width: 0; }
.blk-row-photo { grid-template-columns: 1fr; }
.blk-row-photo .blk-row-tools { flex-direction: row; justify-content: space-between; }
.blk-row-photo .asset-field { display: grid; gap: 6px; }

.bl-field { min-width: 0; }
.bl-field label { display: grid; gap: 4px; }
.blk-add-main { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 12px 0 4px; padding: 16px;
  border: 2px dashed var(--line); border-radius: var(--radius); background: none; color: var(--forest); font: 600 1rem var(--body, inherit); cursor: pointer; }
.blk-add-main:hover, .blk-add-main:focus-visible { border-color: var(--forest); background: var(--forest-soft); }
.blk-empty { text-align: center; padding: 24px 12px; }
.blk-dialog h3 { margin: 14px 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.blk-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.blk-kind { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; text-align: left; padding: 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.blk-kind .blk-ico { grid-row: span 2; }
.blk-kind small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.blk-kind:hover, .blk-kind:focus-visible { border-color: var(--forest); background: var(--forest-soft); }
.hint.warn { color: #8a3d33; }
.layouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 18px; }
.layout-card { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  color: var(--ink); text-decoration: none; }
.layout-card:hover, .layout-card:focus-visible { border-color: var(--forest); box-shadow: 0 6px 18px rgba(29, 39, 33, .08); }
.layout-card small { color: var(--muted); }
.layout-mini { display: grid; gap: 4px; padding: 10px; margin-bottom: 8px; border-radius: 10px; background: var(--bg); min-height: 150px; align-content: start; }
.layout-mini span { display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--forest-soft); color: var(--forest); }
.layout-mini .ico { width: 15px; height: 15px; }
.layout-mini span::after { content: ""; flex: 1; height: 5px; border-radius: 3px; background: currentColor; opacity: .25; }
@media (max-width: 640px) {
  .blk-split { grid-template-columns: 1fr; }
  .blk-tools .ib { width: 30px; height: 30px; }
  .blk-head { gap: 6px; padding: 6px; }
}
.theme-list { display: grid; gap: 6px; margin: 10px 0; }
.theme-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* first steps on the start page */
.steps { margin-bottom: 18px; }
.steps-count { font-weight: 700; color: var(--forest); }
.steps-track { display: block; height: 6px; border-radius: 99px; background: var(--forest-soft); overflow: hidden; margin: 4px 0 14px; }
.steps-bar { display: block; height: 100%; background: var(--forest); transform-origin: left; transform: scaleX(0); transition: transform .5s ease; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: step; }
.steps-list li { counter-increment: step; }
.steps-list a { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
.steps-list a::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--forest-soft); color: var(--forest); font-weight: 700; }
.steps-list a:hover { border-color: var(--forest); }
.steps-list small { color: var(--muted); }
.steps-list .is-done a { opacity: .6; border-style: dashed; }
.steps-list .is-done a::before { content: "\2713"; background: var(--forest); color: #fff; }
.card.empty p:first-child { max-width: 56ch; margin-inline: auto; }
@media (prefers-reduced-motion: no-preference) {
  
  @keyframes blk-new { 0%, 30% { box-shadow: 0 0 0 3px var(--forest), 0 6px 18px rgba(29, 39, 33, .12); } 100% { box-shadow: 0 0 0 0 transparent; } }
}
[aria-invalid="true"] { border-color: var(--red) !important; box-shadow: 0 0 0 3px color-mix(in oklab, var(--red) 18%, transparent); }

/* a kitten in the list of litters: the name and colour keep their room; on phones the status goes under them,
   across the whole row (it is the thing most often changed here) */
.kit .grow { flex: 1 1 8rem; min-width: 0; }
.kit .grow a { display: inline-block; padding: 8px 0; }
.kit .grow small { display: block; margin-top: -6px; color: var(--muted); }
.kit form.inline { flex: none; }
@media (max-width: 560px) {
  .kit { flex-wrap: wrap; row-gap: 4px; }
  .kit form.inline { flex: 1 1 100%; padding-left: 54px; }
  .kit .status-select { width: 100%; min-height: 44px; }
}
/* calendar on a phone: the picked day and its events in full under the month */
.cal-day { display: grid; gap: 6px; margin-top: 10px; padding: 12px 14px; }
.cal-day b { font-size: .95rem; }
.cal-ev.cal-ev-full { font-size: .92rem; height: auto; padding: 10px 12px; white-space: normal; border-radius: 10px; }
/* a phone's day is ~45px wide: the event keeps its colour and its short name, who or where ("Ingrid", "Tczew (PL)"); the colour tells the kind,
   the tap on the day lists them in full */
.cal-hint { display: none; }
.ev-short { display: none; }
@media (max-width: 700px) {
  .cal-cell:has(.cal-ev) { cursor: pointer; }
  .cal-cell .ev-long { display: none; }
  .cal-cell .ev-short { display: inline; }
  .cal-cell .cal-ev { font-size: .62rem; line-height: 1.25; padding: 1px 4px; border-radius: 4px; letter-spacing: -.01em; }
  .cal-cell.is-picked { box-shadow: inset 0 0 0 2px var(--forest); }
  .cal-hint { display: block; margin: 8px 2px 0; font-size: .8rem; color: var(--muted); }
}

h2.label { font-size: .8rem; }
.cal-num { font-size: .85rem; }

/* page editor: the settings of the page fold into one line */
.page-settings > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.page-settings > summary::-webkit-details-marker { display: none; }
.page-settings > summary::before { content: "\25B8"; color: var(--forest); transition: transform .15s; }
.page-settings[open] > summary::before { transform: rotate(90deg); }
.page-settings[open] > summary { margin-bottom: 12px; }
.act-more{ display: none; }
@media (max-width: 640px) {
  /* one row of buttons: the main one and "Więcej" (the rest shows after it) */
  .sticky-actions:has(.act-more) .btn:not(:first-child):not(.act-more) { display: none; }
  .sticky-actions.open .btn:not(.act-more) { display: inline-flex !important; }
  .sticky-actions .act-more { display: inline-flex; }
  .sticky-actions.open .act-more { display: none; }
  .sticky-actions:has(.act-more) { flex-wrap: wrap; }
  .sticky-actions:has(.act-more) .btn { flex: 1 1 auto; }
  /* a block's tools behind one button: its name keeps the room */
  .blk-head { flex-wrap: wrap; }
  
  
  
  
  .blk-ico { width: 30px; height: 30px; }
}

/* reservations */
.res-filter { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; max-width: 420px; }
.res-filter .fl { margin: 0; }
.rsv-row { gap: 12px; }
.rsv-row .handle { cursor: grab; color: var(--muted); font-size: 1.1rem; padding: 4px; }
.res-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--forest-soft); color: var(--forest); font-weight: 700; font-size: .85rem; flex: none; }
.res-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; text-align: right; }
.res-meta small { color: var(--muted); }
.tag.res-new { background: #e7eaee; color: #3c4650; } .tag.res-talk { background: #f5ead9; color: #83561c; }
.tag.res-deposit { background: #e4e0f3; color: #4a3d8a; } .tag.res-assigned, .tag.res-contract { background: #f3e4e1; color: #8a3d33; }
.tag.res-done { background: #d9efdf; color: #1f6a3a; } .tag.res-dropped { background: #eee; color: #777; }
.res-more { margin-top: 14px; } .res-more > summary { cursor: pointer; font-weight: 600; }
.res-dialog form { display: grid; gap: 10px; }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: st; }
.stepper li { counter-increment: st; }
.stepper button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 .9rem var(--body); color: var(--muted); cursor: pointer; }
.stepper button::before { content: counter(st); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--bg); }
.stepper .is-past button { color: var(--forest); } .stepper .is-past button::before { content: "\2713"; background: var(--forest-soft); }
.stepper .is-now button { background: var(--forest); border-color: var(--forest); color: #fff; } .stepper .is-now button::before { background: rgba(255,255,255,.2); }
.res-steps .linkish { color: var(--forest); text-decoration: underline; font-weight: 600; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; margin: 14px 0; }
.res-grid .card { margin: 0; }
.res-money { font-size: 1.05rem; }
.res-answers { display: grid; gap: 8px; margin: 0; } .res-answers dt { font-weight: 600; font-size: .88rem; color: var(--muted); } .res-answers dd { margin: 0; }
.res-pay { display: grid; gap: 10px; margin-top: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr 1fr; } .res-meta { display: none; } }

/* Dokumenty and the owner's portal link */
.copy-row { display: flex; gap: 8px; margin: 8px 0; }
.copy-row input { flex: 1; min-width: 0; font-size: .88rem; }
.tag.doc-draft { background: #e7eaee; color: #3c4650; } .tag.doc-sent { background: #f5ead9; color: #83561c; }
.tag.doc-accepted { background: #d9efdf; color: #1f6a3a; } .tag.doc-void { background: #f3e1de; color: #8a2a20; }
.doc-edit textarea { min-height: 55vh; font: .95rem/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; }
.doc-hash { font-size: .78rem; word-break: break-all; }
.doc-read { max-width: 80ch; } .doc-read h3 { margin: 1.4em 0 .4em; font-size: 1rem; }
.doc-fields { margin: 10px 0; } .doc-fields > summary { cursor: pointer; font-weight: 600; color: var(--forest); }
.doc-fields dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 16px; margin: 10px 0 0; }
.doc-fields dl div { display: flex; gap: 8px; align-items: baseline; } .doc-fields dt { flex: none; } .doc-fields dd { margin: 0; color: var(--muted); font-size: .88rem; }
.doc-state p:first-child { margin-top: 0; }

/* Rodowody: the tree (positions generated: column = generation, rows = 16 >> generation) */
.ped-tree { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto repeat(16, minmax(44px, auto)); gap: 4px 10px; }
.ped-gen { grid-row: 1; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.ped-gen-1 { grid-column: 1; } .ped-gen-2 { grid-column: 2; } .ped-gen-3 { grid-column: 3; } .ped-gen-4 { grid-column: 4; }
.ped-cell { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 6px 10px; border-radius: 10px;
  border: 1px solid var(--line); border-left: 4px solid #8fb3c9; background: var(--surface, #fff); }
.ped-dam { border-left-color: #d9a3b4; }
.ped-empty { background: transparent; border-style: dashed; }
.ped-label { font-size: .7rem; color: var(--muted); }
.ped-name { font-size: .9rem; overflow-wrap: anywhere; line-height: 1.25; }
.ped-cell small { color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.ped-none { color: var(--muted); }
.ped-editing .ped-cell input { width: 100%; min-height: 36px; padding: 4px 8px; font-size: .86rem; }
.ped-more { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ped-own { color: var(--forest) !important; }
.ped-cell small.ped-hint { color: var(--ink, inherit); }
.ped-use { color: var(--forest); text-decoration: underline; font-size: inherit; min-height: 24px; }
.ped-tree .pos-s { grid-column: 1; grid-row: 2 / span 8; }
.ped-tree .pos-d { grid-column: 1; grid-row: 10 / span 8; }
.ped-tree .pos-ss { grid-column: 2; grid-row: 2 / span 4; }
.ped-tree .pos-sd { grid-column: 2; grid-row: 6 / span 4; }
.ped-tree .pos-ds { grid-column: 2; grid-row: 10 / span 4; }
.ped-tree .pos-dd { grid-column: 2; grid-row: 14 / span 4; }
.ped-tree .pos-sss { grid-column: 3; grid-row: 2 / span 2; }
.ped-tree .pos-ssd { grid-column: 3; grid-row: 4 / span 2; }
.ped-tree .pos-sds { grid-column: 3; grid-row: 6 / span 2; }
.ped-tree .pos-sdd { grid-column: 3; grid-row: 8 / span 2; }
.ped-tree .pos-dss { grid-column: 3; grid-row: 10 / span 2; }
.ped-tree .pos-dsd { grid-column: 3; grid-row: 12 / span 2; }
.ped-tree .pos-dds { grid-column: 3; grid-row: 14 / span 2; }
.ped-tree .pos-ddd { grid-column: 3; grid-row: 16 / span 2; }
.ped-tree .pos-ssss { grid-column: 4; grid-row: 2 / span 1; }
.ped-tree .pos-sssd { grid-column: 4; grid-row: 3 / span 1; }
.ped-tree .pos-ssds { grid-column: 4; grid-row: 4 / span 1; }
.ped-tree .pos-ssdd { grid-column: 4; grid-row: 5 / span 1; }
.ped-tree .pos-sdss { grid-column: 4; grid-row: 6 / span 1; }
.ped-tree .pos-sdsd { grid-column: 4; grid-row: 7 / span 1; }
.ped-tree .pos-sdds { grid-column: 4; grid-row: 8 / span 1; }
.ped-tree .pos-sddd { grid-column: 4; grid-row: 9 / span 1; }
.ped-tree .pos-dsss { grid-column: 4; grid-row: 10 / span 1; }
.ped-tree .pos-dssd { grid-column: 4; grid-row: 11 / span 1; }
.ped-tree .pos-dsds { grid-column: 4; grid-row: 12 / span 1; }
.ped-tree .pos-dsdd { grid-column: 4; grid-row: 13 / span 1; }
.ped-tree .pos-ddss { grid-column: 4; grid-row: 14 / span 1; }
.ped-tree .pos-ddsd { grid-column: 4; grid-row: 15 / span 1; }
.ped-tree .pos-ddds { grid-column: 4; grid-row: 16 / span 1; }
.ped-tree .pos-dddd { grid-column: 4; grid-row: 17 / span 1; }
.ped-summary .card-title { margin-top: 14px; }
.ped-coi { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ped-coi-num { font: 700 1.9rem/1 var(--display, inherit); padding: 10px 16px; border-radius: 12px; background: var(--forest-soft); color: var(--forest); }
.ped-coi-mid .ped-coi-num { background: #f5ead9; color: #83561c; }
.ped-coi-high .ped-coi-num, .ped-coi-very-high .ped-coi-num { background: #f3e1de; color: #8a2a20; }
.ped-bar meter { width: 90px; height: 8px; }
.hrow-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ped-actions { flex-wrap: nowrap; align-items: center; }
.ped-actions .kebab { align-self: center; }
/* the "⋯" of a pedigree and its menu in the top layer (popover), placed under the button by PedigreeTree.vue */
.ped-more-btn { width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.4rem; cursor: pointer; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); flex: none; align-self: center; }
.ped-more-menu[popover] { position: fixed; inset: auto; margin: 0; }
.ped-actions .kebab > summary { border: 1px solid var(--line); background: var(--surface); }
.kebab-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.kebab-menu a:hover { background: var(--bg); }
.ped-empty-card { text-align: left; }
.ped-how { margin-top: 6px; }
.ped-how > summary { cursor: pointer; color: var(--forest); font-size: .92rem; }
@media (max-width: 700px) { .ped-print { display: none !important; } }
@media (max-width: 760px) {
  .ped-tree { display: flex; flex-direction: column; }
  .ped-gen { margin-top: 10px; }
  .ped-gen-1 { order: 0; } .ped-gen-2 { order: 2; } .ped-gen-3 { order: 4; } .ped-gen-4 { order: 6; }
  .ped-tree .pos-s { order: 1; }
  .ped-tree .pos-d { order: 1; }
  .ped-tree .pos-ss { order: 3; }
  .ped-tree .pos-sd { order: 3; }
  .ped-tree .pos-ds { order: 3; }
  .ped-tree .pos-dd { order: 3; }
  .ped-tree .pos-sss { order: 5; }
  .ped-tree .pos-ssd { order: 5; }
  .ped-tree .pos-sds { order: 5; }
  .ped-tree .pos-sdd { order: 5; }
  .ped-tree .pos-dss { order: 5; }
  .ped-tree .pos-dsd { order: 5; }
  .ped-tree .pos-dds { order: 5; }
  .ped-tree .pos-ddd { order: 5; }
  .ped-tree .pos-ssss { order: 7; }
  .ped-tree .pos-sssd { order: 7; }
  .ped-tree .pos-ssds { order: 7; }
  .ped-tree .pos-ssdd { order: 7; }
  .ped-tree .pos-sdss { order: 7; }
  .ped-tree .pos-sdsd { order: 7; }
  .ped-tree .pos-sdds { order: 7; }
  .ped-tree .pos-sddd { order: 7; }
  .ped-tree .pos-dsss { order: 7; }
  .ped-tree .pos-dssd { order: 7; }
  .ped-tree .pos-dsds { order: 7; }
  .ped-tree .pos-dsdd { order: 7; }
  .ped-tree .pos-ddss { order: 7; }
  .ped-tree .pos-ddsd { order: 7; }
  .ped-tree .pos-ddds { order: 7; }
  .ped-tree .pos-dddd { order: 7; }
  .ped-cell { min-height: 44px; }
}
/* the printed pedigree: one landscape sheet */
.ped-print { background: #fff; padding: 20px; }
.ped-print-head h1 { margin: 0 0 4px; font-size: 1.5rem; }
.ped-print-head p { margin: 0 0 4px; color: var(--muted); }
.ped-print-head { margin-bottom: 14px; }
.ped-print-bar { display: flex; justify-content: space-between; align-items: center; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  .ped-print { padding: 0; }
  .ped-print-bar { display: none; }
  .ped-print .ped-tree { display: grid; grid-template-rows: auto repeat(16, minmax(0, auto)); gap: 2px 6px; }
  .ped-print .ped-cell { padding: 2px 6px; border-radius: 4px; break-inside: avoid; }
  .ped-print .ped-name { font-size: 8.5pt; } .ped-print .ped-cell small, .ped-print .ped-label { font-size: 6.5pt; }
}

/* Druki klubowe */
.club-link { margin-bottom: 16px; text-decoration: none; color: var(--ink); }
.tag.club-error { background: #f3e1de; color: #8a2a20; } .tag.club-warn { background: #f5ead9; color: #83561c; }
.tag.club-ok { background: #d9efdf; color: #1f6a3a; }

/* Zdrowie: weight alarms, the litter's weight chart, the tests of the cats */
.health-alerts ul { margin: 0 0 6px; padding-left: 20px; display: grid; gap: 4px; }
.ha-error { color: #8a2a20; font-weight: 600; } .ha-warn { color: #83561c; }
.wflag { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #fff; }
.wflag-error { background: #b5402f; } .wflag-warn { background: #c28a12; }
.wchart { flex: 1 1 480px; min-width: 0; max-width: 720px; margin: 0 0 12px; } .wchart svg { width: 100%; height: auto; display: block; }
.wc-grid { stroke: var(--line); stroke-width: 1; }
.wc-band { fill: rgba(214, 102, 150, .14); }
.wc-legend .wc-band-key::before { background: rgba(214, 102, 150, .35); }
.wc-ylabel { font-size: 11px; fill: var(--muted); text-anchor: end; } .wc-xlabel { font-size: 11px; fill: var(--muted); text-anchor: middle; }
/* on a phone the 640-wide chart is drawn at about half its size: labels twice as big stay readable */
@media (max-width: 700px) { .wc-ylabel, .wc-xlabel { font-size: 20px; } .wc-dot { r: 5px; } .wc-line { stroke-width: 3px; } }
.wc-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.wc-dot { fill: #fff; stroke-width: 2; }
.wc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; }
.wc-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: currentColor; }
.wc-line.ws-1, .wc-dot.ws-1 { stroke: #2e5a44; } .wc-legend .ws-1 { color: #2e5a44; }
.wc-line.ws-2, .wc-dot.ws-2 { stroke: #b5523b; } .wc-legend .ws-2 { color: #b5523b; }
.wc-line.ws-3, .wc-dot.ws-3 { stroke: #3b6fb5; } .wc-legend .ws-3 { color: #3b6fb5; }
.wc-line.ws-4, .wc-dot.ws-4 { stroke: #c28a12; } .wc-legend .ws-4 { color: #c28a12; }
.wc-line.ws-5, .wc-dot.ws-5 { stroke: #7a4fa3; } .wc-legend .ws-5 { color: #7a4fa3; }
.wc-line.ws-6, .wc-dot.ws-6 { stroke: #2f8f8f; } .wc-legend .ws-6 { color: #2f8f8f; }
.wc-line.ws-7, .wc-dot.ws-7 { stroke: #b5407a; } .wc-legend .ws-7 { color: #b5407a; }
.wc-line.ws-8, .wc-dot.ws-8 { stroke: #5f6b63; } .wc-legend .ws-8 { color: #5f6b63; }
.tests-row { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 8px 16px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tests-row:last-of-type { border-bottom: 0; }
.tests-cat { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tests-list { display: flex; flex-wrap: wrap; gap: 6px; }
.test-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .85rem; text-decoration: none; border: 1px solid transparent; }
.test-normal, .test-info { background: #d9efdf; color: #1f6a3a; } .test-carrier { background: #f5ead9; color: #83561c; }
.test-affected { background: #f3e1de; color: #8a2a20; } .test-equivocal { background: #e7eaee; color: #3c4650; }
.test-expired { background: #fff; color: #8a2a20; border-color: #e0b8b2; }
.test-expiring { border-color: #c28a12; }
@media (max-width: 640px) { .tests-row { grid-template-columns: 1fr; } .tests-cat { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Wystawy → Tytuły */
.titles-ed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.title-group { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 4px; min-width: 0; }
.title-group textarea { font-size: .92rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* console: the check of a breeder's domain */
.dns { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.dns h3 { margin: 0 0 8px; }
.dns-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; }
.dns-steps small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.dns-state { font-size: .8rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.dns-ok .dns-state { background: #d9efdf; color: #1f6a3a; } .dns-warn .dns-state { background: #f5ead9; color: #83561c; }
.dns-fail .dns-state { background: #f3e1de; color: #8a2a20; } .dns-skip .dns-state { background: #e7eaee; color: #3c4650; }
.dns-records code { overflow-wrap: anywhere; }

/* the colours of the panel (Moje konto → Kolory panelu); "las" is the default of panel.css */
html[data-theme="morze"] { --forest: #1d6b6b; --forest-soft: #e0efee; --bg: #eff4f3; --amber: #b07a1f; }
html[data-theme="sliwka"] { --forest: #6b3a5e; --forest-soft: #f2e6ee; --bg: #f6f1f4; --amber: #a8712a; }
html[data-theme="terakota"] { --forest: #9c4a2f; --forest-soft: #f6e7e0; --bg: #f6f0eb; --amber: #7a5a12; }
html[data-theme="grafit"] { --forest: #3a4250; --forest-soft: #e6e9ee; --bg: #f2f3f5; --amber: #a8712a; }
.theme-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.theme-pick label { display: grid; gap: 8px; padding: 10px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; }
.theme-pick label:has(input:checked) { border-color: var(--forest); }
.theme-pick input { position: absolute; opacity: 0; }
.theme-pick input:focus-visible + .swatch { outline: 2px solid var(--forest); outline-offset: 2px; }
.swatch { display: flex; height: 34px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.swatch i { flex: 1; }
.sw-las i:nth-child(1) { background: #2e5a44; } .sw-las i:nth-child(2) { background: #e5eee8; } .sw-las i:nth-child(3) { background: #f4f2ed; }
.sw-morze i:nth-child(1) { background: #1d6b6b; } .sw-morze i:nth-child(2) { background: #e0efee; } .sw-morze i:nth-child(3) { background: #eff4f3; }
.sw-sliwka i:nth-child(1) { background: #6b3a5e; } .sw-sliwka i:nth-child(2) { background: #f2e6ee; } .sw-sliwka i:nth-child(3) { background: #f6f1f4; }
.sw-terakota i:nth-child(1) { background: #9c4a2f; } .sw-terakota i:nth-child(2) { background: #f6e7e0; } .sw-terakota i:nth-child(3) { background: #f6f0eb; }
.sw-grafit i:nth-child(1) { background: #3a4250; } .sw-grafit i:nth-child(2) { background: #e6e9ee; } .sw-grafit i:nth-child(3) { background: #f2f3f5; }

/* the platform's console: navy, a dark top bar and the "Admin" badge, so it is never taken for a breeder's panel */
html[data-theme="console"] { --forest: #1f3a68; --forest-soft: #e3e9f4; --bg: #eceff4; --amber: #d29a2a;
  --nav-bg: #14213d; --nav-ink: #dbe2ee; --nav-muted: #b9c4d8; --nav-label: #c9d3e4; }
html[data-theme="console"] .ptop { background: #14213d; border-bottom-color: #14213d; }
html[data-theme="console"] .ptop, html[data-theme="console"] .pbrand, html[data-theme="console"] .pmenu-btn { color: #fff; }
html[data-theme="console"] .pbrand small { color: #b9c4d8; }
html[data-theme="console"] .pmenu-btn:hover, html[data-theme="console"] .pmenu.open .pmenu-btn { background: rgba(255, 255, 255, .12); color: #fff; }
.admin-badge { margin-left: 10px; padding: 3px 9px; border-radius: 999px; background: #d29a2a; color: #14213d; font: 700 .7rem/1.2 var(--body);
  letter-spacing: .08em; text-transform: uppercase; }

/* the weights of a litter (Zdrowie): a compact table, the grams in a quiet colour, the gain small under them */
.wcard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.wcard-head .card-title { margin: 0; }
.wcard-fold { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.wcard-fold::before { content: ""; flex: none; width: 8px; height: 8px; margin: 0 3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s ease; }
.wcard-fold[aria-expanded="true"]::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .wcard-fold::before { transition: none; } }
/* the chart and the table side by side when there is room, one under the other when not */
.wcard-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 24px; margin-top: 12px; }
.wcard-table { flex: 1 1 360px; min-width: 0; }
.wtable th, .wtable td { padding: 7px 8px; }
.wtable td { line-height: 1.15; }
.wtable td a { color: var(--ink); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.wtable td a:hover { color: var(--forest); text-decoration: underline; }
.wtable td small { display: block; font-size: .72rem; font-weight: 600; }
.wtable td small.gain { color: #2e7d4f; } .wtable td small.loss { color: #b3261e; }
.wtable th:first-child, .wtable td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
@media (max-width: 700px) { .wtable { font-size: .9rem; } .wtable th, .wtable td { padding: 6px; } }

/* Historia z przychodni: a visit per card, its lab results with the range and a mark */
.vet-import { display: grid; gap: 10px; }
.vet-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.vet-cats a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .9rem; color: var(--ink); background: var(--surface); }
.vet-cats a.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.visit { display: grid; gap: 10px; }
.cat-records, .cat-tests, .cat-visits { margin-bottom: 16px; }
.cat-tests .hrow, .cat-visits .hrow { margin-bottom: 8px; }
.cat-visits .visit + .visit { margin-top: 12px; }
.visit-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.visit-head h3 { margin: 0; font-size: 1.05rem; }
.visit-head small { color: var(--muted); }
.visit-kind { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--forest-soft); color: var(--forest); margin-right: 6px; }
.visit-kind.k-prevention { background: #dcefe2; color: #1f6a3a; } .visit-kind.k-diagnostics, .visit-kind.k-exam { background: #dde7f6; color: #2b4f8a; }
.visit-flag { font-size: .8rem; font-weight: 700; color: #b3261e; }
.visit dl { display: grid; grid-template-columns: minmax(84px, max-content) 1fr; gap: 4px 14px; margin: 0; font-size: .92rem; }
.visit dt { color: var(--muted); } .visit dd { margin: 0; }
.labs { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.labs caption { text-align: left; font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.labs th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.labs td { padding: 5px 6px; border-bottom: 1px solid var(--line); }
.labs td.v { text-align: right; font-weight: 700; white-space: nowrap; }
.labs td.r { color: var(--muted); white-space: nowrap; }
.labs tr.high td.v { color: #b3261e; } .labs tr.low td.v { color: #2b4f8a; }
.labs tr.high td.v::after { content: " ↑"; } .labs tr.low td.v::after { content: " ↓"; }
/* many results folded under one line: how many, and which are out of range */
.visit-results > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.visit-results[open] > summary { margin-bottom: 6px; }
.visit-results > summary { list-style: none; }
.visit-results > summary::-webkit-details-marker { display: none; }
.visit-results > summary::after { content: "pokaż ▾"; margin-left: auto; color: var(--forest); font-weight: 600; font-size: .85rem; }
.visit-results[open] > summary::after { content: "zwiń ▴"; }
/* a described result (microbiology, "wrażliwy") wraps and reads from the left */
.labs tr.text td.v { white-space: normal; text-align: left; font-weight: 600; overflow-wrap: anywhere; }
.labs td:first-child { overflow-wrap: anywhere; }
/* on a phone a row is a small block: the test and its value on one line, the unit and range under it; no sideways scroll */
@media (max-width: 700px) {
  .labs, .labs tbody { display: block; }
  .labs thead { display: none; }
  .labs caption { display: block; }
  .labs tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .labs td { display: block; padding: 0; border: 0; }
  .labs tr.text td.v { grid-column: 1 / -1; }
  .labs td.u, .labs td.r { font-size: .8rem; color: var(--muted); }
  .labs td.u:empty, .labs td.r:empty { display: none; }
  .labs td.r { grid-column: 1 / -1; }
  .labs td.u + td.r:not(:empty)::before { content: "norma "; }
}

/* an entry of several days : one bar across the days of a week, its pieces
   reaching over the cells' padding and border; a free lane keeps the same height, so the bar stays straight */
.cal-gap { display: block; height: calc(.74rem * 1.25 + 6px); }
.cal-span.join-l { margin-left: -6px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cal-span.join-r { margin-right: -7px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-span.open-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cal-span.open-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-span.join-l, .cal-span.join-r { position: relative; z-index: 1; }
/* the title runs along the whole bar of the week (span-N: N days), over the pieces that follow */
.cal-span.lbl { overflow: visible; position: relative; z-index: 2; }
.cal-span.lbl > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; }   /* span-1: its own day */
.cal-span.lbl > .ev-long { display: block; }
.cal-span.span-2 > span { width: calc(2 * 100% + 1 * 13px); }
.cal-span.span-3 > span { width: calc(3 * 100% + 2 * 13px); }
.cal-span.span-4 > span { width: calc(4 * 100% + 3 * 13px); }
.cal-span.span-5 > span { width: calc(5 * 100% + 4 * 13px); }
.cal-span.span-6 > span { width: calc(6 * 100% + 5 * 13px); }
.cal-span.span-7 > span { width: calc(7 * 100% + 6 * 13px); }
@media (max-width: 700px) {
  .cal-gap { height: calc(.62rem * 1.25 + 2px); }
  .cal-span.join-l { margin-left: -3px; }
  .cal-span.join-r { margin-right: -4px; }
  .cal-cell .cal-span.lbl > .ev-long { display: none; }
  .cal-cell .cal-span.lbl > .ev-short { display: block; }
  .cal-span.span-2 > span { width: calc(2 * 100% + 1 * 7px); }
  .cal-span.span-3 > span { width: calc(3 * 100% + 2 * 7px); }
  .cal-span.span-4 > span { width: calc(4 * 100% + 3 * 7px); }
  .cal-span.span-5 > span { width: calc(5 * 100% + 4 * 7px); }
  .cal-span.span-6 > span { width: calc(6 * 100% + 5 * 7px); }
  .cal-span.span-7 > span { width: calc(7 * 100% + 6 * 7px); }
}

/* the head of a litter in Mioty: the name and dates keep their room; the buttons (Rodowód, Zgłoszenie, Edytuj) go
   to their own row when the line is too narrow, on a phone always, in three equal parts (2026-10-12: on a phone the
   name had 0 px and stood one letter per line) */
.litter > summary { flex-wrap: wrap; row-gap: 10px; }
.litter > summary > .grow { flex: 1 1 180px; min-width: 0; }
.lit-actions { display: flex; gap: 8px; flex: 0 0 auto; margin-left: auto; }
@media (max-width: 700px) {
  .litter > summary > .grow { flex-basis: calc(100% - 56px); }
  .lit-actions { flex: 1 1 100%; }
  .lit-actions > .btn { flex: 1 1 0; justify-content: center; padding-inline: 6px; min-width: 0; }
}

/* a row with a name and two or more buttons (Druki klubowe and the like): on a phone the buttons take their own line,
   so the name keeps the width (2026-10-12: "Miot B" one letter per line) */
@media (max-width: 700px) {
  .row:has(> .btn ~ .btn) { flex-wrap: wrap; row-gap: 8px; }
  .row:has(> .btn ~ .btn) > .grow { flex: 1 1 100%; min-width: 0; }
  .row:has(> .btn ~ .btn) > .btn { flex: 1 1 0; justify-content: center; text-align: center; line-height: 1.25; padding-inline: 6px; min-width: 0; }
}

/* photos in the pedigree tree: a round picture by the name, smaller in the outer generations */
.ped-cell.ped-has-photo { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-content: center; }
.ped-cell.ped-has-photo > :not(.ped-photo) { grid-column: 2; }
.ped-photo { grid-column: 1; grid-row: 1 / span 4; align-self: center; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; cursor: zoom-in; }
.ped-g3 .ped-photo { width: 36px; height: 36px; }
.ped-g4 .ped-photo { width: 28px; height: 28px; }
/* Wystawy → Tytuły: a cat's titles as chips, each with its own "×" */
.title-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.title-chip { display: inline-flex; align-items: center; gap: 2px; margin: 0; padding: 3px 4px 3px 10px; border-radius: 999px;
  background: var(--forest-soft); color: var(--forest); font-weight: 700; font-size: .85rem; }
.title-x { border: 0; background: none; color: inherit; font-size: 1.05rem; line-height: 1; padding: 0 6px; cursor: pointer; border-radius: 50%; }
.title-x:hover { background: rgba(0,0,0,.08); }
.title-edit { border: 0; background: none; color: inherit; font: inherit; padding: 0; cursor: pointer; white-space: nowrap; text-decoration: underline dotted; text-underline-offset: 3px; }
.title-row .title-chip .title-edit small { display: inline; font-weight: 400; font-size: inherit; color: inherit; }
.title-edit-form { display: flex; flex-wrap: wrap; align-items: end; gap: 6px 10px; margin-top: 10px; }
.title-edit-form input { width: auto; max-width: 11rem; }
.title-edit-form > span:not(.actions) { display: flex; flex-direction: column; }
.title-edit-form .fl { margin: 0 0 4px; }
.title-edit-form .actions { display: inline-flex; gap: 6px; margin: 0; padding: 0; border: 0; }
.title-departed b { color: var(--muted); }
.title-row .grow small { display: block; }
/* Koty: which cats to list, and those over the rainbow bridge in their own part at the bottom */
.list-show { margin: 0 0 12px; }
.list-departed .mini { filter: grayscale(1); }
.list-departed .row-link { color: var(--muted); }
.departed-toggle { margin: 0 0 10px; }
/* Dokumenty → Hodowla i uprawnienia: one row per kind of paper, its state as a tag */
.cdoc { flex-wrap: wrap; gap: 6px 10px; }
.cdoc .grow { min-width: 0; }
.cdoc-more { display: block; font-size: .8rem; color: var(--forest); }
.cdoc-missing .cdoc-tag, .cdoc-expired .cdoc-tag { background: #fbe4e1; color: #b3261e; }
.cdoc-soon .cdoc-tag { background: #fdf0d5; color: #8a5a00; }
.cdoc-ok .cdoc-tag { background: #dcefe2; color: #1f6a3a; }
/* the cat whose pedigree it is, a litter's kittens, and the photo in the list of Rodowody */
.ped-subject { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.ped-subject-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; cursor: zoom-in; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.ped-subject span { display: grid; gap: 2px; } .ped-subject small { color: var(--muted); }
.ped-kits { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px; }
.ped-kits figure { margin: 0; text-align: center; font-size: .9rem; }
.ped-kits img, .ped-kit-none { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 6px; display: grid; place-items: center; }
.ped-kits img { cursor: zoom-in; }
.ped-kits figcaption small { display: block; color: var(--muted); font-size: .78rem; }
.ped-kit-none { background: var(--forest-soft); color: var(--forest); font-weight: 700; font-size: 1.2rem; }
.ped-row-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
span.ped-row-photo { display: grid; place-items: center; font-size: 1rem; }
.ped-photo-link { font-size: .72rem; color: var(--forest); text-decoration: none; }
.ped-photo-link:hover { text-decoration: underline; }
@media print { .ped-photo-link { display: none; } }

/* console: the second step of the sign-in (the QR code to scan, the recovery codes shown once) */
.tfa-qr { display: flex; justify-content: center; margin: 14px 0; }
.tfa-qr svg { width: 220px; height: auto; max-width: 100%; }
.tfa-secret { margin: 0 0 8px; font-size: .9rem; }
.tfa-secret code, .tfa-codes code { font-size: .95rem; letter-spacing: .04em; word-break: break-all; }
.tfa-codes { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }

/* console: switches of the modules in columns, the packages one under another */
.checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; margin: 6px 0 4px; }
.checks-grid .chk { margin: 0; }
.chk.pkg { align-items: flex-start; margin-top: 10px; }

/* console, an instance's domains: the name on top, its buttons under it, so a narrow card never cuts them off */
.domains, .domains tbody, .domains tr, .domains td { display: block; }
.domains tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
.domains td, .domains td:last-child:not(:first-child) { width: auto; padding: 2px 0; border: 0; text-align: left; white-space: normal; }
.domains td:last-child form.inline { display: inline; }
.domains td:last-child .btn { margin: 4px 4px 0 0; }

/* "Dane w bazie FPL" on a cat's card (screens/cats/FplCheck.vue) */
.fpl { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 4px; background: var(--surface); }
.fpl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fpl-head small { display: block; color: var(--muted); }
.fpl .flash { margin: 12px 0 0; }
.fpl-body { margin-top: 12px; border-top: 1px solid var(--line); }
.fpl-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fpl-row small, .fpl-row s, .fpl-note { color: var(--muted); }
.fpl-row span { overflow-wrap: anywhere; }
.fpl-ok { margin: 10px 0 0; color: var(--forest); font-size: .86rem; }
.fpl-note { margin: 4px 0 0; font-size: .8rem; }
/* the free account's choice on konto.breederdeck.com (Admin.SignUp.cs): own animal or a cattery */
.signup-kind { border: 0; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.signup-kind .chk { align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); border-radius: 12px; text-align: left; }
.signup-kind .chk input { margin-top: 4px; }
.signup-kind .chk:has(input:checked) { border-color: var(--forest); background: var(--forest-soft); }
.signup-kind small { color: var(--muted); }

/* the card for the vet (Shell.VetCard.cs): one A4 sheet to print or save as PDF */
.vc-page { background: var(--bg); margin: 0; padding: 16px; color: var(--ink); }
.vc-bar { max-width: 210mm; margin: 0 auto 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.vc-sheet { max-width: 210mm; margin: 0 auto; background: #fff; color: #1d2320; padding: 14mm 14mm 10mm; border-radius: var(--radius); box-shadow: 0 1px 4px rgb(0 0 0 / .08); box-sizing: border-box; }
.vc-head { position: relative; }
.vc-photo { float: right; width: 88px; height: 88px; object-fit: cover; border-radius: 50%; margin: 0 0 8px 12px; }
.vc-kicker { margin: 0; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--forest); font-weight: 600; }
.vc-head h1 { margin: 2px 0 4px; font-size: 1.6rem; line-height: 1.2; }
.vc-head h1 small { font-size: .95rem; font-weight: 400; color: #5b625e; }
.vc-facts { margin: 0 0 8px; color: #3b423e; }
.vc-ids { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 12px; }
.vc-ids div { display: flex; gap: 6px; }
.vc-ids dt { color: #5b625e; }
.vc-ids dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.vc-important { border: 2px solid var(--red); border-radius: 10px; padding: 8px 12px; margin: 0 0 14px; }
.vc-important h2 { margin: 0 0 4px; font-size: 1rem; color: var(--red); }
.vc-important p { margin: 0; }
.vc-none { color: #5b625e; font-style: italic; }
.vc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.vc-part h2 { font-size: .95rem; margin: 0 0 4px; padding-bottom: 3px; border-bottom: 1px solid #d7dcd9; }
.vc-part ul { list-style: none; margin: 0 0 6px; padding: 0; }
.vc-part li { padding: 3px 0; font-size: .88rem; line-height: 1.35; break-inside: avoid; }
.vc-sub { display: block; color: #5b625e; font-size: .8rem; }
.vc-off b, .vc-off { color: var(--red); }
.vc-tag { font-size: .75rem; padding: 0 6px; border-radius: 6px; background: #eef0ef; color: #3b423e; }
.vc-foot { margin-top: 12px; padding-top: 6px; border-top: 1px solid #d7dcd9; font-size: .8rem; color: #5b625e; }
.vc-foot p { margin: 2px 0; }
@media (max-width: 640px) {
  .vc-page { padding: 8px; }
  .vc-sheet { padding: 16px; }
  .vc-grid { grid-template-columns: 1fr; }
}
@media print {
  @page { size: A4; margin: 10mm; }
  .vc-page { background: #fff; padding: 0; }
  .vc-bar { display: none; }
  .vc-sheet { box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
  .vc-grid { grid-template-columns: 1fr 1fr; }
}
/* a long show result wraps under the place instead of squeezing it to one letter a line */
.row .show-result { white-space: normal; max-width: 50%; text-align: right; }
@media (max-width: 640px) { .row:has(.show-result) { flex-wrap: wrap; } .row:has(.show-result) .grow { flex: 1 1 12rem; } .row .show-result { max-width: 100%; text-align: left; } }
