.employee-shell { min-height: 100vh; background: #f3f4ef; }
.employee-shell > .service-login { max-width: 430px; margin: 12vh auto 0; }
.employee-workspace {
  display: grid;
  grid-template-columns: clamp(245px, 25vw, 340px) minmax(0, 1fr);
  height: 100vh;
  min-height: 450px;
  background: #fff;
  color: #25352c;
}
.employee-inbox, .employee-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.employee-inbox { background: #f7f8f4; border-right: 1px solid #e0e5db; }
.employee-inbox-head { padding: 24px 18px 12px; }
.employee-wordmark { font-size: 11px; letter-spacing: .18em; color: #92784b; }
.employee-inbox-head h1 { font-size: 24px; margin: 4px 0 12px; }
.employee-status { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.employee-dot { width: 8px; height: 8px; border-radius: 50%; background: #999; }
.employee-dot.is-online { background: #4c805d; }
.employee-status button, .employee-filter button, .employee-inbox-foot button, .employee-more {
  cursor: pointer; border: 0; background: none; color: #54695b; font: inherit; padding: 6px 10px;
}
.employee-filter { padding: 0 12px 10px; }
.employee-filter input { width: 100%; margin-bottom: 8px; }
.employee-filter button.is-active { color: #264d39; background: #e5eee5; border-radius: 6px; }
.employee-inbox-scroll, .employee-message-scroll { flex: 1; min-height: 0; overflow: auto; }
.employee-conversation {
  width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 14px 12px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer;
}
.employee-conversation:hover { background: #eef1eb; }
.employee-conversation.is-active { background: #e0ebdf; box-shadow: inset 3px 0 #547560; }
.employee-avatar { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #d8e3d7; color: #36513e; }
.employee-conversation-copy { min-width: 0; }
.employee-conversation-copy b, .employee-conversation-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-conversation-copy small, .employee-conversation-meta { color: #65736a; font-size: 11px; }
.employee-conversation-meta { display: grid; gap: 5px; text-align: right; align-self: start; }
.employee-list-empty { color: #65736a; padding: 18px; font-size: 13px; }
.employee-inbox-foot { display: flex; justify-content: space-between; border-top: 1px solid #e0e5db; padding: 10px 8px; font-size: 12px; }
.employee-chat-head { padding: 18px 24px; display: flex; justify-content: space-between; gap: 8px; align-items: center; border-bottom: 1px solid #e6ebe3; }
.employee-chat-head h2 { margin: 0; font-size: 19px; }
.employee-chat-head p { margin: 4px 0 0; font-size: 12px; color: #68766c; }
.employee-chat-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.employee-message-scroll { padding: 16px 24px; background: #f7f8f5; }
.employee-message-scroll .service-message { width: fit-content; max-width: min(82%, 620px); }
.employee-empty { flex: 1; display: grid; place-content: center; text-align: center; gap: 8px; color: #647267; }
.employee-empty span { font-size: 30px; color: #92784b; }
.employee-empty p { margin: 0; }
.employee-composer { padding: 14px 24px 18px; border-top: 1px solid #e6ebe3; }
.employee-composer textarea { display: block; width: 100%; min-height: 72px; resize: vertical; margin-bottom: 10px; }
.employee-compose-actions { display: flex; align-items: center; gap: 10px; }
.employee-compose-actions span { color: #68766c; font-size: 12px; }
.employee-compose-actions button { margin-left: auto; }
.employee-drawer-mask { position: fixed; inset: 0; z-index: 90; background: #20312444; }
.employee-order-drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 95vw); background: #fff; display: flex; flex-direction: column; }
.employee-order-drawer > header { padding: 14px 20px; border-bottom: 1px solid #e6ebe3; display: flex; justify-content: space-between; align-items: center; }
.employee-order-content { overflow: auto; padding: 14px 20px 30px; }
.employee-order-content details { margin: 12px 0; }
.employee-order-content form label { display: block; margin: 10px 0; }
.employee-order-content form input { width: 100%; }
@media (max-width: 680px) {
  .employee-workspace { grid-template-columns: minmax(118px, 31%) minmax(0, 1fr); }
  .employee-inbox-head, .employee-chat-head, .employee-message-scroll, .employee-composer { padding-left: 10px; padding-right: 10px; }
  .employee-conversation { grid-template-columns: minmax(0, 1fr); padding: 12px 8px; }
  .employee-conversation .employee-avatar, .employee-conversation-meta, .employee-compose-actions span { display: none; }
}

.employee-connection-hidden { display: none !important; }

/* Staff uses the same navigation and colors as the management console. */
.staff-console .employee-workspace{height:calc(100vh - 300px);min-height:540px;border:1px solid #deded5;border-radius:12px;overflow:hidden;grid-template-columns:minmax(230px,30%) minmax(0,1fr)}
.staff-console .employee-inbox-foot [data-sc="products"]{display:none}
.staff-console .service-login{max-width:760px}
.staff-product-name{display:flex;align-items:center;gap:16px;text-align:left;white-space:normal}
.staff-products-page table{width:100%;border-collapse:collapse}
.staff-products-page td,.staff-products-page th{padding:20px;text-align:left;border-bottom:1px solid #eeeee7}
.staff-products-page .thumb{width:72px;height:72px;object-fit:contain;border-radius:8px;background:#f6f5f1}
@media(max-width:900px){.staff-console .employee-workspace{grid-template-columns:minmax(190px,34%) minmax(0,1fr)}.staff-console .content{padding:20px}.staff-products-page .table-scroll{overflow:auto}}
