.staff-routing{display:flex;gap:12px;align-items:center;margin:8px 0}.staff-routing[hidden]{display:none}.staff-routing select{flex:1}.staff-routing label{display:flex;align-items:center;gap:6px;white-space:nowrap}.staff-routing input{width:auto!important}.staff-event{background:#fff7e7;border:1px solid #f3cf8d;border-radius:12px;padding:14px;margin:8px 0;color:#24282d}.staff-event header{display:flex;gap:16px}.staff-event small{display:block;color:#717783;margin-top:6px}.staff-event p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}.staff-event>div{font-size:13px}.staff-toast{position:fixed;right:20px;bottom:20px;width:min(420px,calc(100vw - 40px));max-height:75vh;overflow:auto;background:#fff;border:2px solid #f46b18;border-radius:16px;padding:18px;box-shadow:0 12px 45px #0003;z-index:10000;color:#222}.staff-toast header{display:flex;justify-content:space-between;gap:10px}.staff-toast small{display:block;margin-top:6px;color:#707580}.staff-toast .staff-preview{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.5;margin:12px 0}.staff-toast .staff-preview.expanded{display:block}.staff-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.staff-actions a{display:inline-flex;align-items:center;text-decoration:none}body dialog.cash-dialog.staff-dialog{width:min(800px,94vw);max-width:800px;max-height:90vh;overflow:auto}

/* Staff addressing belongs beside the message type, never across the editor. */
#chat-compose.is-staff .compose-routing{justify-content:flex-start;flex-direction:row;gap:8px;flex-wrap:wrap}
#chat-compose.is-staff .compose-routing [data-compose-mode]{flex:0 0 148px;max-width:148px;width:148px}
#chat-compose .compose-routing .staff-routing{display:flex;flex:0 1 auto;align-items:center;gap:10px;margin:0;min-width:0}
#chat-compose .compose-routing .staff-routing[hidden]{display:none!important}
#chat-compose .compose-routing .staff-routing select{flex:0 1 240px;width:240px;min-width:160px;max-width:280px;height:30px;margin:0}
#chat-compose .staff-routing label{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;font-size:12px;line-height:1;white-space:nowrap;cursor:pointer}
#chat-compose .staff-routing input[type=checkbox]{width:16px!important;height:16px;min-height:16px;margin:0;accent-color:#cf4d00}
#chat-compose.is-staff [data-attach],#chat-compose.is-staff [data-mic],#chat-compose.is-staff [data-compose-suggest],#chat-compose.is-staff [data-templates]{display:none!important}
#chat-compose.is-staff .compose-hint{background:transparent;color:#7a8291}
@media(max-width:600px){#chat-compose.is-staff .compose-routing [data-compose-mode]{flex-basis:120px!important;max-width:120px!important}#chat-compose .compose-routing .staff-routing{flex:1 1 220px}#chat-compose .compose-routing .staff-routing select{flex:1 1 140px!important;width:140px;min-width:100px;max-width:240px!important}}

/* Compact staff alert, with full text available on demand. */
body .staff-toast{width:min(340px,calc(100vw - 24px));right:12px;bottom:12px;padding:12px;border-width:1px;border-radius:12px;max-height:60dvh;box-shadow:0 6px 24px #0002}
body .staff-toast header{align-items:center;font-size:13px;line-height:18px}
body .staff-toast header [data-dismiss]{width:22px;height:22px;min-height:22px;padding:0;border:0;border-radius:5px;background:#f1f2f4;font-size:17px}
body .staff-toast small{font-size:11px;line-height:16px;margin-top:2px}
body .staff-toast .staff-preview{font-size:13px;line-height:18px;margin:8px 0 4px;-webkit-line-clamp:2}
body .staff-toast [data-expand]{padding:0;min-height:20px;border:0;background:transparent;font-size:11px;color:#a4460a;text-decoration:underline}
body .staff-toast .staff-actions{gap:6px;margin-top:8px}
body .staff-toast .staff-actions :is(button,a){font-size:11px;line-height:16px;min-height:28px;padding:5px 9px;border-radius:6px}
body .staff-toast .error:empty{display:none}
body .staff-toast .error{font-size:11px;margin:5px 0 0}

.staff-event.staff-event-compact{padding:9px 12px;margin:5px 0;border-radius:8px;max-width:620px}
.staff-event-compact header{gap:8px;align-items:baseline;flex-wrap:wrap;font-size:12px;line-height:17px}
.staff-event-compact header small{margin:0;font-size:10px;line-height:15px}
.staff-event-compact summary{list-style:none;cursor:pointer;margin-top:5px}
.staff-event-compact summary::-webkit-details-marker{display:none}
.staff-history-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:18px}
.staff-history-meta{display:block;color:#7a6a55;font-size:10px;line-height:15px;margin-top:4px}
.staff-event-compact details[open] .staff-history-preview{display:none}
.staff-event-compact details>p{font-size:13px;line-height:19px}
.staff-event-compact details>div{font-size:11px;line-height:17px}
