/* R213 adds icon space only. Menu colors, typography, order, grouping,
   hidden states, collapse behavior and page layout keep their existing rules. */
html:root body :is(#crmSideMenu,#legacyCrmSide,#ysbpAuthSide,#crmUserMenuR202,nav,.crm-v1052-portal-shortcuts,.rsp-permission-line,[data-crm-portal-nav-r213]) a.crm-nav-added-r213 {
  position:relative!important;padding-inline-start:40px!important;
}
html:root body :is(#crmSideMenu,#legacyCrmSide,#ysbpAuthSide,#crmUserMenuR202,nav,.crm-v1052-portal-shortcuts,.rsp-permission-line,[data-crm-portal-nav-r213]) a .crm-nav-icon-r213 {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 22px!important;width:22px!important;height:22px!important;min-width:22px!important;
  padding:0!important;box-sizing:border-box!important;border:0!important;border-radius:0!important;
  background:transparent!important;color:inherit!important;-webkit-text-fill-color:currentColor!important;
  box-shadow:none!important;text-shadow:none!important;vertical-align:middle!important;
}
html:root body :is(#crmSideMenu,#legacyCrmSide,#ysbpAuthSide,#crmUserMenuR202,nav,.crm-v1052-portal-shortcuts,.rsp-permission-line,[data-crm-portal-nav-r213]) a .crm-nav-added-icon-r213 {
  position:absolute!important;inset-inline-start:10px!important;top:11px!important;
  margin:0!important;pointer-events:none!important;
}
html:root body :is(#crmSideMenu,#legacyCrmSide,#ysbpAuthSide,#crmUserMenuR202,nav,.crm-v1052-portal-shortcuts,.rsp-permission-line,[data-crm-portal-nav-r213]) a .crm-nav-icon-r213 svg {
  display:block!important;width:20px!important;height:20px!important;flex:none!important;
  fill:none!important;stroke:currentColor!important;stroke-width:1.65!important;
  filter:none!important;opacity:1!important;pointer-events:none!important;
}
html:root body.ysbp-brand-r137 a .crm-nav-icon-r213 {color:#e3c494!important;-webkit-text-fill-color:#e3c494!important}
html:root body.ysbp-brand-r137 a:is(.active,[aria-current="page"]) .crm-nav-icon-r213 {color:inherit!important;-webkit-text-fill-color:currentColor!important}
html:root body .crm-nav-business-logo-r213 {
  display:block;width:auto;max-width:min(180px,100%);height:auto;max-height:84px;
  object-fit:contain;margin:12px 10px 10px;padding:6px;box-sizing:border-box;
  background:#fff;border:1px solid #dce2e9;border-radius:8px;
}

/* Native business menu SVGs retain their approved shape and take the link's
   readable foreground. Older global SVG rules otherwise force white here. */
html:root body :is(#crmSideMenu,#legacyCrmSide,#ysbpAuthSide,#crmUserMenuR202) a .crm-bw200-nav-icon,
html:root body :is(#crmSideMenu,#legacyCrmSide,#ysbpAuthSide,#crmUserMenuR202) a .crm-bw200-nav-icon svg,
html:root body :is(#crmSideMenu,#legacyCrmSide,#ysbpAuthSide,#crmUserMenuR202) a .crm-bw200-nav-icon svg *,
html:root body :is(#crmSideMenu,#legacyCrmSide,#ysbpAuthSide,#crmUserMenuR202) a.crm-bw200-business-link > svg,
html:root body :is(#crmSideMenu,#legacyCrmSide,#ysbpAuthSide,#crmUserMenuR202) a.crm-bw200-business-link > svg * {
  color:inherit!important;-webkit-text-fill-color:currentColor!important;
  stroke:currentColor!important;fill:none!important;filter:none!important;opacity:1!important;
}

html:root body :is(#crmSideMenu,#legacyCrmSide,#ysbpAuthSide,#crmUserMenuR202,nav,.crm-v1052-portal-shortcuts,.rsp-permission-line,[data-crm-portal-nav-r213]) a .crm-nav-icon-r213 svg,
html:root body :is(#crmSideMenu,#legacyCrmSide,#ysbpAuthSide,#crmUserMenuR202,nav,.crm-v1052-portal-shortcuts,.rsp-permission-line,[data-crm-portal-nav-r213]) a .crm-nav-icon-r213 svg * {
  color:inherit!important;-webkit-text-fill-color:currentColor!important;
}

/* Standalone account portals retain their existing short links and cards. */
html:root body :is(#crmSideMenu,#legacyCrmSide,#ysbpAuthSide,#crmUserMenuR202,[data-crm-portal-nav-r213])[data-crm-portal-nav-r213] a .crm-nav-added-icon-r213 {
  top:50%!important;transform:translateY(-50%)!important;
}
