/* Shared contact dialog and persistent assistance controls. */
body.midaccs-modern.m-support-open{overflow:hidden}
body.midaccs-modern .m-support-trigger{gap:8px}
body.midaccs-modern .m-support-trigger svg{width:18px;height:18px;flex-shrink:0}
body.midaccs-modern dialog.m-support-dialog{box-sizing:border-box;width:min(600px,calc(100vw - 32px))!important;max-width:600px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0!important;border:0;border-radius:16px;background:#fff;color:#292333;box-shadow:0 24px 72px #281d3a40;overflow:auto;overscroll-behavior:contain;font:14px/1.65 "Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;text-align:left;scrollbar-color:#c4bace #f6f5f8;scrollbar-width:thin}
body.midaccs-modern .m-support-dialog:not([open]){display:none}
body.midaccs-modern .m-support-dialog[open]{animation:m-support-enter 200ms cubic-bezier(.16,1,.3,1) both}
body.midaccs-modern .m-support-dialog::backdrop{background:#281d3a75}
body.midaccs-modern .m-support-dialog.m-support-closing{animation:m-support-leave 180ms ease both;pointer-events:none}
body.midaccs-modern .m-support-dialog *{box-sizing:border-box;font-family:inherit}
body.midaccs-modern .m-support-dialog ::selection{background:#e4d0f0;color:#382545}
body.midaccs-modern .m-support-dialog svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
body.midaccs-modern .m-support-dialog :is(button,a,input):focus-visible,body.midaccs-modern .m-assistance-rail :is(a,button):focus-visible{outline:3px solid #946db3;outline-offset:3px}
body.midaccs-modern .m-support-head{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:0;padding:24px 24px 16px;background:#fff}
body.midaccs-modern .m-support-head>div{min-width:0}
body.midaccs-modern .m-support-close{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border:0;border-radius:8px;background:#f6f5f8;color:#675870;cursor:pointer;transition:background 160ms,color 160ms}
body.midaccs-modern .m-support-close:hover{background:#efe9f4;color:#523160}
body.midaccs-modern .m-support-close svg{width:20px;height:20px}
body.midaccs-modern .m-support-dialog h2{font-size:25px;line-height:1.4;letter-spacing:-.025em;font-weight:700;color:#382545;margin:0 0 7px;overflow-wrap:anywhere}
body.midaccs-modern .m-support-description{font-size:14px;color:#716b78;line-height:1.7;margin:0;overflow-wrap:anywhere}
body.midaccs-modern .m-support-hours{display:flex;align-items:flex-start;gap:9px;margin:0 24px 22px;padding:11px 13px;border:0;border-radius:8px;background:#efe9f4;color:#675870;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
body.midaccs-modern .m-support-hours>svg{width:18px;height:18px;margin-top:2px;color:#523160}
body.midaccs-modern .m-support-hours>span{display:flex;flex-wrap:wrap;gap:2px 12px;min-width:0}
body.midaccs-modern .m-support-hours strong{font-weight:600;color:#523160;white-space:nowrap}
body.midaccs-modern .m-support-body{display:grid;grid-template-columns:180px minmax(0,1fr);gap:26px;padding:0 24px 24px;align-items:center}
body.midaccs-modern .m-support-qr{display:flex;flex-direction:column;align-items:center;gap:10px;margin:0;min-width:0}
body.midaccs-modern .m-support-qr-frame{width:180px;max-width:100%;padding:0;background:#fff}
body.midaccs-modern .m-support-qr-frame img{display:block;width:180px;max-width:100%;height:auto;margin:0 auto;border:0;border-radius:0;object-fit:contain;filter:none;box-shadow:none;opacity:1}
body.midaccs-modern .m-support-qr figcaption{font-size:14px;line-height:1.5;color:#716b78;text-align:center}
body.midaccs-modern .m-support-direct{min-width:0}
body.midaccs-modern .m-support-wechat{min-width:0;margin:0 0 20px}
body.midaccs-modern .m-support-wechat label{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;line-height:1.5;color:#504457;margin:0 0 7px}
body.midaccs-modern .m-support-wechat label svg{width:20px;height:20px;color:#523160}
body.midaccs-modern .m-support-copy-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0}
body.midaccs-modern #m-support-wechat-id{width:100%;min-width:0;min-height:44px;padding:5px 0;border:0;border-radius:3px;background:transparent;color:#292333;font-size:19px;font-weight:650;letter-spacing:0;line-height:1.5;cursor:text;user-select:text;-webkit-user-select:text;box-shadow:none;caret-color:#523160}
body.midaccs-modern .m-support-copy{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 12px;border:1px solid #ddd5e4;border-radius:8px;background:#fff;color:#523160;font-size:14px;line-height:1.5;cursor:pointer;white-space:nowrap;transition:background 160ms,border-color 160ms}
body.midaccs-modern .m-support-copy:hover{background:#efe9f4;border-color:#c4b0d0}
body.midaccs-modern .m-support-copy:disabled{cursor:wait;opacity:.65}
body.midaccs-modern .m-support-copy svg{width:16px;height:16px}
body.midaccs-modern .m-support-status{min-height:23px;margin:6px 0 0;font-size:13px;line-height:1.7;color:#716b78;overflow-wrap:anywhere}
body.midaccs-modern .m-support-status[data-state='success']{color:#246953}
body.midaccs-modern .m-support-status[data-state='error']{color:#a12831}
body.midaccs-modern .m-support-telegram{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:62px;padding:12px 14px;border:0;border-radius:10px;background:#523160;color:#fff!important;text-decoration:none!important;line-height:1.5;transition:background 160ms}
body.midaccs-modern .m-support-telegram:hover{background:#382545}
body.midaccs-modern .m-support-telegram>span{display:flex;align-items:center;gap:10px;min-width:0}
body.midaccs-modern .m-support-telegram strong,body.midaccs-modern .m-support-telegram small{display:block}
body.midaccs-modern .m-support-telegram strong{font-size:14px;font-weight:600}
body.midaccs-modern .m-support-telegram small{margin-top:2px;font-size:12px;color:#e7dbee}
body.midaccs-modern .m-support-telegram .m-support-arrow{width:18px;height:18px}
body.midaccs-modern .m-support-bottom{padding:0 24px 22px}
body.midaccs-modern .m-support-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 18px;border-top:1px solid #e7e3eb;padding-top:10px}
body.midaccs-modern .m-support-links a{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:14px;color:#523160;text-decoration:none}
body.midaccs-modern .m-support-links a:hover{text-decoration:underline;text-underline-offset:4px}
body.midaccs-modern .m-support-links svg{width:16px;height:16px}
body.midaccs-modern .m-support-footnote{margin:5px 0 0;font-size:13px;line-height:1.7;color:#716b78;overflow-wrap:anywhere}
body.midaccs-modern .m-assistance-rail{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:calc(108px + env(safe-area-inset-bottom));z-index:80;display:flex;flex-direction:column;align-items:center;gap:8px}
body.midaccs-modern .m-assistance-rail :is(a,button){box-sizing:border-box;display:flex;align-items:center;justify-content:center;border:0;cursor:pointer;text-decoration:none;font-family:inherit;line-height:1.4;transition:background 160ms,color 160ms}
body.midaccs-modern .m-assistance-rail svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
body.midaccs-modern .m-assistance-rail .m-assistance-contact{width:64px;height:64px;flex-direction:column;gap:4px;padding:7px;border-radius:14px;background:#523160;color:#fff;box-shadow:0 8px 20px #38254530;font-size:12px;font-weight:600}
body.midaccs-modern .m-assistance-contact:hover{background:#382545}
body.midaccs-modern .m-assistance-rail .m-assistance-notice{width:50px;min-height:44px;flex-direction:column;gap:2px;padding:6px;border:1px solid #e7e3eb;border-radius:10px;background:#fff;color:#675870;font-size:11px}
body.midaccs-modern .m-assistance-notice svg{width:18px;height:18px}
body.midaccs-modern .m-assistance-notice:hover{background:#efe9f4;color:#523160}
@keyframes m-support-enter{from{opacity:.65;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes m-support-leave{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(6px)}}
@media(max-width:560px){body.midaccs-modern dialog.m-support-dialog{width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px);border-radius:14px}body.midaccs-modern .m-support-head{padding:20px 20px 14px;gap:10px}body.midaccs-modern .m-support-dialog h2{font-size:23px}body.midaccs-modern .m-support-hours{margin:0 20px 18px;padding:10px 12px}body.midaccs-modern .m-support-body{grid-template-columns:minmax(0,1fr);gap:20px;padding:0 20px 20px}body.midaccs-modern .m-support-qr-frame,body.midaccs-modern .m-support-qr-frame img{width:164px}body.midaccs-modern .m-support-qr{gap:6px}body.midaccs-modern .m-support-wechat{margin-bottom:16px}body.midaccs-modern .m-support-description{font-size:14px}body.midaccs-modern .m-support-bottom{padding:0 20px 20px}body.midaccs-modern .m-support-links{gap:2px 12px}body.midaccs-modern .m-assistance-rail{right:max(12px,env(safe-area-inset-right));bottom:calc(100px + env(safe-area-inset-bottom));gap:6px}body.midaccs-modern .m-assistance-rail .m-assistance-contact{width:56px;height:58px;border-radius:12px}body.midaccs-modern .m-assistance-rail .m-assistance-notice{width:46px;min-height:44px}}
@media(prefers-reduced-motion:reduce){body.midaccs-modern .m-support-dialog,body.midaccs-modern .m-support-dialog *,body.midaccs-modern .m-support-dialog::backdrop,body.midaccs-modern .m-assistance-rail *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
