.mbot-root{width:100%;--mbot-accent:#087e9b}
.mbot-launcher{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:58px;padding:9px 10px;border:1px solid #cfe5f1;border-radius:18px;background:linear-gradient(125deg,#f2fbff,#eef3ff);color:#15243b;cursor:pointer;text-align:left}
.mbot-launcher-copy{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.mbot-launcher strong{font-size:12px;font-weight:800}.mbot-launcher small{font-size:10px;color:#087e9b;font-weight:700;line-height:1.3}.mbot-new-dot{width:7px;height:7px;flex-shrink:0;border-radius:100%;background:#0891b2;box-shadow:0 0 0 4px #0891b21a}
.mbot-face{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex-shrink:0;border-radius:14px;background:linear-gradient(135deg,#22d3ee,#6366f1);box-shadow:0 4px 12px #0891b233}.mbot-face>span{display:flex;align-items:center;justify-content:center;letter-spacing:5px;padding-left:5px;width:28px;height:23px;border-radius:9px;background:#14233d;color:#a5f3fc;font-size:24px;line-height:1;border-bottom:3px solid #8ce2f0}
.mbot-panel{--mbot-bg:#fff;--mbot-text:#26374c;--mbot-line:#dbe5ed;--mbot-soft:#f4f8fb;--mbot-muted:#53677c;position:fixed;z-index:10000;left:24px;bottom:22px;width:440px;max-width:calc(100vw - 24px);height:720px;max-height:calc(100dvh - 32px);display:flex;flex-direction:column;overflow:hidden;background:var(--mbot-bg);color:var(--mbot-text);border:1px solid var(--mbot-line);border-radius:23px;box-shadow:0 24px 80px #0f172a45;font:13px/1.45 inherit;font-family:inherit}
.mbot-panel *{box-sizing:border-box}.mbot-panel button,.mbot-panel input,.mbot-panel select{font:inherit;color:inherit}.mbot-panel button{cursor:pointer;border:1px solid var(--mbot-line);border-radius:9px;background:var(--mbot-bg);padding:6px 9px;font-size:11px;font-weight:700}.mbot-panel button:disabled{opacity:.5;cursor:default}.mbot-panel :is(button,input,select,summary):focus-visible,.mbot-launcher:focus-visible{outline:2px solid #06b6d4;outline-offset:2px}
.mbot-header{display:flex;align-items:center;gap:11px;padding:13px 15px;flex-shrink:0;background:linear-gradient(125deg,#101e37,#173860,#096e85);color:#fff}.mbot-header>div{display:flex;flex-direction:column;gap:3px;flex:1}.mbot-header strong{font-size:15px}.mbot-header small{font-size:11px;color:#b8edfa}.mbot-header>button{font-size:23px;line-height:1;color:#fff;background:#ffffff15;border-color:#ffffff25;width:32px;height:32px;padding:0}
.mbot-context{padding:11px 14px;border-bottom:1px solid var(--mbot-line);display:flex;flex-direction:column;gap:7px;max-height:42%;overflow:auto;flex-shrink:0}.mbot-field{display:flex;flex-direction:column;gap:4px}.mbot-field>span{font-size:11px;font-weight:700;color:var(--mbot-muted)}.mbot-panel input,.mbot-panel select{width:100%;min-width:0;border:1px solid var(--mbot-line);background:var(--mbot-bg);border-radius:9px;padding:8px 9px;font-size:12px}.mbot-panel select{height:35px}.mbot-source,.mbot-help{font-size:11px}.mbot-source summary,.mbot-help summary,.mbot-encoded summary{cursor:pointer;color:#087e9b;font-weight:700}.mbot-source[open]{display:flex;flex-direction:column;gap:7px}.mbot-source>.mbot-field{margin-top:7px}.mbot-help p{margin:7px 0 0;font-size:11px;color:var(--mbot-muted)}
.mbot-messages{flex:1;min-height:90px;overflow-y:auto;padding:13px;background:var(--mbot-soft);display:flex;flex-direction:column;gap:10px}.mbot-message{border-radius:13px 13px 13px 3px;background:var(--mbot-bg);border:1px solid var(--mbot-line);padding:9px 11px;font-size:12px;flex-shrink:0;max-width:100%;overflow-wrap:anywhere}.mbot-message>p{margin:0;white-space:pre-wrap}.mbot-user{align-self:flex-end;max-width:89%;color:#fff;background:#0e7490;border-color:#0e7490;border-radius:13px 13px 3px 13px}.mbot-offer-caption{display:block;margin-top:7px;font-size:10px;color:var(--mbot-muted)}.mbot-pending{font-size:12px;color:var(--mbot-muted);padding:4px;flex-shrink:0}
.mbot-pair{margin-top:10px;border:1px solid var(--mbot-line);border-radius:10px;padding:9px;background:var(--mbot-soft)}.mbot-pair-title{font-size:10px;color:var(--mbot-muted)}.mbot-copy-row{display:flex;gap:8px;align-items:center;margin-top:8px}.mbot-copy-row>div{flex:1;min-width:0}.mbot-copy-row small{font-size:9px;font-weight:700;color:var(--mbot-muted);letter-spacing:.04em}.mbot-copy-row p{margin:2px 0 0;font-size:12px;white-space:pre-wrap}.mbot-copy-row>button{flex-shrink:0}.mbot-encoded{margin-top:8px;font-size:10px}.mbot-encoded code{display:block;white-space:pre-wrap;overflow-wrap:anywhere;padding:5px;border:1px solid var(--mbot-line);border-radius:5px;margin:3px 0 7px;font-size:10px}.mbot-encoded small{display:block;margin-top:6px}
.mbot-actions{display:flex;gap:8px;align-items:flex-end;padding:9px 12px 0;flex-shrink:0}.mbot-actions>label{display:flex;flex-direction:column;gap:3px;min-width:0}.mbot-actions>label:first-child{flex:1}.mbot-actions label>span{font-size:10px;color:var(--mbot-muted)}.mbot-actions select{font-size:11px;padding:5px;height:32px}.mbot-actions>.mbot-primary{height:32px;white-space:nowrap}.mbot-panel .mbot-primary{color:white;background:#087e9b;border-color:#087e9b}.mbot-compose{display:flex;gap:7px;padding:10px 12px 7px;flex-shrink:0}.mbot-compose input{flex:1;height:37px}.mbot-compose button{flex-shrink:0}.mbot-footer{display:flex;justify-content:space-between;align-items:center;gap:7px;padding:0 13px 9px;font-size:10px;color:var(--mbot-muted);flex-shrink:0}.mbot-footer button{border:0;padding:3px;background:transparent;font-size:10px}.mbot-error{display:flex;align-items:center;gap:8px;padding:9px 12px;font-size:11px;background:#fff3f0;color:#a53523;flex-shrink:0;max-height:90px;overflow:auto}.mbot-error>span{flex:1}.mbot-error>button{flex-shrink:0;color:#a53523}
.dark .mbot-panel{--mbot-bg:#151c28;--mbot-text:#e2e9f3;--mbot-line:#334155;--mbot-soft:#0f1722;--mbot-muted:#a7b7cc}.dark .mbot-launcher{border-color:#23475e;background:linear-gradient(125deg,#152938,#202740);color:#e3effa}.dark .mbot-launcher small,.dark .mbot-source summary,.dark .mbot-help summary,.dark .mbot-encoded summary{color:#67d5e9}.dark .mbot-error{background:#3a211f;color:#ffb7a7}
@media(max-width:500px){.mbot-panel{left:12px;right:12px;bottom:12px;width:auto;max-width:none;max-height:calc(100dvh - 24px);border-radius:18px}.mbot-actions{gap:6px}.mbot-actions>.mbot-primary{padding:5px 7px;font-size:10px}}

/* Multi-source rewrites and independent local Unicode previews. */
.mbot-panel{width:480px;height:820px}.mbot-context{max-height:45%}.mbot-source-lists{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mbot-presets{max-height:155px;overflow:auto;margin-top:5px}.mbot-preset{display:flex;align-items:flex-start;gap:7px;padding:6px 2px;border-bottom:1px solid var(--mbot-line);cursor:pointer;overflow-wrap:anywhere}.mbot-panel .mbot-preset input{width:15px;height:15px;margin:2px 0;flex-shrink:0;accent-color:#087e9b}.mbot-preset>span{min-width:0;display:flex;flex-direction:column;gap:2px}.mbot-preset small{font-size:9px;color:var(--mbot-muted)}.mbot-preset span span{font-size:11px}.mbot-original{margin-top:7px;color:var(--mbot-muted);font-size:11px}.mbot-original summary{cursor:pointer;font-size:10px}.mbot-original p{margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}.mbot-actions>label{flex:1}.mbot-run{display:flex;justify-content:flex-end;align-items:flex-end;gap:9px;padding:8px 12px 0;flex-shrink:0}.mbot-run label{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--mbot-muted)}.mbot-run select{width:52px;height:30px;padding:3px}.mbot-run button{height:32px}.mbot-actions select{height:34px}
@media(max-width:500px){.mbot-panel{width:auto}.mbot-source-lists{grid-template-columns:1fr}.mbot-presets{max-height:110px}.mbot-context{max-height:43%}.mbot-run{gap:7px}.mbot-run label{font-size:9px}}

/* Compact chat first; offer and source choices expand only when needed. */
.mbot-panel{width:380px;height:600px;max-height:calc(100dvh - 28px);border-radius:18px}.mbot-header{padding:9px 12px;gap:8px}.mbot-header .mbot-face{width:30px;height:30px;border-radius:10px}.mbot-header .mbot-face>span{transform:scale(.8)}.mbot-header strong{font-size:14px}.mbot-header small{font-size:10px}.mbot-context{padding:8px 11px;max-height:42%;gap:6px}.mbot-offer-button{width:100%;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mbot-context-tools{display:flex;align-items:flex-start;gap:8px}.mbot-context-tools>button{padding:4px 7px}.mbot-help{flex:1;min-width:0;padding-top:4px}.mbot-help[open]{padding-bottom:5px}.mbot-offer-results{max-height:145px;overflow:auto;border:1px solid var(--mbot-line);border-radius:8px;margin-top:4px;background:var(--mbot-bg)}.mbot-offer-results button{display:flex;flex-direction:column;gap:2px;border:0;border-bottom:1px solid var(--mbot-line);border-radius:0;width:100%;text-align:left;padding:7px 8px;white-space:normal}.mbot-offer-results button:hover{background:var(--mbot-soft)}.mbot-offer-results small{font-size:10px;color:var(--mbot-muted)}.mbot-settings{display:flex;flex-direction:column;gap:6px}.mbot-source-lists{gap:7px}.mbot-presets{max-height:95px}.mbot-run{padding:0;align-items:center}.mbot-run>label{margin-right:auto}.mbot-messages{padding:10px;min-height:100px}.mbot-message{padding:8px;font-size:12px}.mbot-pair{margin-top:7px;padding:7px}.mbot-output-options{padding:7px 10px 0;display:grid;grid-template-columns:65px minmax(95px,1fr) minmax(75px,1fr);gap:5px;flex-shrink:0;align-items:end}.mbot-output-options>label{min-width:0;display:flex;flex-direction:column;gap:2px}.mbot-output-options label>span{font-size:9px;color:var(--mbot-muted)}.mbot-output-options select{height:29px;font-size:10px;padding:3px}.mbot-output-options .mbot-smart{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;gap:6px;padding:2px 0}.mbot-panel .mbot-smart input{width:14px;height:14px;accent-color:#087e9b;margin:0}.mbot-output-options .mbot-smart span{font-size:11px;font-weight:700;color:var(--mbot-text)}.mbot-raw-output{margin-top:8px}.mbot-raw-group{display:block;margin-top:7px}.mbot-raw-group>span{display:block;font-size:10px;font-weight:700;margin-bottom:4px;color:var(--mbot-muted)}.mbot-raw-group textarea{width:100%;resize:vertical;min-height:54px;max-height:200px;border:1px solid var(--mbot-line);border-radius:7px;background:var(--mbot-soft);color:var(--mbot-text);padding:7px;font:11px/1.6 Consolas,monospace;white-space:pre;overflow:auto}.mbot-compose{padding:7px 10px 5px}.mbot-compose input{height:34px;font-size:11px}.mbot-footer{padding:0 11px 7px}.mbot-original{font-size:10px}.mbot-source summary{font-size:10px}
@media(max-width:500px){.mbot-panel{width:auto;max-height:calc(100dvh - 24px);height:600px}.mbot-source-lists{grid-template-columns:1fr 1fr}.mbot-presets{max-height:90px}.mbot-output-options{grid-template-columns:62px minmax(90px,1fr) minmax(72px,1fr)}}
