:root { --mgvc-ink:#eef0ff; --mgvc-muted:#a9afc6; --mgvc-panel:#111322; --mgvc-line:rgba(179,164,255,.22); --mgvc-a:#875cff; --mgvc-b:#31cce0; }
.mgvc-widget { font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--mgvc-ink); }
.mgvc-widget--floating { position:fixed; z-index:99998; right:20px; bottom:max(20px,env(safe-area-inset-bottom)); }
.mgvc-launcher { width:60px; height:60px; border:1px solid rgba(176,151,255,.7); border-radius:20px; color:white; font-size:28px; cursor:pointer; background:linear-gradient(135deg,#7048f6,#2ccbe2); box-shadow:0 15px 38px rgba(70,42,180,.45); }
.mgvc-orbit { display:block; transform:rotate(12deg); }.mgvc-panel { position:absolute; right:0; bottom:74px; width:min(390px,calc(100vw - 28px)); overflow:hidden; border:1px solid var(--mgvc-line); border-radius:24px; background:linear-gradient(155deg,#171a2d,#0d0f1b); box-shadow:0 28px 70px rgba(0,0,0,.48); }
.mgvc-widget--inline .mgvc-launcher { display:none; }.mgvc-widget--inline .mgvc-panel { position:relative; display:block; right:auto; bottom:auto; width:min(100%,720px); margin:20px auto; }.mgvc-widget--inline .mgvc-panel[hidden] { display:block; }
.mgvc-head { display:flex; gap:11px; align-items:center; padding:16px; border-bottom:1px solid var(--mgvc-line); }.mgvc-avatar { display:grid; place-items:center; width:37px; height:37px; border-radius:13px; font-weight:800; background:linear-gradient(135deg,#8c62ff,#36c7dd); }.mgvc-head strong,.mgvc-head small { display:block; }.mgvc-head small { margin-top:2px; font-size:12px; color:var(--mgvc-muted); }.mgvc-head small i,.mgvc-status i { display:inline-block; width:7px; height:7px; margin-right:5px; border-radius:999px; background:#56dfae; }.mgvc-close { margin-left:auto; border:0; color:var(--mgvc-muted); background:transparent; font-size:27px; cursor:pointer; }
.mgvc-tools { display:flex; gap:7px; overflow:auto; padding:12px 15px 4px; }.mgvc-tools button,.mgvc-usage { flex:0 0 auto; border:1px solid var(--mgvc-line); border-radius:999px; padding:7px 10px; color:#d8dbec; background:#20233a; font:600 12px inherit; cursor:pointer; }
.mgvc-messages { max-height:360px; min-height:150px; overflow:auto; padding:12px 15px; scroll-behavior:smooth; }.mgvc-message { max-width:94%; margin:0 0 11px; }.mgvc-message--user { margin-left:auto; }.mgvc-message-body { padding:11px 13px; border-radius:15px; color:#e9ebf8; background:#1e2135; line-height:1.55; font-size:14px; }.mgvc-message--user .mgvc-message-body { background:linear-gradient(135deg,#754df1,#3bbae1); }.mgvc-message-body p { margin:0 0 8px; }.mgvc-message-body p:last-child { margin-bottom:0; }.mgvc-message-body h2,.mgvc-message-body h3,.mgvc-message-body h4 { margin:11px 0 6px; }.mgvc-message-body h2 { font-size:17px; }.mgvc-message-body h3 { font-size:15px; }.mgvc-message-body ul { margin:7px 0; padding-left:19px; }.mgvc-message-body code { padding:1px 4px; border-radius:4px; background:#0d0f1c; }.mgvc-message-body a { color:#88e5ff; }.mgvc-table-wrap { overflow:auto; margin:9px 0; }.mgvc-message-body table { width:100%; border-collapse:collapse; font-size:12px; }.mgvc-message-body td { padding:6px; border:1px solid rgba(255,255,255,.12); vertical-align:top; }.mgvc-table-head td { font-weight:700; background:#292d47; }.mgvc-details { color:var(--mgvc-muted); font-size:12px; margin:6px 4px; }.mgvc-details summary { cursor:pointer; }.mgvc-details dl { display:grid; grid-template-columns:auto 1fr; gap:4px 12px; margin:7px 0; }.mgvc-details dt { color:#8188a3; }.mgvc-details dd { margin:0; overflow-wrap:anywhere; }
.mgvc-composer { display:flex; gap:8px; align-items:flex-end; padding:12px 14px; border-top:1px solid var(--mgvc-line); }.mgvc-composer textarea { min-width:0; flex:1; box-sizing:border-box; resize:none; border:1px solid #454b70; border-radius:15px; padding:11px 12px; color:#f5f6ff; background:#0c0e19; font:16px/1.35 inherit; outline:none; }.mgvc-composer textarea:focus { border-color:#916cff; box-shadow:0 0 0 3px rgba(138,96,255,.2); }.mgvc-composer button { width:42px; height:42px; flex:0 0 42px; border:0; border-radius:14px; color:#101221; background:#f7f7ff; font-size:25px; cursor:pointer; }.mgvc-composer button:disabled { opacity:.5; }.mgvc-panel footer { display:flex; justify-content:space-between; padding:0 15px 14px; color:#9ca4bd; font-size:11px; }.mgvc-usage { padding:0; border:0; background:transparent; color:#9ea8d0; }
@media (max-width:600px) { .mgvc-widget--floating { right:14px; bottom:max(14px,env(safe-area-inset-bottom)); }.mgvc-panel { position:fixed; right:10px; bottom:max(84px,calc(env(safe-area-inset-bottom) + 74px)); width:calc(100vw - 20px); max-height:calc(100dvh - 110px); }.mgvc-messages { max-height:min(46dvh,360px); }.mgvc-launcher { width:56px; height:56px; }.mgvc-tools button { font-size:11px; } }
