.thpr-dashboard,.thpr-animal-search,.thpr-affix-directory,.thpr-join-grid{max-width:1200px;color:var(--thpr-text,inherit)}
.thpr-dashboard *,.thpr-animal-search *,.thpr-affix-directory *,.thpr-join-grid *{box-sizing:border-box}
.thpr-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Dashboard header */
.thpr-dashboard-profile{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem 1.25rem;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.25)));border-radius:var(--thpr-radius,.65rem) var(--thpr-radius,.65rem) 0 0;background:var(--thpr-dashboard-header-bg);color:var(--thpr-dashboard-header-text,inherit)}
.thpr-dashboard-profile-main{display:flex;align-items:center;gap:1rem;min-width:0}.thpr-dashboard-avatar{width:84px;height:84px;border-radius:50%;object-fit:cover}.thpr-dashboard-identity{min-width:0}.thpr-dashboard-profile h2{margin:.1rem 0 .2rem;font-size:1.55rem}.thpr-dashboard-profile p{margin:0;opacity:.82}.thpr-dashboard-kicker{display:block;font-size:.79rem;text-transform:uppercase;letter-spacing:.07em;font-weight:700;opacity:.72}
.thpr-dashboard-socials{display:flex;gap:.45rem;align-items:center;margin-left:auto}.thpr-dashboard-socials a{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.3)));border-radius:50%;text-decoration:none;color:inherit;font-weight:800}.thpr-dashboard-socials a:hover,.thpr-dashboard-socials a:focus{color:var(--thpr-accent,inherit);border-color:currentColor}
.thpr-demo-switch{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin-top:.55rem;font-size:.84rem}.thpr-demo-switch a{padding:.25rem .5rem;border-radius:999px;text-decoration:none;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.25)));color:inherit}.thpr-demo-switch a.is-active{font-weight:700;color:var(--thpr-accent,inherit)}

/* Foldable dashboard navigation */
.thpr-dashboard-nav{margin:0 0 1.4rem;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.25)));border-top:0;border-radius:0 0 var(--thpr-radius,.65rem) var(--thpr-radius,.65rem);background:var(--thpr-dashboard-menu-bg);color:var(--thpr-dashboard-menu-text,inherit)}
.thpr-dashboard-nav-inner{display:flex;flex-wrap:wrap;align-items:flex-start}.thpr-nav-group{position:relative}.thpr-nav-main-row{display:flex;align-items:stretch}.thpr-nav-link,.thpr-subnav-link{display:flex;align-items:center;text-decoration:none;color:inherit}.thpr-nav-link{padding:.74rem .9rem;font-weight:650}.thpr-nav-link:hover,.thpr-nav-link:focus,.thpr-nav-link.is-active{background:var(--thpr-dashboard-menu-active-bg);color:var(--thpr-dashboard-menu-active-text,var(--thpr-accent,inherit))}
.thpr-subnav-toggle{display:flex;align-items:center;justify-content:center;width:36px;padding:0;border:0;border-left:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.2)));background:transparent;color:inherit;cursor:pointer}.thpr-subnav-toggle .dashicons{transition:transform .15s ease}.thpr-nav-group.is-open .thpr-subnav-toggle .dashicons{transform:rotate(180deg)}
.thpr-dashboard-subnav{position:absolute;left:0;top:100%;z-index:25;min-width:190px;padding:.25rem;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.25)));background:var(--thpr-dashboard-submenu-bg,var(--thpr-dashboard-menu-bg));box-shadow:0 8px 24px rgba(0,0,0,.08)}.thpr-dashboard-subnav[hidden]{display:none!important}.thpr-subnav-link{padding:.58rem .7rem;font-size:.9rem}.thpr-subnav-link:hover,.thpr-subnav-link:focus,.thpr-subnav-link.is-active{font-weight:700;color:var(--thpr-accent,inherit)}

/* Dashboard content */
.thpr-dashboard-content{padding:.25rem 0}.thpr-dashboard-content>h2{margin-top:0}.thpr-dashboard-page{border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.25)));padding:1.1rem;border-radius:var(--thpr-radius,.65rem);background:var(--thpr-dashboard-page-bg)}
.thpr-summary-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.8rem;margin:1rem 0 1.5rem}.thpr-summary-row>div{border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.25)));border-radius:var(--thpr-radius,.65rem);padding:.9rem;background:var(--thpr-dashboard-stat-bg);color:var(--thpr-dashboard-stat-text,inherit)}.thpr-summary-row strong,.thpr-summary-row span{display:block}.thpr-summary-row span{font-size:1.25em;margin-top:.25rem;font-weight:650}
.thpr-dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.85rem}.thpr-dashboard-card{display:block;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.25)));padding:1rem;border-radius:var(--thpr-radius,.65rem);text-decoration:none;color:inherit;background:var(--thpr-dashboard-card-bg)}.thpr-dashboard-card h4{margin:0 0 .35rem}.thpr-dashboard-card p{margin:.2rem 0 .75rem}.thpr-dashboard-card span{font-weight:700;color:var(--thpr-accent,inherit)}

/* Forms and join */
.thpr-join-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.thpr-join-card{padding:1rem;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.25)));border-radius:var(--thpr-radius,.65rem)}
.thpr-form{background:var(--thpr-form-bg);border-radius:var(--thpr-radius,.65rem)}.thpr-grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;margin:1rem 0}.thpr-grid-form label,.thpr-grid-form fieldset{display:flex;flex-direction:column;gap:.35rem}.thpr-form-full{grid-column:1/-1}.thpr-form label,.thpr-form legend{color:var(--thpr-label-text,inherit);font-weight:600}.thpr-form input,.thpr-form select,.thpr-form textarea{width:100%;min-height:42px;padding:.55rem .65rem;font:inherit;background:var(--thpr-input-bg);color:var(--thpr-input-text,inherit);border-color:var(--thpr-input-border)}.thpr-form textarea{min-height:100px}.thpr-inline-check{display:inline-flex!important;flex-direction:row!important;align-items:center;margin-right:1rem}.thpr-inline-check input{width:auto;min-height:0}.thpr-pattern-options{display:flex;flex-wrap:wrap;gap:.6rem 1rem}.thpr-pattern-options label{display:inline-flex;flex-direction:row;align-items:center}.thpr-pattern-options input{width:auto;min-height:0}.thpr-registration-duplicate-results ul{margin:.4rem 0 .25rem 1.2rem}
.thpr-form button,.thpr-search-toolbar button,.thpr-filter-actions button{background:var(--thpr-button-bg);color:var(--thpr-button-text)}

/* Data tables */
.thpr-data-list{display:grid;grid-template-columns:minmax(130px,220px) 1fr;gap:.55rem 1rem}.thpr-data-list dt{font-weight:700}.thpr-data-list dd{margin:0}.thpr-table-wrap{overflow-x:auto;width:100%}.thpr-table{width:100%;border-collapse:collapse;background:var(--thpr-table-row-bg)}.thpr-table thead{background:var(--thpr-table-header-bg);color:var(--thpr-table-header-text,inherit)}.thpr-table tbody tr:nth-child(even){background:var(--thpr-table-alt-bg)}.thpr-table th,.thpr-table td{padding:.68rem;text-align:left;vertical-align:top;border-bottom:1px solid var(--thpr-table-border,var(--ast-border-color,rgba(127,127,127,.2)))}

/* Search bars */
.thpr-animal-search,.thpr-affix-directory{border:1px solid var(--thpr-search-border,var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.25))));padding:1rem;border-radius:var(--thpr-radius,.65rem);background:var(--thpr-search-bg)}.thpr-compact-search-form{margin:1rem 0}.thpr-search-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:.55rem}.thpr-search-toolbar input[type=search]{width:100%;min-height:44px;padding:.62rem .75rem;font:inherit;background:var(--thpr-search-input-bg);color:var(--thpr-search-input-text,inherit);border-color:var(--thpr-search-border)}.thpr-search-toolbar button{min-height:44px;padding:.6rem .95rem;font:inherit}.thpr-search-submit{background:var(--thpr-search-button-bg);color:var(--thpr-search-button-text)}.thpr-filter-toggle{background:var(--thpr-filter-button-bg);color:var(--thpr-filter-button-text)}.thpr-filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.45em;height:1.45em;margin-left:.25rem;padding:0 .3em;border-radius:999px;border:1px solid currentColor;font-size:.75em}.thpr-filter-panel{margin-top:.7rem;padding:.85rem;border:1px solid var(--thpr-search-border,var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.25))));border-radius:var(--thpr-radius,.5rem);background:var(--thpr-filter-panel-bg)}.thpr-filter-panel[hidden]{display:none!important}.thpr-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem}.thpr-filter-grid label{display:flex;flex-direction:column;gap:.3rem;font-weight:600}.thpr-filter-grid input,.thpr-filter-grid select{width:100%;min-height:40px;padding:.5rem;font:inherit;background:var(--thpr-input-bg);color:var(--thpr-input-text,inherit);border-color:var(--thpr-input-border)}.thpr-filter-actions{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap;margin-top:.8rem}

/* Pedigree / charts / notices */
.thpr-pedigree{padding:1rem;background:var(--thpr-pedigree-bg);border-radius:var(--thpr-radius,.65rem)}.thpr-pedigree-node{padding:.65rem;border:1px solid var(--thpr-pedigree-node-border,var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.25))));background:var(--thpr-pedigree-node-bg);color:var(--thpr-pedigree-node-text,inherit);border-radius:var(--thpr-radius,.5rem)}.thpr-pedigree-node small{display:block}.thpr-demo-generation{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.65rem;margin-top:.75rem}.thpr-weight-chart{max-width:650px;margin:1rem 0;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.25)));border-radius:var(--thpr-radius,.65rem);padding:.5rem;color:var(--thpr-accent,currentColor)}.thpr-weight-chart svg{display:block;width:100%;height:auto}
.thpr-notice-info,.thpr-notice-warning,.thpr-notice-error{padding:.75rem 1rem;margin:.75rem 0;border-left:4px solid currentColor;border-radius:.25rem}.thpr-notice-info{background:var(--thpr-notice-info-bg)}.thpr-notice-warning{background:var(--thpr-notice-warning-bg)}.thpr-notice-error{background:var(--thpr-notice-error-bg)}.thpr-note{font-size:.94em;color:var(--thpr-muted,inherit);opacity:.82}

@media(max-width:980px){.thpr-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.thpr-dashboard-nav-inner{display:block}.thpr-nav-group{border-bottom:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.18)))}.thpr-nav-main-row{width:100%}.thpr-nav-link{flex:1}.thpr-dashboard-subnav{position:static;box-shadow:none;border-left:0;border-right:0;border-bottom:0}.thpr-dashboard-profile{align-items:flex-start}.thpr-join-grid{grid-template-columns:1fr}}
@media(max-width:680px){.thpr-dashboard-profile{display:block}.thpr-dashboard-profile-main{align-items:flex-start}.thpr-dashboard-socials{margin:1rem 0 0}.thpr-dashboard-avatar{width:64px;height:64px}.thpr-grid-form{grid-template-columns:1fr}.thpr-form-full{grid-column:1}.thpr-search-toolbar{grid-template-columns:1fr 1fr}.thpr-search-toolbar input[type=search]{grid-column:1/-1}.thpr-filter-grid{grid-template-columns:1fr}.thpr-data-list{grid-template-columns:1fr}.thpr-summary-row{grid-template-columns:1fr 1fr}}
@media(max-width:420px){.thpr-summary-row{grid-template-columns:1fr}}

/* Public THPR profiles */
.thpr-public-profile-shell{width:min(1180px,calc(100% - 2rem));margin:2rem auto}.thpr-public-profile{display:grid;gap:1rem}.thpr-public-profile-header{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;padding:1.2rem;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.25)));border-radius:var(--thpr-radius,.65rem);background:var(--thpr-profile-header-bg);color:var(--thpr-profile-header-text,inherit)}.thpr-public-profile-main{display:flex;align-items:center;gap:1rem;min-width:0}.thpr-public-profile-avatar{width:96px;height:96px;border-radius:50%;object-fit:cover}.thpr-public-profile-main h1{margin:0 0 .25rem;font-size:clamp(1.5rem,3vw,2.25rem)}.thpr-public-profile-main p{margin:0}.thpr-public-socials{display:flex;align-items:center;justify-content:flex-end;gap:.45rem;flex-wrap:wrap}.thpr-public-socials a{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.3)));border-radius:50%;text-decoration:none;color:inherit;font-weight:800}.thpr-public-socials a:hover,.thpr-public-socials a:focus{color:var(--thpr-accent,inherit);border-color:currentColor}.thpr-public-profile-card{padding:1.15rem;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.25)));border-radius:var(--thpr-radius,.65rem);background:var(--thpr-profile-card-bg)}.thpr-public-profile-card>h2:first-child{margin-top:0}.thpr-public-profile-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.thpr-public-profile-title-row h2{margin:.15rem 0 .5rem}.thpr-profile-eyebrow{display:block;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;opacity:.7}.thpr-profile-status{display:inline-flex;padding:.25rem .55rem;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.3)));border-radius:999px;font-size:.82rem;white-space:nowrap}.thpr-public-bio{max-width:78ch}.thpr-profile-tags{display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0 1rem}.thpr-profile-tags span{padding:.35rem .6rem;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.25)));border-radius:999px}.thpr-litter-timeline{display:grid;gap:.75rem}.thpr-litter-timeline-item{display:grid;grid-template-columns:minmax(100px,140px) 1fr;gap:1rem;padding:.8rem 0;border-bottom:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.18)))}.thpr-litter-timeline-item:last-child{border-bottom:0}.thpr-litter-timeline-item time{font-weight:700}.thpr-litter-timeline-item h3{margin:0 0 .35rem}.thpr-litter-timeline-item p{margin:.2rem 0}
@media(max-width:680px){.thpr-public-profile-header{display:block}.thpr-public-socials{justify-content:flex-start;margin-top:1rem}.thpr-public-profile-avatar{width:72px;height:72px}.thpr-public-profile-title-row{display:block}.thpr-profile-status{margin-bottom:.6rem}.thpr-litter-timeline-item{grid-template-columns:1fr;gap:.25rem}}

/* v0.6: theme-aware fallbacks and vertical dashboard hierarchy */
.thpr-dashboard,.thpr-animal-search,.thpr-affix-directory,.thpr-join-grid,.thpr-public-profile,.thpr-animal-profile,.thpr-litter-profile{
  --thpr-theme-accent-color:var(--ast-global-color-0,var(--wp--preset--color--primary,currentColor));
  --thpr-theme-accent-bg:var(--ast-global-color-0,var(--wp--preset--color--primary,transparent));
  --thpr-theme-heading:var(--ast-global-color-2,var(--wp--preset--color--contrast,inherit));
  --thpr-theme-base:var(--ast-global-color-5,var(--wp--preset--color--base,inherit));
  --thpr-theme-surface:var(--ast-global-color-4,var(--wp--preset--color--secondary,transparent));
  --thpr-theme-border:var(--ast-border-color,rgba(127,127,127,.28));
  color:var(--thpr-text,inherit);
}
.thpr-dashboard h1,.thpr-dashboard h2,.thpr-dashboard h3,.thpr-dashboard h4,
.thpr-public-profile h1,.thpr-public-profile h2,.thpr-public-profile h3,.thpr-public-profile h4,
.thpr-animal-profile h1,.thpr-animal-profile h2,.thpr-animal-profile h3,.thpr-animal-profile h4,
.thpr-litter-profile h1,.thpr-litter-profile h2,.thpr-litter-profile h3,.thpr-litter-profile h4,
.thpr-animal-search h2,.thpr-affix-directory h2{color:var(--thpr-heading-text,var(--thpr-theme-heading,inherit))}
.thpr-dashboard a,.thpr-public-profile a,.thpr-animal-profile a,.thpr-litter-profile a{color:var(--thpr-accent,var(--thpr-theme-accent-color,inherit))}

.thpr-dashboard-profile{border-radius:var(--thpr-radius,.65rem);margin-bottom:1rem;background:var(--thpr-dashboard-header-bg,transparent);color:var(--thpr-dashboard-header-text,inherit)}
.thpr-dashboard-body{display:grid;grid-template-columns:minmax(190px,245px) minmax(0,1fr);gap:1.25rem;align-items:start}
.thpr-dashboard-nav{margin:0;border:1px solid var(--thpr-border,var(--thpr-theme-border));border-radius:var(--thpr-radius,.65rem);background:var(--thpr-dashboard-menu-bg,var(--thpr-theme-accent-bg,transparent));color:var(--thpr-dashboard-menu-text,var(--thpr-theme-base,inherit));overflow:hidden;position:sticky;top:2rem}
.thpr-dashboard-nav-inner{display:block}.thpr-nav-group{display:block;position:static;border-bottom:1px solid color-mix(in srgb,currentColor 18%,transparent)}.thpr-nav-group:last-child{border-bottom:0}.thpr-nav-main-row{width:100%}.thpr-nav-link{flex:1;padding:.82rem .9rem;line-height:1.2}.thpr-subnav-toggle{width:40px;min-width:40px}.thpr-nav-link:hover,.thpr-nav-link:focus,.thpr-nav-link.is-active{background:var(--thpr-dashboard-menu-active-bg,color-mix(in srgb,currentColor 12%,transparent));color:var(--thpr-dashboard-menu-active-text,inherit)}
.thpr-dashboard-subnav{position:static;min-width:0;padding:.2rem .35rem .55rem;border:0;border-top:1px solid color-mix(in srgb,currentColor 14%,transparent);background:var(--thpr-dashboard-submenu-bg,color-mix(in srgb,currentColor 7%,transparent));box-shadow:none}.thpr-subnav-link{padding:.56rem .7rem .56rem 1.15rem;border-radius:.35rem}.thpr-subnav-link:hover,.thpr-subnav-link:focus,.thpr-subnav-link.is-active{background:color-mix(in srgb,currentColor 10%,transparent);color:inherit}
.thpr-dashboard-content{min-width:0;padding:0}.thpr-dashboard-page{background:var(--thpr-dashboard-page-bg,transparent);border-color:var(--thpr-border,var(--thpr-theme-border))}.thpr-summary-row>div,.thpr-dashboard-card{background:var(--thpr-dashboard-stat-bg,transparent);border-color:var(--thpr-border,var(--thpr-theme-border))}.thpr-dashboard-card{background:var(--thpr-dashboard-card-bg,transparent)}
.thpr-table{background:var(--thpr-table-row-bg,transparent)}.thpr-table thead{background:var(--thpr-table-header-bg,var(--thpr-theme-surface,transparent));color:var(--thpr-table-header-text,inherit)}.thpr-table tbody tr:nth-child(even){background:var(--thpr-table-alt-bg,transparent)}
.thpr-animal-search,.thpr-affix-directory{background:var(--thpr-search-bg,transparent)}.thpr-filter-panel{background:var(--thpr-filter-panel-bg,transparent)}.thpr-form{background:var(--thpr-form-bg,transparent)}

/* Public animal and litter records */
.thpr-record-page .thpr-public-profile-shell{max-width:1200px;margin:0 auto;padding:1.5rem}
.thpr-record-header{display:flex;align-items:center;gap:1rem;padding:1.15rem 1.25rem;border:1px solid var(--thpr-border,var(--thpr-theme-border));border-radius:var(--thpr-radius,.7rem);background:var(--thpr-profile-header-bg,transparent);color:var(--thpr-profile-header-text,inherit);margin-bottom:1rem}.thpr-record-heading h1{margin:.15rem 0 .25rem}.thpr-record-heading p{margin:0;opacity:.82}.thpr-animal-avatar{width:96px;height:96px;object-fit:cover;border-radius:50%;flex:0 0 auto}.thpr-animal-avatar-placeholder,.thpr-record-icon{display:inline-flex!important;align-items:center;justify-content:center;font-size:44px;width:96px;height:96px;border-radius:50%;border:1px solid var(--thpr-border,var(--thpr-theme-border));color:var(--thpr-accent,var(--thpr-theme-accent-color,inherit))}
.thpr-record-tabs{display:flex;gap:.35rem;overflow-x:auto;padding:.2rem 0 .8rem;border-bottom:1px solid var(--thpr-border,var(--thpr-theme-border));margin-bottom:1rem}.thpr-record-tab-button{border:1px solid var(--thpr-border,var(--thpr-theme-border));background:transparent;color:inherit;border-radius:999px;padding:.55rem .85rem;white-space:nowrap;cursor:pointer;font:inherit}.thpr-record-tab-button.is-active{background:var(--thpr-button-bg,var(--thpr-theme-accent-bg,transparent));color:var(--thpr-button-text,var(--thpr-theme-base,inherit));border-color:transparent}.thpr-record-tab{padding:.25rem 0}.thpr-record-tab[hidden]{display:none!important}
.thpr-public-profile-card{border:1px solid var(--thpr-border,var(--thpr-theme-border));border-radius:var(--thpr-radius,.65rem);padding:1rem;background:var(--thpr-profile-card-bg,transparent);margin:1rem 0}.thpr-profile-eyebrow{text-transform:uppercase;letter-spacing:.06em;font-size:.78rem;font-weight:700;opacity:.7}
.thpr-pedigree-scroll{overflow-x:auto;padding-bottom:.4rem}.thpr-pedigree-columns{display:grid;grid-template-columns:repeat(6,minmax(170px,1fr));gap:.75rem;min-width:1050px}.thpr-pedigree-generation{display:flex;flex-direction:column;gap:.5rem}.thpr-pedigree-generation h3{font-size:.92rem;margin:0 0 .2rem}.thpr-pedigree-node{display:block;min-height:58px;padding:.55rem .65rem;border:1px solid var(--thpr-pedigree-node-border,var(--thpr-border,var(--thpr-theme-border)));background:var(--thpr-pedigree-node-bg,transparent);color:var(--thpr-pedigree-node-text,inherit)!important;border-radius:var(--thpr-radius,.45rem);text-decoration:none}.thpr-pedigree-node small{display:block;opacity:.7;margin-top:.15rem}.thpr-pedigree-node.is-empty{opacity:.5}.thpr-link-list{margin:.4rem 0 1rem 1.2rem}.thpr-link-list li{margin:.35rem 0}.thpr-whs-badge{display:inline-block;font-size:.75rem;padding:.15rem .4rem;border-radius:999px;background:var(--thpr-notice-error-bg,#fce8e8);color:#8a1f1f}

@media(max-width:900px){.thpr-dashboard-body{grid-template-columns:1fr}.thpr-dashboard-nav{position:static}.thpr-dashboard-nav-inner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.thpr-nav-group{border:1px solid color-mix(in srgb,currentColor 15%,transparent);margin:-1px 0 0 -1px}.thpr-dashboard-subnav{position:static}.thpr-record-page .thpr-public-profile-shell{padding:1rem}.thpr-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.thpr-dashboard-nav-inner{grid-template-columns:1fr}.thpr-record-header{align-items:flex-start}.thpr-animal-avatar,.thpr-animal-avatar-placeholder,.thpr-record-icon{width:72px;height:72px}.thpr-filter-grid{grid-template-columns:1fr}}
.thpr-public-profile-header{background:var(--thpr-profile-header-bg,transparent);color:var(--thpr-profile-header-text,inherit);border-color:var(--thpr-border,var(--thpr-theme-border))}

/* THPR 0.7 animal records */
.thpr-record-header{display:flex;align-items:center;gap:1.1rem}.thpr-record-heading{min-width:0}.thpr-record-registration{font-weight:650;letter-spacing:.015em}.thpr-record-statuses{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.55rem}.thpr-record-status{display:inline-flex;align-items:center;padding:.24rem .55rem;border:1px solid var(--thpr-border,var(--thpr-theme-border));border-radius:999px;font-size:.8rem;line-height:1.2;background:var(--thpr-profile-card-bg,transparent)}
.thpr-inline-editor{margin:1rem 0;border:1px solid var(--thpr-border,var(--thpr-theme-border));border-radius:var(--thpr-radius,.55rem);padding:.15rem .75rem}.thpr-inline-editor>summary{cursor:pointer;font-weight:700;padding:.7rem 0;list-style:none}.thpr-inline-editor>summary::-webkit-details-marker{display:none}.thpr-inline-editor>summary::after{content:'+';float:right}.thpr-inline-editor[open]>summary::after{content:'−'}.thpr-inline-form{display:flex;gap:.7rem;align-items:flex-end;flex-wrap:wrap;padding:.4rem 0 .9rem}.thpr-inline-form label{min-width:180px;flex:1}.thpr-action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-bottom:1rem}

/* Structured pedigree tree */
.thpr-pedigree-scroll{overflow:auto;padding:.5rem 0 1rem}.thpr-pedigree-tree{display:inline-flex;min-width:max-content;padding:1rem;background:var(--thpr-pedigree-bg,transparent);border-radius:var(--thpr-radius,.65rem)}.thpr-pedigree-root,.thpr-pedigree-branch{display:flex;align-items:center;position:relative}.thpr-pedigree-parents{display:flex;flex-direction:column;justify-content:center;gap:1rem;position:relative;margin-left:2rem;padding-left:2rem}.thpr-pedigree-parents::before{content:'';position:absolute;left:0;top:15%;bottom:15%;border-left:2px solid var(--thpr-pedigree-connector,var(--thpr-border,var(--thpr-theme-border)))}.thpr-pedigree-parent-branch{position:relative}.thpr-pedigree-parent-branch::before{content:'';position:absolute;left:-2rem;top:50%;width:2rem;border-top:2px solid var(--thpr-pedigree-connector,var(--thpr-border,var(--thpr-theme-border)))}.thpr-pedigree-card{width:220px;flex:0 0 220px;padding:.7rem .75rem;border:1px solid var(--thpr-pedigree-node-border,var(--thpr-border,var(--thpr-theme-border)));background:var(--thpr-pedigree-node-bg,transparent);color:var(--thpr-pedigree-node-text,inherit);border-radius:var(--thpr-radius,.5rem);position:relative}.thpr-pedigree-card h4{margin:.12rem 0 .5rem;font-size:.98rem}.thpr-pedigree-card h4 a{color:inherit;text-decoration:none}.thpr-pedigree-card h4 a:hover{text-decoration:underline}.thpr-pedigree-relation{display:block;text-transform:uppercase;letter-spacing:.06em;font-size:.68rem;font-weight:800;opacity:.65}.thpr-pedigree-card dl{display:grid;grid-template-columns:62px 1fr;gap:.2rem .4rem;margin:0;font-size:.78rem}.thpr-pedigree-card dt{font-weight:700}.thpr-pedigree-card dd{margin:0;min-width:0}.thpr-pedigree-card dd a{color:inherit;text-decoration:underline}

/* Search animal cards */
.thpr-animal-search-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:.8rem;margin-top:.8rem}.thpr-search-animal-card{border:1px solid var(--thpr-search-border,var(--thpr-border,var(--thpr-theme-border)));border-radius:var(--thpr-radius,.6rem);background:var(--thpr-profile-card-bg,transparent);overflow:hidden}.thpr-search-animal-main{display:flex;gap:.8rem;padding:.8rem;color:inherit!important;text-decoration:none!important}.thpr-search-animal-photo{width:72px;height:72px;border-radius:50%;object-fit:cover;flex:0 0 72px}.thpr-search-animal-photo.thpr-animal-avatar-placeholder{display:inline-flex!important;align-items:center;justify-content:center;font-size:32px;border:1px solid var(--thpr-border,var(--thpr-theme-border))}.thpr-search-animal-copy{display:flex;flex-direction:column;gap:.08rem;min-width:0}.thpr-search-animal-copy strong{font-size:1rem}.thpr-search-animal-copy small{opacity:.78}.thpr-search-animal-status{padding:.45rem .8rem;border-top:1px solid var(--thpr-border,var(--thpr-theme-border));font-size:.78rem;font-weight:650;opacity:.8}

/* Litter offspring */
.thpr-offspring-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.75rem}.thpr-offspring-card{display:flex;align-items:center;gap:.7rem;padding:.7rem;border:1px solid var(--thpr-border,var(--thpr-theme-border));border-radius:var(--thpr-radius,.55rem);color:inherit!important;text-decoration:none!important}.thpr-offspring-photo{width:58px;height:58px;border-radius:50%;object-fit:cover;flex:0 0 58px}.thpr-offspring-card>span:last-child{display:flex;flex-direction:column}.thpr-offspring-card small{opacity:.75}

@media(max-width:760px){.thpr-action-row{grid-template-columns:1fr}.thpr-record-header{align-items:flex-start}.thpr-pedigree-card{width:190px;flex-basis:190px}.thpr-pedigree-parents{margin-left:1.3rem;padding-left:1.3rem}.thpr-pedigree-parent-branch::before{left:-1.3rem;width:1.3rem}}

/* THPR 0.9 pedigree registration builder */
.thpr-pedigree-builder{margin:1rem 0 1.25rem;padding:1rem;border:1px solid var(--thpr-border,var(--thpr-theme-border));border-radius:var(--thpr-radius,.65rem);background:var(--thpr-pedigree-bg,transparent)}
.thpr-pedigree-builder-heading h3{margin:0 0 .35rem}.thpr-pedigree-builder-heading p{margin:.2rem 0 1rem}
.thpr-pedigree-builder-roots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start}
.thpr-pedigree-entry{border:1px solid var(--thpr-pedigree-node-border,var(--thpr-border,var(--thpr-theme-border)));border-radius:var(--thpr-radius,.55rem);padding:.8rem;background:var(--thpr-pedigree-node-bg,transparent);color:var(--thpr-pedigree-node-text,inherit)}
.thpr-pedigree-entry-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.7rem;margin-bottom:.7rem;padding-bottom:.55rem;border-bottom:1px solid var(--thpr-border,var(--thpr-theme-border))}.thpr-pedigree-entry-header>div{display:flex;flex-direction:column;gap:.12rem}.thpr-pedigree-entry-relation{text-transform:uppercase;letter-spacing:.06em;font-size:.7rem;font-weight:800;opacity:.68}.thpr-pedigree-entry-state{font-size:.76rem;font-weight:700;padding:.2rem .45rem;border:1px solid var(--thpr-border,var(--thpr-theme-border));border-radius:999px;white-space:nowrap}
.thpr-pedigree-existing,.thpr-pedigree-historical{margin-top:.75rem}.thpr-pedigree-existing-results{margin-top:.45rem}.thpr-pedigree-search-results{display:grid;gap:.35rem}.thpr-pedigree-search-result{display:flex!important;flex-direction:column!important;align-items:flex-start!important;width:100%;padding:.55rem .65rem!important;text-align:left!important;border:1px solid var(--thpr-border,var(--thpr-theme-border))!important;border-radius:.4rem!important;background:transparent!important;color:inherit!important;cursor:pointer}.thpr-pedigree-search-result:hover,.thpr-pedigree-search-result:focus{border-color:var(--thpr-accent,var(--thpr-theme-accent-color,currentColor))!important}.thpr-pedigree-search-result small{opacity:.72}.thpr-pedigree-existing-selected{margin-top:.55rem;padding:.55rem .65rem;border-left:3px solid var(--thpr-accent,var(--thpr-theme-accent-color,currentColor));background:color-mix(in srgb,currentColor 5%,transparent)}
.thpr-pedigree-historical-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.thpr-pedigree-history-patterns,.thpr-pedigree-source-note{grid-column:1/-1}.thpr-pedigree-history-pattern-options{display:flex;flex-wrap:wrap;gap:.45rem .8rem}.thpr-pedigree-history-pattern-options label{display:inline-flex!important;flex-direction:row!important;align-items:center!important;font-weight:500!important}.thpr-pedigree-history-pattern-options input{width:auto!important;min-height:0!important}.thpr-pedigree-generation-actions{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:.75rem}.thpr-pedigree-generation-actions button{width:auto}.thpr-pedigree-children{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:.8rem;padding-top:.8rem;border-top:1px dashed var(--thpr-border,var(--thpr-theme-border))}.thpr-pedigree-children .thpr-pedigree-entry{min-width:0}
@media(max-width:900px){.thpr-pedigree-builder-roots,.thpr-pedigree-children{grid-template-columns:1fr}}
@media(max-width:600px){.thpr-pedigree-historical-grid{grid-template-columns:1fr}.thpr-pedigree-history-patterns,.thpr-pedigree-source-note{grid-column:auto}}

/* THPR 1.0 breeding calculator */
.thpr-breeding-result{display:grid;gap:1rem;margin-top:1rem}.thpr-genetic-result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.75rem}.thpr-genetic-result{display:flex;flex-direction:column;gap:.28rem;padding:.8rem;border:1px solid var(--thpr-border,var(--thpr-theme-border));border-radius:var(--thpr-radius,.55rem);background:var(--thpr-profile-card-bg,transparent);color:inherit}.thpr-genetic-result>strong{font-size:1rem}.thpr-genetic-result>span{font-weight:650}.thpr-genetic-result small{opacity:.78}.thpr-genetic-warning{display:block;padding:.45rem .55rem;margin-top:.25rem;border-left:3px solid currentColor;background:var(--thpr-notice-warning-bg,transparent);opacity:1!important}.thpr-breeding-calculator-form .thpr-action-row{display:flex;flex-wrap:wrap;gap:.6rem}.thpr-link-button{border:0!important;background:transparent!important;color:var(--thpr-accent,var(--thpr-theme-accent-color,currentColor))!important;padding:0!important;text-decoration:underline;cursor:pointer;font:inherit}
.thpr-genetic-result-image{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:calc(var(--thpr-radius,.55rem) - .1rem);margin-bottom:.35rem}

/* v1.1.0 pedigree certificate downloads */
.thpr-record-actions{display:flex;justify-content:flex-end;gap:10px;margin:12px 0 16px}
.thpr-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 14px;border-radius:var(--thpr-button-radius,6px);text-decoration:none!important;background:var(--thpr-button-bg,var(--ast-global-color-0,#385f48));color:var(--thpr-button-text,#fff)!important;border:1px solid transparent;font-weight:600;line-height:1.25}
.thpr-button:hover,.thpr-button:focus{filter:brightness(.94);color:var(--thpr-button-text,#fff)!important}
.thpr-download-list{display:grid;gap:10px}
.thpr-download-item{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--thpr-border-color,currentColor);border-radius:var(--thpr-card-radius,8px);background:var(--thpr-card-bg,transparent)}
.thpr-download-item h4,.thpr-download-item p{margin:0}
.thpr-download-item p{margin-top:3px;font-size:.9em;opacity:.78}
.thpr-download-animal-photo{width:56px;height:56px;object-fit:cover;border-radius:8px;display:flex;align-items:center;justify-content:center}
@media (max-width:720px){.thpr-download-item{grid-template-columns:48px minmax(0,1fr)}.thpr-download-item .thpr-button{grid-column:1/-1}.thpr-download-animal-photo{width:48px;height:48px}}

/* THPR 1.4 frontend account access */
.thpr-access,.thpr-access-grid{max-width:1000px;color:var(--thpr-text,inherit)}
.thpr-access *,.thpr-access-grid *{box-sizing:border-box}
.thpr-access-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:1rem;align-items:start}
.thpr-access-form,.thpr-access-status{padding:1rem;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.28)));border-radius:var(--thpr-radius,.65rem);background:var(--thpr-form-bg,transparent)}
.thpr-access-form{display:grid;gap:.8rem}.thpr-access-form>h3{margin:0}.thpr-access-form>label{display:flex;flex-direction:column;gap:.35rem;font-weight:600}.thpr-access-form small,.thpr-form-help{font-weight:400;opacity:.78}.thpr-access-links{margin-top:.2rem;font-size:.92em}.thpr-access-actions{display:flex;gap:.6rem;flex-wrap:wrap}.thpr-registration-breeder-fields{margin:1rem 0;padding:1rem;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.22)));border-radius:var(--thpr-radius,.55rem)}.thpr-registration-breeder-fields>h4{margin-top:0}.thpr-registration-breeder-fields[hidden]{display:none}.thpr-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.thpr-access h1,.thpr-access h2,.thpr-access h3,.thpr-access h4,.thpr-access-grid h1,.thpr-access-grid h2,.thpr-access-grid h3,.thpr-access-grid h4{color:var(--thpr-heading-text,var(--ast-global-color-2,var(--wp--preset--color--contrast,inherit)))}
.thpr-access a,.thpr-access-grid a{color:var(--thpr-accent,var(--ast-global-color-0,var(--wp--preset--color--primary,inherit)))}
@media(max-width:800px){.thpr-access-grid{grid-template-columns:1fr}}

/* v2.0.0 registry safety, timeline, documents and notifications */
.thpr-security-banner,.thpr-record-status-alert{margin:0 0 1rem;padding:.8rem 1rem;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.28)));border-left-width:4px;border-radius:var(--thpr-radius,.55rem);background:var(--thpr-card-bg,transparent);color:var(--thpr-text,inherit)}
.thpr-record-status-alert.is-warning,.thpr-security-banner{border-left-color:#dba617}.thpr-record-status-alert.is-success{border-left-color:#00a32a}.thpr-record-status-alert.is-error{border-left-color:#d63638}
.thpr-notification-center{display:grid;gap:.8rem}.thpr-notification-toolbar{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap}.thpr-notification-list{display:grid;gap:.65rem}.thpr-notification{padding:.85rem 1rem;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.26)));border-radius:var(--thpr-radius,.55rem);background:var(--thpr-card-bg,transparent);color:var(--thpr-text,inherit)}.thpr-notification.is-unread{border-left:4px solid var(--thpr-accent,var(--ast-global-color-0,var(--wp--preset--color--primary,currentColor)))}.thpr-notification-head{display:flex;justify-content:space-between;gap:.8rem;align-items:flex-start}.thpr-notification h4{margin:0;color:var(--thpr-heading-text,var(--ast-global-color-2,var(--wp--preset--color--contrast,inherit)))}.thpr-notification p{margin:.35rem 0}.thpr-notification time{font-size:.85em;opacity:.72;white-space:nowrap}.thpr-notification-actions{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:.55rem}
.thpr-timeline{position:relative;display:grid;gap:0;padding-left:1.7rem;margin:1rem 0}.thpr-timeline:before{content:"";position:absolute;left:.42rem;top:.45rem;bottom:.45rem;width:2px;background:var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.26)))}.thpr-timeline-item{position:relative;padding:0 0 1rem 1rem}.thpr-timeline-item:before{content:"";position:absolute;left:-1.37rem;top:.45rem;width:.72rem;height:.72rem;border-radius:50%;background:var(--thpr-accent,var(--ast-global-color-0,var(--wp--preset--color--primary,currentColor)));box-shadow:0 0 0 3px var(--thpr-card-bg,var(--thpr-dashboard-page-bg,#fff))}.thpr-timeline-item:last-child{padding-bottom:0}.thpr-timeline-date{font-size:.84em;opacity:.72}.thpr-timeline-type{display:inline-block;margin-left:.35rem;font-size:.75em;font-weight:700;text-transform:uppercase;letter-spacing:.035em;opacity:.72}.thpr-timeline-title{margin:.12rem 0 .25rem;font-weight:700;color:var(--thpr-heading-text,var(--ast-global-color-2,var(--wp--preset--color--contrast,inherit)))}.thpr-timeline-detail{margin:0;opacity:.9}
.thpr-document-vault{display:grid;gap:1rem}.thpr-document-list{display:grid;gap:.65rem}.thpr-document-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.8rem;align-items:center;padding:.8rem 1rem;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.26)));border-radius:var(--thpr-radius,.55rem);background:var(--thpr-card-bg,transparent)}.thpr-document-item h4{margin:0;color:var(--thpr-heading-text,var(--ast-global-color-2,var(--wp--preset--color--contrast,inherit)))}.thpr-document-meta{font-size:.86em;opacity:.75}.thpr-document-actions{display:flex;gap:.45rem;flex-wrap:wrap;justify-content:flex-end}.thpr-document-upload{padding:1rem;border:1px dashed var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.34)));border-radius:var(--thpr-radius,.55rem)}
.thpr-definition-grid{display:grid;grid-template-columns:minmax(160px,220px) 1fr;gap:.55rem 1rem;margin:1rem 0}.thpr-definition-grid dt{font-weight:700}.thpr-definition-grid dd{margin:0}.thpr-certificate-verification{max-width:980px;margin:2rem auto;padding:1.25rem;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.3)));border-radius:var(--thpr-radius,.7rem);background:var(--thpr-card-bg,transparent);color:var(--thpr-text,inherit)}.thpr-certificate-verification h1,.thpr-certificate-verification h2,.thpr-certificate-verification h3{color:var(--thpr-heading-text,var(--ast-global-color-2,var(--wp--preset--color--contrast,inherit)))}
.thpr-security-status-list{display:grid;gap:.75rem}.thpr-security-case{padding:.9rem;border:1px solid var(--thpr-border,var(--ast-border-color,rgba(127,127,127,.26)));border-radius:var(--thpr-radius,.55rem);background:var(--thpr-card-bg,transparent)}.thpr-security-case h4{margin-top:0}.thpr-breeding-warning-list{margin:.7rem 0 0 1.2rem}.thpr-breeding-warning-list li{margin:.25rem 0}
@media(max-width:700px){.thpr-document-item{grid-template-columns:1fr}.thpr-document-actions{justify-content:flex-start}.thpr-definition-grid{grid-template-columns:1fr}.thpr-notification-head{display:block}.thpr-notification time{display:block;margin-top:.2rem}}
