/* Registry visual tokens. All new literal palette values live here. */
.registry-app-shell {
 --reg-page:var(--site-bg); --reg-surface:var(--content-bg); --reg-ink:var(--text);
 --reg-light:#ffffff; --reg-dark:#000000; --reg-brand:var(--focus); --reg-on-brand:var(--reg-light); --reg-accent:var(--accent);
 --reg-tint:color-mix(in srgb,var(--reg-brand) 7%,var(--reg-surface));
 --reg-line:color-mix(in srgb,var(--reg-ink) 20%,var(--reg-surface));
 --reg-muted:color-mix(in srgb,var(--reg-ink) 85%,var(--reg-surface));
 --reg-ok-bg:#e6f4e9; --reg-ok-ink:#14532d;
 --reg-pending-bg:#e7effa; --reg-pending-ink:#1e3a5f;
 --reg-warning-bg:#fff3cc; --reg-warning-ink:#654600;
 --reg-danger-bg:#ffede9; --reg-danger-ink:#8c251e;
 --reg-shadow:0 8px 28px color-mix(in srgb,var(--reg-brand) 8%,transparent);
 --reg-radius:16px; --reg-input-radius:10px; --reg-space:8px;
}
html[data-theme="dark"] .registry-app-shell {
 --reg-ok-bg:#123626; --reg-ok-ink:#c5efd6;
 --reg-pending-bg:#152e4c; --reg-pending-ink:#d4e6ff;
 --reg-warning-bg:#3e3015; --reg-warning-ink:#ffe6a1;
 --reg-danger-bg:#421d1b; --reg-danger-ink:#ffcdc4;
}
@media(prefers-color-scheme:dark){html[data-auto-dark="1"]:not([data-theme="light"]):not([data-theme="dark"]) .registry-app-shell {
 --reg-ok-bg:#123626; --reg-ok-ink:#c5efd6;
 --reg-pending-bg:#152e4c; --reg-pending-ink:#d4e6ff;
 --reg-warning-bg:#3e3015; --reg-warning-ink:#ffe6a1;
 --reg-danger-bg:#421d1b; --reg-danger-ink:#ffcdc4;
}}
html.thp-high-contrast .registry-app-shell {
 --reg-page:Canvas; --reg-surface:Canvas; --reg-ink:CanvasText; --reg-muted:CanvasText;
 --reg-brand:CanvasText!important; --reg-on-brand:Canvas!important; --reg-tint:Canvas; --reg-line:CanvasText; --reg-accent:CanvasText;
 --reg-ok-bg:Canvas; --reg-ok-ink:CanvasText; --reg-pending-bg:Canvas; --reg-pending-ink:CanvasText;
 --reg-warning-bg:Canvas; --reg-warning-ink:CanvasText; --reg-danger-bg:Canvas; --reg-danger-ink:CanvasText; --reg-shadow:none;
}
/* Shared standalone workspace; all selectors stay within the Registry shell. */
.registry-app-shell { --registry-ink: #20382c; --registry-line: #dce7de; --registry-green: var(--ds-brand); color: var(--registry-ink); background: #f3f7f4; }
.registry-workspace-frame { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; max-width: 1500px; margin: 28px auto; padding: 0 24px; align-items: start; }
.registry-workspace-menu { position: sticky; top: calc(var(--site-header-height, 110px) + 16px); max-height: calc(100dvh - var(--site-header-height, 110px) - 32px); overflow-y: auto; border: 1px solid var(--registry-line); border-radius: 14px; background: #fff; padding: 14px; }
.registry-workspace-menu > summary { cursor: pointer; font-weight: 700; padding: 8px; }
.registry-workspace-menu > nav { display: block; }
.registry-workspace-menu:not([open]) > nav { display: none; }
.registry-workspace-group { margin: 16px 0; }
.registry-workspace-group h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin: 10px 8px; color: #566b5e; }
.registry-workspace-group a { display: block; padding: 9px 10px; border-radius: 7px; color: var(--registry-ink); text-decoration: none; overflow-wrap: anywhere; }
.registry-workspace-group a:hover, .registry-workspace-group a[aria-current] { background: #e7f1e9; color: #16472d; }
.registry-app-shell a:focus-visible, .registry-app-shell button:focus-visible, .registry-app-shell summary:focus-visible { outline: 3px solid #317952; outline-offset: 3px; }
.registry-app-shell #registry-content { min-width: 0; }
.registry-app-shell #registry-content .content-detail, .registry-app-shell #registry-content .registry-portal { grid-template-columns: minmax(0, 1fr); }
.registry-app-shell #registry-content .grid, .registry-app-shell #registry-content .dashboard-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.registry-app-shell #registry-content .card, .registry-app-shell #registry-content .form, .registry-app-shell #registry-content .grid > *, .registry-app-shell #registry-content .table-wrap { min-width: 0; }
.registry-app-shell #registry-content .toolbar, .registry-app-shell #registry-content .actions { flex-wrap: wrap; }
.registry-app-shell #registry-content p, .registry-app-shell #registry-content code, .registry-app-shell #registry-content label { overflow-wrap: anywhere; }
.registry-app-shell #registry-content .container { width: 100%; max-width: none; padding-left: 0; padding-right: 0; }
.registry-app-shell #registry-content .registry-hero { background: #e5efe7; padding: 28px; border: 1px solid var(--registry-line); border-radius: 16px; margin-bottom: 24px; }
.registry-app-shell #registry-content .registry-hero .container { padding: 0; }
.registry-app-shell .registry-hero h1 { font-size: clamp(26px, 3vw, 42px); color: #203e2c; }
.registry-app-shell .registry-hero .lead { font-size: 16px; line-height: 1.65; max-width: 75ch; }
.registry-app-shell .registry-local-menu { display: none; }
.registry-app-shell #registry-content .card { background: #fff; border: 1px solid var(--registry-line); border-radius: 12px; box-shadow: 0 3px 12px rgb(24 50 34 / 4%); padding: clamp(16px, 2vw, 28px); }
.registry-app-shell #registry-content [id] { scroll-margin-top: calc(var(--site-header-height, 110px) + 16px); }
.registry-app-shell #registry-content .form { background: #fff; border: 1px solid var(--registry-line); border-radius: 12px; padding: 20px; }
.registry-app-shell #registry-content input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .registry-app-shell #registry-content select, .registry-app-shell #registry-content textarea { min-height: 44px; max-width: 100%; border: 1px solid #b8cbbd; border-radius: 8px; background: #fff; color: #20382c; }
.registry-app-shell #registry-content input:focus, .registry-app-shell #registry-content select:focus, .registry-app-shell #registry-content textarea:focus { outline: 2px solid #317952; outline-offset: 1px; }
.registry-app-shell #registry-content .table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--registry-line); border-radius: 8px; }
.registry-app-shell #registry-content table { width: 100%; border-collapse: collapse; }
.registry-app-shell #registry-content th { background: #e8f0ea; color: #243e2c; text-align: left; }
.registry-app-shell #registry-content td, .registry-app-shell #registry-content th { padding: 12px; border-bottom: 1px solid var(--registry-line); }
.registry-app-shell #registry-content tbody tr:nth-child(even) { background: #f7faf8; }
.registry-app-shell .registry-litter-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--registry-line); padding-bottom: 12px; }
.registry-app-shell .registry-litter-tabs a { padding: 9px 14px; border-radius: 8px; background: #e9f0eb; color: #204e33; }
.registry-app-shell .registry-litter-tabs a.active, .registry-app-shell .registry-litter-tabs a[aria-selected=true], .registry-app-shell .registry-litter-tabs a[aria-current=page] { background: var(--ds-brand); color: #fff; }
.registry-app-shell .registry-dashboard-stats { gap: 14px; }
.registry-app-shell .registry-dashboard-stats > * { border: 1px solid var(--registry-line); border-radius: 12px; background: #fff; }
@media (max-width: 1050px) {
    .registry-workspace-frame { grid-template-columns: minmax(0, 1fr); padding: 0 16px; gap: 16px; }
    .registry-workspace-menu { position: static; max-height: none; }
    .registry-workspace-menu:not([open]) > nav { display: none; }
    .registry-workspace-menu[open] > nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
    .registry-app-shell #registry-content .registry-hero { padding: 20px; }
}
@media print {
    .registry-workspace-menu, .registry-app-shell .frontend-header, .site-footer { display: none; }
    .registry-workspace-frame { display: block; margin: 0; padding: 0; }
}

/* Part 6: full-width Registry workspaces, with a two-column species directory exception. */
.registry-app-shell #registry-content form{width:100%;max-width:none;min-width:0;box-sizing:border-box}
.registry-app-shell #registry-content .form,.registry-app-shell #registry-content .stacked-form{grid-template-columns:minmax(0,1fr)}
.registry-app-shell #registry-content .registry-portal,.registry-app-shell #registry-content .content-card-grid,.registry-app-shell #registry-content .grid,.registry-app-shell #registry-content .detail-grid,.registry-app-shell #registry-content .registry-lifecycle-grid,.registry-app-shell #registry-content .weight-stat-grid,.registry-app-shell #registry-content .registry-phenotype-results{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-flow:row}
.registry-app-shell #registry-content .grid>*{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.registry-app-shell #registry-content .registry-mode-card{display:block}
.registry-app-shell #registry-content .registry-mode-card .segmented-control{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.registry-app-shell #registry-content .registry-list-search{display:block;margin:0 0 24px;padding:20px}
.registry-search-row{display:flex;align-items:end;gap:12px}.registry-search-row>label{flex:1;min-width:0}.registry-search-row input{display:block;width:100%;box-sizing:border-box}.registry-search-row button{flex-shrink:0}
.registry-list-filters{margin-top:12px}.registry-list-filters>summary{cursor:pointer;display:list-item;width:max-content;padding:8px 12px;border:1px solid var(--registry-line);border-radius:8px;font-weight:600}
.registry-filter-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:16px 0}.registry-filter-fields label{display:grid;gap:6px}.registry-filter-fields input,.registry-filter-fields select{width:100%;box-sizing:border-box}.registry-filter-fields button{justify-self:start}
.registry-clear-filters{display:inline-block;margin-top:12px}.registry-search-results{list-style:none;padding:0}.registry-search-results>li{padding:12px 0;border-bottom:1px solid var(--registry-line)}
.registry-app-shell #registry-content .registry-species-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.registry-species-photo,.registry-species-placeholder{width:100%;height:220px;object-fit:cover;border-radius:8px;margin-bottom:16px}.registry-species-placeholder{display:grid;place-items:center;background:#edf4ed;color:#668067}.registry-species-placeholder svg{width:92px;height:92px}.registry-species-information h2{margin-top:0}
@media(max-width:1050px){.registry-app-shell #registry-content .registry-species-directory-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:520px){.registry-search-row{display:block}.registry-search-row button{margin-top:10px}.registry-app-shell #registry-content .registry-list-search{padding:16px}}

.registry-app-shell #registry-content .content-card-grid>.card{width:100%;min-inline-size:0;max-inline-size:100%;box-sizing:border-box}


/* Part 7: two standard cards per row, while sections stay stacked. */
.registry-app-shell #registry-content .registry-standard-directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.registry-standard-species{margin-bottom:24px}.registry-standard-section{margin:24px 0}.registry-standard-placeholder{display:grid;place-items:center;min-height:180px;padding:20px;background:#edf4ed;border-radius:8px;text-align:center;color:#354f3b}.registry-standard-directory-grid .registry-standard-image{width:100%;height:220px;object-fit:contain;background:#f4f7f3}.registry-standard-directory-grid code{white-space:normal;overflow-wrap:anywhere}
@media(max-width:1050px){.registry-app-shell #registry-content .registry-standard-directory-grid{grid-template-columns:minmax(0,1fr)}}
/* Part 10: health sections use one full-width column, including evidence panels. */
.registry-app-shell #registry-content .registry-health-stack{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-flow:row;gap:24px;width:100%;min-width:0}
.registry-app-shell #registry-content .registry-health-stack>*{width:100%;min-inline-size:0;max-inline-size:100%;box-sizing:border-box}

/* Public WHS facts: direct cases and relationships remain visually distinct. */
.registry-whs-badge{display:inline-flex;align-items:center;gap:.3rem;background:#fff5d9;color:#604617;border:1px solid #b4944f;border-radius:999px;padding:.15rem .5rem;font-size:.75rem;font-weight:700;line-height:1.4;max-width:100%;cursor:help}
.registry-whs-badge.is-affected{background:#ffe9dd;color:#71340f;border-color:#b76538}
.registry-whs-badge:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.registry-whs-notice{padding:1rem 1.2rem;margin:1rem 0;border:1px solid #b4944f;border-left:4px solid #b4944f;border-radius:12px;background:#fffaf0;color:#493b23}
.registry-whs-notice.is-affected{border-color:#b76538;background:#fff3ec;color:#603719}
.registry-whs-notice p{margin:.45rem 0;max-width:85ch}
.registry-whs-tooltip{position:fixed;z-index:100000;max-width:min(360px,calc(100vw - 24px));padding:.75rem 1rem;border-radius:8px;background:#182b21;color:#fff;box-shadow:0 4px 16px #0004;font-size:.875rem;line-height:1.5;cursor:default}
.registry-whs-tooltip[hidden]{display:none}
html.thp-high-contrast .registry-whs-badge,html.thp-high-contrast .registry-whs-notice{background:#fff;color:#000;border-color:#000}
html.thp-high-contrast .registry-whs-tooltip{background:#000;color:#fff;border:2px solid #fff}
.registry-app-shell { color: var(--ink, #20382c); }
html.thp-high-contrast .registry-app-shell, html.thp-high-contrast .registry-workspace-menu { background: #fff; color: #000; --registry-ink: #000; --registry-line: #000; }
html.thp-high-contrast .registry-workspace-menu a { color: #000; }
html.thp-high-contrast .registry-workspace-menu a:hover, html.thp-high-contrast .registry-workspace-menu a[aria-current] { background: #000; color: #fff; }

.registry-app-shell #registry-content { scroll-margin-top: calc(var(--site-header-height, 110px) + 16px); }

.registry-app-shell { color: var(--text); background: var(--site-bg); }
.registry-workspace-menu { background: var(--content-bg); }
.registry-workspace-group a,.registry-workspace-group h2 { color: var(--text); }
.registry-workspace-group a:hover,.registry-workspace-group a[aria-current] { background: var(--site-bg); color: var(--focus); }

.registry-app-shell #registry-content .card, .registry-app-shell #registry-content .form, .registry-app-shell .registry-dashboard-stats > * { background: var(--content-bg); }

.registry-workspace-group > summary { cursor:pointer; min-height:44px; display:flex; align-items:center; font-weight:700; padding:.5rem; }
.registry-workspace-group > summary:focus-visible,.registry-workspace-group a:focus-visible { outline:2px solid var(--accent,var(--ds-brand)); outline-offset:2px; }
.registry-workspace-group[open] > summary { border-bottom:2px solid var(--accent,var(--ds-brand)); }

.registry-workspace-group > summary::after { content:'›'; margin-left:auto; padding-left:.5rem; }
.registry-workspace-group[open] > summary::after { content:'⌄'; }

/* One shared website-style frame, preserving every existing interaction. */
.registry-app-shell{background:var(--reg-page);color:var(--reg-ink);font-size:max(16px,var(--base-font-size));line-height:1.6}
.registry-app-shell .reg-icon{width:24px;height:24px;flex-shrink:0;vertical-align:middle}
.registry-app-shell .frontend-header{background:var(--reg-brand);color:var(--reg-on-brand);border-bottom:1px solid var(--reg-line);box-shadow:var(--reg-shadow)}
.registry-app-shell .frontend-header .brand-lockup,.registry-app-shell .frontend-header .navigation-item>a,.registry-app-shell .frontend-header .navigation-submenu-toggle,.registry-app-shell .frontend-header .header-icon{color:var(--reg-on-brand)}
.registry-app-shell .frontend-header .header-icon{background:transparent}
.registry-app-shell .frontend-header .navigation-submenu,.registry-app-shell .frontend-header .header-overlay{background:var(--reg-surface);color:var(--reg-ink)}
.registry-app-shell .frontend-header .navigation-submenu .navigation-item>a{color:var(--reg-ink)}
.registry-app-shell .header-registry-badge{border:1px solid currentColor;border-radius:999px;padding:3px 9px;font-size:12px;font-weight:700;background:transparent;color:inherit}
.registry-app-shell .utility-navigation a{border:1px solid currentColor;border-radius:var(--reg-input-radius);padding:6px 10px;color:inherit;font-size:12px}
.registry-app-shell .frontend-header .language-switch-label{color:var(--reg-on-brand)}
.registry-app-shell .frontend-header .language-switch-label:not([aria-current]){opacity:.8}
.registry-app-shell .registry-workspace-frame{gap:24px;margin:24px auto;padding:0 24px}
.registry-app-shell .registry-public-frame{display:block;max-width:none;padding:0;margin:0}
.registry-app-shell .registry-workspace-menu{background:var(--reg-surface);color:var(--reg-ink);border-color:var(--reg-line);border-radius:var(--reg-radius);box-shadow:var(--reg-shadow);padding:10px}
.registry-app-shell .registry-workspace-group{margin:4px 0}
.registry-app-shell .registry-workspace-group>summary{font-size:13px;color:var(--reg-muted);min-height:38px;padding:6px 8px}
.registry-app-shell .registry-workspace-group a{display:flex;gap:9px;align-items:center;min-height:38px;box-sizing:border-box;padding:7px 9px;font-size:14px;line-height:1.45;color:var(--reg-ink);border-radius:10px}
.registry-app-shell .registry-workspace-group a .reg-icon{width:18px;height:18px}
.registry-app-shell .registry-workspace-group a:hover,.registry-app-shell .registry-workspace-group a[aria-current]{background:var(--reg-tint);color:var(--reg-ink);box-shadow:inset 3px 0 var(--reg-accent)}
.registry-app-shell .reg-workspace-topbar{border-bottom:1px solid var(--reg-line);font-size:13px;padding:8px 0 12px;margin-bottom:16px;color:var(--reg-muted)}
.registry-app-shell #registry-content .card,.registry-app-shell #registry-content .form,.registry-app-shell #registry-content .registry-dashboard-stats>.stat{background:var(--reg-surface);color:var(--reg-ink);border:1px solid var(--reg-line);border-radius:var(--reg-radius);box-shadow:var(--reg-shadow);padding:clamp(18px,2vw,28px)}
.registry-app-shell #registry-content h1,.registry-app-shell #registry-content h2,.registry-app-shell #registry-content h3{font-family:var(--heading-font);line-height:1.25;color:var(--reg-ink)}
.registry-app-shell #registry-content h1{font-size:clamp(30px,3.5vw,48px)}
.registry-app-shell #registry-content h2{font-size:clamp(23px,2vw,30px)}
.registry-app-shell #registry-content h3{font-size:20px}
.registry-app-shell #registry-content .card>h2::before{content:'';display:inline-block;width:5px;height:20px;border-radius:3px;margin-right:10px;background:var(--reg-accent);vertical-align:middle}
.registry-app-shell #registry-content .registry-hero{background:var(--reg-tint);color:var(--reg-ink);border-color:var(--reg-line);position:relative;overflow:hidden}
.registry-app-shell #registry-content .registry-hero::after{content:'';position:absolute;right:-40px;top:-50px;width:200px;height:200px;border:28px solid var(--reg-line);opacity:.25;border-radius:50%;pointer-events:none}
.registry-app-shell #registry-content .registry-hero .lead{color:var(--reg-muted);max-width:72ch}
.registry-app-shell #registry-content .button,.registry-app-shell #registry-content button{background:var(--reg-brand);color:var(--reg-on-brand);border:1px solid var(--reg-brand);border-radius:var(--reg-input-radius);min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;box-sizing:border-box}
.registry-app-shell #registry-content .button.secondary,.registry-app-shell #registry-content button.secondary{background:var(--reg-surface);color:var(--reg-ink);border-color:var(--reg-line)}
.registry-app-shell #registry-content .button.ghost{background:transparent;color:var(--reg-ink)}
.registry-app-shell #registry-content input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.registry-app-shell #registry-content select,.registry-app-shell #registry-content textarea{background:var(--reg-surface);color:var(--reg-ink);border:1px solid var(--reg-line);border-radius:var(--reg-input-radius);font:inherit;min-height:44px}
.registry-app-shell #registry-content .form-grid,.registry-app-shell #registry-content form.stack{gap:18px}
.registry-app-shell #registry-content form>h3,.registry-app-shell #registry-content fieldset>legend{border-left:4px solid var(--reg-accent);padding-left:12px;color:var(--reg-ink);font-weight:700}
.registry-app-shell #registry-content form:not(.reg-search-bar)>.actions:last-child{position:sticky;bottom:8px;background:var(--reg-surface);padding:12px;border:1px solid var(--reg-line);border-radius:var(--reg-input-radius);box-shadow:var(--reg-shadow);z-index:5}
.registry-app-shell #registry-content input[aria-invalid=true],.registry-app-shell #registry-content textarea[aria-invalid=true]{border:2px solid var(--reg-danger-ink)}
.registry-app-shell #registry-content .pill{background:var(--reg-tint);color:var(--reg-ink);border:1px solid var(--reg-line);border-radius:999px;padding:4px 9px;font-size:12px;line-height:1.5;display:inline-flex;align-items:center;gap:5px}
.registry-app-shell #registry-content .reg-verified{background:var(--reg-ok-bg);color:var(--reg-ok-ink)}
.registry-app-shell #registry-content .reg-pending{background:var(--reg-pending-bg);color:var(--reg-pending-ink)}
.registry-app-shell #registry-content .registry-whs-badge,.registry-app-shell #registry-content .registry-whs-notice{background:var(--reg-warning-bg);color:var(--reg-warning-ink);border-color:var(--reg-warning-ink)}
.registry-app-shell #registry-content .registry-whs-badge.is-affected,.registry-app-shell #registry-content .registry-whs-notice.is-affected,.registry-app-shell #registry-content .danger-notice{background:var(--reg-danger-bg);color:var(--reg-danger-ink);border-color:var(--reg-danger-ink)}
.registry-app-shell #registry-content .notice{background:var(--reg-pending-bg);color:var(--reg-pending-ink);border:1px solid var(--reg-pending-ink);border-radius:var(--reg-input-radius);padding:14px 18px}
.registry-app-shell #registry-content .notice.success{background:var(--reg-ok-bg);color:var(--reg-ok-ink);border-color:var(--reg-ok-ink)}
.registry-app-shell #registry-content .table-wrap{background:var(--reg-surface);border:1px solid var(--reg-line);border-radius:var(--reg-input-radius)}
.registry-app-shell #registry-content th{position:sticky;top:0;background:var(--reg-tint);color:var(--reg-ink);font-size:13px;font-weight:700;z-index:1}
.registry-app-shell #registry-content td{color:var(--reg-ink)}
.registry-app-shell #registry-content tbody tr:nth-child(even),.registry-app-shell #registry-content tbody tr:hover{background:var(--reg-tint)}
.registry-app-shell #registry-content .registry-litter-tabs a,.registry-app-shell #registry-content .portal-nav a{background:var(--reg-tint);color:var(--reg-ink);text-decoration:none;border:1px solid var(--reg-line);border-radius:10px;min-height:44px;padding:9px 14px}
.registry-app-shell #registry-content .registry-litter-tabs a.active,.registry-app-shell #registry-content .portal-nav a[aria-current]{background:var(--reg-brand);color:var(--reg-on-brand)}
.registry-app-shell #registry-content .registry-list-search{padding:18px;background:var(--reg-tint);border:1px solid var(--reg-line);border-radius:var(--reg-radius);margin-bottom:20px}
.registry-app-shell #registry-content .registry-thumb{width:58px;height:58px;object-fit:cover;border-radius:12px}
.registry-app-shell .reg-animal-placeholder{background:var(--reg-tint);color:var(--reg-brand);min-height:160px;display:grid;place-items:center;border-radius:12px}
.registry-app-shell .reg-animal-placeholder .reg-icon{width:96px;height:96px;opacity:.55}
.registry-app-shell .reg-thumb-placeholder{display:inline-grid;place-items:center;width:58px;height:58px;border-radius:12px;background:var(--reg-tint);color:var(--reg-brand);vertical-align:middle}
.registry-app-shell .reg-profile-banner{display:flex;align-items:center;gap:24px;padding:28px;background:var(--reg-tint);border:1px solid var(--reg-line);border-radius:var(--reg-radius);margin-bottom:24px}
.registry-app-shell .reg-profile-banner h1{margin:0}
.registry-app-shell .reg-profile-photo{width:200px;flex-shrink:0}
.registry-app-shell .reg-profile-photo img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--reg-radius)}
.registry-app-shell #registry-content [data-pedigree-viewport],.registry-app-shell #registry-content .registry-weight-chart{background:var(--reg-surface);border:1px solid var(--reg-line);border-radius:var(--reg-radius);padding:16px}
.registry-app-shell .reg-welcome{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px;margin-bottom:24px;border-radius:var(--reg-radius);background:var(--reg-tint);border:1px solid var(--reg-line)}
.registry-app-shell .reg-welcome h2{margin:8px 0}
.registry-app-shell .reg-quick-actions{display:flex;gap:8px;flex-wrap:wrap;max-width:430px}
.registry-app-shell #registry-content .registry-dashboard-stats>.stat{border-top:3px solid var(--reg-accent);display:flex;flex-direction:column;gap:8px}
.registry-app-shell #registry-content .registry-dashboard-stats strong{font-size:30px;color:var(--reg-ink)}
.registry-app-shell #registry-content .registry-action-center .reg-priority-item{border-left:4px solid var(--reg-warning-ink);background:var(--reg-warning-bg);color:var(--reg-warning-ink)}
.registry-app-shell #registry-content .registry-action-center .reg-priority-item h3{color:inherit}
.registry-app-shell .reg-landing-hero{position:relative;min-height:490px;display:flex;align-items:center;overflow:hidden;background:var(--hero-base);color:var(--hero-ink)}
.registry-app-shell .reg-hero-image,.registry-app-shell .reg-hero-scrim{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.registry-app-shell .reg-hero-scrim{background:color-mix(in srgb,var(--hero-base) calc(var(--hero-opacity)*100%),transparent)}
.registry-app-shell .reg-hero-copy{position:relative;z-index:1;padding-block:64px}
.registry-app-shell #registry-content .reg-hero-copy h1{color:var(--hero-ink);font-size:clamp(36px,5vw,64px);max-width:17ch}
.registry-app-shell .reg-hero-copy .lead{max-width:62ch;color:var(--hero-ink)}
.registry-app-shell .reg-hero-copy .eyebrow{color:var(--hero-ink)}
.registry-app-shell #registry-content .reg-hero-copy .button{background:var(--hero-ink);color:var(--hero-base);border-color:var(--hero-ink)}
.registry-app-shell #registry-content .reg-hero-copy .button.secondary{background:var(--hero-base);color:var(--hero-ink);border-color:var(--hero-ink)}
.registry-app-shell .reg-discover{padding-block:40px 56px}
.registry-app-shell .reg-search-bar{background:var(--reg-surface);padding:22px;border-radius:var(--reg-radius);border:1px solid var(--reg-line);box-shadow:var(--reg-shadow);margin-bottom:28px}
.registry-app-shell .reg-search-bar label{display:block;font-weight:700;margin-bottom:10px}
.registry-app-shell .reg-search-bar>div{display:flex;align-items:center;gap:10px}
.registry-app-shell .reg-search-bar input{flex:1;min-width:0}
.registry-app-shell .reg-highlight-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.registry-app-shell .reg-highlight{background:var(--reg-surface);color:var(--reg-ink);border:1px solid var(--reg-line);border-radius:var(--reg-radius);padding:24px;text-decoration:none;box-shadow:var(--reg-shadow);transition:transform .15s ease,box-shadow .15s ease}
.registry-app-shell .reg-highlight>.reg-icon{width:34px;height:34px;color:var(--reg-brand)}
.registry-app-shell .reg-highlight:hover{transform:translateY(-3px)}
.registry-app-shell .reg-highlight p{color:var(--reg-muted);font-size:15px}
.registry-app-shell .reg-how{background:var(--reg-tint);padding:52px 0}
.registry-app-shell .reg-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;list-style:none;counter-reset:steps;padding:0}
.registry-app-shell .reg-steps li{counter-increment:steps;position:relative;padding-top:54px}
.registry-app-shell .reg-steps li::before{content:counter(steps,decimal-leading-zero);position:absolute;top:0;font-size:28px;font-weight:700;color:var(--reg-brand)}
.registry-app-shell .reg-community{padding:56px 0;background:var(--reg-brand);color:var(--reg-on-brand)}
.registry-app-shell #registry-content .reg-community h2{color:inherit}
.registry-app-shell .reg-live-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-bottom:36px}
.registry-app-shell .reg-live-counts>div{display:flex;flex-direction:column;gap:8px}
.registry-app-shell .reg-live-counts strong{font-size:36px}
.registry-app-shell .reg-live-counts span{font-size:15px}
.registry-app-shell #registry-content .pagination a{border:1px solid var(--reg-line);border-radius:10px;min-height:44px;padding:10px;color:var(--reg-ink)}
.registry-app-shell :focus-visible{outline:3px solid var(--reg-accent);outline-offset:3px}
.registry-app-shell .frontend-header :focus-visible{outline-color:var(--reg-on-brand)}
html.thp-high-contrast .registry-app-shell .reg-hero-image{display:none}
html.thp-high-contrast .registry-app-shell .reg-landing-hero{--hero-base:CanvasText!important;--hero-ink:Canvas!important;--hero-opacity:1!important}
html.thp-high-contrast .registry-app-shell .reg-highlight,html.thp-high-contrast .registry-app-shell .card{box-shadow:none;border:2px solid CanvasText}
@media(max-width:1050px){.registry-app-shell .reg-highlight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.registry-app-shell .reg-welcome{align-items:flex-start;flex-direction:column}.registry-app-shell .registry-workspace-frame{padding:0 16px}.registry-app-shell .registry-public-frame{padding:0}}
@media(max-width:600px){.registry-app-shell .reg-steps,.registry-app-shell .reg-live-counts{grid-template-columns:minmax(0,1fr)}.registry-app-shell .reg-highlight-grid{grid-template-columns:minmax(0,1fr)}.registry-app-shell .reg-profile-banner{flex-direction:column;align-items:stretch;padding:18px}.registry-app-shell .reg-profile-photo{width:100%;max-width:250px}.registry-app-shell .reg-search-bar>div{flex-wrap:wrap}.registry-app-shell .reg-search-bar button{width:100%}.registry-app-shell .reg-hero-copy{padding-block:46px}.registry-app-shell .reg-welcome{padding:20px}.registry-app-shell .registry-workspace-group a{min-height:44px}}
@media(prefers-reduced-motion:reduce){.registry-app-shell .reg-highlight{transition:none;transform:none}}

.registry-app-shell .reg-form-steps{display:flex;gap:12px;list-style:none;counter-reset:reg-form;padding:14px;background:var(--reg-tint);border:1px solid var(--reg-line);border-radius:var(--reg-input-radius);flex-wrap:wrap;color:var(--reg-ink);font-size:13px}
.registry-app-shell .reg-form-steps li{counter-increment:reg-form;display:flex;align-items:center;gap:7px}
.registry-app-shell .reg-form-steps li::before{content:counter(reg-form);display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--reg-brand);color:var(--reg-on-brand);font-weight:700}
.registry-app-shell #registry-content form:not(.reg-search-bar)>button:last-child{position:sticky;bottom:8px;z-index:4;box-shadow:var(--reg-shadow)}
.registry-app-shell .reg-empty{display:flex;align-items:center;gap:12px;padding:20px;background:var(--reg-tint);border:1px dashed var(--reg-line);border-radius:var(--reg-input-radius)}
.registry-app-shell .reg-activity-list{list-style:none;padding:0;margin:0}
.registry-app-shell .reg-activity-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--reg-line)}

.registry-app-shell{font-family:var(--body-font),"Segoe UI",Arial,sans-serif}
.registry-app-shell #registry-content h1,.registry-app-shell #registry-content h2,.registry-app-shell #registry-content h3{font-family:var(--heading-font),Georgia,serif}
.registry-app-shell .frontend-header .navigation-list>.navigation-node.is-current>.navigation-item>a,.registry-app-shell .frontend-header .navigation-list>.navigation-node.is-current-branch>.navigation-item>a{border-bottom-color:var(--reg-on-brand)}
.registry-app-shell .frontend-header .header-registry-badge{display:inline-block}

.registry-app-shell .frontend-header{--header-bg:var(--reg-brand);--focus:var(--reg-on-brand);--text:var(--reg-on-brand);--accent:var(--reg-on-brand)}
.registry-app-shell .frontend-header :is(.navigation-submenu,.header-overlay,.header-admin-dropdown){--focus:var(--reg-brand);--text:var(--reg-ink);--accent:var(--reg-brand);background:var(--reg-surface);color:var(--reg-ink)}
.registry-app-shell .frontend-header .brand-lockup{max-width:270px;min-width:0;flex-shrink:0}
.registry-app-shell .frontend-header .brand-lockup .logo-image{width:165px}
.registry-app-shell .frontend-header .header-registry-badge{flex-shrink:0;white-space:nowrap}
.registry-app-shell .frontend-header .language-slider-label{color:var(--reg-on-brand)}
.registry-app-shell .frontend-header .language-slider-label:not(.is-active){color:var(--reg-on-brand);opacity:1}
.registry-app-shell .frontend-header .header-admin-dropdown a{color:var(--reg-ink)}

.registry-app-shell .reg-breeder-logo{width:90px;height:90px;object-fit:contain;border-radius:var(--reg-input-radius);background:var(--reg-surface);float:right;margin:0 0 16px 20px}
.registry-app-shell .reg-banner-icon{float:right;color:var(--reg-brand);opacity:.2}
.registry-app-shell .reg-banner-icon .reg-icon{width:100px;height:100px}
.registry-app-shell #registry-content .reg-litter-ribbon{background:var(--reg-brand);color:var(--reg-on-brand);border-color:var(--reg-brand)}
.registry-app-shell #registry-content .registry-mode-card{padding:18px}
.registry-app-shell #registry-content .registry-mode-card h2{font-size:24px}
.registry-app-shell #registry-content .registry-mode-card p{margin:8px 0;font-size:14px}
.registry-app-shell #registry-content .registry-mode-card .segmented-control{padding:0;border:0;background:transparent;gap:8px;flex-wrap:wrap}
.registry-app-shell #registry-content .registry-hero .lead{font-size:16px;font-weight:400}
@media(max-width:600px){.registry-app-shell .reg-banner-icon .reg-icon{width:60px;height:60px}.registry-app-shell .reg-breeder-logo{width:64px;height:64px}}

@media(max-width:600px){.registry-app-shell .frontend-header .brand-lockup{max-width:145px;gap:6px}.registry-app-shell .frontend-header .brand-lockup .logo-image{width:80px;max-height:54px}.registry-app-shell .frontend-header .header-registry-badge{font-size:10px;padding:2px 5px}.registry-app-shell .frontend-header .frontend-mainbar{gap:8px}}

.registry-app-shell .registry-public-frame #registry-content .container{max-width:1240px;width:100%;margin-inline:auto;padding-inline:24px}
.registry-app-shell #registry-content .reg-hero-copy .lead{font-weight:400;font-size:18px}
@media(max-width:600px){.registry-app-shell .registry-public-frame #registry-content .container{padding-inline:20px}.registry-app-shell #registry-content .reg-hero-copy .lead{font-size:17px}}

.registry-app-shell #registry-content p,.registry-app-shell #registry-content .lead{color:var(--reg-ink)}
.registry-app-shell #registry-content .reg-hero-copy p,.registry-app-shell #registry-content .reg-community-band p{color:var(--reg-on-brand)}
.registry-app-shell .reg-profile-photo .reg-animal-placeholder{color:var(--reg-muted)}

/* Shared horizontal workspace, native panels and table controls */
.registry-horizontal-workspace{display:block!important;max-width:none!important;padding:0!important}
.registry-horizontal-workspace #registry-content{max-width:1440px;margin:auto;padding:24px}
.registry-horizontal-workspace.registry-public-frame #registry-content{max-width:none;padding:0}
.registry-workspace-bar{position:sticky;top:var(--registry-header-offset,0px);z-index:70;display:flex;align-items:center;gap:8px;background:var(--reg-surface);border-bottom:1px solid var(--reg-line);padding:6px 20px;box-shadow:var(--reg-shadow);isolation:isolate}
.registry-workspace-track{display:flex;align-items:center;gap:4px;flex:1;min-width:0}
.reg-workspace-group{position:relative;display:flex;align-items:center;white-space:nowrap}
.reg-workspace-group>a,.reg-workspace-group>button{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px;color:var(--reg-ink);background:transparent;border:0;border-radius:var(--reg-input-radius);text-decoration:none;font-size:14px}
.reg-workspace-group [aria-current]{border-bottom:3px solid var(--reg-accent);font-weight:700}
.reg-workspace-group>a:hover,.reg-workspace-group>button:hover{background:var(--reg-tint)}
.reg-workspace-panel{display:none;position:absolute;top:100%;left:0;min-width:230px;background:var(--reg-surface);border:1px solid var(--reg-line);border-radius:var(--reg-input-radius);box-shadow:var(--reg-shadow);padding:8px}
.reg-workspace-group.is-open .reg-workspace-panel{display:grid}
.reg-workspace-panel a{padding:10px;color:var(--reg-ink);text-decoration:none;min-height:44px}
.reg-demo-switch{display:flex;gap:2px;flex-wrap:wrap;flex-shrink:0}.reg-demo-switch button{min-height:36px;padding:5px 8px;border:1px solid var(--reg-line);background:var(--reg-surface);color:var(--reg-ink);font-size:12px}.reg-demo-switch [aria-pressed=true]{background:var(--reg-brand);color:var(--reg-on-brand)}
.reg-account-chip{font-size:11px;color:var(--reg-muted);white-space:nowrap}
.reg-fictional-strip{padding:8px 20px;background:var(--reg-warning-bg);color:var(--reg-warning-ink);text-align:center;font-size:14px;border-bottom:1px solid currentColor}
.reg-mobile-menu{display:none}.reg-mobile-workspace[hidden]{display:none!important}.reg-mobile-workspace{position:fixed;inset:var(--registry-header-offset,0px) 0 0;overflow:auto;background:var(--reg-surface);color:var(--reg-ink);z-index:100;padding:20px}.reg-mobile-workspace a{display:block;min-height:44px;padding:10px;color:var(--reg-ink)}
.registry-app-shell .registry-skip-link{position:fixed!important;top:0!important;left:12px;transform:translateY(-150%);z-index:10000}.registry-app-shell .registry-skip-link:focus{transform:none}
.reg-page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.reg-page-heading h1{font-size:clamp(26px,3vw,40px);margin:0}.reg-page-heading p{margin:8px 0}
.reg-form-panel{margin:20px auto;padding:16px;max-width:1240px;border:1px solid var(--reg-line);border-radius:var(--reg-card-radius);background:var(--reg-surface)}.reg-form-panel>summary{cursor:pointer;font-weight:700;min-height:44px;padding:10px}.reg-form-panel>form{margin-top:16px}.reg-form-panel>form>button[type=submit]{position:sticky;bottom:12px;z-index:2;box-shadow:var(--reg-shadow)}
.registry-workspace-bar a:focus-visible,.registry-workspace-bar button:focus-visible,.reg-form-panel summary:focus-visible{outline:2px solid var(--reg-accent);outline-offset:2px}
@media(max-width:1600px){.registry-workspace-bar{flex-wrap:wrap}.registry-workspace-track{overflow-x:auto;flex-basis:100%;order:2}.reg-workspace-panel{position:fixed;top:calc(var(--registry-header-offset,0px) + 100px);left:20px;right:20px;max-height:60vh;overflow:auto}.reg-mobile-menu{display:block;min-height:44px}.reg-account-chip{margin-left:auto}}
@media(max-width:600px){.registry-horizontal-workspace #registry-content{padding:16px}.registry-workspace-bar{padding:4px 12px}.reg-workspace-group>a{font-size:13px}.reg-workspace-group .reg-icon{display:none}.reg-demo-switch button{min-height:44px}.reg-form-panel{margin:12px}.reg-workspace-topbar{font-size:12px}}
@media print{.registry-workspace-bar,.reg-fictional-strip,.reg-form-open{display:none!important}.reg-form-panel:not([open]){display:none}}

.registry-horizontal-workspace{margin:0!important}.registry-app-shell #registry-content .reg-page-heading h1{font-size:clamp(26px,3vw,40px);margin:0}.registry-app-shell #registry-content .reg-page-heading{margin-block:8px 20px}.reg-page-actions{display:flex;justify-content:flex-end;margin-block:12px}.registry-workspace-bar .reg-workspace-group>button{background:transparent;color:var(--reg-ink);border:1px solid var(--reg-line)}

/* Lists start directly after a compact title and primary action. */
.registry-app-shell #registry-content .registry-portal{padding-block:8px 24px;gap:16px}.registry-app-shell #registry-content .reg-page-heading{margin:0}.reg-page-heading .reg-page-actions{margin:0;flex-shrink:0}.reg-workspace-topbar{margin-bottom:8px!important;padding-block:4px 8px!important}.registry-app-shell #registry-content .reg-page-heading p{margin-bottom:0}.registry-app-shell #registry-content .reg-page-actions{min-height:0}.registry-app-shell #registry-content .registry-portal>.card{margin:0}
@media(max-width:600px){.reg-page-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}.reg-account-chip{max-width:150px;overflow:hidden;text-overflow:ellipsis}.reg-form-panel{max-width:100%}}

.registry-app-shell #registry-content .registry-table-scroll table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}.registry-app-shell #registry-content .registry-table-scroll th{white-space:nowrap}.registry-app-shell #registry-content .registry-table-scroll :is(th,td):first-child{min-width:260px}.registry-app-shell #registry-content .registry-table-scroll td{max-width:65ch}.registry-app-shell #registry-content .registry-table-scroll .registry-number{text-align:right}.registry-app-shell #registry-content .registry-list-search{padding:12px;margin-bottom:12px}.registry-list-search:not(:has(.registry-list-filters[open])) .registry-list-filters{display:inline-block;margin-top:8px}.registry-list-search:not(:has(.registry-list-filters[open])) .registry-clear-filters{margin:8px 0 0 12px}
@media print{.registry-app-shell #registry-content .registry-table-scroll table{width:100%;min-width:0}.registry-app-shell #registry-content .registry-table-scroll :is(th,td){min-width:0;max-width:none;white-space:normal}}

/* Workspace controls use surface/text tokens, also with a light dark-mode accent. */
.registry-app-shell .registry-workspace-bar button{background:var(--reg-surface)!important;color:var(--reg-ink)!important;border:1px solid var(--reg-line)}.registry-app-shell .registry-workspace-bar button:hover{background:var(--reg-tint)!important}.registry-app-shell .reg-demo-switch [aria-pressed=true]{border-bottom:3px solid var(--reg-accent);font-weight:800}.registry-app-shell .reg-form-panel .checkbox-label{background:var(--reg-tint);color:var(--reg-ink)}

.reg-form-panel>summary{display:flex;justify-content:space-between;gap:16px}.reg-form-close-label{display:none}.reg-form-panel[open] .reg-form-close-label{display:inline;font-size:14px;font-weight:400;white-space:nowrap}.registry-js .reg-form-panel[open]{position:fixed;inset:calc(var(--registry-header-offset,110px) + var(--registry-workspace-height,110px)) 0 0 auto;width:min(640px,100%);max-width:100%;margin:0;overflow:auto;overscroll-behavior:contain;z-index:65;box-shadow:-12px 0 30px color-mix(in srgb,var(--reg-ink) 15%,transparent);border-radius:0;box-sizing:border-box}.registry-js .reg-form-panel[open]>summary{position:sticky;top:-16px;background:var(--reg-surface);z-index:4}.registry-js .reg-form-panel[open]>.card{margin-top:16px}@media print{.registry-js .reg-form-panel[open]{position:static;overflow:visible;max-height:none;width:100%;box-shadow:none}}

.registry-member-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px}.registry-member-card{min-width:0;overflow-wrap:anywhere}.registry-member-avatar{display:inline-flex;width:72px;height:72px;border-radius:50%;object-fit:cover;background:var(--reg-tint);padding:8px}.registry-member-avatar svg{width:100%;height:100%}.registry-member-card h2{font-size:1.35rem}

.registry-app-shell #registry-content .registry-member-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
@media(max-width:600px){.registry-app-shell #registry-content .registry-member-grid{grid-template-columns:minmax(0,1fr)}}

.registry-app-shell #registry-content :is(.reg-workspace-topbar a,.registry-clear-filters,.registry-member-card a,.registry-public-profile p a,.registry-public-profile section>a):not(.button){color:var(--reg-ink);text-decoration:underline;text-underline-offset:3px}

.registry-app-shell #registry-content .registry-profile-messages a:not(.button){color:var(--reg-ink);text-decoration:underline;text-underline-offset:3px}

/* Registry navigation has its own fit rules, independent of the site menu. */
.registry-app-shell.thp-frontend .compact-header .frontend-mainbar{flex-wrap:wrap;position:relative}
.registry-app-shell.thp-frontend .compact-header .frontend-nav{display:flex!important;position:static;inset:auto;flex:1 1 360px;width:auto;max-height:none;overflow:visible;padding:0;background:transparent;border:0;justify-content:center}
.registry-app-shell.thp-frontend .compact-header .frontend-nav>.navigation-list{display:flex;flex-wrap:wrap;gap:8px;white-space:normal}
.registry-app-shell.thp-frontend .compact-header .frontend-nav .navigation-item{width:auto;justify-content:flex-start}
.registry-app-shell.thp-frontend .compact-header .frontend-nav .navigation-item>a{flex:initial;padding:10px 4px;color:var(--reg-on-brand)}
.registry-app-shell.thp-frontend .compact-header .frontend-nav .submenu{position:absolute!important;width:max-content;max-width:min(360px,90vw);margin:0;box-shadow:var(--reg-shadow);background:var(--reg-surface);color:var(--reg-ink)}
.registry-app-shell.thp-frontend .compact-header .frontend-nav .submenu a{color:var(--reg-ink)}
.registry-app-shell.thp-frontend.menu-is-open{overflow:visible}
.registry-app-shell .registry-workspace-bar{flex-wrap:wrap}
.registry-app-shell .registry-workspace-track{flex:1 1 100%;order:2;flex-wrap:wrap;overflow:visible}
.registry-app-shell .reg-workspace-panel{position:absolute;top:100%;left:0;right:auto;max-width:calc(100vw - 40px);max-height:60vh;overflow:auto}
.registry-app-shell .reg-mobile-menu{display:none}
.registry-app-shell .reg-demo-switch{margin-left:auto}
@media(max-width:1024px){
 .registry-app-shell.registry-menu-collapsed .compact-header .frontend-nav{display:none!important}
 .registry-app-shell.registry-menu-collapsed.menu-is-open .compact-header .frontend-nav{display:block!important;position:static;flex-basis:100%;order:4;width:100%;padding:12px;background:var(--ds-header);box-sizing:border-box;max-height:60dvh;overflow:auto}
 .registry-app-shell.registry-menu-collapsed .compact-header .frontend-nav>.navigation-list{display:block}
 .registry-app-shell.registry-menu-collapsed .compact-header .frontend-nav .navigation-item{width:100%;justify-content:space-between}
 .registry-app-shell.registry-menu-collapsed .compact-header .frontend-nav .submenu{position:static!important;width:auto;max-width:100%;box-shadow:none}
 .registry-app-shell .registry-workspace-track{display:none}
 .registry-app-shell .reg-mobile-menu{display:inline-flex;min-height:44px}
}

/* Registry polish: compact chrome, one scrollable workspace row, photograph-first hero. */
.registry-app-shell.thp-frontend .compact-header .frontend-mainbar{padding:6px 20px;gap:14px}
.registry-app-shell.thp-frontend .compact-header .brand-lockup{max-width:210px;gap:8px}
.registry-app-shell.thp-frontend .compact-header .logo-image{width:142px;max-height:58px}
.registry-app-shell.thp-frontend .compact-header .frontend-nav{font-size:14px;flex-basis:320px}
.registry-app-shell.thp-frontend .compact-header .frontend-nav>.navigation-list{gap:6px}
.registry-app-shell.thp-frontend .compact-header .frontend-nav .navigation-item>a{padding:8px 3px}
.registry-app-shell .reg-staff-workspace-info{display:flex;align-items:center;gap:12px;margin-left:auto;min-width:0}
.registry-app-shell .reg-staff-workspace-info .reg-account-chip{color:inherit;font-size:11px;max-width:none}
.registry-app-shell .staff-admin-bar{min-height:34px;font-size:11px;gap:8px}
.registry-app-shell .staff-admin-bar :is(a,button,summary){min-height:34px;padding:6px;line-height:20px}
.registry-app-shell.has-staff-bar{--staff-bar-height:34px}
.registry-app-shell .reg-demo-switch{margin:0;flex-wrap:nowrap;gap:2px}
.registry-app-shell .reg-demo-switch button{font-size:11px;min-height:28px;padding:3px 8px;border-radius:4px}
.registry-app-shell .reg-staff-workspace-info .reg-demo-switch button{background:transparent;color:inherit;border:1px solid currentColor}
.registry-app-shell .registry-workspace-bar{height:48px;min-height:48px;padding:0 16px;gap:8px;flex-wrap:nowrap;box-sizing:border-box;box-shadow:none;isolation:auto}
.registry-app-shell .registry-workspace-bar.is-scrolled{box-shadow:0 3px 10px color-mix(in srgb,var(--reg-ink) 10%,transparent)}
.registry-app-shell .reg-workspace-scroll{position:relative;flex:1;min-width:0;height:48px}
.registry-app-shell .registry-workspace-track{display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;overflow-y:hidden;height:48px;scrollbar-width:none;align-items:center;overscroll-behavior-x:contain}
.registry-app-shell .registry-workspace-track::-webkit-scrollbar{display:none}
.registry-app-shell .reg-workspace-group{flex:0 0 auto;position:static}
.registry-app-shell .reg-workspace-pill{display:flex;align-items:center;min-height:44px;border-radius:22px;position:relative;overflow:hidden}
.registry-app-shell .reg-workspace-pill:hover,.registry-app-shell .reg-workspace-group.is-open .reg-workspace-pill,.registry-app-shell .reg-workspace-group.is-active .reg-workspace-pill{background:var(--reg-tint)}
.registry-app-shell .reg-workspace-group.is-active .reg-workspace-pill::after{content:'';position:absolute;bottom:0;left:12px;right:12px;height:3px;background:var(--reg-accent)}
.registry-app-shell .reg-workspace-pill>a{display:flex;align-items:center;gap:6px;white-space:nowrap;color:var(--reg-ink);font:600 13px/1.3 var(--body-font);text-decoration:none;min-height:44px;padding:0 10px;border:0}
.registry-app-shell .reg-workspace-pill>a .reg-icon{width:18px;height:18px;flex-shrink:0}
.registry-app-shell .reg-workspace-pill>button{border:0!important;background:transparent!important;color:var(--reg-ink)!important;width:28px;min-width:28px;height:44px;min-height:44px;padding:4px 6px;margin:0}
.registry-app-shell .reg-workspace-pill>button svg{width:16px;height:16px}
.registry-app-shell .reg-workspace-pill :focus-visible{outline-offset:-3px}
.registry-app-shell .reg-workspace-panel{position:fixed;min-width:260px;width:320px;max-width:calc(100vw - 24px);max-height:65dvh;overflow:auto;right:auto;padding:8px;border-radius:12px;z-index:160;display:block}
.registry-app-shell .reg-workspace-panel[hidden],.registry-app-shell [data-panel-page][hidden]{display:none!important}
.registry-app-shell .reg-workspace-group.is-open .reg-workspace-panel{display:block}
.registry-app-shell .reg-panel-page{display:grid;gap:2px}
.registry-app-shell .reg-panel-page>a{display:grid;gap:4px;padding:9px 10px;border-radius:8px;font:600 14px/1.35 var(--body-font);color:var(--reg-ink)}
.registry-app-shell .reg-panel-page>a:hover,.registry-app-shell .reg-panel-page>a[aria-current]{background:var(--reg-tint)}
.registry-app-shell .reg-panel-page small{display:block;font-size:12px;font-weight:400;color:var(--reg-muted)}
.registry-app-shell .reg-panel-paging{display:flex;align-items:center;justify-content:space-between}
.registry-app-shell .reg-scroll-prev,.registry-app-shell .reg-scroll-next{position:absolute;top:3px;z-index:2;width:28px;height:42px;min-height:42px;padding:0;font-size:24px;border-radius:14px}
.registry-app-shell .reg-scroll-prev{left:0}.registry-app-shell .reg-scroll-next{right:0}
.registry-app-shell .reg-workspace-scroll::before,.registry-app-shell .reg-workspace-scroll::after{content:'';display:none;position:absolute;top:0;bottom:0;width:48px;pointer-events:none;z-index:1}
.registry-app-shell .reg-workspace-scroll.has-left::before{display:block;left:0;background:linear-gradient(90deg,var(--reg-surface),transparent)}
.registry-app-shell .reg-workspace-scroll.has-right::after{display:block;right:0;background:linear-gradient(270deg,var(--reg-surface),transparent)}
.registry-app-shell .reg-workspace-account{position:relative;flex-shrink:0;max-width:36%}
.registry-app-shell .reg-workspace-account>summary{display:flex;align-items:center;gap:6px;min-height:44px;font-size:11px;cursor:pointer;list-style:none}
.registry-app-shell .reg-workspace-account>summary::-webkit-details-marker{display:none}
.registry-app-shell .reg-workspace-account .reg-account-chip{overflow:hidden;text-overflow:ellipsis;max-width:none;margin:0}
.registry-app-shell .reg-workspace-account>div{position:absolute;right:0;top:100%;background:var(--reg-surface);color:var(--reg-ink);padding:12px;box-shadow:var(--reg-shadow);border:1px solid var(--reg-line);min-width:240px;z-index:160}
.registry-app-shell .reg-workspace-account a{display:block;min-height:44px;padding:10px;color:var(--reg-ink)}
.registry-app-shell .reg-with-staff-chrome .reg-workspace-account,.registry-app-shell .reg-mobile-mode{display:none}
.registry-app-shell .reg-unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;min-height:18px;padding:2px 5px;background:var(--reg-brand);color:var(--reg-on-brand);border-radius:12px;font-size:11px}
.registry-app-shell .reg-fictional-strip{height:28px;box-sizing:border-box;padding:4px 12px;font-size:12px;line-height:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.registry-app-shell .reg-landing-hero{min-height:480px;background:var(--hero-base);color:var(--hero-ink)}
.registry-app-shell .reg-hero-layout{display:grid;grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);gap:40px;width:100%;max-width:1440px}
.registry-app-shell .reg-hero-copy{padding:48px 0;min-width:0}
.registry-app-shell .reg-hero-scrim{background:color-mix(in srgb,var(--hero-base) calc(var(--hero-opacity)*100%),transparent)}
.registry-app-shell #registry-content .reg-hero-copy h1{font-size:clamp(32px,3.6vw,58px);max-width:17ch;line-height:1.12;text-wrap:balance;margin:16px 0;color:var(--hero-ink)}
.registry-app-shell .reg-hero-copy .lead{max-width:48ch;font-size:clamp(16px,1.35vw,20px);line-height:1.6;margin:0 0 22px;color:var(--hero-ink)}
.registry-app-shell .reg-hero-search{margin:0;padding:0;background:none;border:0;box-shadow:none;max-width:100%}
.registry-app-shell .reg-hero-search>label{display:block;font-weight:600;font-size:14px;margin-bottom:8px;color:var(--hero-ink)}
.registry-app-shell .reg-hero-search-fields{display:flex;align-items:stretch;gap:6px;flex-wrap:wrap}
.registry-app-shell .reg-hero-search-fields input{flex:1 1 230px;min-width:0;width:auto;margin:0;min-height:46px;background:var(--reg-light);color:var(--reg-dark);border:1px solid var(--reg-light)}
.registry-app-shell .reg-hero-search-fields select{flex:0 1 155px;max-width:100%;margin:0;background:var(--reg-light);color:var(--reg-dark);min-height:46px}
.registry-app-shell .reg-hero-search-fields button{display:inline-flex;align-items:center;gap:6px;background:var(--reg-light);color:var(--hero-base);border:1px solid var(--reg-light);min-height:46px;margin:0;padding:10px 14px}
.registry-app-shell .reg-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-top:18px;font-size:14px}
.registry-app-shell .reg-hero-actions>a:not(.button){color:var(--hero-ink);text-decoration:underline;text-underline-offset:4px;min-height:44px;display:inline-flex;align-items:center;gap:6px}
.registry-app-shell .reg-your-strip{background:var(--reg-surface);border-bottom:1px solid var(--reg-line);color:var(--reg-ink);padding:14px 0}
.registry-app-shell .reg-your-strip>.container{display:flex;gap:18px;flex-wrap:wrap;align-items:center;font-size:13px}
.registry-app-shell .reg-your-strip a{color:var(--reg-ink);text-underline-offset:3px}
.registry-app-shell .reg-live-counts{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.registry-app-shell .registry-table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.registry-app-shell .table-scroll-controls{display:inline-flex;gap:4px;margin:0;align-items:center}
.registry-app-shell .table-scroll-controls button{width:36px;height:36px;min-height:36px;padding:4px;font-size:18px;border-radius:6px}
.registry-app-shell .reg-mobile-menu{display:none}
.registry-app-shell .reg-mobile-workspace{top:var(--staff-bar-height,0px);bottom:0;z-index:190;padding:16px;overscroll-behavior:contain}
.registry-app-shell .reg-sheet-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
.registry-app-shell .reg-sheet-top button{min-height:44px}
.registry-app-shell .reg-sheet-account{background:var(--reg-tint);border-radius:10px;padding:8px;margin-bottom:12px}
.registry-app-shell .reg-sheet-account>summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
.registry-app-shell .reg-sheet-account .reg-account-chip{font-size:12px;white-space:normal;max-width:none;margin:0}
.registry-app-shell .reg-sheet-group{border-bottom:1px solid var(--reg-line)}
.registry-app-shell .reg-sheet-group>summary{display:flex;align-items:center;gap:10px;font:600 16px/1.4 var(--body-font);min-height:44px;padding:8px 4px;cursor:pointer}
.registry-app-shell .reg-sheet-group>summary::after{content:'⌄';margin-left:auto}
.registry-app-shell .reg-sheet-group a{font:14px/1.4 var(--body-font);min-height:44px;box-sizing:border-box}
.registry-app-shell .reg-sheet-footer{display:grid;justify-content:start;gap:16px;padding-top:24px}
.registry-app-shell .reg-sheet-footer .language-switch{width:auto}
.registry-app-shell.registry-sheet-open{overflow:hidden}
.registry-app-shell :is(.reg-workspace-account summary,.reg-sheet-group summary,.reg-sheet-account summary,.registry-workspace-track):focus-visible{outline:2px solid var(--reg-accent);outline-offset:-2px}
@media(max-width:900px){
 .registry-app-shell .reg-workspace-scroll,.registry-app-shell .reg-desktop-mode,.registry-app-shell .reg-staff-workspace-info{display:none}
 .registry-app-shell .registry-workspace-bar{justify-content:space-between;padding-inline:12px}
 .registry-app-shell .reg-mobile-menu{display:inline-flex;min-height:44px;padding:6px 12px}
 .registry-app-shell .reg-with-staff-chrome .reg-workspace-account{display:block}
 .registry-app-shell .reg-workspace-account{max-width:75%}
 .registry-app-shell .reg-mobile-mode{display:block}
 .registry-app-shell .reg-demo-switch button{min-height:44px}
 .registry-app-shell .reg-hero-layout{grid-template-columns:minmax(0,1fr);gap:0}
 .registry-app-shell .reg-hero-photo-space{display:none}
 .registry-app-shell .reg-hero-scrim{background:color-mix(in srgb,var(--hero-base) calc(var(--hero-opacity)*100%),transparent)}
}
@media(max-width:600px){
 .registry-app-shell .reg-landing-hero{display:block;min-height:0}
 .registry-app-shell .reg-hero-image,.registry-app-shell .reg-hero-scrim{height:200px}
 .registry-app-shell .reg-hero-image{object-position:center 40%}
 .registry-app-shell .reg-hero-scrim{background:color-mix(in srgb,var(--hero-base) calc(var(--hero-opacity)*100%),transparent)}
 .registry-app-shell .reg-hero-copy{padding:170px 0 28px}
 .registry-app-shell .reg-hero-copy .eyebrow{font-size:11px;margin:0}
 .registry-app-shell #registry-content .reg-hero-copy h1{font-size:clamp(30px,8vw,40px);max-width:17ch}
 .registry-app-shell .reg-hero-search-fields input{flex-basis:100%}
 .registry-app-shell .reg-hero-search-fields select{flex:1;min-width:0}
 .registry-app-shell .reg-your-strip>.container{gap:12px}
}
@media(prefers-reduced-motion:reduce){.registry-app-shell *{scroll-behavior:auto!important}.registry-app-shell .reg-highlight{transition:none}}

.registry-app-shell .reg-workspace-panel{white-space:normal;overflow-wrap:anywhere}
.registry-app-shell #registry-content>.reg-your-strip{padding:12px 0}
.registry-app-shell #registry-content .reg-hero-search-fields :is(input,select){background:#fff;color:var(--ds-ink)}
.registry-app-shell #registry-content .reg-hero-search-fields input::placeholder{color:#596159;opacity:1}
.registry-app-shell .reg-mobile-workspace .reg-sheet-group summary{list-style:none}
.registry-app-shell .reg-mobile-workspace .reg-sheet-group summary::-webkit-details-marker{display:none}

.registry-app-shell .reg-mobile-workspace button{background:var(--reg-surface)!important;color:var(--reg-ink)!important;border:1px solid var(--reg-line)}
.registry-app-shell #registry-content .reg-community p{color:var(--reg-on-brand)}
.registry-app-shell #registry-content .notice a{color:inherit;text-decoration:underline;text-underline-offset:3px}

.registry-app-shell #registry-content #reg-public-search{background:#fff;color:var(--ds-ink)}

.registry-app-shell .reg-staff-workspace-info .reg-demo-switch button{background:transparent!important;color:inherit!important;border-color:currentColor}
.registry-app-shell .reg-staff-workspace-info .reg-demo-switch [aria-pressed=true]{text-decoration:underline;text-underline-offset:3px}

@media(max-width:900px){
 .registry-app-shell .reg-landing-hero{display:block;min-height:0}
 .registry-app-shell .reg-hero-image,.registry-app-shell .reg-hero-scrim{height:200px}
 .registry-app-shell .reg-hero-copy{padding:170px 0 28px}
 .registry-app-shell .reg-hero-scrim{background:color-mix(in srgb,var(--hero-base) calc(var(--hero-opacity)*100%),transparent)}
}

.registry-app-shell .reg-panel-page small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.registry-app-shell #registry-content .reg-your-strip>.container{padding-block:0;min-height:0}
/* Full-page listing forms keep their submit action after the fields. */
.registry-app-shell #registry-content .reg-listing-workspace form:not(.reg-search-bar)>button:last-child{position:static;z-index:auto;box-shadow:none}
/* Waiting-list workspace: page scrolling, compact rows and a single private editor. */
.registry-app-shell #registry-content .reg-waiting-people{overflow:visible;min-width:0}
.registry-app-shell #registry-content .reg-waiting-compact{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}
.registry-app-shell #registry-content .reg-waiting-compact th,.registry-app-shell #registry-content .reg-waiting-compact td{position:static;min-width:0;max-width:none;padding:8px 7px;vertical-align:middle;white-space:nowrap;font-size:.82rem}
.registry-app-shell #registry-content .reg-waiting-compact th{font-size:.76rem}
.registry-app-shell #registry-content .reg-waiting-compact th:first-child{width:104px}
.registry-app-shell #registry-content .reg-waiting-compact th:nth-child(2){width:22%}
.registry-app-shell #registry-content .reg-waiting-compact th:nth-child(3){width:21%}
.registry-app-shell #registry-content .reg-waiting-compact th:nth-child(4){width:13%}
.registry-app-shell #registry-content .reg-waiting-compact th:nth-child(5){width:17%}
.registry-app-shell #registry-content .reg-waiting-compact th:nth-child(6){width:94px}
.registry-app-shell #registry-content .reg-waiting-compact th:last-child{width:100px}
.reg-waiting-position{display:flex;align-items:center;gap:3px}
.reg-waiting-position button{min-width:28px;min-height:34px;padding:2px 5px;font-size:.85rem}
.reg-waiting-person,.reg-waiting-pair{display:flex;gap:6px;align-items:baseline;min-width:0}
.reg-waiting-person strong,.reg-waiting-person small,.reg-waiting-pair a,.reg-waiting-preferences{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.reg-waiting-person strong,.reg-waiting-person small{flex:1}
.reg-waiting-person small{color:var(--text-muted,#566354)}
.reg-waiting-pair{flex-wrap:nowrap}.reg-waiting-pair a{flex:1}
.registry-app-shell #registry-content .reg-waiting-compact .pill{font-size:.73rem;padding:4px 6px;white-space:nowrap;display:block;overflow:hidden;text-overflow:ellipsis}
.registry-app-shell #registry-content .reg-waiting-edit-cell .button{font-size:.8rem;padding:6px 10px;min-height:36px}
.reg-waiting-status.status-assigned{background:#e5edff;color:#153c78}.reg-waiting-status.status-contacted{background:#fff1d0;color:#664700}.reg-waiting-status.status-sale_pending{background:#f0e6ff;color:#54267b}.reg-waiting-status.status-sold,.reg-waiting-status.status-sold_unclaimed{background:#e4f3df;color:var(--ds-brand)}.reg-waiting-status.status-withdrawn,.reg-waiting-status.status-rejected,.reg-waiting-status.status-cancelled{background:#f4e5e4;color:#7c2925}
.reg-waiting-litter-summary{display:flex;align-items:center;justify-content:space-between;gap:12px}.reg-waiting-litter-summary h2{margin:0 0 8px;font-size:1.05rem}
.waiting-dialog-open{overflow:hidden!important}
.reg-waiting-dialog{box-sizing:border-box;width:min(850px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid #b4c5ad;border-radius:18px;background:var(--reg-surface,var(--content-bg,#fff));color:var(--text,#233126);box-shadow:0 24px 80px #142a294d;overflow:auto;overscroll-behavior:contain}
.reg-waiting-dialog::backdrop{background:#101c27a8}
.reg-waiting-dialog .reg-waiting-editor{margin:0;border:0;box-shadow:none;padding:24px;background:var(--reg-surface,var(--content-bg,#fff));color:var(--text,#233126)}
.reg-waiting-editor-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.reg-waiting-editor-heading h1{font-size:1.4rem;line-height:1.3;margin:4px 0 16px;overflow-wrap:anywhere}.reg-waiting-editor-heading .eyebrow{font-size:.72rem;margin:0}
.reg-waiting-tabs{display:flex;flex-wrap:wrap;gap:5px;padding:8px 0 12px;border-bottom:1px solid #cbd6c7;margin-bottom:16px}
.reg-waiting-tabs a{display:block;border-radius:8px;padding:9px 11px;min-height:40px;font-weight:600;font-size:.88rem;text-decoration:none;color:inherit;box-sizing:border-box}
.reg-waiting-tabs a[aria-selected=true]{background:var(--ds-brand);color:#fff}
.reg-waiting-panel[hidden]{display:none!important}.reg-waiting-panel h2{font-size:1.15rem;margin:10px 0}.reg-waiting-panel p{font-size:.9rem;line-height:1.5}
.reg-waiting-form{display:grid;gap:12px}.reg-waiting-form fieldset{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0;border:0;padding:0;margin:0}
.reg-waiting-form label{display:flex;flex-direction:column;gap:5px;font-weight:600;font-size:.88rem;min-width:0}.reg-waiting-form label:has(textarea),.reg-waiting-form fieldset>p{grid-column:1/-1}.reg-waiting-form label.checkbox{flex-direction:row;align-items:center}
.reg-waiting-form input,.reg-waiting-form select,.reg-waiting-form textarea{width:100%;min-width:0;box-sizing:border-box}.reg-waiting-form input[type=radio],.reg-waiting-form input[type=checkbox]{width:auto}.reg-waiting-form input[readonly]{background:#f0f3ee;color:#455143}.reg-waiting-form button{justify-self:start}
.reg-waiting-form .reg-waiting-youngsters{grid-template-columns:1fr}.reg-waiting-youngster{display:flex!important;flex-direction:row!important;align-items:center;gap:12px!important;border:1px solid #cbd6c7;padding:10px;border-radius:10px}.reg-waiting-youngster:has(input:checked){border:2px solid var(--accent,var(--ds-accent-hover));background:#f0f7eb}.reg-waiting-youngster img,.reg-waiting-no-photo{width:56px;height:56px;object-fit:cover;border-radius:8px}.reg-waiting-no-photo{display:grid;place-items:center;background:#e9efe4;font-size:24px}.reg-waiting-youngster small{display:block;font-weight:400}
.reg-waiting-editor :focus-visible,.reg-waiting-people :focus-visible,.reg-waiting-litter-summary :focus-visible{outline:2px solid var(--accent,var(--ds-accent-hover));outline-offset:3px}
.reg-waiting-contact-history{padding-left:20px}.reg-waiting-contact-history li{padding:8px 0;border-bottom:1px solid #dde5da}.reg-waiting-editor details{margin:12px 0}.reg-waiting-editor summary{font-weight:600;margin-bottom:10px}
@media(max-width:1000px){
 .registry-app-shell #registry-content .reg-waiting-compact,.registry-app-shell #registry-content .reg-waiting-compact tbody{display:block;width:100%}.reg-waiting-compact thead{display:none}.registry-app-shell #registry-content .reg-waiting-compact tr{display:grid;grid-template-columns:1fr 1fr;gap:5px 16px;padding:12px;border:1px solid #d5dfcf;border-radius:12px;margin-bottom:10px;background:var(--reg-surface,var(--content-bg,#fff))}
 .registry-app-shell #registry-content .reg-waiting-compact td{display:block;padding:2px 0;white-space:normal;font-size:.86rem;width:auto;min-width:0!important}.reg-waiting-compact td::before{content:attr(data-label);display:block;font-size:.7rem;color:#596956;margin-bottom:2px}.reg-waiting-compact td:nth-child(2){grid-column:1/-1;grid-row:1}.reg-waiting-person{display:flex;flex-wrap:wrap}.reg-waiting-person strong,.reg-waiting-person small{flex:0 1 auto;max-width:100%}.reg-waiting-edit-cell{align-self:end;justify-self:end}.registry-app-shell #registry-content .reg-waiting-compact .pill{display:inline-block;max-width:100%;box-sizing:border-box}.reg-waiting-pair{display:block}.reg-waiting-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
}
@media(max-width:520px){.reg-waiting-dialog{width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.reg-waiting-dialog .reg-waiting-editor{padding:16px;min-height:100%;box-sizing:border-box}.reg-waiting-editor-heading h1{font-size:1.2rem}.reg-waiting-form fieldset{grid-template-columns:1fr}.reg-waiting-tabs{gap:3px}.reg-waiting-tabs a{padding:9px 8px;font-size:.8rem}.reg-waiting-fallback{padding-inline:10px}.reg-waiting-litter-summary{align-items:flex-start}.reg-waiting-litter-summary h2{font-size:.95rem}}
[data-high-contrast=true] .reg-waiting-tabs a[aria-selected=true],body.high-contrast .reg-waiting-tabs a[aria-selected=true]{background:#000;color:#fff;border:2px solid currentColor}

.reg-waiting-compact .sr-only,.reg-waiting-editor .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.registry-app-shell #registry-content .reg-waiting-position button{min-height:34px;min-width:28px;padding:2px 5px}
html.thp-high-contrast .reg-waiting-dialog,html.thp-high-contrast .reg-waiting-editor{background:#fff;color:#000;border:2px solid #000;box-shadow:none}
html.thp-high-contrast .reg-waiting-tabs a[aria-selected=true]{background:#000;color:#fff;border:2px solid #000}
/* Versioned ownership and breeding workspace. */
.registry-breeding-workspace{min-width:0}.registry-breeding-workspace>.card,.registry-breeding-workspace>details{margin-block:20px}
.registry-breeding-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.registry-breeding-nav a{padding:10px 14px;border:1px solid var(--reg-line,#ced9c8);border-radius:999px;text-decoration:none;background:var(--reg-surface,#fff);font-weight:600;font-size:.9rem}
.registry-breeding-form{display:grid;gap:18px;max-width:960px}.registry-breeding-form>fieldset{border:1px solid var(--reg-line,#ced9c8);border-radius:12px;padding:20px;min-width:0;display:grid;gap:14px}.registry-breeding-form legend{padding:0 8px;font-weight:700;font-size:1.1rem}.registry-breeding-form label{display:flex;flex-direction:column;gap:6px;min-width:0;font-weight:600;font-size:.9rem}.registry-breeding-form .checkbox{flex-direction:row;align-items:flex-start}.registry-breeding-form input,.registry-breeding-form select,.registry-breeding-form textarea{box-sizing:border-box;width:100%;max-width:100%}.registry-breeding-form [type=checkbox],.registry-breeding-form [type=radio]{width:auto;flex:0 0 auto}.registry-breeding-form input[type=file]{padding:10px;border:1px solid var(--reg-line,#ced9c8);border-radius:8px}.registry-breeding-form button{justify-self:start}
.registry-breeding-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.registry-breeding-wide{grid-column:1/-1}.registry-breeding-party{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;border:1px solid var(--reg-line,#ced9c8);border-radius:12px;margin-block:12px;min-width:0}.registry-breeding-party>[data-breeding-search]{grid-column:1/-1}.registry-breeding-party-list,.registry-breeding-agreement-list{list-style:none;margin:0;padding:0}.registry-breeding-party-list>li,.registry-breeding-agreement-list>li{padding:14px 0;border-bottom:1px solid var(--reg-line,#ced9c8)}.registry-breeding-party-list small{display:block;margin-block:6px}.registry-breeding-party-list form{display:inline-block}.registry-breeding-agreement-list li{display:flex;align-items:center;gap:12px;justify-content:space-between}
.registry-breeding-animal-list>article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--reg-line,#ced9c8)}.registry-breeding-animal-list small{display:block;font-size:.8rem;margin-top:5px}.registry-breeding-operation,.registry-breeding-promise{padding-block:16px;border-top:1px solid var(--reg-line,#ced9c8)}
.registry-breeding-conditions-summary{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,2fr);gap:8px 16px;font-size:.9rem;line-height:1.5}.registry-breeding-conditions-summary dt{font-weight:700}.registry-breeding-conditions-summary dd{margin:0;overflow-wrap:anywhere}
.registry-wizard-progress{border-left:4px solid var(--accent,var(--ds-accent-hover));padding:12px 16px;background:var(--reg-tint,#f1f6ed);border-radius:0 10px 10px 0;font-weight:700}.registry-wizard-controls{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.registry-breeding-form [data-wizard-step][hidden]{display:none!important}.registry-breeding-form [hidden]{display:none!important}
[data-breeding-results]{display:flex;gap:6px;flex-wrap:wrap;margin-block:8px}[data-breeding-results] button{font-size:.85rem;min-height:44px}.registry-breeding-notices ul{list-style:none;padding:0;margin:0}.registry-breeding-notices li{display:flex;gap:16px;align-items:start;justify-content:space-between;padding:14px 0;border-top:1px solid var(--reg-line,#ced9c8)}.registry-breeding-notices li form{display:flex;gap:6px;flex-wrap:wrap;max-width:260px}.registry-breeding-notices p{font-size:.83rem;line-height:1.5}
.registry-breeding-dialog{box-sizing:border-box;max-width:min(680px,calc(100vw - 32px));width:680px;max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--reg-line,#becbb5);border-radius:16px;padding:26px;background:var(--reg-surface,var(--content-bg,#fff));color:var(--text,#233126);box-shadow:0 18px 70px #13251f55}.registry-breeding-dialog::backdrop{background:#102019aa}.registry-breeding-dialog h2{margin-top:0;font-size:1.35rem}.registry-breeding-dialog p{line-height:1.55;font-size:.95rem}.registry-breeding-dialog .checkbox{display:flex;gap:10px;align-items:start;line-height:1.5;margin-block:20px;font-weight:600}.registry-breeding-dialog .checkbox input{margin-top:5px}.registry-breeding-dialog button,.registry-breeding-dialog a.button{margin:5px 6px 5px 0}
.registry-breeding-workspace :focus-visible,.registry-breeding-dialog :focus-visible{outline:2px solid var(--accent,var(--ds-accent-hover));outline-offset:3px}.registry-retired-badge{display:inline-block;padding:3px 7px;border:1px solid currentColor;border-radius:999px;font-size:.7rem;font-weight:700;line-height:1.3;background:var(--reg-tint,#edf3e7);color:var(--reg-ink,#25352a);white-space:normal;vertical-align:middle;margin-inline:4px}
@media(max-width:700px){.registry-breeding-fields,.registry-breeding-party{grid-template-columns:minmax(0,1fr)}.registry-breeding-form>fieldset{padding:14px}.registry-breeding-agreement-list li,.registry-breeding-notices li{display:block}.registry-breeding-notices form{margin-top:10px}.registry-breeding-nav{gap:5px}.registry-breeding-nav a{padding:8px 10px;font-size:.8rem}.registry-breeding-conditions-summary{grid-template-columns:minmax(0,1fr)}.registry-breeding-conditions-summary dd{padding-bottom:8px;border-bottom:1px solid var(--reg-line,#ced9c8)}.registry-breeding-animal-list>article{align-items:start;flex-wrap:wrap}.registry-breeding-dialog{padding:20px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.registry-breeding-dialog button,.registry-breeding-dialog a.button{display:block;width:100%;box-sizing:border-box;text-align:center}}
html.thp-high-contrast .registry-breeding-dialog{background:#fff;color:#000;border:2px solid #000;box-shadow:none}html.thp-high-contrast .registry-retired-badge{background:#fff;color:#000;border:2px solid #000}

.registry-breeding-dialog .checkbox{display:flex;align-items:flex-start;gap:.6rem}.registry-breeding-dialog .checkbox input[type="checkbox"]{width:1.1rem;min-width:1.1rem;height:1.1rem;flex:0 0 1.1rem;margin:.2rem 0 0}

/* Registry chrome keeps its own palette in every interactive state. */
.registry-app-shell .frontend-header.compact-header .frontend-nav>.navigation-list>.menu-node>.navigation-item>:is(a,button,span),
.registry-app-shell .frontend-header.compact-header :is(.header-icon,.header-avatar,.utility-navigation a,.language-slider-label,.header-registry-badge){color:var(--reg-on-brand);background:transparent;opacity:1}
.registry-app-shell .frontend-header.compact-header .frontend-nav>.navigation-list>.menu-node>.navigation-item>:is(a,button):is(:hover,:focus-visible,:active),
.registry-app-shell .frontend-header.compact-header :is(.header-icon,.header-avatar,.utility-navigation a,.language-slider-label):is(:hover,:focus-visible,:active){background:color-mix(in srgb,var(--reg-on-brand) 16%,transparent);color:var(--reg-on-brand);border-color:var(--reg-on-brand);text-decoration:none}
.registry-app-shell .frontend-header.compact-header .frontend-nav>.navigation-list>:is(.is-current,.is-active-branch,.is-current-branch,[data-navigation-open])>.navigation-item>a,
.registry-app-shell .frontend-header.compact-header .frontend-nav>.navigation-list>.menu-node>.navigation-item>a[aria-current]{background:color-mix(in srgb,var(--reg-on-brand) 22%,transparent);color:var(--reg-on-brand);border-bottom-color:var(--reg-on-brand)}
.registry-app-shell .frontend-header.compact-header :is(.navigation-toggle[aria-expanded=true],.header-icon[aria-expanded=true],.header-account-menu[open]>.header-avatar){background:color-mix(in srgb,var(--reg-on-brand) 22%,transparent);color:var(--reg-on-brand)}
.registry-app-shell .frontend-header.compact-header :focus-visible{outline:2px solid var(--reg-on-brand);outline-offset:3px}
.registry-app-shell .frontend-header.compact-header :is(.submenu,.navigation-submenu,.header-overlay,.header-admin-dropdown){--text:var(--reg-ink);--focus:var(--reg-brand);background:var(--reg-surface);color:var(--reg-ink)}
.registry-app-shell .frontend-header.compact-header :is(.submenu,.navigation-submenu,.header-overlay,.header-admin-dropdown) :is(a,button,.navigation-item>span){color:var(--reg-ink);background:transparent;opacity:1}
.registry-app-shell .frontend-header.compact-header .frontend-nav .submenu .navigation-item>a:is(:hover,:focus-visible,:active,[aria-current]),
.registry-app-shell .frontend-header.compact-header :is(.submenu,.navigation-submenu,.header-overlay,.header-admin-dropdown) :is(a,button):is(:hover,:focus-visible,:active,[aria-expanded=true]){background:color-mix(in srgb,var(--reg-brand) 10%,var(--reg-surface));color:var(--reg-ink);border-color:var(--reg-ink)}
.registry-app-shell .frontend-header.compact-header :is(.submenu,.navigation-submenu,.header-overlay,.header-admin-dropdown) :focus-visible{outline-color:var(--reg-brand);box-shadow:0 0 0 5px var(--reg-ink)}
.registry-app-shell .frontend-header.compact-header :is([disabled],[aria-disabled=true]){opacity:1;color:var(--reg-on-brand);background:transparent;cursor:not-allowed}
.registry-app-shell .frontend-header.compact-header :is(.submenu,.header-overlay,.header-admin-dropdown) :is([disabled],[aria-disabled=true]){color:var(--reg-ink);background:var(--reg-surface)}
.registry-app-shell :is(.registry-workspace-nav,.registry-workspace-bar){color:var(--reg-ink);background:var(--reg-surface)}
.registry-app-shell :is(.registry-workspace-nav,.registry-workspace-bar) a{color:var(--reg-ink)}
.registry-app-shell :is(.registry-workspace-nav,.registry-workspace-bar) a:is(:hover,:focus-visible,:active,[aria-current]),
.registry-app-shell .registry-workspace-bar .reg-workspace-pill:is(:hover,:focus-within){background:color-mix(in srgb,var(--reg-brand) 10%,var(--reg-surface));color:var(--reg-ink)}
.registry-app-shell :is(.registry-workspace-nav,.registry-workspace-bar) :focus-visible{outline:2px solid var(--reg-ink);outline-offset:-3px}
/* The accessibility theme deliberately forces a Canvas header, including its nav. */
html.thp-high-contrast .registry-app-shell .frontend-header{--reg-on-brand:CanvasText!important}
.registry-app-shell .frontend-header.compact-header .cart-button strong{background:var(--reg-on-brand);color:var(--reg-brand)}

/* One width model for sticky Registry tables: cells and column tracks agree. */
.registry-app-shell .registry-table-component{min-width:0;max-width:100%}
.registry-app-shell .registry-table-scroll{--registry-sticky-width:280px;--registry-col-default:180px;isolation:isolate;width:100%;box-sizing:border-box}
.registry-app-shell #registry-content .registry-table-scroll table{table-layout:auto!important;width:max-content;min-width:100%}
.registry-app-shell #registry-content .registry-table-scroll table.registry-sized-table{table-layout:fixed!important;width:var(--registry-table-width);min-width:100%}
.registry-app-shell #registry-content .registry-table-scroll table tr>:is(th,td){box-sizing:border-box;min-width:0;max-width:none;overflow-wrap:anywhere;white-space:normal}
.registry-app-shell #registry-content .registry-table-scroll table tr>:is(th,td):first-child{width:var(--registry-sticky-width);min-width:var(--registry-sticky-width);max-width:var(--registry-sticky-width);left:0;position:sticky;background:var(--reg-surface);z-index:2;overflow:hidden;box-shadow:1px 0 0 var(--reg-line)}
.registry-app-shell #registry-content .registry-table-scroll table thead th{z-index:3;background:var(--reg-tint)}
.registry-app-shell #registry-content .registry-table-scroll table thead th:first-child{z-index:4;background:var(--reg-tint)}
.registry-app-shell #registry-content .registry-table-scroll table tr>:is(th,td):first-child :is(strong,small){display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.registry-app-shell #registry-content .registry-table-scroll .pill{white-space:normal;overflow-wrap:anywhere}
.registry-app-shell #registry-content .registry-table-scroll [data-registry-column=sex]{white-space:nowrap}
.registry-app-shell .table-scroll-controls[hidden],.registry-app-shell .registry-table-hint[hidden]{display:none!important}
.reg-consent-fields{min-width:0}.reg-consent-fields [data-consent-text]{white-space:normal;overflow-wrap:anywhere;padding:12px;border:1px solid var(--reg-line);background:var(--reg-tint)}
.reg-consent-status{display:inline-grid;place-items:center;width:20px;height:20px;border:1px solid currentColor;border-radius:50%;font-weight:800;color:var(--reg-ink);margin-right:4px}
.reg-consent-status[data-consent-state=missing]{background:var(--reg-warning-bg);color:var(--reg-warning-ink)}
.reg-consent-status[data-consent-state=withdrawn]{background:var(--reg-danger-bg);color:var(--reg-danger-ink)}
@media(max-width:600px){.registry-app-shell .registry-table-scroll{--registry-sticky-width:224px}.registry-app-shell #registry-content .registry-table-scroll table tbody td:first-child{position:static;left:auto}.registry-app-shell #registry-content .registry-table-scroll table thead th:first-child{left:auto}}

.registry-app-shell #registry-content .registry-table-scroll table td[colspan]{position:static;left:auto;width:auto;min-width:0;max-width:none}
.reg-consent-status,.reg-review-status{vertical-align:middle}.reg-review-status{color:var(--reg-warning-ink);background:var(--reg-warning-bg);font-weight:800;margin-right:4px}
.registry-app-shell #registry-content .reg-waiting-compact .reg-waiting-status{display:inline-block;max-width:calc(100% - 28px);vertical-align:middle}.reg-waiting-compact td:has(.reg-review-status) .reg-waiting-status{max-width:calc(100% - 50px)}

/* Quick links use an opaque token background so photographs cannot reduce contrast. */
.registry-app-shell #registry-content .reg-landing-hero .reg-hero-actions>a:not(.button){color:var(--reg-on-brand);background:var(--reg-brand);padding:.35rem .65rem;border-radius:.35rem;text-decoration:underline;text-underline-offset:.2em;font-weight:600}
.registry-app-shell #registry-content .reg-landing-hero .reg-hero-actions>a:not(.button):is(:hover,:focus-visible){color:var(--reg-on-brand);background:var(--reg-brand);outline:2px solid currentColor;outline-offset:3px}
html.thp-high-contrast .registry-app-shell #registry-content .reg-landing-hero .reg-hero-actions>a:not(.button){color:CanvasText!important;background:Canvas!important;border:1px solid CanvasText}

/* Moved forms open from their existing action link, not as empty-looking cards. */
.registry-app-shell .reg-form-panel:not([open]){display:none}

/* Identity review uses the existing Registry tokens in every theme. */
.registry-match-workspace{max-width:76rem;margin:2rem auto;padding:clamp(1rem,3vw,2rem);overflow-wrap:anywhere}
.registry-match-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));gap:1rem}
.registry-match-workspace .card{min-width:0;background:var(--reg-surface);color:var(--reg-ink);border:1px solid var(--reg-line);padding:1.1rem}
.registry-name-parts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.registry-name-parts dd{margin:0;overflow-wrap:anywhere}.registry-name-parts dt{font-weight:700}
.registry-match-workspace :is(input,textarea,select){max-width:100%;box-sizing:border-box}
.registry-match-workspace :is(a,button,input,textarea,select,summary):focus-visible{outline:2px solid currentColor;outline-offset:3px}
html.thp-high-contrast .registry-match-workspace .card{background:Canvas;color:CanvasText;border:2px solid CanvasText}
@media(max-width:479px){.registry-name-parts{grid-template-columns:1fr}.registry-match-workspace .actions{display:grid}.registry-match-workspace .button{white-space:normal}}

.registry-app-shell #registry-content .registry-match-workspace form>button:last-child{position:static;bottom:auto;z-index:auto;box-shadow:none}
@media(max-width:479px){.registry-app-shell #registry-content .registry-match-workspace{padding-inline-start:3.25rem}}

/* Public animal directory only; other lists keep their existing presentation. */
.registry-animal-directory-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(1rem,2vw,1.5rem);align-items:stretch}
@media(min-width:700px){.registry-animal-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1100px){.registry-animal-directory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.registry-app-shell #registry-content .registry-animal-card{min-width:0;display:flex;flex-direction:column;overflow:hidden;background:var(--reg-surface);color:var(--reg-ink);border:1px solid var(--reg-line);border-radius:var(--reg-radius);box-shadow:var(--reg-shadow)}
.registry-animal-card__media{aspect-ratio:4/3;overflow:hidden;background:var(--reg-tint)}
.registry-animal-card__media>img{display:block;width:100%;height:100%;object-fit:cover}
.registry-app-shell .registry-animal-card__media>.reg-animal-placeholder{height:100%;min-height:0;border-radius:0;color:var(--reg-muted)}
.registry-animal-card__body{padding:clamp(1rem,2vw,1.5rem);display:flex;flex-direction:column;gap:.8rem;flex:1;min-width:0}
.registry-app-shell #registry-content .registry-animal-card h2{margin:0;font-size:1.3rem;line-height:1.3;overflow-wrap:anywhere}
.registry-app-shell #registry-content .registry-animal-card__name{display:flex;align-items:center;min-height:44px;box-sizing:border-box;max-width:100%;color:var(--reg-ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em;overflow-wrap:anywhere}
.registry-app-shell #registry-content .registry-animal-card__name:hover{color:var(--reg-ink);text-decoration-thickness:2px}
.registry-app-shell #registry-content .registry-animal-card :is(a,[tabindex]):focus-visible{outline:3px solid var(--reg-ink);outline-offset:3px;border-radius:3px}
.registry-animal-card__body>p{margin:0}.registry-animal-card__registration{font-size:.9em;color:var(--reg-muted);overflow-wrap:anywhere}
.registry-animal-card__facts{display:flex;flex-wrap:wrap;gap:.8rem 1.2rem;margin:0;min-width:0}.registry-animal-card__facts>div{min-width:0;max-width:100%}.registry-animal-card__facts dt{font-size:.8em;font-weight:700;color:var(--reg-muted)}.registry-animal-card__facts dd{margin:0;overflow-wrap:anywhere}.registry-animal-card__facts dd:has(svg){display:flex;align-items:center;gap:.3em}
.registry-animal-card__species{flex-basis:100%}.registry-animal-card__species em{display:block;font-size:.9em;color:var(--reg-muted)}.registry-animal-card__sex-icon{width:1.1em;height:1.1em;flex-shrink:0}
.registry-animal-card__statuses{display:grid;grid-template-columns:fit-content(40%) minmax(0,1fr);align-items:start;justify-items:start;gap:.4rem;margin-top:auto}.registry-app-shell #registry-content .registry-animal-card__statuses>.pill{display:inline-flex;align-items:center;gap:.35em;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}.registry-animal-card__statuses .reg-icon{width:1.1em;height:1.1em;flex-shrink:0}
.registry-animal-card__whs{display:flex;flex-wrap:wrap;gap:.4rem}.registry-app-shell #registry-content .registry-animal-card__whs .registry-whs-badge{display:inline-flex;align-items:center;box-sizing:border-box;min-height:44px;min-width:44px;justify-content:center;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.registry-animal-card__country{font-size:.8em;color:var(--reg-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:479px){.registry-animal-card__species em{display:none}}
html.thp-high-contrast .registry-animal-card{box-shadow:none;border-width:2px}

.pedigree-path{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;padding:0}.pedigree-path a,.pedigree-from-here{display:inline-flex;align-items:center;min-height:44px;padding:.25rem .5rem;text-decoration:underline}.pedigree-from-here{font-size:.75rem;line-height:1.25}.pedigree-path a:focus-visible,.pedigree-from-here:focus-visible{outline:2px solid var(--reg-brand);outline-offset:2px}.pedigree-print-only{display:none}
@media print{.pedigree-web-only{display:none!important}.pedigree-print-only{display:block!important}.pedigree-print-only .pedigree-chart-controls,.pedigree-print-only .pedigree-chart-help{display:none!important}}

.pedigree-web-only .pedigree-chart{--pedigree-row-height:196px}.pedigree-chart-card:has(.pedigree-from-here){min-height:176px}.pedigree-print-grid{display:grid;grid-template-columns:repeat(var(--print-columns),minmax(0,1fr));grid-template-rows:repeat(var(--print-rows),minmax(1mm,1fr));gap:1mm}.pedigree-print-card{align-self:center;border:1px solid currentColor;padding:1mm;overflow-wrap:anywhere;font-size:6pt}.pedigree-print-card small{display:block}

.pedigree-web-only .pedigree-chart{--pedigree-row-height:196px!important}.pedigree-web-only .pedigree-chart-card small{font-size:11px}.pedigree-web-only .pedigree-chart-card strong{font-size:13px}

.pedigree-print-grid{position:relative}.pedigree-print-lines{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1}.pedigree-print-card{position:relative;background:var(--reg-surface)}

/* Public members: one shared compact presentation, including the member's own preview. */
.registry-app-shell #registry-content .registry-member-profile .reg-member-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(12rem,19rem);gap:24px;align-items:start;border:0;background:var(--reg-surface);box-shadow:var(--reg-shadow);padding:24px;margin-block:16px 24px}
.registry-app-shell #registry-content .reg-member-identity{display:flex;align-items:flex-start;gap:16px;min-width:0}
.registry-app-shell #registry-content .registry-member-avatar{width:72px;height:72px;flex:0 0 72px;padding:0;border-radius:50%;object-fit:cover;background:var(--reg-tint)}
.registry-app-shell #registry-content .registry-member-initial{align-items:center;justify-content:center;font-size:2rem;font-weight:700;line-height:1;color:var(--reg-ink)}
.registry-app-shell #registry-content .reg-member-heading{min-width:0;flex:1}.registry-app-shell #registry-content .reg-member-heading :is(h1,h3){margin:0;font-size:clamp(1.25rem,2.4vw,2rem);line-height:1.2;overflow-wrap:anywhere}
.registry-app-shell #registry-content .reg-member-facts{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:.9rem;margin-block:10px;color:var(--reg-muted)}
.registry-app-shell #registry-content .reg-member-affixes{display:flex;flex-wrap:wrap;gap:8px}.registry-app-shell #registry-content .reg-member-affixes a{display:inline-flex;border-radius:20px;padding:3px 10px;background:var(--reg-tint);color:var(--reg-ink);font-size:.85rem;text-decoration:none}
.registry-app-shell #registry-content .reg-member-contact{min-width:0;font-size:.9rem}.registry-app-shell #registry-content .reg-member-contact .button{width:100%}
.registry-app-shell #registry-content .registry-public-profile .button{background:var(--ds-brand,var(--reg-brand));color:var(--ds-on-brand,var(--reg-on-brand));border-color:var(--ds-brand,var(--reg-brand));text-decoration:none}
.registry-app-shell #registry-content .registry-public-profile .button:is(:hover,:focus-visible){background:var(--ds-brand,var(--reg-brand));color:var(--ds-on-brand,var(--reg-on-brand));text-decoration:none}
.registry-app-shell #registry-content .reg-profile-report{margin-block:10px;font-size:.85rem}.registry-app-shell #registry-content .reg-profile-report summary{list-style:none;text-decoration:underline;font:inherit;cursor:pointer;padding:0}.registry-app-shell #registry-content .reg-profile-report summary::marker{content:''}.registry-app-shell #registry-content .reg-profile-report summary::after{content:none}
.registry-app-shell #registry-content :is(.reg-member-about,.reg-member-animals){border:0;box-shadow:var(--reg-shadow);border-radius:var(--reg-radius);padding:24px;margin-block:24px;background:var(--reg-surface)}
.registry-app-shell #registry-content .reg-member-about p{max-width:70ch;overflow-wrap:anywhere}
.registry-app-shell #registry-content .registry-member-grid>.registry-member-card{border:0;box-shadow:var(--reg-shadow);background:var(--reg-surface);padding:20px;gap:12px}
.registry-app-shell #registry-content .registry-member-card h2{font-family:inherit;font-size:1.125rem;line-height:1.35;margin-block:12px 8px}
.registry-app-shell #registry-content .registry-member-card h2 a{font:inherit;font-weight:650;text-decoration:none;color:var(--reg-ink)}
.registry-app-shell #registry-content .registry-member-card h2 a:hover{text-decoration:underline}
.registry-app-shell #registry-content :is(.registry-member-profile,.registry-member-card) :focus-visible{outline:2px solid var(--reg-brand);outline-offset:3px}
html.thp-high-contrast .registry-app-shell #registry-content :is(.reg-member-header,.reg-member-about,.reg-member-animals,.registry-member-card){box-shadow:none;border:2px solid CanvasText}
@media(max-width:700px){.registry-app-shell #registry-content .registry-member-profile .reg-member-header{grid-template-columns:minmax(0,1fr);padding:18px;gap:18px}.registry-app-shell #registry-content .reg-member-contact{width:100%;max-width:none}.registry-app-shell #registry-content .reg-member-identity{gap:12px}.registry-app-shell #registry-content :is(.reg-member-about,.reg-member-animals){padding:18px}}

/* Full-screen registration uses the existing profile pedigree geometry. */
.registry-registration{padding:clamp(1rem,3vw,2rem);max-width:100%;background:var(--reg-surface);color:var(--reg-ink)}
.registry-registration section>h2{margin-block:1.5rem .4rem}.registry-registration .form>section{border:0;background:transparent;padding:0}
.registration-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem}
.registration-fields label{min-width:0}.registration-submit{position:sticky;bottom:0;display:flex;gap:1rem;align-items:center;background:var(--reg-surface);padding:1rem;border-top:1px solid var(--reg-brand);z-index:3}
.registration-pedigree{grid-template-rows:repeat(var(--pedigree-rows),minmax(4.5rem,auto));align-items:center}
.registration-slot{position:relative;align-self:center;padding:.6rem;width:236px;border:1px solid color-mix(in srgb,var(--reg-brand) 30%,transparent);border-radius:.6rem;background:var(--reg-surface);min-width:0;font-size:.85rem}
.registration-slot label{display:block}.registration-slot input,.registration-slot select{max-width:100%;width:100%}.registration-slot details[open]{z-index:4;position:relative}.registration-slot summary{cursor:pointer}
.registration-slot[hidden]{display:none!important}.registration-slot:focus-within{outline:2px solid var(--reg-brand);outline-offset:2px}
dialog[data-registration-dialog]{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;padding:1rem;background:var(--reg-surface);color:var(--reg-ink);overflow:auto}
dialog[data-registration-dialog]::backdrop{background:#0009}
@media(max-width:600px){.registry-registration{padding:.5rem}.registration-submit{padding:.6rem}.registration-fields{grid-template-columns:1fr}}

/* Dialog and form children must stay within the viewport on mobile. */
dialog[data-registration-dialog]{box-sizing:border-box;max-width:100dvw;overflow-x:hidden}
.registry-registration{width:100%;min-width:0;box-sizing:border-box}
.registry-registration .form{display:block;min-width:0;max-width:100%}
.registry-registration .form>section{min-width:0;max-width:100%}
.registry-registration .pedigree-chart-viewport{width:100%;max-width:100%;box-sizing:border-box;overflow:auto}
.registry-registration .pedigree-chart-controls{display:flex;flex-wrap:wrap;gap:.4rem}
.registry-registration .registration-fields input,.registry-registration .registration-fields select,.registry-registration .registration-fields textarea{box-sizing:border-box;min-width:0;width:100%;max-width:100%}

.pedigree-edit-fields{border:0;padding:0;min-width:0}.pedigree-edit-fields:disabled{opacity:1}

.registration-field-error{display:block;font-weight:600;color:var(--reg-ink);border-inline-start:3px solid var(--reg-brand);padding-inline-start:.5rem;margin-block:.3rem}

.thp-admin .registry-registration{--reg-surface:var(--ds-surface);--reg-ink:var(--ds-ink);--reg-brand:var(--ds-link)}

.registry-registration [data-slot-editor]>summary{list-style:none}.registry-registration [data-slot-editor]>summary::-webkit-details-marker{display:none}

/* Keep an open ancestor editor opaque above neighbouring generation cards. */
.registration-slot:has(details[open]){z-index:5;background:var(--reg-surface)}
.registration-slot details[open]{background:var(--reg-surface)}

/* Keep the registration sections at the requested two/three-column rhythm. */
.registry-registration .registration-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:960px){.registry-registration .registration-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.registry-registration .registration-fields{grid-template-columns:minmax(0,1fr)}}

.pedigree-search-results { max-height: 14rem; overflow: auto; border: 1px solid currentColor; }
.pedigree-search-results [role="option"] { padding: .4rem; cursor: pointer; }
.pedigree-search-results [aria-selected="true"] { outline: 2px solid currentColor; outline-offset: -2px; }
.pedigree-search-results [aria-disabled="true"] { cursor: default; }

/* The page handles vertical scrolling. The pedigree viewport only pans across generations. */
.pedigree-web-only .pedigree-chart-viewport,
.registry-registration .pedigree-chart-viewport{max-height:none}
.pedigree-web-only .pedigree-chart,
.registry-registration .registration-pedigree{--pedigree-row-height:132px!important}
.pedigree-web-only .pedigree-chart-card,
.registry-registration .registration-slot{min-height:0;padding:.35rem .5rem;line-height:1.25;overflow-wrap:anywhere}
.registry-registration h1{overflow-wrap:anywhere}
.registry-registration [data-slot-record] small{display:block}
.pedigree-chart-controls{gap:.35rem;align-items:center}
@media(max-width:480px){
    .registry-registration .registration-pedigree{display:flex;flex-direction:column;width:100%;gap:.35rem}
    .registry-registration .registration-slot{order:var(--slot-generation,0);position:relative}
    .registry-registration .registration-pedigree .pedigree-chart-lines{display:none}
}


/* Compact editing grid, with room for expanded forms and wrapped names. */
html:not(.pedigree50-layout-before) .registry-registration .registration-pedigree{
    grid-template-rows:repeat(var(--pedigree-rows),minmax(2.2rem,auto));
}
html:not(.pedigree50-layout-before) .registry-registration .registration-slot{
    box-sizing:border-box;padding:.18rem .4rem;line-height:1.2;
}
@media(max-width:480px){
    html:not(.pedigree50-layout-before) .registry-registration .registration-pedigree{
        display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:auto;
        gap:.25rem;align-items:start;
    }
    html:not(.pedigree50-layout-before) .registry-registration .registration-slot{
        grid-column:auto!important;grid-row:auto!important;width:100%;align-self:start;
    }
    html:not(.pedigree50-layout-before) .registry-registration .registration-slot[data-generation="0"],
    html:not(.pedigree50-layout-before) .registry-registration .registration-slot:has(details[open]){
        grid-column:1/-1!important;
    }
}
.pedigree50-short-label{display:none}
html:not(.pedigree50-layout-before) .registration-slot[data-generation]:not([data-generation="0"]):not([data-generation="1"]) .pedigree50-full-label{
    position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);
}
html:not(.pedigree50-layout-before) .pedigree50-short-label{display:inline}
.pedigree-chart.registry-pedigree-table { display:table; width:100%; border-collapse:separate; border-spacing:0; table-layout:fixed; }
.registry-pedigree-table th, .registry-pedigree-table td { min-width:150px; padding:3px 6px; border-block-end:1px solid var(--reg-border); border-inline-end:1px solid var(--reg-border); vertical-align:middle; }
.registry-pedigree-table .pedigree-chart-card { display:block; min-height:0; padding:2px; border:0; box-shadow:none; background:transparent; overflow-wrap:anywhere; font-size:.8rem; line-height:1.2; }
.registry-pedigree-table .pedigree-chart-card small { display:inline; }
.registry-pedigree-table .pedigree-chart-role { display:none !important; }
.registry-pedigree-table .pedigree-chart-card strong { display:block; }
.registry-pedigree-sire { background:color-mix(in srgb,var(--reg-surface) 94%,var(--reg-brand)); }
.registry-pedigree-dam, .registry-pedigree-subject { background:var(--reg-surface); }
@media (max-width: 900px) {
  .registry-pedigree-table { table-layout:auto; }
  .registry-pedigree-table :is(th,td):first-child.registry-pedigree-subject,
  .registry-pedigree-table thead th:first-child { position:sticky; inset-inline-start:0; z-index:1; background:var(--reg-surface); }
}

.registry-pedigree-table .registry-pedigree-breeder { display:block; }
.registry-pedigree-table .registry-pedigree-coi { float:inline-end; margin-inline-start:.4em; }
.registry-pedigree-repeat-count { float:inline-end; font-size:.72rem; padding-inline:.3rem; border-radius:.25rem; background:var(--reg-surface); }
.registry-pedigree-table [data-pedigree-repeat] { background:color-mix(in srgb,var(--reg-surface) 90%,var(--reg-brand)); }
.registry-pedigree-table .is-pedigree-highlighted,
.registry-pedigree-table.is-highlighting-common [data-pedigree-common] { background:color-mix(in srgb,var(--reg-surface) 75%,var(--reg-brand)); }
.registry-pedigree-empty { color:var(--reg-ink); background:color-mix(in srgb,var(--reg-surface) 95%,var(--reg-ink)); }
.pedigree-table-generations { display:flex; gap:.5rem; flex-wrap:wrap; margin-block:.5rem; }
.pedigree-table-generations a { padding:.3rem .6rem; border:1px solid var(--reg-border); border-radius:.3rem; }
.pedigree-table-generations [aria-current] { font-weight:700; text-decoration:underline; }
.pedigree-table-generations a:focus-visible,.registry-pedigree-repeat-count:focus-visible { outline:2px solid var(--reg-brand); outline-offset:2px; }
.pedigree-web-only .pedigree-chart-viewport:has(.registry-pedigree-table) { max-height:none; overflow-y:hidden; }
@media (max-width: 900px) {
  .pedigree-chart.registry-pedigree-table { min-width:calc(var(--pedigree-columns) * 150px); }
}
@media print {
  body:has(.registry-pedigree-table) .pedigree-web-only:has(.registry-pedigree-table) { display:block!important; }
  body:has(.registry-pedigree-table) .pedigree-print-only { display:none!important; }
  .pedigree-chart.registry-pedigree-table { width:100%!important; height:auto!important; min-width:0!important; max-width:none!important; table-layout:fixed; }
  .registry-pedigree-table :is(th,td) { position:static!important; min-width:0; padding:1mm; border-color:#bcbcbc; color:#000; font-size:8pt; }
  .registry-pedigree-table .pedigree-chart-card strong,
  .registry-pedigree-table .pedigree-chart-card small { font-size:7pt!important; }
  .registry-pedigree-table .pedigree-from-here { display:none!important; }
}

@media print { .registry-pedigree-table .registry-pedigree-sex-symbol { display:inline!important; } .registry-pedigree-table .registry-pedigree-sex-symbol::after { content:none!important; } }

.registry-registration .registration-pedigree.registry-pedigree-table { display:table; table-layout:fixed; min-width:calc(var(--pedigree-columns) * 150px); }
.registry-pedigree-table [data-editor-generation][hidden] { display:none!important; }
.registry-pedigree-table .registration-slot { min-width:0; overflow-wrap:anywhere; }
.registry-pedigree-table .registration-slot :is(input,select,textarea) { min-width:0; max-width:100%; }
.registry-registration .registry-pedigree-table .registration-slot { width:auto; max-width:100%; border:0; border-radius:0; box-shadow:none; }
.registry-registration .registry-pedigree-table td { overflow-wrap:anywhere; }
.registry-registration .registry-pedigree-table .registration-slot details { min-width:0; }
html:not(.pedigree50-layout-before) .registry-registration .registration-pedigree.registry-pedigree-table { display:table; table-layout:fixed; }
html:not(.pedigree50-layout-before) .registry-registration .registration-pedigree.registry-pedigree-table .registration-slot { width:auto; }
/* 51A-1: scoped overview only; the profile and shared pedigree table are unchanged. */
.registry-app-shell #registry-content .registry-animal-overview { min-width:0; color:var(--reg-ink); }
.registry-app-shell #registry-content .registry-overview-tabs { display:flex; flex-wrap:wrap; gap:.35rem; margin-block:0 1rem; }
.registry-app-shell #registry-content .registry-overview-tabs a { display:inline-flex; align-items:center; gap:.3rem; padding:.5rem .7rem; min-height:44px; border:1px solid var(--reg-line); border-radius:.3rem; background:var(--reg-surface); color:var(--reg-ink); text-decoration:none; }
.registry-app-shell #registry-content .registry-overview-tabs a[aria-current] { border-color:var(--reg-brand); background:color-mix(in srgb,var(--reg-brand) 9%,var(--reg-surface)); font-weight:700; }
.registry-app-shell #registry-content .registry-overview-search { margin-bottom:1rem; }
.registry-app-shell #registry-content .registry-overview-search-row { display:flex; align-items:end; flex-wrap:wrap; gap:.65rem; }
.registry-app-shell #registry-content .registry-overview-search-row label { flex:1 1 150px; min-width:0; }
.registry-app-shell #registry-content .registry-overview-search label { display:grid; gap:.3rem; font-size:.875rem; }
.registry-app-shell #registry-content .registry-overview-search input,.registry-app-shell #registry-content .registry-overview-search select { width:100%; min-width:0; min-height:44px; box-sizing:border-box; }
.registry-app-shell #registry-content .registry-overview-search-row > a { display:inline-flex; min-height:44px; align-items:center; }
.registry-app-shell #registry-content .registry-overview-since { max-width:210px; margin-block:.7rem; }
.registry-app-shell #registry-content .registry-overview-extended { border-block:1px solid var(--reg-line); padding-block:.65rem; }
.registry-app-shell #registry-content .registry-overview-extended summary { cursor:pointer; min-height:44px; display:flex; align-items:center; font-weight:600; }
.registry-app-shell #registry-content .registry-overview-filter-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:.8rem; margin-block:.8rem; }
.registry-app-shell #registry-content .registry-overview-count { margin-block:.6rem; font-size:.9rem; }
.registry-app-shell #registry-content .registry-overview-scroll { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; isolation:isolate; }
.registry-app-shell #registry-content .registry-overview-table { width:100%; min-width:1080px; table-layout:fixed; border-collapse:separate; border-spacing:0; font-size:.8125rem; background:var(--reg-surface); color:var(--reg-ink); }
.registry-app-shell #registry-content .registry-overview-table th,.registry-app-shell #registry-content .registry-overview-table td { box-sizing:border-box; height:40px; line-height:1.3; padding:4px 7px; border:0; border-bottom:1px solid var(--reg-line); text-align:left; vertical-align:middle; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; background:var(--reg-surface); color:var(--reg-ink); }
.registry-app-shell #registry-content .registry-overview-table thead th { position:sticky; top:0; z-index:3; height:52px; transform:translateY(var(--overview-sticky-offset,0px)); background:color-mix(in srgb,var(--reg-brand) 6%,var(--reg-surface)); white-space:normal; overflow-wrap:anywhere; }
.registry-app-shell #registry-content .registry-overview-table tbody tr:nth-child(even)>* { background:color-mix(in srgb,var(--reg-brand) 2.5%,var(--reg-surface)); }
.registry-app-shell #registry-content .registry-overview-table tbody tr:hover>* { background:color-mix(in srgb,var(--reg-brand) 7%,var(--reg-surface)); }
.registry-app-shell #registry-content .registry-overview-table th[data-column=name] { position:sticky; left:0; z-index:2; width:18%; box-shadow:1px 0 0 var(--reg-line); }
.registry-app-shell #registry-content .registry-overview-table thead th[data-column=name] { z-index:4; }
.registry-app-shell #registry-content .registry-overview-table [data-column=number] { width:11%; }
.registry-app-shell #registry-content .registry-overview-table [data-column=sex] { width:4%; text-align:center; }
.registry-app-shell #registry-content .registry-overview-table [data-column=colour] { width:9%; }
.registry-app-shell #registry-content .registry-overview-table [data-column=father],.registry-app-shell #registry-content .registry-overview-table [data-column=mother] { width:12%; }
.registry-app-shell #registry-content .registry-overview-table [data-column=born] { width:8%; }
.registry-app-shell #registry-content .registry-overview-table [data-column=deceased] { width:7%; }
.registry-app-shell #registry-content .registry-overview-table [data-column=breeder] { width:10%; }
.registry-app-shell #registry-content .registry-overview-table [data-column=status] { width:9%; }
.registry-app-shell #registry-content .registry-overview-table a { color:var(--reg-ink); text-decoration:underline; text-underline-offset:3px; }
.registry-app-shell #registry-content .registry-overview-table tbody a { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.registry-app-shell #registry-content .registry-overview-table .animal-name { font-size:inherit; font-weight:600; }
.registry-app-shell #registry-content .registry-overview-sex { color:var(--reg-ink); font-family:Arial,sans-serif; display:inline-block; font-size:1.15rem; line-height:1; }
.registry-app-shell #registry-content .registry-overview-status { display:inline-block; max-width:100%; overflow:hidden; text-overflow:ellipsis; padding:2px 5px; border:1px solid var(--reg-line); border-radius:.25rem; vertical-align:middle; }
.registry-app-shell #registry-content .registry-overview-sort-direction { display:block; font-size:.65rem; font-weight:400; }
.registry-app-shell #registry-content .registry-overview-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.6rem; font-size:.875rem; margin-block:1rem; }
.registry-app-shell #registry-content .registry-overview-pagination nav { display:flex; flex-wrap:wrap; gap:.3rem; align-items:center; }
.registry-app-shell #registry-content .registry-overview-pagination a { min-width:38px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; padding:.25rem .4rem; color:var(--reg-ink); border:1px solid var(--reg-line); border-radius:.25rem; }
.registry-app-shell #registry-content .registry-overview-pagination a[aria-current] { background:color-mix(in srgb,var(--reg-brand) 12%,var(--reg-surface)); font-weight:700; border-color:var(--reg-brand); }
.registry-app-shell #registry-content .registry-animal-overview :focus-visible { outline:2px solid var(--reg-brand); outline-offset:2px; }
html.thp-high-contrast .registry-app-shell #registry-content .registry-overview-table th,html.thp-high-contrast .registry-app-shell #registry-content .registry-overview-table td { background:var(--reg-surface); color:var(--reg-ink); }
@media(max-width:600px) {
 .registry-app-shell #registry-content .registry-overview-search-row label { flex-basis:100%; }
 .registry-app-shell #registry-content .registry-overview-table th[data-column=name] { width:160px; }
 .registry-app-shell #registry-content .registry-overview-pagination { align-items:start; }
}

.registry-app-shell #registry-content .registry-animal-overview .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.registry-app-shell:has(.registry-animal-overview) #registry-content .page-breadcrumb { display:none; }

.registry-app-shell #registry-content .registry-animal-overview { position:relative; }
.registry-app-shell #registry-content .registry-animal-overview .sr-only { top:0; left:0; }
.registry-app-shell #registry-content .registry-overview-scroll { position:relative; }
.registry-app-shell #registry-content .registry-overview-name-actions { display:flex; align-items:center; gap:.4rem; min-width:0; }
.registry-app-shell #registry-content .registry-overview-name-actions .registry-overview-name { flex:1; min-width:0; }
.registry-app-shell #registry-content .registry-animal-overview .registry-live-preview { display:inline-block; flex:none; min-height:0; padding:0; border:0; background:transparent; color:var(--reg-ink); font-size:.7rem; font-weight:400; text-decoration:underline; border-radius:0; }
.registry-app-shell:has(.registry-animal-overview) #registry-content .page-header-divider { border-color:var(--reg-line); }

.registry-app-shell #registry-content .registry-overview-name-actions .registry-whs-badge { flex:none; max-width:58px; min-height:0; padding:2px 3px; line-height:1.2; font-size:.7rem; overflow:hidden; }

.registry-app-shell:has(.registry-animal-overview) #registry-content .reg-workspace-topbar { display:none; }

.registry-app-shell #registry-content .registry-overview-table tbody a { padding-block:6px; }
.registry-app-shell #registry-content .registry-overview-table thead th>a { display:block; padding-block:6px; }
.registry-app-shell #registry-content .registry-animal-overview .registry-live-preview { box-sizing:border-box; min-height:24px; padding:4px 0; }

.registry-app-shell #registry-content .registry-draft-submit-link { flex:none; font-size:.72rem; min-height:24px; box-sizing:border-box; line-height:12px; padding-block:6px; }

/* Both explicit registration actions stay inside the form on narrow screens. */
.registry-registration .registration-submit { flex-wrap:wrap; }
.registry-registration .registration-submit>button { max-width:100%; }

[data-animal-photo]{min-inline-size:0}
[data-photo-preview]{display:block;width:min(100%,22rem);height:auto;touch-action:none;cursor:move}
[data-photo-preview]:focus-visible{outline:2px solid var(--reg-brand);outline-offset:3px}

/* Public live breeding rules, including narrow screens and keyboard anchor targets. */
.registry-public-breeding-rules{overflow-wrap:anywhere}
.registry-public-breeding-rules .breeding-species-rules{margin-block:2rem;padding-block:1rem;border-top:1px solid var(--reg-border)}
.registry-public-breeding-rules h3{scroll-margin-top:10rem}
.registry-public-breeding-rules dl>div{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:.5rem 1rem;padding-block:.5rem;border-bottom:1px solid var(--reg-border)}
.registry-public-breeding-rules dt{font-weight:600}.registry-public-breeding-rules dd{margin:0}
.registry-public-breeding-rules :focus-visible{outline:2px solid var(--reg-brand);outline-offset:3px}
@media(max-width:480px){.registry-public-breeding-rules dl>div{grid-template-columns:minmax(0,1fr)}}

.registry-ancestor-dialog{color:var(--reg-ink);background:var(--reg-surface);border:1px solid var(--reg-line);border-radius:var(--ds-radius-card);max-width:min(36rem,calc(100vw - 2rem));max-height:90dvh;overflow:auto;padding:1rem}
.registry-ancestor-dialog::backdrop{background:color-mix(in srgb,CanvasText 60%,transparent)}
 .registry-ancestor-dialog :is(input:not([type=checkbox],[type=radio]),select,button),[data-slot-open]{min-height:44px;max-width:100%}
.registry-ancestor-dialog label{display:block}
.registry-ancestor-dialog :focus-visible,[data-slot-open]:focus-visible{outline:2px solid var(--ds-focus);outline-offset:2px}
@media(max-width:639px){.registry-ancestor-dialog{width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border-radius:0;box-sizing:border-box}}

[data-slot-modal] .pedigree-slot-extra,[data-slot-modal] [data-slot-record][hidden],[data-slot-modal] [data-slot-open][hidden]{display:none!important}
.registry-ancestor-dialog [data-slot-editor][open]{display:block}
.registry-ancestor-dialog [data-slot-editor] label{max-width:100%;white-space:normal}

.registry-ancestor-dialog{position:fixed;padding:1.2rem;overflow-x:hidden}
.registry-ancestor-dialog .slot-close{position:absolute;inset:.65rem .65rem auto auto}
.registry-ancestor-dialog h2{padding-inline-end:3rem}
.registry-ancestor-dialog .slot-footer{display:flex;gap:.4rem;align-items:center;flex-wrap:wrap;margin-block-start:1rem}
.registry-ancestor-dialog .slot-footer [data-slot-save]{margin-inline-start:auto}
.registry-ancestor-dialog :is(button,.button){box-sizing:border-box;min-height:44px;height:44px;padding:.4rem .65rem;width:auto}
.thp-frontend .registry-ancestor-dialog button.slot-text-control:is(:enabled,:disabled),
.thp-frontend .registry-ancestor-dialog button.slot-text-control:is(:hover,:focus-visible,:active){
    background:transparent!important;border:0!important;box-shadow:none!important;color:var(--ds-link,var(--reg-ink))!important;
    text-decoration:underline;min-height:44px;height:44px;padding:0 .35rem;
}
.thp-frontend .registry-ancestor-dialog button.slot-text-control:focus-visible{outline:2px solid var(--ds-focus);outline-offset:2px}
.registry-ancestor-dialog input:is([type=checkbox],[type=radio]){width:20px;height:20px;min-height:20px;vertical-align:middle}
.registry-ancestor-dialog [data-slot-divider]{margin:.5rem 0;border-block-start:1px solid var(--reg-line)}
.registry-ancestor-dialog .slot-selected{padding:.45rem;border:1px solid var(--reg-line);border-radius:var(--ds-radius-card)}
.registry-ancestor-dialog [hidden]{display:none!important}

.registry-ancestor-dialog [data-slot-detail-fields]{border:0;padding:0;margin:0;min-width:0}
.registry-ancestor-dialog [data-slot-detail-fields] textarea{max-width:100%;width:100%;min-height:5rem;box-sizing:border-box}

.registry-ancestor-dialog .slot-pattern-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.25rem .75rem}
.registry-ancestor-dialog .slot-pattern-grid label{display:flex;align-items:center;gap:.5rem;min-height:44px}
.registry-ancestor-dialog .slot-pattern-grid input{flex:0 0 20px}
.registry-ancestor-dialog{display:none}
.registry-ancestor-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.registry-ancestor-dialog [data-slot-editor]{overflow:auto;min-height:0;max-width:100%}
.registry-ancestor-dialog .slot-footer{flex:none}
.registry-ancestor-dialog .slot-footer [data-slot-save]{margin-inline-start:0}
.registry-ancestor-dialog .slot-footer .secondary{margin-inline-start:auto}
.registry-ancestor-dialog [data-slot-historical]>label{min-width:0}
[data-registration-slot][data-slot-modal]>[data-slot-open]{background:transparent!important;border:0!important;box-shadow:none!important;color:var(--ds-link)!important;text-decoration:underline;padding:.2rem .4rem;font-size:.85rem;min-height:44px}
@media(min-width:640px){.registry-ancestor-dialog [data-slot-historical]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.registry-ancestor-dialog [data-slot-detail-fields]{grid-column:1/-1}}
@media(max-width:639px){.registry-ancestor-dialog .slot-pattern-grid{grid-template-columns:minmax(0,1fr)}}

[data-builder-breadcrumb]{display:flex;gap:.35rem;flex-wrap:wrap;align-items:center}
[data-builder-breadcrumb] a,[data-builder-continue]{min-height:44px;display:inline-flex;align-items:center}
.registry-pedigree-table :is(.registration-slot,.pedigree-chart-card){border-radius:0;box-shadow:none;border-inline-start:2px solid var(--reg-accent);background:var(--reg-surface)}
.registry-pedigree-table .registration-slot{display:block;position:static!important;min-width:0;padding:.35rem .5rem}
[data-registration-pedigree]{min-width:0;max-width:100%}
[data-registration-pedigree] .pedigree-chart-viewport{max-width:100%;overflow:auto}
.registry-ancestor-dialog .slot-remove-confirm{padding:.5rem;border-top:1px solid var(--reg-line)}

/* Affix choices use the existing form tokens and keyboard focus styles. */
.affix-choice{display:flex;align-items:flex-start;gap:.6rem;margin-block:.5rem}.affix-choice input{flex:0 0 20px;width:20px;height:20px;margin-top:.15rem;accent-color:var(--reg-brand)}[data-affix-candidates]{display:flex;flex-wrap:wrap;gap:.5rem}[data-affix-candidates]>p{flex-basis:100%}
