/* Shared VitaQR personal workspace shell */
.vq-personal-dashboard { background:#f6f9fd; color:#10264f; }
.patient-nav a[aria-current="page"], .patient-nav summary[aria-current="page"] { background:#e7f2ff; color:#075fd8; text-decoration:none; }
.patient-nav a,.patient-nav summary,.patient-topbar a { text-decoration:none; }
.patient-nav a.is-linked .education-state { color:#14804a; font-weight:750; }
.personal-page-hero { position:relative; overflow:hidden; margin-top:1rem; padding:1.4rem 1.55rem; border:1px solid #d6e8fb; border-radius:1rem; background:linear-gradient(115deg,#e6f5ff,#f8fbff); box-shadow:0 10px 30px rgb(36 85 140 / .07); }
.personal-page-hero::after { content:""; position:absolute; width:15rem; height:15rem; border-radius:50%; right:-4rem; top:-6rem; background:radial-gradient(circle,#c7e8ff,transparent 68%); }
.personal-page-hero > * { position:relative; z-index:1; }
.personal-page-hero__kicker { margin:0 0 .25rem; color:#3474be; font-size:.78rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.personal-page-hero h1 { margin:0; color:#102c5c; font-size:clamp(1.8rem,3vw,2.35rem); line-height:1.12; }
.personal-page-hero p:last-child { max-width:50rem; margin:.45rem 0 0; color:#4d6d92; }
.personal-section { border-color:#dce7f4; border-radius:1rem; box-shadow:0 5px 18px rgb(23 67 117 / .05); }
.personal-section h2 { color:#102d5d; }
.education-connection-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.85rem; }
.education-connection-card { display:grid; gap:.7rem; min-height:13rem; padding:1.05rem; border:1px solid #dce7f4; border-radius:.9rem; background:#fff; }
.education-connection-card__icon { width:2.5rem; height:2.5rem; display:grid; place-items:center; border-radius:.75rem; background:#eaf4ff; color:#075fd8; font-size:1.15rem; }
.education-connection-card__head { display:flex; align-items:center; justify-content:space-between; gap:.6rem; }
.education-connection-card h3 { margin:0; color:#12335f; }
.education-connection-card p { margin:0; color:#697e99; font-size:.88rem; line-height:1.45; }
.education-connection-status { width:max-content; padding:.24rem .55rem; border-radius:999px; background:#eef2f7; color:#6d7c91; font-size:.7rem; font-weight:800; }
.education-connection-status.is-active { background:#e5f8ed; color:#167a43; }
.education-linked-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }
.education-linked-list .education-card { border-color:#dce7f4; box-shadow:0 5px 16px rgb(23 67 117 / .05); }
.education-linked-list .education-card__actions .vq-button { text-decoration:none; }
.education-empty-state { padding:1.15rem; border:1px dashed #cbdcee; border-radius:.9rem; background:#fbfdff; color:#627690; }
.safety-dashboard-head .vq-button { text-decoration:none; }
.vq-personal-dashboard .safety-hub-grid>a,.vq-personal-dashboard .safety-owner-actions>a { border-color:#dce7f4; border-radius:.9rem; box-shadow:0 4px 14px rgb(23 67 117 / .04); }
.vq-personal-dashboard .safety-hub-grid>a:hover,.vq-personal-dashboard .safety-owner-actions>a:hover { border-color:#9fc8f7; background:#f5faff; }
.vq-personal-dashboard .safety-hub-grid strong,.vq-personal-dashboard .safety-owner-actions strong,.vq-personal-dashboard .safety-dashboard-kicker { color:#075fd8; }
@media (max-width:60rem) {
  .education-connection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .education-linked-list { grid-template-columns:1fr; }
}
@media (max-width:42rem) {
  .education-connection-grid { grid-template-columns:1fr; }
  .personal-page-hero { padding:1.05rem; border-radius:.8rem; }
}

.patient-account-menu { border-top:1px solid #e4edf7; margin-top:.45rem; padding-top:.45rem; }
.patient-account-menu summary { list-style:none; }
.patient-account-menu summary::-webkit-details-marker { display:none; }
.patient-account-menu__items { display:grid; gap:.08rem; margin:.08rem 0 .3rem 1.4rem; padding-left:.75rem; border-left:1px solid #cfe0f5; }
.patient-account-menu__items a { min-height:2.25rem; padding:.42rem .62rem; font-size:.86rem; }
.vq-personal-dashboard .vq-page-header { margin-top:1rem; padding:1.15rem 1.3rem; border:1px solid #dce7f4; border-radius:1rem; background:#fff; box-shadow:0 5px 18px rgb(23 67 117 / .04); }
.vq-personal-dashboard .vq-page-header h1 { color:#102d5d; }
.vq-personal-dashboard .vq-card { border-color:#dce7f4; border-radius:1rem; box-shadow:0 5px 18px rgb(23 67 117 / .04); }
.vq-personal-dashboard .vq-metric { border-color:#dce7f4; border-radius:.9rem; box-shadow:0 4px 14px rgb(23 67 117 / .04); }
.vq-personal-dashboard .vq-metric__label { color:#667c98; }
.vq-personal-dashboard .vq-metric__value { color:#102d5d; }
.vq-personal-dashboard .vq-button { text-decoration:none; }
.patient-education:not([open]) .patient-education__items,
.patient-account-menu:not([open]) .patient-account-menu__items { display:none; }
@media (max-width:60rem) {
  .patient-account-menu { border-top:0; margin-top:0; padding-top:0; }
  .patient-account-menu__items { position:absolute; z-index:60; min-width:13rem; margin:0; padding:.45rem; border:1px solid #dce7f4; border-radius:.65rem; background:#fff; box-shadow:0 12px 28px rgb(17 54 96 / .14); }
}

/* Premium personal home dashboard */
.dashboard-home-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin-top:1rem; padding:1.5rem 1.6rem; border:1px solid #d5e7fa; border-radius:1rem; background:linear-gradient(120deg,#e6f5ff 0%,#f9fcff 72%); box-shadow:0 10px 30px rgb(36 85 140 / .07); }
.dashboard-home-hero h1 { margin:.15rem 0 .35rem; color:#102d5d; font-size:clamp(1.95rem,3vw,2.55rem); line-height:1.08; }
.dashboard-home-hero p:last-child { margin:0; color:#557495; }
.dashboard-home-hero__actions { display:flex; gap:.65rem; flex-wrap:wrap; justify-content:flex-end; }
.dashboard-overview-section { display:grid; gap:.75rem; }
.dashboard-key-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.8rem; }
.dashboard-key-metric { display:grid; gap:.18rem; min-height:8rem; padding:1rem 1.05rem; border:1px solid #dce7f4; border-radius:.9rem; background:#fff; text-decoration:none; box-shadow:0 5px 16px rgb(23 67 117 / .05); }
.dashboard-key-metric:hover { border-color:#9fc8f7; background:#f9fcff; }
.dashboard-key-metric strong { color:#0b5ed7; font-size:2rem; line-height:1; }
.dashboard-key-metric span { color:#173866; font-weight:800; }
.dashboard-key-metric small { color:#6c809a; line-height:1.35; }
.dashboard-home-columns { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:1rem; align-items:start; }
.dashboard-attention-list { display:grid; gap:.6rem; }
.dashboard-attention-item { display:flex; align-items:center; justify-content:space-between; gap:.9rem; min-height:4.5rem; padding:.8rem .9rem; border:1px solid #dce7f4; border-radius:.78rem; background:#fbfdff; text-decoration:none; }
.dashboard-attention-item:hover { border-color:#a8cdf7; background:#f5faff; }
.dashboard-attention-item span:first-child { display:grid; gap:.18rem; }
.dashboard-attention-item strong { color:#173866; }
.dashboard-attention-item small { color:#6b7f99; }
.dashboard-attention-item.is-warning { border-color:#f0d6a3; background:#fffaf1; }
.dashboard-attention-item.is-urgent { border-color:#f2c3c8; background:#fff7f8; }
.dashboard-attention-item__arrow { color:#0b5ed7; font-size:1.2rem; font-weight:800; }
.dashboard-attention-empty { display:grid; gap:.25rem; padding:1rem; border:1px dashed #cbdcee; border-radius:.8rem; background:#fbfdff; }
.dashboard-attention-empty strong { color:#167a43; }
.dashboard-attention-empty small { color:#6d8099; }
.dashboard-quick-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }
.dashboard-quick-actions a { display:grid; grid-template-columns:auto 1fr; column-gap:.65rem; row-gap:.15rem; align-items:center; min-height:5.3rem; padding:.85rem; border:1px solid #dce7f4; border-radius:.8rem; background:#fff; text-decoration:none; }
.dashboard-quick-actions a:hover { border-color:#9fc8f7; background:#f7fbff; }
.dashboard-quick-actions a>span { grid-row:1 / span 2; display:grid; place-items:center; width:2.25rem; height:2.25rem; border-radius:.65rem; background:#eaf4ff; color:#075fd8; }
.dashboard-quick-actions strong { color:#173866; }
.dashboard-quick-actions small { color:#6c809a; line-height:1.3; }
.dashboard-activity-list { display:grid; gap:.55rem; }
.dashboard-activity-list li { padding:.75rem .85rem; border:1px solid #e1eaf4; border-radius:.75rem; background:#fbfdff; }
@media (max-width:70rem) {
  .dashboard-key-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-home-columns { grid-template-columns:1fr; }
}
@media (max-width:42rem) {
  .dashboard-home-hero { align-items:flex-start; flex-direction:column; padding:1.1rem; }
  .dashboard-home-hero__actions { justify-content:flex-start; }
  .dashboard-key-metrics,.dashboard-quick-actions { grid-template-columns:1fr; }
}

.patient-topbar__notification { width:2.5rem; height:2.5rem; display:grid; place-items:center; border:1px solid #dce7f4; border-radius:50%; background:#fff; color:#173564; font-size:1.1rem; }
.patient-topbar__notification:hover { background:#f3f8fe; border-color:#a9c9ef; }
.patient-education:not(.has-memberships) [data-personal-education-type],
.patient-education:not(.has-memberships) [data-education-type] { display:none !important; }

/* Comfortable density for full-HD displays running at 125% OS scaling. */
@media (max-width:100rem) and (min-width:60.001rem) {
  .dashboard-key-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-home-columns { grid-template-columns:1fr; }
  .education-connection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vq-personal-dashboard .vq-page-header { padding:1rem 1.1rem; }
  .vq-personal-dashboard .vq-card { padding:1.15rem; }
}


/* Product entitlement cards */
.dashboard-access-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.dashboard-access-card { display:grid; gap:.8rem; min-height:14rem; padding:1.15rem; border:1px solid #dce7f4; border-radius:1rem; background:#fff; box-shadow:0 5px 18px rgb(23 67 117 / .05); }
.dashboard-access-card__head { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.65rem; }
.dashboard-access-card__head strong { color:#143568; font-size:1.05rem; }
.dashboard-access-card p { margin:0; color:#627995; line-height:1.5; }
.dashboard-access-card .vq-button { width:max-content; margin-top:auto; }
.dashboard-access-icon { width:2.3rem; height:2.3rem; display:grid; place-items:center; border-radius:.7rem; background:#eaf4ff; color:#075fd8; font-weight:800; }
.dashboard-access-state { padding:.24rem .55rem; border-radius:999px; background:#fff3d7; color:#946100; font-size:.68rem; font-weight:800; white-space:nowrap; }
.dashboard-access-state.is-ready { background:#e6f8ed; color:#147743; }
.dashboard-access-card.is-health { background:linear-gradient(145deg,#f7fffb,#fff); border-color:#cfe9dc; }
.dashboard-access-card.is-safety { background:linear-gradient(145deg,#fff9f7,#fff); border-color:#efd9d2; }
.dashboard-access-card.is-education { background:linear-gradient(145deg,#faf8ff,#fff); border-color:#ded8f5; }
.dashboard-key-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }

.account-product-status-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.account-product-status { display:grid; gap:.65rem; min-height:12.5rem; padding:1.05rem; border:1px solid #dce7f4; border-radius:1rem; background:#fff; box-shadow:0 5px 18px rgb(23 67 117 / .05); }
.account-product-status > span { color:#6a7e98; font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.account-product-status > strong { color:#102d5d; font-size:1.25rem; }
.account-product-status p { margin:0; color:#667c98; }
.account-product-status .vq-button { width:max-content; margin-top:auto; }
.account-product-status--health { border-color:#cfe9dc; background:#f8fffb; }
.account-product-status--safety { border-color:#efd9d2; background:#fffaf8; }
.account-product-status--education { border-color:#ddd7f3; background:#fbfaff; }

.account-product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.9rem; }
.account-product-card { display:grid; gap:.65rem; min-height:19rem; padding:1rem; border:1px solid #dce7f4; border-radius:.95rem; background:#fff; }
.account-product-card__badge { width:max-content; padding:.22rem .5rem; border-radius:999px; background:#e6f8ed; color:#147743; font-size:.68rem; font-weight:800; }
.account-product-card__badge.is-pending { background:#eef2f7; color:#6c7b90; }
.account-product-card__visual { min-height:6.2rem; display:grid; place-items:center; border-radius:.8rem; background:linear-gradient(145deg,#e8f4ff,#f8fcff); color:#075fd8; font-size:1.7rem; font-weight:900; }
.account-product-card h3 { margin:0; color:#12335f; }
.account-product-card p { margin:0; color:#667c98; }
.account-product-card .vq-button { margin-top:auto; }

@media (max-width:72rem) {
  .dashboard-access-grid,.account-product-status-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .account-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:42rem) {
  .dashboard-access-grid,.account-product-status-grid,.account-product-grid { grid-template-columns:1fr; }
  .dashboard-access-card__head { grid-template-columns:auto 1fr; }
  .dashboard-access-state { grid-column:1/-1; width:max-content; }
}
