/* Shared private-area palette. Keep success, warning and destructive states semantic. */
body.ph-workspace-sand{--ph-page:#faf5ec;--ph-surface:#fffaf3;--ph-soft:#f0e4d2;--ph-border:#dfcfb8;--ph-ink:#10383d;--ph-text:#10383d;--ph-muted:#665f54;--ph-accent:#17545b;--ph-client-ink:#10383d;--ph-client-blue:#17545b;--color-primary-50:242 246 240;--color-primary-100:225 238 230;--color-primary-200:195 220 209;--color-primary-300:153 190 179;--color-primary-400:94 147 140;--color-primary-500:42 108 112;--color-primary-600:23 84 91;--color-primary-700:21 72 79;--color-primary-800:16 56 61;--color-primary-900:12 42 46;background:var(--ph-page)!important;color:var(--ph-ink)!important}
html.dark body.ph-workspace-sand{--ph-page:#102b30;--ph-surface:#183b40;--ph-soft:#20474a;--ph-border:#48635e;--ph-ink:#fff3df;--ph-text:#fff3df;--ph-muted:#cbc5ba;--ph-accent:#e0b77b;--ph-client-ink:#fff3df;color-scheme:dark}
body.ph-workspace-sand :is(main,#content,#content>div){background:var(--ph-page);color:var(--ph-ink)}
body.ph-workspace-sand :is(.card,.card-sm,.bg-white,.hs-dropdown-menu,.ph-client-content .rounded-xl,.ph-client-content .rounded-lg,nav[aria-label="Jump links"]){background:var(--ph-surface)!important;border-color:var(--ph-border)!important;color:var(--ph-ink)}
body.ph-workspace-sand :is(.card,.card-sm){border-radius:18px;box-shadow:0 8px 28px #61441b08}
body.ph-workspace-sand :is(.text-gray-400,.text-gray-500,.text-gray-600,.text-secondary,.ph-client-welcome p){color:var(--ph-muted)!important}
body.ph-workspace-sand :is(.text-gray-700,.text-gray-800,.text-gray-900,.text-slate-700,.text-slate-800,h1,h2,h3,label){color:var(--ph-ink)}
body.ph-workspace-sand :is(.btn-primary,.ph-client-content .btn-primary,.flatpickr-day.selected,#pha-toggle){background:#17545b!important;border-color:#17545b!important;color:#fffaf3!important;box-shadow:0 4px 12px #17545b20}
body.ph-workspace-sand .btn-primary:hover{background:#22616a!important}
body.ph-workspace-sand :is(.btn-primary-soft,.bg-primary-50,.bg-primary-100,.ph-client-welcome>a){background:var(--ph-soft)!important;color:var(--ph-ink)!important;border-color:var(--ph-border)!important}
body.ph-workspace-sand :is(.input-text,select,textarea,.ts-control,.ts-dropdown){background:var(--ph-surface)!important;color:var(--ph-ink)!important;border-color:var(--ph-border)!important;border-radius:10px}
body.ph-workspace-sand input:is([type=checkbox],[type=radio]){accent-color:#17545b;color:#17545b}
body.ph-workspace-sand :is(th,thead){background:var(--ph-soft)!important;color:var(--ph-muted)!important}
body.ph-workspace-sand td{border-color:var(--ph-border)!important}
body.ph-workspace-sand tbody tr:hover{background:var(--ph-soft)!important}
body.ph-workspace-sand :is(.text-primary,a.text-primary,.ph-client-welcome>div>span){color:var(--ph-accent)!important}
body.ph-workspace-sand nav[aria-label="Jump links"] a{color:var(--ph-muted)}
body.ph-workspace-sand nav[aria-label="Jump links"] :is(a:hover,.text-primary){background:var(--ph-soft)!important;color:var(--ph-ink)!important}
body.ph-workspace-sand :focus-visible{outline:3px solid #be8d4f!important;outline-offset:3px}
body.ph-workspace-sand ::selection{background:#17545b;color:#fffaf3}
body.ph-workspace-sand .ph-sand-logo{width:190px;height:auto;max-height:52px;object-fit:contain}
html.dark body.ph-workspace-sand .ph-sand-logo,body.ph-workspace-sand .ph-footer .ph-sand-logo{background:#fffaf3;padding:7px 10px;border-radius:12px}
body.ph-workspace-sand .ph-footer{background:#10383d!important;color:#eadcca}
body.ph-workspace-sand .ph-footer :is(p,a,h2){color:#eadcca!important}
@media print{body.ph-workspace-sand,body.ph-workspace-sand main{background:white!important;color:black!important}body.ph-workspace-sand .card{box-shadow:none}}

body.ph-workspace-sand.ph-theme-v2.ph-theme-v3{background:var(--ph-page)!important;color:var(--ph-ink)!important}

html:not(.dark) body.ph-workspace-sand.ph-auth{background:#faf5ec!important;--ph-page:#faf5ec;--ph-surface:#fffaf3;--ph-soft:#f0e4d2;--ph-ink:#10383d;--ph-muted:#665f54}

.ph-sand-dark-lockup{display:none;align-items:center;gap:5px;color:#fff3df;font:750 23px/1.1 Inter,Arial,sans-serif;white-space:nowrap}.ph-sand-dark-lockup img{width:42px;height:42px;object-fit:contain}html.dark .ph-sand-dark-lockup,.ph-footer .ph-sand-dark-lockup{display:inline-flex}html.dark .ph-sand-logo,.ph-footer .ph-sand-logo{display:none!important}@media(max-width:480px){.ph-sand-dark-lockup{display:none!important}}

/* Private dashboard components override legacy embedded dark styles. */
body.ph-workspace-sand :is(.ph-v3-client-stat,.ph-v3-client-shortcuts,.ph-v3-client-discover){background:var(--ph-surface)!important;border-color:var(--ph-border)!important;color:var(--ph-text)!important}
body.ph-workspace-sand .ph-v3-client-loyalty{background:linear-gradient(145deg,var(--ph-soft),var(--ph-surface))!important;border-color:var(--ph-border)!important;color:var(--ph-text)!important}
body.ph-workspace-sand :is(.ph-v3-client-stat,.ph-v3-client-shortcuts,.ph-v3-client-loyalty) :is(i,span,p,a,small){color:var(--ph-muted)!important;border-color:var(--ph-border)!important}
body.ph-workspace-sand .ph-v3-client-stat>i{background:var(--ph-soft)!important;color:var(--ph-accent)!important}
body.ph-workspace-sand .ph-v3-client-kicker{color:var(--ph-accent)!important}
body.ph-workspace-sand .ph-site-header nav{background:transparent!important}
body.ph-workspace-sand #mobile-menu .ph-nav-active>summary{background:var(--ph-soft)!important;color:var(--ph-text)!important}
body.ph-workspace-sand nav[aria-label="Jump links"]>div{background:var(--ph-surface)!important;overflow-y:hidden;scrollbar-color:var(--ph-border) var(--ph-surface)}
body.ph-workspace-sand nav[aria-label="Jump links"] a{color:var(--ph-muted)!important}
body.ph-workspace-sand nav[aria-label="Jump links"] a:is([aria-current],.text-primary){background:var(--ph-soft)!important;color:var(--ph-text)!important}
body.ph-workspace-sand :is(.ph-nav-item-icon){background:var(--ph-soft)!important;color:var(--ph-accent)!important;border-color:var(--ph-border)!important}

/* Offer artwork inside navigation, without a boxed icon background. */
body:is(.ph-public-sand,.ph-workspace-sand) .ph-nav-item-icon:has(.ph-nav-offer-art){width:56px!important;height:56px!important;flex:0 0 56px;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;overflow:visible}
body:is(.ph-public-sand,.ph-workspace-sand) .ph-nav-item-icon img.ph-nav-offer-art{display:block;width:56px!important;height:56px!important;object-fit:contain!important;border-radius:0!important}
body:is(.ph-public-sand,.ph-workspace-sand) .ph-site-header #mobile-menu,body:is(.ph-public-sand,.ph-workspace-sand) .ph-site-header nav{background:transparent!important}
@media(max-width:639px){body:is(.ph-public-sand,.ph-workspace-sand) .ph-site-header #mobile-menu{background:var(--ph-surface)!important}}

/* Full-width navigation shell, shared public/client. */
body:is(.ph-public-sand,.ph-workspace-sand) .ph-site-header{width:100%!important;padding:12px 0!important;background:var(--ph-surface)!important}
body:is(.ph-public-sand,.ph-workspace-sand) .ph-site-header>nav{width:100%!important;max-width:none!important;min-height:56px;padding-left:clamp(16px,2.5vw,48px)!important;padding-right:clamp(16px,2.5vw,48px)!important;background:transparent!important;gap:20px}
body:is(.ph-public-sand,.ph-workspace-sand) .ph-site-header .ph-brand-slot{background:transparent!important;border:0!important;flex-shrink:0}
@media(min-width:1024px){body:is(.ph-public-sand,.ph-workspace-sand) #mobile-menu>div.sm\:flex-row{justify-content:center!important}body:is(.ph-public-sand,.ph-workspace-sand) #mobile-menu>div.sm\:flex-row> :is(a,details)>summary,body:is(.ph-public-sand,.ph-workspace-sand) #mobile-menu>div.sm\:flex-row>a{min-height:48px}}
@media(max-width:1023px){body:is(.ph-public-sand,.ph-workspace-sand) .ph-site-header>nav{gap:8px;min-height:48px}body:is(.ph-public-sand,.ph-workspace-sand) .ph-site-header{padding:8px 0!important}}

html.dark body:is(.ph-public-sand,.ph-workspace-sand) .ph-site-header nav,html.dark body:is(.ph-public-sand,.ph-workspace-sand) .ph-site-header #mobile-menu{background:transparent!important}@media(max-width:639px){html.dark body:is(.ph-public-sand,.ph-workspace-sand) .ph-site-header #mobile-menu{background:var(--ph-surface)!important}}

html body.ph-workspace-sand.ph-client .ph-site-header{width:100%!important;max-width:none!important;background:var(--ph-surface)!important;padding:12px 0!important}
html body.ph-workspace-sand.ph-client .ph-site-header>nav{width:100%!important;max-width:none!important;min-height:48px!important;padding:0 clamp(16px,2.5vw,48px)!important;margin:0!important;background:transparent!important;gap:20px}
html body.ph-workspace-sand.ph-client .ph-site-header #mobile-menu{background:transparent!important}

html body.ph-workspace-sand.ph-client .btn-action-with-icon:not(.text-danger){background:#17545b!important;border-color:#3e7377!important;color:#fff3df!important;box-shadow:none!important}
html body.ph-workspace-sand.ph-client .btn-action-with-icon:not(.text-danger):hover{background:#22646b!important}
html body.ph-workspace-sand.ph-client .btn-action-with-icon:not(.text-danger) i{color:inherit!important}
@media(max-width:1023px){html body.ph-workspace-sand.ph-client .ph-site-header>nav{gap:8px}html body.ph-workspace-sand.ph-client .ph-site-header{padding:8px 0!important}}
@media(max-width:639px){html body.ph-workspace-sand.ph-client .ph-site-header #mobile-menu{background:var(--ph-surface)!important}}

html:is(.dark,:not(.dark)) body.ph-workspace-sand.ph-client .ph-site-header{width:100%!important;max-width:none!important;background:var(--ph-surface)!important;padding:12px 0!important}
html:is(.dark,:not(.dark)) body.ph-workspace-sand.ph-client .ph-site-header>nav{width:100%!important;max-width:none!important;min-height:48px!important;padding:0 clamp(16px,2.5vw,48px)!important;margin:0!important;background:transparent!important;gap:20px}
html:is(.dark,:not(.dark)) body.ph-workspace-sand.ph-client .ph-site-header #mobile-menu{background:transparent!important}

html body.ph-workspace-sand.ph-client .btn-action-with-icon:not(.text-danger){background:#17545b!important;border-color:#3e7377!important;color:#fff3df!important;box-shadow:none!important}
html body.ph-workspace-sand.ph-client .btn-action-with-icon:not(.text-danger):hover{background:#22646b!important}
html body.ph-workspace-sand.ph-client .btn-action-with-icon:not(.text-danger) i{color:inherit!important}
@media(max-width:1023px){html:is(.dark,:not(.dark)) body.ph-workspace-sand.ph-client .ph-site-header>nav{gap:8px}html:is(.dark,:not(.dark)) body.ph-workspace-sand.ph-client .ph-site-header{padding:8px 0!important}}
@media(max-width:639px){html:is(.dark,:not(.dark)) body.ph-workspace-sand.ph-client .ph-site-header #mobile-menu{background:var(--ph-surface)!important}}

html body:is(.ph-public-sand,.ph-workspace-sand) .ph-footer .ph-footer-v3-top>a{background:#fff3df!important;color:#10383d!important;border-color:#dfcfb8!important}html body:is(.ph-public-sand,.ph-workspace-sand) .ph-footer .ph-footer-v3-top>a span{color:#10383d!important}html body:is(.ph-public-sand,.ph-workspace-sand) .ph-footer .ph-footer-v3-top>a:hover{background:#ecd7b7!important;color:#10383d!important}
