body.mchat-room-page{margin:0;--muah-room-background:#fcfbfe;--muah-room-sidebar:#eee8f6;--muah-room-text:#292537;--muah-room-muted:#777080;--muah-room-border:#e1dbe9;--muah-room-surface:#fff;background:var(--muah-room-background);color:var(--muah-room-text);font:16px/1.6 system-ui,-apple-system,'Segoe UI',sans-serif;overflow:hidden}
.mchat-conversation-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);height:100svh;min-height:360px}.mchat-companion-navigation{display:flex;flex-direction:column;gap:25px;padding:27px 18px 20px;background:var(--muah-room-sidebar);border-right:1px solid var(--muah-room-border);min-width:0}.mchat-room-brand{font:36px/1 Chewy,cursive;color:#7550ab;text-align:center}.mchat-selected-companion{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:4px}.mchat-selected-companion img{width:86px;height:86px;object-fit:cover;object-position:50% 25%;border-radius:50%;margin-bottom:5px;border:3px solid #ffffffb8}.mchat-selected-companion strong{max-width:100%;overflow-wrap:anywhere;font-size:17px;line-height:1.3;text-align:center}.mchat-selected-companion>span{color:var(--muah-room-muted);font-size:13px}.mchat-room-tools{display:grid;gap:7px;height:auto;line-height:1.4;box-shadow:none;background:none}.mchat-room-tools button,.mchat-room-utilities button,.mchat-room-utilities a{display:flex;align-items:center;gap:12px;width:100%;min-height:43px;padding:11px 12px;border:0;border-radius:5px;background:none;color:var(--muah-room-text);font-size:14px;text-align:left}.mchat-room-tools button[aria-current]{background:#d8c9ed;color:#503185;font-weight:650}.mchat-room-tools button:hover,.mchat-room-utilities button:hover,.mchat-room-utilities a:hover{background:#d8c9ed7a}.mchat-room-tools svg,.mchat-room-utilities svg{width:20px;height:20px;flex-shrink:0}.mchat-room-utilities{display:grid;gap:4px;margin-top:auto}.mchat-room-utilities button,.mchat-room-utilities a{font-size:13px}
.mchat-conversation-column{display:flex;flex-direction:column;min-height:0;min-width:0}.mchat-conversation-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px 28px;min-height:82px;background:var(--muah-room-surface);border-bottom:1px solid var(--muah-room-border)}.mchat-companion-identity{display:flex;gap:12px;align-items:center;min-width:0}.mchat-companion-identity img{width:44px;height:44px;object-fit:cover;object-position:50% 25%;border-radius:50%;flex-shrink:0}.mchat-companion-identity h1{margin:0;font-size:18px;font-weight:650;line-height:1.3;overflow-wrap:anywhere}.mchat-companion-identity p{margin:3px 0 0;color:var(--muah-room-muted);font-size:12px}.mchat-conversation-actions{display:flex;gap:7px;flex-shrink:0}.mchat-room-icon{width:36px;height:36px;padding:8px;border:0;border-radius:5px;background:transparent;color:var(--muah-room-muted);display:grid;place-items:center}.mchat-room-icon:hover{color:#7550ab;background:#f0ebf7}.mchat-room-icon svg{width:20px;height:20px}
.mchat-room-home{display:none}.mchat-message-history{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 34px 30px}.mchat-message-width{max-width:820px;margin:auto}.mchat-conversation-date{margin:5px 0 34px;text-align:center;font-size:12px;color:var(--muah-room-muted)}.mchat-companion-greeting{display:flex;gap:13px;align-items:flex-start;max-width:88%;font-size:var(--muah-message-size,16px)}.mchat-companion-greeting img{width:36px;height:36px;object-fit:cover;object-position:50% 25%;border-radius:50%;flex-shrink:0}.mchat-companion-greeting p{margin:0 0 7px;line-height:1.7}.mchat-companion-greeting .mchat-speaker-name{font-size:13px;color:var(--muah-room-muted);font-weight:600;line-height:1.5}.mchat-written-messages{list-style:none;padding:0;margin:28px 0 0;display:flex;flex-direction:column;gap:22px}.mchat-written-message{align-self:flex-end;max-width:min(84%,650px);min-width:80px}.mchat-written-message>p{margin:0;padding:13px 17px;border-radius:8px 8px 0 8px;background:#e8ddf5;color:var(--muah-room-text);white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--muah-message-size,16px);line-height:1.7}.mchat-written-message time{display:block;text-align:right;font-size:11px;color:var(--muah-room-muted);margin:4px 3px 0}
.mchat-message-composer{padding:14px 34px 15px;border-top:1px solid var(--muah-room-border);background:var(--muah-room-background)}.mchat-message-composer form{display:flex;gap:10px;align-items:flex-end;max-width:820px;margin:auto;padding:9px;border:1px solid #cdc2d9;border-radius:8px;background:var(--muah-room-surface)}.mchat-message-composer textarea{display:block;resize:none;min-height:36px;max-height:170px;height:36px;flex:1;min-width:0;margin:0;padding:7px 9px;border:0;outline:0;background:none;color:var(--muah-room-text);font:var(--muah-message-size,16px)/1.5 system-ui,sans-serif;box-shadow:none}.mchat-send-message{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;padding:9px;border:0;border-radius:6px;background:#7550ab;color:#fff}.mchat-send-message:hover{background:#63418f}.mchat-send-message svg{width:19px;height:19px}.mchat-conversation-status{min-height:18px;max-width:820px;margin:8px auto 0;font-size:12px;line-height:1.5;text-align:center;color:var(--muah-room-muted)}
.mchat-room-dialog{position:fixed;inset:0;width:min(100% - 32px,520px);max-height:calc(100svh - 40px);padding:28px;margin:auto;border:1px solid var(--muah-room-border);border-radius:8px;background:var(--muah-room-surface);color:var(--muah-room-text);overflow:auto;font-family:system-ui,sans-serif}.mchat-room-dialog h2{margin:3px 30px 24px 0;font-size:25px;line-height:1.3}.mchat-room-dialog p{font-size:15px;line-height:1.7}.mchat-room-dialog .mchat-dialog-close{color:var(--muah-room-muted)}.mchat-character-form{display:grid;gap:18px}.mchat-character-form label{display:grid;gap:7px;font-size:14px;font-weight:600}.mchat-character-form input,.mchat-character-form textarea,.mchat-character-form select{display:block;width:100%;min-height:42px;padding:9px 11px;border:1px solid var(--muah-room-border);border-radius:5px;background:var(--muah-room-background);color:var(--muah-room-text);font:15px/1.5 system-ui,sans-serif;resize:vertical}.mchat-character-form select{appearance:auto}.mchat-room-form-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;margin-top:10px}.mchat-room-dialog .mchat-content-secondary{color:var(--muah-room-text);border-color:var(--muah-room-border)}.mchat-room-dialog .mchat-content-secondary:hover{background:var(--muah-room-sidebar)}.mchat-portrait-dialog{width:min(100% - 32px,720px)}.mchat-portrait-options{border:0;padding:0;margin:0 0 22px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.mchat-portrait-option{display:block;min-width:0;position:relative;cursor:pointer}.mchat-portrait-option input{position:absolute;right:8px;top:8px;accent-color:#7550ab;z-index:1}.mchat-portrait-option img{display:block;width:100%;aspect-ratio:1;height:auto;object-fit:cover;object-position:50% 25%;border:3px solid transparent;border-radius:6px}.mchat-portrait-option:has(input:checked) img{border-color:#9473bd}.mchat-portrait-option span{display:block;margin-top:6px;text-align:center;font-size:12px;line-height:1.4}.mchat-preferences-form{display:grid;gap:24px}.mchat-theme-choice{border:0;padding:0;margin:0;display:flex;gap:10px;flex-wrap:wrap}.mchat-theme-choice legend{padding:0;margin-bottom:12px;font-size:14px;font-weight:600}.mchat-theme-choice label{display:flex;align-items:center;gap:8px;border:1px solid var(--muah-room-border);border-radius:5px;padding:8px 14px;cursor:pointer;font-size:14px}.mchat-theme-choice label:has(input:checked){border-color:#9473bd;background:var(--muah-room-sidebar)}.mchat-theme-choice svg{width:17px;height:17px}.mchat-theme-choice input,.mchat-preference-toggle input{accent-color:#7550ab}.mchat-range-control{display:grid;gap:12px;font-size:14px}.mchat-range-control>span{display:flex;justify-content:space-between}.mchat-range-control input{width:100%;accent-color:#7550ab}.mchat-range-control output{font-variant-numeric:tabular-nums;min-width:28px;text-align:right}.mchat-preference-toggle{display:flex;gap:16px;align-items:center;justify-content:space-between;font-size:14px}.mchat-preference-toggle input{width:18px;height:18px;flex-shrink:0}.mchat-confirm-dialog{width:min(100% - 32px,430px)}.mchat-clear-accept{min-height:44px;padding:10px 15px;border:0;border-radius:5px;background:#ac475a;color:#fff;font-size:14px;font-weight:650}.mchat-room-notice{position:fixed;bottom:30px;left:50%;translate:-50% 0;z-index:10;max-width:calc(100% - 32px);padding:10px 17px;border-radius:5px;background:#30263c;color:#fff;font-size:14px;text-align:center;box-shadow:0 4px 20px #0002}.mchat-room-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.mchat-room-page[data-muah-theme="dark"]{color-scheme:dark;--muah-room-background:#19171f;--muah-room-sidebar:#24202c;--muah-room-text:#eee9f4;--muah-room-muted:#aaa0b8;--muah-room-border:#3b3344;--muah-room-surface:#211d28}.mchat-room-page[data-muah-theme="dark"] .mchat-room-tools button[aria-current]{background:#463354;color:#f0e5ff}.mchat-room-page[data-muah-theme="dark"] .mchat-written-message>p{background:#4a355e}.mchat-room-page[data-muah-theme="dark"] .mchat-room-brand{color:#c3a3ee}.mchat-room-page[data-muah-theme="dark"] .mchat-message-composer form{border-color:#574462}.mchat-room-page[data-muah-theme="dark"] .mchat-room-icon:hover{background:#362a42;color:#e2ccff}
.mchat-message-composer textarea{padding-block:6px;overflow-y:hidden}.mchat-portrait-dialog{overflow:hidden}.mchat-portrait-dialog form{display:flex;flex-direction:column;max-height:calc(100svh - 165px);min-height:0;gap:14px}.mchat-portrait-dialog .mchat-portrait-options{min-height:0;overflow:auto;flex:1;padding:0 4px 10px;margin:0}.mchat-portrait-dialog button[type="submit"]{flex-shrink:0;align-self:stretch}
.mchat-profile-export{display:inline-flex;align-items:center;justify-content:center;gap:8px}.mchat-profile-export svg{width:18px;height:18px;flex-shrink:0}.mchat-room-form-actions>button{max-width:100%;white-space:normal}
@media(max-width:1000px){.mchat-conversation-workspace{grid-template-columns:210px minmax(0,1fr)}.mchat-companion-navigation{padding-inline:12px}.mchat-message-history{padding-inline:22px}.mchat-message-composer{padding-inline:22px}.mchat-conversation-heading{padding-inline:20px}}
@media(max-width:700px){.mchat-conversation-workspace{grid-template-columns:minmax(0,1fr)}.mchat-companion-navigation{display:none}.mchat-conversation-heading{padding:12px 10px;min-height:76px;gap:6px}.mchat-companion-identity{gap:7px}.mchat-companion-identity>div{min-width:0}.mchat-companion-identity img{width:34px;height:34px}.mchat-companion-identity h1{font-size:16px;max-height:42px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.mchat-companion-identity p{font-size:11px}.mchat-room-home{display:grid;place-items:center;flex:0 0 22px;width:22px;height:34px;color:var(--muah-room-muted)}.mchat-room-home svg{width:22px;height:22px}.mchat-conversation-actions{gap:1px}.mchat-room-icon{width:29px;height:34px;padding:5px}.mchat-message-history{padding:18px 15px 24px}.mchat-companion-greeting{max-width:100%;gap:9px}.mchat-companion-greeting img{width:30px;height:30px}.mchat-message-composer{padding:12px 12px max(12px,env(safe-area-inset-bottom))}.mchat-message-composer form{gap:4px}.mchat-conversation-status{font-size:11px}.mchat-written-message{max-width:90%}.mchat-room-dialog{padding:25px 20px}.mchat-portrait-options{grid-template-columns:repeat(2,minmax(0,1fr))}.mchat-room-dialog h2{font-size:23px}.mchat-conversation-date{margin-bottom:24px}}
