/* KennelPort Site Manager: phone first, readable, large touch targets. Its own
   look (not a breeder's scheme), light and dark: the Lawn palette and fonts under a
   teal header that matches the app icon, square-cornered cards and buttons, status
   in words (docs/Puppy_Parent_Portal_Plan.md section 7.1). Fonts are the site's own
   copies (CSP font-src 'self'). */
@font-face { font-family: "Fraunces"; src: url("/_kp/fonts/fraunces-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/_kp/fonts/mulish-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/_kp/fonts/mulish-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/_kp/fonts/mulish-700.woff2") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Pinyon Script"; src: url("/_kp/fonts/pinyon-script-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root { --bg: #F5F2EA; --surface: #FFFDF8; --ink: #1E1D1A; --muted: #625C51; --line: #DED7C8; --band: #ECE6D8; --accent: #34523C; --accent-ink: #fff; --brass: #7E632A; --head: #034655; --head-ink: #F5F2EA; --head-muted: #A9C9CE; --error: #A3261E; --ok: #3E7A4B; --warn: #8A5A1E; --r: 8px; --rc: 14px; --accent-soft: #E3EADF; --warn-soft: #F3E6D3; --shadow: 0 1px 2px rgba(30,29,26,.06), 0 8px 24px rgba(30,29,26,.08); --f-display: "Fraunces", Georgia, "Times New Roman", serif; --f-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg: #141412; --surface: #1D1C19; --ink: #ECE7DC; --muted: #A9A294; --line: #35332D; --band: #1A1916; --accent: #8FB998; --accent-ink: #0F1A12; --brass: #CFAE66; --head: #0A2A31; --head-ink: #ECE7DC; --head-muted: #8FB0B5; --error: #F08A80; --ok: #86C495; --warn: #E0A65A; --accent-soft: #233127; --warn-soft: #33281A; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--f-body); padding-bottom: env(safe-area-inset-bottom, 0px); }
a { color: var(--accent); }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); background: var(--head); color: var(--head-ink); }
.top .title { display: grid; min-width: 0; }
.top .title small { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--head-muted); line-height: 1.3; }
.top .title b { font: 500 1.15rem/1.2 var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .mark { width: 34px; height: 34px; border-radius: var(--r); display: block; background: #fff; }
.top .back { font-size: 2rem; line-height: 1; text-decoration: none; width: 32px; color: var(--head-ink); }
.top a:focus-visible { outline-color: var(--head-ink); }
main { max-width: 760px; margin: 0 auto; padding: 12px max(10px, env(safe-area-inset-right, 0px)) 32px max(10px, env(safe-area-inset-left, 0px)); display: grid; gap: 10px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; }
h1 { font-size: 1.45rem; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 1.1rem; line-height: 1.25; margin: 0; }
p { margin: 0; }
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rc); padding: 14px; display: grid; gap: 10px; }
.card.status { border: 1.5px solid var(--accent); box-shadow: var(--shadow); }
.card.notice-card { background: var(--band); border-left: 3px solid var(--accent); }
#needs-you { border-left: 3px solid var(--warn); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.error { color: var(--error); font-weight: 600; }
.notice { color: var(--ok); font-weight: 600; }
form { display: grid; gap: 10px; }
form.inline { display: inline; }
label { display: grid; gap: 4px; font-weight: 700; font-size: .84rem; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r); padding: 8px 11px; min-height: 42px; width: 100%; font-size: .95rem; }
textarea { min-height: 92px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, .button { font: inherit; font-weight: 700; font-size: .92rem; letter-spacing: .02em; min-height: 42px; padding: 8px 16px; border-radius: var(--r); border: 1.5px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
button:hover, .button:hover { background: var(--accent); color: var(--accent-ink); }
button.primary, .button.primary { background: var(--accent); color: var(--accent-ink); }
button.primary:hover, .button.primary:hover { filter: brightness(1.08); }
button.link { border: 0; min-height: 44px; padding: 0; background: none; color: var(--accent); text-decoration: underline; font-weight: 600; justify-content: flex-start; letter-spacing: 0; }
button[disabled] { opacity: .5; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.row > * { flex: 1 1 140px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { position: relative; display: grid; gap: 3px; align-content: start; min-height: 88px; padding: 12px; border-radius: var(--rc); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.tile:hover { box-shadow: var(--shadow); }
.tile b { font: 500 1.08rem/1.25 var(--f-display); padding-right: 28px; }
.tile span { font-size: .82rem; color: var(--muted); }
.tile.soon { opacity: .6; }
.tile.off { opacity: .6; border-style: dashed; border-left-color: var(--line); }
.tile .count { position: absolute; top: 10px; right: 12px; font: 500 1.35rem/1 var(--f-display); color: var(--accent); }
.status p:first-child { display: flex; align-items: center; gap: 8px; font-weight: 700; flex-wrap: wrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.live { background: var(--ok); } .dot.suspended { background: var(--error); } .dot.draft { background: var(--warn); }
.offline-note { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 12px 14px; border-radius: var(--r); font-size: .9rem; }
.save-msg { font-weight: 600; }
.save-msg.bad { color: var(--error); }
.hint { display: block; font-weight: 400; font-size: .76rem; line-height: 1.35; color: var(--muted); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
label.check input { width: 22px; height: 22px; min-height: 0; margin-top: 1px; flex: none; accent-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
legend { font-weight: 700; font-size: .9rem; padding: 0; margin-bottom: 6px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px; }
.feature-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.feature-row input:last-child { grid-column: 1 / -1; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.ph-opt { position: relative; display: block; border-radius: var(--r); overflow: hidden; border: 2px solid var(--line); aspect-ratio: 1; font-weight: 400; }
.ph-opt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-opt input { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; min-height: 0; z-index: 1; }
.ph-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.ph-opt.none { display: grid; place-items: center; background: var(--bg); font-size: .8rem; color: var(--muted); text-align: center; padding: 8px; }
.layouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.layouts legend { grid-column: 1 / -1; }
.layout-opt { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 8px 8px; border: 2px solid var(--line); border-radius: var(--r); font-weight: 400; font-size: .8rem; text-align: center; color: var(--muted); }
.layout-opt input { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; min-height: 0; }
.layout-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); color: var(--ink); }
.box { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.box[hidden] { display: none; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.item { display: flex; align-items: stretch; gap: 8px; }
.item > a { flex: 1; display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0; }
.item > a span { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .order { display: flex; gap: 4px; }
.item .order button { min-height: 44px; min-width: 44px; padding: 0; }
.pup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 150px) auto; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.pup a { display: grid; text-decoration: none; color: var(--ink); min-width: 0; }
.pup a span { font-size: .82rem; color: var(--muted); }
.pup .save-msg { grid-column: 1 / -1; }
@media (max-width: 380px) { .pup { grid-template-columns: minmax(0, 1fr) auto; } .pup a { grid-column: 1 / -1; } }
.changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.changes li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.changes li:first-child { border-top: 0; }
.changes a { font-weight: 700; white-space: nowrap; }
.card.danger { border-color: color-mix(in srgb, var(--error) 40%, var(--line)); }
.card.danger button { border-color: var(--error); color: var(--error); }
.card.danger button:hover { background: var(--error); color: var(--surface); }
.share-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.share-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: start; }
.share-card .qr { width: 132px; height: 132px; border-radius: var(--r); background: #fff; }
.share-link { overflow-wrap: anywhere; margin: 4px 0 8px; }
@media (max-width: 380px) { .share-card { grid-template-columns: 1fr; } }
.wl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wl-entry { gap: 8px; } .wl-entry p { margin: 0; }
.wl-entry .row form { flex: 1 1 110px; } .wl-entry .row form button { width: 100%; }
.wl-entry .order { display: flex; gap: 4px; flex: 0 0 auto; } .wl-entry .order button { min-height: 44px; min-width: 44px; padding: 0; }
.ph-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ph-list img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.ph-list .card { padding: 10px; gap: 8px; }
.ph-list form { gap: 6px; }
.item.unread > a b { font-weight: 800; }
.dot-new { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.message { white-space: normal; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: .92rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.answers { margin: 0 0 14px; } .answers dt { color: var(--muted); font-size: .85rem; margin-top: 12px; } .answers dt:first-child { margin-top: 0; } .answers dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.stars { color: #9C7A34; letter-spacing: 2px; }
.q-photo { max-width: 200px; border-radius: var(--r); }
.review-q .row form { flex: 1 1 140px; }
.review-q .row button { width: 100%; }
/* Photo pickers: this record's photos first, the rest folded away, Add photos. */
.ph-head { font-weight: 700; font-size: .9rem; margin-top: 4px; }
.ph-more summary { cursor: pointer; font-weight: 600; color: var(--accent); min-height: 44px; display: flex; align-items: center; }
.ph-more .ph-grid { margin-top: 8px; }
.ph-add { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ph-add input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ph-add .button:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.card.photos .ph-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); display: block; }
/* Photos screen: filters and what each photo is of. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.chip span { color: var(--muted); font-weight: 400; }
.chip.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.chip.on span { color: var(--accent-ink); }
.ph-list .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-list .tag { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px 0 10px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); font-size: .8rem; }
.ph-list .tag button.link { min-height: 32px; min-width: 28px; justify-content: center; text-decoration: none; font-size: 1rem; }
.ph-list .row select { min-width: 0; }
.ph-add .button { position: relative; }
/* Rows that open another screen: a chevron, like the prototype's lists. */
.item > a { position: relative; padding-right: 34px; }
.item > a::after { content: "\203A"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.4rem; line-height: 1; }
.item > a b { font-weight: 700; }
.legend, legend { font-family: var(--f-body); }

/* Icons: tiles and set-up rows carry one, in a soft tinted square (index.js). */
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile .ic { order: -1; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.tile:nth-child(3n+2) .ic { background: var(--warn-soft); color: var(--warn); }
.item > a { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; }
.item > a .ic { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.item > a .ic svg.i { width: 19px; height: 19px; }
.card.status { background: linear-gradient(135deg, var(--surface), var(--accent-soft)); }

/* Long forms in sections (forms.js GROUPS): a heading with an accent mark, short fields
   two to a row, and the on/off settings together at the end as switches. */
.fgroup { display: grid; gap: 10px; }
.fgroup + .fgroup { border-top: 1px solid var(--line); padding-top: 14px; }
.fgroup > h2, .fgroup > summary { font: 600 1.02rem/1.2 var(--f-display); display: flex; align-items: center; gap: 8px; margin: 0; }
.fgroup > h2::before { content: ""; width: 5px; height: 18px; border-radius: 3px; background: var(--accent); flex: none; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.fgrid > * { grid-column: 1 / -1; min-width: 0; }
.fgrid > .f.half { grid-column: auto; }
.fgrid > .f > label, .fgrid > .f > fieldset { height: 100%; }
.switches .fgrid { grid-template-columns: 1fr; gap: 0; background: var(--bg); border-radius: 12px; padding: 2px 12px; }
.switches label.check { flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.switches label.check:last-child { border-bottom: 0; }
.switches label.check input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; cursor: pointer; margin: 0; flex: none; }
.switches label.check input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .2s; }
.switches label.check input:checked { background: var(--accent); }
.switches label.check input:checked::after { transform: translateX(18px); }
.switches label.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
details.fgroup.advanced > summary, details.fgroup.fold > summary { cursor: pointer; color: var(--accent); min-height: 40px; list-style: none; }
details.fgroup.advanced > summary::before, details.fgroup.fold > summary::before { content: "+"; font-family: var(--f-body); font-weight: 800; }
details.fgroup.advanced[open] > summary::before, details.fgroup.fold[open] > summary::before { content: "\2013"; }
@media (prefers-reduced-motion: reduce) { .switches label.check input::after { transition: none; } }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* In a section, a field's hint sits under its input, so inputs side by side line up. */
.fgrid label:not(.check) { display: flex; flex-direction: column; gap: 4px; }
.fgrid label:not(.check) > .hint { order: 2; }

/* One app for the website and the puppy portal (portal plan 7.3): five tabs along
   the bottom on a phone, down the side on a computer. Only on sites with the portal. */
.apptabs { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; background: var(--head); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
.apptabs a { flex: 1; max-width: 120px; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: var(--r); color: var(--head-muted); text-decoration: none; font-size: .72rem; font-weight: 700; }
.apptabs a[aria-current] { background: var(--head-ink); color: var(--head); }
.apptabs svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.tabbed { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.item.going { flex-wrap: wrap; }
.item.going form { flex: 0 0 auto; align-self: center; }
@media (min-width: 900px) {
  .apptabs { top: 0; right: auto; bottom: 0; width: 180px; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 76px 10px 16px; }
  .apptabs a { flex: 0 0 auto; max-width: none; grid-template-columns: 24px 1fr; justify-items: start; align-items: center; gap: 10px; padding: 10px 12px; font-size: .9rem; }
  body.tabbed { padding-bottom: 0; padding-left: 180px; }
}

/* The portal prototype's look for her screens (docs/reference/portal-prototype.html):
   her own header on a site with the portal, the page title on the page, Today's deep
   band, pup cards with a calendar page, Needs you tiles, lists with round photos and
   status pills, and Families' filters. */
:root { --cal: #B5462F; --girl: #A8456F; --girl-soft: #F6E1EA; --boy: #2F6690; --boy-soft: #DDEAF5; --bad-soft: #F6DEDB; --tab-on: #CFE6EA; }
@media (prefers-color-scheme: dark) { :root { --cal: #C9583F; --girl: #E79BBB; --girl-soft: #3A2430; --boy: #8DB8DE; --boy-soft: #1F2C3A; --bad-soft: #3A2220; --tab-on: #1F4A52; } }
.brandhead { gap: 10px; }
.brandhead .brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; color: inherit; text-decoration: none; }
.brandhead .logo { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; background: #fff; color: #1E1D1A; display: grid; place-items: center; }
.brandhead .logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.brandhead .logo .mono { font: italic 500 1rem/1 var(--f-display); letter-spacing: -.02em; }
.brandhead .title b { font-size: 1.05rem; }
.brandhead .title small { display: flex; align-items: center; gap: 4px; order: 2; margin-top: 2px; font-size: .62rem; letter-spacing: .13em; }
.brandhead .title small svg.i { width: 13px; height: 13px; }
.brandhead .hb { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid transparent; color: var(--head-ink); }
.brandhead .hb:hover { border-color: var(--head-muted); }
.brandhead .hb svg.i { width: 26px; height: 26px; }
.pagehead { display: grid; gap: 2px; padding-top: 4px; }
.pagehead h1, main > h1 { margin: 0; font-size: 1.7rem; }
main > .eyebrow { margin-bottom: -8px; }
.crumb { font-size: .86rem; font-weight: 700; margin: 0; }
.crumb a { text-decoration: none; }
.stack { display: grid; gap: 8px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.between > p { flex: 1 1 14rem; }
.card.band { background: var(--band); border-color: transparent; }
.button.small, button.small { min-height: 36px; padding: 5px 12px; font-size: .82rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.ok { color: var(--ok); } .st.warn { color: var(--warn); } .st.bad { color: var(--error); } .st.next { color: var(--accent); }
.feedline { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; }
.feedline svg.i { width: 15px; height: 15px; }

/* Today: the deep band, edge to edge on a phone. */
.sec.deep { background: var(--head); color: var(--head-ink); padding: 18px max(10px, env(safe-area-inset-left, 0px)) 20px; display: grid; gap: 6px; }
.sec.deep .eyebrow { color: #E9C77E; }
.sec.deep h1 { margin: 0; font-size: 2rem; color: inherit; }
.sec.deep .small, .sec.deep .feedline { opacity: .85; }
.bleed { margin: -12px calc(-1 * max(10px, env(safe-area-inset-left, 0px))) 0; }
@media (min-width: 760px) { .bleed { margin: 0; border-radius: var(--rc); } }

/* Pup cards: a framed round photo, the name in script with a sex badge, the family,
   a calendar page with the pickup time and the vet visit, and Mark picked up. */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pupcard { min-width: 0; display: grid; justify-items: center; align-content: start; gap: 5px; text-align: center; padding: 14px 10px; border-radius: var(--rc); background: var(--surface); border: 1px solid var(--line); }
.round { width: 4.4rem; height: 4.4rem; border-radius: 50%; object-fit: cover; flex: none; }
.round.ph { display: grid; place-items: center; background: var(--band); color: var(--brass); }
.round.ph svg.i { width: 40%; height: 40%; }
.pupcard .round { border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--line); }
.pname { font-family: "Pinyon Script", var(--f-display); font-size: 1.7rem; line-height: 1.05; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; }
.sex { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 700 .85rem/1 var(--f-body); }
.sex.girl { background: var(--girl-soft); color: var(--girl); } .sex.boy { background: var(--boy-soft); color: var(--boy); }
.calrow { display: flex; gap: 10px; align-items: center; text-align: left; }
.calpage { width: 3.4rem; flex: none; border-radius: 10px; overflow: hidden; background: var(--surface); color: var(--ink); text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.18); display: grid; }
.calpage b { background: var(--cal); color: #fff; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; padding: 3px 0; }
.calpage span { font: 500 1.6rem/1.1 var(--f-display); padding-top: 2px; }
.calpage i { font-style: normal; font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.pupcard form { display: block; }
.pupcard .when { display: grid; font-size: .9rem; font-weight: 600; }
.pupcard .when b { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cal); }
.pupcard .st { white-space: normal; }
main { overflow-x: clip; }

/* Needs you: small tiles, an icon in a tinted square, red or amber when it's late. */
.needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 8px; }
#needs-you.stack { border-left: 0; }
.need { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 11px; border-radius: var(--rc); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.need:hover { box-shadow: var(--shadow); }
.need .ic { grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.need.warn .ic { background: var(--warn-soft); color: var(--warn); }
.need.bad .ic { background: var(--bad-soft); color: var(--error); }
.need b { font-size: .86rem; line-height: 1.2; }
.need span:last-child { font-size: .76rem; color: var(--muted); line-height: 1.25; }
.cols { display: grid; gap: 10px; }
@media (min-width: 1100px) { .cols { grid-template-columns: 3fr 2fr; align-items: start; } }

/* Lists with round photos and a status pill (Families, vet visits, activity). */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1 1 11rem; min-width: 0; }
.list .round { width: 2.8rem; height: 2.8rem; }
.list a.rowlink { color: inherit; text-decoration: none; }
.list a.rowlink:hover b { text-decoration: underline; }
.tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 20px; background: var(--band); color: var(--brass); margin: 4px 4px 0 0; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters a { font-weight: 700; font-size: .84rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 20px; padding: 7px 14px; text-decoration: none; }
.filters a[aria-current] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.apptabs a[aria-current] { background: var(--tab-on); color: var(--head); }
@media (prefers-color-scheme: dark) { .apptabs a[aria-current] { color: var(--head-ink); } }

/* The owner's site builder (docs/Site_Builder_Plan.md; builder.js), from the site
   builder prototype: the Admin pill in a teal header, Every site as tiles, the
   editor beside a phone preview of the breeder's site, status cards, timing rows
   with their defaults, and the pinned action bar to save. */
body.admin .adminhead .brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; color: inherit; text-decoration: none; }
body.admin .adminhead .title small { display: flex; align-items: center; gap: 4px; order: 2; margin-top: 2px; }
body.admin .adminhead .title small svg.i { width: 13px; height: 13px; }
body.admin .adminhead .logo { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; }
body.admin .adminhead .kp { color: #034655; font: 600 .95rem/1 var(--f-display); }
body.admin .adminpill { flex: none; font: 800 .6rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; background: #E8B04A; color: #2B1E05; padding: 5px 9px; border-radius: 20px; }
body.admin .button.onfill { display: inline-flex; align-items: center; gap: 6px; background: var(--head-ink); color: var(--head); border-color: var(--head-ink); }
body.admin .button.onfill svg.i { width: 17px; height: 17px; }
body.admin .apptabs.adm .lbl, body.admin .apptabs.adm .site, body.admin .apptabs.adm .lg { display: none; }
@media (min-width: 900px) {
  body.admin .apptabs.adm .sm { display: none; }
  body.admin .apptabs.adm .lg { display: inline; }
  body.admin .apptabs.adm .lbl { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--head-muted); padding: 14px 12px 4px; }
  body.admin .apptabs.adm .site { display: block; padding: 2px 12px 10px; color: var(--head-ink); font: 500 1rem/1.2 var(--f-display); }
  body.admin .apptabs.adm .site small { display: block; font: 600 .72rem var(--f-body); color: var(--head-muted); margin-top: 2px; }
  /* As the prototype: the header across the top, the nav down the side under it. */
  body.admin { padding-left: 0; }
  body.admin .apptabs { top: calc(60px + env(safe-area-inset-top, 0px)); width: 210px; padding: 14px 10px 16px; gap: 2px; z-index: 4; }
  body.admin main { margin: 0 0 0 210px; max-width: 1040px; padding: 22px 28px 90px; }
}
body.admin .bento.builder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { body.admin .bento.builder { grid-template-columns: repeat(4, minmax(0, 1fr)); }  }
body.admin .bento.builder .tile { padding: 13px; gap: 6px; min-height: 0; }
body.admin .bento.builder .s2 { grid-column: span 2; }
body.admin .bento.builder h2 { font-size: 1.15rem; padding-right: 0; }
body.admin .bento.builder .eyebrow { color: var(--brass); font-size: .66rem; }
body.admin .bento.builder .meta { font-size: .78rem; color: var(--muted); }
body.admin .tile.green { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
body.admin .tile.green .eyebrow, body.admin .tile.green .meta { color: inherit; opacity: .88; }
body.admin .tile.band { background: var(--band); border-color: transparent; }
body.admin .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--accent); flex: none; }
body.admin .ico svg.i, body.admin .ico .ic svg.i { width: 24px; height: 24px; }
body.admin .build { display: grid; gap: 10px; align-items: start; }
@media (min-width: 1100px) { body.admin .build { grid-template-columns: minmax(0, 1fr) 21.5rem; } body.admin .build > .pvwrap { position: sticky; top: 76px; }  }
body.admin .twocol { display: grid; gap: 10px; }
@media (min-width: 720px) { body.admin .twocol { grid-template-columns: 1fr 1fr; align-items: start; }  }
body.admin .status-card .switches { background: var(--bg); border-radius: 12px; padding: 0 12px; }
body.admin .status-card .switches label.check { padding: 9px 0; font-size: .86rem; }
body.admin .stcode { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.admin .code { font: 600 .78rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--band); color: var(--ink); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
body.admin .spill { display: inline-block; justify-self: start; font-size: .62rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
body.admin .spill.green { background: var(--accent); color: var(--accent-ink); }
body.admin .spill.brass { background: var(--surface); color: var(--brass); box-shadow: inset 0 0 0 1.5px var(--brass); }
body.admin .spill.plain { background: var(--band); color: var(--muted); }
body.admin button.link.small { min-height: 32px; font-size: .82rem; }
body.admin .fld { display: grid; gap: 4px; }
body.admin .fldt { font-weight: 700; font-size: .84rem; }
body.admin .seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--accent); border-radius: 40px; overflow: hidden; }
body.admin .seg label { display: block; position: relative; margin: 0; }
body.admin .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
body.admin .seg span { display: block; text-align: center; font-weight: 800; font-size: .8rem; color: var(--accent); padding: 9px 6px; cursor: pointer; }
body.admin .seg input:checked + span { background: var(--accent); color: var(--accent-ink); }
body.admin .seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -4px; }
body.admin .chg { font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--warn); }
body.admin .inl { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; gap: 6px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
body.admin .inl:last-child { border-bottom: 0; }
body.admin .inl input { min-height: 38px; padding: 5px 8px; text-align: right; }
body.admin .inl .lab { display: block; font-weight: 700; font-size: .9rem; }
body.admin .inl .lab small { display: block; font-weight: 600; color: var(--muted); font-size: .76rem; }
body.admin .inl .dfl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .76rem; color: var(--muted); }
/* The phone preview: the breeder's Puppies page, drawn small with the site's rules. */
body.admin .pvwrap { display: grid; gap: 6px; justify-items: center; scroll-margin-top: 76px; }
body.admin .pvwrap .cap { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
body.admin .phone { width: 100%; max-width: 21.5rem; border: 7px solid #2B2A27; border-radius: 30px; background: var(--bg); overflow: hidden; box-shadow: var(--shadow); }
body.admin .phone .scr { height: 34rem; overflow-y: auto; overscroll-behavior: contain; font-size: .8rem; }
body.admin .pv-url { background: #2B2A27; color: #CFC9BC; font: 600 .66rem/1 var(--f-body); padding: 3px 11px 7px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.admin .pv-top { background: var(--surface); border-bottom: 1px solid var(--line); padding: 9px 11px 7px; position: sticky; top: 0; z-index: 2; }
body.admin .pv-top .nm { font: 500 .98rem/1.1 var(--f-display); }
body.admin .pvb { padding: 13px 12px; display: grid; gap: 7px; }
body.admin .pvb + .pvb { border-top: 1px solid var(--line); }
body.admin .pvb.sand { background: var(--band); border-top-color: transparent; }
body.admin .pvb h3 { font: 500 1.05rem/1.15 var(--f-display); margin: 0; }
body.admin .pvb .eyebrow { font-size: .58rem; }
body.admin .pvb.ghost { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(127,127,127,.07) 8px 16px); color: var(--muted); font-size: .72rem; font-weight: 700; text-align: center; }
body.admin .pvg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
body.admin .pvc { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; display: grid; align-content: start; }
body.admin .pvc .ph { display: block; aspect-ratio: 4 / 3; background: var(--band) center / 30% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239C7A34' stroke-width='1.2' stroke-linecap='round'%3E%3Ccircle cx='6' cy='10' r='2'/%3E%3Ccircle cx='10' cy='6' r='2'/%3E%3Ccircle cx='14' cy='6' r='2'/%3E%3Ccircle cx='18' cy='10' r='2'/%3E%3Cpath d='M12 12c-3 0-6 4-6 6.5 0 1.5 1.5 2 3 1.6 1.2-.3 2-.6 3-.6s1.8.3 3 .6c1.5.4 3-.1 3-1.6C18 16 15 12 12 12z'/%3E%3C/svg%3E"); }
body.admin .pvc .t { padding: 6px 7px 7px; display: grid; gap: 3px; font-size: .7rem; }
body.admin .pvc .t b { font: 500 .9rem/1.1 var(--f-display); display: flex; align-items: center; gap: 5px; }
body.admin .pvc .t .sex { width: 18px; height: 18px; font-size: .7rem; }
body.admin .pvc .t .price { font-weight: 800; }
body.admin .pvc .t .lnk { color: var(--accent); font-weight: 800; font-size: .66rem; }
body.admin .pv-foot { background: var(--head); color: var(--head-muted); font-size: .64rem; padding: 11px 12px 16px; display: grid; gap: 4px; }
body.admin .pv-foot b { color: var(--head-ink); font-family: var(--f-display); font-weight: 500; font-size: .85rem; }
/* The pinned action bar, above the tabs on a phone. */
body.admin .actionbar { position: fixed; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 5; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.08); }
body.admin .actionbar .in { max-width: 1180px; margin: 0 auto; display: flex; gap: 10px; align-items: center; padding: 7px max(10px, env(safe-area-inset-right, 0px)) 7px max(10px, env(safe-area-inset-left, 0px)); }
body.admin .actionbar .ico { width: 40px; height: 40px; background: var(--head); color: var(--head-ink); }
body.admin .actionbar .ico .ic { display: grid; }
body.admin .actionbar p { flex: 1; min-width: 0; font-size: .8rem; line-height: 1.25; color: var(--muted); }
body.admin .actionbar p b { display: block; font: 600 .98rem/1.15 var(--f-display); color: var(--ink); }
body.admin .actionbar .button, body.admin .actionbar button { flex: none; }
body.admin main { padding-bottom: 150px; }
@media (min-width: 900px) { body.admin .actionbar { left: 210px; bottom: 0; } body.admin main { padding-bottom: 90px; }  }
@media (min-width: 1100px) { body.admin .actionbar .seeit { display: none; }  }
@media (max-width: 420px) { body.admin .actionbar p { font-size: 0; } body.admin .actionbar p b { font-size: .95rem; }  }
body.admin .fgrid > .half { grid-column: auto; }
@media (max-width: 380px) { body.admin .fgrid > .half { grid-column: 1 / -1; }  }
body.admin .pvc .spill { white-space: normal; text-align: center; }
/* The Dogs page's filter, litter cards and the From KennelOS panel, in the preview. */
body.admin .pv-chips { display: flex; gap: 5px; flex-wrap: wrap; }
body.admin .pv-chips span { font-size: .66rem; font-weight: 700; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 3px 9px; }
body.admin .pv-chips span.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
body.admin .pv-litter { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; }
body.admin .pv-litter b { font: 500 .95rem/1.15 var(--f-display); }
body.admin .pv-litter dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: .7rem; }
body.admin .pv-litter dt { color: var(--muted); } body.admin .pv-litter dd { margin: 0; font-weight: 700; }
body.admin .pv-litter .lnk { color: var(--accent); font-weight: 800; font-size: .66rem; }
body.admin .code.big { font-size: 1rem; padding: 8px 10px; align-self: start; justify-self: start; }
body.admin .hl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
body.admin .hl + .hl { border-top: 1px solid var(--line); padding-top: 12px; }
body.admin .hl li > div { display: grid; grid-template-columns: 2.6rem 1fr; gap: 10px; align-items: center; }
body.admin .hl li > div > span:last-child { display: grid; gap: 2px; justify-items: start; }
body.admin .hl .badge { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; }
body.admin .hl .badge svg.i { width: 1.3rem; height: 1.3rem; }
body.admin .hl b { font: 500 1rem/1.2 var(--f-display); }
body.admin .card.landing { width: 100%; max-width: 21.5rem; }
body.admin .list select.place { width: auto; min-width: 11rem; flex: 0 1 13rem; }
@media (min-width: 1100px) { body.admin .build.solo { grid-template-columns: minmax(0, 1fr); }  }

/* Site builder, step 2: pages as blocks (docs/reference/site-builder-prototype.html:
   movable rows, chips, the result line, the phone sketch of a page). Admin only. */
body.admin .mvl { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
body.admin .mvr { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: .55rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .5rem .55rem; }
body.admin .mvr.item { grid-template-columns: auto minmax(0, 1fr) auto; padding: .35rem .55rem; }
body.admin .mvr.off { background: var(--bg); }
body.admin .mvr.off .ttl { color: var(--muted); }
body.admin .mvr .ttl { font-weight: 700; font-size: .92rem; min-width: 0; overflow-wrap: anywhere; }
body.admin .mvr .ttl small { display: block; font-weight: 600; font-size: .76rem; color: var(--muted); }
body.admin .mvr .ico { width: 2.3rem; height: 2.3rem; border-radius: 10px; }
body.admin .mvr .ico svg.i { width: 1.25rem; height: 1.25rem; }
body.admin .mvr.data .ico { background: var(--head); color: var(--head-ink); }
body.admin .mvr .end { display: flex; gap: .3rem; align-items: center; }
body.admin .mvr .end.switches label.check { padding: 0; border: 0; }
body.admin .mv { display: grid; gap: 3px; }
body.admin .mv button, body.admin .ib { width: 2.25rem; height: 1.55rem; display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg); color: var(--accent); border-radius: 6px; cursor: pointer; padding: 0; min-height: 0; }
body.admin .mv button:disabled { color: var(--line); cursor: default; }
body.admin .ib { height: 2.25rem; border-radius: 50%; }
body.admin .mv svg.i, body.admin .ib svg.i { width: 1rem; height: 1rem; stroke-width: 2.2; }
body.admin .mvr > .set { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: .7rem; margin-top: .1rem; display: grid; gap: .9rem; }
body.admin .mvr > .set .mvr { background: var(--bg); }
body.admin .kos-tag { display: inline-flex; align-items: center; gap: .25rem; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--head); background: var(--accent-soft); padding: 2px 6px; border-radius: 4px; vertical-align: 1px; }
body.admin .kos-tag svg.i { width: .8rem; height: .8rem; }
:root[data-theme="dark"] body.admin .kos-tag { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.admin .kos-tag { color: var(--accent); } }
body.admin .result { font-size: .82rem; background: var(--accent-soft); color: var(--ink); border-radius: 10px; padding: .5rem .7rem; margin: 0; }
body.admin .result b { color: var(--accent); }
body.admin .result.none { background: var(--warn-soft); }
body.admin .result.none b { color: var(--warn); }
body.admin .chips { display: flex; flex-wrap: wrap; gap: .35rem; }
body.admin .chips label { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; border: 1.5px solid var(--line); border-radius: 20px; padding: .35rem .7rem; cursor: pointer; margin: 0; }
body.admin .chips label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
body.admin .chips input { width: 1rem; height: 1rem; min-height: 0; margin: 0; accent-color: var(--accent); }
body.admin .addblock { background: var(--bg); border-radius: 12px; padding: .7rem .8rem; display: grid; gap: .5rem; }
body.admin .addblock .list .ico { width: 2.3rem; height: 2.3rem; border-radius: 10px; flex: none; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
body.admin .mvr .ico { background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
body.admin .list.pages .go { color: var(--accent); font-size: 1.3rem; }
body.admin .link.danger { color: var(--error); display: inline-flex; gap: .3rem; align-items: center; }
body.admin .pvb.deep { background: var(--head); color: var(--head-ink); border-top-color: transparent; }
body.admin .pvb.deep .eyebrow { color: #E9C77E; }
body.admin .pvg.slide { display: flex; overflow-x: auto; scrollbar-width: none; }
body.admin .pvg.slide > * { flex: 0 0 44%; }
body.admin .pvc.light { background: transparent; border-style: dashed; }
body.admin .pvc.flip { position: relative; }
body.admin .pvc.flip::after { content: "\21BB"; position: absolute; top: .3rem; right: .35rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: rgba(255,255,255,.85); color: #1F3A2A; display: grid; place-items: center; font-size: .7rem; font-weight: 800; }
body.admin .pv-hero { position: relative; min-height: 9rem; display: flex; align-items: flex-end; background: #222; }
body.admin .pv-hero .ph { position: absolute; inset: 0; background: #3A3833; }
body.admin .pv-hero div { position: relative; padding: 2rem .75rem .7rem; width: 100%; color: #fff; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.7)); }
body.admin .pv-hero h3 { font: 500 1.15rem/1.1 var(--f-display); margin: 0; }
body.admin .pv-hero .eyebrow { color: #F2DFAE; font-size: .58rem; }
body.admin .pv-hero .script { display: block; color: #F2DFAE; font: italic 1.1rem var(--f-display); }
body.admin .pv-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; text-align: center; }
body.admin .pv-facts div { background: var(--surface); border-radius: 8px; padding: .4rem .2rem; font-size: .62rem; font-weight: 700; color: var(--muted); }
body.admin .pv-facts b { display: block; font: 500 1rem/1 var(--f-display); color: var(--ink); }
body.admin .pv-row { display: flex; justify-content: space-between; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .55rem; font-size: .72rem; }
body.admin .pv-row b { font-family: var(--f-display); font-weight: 500; font-size: .86rem; }
body.admin .pv-row.pv-built { justify-content: center; align-items: center; color: var(--muted); }
body.admin .pv-row.pv-built .i { width: 14px; height: 14px; }
body.admin .pv-row .stars { color: var(--brass); }
body.admin .pv-q { border-bottom: 1px solid var(--line); padding: .4rem 0; display: flex; justify-content: space-between; gap: .4rem; font: 500 .8rem/1.2 var(--f-display); }
body.admin .pv-q::after { content: "+"; font-family: var(--f-body); color: var(--accent); font-weight: 800; }
body.admin .pv-pill { justify-self: start; background: #FFF8EC; color: #1F3A2A; border-radius: 20px; padding: .35rem .8rem; font-size: .7rem; font-weight: 800; }
body.admin .pvb .ph { display: block; aspect-ratio: 4 / 3; background: var(--band); border-radius: 6px; }
body.admin .pvb.sand .ph { background: var(--surface); }
body.admin .lines { display: grid; gap: 5px; align-content: center; }
body.admin .lines i { display: block; height: 6px; border-radius: 3px; background: var(--line); }
body.admin .lines i:last-child { width: 60%; }
body.admin .switches.boxed { background: var(--bg); border-radius: 12px; padding: 0 12px; }
body.admin .mvr > .set .switches.boxed { background: var(--surface); }
/* Numbered steps (the prototypes' .numsteps): New page's two steps. */
body.admin .numsteps { list-style: none; margin: 0; padding: 0; display: grid; }
body.admin .numsteps li { display: grid; grid-template-columns: 3.1rem 1fr; gap: .8rem; position: relative; padding-bottom: 1.1rem; }
body.admin .numsteps li:last-child { padding-bottom: 0; }
body.admin .numsteps li:not(:last-child)::before { content: ""; position: absolute; left: 1.5rem; top: 3.2rem; bottom: .25rem; width: 2px; background: var(--accent); opacity: .45; }
body.admin .numsteps .num { width: 3rem; height: 3rem; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 1.45rem/1 var(--f-display); border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%; transform: rotate(-4deg); }
body.admin h2.mt { margin-top: 1.1rem; }
/* A block KennelPort added, on the breeder's page screens: its icon and name, its switch. */
.card.added .added-h { display: flex; align-items: center; gap: .5rem; margin: 0; }
.card.added .added-h .ic { width: 2rem; height: 2rem; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.card.added .added-h .i { width: 1.1rem; height: 1.1rem; }
.card.added .switches label.check { padding: 4px 0; border-bottom: 0; font-weight: 600; font-size: .86rem; }
.card.added.off { background: var(--band); }
/* The owner's wording list (Site Manager wording, Her instructions). */
body.admin .wlines > li { display: block; padding: .8rem 0; }
body.admin .wlines label { display: grid; gap: 6px; }
body.admin .wlines .where { font-size: .9rem; }
body.admin .wlines li.on input, body.admin .wlines li.on textarea { border-color: var(--accent); }
/* A photo spot (forms.js photoSlot): only the photo that's there, at its box's shape,
   with Replace and Remove; several show small. And the photo library window
   (photos.js, screens.js libraryHtml): the prototype's dialog, full screen on a phone,
   rows folded until opened, the pinned bar at the bottom (decision 20). */
.ph-slot .ph-cur { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ph-slot:not(.many) .ph-cur img, .ph-slot .ph-none { width: 168px; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); display: block; border: 1px solid var(--line); }
.ph-slot.tall:not(.many) .ph-cur img, .ph-slot.tall .ph-none { width: 128px; aspect-ratio: 4 / 5; }
.ph-slot.square:not(.many) .ph-cur img, .ph-slot.square .ph-none { width: 140px; aspect-ratio: 1; }
.ph-slot .ph-none { display: grid; place-items: center; border: 2px dashed var(--line); color: var(--muted); font-size: .8rem; text-align: center; padding: 8px; }
.ph-slot.many .ph-cur img { width: 58px; height: 58px; object-fit: cover; border-radius: var(--r); display: block; }
.ph-slot.many .ph-none { width: auto; aspect-ratio: auto; padding: 14px; }
.ph-slot .ph-more-n { font-size: .8rem; color: var(--muted); padding: 0 6px; }
.ph-slot .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.ph-slot .row > button { width: auto; flex: 0 0 auto; min-width: 128px; }
.ph-slot .row > button.link { min-width: 0; }
.ph-slot [hidden], .lib [hidden] { display: none !important; }
dialog.lib-dlg { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line); border-radius: var(--rc); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog.lib-dlg::backdrop { background: rgba(0, 0, 0, .4); }
.lib { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 0; max-height: calc(100dvh - 42px); }
.lib-top { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.lib-top [role=status] { flex-basis: 100%; }
.lib-top label.button { position: relative; overflow: hidden; }
.lib-top label.button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.lib .seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--accent); border-radius: 40px; overflow: hidden; }
.lib .seg label { display: block; position: relative; margin: 0; }
.lib .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.lib .seg span { display: block; text-align: center; font-weight: 800; font-size: .8rem; color: var(--accent); padding: 9px 6px; cursor: pointer; }
.lib .seg input:checked + span { background: var(--accent); color: var(--accent-ink); }
.lib .seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -4px; }
.lib[data-mode=one] [data-for=many], .lib[data-mode=many] [data-for=one] { display: none; }
.lib-rows { overflow-y: auto; min-height: 120px; flex: 1 1 auto; margin-inline: -14px; padding-inline: 14px; }
.lib-row { border-bottom: 1px solid var(--line); }
.lib-row summary { display: flex; align-items: center; gap: 10px; padding: 12px 2px; cursor: pointer; list-style: none; }
.lib-row summary::-webkit-details-marker { display: none; }
.lib-row summary::before { content: "›"; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .15s; }
.lib-row[open] summary::before { transform: rotate(90deg); }
.lib-row summary b { flex: 1; font-weight: 700; }
.lib-row summary .n { font-size: .8rem; color: var(--muted); background: var(--band); border-radius: 20px; padding: 1px 9px; }
.lib-row[data-unused] summary b { color: var(--muted); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; padding: 2px 0 14px; }
.lib-ph { position: relative; padding: 0; border: 2px solid transparent; border-radius: var(--r); aspect-ratio: 1; overflow: hidden; background: var(--band); cursor: pointer; min-height: 0; }
.lib-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-ph[aria-pressed=true] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.lib-ph[aria-pressed=true]::after { content: "✓"; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .8rem; }
.lib-bar { position: sticky; bottom: 0; display: flex; gap: 14px; align-items: center; justify-content: flex-end; margin-inline: -14px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.06); }
.lib-bar [data-lib-count] { margin-right: auto; }
@media (max-width: 600px) {
  dialog.lib-dlg { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .lib { height: 100dvh; max-height: none; padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
}

/* The Photos screen (decision 20, step 2): Page photos | Profile photos as links, rows
   folded with a few small previews, a photo chosen by tapping it, and one pinned bar
   with what can be done with the chosen ones; nothing under a photo otherwise. */
.pm-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--accent); border-radius: 40px; overflow: hidden; }
.pm-tabs a { display: block; text-align: center; font-weight: 800; font-size: .82rem; color: var(--accent); padding: 10px 6px; text-decoration: none; }
.pm-tabs a.on { background: var(--accent); color: var(--accent-ink); }
.pm-rows { gap: 0; padding-block: 2px; }
.pm-rows .lib-row:last-child { border-bottom: 0; }
.pm-peek { display: flex; gap: 3px; }
.pm-peek img { width: 30px; height: 30px; object-fit: cover; border-radius: 4px; display: block; }
.pm-row[open] .pm-peek { display: none; }
.pm-ph { display: block; }
.pm-ph input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.pm-ph:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.pm-ph:has(input:checked)::after { content: "✓"; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .8rem; }
.pm-ph:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pm-up { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.pm-up label.button { position: relative; overflow: hidden; }
.pm-up label.button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.pm-up p { flex-basis: 100%; }
.pm-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.1); padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
body:has(.pm-ph input:checked) .pm-bar { display: grid; gap: 10px; }
body:has(.pm-ph input:checked) main { padding-bottom: 150px; }
.pm-bar > * { max-width: 736px; width: 100%; margin-inline: auto; }
.pm-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pm-acts [data-pm-count] { font-weight: 800; margin-right: auto; }
.pm-acts button { width: auto; }
.pm-acts button[aria-expanded=true] { background: var(--accent); color: var(--accent-ink); }
.pm-panel { display: grid; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pm-panel[hidden], .pm-acts [hidden] { display: none !important; }
.pm-panel .row { display: flex; gap: 10px; flex-wrap: wrap; }
button.danger, .button.danger { border-color: var(--error); color: var(--error); }
button.primary.danger { background: var(--error); color: #fff; }
.pm-where { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pm-where li { display: flex; gap: 10px; align-items: center; }
.pm-where img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--r); flex: none; }
/* Above the tabs along the bottom on a phone; beside the tabs down the side on a computer. */
body.tabbed .pm-bar { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { body.tabbed .pm-bar { bottom: 0; left: 180px; } }
.pm-litter { flex-wrap: wrap; gap: 6px; }
.pm-litter img { width: 58px; height: 58px; }
