/* MalGuard AI — standard chat look (Grok night / Claude day). Loads last; presentation only. */
html:root body.mg-pro{
 --s-bg:#0e0e0f;--s-side:#161617;--s-surface:#1b1b1d;--s-raised:#212124;--s-hover:rgba(255,255,255,.06);--s-border:rgba(255,255,255,.09);
 --s-text:#ececec;--s-muted:#a0a0a5;--s-user:#26262a;--s-accent:#ececec;--s-accent-ink:#0e0e0f;--s-shadow:0 8px 28px rgba(0,0,0,.35);
}
html.theme-light:root body.mg-pro,html[data-theme=light]:root body.mg-pro{
 --s-bg:#faf9f5;--s-side:#f3f1ea;--s-surface:#ffffff;--s-raised:#ffffff;--s-hover:rgba(31,30,29,.05);--s-border:rgba(31,30,29,.12);
 --s-text:#1f1e1d;--s-muted:#6b6862;--s-user:#efece3;--s-accent:#1f1e1d;--s-accent-ink:#faf9f5;--s-shadow:0 4px 20px rgba(31,30,29,.08);
}
html:root body.mg-pro{
 --p-bg:var(--s-bg);--p-side:var(--s-side);--p-surface:var(--s-surface);--p-raised:var(--s-raised);--p-hover:var(--s-hover);--p-border:var(--s-border);
 --p-text:var(--s-text);--p-muted:var(--s-muted);--p-user:var(--s-user);--p-accent:var(--s-accent);--p-accent-ink:var(--s-accent-ink);--p-shadow:var(--s-shadow);--p-radius:12px;
 --ai-surface:var(--s-surface);--ai-raised:var(--s-raised);--ai-raised-hover:var(--s-hover);--ai-stroke:var(--s-border);--ai-stroke-hover:var(--s-border);
 --ai-fg:var(--s-text);--ai-secondary:var(--s-muted);--ai-faint:var(--s-muted);--ai-rail:var(--s-side);--ai-focus:var(--s-muted);--ai-glow:transparent;
 --bg:var(--s-bg);--ink:var(--s-text);--line:var(--s-border);
 font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Vazirmatn",sans-serif;
}
html[dir=rtl]:root body.mg-pro{font-family:"Vazirmatn",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif}
/* Flat neutral page: no galaxy, stars or gradients */
html:root:has(body.mg-pro){background:var(--s-bg,#0e0e0f)!important}
html.theme-light:root:has(body.mg-pro),html[data-theme=light]:root:has(body.mg-pro){background:#faf9f5!important}
html:root body.mg-deep-space.mg-deep-space.mg-deep-space.mg-deep-space.mg-pro.mg-ai-v2,
html.theme-light:root body.mg-deep-space.mg-deep-space.mg-deep-space.mg-deep-space.mg-pro.mg-ai-v2,
html[data-theme=light]:root body.mg-deep-space.mg-deep-space.mg-deep-space.mg-deep-space.mg-pro.mg-ai-v2{background:var(--s-bg)!important;background-image:none!important;color:var(--s-text)!important}
html:root body.mg-deep-space.mg-deep-space.mg-deep-space.mg-pro::before,html:root body.mg-deep-space.mg-deep-space.mg-deep-space.mg-pro::after,
html:root body.mg-pro::before,html:root body.mg-pro::after{display:none!important;background:none!important}
html:root body.mg-pro :is(main,.workspace){background:transparent!important}
/* Header: quiet, flat */
html:root body.mg-pro .site-header{background:var(--s-bg)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:0!important;box-shadow:none!important;min-height:56px;padding:8px 16px!important}
html:root body.mg-pro .header-actions>:is(a,button):not(.pro-theme),html:root body.mg-pro .mg-theme-toggle.pro-theme{background:transparent!important;border-color:transparent!important;color:var(--s-text)!important;border-radius:8px!important}
html:root body.mg-pro .header-actions>:is(a,button):hover,html:root body.mg-pro .mg-theme-toggle.pro-theme:hover{background:var(--s-hover)!important}
html:root body.mg-pro #account{background:var(--s-accent)!important;color:var(--s-accent-ink)!important;border-radius:999px!important}
html:root body.mg-pro .experience-tabs{background:transparent!important;border:1px solid var(--s-border)!important;border-radius:10px!important}
html:root body.mg-pro .experience-tab{border-radius:8px!important}
html:root body.mg-pro .experience-tab[aria-pressed=true]{background:var(--s-hover)!important;color:var(--s-text)!important}
/* Sidebar */
html:root body.mg-pro #navigation{background:var(--s-side)!important;backdrop-filter:none!important;border-inline-end:1px solid var(--s-border)!important;box-shadow:none!important}
html:root body.mg-pro .navigation-new{background:transparent!important;border:1px solid var(--s-border)!important;border-radius:10px!important;box-shadow:none!important}
html:root body.mg-pro :is(.navigation-shortcut,.history-open,.navigation-footer a,.navigation-footer .settings-panel>summary){border-radius:8px!important}
html:root body.mg-pro :is(.history-open,.navigation-shortcut,.navigation-new,.navigation-footer a,#navigation button){color:var(--s-text)!important}
html:root body.mg-pro :is(.history-group,.navigation-label,.navigation-shortcuts-label,.navigation-note){color:var(--s-muted)!important}
html:root body.mg-pro #chat-search{background:var(--s-surface)!important;border-color:var(--s-border)!important;border-radius:10px!important}
html.theme-light:root body.mg-pro.mg-ai-v2 #navigation{background:var(--s-side)!important}
/* Empty state + column */
html:root body.mg-pro :is(.conversation,.composer-area,.intro){max-width:768px!important;margin-inline:auto!important}
html:root body.mg-pro .intro h1{font-weight:500!important;letter-spacing:-.02em;color:var(--s-text)!important;font-size:clamp(26px,4vw,34px)!important}
html:root body.mg-pro .experience-eyebrow{color:var(--s-muted)!important;letter-spacing:.08em}
html:root body.mg-pro .quick-suggestion{background:transparent!important;border:1px solid var(--s-border)!important;border-radius:999px!important;color:var(--s-text)!important;box-shadow:none!important;backdrop-filter:none!important}
html:root body.mg-pro .quick-suggestion:hover{background:var(--s-hover)!important}
/* Messages: plain assistant, subtle user bubble */
html:root body.mg-pro .conversation .bubble{background:var(--s-user)!important;color:var(--s-text)!important;border-radius:18px!important;box-shadow:none!important}
html:root body.mg-pro :is(.answer,.assistant-message){color:var(--s-text)!important}
html.theme-light:root body.mg-pro.mg-ai-v2 :is(.intro h1,.answer,.bubble,#message,.history-open,.navigation-new){color:var(--s-text)!important}
html:root body.mg-pro .conversation .result:not(.assistant-message){background:var(--s-surface)!important;border-color:var(--s-border)!important;border-radius:12px!important}
/* Composer: large rounded card */
html:root body.mg-pro .composer-shell,html.theme-light:root body.mg-pro.mg-ai-v2 .composer-shell{background:var(--s-surface)!important;border:1px solid var(--s-border)!important;border-radius:24px!important;box-shadow:var(--s-shadow)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:12px 12px 10px 16px!important}
html[dir=rtl]:root body.mg-pro .composer-shell{padding:12px 16px 10px 12px!important}
html:root body.mg-pro .composer-shell:focus-within{border-color:color-mix(in srgb,var(--s-text) 28%,transparent)!important}
html:root body.mg-pro .composer-area,html.theme-light:root body.mg-pro .composer-area,html:root body.mg-pro.mg-ai-v2:has(.conversation:not(:empty)) .composer-area{background:linear-gradient(180deg,transparent,var(--s-bg) 28px)!important}
html:root body.mg-pro #send{background:var(--s-accent)!important;color:var(--s-accent-ink)!important;border-radius:999px!important}
html:root body.mg-pro #attach-toggle{border:1px solid var(--s-border)!important;background:transparent!important;color:var(--s-text)!important}
html:root body.mg-pro :is(.composer-hints,.footer-note,.download-entry,.web-search-hint){color:var(--s-muted)!important}
/* Model picker inside the composer (left of send) */
html:root body.mg-pro .pro-model-slot.pro-in-composer{flex:0 1 auto;min-width:0;overflow:visible;margin-inline-start:auto}
html:root body.mg-pro .pro-in-composer .pro-select-model{flex:0 1 auto;overflow:visible}
html:root body.mg-pro .pro-in-composer .pro-select-model .pro-select-button{font-size:13.5px;font-weight:600;min-height:36px;padding:6px 8px 6px 10px;border-radius:10px;color:var(--s-muted)}
html:root body.mg-pro .pro-in-composer .pro-select-model .pro-select-button:hover{color:var(--s-text);background:var(--s-hover)}
html:root body.mg-pro .pro-in-composer .pro-select-sub,html:root body.mg-pro .pro-in-composer .pro-new{display:none!important}
html:root body.mg-pro .pro-in-composer .pro-select-label{max-width:160px}
html:root body.mg-pro .composer-actions{flex:1;justify-content:flex-end;min-width:0}
/* Menus, dialogs */
html:root body.mg-pro :is(.pro-select-list,#attach-options,.history-menu,dialog,#pro-settings){background:var(--s-raised)!important;border-color:var(--s-border)!important}
html:root body.mg-pro dialog::backdrop{background:rgba(0,0,0,.4);backdrop-filter:none}
html:root body.mg-pro .pro-sheet-head{background:var(--s-raised)}
@media (max-width:760px){
 html:root body.mg-pro .site-header{padding:6px 8px!important}
 html:root body.mg-pro .pro-in-composer .pro-select-label{max-width:120px}
 html:root body.mg-pro .pro-in-composer .pro-select-model .pro-select-button{min-height:44px}
 html:root body.mg-pro :is(.conversation,.composer-area,.intro){width:calc(100% - 24px)!important}
}
/* Sidebar scrolls as one column: the history list was squeezed to ~128px, hiding chats under their date headings */
html:root body.mg-pro #navigation{overflow-y:auto!important;overscroll-behavior:contain}
html:root body.mg-pro #saved-chats{flex:1 0 auto!important;max-height:none!important;overflow:visible!important}
html:root body.mg-pro :is(.navigation-footer a,.navigation-footer button,.navigation-footer summary,.navigation-footer .settings-panel>summary,#navigation .history-open,#navigation .navigation-shortcut){font-size:14px!important;font-weight:500!important;min-height:38px;padding:8px 10px!important;line-height:1.35}
html:root body.mg-pro #navigation .history-open[aria-current=true]{background:var(--s-hover)!important;font-weight:600!important}
html:root body.mg-pro .history-group{font-size:12px!important;font-weight:600!important;margin:12px 10px 4px!important}
@media (max-width:760px){html:root body.mg-pro #account.pro-avatar{display:block!important;line-height:40px!important;text-align:center}html:root body.mg-pro #account.pro-avatar::before{display:block;line-height:40px;text-align:center}}

/* ===== v2 detail pass: type scale, 4/8 grid, composer, menus, messages ===== */
html:root body.mg-pro{font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;letter-spacing:0}
html:root body.mg-pro{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,"Helvetica Neue",Arial,"Vazirmatn",sans-serif}
html[lang=fa]:root body.mg-pro,html[lang=fa]:root body.mg-pro :is(button,input,textarea,select){font-family:"Vazirmatn",-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif}
/* Persian script must never be letter-spaced (it breaks joining) */
html[lang=fa]:root body.mg-pro *{letter-spacing:normal!important}
html:root body.mg-pro :is(button,input,textarea,select){font-family:inherit}
/* Thin, equal icons */
html:root body.mg-pro svg[stroke-width],html:root body.mg-pro svg :is(path,circle,rect,line,polyline)[stroke-width]{stroke-width:1.5}
html:root body.mg-pro :focus-visible{outline:2px solid color-mix(in srgb,var(--s-text) 45%,transparent)!important;outline-offset:2px}
html:root body.mg-pro #message:focus-visible{outline:0!important}

/* Messages */
html:root body.mg-pro .conversation{gap:24px!important;padding-block:24px 8px!important}
html:root body.mg-pro .answer{font-size:16px!important;line-height:1.65!important}
html[lang=fa]:root body.mg-pro .answer,html[lang=fa]:root body.mg-pro .conversation .bubble{line-height:1.85!important}
html:root body.mg-pro .conversation .bubble{font-size:16px!important;line-height:1.6!important;padding:10px 16px!important;max-width:min(80%,600px)!important}
html:root body.mg-pro .answer :is(p,ul,ol,pre,blockquote,.md-table-wrap,.code-block){margin:0 0 16px!important}
html:root body.mg-pro .answer>:last-child{margin-bottom:0!important}
html:root body.mg-pro .answer :is(h1,h2,h3,h4){font-weight:600!important;line-height:1.35!important;letter-spacing:-.01em;margin:24px 0 8px!important;color:var(--s-text)!important}
html:root body.mg-pro .answer h1{font-size:22px!important}html:root body.mg-pro .answer h2{font-size:20px!important}html:root body.mg-pro .answer h3{font-size:17px!important}html:root body.mg-pro .answer h4{font-size:16px!important}
html:root body.mg-pro .answer>:first-child{margin-top:0!important}
html:root body.mg-pro .answer :is(ul,ol){padding-inline-start:24px!important}
html:root body.mg-pro .answer li{margin:4px 0!important}
html:root body.mg-pro .answer li::marker{color:var(--s-muted)}
html:root body.mg-pro .answer .md-quote,html:root body.mg-pro .answer blockquote{border-inline-start:3px solid var(--s-border)!important;padding:0 0 0 0!important;padding-inline-start:16px!important;color:var(--s-muted)!important;margin:0 0 16px!important}
html:root body.mg-pro .answer .md-inline-code{font-size:.875em!important;padding:2px 6px!important;border-radius:6px!important;background:var(--s-hover)!important;border:1px solid var(--s-border)}
html:root body.mg-pro .code-block{border-radius:12px!important;border:1px solid var(--s-border)!important;background:#1a1a1c!important}
html:root body.mg-pro .code-block-header{min-height:36px;padding:0 12px!important;background:#222225!important;color:#a8a8ad!important;font-size:12px!important;font-family:-apple-system,"Segoe UI",sans-serif}
html:root body.mg-pro .code-copy{font-size:12px!important;min-height:28px;padding:0 8px!important;border-radius:6px!important}
html:root body.mg-pro .code-copy:hover{background:rgba(255,255,255,.08)!important;color:#ececec!important}
html:root body.mg-pro .code-block pre{font:13.5px/1.6 ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace!important;padding:12px 16px!important}
html:root body.mg-pro .md-table-wrap{border-radius:12px!important;border:1px solid var(--s-border)!important}
html:root body.mg-pro .md-table{font-size:14px!important;line-height:1.5}
html:root body.mg-pro .md-table :is(th,td){padding:8px 12px!important;border-color:var(--s-border)!important}
html:root body.mg-pro .md-table th{background:var(--s-hover)!important;font-weight:600!important;color:var(--s-text)!important}
html:root body.mg-pro .response-actions{gap:4px!important;margin-top:8px!important;color:var(--s-muted)}
html:root body.mg-pro .response-actions :is(button,summary){width:32px!important;height:32px!important;border-radius:8px!important}
html:root body.mg-pro .response-actions svg{width:16px;height:16px}
html:root body.mg-pro .response-actions :is(button,summary):hover{background:var(--s-hover)!important;color:var(--s-text)!important}
html:root body.mg-pro :is(.reply-meta,.response-time,.answer-meta,.assistant-message>.muted,.assistant-message small){font-size:12px!important;color:var(--s-muted)!important;font-weight:400!important}
html:root body.mg-pro .answer hr,html:root body.mg-pro .assistant-message hr{border:0;border-top:1px solid var(--s-border)}

/* Empty state */
html:root body.mg-pro .intro{padding-top:0!important}
html:root body.mg-pro .intro h1{font-size:32px!important;line-height:1.25!important;font-weight:500!important;margin:0 0 24px!important}
html:root body.mg-pro .experience-eyebrow{font-size:12px!important;font-weight:500!important;margin:0 0 8px!important}
html:root body.mg-pro .quick-suggestions{gap:8px!important;margin-top:16px!important}
html:root body.mg-pro .quick-suggestion{min-height:36px!important;padding:6px 14px!important;font-size:14px!important;font-weight:500!important;gap:8px!important}
html:root body.mg-pro .quick-suggestion svg{width:16px!important;height:16px!important;color:var(--s-muted)}

/* Composer (Claude proportions) */
html:root body.mg-pro .composer-shell{min-height:104px;display:flex!important;flex-direction:column;justify-content:space-between;gap:8px;padding:12px!important;border-radius:24px!important}
html:root body.mg-pro #message{font-size:16px!important;line-height:1.5!important;min-height:48px!important;padding:4px 8px!important;color:var(--s-text)!important}
html:root body.mg-pro #message::placeholder{color:var(--s-muted)!important;opacity:.85}
html:root body.mg-pro .composer-footer{min-height:32px;gap:8px!important}
html:root body.mg-pro .composer-actions{gap:8px!important}
html:root body.mg-pro #attach-toggle{width:32px!important;height:32px!important;min-height:32px!important;border-radius:10px!important}
html:root body.mg-pro #attach-toggle svg{width:18px;height:18px}
html:root body.mg-pro .attach-menu{width:32px!important;height:32px!important}
html:root body.mg-pro #send{width:32px!important;height:32px!important;border-radius:10px!important}
html:root body.mg-pro #send svg{width:18px;height:18px}
html:root body.mg-pro #send:disabled{opacity:.3!important;cursor:default}
html:root body.mg-pro .pro-in-composer .pro-select-model .pro-select-button{min-height:32px!important;padding:4px 8px!important;font-size:13px!important;font-weight:500!important;border-radius:8px!important}
html:root body.mg-pro .pro-in-composer .pro-chev{width:14px;height:14px}
/* One subtle line under the composer (Claude style) */
html:root body.mg-pro .composer-hints .thinking-state,html:root body.mg-pro #save-state{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;margin:0!important;padding:0!important}
html:root body.mg-pro .composer-keyboard-hint{display:none!important}
html:root body.mg-pro .composer-hints{margin:0!important;min-height:0!important;padding:0!important}
html:root body.mg-pro #disclaimer{font-size:12px!important;line-height:1.5!important;margin:8px 0 0!important;text-align:center;color:var(--s-muted)!important}
html:root body.mg-pro .download-entry{font-size:13px!important;min-height:32px;padding:4px 12px!important;border-radius:8px!important;margin:0 auto 8px!important;display:flex!important;align-items:center;width:max-content;max-width:100%}
html:root body.mg-pro .download-entry:hover{background:var(--s-hover)!important;color:var(--s-text)!important}
html:root body.mg-pro .composer-area{padding-bottom:12px!important}

/* Menus, lists, sheets, dialogs */
html:root body.mg-pro :is(.pro-select-list,#attach-options,.history-menu){border-radius:12px!important;box-shadow:0 8px 24px rgba(0,0,0,.18),0 0 0 1px var(--s-border)!important;border:0!important;padding:4px!important}
html:root body.mg-pro .pro-option{min-height:36px!important;padding:6px 10px!important;border-radius:8px!important;font-size:14px!important;gap:8px}
html:root body.mg-pro .pro-option-title{font-weight:500!important}
html:root body.mg-pro .pro-option-sub{font-size:12px!important}
html:root body.mg-pro .pro-group{padding:8px 10px 4px!important;font-size:12px!important;font-weight:500!important;letter-spacing:0!important}
html:root body.mg-pro .pro-option:hover,html:root body.mg-pro .pro-option.is-active{background:var(--s-hover)!important;outline:0!important}
html:root body.mg-pro .pro-check{color:var(--s-text)!important}
html:root body.mg-pro #attach-options .pro-menu-row{min-height:36px!important;padding:6px 10px!important;border-radius:8px!important;font-size:14px!important;font-weight:400!important;gap:10px!important}
html:root body.mg-pro #attach-options .pro-menu-row::before{width:18px!important;height:18px!important}
html:root body.mg-pro #attach-options .ai-menu-capabilities{margin:4px 0!important;padding:4px 0!important}
html:root body.mg-pro #attach-options .pro-menu-switch::after{width:32px;height:20px;background-size:18px 18px}
html:root body.mg-pro .history-menu button{min-height:36px!important;padding:6px 10px!important;border-radius:8px!important;font-size:14px!important}
html:root body.mg-pro dialog,html:root body.mg-pro #pro-settings,html:root body.mg-pro .ai-account{border-radius:16px!important;box-shadow:0 16px 48px rgba(0,0,0,.24)!important;border:1px solid var(--s-border)!important}
html:root body.mg-pro dialog h2,html:root body.mg-pro .pro-settings-title{font-size:18px!important;font-weight:600!important;letter-spacing:-.01em}
html:root body.mg-pro dialog p{font-size:14px;line-height:1.6}
html:root body.mg-pro .pro-settings-tab{font-size:14px!important;font-weight:500!important;min-height:40px!important}
html:root body.mg-pro .pro-set-label{font-size:14px!important;font-weight:500!important}
html:root body.mg-pro .pro-set-hint{font-size:13px!important}
html:root body.mg-pro :is(.pro-set-btn,dialog .download-actions button,dialog .primary-action){min-height:36px!important;border-radius:10px!important;font-size:14px!important;font-weight:500!important;padding:6px 14px!important}

/* Sidebar rhythm */
html:root body.mg-pro #navigation{padding:8px!important;gap:2px!important}
html:root body.mg-pro :is(#navigation .history-open,#navigation .navigation-shortcut,.navigation-footer a,.navigation-footer .settings-panel>summary,.navigation-footer button){min-height:36px!important;padding:6px 10px!important;font-size:14px!important;font-weight:400!important;border-radius:8px!important;line-height:1.5!important;display:flex;align-items:center;gap:10px}
html:root body.mg-pro .navigation-new{min-height:36px!important;padding:6px 10px!important;font-size:14px!important;font-weight:500!important}
html:root body.mg-pro :is(.navigation-label,.navigation-shortcuts-label,.history-group){font-size:12px!important;font-weight:500!important;margin:16px 10px 4px!important;text-transform:none!important}
html:root body.mg-pro .navigation-note{font-size:12px!important;line-height:1.5;padding:4px 10px!important}
html:root body.mg-pro #chat-search{min-height:36px!important;font-size:14px!important;padding:6px 10px!important}
html:root body.mg-pro #navigation svg{width:18px;height:18px;flex:none}
html:root body.mg-pro :is(#navigation .history-open,#navigation .navigation-shortcut,.navigation-footer a):hover{background:var(--s-hover)!important}

/* Header */
html:root body.mg-pro .header-actions>:is(a,button):not(.pro-theme){font-size:14px!important;font-weight:500!important;min-height:36px}
html:root body.mg-pro .experience-tab{font-size:14px!important;font-weight:500!important;min-height:32px}
.pro-brand{display:none}
@media (max-width:760px){
 html:root body.mg-pro .site-header{position:sticky;min-height:52px!important}
 html:root body.mg-pro .pro-brand{display:flex;align-items:center;gap:6px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:16px;font-weight:600;color:var(--s-text);white-space:nowrap;pointer-events:none;direction:ltr}
 html:root body.mg-pro .pro-brand img{width:22px;height:22px}
 html:root body.mg-pro .pro-brand-demo{font-size:10px;font-weight:600;padding:1px 6px;border-radius:999px;background:#f59e0b;color:#1a1200;line-height:16px}
 html:root body.mg-pro .pro-brand-demo[hidden]{display:none}
 .pro-demo-badge{display:none!important}
 html:root body.mg-pro .answer{font-size:16px!important}
 html:root body.mg-pro .composer-shell{min-height:96px}
 html:root body.mg-pro #attach-toggle,html:root body.mg-pro #send{width:44px!important;height:44px!important;min-height:44px!important;border-radius:12px!important}
 html:root body.mg-pro .attach-menu{width:44px!important;height:44px!important}
 html:root body.mg-pro .pro-in-composer .pro-select-model .pro-select-button{min-height:44px!important}
 html:root body.mg-pro #attach-options .pro-menu-row,html:root body.mg-pro .pro-sheet .pro-option{min-height:44px!important;font-size:15px!important;padding:8px 12px!important}
 html:root body.mg-pro .response-actions :is(button,summary){width:40px!important;height:40px!important}
 html:root body.mg-pro .intro h1{font-size:26px!important}
 html:root body.mg-pro :is(#navigation .history-open,#navigation .navigation-shortcut,.navigation-footer a,.navigation-footer .settings-panel>summary,.navigation-new){min-height:44px!important}
}
@media (min-width:761px){.pro-demo-badge{font-size:11px;padding:2px 8px;bottom:12px;opacity:.9}}
html:root body.mg-pro .conversation .response-duration{font-size:12px!important;font-weight:400!important;color:var(--s-muted)!important;margin:-16px 0 0!important}
html:root body.mg-pro .code-block pre{margin:0!important}
@media (max-width:760px){
 html:root body.mg-pro .header-actions{margin-inline-start:auto!important;margin-inline-end:0!important}
 html[dir=rtl]:root body.mg-pro .header-actions{margin-left:0!important;margin-right:auto!important}
}
@media (max-width:380px){html:root body.mg-pro .pro-brand{font-size:15px;gap:4px}html:root body.mg-pro .pro-brand img{width:20px;height:20px}}
@media (max-width:760px){html:root body.mg-pro .header-actions>:is(a,button){min-height:44px!important}}
/* Compact composer (idle + empty): one-line pill, + | text | model + send; expands smoothly on focus */
html:root body.mg-pro .composer-shell{transition:min-height .15s ease,padding .15s ease,border-radius .15s ease}
html:root body.mg-pro .composer-shell.pro-compact{flex-direction:row!important;align-items:center!important;justify-content:flex-start;min-height:52px!important;padding:6px 8px!important;gap:8px!important;border-radius:26px!important;cursor:text}
html:root body.mg-pro .composer-shell.pro-compact .composer-footer{display:contents!important}
html:root body.mg-pro .composer-shell.pro-compact .attach-menu{order:0;flex:none}
html:root body.mg-pro .composer-shell.pro-compact #message{order:1;flex:1 1 auto;min-width:0;min-height:24px!important;height:24px!important;max-height:24px;padding:0 4px!important;overflow:hidden;white-space:nowrap;resize:none}
html:root body.mg-pro .composer-shell.pro-compact .composer-actions{order:2;flex:0 0 auto!important}
html:root body.mg-pro .composer-shell.pro-compact :is(.media-draft,.attachment){display:none}
@media (max-width:760px){html:root body.mg-pro .composer-shell.pro-compact{min-height:60px!important;padding:8px!important;border-radius:30px!important}html:root body.mg-pro .composer-shell.pro-compact #attach-toggle,html:root body.mg-pro .composer-shell.pro-compact #send{border-radius:999px!important}}
@media (prefers-reduced-motion:reduce){html:root body.mg-pro .composer-shell{transition:none}}
html:root body.mg-pro .composer-shell.pro-compact .composer-actions{flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;grid-column:auto!important}
html:root body.mg-pro .composer-shell.pro-compact #message{flex:1 1 0!important;width:auto!important;text-overflow:ellipsis}
html:root body.mg-pro .composer-shell.pro-compact .pro-in-composer{margin-inline-start:0}

/* ===== Power: Grok-deep night, confident welcome, refined chips + type ===== */
html:root body.mg-pro{--s-bg:#000;--s-side:#0a0a0b;--s-surface:#111112;--s-raised:#18181a;--s-border:rgba(255,255,255,.1);--s-text:#fff;--s-muted:#9d9da3;--s-user:#1c1c1f;--s-accent:#fff;--s-accent-ink:#000}
html.theme-light:root body.mg-pro,html[data-theme=light]:root body.mg-pro{--s-bg:#faf9f5;--s-side:#f3f1ea;--s-surface:#fff;--s-raised:#fff;--s-border:rgba(20,20,19,.12);--s-text:#141413;--s-muted:#5c5a55;--s-user:#efece3;--s-accent:#141413;--s-accent-ink:#faf9f5}
html:root:has(body.mg-pro){background:#000!important}
html.theme-light:root:has(body.mg-pro),html[data-theme=light]:root:has(body.mg-pro){background:#faf9f5!important}
/* Welcome: logo mark + large centered greeting */
html:root body.mg-pro:not([data-mode=build]):not(:has(.conversation:not(:empty))) .intro{display:flex!important;flex-direction:column;align-items:center;text-align:center}
html:root body.mg-pro .intro::before{content:"";display:block;width:44px;height:44px;margin:0 auto 18px;background:url(/assets/fusion/assets/malguard-logo.svg) center/contain no-repeat;opacity:.96}
html:root body.mg-pro .intro .experience-eyebrow{font-size:12px!important;letter-spacing:.06em!important;color:var(--s-muted)!important;margin:0 0 10px!important;font-weight:500!important}
html:root body.mg-pro .intro h1{font-size:clamp(30px,3.2vw + 12px,44px)!important;line-height:1.12!important;font-weight:600!important;letter-spacing:-.035em!important;color:var(--s-text)!important;margin:0 0 28px!important}
html[dir=rtl]:root body.mg-pro .intro h1{letter-spacing:0!important;font-weight:650!important}
/* Suggestion chips: quiet pills, crisp hover, press */
html:root body.mg-pro .quick-suggestions{justify-content:center!important;gap:8px!important}
html:root body.mg-pro .quick-suggestion{border:1px solid var(--s-border)!important;background:transparent!important;color:var(--s-muted)!important;border-radius:999px!important;min-height:38px;padding:0 14px!important;font-size:14px!important;font-weight:450!important;
 transition:background-color 200ms cubic-bezier(.2,0,0,1),color 200ms cubic-bezier(.2,0,0,1),border-color 200ms cubic-bezier(.2,0,0,1),transform 200ms cubic-bezier(.2,0,0,1)!important}
html:root body.mg-pro .quick-suggestion:hover{background:var(--s-hover)!important;color:var(--s-text)!important;border-color:color-mix(in srgb,var(--s-text) 22%,transparent)!important}
html:root body.mg-pro :is(.quick-suggestion,#send,.navigation-new,button):active{transform:scale(.98)}
html:root body.mg-pro .quick-suggestion svg{opacity:.7;width:15px;height:15px}
/* Messages + sidebar type */
html:root body.mg-pro :is(.answer,.bubble){font-size:15.5px!important;line-height:1.7!important;letter-spacing:-.003em}
html:root body.mg-pro .answer :is(h1,h2,h3){letter-spacing:-.02em!important;font-weight:600!important}
html:root body.mg-pro :focus-visible{outline:2px solid color-mix(in srgb,var(--s-text) 55%,transparent)!important;outline-offset:2px!important}
@media (max-width:760px){html:root body.mg-pro .intro::before{width:38px;height:38px;margin-bottom:14px}html:root body.mg-pro .intro h1{font-size:30px!important;margin-bottom:22px!important}}
