/* MyAI assistant: isolated component styles, no redesign of the working CRM. */
.ma-launch{display:inline-flex;align-items:center;gap:8px!important;background:#ecf6f1!important;color:#205c4c!important;border-color:#bad6c9!important;white-space:nowrap}.ma-launch svg,.ma-side svg{width:21px;height:21px;flex-shrink:0}.ma-side{color:#245f50!important}
.ma-dialog{margin:10px 10px 10px auto;padding:0;width:min(550px,calc(100vw - 24px));max-width:550px;height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);border:1px solid #d1dfd8;border-radius:18px;background:#f7faf8;color:#203630;box-shadow:0 20px 65px #132f3940;overflow:hidden}
.ma-dialog[open]{display:flex;flex-direction:column}.ma-dialog::backdrop{background:#172c381f;backdrop-filter:none}
.ma-dialog button,.ma-dialog input,.ma-dialog select,.ma-dialog textarea{font-family:inherit;font-size:14px}.ma-dialog button{min-height:38px;cursor:pointer}.ma-dialog button:focus-visible,.ma-dialog textarea:focus-visible,.ma-dialog input:focus-visible,.ma-dialog select:focus-visible{outline:3px solid #238267;outline-offset:2px}.ma-dialog button:disabled{opacity:.52;cursor:wait}
.ma-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:18px 18px 15px;background:#fff;border-bottom:1px solid #dbe7e1;flex:none}.ma-header>div:last-child{display:flex;align-items:center;gap:4px}.ma-header-title{display:flex;align-items:center;gap:10px;min-width:0}.ma-brand-mark{width:38px;height:38px;display:flex;align-items:center;justify-content:center;background:#206a54;color:#fff;border-radius:12px;flex:none}.ma-brand-mark svg{width:28px;height:28px}.ma-header h2{margin:0!important;font-size:21px!important;line-height:1.2!important}.ma-header p{margin:5px 0 0;font-size:11px;line-height:1.35;color:#586d65}.ma-icon{width:36px;padding:4px!important;border:0!important;background:transparent!important;font-size:23px!important}.ma-icontext{font-size:11px!important;padding:4px 7px!important;background:transparent!important;border:0!important;color:#536b62}
.ma-transcript{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 18px;scroll-behavior:smooth}.ma-welcome{padding:16px 5px}.ma-welcome-icon{width:54px;height:54px;color:#246d55;background:#e3f0e9;border-radius:17px;padding:12px;margin-bottom:16px}.ma-welcome-icon svg{width:100%;height:100%}.ma-welcome h3{font-size:24px;letter-spacing:-.5px;margin:0 0 10px}.ma-welcome p{color:#526a60;font-size:15px;line-height:1.65;margin:0 0 20px}.ma-prompts{display:grid;gap:8px}.ma-prompts button{text-align:left;justify-content:flex-start;padding:12px 14px;line-height:1.45;background:#fff;border:1px solid #d7e5dd;border-radius:10px;font-weight:550;color:#244e40}
.ma-message{margin:0 0 18px;padding:15px 16px;border-radius:13px;overflow-wrap:anywhere;word-break:normal}.ma-user{background:#e4f1eb;border:1px solid #d2e5da;margin-left:32px}.ma-user p{white-space:pre-wrap;font-size:15px;line-height:1.65;margin:5px 0 0}.ma-answer{background:white;border:1px solid #dce7e0;box-shadow:0 2px 5px #12382205}.ma-message-label{display:flex;align-items:center;gap:7px;font-weight:750;font-size:12px;margin:0 0 8px}.ma-route{margin-left:auto;font-size:10px;font-weight:500;color:#667c70;text-align:right}.ma-mark svg{width:17px;height:17px;vertical-align:middle;color:#256a51}.ma-prose{font-size:15px;line-height:1.7;white-space:pre-wrap}.ma-questions p{padding:8px 0;margin:0;font-size:14px;color:#745717}.ma-sources{margin-top:14px;display:flex;gap:6px;flex-wrap:wrap;border-top:1px solid #e9eeeb;padding-top:12px}.ma-sources button{display:inline-flex;align-items:center;gap:6px;border:1px solid #d3e6db;background:#f5faf7;border-radius:6px;padding:4px 7px;font-size:11px;min-height:30px;text-align:left;max-width:100%}.ma-sources button span{border-radius:50%;background:#e3eee7;width:17px;height:17px;text-align:center;flex:none;font-size:10px}.ma-answer-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:10px}.ma-answer-actions button{font-size:11px;min-height:30px;padding:4px 7px}.ma-evidence-time{display:block;margin-top:9px;font-size:10px!important;line-height:1.5;color:#718176}
.ma-draft{padding:13px;border:1px solid #bcd7c8;background:#f8fbf9;border-radius:8px;margin-top:14px}.ma-draft>strong{font-size:14px}.ma-draft label{display:block;font-size:10px;color:#668070;text-transform:uppercase;margin:12px 0 3px}.ma-draft p{font-size:14px;margin:0}.ma-draft pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:14px;line-height:1.6;margin:2px 0 14px}.ma-draft small{font-size:11px;display:block;margin-top:9px}.ma-row{display:flex;flex-wrap:wrap;gap:8px}.ma-row button{font-size:12px}
.ma-compose-area{flex:none;background:#fff;border-top:1px solid #d4e2d9;padding:12px 16px 10px}.ma-context-bar{display:flex;align-items:center;gap:6px;justify-content:space-between}.ma-current{color:#3b604f;font-size:12px;font-weight:650}.ma-context-bar button{font-size:11px;min-height:27px;padding:3px 5px}.ma-scopes{display:flex;flex-wrap:wrap;gap:8px 14px;margin:7px 0 10px;font-size:11px}.ma-scopes label{display:flex;align-items:center;gap:5px}.ma-dialog input[type=checkbox]{width:15px;height:15px;min-height:0;accent-color:#267359;flex-shrink:0}.ma-dialog #ma-question{display:block;width:100%;resize:vertical;min-height:77px;max-height:190px;line-height:1.6;border:1px solid #b4d0c1;border-radius:10px;padding:11px;font-size:15px;background:#fcfefd}.ma-submitbar{display:flex;align-items:center;gap:8px;margin-top:8px}.ma-submitbar select{max-width:145px;font-size:12px;min-height:34px;height:34px;padding:3px 8px}.ma-submitbar>span{font-size:9px;color:#77887f;margin-left:auto}.ma-submitbar button{display:flex;align-items:center;gap:6px;padding:6px 14px;margin-left:auto;min-height:36px}.ma-submitbar svg{width:17px;height:17px}.ma-footnote{font-size:10px;line-height:1.5;color:#728277;margin:8px 0 0}.ma-setup-note{padding:7px 9px;border:1px solid #e5d9b6;background:#fffbec;border-radius:8px;font-size:11px;line-height:1.6;margin-bottom:8px}.ma-setup-note button{font-size:11px;display:inline;min-height:0;padding:0 4px;font-weight:750;color:#496c49}
.ma-content{padding:20px 22px;overflow:auto;flex:1;min-height:0;overscroll-behavior:contain;font-size:14px;line-height:1.65}.ma-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:15px}.ma-section-title h3{margin:0;font-size:20px;line-height:1.35}.ma-section-title button{flex:none;font-size:12px}.ma-content>p{color:#52695c}.ma-content form>label{display:block;margin:15px 0 5px;font-weight:650;font-size:13px}.ma-content input:not([type=checkbox]),.ma-content select,.ma-content textarea{display:block;width:100%;margin-top:5px;min-height:40px;border:1px solid #cbded2;background:#fff;padding:9px 10px;border-radius:7px}.ma-content textarea{min-height:100px;line-height:1.55;resize:vertical}.ma-content small{display:block;line-height:1.6;font-size:11px;font-weight:400;color:#677b6e}.ma-content .ma-check{display:flex;align-items:flex-start;gap:8px;font-weight:500;margin:10px 0;line-height:1.55}.ma-check input{margin-top:3px}.ma-content fieldset{border:1px solid #d6e3db;border-radius:10px;margin:20px 0;padding:8px 14px;font-size:12px}.ma-content legend{font-weight:750;font-size:13px;padding:0 5px}.ma-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ma-grid label{font-size:12px}.ma-transfer{background:#e9f3ed;border-radius:8px;padding:12px;font-size:12px}.ma-small-note{font-size:11px;line-height:1.65;color:#677a6d;margin-top:12px}.ma-context-json{white-space:pre-wrap;overflow-wrap:anywhere;background:#eef3ef;border:1px solid #d4e0d7;border-radius:8px;padding:12px;font-size:11px;line-height:1.6;max-height:50dvh;overflow:auto}.ma-connection{font-size:12px;color:#426b51}.ma-content details{border-top:1px solid #d3e1d7;padding-top:12px}.ma-content summary{cursor:pointer;font-size:12px}.ma-progress{display:flex;align-items:center;gap:9px;font-size:13px;color:#496958;padding:10px}.ma-progress span{width:12px;height:12px;border:2px solid #abcdbc;border-top-color:#23624b;border-radius:50%;animation:ma-spin 1s linear infinite}@keyframes ma-spin{to{transform:rotate(360deg)}}
@media(max-width:620px){.ma-dialog{margin:0;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border:0;border-radius:0}.ma-header{padding:14px 12px}.ma-header h2{font-size:20px!important}.ma-header p{font-size:10px}.ma-header .ma-icontext{max-width:70px;line-height:1.2}.ma-transcript{padding:15px 12px}.ma-compose-area{padding:10px 12px max(9px,env(safe-area-inset-bottom))}.ma-message{padding:13px 12px}.ma-user{margin-left:24px}.ma-content{padding:17px 16px}.ma-submitbar>span{display:none}.ma-scopes{gap:6px 9px}.ma-context-bar{align-items:flex-start}.ma-current{font-size:11px}.ma-context-bar button{font-size:10px}.ma-welcome h3{font-size:23px}.ma-welcome p{font-size:14px}.ma-prose{font-size:15px}.ma-grid{grid-template-columns:1fr}.ma-launch{min-height:34px!important;padding:6px 9px!important;font-size:12px!important}}
@media(prefers-reduced-motion:reduce){.ma-progress span{animation:none}.ma-transcript{scroll-behavior:auto}}
