/* Complete profile component. Isolated from legacy page and navigation rules. */
body.profile-screen main{padding:24px 32px 40px}
body.profile-screen #clientProfileCard,body.profile-screen #profilePreview,body.profile-screen #sellerProfileHeading{max-width:none;background:none;border:0;box-shadow:none;padding:0;overflow:visible}
body.profile-screen .pd-screen,.pd-screen{--pd-color:#1b70ee;--pd-dark:#123c92;--pd-soft:#eaf3ff;--pd-tint:#f5faff;max-width:none;width:100%;margin:0;background:var(--pd-tint);border-radius:24px;border:1px solid #fff;box-shadow:0 12px 50px #34598712;overflow:hidden;min-height:0}
body.profile-screen .pd-screen[data-pd-role="seller"],.pd-screen[data-pd-role="seller"]{--pd-color:#009ca5;--pd-dark:#005c64;--pd-soft:#e4f7f4;--pd-tint:#f3fbfa}
body.profile-screen .pd-screen[data-pd-role="provider"],.pd-screen[data-pd-role="provider"]{--pd-color:#7444ed;--pd-dark:#351276;--pd-soft:#eee8ff;--pd-tint:#f8f5ff}
.pd-screen .pd-top{display:flex;align-items:center;justify-content:space-between;padding:22px 32px;background:linear-gradient(110deg,var(--pd-color),color-mix(in srgb,var(--pd-color),white 7%));color:#fff}
.pd-screen .pd-logo{display:flex;align-items:center;gap:12px;font-size:28px;letter-spacing:-.5px}.pd-logo svg{width:34px;height:34px}
.pd-screen .pd-tools{display:flex;align-items:center;gap:18px}.pd-screen .pd-tools button{background:transparent;color:#fff;padding:6px;width:auto;border-radius:8px}.pd-tools svg{width:25px;height:25px}
.pd-screen .pd-switcher{display:flex;gap:12px;background:#fff;padding:16px 32px;margin:0;border-bottom:1px solid #edf0f7}
.pd-screen .pd-switcher button{--tab:#1b70ee;--soft:#eaf3ff;display:flex;align-items:center;justify-content:center;gap:9px;background:var(--soft);color:var(--tab);padding:12px 22px;border:1px solid transparent;border-radius:12px;width:auto;font-size:15px;line-height:1.3}
.pd-screen .pd-switcher button[data-profile-route="seller"]{--tab:#009ca5;--soft:#e4f7f4}.pd-screen .pd-switcher button[data-profile-route="provider"]{--tab:#7444ed;--soft:#eee8ff}
.pd-screen .pd-switcher button[aria-current="page"]{background:var(--tab);color:#fff;box-shadow:0 4px 14px color-mix(in srgb,var(--tab),transparent 82%)}.pd-screen .pd-switcher button:hover{border-color:var(--tab)}.pd-switcher svg{width:22px;height:22px}
.pd-screen .pd-content{padding:28px 32px 32px;background:linear-gradient(#ffffff,var(--pd-tint));border-radius:24px 24px 0 0}
.pd-screen .pd-person{display:grid;grid-template-columns:86px minmax(0,1fr) 225px;align-items:center;gap:20px;margin-bottom:24px}.pd-screen .pd-avatar{position:relative;width:86px;height:86px}.pd-screen .pd-avatar .avatar{width:86px;height:86px;object-fit:cover;border-radius:50%;border:1px solid color-mix(in srgb,var(--pd-color),white 80%);background:var(--pd-soft);color:#121837;display:grid;place-items:center;font-size:30px;font-weight:800}
.pd-screen .pd-avatar-check{position:absolute;right:0;bottom:0;border:3px solid #fff;border-radius:50%;width:27px;height:27px;background:#119739;color:#fff;display:grid;place-items:center;font-size:15px;font-weight:700}
.pd-screen .pd-person-name>strong{color:#131936;font-size:22px;line-height:1.3}.pd-screen .pd-person-name p{display:flex;align-items:center;gap:6px;margin:6px 0;color:#657197;font-size:15px}.pd-person-name p svg{width:18px;height:18px;flex:none}
.pd-screen .pd-verification{display:inline-flex;align-items:center;gap:8px;padding:6px 11px;background:#e0f8e9;color:#075d26;font-size:13px;border-radius:10px}.pd-verification>span{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#108d31;color:#fff}.pd-screen .pd-verification[data-verified="false"]{background:#eff2f7;color:#63718a}
.pd-screen .pd-rating{text-align:right;color:#7480a2;font-size:12px;line-height:1.6}.pd-screen .pd-rating .rating-stars{display:block;font-size:30px;letter-spacing:2px;color:#f0b522;line-height:1.5;white-space:nowrap}.pd-screen .pd-rating .rating-empty{display:block;color:#9b92b9;max-width:225px}.pd-screen .pd-empty-stars{display:block;font-size:30px;letter-spacing:2px;color:#ada6c6;line-height:1.5}.pd-screen .pd-empty-rating{display:block}
.pd-screen .pd-title{display:flex;align-items:center;gap:18px;margin:0 0 24px}.pd-screen .pd-role-icon{width:76px;height:76px;flex:none;background:var(--pd-soft);color:var(--pd-color);border-radius:50%;display:grid;place-items:center}.pd-role-icon svg{width:38px;height:38px;stroke-width:2.4}.pd-screen .pd-title h2{font-size:29px;line-height:1.2;color:var(--pd-dark);margin:0 0 7px;letter-spacing:-.7px}.pd-screen .pd-title p{margin:0;color:#6b779b;font-size:16px}
.pd-screen .pd-sections{display:flex;flex-direction:column;gap:20px}
.pd-screen .pd-section{background:#fff;border:1px solid #e8edf6;border-radius:22px;padding:24px;box-shadow:0 6px 22px #45628a0b;min-width:0}
.pd-screen .pd-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.pd-screen .pd-section-heading h3{display:flex;align-items:center;gap:12px;color:var(--pd-color);font-size:22px;line-height:1.3;margin:0}.pd-section-heading h3 svg{width:27px;height:27px;flex:none;stroke-width:2.3}
.pd-screen .pd-link{display:flex;align-items:center;gap:9px;background:transparent;color:var(--pd-color);padding:4px 0;width:auto;font-weight:400;font-size:15px;white-space:nowrap}.pd-link svg{width:15px;height:15px}.pd-screen .pd-link:hover{background:transparent;color:var(--pd-dark);text-decoration:underline}
.pd-screen .dashboard-thumbnails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.pd-screen .pd-thumb{display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;background:transparent;color:#151a35;padding:0;width:100%;min-width:0;border-radius:12px;font-weight:400;line-height:1.4}.pd-screen .pd-thumb:hover{background:var(--pd-soft)}.pd-screen .pd-thumb img,.pd-screen .pd-no-photo{width:100%;aspect-ratio:2;object-fit:cover;border-radius:12px;display:block}.pd-screen .pd-no-photo{display:grid;place-items:center;background:var(--pd-soft);color:#6f7b98}.pd-screen .pd-thumb strong{font-size:17px;font-weight:600;overflow-wrap:anywhere}.pd-screen .pd-thumb-note{font-size:14px;color:#7b86a6}.pd-screen .pd-sold{font-size:13px;color:#007160;background:#dff8ef;padding:5px 20px;border-radius:25px}
.pd-screen .pd-row{display:flex;align-items:center;gap:18px;width:100%;padding:17px 0;border-bottom:1px solid #e9edf5;background:transparent;color:#192039;text-align:left;font-weight:400;line-height:1.4;border-radius:0}.pd-screen .pd-row:first-child{padding-top:0}.pd-screen .pd-row:last-child{padding-bottom:0;border-bottom:0}.pd-screen .pd-row:hover{background:var(--pd-tint)}.pd-screen .pd-row img,.pd-screen .pd-row-symbol{width:64px;height:64px;object-fit:cover;border-radius:10px;flex:none}.pd-screen .pd-row-symbol{background:var(--pd-soft);color:var(--pd-dark);display:grid;place-items:center;border-radius:50%;font-size:22px;font-weight:500}.pd-row-symbol svg{width:27px;height:27px}
.pd-screen .pd-row-text{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.pd-screen .pd-row-text strong{font-size:17px;font-weight:500;color:#192039;overflow-wrap:anywhere}.pd-screen .pd-row-text>span,.pd-screen .pd-row-text small{font-size:14px;color:#7884a2}.pd-screen .pd-pill{min-width:118px;text-align:center;background:var(--pd-soft);color:var(--pd-color);border-radius:25px;padding:7px 18px;font-size:13px}.pd-screen .pd-row-value{color:#1b2139;font-size:16px;white-space:nowrap}.pd-row-arrow svg{width:18px;height:18px;color:#8090b0}
.pd-screen .pd-cta{display:flex;align-items:center;justify-content:center;position:relative;gap:15px;width:100%;min-height:65px;background:linear-gradient(110deg,var(--pd-color),color-mix(in srgb,var(--pd-color),white 8%));color:white;border-radius:18px;padding:18px 52px;font-size:21px;font-weight:700;box-shadow:0 6px 20px color-mix(in srgb,var(--pd-color),transparent 83%)}.pd-screen .pd-cta:hover{background:var(--pd-dark)}.pd-cta-label{display:flex;align-items:center;justify-content:center;gap:15px}.pd-cta-label svg{width:30px;height:30px}.pd-cta>svg{position:absolute;right:24px;width:22px;height:22px}
.pd-screen .pd-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:22px;color:#657394;text-align:center;min-height:120px}.pd-empty>span{display:grid;place-items:center;background:var(--pd-soft);color:var(--pd-color);border-radius:50%;width:48px;height:48px;font-size:24px}.pd-empty p{margin:0;font-size:14px;color:#75809b}
.pd-service-dialog .provider-service{background:#fff;border:0;padding:0}.pd-service-dialog .work-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.pd-service-dialog .work-gallery img{width:100%;aspect-ratio:1.5;object-fit:cover}.pd-service-dialog .price{color:#7444ed}
@media(min-width:1100px){.pd-screen .pd-content{padding:30px 40px 36px}.pd-screen .pd-section{padding:26px 30px}.pd-screen .pd-row{gap:20px}}
@media(max-width:760px){body.profile-screen main{padding:12px}.pd-screen .pd-top{padding:18px}.pd-screen .pd-logo{font-size:24px}.pd-screen .pd-tools{gap:12px}.pd-tools svg{width:22px;height:22px}.pd-screen .pd-switcher{padding:12px;gap:8px}.pd-screen .pd-switcher button{flex:1;font-size:12px;padding:11px 5px;gap:5px}.pd-switcher svg{width:18px;height:18px}.pd-screen .pd-content{padding:22px 16px}.pd-screen .pd-person{grid-template-columns:60px minmax(0,1fr) 105px;gap:10px;margin-bottom:22px}.pd-screen .pd-avatar,.pd-screen .pd-avatar .avatar{width:60px;height:60px;font-size:23px}.pd-screen .pd-person-name>strong{font-size:16px}.pd-screen .pd-person-name p{font-size:12px}.pd-screen .pd-verification{font-size:10px;gap:4px;padding:5px}.pd-screen .pd-rating{font-size:10px}.pd-screen .pd-rating .rating-stars{font-size:19px;letter-spacing:0}.pd-screen .pd-title{gap:12px}.pd-screen .pd-role-icon{width:58px;height:58px}.pd-role-icon svg{width:30px;height:30px}.pd-screen .pd-title h2{font-size:22px}.pd-screen .pd-title p{font-size:13px}.pd-screen .pd-section{padding:16px}.pd-screen .pd-section-heading{gap:8px;margin-bottom:16px}.pd-screen .pd-section-heading h3{font-size:17px;gap:7px}.pd-section-heading h3 svg{width:22px;height:22px}.pd-screen .pd-link{font-size:12px;gap:4px}.pd-screen .dashboard-thumbnails{gap:10px}.pd-screen .pd-thumb img,.pd-screen .pd-no-photo{aspect-ratio:1.4;border-radius:8px}.pd-screen .pd-thumb strong{font-size:12px}.pd-screen .pd-thumb-note{font-size:11px}.pd-screen .pd-row{gap:10px;padding:14px 0}.pd-screen .pd-row img,.pd-screen .pd-row-symbol{width:44px;height:44px;font-size:16px}.pd-screen .pd-row-text strong{font-size:13px}.pd-screen .pd-row-text>span,.pd-screen .pd-row-text small{font-size:11px}.pd-screen .pd-pill{font-size:10px;min-width:75px;padding:6px 8px}.pd-screen .pd-row-value{font-size:13px}.pd-screen .pd-cta{font-size:17px;min-height:58px}.pd-cta-label svg{width:25px;height:25px}.pd-service-dialog .work-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:760px){.pd-screen .pd-empty-stars{font-size:19px;letter-spacing:0}}
/* Legacy provider headings must not override the component palette. */
.pd-screen .pd-section-heading h3{color:var(--pd-color)!important}
@media(max-width:760px){.pd-screen .pd-thumb strong{font-size:11px;overflow-wrap:normal}.pd-screen .pd-section-heading h3{font-size:16px}}
/* Notifications stay visible above the mobile navigation and keyboard. */
#liveAlert{display:block!important;position:fixed!important;bottom:calc(80px + env(safe-area-inset-bottom));right:14px;left:auto;max-width:calc(100vw - 28px);z-index:1100;white-space:normal}
#liveAlert.hidden{display:none!important}
.pd-tools button{position:relative}.message-count{position:absolute;top:-5px;right:-5px;background:#d32f2f;color:white;border-radius:20px;min-width:19px;padding:2px;font-size:11px}

/* The seller profile has a single route. Market tools are separate views. */
body:not([data-profile-screen="seller"]) #sellerProfileHeading{display:none!important}
body[data-profile-screen="seller"] #sellerDashboardButton{display:none!important}
body.explore-screen #clientProfilePreview{display:none!important}

body[data-home-view="explore"] #clientProfileCard{display:none!important}
body[data-home-view="explore"] #homePage>h1,body[data-home-view="explore"] #searchForm{display:block}
