.mila-launcher-wrap{display:flex;align-items:center;width:max-content;max-width:100%;margin-left:auto;background:#23251e;border:1px solid #e2b369;border-radius:40px;box-shadow:0 8px 32px #0006;padding:5px;gap:4px}.mila-launcher-wrap .mila-launcher{border:0;box-shadow:none;padding:8px 13px;min-height:52px}.mila-avatar-open{border:1px solid #b99c6b;padding:0;background:#282b25;border-radius:50%;width:56px;height:56px;overflow:hidden;cursor:pointer;flex-shrink:0}.mila-avatar-open img,.mila-head .mila-avatar-open img{width:100%;height:100%;object-fit:cover;border-radius:0}.mila-head .mila-avatar-open{width:64px;height:64px}.mila-avatar-open:hover{outline:2px solid #e2b369;outline-offset:2px}.mila-speech-tools{display:flex;gap:8px;padding:10px 14px 0}.mila-speech-tools button{font-size:14px;min-height:36px;border:1px solid #68604c;color:#e7c798;background:transparent;border-radius:6px;padding:6px 10px}.mila-speech-tools button:disabled{opacity:.5}.avatar-dialog{max-width:min(920px,calc(100vw - 24px));width:920px;max-height:calc(100dvh - 24px);padding:0;background:#191b16;color:#f1eee5;border:1px solid #68604c;border-radius:18px;font-family:Arial,Helvetica,sans-serif;overflow:auto}.avatar-dialog::backdrop{background:#000b}.avatar-top{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #414234}.avatar-top h2{font-size:24px;margin:0}.avatar-close{background:transparent;border:0;color:inherit;font-size:30px;width:44px;height:44px}.avatar-layout{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding:24px}.avatar-stage{min-width:0;background:#10130f;border-radius:12px;align-self:start}.avatar-form{display:flex;flex-direction:column;gap:14px;min-width:0}.avatar-choices{margin:0;padding:0;border:0;display:flex;gap:12px}.avatar-choices legend{font-size:16px;margin-bottom:10px}.avatar-choice{position:relative;display:flex;flex-direction:column;flex:1;gap:8px;border:1px solid #575447;border-radius:8px;padding:8px;font-size:14px;cursor:pointer}.avatar-choice:has(input:checked){border-color:#e2b369;background:#343126}.avatar-choice input{position:absolute;top:13px;left:13px;accent-color:#e2b369;width:18px;height:18px}.avatar-choice img{width:100%;height:100px;object-fit:cover;border-radius:4px}.avatar-field{display:flex;flex-direction:column;gap:7px;font-size:16px}.avatar-field input,.avatar-field select{width:100%;padding:10px;font:inherit;font-size:16px;border:1px solid #686756;background:#10120e;color:#f1eee5;border-radius:6px;min-width:0;min-height:44px}.avatar-voice-buttons{display:flex;gap:8px}.avatar-voice-buttons button{border:1px solid #68604c;background:#292c23;color:#e7c798;border-radius:6px;padding:10px 12px;font-size:14px;min-height:44px}.avatar-auto{display:flex;align-items:center;gap:10px;font-size:16px}.avatar-auto input{width:20px;height:20px;accent-color:#e2b369}.avatar-note,.avatar-voice-note{font-size:14px;line-height:1.5;color:#bdbbad;margin:0}.avatar-voice-note:empty{display:none}.avatar-save{background:#e2b369;color:#16170f;border:0;border-radius:6px;padding:13px;font-size:16px;font-weight:700}.avatar-dialog :focus-visible{outline:3px solid #e2b369;outline-offset:3px}.avatar-dialog button:disabled,.avatar-dialog select:disabled{opacity:.5;cursor:not-allowed}@media(max-width:650px){.avatar-layout{grid-template-columns:1fr;padding:16px;gap:18px}.avatar-top{padding:12px 16px}.avatar-top h2{font-size:21px}.mila-head .mila-avatar-open{width:48px;height:48px}.mila-launcher-wrap .mila-avatar-open{width:44px;height:44px}.mila-launcher-wrap .mila-launcher{min-height:44px;font-size:14px}.avatar-choices img{height:100px}}
.mila-head>div{min-width:0}.mila-head h2{overflow-wrap:anywhere}.avatar-dialog input:disabled+span{opacity:.5}

.avatar-portrait{display:block;width:100%;height:440px;object-fit:cover;object-position:center 25%;border-radius:12px}.mila-avatar-open img,.mila-head .mila-avatar-open img{object-position:center 30%}@media(max-width:650px){.avatar-portrait{height:280px;object-fit:contain}}

.mila-speech-tools{flex-wrap:wrap}.mila-speech-tools .mila-customize{color:#f1eee5;border-color:#e2b369;min-height:44px}.mila-avatar-open{width:64px;height:64px}.mila-avatar-open img{object-position:center 25%}@media(max-width:650px){.mila-launcher-wrap .mila-avatar-open{width:52px;height:52px}}

/* The compact assistant always uses the recognizable portrait. */
.mila-avatar-open{background:#11120f}.mila-avatar-open img,.mila-head .mila-avatar-open img{object-fit:cover;object-position:center 25%}.mila-launcher-wrap{background:#1b1d18;border-color:#a98d60;box-shadow:0 6px 24px #0004}.mila-launcher-wrap .mila-launcher{background:transparent}

.avatar-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.avatar-choice img{height:auto;aspect-ratio:1;object-fit:cover}.avatar-choice{min-width:0}.avatar-portrait{height:auto;aspect-ratio:1;object-fit:cover}.avatar-choice:focus-within{outline:2px solid #e2b369;outline-offset:3px}@media(max-width:650px){.avatar-stage{max-width:230px;width:100%;margin:auto}.avatar-portrait{height:auto}}
