/* Unified profile surface for the Client Center and dashboard widget. */
#app #client-fullpage:not([hidden]){
  left:50%!important;right:auto!important;top:4vh!important;bottom:auto!important;
  transform:translateX(-50%);width:min(1060px,94vw)!important;max-width:1060px!important;
  height:min(92dvh,1020px)!important;max-height:92dvh!important;
  padding:clamp(12px,1.8vw,23px)!important;border-radius:18px!important;
  border:1px solid #d9e4f2!important;box-shadow:0 24px 70px #04132765!important;
}
#client-fullpage .crm-profile-topbar{margin-bottom:9px;gap:9px}
#client-fullpage .crm-profile-hero{
  padding:14px 16px;gap:12px;border-radius:14px;
  background:linear-gradient(135deg,#f5f9ff,#fff 68%);
  border-color:#dce6f2;
}
#client-fullpage .crm-profile-identity{gap:12px}
#client-fullpage .crm-profile-avatar{
  width:76px;height:76px;flex:0 0 76px;border-radius:16px;overflow:hidden;
  background:#e8edf7;border:1px solid #d7dfec;
}
#client-fullpage .crm-profile-avatar img{height:100%;width:100%;object-fit:cover;display:block}
#client-fullpage .crm-profile-title h1{font-size:clamp(20px,2vw,27px);line-height:1.15}
#client-fullpage .client-page-tabs{margin:10px 0 13px;gap:5px}
#client-fullpage .client-page-tabs button{min-height:32px;padding:6px 11px}
#client-fullpage #client-financials{gap:7px;margin:9px 0}
#client-fullpage #client-fields{gap:9px}
#client-fullpage #client-fields .crm-ui-field-group{background:#fbfdff;padding:11px;border-color:#e3eaf3}
#client-fullpage .crm-client-quick{gap:6px}
#crm-dashboard-view.crm-live-root .crm-live-member-profile{
  border-radius:12px;scrollbar-gutter:stable;background:linear-gradient(155deg,#202640,#181e33);
}
#crm-dashboard-view.crm-live-root .crm-live-client-hero{padding:10px 9px;gap:10px}
#crm-dashboard-view.crm-live-root .crm-live-client-avatar{
  width:72px;height:72px;flex:0 0 72px;border-radius:13px;object-fit:cover
}
#crm-dashboard-view.crm-live-root .crm-live-client-thumb{object-fit:cover}
.crm-profile-enter{animation:crm-profile-reveal .23s ease-out both}
@keyframes crm-profile-reveal{from{opacity:0;filter:blur(3px)}to{opacity:1;filter:blur(0)}}
@media(max-width:700px){
  #app #client-fullpage:not([hidden]){left:0!important;top:0!important;transform:none!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;padding:10px!important}
  #client-fullpage .crm-profile-hero{padding:10px;align-items:flex-start}
  #client-fullpage .crm-profile-avatar{width:58px;height:58px;flex-basis:58px}
  #client-fullpage #client-fields{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){.crm-profile-enter{animation:none!important}}

/* Shared private dog portrait backdrop. Works with uploaded photos and fallback illustration. */
#client-fullpage .crm-profile-hero.crm-profile-with-dog,
#crm-dashboard-view.crm-live-root .crm-live-client-hero.crm-profile-with-dog{
 position:relative;isolation:isolate;overflow:hidden;background:#171d34;color:#fff;
 border-color:#665587;
}
#client-fullpage .crm-profile-hero.crm-profile-with-dog{min-height:154px;padding:20px 18px}
#client-fullpage .crm-profile-with-dog::before,
#crm-dashboard-view.crm-live-root .crm-live-client-hero.crm-profile-with-dog::before{
 content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
 background:linear-gradient(98deg,rgba(14,17,35,.96),rgba(24,21,46,.82) 52%,rgba(17,20,37,.38));
}
#client-fullpage .crm-profile-backdrop-photo,
#crm-dashboard-view.crm-live-root .crm-profile-backdrop-photo{
 position:absolute;inset:-24px;width:calc(100% + 48px);height:calc(100% + 48px);
 max-width:none;object-fit:cover;object-position:center 40%;opacity:.73;
 filter:blur(13px) saturate(.92);transform:scale(1.08);pointer-events:none;z-index:0;
}
#client-fullpage .crm-profile-with-dog>.crm-profile-identity,
#client-fullpage .crm-profile-with-dog>.crm-client-quick,
#crm-dashboard-view.crm-live-root .crm-profile-with-dog>:not(.crm-profile-backdrop-photo){
 position:relative;z-index:2;
}
#client-fullpage .crm-profile-with-dog #client-name,
#client-fullpage .crm-profile-with-dog #client-subtitle,
#client-fullpage .crm-profile-with-dog #client-meta,
#client-fullpage .crm-profile-with-dog .muted,
#crm-dashboard-view.crm-live-root .crm-profile-with-dog .crm-live-client-name{
 color:#fff!important;text-shadow:0 2px 8px #090b1de0;
}
#client-fullpage .crm-profile-with-dog .crm-client-quick .secondary,
#client-fullpage .crm-profile-with-dog .crm-client-quick .crm-profile-link{
 color:#fff!important;background:#171d34cc!important;border:1px solid #ffffff70!important;
}
#client-fullpage .crm-profile-with-dog .crm-client-quick button:not(.secondary){
 color:#fff!important;background:#7859db!important;border-color:#a68ae5!important;
}
#client-fullpage .crm-profile-avatar{width:86px;height:86px;flex:0 0 86px;border-radius:50%;border:3px solid #fff;box-shadow:0 4px 16px #080e2b50}
#crm-dashboard-view.crm-live-root .crm-live-client-hero .crm-live-client-avatar{
 width:74px;height:74px;flex:0 0 74px;border-radius:50%;border:2px solid #ffffffb5;
 box-shadow:0 2px 15px #0205137a;position:relative;z-index:2;
}
#crm-dashboard-view.crm-live-root .crm-live-client-hero.crm-profile-with-dog{min-height:108px;padding:14px 10px}
#app #client-fullpage .client-page-tabs{
 display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:8px;margin:9px 0 14px;
 border:1px solid #e3e8f1;border-radius:13px;background:#f7f8fc;
}
#app #client-fullpage .client-page-tabs button{
 flex:0 0 auto;min-height:36px;padding:7px 12px;border-radius:9px;
 color:#32445d;background:#fff;border:1px solid #dce4ed;
 font-weight:700;font-size:12px;transition:background-color .16s,border-color .16s;
}
#app #client-fullpage .client-page-tabs button[aria-current="page"]{
 color:#4a2786!important;background:#eee7ff!important;
 border-color:#b29de8!important;box-shadow:inset 0 -2px #7451c8;
}
#app #client-fullpage .client-page-tabs button:hover{border-color:#ab91eb}
#app #client-fullpage .client-page-tabs button:focus-visible{outline:3px solid #7551d8!important;outline-offset:2px}
#crm-dashboard-view.crm-live-root .crm-live-client-thumb{border-radius:50%;object-fit:cover}
@media(max-width:700px){
 #client-fullpage .crm-profile-hero.crm-profile-with-dog{min-height:140px;padding:12px}
 #client-fullpage .crm-profile-avatar{width:64px;height:64px;flex-basis:64px}
 #app #client-fullpage .client-page-tabs{margin:7px 0;padding:6px}
 #app #client-fullpage .client-page-tabs button{padding:7px 9px}
}
@media(prefers-reduced-motion:reduce){#app #client-fullpage .client-page-tabs button{transition:none}}
