.ltn-staff-assist-open{color:#174cc8!important;background:#eaf1ff!important;border:1px solid #bfd2ff!important;white-space:nowrap}
.ltn-staff-assist-dialog{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #cbd8eb;border-radius:16px;background:#fff;color:#173250;box-shadow:0 25px 90px #10284b45;overflow:auto}
.ltn-staff-assist-dialog::backdrop{background:#15243e77;backdrop-filter:blur(3px)}
#ltnStaffAssistForm{display:flex;flex-direction:column;gap:13px;padding:22px;min-width:0}
.ltn-assist-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.ltn-assist-heading h3{margin:0;font-size:18px}.ltn-assist-heading small{opacity:.7}.ltn-assist-heading button{width:40px;min-height:40px;border-radius:10px;border:1px solid #cbd8eb;background:#f1f5fb;color:inherit;font-size:18px}
.ltn-assist-hint{margin:0;font-size:12px;padding:10px 12px;background:#edf4ff;border-radius:9px;line-height:1.6}
#ltnStaffAssistForm label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;min-width:0}
#ltnStaffAssistForm textarea,#ltnStaffAssistForm select{width:100%;min-width:0;box-sizing:border-box;border:1px solid #becde3;background:#fff;color:#173250;border-radius:10px;padding:11px 12px;font:inherit;line-height:1.6;resize:vertical}
#ltnStaffAssistForm textarea:focus,#ltnStaffAssistForm select:focus{outline:2px solid #92b9ff;outline-offset:1px}
#ltnStaffAssistForm button.primary-btn{min-height:44px;border:0;background:#075deb;color:white;border-radius:10px;padding:11px 15px;font:inherit;font-weight:600;width:100%}
#ltnStaffAssistForm button:disabled{opacity:.55;cursor:wait}#ltnStaffAssistFeedback{color:#b6333a;white-space:pre-wrap;font-size:13px;line-height:1.6}
#ltnStaffAssistResult{display:flex;flex-direction:column;gap:12px;border-top:1px solid #dce5f0;padding-top:15px}#ltnStaffAssistResult[hidden]{display:none}
#ltnStaffAssistResult details{font-size:12px}#ltnStaffAssistResult summary{cursor:pointer}#ltnStaffAssistEvidence{white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;background:#f4f7fc;border-radius:8px;max-height:170px;overflow:auto;margin-top:8px}
#ltnStaffAssistForm .ltn-assist-confirm{display:flex;flex-direction:row;align-items:flex-start;font-size:12px;line-height:1.6}#ltnStaffAssistConfirm{width:19px;height:19px;flex-shrink:0;accent-color:#075deb}
.ltn-assist-foot,#ltnStaffAssistResult>small{font-size:11px;color:#63748c;line-height:1.6;margin:0}
@media(max-width:700px){#ltnStaffAssistForm{padding:16px;gap:11px}.ltn-assist-heading h3{font-size:16px}.ltn-staff-assist-dialog{border-radius:13px}.chat-team-actions:has(.ltn-staff-assist-open){flex-wrap:wrap!important}.chat-team-actions .ltn-staff-assist-open{min-height:38px}}
html[data-theme="dark"] .ltn-staff-assist-dialog{background:#152438;color:#e3edff;border-color:#405b7b}html[data-theme="dark"] #ltnStaffAssistForm textarea,html[data-theme="dark"] #ltnStaffAssistForm select{background:#101c2d;color:#e3edff;border-color:#405b7b}html[data-theme="dark"] .ltn-assist-hint,html[data-theme="dark"] #ltnStaffAssistEvidence{background:#1b3150}html[data-theme="dark"] .ltn-assist-foot,html[data-theme="dark"] #ltnStaffAssistResult>small{color:#a1b4d0}

textarea#sendInput{font:inherit;line-height:1.5;resize:vertical;min-height:44px;max-height:180px;box-sizing:border-box;border:1px solid #becde3;border-radius:10px;padding:10px 12px;flex:1;min-width:0;background:var(--card,#fff);color:inherit}

.ltn-assist-catalog{border:1px solid #d4e2f6;background:#f7faff;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:8px;min-width:0}
.ltn-assist-catalog-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}
#ltnStaffCatalogAll{font:inherit;font-size:12px;min-height:34px;padding:6px 10px;border:1px solid #bfd2f0;border-radius:8px;background:#fff;color:#2456a0;white-space:nowrap}
#ltnStaffCatalogAll[aria-pressed="true"]{background:#e2edff;border-color:#4285eb;color:#104fb5}
#ltnStaffCatalogSearch{width:100%;box-sizing:border-box;min-width:0;min-height:42px;padding:9px 11px;border:1px solid #b9cdea;border-radius:9px;color:#173250;background:#fff;font:inherit;font-size:14px}
#ltnStaffCatalogSearch:focus,.ltn-assist-catalog-choice:focus-visible,#ltnStaffCatalogAll:focus-visible{outline:2px solid #75a6f2;outline-offset:2px}
#ltnStaffCatalogContext,#ltnStaffCatalogStatus,#ltnStaffCatalogMore{font-size:11px;line-height:1.5;color:#536a88}
#ltnStaffCatalogContext:empty,#ltnStaffCatalogStatus:empty,#ltnStaffCatalogMore:empty{display:none}
.ltn-assist-catalog-items{max-height:222px;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:7px;padding:2px}
.ltn-assist-catalog-choice{width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border:1px solid #d3dff0;border-radius:10px;background:#fff;color:#173250;text-align:start;font:inherit;font-size:13px;cursor:pointer;flex-shrink:0}
.ltn-assist-catalog-choice:hover,.ltn-assist-catalog-choice.is-selected{background:#edf4ff;border-color:#79a5ed}
.ltn-assist-catalog-info{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.ltn-assist-catalog-info strong{font-size:13px;overflow-wrap:anywhere}
.ltn-assist-catalog-info small{font-size:11px;color:#657691;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.ltn-assist-catalog-action{display:flex;flex-direction:column;gap:5px;align-items:flex-end;max-width:48%;text-align:end;overflow-wrap:anywhere}
.ltn-assist-catalog-action b{font-size:12px;color:#167357}.ltn-assist-catalog-action>span{font-size:11px;color:#075deb}.ltn-assist-catalog-action small{font-size:10px;color:#7b6339}
html[data-theme="dark"] .ltn-assist-catalog{background:#122237;border-color:#405b7b}
html[data-theme="dark"] #ltnStaffCatalogSearch,html[data-theme="dark"] #ltnStaffCatalogAll,html[data-theme="dark"] .ltn-assist-catalog-choice{background:#182c45;color:#e3edff;border-color:#405b7b}
html[data-theme="dark"] #ltnStaffCatalogAll[aria-pressed="true"],html[data-theme="dark"] .ltn-assist-catalog-choice:hover,html[data-theme="dark"] .ltn-assist-catalog-choice.is-selected{background:#25446b;border-color:#83b1f9}
html[data-theme="dark"] #ltnStaffCatalogContext,html[data-theme="dark"] #ltnStaffCatalogStatus,html[data-theme="dark"] #ltnStaffCatalogMore,html[data-theme="dark"] .ltn-assist-catalog-info small{color:#b6c8e2}
html[data-theme="dark"] .ltn-assist-catalog-action b{color:#7ad6b3}html[data-theme="dark"] .ltn-assist-catalog-action>span{color:#a2c6ff}
@media(max-width:700px){.ltn-assist-catalog{padding:10px}.ltn-assist-catalog-choice{gap:8px;padding:9px;min-height:74px}#ltnStaffCatalogSearch{font-size:16px}.ltn-assist-catalog-action{max-width:46%}.ltn-assist-catalog-items{max-height:204px}}

/* Mobile staff assistant: leave room for catalog results above the keyboard. */
@media(max-width:768px){
 #ltnStaffAssistDialog.ltn-staff-assist-dialog{
  position:fixed;top:calc(var(--vv-top,0px) + 8px);bottom:auto;margin:0 auto;
  width:calc(100vw - 16px);max-height:calc(var(--vv-height,100dvh) - 16px);
  border-radius:12px;overflow:auto;overscroll-behavior:contain;
 }
 #ltnStaffAssistForm{padding:12px;gap:8px}
 #ltnStaffAssistForm>.ltn-assist-hint,
 #ltnStaffAssistForm .ltn-assist-command-label{display:none!important}
 #ltnStaffAssistForm .ltn-assist-command-field{margin:0;gap:0}
 #ltnStaffAssistCommand{
  height:64px;min-height:64px;max-height:120px;margin:0;padding:8px 10px;
  font-size:16px!important;line-height:1.4;
 }
 #ltnStaffAssistForm .ltn-assist-heading{gap:8px}
 #ltnStaffAssistForm .ltn-assist-heading h3{font-size:16px;line-height:1.35}
 #ltnStaffAssistForm .ltn-assist-heading button{width:36px;min-width:36px;min-height:36px;height:36px}
 #ltnStaffAssistForm .ltn-assist-catalog{padding:8px;gap:6px}
 #ltnStaffCatalogSearch{margin:0;min-height:40px;padding:8px 10px;font-size:16px}
}

/* Compact multi-selection, including keyboard and touch targets. */
.ltn-assist-catalog-selection{display:flex;align-items:center;gap:6px;min-width:0}
.ltn-assist-catalog-selection button{padding:6px 9px;min-height:34px;white-space:nowrap;font-size:12px;border:1px solid #b8cffa;border-radius:8px;background:#fff;color:#0756c8}.ltn-assist-catalog-selection button:disabled{opacity:.5;cursor:default}.ltn-assist-catalog-selection button:focus-visible{outline:2px solid #075bea;outline-offset:1px}
.ltn-assist-catalog-selection small{margin-left:auto;white-space:nowrap;font-size:12px;color:#47638a}
.ltn-assist-catalog-check{flex:0 0 18px;width:18px;height:18px;border:1px solid #8baee1;border-radius:4px;align-self:center;display:grid;place-items:center;color:white}
.is-selected .ltn-assist-catalog-check{background:#075bea;border-color:#075bea}
.is-selected .ltn-assist-catalog-check:after{content:'✓';font-size:14px;line-height:1}
.ltn-assist-catalog-choice .ltn-assist-catalog-info{flex:1;min-width:0}
.ltn-assist-catalog-choice:focus-visible{outline:2px solid #075bea;outline-offset:-2px}
html[data-theme="dark"] .ltn-assist-catalog-selection small{color:#b6c8e2}
@media(max-width:700px){.ltn-assist-catalog-selection{gap:4px}.ltn-assist-catalog-selection button{padding:5px 7px}.ltn-assist-catalog-check{flex-basis:17px;width:17px;height:17px}.ltn-assist-catalog-choice{gap:7px}.ltn-assist-catalog-action{max-width:40%}}

html[data-theme="dark"] .ltn-assist-catalog-selection button{background:#172b49;border-color:#45628c;color:#c7dcff}

/* Language and presentation share one row on desktop and mobile. */
#ltnStaffAssistForm .ltn-assist-options{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:10px;align-items:end}
#ltnStaffAssistForm .ltn-assist-options label{margin:0}
#ltnStaffAssistForm .ltn-assist-options select{min-height:44px}
@media(max-width:768px){#ltnStaffAssistForm .ltn-assist-options{gap:8px}}

