.dmsg-support {
    --dmsg-red: #f42d4c;
    --dmsg-red-rgb: 244,45,76;
    position: fixed;
    z-index: 2147483200;
    right: 22px;
    bottom: 24px;
    width: auto;
    min-width: 238px;
    min-height: 78px;
    padding: 7px 8px 7px 17px;
    display: flex;
    align-items: center;
    gap: 11px;
    overflow: visible;
    border: 1px solid rgba(255,255,255,.105);
    border-radius: 26px;
    color: #fff;
    background: radial-gradient(circle at 12% 12%,rgba(var(--dmsg-red-rgb),.19),transparent 36%),linear-gradient(145deg,rgba(20,39,65,.98),rgba(5,13,27,.985) 57%,rgba(34,6,20,.98));
    box-shadow: 0 18px 48px rgba(0,0,0,.48),inset 0 1px rgba(255,255,255,.08);
    font-family: inherit;
    direction: rtl;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0,12px,0) scale(.96);
    transition: opacity .22s ease,visibility 0s linear .25s,transform .3s cubic-bezier(.2,.8,.2,1),border-color .2s ease,box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
    isolation: isolate;
    contain: layout style;
}

.dmsg-support::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(115deg,rgba(255,255,255,.2),transparent 29%,transparent 63%,rgba(var(--dmsg-red-rgb),.55));
    -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.dmsg-support::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: 24%;
    bottom: -1px;
    left: 24%;
    height: 1px;
    border-radius: 99px;
    background: linear-gradient(90deg,transparent,#ff8c99,var(--dmsg-red),#ff8c99,transparent);
    box-shadow: 0 0 9px rgba(var(--dmsg-red-rgb),.66),0 0 19px rgba(var(--dmsg-red-rgb),.26);
}

.dmsg-support__nudge {
    position: absolute;
    z-index: 9;
    right: 3px;
    bottom: calc(100% + 11px);
    min-width: 142px;
    min-height: 38px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 13px;
    color: #f8fbff;
    background: linear-gradient(145deg,rgba(17,34,56,.985),rgba(5,13,26,.99));
    box-shadow: 0 11px 28px rgba(0,0,0,.34),inset 0 1px rgba(255,255,255,.07);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0,7px,0) scale(.96);
    transition: opacity .2s ease,visibility 0s linear .24s,transform .28s cubic-bezier(.2,.82,.24,1);
}

.dmsg-support__nudge::after {
    content: "";
    position: absolute;
    right: 23px;
    top: 100%;
    width: 9px;
    height: 9px;
    border-right: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: #081426;
    transform: translateY(-5px) rotate(45deg);
}

.dmsg-support__nudge > i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #38d98b;
    box-shadow: 0 0 9px rgba(56,217,139,.52);
}

.dmsg-support.show-nudge .dmsg-support__nudge {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0,0,0) scale(1);
    transition-delay: 0s;
}

.dmsg-support.is-ready {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0,0,0) scale(1);
    transition-delay: 0s;
}

.dmsg-support.is-chat-open,
.dmsg-support.is-page-hidden,
html.dmas-modal-open .dmsg-support,
body.dmac-modal-open .dmsg-support,
body.ym-modal-open .dmsg-support {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0,9px,0) scale(.94);
}

.dmsg-support:hover,
.dmsg-support:focus-visible {
    border-color: rgba(var(--dmsg-red-rgb),.38);
    box-shadow: 0 21px 55px rgba(0,0,0,.52),0 9px 27px rgba(var(--dmsg-red-rgb),.11),inset 0 1px rgba(255,255,255,.1);
    transform: translate3d(0,-3px,0) scale(1.015);
    outline: none;
}

.dmsg-support:active { transform: translate3d(0,0,0) scale(.97); }
.dmsg-support__mascot { position: relative; z-index: 1; width: 64px; height: 64px; flex: 0 0 64px; display: block; border-radius: 22px; transform: translateZ(0); animation: dmsgFloat 4.8s ease-in-out infinite; }
.dmsg-support__mascot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dmsg-support__shell { stroke: rgba(255,255,255,.16); stroke-width: 1.2px; }
.dmsg-support__glint { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.4px; stroke-linecap: round; }
.dmsg-support__accent { fill: none; stroke: rgba(255,56,84,.22); stroke-width: 2px; stroke-linecap: round; }
.dmsg-support__spark { fill: #ff4861; opacity: .54; animation: dmsgSpark 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.dmsg-support__spark--two { fill: #ff9fac; animation-delay: -1.1s; }
.dmsg-support__shoulders { fill: #0b1b31; }
.dmsg-support__uniform { fill: #173653; }
.dmsg-support__uniform-mark { fill: url(#dmsg-red); }
.dmsg-support__neck { fill: #bf6d58; }
.dmsg-support__ear,.dmsg-support__face { fill: url(#dmsg-skin); }
.dmsg-support__hair { fill: #111b2b; transform-box: fill-box; transform-origin: 50% 100%; animation: dmsgHairLift 4.8s ease-in-out infinite; }
.dmsg-support__hair-light { fill: #354c6b; opacity: .78; }
.dmsg-support__temple { fill: none; stroke: #31445f; stroke-width: 2.2px; stroke-linecap: round; }
.dmsg-support__nose { fill: none; stroke: rgba(105,55,50,.52); stroke-width: 1.5px; stroke-linecap: round; stroke-linejoin: round; }
.dmsg-support__jaw { fill: none; stroke: rgba(114,57,52,.3); stroke-width: 1px; stroke-linecap: round; }
.dmsg-support__smile { fill: none; stroke: #7c333b; stroke-width: 1.7px; stroke-linecap: round; }
.dmsg-support__visor { transform-box: fill-box; transform-origin: center; animation: dmsgVisorBreathe 3.2s ease-in-out infinite; }
.dmsg-support__visor-frame { fill: #111725; stroke: #ff4962; stroke-width: 1.7px; stroke-linejoin: round; }
.dmsg-support__visor-lens { stroke: rgba(255,174,184,.65); stroke-width: 1px; }
.dmsg-support__visor-glint { fill: none; stroke: rgba(255,255,255,.72); stroke-width: 1.3px; stroke-linecap: round; opacity: .72; }
.dmsg-support__visor-scan { fill: none; stroke: #fff; stroke-width: 2.2px; stroke-linecap: round; opacity: 0; transform-box: fill-box; transform-origin: center; animation: dmsgVisorScan 3.2s ease-in-out infinite; }
.dmsg-support__bubble { transform-box: fill-box; transform-origin: center; animation: dmsgBubble 4.6s ease-in-out infinite; }
.dmsg-support__bubble path { fill: #071a1a; stroke: #48e6a5; stroke-width: 1.7px; }
.dmsg-support__bubble circle { fill: #48e6a5; animation: dmsgDot 1.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.dmsg-support__bubble circle:nth-of-type(2) { animation-delay: .14s; }
.dmsg-support__bubble circle:nth-of-type(3) { animation-delay: .28s; }

.dmsg-support__online { position: absolute; z-index: 4; right: -1px; bottom: -1px; width: 14px; height: 14px; border: 3px solid #07101f; border-radius: 50%; background: #37d889; box-shadow: 0 0 0 3px rgba(55,216,137,.1),0 0 13px rgba(55,216,137,.48); }
.dmsg-support__online::after { content: ""; position: absolute; inset: -7px; border: 1px solid rgba(55,216,137,.75); border-radius: inherit; opacity: 0; transform: scale(.55); animation: dmsgOnlinePulse 2.1s ease-out infinite; pointer-events: none; }
.dmsg-support__copy { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-align: right; }
.dmsg-support__copy strong { color: #fff; font-size: 13px; font-weight: 950; line-height: 1.3; white-space: nowrap; }
.dmsg-support__copy small { display: flex; align-items: center; gap: 5px; color: #9da9bb; font-size: 9px; font-weight: 750; line-height: 1.4; white-space: nowrap; }
.dmsg-support__copy small i { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #37d889; }

.dmsg-support__counter { position: absolute; z-index: 6; top: -6px; left: -5px; min-width: 22px; height: 22px; padding: 0 6px; display: none; place-items: center; border: 2px solid #07101f; border-radius: 999px; color: #fff; background: #ff304f; box-shadow: 0 5px 13px rgba(0,0,0,.38),0 0 13px rgba(var(--dmsg-red-rgb),.45); font: 900 10px/1 Arial,sans-serif; }
.dmsg-support__counter.is-visible { display: grid; }
.dmsg-support.is-waiting .dmsg-support__online { background: #f3b33f; box-shadow: 0 0 11px rgba(243,179,63,.42); }
.dmsg-support.has-message .dmsg-support__mascot { animation: dmsgHello .72s cubic-bezier(.2,.9,.25,1) 2; }

/* Adaptive performance control — shown only after real pressure is detected. */
.dmsg-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.dmsg-performance[hidden] { display: none !important; }
.dmsg-performance {
    --dmsg-mode-red: 244,45,76;
    position: fixed;
    z-index: 2147483100;
    right: 31px;
    bottom: 113px;
    width: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    direction: rtl;
    color: #fff;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.dmsg-performance__alert {
    position: absolute;
    z-index: 3;
    top: -8px;
    left: -7px;
    width: 21px;
    height: 21px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 2px solid #07101f;
    border-radius: 50%;
    outline: 0;
    color: #201300;
    background: linear-gradient(145deg,#ffe28a,#ffae36);
    box-shadow: 0 5px 12px rgba(0,0,0,.35),0 0 12px rgba(255,179,55,.34);
    font: 950 11px/1 Arial,sans-serif;
    cursor: pointer;
    animation: dmsgWarningNudge 3.4s ease-in-out 2;
}

.dmsg-performance__alert::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(255,190,70,.62);
    border-radius: inherit;
    opacity: 0;
    transform: scale(.68);
    animation: dmsgWarningRing 3.4s ease-out 2;
    pointer-events: none;
}

.dmsg-performance__switch {
    width: 46px;
    min-height: 91px;
    padding: 5px;
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    border: 1px solid rgba(255,255,255,.13);
    border-top-color: rgba(255,255,255,.22);
    border-radius: 18px;
    background: radial-gradient(circle at 90% 0,rgba(var(--dmsg-mode-red),.17),transparent 45px),linear-gradient(155deg,rgba(18,38,64,.98),rgba(5,13,27,.99) 62%,rgba(34,6,19,.98));
    box-shadow: 0 15px 32px rgba(0,0,0,.43),inset 0 1px rgba(255,255,255,.08);
}

.dmsg-performance__switch button {
    position: relative;
    width: 34px;
    height: 37px;
    padding: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 12px;
    outline: 0;
    color: #77849a;
    background: transparent;
    cursor: pointer;
    transition: color .18s ease,border-color .18s ease,background .18s ease,transform .18s ease;
}

.dmsg-performance__switch button + button::before {
    content: "";
    position: absolute;
    top: -3px;
    right: 7px;
    left: 7px;
    height: 1px;
    background: rgba(255,255,255,.07);
}

.dmsg-performance__switch button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.dmsg-performance__switch button[data-dmsg-mode="speed"] svg { fill: currentColor; stroke: currentColor; stroke-width: .7; }
.dmsg-performance__switch button:hover { color: #fff; transform: scale(1.06); }
.dmsg-performance__switch button.is-active { color: #fff; border-color: rgba(var(--dmsg-mode-red),.34); background: linear-gradient(145deg,rgba(var(--dmsg-mode-red),.27),rgba(var(--dmsg-mode-red),.07)); box-shadow: inset 0 1px rgba(255,255,255,.08),0 5px 13px rgba(var(--dmsg-mode-red),.12); }
.dmsg-performance__switch button[data-dmsg-mode="speed"].is-active { color: #ffd06b; border-color: rgba(255,190,70,.26); background: linear-gradient(145deg,rgba(255,190,70,.16),rgba(255,190,70,.035)); }
.dmsg-performance__switch button[data-dmsg-mode="motion"].is-active .dmsg-performance__motion-line { animation: dmsgMotionTrace 2.2s ease-in-out infinite; }
.dmsg-performance__alert:focus-visible,
.dmsg-performance__switch button:focus-visible,
.dmsg-performance-modal button:focus-visible { outline: 2px solid #fff !important; outline-offset: 2px; }

.dmsg-performance-modal[hidden] { display: none !important; }
body.dmsg-performance-open { overflow: hidden; }
.dmsg-performance-modal {
    --dmsg-red: #f42d4c;
    --dmsg-red-rgb: 244,45,76;
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    padding: 18px;
    display: grid;
    place-items: center;
    direction: rtl;
    color: #fff;
    font-family: inherit;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease,visibility 0s linear .25s;
    -webkit-tap-highlight-color: transparent;
}

.dmsg-performance-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.dmsg-performance-modal__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(1,5,13,.82); font-family: inherit; cursor: pointer; }
.dmsg-performance-modal__panel {
    position: relative;
    width: min(440px,calc(100vw - 28px));
    padding: 17px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.13);
    border-top-color: rgba(255,255,255,.24);
    border-radius: 26px;
    outline: 0;
    background: radial-gradient(circle at 92% -8%,rgba(var(--dmsg-red-rgb),.2),transparent 190px),radial-gradient(circle at 4% 108%,rgba(46,112,190,.13),transparent 180px),linear-gradient(145deg,#12233a,#060d1b 63%,#210714);
    box-shadow: 0 32px 92px rgba(0,0,0,.72),inset 0 1px rgba(255,255,255,.09);
    transform: translate3d(0,12px,0) scale(.975);
    transition: transform .3s cubic-bezier(.2,.82,.24,1);
}

.dmsg-performance-modal.is-open .dmsg-performance-modal__panel { transform: translate3d(0,0,0) scale(1); }
.dmsg-performance-modal__panel::before { content: ""; position: absolute; top: 0; right: 14%; left: 14%; height: 1px; background: linear-gradient(90deg,transparent,#ff9cac,var(--dmsg-red),transparent); box-shadow: 0 0 13px rgba(var(--dmsg-red-rgb),.65); }
.dmsg-performance-modal__handle { display: none; }
.dmsg-performance-modal__head { display: grid; grid-template-columns: 48px minmax(0,1fr) 36px; align-items: center; gap: 11px; }
.dmsg-performance-modal__signal { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,190,70,.25); border-radius: 16px; color: #ffd06b; background: radial-gradient(circle at 40% 24%,rgba(255,255,255,.14),transparent 30%),rgba(255,190,70,.09); box-shadow: inset 0 1px rgba(255,255,255,.08),0 10px 25px rgba(0,0,0,.16); }
.dmsg-performance-modal__signal svg { width: 24px; height: 24px; fill: rgba(255,190,70,.13); stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dmsg-performance-modal__head small { display: block; margin-bottom: 3px; color: #ff8498; font-size: 8px; font-weight: 900; letter-spacing: .4px; }
.dmsg-performance-modal__head h3 { margin: 0; color: #fff; font-size: 16px; font-weight: 950; line-height: 1.4; }
.dmsg-performance-modal__close { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; outline: 0; color: #aab3c2; background: rgba(255,255,255,.035); font-family: inherit; cursor: pointer; }
.dmsg-performance-modal__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.dmsg-performance-modal__intro { margin: 14px 1px 13px; color: #aeb8c8; font-size: 10.5px; font-weight: 650; line-height: 1.9; }
.dmsg-performance-modal__choices { display: grid; gap: 8px; }
.dmsg-performance-modal__choice { position: relative; width: 100%; min-height: 70px; padding: 9px 10px; display: grid; grid-template-columns: 44px minmax(0,1fr) 20px; align-items: center; gap: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.075); border-radius: 18px; outline: 0; color: #fff; background: linear-gradient(135deg,rgba(20,39,65,.8),rgba(255,255,255,.018)); font-family: inherit; text-align: right; cursor: pointer; transition: transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease; }
.dmsg-performance-modal__choice:hover { transform: translateY(-2px); border-color: rgba(var(--dmsg-red-rgb),.26); }
.dmsg-performance-modal__choice.is-active { border-color: rgba(var(--dmsg-red-rgb),.36); background: radial-gradient(circle at 100% 0,rgba(var(--dmsg-red-rgb),.14),transparent 95px),linear-gradient(135deg,rgba(24,47,76,.92),rgba(var(--dmsg-red-rgb),.055)); box-shadow: inset 0 1px rgba(255,255,255,.07),0 9px 22px rgba(0,0,0,.13); }
.dmsg-performance-modal__choice-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(var(--dmsg-red-rgb),.2); border-radius: 14px; color: #ff7890; background: rgba(var(--dmsg-red-rgb),.075); }
.dmsg-performance-modal__choice-icon.is-speed { color: #ffd06b; border-color: rgba(255,190,70,.2); background: rgba(255,190,70,.07); }
.dmsg-performance-modal__choice-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.dmsg-performance-modal__choice-icon.is-speed svg { fill: currentColor; stroke-width: .7; }
.dmsg-performance-modal__choice-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.dmsg-performance-modal__choice-copy strong { color: #fff; font-size: 11.5px; font-weight: 950; }
.dmsg-performance-modal__choice-copy small { color: #8491a5; font-size: 8.5px; font-weight: 700; }
.dmsg-performance-modal__choice > i { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.dmsg-performance-modal__choice > i::before { content: none; }
.dmsg-performance-modal__choice > i > svg { width: 10px; height: 9px; overflow: visible; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.68); transition: opacity .16s ease,transform .2s cubic-bezier(.2,.8,.2,1); }
.dmsg-performance-modal__choice.is-active > i { border-color: var(--dmsg-red); background: var(--dmsg-red); box-shadow: 0 0 10px rgba(var(--dmsg-red-rgb),.35); }
.dmsg-performance-modal__choice.is-active > i > svg { opacity: 1; transform: scale(1); }
.dmsg-performance-modal__saved { margin: 12px 2px 0; display: flex; align-items: center; gap: 6px; color: #778397; font-size: 8px; font-weight: 700; }
.dmsg-performance-modal__saved > i { width: 5px; height: 5px; border-radius: 50%; background: #39d98b; box-shadow: 0 0 8px rgba(57,217,139,.55); }

html.dmsg-chat-open body .dmsg-performance,
html body.dmsg-goftino-open .dmsg-performance { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

@media (max-width:1024px) {
    html.dmsg-chat-open body .dmf .dmf-dock,
    html.dmsg-chat-open body .ymc-mobile-dock,
    html.dmsg-chat-open body .dmap-dock,
    html body.dmsg-goftino-open .dmf .dmf-dock,
    html body.dmsg-goftino-open .ymc-mobile-dock,
    html body.dmsg-goftino-open .dmap-dock,
    html body.dmsg-performance-open .dmf .dmf-dock,
    html body.dmsg-performance-open .ymc-mobile-dock,
    html body.dmsg-performance-open .dmap-dock {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    html.dmsg-chat-open body #goftino_w,
    html body.dmsg-goftino-open #goftino_w { z-index: 2147483646 !important; }
}

@keyframes dmsgFloat { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-2px,0); } }
@keyframes dmsgHairLift { 0%,72%,100% { transform: rotate(0) translate3d(0,0,0); } 82% { transform: rotate(-1.5deg) translate3d(0,-.6px,0); } 91% { transform: rotate(.7deg) translate3d(0,0,0); } }
@keyframes dmsgVisorBreathe { 0%,100% { opacity: .92; transform: scale(1); } 50% { opacity: 1; transform: scale(1.025); } }
@keyframes dmsgVisorScan { 0%,18%,72%,100% { opacity: 0; transform: translate3d(-8px,0,0); } 30% { opacity: .85; } 56% { opacity: .4; transform: translate3d(15px,0,0); } }
@keyframes dmsgBubble { 0%,82%,100% { transform: translate3d(0,0,0) scale(1); } 88% { transform: translate3d(0,-2px,0) scale(1.04); } 94% { transform: translate3d(0,0,0) scale(1); } }
@keyframes dmsgDot { 0%,62%,100% { opacity: .45; transform: translate3d(0,0,0); } 31% { opacity: 1; transform: translate3d(0,-1.5px,0); } }
@keyframes dmsgSpark { 0%,100% { opacity: .32; transform: scale(.8); } 50% { opacity: .9; transform: scale(1.12); } }
@keyframes dmsgHello { 0%,100% { transform: translate3d(0,0,0) rotate(0); } 50% { transform: translate3d(0,-5px,0) rotate(-3deg); } }
@keyframes dmsgOnlinePulse { 0% { opacity: .72; transform: scale(.55); } 72%,100% { opacity: 0; transform: scale(1.28); } }
@keyframes dmsgWarningNudge { 0%,76%,100% { transform: translate3d(0,0,0) rotate(0); } 82% { transform: translate3d(0,-1px,0) rotate(-8deg); } 88% { transform: translate3d(0,0,0) rotate(7deg); } 94% { transform: translate3d(0,0,0) rotate(0); } }
@keyframes dmsgWarningRing { 0%,72% { opacity: 0; transform: scale(.68); } 78% { opacity: .55; } 96%,100% { opacity: 0; transform: scale(1.35); } }
@keyframes dmsgMotionTrace { 0%,100% { opacity: .62; transform: translate3d(0,0,0); } 50% { opacity: 1; transform: translate3d(1px,0,0); } }

@media (max-width:1024px) {
    .dmsg-support { right: 13px; bottom: calc(96px + env(safe-area-inset-bottom)); min-width: 0; min-height: 0; width: 66px; height: 66px; padding: 4px; border-radius: 23px; }
    .dmsg-support__mascot { width: 58px; height: 58px; flex-basis: 58px; border-radius: 20px; }
    .dmsg-support__copy { display: none; }
    .dmsg-support__online { right: -2px; bottom: -2px; }
    .dmsg-support__nudge { right: 0; min-width: 135px; min-height: 36px; font-size: 10.5px; }
    .dmsg-support__nudge::after { right: 22px; }
    .dmsg-performance { right: 23px; bottom: calc(171px + env(safe-area-inset-bottom)); }
    .dmsg-performance-modal { padding: 0; place-items: end center; }
    .dmsg-performance-modal__panel { width: 100%; padding: 13px 14px max(18px,env(safe-area-inset-bottom)); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 26px 26px 0 0; transform: translate3d(0,34px,0); }
    .dmsg-performance-modal__handle { width: 46px; height: 4px; margin: -3px auto 10px; display: block; border-radius: 99px; background: rgba(255,255,255,.22); }
    .dmsg-performance-modal__head { grid-template-columns: 44px minmax(0,1fr) 35px; gap: 9px; }
    .dmsg-performance-modal__signal { width: 44px; height: 44px; border-radius: 15px; }
    .dmsg-performance-modal__head h3 { font-size: 15px; }
    .dmsg-performance-modal__intro { margin-block: 11px; font-size: 10px; }
    .dmsg-performance-modal__choice { min-height: 64px; grid-template-columns: 40px minmax(0,1fr) 18px; border-radius: 16px; }
    .dmsg-performance-modal__choice-icon { width: 40px; height: 40px; border-radius: 13px; }
}

@media (prefers-reduced-motion:reduce) {
    .dmsg-support,.dmsg-support *,.dmsg-support *::before,.dmsg-support *::after,
    .dmsg-performance,.dmsg-performance *,.dmsg-performance *::before,.dmsg-performance *::after,
    .dmsg-performance-modal,.dmsg-performance-modal *,.dmsg-performance-modal *::before,.dmsg-performance-modal *::after { animation: none !important; transition-duration: .01ms !important; }
}

html.dmui-low-power .dmsg-support__mascot,
html.dmui-low-power .dmsg-support__hair,
html.dmui-low-power .dmsg-support__visor,
html.dmui-low-power .dmsg-support__visor-scan,
html.dmui-low-power .dmsg-support__bubble,
html.dmui-low-power .dmsg-support__bubble circle,
html.dmui-low-power .dmsg-support__spark,
html.dmui-low-power .dmsg-support__online::after { animation: none !important; }

html.dmui-low-power .dmsg-performance__alert,
html.dmui-low-power .dmsg-performance__alert::after,
html.dmui-low-power .dmsg-performance__motion-line { animation: none !important; }

.dmsg-support.is-static-motion .dmsg-support__mascot,
.dmsg-support.is-static-motion .dmsg-support__hair,
.dmsg-support.is-static-motion .dmsg-support__visor,
.dmsg-support.is-static-motion .dmsg-support__visor-scan,
.dmsg-support.is-static-motion .dmsg-support__bubble,
.dmsg-support.is-static-motion .dmsg-support__bubble circle,
.dmsg-support.is-static-motion .dmsg-support__spark,
.dmsg-support.is-static-motion .dmsg-support__online::after { animation: none !important; }
