/* The user's selected Today / My health / Visit prep / Profile layout. */
body[data-hub-layout="reference"] { background: #f8fbfe; color: #0b2450; }
body[data-hub-layout="reference"] #hub-shell { background: #f8fbfe; }
body[data-hub-layout="reference"] #hub-shell .sidebar { display: flex !important; width: 244px; padding: 24px 18px; background: #fff; border-right: 1px solid #e6edf5; }
body[data-hub-layout="reference"] #hub-shell .sidebar .brand { justify-content: center; margin-bottom: 24px; }
body[data-hub-layout="reference"] #hub-shell .sidebar .brand-lockup { width: 120px; height: 120px; margin: 0; }
body[data-hub-layout="reference"] #hub-shell .sidebar .brand-lockup img { object-fit: contain; }
body[data-hub-layout="reference"] #hub-shell .sidebar-label { display: none; }
body[data-hub-layout="reference"] #hub-shell .primary-nav { gap: 8px; }
body[data-hub-layout="reference"] #hub-shell .nav-item { min-height: 52px; padding: 0 16px; border-radius: 10px; color: #344968; font-size: 14px; }
body[data-hub-layout="reference"] #hub-shell .nav-item .nav-icon { width: 24px; height: 24px; padding: 0; background: none; box-shadow: none; color: inherit; }
body[data-hub-layout="reference"] #hub-shell .primary-nav .nav-item.active { background: #edf7ff; color: #0069ed; box-shadow: none; }
body[data-hub-layout="reference"] #hub-shell .sidebar .primary-nav .nav-item.active > span { color: #0069ed; }
body[data-hub-layout="reference"] #hub-shell .sidebar .primary-nav .nav-item.active > span svg { color: #0069ed; }
body[data-hub-layout="reference"] #hub-shell .nav-item:hover { background: #f0f7fd; }
body[data-hub-layout="reference"] #hub-shell .hub-main { width: calc(100% - 244px); margin-left: 244px; background: transparent; }
body[data-hub-layout="reference"] #hub-shell .hub-topbar { display: flex !important; }
body[data-hub-layout="reference"] #hub-shell .category-bar { display: none !important; }
body[data-hub-layout="reference"] #hub-shell .view-stack { width: min(1040px, calc(100% - 48px)); margin: 18px auto 0; overflow: visible; }
body[data-hub-layout="reference"] #storage-consent:not([hidden]) { position: relative; inset: auto; transform: none; z-index: 1; display: block; margin: 0 0 18px; padding: 20px 24px; border: 1px solid #d8f0fb; border-radius: 16px; background: #ecfaff; box-shadow: none; }
body[data-hub-layout="reference"] #storage-consent b { font-size: 16px; line-height: 1.4; color: #133652; }
body[data-hub-layout="reference"] #storage-consent p { max-width: 730px; margin: 4px 0 14px; font-size: 13px; line-height: 1.5; color: #5a748b; }
body[data-hub-layout="reference"] #storage-consent .storage-consent-actions { display: flex; gap: 10px; margin: 0; align-items: center; }
body[data-hub-layout="reference"] #storage-consent .primary-button { min-height: 44px; background: #006bec; border-color: #006bec; color: white; }
body[data-hub-layout="reference"] #storage-consent .secondary-button { min-height: 44px; background: white; border-color: #b9d7ff; color: #0064e6; }
body[data-hub-layout="reference"] #storage-consent a { color: #0870e9; font-size: 12px; font-weight: 600; }
body[data-hub-layout="reference"] #hub-shell #view-today.view { padding: 26px 30px 30px; border: 1px solid #e3edf7; border-radius: 16px; background: #fff; }
body[data-hub-layout="reference"] #hub-shell .reference-intro { display: block; margin: 0 0 24px; padding: 0; border: 0; background: transparent; box-shadow: none; }
body[data-hub-layout="reference"] #hub-shell .reference-greeting { margin: 0 0 8px; color: #536987; font-size: 15px; font-weight: 500; line-height: 1.4; }
body[data-hub-layout="reference"] #hub-shell #view-today .reference-intro h1 { margin: 0; color: #091c4c; font-size: clamp(38px, 4.4vw, 58px) !important; font-weight: 800; letter-spacing: -.055em !important; line-height: 1.12 !important; }
body[data-hub-layout="reference"] #hub-shell #view-today .reference-intro h1 span { color: #006bed !important; }
body[data-hub-layout="reference"] #hub-shell .reference-intro .page-subtitle { max-width: 650px; margin: 12px 0 0; color: #607592; font-size: 17px; line-height: 1.5; }
body[data-hub-layout="reference"] #hub-shell .reference-medicine-card { padding: 25px 30px 18px; border: 1px solid #cfe2fb; border-radius: 18px; background: #fff; box-shadow: none; }
body[data-hub-layout="reference"] #hub-shell .reference-medicine-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
body[data-hub-layout="reference"] #hub-shell .reference-medicine-top h2 { margin: 0 0 10px; color: #102450; font-size: 26px; line-height: 1.25; letter-spacing: -.035em; }
body[data-hub-layout="reference"] #hub-shell .reference-medicine-top p { margin: 0; color: #607491; font-size: 16px; line-height: 1.5; }
body[data-hub-layout="reference"] #hub-shell .reference-medicine-image { display: block; flex: 0 0 145px; width: 145px; height: 145px; object-fit: contain; }
body[data-hub-layout="reference"] #hub-shell .reference-medicine-actions { display: grid; gap: 10px; width: min(100%, 450px); margin: 10px auto 0; }
body[data-hub-layout="reference"] #hub-shell .reference-medicine-actions button { display: flex; justify-content: center; gap: 10px; min-height: 48px; border-radius: 10px; font-size: 14px; font-weight: 700; }
body[data-hub-layout="reference"] #hub-shell .reference-medicine-actions .primary-button { background: #0067ec; border: 1px solid #0067ec; color: #fff; box-shadow: none; }
body[data-hub-layout="reference"] #hub-shell .reference-medicine-actions .secondary-button { background: #fff; border: 1px solid #8db9ff; color: #0067ec; box-shadow: none; }
body[data-hub-layout="reference"] #hub-shell .reference-medicine-actions button:hover { filter: brightness(.96); }
body[data-hub-layout="reference"] #hub-shell .reference-scan-note { max-width: 450px; margin: 14px auto 8px; color: #536986; font-size: 11px; line-height: 1.5; text-align: center; }
body[data-hub-layout="reference"] #hub-shell .reference-review-medicines { display: flex; justify-content: center; gap: 8px; min-height: 44px; margin: 0 auto; color: #0067ec; font-size: 12px; }
body[data-hub-layout="reference"] #hub-shell .reference-visit-link { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 20px; padding: 18px 20px; border: 1px solid #d7e5f3; border-radius: 12px; background: #f7fbff; text-align: left; color: #174275; }
body[data-hub-layout="reference"] #hub-shell .reference-visit-link > span:first-child { flex: 0 0 28px; }
body[data-hub-layout="reference"] #hub-shell .reference-visit-link > span:nth-child(2) { flex: 1; }
body[data-hub-layout="reference"] #hub-shell .reference-visit-link b { display: block; margin-bottom: 4px; font-size: 16px; }
body[data-hub-layout="reference"] #hub-shell .reference-visit-link small { color: #647b93; font-size: 13px; }
body[data-hub-layout="reference"] #hub-shell .health-tools-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
body[data-hub-layout="reference"] #hub-shell .health-tools-nav button { min-height: 44px; padding: 8px 14px; border: 1px solid #c9def3; border-radius: 9px; background: #f4faff; color: #115da6; font-size: 13px; font-weight: 600; }
body[data-hub-layout="reference"] #hub-shell .reference-brief-card { max-width: 720px; margin: 24px auto; padding: 36px; background: #f5fbff; border-color: #c9e5f4; text-align: center; }
body[data-hub-layout="reference"] #hub-shell .reference-brief-card > span { display: inline-flex; color: #0071df; }
body[data-hub-layout="reference"] #hub-shell .reference-brief-card h2 { color: #0b2450; font-size: 28px; }
body[data-hub-layout="reference"] #hub-shell .reference-brief-card p { margin: 12px auto 24px; max-width: 540px; color: #536d87; line-height: 1.7; }
body[data-hub-layout="reference"] #hub-shell .reference-brief-card small { display: block; margin-top: 14px; color: #526d82; }
body[data-hub-layout="reference"] #hub-shell .reference-visit-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
body[data-hub-layout="reference"] #hub-shell .sidebar-bottom .upgrade-card { display: none; }
body[data-hub-layout="reference"] #hub-shell .sidebar-bottom .account-link { border: 0; background: transparent; }
body[data-hub-layout="reference"] #hub-shell .hub-footer { margin-top: 28px; color: #718397; }
body[data-hub-layout="reference"] .mobile-bottom-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body[data-hub-layout="reference"] :is(button, a):focus-visible { outline: 3px solid #0968df; outline-offset: 3px; }
@media (max-width: 800px) {
  body[data-hub-layout="reference"] #hub-shell .sidebar { display: none !important; }
  body[data-hub-layout="reference"] #hub-shell .hub-main { width: 100%; margin-left: 0; }
  body[data-hub-layout="reference"] #hub-shell .hub-topbar { display: flex !important; height: 74px; min-height: 74px; padding: 0 16px; background: #fff; border: 0; box-shadow: none; position: relative; }
  body[data-hub-layout="reference"] #hub-shell .mobile-brand-wrap { display: flex; width: 100%; justify-content: center; align-items: center; }
  body[data-hub-layout="reference"] #hub-shell .mobile-brand .brand-lockup { width: 160px; height: 62px; }
  body[data-hub-layout="reference"] #hub-shell .mobile-brand .brand-lockup img { object-fit: contain; }
  body[data-hub-layout="reference"] #hub-shell :is(.mobile-menu-button, .mobile-notifications-button, .topbar-context, .topbar-actions) { display: none; }
  body[data-hub-layout="reference"] #hub-shell .category-bar { display: none !important; }
  body[data-hub-layout="reference"] #hub-shell .view-stack { width: calc(100% - 24px); margin: 0 auto; }
  body[data-hub-layout="reference"] #storage-consent:not([hidden]) { padding: 16px; margin-bottom: 16px; border-radius: 12px; }
  body[data-hub-layout="reference"] #storage-consent b { font-size: 14px; line-height: 1.3; }
  body[data-hub-layout="reference"] #storage-consent p { font-size: 12px; line-height: 1.4; margin-bottom: 12px; }
  body[data-hub-layout="reference"] #storage-consent .storage-consent-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  body[data-hub-layout="reference"] #storage-consent .storage-consent-actions button { width: 100%; min-height: 44px; }
  body[data-hub-layout="reference"] #storage-consent a { justify-self: center; min-height: 30px; padding: 5px; }
  body[data-hub-layout="reference"] #hub-shell #view-today.view { padding: 18px 16px 20px; border-radius: 12px; }
  body[data-hub-layout="reference"] #hub-shell .reference-intro { margin-bottom: 20px; }
  body[data-hub-layout="reference"] #hub-shell .reference-greeting { font-size: 12px; margin-bottom: 5px; }
  body[data-hub-layout="reference"] #hub-shell #view-today .reference-intro h1 { font-size: clamp(27px, 7.9vw, 34px) !important; line-height: 1.12 !important; letter-spacing: -.05em !important; white-space: nowrap; }
  body[data-hub-layout="reference"] #hub-shell .reference-intro .page-subtitle { font-size: 13px; margin-top: 8px; line-height: 1.45; }
  body[data-hub-layout="reference"] .desktop-copy-break { display: none; }
  body[data-hub-layout="reference"] #hub-shell .reference-medicine-card { padding: 16px 14px 12px; border-radius: 12px; }
  body[data-hub-layout="reference"] #hub-shell .reference-medicine-top { flex-direction: column-reverse; gap: 8px; text-align: center; }
  body[data-hub-layout="reference"] #hub-shell .reference-medicine-image { flex-basis: auto; width: 110px; height: 110px; }
  body[data-hub-layout="reference"] #hub-shell .reference-medicine-top h2 { font-size: 18px; margin-bottom: 7px; }
  body[data-hub-layout="reference"] #hub-shell .reference-medicine-top p { font-size: 12px; line-height: 1.45; }
  body[data-hub-layout="reference"] #hub-shell .reference-medicine-actions { margin-top: 16px; gap: 8px; }
  body[data-hub-layout="reference"] #hub-shell .reference-medicine-actions button { font-size: 12px; min-height: 44px; }
  body[data-hub-layout="reference"] #hub-shell .reference-scan-note { font-size: 10px; margin-top: 12px; }
  body[data-hub-layout="reference"] #hub-shell .reference-review-medicines { font-size: 11px; }
  body[data-hub-layout="reference"] #hub-shell .reference-visit-link { gap: 10px; margin-top: 14px; padding: 14px; }
  body[data-hub-layout="reference"] #hub-shell .reference-visit-link b { font-size: 13px; }
  body[data-hub-layout="reference"] #hub-shell .reference-visit-link small { font-size: 11px; line-height: 1.4; }
  body[data-hub-layout="reference"] .mobile-bottom-nav { display: grid; position: fixed; inset: auto 0 0; z-index: 50; width: 100%; background: #fff; border-top: 1px solid #e0edf7; padding: 8px 8px max(8px, env(safe-area-inset-bottom)); }
  body[data-hub-layout="reference"] .mobile-bottom-nav .mobile-bottom-nav-item { display: grid; grid-template-rows: 22px auto; justify-items: center; align-content: center; gap: 3px; min-width: 0; height: 54px; padding: 5px 2px; border: 0; border-radius: 8px; background: transparent; color: #536888; font-size: 11px; box-shadow: none; -webkit-appearance: none; appearance: none; }
  body[data-hub-layout="reference"] .mobile-bottom-nav .mobile-bottom-nav-item > span { width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 0; background: transparent; color: inherit; box-shadow: none; }
  body[data-hub-layout="reference"] .mobile-bottom-nav .mobile-bottom-nav-item > span svg { width: 22px; height: 22px; color: inherit; }
  body[data-hub-layout="reference"] .mobile-bottom-nav .mobile-bottom-nav-item > b { font-size: 11px; font-weight: 600; line-height: 1.2; }
  body[data-hub-layout="reference"] .mobile-bottom-nav .mobile-bottom-nav-item.active { background: #eff7ff; color: #0067ec; box-shadow: none; }
  body[data-hub-layout="reference"] .mobile-bottom-nav .mobile-bottom-nav-item.active > :is(span,b) { color: #0067ec; }
  body[data-hub-layout="reference"] .mobile-bottom-nav .mobile-bottom-nav-item.active > span svg { color: #0067ec; }
  body[data-hub-layout="reference"] #hub-shell .reference-brief-card { margin: 16px 0; padding: 24px 16px; }
  body[data-hub-layout="reference"] #hub-shell .reference-brief-card h2 { font-size: 24px; }
  body[data-hub-layout="reference"] #hub-shell .reference-brief-card p { font-size: 14px; }
  body[data-hub-layout="reference"] #hub-shell .hub-footer { padding-bottom: 86px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-hub-layout="reference"] #hub-shell .view.active { animation: none; }
}

/* The selected reference layout keeps the verified account state in its app header. */
body[data-hub-layout="reference"] #hub-shell .hub-topbar { display: flex !important; }
body[data-hub-layout="reference"] #hub-shell .auth-status-control {
  min-height: 44px !important;
  border: 1px solid #b7ccda !important;
  border-radius: 12px !important;
  background: #f1f6f9 !important;
  color: #29485f !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  transition: none !important;
}
body[data-hub-layout="reference"] #hub-shell .auth-status-control[data-auth-state="signed-out"] {
  border-color: #075a98 !important;
  background: #0e6eb7 !important;
  color: #fff !important;
}
body[data-hub-layout="reference"] #hub-shell .auth-status-control[data-auth-state="signed-in"] {
  border-color: #9bcdbf !important;
  background: #eaf8f3 !important;
  color: #173550 !important;
}
body[data-hub-layout="reference"] #hub-shell .auth-status-control[data-auth-state="unavailable"] {
  border-color: #d6a257 !important;
  background: #fff4df !important;
  color: #62400e !important;
}
body[data-hub-layout="reference"] #hub-shell .auth-status-control[data-auth-state="checking"] {
  border-color: #b7ccda !important;
  background: #f1f6f9 !important;
  color: #29485f !important;
}
body[data-hub-layout="reference"] #hub-shell .auth-status-control[data-auth-state="signed-out"] .auth-status-indicator { border-color: #fff !important; background: #fff !important; }
body[data-hub-layout="reference"] #hub-shell .auth-status-control[data-auth-state="signed-in"] .auth-status-indicator { border-color: #237a61 !important; background: #237a61 !important; }
body[data-hub-layout="reference"] #hub-shell .auth-status-control[data-auth-state="unavailable"] .auth-status-indicator { border-color: #9a5c20 !important; background: #d6a257 !important; }
body[data-hub-layout="reference"] #hub-shell .profile-trigger.auth-status-control { min-width: 122px !important; }
@media (max-width: 800px) {
  body[data-hub-layout="reference"] #hub-shell .mobile-brand-wrap {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) max-content;
    gap: 8px;
    justify-content: normal;
    grid-template-rows: 1fr;
    align-items: center;
  }
  body[data-hub-layout="reference"] #hub-shell .mobile-brand { min-width: 0; justify-self: center; }
  body[data-hub-layout="reference"] #hub-shell .mobile-brand .brand-lockup { width: min(160px, 100%); }
  body[data-hub-layout="reference"] #hub-shell .mobile-notifications-button.auth-status-control {
    display: inline-flex !important;
    width: auto !important;
    min-width: 82px !important;
    max-width: 136px !important;
    height: 44px !important;
    justify-self: end;
    padding: 0 9px !important;
    gap: 6px !important;
    font-size: 11px !important;
  }
  body[data-hub-layout="reference"] #hub-shell .mobile-notifications-button .auth-status-label { display: inline !important; }
}

/* Unified DoctorAI theme, navigation paths and storage status. */
body[data-hub-layout="reference"] { --hub-blue:#0759b6; --hub-cyan:#087fa6; }
body[data-hub-layout="reference"] #hub-shell .hub-path { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:8px 0 22px; color:#526d82; font-size:13px; }
body[data-hub-layout="reference"] #hub-shell .hub-path button { min-height:44px; padding:8px 14px; border:1px solid #b8d6f0; border-radius:9px; background:#effaff; color:#0759b6; font-weight:700; }
body[data-hub-layout="reference"] #hub-shell .hub-path b { color:#173550; }
body[data-hub-layout="reference"] #hub-shell :is(#view-visit-prep,#view-profile) > .page-heading { position:relative; isolation:isolate; border-bottom-color:transparent; margin-top:22px; padding-bottom:22px; }
body[data-hub-layout="reference"] #hub-shell :is(#view-visit-prep,#view-profile) > .page-heading::before { content:""; position:absolute; inset:-12px -12px 0; z-index:-1; border-radius:16px; background:linear-gradient(120deg,#0759c7,#076bd5,#00798e); box-shadow:0 10px 25px #0759b612; pointer-events:none; }
body[data-hub-layout="reference"] #hub-shell :is(#view-visit-prep,#view-profile) > .page-heading :is(h1,.eyebrow,.page-subtitle) { color:white; }
body[data-hub-layout="reference"] #hub-shell .primary-button { background:linear-gradient(115deg,#075dce,#007997); border-color:#0869c1; color:#fff; box-shadow:0 4px 12px #0759b618; }
body[data-hub-layout="reference"] #hub-shell .reference-medicine-actions .primary-button { background:linear-gradient(115deg,#075dce,#007997); }
body[data-hub-layout="reference"] #hub-shell .hub-storage-status { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:24px 0; }
body[data-hub-layout="reference"] #hub-shell .hub-storage-status article { padding:18px; border:1px solid #c5e1f1; border-radius:12px; background:#edf6ff; }
body[data-hub-layout="reference"] #hub-shell .hub-storage-status article:last-child { background:#effaff; }
body[data-hub-layout="reference"] #hub-shell .hub-storage-status small { display:block; color:#536d82; font-size:12px; }
body[data-hub-layout="reference"] #hub-shell .hub-storage-status b { display:block; margin:8px 0; color:#173550; font-size:16px; }
body[data-hub-layout="reference"] #hub-shell .hub-storage-status p { margin:0; color:#536d82; font-size:12px; line-height:1.5; }
body[data-hub-layout="reference"] #hub-shell #view-profile .profile-page-hero { background:linear-gradient(120deg,#123d64,#0864a9); border-color:#0c426f; color:white; }
body[data-hub-layout="reference"] #hub-shell #view-profile .profile-page-hero :is(h2,p,.eyebrow) { color:white; }
@media(max-width:800px){
  body[data-hub-layout="reference"] #hub-shell :is(#view-visit-prep,#view-profile) > .page-heading h1 { font-size:30px; line-height:1.15; }
  body[data-hub-layout="reference"] #hub-shell #view-profile .profile-page-hero { display:grid; grid-template-columns:minmax(0,1fr); padding:18px; gap:16px; }
  body[data-hub-layout="reference"] #hub-shell #view-profile .profile-page-identity { min-width:0; align-items:flex-start; gap:12px; }
  body[data-hub-layout="reference"] #hub-shell #view-profile .profile-page-identity > div { min-width:0; flex:1; }
  body[data-hub-layout="reference"] #hub-shell #view-profile .profile-page-identity :is(h2,p) { white-space:normal; overflow-wrap:anywhere; max-width:100%; }
  body[data-hub-layout="reference"] #hub-shell #view-profile .profile-page-hero > button { width:100%; min-width:0; }
  body[data-hub-layout="reference"] #hub-shell #view-medications > .page-heading { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
  body[data-hub-layout="reference"] #hub-shell #view-medications > .page-heading .page-heading-actions { display:grid; grid-template-columns:minmax(0,1fr); width:100%; gap:10px; }
  body[data-hub-layout="reference"] #hub-shell #view-medications > .page-heading button { width:100%; min-width:0; }
  body[data-hub-layout="reference"] #hub-shell .hub-path { margin-bottom:18px; gap:8px; font-size:11px; }
  body[data-hub-layout="reference"] #hub-shell .hub-path button { font-size:11px; }
  body[data-hub-layout="reference"] #hub-shell .hub-storage-status { grid-template-columns:1fr; gap:10px; margin:20px 0; }
  body[data-hub-layout="reference"] #hub-shell .hub-storage-status article { padding:15px; }
  body[data-hub-layout="reference"] #hub-shell :is(#view-visit-prep,#view-profile) > .page-heading::before { inset-inline:-8px; border-radius:12px; }
}
