.mcv-chat{--mcv-accent:#e32636;--mcv-ink:#17191e;position:fixed;right:24px;bottom:24px;z-index:999999;font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--mcv-ink);text-align:left;letter-spacing:normal}
.mcv-chat *{box-sizing:border-box}
.mcv-chat [hidden]{display:none!important}
.mcv-chat button,.mcv-chat textarea{font:inherit;letter-spacing:normal;text-transform:none;margin:0}
.mcv-chat button{cursor:pointer;min-height:44px;border:0;box-shadow:none;transition:background .15s ease,transform .15s ease}
.mcv-chat button:disabled{cursor:wait;opacity:.6}
.mcv-chat button:focus-visible,.mcv-chat a:focus-visible,.mcv-chat textarea:focus-visible{outline:3px solid #236bc5;outline-offset:3px}
.mcv-chat__toggle{display:block!important;margin:12px 0 0 auto!important;padding:14px 22px!important;background:#17191e!important;color:#fff!important;border-radius:999px!important;box-shadow:0 8px 28px #0003!important;font-weight:700!important;border-left:5px solid var(--mcv-accent)!important}
.mcv-chat__toggle:hover{transform:translateY(-2px)}
.mcv-chat__panel{width:380px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 110px);display:flex;flex-direction:column;border:1px solid #dfe1e5;border-radius:20px;background:#fff;box-shadow:0 22px 80px #0004;overflow:hidden}
.mcv-chat__header{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;background:#17191e;color:#fff;border-top:4px solid var(--mcv-accent);flex-shrink:0}
.mcv-chat__brand{display:block;color:#fff;font-size:18px;line-height:1.3;letter-spacing:.06em;font-weight:800}
.mcv-chat__subtitle{display:block;margin-top:4px;font-size:12px;color:#d1d3d8}
.mcv-chat__close{padding:0;width:44px;height:44px;background:transparent;color:#fff;font-size:29px!important;border-radius:10px}
.mcv-chat__close:hover{background:#ffffff20}
.mcv-chat__messages{overflow-y:auto;overscroll-behavior:contain;padding:20px 16px;min-height:140px;height:260px;background:linear-gradient(155deg,#f7f8fa,#eceef2);scrollbar-width:thin}
.mcv-chat__message{max-width:94%;padding:12px 14px;background:#fff;border:1px solid #dce0e6;border-radius:14px 14px 14px 3px;box-shadow:0 3px 9px #161b2408;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 12px;line-height:1.55;font-size:14px}
.mcv-chat__message:last-child{margin-bottom:0}
.mcv-chat__message--user{background:#22252c;color:#fff;border-color:#22252c;margin-left:auto;border-radius:14px 14px 3px 14px}
.mcv-chat__message--notice{background:#fff7e8;color:#714a12;border-color:#eddbb6}
.mcv-chat__suggestions{display:flex;gap:7px;flex-wrap:wrap;padding:12px 14px 0;flex-shrink:0}
.mcv-chat__chip{padding:7px 11px;background:#f0f1f4;color:#252831;border-radius:9px;font-size:12px!important;font-weight:650;min-height:38px!important}
.mcv-chat__chip:hover{background:#e0e3e9}
.mcv-chat__status{min-height:25px;padding:3px 16px;font-size:12px;color:#676d78;flex-shrink:0}
.mcv-chat__form{display:flex;gap:8px;padding:0 14px 14px;align-items:stretch;flex-shrink:0}
.mcv-chat__input{display:block;min-width:0;flex:1;width:100%;padding:11px 12px!important;resize:none;border:1px solid #ccd1d9!important;background:#fff!important;color:#17191e!important;border-radius:10px;font-size:16px!important;line-height:1.35!important;box-shadow:none!important}
.mcv-chat__send{padding:10px 14px;background:#17191e;color:#fff;border-radius:10px;font-weight:700;border-bottom:3px solid var(--mcv-accent)!important}
.mcv-chat__send:hover{background:#343945}
.mcv-chat__footer{padding:11px 15px 13px;border-top:1px solid #e8eaee;background:#fafbfc;flex-shrink:0}
.mcv-chat__footer p{margin:0 0 7px!important;padding:0!important;font-size:11px!important;color:#676d78;line-height:1.45!important}
.mcv-chat__links{display:flex;gap:5px 12px;flex-wrap:wrap;align-items:center}
.mcv-chat__links a,.mcv-chat__reset{color:#343945!important;font-size:11px!important;text-decoration:underline!important;line-height:1.4;background:transparent;min-height:24px!important;padding:2px 0!important}
.mcv-chat--inline{position:relative;right:auto;bottom:auto;z-index:1;width:100%}
.mcv-chat--inline .mcv-chat__panel{width:100%;max-width:440px;max-height:none;box-shadow:0 12px 35px #00000012}
.mcv-admin{max-width:1320px}
.mcv-admin-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);gap:32px;align-items:start}
.mcv-admin-layout>div,.mcv-admin-layout>aside{min-width:0}
.mcv-admin-layout>aside{position:sticky;top:52px}
.mcv-admin .form-table th{width:170px}
.mcv-admin .form-table input.regular-text{max-width:100%}
@media(max-width:1000px){.mcv-admin-layout{grid-template-columns:1fr}.mcv-admin-layout>aside{position:static}.mcv-admin-layout .regular-text{max-width:100%}}
@media(max-width:480px){.mcv-chat{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.mcv-chat__panel{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 100px);border-radius:16px}.mcv-chat__messages{height:220px;min-height:90px}.mcv-chat__header{padding:12px 15px}.mcv-chat__footer{padding:9px 12px}.mcv-chat--inline{right:auto;bottom:auto}.mcv-chat--inline .mcv-chat__panel{max-width:100%;width:100%}}
@media(prefers-reduced-motion:reduce){.mcv-chat button{transition:none}}
