/* Signed-in patient account; authentication remains scoped to auth-design.css. */
#patient-preview .account-home-link{display:none}
#patient-preview:not(.auth-mode){min-height:100vh;padding:18px 24px 12px;color:#173f45}
#patient-preview:not(.auth-mode) .phone{max-width:1000px;margin:auto;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
#patient-preview:not(.auth-mode) header{padding:10px 6px 22px;background:transparent;border:0;font-size:20px;font-weight:700;color:#174c4d}
#patient-preview:not(.auth-mode) header small{font-size:12px;font-weight:400;color:#79868d}
#patient-preview:not(.auth-mode) .profile-header-logout{margin-inline-start:0;background:#edf6f1;color:#245a5d;border:1px solid #d8e9df;font-size:12px;min-height:44px}
#patient-preview:not(.auth-mode) .account-home-link{display:grid;place-items:center;width:44px;height:44px;border:1px solid #d8e9df;border-radius:12px;background:#edf6f1;margin-inline-start:auto;color:#245a5d}
#patient-preview:not(.auth-mode) .account-home-link svg{width:22px;height:22px}
#patient-preview:not(.auth-mode) .app-menu{display:flex!important}
#patient-preview:not(.auth-mode) .account-hero{position:relative;isolation:isolate;min-height:260px;display:flex;align-items:center;overflow:hidden;border-radius:26px;background:#f6eedf}
#patient-preview:not(.auth-mode) .account-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1}
#patient-preview:not(.auth-mode) .account-hero>div{width:54%;padding:26px 30px}
#patient-preview:not(.auth-mode) .account-hero h1{font-size:29px;line-height:1.65;font-weight:750;margin:0 0 6px;overflow-wrap:anywhere}
#patient-preview:not(.auth-mode) .account-hero h2{font-size:21px;font-weight:650;margin:0}
#patient-preview:not(.auth-mode) .account-hero p{font-size:13px;color:#45686c;margin:8px 0 0}
#patient-preview:not(.auth-mode) .profile-tabs{display:flex;gap:6px;padding:6px;margin:16px 0 0;background:#ffffffeb;border:1px solid #dce9e2;border-radius:17px}
#patient-preview:not(.auth-mode) .profile-tabs button{font-size:15px;font-weight:650;border-color:transparent;background:transparent;border-radius:12px;min-height:48px}
#patient-preview:not(.auth-mode) .profile-tabs .selected{background:#d9f3ef;border-color:#b3dfd7;color:#137777}
#patient-preview:not(.auth-mode) main{padding:0}
#patient-preview:not(.auth-mode) a{color:inherit;text-decoration:none}
#patient-preview:not(.auth-mode) a.account-reserve{display:flex;align-items:center;justify-content:center;gap:14px;min-height:54px;margin:14px 0 22px;background:#008b8b;color:white;border-radius:15px;font-size:16px;font-weight:650}
#patient-preview:not(.auth-mode) .account-reserve svg{width:24px;height:24px}
#patient-preview:not(.auth-mode) .account-section-title{font-size:21px;font-weight:700;margin:0 0 12px}
#patient-preview:not(.auth-mode) .appointment-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
#patient-preview:not(.auth-mode) .visit{background:#fffffff2;border:1px solid #d9e9e3;border-radius:21px;box-shadow:0 4px 16px #214a3c08;padding:20px;margin:16px 0}
#patient-preview:not(.auth-mode) .appointment-list .visit{margin:0}
#patient-preview:not(.auth-mode) .appointment-card{min-width:0;display:flex;flex-direction:column;border-color:#b6dfd7}
#patient-preview:not(.auth-mode) .appointment-card.needs-action{border-color:#f1d7bb}
#patient-preview:not(.auth-mode) .detail-heading{align-items:flex-start;gap:12px;margin-bottom:16px;flex-wrap:wrap}
#patient-preview:not(.auth-mode) .detail-heading h3{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:650;flex-shrink:1;margin:0}
#patient-preview:not(.auth-mode) .appointment-icon{display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;border-radius:50%;background:#e4f3ff;color:#2092bf}
#patient-preview:not(.auth-mode) .appointment-icon svg{width:24px;height:24px}
#patient-preview:not(.auth-mode) .type-telephone{background:#ffebe2;color:#cf7350}#patient-preview:not(.auth-mode) .type-in_person{background:#e0f4e9;color:#278e72}
#patient-preview:not(.auth-mode) .status{max-width:100%;font-size:11px;line-height:1.8;padding:5px 11px;overflow-wrap:anywhere;text-align:right}
#patient-preview:not(.auth-mode) .appointment-when{display:flex;flex-wrap:wrap;gap:10px 18px;margin-bottom:13px;font-size:12px;color:#345f64;line-height:1.9}
#patient-preview:not(.auth-mode) .appointment-when>span{display:flex;align-items:center;gap:7px}
#patient-preview:not(.auth-mode) .appointment-when svg{color:#16888a;width:20px;height:20px;flex-shrink:0}
#patient-preview:not(.auth-mode) .appointment-price{border-block:1px solid #e5ece8;padding:12px 0;margin:0 0 14px;flex-wrap:wrap;line-height:1.9}
#patient-preview:not(.auth-mode) .appointment-price strong{font-size:16px;font-weight:700}
#patient-preview:not(.auth-mode) .appointment-price .muted{font-size:12px}
#patient-preview:not(.auth-mode) .appointment-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#patient-preview:not(.auth-mode) .appointment-bottom button{display:flex;align-items:center;justify-content:center;gap:12px;margin:0;width:auto;min-height:44px;flex:1;font-size:12px;white-space:normal}
#patient-preview:not(.auth-mode) .appointment-bottom button.quiet{border-color:#1e9292;color:#168383}
#patient-preview:not(.auth-mode) .appointment-bottom button svg{width:17px;height:17px;flex-shrink:0}
#patient-preview:not(.auth-mode) .appointment-confirmed{font-size:11px;margin:0;display:flex;align-items:center;gap:7px;color:#3a7463;line-height:1.9}
#patient-preview:not(.auth-mode) .appointment-confirmed svg{background:#dff5e8;color:#278d63;border-radius:50%;padding:4px;width:27px;height:27px;flex-shrink:0}
#patient-preview:not(.auth-mode) .appointment-bottom .timer{display:flex;align-items:center;gap:7px;background:#fff5dd;padding:8px 10px;border-radius:10px;font-size:11px;color:#96641f;margin:0}
#patient-preview:not(.auth-mode) .past-visits{border:1px solid #dce8e2;background:#fffffff2;box-shadow:0 4px 16px #214a3c08;padding:16px 19px;border-radius:19px;margin:15px 0}
#patient-preview:not(.auth-mode) .past-visits>summary{display:flex;align-items:center;gap:11px;font-size:16px;min-height:36px;cursor:pointer;font-weight:650}
#patient-preview:not(.auth-mode) .past-visits>summary>svg:first-child{width:24px;height:24px;flex-shrink:0;color:#2b797a}
#patient-preview:not(.auth-mode) .past-visits>summary>svg:last-child{width:18px;height:18px;flex-shrink:0;margin-inline-start:auto;transform:rotate(-90deg)}
#patient-preview:not(.auth-mode) .past-visits[open]>summary>svg:last-child{transform:rotate(90deg)}
#patient-preview:not(.auth-mode) .past-visits .visit{box-shadow:none;border-radius:14px;margin:14px 0 0}
#patient-preview:not(.auth-mode) .wait-request{background:#fff8ed;border-color:#f0e3cd}
#patient-preview:not(.auth-mode) .wait-request p{border:0;padding:0;margin:8px 0}
#patient-preview:not(.auth-mode) .wait-request .cancel-button{display:inline-flex;width:auto;background:#fffaf6;border-color:#d08468;color:#ad5239;font-size:12px;padding:8px 15px;min-height:44px;margin-top:8px}
#patient-preview:not(.auth-mode) .account-empty{grid-column:1/-1;text-align:center;padding:28px 22px;background:#ffffffd9;border:1px dashed #c9e0d4;border-radius:20px}
#patient-preview:not(.auth-mode) .account-empty>svg{width:38px;height:38px;color:#5b9f90}
#patient-preview:not(.auth-mode) .account-empty h3{font-size:16px;margin:10px 0 6px}
#patient-preview:not(.auth-mode) .account-empty p{font-size:12px}
#patient-preview:not(.auth-mode) .account-footer{text-align:center;font-size:12px;margin:20px 0 0}
#patient-preview:not(.auth-mode) .account-footer p{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px}
#patient-preview:not(.auth-mode) .account-footer svg{width:22px;height:22px;color:#568a80}
#patient-preview:not(.auth-mode) .account-footer a{display:inline-flex;align-items:center;min-height:44px;color:#147c7e;border-top:1px solid #d6e7df;padding:9px 22px;margin-top:7px}
#patient-preview:not(.auth-mode)[data-account-view="account"] main,#patient-preview:not(.auth-mode)[data-account-view="detail"] main{max-width:700px;margin:22px auto 0}
#patient-preview:not(.auth-mode) button,#patient-preview:not(.auth-mode) a{cursor:pointer}
#patient-preview:not(.auth-mode) button:disabled{cursor:wait;opacity:.65}
#patient-preview:not(.auth-mode) :is(a,button,summary,input):focus-visible{outline:3px solid #008b8b;outline-offset:3px}
@media(max-width:650px){#patient-preview:not(.auth-mode){padding:9px 16px 10px}#patient-preview:not(.auth-mode) header{padding:8px 0 16px;font-size:15px;gap:8px}#patient-preview:not(.auth-mode) header small{font-size:10px}#patient-preview:not(.auth-mode) .profile-brand-logo{width:35px;height:35px}#patient-preview:not(.auth-mode) .profile-header-logout{font-size:11px;padding:8px;min-height:44px}#patient-preview:not(.auth-mode) .account-home-link{width:38px;border:0;background:transparent}#patient-preview:not(.auth-mode) .account-hero{min-height:180px;border-radius:22px}#patient-preview:not(.auth-mode) .account-hero>div{padding:18px 12px;width:57%}#patient-preview:not(.auth-mode) .account-hero h1{font-size:22px}#patient-preview:not(.auth-mode) .account-hero h2{font-size:16px}#patient-preview:not(.auth-mode) .account-hero p{font-size:11px;line-height:1.9}#patient-preview:not(.auth-mode) .profile-tabs{margin-top:12px;padding:5px;border-radius:14px}#patient-preview:not(.auth-mode) .profile-tabs button{font-size:13px;min-height:44px;padding:9px}#patient-preview:not(.auth-mode) a.account-reserve{margin:11px 0 20px;min-height:49px;font-size:14px}#patient-preview:not(.auth-mode) .account-section-title{font-size:18px;margin-bottom:12px}#patient-preview:not(.auth-mode) .appointment-list{grid-template-columns:1fr;gap:13px}#patient-preview:not(.auth-mode) .visit{padding:15px;border-radius:18px}#patient-preview:not(.auth-mode) .detail-heading h3{font-size:15px;gap:8px}#patient-preview:not(.auth-mode) .detail-heading{gap:8px;margin-bottom:14px}#patient-preview:not(.auth-mode) .status{font-size:10px;padding:5px 9px}#patient-preview:not(.auth-mode) .appointment-icon{width:36px;height:36px;flex-basis:36px}#patient-preview:not(.auth-mode) .appointment-icon svg{width:22px;height:22px}#patient-preview:not(.auth-mode) .appointment-when{font-size:11px;gap:8px 12px}#patient-preview:not(.auth-mode) .appointment-when svg{width:18px;height:18px}#patient-preview:not(.auth-mode) .appointment-price strong{font-size:15px}#patient-preview:not(.auth-mode) .appointment-bottom{gap:10px}#patient-preview:not(.auth-mode) .appointment-confirmed{font-size:10px}#patient-preview:not(.auth-mode) .appointment-bottom button{font-size:11px;gap:7px;padding:9px}#patient-preview:not(.auth-mode) .past-visits{padding:12px 15px;margin:13px 0;border-radius:17px}#patient-preview:not(.auth-mode) .past-visits>summary{font-size:14px}#patient-preview:not(.auth-mode) .past-visits .visit{padding:13px}#patient-preview:not(.auth-mode) .account-footer{margin-top:15px}#patient-preview:not(.auth-mode) .account-footer p{font-size:11px}}
#patient-preview:not(.auth-mode) .past-visits>summary::before,#patient-preview:not(.auth-mode) .past-visits>summary::after{display:none!important;content:none!important}
/* Account has no fixed bottom menu: end the page at its content. */
#patient-preview:not(.auth-mode){min-height:0;padding-bottom:6px}
#patient-preview:not(.auth-mode) #profile-content{padding-bottom:0}
#patient-preview:not(.auth-mode) .account-footer{margin-top:10px}
#patient-preview:not(.auth-mode) .account-footer p{margin:4px 0}
#patient-preview:not(.auth-mode) .account-footer a{margin-top:2px;padding-block:6px}
#patient-preview:not(.auth-mode) .account-detail-loading{display:flex;align-items:center;justify-content:center;gap:12px;min-height:280px;border:1px solid #deebe3;border-radius:20px;background:#ffffffed;padding:24px}
#patient-preview:not(.auth-mode) .account-detail-loading p{font-size:13px;color:#5c8076;margin:0}
#patient-preview:not(.auth-mode) .account-detail-loading>span{width:22px;height:22px;border:2px solid #d9ebe2;border-top-color:#168b82;border-radius:50%;animation:account-detail-spin .8s linear infinite}
@keyframes account-detail-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#patient-preview:not(.auth-mode) .account-detail-loading>span{animation:none}}
