/* iOS scopes the approved home to its customer parent; photographers reuse the same hero. */
/* Approved outline homepage; customer-only, existing actions and data remain authoritative. */
html body:not(.merchant-theme) .app > .home-pearl-outline { --home-outline-ink:#005248; padding-top:max(12px,env(safe-area-inset-top))!important; }
.home-pearl-brand { display:none; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homePearlBrand { display:flex; align-items:center; gap:7px; height:44px; margin:0 var(--page-pad) 4px; color:#005248; width:max-content; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homePearlBrand svg { width:25px; height:25px; stroke-width:1.7; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homePearlBrand b { font-size:23px; font-weight:650; letter-spacing:0; }
html body:not(.merchant-theme) .app > .home-pearl-outline :is(.top,.home-search-trigger,.focus-hero-banner) { display:none!important; }
html body:not(.merchant-theme):not(.inspiration-active):not(.social-active) .home-view-switch { top:max(12px,env(safe-area-inset-top))!important; height:44px!important; width:156px!important; }
html body:not(.merchant-theme):not(.inspiration-active):not(.social-active) .home-view-switch button { height:44px!important; min-height:44px!important; line-height:44px!important; font-size:14px!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow { gap:6px 6px!important; margin:0 var(--page-pad) 10px!important; padding:0!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow .service-btn { display:flex!important; flex-direction:column!important; justify-content:center!important; align-items:center!important; height:66px!important; min-height:66px!important; padding:4px 0!important; gap:6px!important; background:transparent!important; border:0!important; box-shadow:none!important; border-radius:12px!important; transform:none; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow .service-btn::before,
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow .service-btn::after { content:none!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow .service-icon { width:34px!important; height:34px!important; min-width:34px; color:#005248!important; stroke-width:1.65!important; fill:none!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow .service-copy { font-size:12px!important; line-height:18px!important; font-weight:400!important; letter-spacing:0!important; white-space:nowrap; color:var(--pb-ink,#24252d)!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow .service-btn:active { background:#e8efed!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow.editing .service-btn { background:#e8efed!important; outline:1px dashed #8aa9a1; }
html body:not(.merchant-theme) .app > .home-pearl-outline .actions-card { margin-bottom:10px!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #openDemandCta { height:44px!important; min-height:44px!important; font-size:18px!important; background:#005248!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #map.is-collapsed { height:48px!important; min-height:48px!important; border:0!important; border-radius:12px!important; background:#eaf0ef!important; overflow:hidden!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #map.is-collapsed :is(.home-map-collapsed-fallback,.amap-static-map,.home-map-self-location) { display:none!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #map.is-collapsed .home-weather-card { top:50%!important; left:8px!important; transform:translateY(-50%)!important; width:calc(100% - 166px)!important; height:44px!important; min-height:44px!important; padding:0 4px!important; background:transparent!important; border:0!important; box-shadow:none!important; border-radius:0!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #map.is-collapsed .home-weather-temp { gap:5px!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #map.is-collapsed .home-weather-temp>span { flex-direction:row-reverse!important; gap:4px; }
html body:not(.merchant-theme) .app > .home-pearl-outline #map.is-collapsed .home-weather-temp :is(b,strong) { font-size:12px!important; line-height:18px!important; max-width:7em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeMapDisclosure { display:flex!important; align-items:center!important; justify-content:flex-end!important; gap:5px!important; top:24px!important; right:8px!important; transform:translateY(-50%)!important; width:auto!important; max-width:calc(100% - 125px)!important; height:44px!important; min-height:44px!important; padding:0 3px!important; background:transparent!important; color:var(--pb-ink,#24252d)!important; border:0!important; box-shadow:none!important; border-radius:8px!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeMapDisclosure .home-nearby-label { display:block; font-size:12px!important; font-weight:400!important; white-space:nowrap; line-height:18px; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeMapDisclosure svg { width:18px!important; height:18px!important; flex:none; transform:none!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeMapDisclosure[aria-expanded=true] .home-nearby-chevron { transform:rotate(180deg)!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #map.is-expanded #homeMapDisclosure { top:27px!important; background:rgba(255,255,255,.95)!important; padding:0 9px!important; }
html body.merchant-theme .app > .home-pearl-outline #homeMapDisclosure :is(.home-nearby-label,.home-nearby-pin) { display:none!important; }
@media(max-width:360px) {
 html body:not(.merchant-theme) .app > .home-pearl-outline #homePearlBrand { gap:5px; }
 html body:not(.merchant-theme) .app > .home-pearl-outline #homePearlBrand b { font-size:21px; }
 html body:not(.merchant-theme):not(.inspiration-active):not(.social-active) .home-view-switch { width:142px!important; }
 html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow { column-gap:3px!important; }
 html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow .service-icon { width:32px!important; height:32px!important; min-width:32px; }
 html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow .service-copy { font-size:11px!important; }
}

html body:not(.merchant-theme) .app > .home-pearl-outline #homePearlBrand b { color:#005248!important; font-size:23px!important; font-weight:650!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #map.is-collapsed #mapLoadState { display:none!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #map.is-collapsed .home-weather-temp { width:auto!important; min-height:0!important; padding:0!important; background:transparent!important; box-shadow:none!important; border:0!important; }
html body:not(.merchant-theme):not(.inspiration-active):not(.social-active) .content.focus-content { padding-top:14px!important; }
html body:not(.merchant-theme):not(.inspiration-active):not(.social-active) .content.focus-content .focus-section-title { font-size:18px!important; height:auto!important; min-height:26px!important; margin-bottom:8px!important; }
html body:not(.merchant-theme):not(.inspiration-active):not(.social-active) #photographerList .focus-portfolio-summary { display:flex!important; flex-wrap:wrap; gap:4px 6px!important; padding-top:8px!important; }
html body:not(.merchant-theme):not(.inspiration-active):not(.social-active) #photographerList .focus-portfolio-name { max-width:8em!important; font-size:13px!important; font-weight:600!important; }
html body:not(.merchant-theme):not(.inspiration-active):not(.social-active) #photographerList .focus-portfolio-price { margin-left:auto!important; color:#005248!important; }
html body:not(.merchant-theme):not(.inspiration-active):not(.social-active) #photographerList .photographer-row { margin-bottom:16px!important; }
@media(max-width:360px) { html body:not(.merchant-theme) .app > .home-pearl-outline #homePearlBrand b { font-size:21px!important; } }

.home-outline-asset { display:none; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow .service-icon:not(.home-outline-asset) { display:none!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow .home-outline-asset { display:block!important; flex:none; width:44px!important; height:44px!important; min-width:44px!important; background-image:url("paibei-home-outline-icons.png")!important; background-size:300% 300%!important; background-repeat:no-repeat!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow .service-btn { padding:0!important; gap:2px!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow [data-service-key="photographer"] .home-outline-asset { background-position:0% 0%!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow [data-service-key="clothes"] .home-outline-asset { background-position:50% 0%!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow [data-service-key="makeup"] .home-outline-asset { background-position:100% 0%!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow [data-service-key="pose"] .home-outline-asset { background-position:0% 50%!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow [data-service-key="spot"] .home-outline-asset { background-position:50% 50%!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow [data-service-key="retro"] .home-outline-asset { background-position:100% 50%!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow [data-service-key="retouch"] .home-outline-asset { background-position:0% 100%!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow [data-service-key="print"] .home-outline-asset { background-position:50% 100%!important; }
html body:not(.merchant-theme) .app > .home-pearl-outline #homeServiceRow [data-service-key="gear"] .home-outline-asset { background-position:100% 100%!important; }

/* Android416 approved glass navigation delta; preserve the iOS outline implementation. */
/* Approved unbranded glass navigation, shared between host and community iframe. */
html body:not(.merchant-theme) #homePearlBrand{display:none!important}
html body:not(.merchant-theme) .home-view-switch,
html[data-paibei-module="social"] .home-view-switch{position:fixed!important;top:max(12px,env(safe-area-inset-top))!important;right:14px!important;left:auto!important;transform:none!important;width:156px!important;height:36px!important;box-sizing:border-box!important;display:flex!important;gap:2px!important;padding:3px!important;border:1px solid #ffffffd9!important;border-radius:20px!important;background:#eef0f4cc!important;box-shadow:0 3px 10px #33403c12!important;backdrop-filter:blur(18px) saturate(1.15)!important;-webkit-backdrop-filter:blur(18px) saturate(1.15)!important;z-index:310!important}
html body:not(.merchant-theme) .home-view-switch button,
html[data-paibei-module="social"] .home-view-switch :is(button,uni-button){flex:1!important;min-width:0!important;box-sizing:border-box!important;height:28px!important;min-height:28px!important;margin:0!important;padding:0!important;border:0!important;border-radius:16px!important;background:transparent!important;color:#62646f!important;font-size:14px!important;font-weight:500!important;line-height:28px!important;box-shadow:none!important;white-space:nowrap!important}
html body:not(.merchant-theme) .home-view-switch button.active,
html[data-paibei-module="social"] .home-view-switch :is(button,uni-button).active{background:#ffffffed!important;color:#005344!important;box-shadow:0 2px 5px #293e3414!important;font-weight:600!important}
html body:not(.merchant-theme) .home-view-switch button::after,
html[data-paibei-module="social"] .home-view-switch :is(button,uni-button)::after{content:none!important;display:none!important}
html body:not(.merchant-theme) .home-pearl-outline{padding-top:64px!important}
html[data-paibei-module="social"] .topbar{box-sizing:border-box;min-height:64px!important;height:64px!important;padding:0!important;background:transparent!important}
html[data-paibei-module="social"] .top-publish{display:none!important}
html[data-paibei-module="social"] [data-pdd-publish-entry]{color:#005344!important}

html body:not(.merchant-theme):not(.inspiration-active):not(.social-active) .home-view-switch{width:156px!important;height:36px!important}
html body:not(.merchant-theme):not(.inspiration-active):not(.social-active) .home-view-switch button{height:28px!important;min-height:28px!important;line-height:28px!important}

html body:not(.merchant-theme):not(.inspiration-active):not(.social-active) .hero.home-pearl-outline{padding-top:64px!important}

/* Same typography layer as the app type system: legacy !important must not enlarge navigation. */
@layer pdd-typography {
html:is(#pdd-nav-a#pdd-nav-b#pdd-nav-c,:root) body:not(.merchant-theme) .home-view-switch,
html:is(#pdd-nav-a#pdd-nav-b#pdd-nav-c,:root)[data-paibei-module="social"] .home-view-switch{
 position:fixed!important;top:max(12px,env(safe-area-inset-top))!important;right:14px!important;left:auto!important;transform:none!important;width:156px!important;height:36px!important;box-sizing:border-box!important;padding:3px!important;gap:2px!important;border:1px solid #ffffffd9!important;border-radius:20px!important;background:#eef0f4cc!important;box-shadow:0 3px 10px #33403c12!important;backdrop-filter:blur(18px) saturate(1.15)!important;-webkit-backdrop-filter:blur(18px) saturate(1.15)!important;
}
html:is(#pdd-nav-a#pdd-nav-b#pdd-nav-c,:root) body:not(.merchant-theme) .home-view-switch :is(button,uni-button),
html:is(#pdd-nav-a#pdd-nav-b#pdd-nav-c,:root)[data-paibei-module="social"] .home-view-switch :is(button,uni-button){
 flex:1!important;min-width:0!important;font-size:14px!important;line-height:28px!important;letter-spacing:0!important;height:28px!important;min-height:28px!important;padding:0!important;margin:0!important;border:0!important;border-radius:16px!important;color:#62646f!important;background:transparent!important;box-shadow:none!important;font-weight:500!important;
}
html:is(#pdd-nav-a#pdd-nav-b#pdd-nav-c,:root) body:not(.merchant-theme) .home-view-switch .active,
html:is(#pdd-nav-a#pdd-nav-b#pdd-nav-c,:root)[data-paibei-module="social"] .home-view-switch .active{color:#005344!important;background:#ffffffed!important;box-shadow:0 2px 5px #293e3414!important;font-weight:600!important}
html:is(#pdd-nav-a#pdd-nav-b#pdd-nav-c,:root) body:not(.merchant-theme) .hero.home-pearl-outline{padding-top:72px!important}
html:is(#pdd-nav-a#pdd-nav-b#pdd-nav-c,:root) body:not(.merchant-theme) .home-view-switch button::after{display:none!important;content:none!important}
}

@layer pdd-typography {html:is(#pdd-nav-a#pdd-nav-b#pdd-nav-c,:root) body:not(.merchant-theme):not(.inspiration-active):not(.social-active) .hero.home-pearl-outline{padding-top:calc(max(12px,env(safe-area-inset-top)) + 42px)!important}}

/* Approved nine service icons: retain the two-row structure and remove search. */
@layer pdd-typography {
html:is(#pdd-home-a#pdd-home-b#pdd-home-c#pdd-home-d,:root) body #openGlobalSearch {display:none!important}
html:is(#pdd-home-a#pdd-home-b#pdd-home-c#pdd-home-d,:root) body #homeServiceRow .service-icon {width:44px!important;height:44px!important;flex:0 0 44px!important}
html:is(#pdd-home-a#pdd-home-b#pdd-home-c#pdd-home-d,:root) body #homeServiceRow .service-icon img {width:100%!important;height:100%!important;object-fit:contain!important}
html:is(#pdd-home-a#pdd-home-b#pdd-home-c#pdd-home-d,:root) body #homeServiceRow .service-btn {height:78px!important;min-height:78px!important}
html:is(#pdd-home-a#pdd-home-b#pdd-home-c#pdd-home-d,:root) body #homeServiceRow :is(.service-label,.service-copy) {font-size:12px!important;line-height:1.4!important}
}
