.customer-chat-panel{margin-top:26px}.customer-chat-panel .panel-head{gap:18px;flex-wrap:wrap}.customer-chat-panel .panel-head p{font-size:12px;max-width:600px}.chat-status{font-size:12px;min-height:20px}.chat-messages{display:flex;flex-direction:column;gap:16px;max-height:500px;min-height:180px;overflow-y:auto;overscroll-behavior:contain;padding:20px 14px;background:#faf8fa;border:1px solid #eee6e9;border-radius:10px;margin:15px 0;scrollbar-gutter:stable}.chat-message{max-width:85%;align-self:flex-start;background:#fff;border:1px solid #e7e0e4;border-radius:12px 12px 12px 3px;padding:15px 17px;min-width:160px}.chat-message.chat-own{align-self:flex-end;background:#f8eaf0;border-color:#ead1db;border-radius:12px 12px 3px 12px}.chat-message-meta{display:flex;flex-wrap:wrap;gap:8px 18px;justify-content:space-between;font-size:10px;color:#826f7b}.chat-message-meta strong{color:#58434f}.chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7;margin:12px 0}.chat-message-receipt{display:block;font-size:9px;color:#8b7480;text-align:right}.chat-empty{margin:auto;font-size:13px}.customer-chat-panel textarea{display:block;width:100%;padding:13px;border:1px solid #dad6de;border-radius:9px;font:inherit;resize:vertical;min-height:88px;max-height:300px;margin:10px 0}.customer-chat-panel label{display:block;font-size:12px;font-weight:600}.chat-compose-footer{display:flex;justify-content:space-between;align-items:center;gap:20px}.chat-compose-footer small{font-size:10px;font-weight:400;max-width:500px}.chat-compose-footer .btn{flex-shrink:0}.customer-page-chat .customer-case,.customer-page-chat .customer-workspace-grid,.customer-page-chat .customer-case-tabs{display:none}.customer-page-chat .customer-chat-panel{margin-top:0}.customer-chat-panel textarea:focus{outline:2px solid #c52946;outline-offset:2px}.customer-chat-panel [hidden]{display:none!important}@media(max-width:700px){.customer-chat-panel{padding:20px!important}.chat-messages{padding:15px 8px;max-height:450px}.chat-message{max-width:95%;padding:13px}.chat-compose-footer{align-items:stretch;flex-direction:column;gap:13px}.customer-chat-panel .actions{width:100%}.customer-chat-panel .actions .btn{flex:1;font-size:10px}.chat-message-meta{font-size:9px}}
.customer-page-chat .customer-chat-panel{display:flex;flex-direction:column;min-height:500px;height:calc(100dvh - 255px);max-height:800px}.customer-page-chat .chat-messages{flex:1;max-height:none;min-height:150px}.customer-page-chat .chat-compose-footer small{max-width:450px}.customer-page-chat .customer-chat-panel>.panel-head{flex-shrink:0}.customer-chat-panel [data-chat-older]{align-self:center;margin:0 auto;font-size:11px}@media(max-width:760px){.customer-page-chat .customer-chat-panel{min-height:580px;height:calc(100dvh - 260px)}.customer-page-chat .customer-chat-panel .panel-head h2{font-size:18px}.customer-page-chat .chat-messages{min-height:170px}}

/* Administrator inbox and explicit task actions */
.unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:23px;min-height:23px;border-radius:20px;padding:2px 7px;font-size:12px;line-height:1.3;font-weight:750;background:#c52946;color:#fff}.btn.primary .unread-badge{background:white;color:#b3203e}.chat-inbox-global{gap:8px!important}.chat-inbox-workspace{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(0,1.4fr);gap:22px;align-items:start}.chat-inbox-intro{margin-bottom:22px}.chat-inbox-tools{display:flex;gap:18px;flex-wrap:wrap;margin-top:20px}.chat-inbox-tools label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;flex:1;min-width:190px}.chat-inbox-tools input,.chat-inbox-tools select{width:100%;padding:12px;font:inherit;border:1px solid var(--line);border-radius:8px;background:white}.chat-inbox-list{padding:10px!important;max-height:650px;overflow:auto}.chat-inbox-row{display:flex;width:100%;gap:12px;align-items:center;text-align:left;background:#fff;border:1px solid transparent;border-bottom-color:#eee6e9;border-radius:9px;padding:17px 12px;color:var(--ink);font:inherit;cursor:pointer}.chat-inbox-row:hover,.chat-inbox-row.selected{background:#fcf1f4;border-color:#edc8d2}.chat-contact-initial{display:grid;place-content:center;flex-shrink:0;width:38px;height:38px;border-radius:50%;background:#f4e5e9;color:#b3203e;font-weight:700}.chat-inbox-person{min-width:0;flex:1}.chat-inbox-person strong{display:block;font-size:14px;overflow-wrap:anywhere}.chat-inbox-person small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.chat-inbox-row>.muted{font-size:11px}.chat-inbox-customer{display:flex;justify-content:space-between;gap:18px;align-items:center}.chat-inbox-customer h2{font-size:20px;overflow-wrap:anywhere}.chat-inbox-empty{padding:28px!important}.chat-inbox-empty h3{font-size:16px;line-height:1.5}.chat-inbox-empty p{font-size:13px;line-height:1.65}.chat-inbox-conversation{min-width:0}.chat-inbox-conversation .customer-chat-panel{margin-top:18px}.task-status-button{font:inherit;font-size:12px;font-weight:650;cursor:pointer;min-height:40px;white-space:nowrap;border:1px solid #dfdce3;border-radius:8px;background:#f8f6fa;color:#51435b;padding:9px 12px}.task-status-button.done{background:#f3f3f6;color:#696676}.task-status-button:hover{border-color:var(--red);color:var(--red)}.crm-task-table tr[data-crm-task-row]{cursor:pointer}.task-complete-button{color:#a3203c!important;border-color:#e5bac5!important;background:#fff7f9!important}.toast-undo{background:white!important;color:#9f1c39!important;margin-left:14px;min-height:38px!important}.crm-task-table .row-actions{min-width:190px}.crm-task-table .row-actions .btn{min-height:40px;font-size:12px;white-space:nowrap}
@media(max-width:1000px){.chat-inbox-workspace{grid-template-columns:1fr}.chat-inbox-list{max-height:350px}.chat-inbox-global{font-size:12px!important}.chat-inbox-customer{flex-wrap:wrap}}
@media(max-width:700px){.chat-inbox-global{font-size:0!important;padding:8px!important;min-width:42px}.chat-inbox-global:before{content:'✉';font-size:20px}.chat-inbox-global .unread-badge{font-size:11px;min-width:20px;min-height:20px}}
.chat-last-reply{display:block;font-size:11px;color:#8d4055;margin:5px 0;overflow-wrap:anywhere}.staff-settings{margin-top:24px}.staff-settings form label:not(.check){display:block;margin:16px 0 7px;font-size:13px;font-weight:600}.staff-settings form input:not([type=checkbox]),.staff-settings form select{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;font:inherit}.staff-settings form .btn{margin-top:16px}.staff-settings .status-row{gap:18px;flex-wrap:wrap}
.document-customers{display:grid;gap:10px}.document-customer{display:flex;align-items:center;gap:16px;text-align:left;padding:18px;border:1px solid var(--line,#dfe4ec);background:#fff;border-radius:12px;cursor:pointer;color:inherit;font:inherit;width:100%}.document-customer:hover,.document-folder:hover{border-color:#c52946;background:#fffafb}.document-customer>span:nth-child(2){flex:1;min-width:0}.document-customer strong,.document-customer small{display:block;overflow-wrap:anywhere}.document-customer small{color:#718096;margin-top:5px}.document-folder-icon{font-size:32px;color:#c52946}.document-breadcrumbs{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:20px 0}.document-folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}.document-folder{border:1px solid #dfe4ec;border-radius:12px;padding:14px}.document-folder-open{display:flex;flex-direction:column;gap:8px;text-align:left;width:100%;padding:6px;background:none;border:0;color:inherit;font:inherit;cursor:pointer}.document-folder-open>span{font-size:32px;color:#c52946}.document-folder-open small{color:#718096}.document-folder>button.linkbtn{margin-top:12px}.document-inline{display:flex;align-items:center;gap:12px}.document-inline input{flex:1;min-width:0}.document-browser form{margin:20px 0}.document-browser .form-extra{margin-bottom:24px}.document-browser table select{max-width:260px;min-width:140px}.document-browser .form-extra input{width:100%}@media(max-width:650px){.document-inline{flex-direction:column;align-items:stretch}.document-customer{flex-wrap:wrap}.document-customer .badge{margin-left:48px}}
.document-browser form>label:not(.check){display:block;font-weight:600;margin:16px 0 7px}.document-browser form>select,.document-browser form>input:not([type=checkbox]),.document-browser .document-inline input{display:block;width:100%;border:1px solid #dfe4ec;border-radius:8px;padding:11px 13px;background:#fff;color:inherit;font:inherit}.document-browser form>.check{margin:16px 0}.document-browser form>button{margin-top:8px}.document-folder-open svg,.document-folder-icon svg{width:32px;height:32px;display:block}.document-browser .file-drop{margin:12px 0}

.chat-agent-controls{display:grid;gap:.55rem;margin-bottom:.7rem}
.chat-agent-controls p{margin:0}
.chat-agent-controls select{display:block;width:min(100%,24rem)}
.chat-agent-controls [hidden]{display:none}

.chat-welcome{max-width:min(100%,680px)}
.chat-welcome p{margin-bottom:0}
.chat-draft-actions{margin-bottom:12px;align-items:center}
.chat-draft-actions span{font-size:12px}
.chat-original{font-size:12px;margin:10px 0}

/* The customer conversation grows with its composer and keeps its history in view. */
.customer-chat-panel.chat-with-fischer {
  display:flex; flex-direction:column; height:auto; max-height:none; min-height:0;
  max-width:1080px; margin-inline:auto; padding:clamp(14px,3vw,28px);
  gap:14px; border-color:#e8dde2; border-radius:20px;
}
.chat-with-fischer .panel-head { margin:0; align-items:center; }
.chat-with-fischer .panel-head h2 { margin:0; font-size:clamp(19px,2.5vw,25px); }
.chat-with-fischer .panel-head p { margin:4px 0 0; }
.chat-with-fischer .chat-status { margin:0; min-height:0; }
.chat-with-fischer .chat-status:empty { display:none; }
.chat-with-fischer .chat-messages {
  flex:none; height:clamp(300px,51dvh,620px); margin:0; padding:clamp(12px,2.4vw,24px);
  gap:14px; border-radius:14px; background:#f8f5f7;
}
.chat-with-fischer .chat-message {
  flex-shrink:0; min-width:0; max-width:min(84%,680px); box-shadow:0 1px 3px #3920310a;
  padding:13px 16px; border-radius:15px 15px 15px 4px;
}
.chat-with-fischer .chat-own { border-radius:15px 15px 4px 15px; background:#faeaf0; }
.chat-with-fischer .chat-message p { font-size:15px; line-height:1.6; margin:7px 0; }
.chat-with-fischer .chat-message-meta { font-size:11px; }
.chat-with-fischer [data-chat-form] {
  margin:0; padding:12px 14px; border:1px solid #e8dde2; border-radius:14px; background:#fff;
}
.chat-with-fischer textarea { margin:6px 0 9px; min-height:76px; padding:10px 12px; font-size:15px; }
.chat-with-fischer .chat-compose-footer { justify-content:flex-end; }
.chat-with-fischer .chat-compose-footer small { margin-right:auto; }
.chat-with-fischer .chat-agent-controls { margin-bottom:8px; }
.chat-file-trigger { display:flex; gap:8px; flex-wrap:wrap; align-items:center; min-width:0; }
.chat-file-trigger span { overflow-wrap:anywhere; font-size:12px; }
.chat-with-fischer [data-chat-file-details] {
  display:grid; gap:8px; background:#f8f5f7; border-radius:10px; padding:12px;
}
.chat-with-fischer [data-chat-file-details] input,.chat-with-fischer [data-chat-file-details] select {
  display:block; width:100%; margin-top:4px; padding:8px; border:1px solid #e1d5dc; border-radius:8px;
}
.chat-thinking strong { display:block; font-size:12px; color:#58434f; }
.chat-thinking-line { display:flex; align-items:center; gap:10px; margin-top:8px; font-size:13px; color:#65515d; }
.chat-thinking-dots { display:inline-flex; gap:4px; }
.chat-thinking-dots i { width:6px; height:6px; border-radius:50%; background:#b32445; animation:chat-dot 1s infinite alternate; }
.chat-thinking-dots i:nth-child(2) { animation-delay:150ms; }
.chat-thinking-dots i:nth-child(3) { animation-delay:300ms; }
@keyframes chat-dot { from { transform:translateY(0);opacity:.4; } to { transform:translateY(-4px);opacity:1; } }
@media(prefers-reduced-motion:reduce){ .chat-thinking-dots i { animation:none; } }
@media(max-width:700px){
  .customer-chat-panel.chat-with-fischer { padding:14px!important; gap:12px; }
  .chat-with-fischer .chat-messages { height:clamp(245px,48dvh,440px); padding:10px; }
  .chat-with-fischer .chat-message { max-width:94%; padding:10px 12px; }
  .chat-with-fischer .chat-compose-footer { flex-direction:row; align-items:center; gap:10px; }
  .chat-with-fischer .chat-compose-footer small { display:none; }
}

.chat-document-receipt { white-space: pre-line; }

.chat-with-fischer .chat-attachment {
  display:grid; gap:8px; margin-top:8px; padding:10px; border:1px solid #e6d9df;
  border-radius:12px; background:#fff; min-width:0;
}
.chat-attachment-file {display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:9px;}
.chat-file-mark {background:#f7eaf0; color:#902242; border-radius:8px; padding:7px 6px; font-size:10px; font-weight:700;}
.chat-file-title {font-size:13px; font-weight:600; overflow-wrap:anywhere;}
.chat-documents-link {font-size:13px; justify-self:start;}
.chat-filing-details summary {cursor:pointer; font-size:13px;}
.chat-filing-details[open] summary {margin-bottom:8px;}
.chat-selected-files {display:grid; gap:5px; margin:7px 0 0; padding:0; list-style:none;}
.chat-selected-files:empty {display:none;}
.chat-selected-files li {display:flex; gap:10px; align-items:center; justify-content:space-between; padding:5px 8px; background:#faf4f7; border-radius:7px;}
.chat-selected-files span {font-size:13px; overflow-wrap:anywhere;}
@media(max-width:520px){
  .chat-attachment-file {grid-template-columns:auto minmax(0,1fr);}
  .chat-attachment-file button {grid-column:2; justify-self:start;}
}

/* Customer composer: clear task choices and one compact attachment action. */
.chat-with-fischer .chat-messages{background:#f6f7f9;border-color:#e8ebef;border-radius:18px;scrollbar-width:thin;scrollbar-color:#c9cdd5 transparent}
.chat-with-fischer .chat-message{border-color:#e5e7ec;box-shadow:0 3px 12px #24314405;padding:16px 20px}
.chat-with-fischer .chat-own{background:#fbedf1;border-color:#f0d9e1}
.chat-with-fischer .chat-message-meta{color:#89909d;font-size:11px;gap:8px 24px}
.chat-with-fischer .chat-message-meta strong{color:#344054}
.chat-with-fischer .chat-message-receipt{color:#89909d;margin-top:10px}
.chat-with-fischer [data-chat-form]{padding:20px;border-color:#e2e5eb;border-radius:18px;box-shadow:0 6px 24px #24314405}
.chat-with-fischer .chat-agent-controls{gap:14px;margin:0 0 16px}
.fischer-mode-switch{display:flex;gap:6px;padding:5px;border-radius:13px;background:#f3f4f7;width:fit-content;max-width:100%}
.fischer-mode-switch button{display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:10px;background:transparent;color:#667085;padding:11px 16px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;min-height:44px}
.fischer-mode-switch svg{width:19px;height:19px;flex-shrink:0}
.fischer-mode-switch button[aria-pressed=true]{background:#fff;color:#b52343;border-color:#e6dce1;box-shadow:0 2px 5px #24314408}
.fischer-mode-switch button:hover{color:#b52343}
.fischer-mode-switch button:focus-visible,.fischer-upload:focus-visible{outline:2px solid #c52946;outline-offset:3px}
.chat-with-fischer .chat-file-trigger{display:grid;gap:12px;padding:16px;background:#fcfafb;border:1px solid #eee4e8;border-radius:12px}
.fischer-vehicle-heading{display:grid;gap:4px}
.fischer-vehicle-heading strong{font-size:14px;color:#344054}
.fischer-vehicle-heading span{font-size:12px!important;color:#667085;line-height:1.5}
.fischer-upload{display:flex;align-items:center;gap:13px;text-align:left;width:100%;padding:13px 16px;border:1px dashed #d2a8b5;border-radius:10px;background:white;color:#344054;font:inherit;cursor:pointer;min-height:70px}
.fischer-upload:hover{background:#fff5f8;border-color:#bd2648}
.fischer-upload>span:nth-child(2){flex:1;min-width:0}
.fischer-upload strong,.fischer-upload small{display:block;font-size:13px}
.fischer-upload small{font-weight:400;font-size:11px;color:#7a8190;margin-top:4px}
.fischer-upload .fischer-upload-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#f9e9ef;color:#b52343;font-size:23px}
.fischer-upload>span:last-child{font-size:22px;color:#b52343}
.fischer-privacy{font-size:11px;color:#7a8190}
.fischer-privacy summary{cursor:pointer;width:fit-content}
.fischer-privacy p{margin:8px 0 0!important;max-width:650px;line-height:1.6}
.chat-file-trigger [data-chat-file-status]:empty{display:none}
.chat-file-trigger [data-chat-file-status]{color:#465366;line-height:1.5}
.chat-with-fischer textarea{box-sizing:border-box;background:#fafbfc;border-color:#e3e6ec;min-height:90px;padding:13px 14px;margin:8px 0 14px;font-size:15px}
.chat-with-fischer textarea:focus{background:white;outline:2px solid #c5294633;outline-offset:0;border-color:#c52946}
.chat-with-fischer .chat-compose-footer .btn{min-height:44px;padding:11px 22px;border-radius:10px;font-size:13px}
.chat-with-fischer .chat-selected-files{margin:0}
.chat-with-fischer .chat-selected-files li{background:#f6f7f9;border:1px solid #e9ebef;padding:8px 12px;border-radius:10px}
.chat-with-fischer .fischer-resume{justify-self:start;font-size:12px;color:#b52343;background:transparent;border:0;padding:4px 0;min-height:34px;text-align:left}
@media(max-width:600px){
 .chat-with-fischer [data-chat-form]{padding:13px}
 .fischer-mode-switch{width:100%;box-sizing:border-box}
 .fischer-mode-switch button{flex:1;padding:10px 7px;font-size:12px;gap:6px}
 .chat-with-fischer .chat-file-trigger{padding:12px}
 .chat-with-fischer .chat-message{padding:13px 15px;max-width:94%}
 .chat-with-fischer .chat-message p{font-size:14px}
 .chat-with-fischer .chat-compose-footer .btn{width:100%}
 .fischer-upload{padding:11px;gap:10px}
}
