/* Registered Breeders Only: shared components for the public site and the breeder area. Public-only styles are in trueborn.css. */
:root {
  /* Warm ivory grounds, softened text rather than black, espresso for depth, antique gold for emphasis. */
  --bg: #FBF8F1;
  --surface: #FFFEFA;
  --surface-2: #F3EEE3;
  --ink: #4A453E;
  --text: #6B655C;
  --muted: #958E83;
  --line: #E8E1D3;
  --accent: #2B2620;
  --accent-ink: #FBF8F1;
  --accent-soft: #EFE8DA;
  --espresso: #241F1A;
  --claret: #6A1E2D;
  --gold: #A67C34;
  --gold-soft: #F4EBD8;
  --gold-light: #E7C681;
  /* Tonal bands: sand and stone for quiet sections, umber for the one dark band. */
  --sand: #F2EADC;
  --stone: #E4D8C4;
  --umber: #3A2F27;
  --umber-ink: #5A4B3E;
  /* Sire and dam stay distinguishable but warm: linen-olive and clay-blush. */
  --sire: #ECEADF;
  --dam: #F5E8E0;
  --sire-ink: #5C5A3E;
  --dam-ink: #8A4B3B;
  --ok: #2D6A4A;
  --warn: #9A6212;
  --bad: #A4262C;
  --ok-soft: #E4F0E8;
  --warn-soft: #F8EEDC;
  --bad-soft: #F8E2E2;
  --f-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-ui: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130F; --surface: #1E1A15; --surface-2: #28231C; --ink: #F4EEE2; --text: #D2CABB; --muted: #9F978A; --line: #37312A;
    --accent: #F4EEE2; --accent-ink: #1E1A15; --accent-soft: #2E2820; --espresso: #0F0D0A; --claret: #E3A1AD;
    --gold: #DDB873; --gold-soft: #2E2618; --gold-light: #E7C681;
    --sand: #211C16; --stone: #2F281F; --umber: #0F0C09; --umber-ink: #D9CDBB;
    --sire: #26251B; --dam: #2C1E19; --sire-ink: #CFCB9E; --dam-ink: #E7B4A3;
    --ok: #7FCB9E; --warn: #E5B25D; --bad: #F2867D; --ok-soft: #16291F; --warn-soft: #33281A; --bad-soft: #3A1E1C;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 16.5px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--gold) 60%, transparent); text-underline-offset: 3px; }
/* Larger and lighter rather than bold: confidence without shouting. */
h1, h2 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.03em; color: var(--ink); }
h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.3; text-wrap: balance; margin: 0; letter-spacing: -0.012em; color: var(--ink); }
strong, b { color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.12rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 14px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 28px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mono { font-family: var(--f-mono); font-size: .85em; }
.eyebrow { font-family: var(--f-ui); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--f-ui); font-weight: 600; font-size: 1rem;
  padding: 11px 18px; border-radius: 999px; text-decoration: none; border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  cursor: pointer; line-height: 1.2; transition: transform .12s ease, background .12s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn.sm { padding: 7px 12px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }

/* Forms */
form.inline { display: inline; }
label, .label { font-family: var(--f-ui); font-weight: 600; font-size: .95rem; display: block; margin-bottom: 6px; }
.hint { font-family: var(--f-ui); font-size: .85rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; font-family: var(--f-ui); font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; }
input[type=color] { width: 56px; height: 40px; border: 1.5px solid var(--line); border-radius: 10px; padding: 2px; background: var(--surface); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-family: var(--f-ui); font-weight: 500; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.field { min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.error { color: var(--bad); font-family: var(--f-ui); font-size: .88rem; margin-top: 4px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); }
.hp { position: absolute; left: -9999px; }

/* Flash messages */
.flash { padding: 12px 16px; border-radius: 10px; font-family: var(--f-ui); font-weight: 500; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.bad { background: var(--bad-soft); color: var(--bad); }

/* Cards and tables */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-width: 0; }
.card h2, .card h3 { margin-bottom: 4px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-family: var(--f-ui); font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--surface-2); }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.thumb.ph { display: grid; place-items: center; color: var(--muted); font-family: var(--f-ui); font-weight: 700; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); font-family: var(--f-ui); }
.empty .btn { margin-top: 14px; }

/* Pills */
.pill { display: inline-block; font-family: var(--f-mono); font-size: .72rem; padding: 3px 9px; border-radius: 99px; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.pill.ok, .pill.available { background: var(--ok-soft); color: var(--ok); }
.pill.warn, .pill.reserved, .pill.on_hold, .pill.under_evaluation { background: var(--warn-soft); color: var(--warn); }
.pill.bad, .pill.sold { background: var(--bad-soft); color: var(--bad); }
.pill.sire { background: var(--sire); color: var(--sire-ink); }
.pill.dam { background: var(--dam); color: var(--dam-ink); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs a { font-family: var(--f-ui); padding: 9px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--accent); font-weight: 600; }

/* ---------- Public site ---------- */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { color: var(--accent); }
.site-nav { display: flex; gap: 22px; align-items: center; font-family: var(--f-ui); }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--accent); }
@media (max-width: 820px) { .site-nav a.hide-sm { display: none; } }
.site-foot { padding-block: 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.site-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--muted); font-family: var(--f-ui); font-size: .92rem; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
section.block { padding-block: 84px; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 46em; }
.prose { max-width: 42em; display: grid; gap: 16px; }
.prose h2 { margin-top: 18px; font-size: 1.5rem; }
.page-head { padding-block: 56px 24px; display: grid; gap: 12px; }

.hero { padding-block: 60px 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.credit-note { font-family: var(--f-mono); font-size: .82rem; color: var(--muted); }
.credit-note strong { color: var(--gold); font-weight: 500; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.demo-cert { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(21,38,30,.35); padding: 22px; display: grid; gap: 16px; min-width: 0; margin: 0; }
.demo-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: end; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.demo-head .t { font-family: var(--f-display); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.demo-head .n { font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; line-height: 1.15; }
.demo-head dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 2px 12px; font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }
.demo-head dd { margin: 0; color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { font-family: var(--f-ui); font-size: .88rem; padding: 7px 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--accent); color: var(--accent-ink); }

.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 22px; }
.strip div { font-family: var(--f-ui); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.strip svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
@media (max-width: 760px) { .strip .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.step { padding: 26px 26px 6px 0; display: grid; gap: 10px; align-content: start; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line); }
.step .num { font-family: var(--f-mono); font-size: .8rem; color: var(--gold); }
.step p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } .step, .step + .step { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); } }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; }
.feature { display: grid; gap: 10px; align-content: start; }
.feature .ic { width: 42px; height: 42px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.feature .ic svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

.styles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.style-card { display: grid; gap: 10px; align-content: start; }
.style-card p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .styles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .styles-grid { grid-template-columns: minmax(0, 1fr); } }
.style-thumb { aspect-ratio: 4/3; max-width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 12px; display: grid; grid-template-rows: auto 1fr; gap: 8px; overflow: hidden; }
.style-thumb .th { display: flex; align-items: center; gap: 8px; }
.style-thumb .th i { display: block; height: 7px; border-radius: 14px; background: var(--ink); opacity: .75; width: 45%; }
.style-thumb .th .ph { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); opacity: .55; flex: none; }
.mini { display: grid; grid-template-columns: 1.15fr 1fr .9fr; grid-template-rows: repeat(8, 1fr); position: relative; }
.mini span { background: var(--surface); position: relative; z-index: 1; }
.mini span::after { content: ""; position: absolute; left: 6px; top: 50%; height: 3px; width: 50%; border-radius: 2px; background: var(--muted); opacity: .45; transform: translateY(-50%); }
.mini.table { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mini.table span { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mini.rounded { gap: 3px; }
.mini.rounded span { border-radius: 5px; border: 1px solid var(--line); }
.mini.background span { background: color-mix(in srgb, var(--surface) 72%, transparent); }
.mini .backdrop { position: absolute; inset: 0; z-index: 0; border-radius: 18px; background: radial-gradient(circle at 70% 55%, var(--gold) 0 22%, transparent 60%), radial-gradient(circle at 30% 40%, var(--accent) 0 18%, transparent 55%); opacity: .35; }
.mini.parents span.p { background-image: radial-gradient(circle at 78% 50%, var(--gold) 0 7px, transparent 8px); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: minmax(0, 1fr); } }
.browser { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; min-width: 0; }
.browser .bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser .bar span { margin-left: 10px; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-litters { padding: 20px; display: grid; gap: 12px; }
.mock-litter { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; font-family: var(--f-ui); }
.mock-litter .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); }
.mock-litter .meta { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }

.pricing { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 880px) { .pricing { grid-template-columns: minmax(0, 1fr); } }
.price-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-big strong { font-family: var(--f-display); font-size: 3.6rem; line-height: 1; }
.rules { border-top: 1px solid var(--line); }
.rules div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.rules b { font-family: var(--f-mono); font-weight: 500; white-space: nowrap; }
.calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.calc-out div { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--bg); }
.calc-out small { display: block; font-family: var(--f-mono); font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.calc-out b { font-family: var(--f-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.note { display: grid; gap: 8px; padding-left: 18px; border-left: 2px solid var(--gold); }
.note p { color: var(--muted); }
.cta-band { background: var(--accent); color: var(--accent-ink); }
.cta-band .wrap { padding-block: 72px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 880px) { .cta-band .wrap { grid-template-columns: minmax(0, 1fr); } }
.cta-band h2 { color: var(--accent-ink); }
.cta-band p { opacity: .85; }
.cta-band .eyebrow { color: var(--accent-ink); opacity: .75; }
.cta-band ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; font-family: var(--f-ui); }
.cta-band li::before { content: "✓ "; opacity: .7; }
.cta-band .card { color: var(--ink); }

.auth { min-height: 100%; display: grid; place-items: center; padding-block: 56px; }
.auth .card { width: 100%; max-width: 460px; padding: 30px; }
.auth.wide .card { max-width: 620px; }

/* ---------- Breeder admin panel ---------- */
.app { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { padding: 0 8px; }
.side nav { display: grid; gap: 2px; }
.side nav .grp { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 6px; }
.side nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--f-ui); color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 10px; font-size: .96rem; }
.side nav a:hover { background: var(--surface-2); }
.side nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side nav .adv { display: grid; gap: 2px; }
.side nav .adv summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.side nav .adv summary::-webkit-details-marker { display: none; }
.side nav .adv summary::after { content: "+"; font-size: .9rem; }
.side nav .adv[open] summary::after { content: "−"; }
.side .credits { margin-top: auto; border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-family: var(--f-ui); display: grid; gap: 6px; }
.side .credits b { font-family: var(--f-display); font-size: 1.6rem; line-height: 1; }
.main { min-width: 0; padding: 28px max(20px, env(safe-area-inset-right)) 60px max(20px, env(safe-area-inset-left)); }
.main-inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 24px; }
.page-title { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.page-title h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* Admin viewing the site as a breeder */
.viewing-as { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 9px 16px; background: var(--warn-soft); color: var(--ink); border-bottom: 1px solid var(--warn); font-family: var(--f-ui); font-size: .88rem; text-align: center; }
.viewing-as form { margin: 0; }
.viewing-as button { font: inherit; font-weight: 600; padding: 5px 14px; border-radius: 99px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; }

/* Show/hide slider */
.visibility { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; margin: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { flex: none; width: 50px; height: 28px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:focus-visible + .track { outline: 2px solid var(--gold); outline-offset: 2px; }
.crumbs { font-family: var(--f-ui); font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 20; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .side.open { transform: none; }
  .mobile-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
}
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat small { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat b { display: block; font-family: var(--f-display); font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 18px; }
.photo-row { display: flex; gap: 12px; flex-wrap: wrap; }
.photo-row figure { margin: 0; display: grid; gap: 6px; width: 120px; }
.photo-row img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photo-row .check { font-size: .85rem; }

/* Pedigree editor: a tree of cells, generations left to right. */
.ped-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ped { display: grid; grid-template-columns: repeat(4, minmax(200px, 1fr)); grid-template-rows: repeat(16, auto); min-width: 840px; gap: 4px; padding: 10px; }
.ped-heads { display: grid; grid-template-columns: repeat(4, minmax(200px, 1fr)); min-width: 840px; gap: 4px; padding: 12px 10px 0; }
.ped-heads div { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
.ped .cell { border-radius: 10px; padding: 8px; display: grid; gap: 4px; align-content: center; border: 1px solid transparent; }
.ped .cell.s { background: var(--sire); }
.ped .cell.d { background: var(--dam); }
.ped .cell .who { font-family: var(--f-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; }
.ped .cell.s .who { color: var(--sire-ink); }
.ped .cell.d .who { color: var(--dam-ink); }
.ped .cell input, .ped .cell select { padding: 5px 8px; font-size: .85rem; border-radius: 18px; }
.ped .cell .two { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 4px; }
.ped.compact .cell .extra { display: none; }

/* Certificate preview frame */
.cert-frame { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; overflow-x: auto; }
.cert-frame .sheet { background: #fff; color: #111; width: 1080px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,.12); }

/* Pagination */
.pager { display: flex; gap: 6px; flex-wrap: wrap; font-family: var(--f-ui); }
.pager a, .pager span { padding: 6px 11px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); }
.pager .on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pager .off { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
