/* Keep global navigation out of the compact conversation-list header. */
.sidebar{height:100dvh;min-height:0;padding:20px 12px 14px}
.sidebar .brand{flex:none;padding:0 8px 20px;gap:10px}
.crm-sidebar-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#63757d transparent;padding:0 2px 14px}
.sidebar #nav{max-height:none!important;overflow:visible!important}
.sidebar .profile{flex:none;margin-top:0;padding-top:14px}
.sidebar .profile #logout{width:44px;height:44px;flex:none}
.sidebar #nav .ow-area-title{min-height:40px;font-size:15px;letter-spacing:0;padding:8px 12px}
.sidebar #nav .ow-nav-group{margin:8px 0;padding-bottom:8px}
.sidebar #nav .ow-nav-items button{min-height:44px;padding:10px 12px;font-size:13px}
.sidebar #nav .ow-nav-items .secondary-nav{padding-left:42px;font-size:12px}
.sidebar #nav .ow-reply-nav{margin:0 0 10px;min-height:44px}
.crm-team-nav,.crm-tools{display:grid;gap:4px;border-top:1px solid #ffffff1c;padding-top:12px;margin-top:12px}
.crm-tools h2{margin:0 10px 4px;font-size:11px;line-height:20px;color:#9fb3b8;font-weight:600;text-transform:uppercase;letter-spacing:.07em}
.crm-team-nav button,.crm-tools a,.crm-tools button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;margin:0;padding:10px;border:0;border-radius:10px;background:transparent;color:#d4e0e2;text-align:left;text-decoration:none;font:inherit;font-size:12px;line-height:1.4;white-space:normal}
.crm-tools svg,.crm-team-nav svg,.top-actions svg{flex:none;width:20px;height:20px}
.crm-team-nav button:hover,.crm-tools a:hover,.crm-tools button:hover{background:#ffffff0d;color:#fff}
.crm-team-nav [aria-pressed="true"]{background:#ffffff18;color:#fff}
.crm-tools :focus-visible,.crm-team-nav :focus-visible,.crm-tools-menu summary:focus-visible{outline:2px solid #73b9ed;outline-offset:2px}
.topbar,body[data-v20-view="today"] .topbar{position:sticky;display:flex;flex-wrap:wrap;align-items:center;gap:14px;min-height:0;padding:18px}
.topbar>div:first-child{min-width:0;flex:1 1 180px}
.topbar h1,body[data-v20-view="today"] .topbar h1{font-size:28px;line-height:1.15;overflow-wrap:anywhere}
.topbar #date{font-size:12px}
.top-actions,body[data-v20-view="today"] .top-actions{position:static;display:flex;align-items:center;flex-wrap:wrap;min-width:0;max-width:100%;gap:8px;flex:1 1 380px}
.top-actions .search,.top-actions .search.v20-search-open,body[data-v20-view="today"] .top-actions .search,body[data-v20-view="today"] .top-actions .search.v20-search-open{position:static;display:flex;flex:1;min-width:140px;width:auto;height:44px;padding:0 12px;border:1px solid #dce4e6;border-radius:12px;background:#f7f9fa;overflow:visible;order:0}
.top-actions .search input,body[data-v20-view="today"] .top-actions .search input{position:static;width:100%;min-width:0;opacity:1;pointer-events:auto;font-size:14px}
.top-actions .scope{display:flex;align-items:center;gap:6px;margin:0;font-size:12px;flex:none}
.top-actions .scope select{min-height:44px;max-width:150px}
.top-actions #new-client{min-height:44px;white-space:nowrap}
.top-actions .crm-push-open{width:44px;height:44px;min-height:44px;margin:0;flex:none;border-radius:12px}
.crm-tools-menu{display:none;position:relative}
.crm-tools-menu summary{display:grid;place-items:center;list-style:none;width:44px;height:44px;border:1px solid #dce4e6;border-radius:12px;background:#fff;color:#29434b;cursor:pointer}
.crm-tools-menu summary::-webkit-details-marker{display:none}
@media(min-width:901px){
 /* Shared tracks keep navigation fixed when switching between inbox and pages. */
 :root{--crm-sidebar-width:256px;--crm-inbox-width:clamp(320px,28vw,420px)}
 .app{grid-template-columns:var(--crm-sidebar-width) minmax(0,1fr)}
 body[data-v20-view="today"] .app{grid-template-columns:var(--crm-sidebar-width) var(--crm-inbox-width) minmax(0,1fr)}
 body[data-v20-view="today"] .detail-dialog{inset:0 0 0 calc(var(--crm-sidebar-width) + var(--crm-inbox-width));width:calc(100vw - var(--crm-sidebar-width) - var(--crm-inbox-width))}
 body:not([data-v20-view="today"]) .detail-dialog{inset:0 0 0 var(--crm-sidebar-width);width:calc(100vw - var(--crm-sidebar-width))}
 .sidebar{min-width:0}
 .crm-sidebar-scroll{overflow-x:hidden;scrollbar-gutter:stable}
 .sidebar #nav button{width:100%;min-width:0;grid-template-columns:20px minmax(0,1fr) auto}
 .sidebar #nav button.secondary-nav{grid-template-columns:minmax(0,1fr)}
 .sidebar .profile>span{flex-shrink:0}
 .v20-inbox-row{min-height:96px;padding:12px 10px}
 .v20-inbox-copy>strong,.v20-inbox-copy>small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
 .v20-inbox-copy>strong{font-size:15px}
 .v20-inbox-copy>small{font-size:14px}
 body[data-v20-view="today"] .topbar>div:first-child{flex-basis:100%}
 body[data-v20-view="today"] .top-actions{flex-basis:100%;width:100%}
 body[data-v20-view="today"] .top-actions .search{order:-1}
}
@media(max-width:900px){
 .topbar,body[data-v20-view="today"] .topbar{padding:14px 12px 12px;gap:12px}
 .topbar>div:first-child{flex:1 1 100%;width:100%}
 .topbar h1,body[data-v20-view="today"] .topbar h1{font-size:25px}
 .top-actions,body[data-v20-view="today"] .top-actions{display:flex;flex:1 1 100%;width:100%;justify-content:flex-start;gap:8px}
 .top-actions [data-team-personal]{order:-5;display:flex!important;align-items:center;gap:8px;flex:1;min-width:0;min-height:44px;padding:10px!important;margin:0;font-size:13px!important;border-radius:12px;white-space:normal}
 .top-actions [data-team-notices]{order:-4;display:flex!important;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px!important;margin:0;border-radius:12px}
 .top-actions [data-team-notices]{position:relative}
 .top-actions [data-team-notices]:not([data-unread="0"])::after{content:attr(data-unread);position:absolute;top:-4px;right:-4px;min-width:17px;height:17px;padding:0 3px;display:grid;place-items:center;border-radius:10px;background:#1e6970;color:white;font-size:10px;border:2px solid white}
 .top-actions [data-team-notices] .crm-action-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .top-actions .crm-push-open{order:-3}
 .crm-tools-menu{display:block;order:-2}
 .top-actions .search,body[data-v20-view="today"] .top-actions .search{flex:1 1 100%;min-width:0;width:100%;order:0}
 .top-actions .search input,body[data-v20-view="today"] .top-actions .search input{font-size:16px}
 .top-actions .scope{flex:1!important;min-width:0}
 .top-actions .scope select{min-width:0;max-width:160px;font-size:16px}
 body[data-v20-view="today"] .top-actions .scope,body[data-v20-view="today"] .top-actions #new-client{display:none!important}
 .crm-tools-menu [data-tools-mobile]{position:absolute;right:0;top:52px;width:min(300px,calc(100vw - 24px));max-height:calc(100dvh - 190px);overflow:auto;overscroll-behavior:contain;border:1px solid #dce4e6;border-radius:16px;padding:8px;background:#fff;box-shadow:0 14px 45px #182f4030;z-index:20}
 .crm-tools-menu .crm-tools{border:0;padding:0;margin:0}
 .crm-tools-menu .crm-tools h2{color:#6a7c83;padding:4px 0}
 .crm-tools-menu .crm-tools a,.crm-tools-menu .crm-tools button{font-size:14px;color:#29434b;min-height:48px}
 .crm-tools-menu .crm-tools a:hover,.crm-tools-menu .crm-tools button:hover{background:#edf4f6;color:#193b42}
 .mobile-nav{gap:0;padding-inline:0;padding-bottom:max(8px,env(safe-area-inset-bottom))}
 .mobile-nav button{display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:48px}
 .mobile-nav button>span{display:grid;place-items:center;height:22px}
 .mobile-nav button small{line-height:1.15;font-size:9px}
 .mobile-nav button svg{width:20px;height:20px}
}
