/* Main destinations use the same restrained brand-blue palette. Clinical severity colours stay separate.
   Loaded after the layout; uses existing route attributes without changing navigation. */
body[data-hub-layout="reference"][data-hub-theme] {
  --hub-today-surface: #e8f2ff;
  --hub-today-accent: #0759b6;
  --hub-health-surface: #e8f2ff;
  --hub-health-accent: #0759b6;
  --hub-visit-surface: #e8f2ff;
  --hub-visit-accent: #0759b6;
  --hub-profile-surface: #e8f2ff;
  --hub-profile-accent: #0759b6;
  --hub-category-ink: #0a2340;
  --hub-category-copy: #465f73;
}
body[data-hub-theme="today"],
body[data-hub-layout="reference"][data-hub-theme] [data-view-panel="today"],
body[data-hub-layout="reference"][data-hub-theme] :is(.primary-nav, .category-bar, .mobile-bottom-nav) [data-view="today"] {
  --hub-category-surface: var(--hub-today-surface);
  --hub-category-accent: var(--hub-today-accent);
}
body[data-hub-theme="health"],
body[data-hub-layout="reference"][data-hub-theme] [data-view-panel="health"],
body[data-hub-layout="reference"][data-hub-theme] :is(.primary-nav, .category-bar, .mobile-bottom-nav) [data-view="health"] {
  --hub-category-surface: var(--hub-health-surface);
  --hub-category-accent: var(--hub-health-accent);
}
body[data-hub-theme="visit-prep"],
body[data-hub-layout="reference"][data-hub-theme] [data-view-panel="visit-prep"],
body[data-hub-layout="reference"][data-hub-theme] :is(.primary-nav, .category-bar, .mobile-bottom-nav) [data-view="visit-prep"] {
  --hub-category-surface: var(--hub-visit-surface);
  --hub-category-accent: var(--hub-visit-accent);
}
body[data-hub-theme="profile"],
body[data-hub-layout="reference"][data-hub-theme] [data-view-panel="profile"],
body[data-hub-layout="reference"][data-hub-theme] :is(.primary-nav, .category-bar, .mobile-bottom-nav) [data-view="profile"] {
  --hub-category-surface: var(--hub-profile-surface);
  --hub-category-accent: var(--hub-profile-accent);
}

/* Navigation and destination accents stay paired on the same blue palette. */
body[data-hub-layout="reference"][data-hub-theme] #hub-shell :is(.primary-nav, .category-bar) > [data-view],
body[data-hub-layout="reference"][data-hub-theme] .mobile-bottom-nav > [data-view] {
  border: 1px solid transparent;
  background: transparent;
  color: var(--hub-category-accent);
  box-shadow: none;
}
body[data-hub-layout="reference"][data-hub-theme] #hub-shell :is(.primary-nav, .category-bar) > [data-view]:is(.active, [aria-current="page"], :hover),
body[data-hub-layout="reference"][data-hub-theme] .mobile-bottom-nav > [data-view]:is(.active, [aria-current="page"], :hover) {
  border-color: #b8d0ed;
  background: var(--hub-category-surface);
  color: var(--hub-category-accent);
  box-shadow: inset 3px 0 var(--hub-category-accent);
}
body[data-hub-layout="reference"][data-hub-theme] #hub-shell .sidebar .primary-nav > .nav-item[data-view] :is(span, svg),
body[data-hub-layout="reference"][data-hub-theme] #hub-shell .category-bar > [data-view] :is(span, svg),
body[data-hub-layout="reference"][data-hub-theme] .mobile-bottom-nav > .mobile-bottom-nav-item[data-view] :is(span, svg, b) {
  color: var(--hub-category-accent);
}
body[data-hub-layout="reference"][data-hub-theme] :is(.primary-nav, .category-bar, .mobile-bottom-nav) [data-view] svg { stroke-width: 2.6; }
body[data-hub-layout="reference"][data-hub-theme] :is(.primary-nav, .category-bar, .mobile-bottom-nav) [data-view]:focus-visible {
  outline: 3px solid var(--hub-category-accent);
  outline-offset: 3px;
}

/* Limit category styling to the four main pages, leaving Alerts and record states alone. */
body[data-hub-layout="reference"][data-hub-theme] #hub-shell :is(#view-health, #view-visit-prep, #view-profile) > .page-heading,
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-today > .reference-intro {
  padding: 20px 24px;
  margin: 0 0 24px;
  border: 1px solid #c8d9ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 3px 0 var(--hub-category-accent), 0 10px 28px rgba(10,35,64,.055);
}
body[data-hub-layout="reference"][data-hub-theme] #hub-shell :is(#view-health, #view-visit-prep, #view-profile) > .page-heading::before,
body[data-hub-layout="reference"][data-hub-theme] #hub-shell :is(#view-health, #view-visit-prep, #view-profile) > .page-heading::after { content: none; }
body[data-hub-layout="reference"][data-hub-theme] #hub-shell :is(#view-health, #view-visit-prep, #view-profile) > .page-heading :is(h1, h2),
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-today .reference-intro h1 { color: var(--hub-category-ink); }
body[data-hub-layout="reference"][data-hub-theme] #hub-shell :is(#view-health, #view-visit-prep, #view-profile) > .page-heading .eyebrow { color: var(--hub-category-accent); }
/* The legacy Health Hub heading rule is more specific; keep it in step with the brand palette. */
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-health .health-page-heading .eyebrow { color: var(--hub-category-accent); }
body[data-hub-layout="reference"][data-hub-theme] #hub-shell :is(#view-health, #view-visit-prep, #view-profile) > .page-heading .page-subtitle,
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-today .reference-intro :is(.reference-greeting, .page-subtitle) { color: var(--hub-category-copy); }
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-today .reference-intro h1 span { color: var(--hub-category-accent) !important; }

body[data-hub-layout="reference"][data-hub-theme] #hub-shell :is(#view-today, #view-health, #view-visit-prep, #view-profile) .primary-button {
  background: var(--hub-category-accent);
  border-color: var(--hub-category-accent);
  color: #fff;
  box-shadow: none;
}
body[data-hub-layout="reference"][data-hub-theme] #hub-shell :is(#view-today, #view-health, #view-visit-prep, #view-profile) :is(.secondary-button, .text-button),
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-health :is(.health-tools-nav > button, .hub-panel-nav > button),
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-today .reference-review-medicines {
  color: var(--hub-category-accent);
  border-color: var(--hub-category-accent);
  background: #fff;
  box-shadow: none;
}
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-health .hub-panel-nav > button:is(.active, [aria-current="page"]),
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-health .health-tools-nav > button:hover { background: var(--hub-category-surface); }
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-health :is(.health-snapshot, .health-reminders-disclosure),
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-visit-prep .reference-brief-card,
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-profile :is(.profile-page-hero, .hub-storage-status article, .memory-card) {
  background: #fff;
  border-color: #cfdeec;
  color: var(--hub-category-ink);
  box-shadow: 0 8px 24px rgba(10,35,64,.045);
}
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-profile .profile-page-hero :is(h2, .eyebrow) { color: var(--hub-category-ink); }
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-profile .profile-page-hero p { color: var(--hub-category-copy); }
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-visit-prep .reference-brief-card > span { color: var(--hub-category-accent); }
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-profile #profile-page-avatar { background: var(--hub-profile-surface); border-color: var(--hub-profile-accent); color: var(--hub-profile-accent); }
body[data-hub-layout="reference"][data-hub-theme] #hub-shell :is(#view-today, #view-health, #view-visit-prep, #view-profile) :focus-visible { outline-color: var(--hub-category-accent); }
/* This cross-category shortcut keeps the colour of its Visit Prep destination. */
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-today .reference-visit-link,
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-health .care-visit-card {
  background: var(--hub-visit-surface);
  border-color: #b8d0ed;
  color: var(--hub-visit-accent);
  box-shadow: inset 3px 0 var(--hub-visit-accent);
}
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-health .care-visit-card button { background: #fff; border-color: var(--hub-visit-accent); color: var(--hub-visit-accent); }
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-today .reference-visit-link small { color: var(--hub-category-copy); }

/* A quieter shared frame for desktop and mobile, without touching alert severity cards. */
html body[data-hub-layout="reference"][data-hub-theme] { background: #f7f9fc; }
body[data-hub-layout="reference"] #hub-shell { background: #f7f9fc; }
body[data-hub-layout="reference"] #hub-shell .sidebar { background: #fff; border-right-color: #dbe5ef; }
body[data-hub-layout="reference"] #hub-shell .hub-topbar { background: #fff; border-bottom: 1px solid #dbe5ef; }
body[data-hub-layout="reference"] #hub-shell .panel-card { border-color: #d7e3ee; border-radius: 16px; background-color: #fff; box-shadow: 0 8px 24px rgba(10,35,64,.045); }
body[data-hub-layout="reference"] #hub-shell .panel-card:is(:hover, :focus-within) { border-color: #afc9e5; }
body[data-hub-layout="reference"] #hub-shell :is(.empty-state, .empty-inline) { color: #465f73; font-size: 14px; line-height: 1.55; }
body[data-hub-layout="reference"] #hub-shell .empty-state { padding: 18px; border-color: #c7d8e9; background: #f8fbff; }
body[data-hub-layout="reference"] #hub-shell .today-compact-grid { align-items: start; }
body[data-hub-layout="reference"] #hub-shell .today-compact-panel { border-top-color: #0759b6; background: #fff; box-shadow: 0 8px 24px rgba(10,35,64,.045); }
body[data-hub-layout="reference"] #hub-shell #today-compact-recent-note { background: #edf5ff; }

/* Replace display-only gradients and oversized heading treatments in secondary tools. */
body[data-hub-layout="reference"] #hub-shell :is(#view-scan, #view-add, #view-diary, #view-alerts, #view-symptoms, #view-medications, #view-appointments, #view-results, #view-timeline, #view-documents) > .page-heading {
  padding: 20px 24px;
  border: 1px solid #c8d9ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 3px 0 #0759b6, 0 10px 28px rgba(10,35,64,.055);
}
body[data-hub-layout="reference"] #hub-shell :is(#view-scan, #view-add, #view-diary, #view-alerts, #view-symptoms, #view-medications, #view-appointments, #view-results, #view-timeline, #view-documents) > .page-heading::before,
body[data-hub-layout="reference"] #hub-shell :is(#view-scan, #view-add, #view-diary, #view-alerts, #view-symptoms, #view-medications, #view-appointments, #view-results, #view-timeline, #view-documents) > .page-heading::after { content: none; }
body[data-hub-layout="reference"] #hub-shell :is(#view-scan, #view-add, #view-diary, #view-alerts, #view-symptoms, #view-medications, #view-appointments, #view-results, #view-timeline, #view-documents) > .page-heading h1 { color: #0a2340; }
body[data-hub-layout="reference"] #hub-shell :is(#view-scan, #view-add, #view-diary, #view-alerts, #view-symptoms, #view-medications, #view-appointments, #view-results, #view-timeline, #view-documents) > .page-heading .eyebrow { color: #0759b6; }
body[data-hub-layout="reference"] #hub-shell :is(#view-scan, #view-add, #view-diary, #view-alerts, #view-symptoms, #view-medications, #view-appointments, #view-results, #view-timeline, #view-documents) > .page-heading .page-subtitle { color: #465f73; }
body[data-hub-layout="reference"] #hub-shell :is(#view-scan, #view-add, #view-diary, #view-alerts, #view-symptoms, #view-medications, #view-appointments, #view-results, #view-timeline, #view-documents) > .page-heading .primary-button { border-color: #0759b6; background: #0759b6; color: #fff; box-shadow: none; }
body[data-hub-layout="reference"] #hub-shell :is(#view-scan, #view-add, #view-diary, #view-alerts, #view-symptoms, #view-medications, #view-appointments, #view-results, #view-timeline, #view-documents) > .page-heading .secondary-button { border-color: #9abde2; background: #fff; color: #0759b6; box-shadow: none; }

/* Decorative shortcuts and choice tiles share one blue icon and card system. */
body[data-hub-layout="reference"] #hub-shell :is(.feature-icon, .profile-shortcut-icon) { --feature-ink: #0759b6; --feature-tint: #edf5ff; --feature-line: #c8daef; color: #0759b6; background: #edf5ff; border: 1px solid #c8daef; box-shadow: none; }
body[data-hub-layout="reference"] #hub-shell #view-profile .profile-shortcut-card,
body[data-hub-layout="reference"] #hub-shell #view-ask .quick-asks button { --home-feature-bg: #fff; --home-feature-border: #d1e0ee; background: #fff; border-color: #d1e0ee; box-shadow: 0 6px 18px rgba(10,35,64,.04); }
body[data-hub-layout="reference"] #hub-shell #view-profile .profile-shortcut-card:is(:hover, :focus-visible),
body[data-hub-layout="reference"] #hub-shell #view-ask .quick-asks button:is(:hover, :focus-visible) { background: #f5f9ff; border-color: #91b8e1; }
body[data-hub-layout="reference"] #hub-shell #view-add .add-detail-choice { --choice-bg: #f5f9ff; --choice-border: #c8daec; --choice-accent: #0759b6; --choice-icon-bg: #e8f2ff; --choice-ink: #0759b6; }
body[data-hub-layout="reference"] #hub-shell #view-add .add-detail-choice > span:first-child { color: #0759b6; }
body[data-hub-layout="reference"] #hub-shell #view-health .health-info-grid > .info-card:not(.emergency-card) { background: #fff; border-color: #d1e0ee; box-shadow: inset 3px 0 #0759b6; }
body[data-hub-layout="reference"] #hub-shell #view-health .health-info-grid > .info-card:nth-child(2) { box-shadow: inset 3px 0 #b4533d; }

@media (max-width: 800px) {
  body[data-hub-layout="reference"] .mobile-bottom-nav { background: #fff; border-top: 1px solid #d7e3ee; box-shadow: 0 -4px 18px rgba(10,35,64,.07); }
  body[data-hub-layout="reference"] #hub-shell :is(#view-scan, #view-add, #view-diary, #view-alerts, #view-symptoms, #view-medications, #view-appointments, #view-results, #view-timeline, #view-documents) > .page-heading { padding: 18px 16px; border-radius: 12px; }
}

@media (max-width: 800px) {
  body[data-hub-layout="reference"][data-hub-theme] #hub-shell :is(#view-health, #view-visit-prep, #view-profile) > .page-heading,
  body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-today > .reference-intro { padding: 18px 16px; border-radius: 12px; }
  body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-today .reference-intro h1 { white-space: normal; }
  body[data-hub-layout="reference"][data-hub-theme] .mobile-bottom-nav > [data-view] { border-radius: 10px; }
}
@media (forced-colors: active) {
  body[data-hub-layout="reference"][data-hub-theme] #hub-shell :is(.primary-nav, .category-bar) > [data-view][aria-current="page"],
  body[data-hub-layout="reference"][data-hub-theme] .mobile-bottom-nav > [data-view][aria-current="page"] { border: 3px solid Highlight; }
}

/* Compact, accessible summaries: status text and a symbol accompany every colour. */
body[data-hub-layout="reference"] #hub-shell .hub-alert-shortcut {
  --alert-ink: #465f73;
  --alert-surface: #f1f5f9;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 88px;
  margin: 0 0 22px;
  padding: 16px 20px;
  border: 2px solid var(--alert-ink);
  border-radius: 14px;
  background: var(--alert-surface);
  color: var(--alert-ink);
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}
body[data-hub-layout="reference"] #hub-shell .hub-alert-shortcut[data-alert-level="green"] { --alert-ink: #166534; --alert-surface: #eefbf3; }
body[data-hub-layout="reference"] #hub-shell .hub-alert-shortcut[data-alert-level="orange"] { --alert-ink: #934407; --alert-surface: #fff5e8; }
body[data-hub-layout="reference"] #hub-shell .hub-alert-shortcut[data-alert-level="red"] { --alert-ink: #b42318; --alert-surface: #fff1f0; }
body[data-hub-layout="reference"] #hub-shell .hub-alert-shortcut:focus-visible { outline: 3px solid var(--alert-ink); outline-offset: 4px; }
body[data-hub-layout="reference"] #hub-shell .hub-alert-shortcut:hover { box-shadow: inset 0 0 0 1px var(--alert-ink); }
.hub-alert-status-symbol { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid currentColor; border-radius: 50%; font-size: 24px; font-weight: 700; line-height: 1; }
.hub-alert-shortcut[data-alert-level="red"] .hub-alert-status-symbol { border-radius: 8px; }
.hub-alert-shortcut-copy { display: grid; gap: 3px; min-width: 0; }
.hub-alert-shortcut-copy small { font-weight: 600; }
.hub-alert-shortcut-copy strong { font-size: 17px; line-height: 1.35; }
.hub-alert-shortcut-copy > span { font-size: 14px; line-height: 1.5; }
.hub-alert-shortcut-arrow { display: inline-flex; width: 22px; height: 22px; color: inherit; }
.hub-alert-shortcut-arrow svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 2; fill: none; }
.hub-alert-nav-symbol { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; margin-left: auto; border: 1.5px solid currentColor; border-radius: 50%; font-size: 14px; font-style: normal; font-weight: 800; line-height: 1; }
.hub-alert-nav-symbol[hidden] { display: none; }
.hub-alert-nav-symbol[data-alert-level="green"] { color: #166534; background: #eefbf3; }
.hub-alert-nav-symbol[data-alert-level="orange"] { color: #934407; background: #fff5e8; }
.hub-alert-nav-symbol[data-alert-level="red"] { color: #b42318; background: #fff1f0; border-radius: 5px; }
.mobile-bottom-nav > [data-view="today"] { position: relative; }
.mobile-bottom-nav .hub-alert-nav-symbol { position: absolute; right: 4px; top: 2px; width: 18px; height: 18px; font-size: 12px; }

/* The disclosure moved from My Health to Profile; keep its layout with its content. */
body[data-hub-layout="reference"] #hub-shell #view-profile .memory-disclosure { min-height: 0; padding: 0; }
body[data-hub-layout="reference"] #hub-shell #view-profile .memory-disclosure-summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 18px; list-style: none; cursor: pointer; }
body[data-hub-layout="reference"] #hub-shell #view-profile .memory-disclosure-summary::-webkit-details-marker { display: none; }
body[data-hub-layout="reference"] #hub-shell #view-profile .memory-disclosure-title { flex: 1; min-width: 0; }
body[data-hub-layout="reference"] #hub-shell #view-profile .memory-disclosure-title :is(b, small) { display: block; }
body[data-hub-layout="reference"] #hub-shell #view-profile .memory-disclosure-title small { margin-top: 4px; color: #465f73; }
body[data-hub-layout="reference"] #hub-shell #view-profile .memory-disclosure-status { flex: 0 0 auto; color: #0759b6; }
body[data-hub-layout="reference"] #hub-shell #view-profile :is(.memory-large-icon, .memory-disclosure-chevron) { flex: 0 0 24px; width: 24px; height: 24px; color: #0759b6; background: transparent; }
body[data-hub-layout="reference"] #hub-shell #view-profile .memory-disclosure[open] .memory-disclosure-chevron { transform: rotate(180deg); }
body[data-hub-layout="reference"] #hub-shell #view-profile .memory-disclosure-content { padding: 18px; border-top: 1px solid #d1e0ee; }
body[data-hub-layout="reference"] #hub-shell #view-profile .memory-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
body[data-hub-layout="reference"] #hub-shell #view-profile .memory-card-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
body[data-hub-layout="reference"] #hub-shell .profile-simple-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-block: 20px; }
body[data-hub-layout="reference"] #hub-shell .profile-simple-links button { min-height: 44px; }
body[data-hub-layout="reference"] #hub-shell #view-medications .medication-scan-button,
body[data-hub-layout="reference"] #hub-shell #view-medications .medication-scan-button > span { color: #0759b6; }
body[data-hub-layout="reference"] #hub-shell #view-alerts .hub-alert-card {
  --notice-ink: #0759b6;
  --notice-surface: #eef6ff;
  border-color: #bfd6ec;
  border-left: 4px solid var(--notice-ink);
  background: linear-gradient(110deg, var(--notice-surface), #fff 58%);
}
body[data-hub-layout="reference"] #hub-shell #view-alerts .hub-alert-card[data-severity="moderate"] {
  --notice-ink: #934407;
  --notice-surface: #fff5e8;
  border-color: #efc18e;
  border-left-color: var(--notice-ink);
}
body[data-hub-layout="reference"] #hub-shell #view-alerts .hub-alert-card:is([data-severity="urgent"], [data-severity="high"]) {
  --notice-ink: #b42318;
  --notice-surface: #fff1f0;
  border-color: #e8aab0;
  border-left-color: var(--notice-ink);
}
body[data-hub-layout="reference"] #hub-shell #view-alerts .hub-alert-card .hub-alert-icon { color: var(--notice-ink); background: var(--notice-surface); }
body[data-hub-layout="reference"] #hub-shell #view-alerts .hub-alert-card .card-kicker { color: var(--notice-ink); }
body[data-hub-layout="reference"] #hub-shell #view-alerts .hub-alert-about { margin-block: 16px; color: #465f73; font-size: 14px; line-height: 1.6; }
body[data-hub-layout="reference"] #hub-shell #view-alerts .hub-alert-about > summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-weight: 600; }
body[data-hub-layout="reference"] #hub-shell #view-alerts .hub-alert-coverage > small { color: #465f73; }
body[data-hub-layout="reference"] #hub-shell .hub-footer { color: #465f73; font-size: 12px; gap: 12px; }
body[data-hub-layout="reference"] #hub-shell .hub-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #465f73; }
body[data-hub-layout="reference"] #hub-shell #view-alerts .hub-alert-triggers { border: 1px solid #c7d5e3; border-radius: 10px; padding: 0 14px; margin-block: 16px; }
body[data-hub-layout="reference"] #hub-shell #view-alerts .hub-alert-triggers summary { min-height: 44px; padding-block: 12px; font-weight: 600; color: #0a2340; cursor: pointer; }
body[data-hub-layout="reference"] #hub-shell #view-alerts .hub-alert-triggers ul { padding-bottom: 12px; }
body[data-hub-layout="reference"] #hub-shell #view-alerts .hub-alert-source summary,
body[data-hub-layout="reference"] #hub-shell #view-alerts .hub-alert-coverage summary { min-height: 44px; cursor: pointer; }
@media (max-width: 800px) {
  html { scroll-padding-bottom: 96px; }
  body[data-hub-layout="reference"] #hub-shell .hub-alert-shortcut { grid-template-columns: 32px minmax(0, 1fr) 18px; gap: 10px; padding: 14px 12px; }
  .hub-alert-status-symbol { width: 30px; height: 30px; font-size: 21px; }
  .hub-alert-shortcut-copy strong { font-size: 16px; }
  .hub-alert-shortcut-arrow { width: 18px; height: 18px; }
  body[data-hub-layout="reference"] #hub-shell #view-profile .memory-disclosure-summary { flex-wrap: wrap; }
  body[data-hub-layout="reference"] #hub-shell #view-profile .memory-disclosure-title { flex-basis: calc(100% - 40px); }
  body[data-hub-layout="reference"] #hub-shell #view-profile .memory-disclosure-status { margin-left: 36px; }
  body[data-hub-layout="reference"] #hub-shell #view-profile .memory-disclosure-chevron { margin-left: auto; }
}
@media (forced-colors: active) {
  body[data-hub-layout="reference"] #hub-shell .hub-alert-shortcut,
  .hub-alert-status-symbol { border-color: ButtonText; color: ButtonText; }
}
/* Today and My Health share the same page frame and hero component. */
body[data-hub-layout="reference"][data-hub-theme="today"] #hub-shell .hub-breadcrumb { min-height: 44px; }
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-today.view {
  max-width: none;
  padding: 36px 0 35px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body[data-hub-layout="reference"]:is([data-hub-theme="today"], [data-hub-theme="health"][data-hub-panel="details"]) #hub-shell :is(#view-today, #view-health) > .hub-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 0 0 24px;
  padding: 20px 24px;
  border: 1px solid #c8d9ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 3px 0 var(--hub-category-accent), 0 10px 28px rgba(10,35,64,.055);
}
body[data-hub-layout="reference"]:is([data-hub-theme="today"], [data-hub-theme="health"][data-hub-panel="details"]) #hub-shell :is(#view-today, #view-health) > .hub-page-heading h1 {
  margin: 0;
  font-size: 36px !important;
  line-height: 1.15 !important;
  letter-spacing: -.045em !important;
  white-space: normal;
}
body[data-hub-layout="reference"]:is([data-hub-theme="today"], [data-hub-theme="health"][data-hub-panel="details"]) #hub-shell :is(#view-today, #view-health) > .hub-page-heading .page-subtitle {
  max-width: none;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
}
body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-today .reference-greeting { margin: 0 0 8px; }
body[data-hub-layout="reference"][data-hub-theme] #hub-shell .today-page-actions .primary-button {
  min-height: 46px;
  border: 0;
  box-shadow: none;
}
#view-today [data-today-section][hidden] { display: none; }
@media (max-width: 800px) {
  body[data-hub-layout="reference"][data-hub-theme] #hub-shell #view-today.view { padding: 18px 0 118px; }
  body[data-hub-layout="reference"]:is([data-hub-theme="today"], [data-hub-theme="health"][data-hub-panel="details"]) #hub-shell :is(#view-today, #view-health) > .hub-page-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 18px 16px;
    border-radius: 12px;
  }
  body[data-hub-layout="reference"]:is([data-hub-theme="today"], [data-hub-theme="health"][data-hub-panel="details"]) #hub-shell :is(#view-today, #view-health) > .hub-page-heading h1 { font-size: 30px !important; }
  body[data-hub-layout="reference"][data-hub-theme] #hub-shell .today-page-actions,
  body[data-hub-layout="reference"][data-hub-theme] #hub-shell .today-page-actions .primary-button { width: 100%; }
  body[data-hub-layout="reference"] #hub-shell #view-today > .today-section-nav { display: none; }
}
