#mf-dev-chat {font-family:"Segoe UI",Arial,sans-serif;color:#20242a;letter-spacing:0}
#mf-dev-chat [hidden] {display:none!important}
#mf-dev-chat .dev-environment {position:fixed;bottom:12px;left:12px;z-index:8500;padding:5px 10px;background:#f9df81;color:#3b320d;border:1px solid #d7b94b;font-size:12px;font-weight:700;pointer-events:none}
#mf-dev-chat button {display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #d9ded8;border-radius:6px;background:white;color:#245f49;cursor:pointer;flex-shrink:0}
#mf-dev-chat button:hover {background:#eef2ee}
#mf-dev-chat button:disabled {opacity:.45;cursor:default}
#mf-dev-chat button:focus-visible,#mf-dev-chat textarea:focus-visible {outline:3px solid #315c9b;outline-offset:2px}
#mf-dev-chat svg {width:19px;height:19px}
#mf-dev-chat .dev-launch {position:fixed;right:22px;bottom:22px;z-index:9000;width:54px;height:54px;border-radius:50%;background:#245f49;color:#fff;box-shadow:0 4px 16px #0003}
#mf-dev-chat .dev-drawer {position:fixed;right:20px;bottom:20px;z-index:9001;display:flex;flex-direction:column;width:min(440px,calc(100% - 24px));height:min(680px,calc(100dvh - 32px));background:#fff;border:1px solid #c9d3cd;border-radius:8px;box-shadow:0 8px 32px #0003;overflow:hidden}
#mf-dev-chat header {display:flex;align-items:center;gap:7px;padding:12px;border-bottom:1px solid #d9ded8;min-height:70px;background:#f4f7f5}
#mf-dev-chat header>div {flex:1;min-width:0}
#mf-dev-chat header strong {display:block;font-size:17px}
#mf-dev-chat header span {display:block;font-size:12px;color:#647069;margin-top:3px}
#mf-dev-chat .dev-messages {flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px 16px}
#mf-dev-chat .dev-message {padding:14px 0;border-bottom:1px solid #edf0ed;font-size:14px;line-height:1.55;overflow-wrap:anywhere}
#mf-dev-chat .dev-message strong {display:block;font-size:12px;margin-bottom:5px;color:#245f49}
#mf-dev-chat .dev-message>div {white-space:pre-wrap}
#mf-dev-chat .dev-user strong {color:#315c9b}
#mf-dev-chat .dev-system {font-size:12px;color:#647069}
#mf-dev-chat .dev-status {padding:8px 14px;font-size:12px;color:#58655e;border-top:1px solid #d9ded8;overflow-wrap:anywhere;max-height:72px;overflow:auto}
#mf-dev-chat form {padding:10px 12px;margin:0;display:block}
#mf-dev-chat label {display:block;font-size:12px;margin-bottom:6px;font-weight:600}
#mf-dev-chat textarea {display:block;width:100%;resize:none;min-height:76px;max-height:140px;padding:9px;border:1px solid #bccac0;border-radius:5px;font:14px/1.4 "Segoe UI",Arial,sans-serif;box-sizing:border-box;background:white;color:#20242a}
#mf-dev-chat footer {display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:8px}
#mf-dev-chat footer span {flex:1;font-size:11px;color:#647069}
#mf-dev-chat [type=submit] {background:#245f49;color:white;border-color:#245f49}
@media(max-width:540px) {#mf-dev-chat .dev-drawer {right:12px;bottom:12px} #mf-dev-chat .dev-launch {right:16px;bottom:16px}}
#mf-dev-chat .dev-drawer {height:min(820px,calc(100dvh - 32px))}
#mf-dev-chat header,#mf-dev-chat .dev-options,#mf-dev-chat .dev-compose,#mf-dev-chat .dev-status {flex-shrink:0}
#mf-dev-chat .dev-options {padding:8px 12px;border-bottom:1px solid #d9ded8;max-height:34dvh;overflow:auto}
#mf-dev-chat .dev-options label {margin:0;min-width:0}
#mf-dev-chat .dev-context {display:flex;align-items:center;gap:7px;padding:7px 0;font-size:12px}
#mf-dev-chat .dev-context input {width:17px;height:17px;accent-color:#245f49;margin:0}
#mf-dev-chat .dev-context span {margin-left:auto;color:#68716a;font-size:11px}
#mf-dev-chat .dev-context.enabled {color:#245f49;font-weight:700}
#mf-dev-chat .dev-context.enabled span {color:#245f49}
#mf-dev-chat .dev-project-row,#mf-dev-chat .dev-model-row,#mf-dev-chat .dev-project-edit {display:flex;align-items:end;gap:8px;margin-top:7px}
#mf-dev-chat .dev-project-row>label,#mf-dev-chat .dev-project-edit>label {flex:1}
#mf-dev-chat .dev-model-row>label:first-child {flex:1}
#mf-dev-chat .dev-model-row>label:last-child {width:108px}
#mf-dev-chat select,#mf-dev-chat input:not([type=checkbox]):not([type=file]) {display:block;width:100%;height:34px;box-sizing:border-box;border:1px solid #bccac0;border-radius:5px;background:white;color:#20242a;font:13px "Segoe UI",Arial,sans-serif;padding:5px;margin:4px 0 0;min-width:0}
#mf-dev-chat .dev-text-button {display:inline-block;width:auto;height:auto;min-height:28px;border:0;background:transparent;text-align:left;font-size:11px;line-height:1.4;padding:4px 0;white-space:normal;overflow-wrap:anywhere}
#mf-dev-chat .dev-response-actions {display:flex;align-items:start;flex-wrap:wrap;gap:4px 14px;margin-top:8px}
#mf-dev-chat .dev-message small {display:block;font-size:11px;color:#69746d;margin-top:8px}
#mf-dev-chat .dev-library {flex:1;min-height:0;overflow:auto;padding:12px;border-bottom:1px solid #d9ded8;font-size:13px}
#mf-dev-chat .dev-library:not([hidden])~.dev-messages,#mf-dev-chat .dev-library:not([hidden])~.dev-compose {display:none}
#mf-dev-chat .dev-source-form {padding:8px 0}
#mf-dev-chat .dev-source-form label {margin-top:9px}
#mf-dev-chat input[type=file] {display:block;width:100%;font-size:11px;margin-top:6px;color:#526258}
#mf-dev-chat .dev-source-row {display:flex;gap:12px;align-items:start;border-bottom:1px solid #edf0ed;padding:5px 0}
#mf-dev-chat .dev-source-row button:first-child {flex:1}
#mf-dev-chat .dev-source-preview {white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.5 "Segoe UI",Arial,sans-serif;background:#f4f7f5;padding:10px}
#mf-dev-chat .dev-project-edit {padding:0}
#mf-dev-chat button[type=submit]:hover {background:#1b4c3a;color:white}
#mf-dev-chat .dev-source-form button[type=submit] {background:#245f49;color:white;padding:8px 12px;margin-top:10px;border-radius:5px}
@media(max-height:640px) {#mf-dev-chat header {min-height:48px;padding:6px 12px} #mf-dev-chat .dev-compose textarea {min-height:48px;height:48px} #mf-dev-chat .dev-options {max-height:30dvh}}

/* Optional test-only diagnostics are not displayed in this chat. */
#mf-dev-chat .dev-diagnostic[hidden] { display: none !important; }
