/* 14.17 interaction polish: tabs, inbox, AI focus and phone workspace */
html body.bu-workspace .ut-search-tabs{position:relative!important;display:flex!important;align-items:center!important;gap:7px!important;max-width:100%!important;padding:5px 8px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity!important;scrollbar-width:thin!important;scrollbar-color:#9fc7d7 transparent!important;overscroll-behavior-x:contain!important;touch-action:pan-x!important}
html body.bu-workspace .ut-search-tab{position:relative!important;flex:0 0 clamp(150px,11vw,190px)!important;min-width:0!important;max-width:none!important;scroll-snap-align:start!important;border:1px solid #c6dce6!important;border-radius:13px!important;background:linear-gradient(145deg,#fff,#eef6fa)!important;color:#17445e!important;box-shadow:0 5px 14px rgba(4,54,80,.08)!important}
html body.bu-workspace .ut-search-tab.is-active{border-color:#20c491!important;background:linear-gradient(135deg,#0dbb83,#087c67)!important;color:#fff!important;box-shadow:0 8px 20px rgba(4,142,102,.2)!important}
html body.bu-workspace .ut-search-tab-notify{position:relative!important;z-index:3!important;flex:0 0 31px!important;width:31px!important;height:31px!important;border-radius:10px!important;cursor:pointer!important;touch-action:manipulation!important}
html body.bu-workspace .ut-search-tab-close{position:relative!important;z-index:3!important;flex:0 0 23px!important;width:23px!important;height:31px!important;cursor:pointer!important;touch-action:manipulation!important}
html body.bu-workspace .bu-item.is-ai-focus{position:relative!important;z-index:3!important;animation:buAiArrival 1.05s cubic-bezier(.2,.8,.2,1) 2!important;box-shadow:0 0 0 3px rgba(18,203,171,.3),0 18px 42px rgba(4,105,124,.24)!important}
@keyframes buAiArrival{0%{opacity:.35;transform:translateY(18px) scale(.975)}55%{opacity:1;transform:translateY(-3px) scale(1.008)}100%{transform:none}}
.bu-ai-card.is-launching{transform:translateX(-8px) scale(.985)!important;filter:brightness(1.08)!important}
html body.bu-workspace .bu-item.is-demo .ut-load-index{display:inline-flex!important;align-items:center!important;min-height:20px!important;padding:3px 7px!important;border:1px solid #c2a64b!important;border-radius:999px!important;background:#fff7d7!important;color:#765400!important;font-size:8px!important;font-weight:950!important;letter-spacing:.08em!important}
html body.bu-workspace .bu-item.is-demo .ut-badge.is-demo{display:inline-flex!important;background:#fff0b7!important;color:#745400!important}

/* Inbox is a real workspace, with conversation list and reading surface. */
html body .bu-chat-drawer-wrap:not([hidden]){position:fixed!important;z-index:70000!important;inset:0!important;display:grid!important;place-items:center!important;padding:28px!important;background:rgba(1,20,35,.68)!important;backdrop-filter:blur(10px)!important}
html body .bu-chat-drawer-backdrop{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;background:transparent!important}
html body .bu-chat-drawer{position:relative!important;z-index:2!important;display:flex!important;flex-direction:column!important;width:min(1040px,calc(100vw - 56px))!important;height:min(760px,calc(100dvh - 56px))!important;max-width:none!important;overflow:hidden!important;border:1px solid rgba(137,210,226,.55)!important;border-radius:24px!important;background:#f4f9fc!important;box-shadow:0 35px 90px rgba(0,19,37,.42),inset 0 1px #fff!important}
html body .bu-chat-drawer-head{display:flex!important;align-items:center!important;min-height:72px!important;padding:11px 16px!important;border-bottom:1px solid #c8dde7!important;background:linear-gradient(135deg,#073c56,#0a7779)!important;color:#fff!important}
html body .bu-chat-drawer-head :is(h2,strong){color:#fff!important;font-size:20px!important}.bu-chat-drawer-head small{color:#bde8e7!important}
html body .bu-chat-inbox{display:grid!important;grid-template-rows:auto auto 1fr!important;min-height:0!important;flex:1!important}
html body .bu-chat-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:10px 12px 0!important}
html body .bu-chat-tabs button{min-height:42px!important;border-radius:12px!important;font-weight:850!important}.bu-chat-tabs button.is-on{background:linear-gradient(135deg,#18bda8,#149ad0)!important;color:#fff!important}
html body .bu-chat-search{display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important;padding:10px 12px!important;border-bottom:1px solid #d4e3ea!important}
html body .bu-chat-search input{height:42px!important;border:1px solid #bfd4df!important;border-radius:12px!important;background:#fff!important}
html body .bu-chat-list{display:grid!important;grid-template-columns:1fr 1fr!important;align-content:start!important;gap:8px!important;min-height:0!important;padding:10px 12px 18px!important;overflow:auto!important;overscroll-behavior:contain!important}
html body .bu-chat-row,html body .bu-chat-notif{min-width:0!important;border:1px solid #c9dfe6!important;border-radius:16px!important;background:#fff!important;box-shadow:0 7px 18px rgba(7,58,79,.06)!important}
html body .bu-chat-row.is-unread{border-color:#52d4af!important;background:linear-gradient(145deg,#f4fffb,#fff)!important}.bu-chat-row-main{min-height:86px!important;padding:11px!important}.bu-chat-row-text{min-width:0!important}.bu-chat-row-text>*{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html body .bu-chat-thread{display:grid!important;grid-template-rows:auto auto 1fr auto!important;min-height:0!important;flex:1!important}.bu-chat-thread-body{min-height:0!important;padding:16px!important;overflow:auto!important;background:radial-gradient(circle at 80% 10%,rgba(30,190,199,.08),transparent 30%),#edf5f9!important}.bu-chat-form{padding:10px 12px!important;border-top:1px solid #c8dde7!important;background:#fff!important}.bu-chat-compose{display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important}.bu-chat-compose :is(input,textarea){min-width:0!important;min-height:46px!important;border-radius:13px!important}.bu-chat-compose button{min-width:96px!important;border-radius:13px!important;background:linear-gradient(135deg,#13bfa5,#147cd4)!important;color:#fff!important}

@media(max-width:899px){
  /* One compact header, one tab rail, one bottom dock. */
  html body.bu-workspace .bu-domain-rail{height:27px!important;min-height:27px!important;overflow:hidden!important}
  html body.bu-workspace .bu-domain-rail-track{height:27px!important;min-width:max-content!important;padding:2px 7px!important;gap:5px!important}
  html body.bu-workspace .bu-domain-rail :is(.is-days,.bu-domain-rail-lead,.bu-domain-rail-sep,.bu-domain-rail-note){display:none!important}
  html body.bu-workspace .bu-board-header{min-height:74px!important;height:74px!important;padding:7px 10px!important;overflow:hidden!important}
  html body.bu-workspace .bu-board-brand-system{min-width:0!important;max-width:230px!important}.bu-board-brand-system img{max-width:70px!important;max-height:56px!important;object-fit:contain!important}.bu-board-brand-system :is(.bu-board-brand-copy,.bu-mobile-brand-copy){min-width:0!important}
  html body.bu-workspace .bu-board-header-actions{gap:5px!important}.bu-board-header-actions>button,.bu-board-header-actions>a{width:40px!important;height:40px!important;border-radius:12px!important}
  html body.bu-workspace .ut-search-tabs{height:49px!important;min-height:49px!important;margin:0!important;padding:4px 8px!important;gap:6px!important;-webkit-overflow-scrolling:touch!important}
  html body.bu-workspace .ut-search-tab{flex-basis:132px!important;width:132px!important;height:41px!important;min-height:41px!important;padding:3px 5px!important;border-radius:12px!important}
  html body.bu-workspace .ut-search-tab-copy{min-width:0!important}.ut-search-tab-copy strong{font-size:10px!important}.ut-search-tab-copy small{font-size:7px!important}.ut-search-tab-notify{flex-basis:29px!important;width:29px!important;height:29px!important}.ut-search-tab-close{display:none!important}.ut-search-tab-add{flex:0 0 40px!important;width:40px!important;height:40px!important}
  html body.bu-workspace .bu-switch.bu-mobile-only{display:grid!important;grid-template-columns:.78fr 1fr 1.28fr!important;gap:6px!important;height:52px!important;padding:5px 8px!important}.bu-switch.bu-mobile-only button{min-width:0!important;height:42px!important;padding:0 7px!important;border-radius:12px!important;font-size:11px!important;white-space:nowrap!important}
  html body.bu-workspace .bu-item{min-height:0!important;margin:0 8px 7px!important;padding:7px!important;border-radius:14px!important}.bu-item .ut-load-head{display:flex!important;min-height:22px!important;margin-bottom:4px!important}.bu-item .ut-load-brand{display:none!important}.bu-item .ut-load-index{display:inline-flex!important}.bu-item .ut-load-route{gap:5px!important}.bu-item .ut-route-card{min-height:72px!important;padding:7px!important}.bu-item .ut-route-card:before,.bu-item .ut-route-card:after{display:none!important}.bu-item .ut-route-card strong{font-size:13px!important}.bu-item .ut-route-card small,.bu-item .ut-route-card span{font-size:8px!important}.bu-item .ut-load-specs{display:none!important}
  html body.bu-workspace .bu-mobile-ai-banner{right:10px!important;bottom:calc(76px + env(safe-area-inset-bottom))!important;width:150px!important;height:47px!important;min-height:47px!important;padding:5px 7px!important;border-radius:18px!important}.bu-mobile-ai-orb{flex-basis:36px!important;width:36px!important;height:36px!important}.bu-mobile-ai-copy strong{font-size:10px!important}.bu-mobile-ai-copy small{display:block!important;font-size:7px!important}.bu-mobile-ai-banner>button{height:34px!important;padding:0 7px!important;font-size:8px!important}
  html body.bu-workspace .bu-board-map{min-height:calc(100dvh - 252px)!important;max-height:calc(100dvh - 90px)!important;margin:0!important;border-radius:16px!important}.bu-map-head{min-height:58px!important;padding:8px 10px!important}.bu-map-head :is(h2,h3){font-size:14px!important}.bu-map-head p,.bu-map-head small{font-size:8px!important}.bu-map-legend{position:absolute!important;z-index:500!important;top:66px!important;left:8px!important;width:calc(100% - 16px)!important;padding:5px!important;border-radius:12px!important;background:rgba(255,255,255,.9)!important;backdrop-filter:blur(9px)!important}.bu-map-legend label{flex:0 0 auto!important;font-size:8px!important}.bu-map-tools{display:none!important}html body.bu-workspace #map{height:calc(100dvh - 320px)!important;min-height:360px!important}
  html body #bu-filter-fold.open .bu-geo-list{position:fixed!important;z-index:70020!important;top:84px!important;right:18px!important;left:18px!important;width:auto!important;max-height:210px!important;padding:5px!important;border-radius:14px!important;box-shadow:0 18px 45px rgba(0,29,51,.3)!important}.bu-geo-list li{min-height:42px!important;padding:7px 10px!important}.bu-geo-list li strong{font-size:12px!important}.bu-geo-list li span{font-size:9px!important}
  html body #bu-filter-fold.open .bu-filter-sheet-body{padding-bottom:66px!important}.bu-filter-actions{z-index:70030!important}
  html body .bu-chat-drawer-wrap:not([hidden]){padding:5px!important;place-items:stretch!important}.bu-chat-drawer{width:100%!important;height:calc(var(--bu-vv-height) - 10px)!important;max-height:none!important;border-radius:18px!important}.bu-chat-drawer-head{min-height:58px!important;padding:8px 10px!important}.bu-chat-drawer-head :is(h2,strong){font-size:16px!important}.bu-chat-nalog-link{display:none!important}.bu-chat-tabs{padding:7px 8px 0!important}.bu-chat-tabs button{min-height:38px!important}.bu-chat-search{display:block!important;padding:7px 8px!important}.bu-chat-search input{width:100%!important;height:40px!important}.bu-chat-cats{display:flex!important;gap:5px!important;margin-top:6px!important;overflow-x:auto!important}.bu-chat-list{grid-template-columns:1fr!important;gap:6px!important;padding:7px 8px 90px!important}.bu-chat-row-main{min-height:72px!important;padding:8px!important}.bu-chat-thread-body{padding:10px!important}.bu-chat-form{padding:7px 8px calc(8px + env(safe-area-inset-bottom))!important}.bu-chat-compose{grid-template-columns:1fr 72px!important}.bu-chat-compose button{min-width:72px!important}
  body.bu-chat-sheet-open #bu-mobile-fab,body.bu-chat-sheet-open .bu-mobile-ai-banner{display:none!important}
}
