/* Apple reference shell. Todo scoped a .app-shell-frame.apple-reference-shell */
.app-shell-frame.apple-reference-shell {
  --ap-text: #1d1d1f; --ap-sec: #6e6e73; --ap-ter: #86868b;
  --ap-bg: #f5f5f7; --ap-surface: #fff; --ap-line: #e5e5ea;
  --ap-red: #c8102e; --ap-pink: #fde8ec;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 13px; line-height: 16px; color: var(--ap-text);
  background: var(--ap-bg); padding: 0; gap: 0; display:flex; overflow:hidden; width:100%;
  -webkit-font-smoothing: antialiased;
}
.dark .app-shell-frame.apple-reference-shell {
  --ap-text: #f5f5f7; --ap-sec: #a1a1a6; --ap-ter: #8e8e93;
  --ap-bg: #1c1c1e; --ap-surface: #2c2c2e; --ap-line: #3a3a3c; --ap-pink: #3a1a20;
}
.app-shell-frame.apple-reference-shell * { font-family: inherit; }
.app-shell-frame.apple-reference-shell :is(b, strong, th, h1, h2, h3) { font-weight: 600; }

/* Sidebar */
.apple-reference-shell .apple-sidebar {
  width: 232px; border: 0; border-right: 1px solid var(--ap-line); border-radius: 0;
  background: var(--ap-bg); box-shadow: none; padding: 0;
}
.apple-reference-shell .apple-nav { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.apple-reference-shell .apple-nav-search {
  display: flex; align-items: center; gap: 8px; margin: 8px 12px; padding: 0 10px; height: 34px;
  background: var(--ap-surface); border: 1px solid var(--ap-line); border-radius: 10px; color: var(--ap-sec);
}
.apple-reference-shell .apple-nav-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ap-text); font-size: 13px; line-height: 16px;
}
.apple-reference-shell .apple-nav-search:focus-within { border-color: var(--ap-red); }
.apple-reference-shell .apple-nav-scroll { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.apple-reference-shell .apple-nav-group-head {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 14px 8px 4px; font-size: 12px; line-height: 15px; font-weight: 500; color: var(--ap-sec);
  background: none; border: 0; cursor: pointer;
}
.apple-reference-shell .apple-nav-link {
  position: relative; display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px;
  border-radius: 8px; font-size: 13px; line-height: 16px; font-weight: 400; color: var(--ap-text); text-decoration: none;
}
.apple-reference-shell .apple-nav-link:hover { background: rgba(0,0,0,.05); }
.dark .apple-reference-shell .apple-nav-link:hover { background: rgba(255,255,255,.08); }
.apple-reference-shell .apple-nav-link.is-active { background: var(--ap-pink); color: var(--ap-red); font-weight: 600; }
.apple-reference-shell .apple-nav-icon { width: 16px; height: 16px; flex: none; stroke-width: 1.6; }
.apple-reference-shell .apple-nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apple-reference-shell .apple-nav-count {
  font-size: 11px; line-height: 14px; font-weight: 600; padding: 1px 6px; border-radius: 6px;
  background: #fef3c7; color: #92600a; font-variant-numeric: tabular-nums;
}
.apple-reference-shell .apple-nav-dot { position: absolute; top: 6px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--ap-red); }
.apple-reference-shell .apple-nav-sep { height: 1px; margin: 8px 6px; background: var(--ap-line); }
.apple-reference-shell .apple-nav-empty { padding: 12px 8px; font-size: 12px; color: var(--ap-sec); }
.apple-reference-shell .apple-nav.is-collapsed .apple-nav-link { justify-content: center; padding: 0; width: 40px; margin: 2px auto; height: 36px; }
.apple-reference-shell .apple-nav.is-collapsed .apple-nav-scroll { padding: 8px 6px; }

/* Header + main */
.apple-reference-shell .apple-header {
  height: 48px; padding: 0 24px; background: var(--ap-surface); border-bottom: 1px solid var(--ap-line);
  font-size: 13px; line-height: 16px;
}
.apple-reference-shell .apple-main {
  background: var(--ap-surface); border-radius: 0; margin: 0; width: 100%;
}
@media (min-width: 768px) {
  .apple-reference-shell .apple-main { margin: 8px 8px 8px 0; border: 1px solid var(--ap-line); border-radius: 12px; }
}
.apple-reference-shell .apple-page-content { max-width: none; width: 100%; padding: 24px 32px; }

/* Typography (desktop) */
.apple-reference-shell .apple-page-content h1 { font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -.01em; }
.apple-reference-shell .apple-page-content h2 { font-size: 17px; line-height: 22px; font-weight: 600; }
.apple-reference-shell .apple-page-content :is(button, input, select, textarea, table, th, td) { font-size: 13px; line-height: 16px; }
.apple-reference-shell .apple-page-content :is(th, label) { font-size: 12px; line-height: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ap-sec); }
.apple-reference-shell .apple-page-content :is(table, .tabular) { font-variant-numeric: tabular-nums; }
.apple-reference-shell .apple-page-content :is(.text-xs, .text-\[11px\]) { font-size: 11px; line-height: 14px; }
.apple-reference-shell .apple-page-content :is(.text-\[10px\], .text-\[9px\], .text-\[8px\]) { font-size: 11px; line-height: 14px; }
.apple-reference-shell .apple-page-content .text-muted-foreground { color: var(--ap-sec); }
.apple-reference-shell .apple-page-content :is(.font-black, .font-extrabold) { font-weight: 700; }
.apple-reference-shell .apple-page-content :is(.font-light) { font-weight: 400; }
.apple-reference-shell .apple-page-content .text-5xl { font-size: 28px; line-height: 34px; font-weight: 600; font-variant-numeric: tabular-nums; }
.apple-reference-shell .apple-page-content :is(input, select, textarea) {
  border-radius: 10px; background: var(--ap-surface); border-color: var(--ap-line);
}
.apple-reference-shell .apple-page-content :is(input, select, textarea):focus { border-color: var(--ap-red); outline: 0; box-shadow: 0 0 0 3px rgba(200,16,46,.12); }

/* Cards y tablas: planas, hairline */
.apple-reference-shell .apple-page-content :is(.bg-card.border) {
  background: var(--ap-surface); border-color: var(--ap-line); border-radius: 12px; box-shadow: none;
}
.apple-reference-shell .apple-page-content table { border-collapse: collapse; width: 100%; }
.apple-reference-shell .apple-page-content :is(th) { padding: 10px 12px; border-bottom: 1px solid var(--ap-line); white-space: nowrap; }
.apple-reference-shell .apple-page-content td { padding: 10px 12px; }
.apple-reference-shell .apple-page-content tbody tr { border-bottom: 1px solid var(--ap-line); }
.apple-reference-shell .apple-page-content tbody tr:hover { background: rgba(0,0,0,.025); }
.apple-reference-shell .apple-page-content tbody td a { color: var(--ap-text); font-weight: 600; }

/* Boton primario rojo (Nuevo residente, Nueva evolucion) */
.apple-reference-shell .apple-page-content :is(button.bg-\[\#da3633\], button.bg-primary) {
  background: var(--ap-red); color: #fff; border-radius: 10px; box-shadow: none; font-weight: 600;
}
.apple-reference-shell .apple-page-content :is(button.bg-\[\#da3633\], button.bg-primary):hover { background: #a60d26; }

/* ===== Residentes: una sola tabla unificada ===== */
/* Se oculta el listado duplicado; queda la tabla de contratos como tabla unica. */
.apple-reference-shell .apple-residents-page .rp-residents-list-card { display: none; }
.apple-reference-shell .apple-residents-page .rp-resident-contracts { overflow: hidden; }
.apple-reference-shell .apple-residents-page .rp-resident-contracts > div:first-child { display: none; }

/* ===== Clinica ===== */
.apple-reference-shell .apple-clinical-page { background: var(--ap-surface); }
.apple-reference-shell .apple-clinical-identity { display: flex; flex-direction: column; gap: 8px; padding: 16px 32px 0; }
.apple-reference-shell .apple-clinical-identity h1 { font-size: 26px; line-height: 32px; }
.apple-reference-shell .apple-clinical-records { min-width: 0; }
.apple-reference-shell .apple-clinical-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1100px) {
  .apple-reference-shell .apple-clinical-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .apple-reference-shell .apple-clinical-layout > aside,
  .apple-reference-shell .apple-clinical-summary { position: sticky; top: 16px; }
}
.apple-reference-shell .apple-clinical-summary > section { border: 1px solid var(--ap-line); border-radius: 12px; padding: 12px 16px; background: var(--ap-surface); }
.apple-reference-shell .apple-clinical-summary > section + section { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }

/* Mobile */
@media (max-width: 767px) {
  .app-shell-frame.apple-reference-shell { font-size: 17px; line-height: 22px; }
  .apple-reference-shell .apple-page-content { padding: 16px; }
  .apple-reference-shell .apple-page-content h1 { font-size: 34px; line-height: 41px; }
  .apple-reference-shell .apple-page-content :is(input, select, textarea) { font-size: 17px; line-height: 22px; }
  .apple-reference-shell .apple-page-content :is(button, th, td) { font-size: 15px; line-height: 20px; }
  .apple-reference-shell .apple-page-content :is(.text-xs, .text-\[11px\]) { font-size: 13px; line-height: 18px; }
  .apple-reference-shell .apple-page-content .text-5xl { font-size: 22px; line-height: 28px; font-weight: 700; }
  .apple-reference-shell .apple-page-content :is(.apple-resident-name) { font-size: 17px; line-height: 22px; font-weight: 600; }
  .apple-reference-shell .apple-header { padding: 0 16px; }
  .apple-reference-shell .apple-nav-link, .apple-reference-shell .apple-nav-search input { font-size: 17px; line-height: 22px; height: 44px; }
  .apple-reference-shell .apple-nav-search { height: 44px; }
  .apple-reference-shell .apple-nav-group-head { font-size: 13px; line-height: 18px; }
}

/* Final scoped layer: preserve the published behavior while replacing its chrome. */
.app-shell-frame.apple-reference-shell { height:calc(100dvh / var(--app-ui-scale,1))!important; min-width:0; }
.apple-reference-shell .apple-main { flex:1; min-width:0; height:auto; padding-left:0!important; background:var(--ap-surface); overflow:hidden; display:flex; flex-direction:column; }
.apple-reference-shell .apple-page-content { flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; }
.apple-reference-shell .apple-page-content > div { max-width:none!important; width:100%; }
.apple-reference-shell .apple-sidebar { display:flex; flex-direction:column; flex-shrink:0; overflow:hidden; height:100%; }
.apple-reference-shell.apple-rail .apple-sidebar { width:64px; }
.apple-reference-shell .apple-brand { min-height:68px; padding:14px 12px; display:flex; gap:8px; align-items:center; }
.apple-reference-shell .apple-brand img { width:32px; height:38px; object-fit:contain; }
.apple-reference-shell .apple-brand div { min-width:0; flex:1; }
.apple-reference-shell .apple-brand strong,.apple-reference-shell .apple-account strong { display:block; font-size:13px; line-height:16px; font-weight:600; overflow-wrap:anywhere; }
.apple-reference-shell .apple-brand small,.apple-reference-shell .apple-account small { display:block; color:var(--ap-sec); font-size:11px; line-height:14px; }
.apple-reference-shell .apple-brand button { padding:6px; color:var(--ap-sec); }
.apple-reference-shell .apple-sidebar-footer { margin:8px 12px; padding-top:12px; border-top:1px solid var(--ap-line); font-size:11px; line-height:14px; }
.apple-reference-shell .apple-sidebar-footer > button { width:100%; text-align:left; display:flex; justify-content:space-between; padding:7px 0; }
.apple-reference-shell .apple-sidebar-footer > button span { color:var(--ap-sec); }
.apple-reference-shell .apple-account { display:flex; align-items:center; gap:8px; padding-block:8px; }
.apple-reference-shell .apple-account-avatar { width:30px; height:30px; border-radius:50%; background:var(--ap-line); display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden; }
.apple-reference-shell .apple-account-avatar img { width:100%; height:100%; object-fit:cover; }
.apple-reference-shell .apple-header { display:flex; align-items:center; flex-shrink:0; min-height:46px; height:46px; border-bottom:1px solid var(--ap-line); padding:0 20px; gap:12px; position:relative; z-index:100; background:var(--ap-surface); }
.apple-reference-shell .apple-menu-toggle { width:30px; height:30px; display:flex; justify-content:center; align-items:center; flex-shrink:0; }
.apple-reference-shell .apple-breadcrumb { flex:1; min-width:0; display:flex; gap:10px; font-size:11px; line-height:14px; align-items:center; }
.apple-reference-shell .apple-breadcrumb span { color:var(--ap-sec); }
.apple-reference-shell .apple-breadcrumb strong { font-weight:500; overflow-wrap:anywhere; }
.apple-reference-shell .apple-header h2,.apple-reference-shell .apple-header h2 + span,.apple-reference-shell .apple-header h2~span,.apple-reference-shell .apple-header h2 + span + span { display:none; }
.apple-reference-shell .apple-header > div:not(.apple-breadcrumb) { gap:10px; }
.apple-reference-shell .apple-header > div:nth-last-child(2) > div:last-child > div:last-child:not(:first-child) { display:none; }
.apple-reference-shell .apple-header > div:last-child > .border-l { display:none; }
.apple-reference-shell .apple-header > div:not(.apple-breadcrumb) > div:has(>h2) + div { display:none; }
.apple-reference-shell .apple-header :is(button,select,p,span,label) { font-size:11px; line-height:14px; }
.apple-reference-shell .apple-header select { font-size:13px; line-height:16px; font-weight:400; }
.apple-reference-shell .apple-page-content :is(button,input,select,textarea) { font-size:13px!important; line-height:16px!important; font-weight:400; }
.apple-reference-shell :is([style*="font-size: 8px"],[style*="font-size: 9px"],[style*="font-size: 10px"]) { font-size:11px!important; line-height:14px!important; }
.apple-reference-shell :is([style*="font-weight: 800"],[style*="font-weight: 900"]) { font-weight:700!important; }
.apple-reference-shell [style*="font-weight: 300"] { font-weight:400!important; }
.apple-reference-shell .apple-page-content :is(.font-extrabold,.font-black) { font-weight:700!important; }
.apple-reference-shell .apple-page-content :is(.font-light,.font-extralight) { font-weight:400!important; }
.apple-reference-shell .apple-page-content :is([class*="text-[8px]"],[class*="text-[9px]"],[class*="text-[10px]"]) { font-size:11px!important; line-height:14px!important; }
.apple-reference-shell .apple-page-content :is(h1,h2,h3,h4) { letter-spacing:normal; }
.apple-reference-shell .apple-page-content h1 { letter-spacing:-.02em; }
.apple-reference-shell .apple-page-content :is(.text-muted-foreground,[class*="text-[#8b949e]"]) { color:var(--ap-sec); }
.apple-reference-shell .apple-page-content :is(.text-3xl,.text-4xl,.text-5xl) { font-size:28px; line-height:34px; font-weight:600; font-variant-numeric:tabular-nums; }
.apple-reference-shell .apple-residents-page { display:flex; flex-direction:column; gap:20px; }
.apple-reference-shell .apple-residents-page > * { margin-top:0!important; }
.apple-reference-shell .apple-residents-page > .grid { gap:12px; }
.apple-reference-shell .apple-residents-page > .grid > div { box-shadow:none; border:1px solid var(--ap-line); border-radius:9px; background:var(--ap-surface); padding:16px; }
.apple-reference-shell .apple-residents-page h1 { text-transform:none; }
.apple-reference-shell .apple-resident-table-card { border:1px solid var(--ap-line); border-radius:10px; background:var(--ap-surface); overflow:hidden; }
.apple-reference-shell .apple-resident-toolbar { padding:10px; border-bottom:1px solid var(--ap-line); }
.apple-reference-shell .apple-resident-toolbar > div { border:0; padding:0; flex-wrap:wrap; gap:12px; }
.apple-reference-shell .apple-table-scroll { overflow-x:auto; }
.apple-reference-shell .apple-table-scroll table { width:100%; min-width:1080px; table-layout:auto!important; }
.apple-reference-shell .apple-table-scroll :is(th,td) { text-align:left!important; white-space:normal!important; padding:12px!important; font-family:inherit!important; }
.apple-reference-shell .apple-table-scroll th { font-size:12px; line-height:15px; font-weight:500; text-transform:none; background:transparent; }
.apple-reference-shell .apple-resident-cell { display:flex; align-items:center; gap:10px; }
.apple-reference-shell .apple-resident-photo { width:34px; height:34px; border-radius:50%; overflow:hidden; flex-shrink:0; display:flex; align-items:center; justify-content:center; background:var(--ap-line); }
.apple-reference-shell .apple-resident-photo img { width:100%; height:100%; object-fit:cover; }
.apple-reference-shell .apple-resident-cell small { font-size:11px; line-height:14px; color:var(--ap-sec); display:block; }
.apple-reference-shell .apple-resident-name { font-weight:600; font-size:13px; line-height:16px; }
.apple-reference-shell .apple-missing-contract { color:#815f00; background:#fff5ce; border-radius:5px; padding:3px 5px; font-size:11px; line-height:14px; display:inline-flex; margin-bottom:4px; }
.dark .apple-reference-shell .apple-missing-contract { background:#493b17; color:#ffe29c; }
.apple-reference-shell .apple-table-footer { padding:10px 14px; font-size:11px; line-height:14px; color:var(--ap-sec); }
.apple-reference-shell .apple-clinical-identity { flex-direction:row; align-items:center; gap:16px; padding:0; margin-bottom:20px; }
.apple-reference-shell .apple-clinical-identity > div { flex:0 1 auto; min-width:0; }
.apple-reference-shell .apple-clinical-identity p { color:var(--ap-sec); margin-top:4px; font-size:11px; line-height:14px; }
.apple-reference-shell .apple-clinical-avatar { width:58px; height:58px; border-radius:50%; background:var(--ap-line); flex-shrink:0; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.apple-reference-shell .apple-clinical-avatar img { height:100%; width:100%; object-fit:cover; }
.apple-reference-shell .apple-identity-facts { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; font-size:11px; line-height:14px; }
.apple-reference-shell .apple-identity-facts span { border-radius:5px; background:var(--ap-bg); padding:3px 7px; }
.apple-reference-shell .apple-clinical-actions { display:flex; gap:8px; align-items:flex-start; flex-wrap:wrap; margin-bottom:20px; }
.apple-reference-shell .apple-clinical-actions > button,.apple-reference-shell .apple-clinical-actions summary { padding:8px 12px; border:1px solid var(--ap-line); border-radius:7px; list-style:none; font-size:13px; line-height:16px; cursor:pointer; }
.apple-reference-shell .apple-clinical-actions details { position:relative; }
.apple-reference-shell .apple-clinical-actions details[open] > div { position:absolute; top:100%; margin-top:4px; left:0; width:min(360px,85vw); z-index:40; padding:12px; background:var(--ap-surface); border:1px solid var(--ap-line); border-radius:8px; box-shadow:0 8px 24px #0002; }
.apple-reference-shell .apple-documents-menu[open] > div { display:flex; flex-direction:column; gap:6px; }
.apple-reference-shell .apple-clinical-tabs { display:flex; gap:4px; overflow-x:auto; padding-bottom:8px; border-bottom:1px solid var(--ap-line); margin-bottom:24px; }
.apple-reference-shell .apple-clinical-tabs button { padding:8px 10px; background:transparent; box-shadow:none; color:var(--ap-sec); border:0; border-radius:0; flex-shrink:0; display:flex; align-items:center; gap:5px; }
.apple-reference-shell .apple-clinical-tabs button.bg-primary { background:transparent!important; color:var(--ap-red)!important; border-bottom:2px solid var(--ap-red); }
.apple-reference-shell .apple-clinical-tabs button > svg { display:none; }
.apple-reference-shell .apple-clinical-tab-content { padding:0; }
.apple-reference-shell .apple-current-vitals { margin-bottom:24px; }
.apple-reference-shell .apple-current-vitals h2 { margin-bottom:12px; }
.apple-reference-shell .apple-current-vitals .rp-hce-vitals-card { margin:0; background:transparent; box-shadow:none; padding:0; border:0; }
.apple-reference-shell .apple-current-vitals .rp-hce-vitals-header { display:none; }
.apple-reference-shell .apple-current-vitals .rp-hce-vitals-list,.apple-reference-shell .apple-empty-vitals { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.apple-reference-shell .apple-current-vitals .rp-hce-vitals-row,.apple-reference-shell .apple-empty-vitals > div { border:1px solid var(--ap-line); border-radius:8px; padding:12px 10px; display:flex; align-items:flex-start; flex-direction:column; gap:8px; }
.apple-reference-shell .apple-empty-vitals strong { font-size:22px; font-weight:500; line-height:28px; }
.apple-reference-shell .apple-empty-vitals small { font-size:11px; line-height:14px; color:var(--ap-sec); }
.apple-reference-shell .apple-clinical-summary h2 { font-size:13px; line-height:16px; margin-bottom:10px; }
.apple-reference-shell .apple-clinical-summary section p { font-size:11px; line-height:14px; color:var(--ap-sec); }
.apple-reference-shell .apple-clinical-summary section > div { margin:0; padding:0; border:0; background:transparent; }
.apple-reference-shell .apple-clinical-summary dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.apple-reference-shell .apple-clinical-summary dt { font-size:11px; line-height:14px; color:var(--ap-sec); }
.apple-reference-shell .apple-clinical-summary dd { font-size:13px; line-height:16px; overflow-wrap:anywhere; }
.apple-reference-shell .apple-menu-backdrop { display:none; }
.apple-reference-shell .apple-residents-page > .grid > div > p:first-child { font-size:12px!important; line-height:15px!important; font-weight:500!important; text-transform:none; letter-spacing:0; margin-bottom:8px; }
.apple-reference-shell .apple-residents-page > .grid > div > p:nth-child(2) { font-size:28px!important; line-height:34px!important; font-weight:600!important; color:var(--ap-text); }
.apple-reference-shell .apple-resident-name span { color:var(--ap-text)!important; font-weight:600; }
.apple-reference-shell .apple-page-content .fixed.inset-0 { z-index:300!important; }
body:has(.apple-reference-shell) [role="dialog"] { font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Inter","Segoe UI",Roboto,sans-serif; }
body:has(.apple-reference-shell) [role="dialog"] :is([class*="text-[8px]"],[class*="text-[9px]"],[class*="text-[10px]"]) { font-size:11px!important; line-height:14px!important; }
@media(max-width:767px) {
  .app-shell-frame.apple-reference-shell { height:100dvh!important; }
  .apple-reference-shell .apple-main { margin:0; border:0; border-radius:0; }
  .apple-reference-shell .apple-sidebar { position:fixed; inset:0 auto 0 0; width:min(320px,88vw)!important; z-index:210; transform:translateX(-101%); transition:transform .18s; }
  .apple-reference-shell.apple-menu-open .apple-sidebar { transform:none; }
  .apple-reference-shell .apple-menu-backdrop { display:block; position:fixed; inset:0; background:#0006; z-index:205; }
  .apple-reference-shell .apple-header > div:not(.apple-breadcrumb):last-child { gap:6px; }
  .apple-reference-shell .apple-header > div:not(.apple-breadcrumb):last-child > :last-child { display:none; }
  .apple-reference-shell .apple-breadcrumb > span:first-child,.apple-reference-shell .apple-breadcrumb > span:nth-child(2) { display:none; }
  .apple-reference-shell .apple-clinical-identity { align-items:flex-start; }
  .apple-reference-shell .apple-clinical-identity h1 { font-size:17px; line-height:22px; }
  .apple-reference-shell .apple-header { height:auto; min-height:48px; flex-wrap:wrap; padding-block:8px; }
  .apple-reference-shell .apple-breadcrumb { flex-basis:calc(100% - 48px); }
  .apple-reference-shell .apple-current-vitals .rp-hce-vitals-list,.apple-reference-shell .apple-empty-vitals { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .apple-reference-shell .apple-page-content button { font-size:17px; line-height:22px; }
  .apple-reference-shell .apple-clinical-tabs button { font-size:15px; line-height:20px; }
  .apple-reference-shell .apple-page-content :is(.text-3xl,.text-4xl,.text-5xl) { font-size:22px; line-height:28px; font-weight:700; }
  .apple-reference-shell .apple-residents-page > .grid > div > p:nth-child(2) { font-size:22px!important; line-height:28px!important; font-weight:700!important; }
  .apple-reference-shell .apple-sidebar-footer small { font-size:13px; line-height:18px; }
  .apple-reference-shell .apple-resident-name { font-size:17px; line-height:22px; }
  .apple-reference-shell .apple-page-content :is(button,input,select,textarea) { font-size:17px!important; line-height:22px!important; }
  .apple-reference-shell .apple-page-content :is(.apple-clinical-tabs,.apple-resident-toolbar,.apple-table-scroll) button { font-size:15px!important; line-height:20px!important; }
  body:has(.apple-reference-shell) [role="dialog"] :is(input,select,textarea,button) { font-size:17px!important; line-height:22px!important; }
}

.apple-reference-shell .apple-clinical-identity .rp-hce-alert-trigger:disabled { display:none!important; }
