/* One visual layer, scoped to the private portal. Booking keeps its own design. */
.patient-session-flow{min-width:0}.patient-flow-top{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.patient-flow-top h4{margin:0}.patient-flow-list{display:grid;gap:12px;margin:20px 0}.patient-flow-choice{width:100%;min-height:52px;text-align:left;white-space:normal;overflow-wrap:anywhere;color:var(--ink);border:1px solid var(--line)}.patient-flow-view>.session-card{padding:24px;border:1px solid var(--line);margin:0}.patient-flow-top button,.patient-flow-view>button{min-height:44px}
body[data-booking-view=space] .intro{display:none}
body[data-booking-view=space] #go-to-space,body[data-booking-view=space] .account-nav>a{display:none}
body[data-booking-view=space] .layout{max-width:1100px;margin-top:28px}
body[data-booking-view=space] #patient-space{padding:32px;background:transparent;border:0;box-shadow:none}
body[data-booking-view=space] #patient-space-label{display:none}
body[data-booking-view=space] #patient-title{display:block!important;font-size:clamp(2rem,4vw,3rem);margin:0 0 8px}
body[data-booking-view=space] #portal-description{display:block!important;margin:0;color:var(--muted);font-size:1rem}
body[data-booking-view=space] #patient-refresh{float:right;margin-top:-44px;font-size:.9rem}
body[data-booking-view=space] #patient-orders{display:grid;grid-template-columns:166px minmax(0,1fr);gap:28px;margin-top:32px;align-items:start}
body[data-booking-view=space] .patient-navigation{display:grid;gap:7px;padding:0;background:transparent;margin:0;position:sticky;top:94px}
body[data-booking-view=space] .patient-nav-button{justify-content:flex-start;gap:12px;border-radius:14px;padding:13px 14px;font-size:.94rem;min-height:50px}
body[data-booking-view=space] .patient-nav-button[aria-current]{background:#12293e;color:#fff}
body[data-booking-view=space] .patient-section{grid-column:2;grid-row:1;min-width:0}
body[data-booking-view=space] .patient-section-heading{font:400 1.6rem/1.2 Georgia,serif;margin:0 0 22px}
body[data-booking-view=space] .patient-section:has(.patient-session-flow)>.patient-section-heading{display:none}
.portal-symbol{display:block;width:24px;height:24px;flex:none}
.portal-subtitle{font-size:1rem;color:var(--muted);margin:0 0 22px}
.patient-flow-top{margin-bottom:18px}.patient-flow-top h4{font:400 1.5rem/1.2 Georgia,serif}
.patient-flow-next{position:relative;overflow:hidden;min-height:260px;border:1px solid #e8c6a9;border-radius:28px;padding:30px;background:linear-gradient(110deg,#ffead3,#fff7ec)}
.patient-flow-next::after{content:'';position:absolute;right:-40px;top:28px;width:240px;height:240px;border:1px solid #d65d2526;border-radius:50%;box-shadow:0 0 0 26px #e2833520,0 0 0 58px #e2833510;pointer-events:none}
.patient-flow-next>*{position:relative;z-index:1}.patient-flow-next .portal-symbol{color:#ae3606;margin-bottom:18px;width:32px;height:32px}
.patient-flow-next>p:first-of-type{font:400 clamp(1.55rem,3vw,2.2rem)/1.25 Georgia,serif;max-width:570px;margin:0 0 12px}
.patient-flow-next>p:nth-of-type(2){font-size:1rem;margin:0 0 24px}.patient-flow-next .primary{background:#12293e}
.patient-flow-choices{display:flex;gap:16px;flex-wrap:wrap;margin:20px 0}.patient-flow-choices button{min-height:46px}
.portal-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:24px}
.portal-shortcut{display:flex;align-items:flex-start;flex-direction:column;position:relative;gap:16px;padding:22px;border:1px solid var(--line);border-radius:22px;background:#fffdf8;color:var(--ink);text-align:left;min-height:165px;justify-content:flex-start}
.portal-shortcut .portal-symbol:first-child{box-sizing:content-box;padding:12px;border-radius:16px;background:#f8e4d2;color:#aa400e}
.portal-shortcut:nth-child(2) .portal-symbol:first-child{background:#e6edec;color:#234e50}.portal-shortcut:nth-child(3) .portal-symbol:first-child{background:#eae6f0;color:#59486d}
.portal-shortcut strong{font-size:1rem}.portal-shortcut small{display:block;font-size:.9rem;line-height:1.4;font-weight:400;color:var(--muted);margin-top:5px}
.portal-shortcut>.portal-symbol:last-child{position:absolute;right:18px;top:26px;width:19px}
.portal-shortcut:not(:disabled):hover,.guidance-choice:hover{border-color:var(--orange);transform:translateY(-2px)}
.patient-flow-alert{font-size:.94rem;padding:16px 20px;border-radius:16px;background:#ffecdb}
.patient-flow-choice{background:#fffdf8;padding:20px;border-radius:18px;font-size:1rem;line-height:1.5}
.guidance-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 24px}
.guidance-choice{display:flex;justify-content:flex-start;background:#fffdf8;border:1px solid var(--line);border-radius:16px;padding:18px;text-align:left}.guidance-choice svg:last-child{margin-left:auto}
.guidance-card{padding:24px;border:1px solid var(--line);border-radius:20px;background:#fffdf8;margin-bottom:14px}.guidance-card>.portal-symbol{color:var(--orange)}
.guidance-card h4{font:400 1.4rem Georgia,serif;margin:16px 0}.private-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1rem}
body[data-booking-view=space] #patient-detail{margin-top:28px;padding:24px;border:1px solid var(--line);border-radius:22px;background:#fffdf8}
body[data-booking-view=space] .session-card{background:#fffdf8;border-radius:20px}
body[data-booking-view=space] .notification-preferences{margin:0;padding:24px}body[data-booking-view=space] .notification-preferences>h4{display:none}
body[data-booking-view=space] .notification-toggle{padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff9f1;font-weight:500}
body[data-booking-view=space] .notification-preferences-form{gap:10px}
.portal-entry-card{grid-column:1/-1;border:1px solid var(--line);background:#fffdf8;border-radius:24px;padding:32px}.portal-entry-card svg{color:var(--orange);width:40px;height:40px;margin-bottom:20px}.portal-entry-card h3{font:400 2rem Georgia,serif}

body[data-portal-role=owner] .owner-dashboard-intro{padding:0;background:none;margin:0 0 24px}.owner-dashboard-intro>.eyebrow{display:none}.owner-dashboard-intro h4{display:none}
body[data-portal-role=owner] .owner-dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body[data-portal-role=owner] .owner-dashboard-metric{padding:20px;background:#fffdf8}.owner-dashboard-metric p{font-size:.94rem}
body[data-portal-role=owner] .owner-dashboard-grid{margin-top:24px}
body[data-portal-role=owner] .owner-dashboard-section{padding:24px;background:#fffdf8}
body[data-portal-role=owner] .owner-dashboard-section h5{font-family:var(--vc-sans);font-size:1.1rem;font-weight:650;gap:12px}.owner-dashboard-section h5:before{display:none}
body[data-portal-role=owner] .owner-dashboard-section h5 svg{box-sizing:content-box;padding:10px;background:#f8e4d2;color:#aa400e;border-radius:14px}
body[data-portal-role=owner] .owner-dashboard-note{font-size:.94rem}.owner-dashboard-scope summary{font-size:.86rem;font-weight:400}
@media(max-width:1000px){.portal-shortcuts{grid-template-columns:1fr}.portal-shortcut{min-height:100px;flex-direction:row;align-items:center;padding:18px;gap:16px}.portal-shortcut>.portal-symbol:last-child{position:static;margin-left:auto}.patient-flow-next{min-height:230px}}
@media(max-width:760px){body[data-booking-view=space] #patient-space{padding:8px 0}body[data-booking-view=space] .layout{margin-top:24px}body[data-booking-view=space] #patient-orders{grid-template-columns:1fr;gap:22px;margin-top:24px}body[data-booking-view=space] .patient-navigation{grid-template-columns:repeat(3,minmax(0,1fr));position:static;gap:6px}body[data-booking-view=space] .patient-nav-button{justify-content:center;flex-direction:column;gap:7px;padding:12px 5px;font-size:.84rem}body[data-booking-view=space] .patient-section{grid-column:1;grid-row:2}body[data-booking-view=space] #patient-refresh{float:none;margin:8px 0 0}body[data-booking-view=space] #portal-description{font-size:.97rem}.patient-flow-next{padding:24px;min-height:250px}.patient-flow-next::after{right:-145px}.guidance-choices{grid-template-columns:1fr}.patient-flow-choices{gap:8px}.patient-flow-choices button{font-size:.92rem;padding:10px 14px}.portal-shortcuts{margin-top:18px;gap:10px}body[data-portal-role=owner] .owner-dashboard-metrics{grid-template-columns:1fr 1fr}body[data-portal-role=owner] .owner-dashboard-metric:last-child{grid-column:1/-1}.account-nav{position:static}.portal-entry-card{padding:24px}}
@media(prefers-reduced-motion:reduce){.portal-shortcut:hover,.guidance-choice:hover{transform:none}}

/* Portal0740: functional glyphs stay upright; a small rhizome node moves. */
.portal-symbol .portal-orbit{transform-origin:12px 12px;animation:portal-orbit0740 18s linear infinite}
.portal-symbol .portal-glyph{transform-origin:12px 12px}
@keyframes portal-orbit0740{to{transform:rotate(360deg)}}
body[data-booking-view=space] .intro{display:none!important}
body[data-booking-view=space] .layout,
body[data-booking-view=space] .layout:has(.summary[hidden]){max-width:1180px;grid-template-columns:minmax(0,1fr)}
body[data-booking-view=space] .patient-nav-button{transition:background .2s,border-color .2s,color .2s;overflow:visible}
body[data-booking-view=space] .patient-nav-button:not([aria-current]) .portal-symbol{color:#b83d09}
body[data-booking-view=space] .patient-nav-button:focus-visible,
body[data-booking-view=space] .portal-shortcut:focus-visible,
body[data-booking-view=space] .owner-dashboard-section>summary:focus-visible{outline:3px solid #bd461a;outline-offset:4px}
body[data-booking-view=space] .patient-navigation{border-right:1px solid var(--line);padding-right:12px}
body[data-booking-view=space] .patient-section{animation:portal-enter0740 .28s ease-out}
@keyframes portal-enter0740{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
body[data-booking-view=space] .patient-flow-next{box-shadow:0 12px 36px #562c1010}
body[data-booking-view=space] .portal-shortcut{transition:transform .2s,border-color .2s,box-shadow .2s}
body[data-booking-view=space] .portal-shortcut:hover{box-shadow:0 8px 20px #522b100a}
body[data-booking-view=space] .portal-shortcut:disabled{opacity:.6}
body[data-booking-view=space] .patient-nav-button[aria-current]{background:#b53d0a;color:white}
body[data-portal-role=owner] .owner-dashboard-section{padding:0;overflow:hidden;background:#fffdf8}
body[data-portal-role=owner] .owner-dashboard-section>summary{cursor:pointer;list-style:none;min-height:78px;display:flex;align-items:center;gap:16px;padding:20px 24px}
body[data-portal-role=owner] .owner-dashboard-section>summary::-webkit-details-marker{display:none}
body[data-portal-role=owner] .owner-dashboard-section>summary>h5{flex:1;margin:0;font-family:var(--vc-sans);font-weight:650;font-size:1.05rem;gap:12px}
body[data-portal-role=owner] .owner-dashboard-section>summary::after{content:'↗';color:#b53d0a;font-size:1.3rem;transition:transform .2s}
body[data-portal-role=owner] .owner-dashboard-section[open]>summary::after{transform:rotate(90deg)}
body[data-portal-role=owner] .owner-dashboard-section[open]>summary{border-bottom:1px solid var(--line)}
body[data-portal-role=owner] .owner-dashboard-section-body{padding:8px 24px 24px}
body[data-portal-role=owner] .owner-dashboard-section:nth-child(2)>summary{background:#f1f5ee}
body[data-portal-role=owner] .owner-dashboard-section:nth-child(3)>summary{background:#fff2e4}
body[data-portal-role=owner] .owner-dashboard-section:nth-child(4)>summary{background:#f2edf4}
body[data-portal-role=owner] .owner-dashboard-intro h4{display:none}
body[data-booking-view=space] .session-card>details{background:#fbf6ef;border-radius:12px;padding:0 16px;margin-top:16px}
body[data-booking-view=space] .session-card>details[open]{padding-bottom:16px}
body[data-booking-view=space] .session-card>.outline{margin-top:12px}
@media(max-width:760px){
 body[data-booking-view=space] .patient-navigation{border-right:0;padding-right:0;border-bottom:1px solid var(--line);padding-bottom:14px}
 body[data-portal-role=owner] .owner-dashboard-section>summary{padding:16px 18px;min-height:74px}
 body[data-portal-role=owner] .owner-dashboard-section-body{padding:8px 18px 18px}
 body[data-booking-view=space] .patient-nav-button .portal-symbol{width:23px;height:23px}
 body[data-booking-view=space] .patient-nav-button{font-size:.8rem}
}
.motion-paused .portal-symbol .portal-orbit{animation-play-state:paused}
.motion-reduced .portal-symbol .portal-orbit{animation:none}
@media(prefers-reduced-motion:reduce){
 .portal-symbol .portal-orbit{animation:none}
 body[data-booking-view=space] .patient-section{animation:none}
 body[data-booking-view=space] .portal-shortcut,
 body[data-booking-view=space] .patient-nav-button,
 body[data-portal-role=owner] .owner-dashboard-section>summary::after{transition:none}
}
