.mat-chat { --chat-ink:#242721; --chat-paper:#fbf9f1; position:fixed; z-index:20; right:max(14px,env(safe-area-inset-right)); bottom:max(14px,env(safe-area-inset-bottom)); display:grid; justify-items:end; gap:8px; font:400 15px/1.4 "Work Sans",Arial,sans-serif; color:var(--chat-ink); }
.mat-chat *, .mat-chat *::before { box-sizing:border-box; }
.mat-chat button,.mat-chat input,.mat-chat select { font:inherit; letter-spacing:normal; text-transform:none; }
.mat-chat button { cursor:pointer; }
.mat-chat button:focus-visible,.mat-chat a:focus-visible,.mat-chat input:focus-visible,.mat-chat select:focus-visible { outline:3px solid #b65527; outline-offset:2px; }
.mat-chat .mat-chat-launcher { display:flex; align-items:center; gap:.55rem; min-height:46px; padding:0 17px; border-radius:26px; color:#242721; background:#ffa178; border:1px solid #252821; box-shadow:0 3px 12px #17191230; font-weight:650; }
.mat-chat-launcher::before { content:""; width:17px; height:14px; border:2px solid currentColor; border-radius:7px 7px 7px 1px; }
#mat-chat-panel { margin:0; display:grid; grid-template-rows:auto auto minmax(40px,1fr) auto auto auto; width:min(378px,calc(100vw - 28px)); height:min(555px,calc(100dvh - 82px)); overflow:auto; background:var(--chat-paper); color:var(--chat-ink); border:1px solid #41463c; box-shadow:0 10px 36px #1115; border-radius:17px; text-align:left; }
#mat-chat-panel[hidden] { display:none; }
#mat-chat-panel header,#mat-chat-panel footer,#mat-chat-panel form { display:flex; align-items:center; justify-content:space-between; gap:8px; position:static; margin:0; width:100%; }
#mat-chat-panel header { color:#fcfaf2; background:#293428; padding:11px 15px; }
#mat-chat-panel h2 { margin:0; color:inherit; font:650 1.12rem/1.2 "Work Sans",Arial,sans-serif; letter-spacing:-.03em; }
#mat-chat-panel header button,#mat-chat-panel footer button { color:inherit; background:transparent; border:0; text-decoration:underline; padding:6px 0; }
#mat-chat-panel > label { display:flex; align-items:center; gap:8px; padding:7px 14px; border-bottom:1px solid #d9d9cd; font-size:13px; }
#mat-chat-panel select { color:#242721; background:transparent; border:0; width:auto; padding:5px; }
.mat-chat-log { overflow:auto; overscroll-behavior:contain; padding:12px; }
.mat-chat-log > div { width:fit-content; max-width:92%; margin-bottom:9px; padding:9px 12px; border-radius:12px 12px 12px 2px; background:#e9ecdf; overflow-wrap:anywhere; }
.mat-chat-log > .mat-chat-mine { margin-left:auto; background:#f6decc; border-radius:12px 12px 2px 12px; }
.mat-chat-log strong { font-size:.77rem; }
.mat-chat-log p { white-space:pre-line; color:inherit; font:inherit; margin:.2em 0; }
.mat-chat-log a { display:block; color:#624023; text-decoration:underline; }
.mat-chat-prompts { display:flex; flex-wrap:wrap; gap:5px; padding:4px 12px; }
.mat-chat-prompts button { background:transparent; color:#363c30; border:1px solid #a6ad99; border-radius:14px; padding:4px 9px; font-size:12px; }
#mat-chat-panel form { padding:7px 12px 4px; }
#mat-chat-panel input { min-width:0; width:100%; padding:9px; border:1px solid #9b9f91; border-radius:8px; color:#242721; background:white; font-size:16px; }
#mat-chat-panel form button { background:#293428; color:white; border:0; border-radius:8px; padding:10px 12px; }
#mat-chat-panel footer { background:transparent; color:#505449; border:0; padding:3px 12px 9px; }
#mat-chat-panel footer small,#mat-chat-panel footer button { font-size:11px; }
@media(max-height:480px) { .mat-chat-prompts { display:none; } }
@media print { .mat-chat { display:none; } }
