.operations-content { max-width: none; }
.operations-heading, .onboard-shortcut { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; }
.operations-heading .page-heading { margin-bottom:14px; }
.onboard-shortcut { align-items:center; background:var(--paper); border:1px solid var(--border); border-inline-start:3px solid var(--red); padding:14px 18px; border-radius:6px; margin-bottom:20px; }
.onboard-layout { display:grid; grid-template-columns:minmax(0, 2.4fr) minmax(245px, 1fr); align-items:start; gap:20px; }
.onboard-checklist header { display:grid; gap:10px; }
.onboard-checklist header strong { font-variant-numeric:tabular-nums; margin-inline-start:8px; color:var(--red-dark); }
.onboard-checklist progress { width:100%; height:.75rem; accent-color:var(--red); }
.onboard-checklist ol { list-style:none; padding:0; margin:14px 0 0; }
.onboard-step { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; padding:18px 0; border-top:1px solid var(--border); }
.onboard-step p { margin-top:5px; }
.onboard-marker { inline-size:21px; block-size:21px; border-radius:50%; border:1px solid var(--border); display:grid; place-items:center; font-size:.85rem; }
.onboard-marker[data-done=true], .badge[data-status=onboardingComplete] { color:#116546; background:#e6f6ed; border-color:#8dc5a8; }
.onboard-step-actions, .service-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.onboard-next { border-top:3px solid var(--red); display:grid; gap:12px; }
.service-detail > * { min-width:0; }
.service-nav { display:grid; align-content:start; gap:6px; }
.service-nav a { display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; padding:9px 10px; border-radius:5px; text-decoration:none; overflow-wrap:anywhere; }
.service-nav a:hover { background:var(--surface-muted); }
.service-nav a[aria-current=page] { background:var(--rose); color:var(--red-dark); font-weight:680; }
.service-section-tabs { margin:0 0 14px; }
.service-chat-dialog { width:min(1060px, calc(100% - 28px)); max-height:calc(100dvh - 32px); }
.service-chat-editor { display:grid; grid-template-columns:minmax(285px, 1fr) minmax(300px, .9fr); align-items:stretch; }
.service-chat-settings { min-width:0; padding:22px; }
.service-chat-settings > form { display:grid; gap:16px; }
.service-chat-settings .form-actions { align-items:center; }
.service-chat-settings .form-actions [role=status] { color:var(--muted); flex:1 0 100%; }
.service-chat-sections { display:flex; gap:6px; flex-wrap:wrap; padding-bottom:16px; }
.service-chat-sections [aria-pressed=true] { color:var(--red-dark); border-color:var(--red); background:var(--rose); }
.service-chat-preview { min-width:0; padding:20px; background:var(--surface-muted); }
.service-chat-preview-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.service-chat-preview-heading .field { margin:0; }
.service-chat-preview [data-bf-chat-preview] { margin-inline:auto; max-width:390px; }
.service-chat-preview-only { max-width:480px; margin:auto; padding:18px; }
.service-chat-preview-only > p { color:var(--muted); margin-bottom:10px; }
@media(max-width:740px) { .service-chat-editor { grid-template-columns:minmax(0, 1fr); } }
.service-detail { display:grid; grid-template-columns:minmax(0, 1.9fr) minmax(240px, 1fr); align-items:start; gap:14px; }
.service-stack { display:grid; align-content:start; gap:12px; }
.agent-builder-steps { list-style:none; margin:0; padding:0; display:flex; gap:8px; flex-wrap:wrap; }
.agent-builder-steps :is(a,span) { display:block; padding:8px 12px; color:var(--muted); }
.agent-builder-steps a { color:var(--red); }
.agent-builder-steps [aria-current="step"] { background:var(--paper); border-radius:6px; box-shadow:inset 0 0 0 1px var(--border); color:var(--red); font-weight:600; }
.agent-builder-case { border-top:1px solid var(--border); padding:16px 0; overflow-wrap:anywhere; }
.agent-builder-case h3,.agent-builder-case h4 { margin:0; }
.agent-builder-case p { margin:4px 0 0; }
.agent-builder-comparison { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:12px; }
.agent-builder-comparison > div { background:var(--paper); padding:14px; border:1px solid var(--border); border-radius:6px; }
.agent-builder-comparison h4 { margin-bottom:8px; }
.agent-list-scope { display:block; color:var(--muted); }
.seo-agent-configuration { max-width:64rem; }
.seo-agent-change .agent-builder-comparison { margin-block-end:12px; }
.seo-agent-sources { padding:0; margin:12px 0 0; list-style:none; display:grid; gap:8px; }
.seo-agent-sources li { padding-inline-start:12px; border-inline-start:2px solid var(--border); }
.seo-agent-sources blockquote { margin:4px 0 0; color:var(--muted); white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:700px) {
    .agent-builder-comparison { grid-template-columns:1fr; }
}
.service-knowledge .service-section-tabs { margin-bottom:0; }
.service-knowledge .field-error:empty, .service-knowledge .service-stack:empty { display:none; }
.service-knowledge-filter { max-width:32rem; margin:0 0 12px; }
.service-knowledge-filter .field { margin:0; }
.service-knowledge .panel { margin-block-end:0; }
.service-knowledge .workspace-list-scroll { border:1px solid var(--list-border); border-radius:var(--list-radius); }
.service-knowledge .panel > form { max-width:52rem; }
.service-knowledge .panel > .service-actions { margin-bottom:12px; }
.service-knowledge-hit { border:1px solid var(--border, #d7dce2); border-radius:8px; padding:14px 16px; overflow-wrap:anywhere; }
.service-knowledge-hit h3 { margin:0 0 8px; }
.service-window-actions { margin-top:12px; }
.service-conversation-source { color:var(--muted); overflow-wrap:anywhere; }
.service-panel-tools { display:grid; justify-items:start; gap:10px; padding:12px var(--list-gutter); }
.service-chat-record .service-section-tabs { margin-bottom:0; }
.crm-record-drawer[data-record-type=box] .crm-record-summary:empty { display:none; }
.crm-record-summary:empty + .service-chat-record { margin-top:0; }
.service-meta { display:grid; gap:9px; }
.service-meta div { display:grid; grid-template-columns:minmax(110px,1fr) minmax(0,1fr); gap:8px; padding-bottom:5px; border-bottom:1px solid var(--border); }
.service-meta dt { color:var(--muted); }
.service-meta dd { margin:0; overflow-wrap:anywhere; }
.agent-rule-details { max-inline-size:68rem; }
.agent-rule-details .service-meta > div { grid-template-columns:minmax(7rem, 10rem) minmax(0, 1fr); padding-block:10px; }
@media(max-width:540px) { .agent-rule-details .service-meta > div { grid-template-columns:1fr; gap:4px; } }
.service-ticket-head>.service-meta { grid-template-columns:repeat(3,minmax(0,1fr)); }
.service-ticket-head>.service-meta>div { grid-template-columns:minmax(0,1fr); gap:3px; }
@media(max-width:540px) { .service-ticket-head>.service-meta { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.service-message { border:1px solid var(--border); background:var(--paper); padding:13px 15px; border-radius:7px; }
.service-message[data-direction=outbound] { border-inline-start:3px solid var(--red); }
.service-message[data-visibility=internal] { background:var(--surface-muted); }
.service-message p,.service-commitments { white-space:pre-wrap; overflow-wrap:anywhere; }
.service-message header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:5px 10px; margin-bottom:8px; }
.service-status[data-status=serviceStatus_failed], .service-overdue { color:var(--red-dark); }
.service-status[data-status=serviceStatus_resolved],.service-status[data-status=serviceStatus_sent] { color:#116546; background:#e6f6ed; }
.service-heading { margin:8px 0 13px; }
.service-reply textarea { resize:vertical; }
.service-empty { padding:14px; color:var(--muted); }
@media(max-width:960px) { .service-detail { grid-template-columns:minmax(0,1fr); } }
@media(max-width:780px) { .onboard-layout { grid-template-columns:minmax(0,1fr); } }
@media(max-width:540px) { .onboard-step { grid-template-columns:auto minmax(0,1fr); gap:10px; } .onboard-step-actions { grid-column:2; } }
.service-workbench .workspace-list { min-height:0; }
.service-workbench .operations-heading { align-items:center; }
.service-chips { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.service-chips a { display:inline-flex; align-items:center; min-height:34px; padding:4px 11px; border:1px solid var(--border); border-radius:6px; text-decoration:none; }
.service-chips a:hover { background:var(--surface-muted); }
.service-chips a[aria-current=page] { color:var(--red-dark); background:var(--rose); border-color:var(--red); font-weight:650; }
.service-queue-controls { display:grid; gap:9px; margin-bottom:12px; }
.service-conversation-list { margin:0; padding:0; list-style:none; }
.service-conversation-list li { display:grid; grid-template-columns:minmax(0,1fr) minmax(185px,24%); gap:18px; border-top:1px solid var(--border); padding:14px 0; }
.service-conversation-summary { min-width:0; overflow-wrap:anywhere; }
.service-conversation-summary .badge { margin-inline-start:8px; }
.service-conversation-summary > small { display:block; }
.service-conversation-summary p { margin:4px 0 0; color:var(--muted); }
.service-conversation-meta { display:grid; align-content:start; gap:3px; font-size:.9rem; }
.service-conversation-meta small { color:var(--muted); }
.service-inbox-split { display:grid; grid-template-columns:minmax(250px, 340px) minmax(0,1fr); align-items:start; gap:14px; }
.service-inbox-split > * { min-width:0; }
.service-inbox-split .service-conversation-list { max-height:55vh; overflow:auto; }
.service-inbox-split .service-conversation-list li { display:block; padding:10px 8px; }
.service-inbox-split .service-conversation-list li { position:relative; }
.service-inbox-split .service-conversation-list a.text-link::after { content:''; position:absolute; inset:0; }
.service-inbox-split .service-conversation-list li:has(a):hover { background:var(--surface-muted); }
.service-inbox-split .service-conversation-list li:focus-within { outline:2px solid var(--red); outline-offset:-2px; }
.service-inbox-split .service-conversation-list li[data-selected=true] { background:var(--rose); }
.service-inbox-split .service-conversation-summary p { white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.service-inbox-split .service-conversation-meta { display:flex; flex-wrap:wrap; gap:4px 8px; margin-top:5px; }
.service-inbox-split .service-conversation-meta small { flex-basis:100%; }
.service-chat-pane { display:grid; grid-template-rows:auto minmax(180px,1fr) auto auto; height:clamp(520px,72dvh,820px); }
.service-chat-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding-bottom:12px; border-bottom:1px solid var(--border); }
.service-chat-head h2,.service-chat-head p { margin:0; overflow-wrap:anywhere; }
.service-chat-thread { display:flex; flex-direction:column; gap:10px; overflow:auto; padding:14px 4px; }
.service-chat-bubble { align-self:flex-start; max-width:85%; border-radius:10px; background:var(--surface-muted); padding:9px 12px; }
.service-chat-bubble[data-direction=outbound] { align-self:flex-end; background:var(--rose); }
.service-chat-bubble header { display:flex; flex-wrap:wrap; gap:4px 12px; font-size:.86rem; }
.service-chat-bubble header span { color:var(--muted); }
.service-chat-bubble p { margin:4px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.service-chat-composer { border-top:1px solid var(--border); padding-top:8px; }
.service-chat-composer textarea { min-height:3rem; }
.service-chat-composer details[open] { max-height:140px; overflow:auto; }
.service-chat-back { display:none; }
@media(max-width:920px) {
    .service-inbox-split { display:block; }
    .service-inbox-split[data-open=false] > :last-child,.service-inbox-split[data-open=true] > :first-child { display:none; }
    .service-chat-back { display:inline; flex-basis:100%; }
}
.service-ticket-tools { display:flex; align-items:end; justify-content:space-between; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.service-ticket-tools form { display:flex; align-items:end; gap:8px; flex-wrap:wrap; }
.service-ticket-tools .form-actions { margin:0; }
.service-ticket-filters { padding:14px var(--list-gutter, 16px); }
.service-ticket-contact-search { display:flex; align-items:end; gap:8px; flex-wrap:wrap; }
.service-ticket-contact-search .field { flex:1 1 220px; margin:0; }
.service-ticket-contact-search .form-actions { margin:0; }
.service-ticket-contact-results:not(:empty) { display:grid; gap:4px; }
.service-ticket-contact-hit { display:grid; justify-content:start; gap:2px; width:100%; min-width:0; text-align:start; overflow-wrap:anywhere; }
.service-ticket-contact-hit span { color:var(--muted); }
.service-ticket-list > h2 { display:none; }
.service-ticket-filters > form { display:grid; gap:10px; }
.service-ticket-quick { display:grid; grid-template-columns:minmax(150px,1fr) minmax(146px,.9fr) minmax(115px,.62fr) minmax(160px,1.2fr) auto; align-items:end; gap:10px; }
.service-ticket-quick .field, .service-ticket-extra .field { margin:0; min-width:0; }
.service-ticket-quick .form-actions { margin:0; align-items:center; }
.service-ticket-advanced { justify-self:start; width:max-content; max-width:100%; }
.service-ticket-advanced[open] { width:100%; }
.service-ticket-extra { display:grid; grid-template-columns:repeat(4,minmax(120px,1fr)); gap:10px; }
@media(max-width:1250px) { .service-ticket-quick { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:680px) { .service-ticket-quick, .service-ticket-extra { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:380px) { .service-ticket-quick, .service-ticket-extra { grid-template-columns:minmax(0,1fr); } }
.service-note { margin-top:12px; border-top:1px solid var(--border); padding-top:8px; }
.service-note summary { cursor:pointer; margin-bottom:5px; }
@media(max-width:620px) {
    .service-conversation-list li { grid-template-columns:minmax(0,1fr); gap:7px; }
    .service-conversation-meta { display:flex; flex-wrap:wrap; gap:5px 10px; }
}
.service-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin:12px 0; }
.service-metrics div { border:1px solid var(--border); border-radius:7px; padding:13px; }
.service-metrics dt { color:var(--muted); }
.service-metrics dd { margin:4px 0 0; font-size:1.6rem; font-weight:680; font-variant-numeric:tabular-nums; }
.employee-service-copy { white-space:pre-wrap; overflow-wrap:anywhere; }
[data-employee-action] { padding:10px 12px; border:1px solid var(--border); border-radius:6px; }
[data-employee-action] summary { cursor:pointer; padding:3px 0; }
[data-employee-action] form { margin-top:8px; }

[data-feedback-action] { padding:10px 12px; border:1px solid var(--border); border-radius:6px; }
[data-feedback-action] summary { cursor:pointer; }
.agent-state-control .field-error:empty {display:none}
.expansion-setting,.expansion-actions {display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap}
.expansion-actions {align-items:flex-end}
.notice-center { min-width: 0; }
.notice-controls { justify-content: flex-end; align-items: end; margin-bottom: 16px; }
.notice-controls .field, .notice-filters .field { margin: 0; }
.notice-controls > .text-link { align-self: center; }
.notice-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
    border-bottom: 1px solid var(--list-divider);
    margin-bottom: 16px;
}
.notice-tabs .button {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--muted);
    margin-bottom: -1px;
}
.notice-tabs .button[aria-current], .notice-tabs .button:hover { color: var(--red-dark); }
.notice-tabs .button[aria-current] { border-bottom-color: currentColor; font-weight: 700; }
.notice-filters { align-items: end; margin-bottom: 12px; }
.notice-filters input { min-width: min(260px, 100%); }
.notice-table {
    background: var(--surface, white);
    border: 1px solid var(--list-border);
    border-radius: var(--list-radius);
}
.notice-table .workspace-table td { white-space: normal; }
.notice-table .workspace-table th:last-child, .notice-table .workspace-table td:last-child { white-space: nowrap; }
.notice-name { color: var(--red-dark); }
.notice-rule-state { display: grid; justify-items: start; gap: 4px; }
.notice-rule-state small { color: var(--muted); }
.notice-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef1f4;
    color: #48566a;
    white-space: nowrap;
}
.notice-status[data-enabled="true"] { background: #dff4ec; color: #116451; }
.notice-editor { display: grid; gap: 12px; }
.notice-editor > p, .notice-editor .field { margin: 0; }
.notice-editor [aria-live]:empty { display: none; }
.notice-editor-footer { padding-top: 12px; border-top: 1px solid var(--list-divider); }
.notice-template-fields > .field { flex: 1 1 140px; }

.group-management { display:grid; gap:16px; }
.group-management .panel { margin-block-end:0; }
.group-management-filters { display:flex; flex-wrap:wrap; gap:16px; align-items:end; }
.group-management-filters form { display:flex; gap:10px; flex-wrap:wrap; align-items:end; }
.group-management-filters :is(.field,.form-actions) { margin:0; }
.group-management-metrics { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr)); }
.group-management-metric { display:grid; align-content:start; gap:8px; text-decoration:none; color:var(--ink); }
.group-management-metric > span { color:var(--muted); }
.group-management-metric > strong { font-size:1.35rem; overflow-wrap:anywhere; }
.group-management-metric:hover { border-color:var(--brand-red,#c60020); }
