:root {
  color-scheme: light;
  --ink: #1f2b2b;
  --muted: #748080;
  --line: #e5eae8;
  --canvas: #f5f7f6;
  --white: #fff;
  --sidebar: #f3f6fc;
  --sidebar-muted: #77899c;
  --teal: #0e746b;
  --teal-dark: #0a5b55;
  --teal-soft: #e7f3f0;
  --coral: #d96b55;
  --blue: #5576a1;
  --amber: #b77b24;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body, #app { width: 100%; height: 100%; margin: 0; }
body { color: var(--ink); background: var(--canvas); font-size: 14px; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #73c2b6; outline-offset: 2px; }
.shell { display: flex; width: 100%; height: 100%; min-height: 560px; overflow: hidden; }
.sidebar { width: 232px; flex: 0 0 232px; display: flex; flex-direction: column; padding: 15px 9px 12px; border-right: 1px solid #e3e9f0; background: var(--sidebar); color: #34475a; }
.main-shell { position: relative; }
.promo-strip { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #642527; color: #fff0cf; font-size: 11px; }
.promo-strip > span { padding: 3px 6px; border-radius: 3px; background: #f0bf63; color: #6a3325; font-size: 9px; font-weight: 750; }
.promo-strip strong { font-size: 12px; }
.promo-strip button { position: absolute; right: 11px; width: 22px; height: 22px; border: 1px solid #ffffff61; border-radius: 50%; background: transparent; color: white; }
.brand { height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 9px; color: #263a4d; font-size: 19px; font-weight: 750; letter-spacing: 0; }
.brand-mark { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: #a8dfcf; color: #163331; font-size: 15px; font-weight: 800; }
.brand-light { color: #708297; font-weight: 500; }
.mobile-close { display: none; margin-left: auto; border: 0; background: transparent; color: #536577; font-size: 24px; }
.workspace-switch { display: flex; align-items: center; gap: 10px; width: 100%; margin: 16px 0 21px; padding: 9px 8px; border: 1px solid #dfe6ef; border-radius: 6px; background: #fff; color: inherit; text-align: left; }
.workspace-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: #e5b474; color: #473319; font-weight: 750; }
.workspace-text, .profile-copy { display: grid; gap: 3px; min-width: 0; }
.workspace-text strong, .profile-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 620; }
.workspace-text small, .profile-copy small { color: var(--sidebar-muted); font-size: 11px; }
.chevron { margin-left: auto; color: #a9b8b5; }
.nav-label { padding: 0 9px 9px; color: #8796a7; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.main-nav { display: grid; gap: 3px; }
.nav-item { width: 100%; min-height: 37px; display: flex; align-items: center; gap: 10px; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; color: #576a7d; text-align: left; font-size: 12px; }
.nav-item:hover { background: #e9eef9; color: #356ccd; }
.nav-item.active { background: #e2eaff; color: #326bd0; font-weight: 620; }
.nav-glyph { width: 21px; height: 21px; display: grid; flex: 0 0 21px; place-items: center; border: 0; border-radius: 5px; color: #76889a; font-size: 15px; }
.nav-item.active .nav-glyph { background: #d4e2ff; color: #326bd0; }
.nav-count { margin-left: auto; min-width: 19px; padding: 2px 5px; border-radius: 10px; background: #e8a075; color: #38261e; text-align: center; font-size: 10px; font-weight: 750; }
.sidebar-bottom { margin-top: auto; }
.demo-note { display: flex; align-items: center; gap: 9px; margin: 0 4px 10px; padding: 10px 7px; border-top: 1px solid #e1e7ef; color: #536577; }
.demo-note > span:last-child { display: grid; gap: 3px; }
.demo-note strong { font-size: 11px; font-weight: 650; }
.demo-note small { color: #8190a0; font-size: 10px; }
.demo-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 7px; border-radius: 50%; background: #7dccaa; }
.profile-button { display: flex; align-items: center; width: 100%; gap: 9px; padding: 10px 7px 5px; border: 0; border-top: 1px solid #e1e7ef; background: transparent; color: #34475a; text-align: left; }
.workspace-display { cursor: default; }
.logout-button { flex: 0 0 30px; border: 1px solid #e2e8e5; background: white; }
.profile-copy { flex: 1; }
.more { color: #afbfbc; letter-spacing: 1px; }
.main-shell { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.topbar { display: none; }
.breadcrumbs { display: flex; align-items: center; gap: 11px; color: #788582; font-size: 12px; }
.breadcrumbs strong { color: var(--ink); font-size: 13px; font-weight: 650; }
.crumb-slash { color: #c1c9c7; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.search-box { width: 245px; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid #e0e6e4; border-radius: 6px; background: #fbfcfc; color: #83908e; }
.search-symbol { font-size: 20px; line-height: 1; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; }
.search-box kbd { padding: 2px 4px; border: 1px solid #e4e9e7; border-radius: 3px; color: #83908e; font: 10px ui-monospace, monospace; white-space: nowrap; }
.icon-button, .help-button, .small-icon { display: inline-grid; place-items: center; border: 0; background: transparent; color: #657371; }
.icon-button { width: 31px; height: 31px; position: relative; font-size: 20px; }
.notification-button i { width: 5px; height: 5px; position: absolute; top: 5px; right: 5px; border-radius: 50%; background: var(--coral); }
.help-button { width: 23px; height: 23px; border: 1px solid #cdd6d3; border-radius: 50%; font-size: 12px; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 19px; }
.page-content { min-height: 0; flex: 1; overflow: auto; padding: 25px 29px 26px; }
.page-foot { min-height: 35px; display: flex; align-items: center; justify-content: space-between; padding: 0 29px; border-top: 1px solid #e9eeec; color: #7d8a87; background: var(--canvas); font-size: 10px; }
.page-foot .demo-dot { width: 6px; height: 6px; margin-right: 6px; }
.inbox-heading, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.eyebrow { margin-bottom: 7px; color: #71817d; font-size: 10px; font-weight: 740; letter-spacing: .09em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 5px; font-size: 23px; font-weight: 690; line-height: 1.2; }
.inbox-heading p, .page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.heading-count { margin-left: 5px; color: #7c8986; font-size: 13px; font-weight: 500; }
.heading-actions, .table-actions { display: flex; align-items: center; gap: 8px; }
.primary-button, .secondary-button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid transparent; border-radius: 5px; font-size: 12px; font-weight: 620; white-space: nowrap; }
.primary-button { border-color: var(--teal); background: var(--teal); color: white; }
.primary-button:hover { border-color: var(--teal-dark); background: var(--teal-dark); }
.secondary-button { border-color: #dce3e0; background: white; color: #43504e; }
.secondary-button:hover { background: #f6f8f7; }
.text-button { padding: 3px 0; border: 0; background: transparent; color: var(--teal); font-size: 11px; font-weight: 650; }
.small-icon { min-width: 27px; height: 27px; border-radius: 4px; font-size: 14px; }
.small-icon:hover { background: #f0f4f2; }
.inbox-layout { --conversation-list-size: 278px; min-height: 505px; height: calc(100% - 104px); display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(230px, var(--conversation-list-size)) 10px minmax(330px, 1fr) minmax(205px, 244px); border: 1px solid var(--line); border-radius: 7px; background: white; overflow: hidden; }
.conversation-list { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.conversation-resizer { position: relative; z-index: 2; min-width: 10px; background: #f8faf9; cursor: col-resize; touch-action: none; }
.conversation-resizer::after { width: 3px; height: 34px; position: absolute; top: 50%; left: 50%; border-radius: 3px; background: #cbd6d2; content: ''; transform: translate(-50%, -50%); }
.conversation-resizer:hover, .conversation-resizer:focus-visible { background: #edf5f2; }
.conversation-resizer:hover::after, .conversation-resizer:focus-visible::after { background: var(--teal); }
.resizing-conversations { cursor: col-resize; user-select: none; }
.resizing-conversations * { cursor: col-resize !important; user-select: none !important; }
.list-toolbar { min-height: 51px; flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-start; overflow-x: auto; padding: 0 8px; border-bottom: 1px solid var(--line); }
.list-toolbar { scrollbar-width: none; }
.list-toolbar::-webkit-scrollbar { display: none; }
.segmented { min-width: max-content; display: flex; align-items: center; gap: 2px; }
.segmented button { height: 29px; display: flex; align-items: center; gap: 4px; padding: 0 7px; border: 0; border-radius: 4px; background: transparent; color: #76827f; font-size: 10px; white-space: nowrap; }
.segmented button.selected { background: #eaf3f0; color: #17685f; font-weight: 650; }
.segmented button span { font-size: 10px; }
.conversation-items { flex: 1; overflow-y: auto; }
.conversation-row { position: relative; width: 100%; display: flex; gap: 9px; padding: 12px 10px; border: 0; border-bottom: 1px solid #eef1f0; background: white; text-align: left; }
.conversation-row:hover { background: #fafcfb; }
.conversation-row.selected { background: #f0f7f4; }
.conversation-copy { min-width: 0; flex: 1; display: grid; gap: 6px; }
.conversation-top, .conversation-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.conversation-top strong { overflow: hidden; color: #263231; font-size: 12px; font-weight: 660; text-overflow: ellipsis; white-space: nowrap; }
.conversation-top time { color: #87928f; font-size: 9px; white-space: nowrap; }
.conversation-preview { overflow: hidden; color: #72807d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.channel-label { display: inline-flex; align-items: center; gap: 5px; color: #74817e; font-size: 9px; white-space: nowrap; }
.channel-dot { width: 6px; height: 6px; display: inline-block; flex: 0 0 6px; border-radius: 50%; background: #9aa5a2; }
.dot-whatsapp { background: #34a77a; }.dot-instagram { background: #cf5f83; }.dot-messenger { background: #5686e5; }.dot-email { background: #bd8c39; }.dot-telegram { background: #4c9fc5; }
.assignee { max-width: 76px; overflow: hidden; color: #84908d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.unread-dot { width: 6px; height: 6px; position: absolute; top: 16px; right: 8px; border-radius: 50%; background: var(--teal); }
.list-footer { padding: 10px 12px; border-top: 1px solid #edf0ef; color: #87928f; font-size: 9px; }
.conversation-panel { min-width: 0; display: flex; flex-direction: column; background: #fff; }
.conversation-header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); }
.contact-title { min-width: 0; display: flex; align-items: center; gap: 9px; }
.contact-title > span:last-child { min-width: 0; display: grid; gap: 4px; }
.contact-title strong { color: #263231; font-size: 12px; font-weight: 650; }
.contact-title small { color: #7c8986; font-size: 10px; }
.conversation-tools { display: flex; }
.thread-date { align-self: center; margin: 16px 0 4px; padding: 4px 9px; border-radius: 10px; background: #f3f6f5; color: #7b8885; font-size: 9px; }
.message-stream { min-height: 0; flex: 1; overflow-y: auto; padding: 10px 18px 14px; }
.message { width: fit-content; max-width: min(80%, 520px); margin-bottom: 17px; }
.message.from-agent { margin-left: auto; }
.message-author { margin-bottom: 5px; color: #84908d; font-size: 9px; }
.from-agent .message-author { text-align: right; }
.message-author time { margin-left: 5px; color: #a1aaa8; }
.delivery-status { margin-left: 5px; color: #81908a; font-size: 9px; }
.delivery-failed { color: #b04437; }.delivery-read { color: #347b69; }
.message-bubble { padding: 10px 12px; border: 1px solid #e7ecea; border-radius: 3px 8px 8px 8px; background: #f5f7f6; color: #35413f; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.from-agent .message-bubble { border-color: #d8ece6; border-radius: 8px 3px 8px 8px; background: #eaf5f1; }
.message.from-note { width: min(88%, 560px); max-width: 88%; margin: 0 auto 16px; }
.from-note .message-author { color: #8a6a32; text-align: left; }
.from-note .message-bubble { border-color: #efe2c5; border-radius: 5px; background: #fff8e9; color: #5d4b2b; }
.note-visibility { margin-left: 7px; padding: 2px 5px; border-radius: 3px; background: #f6e9ca; color: #81642f; }
.message-original { display: grid; gap: 3px; margin-top: 5px; padding: 7px 9px; border-left: 2px solid #9bb8aa; color: #697873; font-size: 10px; line-height: 1.45; }
.message-original strong { color: #73827c; font-size: 9px; font-weight: 600; }
.message-original span { overflow-wrap: anywhere; }
.composer { flex: 0 0 auto; margin: 0 13px 13px; border: 1px solid #dfe7e4; border-radius: 6px; background: white; }
.composer-note { border-color: #e9d8ad; }
.message-mode { display: flex; gap: 3px; padding: 6px 8px 0; }
.message-mode button { padding: 4px 8px; border: 0; border-radius: 4px; background: transparent; color: #798681; font-size: 10px; }
.message-mode button.active { background: #edf3f1; color: #316f5d; font-weight: 650; }
.composer-note .message-mode button.active { background: #fff0d0; color: #8a682e; }
.composer-tools { min-height: 33px; display: flex; align-items: center; gap: 3px; padding: 0 8px; border-bottom: 1px solid #eef1f0; }
.composer-tools button { width: 24px; height: 24px; border: 0; border-radius: 4px; background: transparent; color: #74817e; font-size: 13px; }
.composer-tools button:hover { background: #f0f4f2; }
.composer-tools span { margin-left: auto; color: #899491; font-size: 9px; }
.composer-tools strong { color: #50615c; font-weight: 600; }
.translation-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 7px 9px; border-bottom: 1px solid #eef1f0; background: #fbfcfb; }
.translation-toggle { display: flex; align-items: center; gap: 6px; color: #4b6259; font-size: 10px; }
.translation-toggle input { accent-color: #32836d; }
.translation-language { display: flex; align-items: center; gap: 5px; color: #71807a; font-size: 10px; }
.translation-language select { max-width: 105px; padding: 4px 6px; border: 1px solid #e0e7e3; border-radius: 4px; background: white; color: #34423d; font-size: 10px; }
.translation-preview-button { margin-left: auto; font-size: 10px; }
.translation-preview-button:disabled { opacity: .45; cursor: not-allowed; }
.translation-preview { display: grid; gap: 5px; padding: 8px 10px; border-bottom: 1px solid #e8eeeb; background: #f7fbf8; }
.translation-preview > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 7px; align-items: start; }
.translation-preview strong { color: #43705e; font-size: 9px; font-weight: 650; }
.translation-preview p { margin: 0; color: #394843; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.translation-preview > div + div { padding-top: 5px; border-top: 1px solid #e8eeeb; }
.translation-preview > div + div strong { color: #7b8581; }
.composer textarea { width: 100%; min-height: 65px; max-height: 130px; resize: vertical; padding: 10px; border: 0; outline: 0; background: transparent; font-size: 11px; }
.quick-reply-menu { display: grid; gap: 4px; max-height: 170px; overflow: auto; padding: 7px; border-bottom: 1px solid #eef1f0; background: #fbfcfb; }
.quick-reply-menu button { display: grid; gap: 3px; padding: 7px 8px; border: 1px solid #e7ece9; border-radius: 4px; background: #fff; color: #43514d; text-align: left; }
.quick-reply-menu button:hover { border-color: #b8d8cd; background: #f5faf7; }
.quick-reply-menu strong { font-size: 10px; font-weight: 650; }
.quick-reply-menu span { overflow: hidden; color: #7a8782; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.composer-footer { min-height: 33px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; border-top: 1px solid #eef1f0; color: #96a19e; font-size: 9px; }
.send-button { width: 24px; height: 24px; border: 0; border-radius: 5px; background: var(--teal); color: white; font-size: 16px; font-weight: 700; }
.contact-sidebar { min-width: 0; overflow-y: auto; border-left: 1px solid var(--line); background: #fcfdfd; }
.quick-send-panel { background: #f8fbfa; }
.quick-send-panel .detail-label { align-items: center; margin-bottom: 8px; }
.quick-send-panel .detail-label strong { color: #62716c; font-size: 10px; font-weight: 700; letter-spacing: 0; }
.quick-send-list { display: grid; gap: 6px; }
.quick-reply-item { min-width: 0; padding: 7px; border: 1px solid #e3eae7; border-radius: 5px; background: white; }
.quick-send-list .quick-reply-item > button { display: grid; width: 100%; gap: 4px; min-width: 0; padding: 0; border: 0; background: transparent; color: #34433f; text-align: left; }
.quick-send-list .quick-reply-item > button:hover strong { color: #287760; }
.quick-send-list strong { font-size: 10px; font-weight: 650; }
.quick-send-list span { display: -webkit-box; overflow: hidden; color: #788681; font-size: 9px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.quick-reply-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 5px; }
.quick-reply-actions .text-button { padding: 0; font-size: 9px; }
.quick-reply-editor { display: grid; gap: 8px; margin: 0 0 9px; padding: 9px; border: 1px solid #dce8e3; border-radius: 5px; background: white; }
.quick-reply-editor label { display: grid; gap: 4px; color: #6c7b76; font-size: 9px; }
.quick-reply-editor input, .quick-reply-editor textarea { width: 100%; min-width: 0; padding: 7px; border: 1px solid #dfe7e4; border-radius: 4px; color: #34423d; font: inherit; font-size: 10px; }
.quick-reply-editor textarea { resize: vertical; line-height: 1.45; }
.quick-reply-editor > div { display: flex; align-items: center; gap: 8px; }
.quick-reply-editor .primary-button { min-height: 28px; padding: 0 9px; font-size: 9px; }
.quick-reply-editor .text-button { font-size: 9px; }
.details-heading { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 11px; }
.customer-identity { display: flex; flex-direction: column; align-items: center; padding: 18px 10px 15px; border-bottom: 1px solid #edf0ef; text-align: center; }
.customer-identity h2 { margin: 8px 0 4px; font-size: 12px; font-weight: 650; }
.customer-identity p { max-width: 100%; margin-bottom: 9px; overflow: hidden; color: #82908c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.stage-pill, .status-pill { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; border-radius: 4px; background: #edf3f1; color: #54716a; font-size: 9px; white-space: nowrap; }
.stage-new { background: #eef1f4; color: #65717e; }.stage-qualified { background: #e6f3ef; color: #2b7861; }.stage-in-progress { background: #fff2de; color: #95651c; }.stage-won { background: #e7f3e6; color: #4e7b42; }.stage-closed { background: #f1eeee; color: #746a6a; }
.detail-section { padding: 12px; border-bottom: 1px solid #edf0ef; }
.conversation-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.conversation-actions .secondary-button { min-width: 0; padding: 0 7px; font-size: 10px; }
.detail-label { display: flex; justify-content: space-between; margin-bottom: 9px; color: #83908d; font-size: 9px; font-weight: 730; letter-spacing: .04em; }
.detail-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; margin-top: 10px; color: #7d8986; font-size: 9px; }
.detail-line strong { max-width: 125px; overflow: hidden; color: #45514f; font-size: 9px; font-weight: 560; text-align: right; text-overflow: ellipsis; }
.stage-control select { max-width: 115px; padding: 3px; border: 1px solid #e1e7e4; border-radius: 4px; background: white; font-size: 9px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { display: inline-flex; align-items: center; min-height: 20px; padding: 3px 6px; border-radius: 4px; background: #f0f3f2; color: #65716e; font-size: 9px; white-space: nowrap; }
.value-number { margin: 1px 0 4px; color: #273533; font-size: 17px; font-weight: 660; }
.muted { color: #87928f; font-size: 10px; }
.assigned-person { display: flex; align-items: center; gap: 7px; color: #495552; font-size: 10px; }
.assignee-select { width: 100%; max-width: 100%; padding: 8px 9px; border: 1px solid #dfe6e3; border-radius: 4px; background: #fff; color: #263633; font: inherit; }
.avatar { width: 31px; height: 31px; display: grid; flex: 0 0 31px; place-items: center; border-radius: 50%; color: #24322f; font-size: 10px; font-weight: 700; }
.avatar-small { width: 25px; height: 25px; flex-basis: 25px; font-size: 8px; }
.avatar-large { width: 43px; height: 43px; flex-basis: 43px; font-size: 13px; }
.avatar-coral { background: #f2ddd6; color: #985140; }.avatar-violet { background: #e7e1f0; color: #685783; }.avatar-blue { background: #dce8f2; color: #486582; }.avatar-green, .avatar-teal { background: #dbece5; color: #326c56; }.avatar-amber { background: #f3e8d2; color: #8c672b; }
.avatar-teal { background: #a8dfcf; }
.mobile-visible { display: block !important; }
.empty-inline { padding: 22px 12px; color: #8a9693; text-align: center; font-size: 11px; }
.empty-state, .loading { min-height: 300px; display: grid; align-content: center; justify-items: center; color: #7b8885; text-align: center; }
.empty-state h2 { margin: 12px 0 5px; color: #394542; font-size: 16px; }
.empty-state p, .loading p { color: #7d8986; font-size: 12px; }
.empty-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 12px; background: #e7f3f0; color: var(--teal); font-size: 20px; }
.loading { height: 100vh; }
.spinner { width: 22px; height: 22px; border: 2px solid #d8e5e1; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-heading { align-items: flex-end; margin: 3px 0 23px; }
.page-heading h1 { font-size: 23px; }
.table-toolbar { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.table-summary { color: #788481; font-size: 11px; }
.table-summary strong { color: #35413f; font-weight: 650; }
.table-summary > span { margin: 0 5px; color: #b2bcba; }
.data-table-wrap { width: 100%; overflow-x: auto; border-bottom: 1px solid var(--line); background: white; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.data-table th { height: 40px; padding: 0 11px; border-bottom: 1px solid var(--line); color: #84918e; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.data-table td { height: 57px; padding: 8px 11px; border-bottom: 1px solid #eef1f0; color: #65716e; font-size: 10px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafcfb; }
.data-table input[type="checkbox"] { accent-color: var(--teal); }
.table-person { display: flex; align-items: center; gap: 8px; }
.table-person > span:last-child { display: grid; gap: 4px; }
.table-person strong, .data-table td > strong { color: #34403e; font-size: 10px; font-weight: 640; }
.table-person small { color: #87928f; font-size: 9px; }
.table-stage { padding: 4px 6px; border: 1px solid #e2e8e5; border-radius: 4px; background: white; font-size: 9px; }
.value-cell { color: #34403e !important; font-variant-numeric: tabular-nums; font-weight: 620; }
.table-empty { padding: 30px; }
.form-strip { display: flex; align-items: flex-end; gap: 10px; margin: 0 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.form-strip label, .form-grid label, .automation-builder label, .settings-form label { display: grid; flex: 1; gap: 6px; color: #5d6b68; font-size: 10px; font-weight: 600; }
.form-strip input, .form-strip select, .form-grid input, .form-grid select, .form-grid textarea, .automation-builder input, .automation-builder select, .settings-form input, .settings-form select { width: 100%; min-width: 0; height: 34px; padding: 0 9px; border: 1px solid #dde5e2; border-radius: 4px; background: white; font-size: 11px; }
.form-strip .primary-button, .form-strip .secondary-button { flex: 0 0 auto; }
.channel-summary { display: flex; align-items: center; gap: 23px; margin: 0 0 19px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.channel-summary > div { display: flex; align-items: baseline; gap: 6px; }
.summary-number { color: #236c56; font-size: 22px; font-weight: 680; }.muted-number { color: #9a7a45; }
.summary-copy { color: #71807c; font-size: 10px; }
.channel-summary p { margin: 0 0 0 auto; color: #83908d; font-size: 10px; }
.channel-group { margin: 0 0 23px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 11px; }
.section-heading h2 { margin: 0; color: #35413f; font-size: 13px; font-weight: 660; }
.section-heading > span { color: #87928f; font-size: 10px; }
.channel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.channel-card { min-height: 143px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.channel-card-top { display: flex; align-items: center; justify-content: space-between; }
.channel-logo { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: #edf3f1; color: #546b64; font-size: 9px; font-weight: 750; }
.logo-whatsapp { background: #e0f0e5; color: #228455; }.logo-instagram { background: #f5e4e9; color: #a9506d; }.logo-messenger { background: #e1ebfb; color: #426cc0; }.logo-email { background: #f5ecd8; color: #9a702b; }.logo-telegram { background: #e1f0f6; color: #287da2; }.logo-tiktok { background: #e8e7ec; color: #33313d; }
.status { display: inline-flex; align-items: center; gap: 5px; color: #6f7d79; font-size: 9px; white-space: nowrap; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: #5eb18a; }
.status-pending i { background: #d09b4c; }
.channel-card h3 { margin: 11px 0 4px; font-size: 11px; font-weight: 650; }
.channel-card p { min-height: 25px; margin-bottom: 5px; color: #84908d; font-size: 9px; }
.inline-notice { display: flex; align-items: flex-start; gap: 9px; margin-top: 17px; padding: 11px 12px; border: 1px solid #e4e8e3; border-radius: 5px; background: #fcfdfb; color: #78837f; font-size: 10px; line-height: 1.5; }
.inline-notice strong { color: #52615d; font-weight: 650; }
.notice-icon { width: 16px; height: 16px; display: grid; flex: 0 0 16px; place-items: center; border: 1px solid #bcc9c4; border-radius: 50%; color: #69817a; font-size: 9px; font-weight: 700; }
.campaign-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 17px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.campaign-summary > div { display: grid; gap: 6px; padding: 13px 16px; border-right: 1px solid var(--line); }
.campaign-summary > div:last-child { border: 0; }
.campaign-summary span { color: #81908c; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.campaign-summary strong { color: #34413e; font-size: 18px; font-weight: 670; }
.status-completed { background: #e6f3ec; color: #347652; }.status-scheduled { background: #fff2dc; color: #986a22; }.status-draft { background: #eef1f0; color: #75817e; }
.campaign-composer, .automation-composer { margin: 0 0 17px; padding: 16px; border: 1px solid #dce5e1; border-radius: 6px; background: white; }
.form-title { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.form-title h2 { margin: 0 0 4px; font-size: 14px; }.form-title p { margin: 0; color: #86918e; font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid textarea { height: 70px; padding: 8px; resize: vertical; }
.span-two { grid-column: span 2; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; }
.automation-overview { display: flex; align-items: center; gap: 30px; margin: 0 0 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.automation-overview > div { display: flex; align-items: center; gap: 9px; }
.automation-overview > div:not(:first-child) { display: grid; gap: 4px; }
.automation-overview strong { color: #34413e; font-size: 12px; font-weight: 650; }
.automation-overview small { color: #83908d; font-size: 9px; }
.overview-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 6px; background: #e4f2ed; color: #26765e; font-size: 17px; }
.automation-builder { display: grid; grid-template-columns: 1fr 26px 1fr; align-items: center; gap: 10px; }
.automation-builder label { min-width: 0; }
.automation-builder textarea { width: 100%; min-height: 66px; padding: 8px; resize: vertical; border: 1px solid #dde5e2; border-radius: 4px; background: white; font-size: 11px; }
.automation-builder label:last-child { grid-column: 1 / -1; max-width: calc((100% - 46px) / 2); }
.automation-builder label > span:first-child { margin-right: 5px; }
.step-index { width: 17px; height: 17px; display: inline-grid; place-items: center; border-radius: 50%; background: #e5f2ed; color: #367960; font-size: 9px; }
.action-index { background: #fae9df; color: #a9563b; }
.builder-arrow { align-self: center; color: #9ca8a5; text-align: center; font-size: 17px; }
.automation-list { border: 1px solid var(--line); border-radius: 6px; background: white; }
.automation-row { min-height: 66px; display: flex; align-items: center; gap: 13px; padding: 10px 13px; border-bottom: 1px solid #edf1ef; }
.automation-row:last-child { border-bottom: 0; }
.automation-symbol { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: #f0f3f2; color: #5d706a; font-size: 16px; }
.automation-main { min-width: 0; flex: 1; display: grid; gap: 5px; }
.automation-main > strong { overflow: hidden; color: #34413e; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.automation-meta { display: flex; flex-wrap: wrap; gap: 11px; color: #83908d; font-size: 9px; }
.automation-meta b { color: #5d6966; font-weight: 580; }
.run-count { color: #7e8a87; font-size: 9px; white-space: nowrap; }
.automation-run-history { margin-top: 12px; border-top: 1px solid var(--line); }
.run-history-heading { display: flex; justify-content: space-between; padding: 11px 2px; color: #475651; font-size: 11px; }
.run-history-heading span, .automation-run-row time { color: #84908c; font-size: 9px; }
.automation-run-row { display: grid; grid-template-columns: 62px minmax(120px, 1fr) minmax(120px, 1.4fr) auto; align-items: center; gap: 10px; min-height: 38px; border-top: 1px solid #edf1ef; color: #6d7975; font-size: 10px; }
.automation-run-row strong { overflow: hidden; color: #3d4a46; text-overflow: ellipsis; white-space: nowrap; }
.automation-run-row > span:nth-child(3) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-status { width: max-content; padding: 3px 6px; border-radius: 3px; background: #e7f3eb; color: #367650; }
.run-blocked { background: #fff0de; color: #94651f; }.run-skipped { background: #eef1f0; color: #75817e; }
.run-history-empty { padding: 8px 0; color: #84908c; font-size: 10px; }
.switch-label { display: inline-flex; align-items: center; gap: 7px; color: #697673; font-size: 10px; white-space: nowrap; }
.switch-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch { width: 27px; height: 15px; position: relative; display: inline-block; border-radius: 9px; background: #c9d1ce; transition: background .15s; }
.switch::after { width: 11px; height: 11px; position: absolute; top: 2px; left: 2px; border-radius: 50%; background: white; content: ''; transition: transform .15s; }
.switch-label input:checked + .switch { background: #378c74; }.switch-label input:checked + .switch::after { transform: translateX(12px); }
.switch-label input:focus-visible + .switch { outline: 3px solid #73c2b6; outline-offset: 2px; }
.report-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.report-kpis article { min-height: 110px; display: grid; align-content: start; gap: 8px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.report-kpis article > span { color: #81908c; font-size: 9px; font-weight: 700; letter-spacing: .05em; }
.report-kpis article > strong { color: #2f3d3a; font-size: 23px; font-weight: 680; line-height: 1; }
.report-kpis article > strong small { font-size: 12px; font-weight: 600; }
.positive { color: #3b8a68; font-size: 9px; font-weight: 650; }.positive span { margin-left: 3px; color: #8a9692; font-weight: 450; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr); gap: 12px; }
.report-panel { min-height: 275px; padding: 15px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.report-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.report-panel-heading h2 { margin: 0 0 4px; font-size: 12px; font-weight: 650; }.report-panel-heading p { margin: 0; color: #83908d; font-size: 9px; }
.bar-chart { height: 165px; display: flex; align-items: stretch; justify-content: space-around; gap: 15px; margin: 12px 6px 0; border-bottom: 1px solid #e8edeb; background: repeating-linear-gradient(to bottom, transparent 0, transparent 39px, #f0f3f2 40px); }
.bar-column { min-width: 25px; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; }
.bar-value { color: #8a9693; font-size: 8px; }
.bar-track { width: min(34px, 60%); height: 117px; display: flex; align-items: flex-end; }
.bar-track i { width: 100%; min-height: 4px; display: block; border-radius: 4px 4px 0 0; background: #9dcfc0; }.bar-track i.highlight { background: #df9676; }
.bar-label { height: 22px; color: #85918e; font-size: 9px; }
.chart-legend { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: #7e8b87; font-size: 9px; }.chart-legend i { width: 7px; height: 7px; border-radius: 2px; background: #9dcfc0; }
.channel-stat { margin-top: 16px; }.channel-stat > div:first-child { display: flex; justify-content: space-between; margin-bottom: 6px; color: #596662; font-size: 10px; }.channel-stat > div:first-child span { display: flex; align-items: center; gap: 6px; }.channel-stat strong { color: #3f4b48; font-size: 10px; font-weight: 650; }
.progress-track { height: 5px; overflow: hidden; border-radius: 4px; background: #eef1f0; }.progress-track i { height: 100%; display: block; border-radius: 4px; }.progress-teal { background: #6daf98; }.progress-coral { background: #db8d72; }.progress-blue { background: #8098bd; }.progress-amber { background: #d2ac68; }.progress-gray { background: #aab4b1; }
.team-summary { display: flex; align-items: center; gap: 12px; margin: 0 0 17px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.team-avatars { display: flex; padding-left: 3px; }.team-avatars .avatar { margin-left: -3px; border: 2px solid white; }
.team-summary > span:nth-child(2) { display: grid; gap: 4px; }.team-summary strong { color: #3e4a47; font-size: 11px; }.team-summary small, .team-summary-end { color: #85918e; font-size: 9px; }.team-summary-end { margin-left: auto; }
.settings-layout { display: grid; grid-template-columns: 165px minmax(0, 1fr); gap: 18px; }
.settings-nav { display: grid; align-content: start; gap: 3px; }.settings-nav button { height: 33px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: #75817e; text-align: left; font-size: 11px; }.settings-nav button.selected { background: #e9f2ef; color: #226d5c; font-weight: 650; }
.settings-panel { padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: white; }.settings-panel .section-heading { padding-bottom: 14px; border-bottom: 1px solid #edf0ef; }.settings-panel .section-heading h2 { margin-bottom: 5px; }.settings-panel .section-heading p { margin: 0; color: #87928f; font-size: 10px; }
.settings-form { max-width: 440px; display: grid; gap: 14px; padding-top: 16px; }.settings-form label { gap: 6px; }.settings-form input, .settings-form select { height: 36px; }
.settings-save { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.settings-security { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 13px 15px; border: 1px solid #e3e9e5; border-radius: 6px; background: #fbfcfb; }.settings-security > div { display: flex; align-items: center; gap: 9px; }.settings-security > div > span:last-child { display: grid; gap: 4px; }.settings-security strong { color: #46534f; font-size: 10px; }.settings-security small { color: #82908b; font-size: 9px; }
.security-icon { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #e1f0e8; color: #38775a; font-size: 11px; font-weight: 700; }
.toast { position: fixed; right: 22px; bottom: 52px; z-index: 20; display: flex; align-items: center; gap: 9px; max-width: min(360px, calc(100vw - 32px)); padding: 11px 15px; border: 1px solid #cfe3dc; border-radius: 6px; background: #fff; box-shadow: 0 8px 25px #18302f18; color: #3b4a46; font-size: 11px; }
.toast-check { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: #e3f2ec; color: #398361; font-size: 10px; }
.scrim { display: none; }
.pool-section-heading { display: flex; justify-content: space-between; margin: 21px 0 10px; }
.pool-section-heading h2, .routing-log h2 { margin: 0 0 4px; font-size: 13px; font-weight: 660; }
.pool-section-heading p { margin: 0; color: #83908d; font-size: 10px; }
.pool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pool-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: white; }
.pool-card-head { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #edf1ef; }
.pool-card-head > div { display: flex; align-items: center; gap: 9px; }
.pool-card-head > div > span:last-child { display: grid; gap: 4px; }
.pool-card-head strong { color: #34413e; font-size: 11px; }
.pool-card-head small { color: #84918d; font-size: 9px; }
.pool-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: #e5f2ed; color: #32755e; font-size: 11px; font-weight: 700; }
.sales-pool-row { min-height: 68px; display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-bottom: 1px solid #f0f2f1; }
.sales-pool-row:last-child { border-bottom: 0; }
.sales-pool-number { width: 25px; height: 25px; display: grid; flex: 0 0 25px; place-items: center; border-radius: 50%; background: #f4e9d8; color: #8b632b; font-size: 10px; font-weight: 750; }
.sales-pool-info { min-width: 0; flex: 1; display: grid; gap: 4px; }
.sales-pool-info > strong { color: #394542; font-size: 10px; }
.sales-pool-info > small { overflow: hidden; color: #84918d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.sales-link-edit { display: flex; align-items: center; gap: 4px; }
.sales-link-edit input { width: 100%; min-width: 0; height: 27px; padding: 0 6px; border: 1px solid #e1e8e5; border-radius: 4px; color: #5c6966; font-size: 9px; }
.sales-link-edit .small-icon { height: 25px; min-width: 25px; background: #e8f3ef; color: #26725c; }
.website-link-list { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: white; }
.website-link-row { min-height: 72px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-bottom: 1px solid #edf1ef; }
.website-link-row:last-child { border-bottom: 0; }
.link-mark { width: 29px; height: 29px; display: grid; flex: 0 0 29px; place-items: center; border-radius: 6px; background: #e6f2ee; color: #32775e; font-size: 15px; }
.website-link-main { min-width: 0; flex: 1; display: grid; gap: 5px; }
.website-link-main > strong { color: #36423f; font-size: 11px; }
.website-link-main > small { color: #83908d; font-size: 9px; }
.website-url { min-width: 0; display: flex; align-items: center; gap: 8px; }
.website-url code { max-width: 360px; overflow: hidden; color: #51716a; font: 9px ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.website-url a { color: var(--teal); font-size: 9px; text-decoration: none; white-space: nowrap; }
.website-link-row > select { height: 28px; border: 1px solid #e0e7e4; border-radius: 4px; background: white; font-size: 9px; }
.route-test-button { min-height: 28px; padding: 0 8px; border: 1px solid #dce5e1; border-radius: 4px; background: white; color: #48635c; font-size: 9px; white-space: nowrap; }
.route-test-button:hover { background: #f0f6f3; }
.routing-log { margin-top: 22px; }
.routing-log .section-heading { margin-bottom: 8px; }
.routing-log-list { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: white; }
.routing-log-list > div { min-width: 600px; min-height: 38px; display: grid; grid-template-columns: 75px 1.1fr 1fr 1.2fr 1fr; align-items: center; gap: 8px; padding: 0 11px; border-bottom: 1px solid #edf1ef; color: #65716e; font-size: 9px; }
.routing-log-list > div:last-child { border-bottom: 0; }
.routing-log-list strong { color: #3e4a47; font-size: 9px; }
.log-time { color: #84918d; }
.member-picker { display: flex; flex-wrap: wrap; gap: 9px 15px; margin: 0; padding: 10px; border: 1px solid #e1e8e5; border-radius: 5px; }
.member-picker legend { padding: 0 4px; color: #5d6b68; font-size: 10px; font-weight: 600; }
.member-picker label { display: flex; align-items: center; gap: 4px; color: #687571; font-size: 10px; }
.member-picker .member-pool-choice { min-width: min(100%, 260px); display: grid; grid-template-columns: 1fr minmax(120px, .9fr); align-items: center; gap: 8px; padding: 7px; border: 1px solid #e6ebe9; border-radius: 4px; }
.member-pool-choice.inactive { opacity: .55; }
.member-pool-choice span { white-space: nowrap; }
.member-pool-choice select { min-width: 0; height: 28px; padding: 0 5px; border: 1px solid #e1e8e5; border-radius: 4px; background: white; font-size: 9px; }
.pool-create-form, .pool-link-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.pool-link-form { margin: 0; border: 0; border-bottom: 1px solid #edf1ef; border-radius: 0; }
.pool-create-form label, .pool-link-form label, .pool-add-form label { min-width: 125px; display: grid; flex: 1 1 145px; gap: 5px; color: #66736f; font-size: 9px; }
.pool-create-form input, .pool-link-form input, .pool-link-form select, .pool-add-form input, .pool-add-form select { width: 100%; height: 30px; min-width: 0; padding: 0 8px; border: 1px solid #dfe6e3; border-radius: 4px; background: #fff; font-size: 10px; }
.pool-preview { min-height: 28px; display: inline-flex; align-items: center; color: var(--teal); font-size: 9px; text-decoration: none; white-space: nowrap; }
.pool-add-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 7px; padding: 10px; border-bottom: 1px solid #edf1ef; background: #fbfcfc; }
.team-links-section { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.team-links-section > .section-heading { align-items: center; margin: 0; padding: 12px 14px; border-bottom: 1px solid #edf1ef; }
.team-links-section > .section-heading > div { min-width: 0; }
.team-links-section > .section-heading h2 { margin: 0 0 4px; font-size: 13px; }
.team-links-section > .section-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.team-link-create-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 9px; padding: 11px 14px; border-bottom: 1px solid #edf1ef; background: #fafcfb; }
.team-link-create-form label { min-width: 150px; display: grid; flex: 1; gap: 5px; color: #697773; font-size: 10px; }
.team-link-create-form input { height: 31px; padding: 0 8px; border: 1px solid #dfe6e3; border-radius: 4px; background: #fff; font-size: 11px; }
.team-link-create-form .muted { max-width: 170px; padding-bottom: 7px; }
.team-link-list { display: grid; }
.team-link-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 14px; border-bottom: 1px solid #eef1f0; }
.team-link-row:last-child { border-bottom: 0; }
.team-link-copy { min-width: 0; flex: 1; display: grid; gap: 4px; }
.team-link-copy strong { color: #35413f; font-size: 11px; }
.team-link-copy a { overflow: hidden; color: var(--teal); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.team-link-copy small { color: #899590; font-size: 9px; }
.team-link-row > .text-button { flex: 0 0 auto; }
.pool-owner-label { align-self: center; color: #7b8884; font-size: 10px; }
.pool-owner-label strong { color: #43524d; font-weight: 620; }
.member-picker input { width: 13px; height: 13px; accent-color: var(--teal); }

@media (max-width: 1250px) {
  .inbox-layout { --conversation-list-size: 250px; grid-template-columns: minmax(200px, var(--conversation-list-size)) 10px minmax(0, 1fr); }
  .contact-sidebar { display: none; }
  .channel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { width: 222px; flex-basis: 222px; }
  .topbar { padding: 0 18px; }
  .page-content { padding: 21px 18px; }
  .page-foot { padding: 0 18px; }
  .report-kpis { grid-template-columns: repeat(2, 1fr); }
  .report-grid { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .shell { min-height: 100dvh; }
  .sidebar { width: min(280px, 84vw); position: fixed; inset: 0 auto 0 0; z-index: 30; transform: translateX(-101%); transition: transform .18s; box-shadow: 8px 0 30px #10201f25; }
  .nav-open .sidebar { transform: translateX(0); }
  .nav-open .scrim { position: fixed; inset: 0; z-index: 25; display: block; background: #18272570; }
  .mobile-close { display: block; }
  .mobile-menu { width: 28px; height: 30px; display: grid; place-items: center; margin-right: 8px; color: #5e6d69; }
  .topbar { height: 54px; flex-basis: 54px; justify-content: flex-start; padding: 0 12px; }
  .top-actions { gap: 5px; margin-left: auto; }
  .breadcrumbs { gap: 6px; font-size: 10px; }.breadcrumbs > span:first-child, .crumb-slash { display: none; }.breadcrumbs strong { font-size: 12px; }
  .search-box { width: 34px; padding: 0 7px; border-color: transparent; background: transparent; }.search-box input { width: 0; padding: 0; }.search-box:focus-within { width: min(45vw, 190px); border-color: #dce4e1; background: white; }.search-box:focus-within input { width: 100%; }.search-box kbd { display: none; }
  .help-button { display: none; }
  .page-content { padding: 17px 12px 21px; }
  .page-foot { min-height: 31px; padding: 0 12px; font-size: 8px; }
  .page-foot span:last-child { display: none; }
  .inbox-heading, .page-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 15px; }
  h1, .page-heading h1 { font-size: 20px; }
  .heading-actions { width: 100%; }.heading-actions button { flex: 1; }
  .team-links-section > .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .team-links-section > .section-heading > button { align-self: flex-start; }
  .team-link-create-form { align-items: stretch; }
  .team-link-create-form label, .team-link-create-form .muted { max-width: none; flex-basis: 100%; }
  .team-link-row { flex-wrap: wrap; gap: 8px 12px; }
  .team-link-copy { flex-basis: 100%; }
  .quick-send-list button { padding: 10px; }
  .inbox-layout { height: auto; min-height: calc(100dvh - 175px); grid-template-columns: 1fr; }
  .conversation-list { min-height: 198px; max-height: 34dvh; border-right: 0; border-bottom: 1px solid var(--line); }
  .conversation-row { padding: 9px 10px; }
  .conversation-panel { min-height: 410px; }
  .message-stream { min-height: 165px; }
  .message { max-width: 88%; }
  .composer { margin: 0 8px 8px; }
  .conversation-header { padding: 0 10px; }
  .contact-sidebar { position: fixed; top: 54px; right: 0; bottom: 31px; z-index: 15; width: min(290px, 84vw); box-shadow: -8px 0 30px #17242218; }
  .contact-sidebar.mobile-visible { display: block !important; }
  .form-strip { align-items: stretch; flex-direction: column; }
  .form-strip .primary-button, .form-strip .secondary-button { align-self: flex-start; }
  .channel-summary { align-items: flex-start; flex-wrap: wrap; gap: 10px 18px; }.channel-summary p { width: 100%; margin: 0; }
  .channel-grid { grid-template-columns: 1fr 1fr; gap: 7px; }.channel-card { padding: 10px; }
  .campaign-summary { grid-template-columns: repeat(2, 1fr); }.campaign-summary > div:nth-child(2) { border-right: 0; }.campaign-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .table-toolbar { align-items: flex-start; flex-direction: column; padding: 10px 0; }.table-actions { align-self: flex-end; }
  .form-grid { grid-template-columns: 1fr; }.span-two { grid-column: auto; }
  .automation-builder { grid-template-columns: 1fr; }.builder-arrow { transform: rotate(90deg); }.automation-builder label:last-child { max-width: none; }
  .automation-overview { align-items: flex-start; flex-wrap: wrap; gap: 13px 20px; }.automation-overview > div:first-child { width: 100%; }
  .automation-row { gap: 8px; padding: 9px; }.automation-meta { gap: 5px 9px; }.run-count { display: none; }
  .automation-run-row { grid-template-columns: 56px minmax(90px, 1fr); gap: 5px 8px; padding: 7px 0; }
  .automation-run-row > span:nth-child(3) { grid-column: 2; white-space: normal; }.automation-run-row time { grid-column: 2; }
  .report-kpis { gap: 7px; }.report-kpis article { min-height: 96px; padding: 11px; }.report-kpis article > strong { font-size: 20px; }
  .report-panel { padding: 12px; }.bar-chart { gap: 8px; margin-right: 0; margin-left: 0; }
  .settings-layout { grid-template-columns: 1fr; gap: 9px; }.settings-nav { display: flex; overflow-x: auto; }.settings-nav button { flex: 0 0 auto; }
  .settings-panel { padding: 13px; }.settings-save { align-items: flex-start; flex-direction: column; }.settings-security { align-items: flex-start; flex-direction: column; }
  .pool-grid { grid-template-columns: 1fr; }
  .pool-create-form, .pool-link-form { align-items: stretch; }
  .pool-create-form label, .pool-link-form label, .pool-add-form label { flex-basis: 100%; }
  .pool-create-form > button, .pool-link-form > button, .pool-link-form > a, .pool-add-form > button { flex: 1 1 auto; }
  .website-link-row { flex-wrap: wrap; }
  .website-link-main { flex-basis: calc(100% - 45px); }
  .website-link-row > select { margin-left: 40px; }
}

@media (min-width: 681px) and (max-width: 1120px) {
  .pool-grid { grid-template-columns: 1fr; }
}

.workspace-text strong, .profile-copy strong { font-size: 13px; }
.workspace-text small, .profile-copy small { font-size: 12px; }
.nav-label, .demo-note strong { font-size: 11px; }
.demo-note small, .page-foot { font-size: 11px; }
.nav-item, .breadcrumbs, .search-box input, .inbox-heading p, .page-heading p { font-size: 13px; }
.breadcrumbs strong { font-size: 14px; }
.eyebrow { font-size: 11px; }
.primary-button, .secondary-button { font-size: 13px; }
.text-button, .table-summary, .segmented button { font-size: 12px; }
.conversation-top strong, .contact-title strong, .details-heading, .customer-identity h2 { font-size: 13px; }
.conversation-top time, .conversation-preview, .channel-label, .assignee, .contact-title small,
.message-author, .composer-tools span, .composer-footer, .customer-identity p,
.stage-pill, .status-pill, .detail-label, .detail-line, .detail-line strong, .stage-control select,
.tag, .assigned-person, .empty-inline, .table-summary, .data-table th, .data-table td,
.table-person strong, .data-table td > strong, .table-person small, .table-stage,
.form-strip label, .form-grid label, .campaign-summary span, .campaign-summary strong,
.channel-card p, .channel-card h3, .automation-meta, .run-count, .pool-create-form label,
.pool-link-form label, .pool-add-form label, .pool-preview, .route-test-button,
.pool-link-form input, .pool-link-form select, .pool-add-form input, .pool-card-head strong,
.pool-card-head small, .sales-pool-info > strong, .sales-pool-info > small,
.routing-log-list > div, .routing-log-list strong { font-size: 11px; }
.message-bubble, .composer textarea, .data-table td, .table-person strong { font-size: 13px; }
.data-table th, .table-person small, .channel-label, .assignee, .sales-pool-info > small,
.routing-log-list > div { font-size: 12px; }
.conversation-preview, .message-author, .composer-footer, .detail-label, .detail-line,
.stage-control select, .stage-pill, .status-pill, .tag, .pool-preview { font-size: 11px; }
.data-table th { height: 44px; }
.data-table td { height: 61px; }
.conversation-preview { line-height: 1.35; }
.message-bubble { line-height: 1.6; }
.pool-link-form input, .pool-link-form select, .pool-add-form input { height: 34px; }
.pool-link-form label, .pool-create-form label, .pool-add-form label { gap: 6px; }
.sales-pool-row { min-height: 72px; }
.route-test-button { min-height: 32px; }
.main-nav { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; gap: 4px; overflow-y: auto; padding: 2px 0 10px; }
.nav-item { min-height: 41px; gap: 10px; padding: 0 10px; border-radius: 6px; font-size: 13px; }
.nav-item.active { box-shadow: inset 2px 0 #356fe0; }
.nav-item > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumbs { min-width: 0; max-width: min(48%, 520px); }
.breadcrumbs > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumbs strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.auth-shell { min-height: 100%; display: grid; place-items: center; padding: 24px; background: #f3f6f5; }
.auth-panel { width: min(100%, 430px); overflow: hidden; border: 1px solid #dfe7e4; border-radius: 7px; background: white; box-shadow: 0 10px 35px #213b3210; }
.auth-brand { height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 24px; border-bottom: 1px solid #e9eeec; color: #263a4d; font-size: 16px; }
.auth-brand .brand-mark { width: 27px; height: 27px; }
.auth-content { padding: 30px 32px 26px; }
.auth-content .eyebrow { margin-bottom: 8px; }
.auth-content h1 { margin: 0 0 8px; color: #253330; font-size: 24px; }
.auth-subtitle { margin: 0 0 24px; color: #75817e; font-size: 13px; line-height: 1.55; }
.auth-form { display: grid; gap: 15px; }
.auth-form label { display: grid; gap: 7px; color: #4c5a56; font-size: 12px; font-weight: 600; }
.auth-form input { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #d9e2de; border-radius: 5px; background: white; color: #263330; font-size: 14px; }
.auth-form input::placeholder { color: #a0aaa6; }
.auth-submit { width: 100%; min-height: 40px; margin-top: 4px; }
.auth-footnote { margin: 18px 0 0; color: #8a9692; font-size: 11px; text-align: center; }
.auth-error { margin: -9px 0 17px; padding: 10px 11px; border: 1px solid #f0d3ce; border-radius: 4px; background: #fff6f4; color: #a54435; font-size: 12px; line-height: 1.45; }
.invite-notice { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px; border: 1px solid #cfe4da; border-radius: 5px; background: #f5fbf8; }
.invite-notice > div { min-width: 0; flex: 1; }
.invite-notice strong { display: block; margin-bottom: 4px; color: #315d4d; font-size: 12px; }
.invite-notice p { margin: 0 0 5px; color: #71817a; font-size: 11px; }
.invite-notice code { display: block; overflow: hidden; color: #33735e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.invite-notice .secondary-button { flex: 0 0 auto; }

@media (max-width: 680px) {
  .auth-shell { padding: 15px; }
  .auth-content { padding: 25px 21px 22px; }
  .auth-content h1 { font-size: 22px; }
  .invite-notice { align-items: flex-start; flex-wrap: wrap; }
  .invite-notice > div { flex-basis: calc(100% - 22px); }
  .invite-notice .secondary-button { margin-left: 0; }
  .nav-item { min-height: 44px; font-size: 14px; }
  .breadcrumbs { max-width: min(42vw, 210px); font-size: 13px; }
  .breadcrumbs strong { font-size: 13px; }
  .page-foot { font-size: 10px; }
  .page-content { padding-right: 13px; padding-left: 13px; }
  .channel-card p, .channel-card h3, .data-table td { font-size: 12px; }
  .pool-create-form > button, .pool-link-form > button, .pool-link-form > a,
  .pool-add-form > button { min-height: 34px; }
}

html, body, #app { min-width: 0; }
.shell { height: 100vh; height: 100dvh; min-height: 0; }
.page-content { padding-top: 4px; padding-bottom: 20px; }
.inbox-heading, .page-heading { margin-bottom: 14px; }

@media (max-width: 900px) {
  .sidebar {
    width: min(280px, 84vw);
    flex: 0 0 min(280px, 84vw);
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    transform: translateX(-110%);
    transition: transform .18s;
    box-shadow: 8px 0 30px #10201f25;
  }
  .nav-open .sidebar { transform: translateX(0); }
  .nav-open .scrim { position: fixed; inset: 0; z-index: 25; display: block; background: #18272570; }
  .mobile-close { display: block; }
  .mobile-menu { width: 30px; height: 32px; display: grid; flex: 0 0 30px; place-items: center; margin-right: 8px; color: #5e6d69; }
  .topbar { height: 42px; flex: 0 0 42px; display: flex; align-items: center; padding: 0 10px; border: 0; background: transparent; }
  .page-content { padding: 4px 18px 18px; }
  .inbox-layout { grid-template-columns: minmax(180px, var(--conversation-list-size)) 10px minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .topbar { height: 42px; flex-basis: 42px; }
  .page-content { padding: 4px 12px 16px; }
  .inbox-heading, .page-heading { gap: 10px; margin-bottom: 12px; }
  .inbox-layout { min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(198px, var(--conversation-list-size, 34dvh)) 10px minmax(410px, auto); }
  .conversation-list { min-height: 0; max-height: none; border-right: 0; border-bottom: 0; }
  .conversation-resizer { width: 100%; min-width: 0; min-height: 10px; cursor: row-resize; }
  .conversation-resizer::after { width: 34px; height: 3px; }
  .resizing-conversations, .resizing-conversations * { cursor: row-resize !important; }
}

.channel-integration-card, .channel-unavailable { min-height: 0; display: flex; flex-direction: column; align-items: flex-start; }
.channel-integration-card .channel-card-top, .channel-unavailable .channel-card-top { width: 100%; }
.channel-integration-card h3, .channel-unavailable h3 { margin: 11px 0 5px; }
.channel-integration-card > p, .channel-unavailable > p { min-height: 0; line-height: 1.5; }
.channel-config-flags { display: grid; gap: 4px; margin: 0 0 10px; color: #71807c; font-size: 10px; line-height: 1.4; }
.channel-integration-card > button { margin-top: auto; }
.channel-integration-card > button:disabled { cursor: not-allowed; opacity: .5; }
.channel-test-feedback { width: 100%; padding: 7px 8px; border: 1px solid #cfe4d9; border-radius: 4px; background: #f4faf7; color: #39745c !important; }
.channel-test-feedback.is-error { border-color: #efd4ce; background: #fff7f5; color: #a34e42 !important; }
.channel-status-error { border-color: #efd4ce; background: #fff8f6; }
.channel-status-error .text-button { display: inline; margin-left: 4px; }
.channel-unavailable { border-style: dashed; background: #fafbfa; }
.channel-unavailable .status i { background: #aab4b1; }
