/* V2.2.91 — Complete patient dashboard redesign.
 * Theme-only presentation layer. No patient/business logic is changed.
 */
:root{--pd-ink:#123d47;--pd-muted:#6f858c;--pd-line:#dcebed;--pd-soft:#f3f8f8;--pd-teal:#087d89;--pd-teal-2:#0aa5a6;--pd-deep:#063f4a;--pd-white:#fff;--pd-shadow:0 18px 50px rgba(9,58,69,.08)}
body.lmp-portal-surface .lmp-patient-unified{width:min(1220px,calc(100% - 40px))!important;margin:34px auto 70px!important;color:var(--pd-ink)!important;font-size:14px!important;line-height:1.9!important}
body.lmp-portal-surface .lmp-patient-unified *{box-sizing:border-box}
body.lmp-portal-surface .lmp-patient-unified a{font-size:14px!important}
body.lmp-portal-surface .lmp-patient-unified .lmp-portal-hero{position:relative;overflow:hidden;display:grid!important;grid-template-columns:minmax(0,1fr) 330px!important;align-items:stretch!important;gap:28px!important;padding:38px!important;margin:0 0 18px!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:30px!important;background:linear-gradient(135deg,#063f4a 0%,#087d89 58%,#0aa5a6 100%)!important;box-shadow:0 25px 65px rgba(5,63,74,.18)!important;color:#fff!important}
body.lmp-portal-surface .lmp-patient-unified .lmp-portal-hero:before{content:"";position:absolute;width:390px;height:390px;border:1px solid rgba(255,255,255,.11);border-radius:50%;left:-160px;bottom:-280px}
body.lmp-portal-surface .lmp-patient-unified .lmp-portal-hero:after{content:"";position:absolute;width:190px;height:190px;border-radius:50%;right:24%;top:-120px;background:rgba(255,255,255,.06)}
body.lmp-portal-surface .lmp-patient-unified .lmp-portal-hero-copy,.lmp-patient-unified .lmp-portal-user{position:relative;z-index:2}
body.lmp-portal-surface .lmp-patient-unified .lmp-portal-hero-copy>span{display:inline-flex!important;align-items:center;gap:8px;color:#bce9e8!important;font-size:13px!important;font-weight:900!important;letter-spacing:.13em!important}
body.lmp-portal-surface .lmp-patient-unified .lmp-portal-hero-copy>span:before{content:"";width:8px;height:8px;border-radius:50%;background:#73e0d7;box-shadow:0 0 0 5px rgba(115,224,215,.12)}
body.lmp-portal-surface .lmp-patient-unified .lmp-portal-hero h1{margin:12px 0 9px!important;font-size:clamp(30px,4vw,48px)!important;line-height:1.2!important;letter-spacing:-1px!important;color:#fff!important;font-weight:950!important}
body.lmp-portal-surface .lmp-patient-unified .lmp-portal-hero p{margin:0!important;max-width:700px!important;color:rgba(255,255,255,.78)!important;font-size:15px!important;line-height:2!important}
body.lmp-portal-surface .lmp-patient-unified .lmp-portal-user{align-self:stretch;display:flex!important;align-items:center!important;gap:17px!important;padding:22px!important;border:1px solid rgba(255,255,255,.17)!important;border-radius:24px!important;background:rgba(255,255,255,.09)!important;backdrop-filter:blur(14px)!important}
body.lmp-portal-surface .lmp-patient-unified .lmp-avatar{width:76px!important;height:76px!important;flex:0 0 76px!important;display:grid!important;place-items:center!important;border-radius:22px!important;background:#fff!important;color:var(--pd-teal)!important;font-size:31px!important;font-weight:950!important;box-shadow:0 12px 30px rgba(0,0,0,.12)!important}
body.lmp-portal-surface .lmp-patient-unified .lmp-portal-user small{display:block!important;margin-bottom:4px!important;color:#bce9e8!important;font-size:14px!important}
body.lmp-portal-surface .lmp-patient-unified .lmp-portal-user strong{display:block!important;color:#fff!important;font-size:20px!important;font-weight:900!important}
body.lmp-portal-surface .lmp-patient-portal-nav{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;margin:0 0 20px!important;padding:9px!important;border:1px solid var(--pd-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 10px 30px rgba(9,58,69,.05)!important}
body.lmp-portal-surface .lmp-patient-portal-nav a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;padding:0 17px!important;border:1px solid transparent!important;border-radius:12px!important;background:#f5f9f9!important;color:#4d6870!important;text-decoration:none!important;font-weight:850!important;transition:.2s ease!important}
body.lmp-portal-surface .lmp-patient-portal-nav a:hover{background:#eaf7f6!important;color:var(--pd-teal)!important;transform:translateY(-1px)}
body.lmp-portal-surface .lmp-patient-portal-nav a.is-active{background:linear-gradient(135deg,var(--pd-teal),#076773)!important;color:#fff!important;box-shadow:0 8px 20px rgba(8,125,137,.18)!important}
body.lmp-portal-surface .lmp-patient-portal-nav a:last-child{margin-right:auto!important;background:#fff!important;border-color:#d4e5e7!important;color:#536b72!important}
body.lmp-portal-surface .lmp-portal-summary{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px!important;margin:0 0 24px!important}
body.lmp-portal-surface .lmp-portal-summary>div{min-width:0!important;min-height:108px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;padding:17px!important;border:1px solid var(--pd-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 9px 26px rgba(9,58,69,.045)!important}
body.lmp-portal-surface .lmp-portal-summary>div:first-child{grid-column:span 2!important;background:linear-gradient(145deg,#f2fbfa,#fff)!important}
body.lmp-portal-surface .lmp-portal-summary span{display:block!important;color:#7b9197!important;font-size:14px!important;margin-bottom:6px!important}
body.lmp-portal-surface .lmp-portal-summary strong{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;color:var(--pd-ink)!important;font-size:16px!important;font-weight:950!important;line-height:1.7!important}
body.lmp-portal-surface .lmp-patient-overview{padding:30px!important;border:1px solid var(--pd-line)!important;border-radius:26px!important;background:#fff!important;box-shadow:var(--pd-shadow)!important}
body.lmp-portal-surface .lmp-patient-overview .section-head{margin-bottom:24px!important}
body.lmp-portal-surface .lmp-patient-unified .section-head>span{display:inline-block!important;color:var(--pd-teal)!important;font-size:13px!important;font-weight:950!important;letter-spacing:.12em!important}
body.lmp-portal-surface .lmp-patient-unified .section-head h2{margin:5px 0 4px!important;color:var(--pd-ink)!important;font-size:27px!important;line-height:1.35!important;font-weight:950!important}
body.lmp-portal-surface .lmp-patient-unified .section-head p{margin:0!important;color:var(--pd-muted)!important;font-size:14px!important}
body.lmp-portal-surface .lmp-patient-current{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;padding:21px 23px!important;margin-bottom:18px!important;border:1px solid #d8ebec!important;border-radius:20px!important;background:linear-gradient(135deg,#f7fcfc,#eef8f7)!important}
body.lmp-portal-surface .lmp-patient-current span{display:block!important;color:#789097!important;font-size:14px!important}
body.lmp-portal-surface .lmp-patient-current h3{margin:3px 0!important;color:#155261!important;font-size:21px!important;font-weight:950!important}
body.lmp-portal-surface .lmp-patient-current small{color:#80959b!important;font-size:14px!important}
body.lmp-portal-surface .patient-status-badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:9px 14px!important;border-radius:999px!important;background:#e2f6ed!important;color:#177557!important;font-size:14px!important;font-weight:900!important;white-space:nowrap!important}
body.lmp-portal-surface .lmp-patient-timeline{padding:24px!important;border:1px solid #e2edef!important;border-radius:21px!important;background:#fbfdfd!important}
body.lmp-portal-surface .timeline-steps{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
body.lmp-portal-surface .timeline-step{position:relative!important;min-height:124px!important;padding:18px!important;border:1px solid #e0ebed!important;border-radius:18px!important;background:#fff!important}
body.lmp-portal-surface .timeline-step:after{content:"";position:absolute;top:29px;left:-13px;width:14px;height:2px;background:#dce9eb}
body.lmp-portal-surface .timeline-step:first-child:after{display:none}
body.lmp-portal-surface .timeline-step b{display:grid!important;place-items:center!important;width:32px!important;height:32px!important;margin-bottom:13px!important;border-radius:10px!important;background:#eef4f5!important;color:#71868c!important;font-size:12px!important}
body.lmp-portal-surface .timeline-step strong{display:block!important;margin-bottom:4px!important;color:#31535c!important;font-size:15px!important;font-weight:900!important}
body.lmp-portal-surface .timeline-step span{color:#82959a!important;font-size:14px!important}
body.lmp-portal-surface .timeline-step.done{border-color:#cce9e3!important;background:#f5fcfa!important}
body.lmp-portal-surface .timeline-step.done b{background:#dff4ed!important;color:#177557!important}
body.lmp-portal-surface .lmp-single-pdf{display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center!important;gap:18px!important;margin-top:18px!important;padding:21px!important;border:1px solid #cfe8e5!important;border-radius:20px!important;background:linear-gradient(135deg,#f1fbf9,#fff)!important}
body.lmp-portal-surface .lmp-single-pdf .pdf-badge{display:grid!important;place-items:center!important;width:58px!important;height:58px!important;border-radius:17px!important;background:#e2f5f1!important;color:var(--pd-teal)!important;font-size:14px!important;font-weight:950!important}
body.lmp-portal-surface .lmp-single-pdf .pdf-copy span{display:block!important;color:var(--pd-teal)!important;font-size:13px!important;font-weight:950!important;letter-spacing:.08em!important}
body.lmp-portal-surface .lmp-single-pdf h3{margin:4px 0!important;font-size:18px!important;color:var(--pd-ink)!important}
body.lmp-portal-surface .lmp-single-pdf p{margin:0!important;color:var(--pd-muted)!important;font-size:14px!important}
body.lmp-portal-surface .pdf-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;justify-content:flex-end!important}
body.lmp-portal-surface .pdf-actions a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;padding:0 15px!important;border-radius:12px!important;text-decoration:none!important;font-weight:900!important}
body.lmp-portal-surface .pdf-actions .lmp-view-result{background:var(--pd-teal)!important;color:#fff!important}.pdf-actions .lmp-download-result{background:#fff!important;border:1px solid #d4e6e7!important;color:#31565e!important}
body.lmp-portal-surface .lmp-no-results{padding:34px!important;margin-top:18px!important;border:1px dashed #cbdfe2!important;border-radius:20px!important;background:#fafcfc!important;text-align:center!important}
body.lmp-portal-surface .lmp-no-results h3{margin:0 0 7px!important;color:var(--pd-ink)!important;font-size:19px!important}.lmp-no-results p{margin:0!important;color:var(--pd-muted)!important;font-size:14px!important}
body.lmp-portal-surface .lmp-patient-history{margin-top:24px!important;padding:30px!important;border:1px solid var(--pd-line)!important;border-radius:26px!important;background:#fff!important;box-shadow:0 15px 42px rgba(9,58,69,.06)!important}
body.lmp-portal-surface .history-list{display:grid!important;gap:10px!important}.history-list>article{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:16px!important;padding:17px 18px!important;border:1px solid #e0eaec!important;border-radius:16px!important;background:#fcfefe!important}.history-list>article>div{display:flex!important;flex-direction:column!important;gap:3px!important}.history-list article strong{font-size:16px!important;color:#214d58!important}.history-list article small{font-size:14px!important;color:#819399!important}.history-list article>span{padding:6px 10px!important;border-radius:999px!important;background:#eef5f5!important;color:#557078!important;font-size:14px!important;font-weight:800!important}.history-list article>a{color:var(--pd-teal)!important;font-weight:900!important;text-decoration:none!important}.patient-history-tests{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:-3px!important}.patient-history-tests>div{display:flex!important;justify-content:space-between!important;gap:12px!important;padding:9px 11px!important;border-radius:11px!important;background:#f2f7f7!important}.patient-history-tests span,.patient-history-tests small{font-size:14px!important}.patient-history-tests small{color:#789096!important}
body.lmp-portal-surface .lmp-patient-appointments{margin-top:24px!important;padding:30px!important;border:1px solid var(--pd-line)!important;border-radius:26px!important;background:#fff!important;box-shadow:0 15px 42px rgba(9,58,69,.06)!important}
body.lmp-portal-surface .lmp-patient-unified button,body.lmp-portal-surface .lmp-patient-unified input,body.lmp-portal-surface .lmp-patient-unified select,body.lmp-portal-surface .lmp-patient-unified textarea{font-size:14px!important;line-height:1.8!important}

/* Repair the top WordPress/admin search control when it is present on logged-in frontend previews. */
body.admin-bar #wpadminbar #wp-admin-bar-search{height:32px!important;max-height:32px!important;overflow:visible!important}
body.admin-bar #wpadminbar #wp-admin-bar-search>.ab-item{height:32px!important;line-height:32px!important;padding:0 14px!important;border-radius:0 0 10px 10px!important;background:#0aa5a6!important;color:#fff!important;font-size:13px!important;font-weight:800!important}
body.admin-bar #wpadminbar #wp-admin-bar-search>.ab-item:hover{background:#087d89!important;color:#fff!important}
body.admin-bar #wpadminbar #wp-admin-bar-search .ab-icon:before{color:#fff!important}
body.admin-bar #wpadminbar .quicklinks li#wp-admin-bar-search{margin-left:4px!important}

@media(max-width:1050px){body.lmp-portal-surface .lmp-patient-unified{width:min(100% - 28px,900px)!important}.lmp-portal-surface .lmp-patient-unified .lmp-portal-hero{grid-template-columns:1fr!important}.lmp-portal-surface .lmp-patient-unified .lmp-portal-user{max-width:520px}.lmp-portal-surface .lmp-portal-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}.lmp-portal-surface .lmp-portal-summary>div:first-child{grid-column:span 1!important}}
@media(max-width:720px){body.lmp-portal-surface .lmp-patient-unified{width:calc(100% - 20px)!important;margin:18px auto 42px!important}.lmp-portal-surface .lmp-patient-unified .lmp-portal-hero{padding:24px!important;border-radius:22px!important;gap:17px!important}.lmp-portal-surface .lmp-patient-unified .lmp-portal-hero h1{font-size:30px!important}.lmp-portal-surface .lmp-patient-unified .lmp-portal-user{padding:16px!important}.lmp-portal-surface .lmp-patient-unified .lmp-avatar{width:58px!important;height:58px!important;flex-basis:58px!important;font-size:24px!important}.lmp-portal-surface .lmp-patient-unified .lmp-portal-user strong{font-size:17px!important}.lmp-portal-surface .lmp-patient-portal-nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.lmp-portal-surface .lmp-patient-portal-nav a{width:100%!important;padding-inline:8px!important}.lmp-portal-surface .lmp-patient-portal-nav a:last-child{margin-right:0!important}.lmp-portal-surface .lmp-portal-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.lmp-portal-surface .lmp-portal-summary>div:first-child{grid-column:span 2!important}.lmp-portal-surface .lmp-patient-overview,.lmp-portal-surface .lmp-patient-history,.lmp-portal-surface .lmp-patient-appointments{padding:20px!important;border-radius:20px!important}.lmp-portal-surface .timeline-steps{grid-template-columns:repeat(2,minmax(0,1fr))!important}.lmp-portal-surface .timeline-step:after{display:none!important}.lmp-portal-surface .lmp-single-pdf{grid-template-columns:auto 1fr!important}.lmp-portal-surface .pdf-actions{grid-column:1/-1;justify-content:stretch!important}.lmp-portal-surface .pdf-actions a{flex:1!important}.lmp-portal-surface .history-list>article{grid-template-columns:1fr auto!important}.lmp-portal-surface .history-list article>a{grid-column:1/-1;text-align:center;padding-top:7px;border-top:1px solid #e5edef}.lmp-portal-surface .patient-history-tests{grid-template-columns:1fr!important}}
@media(max-width:430px){body.lmp-portal-surface .lmp-patient-portal-nav{grid-template-columns:1fr!important}.lmp-portal-surface .lmp-patient-portal-nav a{min-height:46px!important}.lmp-portal-surface .lmp-portal-summary{grid-template-columns:1fr 1fr!important}.lmp-portal-surface .lmp-patient-unified .section-head h2{font-size:22px!important}.lmp-portal-surface .timeline-steps{grid-template-columns:1fr!important}.lmp-portal-surface .lmp-patient-current{align-items:flex-start!important;flex-direction:column!important}.lmp-portal-surface .lmp-single-pdf{grid-template-columns:1fr!important}.lmp-portal-surface .lmp-single-pdf .pdf-badge{width:48px!important;height:48px!important}.lmp-portal-surface .pdf-actions{display:grid!important;grid-template-columns:1fr!important}}

/* V2.2.95 — final premium patient portal polish */
body.lmp-portal-surface .lmp-patient-unified .section-head{display:block!important}
body.lmp-portal-surface .lmp-patient-unified .section-head>span{font-size:13px!important}
body.lmp-portal-surface .lmp-patient-unified .section-head h2{font-size:28px!important}
body.lmp-portal-surface .lmp-patient-unified .section-head p{font-size:14px!important}
body.lmp-portal-surface .lmp-patient-unified .lmp-patient-history,
body.lmp-portal-surface .lmp-patient-unified .lmp-patient-appointments{scroll-margin-top:24px!important}
body.lmp-portal-surface .lmp-patient-unified .lmp-download-result{border:1px solid #cfe0e2!important;background:#fff!important;color:#31565e!important}
body.lmp-portal-surface .lmp-patient-unified .history-list article>a{min-height:42px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0 14px!important;border-radius:11px!important;background:#edf8f7!important;color:#087d89!important}
body.lmp-portal-surface .lmp-patient-unified .history-list article>a:hover{background:#dff3f1!important}

/* V2.2.96 — Final patient portal UI correction.
 * The previous redesign targeted legacy class names. The canonical dashboard
 * now uses the patient-* markup emitted by LMP_Patient_Portal; these rules
 * style that real markup and the embedded Norvan appointment surface.
 */
body.lmp-portal-surface{--patient-ink:#123f49;--patient-muted:#6d858c;--patient-line:#dcebed;--patient-soft:#f4f9f9;--patient-teal:#078793;--patient-teal-2:#12b6b0;--patient-deep:#063f4a;background:#f4f9f9!important}
body.lmp-portal-surface #wpadminbar{display:none!important}
body.lmp-portal-surface{margin-top:0!important}
body.lmp-portal-surface .lmp-patient-unified{width:min(1240px,calc(100% - 48px))!important;max-width:1240px!important;margin:34px auto 72px!important;color:var(--patient-ink)!important;font-size:15px!important;line-height:1.9!important}
body.lmp-portal-surface .lmp-patient-unified *{box-sizing:border-box}
body.lmp-portal-surface .lmp-patient-unified a{font-size:14px!important}
body.lmp-portal-surface .patient-dashboard-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:stretch;padding:34px 36px;margin:0 0 18px;border-radius:30px;background:linear-gradient(135deg,#063f4a 0%,#087d89 58%,#10a7a5 100%);box-shadow:0 24px 60px rgba(6,63,74,.18);color:#fff}
body.lmp-portal-surface .patient-dashboard-hero:before{content:"";position:absolute;width:440px;height:440px;border:1px solid rgba(255,255,255,.12);border-radius:50%;left:-220px;bottom:-310px}
body.lmp-portal-surface .patient-dashboard-hero:after{content:"";position:absolute;width:230px;height:230px;border-radius:50%;right:25%;top:-150px;background:rgba(255,255,255,.05)}
body.lmp-portal-surface .patient-dashboard-hero-copy,.patient-hero-profile{position:relative;z-index:2}
body.lmp-portal-surface .patient-dashboard-hero-copy>span{display:inline-flex;align-items:center;gap:8px;color:#c5efed;font-size:12px;font-weight:900;letter-spacing:.14em}
body.lmp-portal-surface .patient-dashboard-hero-copy>span:before{content:"";width:8px;height:8px;border-radius:50%;background:#7be4dc;box-shadow:0 0 0 5px rgba(123,228,220,.13)}
body.lmp-portal-surface .patient-dashboard-hero h1{margin:10px 0 8px;color:#fff;font-size:clamp(30px,4vw,50px);line-height:1.25;font-weight:950;letter-spacing:-1px}
body.lmp-portal-surface .patient-dashboard-hero p{max-width:720px;margin:0;color:rgba(255,255,255,.78);font-size:15px;line-height:2}
body.lmp-portal-surface .patient-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
body.lmp-portal-surface .patient-primary-action,body.lmp-portal-surface .patient-secondary-action{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:14px;text-decoration:none;font-weight:900!important}
body.lmp-portal-surface .patient-primary-action{background:#fff;color:#075c67!important;box-shadow:0 10px 22px rgba(0,0,0,.12)}
body.lmp-portal-surface .patient-secondary-action{border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.08);color:#fff!important}
body.lmp-portal-surface .patient-hero-profile{display:flex;align-items:center;gap:16px;padding:22px;border:1px solid rgba(255,255,255,.18);border-radius:24px;background:rgba(255,255,255,.09);backdrop-filter:blur(14px)}
body.lmp-portal-surface .patient-avatar{width:76px;height:76px;flex:0 0 76px;display:grid;place-items:center;border-radius:22px;background:#fff;color:var(--patient-teal);font-size:30px;font-weight:950;box-shadow:0 12px 28px rgba(0,0,0,.13)}
body.lmp-portal-surface .patient-hero-profile small{display:block;color:#c5efed;font-size:14px;margin-bottom:4px}
body.lmp-portal-surface .patient-hero-profile strong{display:block;color:#fff;font-size:20px;font-weight:950}
body.lmp-portal-surface .patient-hero-profile span{display:block;color:rgba(255,255,255,.72);font-size:14px;margin-top:2px}
body.lmp-portal-surface .patient-dashboard-nav{position:sticky;top:12px;z-index:20;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px;margin:0 0 20px;border:1px solid var(--patient-line);border-radius:18px;background:rgba(255,255,255,.94);box-shadow:0 12px 30px rgba(9,58,69,.07);backdrop-filter:blur(12px)}
body.lmp-portal-surface .patient-dashboard-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:12px;text-decoration:none!important;background:#f4f8f8;color:#506b73!important;font-weight:900!important}
body.lmp-portal-surface .patient-dashboard-nav a.is-active{background:linear-gradient(135deg,var(--patient-teal),#076b76);color:#fff!important;box-shadow:0 8px 18px rgba(7,135,147,.2)}
body.lmp-portal-surface .patient-dashboard-nav .patient-logout{margin-right:auto;background:#fff;border:1px solid var(--patient-line)}
body.lmp-portal-surface .patient-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}
body.lmp-portal-surface .patient-summary-card{min-height:112px;padding:18px;border:1px solid var(--patient-line);border-radius:18px;background:#fff;box-shadow:0 9px 26px rgba(9,58,69,.045);display:flex;flex-direction:column;justify-content:center}
body.lmp-portal-surface .patient-summary-card span{color:#7a9197;font-size:14px;margin-bottom:6px}
body.lmp-portal-surface .patient-summary-card strong{color:var(--patient-ink);font-size:18px;font-weight:950;line-height:1.7}
body.lmp-portal-surface .patient-dashboard-section{padding:30px;margin:0 0 22px;border:1px solid var(--patient-line);border-radius:26px;background:#fff;box-shadow:0 18px 50px rgba(9,58,69,.07)}
body.lmp-portal-surface .patient-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}
body.lmp-portal-surface .patient-section-heading span{display:block;color:var(--patient-teal);font-size:12px;font-weight:950;letter-spacing:.13em}
body.lmp-portal-surface .patient-section-heading h2{margin:5px 0;color:var(--patient-ink);font-size:27px;font-weight:950;line-height:1.4}
body.lmp-portal-surface .patient-section-heading p{margin:0;color:var(--patient-muted);font-size:14px}
body.lmp-portal-surface .patient-current-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;margin-bottom:16px;border:1px solid #d7ebec;border-radius:20px;background:linear-gradient(135deg,#f5fbfb,#edf8f7)}
body.lmp-portal-surface .patient-current-main span{display:block;color:#7a9197;font-size:14px}.patient-current-main h3{margin:3px 0;color:#155461;font-size:21px;font-weight:950}.patient-current-main small{color:#84979d;font-size:14px}
body.lmp-portal-surface .patient-current-status{display:inline-flex;flex-direction:column;align-items:center;gap:2px;padding:10px 16px;border-radius:15px;background:#fff4df;color:#8c620f;font-size:14px;font-weight:900;white-space:nowrap}.patient-current-status.is-ready{background:#e2f6ed;color:#177557}.patient-current-status b{font-size:13px}
body.lmp-portal-surface .patient-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:20px;border:1px solid #e1edef;border-radius:21px;background:#fbfdfd}
body.lmp-portal-surface .patient-progress-step{position:relative;min-height:118px;padding:16px;border:1px solid #e1eaec;border-radius:17px;background:#fff}.patient-progress-step span{display:grid;place-items:center;width:34px;height:34px;margin-bottom:12px;border-radius:10px;background:#eef4f5;color:#70868d;font-size:12px;font-weight:950}.patient-progress-step strong{display:block;color:#31535c;font-size:15px;font-weight:950}.patient-progress-step small{display:block;color:#83969b;font-size:14px;margin-top:3px}.patient-progress-step.done{border-color:#cde9e4;background:#f5fcfa}.patient-progress-step.done span{background:#dff4ed;color:#177557}
body.lmp-portal-surface .patient-final-card{display:grid;grid-template-columns:64px 1fr auto;align-items:center;gap:18px;margin-top:16px;padding:20px;border:1px solid #cfe8e5;border-radius:20px;background:linear-gradient(135deg,#effbf9,#fff)}
body.lmp-portal-surface .patient-pdf-mark{width:60px;height:60px;display:grid;place-items:center;border-radius:17px;background:#e2f5f1;color:var(--patient-teal);font-size:14px;font-weight:950}.patient-final-copy span{display:block;color:var(--patient-teal);font-size:12px;font-weight:950;letter-spacing:.1em}.patient-final-copy h3{margin:3px 0;color:var(--patient-ink);font-size:20px;font-weight:950}.patient-final-copy p{margin:0;color:var(--patient-muted);font-size:14px}.patient-final-actions{display:flex;gap:8px;flex-wrap:wrap}.patient-final-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 15px;border-radius:12px;border:1px solid #d5e5e7;background:#fff;color:#45636b!important;text-decoration:none;font-weight:900}.patient-final-actions a.primary{border-color:transparent;background:var(--patient-teal);color:#fff!important}
body.lmp-portal-surface .patient-wait-card,body.lmp-portal-surface .patient-empty-card{padding:28px;border:1px dashed #cfe0e3;border-radius:18px;background:#f8fbfb;text-align:center}.patient-wait-card strong,.patient-empty-card strong{display:block;color:var(--patient-ink);font-size:18px}.patient-wait-card p,.patient-empty-card p{margin:6px 0 0;color:var(--patient-muted);font-size:14px}
body.lmp-portal-surface .patient-history-list{display:grid;gap:12px}.patient-history-card{border:1px solid var(--patient-line);border-radius:20px;overflow:hidden;background:#fff}.patient-history-card>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;background:#f8fbfb;border-bottom:1px solid #e6eff0}.patient-history-card>header span{display:block;color:#82979c;font-size:13px}.patient-history-card>header strong{display:block;color:var(--patient-ink);font-size:17px;font-weight:950}.patient-history-card>header small{display:block;color:#8a9ca1;font-size:13px;margin-top:2px}.patient-history-status{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#fff2df;color:#8c620f;font-size:13px;font-weight:900;white-space:nowrap}.patient-history-status.ready{background:#e2f6ed;color:#177557}
body.lmp-portal-surface .patient-test-list{display:grid}.patient-test-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 20px;border-bottom:1px solid #edf2f3}.patient-test-row:last-child{border-bottom:0}.patient-test-row strong{display:block;color:#294f59;font-size:15px;font-weight:900}.patient-test-row span{display:block;color:#86999e;font-size:13px;margin-top:2px}.patient-test-row a,.patient-history-footer a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 13px;border-radius:11px;background:#eaf8f6;color:#087d89!important;text-decoration:none;font-size:13px!important;font-weight:900!important;white-space:nowrap}.patient-history-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 20px;border-top:1px solid #edf2f3;background:#fbfdfd;color:#70858b;font-size:14px}
body.lmp-portal-surface .patient-dashboard-footer-actions{display:flex;justify-content:flex-start;margin:6px 0 30px}.patient-dashboard-footer-actions a{color:#5b747b!important;text-decoration:none;font-size:14px!important;font-weight:850}

/* Appointment sub-surface: make the dedicated page feel like a native portal section. */
body.lmp-portal-surface .lmp-portal-shell{width:min(1240px,calc(100% - 48px));max-width:1240px;margin:34px auto 72px;color:var(--patient-ink);font-size:15px;line-height:1.9}
body.lmp-portal-surface .lmp-portal-shell .lmp-portal-hero{position:relative;overflow:hidden;padding:34px 36px;margin:0 0 16px;border-radius:28px;background:linear-gradient(135deg,#063f4a,#087d89 58%,#10a7a5);color:#fff;box-shadow:0 24px 60px rgba(6,63,74,.16)}
body.lmp-portal-surface .lmp-portal-shell .lmp-portal-hero span{color:#bfeceb;font-size:12px;font-weight:900;letter-spacing:.14em}.lmp-portal-shell .lmp-portal-hero h1{margin:8px 0 5px;color:#fff;font-size:38px;font-weight:950}.lmp-portal-shell .lmp-portal-hero p{margin:0;color:rgba(255,255,255,.76);font-size:14px}
body.lmp-portal-surface .lmp-patient-portal-nav{display:flex!important;gap:8px;flex-wrap:wrap;padding:8px;margin:0 0 18px;border:1px solid var(--patient-line);border-radius:16px;background:#fff;box-shadow:0 10px 25px rgba(9,58,69,.05)}
body.lmp-portal-surface .lmp-patient-portal-nav a{min-height:44px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;border-radius:11px;background:#f4f8f8;color:#4f6971!important;text-decoration:none;font-weight:900!important}.lmp-patient-portal-nav a:first-child{margin-right:auto}.lmp-patient-portal-nav a:hover{background:#eaf7f6;color:var(--patient-teal)!important}
body.lmp-portal-surface .noa-patient-appointments-panel{padding:26px;border:1px solid var(--patient-line);border-radius:24px;background:#fff;box-shadow:0 18px 50px rgba(9,58,69,.07)}
body.lmp-portal-surface .noa-patient-appointments-panel .noa-card-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.noa-patient-appointments-panel .noa-card-title>span{font-size:24px;font-weight:950;color:var(--patient-ink)}
body.lmp-portal-surface .noa-patient-appointments-panel .noa-book-submit{min-height:44px;padding:0 15px;border-radius:12px;background:var(--patient-teal);color:#fff;font-weight:900}
body.lmp-portal-surface .noa-patient-appointments-panel .noa-next-info{display:grid;grid-template-columns:1fr auto;gap:6px 18px;padding:18px;margin-bottom:16px;border:1px solid #d7ebec;border-radius:18px;background:linear-gradient(135deg,#f5fbfb,#edf8f7)}.noa-patient-appointments-panel .noa-next-info strong{font-size:18px;color:#155461}.noa-patient-appointments-panel .noa-next-info span{color:#789096;font-size:14px}.noa-patient-appointments-panel .noa-next-info b{grid-row:1/3;grid-column:2;align-self:center;padding:8px 12px;border-radius:999px;background:#e2f6ed;color:#177557;font-size:13px}
body.lmp-portal-surface .noa-patient-appointments-panel .noa-appointment-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid #edf2f3;background:#fff!important}.noa-patient-appointments-panel .noa-appointment-row:last-child{border-bottom:0}.noa-patient-appointments-panel .noa-appointment-row *{font-size:14px!important}.noa-patient-appointments-panel .noa-row-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-start}.noa-patient-appointments-panel .noa-row-actions a,.noa-patient-appointments-panel .noa-inline-cancel,.noa-patient-appointments-panel .noa-pay-link{min-height:38px!important;padding:0 11px!important;border-radius:10px!important;text-decoration:none!important;font-weight:900!important}.noa-patient-appointments-panel .noa-inline-cancel{border:0;background:#fff0f0;color:#b23b3b}.noa-patient-appointments-panel .noa-pay-link{background:#eaf8f6;color:#087d89!important}
body.lmp-portal-surface .lmp-portal-shell>.lmp-v815-btn.secondary{display:inline-flex;min-height:44px;align-items:center;padding:0 15px;border:1px solid #cfe1e4;border-radius:12px;background:#fff;color:#45636b!important;text-decoration:none;font-weight:900;margin-top:18px}

@media(max-width:900px){body.lmp-portal-surface .patient-dashboard-hero{grid-template-columns:1fr;padding:28px}.patient-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.patient-progress{grid-template-columns:repeat(2,minmax(0,1fr))!important}.patient-final-card{grid-template-columns:56px 1fr!important}.patient-final-actions{grid-column:1/-1}.lmp-portal-shell{width:min(100% - 28px,760px)!important}.lmp-portal-shell .lmp-portal-hero{padding:28px!important}.lmp-portal-shell .lmp-portal-hero h1{font-size:31px!important}.noa-patient-appointments-panel .noa-appointment-row{grid-template-columns:1fr!important}.noa-patient-appointments-panel .noa-row-actions{justify-content:flex-start}}
@media(max-width:600px){body.lmp-portal-surface .lmp-patient-unified{width:calc(100% - 20px)!important;margin:16px auto 45px!important}.patient-dashboard-nav{position:static!important}.patient-summary-grid{grid-template-columns:1fr 1fr!important}.patient-dashboard-section{padding:18px!important;border-radius:20px!important}.patient-section-heading h2{font-size:22px!important}.patient-current-card{align-items:flex-start!important;flex-direction:column!important}.patient-progress{grid-template-columns:1fr!important;padding:12px!important}.patient-final-card{grid-template-columns:1fr!important}.patient-pdf-mark{width:52px!important;height:52px!important}.patient-history-card>header{align-items:flex-start!important;flex-direction:column!important}.patient-test-row,.patient-history-footer{align-items:flex-start!important;flex-direction:column!important}.patient-test-row a,.patient-history-footer a{width:100%;}.patient-hero-actions{flex-direction:column}.patient-primary-action,.patient-secondary-action{width:100%}.patient-dashboard-hero h1{font-size:30px!important}.patient-hero-profile{padding:16px!important}.lmp-portal-shell{width:calc(100% - 20px)!important;margin:16px auto 45px!important}.lmp-portal-shell .lmp-portal-hero{padding:24px!important;border-radius:22px!important}.lmp-portal-shell .lmp-portal-hero h1{font-size:27px!important}.lmp-patient-portal-nav a{flex:1 1 calc(50% - 8px);margin:0!important}.noa-patient-appointments-panel{padding:16px!important}.noa-patient-appointments-panel .noa-card-title{align-items:flex-start!important;flex-direction:column!important}.noa-patient-appointments-panel .noa-book-submit{width:100%}.noa-patient-appointments-panel .noa-next-info{grid-template-columns:1fr!important}.noa-patient-appointments-panel .noa-next-info b{grid-row:auto!important;grid-column:auto!important;justify-self:start}}
