#native-chat-panel{padding:8px 0}.nc-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.nc-heading h1{margin:0;font-size:28px}.nc-heading p{margin:6px 0;color:#657085}.nc-badges{display:flex;flex-wrap:wrap;gap:8px}.nc-badge{background:#e9f5ef;color:#14603e;padding:5px 10px;border-radius:20px;font-size:12px}.nc-filters{display:grid;grid-template-columns:2fr repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.nc-filters input,.nc-filters select{width:100%;margin:0}.nc-businesses{display:flex;gap:8px;overflow:auto;padding:0 0 12px}.nc-businesses button{white-space:nowrap;border-radius:20px;font-size:13px;padding:7px 13px;min-height:36px}.nc-businesses button.active{background:#174d3d;color:white}.nc-layout{display:grid;grid-template-columns:minmax(270px,340px) minmax(0,1fr);border:1px solid #dce3df;background:white;border-radius:18px;overflow:hidden;height:calc(100dvh - 275px);min-height:440px}.nc-sidebar{border-right:1px solid #e3e8e5;overflow-y:auto;background:#fbfcfb}.nc-thread{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #e5eae7;border-radius:0;padding:16px;background:transparent;color:#17231e;box-shadow:none}.nc-thread:hover,.nc-thread.selected{background:#eaf3ee}.nc-thread-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.nc-thread strong{font-size:15px}.nc-thread small{color:#64736b;display:block;margin-top:5px}.nc-thread .nc-preview{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;margin-top:7px;color:#64736b}.nc-unread{background:#1a6849;color:white;border-radius:12px;padding:2px 7px;font-size:12px}.nc-discussion{display:flex;flex-direction:column;min-width:0;min-height:0}.nc-empty{display:grid;place-content:center;text-align:center;color:#6d7971;height:100%;padding:28px}.nc-empty h2{color:#294739;font-size:22px}.nc-contact{padding:16px 20px;border-bottom:1px solid #e1e7e3}.nc-contact h2{margin:0;font-size:20px}.nc-contact p{margin:5px 0;font-size:13px;color:#65736a}.nc-contact .nc-contact-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px}.nc-contact-tools select{width:auto;max-width:210px;padding:6px;font-size:13px;margin:0}.nc-contact-tools button{padding:6px 10px;font-size:13px;min-height:34px}.nc-stream{flex:1;overflow:auto;padding:18px;background:#f5f8f5;min-height:100px;display:flex;flex-direction:column;gap:12px}.nc-message{max-width:82%;padding:12px 15px;border:1px solid #e0e8e2;border-radius:15px;background:white;align-self:flex-start}.nc-message.agent{align-self:flex-end;background:#e3f1e8;border-color:#d1e5d8}.nc-message.note{align-self:stretch;background:#fff3d4;max-width:100%;border-color:#ebdfb5}.nc-message p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.nc-message .nc-meta{font-size:11px;color:#68766b;display:flex;justify-content:space-between;gap:12px}.nc-message button{font-size:12px;margin:4px 0;padding:5px 9px}.nc-compose{padding:12px 18px;border-top:1px solid #e0e7e2}.nc-compose textarea{width:100%;min-height:75px;max-height:170px;resize:vertical;margin:7px 0}.nc-compose .nc-send-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.nc-compose label{font-size:13px;display:flex;align-items:center;gap:6px;margin:0}.nc-compose input[type=checkbox]{width:auto}.nc-compose select{width:auto;max-width:260px;margin:0;padding:6px;font-size:13px}.nc-compose input[type=file]{max-width:220px;font-size:12px;padding:0;border:0}.nc-error{color:#a52d20;font-size:13px;white-space:pre-wrap;margin:7px 0}.nc-settings{margin:16px 0;border:1px solid #dce4df;border-radius:16px;background:#f7faf7;padding:18px}.nc-settings summary{font-weight:650;cursor:pointer}.nc-setting-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:14px}.nc-setting-card{background:white;padding:18px;border:1px solid #e0e7e2;border-radius:12px}.nc-setting-card h3{margin:0 0 10px}.nc-setting-card p,.nc-setting-card small{font-size:13px;color:#637067}.nc-setting-card label{font-size:13px}.nc-site-row{display:grid;grid-template-columns:1fr auto;gap:10px;padding:11px 0;border-bottom:1px solid #edf0ed}.nc-site-row small{display:block;word-break:break-word}.nc-site-row select{padding:6px;margin:0;width:auto;font-size:13px}.nc-geo-credit{font-size:11px;color:#79847c;margin:9px 0}.nc-geo-credit a{color:inherit}.nc-loader{font-size:13px;color:#6d7a71;padding:18px}.nc-stats{font-size:13px;color:#526459}.nc-file-list{font-size:12px;color:#506b58}.nc-older{align-self:center;font-size:12px}.nc-mobile-back{display:none}#nav-chat .nc-nav-count{background:#1f6548;color:white;border-radius:12px;font-size:11px;padding:2px 5px;margin-left:4px}
@media(max-width:900px){.nc-filters{grid-template-columns:1fr 1fr}.nc-layout{grid-template-columns:270px minmax(0,1fr)}.nc-setting-grid{grid-template-columns:1fr}}
@media(max-width:650px){.nc-heading{align-items:flex-start}.nc-heading h1{font-size:24px}.nc-heading .actions{flex-direction:column;align-items:stretch}.nc-heading button{font-size:12px;padding:7px 10px}.nc-layout{grid-template-columns:1fr;height:calc(100dvh - 280px);min-height:420px}.nc-layout.has-selection .nc-sidebar{display:none}.nc-layout:not(.has-selection) .nc-discussion{display:none}.nc-mobile-back{display:inline-block}.nc-contact{padding:12px}.nc-contact h2{font-size:17px}.nc-contact-tools select{max-width:165px}.nc-compose{padding:10px}.nc-message{max-width:94%}.nc-filters input,.nc-filters select{font-size:13px;padding:9px}.nc-stream{padding:12px}.nc-settings{padding:12px}.nc-setting-card{padding:12px}}

/* Isolate the inbox from the portal aside and form defaults. */
.nc-sidebar{display:block;max-width:none;margin:0;padding:0}.nc-layout{min-height:540px}.nc-contact-tools input{flex:1 1 110px;width:150px;max-width:180px;margin:0;padding:6px 8px;font-size:13px;min-height:34px}.nc-compose{flex-shrink:0}.nc-contact{flex-shrink:0}.nc-message p{color:#26382c}.nc-contact-tools button{white-space:nowrap}@media(max-width:650px){.nc-layout{height:auto;min-height:570px}.nc-layout.has-selection .nc-discussion{min-height:570px}.nc-stream{min-height:150px;max-height:48dvh}.nc-contact-tools{gap:5px}.nc-contact-tools button{font-size:11px}.nc-contact-tools input{max-width:150px}.nc-heading{flex-wrap:wrap}.nc-heading .actions{flex-direction:row}.nc-filters{grid-template-columns:1fr 1fr}.nc-filters input{grid-column:1/-1}}

.nc-contact-heading {
 display: flex;
 align-items: center;
 gap: 10px;
}
.nc-avatar {
 position: relative;
 display: grid;
 place-items: center;
 flex: 0 0 36px;
 width: 36px;
 height: 36px;
 overflow: hidden;
 border-radius: 50%;
 background: #e8effb;
 color: #28476d;
 font-size: 12px;
 font-weight: 700;
}
.nc-avatar img {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
}
.nc-avatar img[hidden],
.nc-profile-link[hidden] { display: none; }
.nc-contact-fields { margin: 8px 0; }
.nc-contact-fields summary {
 cursor: pointer;
 font-weight: 600;
 color: #254f42;
}
.nc-contact-form {
 display: flex;
 flex-wrap: wrap;
 align-items: end;
 gap: 8px;
 margin: 8px 0 0;
}
.nc-contact-form label {
 flex: 1 1 170px;
 min-width: 0;
 font-size: 13px;
}
.nc-contact-form input { width: 100%; margin: 3px 0 0; }
.nc-contact-form button { white-space: nowrap; }
.nc-contact-status { flex: 1 0 100%; }
.nc-contact-status:empty { display: none; }
.nc-contact-status[data-state="error"] { color: #a22424; }

.nc-pagination{position:sticky;bottom:0;background:#fbfcfb;border-top:1px solid #e3e8e5;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:12px;font-size:12px}.nc-pagination[hidden]{display:none}.nc-pagination button{font-size:12px;padding:6px 8px}

/* Admin follow-up and source diagnostics use the portal Minéral & sauge tokens. */
#native-chat-panel .nc-filters{grid-template-columns:minmax(220px,2fr) repeat(5,minmax(0,1fr))}
#native-chat-panel :is(.nc-health,.nc-reminders){margin:0 0 12px;border:1px solid var(--ms-line,#dde3df);border-radius:10px;padding:12px 16px;background:var(--ms-surface,#fff)}
#native-chat-panel :is(.nc-health,.nc-reminders)[hidden]{display:none}
#native-chat-panel :is(.nc-health,.nc-reminders,.nc-thread-actions)>summary{cursor:pointer;color:var(--ms-forest,#245b47);font-weight:600;min-height:32px;overflow-wrap:anywhere}
#native-chat-panel :is(.nc-hint,.nc-reminder small){color:var(--ms-muted,#637069);font-size:12px;line-height:1.5}
#native-chat-panel #nc-health-sources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
#native-chat-panel .nc-health-source{border:1px solid var(--ms-line,#dde3df);border-radius:8px;padding:12px;min-width:0;overflow-wrap:anywhere}
#native-chat-panel .nc-health-source-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
#native-chat-panel .nc-health-source h3{font-size:15px;margin:0}
#native-chat-panel .nc-health-source p{font-size:12px;margin:8px 0}
#native-chat-panel :is(.nc-source-state,.nc-followup-state){display:inline-block;border-radius:6px;padding:3px 7px;background:var(--ms-canvas,#f5f6f4);color:var(--ms-muted,#637069);font-size:12px;font-weight:600}
#native-chat-panel .nc-source-state.success{background:var(--ms-success-bg,#edf5ef);color:var(--ms-success,#2f6f4e)}
#native-chat-panel :is(.nc-source-state.error,.nc-source-error){color:var(--ms-error,#b4433d)}
#native-chat-panel .nc-source-state.error{background:var(--ms-error-bg,#fdf0ee)}
#native-chat-panel .nc-thread-followup{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px;font-size:12px;color:var(--ms-muted,#637069)}
#native-chat-panel .nc-thread-followup>span:last-child{overflow-wrap:anywhere}
#native-chat-panel .nc-followup-state.needs-reply{background:var(--ms-sage,#eaf2ed);color:var(--ms-forest,#245b47)}
#native-chat-panel .is-overdue{color:var(--ms-warning,#94631f)}
#native-chat-panel .nc-followup-state.is-overdue{background:var(--ms-warning-bg,#fff6e8)}
#native-chat-panel .nc-thread-actions{margin-top:10px;border-top:1px solid var(--ms-line,#dde3df);padding-top:8px;min-width:0}
#native-chat-panel .nc-thread-actions[open]{max-height:min(44dvh,420px);overflow:auto;padding-right:4px}
#native-chat-panel .nc-thread-actions h3{font-size:14px;margin:14px 0 6px}
#native-chat-panel :is(.nc-followup-form,.nc-relation-form,.nc-linked-actions){display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin:8px 0}
#native-chat-panel :is(.nc-followup-form,.nc-relation-form) label{flex:1 1 180px;min-width:0;font-size:12px;margin:0}
#native-chat-panel :is(.nc-followup-form,.nc-relation-form) :is(input,select){width:100%;min-width:0;margin:4px 0 0}
#native-chat-panel :is(.nc-followup-form,.nc-relation-form) p{flex-basis:100%}
#native-chat-panel :is(.nc-thread-actions,.nc-health,.nc-reminders) button{min-height:44px;font-size:13px;padding:8px 12px;white-space:normal}
#native-chat-panel .nc-thread-link{display:inline-flex;align-items:center;min-height:44px;font-size:13px;overflow-wrap:anywhere;color:var(--ms-forest,#245b47)}
#native-chat-panel .nc-linked-list{display:flex;gap:8px;flex-wrap:wrap;min-width:0}
#native-chat-panel .nc-linked-list p{flex-basis:100%;overflow-wrap:anywhere}
#native-chat-panel .nc-reminder{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--ms-line,#dde3df);padding:12px 0}
#native-chat-panel .nc-reminder.is-read{color:var(--ms-muted,#637069)}
#native-chat-panel .nc-reminder p{margin:5px 0;overflow-wrap:anywhere}
#native-chat-panel :is(#nc-health-status,#nc-reminders-status,#nc-followup-status,#nc-relations-status){font-size:13px;color:var(--ms-ink,#202824);white-space:pre-wrap;overflow-wrap:anywhere}
#native-chat-panel :is(#nc-followup-status,#nc-relations-status):empty{display:none}
@media(max-width:1150px){#native-chat-panel .nc-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:651px){#native-chat-panel .nc-contact{max-height:45%;overflow-y:auto}}
@media(max-width:650px){
 #native-chat-panel .nc-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 #native-chat-panel .nc-filters input{grid-column:1/-1}
 #native-chat-panel #nc-health-sources{grid-template-columns:1fr}
 #native-chat-panel .nc-reminder{align-items:stretch;flex-direction:column}
 #native-chat-panel :is(.nc-health,.nc-reminders){padding:10px 12px}
 #native-chat-panel .nc-thread-actions[open]{max-height:45dvh}
 #native-chat-panel :is(.nc-thread-actions,.nc-health,.nc-reminders) :is(input,select){font-size:16px;min-height:44px}
 #native-chat-panel .nc-thread-actions .nc-linked-actions>button{flex:1 1 150px}
}
