/* Part 2: output-only fixes, reusing the application canvas and Registry tokens. */
.registry-app-shell #registry-content :is(.detail-grid,.registry-health-stack,.registry-match-grid){display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:stretch;min-width:0;margin-block:0 24px}
.registry-app-shell #registry-content :is(.detail-grid,.registry-health-stack,.registry-match-grid)>.card{box-sizing:border-box;min-width:0;min-inline-size:0;width:auto;max-width:100%;margin:0;overflow-wrap:anywhere;align-self:stretch}
.registry-app-shell #registry-content :is(.registry-animal-detail,.registry-litter-detail,.registry-match-workspace){min-width:0;overflow-wrap:anywhere}
.registry-app-shell #registry-content .card{background:var(--reg-surface);color:var(--reg-ink);border:1px solid var(--reg-line);border-radius:var(--ds-radius-card);box-shadow:var(--ds-shadow-sm,none)}
.registry-app-shell #registry-content .card>h2::before{display:none;content:none}
.registry-app-shell #registry-content .registry-context-label{font-weight:400;font-size:.9rem;letter-spacing:normal;text-transform:none;color:var(--reg-muted);margin:0 0 8px}
.registry-app-shell #registry-content :is(.lead,.page-header-subtitle,.reg-page-heading>p,.registry-hero p){font-weight:400;letter-spacing:normal;text-transform:none}
.registry-app-shell #registry-content :is(.reg-profile-photo,.registry-animal-card__media):not(:has(img)){display:none}
.registry-app-shell #registry-content .reg-form-panel>summary::after{content:none}
.registry-app-shell #registry-content .registry-chart-legend{display:flex;flex-wrap:wrap;gap:8px 16px;margin-block:12px}
.registry-app-shell #registry-content .registry-chart-legend>span{display:inline-flex;align-items:center;gap:8px;background:transparent;color:var(--reg-ink);border:0;border-radius:0;padding:2px 0;font-size:.875rem;box-shadow:none}
.registry-app-shell #registry-content .registry-chart-legend i{display:inline-block;flex:0 0 10px;width:10px;height:10px;border:1px solid var(--reg-ink);border-radius:2px}
.registry-app-shell #registry-content .weight-add-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:16px;margin-top:20px;box-shadow:none;padding:16px;min-width:0}
.registry-app-shell #registry-content .weight-add-form label{display:flex;flex-direction:column;gap:6px;min-width:0}
.registry-app-shell #registry-content .weight-add-form button{align-self:end}
.registry-app-shell #registry-content .registry-match-workspace{display:grid;gap:24px;width:100%;max-width:none;padding:0}
.registry-app-shell #registry-content .registry-match-review{margin:0;padding:20px}
.registry-match-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}
.registry-match-header nav{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;font-size:.875rem}
.registry-app-shell #registry-content .registry-match-header h1{font-size:clamp(1.6rem,3vw,2.3rem);margin:0;min-width:0}
.registry-review-name-parts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0 0}
.registry-review-name-parts dt{font-size:.85rem;font-weight:600}.registry-review-name-parts dd{margin:4px 0 0;overflow-wrap:anywhere}
.registry-app-shell #registry-content .registry-name-parts-editor{padding:12px 0;min-width:0}
.registry-app-shell #registry-content .registry-name-parts-editor>label{display:flex;flex-direction:column;gap:6px;margin:12px 0;min-width:0}
.registry-app-shell #registry-content .registry-name-parts-editor input{box-sizing:border-box;width:100%;min-width:0}
.registry-sex-counts{display:block;font-size:.85rem;margin-top:4px}
.registry-app-shell #registry-content .registry-animal-directory-grid{align-items:stretch}
.registry-app-shell #registry-content .registry-animal-card{height:100%;box-shadow:none;border-radius:var(--ds-radius-card)}
.registry-app-shell #registry-content .registry-animal-card__media{aspect-ratio:16/9;max-height:180px;min-height:0}
.registry-app-shell #registry-content .registry-animal-card__body{padding:16px;gap:8px;min-width:0}
.registry-app-shell #registry-content .registry-animal-card h2{font-size:1.08rem;line-height:1.3}
.registry-app-shell #registry-content .registry-animal-card__name{min-height:44px}
.registry-app-shell #registry-content .registry-animal-card__facts{gap:8px 16px;font-size:.9rem}
.registry-app-shell #registry-content .registry-animal-card__statuses{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:auto}
.registry-app-shell #registry-content .registry-animal-card__statuses>:is(.pill,.registry-whs-badge){display:inline-flex;align-items:center;min-height:30px;min-width:0;max-width:100%;padding:4px 8px;font-size:.78rem;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.registry-app-shell #registry-content .registry-animal-card__statuses .registry-whs-badge{margin:0}
.registry-app-shell #registry-content .registry-animal-card__country{white-space:normal;line-height:1.3}
.registry-app-shell #registry-content .registry-animal-card__facts em{font-size:.85em}
@media(min-width:1100px){.registry-app-shell #registry-content .registry-animal-detail>.detail-grid:not(.registry-health-stack){grid-template-columns:repeat(2,minmax(0,1fr))}.registry-app-shell #registry-content .registry-match-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.registry-match-header{grid-template-columns:1fr}.registry-review-name-parts{grid-template-columns:1fr;gap:12px}.registry-app-shell #registry-content .registry-match-review{padding:16px}.registry-app-shell #registry-content .registry-animal-card{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:start;height:auto}.registry-app-shell #registry-content .registry-animal-card:not(:has(.registry-animal-card__media)){grid-template-columns:minmax(0,1fr)}.registry-app-shell #registry-content .registry-animal-card__media{aspect-ratio:1;width:88px;height:88px;max-height:88px;margin:12px 0 0 12px;border-radius:8px}.registry-app-shell #registry-content .registry-animal-card__body{padding:12px;gap:6px}.registry-app-shell #registry-content .registry-animal-card h2{font-size:1rem}.registry-app-shell #registry-content .registry-animal-card__facts{font-size:.82rem;gap:4px 12px}.registry-app-shell #registry-content .registry-animal-card__registration{font-size:.8rem}.registry-app-shell #registry-content .registry-animal-card__species em{display:none}}
html.thp-high-contrast .registry-app-shell #registry-content :is(.card,.registry-animal-card){border:2px solid CanvasText;box-shadow:none}

.registry-app-shell #registry-content .animal-name{color:var(--reg-ink)}
.registry-app-shell #registry-content .registry-hero::after{content:none;display:none}

.registry-app-shell #registry-content .weight-stat-grid>div{background:var(--reg-tint);color:var(--reg-ink);border-color:var(--reg-line)}
.registry-app-shell #registry-content .weight-stat-grid :is(dt,dd,small){color:var(--reg-ink)}
.registry-app-shell #registry-content .weight-range-controls button[aria-pressed="true"],.registry-app-shell #registry-content .weight-point-tooltip{background:var(--reg-brand);color:var(--reg-on-brand);border-color:var(--reg-brand)}

.registry-app-shell #registry-content .registry-animal-detail>:is(.card,.reg-profile-banner){margin-block:0 24px}
