.workspace-top { gap: 16px; }
.status-control { margin-left: 0; }
.logout { margin-left: auto; }
.conversation-head { flex-basis: 162px; padding-bottom: 12px; }
.conversation-title-row h2 { display: flex; align-items: center; gap: 7px; }
.conversation-count { color: #a1a6ae; font-size: 10px; font-weight: 500; }
.conversation-title-row .leave-message { height: 28px; padding: 0 8px; border-radius: 5px; color: var(--brand-dark); font-weight: 600; }
.conversation-title-row .leave-message:hover { background: var(--brand-soft); }
.conversation-filters { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.conversation-filter { min-width: 48px; height: 28px; padding: 0 12px; border-radius: 14px; background: #f5f6f8; color: #727985; font-size: 11px; cursor: pointer; }
.conversation-filter.active { background: var(--brand); color: #fff; }
.conversation-item { position: relative; grid-template-columns: 38px minmax(0,1fr) auto; gap: 4px 10px; padding: 10px 12px; }
.conversation-item .conversation-avatar { grid-row: 1 / span 3; align-self: center; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #edf0f3; color: #5d646e; font-weight: 700; }
.conversation-item.active .conversation-avatar { background: var(--brand); color: #fff; }
.conversation-main { min-width: 0; display: flex; align-items: center; gap: 5px; }
.conversation-main strong { min-width: 0; }
.conversation-meta { grid-column: 2 / 4; display: flex; align-items: center; gap: 5px; min-width: 0; }
.conversation-preview { flex: 1; min-width: 0; }
.conversation-tags { grid-column: 2 / 4; display: flex; align-items: center; gap: 5px; }
.conversation-badge { min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 10px; }
.presence { display: inline-flex; align-items: center; gap: 4px; color: #8a9099; font-size: 10px; }
.presence::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #aab0b8; }
.presence.online { color: #19a866; }.presence.online::before { background: #23c877; }
.presence.pending { color: #e69a20; }.presence.pending::before { background: #ffad22; }
.mini-tag { padding: 2px 5px; border-radius: 3px; background: #f2f3f5; color: #747b85; font-size: 9px; }
.mini-tag.vip { background: #fff1c8; color: #b57a00; }.mini-tag.tenant { background: #ffe5e7; color: #b92532; }
.session-actions { display: flex; gap: 8px; }
.session-action { height: 34px; padding: 0 15px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #515761; cursor: pointer; }
.session-action:hover { border-color: var(--brand); color: var(--brand-dark); }
.session-action.danger { border-color: var(--brand); background: var(--brand); color: #fff; }
.session-action:disabled { border-color: #e7e8eb; background: #f5f6f8; color: #a7abb2; cursor: not-allowed; }
.message-scroller { position: relative; }
.message-list { min-height: 0; }
.message-row { margin-bottom: 18px; }
.message-wrap { max-width: min(72%, 720px); display: grid; gap: 5px; }
.message-row.self .message-wrap { justify-items: end; }
.message-sender { display: flex; align-items: center; gap: 7px; color: #9aa0a9; font-size: 10px; }
.message-row.self .message-sender { flex-direction: row-reverse; }
.message-row.self .bubble { background: var(--brand); color: #fff; }
.system-message { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px auto; color: #a0a5ad; font-size: 11px; }
.system-message::before,.system-message::after { content: ""; width: 92px; height: 1px; background: #dfe2e5; }
.order-card { width: 330px; padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.order-head { display: flex; justify-content: space-between; gap: 10px; color: #858b94; font-size: 10px; }
.order-body { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 9px; margin-top: 9px; }
.order-body img { width: 52px; height: 52px; border-radius: 4px; object-fit: cover; }.order-body strong { font-size: 12px; }.order-body span { display: block; margin-top: 6px; color: var(--brand-dark); font-size: 12px; }
.message-composer { position: relative; flex: 0 0 178px; display: flex; flex-direction: column; padding: 10px 14px 10px; border-top: 1px solid var(--line); background: #fff; }
.message-composer.has-popover { flex-basis: 390px; }
.composer-toolbar { display: flex; align-items: center; justify-content: space-between; }
.composer-tools { display: flex; gap: 5px; }
.composer-tool { min-width: 38px; height: 30px; padding: 0 8px; border-radius: 5px; background: transparent; color: #7b828d; font-size: 11px; cursor: pointer; }
.composer-tool:hover,.composer-tool.active { background: var(--brand-soft); color: var(--brand-dark); }
.quick-script-open { height: 30px; padding: 0 12px; border: 1px solid var(--brand); border-radius: 15px; background: #fff; color: var(--brand-dark); font-size: 11px; cursor: pointer; }
.message-input { flex: 1; width: 100%; min-height: 66px; padding: 10px 4px 4px; resize: none; border: 0; outline: 0; color: #333; font: inherit; }
.message-input::placeholder { color: #b0b5bd; }
.composer-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: #b0b5bd; font-size: 10px; }
.message-send { min-width: 70px; height: 34px; border-radius: 5px; background: var(--brand); color: #fff; cursor: pointer; }
.message-send:disabled { background: #e9ebee; color: #aab0b7; cursor: not-allowed; }
.composer-popover { position: static; flex: 0 0 auto; max-height: 210px; overflow: auto; margin: 8px -14px 0; padding: 0 14px 12px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line); background: #fff; box-shadow: none; }
.picker-head { position: sticky; top: 0; z-index: 2; height: 38px; display: flex; align-items: center; justify-content: space-between; background: #fff; color: #4c535d; font-size: 11px; }
.picker-close { width: 28px; height: 28px; border-radius: 5px; background: transparent; color: #7d838c; font-size: 18px; line-height: 1; cursor: pointer; }
.picker-close:hover { background: var(--brand-soft); color: var(--brand-dark); }
.picker-search { width: 100%; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; outline: 0; }
.picker-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.picker-card { padding: 9px; border: 1px solid var(--line-soft); border-radius: 6px; background: #fafbfc; }
.picker-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.picker-card span { display: block; margin-top: 4px; color: #818791; font-size: 10px; }
.picker-card button { width: 100%; height: 27px; margin-top: 8px; border-radius: 4px; background: var(--brand); color: #fff; font-size: 10px; cursor: pointer; }
.emoji-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 6px; }.emoji-grid button { height: 34px; border-radius: 5px; background: #f6f7f9; cursor: pointer; }
.profile-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) 30px; gap: 0; padding: 0 8px; }
.profile-tab { min-width: 0; padding-inline: 2px; white-space: nowrap; word-break: keep-all; font-size: 11px; }
.profile-collapse { background: transparent; color: #7d838d; cursor: pointer; }
.profile-panel.collapsed .profile-tabs { grid-template-columns: 1fr; padding: 0; }.profile-panel.collapsed .profile-tab,.profile-panel.collapsed .profile-scroll { display: none; }.profile-panel.collapsed .profile-collapse { font-size: 18px; transform: rotate(180deg); }
.workspace-body.profile-collapsed { grid-template-columns: 268px minmax(0,1fr) 44px; }
.customer-tag-section { margin-top: 18px; padding: 0 4px 4px; }
.customer-tag-heading { display: flex; align-items: center; margin-bottom: 10px; }
.customer-tag-heading h3 { margin: 0; color: #7f858e; font-size: 12px; font-weight: 600; }
.customer-tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.customer-tag-chip { min-height: 27px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 5px; font-size: 10px; font-weight: 600; }
.customer-tag-chip.tone-0 { background: var(--brand); color: #fff; }
.customer-tag-chip.tone-1 { background: #ffe2e5; color: #bf2b38; }
.customer-tag-chip.tone-2 { background: #f0f1f4; color: #69717d; }
.customer-tag-chip button { max-width: 0; overflow: hidden; padding: 0; border: 0; background: transparent; color: inherit; font-size: 9px; opacity: 0; pointer-events: none; cursor: pointer; transition: max-width 140ms ease, opacity 140ms ease; }
.customer-tag-chip:hover button,.customer-tag-chip button:focus-visible { max-width: 24px; opacity: .82; pointer-events: auto; }
.customer-tag-chip button:hover { opacity: 1; text-decoration: underline; }
.customer-tag-add { min-height: 27px; padding: 0 9px; border: 1px dashed #d5d8de; border-radius: 5px; background: #f7f8fa; color: #727985; font-size: 10px; cursor: pointer; }
.customer-tag-add:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.customer-tag-empty { color: #a0a5ad; font-size: 10px; }
.customer-tag-editor { margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fafbfc; }
.customer-tag-editor input { width: 100%; height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #353a42; font-size: 11px; outline: 0; }
.customer-tag-editor input:focus { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.customer-tag-editor-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 9px; }
.customer-tag-editor-actions button { height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #676e78; font-size: 10px; cursor: pointer; }
.customer-tag-editor-actions button.primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.customer-tag-editor small { display: block; margin-top: 7px; color: #a0a5ad; font-size: 9px; }
.side-section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; font-size: 13px; }
.quick-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.quick-mode { position: relative; height: 34px; padding: 0 4px 8px; background: transparent; color: #747b86; font-size: 11px; font-weight: 600; cursor: pointer; }
.quick-mode::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px 2px 0 0; background: transparent; }
.quick-mode:hover { color: var(--brand-dark); }
.quick-mode.active { color: var(--brand-dark); }
.quick-mode.active::after { background: var(--brand); }
.quick-categories { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.quick-category { height: 27px; padding: 0 9px; border-radius: 14px; background: #f3f4f6; color: #737a84; font-size: 10px; cursor: pointer; }
.quick-category.active { background: var(--brand); color: #fff; }
.beta { margin-left: 4px; padding: 2px 4px; border-radius: 4px; background: #fff0c4; color: #a56f00; font-size: 8px; font-weight: 700; }
.ai-recommendation-panel { display: grid; gap: 12px; }
.ai-recommendation-summary { padding: 12px; border: 1px solid #ffd6da; border-radius: 8px; background: #fff7f7; }
.ai-summary-badge { display: inline-flex; margin-bottom: 8px; padding: 3px 6px; border-radius: 4px; background: #ffe2e5; color: var(--brand-dark); font-size: 9px; font-weight: 700; }
.ai-recommendation-summary > strong { display: block; color: #2e333b; font-size: 12px; line-height: 1.4; }
.ai-recommendation-summary > p { margin: 7px 0 0; color: #626a76; font-size: 10px; line-height: 1.6; }
.ai-summary-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.ai-summary-foot span { color: #a0a5ad; font-size: 9px; }
.ai-summary-foot button { height: 28px; padding: 0 9px; border: 1px solid #ffc9ce; border-radius: 5px; background: #fff; color: var(--brand-dark); font-size: 10px; font-weight: 600; cursor: pointer; }
.ai-summary-foot button:hover { border-color: var(--brand); background: var(--brand-soft); }
.ai-summary-foot button:disabled { border-color: #e5e7eb; background: #f4f5f7; color: #a5aab2; cursor: wait; }
.ai-quick-list { gap: 10px; }
.ai-suggestion-card { border-color: #e5def8; box-shadow: 0 2px 8px rgba(83, 53, 147, .05); }
.ai-suggestion-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.ai-suggestion-head strong { color: #7442e8; font-size: 11px; }
.ai-suggestion-head span { max-width: 98px; overflow: hidden; padding: 3px 6px; border-radius: 4px; background: #f4f0ff; color: #7655bb; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ai-suggestion-card > p { color: #555e6b; font-size: 10px; line-height: 1.65; }
.ai-suggestion-actions button:first-child { border-color: #ddd6ee; color: #665978; }
.ai-suggestion-actions button:first-child:hover { border-color: #8a67df; color: #6f42d9; }
.ai-generating-state { min-height: 120px; display: grid; place-content: center; gap: 7px; padding: 18px; border: 1px solid #e5def8; border-radius: 8px; background: #faf8ff; text-align: center; }
.ai-generating-state strong { color: #6940c9; font-size: 11px; }
.ai-generating-state span { color: #8a8495; font-size: 10px; }
.quick-list { display: grid; gap: 9px; }
.quick-card { padding: 11px; border: 1px solid var(--line-soft); border-radius: 7px; background: #fff; }.quick-card h4 { margin: 0 0 6px; font-size: 11px; }.quick-card p { margin: 0; color: #666d77; font-size: 10px; line-height: 1.55; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }.quick-actions button { height: 28px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #646b75; font-size: 10px; cursor: pointer; }.quick-actions button:last-child { border-color: var(--brand); background: var(--brand); color: #fff; }
.side-outline-button { width: 100%; height: 34px; margin-top: 10px; border: 1px dashed var(--line); border-radius: 5px; background: #fff; color: #69707a; font-size: 10px; cursor: pointer; }
.order-search { width: 100%; height: 32px; margin-bottom: 10px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; outline: 0; }
.history-card { padding: 10px; margin-bottom: 8px; border-radius: 7px; background: var(--app-bg); }.history-card strong { display: block; font-size: 11px; }.history-card p { margin: 6px 0; color: #737983; font-size: 10px; }.history-card span { color: var(--brand-dark); font-size: 10px; }
.action-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(24,28,36,.36); }.action-modal[hidden] { display: none; }
.action-dialog { width: 360px; padding: 22px; border-radius: 9px; background: #fff; box-shadow: 0 18px 44px rgba(24,29,40,.24); }.action-dialog h3 { margin: 0 0 9px; font-size: 16px; }.action-dialog p { margin: 0; color: #747a84; font-size: 12px; line-height: 1.6; }
.action-dialog-buttons { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }.action-dialog-buttons button { height: 33px; padding: 0 16px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #555c66; cursor: pointer; }.action-dialog-buttons button.danger { border-color: var(--brand); background: var(--brand); color: #fff; }
@media (max-width:1500px) { .workspace-body.profile-collapsed { grid-template-columns:248px minmax(0,1fr) 44px; } .profile-tabs { grid-template-columns:repeat(3,minmax(0,1fr)) 26px; } }
