.mac { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-family: inherit; }
.mac-fab { width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; background: #16233b; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -8px rgba(22, 35, 59, .55); }
.mac-fab::after { content: ""; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #cf2034; border: 2px solid #fff; }
.mac-fab[aria-expanded="true"]::after { display: none; }
.mac-fab:focus-visible, .mac button:focus-visible, .mac input:focus-visible { outline: 2px solid #cf2034; outline-offset: 2px; }
.mac-panel { position: absolute; right: 0; bottom: 70px; width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px)); background: #fff; color: #16233b; border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(22, 35, 59, .45); border: 1px solid #d8dfea; display: flex; flex-direction: column; overflow: hidden; }
.mac-panel[hidden] { display: none; }
.mac-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #16233b; color: #f1f4f9; border-bottom: 3px solid #cf2034; }
.mac-head strong { display: block; font-size: 1rem; font-weight: 500; }
.mac-head span { display: block; font-size: .75rem; color: #b8c3d6; }
.mac-x { background: none; border: 0; color: inherit; cursor: pointer; padding: 4px; display: flex; }
.mac-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f4f6f9; }
.mac-msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.mac-assistant { align-self: flex-start; background: #fff; border: 1px solid #d8dfea; border-bottom-left-radius: 4px; }
.mac-user { align-self: flex-end; background: #16233b; color: #fff; border-bottom-right-radius: 4px; }
.mac-msg a { color: inherit; text-decoration: underline; }
.mac-wait { color: #58606e; letter-spacing: 2px; }
.mac-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; background: #f4f6f9; }
.mac-chips:empty { display: none; }
.mac-chips button { border: 1px solid #c9d2e0; background: #fff; color: #16233b; border-radius: 999px; padding: 6px 11px; font: inherit; font-size: .8rem; cursor: pointer; }
.mac-chips button:hover { border-color: #16233b; }
.mac-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #d8dfea; background: #fff; }
.mac-form input { flex: 1; min-width: 0; border: 1px solid #c9d2e0; border-radius: 10px; padding: 9px 11px; font: inherit; font-size: .9rem; color: #16233b; background: #fff; }
.mac-form button { width: 40px; border: 0; border-radius: 10px; background: #cf2034; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mac-foot { margin: 0; padding: 6px 12px 10px; font-size: .72rem; color: #58606e; background: #fff; }
.mac-foot a { color: #16233b; }
.mac-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 520px) { .mac { right: 14px; bottom: 14px; } }
.mac-panel, .mac-panel * { box-sizing: border-box; }
.mac-panel { padding: 0; margin: 0; }
.mac-head, .mac-log, .mac-form, .mac-foot { margin: 0; }
