/* t150u: мини-статус в шапке. Цвета режимов: work — зелёный (пульс), off — красный, busy — оранжевый, high — фиолетовый */
.hdr-status{position:relative;flex:0 0 auto;--st:#34d399;--st-a:rgba(52,211,153,.5);--st-t:#7ee8b8}
.hdr-status.is-off{--st:#ef4444;--st-a:rgba(239,68,68,.25);--st-t:#fca5a5}
.hdr-status.is-busy{--st:#f59e0b;--st-a:rgba(245,158,11,.25);--st-t:#fcd34d}
.hdr-status.is-high{--st:#a855f7;--st-a:rgba(168,85,247,.28);--st-t:#d8b4fe}
.hdr-status__btn{display:inline-flex;align-items:center;gap:.55rem;height:40px;padding:0 .85rem 0 .75rem;border-radius:999px;border:1px solid #3a3e57;background:#2a2d3e;color:#e6e8f2;font:600 .84rem/1 var(--mono,ui-monospace,monospace);letter-spacing:.01em;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s}
.hdr-status__btn:hover,.hdr-status.is-open .hdr-status__btn{background:#34384f;border-color:#4a4f6e}
.hdr-status__dot{position:relative;display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--st);box-shadow:0 0 0 3px var(--st-a);flex:none}
.hdr-status.is-work .hdr-status__btn .hdr-status__dot{box-shadow:0 0 0 0 var(--st-a);animation:hdrPulse 1.8s ease-out infinite}
@keyframes hdrPulse{0%{box-shadow:0 0 0 0 rgba(52,211,153,.55)}70%{box-shadow:0 0 0 8px rgba(52,211,153,0)}100%{box-shadow:0 0 0 0 rgba(52,211,153,0)}}
.hdr-status__pop{position:absolute;top:calc(100% + 12px);right:0;z-index:70;width:300px;padding:16px 16px 14px;border-radius:14px;background:#1d2031;border:1px solid #3a3e57;box-shadow:0 22px 44px -16px rgba(0,0,0,.65);color:#e6e8f2;opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .15s,transform .15s,visibility 0s .15s;text-align:left}
.hdr-status__pop::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:14px}
.hdr-status.is-open .hdr-status__pop{opacity:1;visibility:visible;transform:none;transition:opacity .15s,transform .15s}
@media (hover:hover) and (pointer:fine){.hdr-status:hover .hdr-status__pop{opacity:1;visibility:visible;transform:none;transition:opacity .15s,transform .15s}}
.hdr-status__lbl{display:flex;align-items:center;gap:.55rem;font:600 .74rem/1 var(--mono,ui-monospace,monospace);letter-spacing:.08em;text-transform:uppercase;color:var(--st-t)}
.hdr-status__ttl{margin-top:.6rem;font-size:1.02rem;font-weight:700;line-height:1.3;color:#fff}
.hdr-status__sub{margin-top:.35rem;font-size:.88rem;line-height:1.5;color:#b7bbd6}
.hdr-status__hrs{margin-top:.75rem;padding-top:.7rem;border-top:1px solid #34384f;font:500 .8rem/1.4 var(--mono,ui-monospace,monospace);color:#c9cdf0}
.hdr-status__hrs span{color:#8a8fb0;margin-right:.35rem}
.hdr-status__cta{display:flex;align-items:center;justify-content:center;margin-top:.85rem;min-height:42px;border-radius:10px;background:var(--st);color:#fff!important;font-weight:700;font-size:.93rem;text-decoration:none!important;transition:filter .15s}
.hdr-status.is-work .hdr-status__cta{color:#06291a!important}.hdr-status.is-busy .hdr-status__cta{color:#2a1a02!important}
.hdr-status__cta:hover{filter:brightness(1.08)}
@media (max-width:1180px) and (min-width:861px){.hdr-status__txt{display:none}.hdr-status__btn{width:40px;padding:0;justify-content:center}}
@media (max-width:860px){.hdr-status{margin-left:auto}.site-header .search-toggle{margin-left:0}}
@media (max-width:640px){.hdr-status{position:static}.hdr-status__txt{display:none}.hdr-status__btn{width:40px;padding:0;justify-content:center}
.hdr-status__pop{left:0;right:0;width:auto;top:calc(100% + 8px)}}
@media (prefers-reduced-motion:reduce){.hdr-status.is-work .hdr-status__btn .hdr-status__dot{animation:none;box-shadow:0 0 0 3px rgba(52,211,153,.3)}.hdr-status__pop,.hdr-status__btn{transition:none}}
@media (max-width:640px){.site-header .wrap{gap:.5rem}.site-header .icon-btn,.hdr-status{flex:none}.hdr-status__btn{width:38px;height:38px}.site-header .brand{min-width:0}}
@media (max-width:400px){.site-header .brand{font-size:1rem}.site-header .brand .p{margin-right:.2em}.site-header .brand .q{margin-left:.2em}.site-header .wrap{gap:.4rem}}
/* t152u–t155u: в нерабочее время (по часам или «Не работаю») дополнительно виден обычный режим */
.rsd-mode[hidden]{display:none!important}
.rsd-mdot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#34d399;flex:none}
.rsd-mode[data-base=busy] .rsd-mdot{background:#f59e0b}
.rsd-mode[data-base=high] .rsd-mdot{background:#a855f7}
.rsd-mode{display:inline-flex;align-items:center;gap:.45rem;align-self:flex-start;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);font:500 12.5px/1.3 var(--mono,ui-monospace,monospace);color:#c9cdf0}
.rsd-mode b{font-weight:700;color:#fff}
.hdr-status__mode{margin-top:.5rem}
/* t389u: Новый год — гирлянда, снежинки, поздравление (только при .is-ny, добавляет status.js с 25.12 по конец каникул) */
.hp-status__item--live.is-ny{position:relative;overflow:hidden}
.rsd-ny-garland{position:absolute;left:10px;right:10px;top:0;height:16px;display:flex;justify-content:space-between;pointer-events:none;z-index:1}
.rsd-ny-garland::before{content:"";position:absolute;left:-10px;right:-10px;top:-14px;height:20px;border-bottom:1px solid rgba(214,233,255,.28);border-radius:0 0 50% 50%/0 0 100% 100%}
.rsd-ny-garland i{position:relative;width:6px;height:8px;margin-top:4px;border-radius:50% 50% 45% 45%;background:#fbbf24;box-shadow:0 0 6px 1px rgba(251,191,36,.55);animation:rsdNyTw 3.2s ease-in-out infinite}
.rsd-ny-garland i:nth-child(odd){margin-top:6px}
.rsd-ny-garland i:nth-child(4n+2){background:#f87171;box-shadow:0 0 6px 1px rgba(248,113,113,.55);animation-delay:.8s}
.rsd-ny-garland i:nth-child(4n+3){background:#34d399;box-shadow:0 0 6px 1px rgba(52,211,153,.5);animation-delay:1.6s}
.rsd-ny-garland i:nth-child(4n){background:#93c5fd;box-shadow:0 0 6px 1px rgba(147,197,253,.55);animation-delay:2.4s}
@keyframes rsdNyTw{0%,100%{opacity:1}50%{opacity:.45}}
.rsd-ny-flakes{position:absolute;inset:0;pointer-events:none;z-index:0}
.rsd-ny-flakes i{position:absolute;top:-14px;width:10px;height:10px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6e9ff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M3.34 7l17.32 10M3.34 17L20.66 7M9.5 3.5L12 6l2.5-2.5M9.5 20.5L12 18l2.5 2.5M3.2 10.4l3.4-.9-.9-3.4M20.8 13.6l-3.4.9.9 3.4M5.7 17.8l.9-3.4-3.4-.9M18.3 6.2l-.9 3.4 3.4.9'/%3E%3C/svg%3E") center/contain no-repeat;opacity:.35;animation:rsdNyFall 14s linear infinite}
.rsd-ny-flakes i:nth-child(1){left:12%;animation-delay:-2s}
.rsd-ny-flakes i:nth-child(2){left:31%;width:7px;height:7px;animation-duration:17s;animation-delay:-9s}
.rsd-ny-flakes i:nth-child(3){left:52%;animation-duration:12s;animation-delay:-5s}
.rsd-ny-flakes i:nth-child(4){left:68%;width:8px;height:8px;animation-duration:16s;animation-delay:-12s}
.rsd-ny-flakes i:nth-child(5){left:83%;width:12px;height:12px;animation-duration:19s;animation-delay:-7s}
.rsd-ny-flakes i:nth-child(6){left:93%;width:7px;height:7px;animation-duration:13s;animation-delay:-1s}
@keyframes rsdNyFall{0%{transform:translate3d(0,0,0) rotate(0)}100%{transform:translate3d(-14px,320px,0) rotate(180deg)}}
.hp-status__item--live.is-ny>*:not(.rsd-ny-garland):not(.rsd-ny-flakes){position:relative;z-index:1}
.hp-status__item--live.is-ny .hp-status__state{margin-top:6px}
.rsd-ny-msg{display:flex;gap:.5rem;align-items:flex-start;margin:4px 0 2px;padding:8px 10px;border-radius:10px;background:rgba(214,233,255,.06);border:1px dashed rgba(214,233,255,.22);color:#e6e8f2;font-size:.88rem;line-height:1.45}
.rsd-ny-msg::before{content:"";flex:none;width:14px;height:14px;margin-top:.15em;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6e9ff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M3.34 7l17.32 10M3.34 17L20.66 7M9.5 3.5L12 6l2.5-2.5M9.5 20.5L12 18l2.5 2.5M3.2 10.4l3.4-.9-.9-3.4M20.8 13.6l-3.4.9.9 3.4M5.7 17.8l.9-3.4-3.4-.9M18.3 6.2l-.9 3.4 3.4.9'/%3E%3C/svg%3E") center/contain no-repeat}
.hdr-status__nymsg{margin-top:.6rem}
.hdr-status__pop .rsd-ny-garland{left:14px;right:14px;top:0;border-radius:14px 14px 0 0}
.hdr-status.is-ny .hdr-status__lbl{margin-top:8px}
.hdr-status.is-ny .hdr-status__btn{position:relative}
.hdr-status__ny{position:absolute;top:-5px;right:-4px;width:14px;height:14px;border-radius:50%;background:#1d2031 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6e9ff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M3.34 7l17.32 10M3.34 17L20.66 7M9.5 3.5L12 6l2.5-2.5M9.5 20.5L12 18l2.5 2.5M3.2 10.4l3.4-.9-.9-3.4M20.8 13.6l-3.4.9.9 3.4M5.7 17.8l.9-3.4-3.4-.9M18.3 6.2l-.9 3.4 3.4.9'/%3E%3C/svg%3E") center/10px no-repeat;box-shadow:0 0 0 1px #3a3e57}
@media (prefers-reduced-motion:reduce){.rsd-ny-garland i{animation:none}.rsd-ny-flakes i{animation:none;top:auto}.rsd-ny-flakes i:nth-child(1){top:58%}.rsd-ny-flakes i:nth-child(2){top:22%}.rsd-ny-flakes i:nth-child(3){top:76%}.rsd-ny-flakes i:nth-child(4){top:40%}.rsd-ny-flakes i:nth-child(5){top:14%}.rsd-ny-flakes i:nth-child(6){top:66%}}
.hdr-status__pop .rsd-ny-garland::before{display:none}
