@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ink: #20222a;
  --muted: #7b7e89;
  --faint: #a4a6b0;
  --line: #ececf0;
  --paper: #ffffff;
  --canvas: #f7f7fa;
  --soft: #f2f1f7;
  --purple: #7864dd;
  --purple-dark: #5f4cc5;
  --purple-soft: #efedff;
  --green: #3aa56e;
  --coral: #ec7a67;
  --yellow: #f1b94b;
  --shadow: 0 10px 28px rgba(42, 36, 80, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--canvas); color: var(--ink); font-family: 'DM Sans', sans-serif; }
button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 246px; flex: 0 0 246px; padding: 25px 16px 18px; border-right: 1px solid var(--line); background: #fbfbfd; display: flex; flex-direction: column; }
.brand-row { display: flex; gap: 10px; align-items: center; padding: 0 9px 25px; }
.sidebar-collapse-button { margin-left: auto; color: #a3a4ad; font-size: 20px; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--purple); color: #fff; display: grid; place-items: center; font-family: Manrope; font-weight: 800; font-size: 19px; box-shadow: 0 5px 12px rgba(120,100,221,.25); }
.brand-name { font-family: Manrope; font-weight: 800; font-size: 15px; letter-spacing: .12em; line-height: 1; }
.brand-subtitle { color: var(--muted); font-size: 11px; margin-top: 4px; }
.new-message-button { width: 100%; border-radius: 11px; background: var(--ink); color: #fff; padding: 12px 14px; font-weight: 600; display: flex; align-items: center; gap: 9px; box-shadow: 0 8px 18px rgba(32,34,42,.11); }
.plus-icon { font-size: 21px; font-weight: 400; line-height: 0; }
.primary-nav { display: grid; gap: 5px; margin-top: 26px; }
.nav-item, .saved-view { text-decoration: none; color: #696c78; border-radius: 9px; padding: 10px 11px; display: flex; gap: 11px; align-items: center; font-size: 13px; background: transparent; width: 100%; text-align: left; }
.nav-item:hover, .saved-view:hover { background: #f0eff6; color: var(--ink); }
.nav-item.active { background: var(--purple-soft); color: var(--purple-dark); font-weight: 600; }
.nav-icon { width: 17px; font-size: 17px; line-height: 1; text-align: center; opacity: .85; }
.nav-count, .saved-count { margin-left: auto; font-size: 11px; color: var(--purple-dark); background: #e1dcff; padding: 2px 7px; border-radius: 20px; }
.nav-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); } .nav-dot.soft { background: #b7afe9; }
.sidebar-section-label { color: #afb0b8; text-transform: uppercase; letter-spacing: .11em; font-size: 10px; margin: 31px 11px 9px; font-weight: 700; }
.saved-view { font-size: 12px; color: #7b7e89; padding-top: 8px; padding-bottom: 8px; }
.view-dot { width: 8px; height: 8px; border-radius: 50%; }
.view-dot.coral { background: var(--coral); } .view-dot.purple { background: var(--purple); } .view-dot.green { background: var(--green); }
.saved-count { color: #8d8f99; background: transparent; padding: 0; }
.sidebar-footer { margin-top: auto; }
.quiet-new-message { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px 12px; color: #7f818d; background: transparent; font-size: 11px; text-align: left; } .quiet-new-message:hover { color: var(--purple-dark); } .quiet-new-message .plus-icon { font-size: 18px; color: var(--purple); }
.connection-status { color: #767984; font-size: 11px; display: flex; gap: 7px; align-items: center; padding: 0 10px 15px; width: 100%; text-align: left; background: transparent; }
.connection-status:hover { color: var(--purple-dark); }
.connection-status.connected { color: #4e9d70; }
.connection-status.waiting { color: #b07b45; }
.status-pulse { width: 7px; height: 7px; background: #c6c7cf; border-radius: 50%; box-shadow: none; flex: 0 0 auto; }
.connection-status.connected .status-pulse { background: var(--green); box-shadow: 0 0 0 4px #e1f4e9; }
.connection-status.waiting .status-pulse { background: #e0a15e; box-shadow: 0 0 0 4px #fff0df; }
.profile-card { border-top: 1px solid var(--line); padding: 16px 9px 0; width: 100%; display: flex; gap: 9px; align-items: center; background: transparent; text-align: left; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-size: 11px; font-weight: 700; color: #5546b1; }
.avatar-lilac { background: #e7e2ff; } .avatar-mint { background: #d8f1e5; color: #2d8055; } .avatar-peach { background: #ffe1d9; color: #b85e4c; } .avatar-sky { background: #dcecff; color: #4476af; }
.profile-meta { display: grid; gap: 3px; min-width: 0; } .profile-meta strong { font-size: 12px; } .profile-meta span { color: var(--muted); font-size: 10px; }
.profile-chevron { margin-left: auto; color: var(--faint); }
.main-content { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.app-shell.sidebar-collapsed .sidebar { width: 72px; flex-basis: 72px; padding-left: 10px; padding-right: 10px; } .app-shell.sidebar-collapsed .brand-row { padding-left: 0; padding-right: 0; justify-content: center; } .app-shell.sidebar-collapsed .brand-row > div:not(.brand-mark), .app-shell.sidebar-collapsed .nav-item span:not(.nav-icon), .app-shell.sidebar-collapsed .sidebar-section-label, .app-shell.sidebar-collapsed .saved-view, .app-shell.sidebar-collapsed .quiet-new-message span:not(.plus-icon), .app-shell.sidebar-collapsed .connection-status span:not(.status-pulse), .app-shell.sidebar-collapsed .profile-meta, .app-shell.sidebar-collapsed .profile-chevron { display: none; } .app-shell.sidebar-collapsed .sidebar-collapse-button { transform: rotate(180deg); margin-left: 0; } .app-shell.sidebar-collapsed .nav-item, .app-shell.sidebar-collapsed .quiet-new-message, .app-shell.sidebar-collapsed .connection-status, .app-shell.sidebar-collapsed .profile-card { justify-content: center; padding-left: 0; padding-right: 0; } .app-shell.sidebar-collapsed .nav-count, .app-shell.sidebar-collapsed .nav-dot { display: none; } .app-shell.sidebar-collapsed .quiet-new-message { padding-top: 8px; } .app-shell.sidebar-collapsed .profile-card { border-top: 1px solid var(--line); }
.topbar { height: 90px; padding: 0 31px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.48); }
.topbar-left { display: flex; align-items: center; gap: 15px; } .eyebrow { color: var(--faint); text-transform: uppercase; letter-spacing: .11em; font-size: 9px; font-weight: 700; margin-bottom: 6px; }
h1 { margin: 0; font-family: Manrope; font-size: 20px; letter-spacing: -.025em; } .topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { width: 33px; height: 33px; border-radius: 10px; color: #777985; background: transparent; font-size: 19px; display: grid; place-items: center; position: relative; }
.icon-button:hover { background: #efeff4; color: var(--ink); } .icon-button.subtle { color: #9b9da7; }
.has-notification span { position: absolute; top: 6px; right: 7px; width: 5px; height: 5px; background: var(--coral); border-radius: 50%; border: 1px solid var(--canvas); }
.help-button { width: 24px; height: 24px; border-radius: 50%; color: #8f91a0; background: #eeeef3; font-size: 12px; font-weight: 700; margin-left: 7px; }
.workspace { display: grid; grid-template-columns: 292px minmax(390px, 1fr) 286px; height: calc(100vh - 90px); min-height: 600px; position:relative; }
.dashboard-view { flex:1; padding: 28px 34px 42px; overflow:auto; } .dashboard-view.hidden { display:none; } .dashboard-heading { max-width:1160px; margin:0 auto 24px; display:flex; align-items:flex-start; justify-content:space-between; gap:20px; } .dashboard-heading h2 { font-family:Manrope; font-size:26px; letter-spacing:-.04em; margin:0 0 7px; } .dashboard-heading p { color:var(--muted); margin:0; font-size:12px; } .dashboard-metrics { max-width:1160px; margin:0 auto 17px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; } .dashboard-metric-card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:17px; min-height:122px; box-shadow:var(--shadow); display:flex; flex-direction:column; } .dashboard-metric-card.primary { background:linear-gradient(145deg,#f0edff,#fff); border-color:#e2dcff; } .dashboard-metric-card strong { font:700 28px Manrope; margin-top:17px; } .dashboard-metric-card .metric-trend { margin-top:auto; } .metric-trend.neutral { color:#8d8f99; } .metric-trend.warning { color:#c17d3d; }
.dashboard-main-grid { max-width:1160px; margin:0 auto; display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:14px; } .priority-panel, .dashboard-side-card { background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); } .priority-panel { padding:19px; } .priority-panel-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:13px; } .priority-panel-heading h3, .dashboard-side-card h3 { font:700 15px Manrope; margin:0; } .priority-panel-heading .eyebrow { margin-bottom:4px; } .priority-list { display:grid; gap:8px; } .priority-item { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:11px; align-items:center; border:1px solid #eeeeF2; border-radius:11px; padding:11px 12px; } .priority-item:hover { background:#faf9ff; border-color:#ddd6ff; } .priority-item .avatar { width:34px; height:34px; font-size:10px; } .priority-copy { min-width:0; } .priority-copy strong { display:block; font-size:11px; } .priority-copy p { color:#858793; font-size:10px; margin:4px 0 7px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .priority-meta { display:flex; align-items:center; gap:6px; } .priority-chip { border-radius:4px; padding:3px 5px; font-size:8px; color:#7160bd; background:#eeebff; } .priority-chip.internal { color:#ad6a40; background:#fff1e8; } .priority-age { color:#a2a3ac; font-size:9px; } .priority-actions { display:flex; gap:6px; align-items:center; } .priority-action { border:1px solid #e7e3ff; color:#6d5cc2; background:#f6f4ff; padding:6px 8px; border-radius:7px; font-size:9px; white-space:nowrap; } .priority-action.secondary { border-color:transparent; background:transparent; color:#a0a1ab; } .priority-action:hover { background:#eae6ff; } .dashboard-side-card { padding:21px; background:linear-gradient(145deg,#2d2944,#514590); color:#fff; } .dashboard-side-card .eyebrow { color:#c9c2f8; } .dashboard-side-card h3 { font-size:18px; line-height:1.18; margin-top:27px; } .dashboard-side-card p { color:#d9d4ee; font-size:11px; line-height:1.5; margin:10px 0 18px; } .ai-summary-row { display:flex; gap:9px; align-items:center; border-top:1px solid rgba(255,255,255,.14); border-bottom:1px solid rgba(255,255,255,.14); padding:12px 0; } .ai-summary-icon { width:27px; height:27px; border-radius:8px; display:grid; place-items:center; background:rgba(255,255,255,.13); color:#e6e1ff; } .ai-summary-row div { display:grid; gap:3px; } .ai-summary-row strong { font-size:10px; } .ai-summary-row span { color:#c5bfdf; font-size:9px; } .dashboard-side-card .primary-button { margin-top:17px; background:#fff; color:#5f4cc5; }
.inbox-column { border-right: 1px solid var(--line); background: #fbfbfd; display: flex; flex-direction: column; min-width: 0; }
.inbox-toolbar { padding: 17px 16px 11px; display: flex; align-items: center; justify-content: space-between; }
.inbox-tabs { display: flex; gap: 14px; min-width: 0; } .tab-button { color: #989aa5; background: none; padding: 4px 0; font-size: 11px; white-space: nowrap; } .tab-button span { font-size: 10px; margin-left: 3px; color: #b2b3bb; } .tab-button.active { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--purple); }
.search-box { margin: 0 15px 12px; height: 34px; border: 1px solid #e7e7ec; background: #fff; border-radius: 9px; display: flex; align-items: center; gap: 7px; padding: 0 9px; color: #a5a7b1; }
.search-box input { min-width: 0; border: 0; outline: none; flex: 1; font-size: 11px; color: var(--ink); background: transparent; } .search-box input::placeholder { color: #b2b3bc; } kbd { font-size: 9px; border: 1px solid #e4e4e9; background: #f8f8fb; padding: 2px 4px; color: #aaa; border-radius: 4px; }
.conversation-list { overflow: auto; padding-bottom: 12px; } .conversation-item { padding: 14px 16px; display: flex; gap: 10px; border-left: 3px solid transparent; cursor: pointer; } .conversation-item:hover { background: #f5f4f8; } .conversation-item.selected { background: #f1effc; border-left-color: var(--purple); }
.inbox-column-footer { margin-top: auto; padding: 12px 15px 17px; border-top: 1px solid var(--line); background: #fbfbfd; }
.conversation-copy { flex: 1; min-width: 0; } .conversation-line { display: flex; justify-content: space-between; gap: 7px; } .conversation-name { font-size: 12px; font-weight: 700; } .conversation-time { color: #aaabb4; font-size: 10px; white-space: nowrap; } .conversation-preview { color: #858792; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; } .conversation-meta { display: flex; align-items: center; gap: 5px; margin-top: 7px; }
.mini-tag { border-radius: 4px; background: #f0eff7; color: #858092; font-size: 9px; padding: 3px 5px; } .mini-tag.high { color: #bb5c4c; background: #fff0ed; } .mini-tag.waiting { color: #7160bd; background: #eeebff; } .unread-count { margin-left: auto; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 12px; background: var(--purple); color: #fff; display: grid; place-items: center; font-size: 9px; }
.conversation-panel { min-width: 0; background: #fff; display: flex; flex-direction: column; }
.conversation-header { min-height: 70px; border-bottom: 1px solid var(--line); padding: 16px 21px; display: flex; justify-content: space-between; align-items: center; } .conversation-person { display: flex; align-items: center; gap: 10px; } .conversation-person h2 { margin: 0; font-size: 14px; font-family: Manrope; } .conversation-person p { margin: 3px 0 0; font-size: 10px; color: #9b9da7; } .online-dot { color: var(--green); font-size: 10px; } .header-actions { display: flex; gap: 5px; align-items:center; } .transfer-button { display:flex; align-items:center; gap:6px; color:#6d5cc2; background:#f0edff; border:1px solid #e5e0ff; border-radius:8px; padding:7px 9px; font-size:10px; font-weight:700; } .transfer-button:hover { background:#e5e1ff; }
.message-area { flex: 1; overflow: auto; padding: 23px 27px; background: linear-gradient(180deg,#fff 0%, #fdfdff 100%); } .date-divider { display: flex; align-items: center; gap: 10px; color: #b0b1ba; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin: 2px 0 22px; } .date-divider::before, .date-divider::after { content: ''; height: 1px; background: #f0f0f3; flex: 1; }
.message-row { display: flex; gap: 9px; margin: 14px 0; align-items: flex-end; } .message-row.outgoing { flex-direction: row-reverse; } .message-bubble { max-width: 71%; padding: 10px 12px; border-radius: 13px 13px 13px 3px; color: #4f515d; background: #f4f3f8; font-size: 12px; line-height: 1.45; position: relative; } .outgoing .message-bubble { color: #fff; background: var(--purple); border-radius: 13px 13px 3px 13px; } .message-time { color: #b1b2bb; font-size: 9px; margin: 0 2px 3px; white-space: nowrap; } .outgoing .message-time { color: #b1b2bb; } .message-reaction { position: absolute; bottom: -11px; right: 6px; padding: 2px 5px; border: 2px solid #fff; border-radius: 10px; background: #fafafa; font-size: 11px; box-shadow: 0 2px 5px rgba(20,20,40,.08); cursor: pointer; } .message-actions { position: relative; display: flex; align-items: center; } .message-react-button { width: 22px; height: 22px; border-radius: 7px; color: #a4a5ae; background: transparent; font-size: 14px; opacity: .55; } .message-react-button:hover { opacity: 1; color: var(--purple); background: var(--purple-soft); } .message-reaction-menu { position: absolute; left: 0; bottom: 25px; display: flex; gap: 3px; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow); z-index: 2; } .message-reaction-menu button { padding: 3px; border-radius: 5px; background: #f7f7fa; font-size: 14px; } .message-reaction-menu button:hover { background: var(--purple-soft); }
.attachment-bubble { display: block; min-width: 175px; } .attachment-content { display: grid; gap: 8px; } .attachment-file-row { display: flex; gap: 9px; align-items: center; } .attachment-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.18); font-size: 16px; flex: 0 0 auto; } .attachment-copy { min-width: 0; } .attachment-bubble strong { display:block; font-size: 11px; overflow-wrap:anywhere; } .attachment-bubble span { display:block; opacity: .72; font-size: 9px; margin-top: 2px; } .attachment-preview { display: block; border-radius: 9px; overflow: hidden; background: rgba(255,255,255,.12); } .attachment-preview img { display:block; width: min(230px, 100%); max-height: 190px; object-fit: cover; } .attachment-audio, .attachment-video { display:block; width: min(260px, 100%); max-width: 100%; } .attachment-video { border-radius: 9px; max-height: 190px; background: rgba(0,0,0,.12); } .attachment-download { display:inline-flex; margin-top: 7px; color: inherit; font-size: 9px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; opacity: .86; } .attachment-download:hover { opacity: 1; }
.composer-wrap { padding: 10px 20px 17px; border-top: 1px solid #f1f1f4; position: relative; } .composer-tools { display:flex; gap: 9px; align-items: center; margin-bottom: 7px; } .composer-tool { background: transparent; color: #9294a0; font-size: 17px; padding: 2px 4px; } .composer-tool:hover { color: var(--purple); } .composer-hint { color: #b5b5be; font-size: 9px; margin-left: auto; } .composer-box { border: 1px solid #e7e6eb; border-radius: 10px; display: flex; align-items: flex-end; padding: 7px 7px 7px 12px; background: #fff; box-shadow: 0 4px 14px rgba(40,30,80,.03); } textarea { resize: none; border: 0; outline: 0; min-height: 22px; max-height: 88px; flex:1; font-size: 12px; color: var(--ink); background: transparent; } textarea::placeholder { color: #b3b4bd; } .send-button { width: 28px; height: 28px; display:grid; place-items:center; background: var(--purple); color:#fff; border-radius: 8px; font-size: 17px; } .send-button:hover { background: var(--purple-dark); } .quick-emoji { position:absolute; bottom: 82px; left: 20px; background:#fff; padding: 7px; border: 1px solid var(--line); border-radius:10px; box-shadow: var(--shadow); display:flex; gap: 4px; } .quick-emoji[hidden], .message-reaction-menu[hidden] { display:none; } .quick-emoji button { background: #f7f7fa; border-radius: 7px; font-size: 17px; padding: 4px; } .quick-emoji button:hover { background: var(--purple-soft); }
.details-panel { border-left: 1px solid var(--line); background: #fbfbfd; overflow: auto; } .workspace.details-collapsed { grid-template-columns: 292px minmax(390px, 1fr) 0; } .workspace.details-collapsed .details-panel { display:none; } .details-reopen-button { display:none; position:absolute; right:0; top:17px; align-items:center; gap:5px; color:#7061bd; background:#f0edff; border:1px solid #e3ddff; border-right:0; border-radius:8px 0 0 8px; padding:8px 10px; font-size:10px; font-weight:700; box-shadow:0 4px 10px rgba(70,55,140,.08); } .workspace.details-collapsed .details-reopen-button { display:flex; } .details-header { height: 70px; padding: 0 19px; display:flex; align-items:center; justify-content:space-between; border-bottom: 1px solid var(--line); } .details-header-actions { display:flex; gap:2px; } .details-title { font-family: Manrope; font-size: 14px; font-weight: 700; } .contact-summary { padding: 22px 20px 17px; text-align:center; } .contact-summary .avatar { margin: 0 auto 9px; width: 50px; height: 50px; font-size: 14px; } .contact-summary h2 { margin: 0; font-family: Manrope; font-size: 15px; } .contact-summary p { margin: 5px 0 0; color: #999ba5; font-size: 10px; } .contact-channel { color: #858793; font-size: 10px; margin-top: 12px; } .contact-actions { display:flex; justify-content:center; gap:6px; margin-top:13px; } .small-action { color: #7262c5; background: #efedff; border-radius: 6px; padding: 6px 9px; font-size: 10px; } .small-action:hover { background: #e5e1ff; }
.detail-section { border-top: 1px solid var(--line); padding: 17px 20px; } .section-heading { display:flex; align-items:center; gap:7px; font-size: 11px; font-weight: 700; margin-bottom: 11px; } .inline-action { margin-left:auto; background: none; color: var(--purple); font-size: 10px; } .ai-sparkle { color: var(--purple); font-size: 15px; } .live-badge { margin-left:auto; color: #9b9ca6; background: #f0eff4; border-radius: 4px; font-size: 7px; letter-spacing: .08em; padding: 3px 5px; }
.ai-card { background: linear-gradient(135deg,#f0edff,#f8f7ff); border: 1px solid #e6e1ff; padding: 12px; border-radius: 10px; } .ai-card strong { display:block; color:#6654bd; font-size: 11px; line-height:1.35; } .ai-card p { margin: 7px 0 0; color: #77728f; font-size: 10px; line-height: 1.45; } .ai-card .ai-action { display:flex; gap:6px; align-items:center; margin-top:11px; font-size:9px; color:#6856c1; font-weight:700; }
.notes-card { color: #7b7d88; font-size: 10px; line-height: 1.55; background:#fff; border:1px solid #ededf1; padding:10px; border-radius:8px; } .tag-list { display:flex; flex-wrap:wrap; gap:6px; } .tag { display:flex; align-items:center; gap:5px; background:#f1eff7; color:#716f7c; border-radius:5px; padding:5px 7px; font-size:9px; } .tag button { background:none; color:#a1a1ab; padding:0; line-height:1; } .tag.green { background:#e9f6ee; color:#31835a; } .tag.orange { background:#fff1e8; color:#b46d41; } .tag.blue { background:#eaf2ff; color:#4f76a8; } .assignee-row { display:flex; align-items:center; gap:8px; font-size:10px; color:#676a75; } .assignee-row .avatar { width:25px; height:25px; font-size:8px; } .compact-section { padding-bottom: 28px; }
.secondary-view { flex:1; padding: 42px; } .hidden { display:none !important; } .empty-view-card { background:#fff; border:1px solid var(--line); border-radius:18px; padding:70px 25px; text-align:center; max-width:540px; margin: 40px auto; box-shadow: var(--shadow); } .empty-icon { width:50px; height:50px; border-radius:15px; margin:0 auto 16px; background: var(--purple-soft); color:var(--purple); display:grid; place-items:center; font-size:25px; } .empty-view-card h2 { font-family: Manrope; margin:0; font-size:22px; } .empty-view-card p { color:var(--muted); max-width:370px; margin:10px auto 22px; font-size:13px; line-height:1.5; } .primary-button { padding:11px 15px; border-radius:9px; background:var(--purple); color:#fff; font-weight:600; font-size:12px; }
.team-page { max-width:1120px; margin:0 auto; } .team-summary-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) auto; gap:12px; margin:18px 0 14px; align-items:stretch; } .team-summary-card, .team-list-panel { background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); } .team-summary-card { padding:18px; display:flex; flex-direction:column; min-height:112px; } .team-summary-card strong { font:700 28px Manrope; margin-top:17px; } .team-summary-card span:last-child { color:var(--muted); font-size:10px; margin-top:auto; } .team-invite-button { align-self:center; white-space:nowrap; } .team-list-panel { padding:19px; } .team-member-list { display:grid; gap:8px; } .team-member-card { display:flex; align-items:center; gap:11px; padding:12px; border:1px solid #eeeef2; border-radius:11px; } .team-member-copy { min-width:0; flex:1; } .team-member-copy strong { display:block; font-size:12px; } .team-member-copy span { display:block; color:#999ba5; font-size:10px; margin-top:3px; } .team-member-copy p { color:#858793; font-size:10px; margin:6px 0 0; } .team-member-meta { display:flex; flex-direction:column; align-items:flex-end; gap:5px; } .team-role, .team-status { border-radius:5px; padding:4px 7px; font-size:9px; } .team-role { color:#6655b7; background:#eeebff; } .team-role.manager { color:#5278af; background:#e8f0ff; } .team-role.observer { color:#777985; background:#f1f1f5; } .team-status.active { color:#31835a; background:#e9f6ee; } .team-status.pending { color:#b46d41; background:#fff1e8; }
.insights-page, .automation-page { max-width: 1120px; margin: 0 auto; } .insights-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin: 8px 0 20px; } .insights-heading h2 { font-family:Manrope; font-size:24px; letter-spacing:-.03em; margin:0 0 7px; } .insights-heading p { color:var(--muted); font-size:12px; line-height:1.5; margin:0; max-width:560px; } .scope-badge { color:#6655b7; background:#eeebff; border-radius:20px; padding:7px 10px; font-size:9px; font-weight:700; white-space:nowrap; }
.insights-grid { display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap:14px; margin: 18px 0 24px; } .insight-hero { grid-row: span 2; padding:28px; min-height:330px; border-radius:18px; background: linear-gradient(140deg, #28233d, #4e3f89); color:#fff; } .insight-hero .eyebrow { color:#c9c2f8; } .insight-hero h2 { font-family: Manrope; font-size:24px; line-height:1.15; max-width:310px; margin: 30px 0 12px; } .insight-hero p { color:#d7d1f3; font-size:12px; line-height:1.5; max-width:300px; } .hero-metric { display:flex; align-items:center; gap:9px; margin-top:38px; } .hero-metric strong { font-size:27px; font-family:Manrope; } .hero-metric span { color:#d7d1f3; font-size:10px; max-width:100px; line-height:1.3; } .metric-card { background:#fff; border:1px solid var(--line); border-radius:15px; padding:20px; min-height:145px; box-shadow:var(--shadow); display:flex; flex-direction:column; } .metric-label { color:var(--muted); font-size:11px; } .metric-card strong { font-family:Manrope; font-size:29px; margin-top:20px; } .metric-trend { color:var(--green); font-size:10px; margin-top:auto; }
.pending-section { border:1px solid var(--line); border-radius:16px; background:#fff; padding:18px; box-shadow:var(--shadow); } .pending-section-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:13px; } .pending-section-heading h3 { font-family:Manrope; font-size:15px; margin:0; } .pending-section-heading .eyebrow { margin-bottom:4px; } .pending-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:9px; } .pending-card { border:1px solid #eeeef2; border-radius:11px; padding:12px; display:grid; grid-template-columns:auto 1fr auto; gap:9px; align-items:start; cursor:pointer; transition:.18s ease; } .pending-card:hover { border-color:#d8d1ff; background:#faf9ff; transform:translateY(-1px); } .pending-card .avatar { width:29px; height:29px; font-size:9px; } .pending-copy { min-width:0; } .pending-copy strong { display:block; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .pending-copy p { color:#858793; font-size:10px; margin:5px 0 8px; line-height:1.35; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .pending-meta { display:flex; align-items:center; gap:5px; } .pending-owner { font-size:9px; color:#9b9ca5; } .pending-arrow { color:#aaa; font-size:14px; padding-top:4px; } .pending-type { color:#7160bd; background:#eeebff; border-radius:4px; padding:3px 5px; font-size:8px; } .pending-type.internal { color:#ad6a40; background:#fff1e8; }
.automation-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:13px; } .automation-card { background:#fff; border:1px solid var(--line); border-radius:15px; padding:19px; min-height:205px; box-shadow:var(--shadow); display:flex; flex-direction:column; position:relative; } .automation-card.active { border-color:#d9d2ff; background:linear-gradient(145deg,#fff,#fbfaff); } .automation-icon { width:33px; height:33px; border-radius:10px; display:grid; place-items:center; color:#4a9b6e; background:#e3f5e9; font-weight:700; font-size:17px; margin-bottom:16px; } .automation-icon.orange { color:#b66c3e; background:#fff0e5; } .automation-icon.blue { color:#5278af; background:#e8f0ff; } .automation-status { color:#9b9ca6; text-transform:uppercase; letter-spacing:.08em; font-size:8px; font-weight:700; } .automation-card h3 { font-family:Manrope; font-size:14px; margin:7px 0; } .automation-card p { color:#858793; font-size:10px; line-height:1.45; margin:0; } .automation-action { margin-top:auto; align-self:flex-start; background:transparent; color:var(--purple); padding:9px 0 0; font-size:10px; font-weight:700; }
.toast { position:fixed; left:50%; bottom:24px; transform:translate(-50%, 25px); padding:11px 15px; border-radius:10px; background:#24232e; color:#fff; font-size:11px; opacity:0; pointer-events:none; transition:.25s ease; box-shadow:var(--shadow); z-index:5; } .toast.show { opacity:1; transform:translate(-50%,0); } .modal-backdrop { position:fixed; inset:0; z-index:10; background:rgba(27,25,38,.3); display:grid; place-items:center; padding:20px; } .modal-backdrop[hidden] { display:none; } .modal { width:min(430px,100%); border-radius:16px; background:#fff; padding:25px; position:relative; box-shadow:0 18px 50px rgba(24,20,50,.18); } .modal-close { position:absolute; top:13px; right:14px; color:#9a9ba5; background:none; font-size:20px; } .modal h2 { font-family:Manrope; font-size:18px; margin:0 0 7px; } .modal p { color:var(--muted); font-size:11px; line-height:1.5; margin:0 0 18px; } .modal-form { display:grid; gap:10px; } .modal-form input, .modal-form textarea, .modal-form select { border:1px solid var(--line); padding:10px; border-radius:8px; font-size:12px; width:100%; background:#fff; color:var(--ink); } .modal-form textarea { min-height:80px; } .modal-footer { display:flex; justify-content:flex-end; gap:8px; margin-top:15px; } .secondary-button { padding:10px 13px; border-radius:8px; color:#777985; background:#f1f1f5; font-size:11px; } .connection-dialog { display:grid; gap:14px; } .connection-state { display:flex; align-items:center; gap:8px; padding:10px 12px; background:#f7f7fa; border-radius:9px; color:#777985; font-size:11px; } .connection-state strong { color:var(--ink); } .connection-qr { display:grid; place-items:center; min-height:190px; padding:15px; border:1px dashed #dedbe9; border-radius:12px; background:#fcfbff; } .connection-qr img { width:180px; height:180px; image-rendering:auto; } .connection-qr p { margin:0; text-align:center; } .connection-actions { display:flex; gap:8px; justify-content:flex-end; }
.gateway-config { display:grid; gap:6px; } .gateway-config label { color:#777985; font-size:10px; font-weight:700; } .gateway-config-row { display:flex; gap:7px; } .gateway-config-row input { min-width:0; flex:1; border:1px solid var(--line); padding:10px; border-radius:8px; font-size:11px; color:var(--ink); } .gateway-config-row .secondary-button { padding:0 11px; } .gateway-config small { color:#a1a2ab; font-size:9px; }
.priority-empty { padding:20px 0; color:#8b8c96; font-size:11px; } .pending-card-actions { display:flex; align-items:center; gap:5px; } .pending-card-open, .pending-card-done { color:#6d5cc2; background:#f6f4ff; border-radius:6px; padding:5px 7px; font-size:9px; } .pending-card-done { color:#31835a; background:#e9f6ee; }
.mobile-only { display:none; }
@media (max-width: 1120px) { .workspace { grid-template-columns: 272px minmax(360px, 1fr); } .details-panel { display:none; } }
@media (max-width: 780px) { .sidebar { position:fixed; z-index:20; left:0; top:0; bottom:0; transform:translateX(-102%); transition:transform .25s ease; box-shadow: 12px 0 30px rgba(30,20,70,.12); } .sidebar.open { transform:translateX(0); } .sidebar-collapse-button { display:none; } .mobile-only { display:grid; } .brand-row .mobile-only { margin-left:auto; } .topbar { padding:0 16px; height:76px; } .workspace { height:calc(100vh - 76px); grid-template-columns: 1fr; } .inbox-column { display:none; } .inbox-column.mobile-visible { display:flex; } .conversation-panel { display:flex; } .details-panel { display:none; } .details-reopen-button { display:none !important; } .header-actions .icon-button:nth-child(n+2) { display:none; } .transfer-button { display:none; } .composer-hint { display:none; } .message-area { padding:18px 16px; } .message-bubble { max-width:83%; } .dashboard-view { padding:20px 16px 30px; } .dashboard-heading { flex-direction:column; } .dashboard-metrics, .dashboard-main-grid { grid-template-columns:1fr; } .priority-item { grid-template-columns:auto minmax(0,1fr); } .priority-actions { grid-column:2; } .insights-grid, .pending-grid, .automation-grid { grid-template-columns:1fr; } .insight-hero { grid-row:auto; } .insights-heading { flex-direction:column; } .secondary-view { padding:18px; } .team-summary-row { grid-template-columns:1fr 1fr; } .team-invite-button { grid-column:1 / -1; justify-self:start; } }

/* Visual system: consistent icons, clearer hierarchy and inbox ergonomics. */
.ui-icon { width: 16px; height: 16px; display: block; flex: 0 0 auto; }
.nav-icon { display: grid; place-items: center; }
.nav-icon .ui-icon { width: 17px; height: 17px; }
.plus-icon .ui-icon { width: 16px; height: 16px; }
.icon-button .ui-icon, .help-button .ui-icon { width: 16px; height: 16px; }
.composer-tool .ui-icon { width: 17px; height: 17px; }
.send-button .ui-icon { width: 15px; height: 15px; }
.sidebar-collapse-button .ui-icon { transition: transform .18s ease; }
.app-shell.sidebar-collapsed .sidebar-collapse-button .ui-icon { transform: rotate(180deg); }

.workspace { grid-template-columns: 300px minmax(0, 1fr) 320px; }
.inbox-column { background: #fafafd; }
.inbox-toolbar { padding: 15px 15px 10px; border-bottom: 1px solid #f1f0f4; }
.inbox-tabs { gap: 11px; overflow-x: auto; scrollbar-width: none; }
.inbox-tabs::-webkit-scrollbar { display: none; }
.tab-button { padding: 7px 0 8px; font-size: 10px; }
.tab-button.active { border-bottom-width: 2px; }
.search-box { margin: 12px 15px 10px; height: 36px; }
.conversation-list { padding: 0 7px 14px; }
.conversation-item { position: relative; padding: 13px 9px 13px 10px; border-left-width: 2px; border-bottom: 1px solid #f0eff3; border-radius: 9px; margin: 2px 0; transition: background .16s ease, border-color .16s ease; }
.conversation-item:hover { background: #f5f4f9; }
.conversation-item.selected { background: #f0edff; border-left-color: var(--purple); }
.conversation-item.unread .conversation-name { font-weight: 800; }
.conversation-item.unread .conversation-preview { color: #5f616d; font-weight: 500; }
.conversation-item:focus-visible { outline: 2px solid #b8adf5; outline-offset: -2px; }
.conversation-read-toggle { width: 25px; height: 25px; display: grid; place-items: center; align-self: flex-start; border-radius: 7px; color: #9a9ca7; background: transparent; opacity: 0; transition: opacity .16s ease, background .16s ease, color .16s ease; }
.conversation-item:hover .conversation-read-toggle, .conversation-item.selected .conversation-read-toggle, .conversation-item.unread .conversation-read-toggle { opacity: 1; }
.conversation-read-toggle:hover { color: var(--purple-dark); background: #e6e1ff; }
.conversation-read-toggle .ui-icon { width: 14px; height: 14px; }
.priority-action .ui-icon, .pending-card-done .ui-icon, .automation-action .ui-icon, .inline-action .ui-icon { width: 13px; height: 13px; display: inline-block; vertical-align: -3px; }
.ai-card .ai-action .ui-icon { width: 13px; height: 13px; }
.ai-card .ai-action span { line-height: 1; }
.ai-card .ai-action { display: inline-flex !important; }
.automation-icon .ui-icon { width: 17px; height: 17px; }
.dashboard-main-grid .inline-action { display: inline-flex; align-items: center; gap: 4px; }
.conversation-empty { display: grid; justify-items: center; gap: 6px; padding: 44px 22px; color: #8b8d98; text-align: center; }
.conversation-empty-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--purple); background: var(--purple-soft); margin-bottom: 4px; }
.conversation-empty-icon .ui-icon { width: 18px; height: 18px; }
.conversation-empty strong { color: #5f616d; font-size: 11px; }
.conversation-empty span { font-size: 10px; line-height: 1.45; }

.conversation-header { min-height: 76px; padding: 15px 23px; }
.conversation-person h2 { font-size: 15px; }
.header-actions { gap: 7px; }
.conversation-state-button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #ebe9f1; border-radius: 8px; padding: 7px 9px; color: #858792; background: #fafafd; font-size: 10px; font-weight: 700; }
.conversation-state-button:hover { border-color: #dcd6ff; color: var(--purple-dark); background: #f5f2ff; }
.conversation-state-button.is-unread { color: #b16e44; border-color: #f4dfd1; background: #fff8f3; }
.conversation-state-button .ui-icon { width: 14px; height: 14px; }
.transfer-button { padding: 7px 10px; }
.transfer-button .ui-icon { width: 14px; height: 14px; }
.message-area { padding: 24px 30px 28px; }
.message-row { gap: 8px; margin: 16px 0; }
.message-bubble { max-width: min(76%, 610px); padding: 11px 13px; box-shadow: 0 1px 0 rgba(30, 25, 60, .02); }
.message-row.outgoing .message-bubble { box-shadow: 0 4px 14px rgba(120,100,221,.12); }
.message-status { display: inline-flex; vertical-align: -3px; margin-left: 2px; color: #a39abf; }
.message-status .ui-icon { width: 11px; height: 11px; }
.message-react-button .ui-icon { width: 14px; height: 14px; }
.message-reaction-menu { left: -3px; }
.attachment-bubble { min-width: 190px; }
.attachment-icon .ui-icon { width: 16px; height: 16px; }
.composer-wrap { padding: 11px 23px 18px; background: #fff; }
.composer-tools { gap: 12px; }
.composer-tool { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; padding: 0; }
.composer-tool:hover { background: var(--purple-soft); }
.composer-box { min-height: 46px; border-radius: 12px; padding: 8px 8px 8px 13px; }
.send-button { width: 31px; height: 31px; border-radius: 9px; }
.details-panel { background: #fafafd; }
.details-header { height: 76px; padding: 0 21px; }
.details-reopen-button .ui-icon { width: 14px; height: 14px; }
.detail-section { padding: 18px 21px; }

@media (max-width: 1280px) { .workspace { grid-template-columns: 284px minmax(0, 1fr) 292px; } .conversation-state-button span { display: none; } }
@media (max-width: 780px) { .workspace { height:calc(100vh - 76px); grid-template-columns:1fr; } .inbox-column { display:none; } .conversation-panel { display:flex; } .details-panel { display:none; } .conversation-header { padding: 14px 16px; } .conversation-state-button { display:none; } .message-area { padding:18px 16px; } .composer-wrap { padding:10px 16px 15px; } }

/* Keep each inbox column inside the viewport; only its own content scrolls. */
html, body { width: 100%; height: 100%; overflow: hidden; }
.app-shell { width: 100%; height: 100vh; min-height: 0; }
.main-content, .workspace, .inbox-column, .conversation-panel, .details-panel { min-height: 0; }
.workspace { height: calc(100vh - 90px); }
.message-area { min-height: 0; overscroll-behavior: contain; }
@media (max-width: 780px) { html, body { overflow: hidden; } .workspace { height: calc(100vh - 76px); } }

/* Final polish for the conversation header, details rail and collapsed brand. */
.conversation-state-button { width: 32px; height: 32px; justify-content: center; padding: 0; border-color: transparent; background: transparent; }
.conversation-state-button span { display: none; }
.conversation-state-button.is-unread { border-color: #f1d8c8; background: #fff8f3; }
.conversation-state-button .ui-icon { width: 15px; height: 15px; }
.details-reopen-button { top: 88px; right: 12px; border-right: 1px solid #e3ddff; border-radius: 8px; z-index: 4; }
.workspace.details-collapsed .details-reopen-button:hover { background: #e6e1ff; }
.brand-row { position: relative; }
.app-shell.sidebar-collapsed .brand-row { padding-top: 8px; padding-left: 0; padding-right: 0; }
.app-shell.sidebar-collapsed .brand-row { flex-direction: column; gap: 7px; padding-bottom: 4px; }
.app-shell.sidebar-collapsed .brand-mark { width: 40px; height: 40px; margin: 0 auto; border-radius: 13px; font-size: 21px; }
.app-shell.sidebar-collapsed .sidebar-collapse-button { position: static; width: 22px; height: 22px; margin: 0 auto; border: 1px solid #e9e7f0; border-radius: 7px; background: #fff; z-index: 2; }
.app-shell.sidebar-collapsed .sidebar-collapse-button .ui-icon { width: 13px; height: 13px; }
.details-toggle-button { color: #8a7fcf; }
.details-toggle-button:hover { background: #f0edff; color: #5f4cc5; }
.details-toggle-button .ui-icon { width: 15px; height: 15px; }
@media (max-width: 780px) { .details-toggle-button { display: none; } }

/* Internal access screen. */
.auth-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 18% 12%, #ede9ff 0, #f7f7fb 38%, #f5f6fb 100%); }
.auth-screen[hidden] { display: none; }
.auth-panel { width: min(100%, 430px); padding: 34px; border: 1px solid rgba(225, 220, 245, .9); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 24px 60px rgba(55, 43, 110, .14); }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 35px; }
.auth-brand .brand-mark { width: 42px; height: 42px; border-radius: 13px; font-size: 21px; }
.auth-brand strong { display: block; font: 800 16px Manrope, sans-serif; letter-spacing: .12em; }
.auth-brand span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.auth-panel h1 { margin: 8px 0 8px; font: 800 26px Manrope, sans-serif; letter-spacing: -.04em; }
.auth-intro { margin: 0 0 24px; color: #858793; font-size: 12px; line-height: 1.55; }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 6px; color: #686a77; font-size: 11px; font-weight: 700; }
.auth-form input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #e2e0ea; border-radius: 10px; outline: none; color: var(--ink); background: #fff; font-size: 12px; }
.auth-form input:focus { border-color: #9d8ee5; box-shadow: 0 0 0 3px #eeeaff; }
.auth-form input[readonly] { color: #7c6bc7; background: #faf9ff; }
.auth-submit { width: 100%; justify-content: center; min-height: 44px; margin-top: 6px; }
.auth-submit .ui-icon { width: 15px; height: 15px; }
.auth-feedback { min-height: 18px; margin-top: 13px; color: #a85e35; font-size: 11px; line-height: 1.4; }
.auth-feedback.success { color: #25805b; }
.auth-footnote { display: flex; align-items: center; gap: 6px; margin-top: 26px; padding-top: 18px; border-top: 1px solid #efedf5; color: #9b9da7; font-size: 10px; }
.auth-footnote .ui-icon { width: 13px; height: 13px; color: #49a276; }
@media (max-width: 520px) { .auth-panel { padding: 26px 22px; border-radius: 18px; } .auth-brand { margin-bottom: 28px; } .auth-panel h1 { font-size: 23px; } }
