.data-status{position:relative;margin-left:auto;flex:none}.data-status>summary{list-style:none;width:36px;height:36px;display:grid;place-items:center;cursor:pointer;border-radius:50%}.data-status>summary::-webkit-details-marker{display:none}.data-status>summary:focus-visible{outline:2px solid #1477b8;outline-offset:2px}.data-status>summary:before{content:'';width:9px;height:9px;border-radius:50%;background:#d39724}.data-status>summary[data-state=green]:before{background:#27824b}.data-status>summary[data-state=red]:before{background:#c54343}.data-status-panel{position:absolute;right:0;top:42px;width:min(300px,80vw);padding:16px;border:1px solid var(--line,#cbd5df);background:var(--surface,#fff);color:var(--text,#182835);box-shadow:0 8px 30px #0002;border-radius:12px;z-index:120;font-size:13px}.data-status-panel p{margin:0 0 12px}.data-status-panel button{min-height:40px;padding:8px 14px}.workspace-live,.stock-head .stock-status{display:none!important}body:has([data-stock]) .ui-progress,body:has(.intelligence) .ui-progress{display:none!important}
[data-theme=dark] .data-status-panel{background:#17232e;color:#eef3f7}
@media(max-width:400px){.top{flex-wrap:nowrap;padding:8px 10px}.top .area-switch{margin-left:0;margin-right:0}.top .area-switch a{padding:8px 10px}.top .data-status{margin-left:auto}.top .account-menu>summary{width:36px;height:36px}}
html[data-device-pending=true] :is([data-loading],.loading-skeleton,.day-loading,[data-day-pending],[data-stock-skeleton]){display:none!important}
.stock-products .stock-product{animation:none}

/* Saved values remain readable while their own data source is being refreshed.
   Amber can also mean old data at rest, so motion never follows dot colour alone. */
@media screen and (prefers-reduced-motion:no-preference){
 html:not(.lite)[data-refresh-activity=true] [data-refresh-value=activity],
 html:not(.lite)[data-refresh-activity=true] .location-review :is(.location-metrics strong,.review-day strong,.location-metrics span,.review-day small),
 html:not(.lite)[data-refresh-sales=true] [data-refresh-value=sales],
 html:not(.lite)[data-refresh-stock=true] [data-refresh-value=stock]{
  background-image:linear-gradient(90deg,#155a90 20%,#3b85b9 36%,#a0cee9 46%,#a0cee9 52%,#3b85b9 64%,#155a90 78%);
  background-size:180px 100%;background-repeat:repeat-x;background-clip:text;-webkit-background-clip:text;
  color:transparent!important;animation:tcp-data-shimmer 2.6s linear infinite!important;
 }
 html:not(.lite)[data-theme=dark][data-refresh-activity=true] [data-refresh-value=activity],
 html:not(.lite)[data-theme=dark][data-refresh-activity=true] .location-review :is(.location-metrics strong,.review-day strong,.location-metrics span,.review-day small),
 html:not(.lite)[data-theme=dark][data-refresh-sales=true] [data-refresh-value=sales],
 html:not(.lite)[data-theme=dark][data-refresh-stock=true] [data-refresh-value=stock]{
  background-image:linear-gradient(90deg,#628fb6 20%,#8ebcdf 36%,#deeffa 46%,#deeffa 52%,#8ebcdf 64%,#628fb6 78%);
 }
 /* Pseudo-labels in phone tables retain their own normal colour. */
 [data-refresh-value]:before{color:var(--muted,#687b8d)}
}
/* One exact tile per cycle: start/end pixels match at every text width. */
@keyframes tcp-data-shimmer{from{background-position:0 0}to{background-position:-180px 0}}
@media print{[data-refresh-value]{animation:none!important;background:none!important;color:inherit!important}}

@media screen and (prefers-reduced-motion:no-preference){
.data-status>summary[data-busy=true]:before{animation:tcp-dot-breathe 1.8s ease-in-out infinite}
.data-status>summary[data-busy=true]:after{content:'';position:absolute;width:9px;height:9px;border-radius:50%;border:2px solid #d39724;animation:tcp-dot-halo 1.8s ease-out infinite;pointer-events:none}
.data-status>summary[data-state=green][data-arrival=true]:before{animation:tcp-dot-success .7s ease-out 1}
.data-status>summary[data-state=red][data-arrival=true]:before{animation:tcp-dot-error .8s ease-in-out 1}
}
@keyframes tcp-dot-breathe{0%,100%{opacity:.75;transform:scale(.95)}50%{opacity:1;transform:scale(1.2)}}
@keyframes tcp-dot-halo{0%{transform:scale(1);opacity:.65}85%,100%{transform:scale(2.8);opacity:0}}
@keyframes tcp-dot-success{0%,100%{transform:scale(1)}40%{transform:scale(1.5);box-shadow:0 0 0 5px #27824b22}}
@keyframes tcp-dot-error{0%,40%,80%,100%{transform:scale(1)}20%,60%{transform:scale(1.4)}}

@media screen and (prefers-reduced-motion:no-preference){
.data-status>summary[data-state=green]:before{animation:tcp-green-breathe 2.5s ease-in-out infinite!important}
.data-status>summary[data-state=green]:after{content:'';position:absolute;width:9px;height:9px;border-radius:50%;border:2px solid #27824b;animation:tcp-green-halo 2.5s ease-out infinite;pointer-events:none}
}
@keyframes tcp-green-breathe{0%,100%{transform:scale(1);opacity:.85}50%{transform:scale(1.12);opacity:1}}
@keyframes tcp-green-halo{0%{transform:scale(1);opacity:0}12%{opacity:.5}85%,100%{transform:scale(2.6);opacity:0}}
