.mf-chat[hidden], .mf-chat [hidden] { display: none !important; }
.mf-chat { font: 15px/1.5 system-ui, sans-serif; color: #253b35; }
.mf-chat__launcher { position: fixed; right: 24px; bottom: 24px; z-index: 1040; border: 0; border-radius: 32px; padding: 15px 22px; background: #1b5447; color: #fff; box-shadow: 0 5px 24px #16392a30; font-weight: 650; cursor: pointer; }
.mf-chat__dialog { padding: 0; width: min(440px, calc(100vw - 24px)); max-height: 88vh; max-height: 88dvh; margin: auto 20px 20px auto; border: 1px solid #d3dfd9; border-radius: 16px; color: #253b35; background: #fff; box-shadow: 0 12px 64px #172b2940; overflow: hidden; }
.mf-chat__dialog[open] { display: flex; flex-direction: column; }
.mf-chat__dialog::backdrop { background: #152d2530; }
.mf-chat__header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: #f2f6f3; border-bottom: 1px solid #e1e9e4; }
.mf-chat__header strong { display: block; font-size: 18px; }
.mf-chat__header small { display: block; color: #64786e; }
.mf-chat__header button { font-size: 26px; padding: 2px 12px; }
.mf-chat__body { overflow-y: auto; padding: 20px; overscroll-behavior: contain; }
.mf-chat button { cursor: pointer; font: inherit; }
.mf-chat button:disabled { opacity: .5; cursor: not-allowed; }
.mf-chat__dialog button { border: 1px solid #ccd9d1; border-radius: 8px; background: #fff; color: #254b3c; padding: 9px 12px; }
.mf-chat__dialog .mf-chat__primary { background: #1b5447; color: #fff; border-color: #1b5447; margin-top: 10px; }
.mf-chat label { display: block; margin: 12px 0 5px; font-weight: 550; }
.mf-chat input:not([type=checkbox]), .mf-chat textarea { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #bfcfc5; border-radius: 8px; font: inherit; color: inherit; background: #fff; }
.mf-chat textarea { resize: vertical; }
.mf-chat .mf-chat__check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; font-weight: 400; }
.mf-chat__check input { flex: 0 0 auto; margin-top: 4px; }
.mf-chat__log { display: grid; gap: 12px; }
.mf-chat__bubble { padding: 12px 14px; border-radius: 10px; background: #f1f5f2; overflow-wrap: anywhere; }
.mf-chat__bubble--user { margin-left: 28px; background: #e4efe9; }
.mf-chat__bubble p { margin: 4px 0; white-space: pre-wrap; }
.mf-chat__bubble strong { font-size: 12px; color: #486355; }
.mf-chat__card { display: grid; gap: 5px; padding: 10px 0; margin-top: 8px; border-top: 1px solid #cbdacf; }
.mf-chat__card a, .mf-chat__source { color: #1b5447; text-decoration: underline; }
.mf-chat__source { display: block; margin-top: 8px; }
.mf-chat__status { font-size: 13px; margin: 14px 0 0; color: #435e50; }
.mf-chat__footer { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid #e1e9e4; }
.mf-chat__footer small { width: 100%; color: #66796e; font-size: 11px; }
.mf-chat :focus-visible { outline: 3px solid #d4983b; outline-offset: 3px; }
@media (max-width: 480px) { .mf-chat__dialog { margin: auto 12px 12px; } .mf-chat__launcher { right: 14px; bottom: 14px; } }
