/* R14 — compact client home and a translucent navigation surface.
   Scoped to clients: administrator and seller navigation keep their styles. */
:root .shell.client-shell .client-home-summary{
  padding:8px 16px;
  gap:4px 12px;
  border-radius:20px;
}
:root .shell.client-shell .client-service-copy{min-width:0}
:root .shell.client-shell .client-home-summary .activity-kicker{
  font-size:.56rem;
  line-height:1.2;
}
:root .shell.client-shell .client-home-summary h1{
  margin:2px 0;
  font-size:clamp(1.125rem,4.5vw,1.45rem);
  line-height:1.15;
}
:root .shell.client-shell .client-home-summary p{line-height:1.3}
:root .shell.client-shell .client-service-days{
  min-width:66px;
  max-width:92px;
  padding:6px 8px;
  border-radius:14px;
  align-self:center;
}
:root .shell.client-shell .client-service-days b{font-size:1.7rem;line-height:1}
:root .shell.client-shell .client-service-days span{margin-top:3px;font-size:.6rem;line-height:1.2}
:root .shell.client-shell .client-home-actions{gap:8px;min-width:0}
:root .shell.client-shell .client-home-actions .btn{min-height:44px;padding:8px 12px}

/* The whole promotion strip is one real button, including its arrow and icon. */
:root .shell.client-shell .client-inline-promotions.is-compact{padding:0;min-height:54px}
:root .shell.client-shell .client-promo-compact{
  display:flex;align-items:center;gap:10px;
  width:100%;min-width:0;min-height:54px;
  padding:8px 14px;border:0;border-radius:inherit;
  background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer;
}
:root .shell.client-shell .client-promo-compact-copy{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
:root .shell.client-shell .client-promo-compact .activity-kicker{flex:none;font-size:.56rem;line-height:1.2}
:root .shell.client-shell .client-promo-compact-title{min-width:0;font-size:.88rem;font-weight:800;line-height:1.25;overflow-wrap:anywhere}
:root .shell.client-shell .is-compact .client-promo-symbol{width:32px;height:32px;border-radius:11px}
:root .shell.client-shell .is-compact .client-promo-symbol svg{width:21px;height:21px}
:root .shell.client-shell .client-promo-compact-arrow{flex:none;font-size:1.25rem;line-height:1}
:root .shell.client-shell .client-promo-compact:hover{background:color-mix(in srgb,var(--accent) 6%,transparent)}
:root .shell.client-shell .client-promo-compact:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}

/* R20: client navigation glass. Keep a solid surface unless backdrop filtering
   is available; the global refinement background needs this scoped override. */
:root .shell.client-shell .bottomnav{
  background:var(--surface)!important;
  border-color:var(--line)!important;
  border-color:color-mix(in srgb,var(--surface) 45%,var(--line))!important;
  border-radius:22px;padding:6px;gap:4px;
  box-shadow:0 12px 32px #102c3424,0 2px 6px #102c340a,inset 0 1px 0 #ffffffb3;
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
:root .shell.client-shell .bottomnav button{
  min-width:0;min-height:52px;gap:4px;padding:8px 2px 6px;
  border:1px solid transparent;border-radius:16px;
  background:transparent;color:var(--text);font-size:.69rem;font-weight:700;line-height:1.15;
  box-shadow:none;transform:none;
  transition:background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease;
}
:root .shell.client-shell .bottomnav button>span:not(.dot):not(.badge){
  max-width:100%;opacity:.78;letter-spacing:.005em;
}
:root .shell.client-shell .bottomnav button>svg{width:21px;height:21px;flex:none}
:root .shell.client-shell .bottomnav button:is(.active,[aria-current="page"]){
  background:color-mix(in srgb,var(--accent) 13%,transparent);
  background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 17%,transparent),color-mix(in srgb,var(--accent) 7%,transparent));
  border-color:color-mix(in srgb,var(--accent) 23%,transparent);
  color:var(--text);font-weight:800;transform:none;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--surface) 55%,transparent);
}
:root .shell.client-shell .bottomnav button:is(.active,[aria-current="page"])::before{
  content:"";position:absolute;top:3px;left:50%;width:20px;height:3px;
  border-radius:999px;background:var(--accent);transform:translateX(-50%);pointer-events:none;
  box-shadow:0 2px 8px color-mix(in srgb,var(--accent) 24%,transparent);
}
:root .shell.client-shell .bottomnav button:is(.active,[aria-current="page"])>span:not(.dot):not(.badge){opacity:1}
:root .shell.client-shell .bottomnav button:is(.active,[aria-current="page"])>svg{color:var(--accent)}
:root .shell.client-shell .bottomnav button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
:root[data-theme="dark"] .shell.client-shell .bottomnav{
  box-shadow:0 12px 36px #0005,0 2px 6px #0003,inset 0 1px 0 #ffffff24;
}
@media(hover:hover){
  :root .shell.client-shell .bottomnav button:not(.active):not([aria-current="page"]):hover{
    background:color-mix(in srgb,var(--accent) 7%,transparent);
    border-color:color-mix(in srgb,var(--accent) 15%,transparent);
  }
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  :root .shell.client-shell .bottomnav{
    background:color-mix(in srgb,var(--surface) 70%,transparent)!important;
    background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 78%,transparent),color-mix(in srgb,var(--surface) 61%,transparent))!important;
    -webkit-backdrop-filter:blur(30px) saturate(1.4);
    backdrop-filter:blur(30px) saturate(1.4);
  }
  :root[data-theme="dark"] .shell.client-shell .bottomnav{
    background:color-mix(in srgb,var(--surface) 76%,transparent)!important;
    background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 82%,transparent),color-mix(in srgb,var(--surface) 68%,transparent))!important;
  }
}
@media(max-width:380px){
  :root .shell.client-shell .client-home-summary{padding-inline:12px;gap:4px 8px}
  :root .shell.client-shell .client-promo-compact{padding-inline:12px;gap:8px}
  :root .shell.client-shell .client-promo-compact-copy{display:grid;gap:2px}
  :root .shell.client-shell .client-promo-compact-title{font-size:.84rem}
}
@media(min-width:700px){
  :root .shell.client-shell .client-home-summary{padding:14px 20px;gap:16px}
  :root .shell.client-shell .client-promo-compact{padding-inline:20px}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){
  :root .shell.client-shell .bottomnav,
  :root[data-theme="dark"] .shell.client-shell .bottomnav{
    background:var(--surface)!important;
    border-color:var(--line)!important;
    -webkit-backdrop-filter:none;backdrop-filter:none;
  }
  :root .shell.client-shell .bottomnav button>span:not(.dot):not(.badge){opacity:1}
}
@media(prefers-reduced-motion:reduce){
  :root .shell.client-shell .bottomnav button{transition:none}
}
@media(forced-colors:active){
  :root .shell.client-shell .bottomnav,
  :root[data-theme="dark"] .shell.client-shell .bottomnav{
    background:Canvas!important;border-color:ButtonText!important;box-shadow:none;
    -webkit-backdrop-filter:none;backdrop-filter:none;
  }
  :root .shell.client-shell .bottomnav button{background:Canvas;color:ButtonText;box-shadow:none}
  :root .shell.client-shell .bottomnav button>span:not(.dot):not(.badge){opacity:1}
  :root .shell.client-shell .bottomnav button:is(.active,[aria-current="page"]){background:Highlight;color:HighlightText;border-color:Highlight;box-shadow:none}
  :root .shell.client-shell .bottomnav button:is(.active,[aria-current="page"])>svg{color:HighlightText}
  :root .shell.client-shell .bottomnav button:is(.active,[aria-current="page"])::before{background:HighlightText;box-shadow:none}
  :root .shell.client-shell .bottomnav button:focus-visible{outline:2px solid ButtonText;outline-offset:-3px}
}

/* R19: a single compact service row. The chevron's stretched hit area opens
   the service details; Help remains a separate, accessible touch target. */
:root .shell.client-shell .client-home-summary--mini{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 24px auto;
  align-items:center;
  gap:10px;
  min-height:70px;
  padding:10px 14px;
  border:1px solid #ffffff26;
  border-radius:17px;
  background:linear-gradient(115deg,var(--client-hero-start,#124f53) 0%,var(--client-hero-mid,#0f6865) 70%,var(--client-hero-end,#13786c) 100%);
  box-shadow:0 4px 16px #0d5b5810,inset 0 1px 0 #ffffff10;
}
:root .shell.client-shell .client-home-summary--mini::after{
  width:150px;height:150px;top:-105px;right:18%;
  border-color:#ffffff0d;box-shadow:0 0 0 16px #ffffff03;
}
:root .shell.client-shell .client-home-summary--mini .activity-kicker{
  color:#ffffffbd;font-size:.5rem;letter-spacing:.13em;line-height:1.3;
}
:root .shell.client-shell .client-home-summary--mini h1{
  margin:3px 0 2px;font-size:1.05rem;line-height:1.18;font-weight:750;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.025em;
}
:root .shell.client-shell .client-home-summary--mini p{
  font-size:.67rem;line-height:1.3;color:#ffffffdf;
}
:root .shell.client-shell .client-home-summary--mini .client-service-days{
  flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:4px;
  align-self:center;min-width:0;max-width:82px;
  padding:7px 10px;border:1px solid #d2fff154;border-radius:11px;
  background:color-mix(in srgb,var(--client-color-two,var(--accent)) 12%,#fff);color:#163e3e;
}
:root .shell.client-shell .client-home-summary--mini .client-service-days b{
  font-size:1.35rem;line-height:1;letter-spacing:-.045em;
}
:root .shell.client-shell .client-home-summary--mini .client-service-days span{
  max-width:58px;margin:0;font-size:.62rem;line-height:1.15;font-weight:700;
}
:root .shell.client-shell .client-home-summary--mini .client-service-open{
  position:static;display:grid;place-items:center;min-height:44px;
  width:24px;min-width:0;padding:0;margin:0;border:0;border-radius:8px;
  background:transparent;color:#ddfff4;font:inherit;font-size:1.65rem;cursor:pointer;
}
:root .shell.client-shell .client-home-summary--mini .client-service-open::after{
  content:"";position:absolute;inset:0 102px 0 0;z-index:1;border-radius:inherit;
}
:root .shell.client-shell .client-home-summary--mini .client-service-open:hover::after{
  background:#ffffff06;
}
:root .shell.client-shell .client-home-summary--mini .client-service-open:focus-visible{
  outline:none;
}
:root .shell.client-shell .client-home-summary--mini .client-service-open:focus-visible::after{
  outline:2px solid #fff;outline-offset:-3px;
}
:root .shell.client-shell .client-home-summary--mini .client-service-help{
  position:relative;z-index:2;display:flex;align-items:center;justify-content:center;gap:6px;
  min-width:80px;min-height:44px;margin:0;padding:8px 10px;
  border:1px solid #ffffff20;border-radius:11px;background:#ffffff0c;
  color:#fff;font:inherit;font-size:.7rem;font-weight:700;cursor:pointer;
}
:root .shell.client-shell .client-home-summary--mini .client-service-help:hover{
  background:#ffffff1c;
}
:root .shell.client-shell .client-home-summary--mini .client-service-help:focus-visible{
  outline:2px solid #fff;outline-offset:2px;
}
@media(max-width:699px){
  :root .shell.client-shell .client-home-summary--mini{
    grid-template-columns:minmax(0,1fr) auto 18px 44px;gap:6px;padding:10px 12px;
  }
  :root .shell.client-shell .client-home-summary--mini h1{font-size:.98rem}
  :root .shell.client-shell .client-home-summary--mini .client-service-days{padding:7px 8px;max-width:72px}
  :root .shell.client-shell .client-home-summary--mini .client-service-help{min-width:44px;width:44px;padding:0}
  :root .shell.client-shell .client-home-summary--mini .client-service-help span{display:none}
  :root .shell.client-shell .client-home-summary--mini .client-service-open{width:18px}
  :root .shell.client-shell .client-home-summary--mini .client-service-open::after{right:62px}
}
@media(max-width:350px){
  :root .shell.client-shell .client-home-summary--mini{padding-inline:10px;gap:4px}
  :root .shell.client-shell .client-home-summary--mini h1{font-size:.9rem}
  :root .shell.client-shell .client-home-summary--mini p{font-size:.62rem}
}
@media(forced-colors:active){
  :root .shell.client-shell .client-home-summary--mini{background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none}
  :root .shell.client-shell .client-home-summary--mini :is(h1,p,.activity-kicker,.client-service-open,.client-service-help,.client-service-days){color:CanvasText;background:Canvas}
}

/* Highlight covers: a quiet circular rail, using the client's chosen palette. */
:root .shell.client-shell .client-highlights{
  --highlight-cover-size:76px;
  min-width:0;margin:0 0 14px;padding:0;overflow:visible;
}
:root .shell.client-shell .client-highlights>header,
:root .shell.client-shell .client-highlights .client-highlight>strong,
:root .shell.client-shell .client-highlights .client-highlight>small{display:none}
:root .shell.client-shell .client-highlights .client-highlight-rail{
  display:flex;align-items:center;gap:12px;
  overflow-x:auto;overflow-y:hidden;padding:7px 4px 10px;
  scroll-snap-type:x proximity;scroll-padding-inline:4px;
  scroll-behavior:smooth;scrollbar-width:none;
  overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y pinch-zoom;
}
:root .shell.client-shell .client-highlights .client-highlight-rail::-webkit-scrollbar{display:none}
:root .shell.client-shell .client-highlights .client-highlight{
  position:relative;display:grid;place-items:center;gap:0;
  box-sizing:border-box;flex:0 0 var(--highlight-cover-size);
  width:var(--highlight-cover-size);height:var(--highlight-cover-size);
  min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:50%;
  background:transparent;scroll-snap-align:start;scroll-margin-inline:4px;
}
:root .shell.client-shell .client-highlights .client-highlight-ring{
  box-sizing:border-box;width:var(--highlight-cover-size);height:var(--highlight-cover-size);
  min-width:0;min-height:0;padding:3px;border-radius:50%;
  background:linear-gradient(140deg,var(--accent),var(--lime),var(--jade));
  box-shadow:none;transform:none;transition:transform .18s ease;
}
:root .shell.client-shell .client-highlights .client-highlight-cover{
  box-sizing:border-box;display:grid;place-items:center;min-width:0;min-height:0;
  width:100%;height:100%;overflow:hidden;border:3px solid var(--surface);
  border-radius:50%;background:var(--surface-2);filter:none;
}
:root .shell.client-shell .client-highlights .client-highlight-cover img{
  display:block;width:100%;height:100%;min-width:0;aspect-ratio:1;object-fit:cover;
}
:root .shell.client-shell .client-highlights .client-highlight.is-seen .client-highlight-ring{
  padding:2px;background:var(--line);box-shadow:inset 0 0 0 1px var(--muted);
}
:root .shell.client-shell .client-highlights .client-highlight.is-seen .client-highlight-cover{filter:saturate(.78)}
:root .shell.client-shell .client-highlights .client-highlight:focus-visible{
  outline:3px solid var(--accent);outline-offset:3px;
}
@media(min-width:700px){
  :root .shell.client-shell .client-highlights{--highlight-cover-size:84px}
  :root .shell.client-shell .client-highlights .client-highlight-rail{gap:14px}
}
@media(hover:hover) and (pointer:fine){
  :root .shell.client-shell .client-highlights .client-highlight:hover .client-highlight-ring{transform:translateY(-1px)}
}
@media(prefers-reduced-motion:reduce){
  :root .shell.client-shell .client-highlights .client-highlight-rail{scroll-behavior:auto}
  :root .shell.client-shell .client-highlights .client-highlight-ring,
  :root .shell.client-shell .client-highlights .client-highlight:hover .client-highlight-ring{transition:none;transform:none}
}
@media(forced-colors:active){
  :root .shell.client-shell .client-highlights .client-highlight-ring{background:Highlight}
  :root .shell.client-shell .client-highlights .client-highlight.is-seen .client-highlight-ring{background:Canvas;outline:1px dashed CanvasText;outline-offset:-1px}
}
