/* Workspace v2 — dense, calm three-pane product layout inspired by modern shared inboxes. */
body:not(.public-page){background:#fff;color:#353941}
.workspace-shell{
  --side:232px;
  --ws-blue:#1f7af3;
  --ws-ink:#17191c;
  --ws-text:#4f545b;
  --ws-muted:#858a93;
  --ws-line:#e8e9ec;
  --ws-soft:#f7f7f8;
  min-height:100dvh;
  background:#fff;
}
.workspace-shell:has(.inbox-page){height:100dvh;min-height:0;overflow:hidden}
.workspace-shell:has(.inbox-page)>.shell-main{display:flex;height:100%;min-height:0;flex-direction:column;overflow:hidden}
.workspace-shell .workspace-sidebar{
  width:var(--side);
  border-right:1px solid var(--ws-line);
  background:#fbfbfc;
  box-shadow:none;
}
.workspace-sidebar-brand{
  display:flex;
  align-items:center;
  gap:10px;
  height:64px;
  padding:0 14px;
  border-bottom:1px solid var(--ws-line);
  background:#fff;
  overflow:hidden;
}
.workspace-sidebar-brand .brand{gap:9px;color:var(--ws-ink);font-size:19px;font-weight:650;letter-spacing:-.6px}
.workspace-sidebar-brand .brand img{width:31px;height:31px}
.workspace-sidebar-brand>small{min-width:0;margin-left:auto;overflow:hidden;color:#747982;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.sidebar-search{
  display:grid;
  grid-template-columns:17px minmax(0,1fr) 29px;
  align-items:center;
  gap:7px;
  height:37px;
  margin:10px 11px 7px;
  padding:0 5px 0 10px;
  border:1px solid #e3e4e8;
  border-radius:9px;
  background:#fff;
  color:#7d828b;
}
.sidebar-search>.icon{width:17px;height:17px}
.sidebar-search input{width:100%;border:0;outline:0;background:transparent;color:#282c32;font-size:13px}
.sidebar-search input::placeholder{color:#747982}
.sidebar-search>button{display:grid;place-items:center;width:29px;height:27px;padding:0;border:0;border-radius:7px;background:#f3f3f5;color:#6d727b}
.sidebar-search>button:hover{background:#eaeaed;color:#24272d}
.sidebar-search>button .icon{width:14px;height:14px}
.workspace-sidebar nav{flex:1;min-height:0;padding:2px 9px 6px;overflow-y:auto;scrollbar-width:none}
.workspace-sidebar nav::-webkit-scrollbar{display:none}
.workspace-sidebar .nav-section-label{margin:10px 10px 3px;color:#747982;font-size:11px;font-weight:520;letter-spacing:0;text-transform:none}
.workspace-sidebar .nav-section-label:first-child{margin-top:4px}
.workspace-sidebar .nav-item{
  height:34px;
  gap:10px;
  margin:1px 0;
  padding:0 10px;
  border:0;
  border-radius:7px;
  color:#34383f;
  font-size:14px;
  font-weight:460;
  box-shadow:none;
}
.workspace-sidebar .nav-item>.icon,.workspace-sidebar .nav-item:nth-child(n)>.icon{width:18px;height:18px;flex-basis:18px;padding:0;border:0;background:transparent;color:#686e77;box-shadow:none;stroke-width:1.8}
.workspace-sidebar .nav-item:hover{background:#f0f0f2;color:#202328}
.workspace-sidebar .nav-item.active{background:#ebebee;color:#1d2025;font-weight:520}
.workspace-sidebar .nav-item.active:before{display:none}
.workspace-sidebar .nav-item.active>.icon{color:var(--ws-blue)}
.workspace-sidebar .nav-unread{margin-left:auto}
.workspace-sidebar .sidebar-bottom{padding:7px 10px 9px;border-top:1px solid #eeeeef;background:#fff}
.workspace-sidebar .admin-link{height:34px;padding:0 9px;color:#555b64}
.workspace-sidebar .sidebar-plan{padding:9px 10px;border:1px solid var(--ws-line);border-radius:9px;background:#fafafb;box-shadow:none}
.workspace-sidebar .sidebar-plan>div{gap:7px}
.workspace-sidebar .sidebar-plan>div strong{font-size:12px;font-weight:560}
.workspace-sidebar .sidebar-plan small{display:inline;margin:0 0 0 6px;color:#6f747d;font-size:10px}
.workspace-sidebar .sidebar-plan .btn{width:auto;min-height:28px;margin-top:7px;padding:4px 10px;border:0;border-radius:6px;background:#edf4ff;color:#176bd8;font-size:11px;box-shadow:none}
.sidebar-account{
  display:grid;
  grid-template-columns:30px minmax(0,1fr) 16px;
  align-items:center;
  gap:9px;
  width:100%;
  margin-top:7px;
  padding:5px 7px;
  border:0;
  border-radius:8px;
  background:transparent;
  text-align:left;
}
.sidebar-account:hover{background:#f1f1f3}
.sidebar-account .avatar{width:30px;height:30px;border:0;font-size:11px}
.sidebar-account span{min-width:0}
.sidebar-account strong,.sidebar-account small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-account strong{font-size:12px;font-weight:560}
.sidebar-account small{margin-top:1px;color:#747982;font-size:10px}
.sidebar-account>.icon{width:15px;height:15px;color:#8a8f97}
.workspace-shell>.shell-main{margin-left:var(--side)}
.workspace-topbar{
  height:58px;
  padding:0 20px;
  border-bottom:1px solid var(--ws-line);
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(12px);
  box-shadow:none;
}
.workspace-topbar>.btn{display:none}
.workspace-current{display:flex;align-items:baseline;gap:9px;min-width:0}
.workspace-current strong{color:var(--ws-ink);font-size:14px;font-weight:560}
.workspace-current span{overflow:hidden;color:#747982;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.workspace-topbar .topbar-right{gap:9px}
.workspace-topbar .workspace-picker{font-size:12px}
.top-command{display:flex;align-items:center;gap:7px;height:32px;padding:0 8px;border:1px solid #e3e4e7;border-radius:7px;background:#fafafb;color:#6e737c;font-size:10px}
.top-command:hover{background:#f2f2f4;color:#292c31}
.top-command>.icon{width:15px;height:15px}
.top-command kbd{padding:1px 5px;border:1px solid #e2e3e6;border-radius:4px;background:#fff;color:#9a9ea6;font:9px/16px inherit}
.workspace-topbar .top-icon,.workspace-topbar .topbar-right>.btn{display:grid;place-items:center;width:31px;min-width:31px;height:31px;padding:0;border:0;border-radius:7px;background:transparent;color:#71767f}
.workspace-topbar .top-icon:hover,.workspace-topbar .topbar-right>.btn:hover{background:#f1f1f3}
.workspace-topbar .user-button{gap:7px;padding:3px 5px;border-radius:8px;font-size:11px}
.workspace-topbar .user-button:hover{background:#f4f4f5}
.workspace-topbar .user-button .avatar{width:29px;height:29px;border:0;font-size:11px}
.workspace-shell .page-content{max-width:none;padding:22px 25px 34px;background:#f8f9fa}
.workspace-shell .page-heading{margin-bottom:15px}
.workspace-shell .page-heading h1{margin-bottom:2px;color:#1c1f24;font-size:22px;font-weight:590;letter-spacing:-.6px}
.workspace-shell .page-heading p{color:#666c75;font-size:13px}
.workspace-shell .card,.workspace-shell .page-toolbar{border:1px solid var(--ws-line);border-radius:10px;background:#fff;box-shadow:none}
.workspace-shell .card{padding:17px}
.workspace-shell .card:hover{border-color:#dddee2}
.workspace-shell .greeting{padding:18px 20px;border-color:var(--ws-line);border-radius:10px;box-shadow:none}
.workspace-shell .greeting h1{font-size:22px;font-weight:570}
.workspace-shell .metric.card{padding:13px 15px;border-radius:9px}
.workspace-shell .metric strong{font-size:21px;font-weight:570}
.workspace-shell .icon-tile,.workspace-shell .metric .icon-tile{width:34px;height:34px;border-radius:9px;background:#f6f6f7;color:#666c75}
.workspace-shell .icon-tile .icon,.workspace-shell .metric .icon-tile .icon{width:17px;height:17px}
.workspace-shell .table-card{padding:14px}
.workspace-shell .filters{margin-bottom:11px}
.workspace-shell table{font-size:12px}
.workspace-shell th{height:38px;padding:8px 11px;background:#f7f7f8;color:#656b74;font-size:11px;font-weight:560}
.workspace-shell td{height:52px;padding:10px 11px;border-bottom-color:#ededee;color:#454a52}
.workspace-shell tbody tr:hover td{background:#fafafa}
.workspace-shell .btn.primary{border-color:var(--ws-blue);background:var(--ws-blue);box-shadow:none}

/* Shared inbox: an actual full-height product workspace instead of cards inside a page. */
.workspace-shell:has(.inbox-page) .workspace-topbar{display:none}
.workspace-shell .inbox-page{flex:1 1 auto;width:100%;height:auto;min-height:0;padding:0;overflow:hidden;background:#fff}
.workspace-shell .inbox-grid{
  display:grid;
  grid-template-columns:390px minmax(430px,1fr) 300px;
  gap:0;
  width:100%;
  height:100%;
  max-height:100%;
  min-height:0;
  overflow:hidden;
  border:0;
  background:#fff;
}
.workspace-shell .inbox-grid:not(.has-conversation){grid-template-columns:390px minmax(0,1fr)}
.workspace-shell .inbox-grid:not(.has-conversation)>.conversation-profile{display:none}
.inbox-list-column{display:flex;flex-direction:column;min-width:0;height:100%;border-right:1px solid var(--ws-line);background:#fff}
.inbox-list-title{display:flex;align-items:center;justify-content:space-between;min-height:58px;padding:0 13px;border-bottom:1px solid var(--ws-line)}
.inbox-list-title>div:first-child{display:flex;align-items:center;gap:7px}
.inbox-list-title strong{font-size:15px;font-weight:590}
.inbox-list-title>div:first-child>span{padding:2px 7px;border-radius:5px;background:#f1f1f3;color:#626770;font-size:10px}
.inbox-list-title .actions{gap:4px}
.inbox-list-title .btn{width:29px;min-width:29px;min-height:29px;padding:6px;border:0;background:#f6f6f7}
.workspace-shell .inbox-tabsbar{display:flex;align-items:flex-end;justify-content:space-between;min-height:43px;margin:0;padding:0 10px;border:0;border-bottom:1px solid var(--ws-line);border-radius:0;background:#fff;box-shadow:none}
.workspace-shell .inbox-tabsbar .tabs{align-self:stretch;display:flex;align-items:flex-end;gap:0;margin:0;border:0;overflow-x:auto}
.workspace-shell .inbox-tabsbar .tabs>a{display:flex;align-items:center;gap:4px;height:42px;padding:0 9px;border-bottom:2px solid transparent;color:#565c65;font-size:12px;font-weight:460}
.workspace-shell .inbox-tabsbar .tabs>a.active{border-bottom-color:var(--ws-blue);color:#176edc;font-weight:560}
.workspace-shell .inbox-tabsbar .status-live{height:28px;margin-bottom:7px;padding:0 7px;border:0;background:#eff9f5;color:#19745e;font-size:10px}
.workspace-shell .inbox-tabsbar .status-live .icon{width:12px;height:12px}
.workspace-shell .conversation-pane{display:flex;flex:1;flex-direction:column;min-height:0;border:0;border-radius:0;background:#fff;box-shadow:none;overflow:hidden}
.workspace-shell .conversation-search{display:grid;grid-template-columns:minmax(0,1fr) 31px;gap:7px;padding:10px 11px!important;border-bottom:1px solid #f0f0f1}
.workspace-shell .conversation-search>label{height:33px;padding:0 9px!important;border:1px solid #e3e4e7;border-radius:7px;background:#f9f9fa}
.workspace-shell .conversation-search>label:focus-within{border-color:#aacbf9;background:#fff;box-shadow:0 0 0 3px rgba(31,122,243,.08)}
.workspace-shell .conversation-search input{font-size:12px!important;color:#34383e}
.workspace-shell .conversation-search>.tool{width:31px;height:33px!important;border-color:#e3e4e7;border-radius:7px;color:#6e737b}
.workspace-shell .conversation-list{flex:1;padding:0;overflow-y:auto}
.workspace-shell .conversation-item{
  min-height:76px!important;
  gap:10px!important;
  padding:10px 12px!important;
  border-bottom:1px solid #eeeeef!important;
  border-radius:0!important;
  background:#fff;
}
.workspace-shell .conversation-item:hover{background:#f8f8f9}
.workspace-shell .conversation-item.active{background:#f1f6fd}
.workspace-shell .conversation-item.active:before{top:0!important;bottom:0!important;left:0;width:3px;background:var(--ws-blue)}
.workspace-shell .conversation-item>.avatar{width:36px!important;height:36px!important;min-width:36px!important;border:0;font-size:12px!important}
.workspace-shell .conversation-item strong{max-width:230px!important;color:#202328;font-size:13px!important;font-weight:570}
.workspace-shell .conversation-item .snippet{max-width:260px!important;margin:3px 0!important;color:#5f6670;font-size:11px!important}
.workspace-shell .conversation-meta{min-height:14px;color:#6b727c;font-size:11px!important}
.workspace-shell .conversation-meta>small{font-size:11px!important}
.workspace-shell .channel-source{max-width:190px;color:#606771;font-size:10.5px}
.workspace-shell .list-footer{padding:6px 10px;border-top:1px solid var(--ws-line);background:#fff}
.workspace-shell .list-footer .pagination{padding:0;border:0;font-size:10px}
.workspace-shell .chat-pane{display:flex;height:100%;min-width:0;min-height:0;flex-direction:column;border:0;border-radius:0;background:#fff;box-shadow:none;overflow:hidden}
.workspace-shell .chat-header{min-height:58px;padding:9px 14px;border-bottom:1px solid var(--ws-line);background:#fff}
.workspace-shell .chat-header>.info{display:flex;align-items:center;gap:9px}
.workspace-shell .chat-header>.info .avatar{width:34px;height:34px;border:0;font-size:12px}
.workspace-shell .chat-header strong{font-size:13px;font-weight:580}
.workspace-shell .chat-header small{margin-top:2px;color:#666d77;font-size:10px}
.workspace-shell .chat-header .actions{gap:4px}
.workspace-shell .chat-header .btn.small{min-height:29px;padding:4px 8px;border-color:#e5e6e9;font-size:10px}
.workspace-shell .message-feed{flex:1 1 0;min-height:0;padding:18px 18px 7px;background:#fafafa;overflow-y:auto;overscroll-behavior:contain}
.workspace-shell .chat-msg{margin-bottom:15px}
.workspace-shell .chat-msg-bubble{padding:0;border:0;background:transparent;color:#34383f;font-size:12px;line-height:1.65}
.workspace-shell .message-body{padding:9px 11px;border:1px solid #e3e4e7;border-radius:4px 11px 11px;background:#fff}
.workspace-shell .chat-msg.mine .message-body{border-color:var(--ws-blue);border-radius:11px 4px 11px 11px;background:var(--ws-blue);color:#fff}
.workspace-shell .chat-msg-name{margin-bottom:3px;color:#626a75;font-size:10.5px}
.workspace-shell .chat-msg-time{margin-top:4px;color:#68717c;font-size:11px}
.workspace-shell .composer{position:relative;z-index:2;flex:0 0 auto;padding:9px 12px max(11px,env(safe-area-inset-bottom));border-top:1px solid var(--ws-line);background:#fff}
.workspace-shell .reply-bar{padding-bottom:7px}
.workspace-shell .reply-chip{padding:4px 8px;border-color:#d9dce1;border-radius:999px;color:#424850;font-size:10px}
.workspace-shell .composer-box{padding:8px 10px;border-color:#dfe1e5;border-radius:8px;box-shadow:none}
.workspace-shell .composer-box:focus-within{border-color:#9fc5f8;box-shadow:0 0 0 3px rgba(31,122,243,.08)}
.workspace-shell .composer-box textarea{height:42px;color:#353a41;font-size:12px}
.workspace-shell .composer-toolbar .send-circle{width:32px;height:32px;background:var(--ws-blue);box-shadow:none}
.workspace-shell .conversation-profile{display:flex;gap:0;min-width:0;border-left:1px solid var(--ws-line);background:#fff;overflow-y:auto}
.workspace-shell .conversation-profile>.card{margin:0!important;padding:16px;border:0;border-bottom:1px solid var(--ws-line);border-radius:0;box-shadow:none}
.workspace-shell .conversation-profile .card-heading{margin-bottom:13px}
.workspace-shell .conversation-profile h2{font-size:13px;font-weight:580}
.workspace-shell .conversation-profile .customer-profile-top{margin-bottom:12px}
.workspace-shell .conversation-profile .customer-profile-top .avatar{width:43px;height:43px;border:0;font-size:15px}
.workspace-shell .conversation-profile .kv-list{gap:10px;color:#4f555e;font-size:11px}
.workspace-shell .conversation-profile .note-box{border:0;background:#f7f7f8;color:#5b626c;font-size:11px}
.workspace-shell .inbox-empty{color:#9297a0}
.workspace-shell .inbox-empty .empty-icon{width:74px;height:74px;margin-bottom:16px;border-radius:50%;background:#f2f3f5;color:#c1c5cc}
.workspace-shell .inbox-empty h3{color:#3d4148;font-size:13px;font-weight:550}
.workspace-shell .inbox-empty p{font-size:11px}

@media(max-width:1280px){
  .workspace-shell{--side:214px}
  .workspace-shell .inbox-grid{grid-template-columns:340px minmax(390px,1fr)}
  .workspace-shell .inbox-grid>.conversation-profile{display:none}
  .workspace-shell .conversation-item strong{max-width:190px!important}
  .workspace-shell .conversation-item .snippet{max-width:220px!important}
  .workspace-topbar .workspace-picker{display:none}
}
@media(max-height:820px) and (min-width:801px){
  .workspace-sidebar .nav-section-label{margin-top:7px;margin-bottom:2px;font-size:10px}
  .workspace-sidebar .nav-item{height:32px;font-size:13px}
  .workspace-sidebar .nav-item>.icon,.workspace-sidebar .nav-item:nth-child(n)>.icon{width:17px;height:17px;flex-basis:17px}
  .workspace-sidebar .sidebar-plan small{display:none}
  .workspace-sidebar .sidebar-plan .btn{margin-top:4px}
}
@media(max-width:800px){
  .workspace-shell{--side:224px}
  .workspace-shell>.shell-main{margin-left:0}
  .workspace-shell .workspace-sidebar{transform:translateX(-100%);transition:transform .2s ease}
  .mobile-nav-open .workspace-sidebar{transform:none}
  .workspace-shell:has(.inbox-page) .workspace-topbar{display:flex}
  .workspace-topbar{height:54px;padding:0 11px}
  .workspace-topbar>.btn{display:grid;place-items:center;width:30px;min-width:30px;height:30px;padding:0}
  .workspace-current span,.workspace-topbar .top-command,.workspace-topbar .workspace-picker,.workspace-topbar .top-icon,.workspace-topbar .user-button strong{display:none}
  .workspace-topbar .topbar-right{margin-left:auto}
  .workspace-shell .page-content{padding:16px 13px 24px}
  .workspace-shell .inbox-page{height:auto;padding:0}
  .workspace-shell .inbox-grid,.workspace-shell .inbox-grid:not(.has-conversation){display:flex!important;width:100%;height:100%;min-height:0}
  .inbox-list-column{flex:1;width:100%;border-right:0}
  .workspace-shell .chat-pane{display:none;flex:1;width:100%;height:100%}
  .workspace-shell .inbox-grid.show-chat>.inbox-list-column{display:none}
  .workspace-shell .inbox-grid.show-chat>.chat-pane{display:flex}
  .workspace-shell .inbox-grid>.conversation-profile{display:none}
  .workspace-shell .conversation-item strong{max-width:min(55vw,230px)!important}
  .workspace-shell .conversation-item .snippet{max-width:min(63vw,270px)!important}
  .workspace-shell .chat-header>[data-action="back-conversations"]{display:inline-flex}
  .workspace-shell .chat-header .actions{overflow-x:auto;flex-wrap:nowrap}
}
