/* Rare UI toast and animated counter, in the 总部管理 palette. https://www.rareui.com */
#notice[data-rare-toast]{position:fixed;z-index:80;right:24px;bottom:24px;display:flex;align-items:flex-start;gap:11px;width:min(360px,calc(100vw - 32px));margin:0;padding:14px 16px 14px 14px;border-radius:16px;background:#ffffffeb;color:#333;font-size:13px;line-height:1.7;overflow-wrap:anywhere;backdrop-filter:blur(20px);box-shadow:0 14px 40px #2225301a,0 2px 6px #2225300a,inset 0 1px 0 #fff;cursor:pointer;touch-action:none;user-select:none;opacity:0;visibility:hidden;transform:translateY(14px) scale(.96);transition:opacity .22s,transform .32s cubic-bezier(.21,1.02,.73,1),visibility 0s .32s}
#notice[data-rare-toast=show]{opacity:1;visibility:visible;transform:none;transition:opacity .22s,transform .32s cubic-bezier(.21,1.02,.73,1),visibility 0s}
#notice[data-rare-toast=bump]{transition:none;transform:scale(.97)}
#notice[data-rare-toast]::before{content:"✓";flex:none;display:grid;place-items:center;width:22px;height:22px;margin-top:1px;border-radius:50%;background:#e6efe8;color:#3d6b4a;font-size:12px;font-weight:700;line-height:1}
#notice[data-rare-toast=show]::before{animation:rare-icon-pop .42s cubic-bezier(.34,1.56,.64,1) .08s both}
#notice[data-rare-tone=error]{color:#b42318}#notice[data-rare-tone=error]::before{content:"!";background:#fdecea;color:#b42318}
#notice[data-rare-tone=info]::before{content:"i";background:#eeedf5;color:#75658e;font-family:Georgia,serif;font-style:italic}
#notice[data-rare-toast]:hover{box-shadow:0 18px 46px #22253022,0 2px 6px #2225300d,inset 0 1px 0 #fff}
@keyframes rare-icon-pop{from{transform:scale(.3);opacity:0}to{transform:none;opacity:1}}

.rare-counter{display:inline-flex;height:1lh;overflow:hidden;vertical-align:top;-webkit-mask-image:linear-gradient(transparent,#000 22%,#000 78%,transparent);mask-image:linear-gradient(transparent,#000 22%,#000 78%,transparent)}
.rare-counter-digit{display:block;height:1lh;overflow:hidden;transition:max-width .5s,opacity .4s;max-width:1ch}
.rare-counter-digit[data-entering]{max-width:0;opacity:0}.rare-counter[data-running] .rare-counter-digit[data-entering]{max-width:1ch;opacity:1}
.rare-counter[data-running] .rare-counter-digit[data-leaving]{max-width:0;opacity:0}
.rare-counter-strip{display:block;width:1ch;text-align:center;white-space:pre;transition:transform .9s cubic-bezier(.2,.9,.25,1)}
.rare-counter-strip::before{content:"0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9"}
.rare-counter-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.metric-strip strong,.order-counts strong{font-variant-numeric:tabular-nums}
.rare-counter,.rare-counter span{font:inherit!important;color:inherit!important;letter-spacing:inherit!important;margin:0!important;padding:0!important;background:none!important;border:0!important}
:is(.metric-grid strong,.knowledge-stats b){font-variant-numeric:tabular-nums}

@media(max-width:760px){#notice[data-rare-toast]{left:16px;right:16px;top:calc(12px + env(safe-area-inset-top));bottom:auto;width:auto;transform:translateY(-14px) scale(.96)}#notice[data-rare-toast=show]{transform:none}}
@media(prefers-reduced-motion:reduce){#notice[data-rare-toast],.rare-counter-strip{transition:none}}
